Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Site: the hero demo runs today's app, with the brand-purple ring and the new logo colour

Eric Brownroutce3dd346ca33
diff --git a/site/public/marketing/app/manifest.json b/site/public/marketing/app/manifest.json
index b10595ed..f033e72c 100644
--- a/site/public/marketing/app/manifest.json
+++ b/site/public/marketing/app/manifest.json
@@ -1,6 +1,10 @@
{
- "appCommit": "f07515bb86d8169e5be57f8ab7ccf9c79ccacf4e",
- "generatedAt": "2026-11-13T22:24:52.250Z",
+ "appCommit": "86854aa0f96371978d42eae435b5681c0638787d",
+ "sourceOverrides": {
+ "app/src/renderer/src/components/Logo.tsx": "bd3d73de6e1c5ffba88d83042c2cf7510b8c47b4",
+ "app/src/renderer/src/workspace.css": "1e1c0d07eec486691d71844446c3f73700ac5ef4"
+ },
+ "generatedAt": "2026-11-14T16:33:43.337Z",
"source": "app/src/renderer",
"fixture": "site/renderer/bridge.mjs",
"nativeCode": false,
@@ -54,10 +58,12 @@
"app/src/renderer/src/components/ViewPill.tsx",
"app/src/renderer/src/components/Workspace.tsx",
"app/src/renderer/src/dates.ts",
+ "app/src/renderer/src/folderSelection.ts",
"app/src/renderer/src/folders.ts",
"app/src/renderer/src/followLatest.ts",
"app/src/renderer/src/i18n.tsx",
"app/src/renderer/src/keys.ts",
+ "app/src/renderer/src/meetingSelection.ts",
"app/src/renderer/src/motion.ts",
"app/src/renderer/src/noteAutosave.ts",
"app/src/renderer/src/noteMerge.ts",
@@ -65,6 +71,7 @@
"app/src/renderer/src/screens/Note.tsx",
"app/src/renderer/src/streamingInk.ts",
"app/src/renderer/src/styles.css",
+ "app/src/renderer/src/trashMeetings.ts",
"app/src/renderer/src/useFollowLatest.ts",
"app/src/renderer/src/useLoadingState.ts",
"app/src/renderer/src/useNotePopover.ts",
@@ -108,15 +115,15 @@
"sha256": "45e4eb19dcb4fc8ce3825d6cfeeb1d8f8d7a16e09ee4583a005518c880f028e4"
},
"renderer.css": {
- "bytes": 245067,
- "gzipBytes": 83219,
- "sha256": "524a6eeb71c14d096c5f2a64d22695c18d7587b8eeb5f93eb30da866ff2a0d1a"
+ "bytes": 255346,
+ "gzipBytes": 84416,
+ "sha256": "76f09d60ce9d5a1511ae8014e11b20c221f93588002741dc8e6bdcb245463ed7"
},
"renderer.js": {
- "bytes": 1244198,
- "gzipBytes": 394210,
- "sha256": "95425bf2df3e921d8d738786123debfefb47614d5f8dfdd48a54312b94e710cf"
+ "bytes": 1249458,
+ "gzipBytes": 396189,
+ "sha256": "cdb40b1141c8cdafc906bc5382279bab584a6522cd5396d2ac233cfa204d69d6"
}
},
- "totalGzipBytes": 477793
+ "totalGzipBytes": 480969
}
diff --git a/site/public/marketing/app/renderer.css b/site/public/marketing/app/renderer.css
index c53624b3..49afea9d 100644
--- a/site/public/marketing/app/renderer.css
+++ b/site/public/marketing/app/renderer.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--font-brand:"Bricolage Grotesque", -apple-system, system-ui, sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}@media (prefers-reduced-motion:no-preference){:where(.main-window :is(.overflow-auto,.overflow-y-auto,.workspace-sidebar-body,.native-library,.agenda-scroll,.agenda-inspector-scroll,.note-notes-pane,.note-layout,.chat-thread,.chat-history,.settings-scroll,.shortcuts-list,.citation-excerpt,.note-date-events,.finish-setup,.ob-side)){transition:scrollbar-color .2s}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.inset-x-0{inset-inline:0}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.start-1\/2{inset-inline-start:50%}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.right-4{right:calc(var(--spacing) * 4)}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[100\]{z-index:100}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.ms-0\.5{margin-inline-start:calc(var(--spacing) * .5)}.ms-2{margin-inline-start:calc(var(--spacing) * 2)}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-px{margin-top:1px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[58px\]{height:58px}.h-\[min\(44vh\,480px\)\]{height:min(44vh,480px)}.h-full{height:100%}.h-px{height:1px}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[74vh\]{max-height:74vh}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[40vh\]{min-height:40vh}.min-h-\[52px\]{min-height:52px}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-52{width:calc(var(--spacing) * 52)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[min\(340px\,calc\(100vw-48px\)\)\]{width:min(340px,100vw - 48px)}.w-\[min\(720px\,calc\(100\%-48px\)\)\]{width:min(720px,100% - 48px)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-44{max-width:calc(var(--spacing) * 44)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[220px\]{max-width:220px}.max-w-\[580px\]{max-width:580px}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100\%-32px\)\]{max-width:calc(100% - 32px)}.max-w-\[min\(280px\,calc\(100vw-48px\)\)\]{max-width:min(280px,100vw - 48px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-line{border-color:var(--line)}.bg-\[var\(--line\)\]{background-color:var(--line)}.bg-accent{background-color:var(--accent)}.bg-bg{background-color:var(--bg)}.bg-card{background-color:var(--card)}.bg-float{background-color:var(--float)}.bg-transparent{background-color:#0000}.\!p-1\.5{padding:calc(var(--spacing) * 1.5)!important}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.ps-2\.5{padding-inline-start:calc(var(--spacing) * 2.5)}.pe-1{padding-inline-end:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-9{padding-top:calc(var(--spacing) * 9)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.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}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-\[1\.55\]{--tw-leading:1.55;line-height:1.55}.leading-\[17px\]{--tw-leading:17px;line-height:17px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.break-words{overflow-wrap:break-word}.text-\[\#fff\]{color:#fff}.text-\[var\(--pill-accent\)\]{color:var(--pill-accent)}.text-accent{color:var(--accent)}.text-accent-ink{color:var(--accent-ink)}.text-danger{color:var(--danger)}.text-ink{color:var(--ink)}.text-muted{color:var(--muted)}.italic{font-style:italic}.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,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow-\[var\(--shadow\)\]{--tw-shadow:var(--shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--shadow-soft\)\]{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-line{--tw-ring-color:var(--line)}.blur{--tw-blur:blur(8px);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,)}.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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.placeholder\:text-muted::placeholder{color:var(--muted)}@media (hover:hover){.hover\:bg-\[var\(--line\)\]:hover{background-color:var(--line)}.hover\:bg-card:hover{background-color:var(--card)}.hover\:text-ink:hover{color:var(--ink)}}.focus\:ring-accent:focus{--tw-ring-color:var(--accent)}.focus-visible\:bg-\[var\(--line\)\]:focus-visible{background-color:var(--line)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}}.aria-expanded\:text-ink[aria-expanded=true]{color:var(--ink)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}}@font-face{font-family:Bricolage Grotesque;src:url(data:font/ttf;base64,AAEAAAAQAQAABAAAR0RFRjocOWEAAAJQAAAA5EdQT1NqC7sMAAC11AAAi6pHU1VCvzzi/gAAETgAAAgcT1MvMmZffxoAAAHwAAAAYFNUQVRkw1NUAAABmAAAAFZjbWFwwBgxaAAACwwAAAYsZ2FzcAAAABAAAAEUAAAACGdseWYwEH14AAAx/AAAg9ZoZWFkH43wwgAAAWAAAAA2aGhlYQgxBTEAAAE8AAAAJGhtdHi4ZlhOAAAZVAAACPhsb2NhN9gXaAAABowAAAR+bWF4cAJQANYAAAEcAAAAIG5hbWVNBX+sAAADNAAAA1Zwb3N07eDS7wAAIkwAAA+ucHJlcGgGjIUAAAEMAAAAB7gB/4WwBI0AAAEAAf//AA8AAQAAAj4AZwAHAG0ABgABAAAAAAAAAAAAAAAAAAQAAQABAAADov7yAAA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gB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUC1gA2As8ANQPgADUCfgBOAoAATgLRADUCnQBOAp0ATgKdAE4C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gcA//8AEP/0AY8C5wImAR4AAAAHAhcBDAAB//8AEP8cAWQCfwImAR4AAAAGAiJsAAABAD//8wIcAgsAGAAAFyImNREzERQWMzI+Ajc1MxEVIzcjDgL0Wlt/MDIdLCATAn5oAhINL0QNe30BIP7uT04dNUYq7f7M16U/TiX//wA///MCHAL6AiYBIQAAAAcCFQDdAAD//wA///MCHALWAiYBIQAAAAcCGgCKAAH//wA///MCHAMDAiYBIQAAAAYCGHoB//8AP//zAhwC1wImASEAAAAGAhJwAf//AD//LwIcAgsCJgEhAAAABwITAN380wACAD//8wIcAvoAGAAcAAAXIiY1ETMRFBYzMj4CNzUzERUjNyMOAgMnMxf0Wlt/MDIdLCATAn5oAhINL0QdaIFKDXt9ASD+7k9OHTVGKu3+zNelP04lAmKlpf//AD//8wIcAxMCJgEhAAAABwIeAMAAAP//AD//8wKRAoIAJgEhAAAABwIgAboAAf//AD//8wKRAvoAJgEhAAAAJwIgAboAAQAHAhUA3QAA//8AP/8vApECggAmASEAAAAnAiABugABAAcCEwDd/NMAAwA///MCkQL6ABgAJAAoAAAXIiY1ETMRFBYzMj4CNzUzERUjNyMOAgEnNzI+AiczFgYGJSczF/RaW38wMh0sIBMCfmgCEg0vRAEGXAIiJg8BAmMIEC/+tWiBSg17fQEg/u5PTh01Rirt/szXpT9OJQHxCxwTISsYNUskd6WlAP//AD//8wKRAxMAJgEhAAAAJwIgAboAAQAHAh4AwAAA//8AP//zApEC2wAmASEAAAAnAiABugABAAYCHHUB//8AP//zAhwC7gImASEAAAAHAhYAkAAH//8AP//zAhwCygImASEAAAAHAh0AiQAB//8AP/84AiECCwImASEAAAAHAiQBXgAA//8AP//zAhwC+gImASEAAAAHAhsAvQAB//8AP//zAhwC2wImASEAAAAGAhx1AQABAA0AAAIiAgoABwAAMwMzEzMTMwPAs4x5D3mItAIK/lsBpf32AAEAEgAAAzoCCwAPAAAzAzMTMxMzEzMTMwMjAyMDl4WEUxJfmmISUYGFr1oPWAIL/lsBpf5bAaX99Q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AAAApAAAALgAr//v/y//1AAD/swAAAAD//wADAAD/3AAAAAD/+AAAAAD/5AAAAAAADwAAAAAAAP/+AAAABgAA//gALv/PAAAAGwAAAAAAHAAA/7cABAAA//0AAAAB//8AAAAA////+gAA//////////4AAP////8AAAAA//v/+AAD//4AAAAA//cACf////n////+/+v////+AAAAAP/2ABD/+P/4//r/+//2/+z/7AAA//8AAP/6//sAAAAA//4AAAAE//0AAv/7AAUAAP/9AAAAAP/7AAQAAAASAAAAAAADAAAAAAADAAAAAP/+AAAAAAAA//8AAP/5AAD//wABAAH/9v//AAD//f//AAD/+gAPAAAABQAA//X/9AAA////+QAF//3/+v/8//P//AAA//P/9gAAAAD/8P/4AAD/+//+//8AAAAK//UAAAAG//z/3v/6AAIAAP/o/+7/+gAHAAQAAAAHAAf//f/9AAAADgAA//gAAAAAAAAABQAAAAb//gAKAA3//gAAAAQAAAAAAAAAAAAA//oAAAAAAAUAAAAA/+sAAAAAAAAAAAAAAAAAAwAAAAIAAP/8//wAEQAAAAIAAAAf//4AAAAAAAAAAAAIAAAAAAAEAAAAAAAA/8sAAAAD//P/9gAAAAD/9f/1//P/9v/3//8AAAAAAAAAAAAc//n/+f/3AAn//f/nAAAAGAAA//b/+///AAAAAAAQABgAFAAAAA0AAP/UAAAAAP/p/+MAAAAVAAf////3AA//1QAAAAT/w//vAAAAAwAAAAT/7gAIAAIACQATAAD/9wAHAAD////z//j/9gAAAAUACgAA//7/9//aAAAAAf/yABX//P/4/9EAAP/+AAMAAQAZAA4AAAAA//gACf/+AAD/+f/qAAAAAP/q/+v/+f/r//D//gAA//8AAP/6AAkABv/uAAEAD//5/8z//AAPAAD/2f/1//gAAAAAAAkAEwAPAAAAAgAAAA8AAP/+AAYAAP/PAAwAAv//AAAACwARAAD//gAG/+kAAP//AAD//f/r//7//gAGAAwAAP/ZAAUAAP///+H/6AAAAAAAAAAC/////P//ABMAAAAE//kAGv/9//AABwAA//MABv/9AAwAFAABAAgBNAE6AUwBTQFRAa8BvQG+AAIABwE0ATQABgE6AToABwFMAUwABQFNAU0ABAFRAVEAAgGvAa8AAwG9Ab0AAQABAAIAAAAIAAI6FAAEAAA+MDrYAE8AXgAAAAD/5wAO/+X/7v/9//H//v/+//L/8v/9//H/r//3//b/zf/+//7/2wAQ//P//wAK/77/zf/p/+X/5P/x/+f/+wAAAAD/v//G/8YAAP/DAAwAEv/d/64AAAAC/9r/xv/A//8AAAAIABYAAP/NAAn/9QAA/+gAAP/G//3/0v/3AAIACf////L////+AAD/0//l/90AAP/J/+T/vf/z//4AGQAA//b/+wAI/+H/wQARAAD/0wAI/9n/ywAJAAAAAAAAAAD/9AAA//8AAAAAAAAAAAAA//8AAP+///z//P/fAAD////5AAEAAgAAAAH/w//pAAAAAAAAAAT/8wAKAAAAAP/s/+z/7wAA//AAAAAD/+r/z///AAH/9P/w/+T//f/9AAUAAgAA//f//wAA//7//wAA/+4AAf/6//MACgASAAAABAAAAAAAAP/t//z/6AAA//D/7f/eAAD/9QAEAAD/7v/qAAn/0v/gAAAAAP/5AAD/9v/yAAAAAAAA//EACP/+//L//v/z//YAAP/z//b//v/0AA//8P/+AA8AAP////0AFv/zAAAABQAR/9v/8v/+//H/8v/o//kAAAAAAA4ACgADAAD//gAHABf/4wAKAA0AAv/kAA8AGgAkABwAAgAUAAD/+wAH//oAAwAAAAD/+v/5//L/9gACAAYAHv/zACIAAwAA/93/9v/bAAAAAAAEAAD/+QAVABUAAAAVAAQAEAAYAAMABQAAAAQABwAC//oAAgAAAAAAAP/6//4AAwACAAQAAAAAAAQABAACAAT/wv/9AAD/6AAAAAYAAAAAAAYAAP///8H/9AAAAAD//gAE//gAGAAAAAD/7//v//EAAP/3//YAAgAA/9T/7AAN//3/9P/q/+T/5wAK//4AAP/9//4AAP//AAAAAP/3AAQAA//4AAwAFQABAAQAAAAA//3/9wAAAAAAAP/6/+7/6AAD//EABQAA/+7/3AAM/9P/6f/+AAAABf//AAH/+P/yAAAAAAAB/+YAAAADAAD//wAAAAAAAAAAAAD////e//8AAP/0AAAAAAAA//UAAAAA////7P/zAAIAA//+AAX/+QAQAAAAAP/6//7//wAA//z/3//3//T/5//Y//7//P/9//z/6//sAAn/7AAAAAD/4/////0AAAAA//sABAAG//UACwAUAAQACgAJAAP//v/3AAD/8AAA//7////yAAT/7P/zAAD/+v/XABL/6f/p/+kAAAAG//4AAgAA//wAAAAA////8v/9AAAAAAAAAAAAAAAAAAAAAAAD/77/+wAA/+cAAAAE//3//AAAAAD/+/+6//X//wAA//4AEv/4ABcAAAAA/+f/6//uAAD/9QAA//7/9f/S/98AA//+//P/6P/e/+sAAP/2AAD//P/yAAD//P//AAD/9wAOAAD/9gAMABQAAAATAAAAAP/8//gAAP/xAAD/+v/u/+YAAP/q//oAAP/o/9UACP/N/+n/9AAAAAL//AAA//b/6wAAAAD////lAAEAAP/5//3/+wAA//z//f/8//4AA//4AAAABAAA//4AAf/+//3/9//8AAH/5v//AAD/9wAA//AABQAAAAAAAwAHAAEAAP/9/93/9v/uAAYAAP/9//IABgAZAAkAAgAA/+0AAAAA/+T/////AAEAAP/5//7////2AAQACgASAAIAEAAAAAD/7//7/+sAAP//AAL//f//AAL/8wAAAAL/9wAHAAD//f/iAAD//f/+//sAAP//AAAAAAAA//7//QAAAAAAAAAAAAAAAAAAAAAAAP/c//v////wAAAAAAAAAAAAAAAAAAD/5v/nAAAAAQAAAAD/8wAIAAAAAP/3//v//AAA//YAAAAAAAD/5//4AAD/8v/9//f/9v/1AAH//wAA//f/+//9//0AAAAA//AAAP/6//IACAARAAAAAAABAAAAAP/w//f/6AAA//T/9//xAAD/8QAAAAD/+//lAA3/5v/n//4AAP/5//7/9QAAAAEAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAD//wAAAAD//gAAAAAAAAAAAAAAAAAAAAAAAAAA/+UAAAAA//T//v/wAAUAAAAAAAAAAwAAAAD/+//8AAD/6wABAAAAAP/wAAIAGAANAAgAAAAAAAD//v/5AAAAAAAAAAD/+AAA//v/9QAEAAwADwAAABEAAgAA/+3/+f/oAAD//QAA//oAAAAKAAAAAAAA//4ADAAA//wAAAAA//oAAP/5AAAAAAAAAAAAAQAA//YAAAAAAAAAAAAAAAAAAAAAAAD/wP/8//3/4QAAAAD/+AAAAAEAAAAA/8X/6wAB////9gAE//MADAAAAAD/6f/r/+4AAP/wAAAAAAAA/8//+wAA//X/7//k//r/+wADAAAAAP/3//0AAP/9//8AAP/tAAL/+v/1AAkAEf//AAUAAAAAAAD/7v/7/+oAAP/x/+z/3wAA//IAAwAA/+r/5gAI/9P/3AAAAAD/+f////f/8v//AAAAAP/d/68ABP/i/73/v//cAAD/vv/f/+D/3AAh/9//8AAWAAP/0f/0AAv/w//G/+sAHf+y/+D/+P/n/8H/0v/UAAAAAAAfAB4AFQAA//z/m//Q/9UAGQAI/7f/tQAXADEAIgAa/+n/tAAAAAP/k//qAAP//gAAAAT/u//q//n/5//tAAD/wgAvAAYAAP/EAAD/zgAAAAUABQAF/+gAEf+zAAAAFwAG//MAGwAS/64AAAAH//QAB//3//AAAAAAAAD/+//8AAIAAAAAAAAAAAABAAEAAAAA/97//f////AAAAABAAIAAAAAAAIAAP/o/+gAAAACAAAAAf/0AAoAAAAA//j/+//8AAD/9gAAAAAAAP/o//QAAP/y//3/+P/4//QAAwAAAAD/9//5//3//QAAAAD/8QAA//z/8wAKABIAAAABAAIAAAAA//H/9//pAAD/9P/4//IAAP/zAAEAAP/8/+kAE//m/+n//wAA//n////2AAEAAQAAAAEAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAA//7AAAAAAAAAAAAAAADAAAAAAAA////5wAAAAD/9gAA//MACAAAAAAAAwAA//8AAP/4//oAAP/pAAAAAAAA//EAAAAaAAsACQAA//4AAP/7//v//QACAAAAAP/2AAD/+//0AAgAEQACAAAADgAAAAD/8P/5/+gAAP/4//3/+AAAAAr//wAAAAD//QAN///////+AAD//f////gAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAA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B//7//wACAAQABgABAAEABAAEAAQABv/M//wAAP/qAAEACf//AAEABv//AAP/x//pAAIAAP/8//7/+QARAAAAAP/z//b/9gAA//oAAAAGAAD/3f/0ABD/8P/2//D/7P/qABAAAgAA//sAAAAA//8AAAAA//QACAAD//wADwAZAAL//gAAAAH//v/z//3/9AAA//P/+P/kAAP/8QAKAAD/8//kABX/2v/ZAAAAAP/6AAD/9v/9//oAAAAAAAD/2wABAAf/+//9AAAAAP/8//z/+//9//QAAgAAAAAAAAAAAB7/+v////0ACP/6/+4AAAAVAAD//P/9AAYAAAAAAA4AFAASAAAACgAA/+YAAP///+r/7f/yABQAEf////YAE//nAAAAA//YAAAAAQAGAAAAAf/3AAsAAQAQABoAAv/8AAkAAP////X//gAAAAAAAwAIAAAAAP/3/+oAAAAA//QAHf/7//f/4QAAAAIAAwABABwACgAA//8AAf/l//0AAP/+//8AAAAA///////+////3P/+AAD/8wAAAAAAAP/yAAD////+/+n/8wABAAP//gAF//kADgAAAAD/+v/+//8AAP/8/9z/8P/0/+j/1v/9//z//f/7/+n/6QAI/+kAAAAA/9/////7AAAAAP/7AAQAB//yAAoAEwADAAkABwAA//3/+AAA//AAAP/+////8gAC/+z/8AAA//r/1QAM/+j/5//mAAAABv/+AAIAAP/6AAAAAP//AAkAAAAAAAD//wAAAAEAAAAAAAD////m//wAAf/3AAEAAwAAAAsAAAAAAAH/9P/tAAAAAP/8AAv/8wAPAAAAAP/5/////gAA//X//wAS//T/7AAAAAb/+v/+//z////+AAYAEQAA//oAAgAAAAAAAAAA//UAE//6//oACAAOAA0AEwAQAAEAAP/w//3/7gAA//n/+P/wAAP/+gALAAAAAP/wAAf/9v/qAAMAAP/8AAX/+gAAAAAAAAAAAAAAA//9AAD////9AAAAAP////8AAP/9/+3//QAB//gAAAAAAAAAEf//AAAAA//6/90AAAAE//b/7P/y//0AAAAA//4ABQACAAD/+wAAAAn/4f/yAAIAAP/iAAT//gABAAAADwALAAD/+QAA//0AAQAAAAD/9f//AAD/+wAIAA8ACP/tAAsAAAAA/+gAAP/tAAD/+gAA//gAAAABAA0AAAAD//sAG//9/+sABgAA//YADv/2AAAABQAAAAD/8QAN////9P/+//X/+QAD//b/+QAA//cADv/zAAQAEgAA/////wAa//YAAAAJABf/tP/1AAT/6v/S/+T/9AAAAAAAGgAcABIAAP/9AAgAIv/aABAADwAF/7sAFQApACsAHQAJABwAAP/9AAgAAAAL//4AAP/6//r/8//+AAQACQAA/9QAJwAGAAD/z//qAAAAAAACAAkAAP/9ABIAGQAAABwAAwAXABYAAgAJAAD/+QAUAAH//wADAAAAAAAA//P//QABAAEAAwAAAAAAAAAAAAEAA//C//wAAP/oAAAABv////4AAAAA//3/xP/1AAAAAAAAABH/+QAXAAAAAP/q/+3/7wAA//UAAP/+AAD/1f/jAAP//f/0/+n/4f/nAAP/+wAA//z/9AAA//8AAAAA//YADQAA//YADAAVAAIAEgAAAAD//f/3AAD/8QAA//n/8f/lAAL/7P/8AAD/6v/YAAr/0v/n//YAAAAC//wAAP/4/+8AAAAAAAAAA//+AAD//f/2AAAAAP/3//f//f/2/+4AAAAA//4AAAAAAAkABP/9AAIAC//4/+kAAAANAAD/8//z//4AAAAAAAAACAAKAAAAAAAAAA4AAP/4AAAAAP/tAAoAAgAYAA8AEAAuAAD//QAI//MAAAACAAD/+//0AAP/+QAGAA8AAv/0AAMAAAAX//D/+//yAAD//gAA//0AAgAPABMAAAACAAAAL//5/+8AGwAA//0AA//6AAoAEgAAAAAAAP/IAAAAA//4//wAAAAA//v/+//8//z/+f//AAQAAAAA//8AG//6//z//AAI//z/5QAAABYAAP/o//r//QAAAAAAFwAYABoAAAAUAAD/ywAA//7/6P/N/+oAGAAK//7//wAI/7oAAAAC/6D/7gAAAAsAAAAH/9sADQACAAwAFQAD/+gACQAA////8P/7//kAAAAJAAkAAP////r/uwAAAAT/9QAZ//z/+v/PAAAAAAAHAAAAGgAPAAAAAAAAAAP//gAA//7/+wAAAAD/+v/6//7/+//u//8AAAAAAAD//wAPAAb//AABAAz/+f/iAAAAD//6/+n/9P/9AAAAAAAFAAoADQAAAAYAAAAPAAD/+AAAAAP/6QANAAb/////ABYAFAAA//8ABgAAAAIABAAA//3/9wAG//0ACQATAAD/6QABAAAAAP/t//4AAAAAAAEAAf/+////+QAVAAAAAP/1ACr//P/wAAYAAP/+AAj//AAPABEAAAAA//AAGP/w//gABP/5///////6//oABP/5/6X/9v/9/9X//wAE/+EAJv/6AAEAEP+0/6b/8v/t/+b/wv/f//oAAAAA/6z/j/+RAAD/dgAVADb/4P+4AA8ADv+J/4z/yQABAAEAEAAwAAD/dgAVAAD////rAAD/cP/6/3T//QAOABUAAP/EAAD////+/6IAAP/bAAD/df/l/4P/+//+ACYAAP/6//sAHv/l/3gAFAAA/3gAHP9z/84ADwAAAAD/6v++AAH/7P++/7v/5v///7r/3P/c/9cAHf/o//sAHP///8P/+gAS/8X/v//2ACn/of/v//7/5f+r/87/0wAAAAAAIgAWABIAAP///6z/0P/VABgADf/H/6QAGwAqACAAE//m/8QAAP///6UAAAAA//sAAAAA/77/7f/7/+X/6QAq/6wAIgAA////sv/j/8sAAAAEAAMACP/tABH/wgAAABMABv/pACMAD/+4AAAAA//8AAL//f/6AAD/5f/z/83/5v/s/+QAAP/n/+f/9QAAAAAAAP+zAAD/4v/Y/+f/7wAA/73/9QAA/9X/of/t//P/7gAAAAD/5P/9AAAAAP/I/9b/1//fAAAAAP+xAAD/yv+lAAAAAP/jAAD/vv/L//H/vf/hAAAAAAAAAAAAAP/qAAD/+wAAAAD/9AAAAAD//QAAAAAAAAAAAAAAAP/nAAD/2wAA/+7/zv/CAAD/zgAA//r/rQAA/8//zQAA/9EAAAAA/84AAAAA/+gAB//9/+z/+v/q//wAAP/s//D//f/uAAb/8f/5AAMAAv/6//MAG//sAAAABAAM/7n/6//2/+P/5//f//MAAAAAAA4ACAADAAD/8QAAAA7/1wACABgAAP/KAAQAHAAjABgABAAQAAD/9AADAAAABf/5AAD/9f/8/9b/+f/+AAIAAP/oACU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v/7AAgADAARAAgADAAEAAn/5f/0AAwAFAAA//7//QAB//8AC//x//v/+wAEAAcAAAAOAAD/8f/6AAAAAP/3AAD/6//uABgAAwAIAAAACAAAAAAAFwAJAAAADwAAAAAAFQAAAAD//gAAAAAABAAAAAAAAAAMAAD//wAAAAj/+AAMABH/+wAAACL/6gAAAAMACwAAAAcAAAAKAAYAAAAFABD/+wAFAAwACAAXAAgACQAWABYACAAX/9QACQAE//cACAAOAAb//QAXAAv//f/T//0AEQAMAAAAFAADABH/8v/7/9X/5v/o//f//AAA//0AAP/o/+cAAAAA/+oAAP/k/+8ABP/2AAYAAP/1AAAAAAAPAAoAAAAlAAAAAAABAAAAAAAUAAAAAAAHAAAAAAAA//8AAP/4AAAADv/1//sAB//3AAAAC//eAAD/+wAGAAD/+wAA////+QAAAAD/9wAJ//f///////QAAAAA//T/9P////T/6//8AAD/+gAA//8ABAAI//YAAQAL//f/yf/5AAoAAP/j/+z/+wAAAAAAAQAIAAQAAP//AAAAEgAA//IABAAA/80AAAAA/////wANABEAAP/3AAn/8wAB//wAAP/2//r/+v/6AAEAB////+UAAQAA////3P/m/+oAAP/+AAD//P/8//8AFAAAAAD/+wAY//n/6AAOAAD/6gAI//gAAwAUAAAAAAAC/+cAAAADAAEAAAAAAAAAAAAAAAAAAP/g//8AAP/3AAAAAQAA//YAAAAAAAD/7//zAAEAAwAAAAf/+QARAAT////7//7////6//wAAP/4AAD/6f/cAAAAAP/+AAD/7//uAAn/7gAAAAD/5QAAAAAAAAABAAAABQAAAAAADAAAAAAACwAAAAD//wAAAAAAAAADAAD//wAAAAT/7f/0AAP/+wAAABP/7AAA/+n//wAA//4AAAAA//0AAAAA//r/vwAE//v/7P/n//cABP/k/+r/8f/rAB//+P//ACIAA//2AA4AC//q/+0AAAAi/8f/+wAOAAD/lv/y/9UAEQAeAB8AFgASABMACwAA/9MAAAAfABEAAAAAABQAAAAkAB7//v+m//wAAP9XAAAAAAAAAAAAAP/HAAAAAP/xAAAAAP+YAA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AAAAAYAAP/4AAD/9v/hAAEAAP/v////9QAGAAAAAP/5/////wAA//T/8/////H/7P/uAAb/8f////n/9f/zAAf/+QAA//H//QAA//0AAAAA/+wACP/1//0ABwAOAAYAAAAHAAD////t//P/8QAA//P/+f/xAAD/8QAAAAAAAP/oAAT/9//r//kAAP/sAAP/8wAA//0AAAAA//b/0QAC//f/4f/z//AAAP/z//T/5v/zABj/8v/8ABgAAv/v//8ADP/y/+v/8gAi/+f/9wAA//X/+//x//0AAAAAAB0AFAAOAAAAAP/D/9f/6gASAAn/5v/yABkAJgAbABL/+f/HAAAABP+CAAAAAf/9AAAABP/3//v/+f/5//4AAP/8AB8AAwAA/+n/9v/eAAAABgAHAAT/8wAP/8kAAAAOAAP//gAcAAv/zgAAAAz/+gAI//7//AAAAAP/9QAY//P/+QAE//kAAAAA//r/+gAE//n/t//3//3/2QAAAAQAAAAmAAAAAAAW/8YAAAAAAAAAAP/fAAD/+gAAAAD/0P/Z/9gAAP/QABUANv/g/8QADwAAAAAAAAAAAAAAAQAQADAAAP/QABUAAAABAAAAAP/I//r/2wAAAA4AAAAA/+IAAAAAAAAAAP/mAAAAAP/JAAD/v//7AAAAJgAA//sAAAAeAAD/sAAUAAD/0wAA/8gAAAAAAAD//gAE/9QAAP////3//v/8/////v/+//3//v/3//4AAwAA//8AAAAN//n/////AAD//P/2AAUADQAA/////AAKAAAAAAAMABUAEgAAAAn/w//P//b//f/p/+X//AAVAAkAAf/3AA7/vAAAAAj/mQAA//sACQAAAAX//AAX//0ADwAYAAf//wAN/////f/7AAD/+AAAAAYABQAA//3/9f/HAAAAAv/sAB3//v/9/9IAAAAKAAMABgAJAAUAAAAB/+f/rgAG/+v/0f/S/+cAAP/S/+T/2f/gABn/6f/2ACIAAP/h//8ABv/W/9f/9AAY/8r/6QAA/+j/3P/h/+gAAAAAAB8AIAAUAAD//f+n/9H/1gASAAT/x//QABcAKgAZABH/8//IAAAAAf+nAAAAAf/9AAAAAP/U//T/+P/x//cAAP/cAC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6//YAO//wAEf/8ABI//AASv/wAE//8ABQ//AAVv/1AG//9QBw//AAdP/6AHr/+QB9//MAlv/1AKL/+QCj/+cAu//1AMH/6gDD/+oAxf/mANr/6QDd//EA4v/xAOr/8gDu//UA8//wAPT/8AD6/+cBFP/wARj/7QEh//QBof/wAaL/7gG4//YAHQABAAAAIwAAADkAAABHAAAAVgAAAHQAAAB6AAAAfQAAAJEAAACWAAAAlwAAANsAAADmAAcA6AATAPQAAAEYAAABOgAAAX3/9AF+/+4Bf//sAYD/6wGB/+kBgv/xAaIAAAGjAAABpgAAAa8AAAHIAAABywAAAAYAOQAAADr/9ADmAAYA6AAOAU0ACAGuABIAGAA5AAAAav/zAN//+ADhACEA5gAQAO4AAAEh//UBRf/3AU0ACQFPAAABUv/4AVP//QF8/6EBff+vAX7/rQF//8IBgP+VAYH/uwGC/6IBg//PAYT/rAGF/68Brv/9Acr/7gACAaIAMQGkACUAAQA/AAQAAQChABcAAQBv//oADwAa//EAOQAAADr/+ABqAAAAb//6AHn//QDhAB0BTQAOAU8AAAFS//4BU//9AX//9AGD//sBrv//Acr/8gAFADr/8QFN//0BUgAAAX7/3gF//+sAAgDf//8A5gAAAAoAbwAGAN///wDmAAABTQAQAU8ACQFSAAwBfP/yAYD/1AGC//IBrgAQAAYAOQAAADr/8QDmAAIBTQAMAVIAAwGA/9QAAQE0//sAAgBW/+cBR//XAAUARwAYAaEAHgGiADEBpAArAbgAEAABAG//8QAEABAADgBv//EAeQABAJD/sgABAJf/vAACAHr/wgCX/7wABQBv//MAev/CAHz/wgCQ/7kAl/+8AAIAb//xAKEAEAAPADX/6AA5AAAAOv/fAFb/5wBv//EAeQABAOH//wFH/9cBSP/LAU0AAAFP//YBUv/4AVP/8wHK//AB/v/zAAA=)format("truetype");font-style:normal;font-weight:600;font-display:swap}:root{--bg:#fff;--card:#f6f6f8;--ink:#23242a;--muted:#6e6f7b;--line:#e6e6ec;--accent:#7142e8;--accent-ink:#fff;--accent-soft:#ede6fc;--status-live:#416d48;--danger:#c13e51;--danger-ink:#fff;--float:#fff;--chrome:#f8f8fa;--shadow:0 16px 48px #1c182821, 0 2px 8px #1c182812;--shadow-soft:0 1px 3px #1c182812;--written:#50515c;--heading:#292a32;--scrim:#14121c2e;--pill:#232229;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root:not(.widget){--bg:#fff;--chrome:#f3f3f3;--card:#f6f6f6;--row-hover:var(--ink)}@supports (color:color-mix(in lab, red, red)){:root:not(.widget){--row-hover:color-mix(in srgb, var(--ink) 5%, transparent)}}:root:not(.widget){--float:#fff;--ink:#29292c;--muted:#606066;--heading:#29292c;--written:#54545a;--line:#e6e6e8;--accent:#6f00ff;--accent-ink:#fff;--accent-soft:#f1e6ff;--playback-bg:#e5d4ff;--playback-ink:#35105f;--primary:#6f00ff;--primary-hover:#6200e0;--control:#ececee;--control-hover:#e4e4e7;--control-pressed:#dcdce1;--control-border:transparent;--selected:#e4e2e8;--focus:#6f00ff;--danger:#b63c4d;--danger-ink:#fff;--danger-soft:#f4e5e8;--danger-control-ink:#a13041;--scrim:#16161938;--shadow:0 16px 44px #17171a1a, 0 2px 6px #17171a0d;--shadow-soft:0 1px 2px #17171a08}html,body,#root{height:100%;overflow:hidden}html.main-window,html.main-window body,html.main-window #root{background:0 0}body{background:var(--bg);color:var(--ink);font-family:var(--font-sans);letter-spacing:-.012em;-webkit-font-smoothing:antialiased;font-size:13px}.main-window *{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:auto}.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:var(--muted) transparent}@supports (color:color-mix(in lab, red, red)){.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:color-mix(in srgb,var(--muted) 45%,transparent) transparent}}@media (prefers-contrast:more),(forced-colors:active){.main-window :is(*,:hover,:focus-visible,[data-scrolling]){scrollbar-width:auto;scrollbar-color:auto}.main-window ::-webkit-scrollbar{width:6px;height:6px}.main-window ::-webkit-scrollbar-thumb{background:var(--ink);border-radius:3px}.main-window ::-webkit-scrollbar-track{background:0 0}}.drag{-webkit-app-region:drag}.no-drag{-webkit-app-region:no-drag}html.widget,html.widget body,html.widget #root{background:0 0}html.widget{--pill:#232326;--pill-ink:#f7f7fa;--accent:#b780ff;--pill-accent:var(--accent);--widget-line:#48484d}.widget-pill{background:var(--pill);border:1px solid var(--widget-line);box-shadow:none;touch-action:none}.widget-pill:focus-visible{outline:2px solid var(--pill-accent);outline-offset:-3px}.widget-btn{color:#fff;background:#6f00ff;transition:transform .12s,background-color .12s}.widget-btn-secondary{color:var(--pill-ink);background:#39393e}.widget-btn:disabled{opacity:.55}.widget-retry{color:#ffb0bd}.widget-btn:focus-visible{outline:2px solid var(--pill-ink);outline-offset:2px}.widget-btn:active{transform:scale(.97)}@media (hover:hover) and (pointer:fine){.widget-btn:not(:disabled):hover{background:#8120ff}.widget-btn-secondary:not(:disabled):hover{background:#48484f}}.widget-morph{visibility:hidden;isolation:isolate;-webkit-user-select:none;user-select:none;color:var(--pill-ink);cursor:default;position:absolute;overflow:hidden}.widget-morph[data-open=true]{cursor:grab}.widget-details{z-index:2;position:absolute;top:0;left:0}.widget-details>*{margin:0;position:absolute;top:0;left:0}.widget-time{white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.8;font-size:10px;font-weight:500;line-height:15px}.widget-preview{color:var(--pill-ink);transform-origin:50% 0;cursor:default;flex-direction:column;padding:0 4px 12px 12px;font-size:14px;line-height:21px;display:flex;position:absolute;top:52px;left:0}.widget-preview[aria-hidden=true]{visibility:hidden;transition:visibility 0s linear .25s}.widget-preview[aria-hidden=true] *{animation-play-state:paused!important}[data-testid=widget-wave]{will-change:transform}.widget-preview[aria-hidden=true]{pointer-events:none}.widget-preview-conversation{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;flex:auto;min-height:0;padding:8px 4px 4px 0;overflow-x:hidden;overflow-y:scroll!important}.widget-preview-conversation::-webkit-scrollbar{width:4px}.widget-preview-conversation::-webkit-scrollbar-thumb{background:#ffffff50;border-radius:3px}.widget-preview-turn{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:16px;display:flex}.widget-preview-turn[data-me=true]{align-items:flex-end}.widget-preview-speaker{color:#b8b8c0;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding-inline:8px;font-size:12px;font-weight:500;overflow:hidden}.widget-preview-bubble{overflow-wrap:anywhere;background:#ffffff0d;border-radius:12px;max-width:100%;padding:8px 12px}.widget-preview-turn[data-me=true] .widget-preview-bubble{background:#ffffff17}.widget-preview .live-words{color:#c3c3ca}.widget-preview .live-dots i{background:#c3c3ca}.widget-preview-empty{color:#b8b8c0;padding:12px 6px;font-size:13px}.widget-preview-latest{border:1px solid var(--widget-line);background:var(--pill);bottom:12px;border-radius:8px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;display:flex;position:absolute;inset-inline-start:50%;translate:-50%;box-shadow:0 3px 10px #0003}[dir=rtl] .widget-preview-latest{translate:50%}.widget-preview-warning{background:#ffffff06;border-radius:10px;flex:none;margin:0 8px 12px 0;padding:10px 12px;font-size:12px;line-height:18px}.widget-settings{cursor:pointer;background:#ffffff08;border:1px solid #ffffff20;border-radius:6px;min-height:28px;margin-top:10px;padding:4px 9px;font-size:11px;font-weight:500;display:block}.widget-settings:hover{background:#ffffff14}.widget-preview button:focus-visible{outline:2px solid var(--pill-accent);outline-offset:1px}.widget-preview .page-loading{--control:#ffffff14}@media (prefers-reduced-motion:reduce){.widget-btn{transition:none}}.note-summary-actions{align-self:center;margin-inline-start:auto}.note-view-menu{width:28px;height:28px;color:var(--muted);border-radius:4px;place-items:center;display:grid}.note-view-menu:hover,.note-view-menu[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip,.note-record-action{height:32px}.note-chip,.share-btn,.person-remove{transition:background-color .14s,color .14s,opacity .14s,box-shadow .14s}.note-chip:hover,.note-chip[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip:focus-visible,.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.share-btn:hover{background:var(--control-hover)}.person-remove{opacity:0}.person-row:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.person-row:hover{background:color-mix(in srgb, var(--line) 45%, transparent)}}.person-row:hover .person-remove{opacity:1}.person-row:has(:focus-visible) .person-remove{opacity:1}.menu-entry{transform-origin:100% 0}.menu-entry[role=menu]{color:var(--ink);border-color:var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:9px;padding:5px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]){border-radius:5px;min-height:32px;padding:6px 9px;font-size:12px;line-height:20px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):hover:not(:disabled){background:var(--control-hover)}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):focus-visible{background:var(--selected);outline:none}.menu-entry[role=menu] :is([data-testid=note-delete],.folder-picker-new){border-top:1px solid var(--line);border-radius:0 0 5px 5px;margin-top:4px;padding-top:10px}.people-add-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.people-add-field input:focus-visible{outline:none}.menu-entry[data-anchor=start]{transform-origin:0 0}[dir=rtl] .menu-entry[data-anchor=start]{transform-origin:100% 0}[dir=rtl] .menu-entry[data-anchor=end]{transform-origin:0 0}.menu-entry[data-anchor=bottom-start]{transform-origin:0 100%}[dir=rtl] .menu-entry[data-anchor=bottom-start]{transform-origin:100% 100%}.menu-entry[data-pointer=true]{animation:.14s cubic-bezier(.2,.8,.2,1) menu-in}@keyframes menu-in{0%{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.note-chip,.share-btn,.person-remove,.menu-entry[data-pointer]{transition:none;animation:none}}.chip{border:1px solid var(--line);border-radius:6px;align-items:center;gap:6px;padding:4px 10px;display:inline-flex}.ghost-btn{color:var(--muted);border-radius:6px;align-items:center;gap:5px;padding:4px 8px;transition:color .12s,background-color .12s;display:inline-flex}.ghost-btn:hover,.ghost-btn[aria-pressed=true]{color:var(--ink);background:var(--control-hover)}.switch-marker{transition:inset-inline-start .22s cubic-bezier(.2,.8,.2,1)}.rec-dot{animation:1.6s ease-in-out infinite rec-pulse}@keyframes rec-pulse{50%{opacity:.35}}.panel-in{animation:.2s cubic-bezier(.2,.8,.2,1) panel-in}@keyframes panel-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:none}}[dir=rtl] .panel-in{animation-name:panel-in-rtl}@keyframes panel-in-rtl{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:none}}.skeleton{background:linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--line) 100%)}@supports (color:color-mix(in lab, red, red)){.skeleton{background:linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--card)) 50%, var(--line) 100%)}}.skeleton{background-size:200% 100%;animation:1.4s ease-in-out infinite shimmer}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.writing-label{animation:1.8s ease-in-out infinite rec-pulse}.note-prose,.note-empty{font-size:15px;line-height:1.7}.note-prose{color:var(--ink);caret-color:var(--accent)}.note-empty{color:var(--muted)}.note-prose>*+*{margin-top:.4em}.note-prose h1,.note-prose h2,.note-prose h3{font-weight:600;line-height:1.4;position:relative}.note-prose h1{margin-top:1.5em;font-size:19px}.note-prose h2{letter-spacing:-.015em;margin-top:1.7em;font-size:15px}.note-prose h3{margin-top:1.3em;font-size:15.5px}.note-prose>:first-child{margin-top:0}.note-prose h1+ul,.note-prose h2+ul,.note-prose h3+ul,.note-prose h1+ol,.note-prose h2+ol,.note-prose h3+ol{margin-top:.35em}.note-prose ul,.note-prose ol{padding-inline-start:1.15em}.note-prose ul{list-style:outside}.note-prose ul ul{list-style:none}.note-prose ul ul>li{position:relative}.note-prose ul ul>li:before{content:"–";color:var(--muted);position:absolute;inset-inline-start:-1.1em}.note-prose ol{list-style:decimal}.note-prose li{margin-top:.25em;padding-inline-start:.15em}.note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.note-prose li::marker{color:color-mix(in srgb, var(--ink) 70%, transparent)}}.note-prose strong{font-weight:600}.note-prose a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.note-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--muted);float:inline-start;pointer-events:none;height:0}.note-prose.enhanced{color:var(--written)}.note-prose.enhanced h1,.note-prose.enhanced h2,.note-prose.enhanced h3{color:var(--heading)}.note-prose.enhanced strong,.note-prose .mine{color:var(--ink)}.chat-answer h1:before,.chat-answer h2:before,.chat-answer h3:before{content:none}@keyframes fade-in{0%{opacity:.4}to{opacity:1}}@media (prefers-reduced-motion:reduce){.switch-marker,.panel-in,.rec-dot,.skeleton,.writing-label{transition:none;animation:none}}.chat-in{animation:.2s cubic-bezier(.2,.8,.2,1) both chat-in}@keyframes chat-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.fw{animation:.14s ease-out both fade-in}@keyframes fw{0%{opacity:0;filter:blur(2px)}to{opacity:1;filter:none}}.chat-answer{font-size:14.5px;line-height:1.6}:where(.stream-caret,.streaming .note-prose):empty:after,:where(.stream-caret,.streaming .note-prose)>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after{content:"●";vertical-align:.1em;color:var(--muted);margin-inline-start:.3em;font-size:.7em;animation:2s cubic-bezier(.4,0,.6,1) infinite caret-pulse}@keyframes caret-pulse{50%{opacity:.35}}.swap{flex:none;place-items:center;display:inline-grid}.swap>*{grid-area:1/1;transition:opacity .18s cubic-bezier(.22,1,.36,1),filter .18s cubic-bezier(.22,1,.36,1),transform .24s cubic-bezier(.34,1.3,.64,1);display:inline-flex}.swap>[data-on=false]{opacity:0;filter:blur(2px);pointer-events:none;transform:scale(.4)}.swap-text{display:inline-grid}.swap-text>*,.swap-text:after{grid-area:1/1}.swap-text[data-widest]:after{content:attr(data-widest);visibility:hidden;height:0;overflow:hidden}.swap-in{animation:.2s cubic-bezier(.22,1,.36,1) both swap-in}@keyframes swap-in{0%{opacity:0;filter:blur(2px)}}.follow-arrow{transition:transform .24s cubic-bezier(.34,1.3,.64,1)}.follow-arrow[data-up=true]{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.swap>*,.swap-in,.follow-arrow{transition:none;animation:none}}.accordion{grid-template-rows:0fr;transition:grid-template-rows .22s cubic-bezier(.22,1,.36,1);display:grid}.accordion[data-open=true]{grid-template-rows:1fr;transition-duration:.3s}.accordion>*{opacity:0;filter:blur(2px);visibility:hidden;min-height:0;transition:opacity .14s ease-out,filter .14s ease-out,visibility .22s;overflow:hidden}.accordion[data-open=true]>*{opacity:1;filter:blur();visibility:visible;transition:opacity .22s ease-out 40ms,filter .22s ease-out 40ms,visibility}@media (prefers-reduced-motion:reduce){.accordion,.accordion>*{transition:none}}.streaming .note-prose>:last-child>br.ProseMirror-trailingBreak:only-child{display:none}.summary-surface,.summary-waiting{position:relative}.summary-surface[data-streaming=true]{isolation:isolate}.summary-surface[data-streaming=true] .note-prose{z-index:1;position:relative}.summary-ink-layer{pointer-events:none;width:100%;height:100%;fill:var(--accent);position:absolute;inset:0;overflow:hidden}.summary-surface:not([data-streaming=true])>.summary-ink-layer{display:none}.summary-ink{color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.summary-ink{color:color-mix(in srgb, var(--accent) var(--ink-fresh,0%), var(--ink-target))}}.enhanced{--ink-target:var(--written)}.enhanced :is(h1,h2,h3){--ink-target:var(--heading)}.enhanced :is(strong,.mine){--ink-target:var(--ink)}.enhanced a{--ink-target:var(--accent)}.summary-waiting{min-height:22px}.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--line) 100%);inset-inline-start:0;border-radius:4px;width:142px;max-width:100%;height:12px;position:absolute;top:5px}@supports (color:color-mix(in lab, red, red)){.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--card)) 50%, var(--line) 100%)}}.summary-heading-bar{pointer-events:none;transform-origin:0;background-size:200% 100%}.summary-waiting>.summary-heading-bar,.summary-surface[data-waiting=true]>.summary-heading-bar{animation:1.6s ease-in-out infinite shimmer}.summary-surface[data-waiting=true] .note-prose:after,.summary-surface[data-waiting=true] .note-prose :after{content:none}@media (prefers-reduced-motion:reduce){.summary-heading-bar{animation:none!important}.summary-ink{color:inherit}.summary-ink-layer{display:none}}.chat-answer>*+*{margin-top:.45em}@media (prefers-reduced-motion:reduce){.chat-in,.fw{transition:none;animation:none}.stream-caret:after,.stream-caret :after,.streaming .note-prose:after,.streaming .note-prose :after{animation:none}}.line-in{animation:.26s ease-out line-in}@keyframes line-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}.bubble{text-align:start;overflow-wrap:anywhere;max-width:min(85%,560px);color:var(--ink);border-radius:9px;padding:5px 10px;font-size:13.5px;line-height:1.5}.bubble-me,.bubble-them{background:var(--control)}.bubble .line{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px}.bubble [data-playing]:before{content:none}.turn-time{opacity:0;transition:opacity .14s}.transcript-turn:hover .turn-time{opacity:1}.transcript-turn:has([data-playing]) .turn-time{opacity:1}.live-words{color:var(--muted)}.live-word{animation:.24s ease-out both live-word}@keyframes live-word{0%{opacity:0}to{opacity:1}}.live-dots{vertical-align:-.1em;align-items:center;gap:3px;height:1em;margin-inline-start:7px;display:inline-flex}.live-dots i{background:var(--muted);border-radius:999px;width:4px;height:4px;animation:1.2s ease-in-out infinite live-dot}.live-dots i:nth-child(2){animation-delay:.2s}.live-dots i:nth-child(3){animation-delay:.4s}@keyframes live-dot{0%,80%,to{opacity:.3}40%{opacity:1}}.line-settle{animation:.42s ease-out line-settle}@keyframes line-settle{0%{color:var(--muted)}to{color:var(--ink)}}@media (prefers-reduced-motion:reduce){.live-word,.line-settle{animation:none}.live-dots i{opacity:.6;animation:none}}.line-playable{transition:background-color .14s}.line-playable:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.line-playable:hover{background:color-mix(in srgb, var(--line) 55%, transparent)}}.line-playable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}[data-playing]{background:var(--playback-bg);color:var(--playback-ink);box-shadow:0 0 0 1px var(--accent);position:relative}@supports (color:color-mix(in lab, red, red)){[data-playing]{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent)}}[data-playing]:before{content:"";background:var(--accent);inset-inline-start:2px;border-radius:2px;width:2px;position:absolute;top:7px;bottom:7px}.line-playable[data-playing]:hover{background:var(--playback-bg)}[data-playing] .line-time{opacity:1;color:var(--accent)}.transcript-turn:has([data-playing]) .line-who:not([data-color]){color:var(--accent)}.name-in{animation:.32s cubic-bezier(.2,.8,.2,1) both name-in}@keyframes name-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.rec-level{transition:background-color .14s,color .14s}.rec-level:hover{background:var(--card);color:var(--ink)}.rec-level[aria-expanded=true]{background:var(--card)}.player-btn{transition:transform .12s,opacity .12s}.player-btn:hover{opacity:.88}.player-btn:active{transform:scale(.92)}.scrubber{appearance:none;cursor:pointer;background:0 0;height:16px}.scrubber::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));border-radius:999px;height:3px}[dir=rtl] .scrubber::-webkit-slider-runnable-track{background:linear-gradient(to left, var(--accent) var(--fill), var(--line) var(--fill))}.scrubber::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);width:11px;height:11px;box-shadow:0 0 0 3px var(--float);border-radius:999px;margin-top:-4px;transition:transform .12s}.scrubber:hover::-webkit-slider-thumb{transform:scale(1.2)}.scrubber:active::-webkit-slider-thumb{transform:scale(1.2)}.scrubber:focus-visible{outline:none}.scrubber:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--float), 0 0 0 5px var(--accent)}@media (prefers-reduced-motion:reduce){.line-in,.name-in{animation:none}}.home-btn,.home-pill,.bar-btn{transition:transform .12s,opacity .14s,background-color .14s,color .14s}.home-btn:hover{opacity:.88}.home-btn:active,.home-pill:active{transform:scale(.97)}.home-pill:hover{background:var(--card)}.bar-btn:hover{color:var(--ink);background:var(--card)}.note-card{transition:background-color .16s,box-shadow .16s,border-color .16s}.note-card:hover{background:var(--card)}.note-title-btn{transition:background-color .14s}.note-title-btn:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.note-title-btn:hover{background:color-mix(in srgb, var(--line) 60%, transparent)}}.note-title-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.card-delete{opacity:0;transition:opacity .14s,color .14s}.card-row:hover .card-delete,.card-delete:focus-visible{opacity:1}.card-delete:focus-visible,.note-card:focus-visible,.home-btn:focus-visible,.home-pill:focus-visible,.bar-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.past-day{content-visibility:auto;contain-intrinsic-size:auto 320px}.search-backdrop{background:var(--scrim)}.search-panel{z-index:101;width:min(580px,100vw - 32px);height:min(560px,74vh);box-shadow:var(--shadow);border-radius:12px;outline:none;position:fixed;top:12vh;left:50%;translate:-50%}.search-input-row{border-bottom:1px solid var(--line)}.command-section{color:var(--muted);padding:12px 12px 6px;font-size:11px;font-weight:500;line-height:16px}.command-row{cursor:default;border-radius:6px;align-items:center;gap:12px;min-height:36px;padding:7px 12px;font-size:13px;font-weight:500;line-height:20px;display:flex}.command-row>svg{color:var(--muted);flex:none}.command-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.search-result-icon{width:28px;height:28px;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:6px;flex:none;place-items:center;display:grid}.search-key{min-width:18px;height:19px;font:10px var(--font-sans);color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;place-items:center;padding:0 3px;display:inline-grid}.search-footer{border-top:1px solid var(--line);color:var(--muted);background:var(--card);flex:none;align-items:center;gap:16px;padding:10px 19px;font-size:10px;display:flex}.search-footer>span{align-items:center;gap:5px;display:flex}.search-panel [data-testid=search-input]:focus-visible{outline:none}.app-modal{z-index:101;border:1px solid var(--line);background:var(--float);width:min(340px,100vw - 40px);max-height:calc(100vh - 40px);color:var(--ink);box-shadow:var(--shadow);text-align:start;border-radius:16px;outline:none;padding:0;position:fixed;top:50%;left:50%;overflow:auto;translate:-50% -50%}.app-modal-backdrop{z-index:100;background:var(--scrim);position:fixed;inset:0;pointer-events:auto!important}.app-modal.dialog-motion,.app-modal.dialog-motion[data-testid=shortcuts-dialog],.search-panel.dialog-motion{box-shadow:none;background:0 0;border-color:#0000;flex-direction:column;display:flex;overflow:visible}.dialog-motion-surface{pointer-events:none;border:1px solid var(--line);border-radius:inherit;background:var(--float);box-shadow:var(--shadow);transform-origin:50%;position:absolute;inset:-1px}.dialog-motion-content{border-radius:inherit;flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:auto}.search-panel>.dialog-motion-content,.app-modal[data-testid=shortcuts-dialog]>.dialog-motion-content{overflow:hidden}@media (prefers-reduced-motion:reduce){.app-modal{transition:none;scale:1!important}}.app-modal[data-testid=delete-confirm]{border-radius:17px;width:min(294px,100vw - 40px)}.app-modal[data-testid=delete-confirm] .modal-copy{padding:21px 19px 20px}.app-modal[data-testid=delete-confirm] .modal-copy p{font-size:11px;line-height:17px}.app-modal[data-testid=delete-confirm] .modal-actions{padding:0 19px 17px}.app-modal[data-testid=delete-confirm] .modal-button{border-radius:8px;min-height:32px}.modal-copy{padding:22px 20px 18px}.modal-copy h2{letter-spacing:-.15px;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:20px}.modal-copy p{color:var(--muted);margin-top:8px;font-size:12px;line-height:18px}.inline-error{border:1px solid var(--line);background:var(--float);color:var(--written);text-align:start;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:20px;display:flex}.inline-error>svg{color:var(--danger);flex:none;align-self:flex-start;margin-block-start:2px}.inline-error>span{overflow-wrap:anywhere;flex:1;min-width:0}.inline-error-action{color:var(--accent);text-underline-offset:3px;border-radius:4px;flex:none;padding:2px 3px;font-size:12px;font-weight:500;text-decoration:underline}.inline-error-action:hover{color:var(--ink);background:var(--control)}.inline-error-action:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inline-error-in-dialog{background:0 0;border:0;border-radius:0;margin:0 19px 16px;padding:0;font-size:12px;line-height:18px}.modal-actions{flex-direction:column;gap:7px;padding:0 20px 20px;display:flex}.modal-button{background:var(--control);border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;width:100%;min-height:33px;padding:6px 12px;font-size:12px;font-weight:500;transition:background-color .12s;display:inline-flex}.modal-button:hover:not(:disabled){background:var(--control-hover)}.modal-button.danger{color:var(--danger-control-ink);background:var(--danger-soft)}.modal-button.danger:hover:not(:disabled){background:var(--danger-soft)}@supports (color:color-mix(in lab, red, red)){.modal-button.danger:hover:not(:disabled){background:color-mix(in srgb,var(--danger-soft) 87%,var(--danger))}}.modal-button.primary{background:var(--primary);color:#fff}.modal-button.primary:hover:not(:disabled){background:var(--primary-hover)}.modal-button:disabled{opacity:.55}@keyframes search-in{0%{opacity:0;transform:translateY(-6px)scale(.99)}to{opacity:1;transform:none}}.search-row[aria-selected=true]{background:var(--selected)}.home-toast{box-shadow:var(--shadow);animation:.16s cubic-bezier(.2,.8,.2,1) search-in}.search-mark{background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:0 1px}@media (prefers-reduced-motion:reduce){.home-btn,.home-pill,.bar-btn,.note-card,.search-backdrop,.search-panel,.home-toast{transition:none;animation:none}}.step-in{animation:.18s ease-out both fade-in}.toggle{transition:background-color .16s}.toggle-knob{transition:inset-inline-start .18s cubic-bezier(.2,.8,.2,1)}.toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){.step-in,.toggle,.toggle-knob{transition:none;animation:none}}.window-bar{background:var(--chrome);border-bottom:1px solid var(--line)}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible{border-radius:5px}input::selection{background:var(--accent-soft)}textarea::selection{background:var(--accent-soft)}.note-prose ::selection{background:var(--accent-soft)}.editor-menu{z-index:40}.editor-toolbar{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:2px;padding:4px;display:flex}.editor-toolbar button{width:30px;height:30px;color:var(--written);border-radius:6px;place-items:center;display:grid}.editor-toolbar button:hover{background:var(--control-hover);color:var(--ink)}.editor-toolbar button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.editor-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.home-content{max-width:880px}.home-content>header{padding-bottom:2px}.calendar-schedule{background:var(--bg)}.calendar-schedule [data-testid=event]+[data-testid=event]{border-top:1px solid var(--line)}.calendar-schedule [data-testid=event]{min-height:76px}.past-day>ul{border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-row+.card-row{border-top:1px solid var(--line)}.note-card{background:var(--bg);border:0;border-radius:0;padding-block:15px}.note-card>span>span:first-child{letter-spacing:-.012em;font-size:14px;font-weight:550}.note-card [data-testid=past-note-preview]{margin-top:4px;font-size:13px}.document-main{background:var(--bg)}.document-body{padding-top:86px}.document-meta{padding-bottom:18px}.note-layout{min-height:0}.note-page-width{width:100%;max-width:860px;margin-inline:auto;padding-inline:clamp(20px,10cqw - 42px,48px)}.note-header{flex:none;padding-top:84px}.note-metadata{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.note-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.note-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.note-recording-status{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;padding-inline:10px;display:flex}.note-elapsed{font-variant-numeric:tabular-nums;min-width:36px;color:var(--muted);text-align:end;margin-inline:4px 8px;font-size:11px}.note-primary-tabs{border-bottom:1px solid var(--line);gap:24px;margin-top:22px;display:flex;position:relative}.note-primary-tabs [role=tab]{height:36px;color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:7px;padding-inline:1px;font-size:13px;font-weight:500;display:flex}.note-primary-tabs [role=tab][aria-selected=true],.note-primary-tabs [role=tab]:hover{color:var(--ink)}@media (prefers-reduced-motion:no-preference){.note-primary-tabs[data-summary-arriving=true] #note-summary-tab{animation:.12s cubic-bezier(.16,.8,.25,1) both summary-tab-arrive}}@keyframes summary-tab-arrive{0%{opacity:0}}.note-reading-area{flex:1;min-height:0;display:flex;position:relative}.note-panels{contain:layout;flex:1;min-width:0;min-height:0;display:flex}:is(.note-panels,.ask-page)::view-transition-group(root){animation:none}:is(.note-panels,.ask-page)::view-transition-old(root){animation:none;display:none}:is(.note-panels,.ask-page)::view-transition-new(root){mix-blend-mode:normal;animation:.12s ease-out both note-panel-in}@keyframes note-panel-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){:is(.note-panels,.ask-page)::view-transition-new(root){animation:none}}.note-tab-indicator{height:2px;width:var(--tab-width,0px);background:var(--primary);transform:translateX(var(--tab-x,0px));pointer-events:none;inset-inline-start:0;border-radius:1px;position:absolute;bottom:-1px}@media (prefers-reduced-motion:no-preference){.note-layout[data-tab-pointer=true] .note-tab-indicator{transition:transform .18s cubic-bezier(.23,1,.32,1),width .18s cubic-bezier(.23,1,.32,1)}}.note-content{flex:1;min-width:0;min-height:0}.main-window .note-notes-pane{scrollbar-gutter:stable both-edges;overflow-y:auto}.note-notes-pane[hidden]{display:none}.note-notes-body{padding-top:22px;padding-bottom:40px}.note-transcript-pane{contain:layout style;--transcript-inset:calc(max(0px,(100% - 860px)/2) + clamp(20px,calc(10cqw - 42px),48px));display:flex}.transcript-turn{contain:layout style}.note-footer{background:var(--bg);--note-footer-line:var(--line);flex:none}@supports (color:color-mix(in lab, red, red)){.note-footer{--note-footer-line:color-mix(in srgb,var(--line) 60%,var(--bg))}}.note-footer-bar{min-height:var(--workspace-footer-height);border-top:1px solid var(--note-footer-line);justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;display:flex}.note-footer-bar:not(:first-child){margin-top:8px}@media (prefers-contrast:more){.note-footer{--note-footer-line:var(--line)}}.note-status{min-width:0}.note-footer-bar>.chat-trigger{flex-shrink:0}.chat-trigger kbd{color:var(--muted);margin-inline-start:8px;font-family:inherit;font-size:11px;font-weight:400}.note-footer>[data-testid=note-stop-unsaved]{max-width:min(760px,100% - 48px);margin-inline:auto}.note-record-hint{max-width:760px;color:var(--written);justify-content:center;align-items:flex-start;gap:7px;margin:8px auto 0;padding-inline:24px;font-size:12px;line-height:18px;display:flex}.note-record-hint>svg{margin-top:2px}.note-recording-group{flex-wrap:wrap;align-items:center;gap:8px;min-height:30px;display:flex}.note-recording-group[data-recording=true]{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);border-radius:6px;flex-wrap:nowrap;gap:0}.note-recording-group[data-recording=true] .note-elapsed{margin:0}.note-recording-group[data-recording=true] .note-record-action{border:0;border-inline-start:1px solid var(--line);min-width:0;height:28px;box-shadow:none;color:var(--muted);background:0 0;border-radius:0;flex:none;padding-inline:12px}.note-recording-group[data-recording=true] .note-pause-action{width:30px;padding:0}.note-recording-group[data-recording=true] .note-record-action:last-child{border-start-end-radius:6px;border-end-end-radius:6px}.note-recording-group[data-recording=true] .note-record-action:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.note-recording-group[data-recording=true] .note-record-action:active:not(:disabled){background:var(--control-pressed)}.note-recording-group[data-recording=true] .note-finish-action{background:var(--primary);color:#fff;min-width:68px;height:30px;margin-block:-1px;margin-inline-end:-1px}.note-recording-group[data-recording=true] .note-finish-action:hover:not(:disabled),.note-recording-group[data-recording=true] .note-finish-action:active:not(:disabled){background:var(--primary-hover);color:#fff}.note-recording-group[data-recording=true] .note-finish-action:focus-visible{outline-offset:-3px;outline-color:#fff}.note-finishing{border:1px solid var(--line);height:30px;color:var(--muted);border-radius:6px;align-items:center;padding-inline:10px;font-size:12px;display:flex}.note-header-actions .share-btn{height:30px;box-shadow:none;background:0 0}.workspace .note-record-action:focus-visible{outline-offset:-2px}.chat-trigger{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding-inline:10px;font-size:12px;font-weight:500;display:flex}.chat-trigger:hover,.chat-trigger[aria-expanded=true]{background:var(--control)}.chat-trigger:active{background:var(--control-pressed)}.chat-panel{z-index:70;inset-block:auto var(--chat-bottom,72px);width:420px;max-width:calc(100% - 32px);height:min(440px,var(--chat-height,440px),calc(100dvh - var(--chat-bottom,72px) - 68px));border:1px solid var(--line);background:var(--float);min-height:0;max-height:none;color:var(--ink);border-radius:12px;margin:0;padding:0;position:fixed;inset-inline:auto 24px;overflow:visible;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel[open]{flex-direction:column;display:flex}.chat-panel{box-shadow:none;background:0 0;border-color:#0000}.chat-morph-surface{pointer-events:none;transform-origin:0 0;border:1px solid var(--line);border-radius:inherit;background:var(--float);position:absolute;inset:-1px;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel-contents{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.chat-trigger[aria-expanded=true]{opacity:0}.note-resume-action{min-width:160px}.note-recording-group .note-record-action[data-processing=true]{cursor:wait}[data-icon]{flex:none}[data-icon=Loader]{animation:1s linear infinite icon-spin}[data-icon] path{transform-box:fill-box;transform-origin:50%}@keyframes icon-spin{to{transform:rotate(360deg)}}@keyframes icon-write{0%{stroke-dashoffset:1px;opacity:.2}to{stroke-dashoffset:0;opacity:1}}@keyframes icon-turn{0%,to{transform:rotate(0)}60%{transform:rotate(30deg)}}@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.workspace-sidebar .workspace-nav:hover>[data-icon=MessageCircle] path:not(:first-child),.workspace-sidebar .workspace-nav:hover>[data-icon=FileText] path:not(:last-child){stroke-dasharray:1;animation:.28s cubic-bezier(.22,1,.36,1) both icon-write}.workspace-sidebar .workspace-nav:hover>[data-icon=MessageCircle] path:last-child,.workspace-sidebar .workspace-nav:hover>[data-icon=FileText] path:first-child{animation-delay:65ms}.workspace-sidebar .workspace-nav:hover>[data-icon=Settings]{animation:.36s ease-out icon-turn}}@media (prefers-reduced-motion:reduce){[data-icon=Loader]{animation:none}}.chat-icon{width:28px;height:28px;color:var(--muted);border-radius:5px;flex-shrink:0;place-items:center;display:grid}.chat-icon:hover,.chat-icon[aria-expanded=true]{background:var(--control);color:var(--ink)}.chat-latest{z-index:1;border:1px solid var(--line);background:var(--float);width:30px;height:30px;color:var(--muted);box-shadow:var(--shadow-soft);bottom:8px;border-radius:50%;place-items:center;display:grid;position:absolute;inset-inline-start:calc(50% - 15px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.chat-copy-action{min-height:28px;color:var(--muted);border-radius:5px;align-items:center;gap:5px;margin-inline-start:-5px;padding:4px 5px;font-size:11px;display:inline-flex}.chat-copy-action:hover{background:var(--control);color:var(--ink)}.chat-progress{color:var(--muted);align-items:center;gap:9px;padding-block:5px;font-size:13px;line-height:20px;display:flex}.thinking-dots{width:18px;height:20px;color:var(--accent);flex:none}.chat-step{animation:.24s ease-out step-in}@keyframes step-in{0%{opacity:0}to{opacity:1}}.chat-step{background:linear-gradient(100deg,var(--muted) 35%,var(--ink) 50%,var(--muted) 65%) 0 0 / 250% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:.24s ease-out step-in,2.2s linear infinite step-shimmer}@keyframes step-shimmer{0%{background-position:100% 0}to{background-position:-150% 0}}@media (prefers-reduced-motion:reduce){.chat-step{color:inherit;background:0 0;animation:none}}.thinking-dots-static{justify-content:space-between;align-items:center;display:flex}.thinking-dots-static i{opacity:.65;background:currentColor;border-radius:50%;width:4px;height:4px}.thinking-dots-static i:nth-child(2){opacity:.81}.thinking-dots-static i:nth-child(3){opacity:.97}.chat-panel .chat-history{overscroll-behavior:contain;flex:1;min-width:0;min-height:0;padding:0 16px 20px;overflow-y:auto}.chat-panel .chat-composer{flex-shrink:0}.chat-error{color:var(--danger);margin:0 0 10px;font-size:12px;line-height:18px}@media (width<=999px){.chat-panel{inset-inline-end:16px}.chat-panel::backdrop{background:#00000029}}@media (width<=999px) and (height<=420px){.chat-panel{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);inset-block:16px}}.note-record-action{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding-inline:12px;font-size:12px;font-weight:500;transition:background-color .12s,color .12s;display:flex}.note-record-action:hover:not(:disabled){background:var(--control-hover)}.note-record-action:active:not(:disabled){background:var(--control-pressed);box-shadow:none}.note-record-action:disabled{opacity:.45}.note-record-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}.note-record-action.primary:hover:not(:disabled){background:var(--primary-hover)}@media (prefers-reduced-motion:reduce){.note-record-action{transition:none}}[data-testid=transcript-panel]{border-radius:12px}.note-primary-tools{align-self:flex-start;align-items:center;min-width:0;height:34px;margin-inline-start:auto;display:flex}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;padding:0}.note-primary-tools .transcript-actions{order:-1;margin-inline-start:0}.transcript-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 12px;display:flex}.transcript-search-field{background:0 0;border:1px solid #0000;border-radius:6px;flex:0 auto;align-items:center;gap:8px;width:68px;min-width:32px;max-width:100%;height:32px;padding-inline:0;display:flex}.transcript-search-field[data-pointer=true]{transition:width .22s cubic-bezier(.23,1,.32,1),padding .22s cubic-bezier(.23,1,.32,1),background-color .14s,border-color .14s}@media (prefers-reduced-motion:reduce){.transcript-search-field[data-pointer=true]{transition:none}}.transcript-search-field:hover{background:var(--control)}.transcript-search-field:focus-within{border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:has(input:not(:placeholder-shown)){border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}[data-testid=transcript-search]{width:100%;min-width:0;height:100%;color:var(--ink);text-align:end;background:0 0;border:0;padding:0;font-size:13px;font-weight:500;line-height:20px}.transcript-search-field:focus-within input{text-align:start}.transcript-search-field:has(input:not(:placeholder-shown)) input{text-align:start}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-actions{align-items:center;gap:4px;margin-inline-start:auto;display:flex}@media (width<=600px){.window-wordmark{display:none}.note-header{padding-top:76px}.note-header .note-title-type{font-size:23px}.note-meta-row{gap:8px;margin-top:10px}.note-header-actions{gap:8px}.note-primary-tabs{flex-wrap:wrap;gap:16px;margin-top:12px}.note-primary-tools{max-width:100%}.note-primary-tools .transcript-search-field{width:32px;min-width:32px}.note-primary-tools .transcript-search-field:focus-within{width:160px}.note-primary-tools .transcript-search-field:has(input:not(:placeholder-shown)){width:160px}}@media (height<=420px){.note-layout{overflow-y:auto}.note-reading-area{flex:none;height:180px;min-height:180px}[data-testid=transcript-panel]{height:36vh}}[data-testid=transcript-panel].transcript-inline{width:100%;height:auto;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;display:flex;position:relative}.transcript-inline>.transcript-toolbar{border:0;padding-block:4px 8px;padding-inline:0}.transcript-inline [data-testid=transcript]{padding-inline:var(--transcript-inset);padding-top:22px;padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-inline .transcript-player-dock{inset-inline:var(--transcript-inset);z-index:1;position:absolute;bottom:4px}.transcript-inline [data-testid=player]{background:var(--float);margin:0}@supports (color:color-mix(in lab, red, red)){.transcript-inline [data-testid=player]{background:color-mix(in srgb,var(--float) 88%,transparent)}}.transcript-inline [data-testid=player]{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 2px 12px #0000000d}.transcript-inline [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-inline [data-testid=player]{background:var(--float);-webkit-backdrop-filter:none;backdrop-filter:none}}html:not(.widget) .bg-accent{background-color:var(--primary)}html:not(.widget) button:focus-visible,html:not(.widget) input:focus-visible{outline-color:var(--focus)}.share-control{background:var(--control);height:28px;color:var(--ink);border-radius:6px;align-items:center;font-size:12px;font-weight:500;display:flex}.share-control .share-btn{border-radius:5px;height:28px}.share-control .share-btn+.share-btn{border-color:var(--line)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{border-radius:4px;align-items:center;gap:6px;margin-inline-start:auto;display:flex}.search-footer>button:hover{color:var(--ink)}.app-modal[data-testid=shortcuts-dialog]{flex-direction:column;width:min(460px,100vw - 40px);height:min(580px,80vh);display:flex;overflow:hidden}.app-modal[data-testid=shortcuts-dialog] .modal-copy{flex:none;padding:22px 24px 18px}.shortcuts-close{inset-inline-end:16px;position:absolute;top:18px}.shortcuts-search{border:1px solid var(--line);color:var(--muted);border-radius:7px;align-items:center;gap:10px;margin:0 24px 12px;padding:9px 11px;display:flex}.shortcuts-search:focus-within{border-color:var(--accent)}.shortcuts-search input{width:100%;min-width:0;color:var(--ink);background:0 0;outline:none;font-size:13px}.shortcuts-list{flex:1;min-height:0;padding:0 24px 22px;overflow-y:auto}.shortcuts-list section+section{margin-top:20px}.shortcuts-list h3{color:var(--muted);padding:10px 0 7px;font-size:11px;font-weight:500}.shortcuts-list dl>div{justify-content:space-between;align-items:center;gap:18px;min-height:34px;font-size:13px;display:flex}.shortcuts-list kbd{font:12px var(--font-sans);white-space:nowrap;color:var(--muted)}.shortcuts-empty{color:var(--muted);text-align:center;padding-top:24px;font-size:13px}.note-transcript-pane[hidden]{display:none!important}.page-loading{pointer-events:none}.loading-prose{gap:12px;padding-block:6px;display:grid}.note-title-type{letter-spacing:-.03em;font-size:28px;font-weight:600;line-height:1.25}.loading-note-chip{background:var(--control);border-radius:7px;max-width:30%;height:32px}.loading-transcript-turns{gap:12px;display:grid}.loading-folder-icon{background:var(--control);border-radius:4px;flex:none;width:16px;height:16px}.loading-checkbox{background:var(--control);border-radius:3px;width:14px;height:14px}.loading-note-frame,.loading-note-frame>.loading-result{height:100%}.people-card{max-height:var(--people-available-height,calc(100dvh - 200px));overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.people-card>*{flex-shrink:0}.people-card .people-list{overscroll-behavior:contain;flex-shrink:1;min-height:40px}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-event-toggle{text-align:start;border-radius:4px;align-items:center;gap:8px;width:100%;display:flex}.note-date-event-toggle>span{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.note-date-event-toggle>svg{color:var(--muted);flex:none}.note-date-link{text-align:start;width:100%;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:8px;font-size:12px;display:flex}.note-date-link:hover,.note-date-event:hover{background:var(--card);color:var(--ink)}.note-date-link small{margin-top:3px;font-size:11px;display:block}.note-date-days{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p,.note-date-calendar-error{color:var(--muted);padding:12px 8px;font-size:12px}.note-date-event{text-align:start;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px;display:flex}.note-date-event>span{flex:1;min-width:0}.note-date-event strong,.note-date-event small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-event strong{font-size:13px;font-weight:500}.note-date-event small{color:var(--muted);margin-top:3px;font-size:11px}.note-date-event>svg{color:var(--accent);flex:none}.transcript-echo{min-height:28px;color:var(--muted);justify-content:flex-end;align-items:center;gap:6px;padding-inline:4px;font-size:12.5px;line-height:20px;display:flex}.transcript-echo button{text-underline-offset:3px}.transcript-echo button:hover{text-decoration:underline}.bubble[data-echo]{color:var(--muted);background:var(--control)}@supports (color:color-mix(in lab, red, red)){.bubble[data-echo]{background:color-mix(in srgb,var(--control) 50%,transparent)}}.transcript-restore{color:var(--muted);opacity:0;border-radius:4px;margin-inline-start:4px;padding:2px 6px;font-size:12px;line-height:20px}.line:hover>.transcript-restore,.line:focus-within>.transcript-restore{opacity:1}.transcript-restore:hover{color:var(--ink);background:var(--control-hover)}.loading-content{min-width:0;position:relative}.loading-placeholder{pointer-events:none}.loading-content[data-loading-phase=waiting]>.loading-placeholder,.loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>.loading-result{visibility:hidden}.loading-content:has(>.loading-result)>.loading-placeholder{position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-placeholder{animation:.12s ease-out both loading-out;position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-result{animation:.12s ease-out both loading-in}.loading-mask{pointer-events:none;-webkit-user-select:none;user-select:none}.loading-bar{background:var(--control);vertical-align:middle;border-radius:4px;max-width:100%;height:.65em;min-height:7px;display:inline-block!important}.loading-mask .meeting-meta .loading-bar{align-self:flex-end}.loading-mask .meeting-folder-pill{background:var(--control);border-color:#0000}.loading-mask .meeting-folder-dot{visibility:hidden}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label){position:relative;color:#0000!important}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label):after{content:"";background:var(--control);inset-inline-start:0;border-radius:4px;width:min(75%,260px);height:10px;position:absolute;top:5px}.loading-mask .settings-description:after{width:min(85%,300px);height:8px;top:6px}.loading-mask :is(.settings-toggle,.settings-select,.settings-name-field,.settings-action,.settings-spoken,.settings-jargon-field){color:#0000!important;background:var(--control)!important;box-shadow:none!important;border-color:#0000!important}.loading-mask :is(.settings-toggle,.settings-action,.settings-spoken,.settings-jargon-field)>*,.loading-mask .settings-select-wrap>svg,.loading-mask .settings-permission-icon>*,.loading-mask .settings-permission-status{visibility:hidden}.loading-mask .settings-select{pointer-events:none}@keyframes loading-in{0%{opacity:0}to{opacity:1}}@keyframes loading-out{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){.loading-content>*{animation:none!important}}.main-window :is(.settings-scroll,.native-library){scrollbar-gutter:stable}.transcript-loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>li:not(.loading-placeholder){visibility:hidden}.transcript-loading-content[data-loading-phase=revealing]>li:not(.loading-placeholder){animation:.12s ease-out both loading-in}.transcript-loading-content[data-loaded=true]>.loading-placeholder{position:absolute;inset:8px 16px auto}.loading-mask .ask-field{position:relative}.loading-mask .ask-field:after{content:"";background:var(--control);border-radius:4px;width:160px;height:12px;position:absolute;inset:16px auto auto 16px}.loading-mask .ask-field textarea,.loading-mask .ask-field textarea::placeholder{color:#0000}.loading-mask .ask-toolbar{visibility:hidden}.notes-download-dot{background:var(--accent);border-radius:50%;flex:none;width:5px;height:5px}.notes-download-dot[data-failed=true]{background:var(--danger)}.notes-download-positioner{z-index:60}.notes-download-menu{border:1px solid var(--line);background:var(--float);width:max-content;max-width:min(360px,100vw - 24px);color:var(--ink);box-shadow:var(--shadow);border-radius:9px;outline:none;padding:9px 12px;font-size:12px;line-height:18px}.notes-download-menu p+p{margin-top:3px}.notes-download-menu[data-failed=true]{align-items:center;gap:12px;padding-block:10px;padding-inline-end:10px;display:flex}.notes-download-retry{border:1px solid var(--line);background:var(--control);color:var(--ink);padding:3px 8px;text-decoration:none}.notes-download-retry:disabled{opacity:.5}@media (prefers-reduced-motion:no-preference){.notes-download-dot[data-failed=false]{animation:2s ease-in-out infinite notes-download-pulse}}@keyframes notes-download-pulse{0%,to{opacity:.45}50%{opacity:1}}:root[data-marketing-theme=dark]{--bg:#18191d;--card:#202126;--ink:#eeeff4;--muted:#9a9ba9;--line:#32333d;--accent:#af8bff;--accent-ink:#241637;--accent-soft:#35284f;--status-live:#aed4b5;--danger:#f28798;--danger-ink:#32121b;--float:#24252c;--chrome:#1d1e23;--shadow:0 18px 48px #0006, 0 2px 8px #0003;--shadow-soft:0 1px 3px #0003;--written:#b8b9c4;--heading:#e4e5ec;--scrim:#00000073;--pill:#25232e;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root[data-marketing-theme=dark]:not(.widget){--bg:#1b1b1d;--chrome:#242425;--card:#202021;--float:#29292b;--ink:#e7e6eb;--muted:#a7a4ad;--heading:#e7e6eb;--written:#c6c3cc;--line:#343436;--accent:#b780ff;--accent-ink:#fff;--accent-soft:#2c164a;--playback-bg:#7040af;--playback-ink:#fff;--primary:#6f00ff;--primary-hover:#7d1aff;--control:#333335;--control-hover:#3b3b3e;--control-pressed:#434347;--selected:#3b393f;--focus:#c599ff;--danger:#f098a5;--danger-ink:#32121b;--danger-soft:#59343c;--danger-control-ink:#ffd6dc;--scrim:#0006;--shadow:0 18px 48px #00000040, 0 2px 8px #00000026;--shadow-soft:0 1px 2px #00000014}:root[data-marketing-theme=dark] input::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] textarea::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .note-prose ::selection{color:#fff;background:#8055b8}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}.workspace{isolation:isolate;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#fafafb;--sidebar-field-edge:#e8e8eb;--sidebar-selected:#e7e1ef;--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass);height:100%;display:flex;position:relative;overflow:hidden}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.workspace{--chrome-glass:var(--chrome)}}:root:not([data-chrome=overlay]) .workspace{background:linear-gradient(var(--chrome) 0 52px,transparent 52px),var(--chrome-glass)}.workspace-window-bar{z-index:55;border-bottom:1px solid var(--line);background:0 0;width:208px;min-width:124px;height:52px;position:absolute;top:0;left:0}.workspace-drag-region{pointer-events:none;width:100vw;height:100%;position:absolute;top:0;left:0}.sidebar-collapsed .workspace-window-bar{border-bottom:1px solid var(--line);width:124px}.workspace-sidebar-toggle{-webkit-app-region:no-drag;position:absolute;top:12px;left:88px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-window-bar{width:124px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .home-toolbar-action,.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{left:132px;right:auto}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar{padding-left:124px;padding-right:24px;left:0;right:0}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-note=true]{padding-left:185px}.workspace [hidden]{display:none!important}.workspace-sidebar{z-index:2;background:0 0;border-inline-end:1px solid #0000;flex-direction:column;display:flex;position:absolute;inset-block:0;inset-inline-start:0}.workspace-sidebar:after{content:"";background:var(--line);pointer-events:none;width:1px;position:absolute;inset-block:52px 0;inset-inline-end:-1px}.workspace-sidebar,.workspace-sidebar-gap{width:208px}.sidebar-collapsed :is(.workspace-sidebar,.workspace-sidebar-gap){width:56px}.workspace-sidebar-gap{flex:none}.workspace-sidebar-inner{flex-direction:column;height:100%;min-height:0;display:flex}.workspace-sidebar .workspace-search>svg{flex:none}.workspace-sidebar .workspace-nav>span:not(.folder-glyph),.workspace-sidebar .workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label{transition:opacity 90ms}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-nav>small,.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd,.sidebar-collapsed .workspace-folder-label{opacity:0;pointer-events:none}.sidebar-collapsed .workspace-nav{gap:0;padding-inline:10px}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd{flex:none;width:0}.sidebar-collapsed .workspace-search{gap:0;padding-inline:9px}.sidebar-collapsed .workspace-folder-more{display:none}.sidebar-collapsed .workspace-brand{padding-inline:17px}.workspace-wordmark{direction:ltr;flex:none;width:90px;display:flex;overflow:hidden}.sidebar-collapsed .workspace-wordmark{width:22px}.workspace[data-sidebar-motion=true] .workspace-wordmark{transition:width .2s cubic-bezier(.22,1,.36,1)}.workspace[data-sidebar-motion=true] .workspace-brand{transition:padding-inline .2s cubic-bezier(.22,1,.36,1)}.workspace-folder-label{white-space:nowrap;height:16px;overflow:hidden}.workspace[data-sidebar-motion=true] .workspace-folder-label{transition:height .2s cubic-bezier(.22,1,.36,1),margin .2s cubic-bezier(.22,1,.36,1),opacity .12s}.sidebar-collapsed .workspace-folder-label{height:0;margin-block:18px}.workspace-brand{gap:0}.workspace[data-sidebar-motion=false] :is(.workspace-nav>span,.workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label,.workspace-wordmark,.workspace-brand){transition:none}@media (prefers-reduced-motion:reduce){.workspace-sidebar :is(span,small,kbd),.workspace-folder-label,.workspace-toolbar,.workspace-brand{filter:none!important;transition:none!important}}.sidebar-titlebar{flex:none;justify-content:flex-end;align-items:center;height:52px;padding:0 16px;display:flex}.workspace-sidebar-body{padding:16px var(--sidebar-inset) 5px;flex:1;overflow:hidden auto}.workspace-search{border:1px solid var(--sidebar-field-edge);background:var(--sidebar-field);width:100%;height:34px;box-shadow:none;color:var(--ink);border-radius:6px;align-items:center;gap:10px;margin-bottom:17px;padding:0 10px;font-size:13px;font-weight:500;display:flex}.workspace-search>svg{width:16px;height:16px;color:var(--muted)}.workspace-search kbd{font:10px var(--font-sans);color:var(--muted);margin-inline-start:auto}.workspace-search:hover{background:color-mix(in srgb,var(--sidebar-field) 97%,var(--ink))}.workspace-nav{width:100%;height:35px;padding:0 var(--nav-inset);text-align:start;border-radius:6px;align-items:center;gap:10px;font-size:13px;font-weight:500;display:flex;position:relative}.workspace-nav>svg{color:var(--muted);flex:none}.workspace-nav>span:not(.folder-glyph){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-nav small{color:var(--muted);margin-inline-start:auto;font-size:9px;font-weight:400;line-height:17px}.workspace-nav:hover,.workspace-icon:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.workspace-nav[aria-current=page]{background:var(--sidebar-selected);color:var(--ink)}.workspace-nav[aria-current=page]:before{content:none}.workspace-nav[aria-current=page]>svg{color:var(--written)}.workspace-folder-label{margin:30px var(--nav-inset) 8px;color:var(--muted);font-size:11px}.workspace-folder-item,.workspace-folder-list{position:relative}.workspace:not(.sidebar-collapsed) .workspace-folder-item>.workspace-nav{touch-action:none;padding-inline-end:36px}.workspace-folder-item[data-moving=true]{z-index:2;background:var(--float);border-radius:6px;box-shadow:0 2px 8px #0000001a}.workspace-folder-item[data-moving=true]>.workspace-nav{cursor:grabbing}@keyframes icon-lift{0%,to{transform:translateY(0)rotate(0)}45%{transform:translateY(-1px)rotate(-6deg)}}@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.workspace-sidebar .workspace-trash:hover>svg{animation:.28s cubic-bezier(.22,1,.36,1) icon-lift}}.workspace-folder-item[data-moving=true] .workspace-folder-more{visibility:hidden}.workspace-folder-item [role=menuitem]:disabled{opacity:.4}.workspace-folder-item>.workspace-nav[data-drop=true]{background:var(--accent-soft);color:var(--ink)}.workspace-folder-more{inset-inline-end:5px;opacity:0;width:27px;height:27px;position:absolute;top:4px}.workspace-folder-item:hover .workspace-folder-more,.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]{opacity:1}.workspace-folder-item:hover small{visibility:hidden}.workspace-folder-item:has(.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]) small{visibility:hidden}.workspace-folder-item small{position:absolute;inset-inline-end:var(--nav-inset)}.workspace-folder-new,.workspace-folder-new>svg{color:var(--muted)}.workspace-folder-new:hover{color:var(--ink)}.native-folder{grid-template-columns:minmax(0,1fr);height:100%;min-height:0;padding-top:52px;display:grid}.native-folder .native-library>h1 input{font:inherit;letter-spacing:inherit}.workspace-sidebar-footer{padding:9px var(--sidebar-inset) 0}.workspace-brand{min-height:var(--workspace-footer-height);border-top:1px solid var(--line);margin-top:9px;margin-inline:calc(-1 * var(--sidebar-inset));padding:0 calc(var(--sidebar-inset) + var(--nav-inset));justify-content:flex-start;align-items:center;display:flex}.workspace-content{z-index:1;contain:layout;background:var(--reading-surface);flex:1;min-width:0;height:100%;position:relative;container-type:inline-size}.workspace-content>.bg-bg{background:0 0}.document-body{padding-inline:clamp(20px,10cqw - 42px,48px)}.workspace-toolbar{inset-inline:0;z-index:50;border-bottom:1px solid var(--line);background:0 0;align-items:center;height:52px;padding:0 24px;display:flex;position:absolute;top:0}.workspace-toolbar[data-note=true]{padding-inline-end:185px}.workspace-breadcrumb{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:9px;font-size:13px;display:flex}.workspace-breadcrumb>svg{flex:none}.workspace-breadcrumb>[aria-current]{color:var(--ink);text-overflow:ellipsis;font-weight:500;overflow:hidden}.workspace-parent{color:var(--muted);flex:none}.workspace-parent:hover{color:var(--ink)}.workspace-parent-separator{color:var(--muted);opacity:.55}.workspace-history{flex:none;gap:2px;display:flex}.workspace-history button:disabled{opacity:.3;background:0 0}.sidebar-collapsed .workspace-toolbar{padding-inline-start:68px}.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:padding-inline-start .2s cubic-bezier(.22,1,.36,1)}.workspace-icon{width:28px;height:28px;color:var(--muted);border:1px solid #0000;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}.workspace-icon:active{background:color-mix(in srgb,var(--ink) 9%,transparent)}.workspace button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-button{border:1px solid var(--line);background:var(--float);height:30px;color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:500;transition:background-color .12s,color .12s,box-shadow .12s;display:inline-flex;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.workspace-button:hover:not(:disabled){background:var(--control-hover)}.workspace-button:active:not(:disabled){background:var(--control-pressed);box-shadow:inset 0 1px 2px #0000000a}.workspace-button:disabled{opacity:.45;cursor:default}.workspace-button.primary{background-color:var(--primary);color:#fff;background-image:linear-gradient(#ffffff14,#0000 55%,#0000000a);border-color:#00000014;box-shadow:inset 0 1px #ffffff29,0 1px 2px #35006524}.workspace-button.primary:hover:not(:disabled){background-color:var(--primary-hover)}.workspace-button.primary:active:not(:disabled){background-image:none;box-shadow:inset 0 1px 2px #35006533}.workspace-toolbar[data-recording-return=true]{gap:16px;padding-inline-end:17px}.workspace-toolbar[data-recording-return=true][data-note=true]{padding-inline-end:62px}.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-recording-link{color:#fff;white-space:nowrap;background:linear-gradient(#7a1aff,#6f00ff 65%,#6600eb);border:1px solid #5200bc;border-radius:9px;flex:none;justify-content:center;align-items:center;gap:9px;min-width:86px;height:30px;padding:0 12px;font-size:12px;font-weight:500;transition:box-shadow .12s;display:flex;position:relative;box-shadow:inset 0 1px #fff3,0 1px 3px #39008026}.recording-return-time{font-variant-numeric:tabular-nums;text-align:center;min-width:32px}.workspace-recording-link:hover{filter:brightness(1.06);box-shadow:inset 0 1px #ffffff40,0 2px 5px #39008033}.workspace-recording-link:active{filter:brightness(.96);box-shadow:inset 0 1px 3px #39008033}.workspace-recording-link[data-paused=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:var(--shadow-soft)}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-recording-return=true][data-note=true],.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-recording-return=true][data-note=true]{padding-left:185px}.native-home{grid-template-columns:minmax(0,1fr) 270px;height:100%;min-height:0;padding-top:52px;display:grid}.home-toolbar-action{inset-inline-end:17px;z-index:51;position:absolute;top:11px}.workspace-toolbar-actions{flex:none}.workspace-toolbar-actions:empty{display:none}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){gap:16px;padding-inline-end:17px}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){padding-inline-end:132px}.native-library{min-width:0;padding:29px 26px 30px;overflow:auto}.native-library>h1{letter-spacing:-.55px;margin-bottom:9px;font-size:20px;font-weight:600;line-height:26px}.native-meeting-day{margin-top:25px}.native-meeting-day>h2{color:var(--muted);margin-bottom:9px;font-size:10px;font-weight:500;line-height:14px}.native-meeting-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:12px;margin-inline:-8px;padding-inline-end:8px;display:grid;position:relative;overflow:hidden}.native-meeting-row:hover:not(:focus-visible):not(:has(:focus-visible)){background:var(--row-hover)}.native-meeting-link{grid-area:1/1/2/3;grid-template-columns:subgrid;text-align:start;border-radius:inherit;align-items:center;width:100%;min-width:0;min-height:57px;padding-block:8px;padding-inline:8px 0;display:grid}.meeting-content{align-items:center;gap:12px;min-width:0;display:flex}.meeting-identity{background:var(--control);width:30px;height:30px;color:var(--written);border:1px solid #0000;border-radius:7px;flex:none;place-items:center;font-size:10px;font-weight:600;display:grid}.meeting-identity.recording{color:#fff;background:var(--primary);border-color:#0000}.meeting-description{flex:1;min-width:0}.meeting-description strong{letter-spacing:-.1px;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:19px;display:block;overflow:hidden}.meeting-description>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:2px;font-size:11px;line-height:16px;display:block;overflow:hidden}.meeting-meta{text-align:end;min-width:49px;color:var(--muted);font-variant-numeric:tabular-nums;flex-direction:column;flex:none;gap:4px;font-size:10px;display:flex}.meeting-meta small{color:var(--muted);font-size:9px;line-height:12px}.meeting-drag-preview{border:1px solid var(--line);background:var(--float);width:max-content;max-width:280px;color:var(--ink);box-shadow:var(--shadow);pointer-events:none;border-radius:10px;align-items:center;gap:9px;padding:8px 11px;display:flex;position:fixed;inset-block-start:0;inset-inline-start:0}.meeting-drag-preview strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:19px;overflow:hidden}.meeting-live{color:var(--accent);align-items:center;gap:4px;display:flex}.meeting-delete{opacity:.6;width:27px;height:27px}.meeting-delete svg{width:13px;height:13px}.native-meeting-row:hover .meeting-delete{opacity:1}.native-meeting-row:has(:focus-visible) .meeting-delete{opacity:1}.meeting-delete:hover{color:var(--danger)}.meeting-more{width:27px;height:27px}.row-swap{--row-settle:2px}.row-swap:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--row-settle:-2px}.row-swap-meta{grid-column:2;transition:opacity .16s ease-out,transform .16s ease-out;transform:translate(0)}.row-swap-actions{z-index:1;opacity:0;transform:translateX(var(--row-settle));pointer-events:none;grid-area:1/2;justify-self:end;transition:opacity .16s ease-out,transform .16s ease-out}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-meta{opacity:0;transform:translateX(calc(-1 * var(--row-settle)));pointer-events:none}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true]))>.row-swap-actions{opacity:1;pointer-events:auto;transform:translate(0)}.row-swap :is(.workspace-icon,.chat-icon){background:0 0}.row-swap :is(.workspace-icon,.chat-icon):hover:not(:disabled){background:var(--control-hover)}.row-swap :is(.workspace-icon,.chat-icon):active:not(:disabled){background:var(--control-pressed)}:is(.native-meeting-row,.ask-history-row,.agenda-event):is(:focus-visible,:has(:focus-visible)){outline:2px solid var(--focus);outline-offset:-2px}.native-meeting-row>.native-meeting-link:focus-visible,.ask-history-row>.ask-history-link:focus-visible,.agenda-event .agenda-title:focus-visible{outline:none}.row-swap :is(.workspace-icon,.chat-icon):focus-visible{outline-offset:-2px}.meeting-row-menu{z-index:100;border:1px solid var(--line);width:224px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;overflow-y:auto}.meeting-row-menu [role=menuitem]{text-align:start;align-items:center;gap:10px;width:100%;display:flex}.meeting-row-menu [role=menuitem]:disabled{opacity:.5}.meeting-row-menu svg{flex-shrink:0}@media (prefers-reduced-motion:reduce){.row-swap-meta,.row-swap-actions{transition:none!important;transform:none!important}}.native-library:has(>.library-empty){flex-direction:column;display:flex}.native-library:has(>.library-empty)>:not(.library-empty){flex-shrink:0}.empty-state{text-align:center;flex:1;place-items:center;min-width:0;padding-block:24px 48px;display:grid}.empty-state-content{width:100%;max-width:310px}.empty-tile{border:1px solid var(--line);background:var(--float);width:64px;height:64px;color:var(--written);border-radius:14px;place-items:center;margin:0 auto 16px;display:grid;position:relative;box-shadow:0 1px 2px #17171a0a,0 10px 28px -12px #2a1a4a24}.empty-tile:before{content:"";border:1px solid var(--line);opacity:.45;pointer-events:none;border-radius:9px;position:absolute;inset:5px}.library-empty h2{letter-spacing:-.3px;font-size:17px;font-weight:550;line-height:24px}.library-empty p{color:var(--muted);margin:10px 0 20px;line-height:1.65}.library-loading{color:var(--muted);margin-top:25px;font-size:12px}.native-agenda{min-width:0;min-height:0;padding:29px var(--agenda-inset);--agenda-inset:20px;background:var(--card);border-inline-start:1px solid var(--line);flex-direction:column;display:flex;position:relative;overflow:hidden}.native-agenda>div:not(.agenda-scroll){flex-shrink:0}.agenda-scroll{margin-inline:calc(-1 * var(--agenda-inset));padding-inline:var(--agenda-inset);overscroll-behavior:contain;flex:1;min-height:80px;padding-block:16px;scroll-padding-block:16px;overflow-y:auto}.agenda-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.agenda-header>h2{letter-spacing:-.1px;font-size:13px;font-weight:550}.agenda-navigation{align-items:center;gap:4px;margin-top:24px;display:flex}.agenda-month{min-width:0;color:var(--written);margin-inline-end:auto;font-size:11px;font-weight:500}.agenda-header .workspace-button{height:27px;padding:0 9px;font-size:11px}.agenda-week{border-bottom:1px solid var(--line);grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;margin-bottom:23px;padding:18px 0 20px;display:grid}.agenda-week button{flex-direction:column;align-items:center;gap:8px;min-width:0;display:flex}.agenda-week span{color:var(--muted);font-size:10px;line-height:14px}.agenda-week b{border:1px solid #0000;border-radius:6px;place-items:center;width:26px;height:26px;font-size:11px;font-weight:500;display:grid}.agenda-week button:not([aria-pressed=true]):not([aria-current=date]):hover b{background:var(--accent-soft)}.agenda-week [aria-pressed=true] b{color:var(--accent);background:var(--accent-soft);border-color:#0000}.agenda-week [aria-current=date] b{color:#fff;background:var(--primary)}.agenda-day{align-items:baseline;gap:9px;margin-bottom:16px;display:flex}.agenda-day h3{font-size:13px;font-weight:600}.agenda-day>span{color:var(--muted);font-size:11px}.agenda-events{flex-direction:column;gap:10px;display:flex}.agenda-event{cursor:pointer;border-radius:8px;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:8px 6px;display:grid;position:relative}.agenda-event:hover:not(:has(:focus-visible)){background:var(--row-hover)}.agenda-event-body{border-inline-start:2px solid var(--line);min-width:0;padding-inline-start:12px}.agenda-event.live .agenda-title{font-weight:600}.agenda-event[data-selected=true] .agenda-title{color:var(--ink);font-weight:600}.agenda-time{color:var(--muted);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;padding-top:4px;font-size:10px;line-height:20px}.agenda-heading{align-items:center;gap:8px;min-height:28px;display:flex}.agenda-event h3{letter-spacing:-.1px;flex:1;min-width:0;font-size:13px;font-weight:550;line-height:19px}.agenda-title{text-overflow:ellipsis;white-space:nowrap;text-align:start;width:100%;color:var(--ink);cursor:pointer;border-radius:3px;display:block;overflow:hidden}.agenda-title:after{content:"";border-radius:8px;position:absolute;inset:0}.agenda-event p{color:var(--muted);margin-top:4px;font-size:11px;line-height:17px}.agenda-people{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.agenda-live{white-space:nowrap;color:var(--muted);align-items:center;padding:1px 0;font-size:10px;font-weight:500;line-height:16px;display:inline-flex}.agenda-event.live .agenda-live:before{content:"";background:currentColor;border-radius:50%;width:4px;height:4px;margin-inline-end:5px}.agenda-actions{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;display:flex}.agenda-action{height:28px;padding:0 9px;font-size:11px;position:relative}.agenda-inspector{visibility:hidden;z-index:5;border:1px solid var(--line);background:var(--float);max-width:none;color:var(--ink);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;margin:0;padding:0;font-size:12px;line-height:18px;position:absolute;inset:0 auto auto 0;overflow:visible}.agenda-inspector-content{border-radius:inherit;flex-direction:column;gap:16px;padding:16px;display:flex;overflow:hidden}.agenda-inspector-scroll{overscroll-behavior:contain;min-width:0;min-height:0;max-height:240px;overflow:hidden auto}.agenda-inspector-time{flex:none}.agenda-inspector-arrow{background:var(--float);border-top:1px solid var(--line);border-left:1px solid var(--line);pointer-events:none;width:10px;height:10px;position:absolute;top:-6px;transform:rotate(45deg)}.agenda-inspector[data-side=top] .agenda-inspector-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}.agenda-inspector-heading{flex:none;justify-content:space-between;align-items:start;gap:12px;display:flex}.agenda-inspector-heading h3{outline:none;min-width:0;font-size:14px;font-weight:600;line-height:21px}.agenda-inspector-heading .workspace-icon{flex:none;margin-block:-4px;margin-inline-end:-4px}.agenda-open-note{height:28px;padding-inline:8px;font-size:11px}.agenda-inspector-footer{border-top:1px solid var(--line);flex-direction:column;flex:none;gap:12px;padding-top:16px;display:flex}.agenda-inspector-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex;container-type:inline-size}.agenda-inspector-actions>.workspace-button{min-width:0;max-width:100%}.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:calc(50% - 4px)}.agenda-inspector-actions>.workspace-button>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:inherit;font-size:inherit;overflow:hidden}.agenda-inspector-actions>.workspace-button>svg{flex:none}.agenda-inspector-actions>a.workspace-button{color:var(--ink);text-decoration:none}.agenda-inspector-actions>a.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@container (width<=180px){.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:100%}}.agenda-inspector-people{min-width:0}.agenda-more-people{color:var(--accent);text-align:start;margin-top:8px;font-size:11px}.agenda-more-people:hover{text-underline-offset:3px;text-decoration:underline}.agenda-inspector button:focus-visible,.agenda-inspector a:focus-visible{outline-offset:-2px}.agenda-inspector-line{align-items:start;gap:10px;display:flex}.agenda-inspector-line>svg{color:var(--muted);flex:none;margin-top:2px}.agenda-inspector-line>div,.agenda-inspector-line>p,.agenda-inspector-line ul{overflow-wrap:anywhere;min-width:0}.agenda-inspector li+li{margin-top:6px}.agenda-inspector span,.agenda-inspector-muted{color:var(--muted);font-size:11px;display:block}@media (height<=650px){.native-agenda{padding-block:16px}.agenda-navigation{margin-top:12px}.agenda-week{margin-bottom:12px;padding-block:10px 12px}.agenda-day{margin-bottom:6px}}.agenda-event.past h3{color:var(--muted)}.agenda-status{color:var(--muted);padding:10px 0;font-size:12px;line-height:1.65}.agenda-status svg{margin-bottom:14px}.agenda-status h3{color:var(--written);font-size:13px;font-weight:500}.agenda-status p{margin:5px 0 17px}.agenda-status .workspace-button{font-size:11px}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.trash-actions .workspace-icon{width:27px;height:27px}.app-toast-viewport{bottom:20px;z-index:90;pointer-events:none;outline:none;width:340px;max-width:calc(100% - 40px);transition:inset-inline-end .26s cubic-bezier(.22,1,.36,1),bottom .26s cubic-bezier(.22,1,.36,1);position:fixed;inset-inline-end:20px}.app-toast{width:100%;height:var(--toast-frontmost-height,var(--toast-height));border:1px solid var(--line);background:var(--float);color:var(--ink);pointer-events:auto;--gap:10px;z-index:calc(100 - var(--toast-index,0));border-radius:11px;outline:none;position:absolute;inset-block-end:0;inset-inline:0;box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.app-toast[data-expanded]{height:var(--toast-height)}.app-toast[data-limited]{opacity:0}.app-toast-content{align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;display:flex;overflow:hidden}.app-toast-content[data-behind]:not([data-expanded]){opacity:0}.app-toast-title{flex:1;min-width:0;font-size:13px;font-weight:500;line-height:19px}.app-toast-action{border:1px solid var(--control-border);background:var(--button-surface,var(--control));border-radius:6px;flex:none;padding:5px 9px;font-size:12px;font-weight:500;line-height:18px;box-shadow:0 1px 2px #0000000a}.app-toast-action:hover{background:var(--control-hover)}.app-toast-close{width:24px;height:24px;color:var(--muted);border-radius:5px;flex:none;place-items:center;display:grid}.app-toast-close:hover{color:var(--ink);background:var(--control)}.app-toast button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-anchor{white-space:nowrap}.citation-group{vertical-align:baseline;white-space:nowrap;align-items:baseline;gap:1px;line-height:0;display:inline-flex;position:relative;top:-1ex}.citation-group[data-gap]{margin-inline-start:.18em}.source-citation{height:1em;color:var(--accent);letter-spacing:1px;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:.68em;font-weight:500;line-height:1;display:inline-flex;position:relative}.source-citation:before{content:"";position:absolute;inset:-6px 0}.citation-group[data-single] .source-citation:before{inset:-6px -9px}.source-citation:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.citation-positioner{z-index:100}.citation-positioner[data-anchor-hidden]{visibility:hidden;pointer-events:none}.citation-card{isolation:isolate;width:380px;max-width:calc(100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:13px;line-height:1.5;transition:opacity .16s ease-out;position:relative}.citation-card[data-animate=false]{transition:none}.citation-card[data-ending-style]{opacity:0}.citation-filter{pointer-events:none;position:absolute}.citation-liquid,.citation-edge{z-index:-1;pointer-events:none;position:absolute;inset:0}.citation-mass{background:var(--float);transform-origin:0 0;border-radius:12px;position:absolute;inset:0}.citation-edge{border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:12px}.citation-content{padding:12px}.citation-heading{justify-content:space-between;align-items:baseline;gap:10px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:18px;overflow:hidden}.citation-date{color:var(--muted);white-space:nowrap;flex:none;font-size:10px}.citation-excerpt{-webkit-line-clamp:6;color:var(--muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;max-height:120px;margin:8px 0 0;font-size:13px;line-height:20px;display:-webkit-box;overflow:clip}.citation-match{color:var(--ink)}.citation-passage{color:var(--muted);margin-top:8px}.citation-passage [hidden]{display:none!important}.citation-lines{overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:clip}.citation-transcript{flex-direction:column;gap:6px;margin-top:12px;display:flex}.citation-transcript .transcript-turn{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.citation-transcript .transcript-turn[data-track=me]{align-items:flex-end}.citation-transcript .bubble{margin:0}.citation-transcript .bubble+.bubble{margin-top:1px}.citation-transcript .bubble:not([data-continuation]){width:85%}.citation-transcript .bubble[data-continuation]{margin-inline:12px}.citation-speaker{padding-inline:4px;font-size:12px;font-weight:500;line-height:18px}.citation-notes{font-size:13px;line-height:20px}.citation-notes p{margin:0}.citation-notes ul,.citation-notes ol{margin:0;padding-inline-start:18px}.citation-notes ul{list-style-type:disc}.citation-notes ol{list-style-type:decimal}.citation-notes li+li{margin-top:4px}.citation-notes li:not(:has([data-citation-part]:not([hidden]))){display:none}.citation-notes [data-citation-part]+[data-citation-part]{margin-top:8px}.citation-notes .citation-match{background:color-mix(in srgb,var(--accent) 10%,transparent);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}.citation-notes code{font-size:.92em}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;font-size:11px;display:flex}.citation-footer>span{margin-inline-end:auto}.citation-open{height:24px;color:var(--muted);background:0 0;border-radius:4px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;line-height:20px;display:inline-flex}.citation-open:hover{background:var(--control-hover);color:var(--ink)}.citation-open:active{background:var(--control-pressed)}.citation-open:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-card[data-morph=true] .citation-liquid{filter:var(--citation-filter)}.citation-card[data-morph=true] .citation-mass{animation:.28s linear both citation-pull}.citation-card[data-morph=true] .citation-content{animation:.13s ease-out 90ms both citation-in,.28s linear backwards citation-crop}.citation-card[data-morph=true] .citation-edge{animation:.16s ease-out .12s both citation-in}@keyframes citation-pull{0%{transform:translate(var(--from-x),var(--from-y)) scale(var(--from-sx),var(--from-sy));border-radius:12px;animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{border-radius:14px;animation-timing-function:cubic-bezier(.2,0,.25,1);transform:translateY(-2px)scale(.992,1.018)}to{border-radius:12px;transform:none}}@keyframes citation-in{0%{opacity:0}to{opacity:1}}@keyframes citation-crop{0%{clip-path:inset(var(--from-y) calc(100% - var(--from-x) - var(--from-sx) * 100%) calc(100% - var(--from-y) - var(--from-sy) * 100%) var(--from-x) round 9px);animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{clip-path:inset(-2px .8% calc(2px - 1.8%) 0 round 14px);animation-timing-function:cubic-bezier(.2,0,.25,1)}to{clip-path:inset(0 round 12px)}}@media (prefers-reduced-motion:reduce){.citation-card{transition:none}.citation-card *{animation:none!important}.citation-liquid{filter:none!important}}.chat-rename-input{border:1px solid var(--focus);background:var(--float);width:100%;height:34px;color:var(--ink);border-radius:6px;padding:0 8px}::highlight(citation-target){background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}[data-focused]{background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}@container (width<=700px){.native-home{grid-template-columns:minmax(0,1fr) 235px}.native-library{padding:24px 18px}.native-agenda{--agenda-inset:15px;padding-block:25px}.meeting-description strong{font-size:13px}.meeting-meta{font-size:10px}}@container (width<=520px){.native-home{grid-template-rows:minmax(0,1fr) 200px;grid-template-columns:1fr}.native-agenda{border-inline-start:0;border-top:1px solid var(--line)}.native-meeting-link{gap:8px}.workspace-breadcrumb{gap:5px}.workspace-parent,.workspace-parent-separator{display:none}}.native-home.no-agenda{grid-template-rows:none;grid-template-columns:minmax(0,1fr)}.workspace-assistant-dock{inset-inline:0;border-top:1px solid var(--line);background:var(--bg);justify-content:flex-end;align-items:center;height:44px;padding:0 18px;display:flex;position:absolute;bottom:0}.workspace-assistant-launch{height:28px;color:var(--muted);background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:450;transition:background-color .12s,color .12s;display:inline-flex}.workspace-assistant-launch:hover{color:var(--ink);background:var(--control)}.workspace-assistant-launch:active{background:var(--control-pressed)}.workspace-assistant-launch kbd{font:10px/15px var(--font-sans);color:var(--muted);margin-inline-start:5px}.workspace-content:has(.workspace-assistant-dock) :is(.native-home,.native-folder){padding-bottom:44px}@media (prefers-reduced-motion:reduce){.chat-starter,.workspace-button,.workspace-recording-link,.workspace-assistant-launch,.workspace[data-sidebar-motion=true].sidebar-collapsed .workspace-sidebar,.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:none}}[data-folder-color]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--folder-ink:var(--written);--folder-tint:var(--control)}@media (prefers-color-scheme:dark){[data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial}}.widget [data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-folder-color=violet]{--folder-ink:var(--lightningcss-light,#7434ca)var(--lightningcss-dark,#b995ff)}[data-folder-color=blue]{--folder-ink:var(--lightningcss-light,#2868ba)var(--lightningcss-dark,#87b5f4)}[data-folder-color=teal]{--folder-ink:var(--lightningcss-light,#157d80)var(--lightningcss-dark,#72cece)}[data-folder-color=green]{--folder-ink:var(--lightningcss-light,#388044)var(--lightningcss-dark,#92c88a)}[data-folder-color=amber]{--folder-ink:var(--lightningcss-light,#976b0d)var(--lightningcss-dark,#e5bd68)}[data-folder-color=orange]{--folder-ink:var(--lightningcss-light,#b85a1f)var(--lightningcss-dark,#efa777)}[data-folder-color=rose]{--folder-ink:var(--lightningcss-light,#be4675)var(--lightningcss-dark,#e99dbb)}[data-folder-color]:not([data-folder-color=default]){--folder-tint:color-mix(in srgb,var(--folder-ink) 12%,var(--bg))}.folder-glyph{color:var(--folder-ink);flex:none;justify-content:center;align-items:center;display:inline-flex}.folder-preview-tile,.folder-heading-icon{background:var(--folder-tint);color:var(--folder-ink)}.folder-page-heading{align-items:center;gap:12px;margin-bottom:9px;display:flex}.folder-page-heading h1{letter-spacing:-.55px;min-width:0;font-size:20px;font-weight:600;line-height:26px}.folder-page-heading h1 input{font:inherit;letter-spacing:inherit}.folder-heading-icon{border:1px solid color-mix(in srgb,var(--folder-ink) 15%,transparent);border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:grid}.folder-heading-icon:hover{filter:brightness(.96)}.folder-appearance-preview{align-items:center;gap:12px;min-width:0;margin:0 20px 22px;display:flex}.folder-appearance-preview strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.folder-preview-tile{border-radius:11px;flex:none;place-items:center;width:44px;height:44px;display:grid}.folder-choices{padding:0 20px 22px}.folder-choice-label{color:var(--muted);margin-bottom:9px;font-size:11px;font-weight:500}.folder-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:20px;display:grid}.folder-icon-grid button{background:0 0;border:1px solid #0000;border-radius:8px;place-items:center;height:38px;transition:background .12s,border-color .12s;display:grid}.folder-icon-grid button:hover{background:var(--control)}.folder-icon-grid button[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.folder-color-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;display:grid}.folder-color-grid button{border:1px solid #0000;border-radius:50%;place-items:center;height:30px;display:grid}.folder-color-grid button span{background:var(--folder-ink);border-radius:50%;width:18px;height:18px}.folder-color-grid button:hover{background:var(--control)}.folder-color-grid button[aria-checked=true]{border-color:var(--folder-ink)}.folder-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.folder-choices button:disabled{opacity:.5}@media (prefers-reduced-motion:reduce){.folder-icon-grid button{transition:none}}body:has(.note-footer) .app-toast-viewport{bottom:var(--note-footer-height,76px)}body:has(.chat-page) .app-toast-viewport{bottom:88px}body:has(.chat-panel[open]) .app-toast-viewport{inset-inline-end:460px}@media (width<=999px){body:has(.chat-panel[open]) .app-toast-viewport{inset-inline-end:16px;bottom:16px}.chat-panel:has(.app-toast){height:min(440px,100dvh - 152px);inset-block-end:84px}}@media (prefers-reduced-motion:reduce){.app-toast-viewport{transition:none}}.native-library{container:meeting-library/inline-size}.meeting-description{flex:220px}.meeting-folders{flex:0 3 auto;gap:6px;min-width:0;max-width:40%;display:flex;overflow:hidden}.meeting-folder-pill{border:1px solid var(--line);min-width:0;max-width:140px;height:22px;color:var(--written);background:0 0;border-radius:11px;flex:0 auto;align-items:center;gap:5px;padding:0 7px;font-size:11px;line-height:20px;display:inline-flex}.meeting-folder-pill[data-opens=true]{transition:background-color .12s,color .12s,border-color .12s}.meeting-folder-pill[data-opens=true]:hover{border-color:var(--control-border);background:var(--control);color:var(--ink)}.meeting-folder-dot{background:var(--folder-ink);border-radius:50%;flex:none;width:7px;height:7px}.meeting-folder-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@container meeting-library (width<=460px){.meeting-folders{flex-shrink:0;max-width:50px}.meeting-folder-pill{flex:0 0 22px;justify-content:center;width:22px;min-width:22px;max-width:22px;padding:0}.meeting-folder-name{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.sidebar-toggle-pane{width:6px}.workspace-sidebar-toggle[aria-expanded=false] .sidebar-toggle-pane{width:2px}@media (prefers-reduced-motion:no-preference){.workspace[data-sidebar-motion=true] .sidebar-toggle-pane{transition:width .2s cubic-bezier(.22,1,.36,1)}}.ask-page{contain:layout;scrollbar-gutter:stable both-edges;flex-direction:column;height:100%;min-height:0;padding:104px 32px 24px;display:flex;overflow-y:auto}.ask-page-toolbar{z-index:4;top:68px;justify-content:flex-end;align-items:center;gap:12px;height:28px;display:flex;position:absolute;inset-inline:24px}.ask-recent-button,.ask-back{height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding-inline:8px;font-size:12px;display:inline-flex}.ask-recent-button:hover,.ask-recent-button[aria-expanded=true],.ask-back:hover{background:var(--control);color:var(--ink)}.ask-recent-button:active,.ask-back:active{background:var(--control-pressed)}.ask-back{margin-inline-end:auto}.ask-page:has(.ask-landing){padding-bottom:clamp(104px,24vh,240px);container-type:size}.ask-page:has(.ask-landing) .ask-back{display:none}.ask-conversation{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ask-page>.ask-landing{flex:none;width:100%;max-width:720px;margin:max(0px,50cqh - 97px) auto 0}.ask-home-title{text-align:center;letter-spacing:-.55px;margin:0 0 24px;font-size:20px;font-weight:600;line-height:26px}.ask-page.ask-full-thread:not(:has(.ask-landing)){padding-inline:0;overflow:hidden}.ask-full-thread>.ask-conversation:not(.ask-landing){--ask-reading-inset:max(32px,calc((100% - 720px)/2))}.ask-full-thread .ask-conversation-head,.ask-full-thread .ask-conversation:not(.ask-landing) .ask-composer{margin-inline:var(--ask-reading-inset)}.ask-full-thread .ask-thread{padding-inline:var(--ask-reading-inset)}.ask-conversation-head{flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:44px;display:flex}.ask-conversation-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:550;overflow:hidden}.ask-conversation .chat-icon:active:not(:disabled){background:var(--control-pressed)}.ask-conversation .chat-icon:disabled{opacity:.45}.ask-conversation :is(.chat-copy-action,.chat-latest):hover{background:var(--control);color:var(--ink)}.ask-conversation :is(.chat-copy-action,.chat-latest):active{background:var(--control-pressed)}.ask-conversation button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.ask-context-row>button:focus-visible{outline-offset:1px}.ask-header-actions{flex:none;align-items:center;gap:8px;display:flex}.ask-thread-wrap{flex:1;min-height:0;display:flex;position:relative}.ask-thread{overscroll-behavior:contain;flex:1;min-height:0;padding:16px 0;overflow-y:auto}.ask-thread-empty{flex-direction:column;display:flex}.ask-thread-empty .ask-thread-content{margin-top:auto}.ask-landing .ask-thread-wrap{display:none}.ask-turn{flex-direction:column;gap:16px;margin:0 0 24px;display:flex}.ask-turn:last-child{margin-bottom:0}.ask-question{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--control);border-radius:12px;width:fit-content;max-width:80%;margin-inline-start:auto;padding:8px 12px;font-size:14px;line-height:20px}.ask-composer{flex:none;min-width:0;container-type:inline-size}.ask-box{border:1px solid var(--line);background:var(--float);min-width:0;box-shadow:var(--shadow-soft);border-radius:12px;position:relative}.ask-box,.note-reading-frame{--ask-ring-opacity:0;--ask-ring-play:paused;--ask-ring-color:color-mix(in srgb,var(--accent) 72%,var(--float));--ask-ring-highlight:color-mix(in srgb,var(--focus) 32%,var(--float))}.ask-border{border-radius:inherit;pointer-events:none;opacity:var(--ask-ring-opacity);background:var(--ask-ring-color);padding:2px;transition:opacity .2s ease-out;position:absolute;inset:-1px;overflow:hidden;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.ask-border:before{content:"";aspect-ratio:1;background:conic-gradient(transparent 0 54%,var(--ask-ring-highlight) 76%,var(--ask-ring-highlight) 81%,transparent 100%);width:200%;animation:12s linear infinite ask-border-drift;animation-play-state:var(--ask-ring-play);position:absolute;top:50%;left:50%}@media (hover:hover) and (prefers-reduced-motion:no-preference){.ask-box:not([data-busy=true]):hover{--ask-ring-opacity:.56;--ask-ring-play:running}}.ask-box:not([data-busy=true]):has(textarea:focus){--ask-ring-opacity:1;--ask-ring-play:running}@keyframes ask-border-drift{0%{transform:translate(-50%,-50%)rotate(0)}to{transform:translate(-50%,-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.ask-border:before{animation:none;display:none}.ask-box:before,.note-reading-frame:before{display:none}.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-field{padding:16px 10px 12px}.ask-box textarea{field-sizing:content;resize:none;width:100%;min-height:38px;max-height:160px;color:var(--ink);background:0 0;outline:none;font-size:14px;line-height:22px;display:block}.ask-box textarea:focus-visible{outline:none}.ask-box textarea::placeholder{color:var(--muted)}.ask-box-actions{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.ask-toolbar-button{width:28px;height:28px;color:var(--muted);border:1px solid #0000;border-radius:50%;flex:none;place-items:center;transition:background-color .12s,color .12s;display:grid}.ask-toolbar-button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-toolbar-button:active:not(:disabled){background:var(--control-hover)}.ask-toolbar-button:disabled{color:var(--muted);opacity:.45}.ask-send{isolation:isolate;background:var(--primary);color:#fff;--orb-play:paused;transition:transform .12s ease-out;position:relative;overflow:hidden}.ask-send:after{content:"";pointer-events:none;border-radius:inherit;background:#6f00ffbd;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ccb6ff44}.ask-send svg{z-index:1;position:relative}.orb-material{border-radius:inherit;pointer-events:none;background:var(--primary);isolation:isolate;position:absolute;inset:0;overflow:hidden}.orb-material:before,.orb-material:after{content:"";pointer-events:none;filter:blur(3px);animation:18s linear infinite orb-turn;animation-play-state:var(--orb-play);opacity:.92;background:radial-gradient(at 27% 32%,#ccb6ff 0 12%,#af8bff 24%,#0000 52%),radial-gradient(at 75% 68%,#7142e8 0 18%,#0000 50%);position:absolute;inset:-35%;transform:rotate(22deg)}.orb-material:after{background:radial-gradient(ellipse at 68% 26%,#fff 0 3%,#ccb6ff 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--accent) 0 13%,#7142e8 29%,transparent 54%);opacity:.8;animation-name:orb-counter;animation-duration:27s}@keyframes orb-turn{0%{transform:rotate(22deg)}to{transform:rotate(382deg)}}@keyframes orb-counter{0%{transform:rotate(-28deg)}to{transform:rotate(-388deg)}}.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,:focus-visible){--orb-play:running;transform:scale(1.04)}.ask-send:active:not(:disabled){transform:scale(.94)}.ask-send:disabled{border-color:var(--line);background:0 0}.ask-send:disabled:after,.ask-send:disabled .orb-material,.ask-box[data-busy=true] .orb-material{display:none}.ask-stop{background:var(--control);color:var(--ink)}.ask-stop:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-stop:active:not(:disabled){background:var(--control-pressed)}.ask-context-strip{gap:6px;max-height:184px;padding:10px 10px 0;display:grid;overflow-y:auto}.ask-context-strip+.ask-field{padding-top:10px}.ask-context-row{background:color-mix(in srgb,var(--control) 55%,var(--float));min-width:0;height:32px;color:var(--ink);border-radius:8px;align-items:center;gap:8px;padding-inline:8px 4px;font-size:13px;line-height:20px;display:flex}.ask-context-row>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ask-context-row>svg,.ask-context-row>button{flex:none}.ask-context-row>svg{color:var(--muted)}.ask-context-row>button{opacity:0;width:24px;height:24px}.ask-context-row:hover>button,.ask-context-row:focus-within>button{opacity:1}.ask-starters{flex-direction:column;align-items:flex-end;gap:8px;min-width:0;display:flex}.ask-starters button{max-width:80%;color:var(--muted);text-align:start;background:color-mix(in srgb,var(--control) 50%,transparent);border:0;border-radius:12px;padding:8px 12px;font-size:12px;line-height:20px}.ask-home-starters{opacity:1;visibility:visible;flex-flow:wrap;justify-content:center;align-items:center;margin-top:12px;transition:opacity .14s,visibility}.ask-home-starters[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s,visibility 0s .14s}@media (prefers-reduced-motion:reduce){.ask-home-starters,.ask-home-starters[aria-hidden=true]{transition:none}}.ask-home-starters button{white-space:nowrap;text-overflow:ellipsis;max-width:100%;height:28px;padding:4px 10px;font-size:12.5px;overflow:hidden}.ask-starters button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-starters button:active:not(:disabled){background:var(--control-pressed)}.ask-picker{z-index:80;inset-inline:0;border:1px solid var(--line);background:var(--float);max-height:min(260px,40vh);box-shadow:var(--shadow-soft);border-radius:10px;padding:6px;animation:.16s ease-out ask-fade;position:absolute;bottom:calc(100% + 8px);overflow-y:auto}.ask-landing .ask-picker{top:calc(100% + 8px);bottom:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button{text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button[aria-selected=true],.ask-picker button:hover{background:var(--card)}.ask-picker button>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:active{background:var(--control-pressed)}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);padding:10px;font-size:12px}.ask-recent-positioner{z-index:80}.ask-history{width:min(520px,100vw - 32px);max-height:min(480px,var(--available-height));border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:9px;overflow:hidden}.ask-history-scroll{max-height:min(478px,calc(var(--available-height) - 2px));overscroll-behavior:contain;padding:8px;overflow-y:auto}.ask-history h2{color:var(--muted);padding:8px 8px 4px;font-size:10px;font-weight:500;line-height:14px}.ask-history section+section{margin-top:8px}.ask-history-empty{color:var(--muted);padding:16px 8px;font-size:12px}.ask-history-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:16px;height:46px;padding-inline:8px;display:grid}.ask-history-row:hover:not(:has(:focus-visible)){background:var(--card)}.ask-history-row:active{background:var(--control)}.ask-history-link{grid-area:1/1/2/3;grid-template-columns:subgrid;text-align:start;border-radius:5px;align-items:center;min-width:0;height:100%;display:grid}.ask-history-link strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:450;overflow:hidden}.ask-history-link time{min-width:86px;color:var(--muted);text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.ask-history-all{width:100%;color:var(--muted);text-align:start;border-radius:5px;padding:10px 8px;font-size:12px;display:block}.ask-history-all:hover{background:var(--card);color:var(--ink)}.ask-history-all:active{background:var(--control-pressed)}.ask-menu-positioner{z-index:110}.ask-actions-menu{min-width:156px}.ask-actions-menu [role=menuitem]{cursor:default;align-items:center;gap:8px;display:flex}.ask-actions-menu [data-highlighted]{background:var(--card);outline:none}.ask-actions-menu,.ask-history{transition:opacity .16s ease-out}.ask-actions-menu[data-starting-style],.ask-actions-menu[data-ending-style],.ask-history[data-starting-style],.ask-history[data-ending-style]{opacity:0}.chat-panel .ask-conversation-head{height:44px;padding-inline:16px 12px}.chat-panel .ask-thread{padding:16px 12px}.chat-panel .ask-composer{padding:0 12px 12px;overflow:visible}@container (width<=520px){.ask-page{padding-inline:18px}}@media (hover:none){.ask-context-row>button{opacity:1}}@keyframes ask-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.ask-picker{animation:none}.ask-toolbar-button,.ask-actions-menu,.ask-history{transition:none}}.note-folder-proposal{background:color-mix(in srgb, var(--line) 25%, transparent);border-style:dashed}.ask-conversation ::selection{background:var(--accent-soft);color:var(--ink)}.native-library{scrollbar-gutter:stable}.native-library:has(.library-empty){flex-direction:column;display:flex}.library-load,.library-load>.loading-result{flex-direction:column;flex:1;display:flex}:root[data-chrome=overlay]{--controls-start:env(titlebar-area-x,0px);--controls-end:calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw))}:root[data-chrome=overlay] .workspace{--chrome-glass:var(--chrome)}:root[data-chrome=overlay] .workspace-sidebar-toggle{left:calc(14px + var(--controls-start))}:root[data-chrome=overlay] .sidebar-collapsed .workspace-window-bar{width:56px}:root[data-chrome=overlay] .workspace-toolbar{right:var(--controls-end)}:root[data-chrome=overlay] .home-toolbar-action{right:calc(17px + var(--controls-end))}:root[data-chrome=overlay] .note-topbar{right:calc(16px + var(--controls-end))}:root[data-chrome=overlay] .sidebar-collapsed .workspace-toolbar{padding-inline-start:24px}.note-reading-frame{border-radius:12px;flex:1;min-width:0;min-height:0;margin:8px calc(max(0px,50% - 430px) + clamp(20px,10cqw - 42px,48px) - 14px);padding:2px;position:relative}.note-reading-frame[hidden]{display:none}.note-reading-frame[data-generating=true]{--ask-ring-opacity:1}.note-reading-frame[data-active=true]{--ask-ring-play:running}.note-reading-clip{border-radius:10px;height:100%;overflow:hidden}.main-window .note-reading-clip>.note-notes-pane{scrollbar-width:auto;scrollbar-gutter:stable;height:100%}.note-reading-frame .note-notes-body{max-width:none;padding-block:12px 30px;padding-inline:12px 8px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar{width:4px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-track{background:0 0}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-thumb{background:0 0}.note-reading-clip>.note-notes-pane[data-scrolling]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,transparent);border-radius:3px}.note-summary-rim{z-index:2;inset:0}.note-summary-status{inset-inline-start:14px;z-index:1;background:var(--bg);color:var(--muted);pointer-events:none;font-size:11px;line-height:16px;position:absolute;bottom:10px}.note-latest{z-index:3;border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:6px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;line-height:16px;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}:root[data-marketing-theme=dark] .workspace{--sidebar-field:#2f2f31;--sidebar-field-edge:#363638;--sidebar-selected:#38313f}:root[data-marketing-theme=dark] .empty-tile{box-shadow:0 1px 2px #0003,0 14px 32px -10px #00000080}:root[data-marketing-theme=dark] .ask-box,:root[data-marketing-theme=dark] .note-reading-frame{--ask-ring-color:color-mix(in srgb,var(--primary) 35%,var(--accent));--ask-ring-highlight:color-mix(in srgb,var(--focus) 18%,var(--ink))}:root[data-marketing-theme=dark] .ask-box:before,:root[data-marketing-theme=dark] .note-reading-frame:before{content:"";border-radius:inherit;pointer-events:none;opacity:var(--ask-ring-opacity);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 9%,transparent),0 0 12px 2px color-mix(in srgb,var(--accent) 16%,transparent);transition:opacity .2s ease-out;position:absolute;inset:-2px}:root[data-marketing-theme=dark] .note-reading-frame:before{inset:0}:root[data-marketing-theme=dark] .ask-conversation ::selection{color:#fff;background:#8055b8}html,body,#root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;height:100%;margin:0;overflow:hidden}html.main-window,body{background:0 0!important}body{pointer-events:none;-webkit-user-select:none;user-select:none;caret-color:#0000}.marketing-window{background:var(--bg);border-radius:12px;position:absolute;inset:0;overflow:hidden;transform:translateZ(0)}@media (width>=1000px){.marketing-window .chat-panel{--chat-height:initial!important}}.marketing-traffic{z-index:100;gap:7px;display:flex;position:absolute;top:16px;left:18px}.marketing-traffic i{background:#ff6058;border-radius:50%;width:10px;height:10px}.marketing-traffic i:nth-child(2){background:#febc2e}.marketing-traffic i:nth-child(3){background:#29c840}html[data-still] *,html[data-still] :before,html[data-still] :after{transition:none!important;animation:none!important}html[data-playing=false] *,html[data-playing=false] :before,html[data-playing=false] :after{animation-play-state:paused!important}.marketing-window .transcript-turn:first-child .name-in{animation:none}.marketing-cursor{z-index:1000;pointer-events:none;opacity:0;width:30px;height:32px;position:fixed;top:0;left:0;overflow:visible}.cursor-pointer{fill:#2f3649;stroke:#fff;filter:drop-shadow(0 1px 1.5px #0e142633);transform-origin:4px 3px;transition:transform .13s ease-out}.marketing-cursor[data-clicking=true] .cursor-pointer{transform:scale(.88)}.cursor-ring{fill:none;stroke:#fff;stroke-width:1.5px;opacity:0;transform-origin:4px 3px;transition:transform .24s ease-out,opacity .18s ease-out;transform:scale(.6)}.marketing-cursor[data-clicking=true] .cursor-ring{opacity:.3;transform:scale(1)}[data-testid=transcript-hidden-toggle],.transcript-echo{display:none}html[data-typing=true] [data-testid=note-mine] li:last-child p:after{content:"";vertical-align:-.1em;border-right:1.5px solid;height:1em;animation:.9s step-end infinite demo-caret;display:inline-block}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child){position:relative}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child):after{position:absolute;top:50%;left:0;translate:0 -50%}@keyframes demo-caret{50%{opacity:0}}html[data-fragment]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.marketing-fragment{min-width:0;position:absolute;inset:24px 24px auto}.marketing-fragment .transcript-toolbar,.marketing-fragment .transcript-player-dock,.marketing-fragment .ask-conversation-head,.marketing-fragment .ask-composer,.marketing-fragment .chat-answer-actions{display:none}.fragment-transcript .transcript-inline [data-testid=transcript]{flex:none;gap:20px;padding:0;overflow:hidden}.fragment-transcript .transcript-turn{min-width:0;margin:0}.fragment-transcript .turn-head{align-self:stretch}.fragment-transcript .line-who{flex:1}.fragment-transcript .turn-time{display:none}.fragment-transcript .transcript-turn[data-track=me]>p.sr-only{clip:auto;clip-path:none;white-space:normal;text-align:right;width:auto;height:auto;font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--muted);align-self:stretch;margin:0;padding:0;display:flex;position:static;overflow:visible}.fragment-transcript [data-testid=transcript-empty],.fragment-transcript .loading-placeholder{display:none}.marketing-fragment .ask-thread{padding:0;overflow:visible}.marketing-fragment .ask-turn>.ask-question{order:0}.fragment-byline{color:var(--muted);order:1;align-items:center;gap:9px;font-size:12px;display:flex}.marketing-fragment .ask-turn>:is(.chat-progress,.chat-answer){order:2}.marketing-fragment .ask-turn>.chat-progress{margin:0}.marketing-fragment .ask-turn>.chat-answer{margin-left:29px}html[data-fragment-playing=false] *{animation-play-state:paused!important}.fragment-ask .ask-turn{position:relative}.fragment-ask .ask-turn>.chat-progress{left:29px;top:var(--fragment-answer-top);visibility:hidden;position:absolute}@media (width<=320px){.marketing-fragment{inset:20px 20px auto}.marketing-fragment .bubble,.marketing-fragment .ask-question,.marketing-fragment .chat-answer{font-size:15px}}.marketing-window [data-testid=transcript-who],.fragment-transcript [data-testid=transcript-who]{visibility:visible;animation:none}.fragment-plan{position:relative}.fragment-plan-size{visibility:hidden;pointer-events:none}.fragment-plan-live{position:absolute;inset:0}html[data-ask-focused=true] .ask-box:not([data-busy=true]){--ask-ring-opacity:1;--ask-ring-play:running}html[data-ask-focused=true] [data-testid=chat-suggestions]{visibility:hidden}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--font-brand:"Bricolage Grotesque", -apple-system, system-ui, sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}@media (prefers-reduced-motion:no-preference){:where(.main-window :is(.overflow-auto,.overflow-y-auto,.workspace-sidebar-body,.native-library,.agenda-scroll,.agenda-inspector-scroll,.note-notes-pane,.note-layout,.chat-thread,.chat-history,.settings-scroll,.shortcuts-list,.citation-excerpt,.note-date-events,.finish-setup,.ob-side)){transition:scrollbar-color var(--dur-micro) ease}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.inset-x-0{inset-inline:0}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.start-1\/2{inset-inline-start:50%}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.right-4{right:calc(var(--spacing) * 4)}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[100\]{z-index:100}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.ms-0\.5{margin-inline-start:calc(var(--spacing) * .5)}.ms-2{margin-inline-start:calc(var(--spacing) * 2)}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-px{margin-top:1px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[min\(44vh\,480px\)\]{height:min(44vh,480px)}.h-full{height:100%}.h-px{height:1px}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[74vh\]{max-height:74vh}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[40vh\]{min-height:40vh}.min-h-\[52px\]{min-height:52px}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-52{width:calc(var(--spacing) * 52)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[min\(340px\,calc\(100vw-48px\)\)\]{width:min(340px,100vw - 48px)}.w-\[min\(720px\,calc\(100\%-48px\)\)\]{width:min(720px,100% - 48px)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[220px\]{max-width:220px}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100\%-32px\)\]{max-width:calc(100% - 32px)}.max-w-\[min\(280px\,calc\(100vw-48px\)\)\]{max-width:min(280px,100vw - 48px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-line{border-color:var(--line)}.bg-\[var\(--line\)\]{background-color:var(--line)}.bg-accent{background-color:var(--accent)}.bg-bg{background-color:var(--bg)}.bg-card{background-color:var(--card)}.bg-float{background-color:var(--float)}.bg-transparent{background-color:#0000}.\!p-1\.5{padding:calc(var(--spacing) * 1.5)!important}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.\!px-0{padding-inline:0!important}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-9{padding-top:calc(var(--spacing) * 9)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.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}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-\[1\.55\]{--tw-leading:1.55;line-height:1.55}.leading-\[17px\]{--tw-leading:17px;line-height:17px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.break-words{overflow-wrap:break-word}.text-\[\#fff\]{color:#fff}.text-\[var\(--pill-accent\)\]{color:var(--pill-accent)}.text-accent{color:var(--accent)}.text-accent-ink{color:var(--accent-ink)}.text-danger{color:var(--danger)}.text-ink{color:var(--ink)}.text-muted{color:var(--muted)}.italic{font-style:italic}.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,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow-\[var\(--shadow\)\]{--tw-shadow:var(--shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--shadow-soft\)\]{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-line{--tw-ring-color:var(--line)}.blur{--tw-blur:blur(8px);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,)}.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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.\[overflow-anchor\:none\]{overflow-anchor:none}.placeholder\:text-muted::placeholder{color:var(--muted)}@media (hover:hover){.hover\:bg-\[var\(--line\)\]:hover{background-color:var(--line)}.hover\:bg-card:hover{background-color:var(--card)}.hover\:text-ink:hover{color:var(--ink)}}.focus\:ring-accent:focus{--tw-ring-color:var(--accent)}.focus-visible\:bg-\[var\(--line\)\]:focus-visible{background-color:var(--line)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}}.aria-expanded\:text-ink[aria-expanded=true]{color:var(--ink)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}}@font-face{font-family:Bricolage Grotesque;src:url(data:font/ttf;base64,AAEAAAAQAQAABAAAR0RFRjocOWEAAAJQAAAA5EdQT1NqC7sMAAC11AAAi6pHU1VCvzzi/gAAETgAAAgcT1MvMmZffxoAAAHwAAAAYFNUQVRkw1NUAAABmAAAAFZjbWFwwBgxaAAACwwAAAYsZ2FzcAAAABAAAAEUAAAACGdseWYwEH14AAAx/AAAg9ZoZWFkH43wwgAAAWAAAAA2aGhlYQgxBTEAAAE8AAAAJGhtdHi4ZlhOAAAZVAAACPhsb2NhN9gXaAAABowAAAR+bWF4cAJQANYAAAEcAAAAIG5hbWVNBX+sAAADNAAAA1Zwb3N07eDS7wAAIkwAAA+ucHJlcGgGjIUAAAEMAAAAB7gB/4WwBI0AAAEAAf//AA8AAQAAAj4AZwAHAG0ABgABAAAAAAAAAAAAAAAAAAQAAQABAAADov7yAAAFZv9B/poFSwABAAAAAAAAAAAAAAAAAAACPgABAAAAAQBC7KnWY18PPPUAAwPoAAAAANsNS6MAAAAA4N1g7/9B/pAFSwR7AAAABgACAAAAAAAAAAEAAQAIAAMAAAAUAAMAAAAsAAJvcHN6AQAAAHdkdGgBAgABd2dodAEBAAIAHgASAAYAAQACAAABBwJYAAAAAQABAAIBEwBkAAAAAQAAAAABCwAOAAAAAAAEAjsCWAAFAAACigJYAAAASwKKAlgAAAFeADIBOgAAAgsGBQQEAgACBAAAAAMAAAAAAAAAAAAAAABBVExSAMAAICfpA6L+8gAABIgBkAAAAAEAAAAAAgsClAAAACAADQABAAIADgAAAAAAAACcAAIAFwABAG0AAQBvAMMAAQDFAREAAQETAUYAAQFiAWIAAQFkAWQAAQFnAWcAAQFsAWwAAQFuAW4AAQFxAXEAAQF2AXcAAQGAAYAAAQGCAYIAAQGFAYUAAQGKAYoAAQGMAYwAAQGPAY8AAQHJAckAAQHaAeIAAQHpAewAAQHwAfIAAQISAhYAAwIYAiwAAwABAAMAAAA+AAAAFgAAABAAAQABAiAAAQASAhICEwIVAhYCGAIZAhoCGwIcAh0CHgIfAiUCJwIoAikCKwIsAAEAAwIhAiICIwAAABAAxgADAAEECQAAAMQBzAADAAEECQABADgBlAADAAEECQACAA4BhgADAAEECQADAEwBOgADAAEECQAEADgBlAADAAEECQAFAFYA5AADAAEECQAGADYArgADAAEECQAOADYAeAADAAEECQAQACYAUgADAAEECQARABAAQgADAAEECQEAABgAKgADAAEECQEBAAwAHgADAAEECQECAAoAFAADAAEECQEHABAAQgADAAEECQELAAgADAADAAEECQETAAwAAABOAG8AcgBtAGEAbAAxADQAcAB0AFcAaQBkAHQAaABXAGUAaQBnAGgAdABPAHAAdABpAGMAYQBsACAAcwBpAH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YAAAABAAgAAwAAAAEDKAAGAJgAmACYAJgAmAC8AAEAAAAdAAYAAAABAAgAAwAAAAEDBAAFAHQAdAB0AHQAmAABAAAAGwAGAAAAAQAIAAMAAAABAuIABABSAFIAUgB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPAD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wmCA8FKkMtOFEsAAABABD/9AFkAn8AGgAAFyImNTUjNzMyNjc3MxUzFSMVFBYzMjY3FQYG/lNOTQIzHRwDDEmKiiMjEyUQHzMMWV77ZBIXTHRp8iUiCQt4CgcA//8AEP/0AY8C5wImAR4AAAAHAhcBDAAB//8AEP8cAWQCfwImAR4AAAAGAiJsAAABAD//8wIcAgsAGAAAFyImNREzERQWMzI+Ajc1MxEVIzcjDgL0Wlt/MDIdLCATAn5oAhINL0QNe30BIP7uT04dNUYq7f7M16U/TiX//wA///MCHAL6AiYBIQAAAAcCFQDdAAD//wA///MCHALWAiYBIQAAAAcCGgCKAAH//wA///MCHAMDAiYBIQAAAAYCGHoB//8AP//zAhwC1wImASEAAAAGAhJwAf//AD//LwIcAgsCJgEhAAAABwITAN380wACAD//8wIcAvoAGAAcAAAXIiY1ETMRFBYzMj4CNzUzERUjNyMOAgMnMxf0Wlt/MDIdLCATAn5oAhINL0QdaIFKDXt9ASD+7k9OHTVGKu3+zNelP04lAmKlpf//AD//8wIcAxMCJgEhAAAABwIeAMAAAP//AD//8wKRAoIAJgEhAAAABwIgAboAAf//AD//8wKRAvoAJgEhAAAAJwIgAboAAQAHAhUA3QAA//8AP/8vApECggAmASEAAAAnAiABugABAAcCEwDd/NMAAwA///MCkQL6ABgAJAAoAAAXIiY1ETMRFBYzMj4CNzUzERUjNyMOAgEnNzI+AiczFgYGJSczF/RaW38wMh0sIBMCfmgCEg0vRAEGXAIiJg8BAmMIEC/+tWiBSg17fQEg/u5PTh01Rirt/szXpT9OJQHxCxwTISsYNUskd6WlAP//AD//8wKRAxMAJgEhAAAAJwIgAboAAQAHAh4AwAAA//8AP//zApEC2wAmASEAAAAnAiABugABAAYCHHUB//8AP//zAhwC7gImASEAAAAHAhYAkAAH//8AP//zAhwCygImASEAAAAHAh0AiQAB//8AP/84AiECCwImASEAAAAHAiQBXgAA//8AP//zAhwC+gImASEAAAAHAhsAvQAB//8AP//zAhwC2wImASEAAAAGAhx1AQABAA0AA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/+AAAADP/w/7QADv/z/97/4P/tAA//3//v/+n/7QAo//H//QAoAA7/6gAAAA3/4v/i//sAHv/R//QAAQAA/+T/5v/vAAAAEgA3ACoAKAAAAAAAAP/UAAAAHgAVAAAAAAApAAAALgAr//v/y//1AAD/swAAAAD//wADAAD/3AAAAAD/+AAAAAD/5AAAAAAADwAAAAAAAP/+AAAABgAA//gALv/PAAAAGwAAAAAAHAAA/7cABAAA//0AAAAB//8AAAAA////+gAA//////////4AAP////8AAAAA//v/+AAD//4AAAAA//cACf////n////+/+v////+AAAAAP/2ABD/+P/4//r/+//2/+z/7AAA//8AAP/6//sAAAAA//4AAAAE//0AAv/7AAUAAP/9AAAAAP/7AAQAAAASAAAAAAADAAAAAAADAAAAAP/+AAAAAAAA//8AAP/5AAD//wABAAH/9v//AAD//f//AAD/+gAPAAAABQAA//X/9AAA////+QAF//3/+v/8//P//AAA//P/9gAAAAD/8P/4AAD/+//+//8AAAAK//UAAAAG//z/3v/6AAIAAP/o/+7/+gAHAAQAAAAHAAf//f/9AAAADgAA//gAAAAAAAAABQAAAAb//gAKAA3//gAAAAQAAAAAAAAAAAAA//oAAAAAAAUAAAAA/+sAAAAAAAAAAAAAAAAAAwAAAAIAAP/8//wAEQAAAAIAAAAf//4AAAAAAAAAAAAIAAAAAAAEAAAAAAAA/8sAAAAD//P/9gAAAAD/9f/1//P/9v/3//8AAAAAAAAAAAAc//n/+f/3AAn//f/nAAAAGAAA//b/+///AAAAAAAQABgAFAAAAA0AAP/UAAAAAP/p/+MAAAAVAAf////3AA//1QAAAAT/w//vAAAAAwAAAAT/7gAIAAIACQATAAD/9wAHAAD////z//j/9gAAAAUACgAA//7/9//aAAAAAf/yABX//P/4/9EAAP/+AAMAAQAZAA4AAAAA//gACf/+AAD/+f/qAAAAAP/q/+v/+f/r//D//gAA//8AAP/6AAkABv/uAAEAD//5/8z//AAPAAD/2f/1//gAAAAAAAkAEwAPAAAAAgAAAA8AAP/+AAYAAP/PAAwAAv//AAAACwARAAD//gAG/+kAAP//AAD//f/r//7//gAGAAwAAP/ZAAUAAP///+H/6AAAAAAAAAAC/////P//ABMAAAAE//kAGv/9//AABwAA//MABv/9AAwAFAABAAgBNAE6AUwBTQFRAa8BvQG+AAIABwE0ATQABgE6AToABwFMAUwABQFNAU0ABAFRAVEAAgGvAa8AAwG9Ab0AAQABAAIAAAAIAAI6FAAEAAA+MDrYAE8AXgAAAAD/5wAO/+X/7v/9//H//v/+//L/8v/9//H/r//3//b/zf/+//7/2wAQ//P//wAK/77/zf/p/+X/5P/x/+f/+wAAAAD/v//G/8YAAP/DAAwAEv/d/64AAAAC/9r/xv/A//8AAAAIABYAAP/NAAn/9QAA/+gAAP/G//3/0v/3AAIACf////L////+AAD/0//l/90AAP/J/+T/vf/z//4AGQAA//b/+wAI/+H/wQARAAD/0wAI/9n/ywAJAAAAAAAAAAD/9AAA//8AAAAAAAAAAAAA//8AAP+///z//P/fAAD////5AAEAAgAAAAH/w//pAAAAAAAAAAT/8wAKAAAAAP/s/+z/7wAA//AAAAAD/+r/z///AAH/9P/w/+T//f/9AAUAAgAA//f//wAA//7//wAA/+4AAf/6//MACgASAAAABAAAAAAAAP/t//z/6AAA//D/7f/eAAD/9QAEAAD/7v/qAAn/0v/gAAAAAP/5AAD/9v/yAAAAAAAA//EACP/+//L//v/z//YAAP/z//b//v/0AA//8P/+AA8AAP////0AFv/zAAAABQAR/9v/8v/+//H/8v/o//kAAAAAAA4ACgADAAD//gAHABf/4wAKAA0AAv/kAA8AGgAkABwAAgAUAAD/+wAH//oAAwAAAAD/+v/5//L/9gACAAYAHv/zACIAAwAA/93/9v/bAAAAAAAEAAD/+QAVABUAAAAVAAQAEAAYAAMABQAAAAQABwAC//oAAgAAAAAAAP/6//4AAwACAAQAAAAAAAQABAACAAT/wv/9AAD/6AAAAAYAAAAAAAYAAP///8H/9AAAAAD//gAE//gAGAAAAAD/7//v//EAAP/3//YAAgAA/9T/7AAN//3/9P/q/+T/5wAK//4AAP/9//4AAP//AAAAAP/3AAQAA//4AAwAFQABAAQAAAAA//3/9wAAAAAAAP/6/+7/6AAD//EABQAA/+7/3AAM/9P/6f/+AAAABf//AAH/+P/yAAAAAAAB/+YAAAADAAD//wAAAAAAAAAAAAD////e//8AAP/0AAAAAAAA//UAAAAA////7P/zAAIAA//+AAX/+QAQAAAAAP/6//7//wAA//z/3//3//T/5//Y//7//P/9//z/6//sAAn/7AAAAAD/4/////0AAAAA//sABAAG//UACwAUAAQACgAJAAP//v/3AAD/8AAA//7////yAAT/7P/zAAD/+v/XABL/6f/p/+kAAAAG//4AAgAA//wAAAAA////8v/9AAAAAAAAAAAAAAAAAAAAAAAD/77/+wAA/+cAAAAE//3//AAAAAD/+/+6//X//wAA//4AEv/4ABcAAAAA/+f/6//uAAD/9QAA//7/9f/S/98AA//+//P/6P/e/+sAAP/2AAD//P/yAAD//P//AAD/9wAOAAD/9gAMABQAAAATAAAAAP/8//gAAP/xAAD/+v/u/+YAAP/q//oAAP/o/9UACP/N/+n/9AAAAAL//AAA//b/6wAAAAD////lAAEAAP/5//3/+wAA//z//f/8//4AA//4AAAABAAA//4AAf/+//3/9//8AAH/5v//AAD/9wAA//AABQAAAAAAAwAHAAEAAP/9/93/9v/uAAYAAP/9//IABgAZAAkAAgAA/+0AAAAA/+T/////AAEAAP/5//7////2AAQACgASAAIAEAAAAAD/7//7/+sAAP//AAL//f//AAL/8wAAAAL/9wAHAAD//f/iAAD//f/+//sAAP//AAAAAAAA//7//QAAAAAAAAAAAAAAAAAAAAAAAP/c//v////wAAAAAAAAAAAAAAAAAAD/5v/nAAAAAQAAAAD/8wAIAAAAAP/3//v//AAA//YAAAAAAAD/5//4AAD/8v/9//f/9v/1AAH//wAA//f/+//9//0AAAAA//AAAP/6//IACAARAAAAAAABAAAAAP/w//f/6AAA//T/9//xAAD/8QAAAAD/+//lAA3/5v/n//4AAP/5//7/9QAAAAEAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAD//wAAAAD//gAAAAAAAAAAAAAA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cAAoACAAA//4AAP/+//v//QAAAAAAAP/6AAD/+//3AAkAEQACAAAABgAAAAD/8P/5/+gAAP/9AAD/+wAAAAoAAAAAAAD/+gAN/////f/+AAD/+wAA//kAAAABAAAAAAAB//7//wACAAQABgABAAEABAAEAAQABv/M//wAAP/qAAEACf//AAEABv//AAP/x//pAAIAAP/8//7/+QARAAAAAP/z//b/9gAA//oAAAAGAAD/3f/0ABD/8P/2//D/7P/qABAAAgAA//sAAAAA//8AAAAA//QACAAD//wADwAZAAL//gAAAAH//v/z//3/9AAA//P/+P/kAAP/8QAKAAD/8//kABX/2v/ZAAAAAP/6AAD/9v/9//oAAAAAAAD/2wABAAf/+//9AAAAAP/8//z/+//9//QAAgAAAAAAAAAAAB7/+v////0ACP/6/+4AAAAVAAD//P/9AAYAAAAAAA4AFAASAAAACgAA/+YAAP///+r/7f/yABQAEf////YAE//nAAAAA//YAAAAAQAGAAAAAf/3AAsAAQAQABoAAv/8AAkAAP////X//gAAAAAAAwAIAAAAAP/3/+oAAAAA//QAHf/7//f/4QAAAAIAAwABABwACgAA//8AAf/l//0AAP/+//8AAAAA///////+////3P/+AAD/8wAAAAAAAP/yAAD////+/+n/8wABAAP//gAF//kADgAAAAD/+v/+//8AAP/8/9z/8P/0/+j/1v/9//z//f/7/+n/6QAI/+kAAAAA/9/////7AAAAAP/7AAQAB//yAAoAEwADAAkABwAA//3/+AAA//AAAP/+////8gAC/+z/8AAA//r/1QAM/+j/5//mAAAABv/+AAIAAP/6AAAAAP//AAkAAAAAAAD//wAAAAEAAAAAAAD////m//wAAf/3AAEAAwAAAAsAAAAAAAH/9P/tAAAAAP/8AAv/8wAPAAAAAP/5/////gAA//X//wAS//T/7AAAAAb/+v/+//z////+AAYAEQAA//oAAgAAAAAAAAAA//UAE//6//oACAAOAA0AEwAQAAEAAP/w//3/7gAA//n/+P/wAAP/+gALAAAAAP/wAAf/9v/qAAMAAP/8AAX/+gAAAAAAAAAAAAAAA//9AAD////9AAAAAP////8AAP/9/+3//QAB//gAAAAAAAAAEf//AAAAA//6/90AAAAE//b/7P/y//0AAAAA//4ABQACAAD/+wAAAAn/4f/yAAIAAP/iAAT//gABAAAADwALAAD/+QAA//0AAQAAAAD/9f//AAD/+wAIAA8ACP/tAAsAAAAA/+gAAP/tAAD/+gAA//gAAAABAA0AAAAD//sAG//9/+sABgAA//YADv/2AAAABQAAAAD/8QAN////9P/+//X/+QAD//b/+QAA//cADv/zAAQAEgAA/////wAa//YAAAAJABf/tP/1AAT/6v/S/+T/9AAAAAAAGgAcABIAAP/9AAgAIv/aABAADwAF/7sAFQApACsAHQAJABwAAP/9AAgAAAAL//4AAP/6//r/8//+AAQACQAA/9QAJwAGAAD/z//qAAAAAAACAAkAAP/9ABIAGQAAABwAAwAXABYAAgAJAAD/+QAUAAH//wADAAAAAAAA//P//QABAAEAAwAAAAAAAAAAAAEAA//C//wAAP/oAAAABv////4AAAAA//3/xP/1AAAAAAAAABH/+QAXAAAAAP/q/+3/7wAA//UAAP/+AAD/1f/jAAP//f/0/+n/4f/nAAP/+wAA//z/9AAA//8AAAAA//YADQAA//YADAAVAAIAEgAAAAD//f/3AAD/8QAA//n/8f/lAAL/7P/8AAD/6v/YAAr/0v/n//YAAAAC//wAAP/4/+8AAAAAAAAAA//+AAD//f/2AAAAAP/3//f//f/2/+4AAAAA//4AAAAAAAkABP/9AAIAC//4/+kAAAANAAD/8//z//4AAAAAAAAACAAKAAAAAAAAAA4AAP/4AAAAAP/tAAoAAgAYAA8AEAAuAAD//QAI//MAAAACAAD/+//0AAP/+QAGAA8AAv/0AAMAAAAX//D/+//yAAD//gAA//0AAgAPABMAAAACAAAAL//5/+8AGwAA//0AA//6AAoAEgAAAAAAAP/IAAAAA//4//wAAAAA//v/+//8//z/+f//AAQAAAAA//8AG//6//z//AAI//z/5QAAABYAAP/o//r//QAAAAAAFwAYABoAAAAUAAD/ywAA//7/6P/N/+oAGAAK//7//wAI/7oAAAAC/6D/7gAAAAsAAAAH/9sADQACAAwAFQAD/+gACQAA////8P/7//kAAAAJAAkAAP////r/uwAAAAT/9QAZ//z/+v/PAAAAAAAHAAAAGgAPAAAAAAAAAAP//gAA//7/+wAAAAD/+v/6//7/+//u//8AAAAAAAD//wAPAAb//AABAAz/+f/iAAAAD//6/+n/9P/9AAAAAAAFAAoADQAAAAYAAAAPAAD/+AAAAAP/6QANAAb/////ABYAFAAA//8ABgAAAAIABAAA//3/9wAG//0ACQATAAD/6QABAAAAAP/t//4AAAAAAAEAAf/+////+QAVAAAAAP/1ACr//P/wAAYAAP/+AAj//AAPABEAAAAA//AAGP/w//gABP/5///////6//oABP/5/6X/9v/9/9X//wAE/+EAJv/6AAEAEP+0/6b/8v/t/+b/wv/f//oAAAAA/6z/j/+RAAD/dgAVADb/4P+4AA8ADv+J/4z/yQABAAEAEAAwAAD/dgAVAAD////rAAD/cP/6/3T//QAOABUAAP/EAAD////+/6IAAP/bAAD/df/l/4P/+//+ACYAAP/6//sAHv/l/3gAFAAA/3gAHP9z/84ADwAAAAD/6v++AAH/7P++/7v/5v///7r/3P/c/9cAHf/o//sAHP///8P/+gAS/8X/v//2ACn/of/v//7/5f+r/87/0wAAAAAAIgAWABIAAP///6z/0P/VABgADf/H/6QAGwAqACAAE//m/8QAAP///6UAAAAA//sAAAAA/77/7f/7/+X/6QAq/6wAIgAA////sv/j/8sAAAAEAAMACP/tABH/wgAAABMABv/pACMAD/+4AAAAA//8AAL//f/6AAD/5f/z/83/5v/s/+QAAP/n/+f/9QAAAAAAAP+zAAD/4v/Y/+f/7wAA/73/9QAA/9X/of/t//P/7gAAAAD/5P/9AAAAAP/I/9b/1//fAAAAAP+xAAD/yv+lAAAAAP/jAAD/vv/L//H/vf/hAAAAAAAAAAAAAP/qAAD/+wAAAAD/9AAAAAD//QAAAAAAAAAAAAAAAP/nAAD/2wAA/+7/zv/CAAD/zgAA//r/rQAA/8//zQAA/9EAAAAA/84AAAAA/+gAB//9/+z/+v/q//wAAP/s//D//f/uAAb/8f/5AAMAAv/6//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AA//4AAAAAAAAAAAAA//4AAAAAAAD/9gAA/+QAAAAG/+X/4//0/+YAAP/2/80AAP/y//wAAP/oAAD/9v/ZAAAABAALAAIABAAMAAcADAAIAAkACgAKAAcADP/nAAgACv/7AAgADAARAAgADAAEAAn/5f/0AAwAFAAA//7//QAB//8AC//x//v/+wAEAAcAAAAOAAD/8f/6AAAAAP/3AAD/6//uABgAAwAIAAAACAAAAAAAFwAJAAAADwAAAAAAFQAAAAD//gAAAAAABAAAAAAAAAAMAAD//wAAAAj/+AAMABH/+wAAACL/6gAAAAMACwAAAAcAAAAKAAYAAAAFABD/+wAFAAwACAAXAAgACQAWABYACAAX/9QACQAE//cACAAOAAb//QAXAAv//f/T//0AEQAMAAAAFAADABH/8v/7/9X/5v/o//f//AAA//0AAP/o/+cAAAAA/+oAAP/k/+8ABP/2AAYAAP/1AAAAAAAPAAoAAAAlAAAAAAABAAAAAAAUAAAAAAAHAAAAAAAA//8AAP/4AAAADv/1//sAB//3AAAAC//eAAD/+wAGAAD/+wAA////+QAAAAD/9wAJ//f///////QAAAAA//T/9P////T/6//8AAD/+gAA//8ABAAI//YAAQAL//f/yf/5AAoAAP/j/+z/+wAAAAAAAQAIAAQAAP//AAAAEgAA//IABAAA/80AAAAA/////wANABEAAP/3AAn/8wAB//wAAP/2//r/+v/6AAEAB////+UAAQAA////3P/m/+oAAP/+AAD//P/8//8AFAAAAAD/+wAY//n/6AAOAAD/6gAI//gAAwAUAAAAAAAC/+cAAAADAAEAAAAAAAAAAAAAAAAAAP/g//8AAP/3AAAAAQAA//YAAAAAAAD/7//zAAEAAwAAAAf/+QARAAT////7//7////6//wAAP/4AAD/6f/cAAAAAP/+AAD/7//uAAn/7gAAAAD/5QAAAAAAAAABAAAABQAAAAAADAAAAAAACwAAAAD//wAAAAAAAAADAAD//wAAAAT/7f/0AAP/+wAAABP/7AAA/+n//wAA//4AAAAA//0AAAAA//r/vwAE//v/7P/n//cABP/k/+r/8f/rAB//+P//ACIAA//2AA4AC//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AcADgAA/98AAwAAAAD/5f/6//QAAP//AAH//P////0AGwAAAAD/+AAq//z/7QAOAAD/9wAL//oACQATAAAAAAAB//j//wAAAAIAAAAAAAAAAAAAAAIAAP/o//kABf/2AAAAAAAAAAYAAP/4AAD/9v/hAAEAAP/v////9QAGAAAAAP/5/////wAA//T/8/////H/7P/uAAb/8f////n/9f/zAAf/+QAA//H//QAA//0AAAAA/+wACP/1//0ABwAOAAYAAAAHAAD////t//P/8QAA//P/+f/xAAD/8QAAAAAAAP/oAAT/9//r//kAAP/sAAP/8wAA//0AAAAA//b/0QAC//f/4f/z//AAAP/z//T/5v/zABj/8v/8ABgAAv/v//8ADP/y/+v/8gAi/+f/9wAA//X/+//x//0AAAAAAB0AFAAOAAAAAP/D/9f/6gASAAn/5v/yABkAJgAbABL/+f/HAAAABP+CAAAAAf/9AAAABP/3//v/+f/5//4AAP/8AB8AAwAA/+n/9v/eAAAABgAHAAT/8wAP/8kAAAAOAAP//gAcAAv/zgAAAAz/+gAI//7//AAAAAP/9QAY//P/+QAE//kAAAAA//r/+gAE//n/t//3//3/2QAAAAQAAAAmAAAAAAAW/8YAAAAAAAAAAP/fAAD/+gAAAAD/0P/Z/9gAAP/QABUANv/g/8QADwAAAAAAAAAAAAAAAQAQADAAAP/QABUAAAABAAAAAP/I//r/2wAAAA4AAAAA/+IAAAAAAAAAAP/mAAAAAP/JAAD/v//7AAAAJgAA//sAAAAeAAD/sAAUAAD/0wAA/8gAAAAAAAD//gAE/9QAAP////3//v/8/////v/+//3//v/3//4AAwAA//8AAAAN//n/////AAD//P/2AAUADQAA/////AAKAAAAAAAMABUAEgAAAAn/w//P//b//f/p/+X//AAVAAkAAf/3AA7/vAAAAAj/mQAA//sACQAAAAX//AAX//0ADwAYAAf//wAN/////f/7AAD/+AAAAAYABQAA//3/9f/HAAAAAv/sAB3//v/9/9IAAAAKAAMABgAJAAUAAAAB/+f/rgAG/+v/0f/S/+cAAP/S/+T/2f/gABn/6f/2ACIAAP/h//8AB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sABwDdAAoA4AAxAO4ABwG4AC4BvAAjAccAGwHIABsABAA+ACwAQgBIAHYAAQChAAoAAwA6/+8BGgAAAYD/6wApAAH/6AAZ//AAH//wACP/8AA0//AAOP/1ADn/8AA6//YAO//wAEf/8ABI//AASv/wAE//8ABQ//AAVv/1AG//9QBw//AAdP/6AHr/+QB9//MAlv/1AKL/+QCj/+cAu//1AMH/6gDD/+oAxf/mANr/6QDd//EA4v/xAOr/8gDu//UA8//wAPT/8AD6/+cBFP/wARj/7QEh//QBof/wAaL/7gG4//YAHQABAAAAIwAAADkAAABHAAAAVgAAAHQAAAB6AAAAfQAAAJEAAACWAAAAlwAAANsAAADmAAcA6AATAPQAAAEYAAABOgAAAX3/9AF+/+4Bf//sAYD/6wGB/+kBgv/xAaIAAAGjAAABpgAAAa8AAAHIAAABywAAAAYAOQAAADr/9ADmAAYA6AAOAU0ACAGuABIAGAA5AAAAav/zAN//+ADhACEA5gAQAO4AAAEh//UBRf/3AU0ACQFPAAABUv/4AVP//QF8/6EBff+vAX7/rQF//8IBgP+VAYH/uwGC/6IBg//PAYT/rAGF/68Brv/9Acr/7gACAaIAMQGkACUAAQA/AAQAAQChABcAAQBv//oADwAa//EAOQAAADr/+ABqAAAAb//6AHn//QDhAB0BTQAOAU8AAAFS//4BU//9AX//9AGD//sBrv//Acr/8gAFADr/8QFN//0BUgAAAX7/3gF//+sAAgDf//8A5gAAAAoAbwAGAN///wDmAAABTQAQAU8ACQFSAAwBfP/yAYD/1AGC//IBrgAQAAYAOQAAADr/8QDmAAIBTQAMAVIAAwGA/9QAAQE0//sAAgBW/+cBR//XAAUARwAYAaEAHgGiADEBpAArAbgAEAABAG//8QAEABAADgBv//EAeQABAJD/sgABAJf/vAACAHr/wgCX/7wABQBv//MAev/CAHz/wgCQ/7kAl/+8AAIAb//xAKEAEAAPADX/6AA5AAAAOv/fAFb/5wBv//EAeQABAOH//wFH/9cBSP/LAU0AAAFP//YBUv/4AVP/8wHK//AB/v/zAAA=)format("truetype");font-style:normal;font-weight:600;font-display:swap}:root{--dur-micro:.12s;--dur-base:.18s;--dur-surface:.24s;--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);--ease-soft:cubic-bezier(.23,1.15,.32,1);--bg:#fff;--card:#f6f6f8;--ink:#23242a;--muted:#6e6f7b;--line:#e6e6ec;--accent:#7142e8;--accent-ink:#fff;--accent-soft:#ede6fc;--status-live:#416d48;--danger:#c13e51;--danger-ink:#fff;--float:#fff;--chrome:#f8f8fa;--shadow:0 16px 48px #1c182821, 0 2px 8px #1c182812;--shadow-soft:0 1px 3px #1c182812;--written:#50515c;--heading:#292a32;--scrim:#14121c2e;--pill:#232229;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root:not(.widget){--bg:#fff;--chrome:#f3f3f3;--card:#f6f6f6;--row-hover:var(--ink)}@supports (color:color-mix(in lab, red, red)){:root:not(.widget){--row-hover:color-mix(in srgb, var(--ink) 5%, transparent)}}:root:not(.widget){--float:#fff;--ink:#29292c;--muted:#606066;--heading:#29292c;--written:#54545a;--line:#e6e6e8;--accent:#6f00ff;--accent-ink:#fff;--accent-soft:#f1e6ff;--playback-bg:#e5d4ff;--playback-ink:#35105f;--primary:#6f00ff;--primary-hover:#6200e0;--control:#ececee;--control-hover:#e4e4e7;--control-pressed:#dcdce1;--control-border:transparent;--selected:#e4e2e8;--focus:#6f00ff;--danger:#b63c4d;--danger-ink:#fff;--danger-soft:#f4e5e8;--danger-control-ink:#a13041;--scrim:#16161938;--shadow:0 16px 44px #17171a1a, 0 2px 6px #17171a0d;--shadow-soft:0 1px 2px #17171a08}html,body,#root{height:100%;overflow:hidden}html.main-window,html.main-window body,html.main-window #root{background:0 0}body{background:var(--bg);color:var(--ink);font-family:var(--font-sans);letter-spacing:-.012em;-webkit-font-smoothing:antialiased;font-size:13px}.main-window *{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:auto}.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:var(--muted) transparent}@supports (color:color-mix(in lab, red, red)){.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:color-mix(in srgb,var(--muted) 25%,transparent) transparent}}@media (prefers-contrast:more),(forced-colors:active){.main-window :is(*,:hover,:focus-visible,[data-scrolling]){scrollbar-width:auto;scrollbar-color:auto}.main-window ::-webkit-scrollbar{width:6px;height:6px}.main-window ::-webkit-scrollbar-thumb{background:var(--ink);border-radius:3px}.main-window ::-webkit-scrollbar-track{background:0 0}}.drag{-webkit-app-region:drag}.no-drag{-webkit-app-region:no-drag}html.widget,html.widget body,html.widget #root{background:0 0}html.widget{--pill:#232326;--pill-ink:#f7f7fa;--accent:#b780ff;--pill-accent:var(--accent);--widget-line:#48484d}.widget-pill{background:var(--pill);border:1px solid var(--widget-line);box-shadow:none;touch-action:none}.widget-pill:focus-visible{outline:2px solid var(--pill-accent);outline-offset:-3px}.widget-btn{color:#fff;transition:transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease;background:#6f00ff}.widget-btn-secondary{color:var(--pill-ink);background:#39393e}.widget-btn:disabled{opacity:.55}.widget-retry{color:#ffb0bd}.widget-btn:focus-visible{outline:2px solid var(--pill-ink);outline-offset:2px}.widget-btn:active{transform:scale(.97)}@media (hover:hover) and (pointer:fine){.widget-btn:not(:disabled):hover{background:#8120ff}.widget-btn-secondary:not(:disabled):hover{background:#48484f}}.widget-morph{visibility:hidden;isolation:isolate;-webkit-user-select:none;user-select:none;color:var(--pill-ink);cursor:default;position:absolute;overflow:hidden}.widget-morph[data-open=true]{cursor:grab}.widget-details{z-index:2;position:absolute;top:0;left:0}.widget-details>*{margin:0;position:absolute;top:0;left:0}.widget-time{white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.8;font-size:10px;font-weight:500;line-height:15px}.widget-preview{color:var(--pill-ink);transform-origin:50% 0;cursor:default;flex-direction:column;padding:0 4px 12px 12px;font-size:14px;line-height:21px;display:flex;position:absolute;top:52px;left:0}.widget-preview[aria-hidden=true]{visibility:hidden;transition:visibility 0s linear var(--dur-base)}.widget-preview[aria-hidden=true] *{animation-play-state:paused!important}[data-testid=widget-wave]{will-change:transform}.widget-preview[aria-hidden=true]{pointer-events:none}.widget-preview-conversation{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;flex:auto;min-height:0;padding:8px 4px 4px 0;overflow-x:hidden;overflow-y:scroll!important}.widget-preview-conversation::-webkit-scrollbar{width:4px}.widget-preview-conversation::-webkit-scrollbar-thumb{background:#ffffff50;border-radius:3px}.widget-preview-turn{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:16px;display:flex}.widget-preview-turn[data-me=true]{align-items:flex-end}.widget-preview-speaker{color:#b8b8c0;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding-inline:8px;font-size:12px;font-weight:500;overflow:hidden}.widget-preview-bubble{overflow-wrap:anywhere;background:#ffffff0d;border-radius:12px;max-width:100%;padding:8px 12px}.widget-preview-turn[data-me=true] .widget-preview-bubble{background:#ffffff17}.widget-preview .live-words{color:#c3c3ca}.widget-preview .live-dots i{background:#c3c3ca}.widget-preview-empty{color:#b8b8c0;padding:12px 6px;font-size:13px}.widget-preview-latest{border:1px solid var(--widget-line);background:var(--pill);bottom:12px;border-radius:8px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;display:flex;position:absolute;inset-inline-start:50%;translate:-50%;box-shadow:0 3px 10px #0003}[dir=rtl] .widget-preview-latest{translate:50%}.widget-preview-warning{background:#ffffff06;border-radius:10px;flex:none;margin:0 8px 12px 0;padding:10px 12px;font-size:12px;line-height:18px}.widget-settings{cursor:pointer;background:#ffffff08;border:1px solid #ffffff20;border-radius:6px;min-height:28px;margin-top:10px;padding:4px 9px;font-size:11px;font-weight:500;display:block}.widget-settings:hover{background:#ffffff14}.widget-preview button:focus-visible{outline:2px solid var(--pill-accent);outline-offset:1px}.widget-preview .page-loading{--control:#ffffff14}@media (prefers-reduced-motion:reduce){.widget-btn{transition:none}}.note-summary-actions{align-self:center;margin-inline-start:auto}.note-view-menu{width:28px;height:28px;color:var(--muted);border-radius:4px;place-items:center;display:grid}.note-view-menu:hover,.note-view-menu[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip,.note-record-action{height:32px}.note-chip,.share-btn,.person-remove{transition:background-color var(--dur-micro) ease, color var(--dur-micro) ease, opacity var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) ease}.note-chip:hover,.note-chip[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip:focus-visible,.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.share-btn:hover{background:var(--control-hover)}.person-remove{opacity:0}.person-row:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.person-row:hover{background:color-mix(in srgb, var(--line) 45%, transparent)}}.person-row:hover .person-remove{opacity:1}.person-row:has(:focus-visible) .person-remove{opacity:1}.menu-entry{transform-origin:var(--transform-origin,top right)}.menu-entry[role=menu]{color:var(--ink);border-color:var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:9px;padding:5px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]){border-radius:5px;min-height:32px;padding:6px 9px;font-size:12px;line-height:20px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):hover:not(:disabled){background:var(--control-hover)}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):focus-visible{background:var(--selected);outline:none}.menu-entry[role=menu] :is([data-testid=note-delete],.folder-picker-new){border-top:1px solid var(--line);border-radius:0 0 5px 5px;margin-top:4px;padding-top:10px}.people-add-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.people-add-field input:focus-visible{outline:none}.menu-entry[data-anchor=start]{transform-origin:0 0}[dir=rtl] .menu-entry[data-anchor=start]{transform-origin:100% 0}[dir=rtl] .menu-entry[data-anchor=end]{transform-origin:0 0}.menu-entry[data-anchor=bottom-start]{transform-origin:0 100%}[dir=rtl] .menu-entry[data-anchor=bottom-start]{transform-origin:100% 100%}.menu-entry[data-pointer=true]{transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.menu-entry[data-pointer=true][data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.menu-entry[data-pointer=true]{opacity:0;transform:scale(.97)}}.menu-entry[data-pointer=true][data-ending-style]{opacity:0;transition:opacity var(--dur-micro) var(--ease-out);pointer-events:none;transform:none}@media (prefers-reduced-motion:reduce){.note-chip,.share-btn,.person-remove,.menu-entry[data-pointer=true]{transition:opacity var(--dur-micro) var(--ease-out)}.menu-entry[data-pointer=true][data-starting-style]{transform:none}@starting-style{.menu-entry[data-pointer=true]{transform:none}}}.ghost-btn{color:var(--muted);transition:color var(--dur-micro) ease, background-color var(--dur-micro) ease;border-radius:6px;align-items:center;gap:5px;padding:4px 8px;display:inline-flex}.ghost-btn:hover,.ghost-btn[aria-pressed=true]{color:var(--ink);background:var(--control-hover)}@keyframes rec-pulse{50%{opacity:.35}}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.note-prose,.note-empty{font-size:15px;line-height:1.7}.note-prose{color:var(--ink);caret-color:var(--accent)}.note-empty{color:var(--muted)}.note-prose>*+*{margin-top:.4em}.note-prose h1,.note-prose h2,.note-prose h3{font-weight:600;line-height:1.4;position:relative}.note-prose h1{margin-top:1.5em;font-size:19px}.note-prose h2{letter-spacing:-.015em;margin-top:1.7em;font-size:15px}.note-prose h3{margin-top:1.3em;font-size:15.5px}.note-prose>:first-child{margin-top:0}.note-prose h1+ul,.note-prose h2+ul,.note-prose h3+ul,.note-prose h1+ol,.note-prose h2+ol,.note-prose h3+ol{margin-top:.35em}.note-prose ul,.note-prose ol{padding-inline-start:1.15em}.note-prose ul{list-style:outside}.note-prose ul ul{list-style:none}.note-prose ul ul>li{position:relative}.note-prose ul ul>li:before{content:"–";color:var(--muted);position:absolute;inset-inline-start:-1.1em}.note-prose ol{list-style:decimal}.note-prose li{margin-top:.25em;padding-inline-start:.15em}.note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.note-prose li::marker{color:color-mix(in srgb, var(--ink) 70%, transparent)}}.note-prose strong{font-weight:600}.note-prose a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.note-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--muted);float:inline-start;pointer-events:none;height:0}.note-prose.enhanced{color:var(--written)}.note-prose.enhanced h1,.note-prose.enhanced h2,.note-prose.enhanced h3{color:var(--heading)}.note-prose.enhanced strong,.note-prose .mine{color:var(--ink)}.chat-answer h1:before,.chat-answer h2:before,.chat-answer h3:before{content:none}@keyframes fade-in{0%{opacity:.4}to{opacity:1}}.chat-in{animation:motion-fade var(--dur-base) var(--ease-out) both}.fw{animation:fade-in var(--dur-micro) var(--ease-out) both}.chat-answer{font-size:14.5px;line-height:1.6}:where(.stream-caret,.streaming .note-prose):empty:after,:where(.stream-caret,.streaming .note-prose)>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after{content:"●";vertical-align:.1em;color:var(--muted);margin-inline-start:.3em;font-size:.7em;animation:2s cubic-bezier(.4,0,.6,1) infinite caret-pulse}@keyframes caret-pulse{50%{opacity:.35}}.swap{flex:none;place-items:center;display:inline-grid}.swap>*{transition:opacity var(--dur-base) var(--ease-out),filter var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-soft);grid-area:1/1;display:inline-flex}.swap>[data-on=false]{opacity:0;filter:blur(2px);pointer-events:none;transform:scale(.4)}.swap-text{display:inline-grid}.swap-text>*,.swap-text:after{grid-area:1/1}.swap-text[data-widest]:after{content:attr(data-widest);visibility:hidden;height:0;overflow:hidden}.swap-in{animation:swap-in var(--dur-base) var(--ease-out) both}@keyframes swap-in{0%{opacity:0;filter:blur(2px)}}.follow-arrow{transition:transform var(--dur-base) var(--ease-soft)}.follow-arrow[data-up=true]{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.swap>*{transition:opacity var(--dur-micro) var(--ease-out);filter:none!important;transform:none!important}.swap-in{animation:motion-fade var(--dur-micro) var(--ease-out)}.follow-arrow{transition:none}}.accordion{transition:grid-template-rows var(--dur-base) var(--ease-out);grid-template-rows:0fr;display:grid}.accordion[data-open=true]{transition-duration:var(--dur-surface);grid-template-rows:1fr}.accordion>*{opacity:0;filter:blur(2px);visibility:hidden;min-height:0;transition:opacity var(--dur-micro) var(--ease-out),filter var(--dur-micro) var(--ease-out),visibility var(--dur-base);overflow:hidden}.accordion[data-open=true]>*{opacity:1;filter:blur();visibility:visible;transition:opacity var(--dur-base) var(--ease-out) 40ms,filter var(--dur-base) var(--ease-out) 40ms,visibility 0s}@media (prefers-reduced-motion:reduce){.accordion{transition:none}.accordion>*,.accordion[data-open=true]>*{filter:none;transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-micro)}.accordion[data-open=true]>*{transition-delay:0s}}.streaming .note-prose>:last-child>br.ProseMirror-trailingBreak:only-child{display:none}.summary-surface,.summary-waiting{position:relative}.summary-surface[data-streaming=true]{isolation:isolate}.summary-surface[data-streaming=true] .note-prose{z-index:1;position:relative}.summary-ink-layer{pointer-events:none;width:100%;height:100%;fill:var(--accent);position:absolute;inset:0;overflow:hidden}.summary-surface:not([data-streaming=true])>.summary-ink-layer{display:none}.summary-ink{color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.summary-ink{color:color-mix(in srgb, var(--accent) var(--ink-fresh,0%), var(--ink-target))}}.enhanced{--ink-target:var(--written)}.enhanced :is(h1,h2,h3){--ink-target:var(--heading)}.enhanced :is(strong,.mine){--ink-target:var(--ink)}.enhanced a{--ink-target:var(--accent)}.summary-waiting{min-height:22px}.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--line) 100%);inset-inline-start:0;border-radius:4px;width:142px;max-width:100%;height:12px;position:absolute;top:5px}@supports (color:color-mix(in lab, red, red)){.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--card)) 50%, var(--line) 100%)}}.summary-heading-bar{pointer-events:none;transform-origin:0;background-size:200% 100%}.summary-waiting>.summary-heading-bar,.summary-surface[data-waiting=true]>.summary-heading-bar{animation:1.6s ease-in-out infinite shimmer}.summary-surface[data-waiting=true] .note-prose:after,.summary-surface[data-waiting=true] .note-prose :after{content:none}@media (prefers-reduced-motion:reduce){.summary-heading-bar{animation:none!important}.summary-ink{color:inherit}.summary-ink-layer{display:none}}.chat-answer>*+*{margin-top:.45em}@media (prefers-reduced-motion:reduce){.chat-in,.fw{animation:motion-fade var(--dur-micro) var(--ease-out)}.stream-caret:after,.stream-caret :after,.streaming .note-prose:after,.streaming .note-prose :after{animation:none}}.line-in{animation:motion-fade var(--dur-base) var(--ease-out) both}.bubble{text-align:start;overflow-wrap:anywhere;max-width:min(85%,560px);color:var(--ink);border-radius:9px;padding:5px 10px;font-size:13.5px;line-height:1.5}.bubble-me,.bubble-them{background:var(--control)}.bubble .line{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px}.bubble [data-playing]:before{content:none}.turn-time{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-turn:hover .turn-time{opacity:1}.transcript-turn:has([data-playing]) .turn-time{opacity:1}.live-words{color:var(--muted)}.live-word{animation:motion-fade var(--dur-base) var(--ease-out) both}.live-dots{vertical-align:-.1em;align-items:center;gap:3px;height:1em;margin-inline-start:7px;display:inline-flex}.live-dots i{background:var(--muted);border-radius:999px;width:4px;height:4px;animation:1.2s ease-in-out infinite live-dot}.live-dots i:nth-child(2){animation-delay:.2s}.live-dots i:nth-child(3){animation-delay:.4s}@keyframes live-dot{0%,80%,to{opacity:.3}40%{opacity:1}}.line-settle{animation:line-settle var(--dur-surface) var(--ease-out)}@keyframes line-settle{0%{color:var(--muted)}to{color:var(--ink)}}@media (prefers-reduced-motion:reduce){.live-word{animation:motion-fade var(--dur-micro) var(--ease-out)}.line-settle{animation:none}.live-dots i{opacity:.6;animation:none}}.line-playable{transition:background-color var(--dur-micro) ease}.line-playable:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.line-playable:hover{background:color-mix(in srgb, var(--line) 55%, transparent)}}.line-playable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}[data-playing]{background:var(--playback-bg);color:var(--playback-ink);box-shadow:0 0 0 1px var(--accent);position:relative}@supports (color:color-mix(in lab, red, red)){[data-playing]{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent)}}[data-playing]:before{content:"";background:var(--accent);inset-inline-start:2px;border-radius:2px;width:2px;position:absolute;top:7px;bottom:7px}.line-playable[data-playing]:hover{background:var(--playback-bg)}[data-playing] .line-time{opacity:1;color:var(--accent)}.transcript-turn:has([data-playing]) .line-who:not([data-color]){color:var(--accent)}.name-in{animation:motion-fade var(--dur-base) var(--ease-out) both}.player-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out)}.player-btn:hover{opacity:.88}.player-btn:active{transform:scale(.97)}.scrubber{appearance:none;cursor:pointer;background:0 0;height:16px}.scrubber::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));border-radius:999px;height:3px}[dir=rtl] .scrubber::-webkit-slider-runnable-track{background:linear-gradient(to left, var(--accent) var(--fill), var(--line) var(--fill))}.scrubber::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);width:11px;height:11px;box-shadow:0 0 0 3px var(--float);border-radius:999px;margin-top:-4px}.scrubber:focus-visible{outline:none}.scrubber:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--float), 0 0 0 5px var(--accent)}@media (prefers-reduced-motion:reduce){.line-in,.name-in{animation:motion-fade var(--dur-micro) var(--ease-out)}}.bar-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease, color var(--dur-micro) ease}.bar-btn:hover{color:var(--ink);background:var(--card)}.note-title-btn{transition:background-color var(--dur-micro) ease}.note-title-btn:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.note-title-btn:hover{background:color-mix(in srgb, var(--line) 60%, transparent)}}.note-title-btn:focus-visible,.bar-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.past-day{content-visibility:auto;contain-intrinsic-size:auto 320px}.search-backdrop{background:var(--scrim)}.search-panel{z-index:101;width:min(640px,100vw - 32px);height:min(560px,74vh);box-shadow:var(--shadow);border-radius:12px;outline:none;position:fixed;top:12vh;left:50%;translate:-50%}.search-header{border-bottom:1px solid var(--line);flex:none}.search-input-row{align-items:center;gap:14px;padding-inline:22px;display:flex}.search-field{letter-spacing:-.02em;flex:1;min-width:0;font-size:22px;font-weight:500;line-height:30px;position:relative}.search-field input{width:100%;min-width:0;height:76px;color:var(--ink);caret-color:var(--accent);font:inherit;letter-spacing:inherit;background:0 0;border:0;outline:none;padding:23px 0;display:block;position:relative}.search-field input::placeholder{color:var(--muted);font-weight:400}.search-input-highlight{white-space:pre;pointer-events:none;color:#0000;padding-block:23px;position:absolute;inset:0;overflow:hidden}.search-input-highlight>span{min-width:100%;display:inline-block}.search-input-highlight mark{background:var(--accent-soft);color:#0000;border-radius:3px;padding:0}.search-filters{flex-wrap:wrap;gap:8px;padding:0 22px 16px;padding-inline-start:60px;display:flex}.search-filter{background:var(--control);min-width:0;max-width:100%;min-height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:3px 4px 3px 8px;font-size:12px;display:flex}.search-filter>svg,.search-filter>button{flex:none}.search-filter>button{border-radius:4px;place-items:center;width:22px;height:22px;display:grid}.search-filter>button:hover{color:var(--ink);background:var(--control-hover)}.search-filter>button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.command-section{color:var(--muted);padding:16px 12px 7px;font-size:11px;font-weight:500;line-height:16px}.command-row{cursor:default;border-radius:7px;align-items:center;gap:12px;min-height:48px;padding:12px;font-size:14px;font-weight:500;line-height:20px;display:flex}.command-row>svg{width:28px;color:var(--muted);flex:none}.command-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.search-meeting{cursor:default;border-radius:7px;align-items:center;gap:12px;min-height:56px;padding:12px;display:flex}.search-metadata{max-width:35%;color:var(--muted);text-align:end;font-variant-numeric:tabular-nums;flex:none;font-size:11px;line-height:18px}.search-metadata>span{display:block}.search-return{visibility:hidden;flex:none}.search-row[aria-selected=true] .search-return{visibility:visible}.search-result-icon{width:28px;height:28px;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:6px;flex:none;place-items:center;display:grid}.search-key{min-width:18px;height:19px;font:10px var(--font-sans);color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;place-items:center;padding:0 3px;display:inline-grid}.search-footer{border-top:1px solid var(--line);min-height:44px;color:var(--muted);background:var(--card);flex:none;align-items:center;gap:14px;padding:10px 22px;font-size:11px;display:flex}.search-footer>span{white-space:nowrap;align-items:center;gap:5px;display:flex}@media (width<=480px){.search-input-row{gap:10px;padding-inline:16px}.search-field{font-size:19px}.search-filters{padding-inline:16px}.search-footer{flex-wrap:wrap;gap:8px 12px;padding-inline:16px}}.search-panel [data-testid=search-input]:focus-visible{outline:none}.app-modal{z-index:101;border:1px solid var(--line);background:var(--float);width:min(340px,100vw - 40px);max-height:calc(100vh - 40px);color:var(--ink);box-shadow:var(--shadow);text-align:start;border-radius:16px;outline:none;padding:0;position:fixed;top:50%;left:50%;overflow:auto;translate:-50% -50%}.app-modal-backdrop{z-index:100;background:var(--scrim);position:fixed;inset:0;pointer-events:auto!important}.dialog-motion{transform-origin:50%;transition:opacity var(--dur-surface) var(--ease-out),transform var(--dur-surface) var(--ease-soft);flex-direction:column;display:flex}.dialog-motion[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.dialog-motion{opacity:0;transform:scale(.97)}}.dialog-motion[data-ending-style]{opacity:0;transition-duration:var(--dur-base);transition-timing-function:var(--ease-out);transform:scale(.98)}@media (prefers-reduced-motion:reduce){.dialog-motion,.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.dialog-motion[data-starting-style],.dialog-motion[data-ending-style]{transform:none}@starting-style{.dialog-motion{transform:none}}}.app-modal[data-testid=delete-confirm]{border-radius:17px;width:min(294px,100vw - 40px)}.app-modal[data-testid=delete-confirm] .modal-copy{padding:21px 19px 20px}.app-modal[data-testid=delete-confirm] .modal-copy p{font-size:11px;line-height:17px}.app-modal[data-testid=delete-confirm] .modal-actions{padding:0 19px 17px}.app-modal[data-testid=delete-confirm] .modal-button{border-radius:8px;min-height:32px}.modal-copy{padding:22px 20px 18px}.modal-copy h2{letter-spacing:-.15px;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:20px}.modal-copy p{color:var(--muted);margin-top:8px;font-size:12px;line-height:18px}.inline-error{border:1px solid var(--line);background:var(--float);color:var(--written);text-align:start;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:20px;display:flex}.inline-error>svg{color:var(--danger);flex:none;align-self:flex-start;margin-block-start:2px}.inline-error>span{overflow-wrap:anywhere;flex:1;min-width:0}.inline-error-action{color:var(--accent);text-underline-offset:3px;border-radius:4px;flex:none;padding:2px 3px;font-size:12px;font-weight:500;text-decoration:underline}.inline-error-action:hover{color:var(--ink);background:var(--control)}.inline-error-action:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inline-error-in-dialog{background:0 0;border:0;border-radius:0;margin:0 19px 16px;padding:0;font-size:12px;line-height:18px}.modal-actions{flex-direction:column;gap:7px;padding:0 20px 20px;display:flex}.modal-button{background:var(--control);width:100%;min-height:33px;transition:background-color var(--dur-micro) ease;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;padding:6px 12px;font-size:12px;font-weight:500;display:inline-flex}.modal-button:hover:not(:disabled){background:var(--control-hover)}.modal-button.danger{color:var(--danger-control-ink);background:var(--danger-soft)}.modal-button.danger:hover:not(:disabled){background:var(--danger-soft)}@supports (color:color-mix(in lab, red, red)){.modal-button.danger:hover:not(:disabled){background:color-mix(in srgb,var(--danger-soft) 87%,var(--danger))}}.modal-button.primary{background:var(--primary);color:#fff}.modal-button.primary:hover:not(:disabled){background:var(--primary-hover)}.modal-button:disabled{opacity:.55}.search-row[aria-selected=true]{background:var(--selected)}.search-mark{background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:0 1px}@media (prefers-reduced-motion:reduce){.bar-btn{transition:none}}.window-bar{background:var(--chrome);border-bottom:1px solid var(--line)}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible{border-radius:5px}input::selection{background:var(--accent-soft)}textarea::selection{background:var(--accent-soft)}.note-prose ::selection{background:var(--accent-soft)}.editor-menu{z-index:40}.editor-toolbar{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:2px;padding:4px;display:flex}.editor-toolbar button{width:30px;height:30px;color:var(--written);border-radius:6px;place-items:center;display:grid}.editor-toolbar button:hover{background:var(--control-hover);color:var(--ink)}.editor-toolbar button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.editor-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.home-content{max-width:880px}.home-content>header{padding-bottom:2px}.calendar-schedule{background:var(--bg)}.calendar-schedule [data-testid=event]+[data-testid=event]{border-top:1px solid var(--line)}.calendar-schedule [data-testid=event]{min-height:76px}.past-day>ul{border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-row+.card-row{border-top:1px solid var(--line)}.document-main{background:var(--bg)}.document-body{padding-top:86px}.document-meta{padding-bottom:18px}.note-layout{min-height:0}.note-page-width{width:100%;max-width:860px;margin-inline:auto;padding-inline:clamp(20px,10cqw - 42px,48px)}.note-header{flex:none;padding-top:84px}.note-metadata{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.note-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.note-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.note-recording-status{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;padding-inline:10px;display:flex}.note-elapsed{font-variant-numeric:tabular-nums;min-width:36px;color:var(--muted);text-align:end;margin-inline:4px 8px;font-size:11px}.note-primary-tabs{border-bottom:1px solid var(--line);gap:24px;margin-top:22px;display:flex;position:relative}.note-primary-tabs [role=tab]{height:36px;color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:7px;padding-inline:1px;font-size:13px;font-weight:500;display:flex}.note-primary-tabs [role=tab][aria-selected=true],.note-primary-tabs [role=tab]:hover{color:var(--ink)}.note-primary-tabs[data-summary-arriving=true] #note-summary-tab{animation:summary-tab-arrive var(--dur-micro) var(--ease-out) both}@keyframes summary-tab-arrive{0%{opacity:0}}.note-reading-area{flex:1;min-height:0;display:flex;position:relative}.note-panels{contain:layout;flex:1;min-width:0;min-height:0;display:flex}:is(.note-panels,.ask-page)::view-transition-group(root){animation:none}:is(.note-panels,.ask-page)::view-transition-old(root){animation:none;display:none}:is(.note-panels,.ask-page)::view-transition-new(root){animation:note-panel-in var(--dur-micro) var(--ease-out) both;mix-blend-mode:normal}@keyframes note-panel-in{0%{opacity:0}}.note-tab-indicator{height:2px;width:var(--tab-width,0px);background:var(--primary);transform:translateX(var(--tab-x,0px));pointer-events:none;inset-inline-start:0;border-radius:1px;position:absolute;bottom:-1px}@media (prefers-reduced-motion:no-preference){.note-layout[data-tab-pointer=true] .note-tab-indicator{transition:transform var(--dur-base) var(--ease-out),width var(--dur-base) var(--ease-out)}}.note-content{flex:1;min-width:0;min-height:0}.main-window .note-notes-pane{scrollbar-gutter:stable both-edges;overflow-y:auto}.note-notes-pane[hidden]{display:none}.note-notes-body{padding-top:22px;padding-bottom:40px}.note-transcript-pane{contain:layout style;--transcript-inset:calc(max(0px,(100% - 860px)/2) + clamp(20px,calc(10cqw - 42px),48px));display:flex}.transcript-turn{contain:layout style}.note-footer{background:var(--bg);--note-footer-line:var(--line);flex:none}@supports (color:color-mix(in lab, red, red)){.note-footer{--note-footer-line:color-mix(in srgb,var(--line) 60%,var(--bg))}}.note-footer-bar{min-height:var(--workspace-footer-height);border-top:1px solid var(--note-footer-line);justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;display:flex}.note-footer-bar:not(:first-child){margin-top:8px}@media (prefers-contrast:more){.note-footer{--note-footer-line:var(--line)}}.note-status{min-width:0}.note-footer-bar>.chat-trigger{flex-shrink:0}.chat-trigger kbd{color:var(--muted);margin-inline-start:8px;font-family:inherit;font-size:11px;font-weight:400}.note-footer>[data-testid=note-stop-unsaved]{max-width:min(760px,100% - 48px);margin-inline:auto}.note-record-hint{max-width:760px;color:var(--written);justify-content:center;align-items:flex-start;gap:7px;margin:8px auto 0;padding-inline:24px;font-size:12px;line-height:18px;display:flex}.note-record-hint>svg{margin-top:2px}.note-recording-group{flex-wrap:wrap;align-items:center;gap:8px;min-height:30px;display:flex}.note-recording-group[data-recording=true]{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);border-radius:6px;flex-wrap:nowrap;gap:0}.note-recording-group[data-recording=true] .note-elapsed{margin:0}.note-recording-group[data-recording=true] .note-record-action{border:0;border-inline-start:1px solid var(--line);min-width:0;height:28px;box-shadow:none;color:var(--muted);background:0 0;border-radius:0;flex:none;padding-inline:12px}.note-recording-group[data-recording=true] .note-pause-action{width:30px;padding:0}.note-recording-group[data-recording=true] .note-record-action:last-child{border-start-end-radius:6px;border-end-end-radius:6px}.note-recording-group[data-recording=true] .note-record-action:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.note-recording-group[data-recording=true] .note-record-action:active:not(:disabled){background:var(--control-pressed)}.note-recording-group[data-recording=true] .note-finish-action{background:var(--primary);color:#fff;min-width:68px;height:30px;margin-block:-1px;margin-inline-end:-1px}.note-recording-group[data-recording=true] .note-finish-action:hover:not(:disabled),.note-recording-group[data-recording=true] .note-finish-action:active:not(:disabled){background:var(--primary-hover);color:#fff}.note-recording-group[data-recording=true] .note-finish-action:focus-visible{outline-offset:-3px;outline-color:#fff}.note-finishing{border:1px solid var(--line);height:30px;color:var(--muted);border-radius:6px;align-items:center;padding-inline:10px;font-size:12px;display:flex}.note-header-actions .share-btn{height:30px;box-shadow:none;background:0 0}.workspace .note-record-action:focus-visible{outline-offset:-2px}.chat-trigger{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding-inline:10px;font-size:12px;font-weight:500;display:flex}.chat-trigger:hover,.chat-trigger[aria-expanded=true]{background:var(--control)}.chat-trigger:active{background:var(--control-pressed)}.chat-panel{z-index:70;inset-block:auto var(--chat-bottom,72px);width:420px;max-width:calc(100% - 32px);height:min(440px,var(--chat-height,440px),calc(100dvh - var(--chat-bottom,72px) - 68px));border:1px solid var(--line);background:var(--float);min-height:0;max-height:none;color:var(--ink);border-radius:12px;margin:0;padding:0;position:fixed;inset-inline:auto 24px;overflow:visible;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel[open]{flex-direction:column;display:flex}.chat-panel{box-shadow:none;background:0 0;border-color:#0000}.chat-morph-surface{pointer-events:none;border:1px solid var(--line);border-radius:inherit;background:var(--float);width:calc(100% + 2px);height:calc(100% + 2px);position:absolute;inset:-1px auto auto -1px;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel-contents{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.chat-trigger[aria-expanded=true]{opacity:0}.note-resume-action{min-width:160px}.note-recording-group .note-record-action[data-processing=true]{cursor:wait}[data-icon]{flex:none}[data-icon=Loader]{animation:1s linear infinite icon-spin}[data-icon] path{transform-box:fill-box;transform-origin:50%}@keyframes icon-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){[data-icon=Loader]{animation:none}}.chat-icon{width:28px;height:28px;color:var(--muted);border-radius:5px;flex-shrink:0;place-items:center;display:grid}.chat-icon:hover,.chat-icon[aria-expanded=true]{background:var(--control);color:var(--ink)}.chat-latest{z-index:1;border:1px solid var(--line);background:var(--float);width:30px;height:30px;color:var(--muted);box-shadow:var(--shadow-soft);bottom:8px;border-radius:50%;place-items:center;display:grid;position:absolute;inset-inline-start:calc(50% - 15px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.chat-copy-action{min-height:28px;color:var(--muted);border-radius:5px;align-items:center;gap:5px;margin-inline-start:-5px;padding:4px 5px;font-size:11px;display:inline-flex}.chat-copy-action:hover{background:var(--control);color:var(--ink)}.chat-progress{color:var(--muted);align-items:center;gap:9px;padding-block:5px;font-size:13px;line-height:20px;display:flex}.thinking-dots{width:18px;height:20px;color:var(--accent);flex:none}.chat-step{animation:.24s ease-out step-in}@keyframes step-in{0%{opacity:0}to{opacity:1}}.chat-step{background:linear-gradient(100deg,var(--muted) 35%,var(--ink) 50%,var(--muted) 65%) 0 0 / 250% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:.24s ease-out step-in,2.2s linear infinite step-shimmer}@keyframes step-shimmer{0%{background-position:100% 0}to{background-position:-150% 0}}@media (prefers-reduced-motion:reduce){.chat-step{color:inherit;background:0 0;animation:none}}.thinking-dots-static{justify-content:space-between;align-items:center;display:flex}.thinking-dots-static i{opacity:.65;background:currentColor;border-radius:50%;width:4px;height:4px}.thinking-dots-static i:nth-child(2){opacity:.81}.thinking-dots-static i:nth-child(3){opacity:.97}.chat-panel .chat-history{overscroll-behavior:contain;flex:1;min-width:0;min-height:0;padding:0 16px 20px;overflow-y:auto}.chat-panel .chat-composer{flex-shrink:0}.chat-error{color:var(--danger);margin:0 0 10px;font-size:12px;line-height:18px}@media (width<=999px){.chat-panel{inset-inline-end:16px}.chat-panel::backdrop{background:#00000029}}@media (width<=999px) and (height<=420px){.chat-panel{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);inset-block:16px}}.note-record-action{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding-inline:12px;font-size:12px;font-weight:500;display:flex}.note-record-action:hover:not(:disabled){background:var(--control-hover)}.note-record-action:active:not(:disabled){background:var(--control-pressed);box-shadow:none}.note-record-action:disabled{opacity:.45}.note-record-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}.note-record-action.primary:hover:not(:disabled){background:var(--primary-hover)}@media (prefers-reduced-motion:reduce){.note-record-action{transition:none}}[data-testid=transcript-panel]{border-radius:12px}.note-primary-tools{align-self:flex-start;align-items:center;min-width:0;height:34px;margin-inline-start:auto;display:flex}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;padding:0}.note-primary-tools .transcript-actions{order:-1;margin-inline-start:0}.transcript-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 12px;display:flex}.transcript-search-field{width:68px;min-width:32px;max-width:100%;height:32px;transition:background-color var(--dur-micro) ease,border-color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:6px;flex:0 auto;align-items:center;gap:8px;padding-inline:0;display:flex}@media (prefers-reduced-motion:reduce){.transcript-search-field{transition:none}}.transcript-search-field,.transcript-search-field [data-testid=transcript-search]{cursor:pointer}.transcript-search-field:focus-within [data-testid=transcript-search]{cursor:text}.transcript-search-field:has(input:not(:placeholder-shown)) [data-testid=transcript-search]{cursor:text}.transcript-search-field:focus-within{border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:has(input:not(:placeholder-shown)){border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:focus-within{border-color:var(--accent)}[data-testid=transcript-search]{width:100%;min-width:0;height:100%;color:var(--ink);text-align:start;background:0 0;border:0;padding:0;font-size:13px;font-weight:500;line-height:20px}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-actions{align-items:center;gap:4px;margin-inline-start:auto;display:flex}@media (width<=600px){.window-wordmark{display:none}.note-header{padding-top:76px}.note-header .note-title-type{font-size:23px}.note-meta-row{gap:8px;margin-top:10px}.note-header-actions{gap:8px}.note-primary-tabs{flex-wrap:wrap;gap:16px;margin-top:12px}.note-primary-tools{max-width:100%}.note-primary-tools .transcript-search-field{width:32px;min-width:32px}.note-primary-tools .transcript-search-field:focus-within{width:160px}.note-primary-tools .transcript-search-field:has(input:not(:placeholder-shown)){width:160px}}@media (height<=420px){.note-layout{overflow-y:auto}.note-reading-area{flex:none;height:180px;min-height:180px}[data-testid=transcript-panel]{height:36vh}}[data-testid=transcript-panel].transcript-inline{width:100%;height:auto;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;display:flex;position:relative}.transcript-inline>.transcript-toolbar{border:0;padding-block:4px 8px;padding-inline:0}.transcript-inline [data-testid=transcript]{padding-inline:var(--transcript-inset);padding-top:22px;padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-inline .transcript-player-dock{inset-inline:var(--transcript-inset);z-index:1;position:absolute;bottom:4px}.transcript-inline [data-testid=player]{background:var(--float);margin:0}@supports (color:color-mix(in lab, red, red)){.transcript-inline [data-testid=player]{background:color-mix(in srgb,var(--float) 88%,transparent)}}.transcript-inline [data-testid=player]{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 2px 12px #0000000d}.transcript-inline [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-inline [data-testid=player]{background:var(--float);-webkit-backdrop-filter:none;backdrop-filter:none}}html:not(.widget) .bg-accent{background-color:var(--primary)}html:not(.widget) button:focus-visible,html:not(.widget) input:focus-visible{outline-color:var(--focus)}.share-control{background:var(--control);height:28px;color:var(--ink);border-radius:6px;align-items:center;font-size:12px;font-weight:500;display:flex}.share-control .share-btn{border-radius:5px;height:28px}.share-control .share-btn+.share-btn{border-color:var(--line)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{border-radius:4px;align-items:center;gap:6px;margin-inline-start:auto;display:flex}.search-footer>button:hover{color:var(--ink)}.app-modal[data-testid=shortcuts-dialog]{flex-direction:column;width:min(460px,100vw - 40px);height:min(580px,80vh);display:flex;overflow:hidden}.app-modal[data-testid=shortcuts-dialog] .modal-copy{flex:none;padding:22px 24px 18px}.shortcuts-close{inset-inline-end:16px;position:absolute;top:18px}.shortcuts-search{border:1px solid var(--line);color:var(--muted);border-radius:7px;align-items:center;gap:10px;margin:0 24px 12px;padding:9px 11px;display:flex}.shortcuts-search:focus-within{border-color:var(--accent)}.shortcuts-search input{width:100%;min-width:0;color:var(--ink);background:0 0;outline:none;font-size:13px}.shortcuts-list{flex:1;min-height:0;padding:0 24px 22px;overflow-y:auto}.shortcuts-list section+section{margin-top:20px}.shortcuts-list h3{color:var(--muted);padding:10px 0 7px;font-size:11px;font-weight:500}.shortcuts-list dl>div{justify-content:space-between;align-items:center;gap:18px;min-height:34px;font-size:13px;display:flex}.shortcuts-list kbd{font:12px var(--font-sans);white-space:nowrap;color:var(--muted)}.shortcuts-empty{color:var(--muted);text-align:center;padding-top:24px;font-size:13px}.note-transcript-pane[hidden]{display:none!important}.page-loading{pointer-events:none}.loading-prose{gap:12px;padding-block:6px;display:grid}.note-title-type{letter-spacing:-.03em;font-size:28px;font-weight:600;line-height:1.25}.loading-note-chip{background:var(--control);border-radius:7px;max-width:30%;height:32px}.loading-transcript-turns{gap:12px;display:grid}.loading-folder-icon{background:var(--control);border-radius:4px;flex:none;width:16px;height:16px}.loading-checkbox{background:var(--control);border-radius:3px;width:14px;height:14px}.loading-note-frame,.loading-note-frame>.loading-result{height:100%}.people-card{max-height:var(--people-available-height,calc(100dvh - 200px));overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.people-card>*{flex-shrink:0}.people-card .people-list{overscroll-behavior:contain;flex-shrink:1;min-height:40px}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-event-toggle{text-align:start;border-radius:4px;align-items:center;gap:8px;width:100%;display:flex}.note-date-event-toggle>span{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.note-date-event-toggle>svg{color:var(--muted);flex:none}.note-date-link{text-align:start;width:100%;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:8px;font-size:12px;display:flex}.note-date-link:hover,.note-date-event:hover{background:var(--card);color:var(--ink)}.note-date-link small{margin-top:3px;font-size:11px;display:block}.note-date-days{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p,.note-date-calendar-error{color:var(--muted);padding:12px 8px;font-size:12px}.note-date-event{text-align:start;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px;display:flex}.note-date-event>span{flex:1;min-width:0}.note-date-event strong,.note-date-event small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-event strong{font-size:13px;font-weight:500}.note-date-event small{color:var(--muted);margin-top:3px;font-size:11px}.note-date-event>svg{color:var(--accent);flex:none}.loading-content{min-width:0;position:relative}.loading-placeholder{pointer-events:none}.loading-content[data-loading-phase=waiting]>.loading-placeholder,.loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>.loading-result{visibility:hidden}.loading-content:has(>.loading-result)>.loading-placeholder{position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-placeholder{animation:loading-out var(--dur-micro) var(--ease-out) both;position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-result{animation:loading-in var(--dur-micro) var(--ease-out) both}.loading-mask{pointer-events:none;-webkit-user-select:none;user-select:none}.loading-bar{background:var(--control);vertical-align:middle;border-radius:4px;max-width:100%;height:.65em;min-height:7px;display:inline-block!important}.loading-mask .meeting-meta .loading-bar{align-self:flex-end}.loading-mask .meeting-folder-pill{background:var(--control);border-color:#0000}.loading-mask .meeting-folder-dot{visibility:hidden}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label){position:relative;color:#0000!important}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label):after{content:"";background:var(--control);inset-inline-start:0;border-radius:4px;width:min(75%,260px);height:10px;position:absolute;top:5px}.loading-mask .settings-description:after{width:min(85%,300px);height:8px;top:6px}.loading-mask :is(.settings-toggle,.settings-select,.settings-name-field,.settings-action,.settings-spoken,.settings-jargon-field){color:#0000!important;background:var(--control)!important;box-shadow:none!important;border-color:#0000!important}.loading-mask :is(.settings-toggle,.settings-action,.settings-spoken,.settings-jargon-field)>*,.loading-mask .settings-select-wrap>svg,.loading-mask .settings-permission-icon>*,.loading-mask .settings-permission-status{visibility:hidden}.loading-mask .settings-select{pointer-events:none}@keyframes loading-in{0%{opacity:0}to{opacity:1}}@keyframes loading-out{0%{opacity:1}to{opacity:0}}.main-window :is(.settings-scroll,.native-library){scrollbar-gutter:stable}.transcript-loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>li:not(.loading-placeholder){visibility:hidden}.transcript-loading-content[data-loading-phase=revealing]>li:not(.loading-placeholder){animation:loading-in var(--dur-micro) var(--ease-out) both}.transcript-loading-content[data-loaded=true]>.loading-placeholder{position:absolute;inset:8px 16px auto}.loading-mask .ask-field{position:relative}.loading-mask .ask-field:after{content:"";background:var(--control);border-radius:4px;width:160px;height:12px;position:absolute;inset:16px auto auto 16px}.loading-mask .ask-field textarea,.loading-mask .ask-field textarea::placeholder{color:#0000}.loading-mask .ask-toolbar{visibility:hidden}.notes-download-status{flex:0 auto;min-width:50px;max-width:45%;display:flex}.notes-download-trigger{min-width:0;height:30px;color:var(--muted);font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:400;display:flex}.notes-download-trigger:is(:hover,[aria-expanded=true]){color:var(--ink);background:var(--row-hover);border-color:var(--line)}.notes-download-trigger>svg{opacity:.65;transition:transform var(--dur-base) var(--ease-out)}.notes-download-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.notes-download-dot{background:var(--accent);border-radius:50%;flex:none;width:5px;height:5px}.notes-download-dot[data-failed=true]{background:var(--danger)}.notes-download-dot[data-failed=true][data-upgrade=true]{background:var(--muted)}.notes-download-positioner{z-index:60}.notes-download-menu{border:1px solid var(--line);background:var(--float);width:408px;max-width:calc(100vw - 24px);color:var(--ink);box-shadow:var(--shadow);border-radius:10px;outline:none;padding:14px 16px;font-size:12px;line-height:18px}.notes-download-menu p{text-wrap:pretty;overflow-wrap:anywhere}.notes-download-readout{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.notes-download-readout strong{font-weight:550}.notes-download-readout>span{color:var(--muted);font-size:11px}.notes-download-progress{background:var(--line);border-radius:4px;height:3px;margin:9px 0 7px;overflow:hidden}.notes-download-progress>span{border-radius:inherit;background:var(--muted);height:100%;display:block}.notes-download-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.notes-download-support{font-size:11px}.notes-download-menu[data-failed=true] .notes-download-support{flex-basis:100%}.notes-download-retry,.notes-download-skip{transition:transform var(--dur-micro) var(--ease-out)}.notes-download-actions{align-items:center;gap:12px;display:flex}.notes-download-actions button{border:1px solid var(--line);background:var(--control);color:var(--ink);white-space:nowrap;border-radius:5px;flex:none;padding:4px 10px;font-size:12px;line-height:18px}.notes-download-actions button:hover{background:var(--control-hover)}.notes-download-actions button:active:not(:disabled){transform:scale(.97)}.notes-download-actions button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.notes-download-actions button:disabled{opacity:.5}.notes-download-actions .notes-download-skip{color:var(--muted);background:0 0;border:0;padding:4px 0;font-size:11px}.notes-download-actions .notes-download-skip:hover{color:var(--ink);background:0 0}.notes-download-actions .notes-download-skip:active{transform:none}.notes-download-menu:not([data-failed=true]) .notes-download-footer{flex-wrap:nowrap}.notes-download-menu:not([data-failed=true]) .notes-download-support{flex:auto;min-width:0}.notes-download-menu [role=alert]{margin-top:10px}@keyframes motion-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.widget-btn:active,.player-btn:active,.notes-download-actions button:active:not(:disabled){transform:none}.player-btn{transition:opacity var(--dur-micro) var(--ease-out)}.scrubber::-webkit-slider-thumb{transition:none;transform:none}.scrubber:hover::-webkit-slider-thumb{transition:none;transform:none}.scrubber:active::-webkit-slider-thumb{transition:none;transform:none}.notes-download-trigger>svg{transition:none}.widget-preview[aria-hidden=true]{transition-delay:var(--dur-micro)}}.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:scale(.99)}@starting-style{.search-panel.dialog-motion{transform:scale(.99)}}@media (prefers-reduced-motion:reduce){.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:none}@starting-style{.search-panel.dialog-motion{transform:none}}}:root[data-marketing-theme=dark]{--bg:#18191d;--card:#202126;--ink:#eeeff4;--muted:#9a9ba9;--line:#32333d;--accent:#af8bff;--accent-ink:#241637;--accent-soft:#35284f;--status-live:#aed4b5;--danger:#f28798;--danger-ink:#32121b;--float:#24252c;--chrome:#1d1e23;--shadow:0 18px 48px #0006, 0 2px 8px #0003;--shadow-soft:0 1px 3px #0003;--written:#b8b9c4;--heading:#e4e5ec;--scrim:#00000073;--pill:#25232e;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root[data-marketing-theme=dark]:not(.widget){--bg:#1b1b1d;--chrome:#242425;--card:#202021;--float:#29292b;--ink:#e7e6eb;--muted:#a7a4ad;--heading:#e7e6eb;--written:#c6c3cc;--line:#343436;--accent:#b780ff;--accent-ink:#fff;--accent-soft:#2c164a;--playback-bg:#7040af;--playback-ink:#fff;--primary:#6f00ff;--primary-hover:#7d1aff;--control:#333335;--control-hover:#3b3b3e;--control-pressed:#434347;--selected:#3b393f;--focus:#c599ff;--danger:#f098a5;--danger-ink:#32121b;--danger-soft:#59343c;--danger-control-ink:#ffd6dc;--scrim:#0006;--shadow:0 18px 48px #00000040, 0 2px 8px #00000026;--shadow-soft:0 1px 2px #00000014}:root[data-marketing-theme=dark] input::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] textarea::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .note-prose ::selection{color:#fff;background:#8055b8}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}.workspace{isolation:isolate;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#fafafb;--sidebar-field-edge:#e8e8eb;--sidebar-selected:#e7e1ef;--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass);height:100%;display:flex;position:relative;overflow:hidden}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.workspace{--chrome-glass:var(--chrome)}}:root:not([data-chrome=overlay]) .workspace{background:linear-gradient(var(--chrome) 0 52px,transparent 52px),var(--chrome-glass)}.workspace-window-bar{z-index:55;border-bottom:1px solid var(--line);background:0 0;width:208px;min-width:124px;height:52px;position:absolute;top:0;left:0}.workspace-drag-region{pointer-events:none;width:100vw;height:100%;position:absolute;top:0;left:0}.sidebar-collapsed .workspace-window-bar{border-bottom:1px solid var(--line);width:124px}.workspace-sidebar-toggle{-webkit-app-region:no-drag;position:absolute;top:13px;left:88px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-window-bar{width:124px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{left:132px;right:auto}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar{padding-left:124px;padding-right:24px;left:0;right:0}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-note=true]{padding-left:185px}.workspace [hidden]{display:none!important}.workspace-sidebar{z-index:2;background:0 0;border-inline-end:1px solid #0000;flex-direction:column;display:flex;position:absolute;inset-block:0;inset-inline-start:0}.workspace-sidebar:after{content:"";background:var(--line);pointer-events:none;width:1px;position:absolute;inset-block:52px 0;inset-inline-end:-1px}.workspace-sidebar,.workspace-sidebar-gap{width:208px}.sidebar-collapsed :is(.workspace-sidebar,.workspace-sidebar-gap){width:56px}.workspace-sidebar-gap{flex:none}.workspace-sidebar-inner{flex-direction:column;height:100%;min-height:0;display:flex}.workspace-sidebar .workspace-search>svg{flex:none}.workspace-sidebar .workspace-nav>span:not(.folder-glyph),.workspace-sidebar .workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label{transition:opacity 90ms}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-nav>small,.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd,.sidebar-collapsed .workspace-folder-label{opacity:0;pointer-events:none}.sidebar-collapsed .workspace-nav{gap:0;padding-inline:10px}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd{flex:none;width:0}.sidebar-collapsed .workspace-search{gap:0;padding-inline:9px}.sidebar-collapsed .workspace-folder-more{display:none}.sidebar-collapsed .workspace-brand{padding-inline:17px}.workspace-wordmark{direction:ltr;flex:none;width:90px;display:flex;overflow:hidden}.sidebar-collapsed .workspace-wordmark{width:22px}.workspace[data-sidebar-motion=true] .workspace-wordmark{transition:width .2s cubic-bezier(.22,1,.36,1)}.workspace[data-sidebar-motion=true] .workspace-brand{transition:padding-inline .2s cubic-bezier(.22,1,.36,1)}.workspace-folder-label{white-space:nowrap;height:16px;overflow:hidden}.workspace[data-sidebar-motion=true] .workspace-folder-label{transition:height .2s cubic-bezier(.22,1,.36,1),margin .2s cubic-bezier(.22,1,.36,1),opacity .12s}.sidebar-collapsed .workspace-folder-label{height:0;margin-block:18px}.workspace-brand{gap:0}.workspace[data-sidebar-motion=false] :is(.workspace-nav>span,.workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label,.workspace-wordmark,.workspace-brand){transition:none}@media (prefers-reduced-motion:reduce){.workspace-sidebar :is(span,small,kbd),.workspace-folder-label,.workspace-toolbar,.workspace-brand{filter:none!important;transition:none!important}}.sidebar-titlebar{flex:none;justify-content:flex-end;align-items:center;height:52px;padding:0 16px;display:flex}.workspace-sidebar-body{padding:16px var(--sidebar-inset) 5px;flex:1;overflow:hidden auto}.workspace-search{border:1px solid var(--sidebar-field-edge);background:var(--sidebar-field);width:100%;height:34px;box-shadow:none;color:var(--ink);border-radius:6px;align-items:center;gap:10px;margin-bottom:17px;padding:0 10px;font-size:13px;font-weight:500;display:flex}.workspace-search>svg{width:16px;height:16px;color:var(--muted)}.workspace-search kbd{font:10px var(--font-sans);color:var(--muted);margin-inline-start:auto}.workspace-search:hover{background:color-mix(in srgb,var(--sidebar-field) 97%,var(--ink))}.workspace-nav{width:100%;height:35px;padding:0 var(--nav-inset);text-align:start;border-radius:6px;align-items:center;gap:10px;font-size:13px;font-weight:500;display:flex;position:relative}.workspace-nav>svg{color:var(--muted);flex:none}.workspace-nav>span:not(.folder-glyph){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-nav small{color:var(--muted);margin-inline-start:auto;font-size:9px;font-weight:400;line-height:17px}.workspace-nav:hover,.workspace-icon:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.workspace-nav[aria-current=page]{background:var(--sidebar-selected);color:var(--ink)}.workspace-nav[aria-current=page]:before{content:none}.workspace-nav[aria-current=page]>svg{color:var(--written)}.workspace-folder-label{margin:30px var(--nav-inset) 8px;color:var(--muted);font-size:11px}.workspace-folder-item,.workspace-folder-list{position:relative}.workspace:not(.sidebar-collapsed) .workspace-folder-item>.workspace-nav{touch-action:none;padding-inline-end:36px}.workspace-folder-item[data-moving=true]{z-index:2;background:var(--float);border-radius:6px;box-shadow:0 2px 8px #0000001a}.workspace-folder-item[data-moving=true]>.workspace-nav{cursor:grabbing}.workspace-folder-item[data-moving=true] .workspace-folder-more{visibility:hidden}.workspace-folder-item [role=menuitem]:disabled{opacity:.4}.workspace-folder-item>.workspace-nav[data-drop=true]{background:var(--accent-soft);color:var(--ink)}.workspace-folder-more{inset-inline-end:5px;opacity:0;width:27px;height:27px;position:absolute;top:4px}.workspace-folder-item:hover .workspace-folder-more,.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]{opacity:1}.workspace-folder-item:hover small{visibility:hidden}.workspace-folder-item:has(.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]) small{visibility:hidden}.workspace-folder-item small{position:absolute;inset-inline-end:var(--nav-inset)}.workspace-folder-new,.workspace-folder-new>svg{color:var(--muted)}.workspace-folder-new:hover{color:var(--ink)}.native-folder{grid-template-columns:minmax(0,1fr);height:100%;min-height:0;padding-top:52px;display:grid}.native-folder .native-library>h1 input{font:inherit;letter-spacing:inherit}.workspace-sidebar-footer{padding:9px var(--sidebar-inset) 0}.workspace-brand{min-height:var(--workspace-footer-height);border-top:1px solid var(--line);margin-top:9px;margin-inline:calc(-1 * var(--sidebar-inset));padding:0 calc(var(--sidebar-inset) + var(--nav-inset));justify-content:flex-start;align-items:center;display:flex}.workspace-content{z-index:1;contain:layout;background:var(--reading-surface);flex:1;min-width:0;height:100%;position:relative;container-type:inline-size}.workspace-content>.bg-bg,.workspace-content .document-main{background:0 0}.document-body{padding-inline:clamp(20px,10cqw - 42px,48px)}.workspace-toolbar{inset-inline:0;z-index:50;border-bottom:1px solid var(--line);background:0 0;align-items:center;height:52px;padding:0 24px;display:flex;position:absolute;top:0}.workspace-toolbar[data-note=true]{padding-inline-end:185px}.workspace-breadcrumb{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:9px;font-size:13px;display:flex}.workspace-breadcrumb>svg{flex:none}.workspace-breadcrumb>[aria-current]{color:var(--ink);text-overflow:ellipsis;font-weight:500;overflow:hidden}.workspace-history{flex:none;gap:2px;display:flex}.workspace-history button:disabled{opacity:.3;background:0 0}.sidebar-collapsed .workspace-toolbar{padding-inline-start:68px}.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:padding-inline-start .2s cubic-bezier(.22,1,.36,1)}.workspace-icon{width:28px;height:28px;color:var(--muted);border:1px solid #0000;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}.workspace-icon:active{background:color-mix(in srgb,var(--ink) 9%,transparent)}.workspace button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-button{border:1px solid var(--line);background:var(--float);height:30px;color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,box-shadow var(--dur-micro) ease,transform var(--dur-micro) var(--ease-out);border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:500;display:inline-flex;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.workspace-button:hover:not(:disabled){background:var(--control-hover)}.workspace-button:active:not(:disabled){background:var(--control-pressed);box-shadow:inset 0 1px 2px #0000000a}.workspace-button:disabled{opacity:.45;cursor:default}.workspace-button.primary{background-color:var(--primary);color:#fff;background-image:linear-gradient(#ffffff14,#0000 55%,#0000000a);border-color:#00000014;box-shadow:inset 0 1px #ffffff29,0 1px 2px #35006524}.workspace-button.primary:hover:not(:disabled){background-color:var(--primary-hover)}.workspace-button.primary:active:not(:disabled){background-image:none;box-shadow:inset 0 1px 2px #35006533}.recording-split{min-width:0;max-width:min(100%,276px);display:flex}.recording-main{min-width:0}.recording-main>svg{flex:none}.recording-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:200px;overflow:hidden}.recording-split[data-split=true] .recording-main{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0}.workspace-button.primary.recording-chevron{border-inline-start:1px solid #ffffff26;border-start-start-radius:0;border-end-start-radius:0;flex:none;width:28px;padding:0}.recording-menu{width:276px;max-width:var(--available-width);max-height:var(--available-height);border:1px solid var(--line);overflow-y:auto}.recording-meeting-copy{flex:1;min-width:0}.recording-meeting-copy>span,.recording-meeting-copy>small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.recording-meeting-copy>small,.recording-timing{color:var(--muted);font-size:10px;font-weight:400;line-height:16px}.recording-timing{flex:none}.recording-menu-separator{background:var(--line);height:1px;margin:4px 0}.workspace-toolbar[data-recording-return=true]{gap:16px;padding-inline-end:17px}.workspace-toolbar[data-recording-return=true][data-note=true]{padding-inline-end:62px}.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-recording-link{color:#fff;white-space:nowrap;min-width:86px;height:30px;transition:box-shadow var(--dur-micro) ease;background:linear-gradient(#7a1aff,#6f00ff 65%,#6600eb);border:1px solid #5200bc;border-radius:9px;flex:none;justify-content:center;align-items:center;gap:9px;padding:0 12px;font-size:12px;font-weight:500;display:flex;position:relative;box-shadow:inset 0 1px #fff3,0 1px 3px #39008026}.recording-return-time{font-variant-numeric:tabular-nums;text-align:center;min-width:32px}.workspace-recording-link:hover{filter:brightness(1.06);box-shadow:inset 0 1px #ffffff40,0 2px 5px #39008033}.workspace-recording-link:active{filter:brightness(.96);box-shadow:inset 0 1px 3px #39008033}.workspace-recording-link[data-paused=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:var(--shadow-soft)}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-recording-return=true][data-note=true],.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-recording-return=true][data-note=true]{padding-left:185px}.native-home{grid-template-columns:minmax(0,1fr) 270px;height:100%;min-height:0;padding-top:52px;display:grid}.workspace-toolbar-actions{flex:none}.workspace-toolbar-actions:has(.recording-split){flex:0 auto;min-width:0;max-width:276px}.workspace-toolbar:has(.recording-split) .workspace-breadcrumb{min-width:100px}.workspace-toolbar-actions:empty{display:none}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){gap:16px;padding-inline-end:17px}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){padding-inline-end:132px}.workspace-toolbar:has(.notes-download-status){gap:10px;padding-inline-end:17px}.workspace-toolbar:has(.notes-download-status) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:62px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){padding-inline-end:132px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:185px}.native-library{min-width:0;padding:29px 26px 30px;overflow:auto}.native-library>h1{letter-spacing:-.55px;margin-bottom:9px;font-size:20px;font-weight:600;line-height:26px}.native-meeting-day{margin-top:25px}.native-meeting-day>h2{color:var(--muted);margin-bottom:9px;font-size:10px;font-weight:500;line-height:14px}.native-meeting-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:12px;margin-inline:-8px;padding-inline-end:8px;display:grid;position:relative;overflow:hidden}.native-meeting-row:hover:not(:focus-visible):not(:has(:focus-visible)){background:var(--row-hover)}.native-meeting-card{grid-area:1/1/2/3;grid-template-columns:subgrid;border-radius:inherit;align-items:center;min-width:0;display:grid}.native-meeting-card:has(.meeting-folder-pill){grid-template-columns:minmax(0,1fr) fit-content(40%) max-content;column-gap:12px}.native-meeting-link{grid-area:1/1/2/-1;grid-template-columns:subgrid;text-align:start;border-radius:inherit;align-items:center;width:100%;min-width:0;min-height:57px;padding-block:8px;padding-inline:8px 0;display:grid}.native-meeting-card>.row-swap-actions{grid-area:1/-2}.native-meeting-card .meeting-meta{grid-column:-2}.meeting-content{align-items:center;gap:12px;min-width:0;display:flex}.meeting-identity{background:var(--control);width:30px;height:30px;color:var(--written);border:1px solid #0000;border-radius:7px;flex:none;place-items:center;font-size:10px;font-weight:600;display:grid}.meeting-identity.recording{color:#fff;background:var(--primary);border-color:#0000}.meeting-description{flex:1;min-width:0}.meeting-description strong{letter-spacing:-.1px;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:19px;display:block;overflow:hidden}.meeting-description>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:2px;font-size:11px;line-height:16px;display:block;overflow:hidden}.meeting-meta{text-align:end;min-width:49px;color:var(--muted);font-variant-numeric:tabular-nums;flex-direction:column;flex:none;gap:4px;font-size:10px;display:flex}.meeting-meta small{color:var(--muted);font-size:9px;line-height:12px}.meeting-drag-preview{border:1px solid var(--line);background:var(--float);width:max-content;max-width:280px;color:var(--ink);box-shadow:var(--shadow);pointer-events:none;border-radius:10px;align-items:center;gap:9px;padding:8px 11px;display:flex;position:fixed;inset-block-start:0;inset-inline-start:0}.meeting-drag-preview strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:19px;overflow:hidden}.meeting-live{color:var(--accent);align-items:center;gap:4px;display:flex}.meeting-delete{opacity:.6;width:27px;height:27px}.meeting-delete svg{width:13px;height:13px}.native-meeting-row:hover .meeting-delete{opacity:1}.native-meeting-row:has(:focus-visible) .meeting-delete{opacity:1}.meeting-delete:hover{color:var(--danger)}.meeting-more{width:27px;height:27px}.row-swap-meta{transition:opacity var(--dur-micro) var(--ease-out) 40ms;grid-column:2}.row-swap-actions{z-index:1;opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);grid-area:1/2;justify-self:end}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-meta{opacity:0;pointer-events:none;transition-delay:0s}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-actions{opacity:1;pointer-events:auto;transition:opacity var(--dur-micro) var(--ease-out) 50ms}.row-swap :is(.workspace-icon,.chat-icon){background:0 0}.row-swap :is(.workspace-icon,.chat-icon):hover:not(:disabled){background:var(--control-hover)}.row-swap :is(.workspace-icon,.chat-icon):active:not(:disabled){background:var(--control-pressed)}:is(.native-meeting-row,.ask-history-row,.agenda-event):is(:focus-visible,:has(:focus-visible)){outline:2px solid var(--focus);outline-offset:-2px}.native-meeting-row .native-meeting-link:focus-visible,.ask-history-row>.ask-history-link:focus-visible,.agenda-event .agenda-title:focus-visible{outline:none}.row-swap :is(.workspace-icon,.chat-icon):focus-visible{outline-offset:-2px}.meeting-row-menu{z-index:100;border:1px solid var(--line);width:224px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;overflow-y:auto}.meeting-row-menu [role=menuitem]{text-align:start;align-items:center;gap:10px;width:100%;display:flex}.meeting-row-menu [role=menuitem]:disabled{opacity:.5}.meeting-row-menu svg{flex-shrink:0}@media (prefers-reduced-motion:reduce){.row-swap-meta,.row-swap-actions{transition:opacity var(--dur-micro) var(--ease-out)!important;transform:none!important}}.native-library:has(>.library-empty){flex-direction:column;display:flex}.native-library:has(>.library-empty)>:not(.library-empty){flex-shrink:0}.empty-state{text-align:center;flex:1;place-items:center;min-width:0;padding-block:24px 48px;display:grid}.empty-state-content{width:100%;max-width:310px}.empty-tile{border:1px solid var(--line);background:var(--float);width:64px;height:64px;color:var(--written);border-radius:14px;place-items:center;margin:0 auto 16px;display:grid;position:relative;box-shadow:0 1px 2px #17171a0a,0 10px 28px -12px #2a1a4a24}.empty-tile:before{content:"";border:1px solid var(--line);opacity:.45;pointer-events:none;border-radius:9px;position:absolute;inset:5px}.library-empty h2{letter-spacing:-.3px;font-size:17px;font-weight:550;line-height:24px}.library-empty p{color:var(--muted);margin:10px 0 20px;line-height:1.65}.library-loading{color:var(--muted);margin-top:25px;font-size:12px}.native-agenda{min-width:0;min-height:0;padding:29px var(--agenda-inset);--agenda-inset:20px;background:var(--card);border-inline-start:1px solid var(--line);flex-direction:column;display:flex;position:relative;overflow:hidden}.native-agenda>div:not(.agenda-scroll){flex-shrink:0}.agenda-scroll{margin-inline:calc(-1 * var(--agenda-inset));padding-inline:var(--agenda-inset);overscroll-behavior:contain;flex:1;min-height:80px;padding-block:16px;scroll-padding-block:16px;overflow-y:auto}.agenda-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.agenda-header>h2{letter-spacing:-.1px;font-size:13px;font-weight:550}.agenda-navigation{align-items:center;gap:4px;margin-top:24px;display:flex}.agenda-month{min-width:0;color:var(--written);margin-inline-end:auto;font-size:11px;font-weight:500}.agenda-header .workspace-button{height:27px;padding:0 9px;font-size:11px}.agenda-week{border-bottom:1px solid var(--line);grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;margin-bottom:23px;padding:18px 0 20px;display:grid}.agenda-week button{flex-direction:column;align-items:center;gap:8px;min-width:0;display:flex}.agenda-week span{color:var(--muted);font-size:10px;line-height:14px}.agenda-week b{border:1px solid #0000;border-radius:6px;place-items:center;width:26px;height:26px;font-size:11px;font-weight:500;display:grid}.agenda-week button:not([aria-pressed=true]):not([aria-current=date]):hover b{background:var(--accent-soft)}.agenda-week [aria-pressed=true] b{color:var(--accent);background:var(--accent-soft);border-color:#0000}.agenda-week [aria-current=date] b{color:#fff;background:var(--primary)}.agenda-day{align-items:baseline;gap:9px;margin-bottom:16px;display:flex}.agenda-day h3{font-size:13px;font-weight:600}.agenda-day>span{color:var(--muted);font-size:11px}.agenda-events{flex-direction:column;gap:3px;display:flex}.agenda-event{cursor:pointer;border-radius:8px;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px;padding:8px 6px;display:grid;position:relative;overflow:hidden}.agenda-event:hover:not(:has(:focus-visible)){background:var(--row-hover)}.agenda-event-body{border-inline-start:2px solid var(--line);flex-direction:column;gap:2px;min-width:0;padding-inline-start:12px;display:flex}.agenda-event:is(.live,[data-recording=true]) .agenda-event-body{border-inline-start-color:var(--accent)}.agenda-event:is(.live,[data-recording=true]) .agenda-title{letter-spacing:-.1px;font-weight:600}.agenda-event[data-selected=true] .agenda-title{color:var(--ink)}.agenda-time{color:var(--muted);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;padding-top:0;font-size:10px;line-height:17px}.agenda-heading{align-items:center;gap:8px;min-height:17px;display:flex}.agenda-marker{pointer-events:none;width:23px;height:17px;color:var(--muted);flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.agenda-event[data-recording=true] .agenda-marker{color:var(--accent)}.agenda-levels{flex:none;transform:scale(.85)}.agenda-event h3{flex:1;min-width:0;font-size:11px;font-weight:400;line-height:17px}.agenda-title{text-overflow:ellipsis;white-space:nowrap;text-align:start;width:100%;color:var(--ink);cursor:pointer;border-radius:3px;display:block;overflow:hidden}.agenda-title:after{content:"";border-radius:8px;position:absolute;inset:0}.agenda-event p{color:var(--muted);margin-top:0;font-size:11px;line-height:17px}.agenda-people{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.agenda-live{white-space:nowrap;color:var(--muted);align-items:center;padding:1px 0;font-size:10px;font-weight:500;line-height:16px;display:inline-flex}.agenda-inspector{visibility:hidden;z-index:5;border:1px solid var(--line);background:var(--float);max-width:none;color:var(--ink);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;margin:0;padding:0;font-size:12px;line-height:18px;position:absolute;inset:0 auto auto 0;overflow:visible}.agenda-inspector[data-side=top]{transform-origin:bottom}.agenda-inspector[data-side=bottom]{transform-origin:top}.agenda-inspector-content{border-radius:inherit;flex-direction:column;gap:16px;padding:16px;display:flex;overflow:hidden}.agenda-inspector-scroll{overscroll-behavior:contain;min-width:0;min-height:0;max-height:240px;overflow:hidden auto}.agenda-inspector-time{flex:none}.agenda-inspector-arrow{background:var(--float);border-top:1px solid var(--line);border-left:1px solid var(--line);pointer-events:none;width:10px;height:10px;position:absolute;top:-6px;transform:rotate(45deg)}.agenda-inspector[data-side=top] .agenda-inspector-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}.agenda-inspector-heading{flex:none;justify-content:space-between;align-items:start;gap:12px;display:flex}.agenda-inspector-heading h3{outline:none;min-width:0;font-size:14px;font-weight:600;line-height:21px}.agenda-inspector-heading .workspace-icon{flex:none;margin-block:-4px;margin-inline-end:-4px}.agenda-open-note{height:28px;padding-inline:8px;font-size:11px}.agenda-inspector-footer{border-top:1px solid var(--line);flex-direction:column;flex:none;gap:12px;padding-top:16px;display:flex}.agenda-inspector-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex;container-type:inline-size}.agenda-inspector .agenda-inspector-footer{gap:16px}.agenda-inspector .agenda-inspector-actions:has(>:only-child){justify-content:flex-start}.agenda-inspector-actions>.workspace-button{min-width:0;max-width:100%}.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:calc(50% - 4px)}.agenda-inspector-actions>.workspace-button>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:inherit;font-size:inherit;overflow:hidden}.agenda-inspector-actions>.workspace-button>svg{flex:none}.agenda-inspector-actions>a.workspace-button{color:var(--ink);text-decoration:none}.agenda-inspector-actions>a.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@container (width<=180px){.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:100%}}.agenda-inspector-people{min-width:0}.agenda-more-people{color:var(--accent);text-align:start;margin-top:8px;font-size:11px}.agenda-more-people:hover{text-underline-offset:3px;text-decoration:underline}.agenda-inspector button:focus-visible,.agenda-inspector a:focus-visible{outline-offset:-2px}.agenda-inspector-line{align-items:start;gap:10px;display:flex}.agenda-inspector-line>svg{color:var(--muted);flex:none;margin-top:2px}.agenda-inspector-line>div,.agenda-inspector-line>p,.agenda-inspector-line ul{overflow-wrap:anywhere;min-width:0}.agenda-inspector li+li{margin-top:6px}.agenda-inspector span,.agenda-inspector-muted{color:var(--muted);font-size:11px;display:block}@media (height<=650px){.native-agenda{padding-block:16px}.agenda-navigation{margin-top:12px}.agenda-week{margin-bottom:12px;padding-block:10px 12px}.agenda-day{margin-bottom:6px}}.agenda-event[data-faded=true] :is(.agenda-time,.agenda-title,.agenda-marker){color:var(--ink);opacity:.65}.agenda-status{color:var(--muted);padding:10px 0;font-size:12px;line-height:1.65}.agenda-status svg{margin-bottom:14px}.agenda-status h3{color:var(--written);font-size:13px;font-weight:500}.agenda-status p{margin:5px 0 17px}.agenda-status .workspace-button{font-size:11px}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.trash-actions .workspace-icon{width:27px;height:27px}.app-toast-viewport{bottom:20px;--toast-x:0px;--toast-y:0px;translate:var(--toast-x) var(--toast-y);transition:translate var(--dur-surface) var(--ease-in-out);z-index:90;pointer-events:none;outline:none;width:340px;max-width:calc(100% - 40px);position:fixed;inset-inline-end:20px}.app-toast{width:100%;height:var(--toast-frontmost-height,var(--toast-height));border:1px solid var(--line);background:var(--float);color:var(--ink);pointer-events:auto;--gap:10px;z-index:calc(100 - var(--toast-index,0));border-radius:11px;outline:none;position:absolute;inset-block-end:0;inset-inline:0;box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.app-toast[data-expanded]{height:var(--toast-height)}.app-toast[data-limited]{opacity:0}.app-toast-content{align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;display:flex;overflow:hidden}.app-toast-content[data-behind]:not([data-expanded]){opacity:0}.app-toast-title{flex:1;min-width:0;font-size:13px;font-weight:500;line-height:19px}.app-toast-action{border:1px solid var(--control-border);background:var(--button-surface,var(--control));border-radius:6px;flex:none;padding:5px 9px;font-size:12px;font-weight:500;line-height:18px;box-shadow:0 1px 2px #0000000a}.app-toast-action:hover{background:var(--control-hover)}.app-toast-close{width:24px;height:24px;color:var(--muted);border-radius:5px;flex:none;place-items:center;display:grid}.app-toast-close:hover{color:var(--ink);background:var(--control)}.app-toast button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-anchor{white-space:nowrap}.citation-group{vertical-align:baseline;white-space:nowrap;align-items:baseline;gap:1px;line-height:0;display:inline-flex;position:relative;top:-1ex}.citation-group[data-gap]{margin-inline-start:.18em}.source-citation{height:1em;color:var(--accent);letter-spacing:1px;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:.68em;font-weight:500;line-height:1;display:inline-flex;position:relative}.source-citation:before{content:"";position:absolute;inset:-6px 0}.citation-group[data-single] .source-citation:before{inset:-6px -9px}.source-citation:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.citation-positioner{z-index:100}.citation-positioner[data-anchor-hidden]{visibility:hidden;pointer-events:none}.citation-card{isolation:isolate;width:380px;max-width:calc(100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:13px;line-height:1.5;transition:opacity .16s ease-out;position:relative}.citation-card[data-animate=false]{transition:none}.citation-card[data-ending-style]{opacity:0}.citation-filter{pointer-events:none;position:absolute}.citation-liquid,.citation-edge{z-index:-1;pointer-events:none;position:absolute;inset:0}.citation-mass{background:var(--float);transform-origin:0 0;border-radius:12px;position:absolute;inset:0}.citation-edge{border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:12px}.citation-content{padding:12px}.citation-heading{justify-content:space-between;align-items:baseline;gap:10px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:18px;overflow:hidden}.citation-date{color:var(--muted);white-space:nowrap;flex:none;font-size:10px}.citation-excerpt{-webkit-line-clamp:6;color:var(--muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;max-height:120px;margin:8px 0 0;font-size:13px;line-height:20px;display:-webkit-box;overflow:clip}.citation-match{color:var(--ink)}.citation-passage{color:var(--muted);margin-top:8px}.citation-passage [hidden]{display:none!important}.citation-lines{overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:clip}.citation-transcript{flex-direction:column;gap:6px;margin-top:12px;display:flex}.citation-transcript .transcript-turn{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.citation-transcript .transcript-turn[data-track=me]{align-items:flex-end}.citation-transcript .bubble{margin:0}.citation-transcript .bubble+.bubble{margin-top:1px}.citation-transcript .bubble:not([data-continuation]){width:85%}.citation-transcript .bubble[data-continuation]{margin-inline:12px}.citation-speaker{padding-inline:4px;font-size:12px;font-weight:500;line-height:18px}.citation-notes{font-size:13px;line-height:20px}.citation-notes p{margin:0}.citation-notes ul,.citation-notes ol{margin:0;padding-inline-start:18px}.citation-notes ul{list-style-type:disc}.citation-notes ol{list-style-type:decimal}.citation-notes li+li{margin-top:4px}.citation-notes li:not(:has([data-citation-part]:not([hidden]))){display:none}.citation-notes [data-citation-part]+[data-citation-part]{margin-top:8px}.citation-notes .citation-match{background:color-mix(in srgb,var(--accent) 10%,transparent);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}.citation-notes code{font-size:.92em}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;font-size:11px;display:flex}.citation-footer>span{margin-inline-end:auto}.citation-open{height:24px;color:var(--muted);background:0 0;border-radius:4px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;line-height:20px;display:inline-flex}.citation-open:hover{background:var(--control-hover);color:var(--ink)}.citation-open:active{background:var(--control-pressed)}.citation-open:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-card[data-morph=true] .citation-liquid{filter:var(--citation-filter)}.citation-card[data-morph=true] .citation-mass{animation:.28s linear both citation-pull}.citation-card[data-morph=true] .citation-content{animation:.13s ease-out 90ms both citation-in,.28s linear backwards citation-crop}.citation-card[data-morph=true] .citation-edge{animation:.16s ease-out .12s both citation-in}@keyframes citation-pull{0%{transform:translate(var(--from-x),var(--from-y)) scale(var(--from-sx),var(--from-sy));border-radius:12px;animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{border-radius:14px;animation-timing-function:cubic-bezier(.2,0,.25,1);transform:translateY(-2px)scale(.992,1.018)}to{border-radius:12px;transform:none}}@keyframes citation-in{0%{opacity:0}to{opacity:1}}@keyframes citation-crop{0%{clip-path:inset(var(--from-y) calc(100% - var(--from-x) - var(--from-sx) * 100%) calc(100% - var(--from-y) - var(--from-sy) * 100%) var(--from-x) round 9px);animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{clip-path:inset(-2px .8% calc(2px - 1.8%) 0 round 14px);animation-timing-function:cubic-bezier(.2,0,.25,1)}to{clip-path:inset(0 round 12px)}}@media (prefers-reduced-motion:reduce){.citation-card{transition:none}.citation-card *{animation:none!important}.citation-liquid{filter:none!important}}::highlight(citation-target){background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}[data-focused]{background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}@container (width<=700px){.native-home{grid-template-columns:minmax(0,1fr) 235px}.native-library{padding:24px 18px}.native-agenda{--agenda-inset:15px;padding-block:25px}.meeting-description strong{font-size:13px}.meeting-meta{font-size:10px}}@container (width<=520px){.native-home{grid-template-rows:minmax(0,1fr) 200px;grid-template-columns:1fr}.native-agenda{border-inline-start:0;border-top:1px solid var(--line)}.native-meeting-link{gap:8px}.workspace-breadcrumb{gap:5px}.workspace-parent,.workspace-parent-separator{display:none}}.native-home.no-agenda{grid-template-rows:none;grid-template-columns:minmax(0,1fr)}.workspace-assistant-dock{inset-inline:0;border-top:1px solid var(--line);background:var(--bg);justify-content:flex-end;align-items:center;height:44px;padding:0 18px;display:flex;position:absolute;bottom:0}.workspace-assistant-launch{height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:450;display:inline-flex}.workspace-assistant-launch:hover{color:var(--ink);background:var(--control)}.workspace-assistant-launch:active{background:var(--control-pressed)}.workspace-assistant-launch kbd{font:10px/15px var(--font-sans);color:var(--muted);margin-inline-start:5px}.workspace-content:has(.workspace-assistant-dock) :is(.native-home,.native-folder){padding-bottom:44px}@media (prefers-reduced-motion:reduce){.chat-starter,.workspace-button,.workspace-recording-link,.workspace-assistant-launch,.workspace[data-sidebar-motion=true].sidebar-collapsed .workspace-sidebar,.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:none}}[data-folder-color]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--folder-ink:var(--written);--folder-tint:var(--control)}@media (prefers-color-scheme:dark){[data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial}}.widget [data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-folder-color=violet]{--folder-ink:var(--lightningcss-light,#7434ca)var(--lightningcss-dark,#b995ff)}[data-folder-color=blue]{--folder-ink:var(--lightningcss-light,#2868ba)var(--lightningcss-dark,#87b5f4)}[data-folder-color=teal]{--folder-ink:var(--lightningcss-light,#157d80)var(--lightningcss-dark,#72cece)}[data-folder-color=green]{--folder-ink:var(--lightningcss-light,#388044)var(--lightningcss-dark,#92c88a)}[data-folder-color=amber]{--folder-ink:var(--lightningcss-light,#976b0d)var(--lightningcss-dark,#e5bd68)}[data-folder-color=orange]{--folder-ink:var(--lightningcss-light,#b85a1f)var(--lightningcss-dark,#efa777)}[data-folder-color=rose]{--folder-ink:var(--lightningcss-light,#be4675)var(--lightningcss-dark,#e99dbb)}[data-folder-color]:not([data-folder-color=default]){--folder-tint:color-mix(in srgb,var(--folder-ink) 12%,var(--bg))}.folder-glyph{color:var(--folder-ink);flex:none;justify-content:center;align-items:center;display:inline-flex}.folder-preview-tile,.folder-heading-icon{background:var(--folder-tint);color:var(--folder-ink)}.folder-page-heading{align-items:center;gap:12px;margin-bottom:9px;display:flex}.folder-page-heading h1{letter-spacing:-.55px;min-width:0;font-size:20px;font-weight:600;line-height:26px}.folder-page-heading h1 input{font:inherit;letter-spacing:inherit}.folder-heading-icon{border:1px solid color-mix(in srgb,var(--folder-ink) 15%,transparent);border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:grid}.folder-heading-icon:hover{filter:brightness(.96)}.folder-appearance-preview{align-items:center;gap:12px;min-width:0;margin:0 20px 22px;display:flex}.folder-appearance-preview strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.folder-preview-tile{border-radius:11px;flex:none;place-items:center;width:44px;height:44px;display:grid}.folder-choices{padding:0 20px 22px}.folder-choice-label{color:var(--muted);margin-bottom:9px;font-size:11px;font-weight:500}.folder-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:20px;display:grid}.folder-icon-grid button{height:38px;transition:background var(--dur-micro) ease,border-color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:8px;place-items:center;display:grid}.folder-icon-grid button:hover{background:var(--control)}.folder-icon-grid button[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.folder-color-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;display:grid}.folder-color-grid button{border:1px solid #0000;border-radius:50%;place-items:center;height:30px;display:grid}.folder-color-grid button span{background:var(--folder-ink);border-radius:50%;width:18px;height:18px}.folder-color-grid button:hover{background:var(--control)}.folder-color-grid button[aria-checked=true]{border-color:var(--folder-ink)}.folder-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.folder-choices button:disabled{opacity:.5}@media (prefers-reduced-motion:reduce){.folder-icon-grid button{transition:none}}body:has(.note-footer) .app-toast-viewport{--toast-y:calc(20px - var(--note-footer-height,76px))}body:has(.chat-page) .app-toast-viewport{--toast-y:-68px}body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:-440px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:440px}@media (width<=999px){body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:4px;--toast-y:4px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:-4px}.chat-panel:has(.app-toast){height:min(440px,100dvh - 152px);inset-block-end:84px}}@media (prefers-reduced-motion:reduce){.app-toast-viewport{transition:none}}.native-library{container:meeting-library/inline-size}.meeting-description{flex:220px}.meeting-folders{z-index:1;grid-area:1/2;gap:6px;min-width:0;display:flex;overflow:hidden}.meeting-folders:empty{display:none}.meeting-folder-suggestion{min-width:0;display:flex}.meeting-folder-pill{border:1px solid var(--line);min-width:0;max-width:140px;height:22px;color:var(--written);background:0 0;border-radius:11px;flex:0 auto;align-items:center;gap:5px;padding:0 7px;font-size:11px;line-height:20px;display:inline-flex}.meeting-folder-pill[data-opens=true]{transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,border-color var(--dur-micro) ease}.meeting-folder-pill[data-opens=true]:hover{border-color:var(--control-border);background:var(--control);color:var(--ink)}.meeting-folder-dot{background:var(--folder-ink);border-radius:50%;flex:none;width:7px;height:7px}.meeting-folder-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.meeting-folder-name,.meeting-folder-proposal .note-folder-name>.truncate{max-width:112px}.meeting-folder-pill.meeting-folder-proposal{max-width:none}.meeting-folder-proposal{border-style:dashed;gap:3px;padding-inline-end:3px}.meeting-folder-proposal .note-folder-name{height:20px;font:inherit;border-radius:9px;gap:5px;padding:0}.meeting-folder-proposal .note-folder-name:hover{background:0 0}.meeting-folder-proposal .note-folder-actions{border:0;padding:0}.meeting-folder-proposal .workspace-icon{border-radius:50%;width:20px;height:20px}.meeting-folder-proposal button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.meeting-folder-proposal button:active{background:var(--control-pressed)}@container meeting-library (width<=460px){.meeting-folders{flex-shrink:0;max-width:50px}.meeting-folders:has(>.meeting-folder-suggestion){max-width:100%}.meeting-folder-pill:not(.meeting-folder-proposal){flex:0 0 22px;justify-content:center;width:22px;min-width:22px;max-width:22px;padding:0}.meeting-folder-name{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.sidebar-toggle-pane{width:6px}.workspace-sidebar-toggle[aria-expanded=false] .sidebar-toggle-pane{width:2px}@media (prefers-reduced-motion:no-preference){.workspace[data-sidebar-motion=true] .sidebar-toggle-pane{transition:width .2s cubic-bezier(.22,1,.36,1)}}.ask-page{contain:layout;scrollbar-gutter:stable both-edges;flex-direction:column;height:100%;min-height:0;padding:104px 32px 24px;display:flex;overflow-y:auto}.ask-page-toolbar{z-index:4;top:68px;justify-content:flex-end;align-items:center;gap:12px;height:28px;display:flex;position:absolute;inset-inline:24px}.ask-recent-button,.ask-back{height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding-inline:8px;font-size:12px;display:inline-flex}.ask-recent-button:hover,.ask-recent-button[aria-expanded=true],.ask-back:hover{background:var(--control);color:var(--ink)}.ask-recent-button:active,.ask-back:active{background:var(--control-pressed)}.ask-back{margin-inline-end:auto}.ask-page:has(.ask-landing){padding-bottom:clamp(104px,24vh,240px);container-type:size}.ask-page:has(.ask-landing) .ask-back{display:none}.ask-conversation{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ask-page>.ask-landing{flex:none;width:100%;max-width:720px;margin:max(0px,50cqh - 97px) auto 0}.ask-home-title{text-align:center;letter-spacing:-.55px;margin:0 0 24px;font-size:20px;font-weight:600;line-height:26px}.ask-page.ask-full-thread:not(:has(.ask-landing)){padding-inline:0;overflow:hidden}.ask-full-thread>.ask-conversation:not(.ask-landing){--ask-reading-inset:max(32px,calc((100% - 720px)/2))}.ask-full-thread .ask-conversation-head,.ask-full-thread .ask-conversation:not(.ask-landing) .ask-composer{margin-inline:var(--ask-reading-inset)}.ask-full-thread .ask-thread{padding-inline:var(--ask-reading-inset)}.ask-conversation-head{flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:44px;display:flex}.ask-conversation-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:550;overflow:hidden}.ask-conversation .chat-icon:active:not(:disabled){background:var(--control-pressed)}.ask-conversation .chat-icon:disabled{opacity:.45}.ask-conversation :is(.chat-copy-action,.chat-latest):hover{background:var(--control);color:var(--ink)}.ask-conversation :is(.chat-copy-action,.chat-latest):active{background:var(--control-pressed)}.ask-conversation button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.ask-context-row>button:focus-visible{outline-offset:1px}.ask-header-actions{flex:none;align-items:center;gap:8px;display:flex}.ask-thread-wrap{flex:1;min-height:0;display:flex;position:relative}.ask-thread{overscroll-behavior:contain;flex:1;min-height:0;padding:16px 0;overflow-y:auto}.ask-thread-empty{flex-direction:column;display:flex}.ask-thread-empty .ask-thread-content{margin-top:auto}.ask-landing .ask-thread-wrap{display:none}.ask-turn{flex-direction:column;gap:16px;margin:0 0 24px;display:flex}.ask-turn:last-child{margin-bottom:0}.ask-question{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--control);border-radius:12px;width:fit-content;max-width:80%;margin-inline-start:auto;padding:8px 12px;font-size:14px;line-height:20px}.ask-composer{flex:none;min-width:0;container-type:inline-size}.ask-box{border:1px solid var(--line);background:var(--float);min-width:0;box-shadow:var(--shadow-soft);border-radius:12px;position:relative}.ask-box,.note-reading-frame{--ask-ring-opacity:0;--ask-ring-play:paused;--ask-ring-color:var(--primary);--ask-ring-highlight:color-mix(in srgb,var(--focus) 32%,var(--float))}.ask-border{border-radius:inherit;pointer-events:none;opacity:var(--ask-ring-opacity);background:var(--ask-ring-color);padding:2px;transition:opacity .2s ease-out;position:absolute;inset:-1px;overflow:hidden;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.ask-border:before{content:"";aspect-ratio:1;background:conic-gradient(transparent 0 54%,var(--ask-ring-highlight) 76%,var(--ask-ring-highlight) 81%,transparent 100%);width:200%;animation:12s linear infinite ask-border-drift;animation-play-state:var(--ask-ring-play);position:absolute;top:50%;left:50%}@media (hover:hover) and (prefers-reduced-motion:no-preference){.ask-box:not([data-busy=true]):hover{--ask-ring-opacity:.56;--ask-ring-play:running}}.ask-box:not([data-busy=true]):has(textarea:focus){--ask-ring-opacity:1;--ask-ring-play:running}@keyframes ask-border-drift{0%{transform:translate(-50%,-50%)rotate(0)}to{transform:translate(-50%,-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.ask-border:before{animation:none;display:none}.ask-box:before,.note-reading-frame:before{display:none}.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-field{padding:16px 10px 12px}.ask-box textarea{field-sizing:content;resize:none;width:100%;min-height:38px;max-height:160px;color:var(--ink);background:0 0;outline:none;font-size:14px;line-height:22px;display:block}.ask-box textarea:focus-visible{outline:none}.ask-box textarea::placeholder{color:var(--muted)}.ask-box-actions{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.ask-toolbar-button{width:28px;height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border:1px solid #0000;border-radius:50%;flex:none;place-items:center;display:grid}.ask-toolbar-button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-toolbar-button:active:not(:disabled){background:var(--control-hover)}.ask-toolbar-button:disabled{color:var(--muted);opacity:.45}.ask-send{isolation:isolate;background:var(--primary);color:#fff;--orb-play:paused;transition:transform .12s ease-out;position:relative;overflow:hidden}.ask-send:after{content:"";pointer-events:none;border-radius:inherit;background:#6f00ffbd;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ccb6ff44}.ask-send svg{z-index:1;position:relative}.orb-material{border-radius:inherit;pointer-events:none;background:var(--primary);isolation:isolate;position:absolute;inset:0;overflow:hidden}.orb-material:before,.orb-material:after{content:"";pointer-events:none;filter:blur(3px);animation:18s linear infinite orb-turn;animation-play-state:var(--orb-play);opacity:.92;background:radial-gradient(at 27% 32%,#ccb6ff 0 12%,#af8bff 24%,#0000 52%),radial-gradient(at 75% 68%,#7142e8 0 18%,#0000 50%);position:absolute;inset:-35%;transform:rotate(22deg)}.orb-material:after{background:radial-gradient(ellipse at 68% 26%,#fff 0 3%,#ccb6ff 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--accent) 0 13%,#7142e8 29%,transparent 54%);opacity:.8;animation-name:orb-counter;animation-duration:27s}@keyframes orb-turn{0%{transform:rotate(22deg)}to{transform:rotate(382deg)}}@keyframes orb-counter{0%{transform:rotate(-28deg)}to{transform:rotate(-388deg)}}.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,:focus-visible){--orb-play:running;transform:scale(1.04)}.ask-send:active:not(:disabled){transform:scale(.94)}.ask-send:disabled{border-color:var(--line);background:0 0}.ask-send:disabled:after,.ask-send:disabled .orb-material,.ask-box[data-busy=true] .orb-material{display:none}.ask-stop{background:var(--control);color:var(--ink)}.ask-stop:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-stop:active:not(:disabled){background:var(--control-pressed)}.ask-context-strip{gap:6px;max-height:184px;padding:10px 10px 0;display:grid;overflow-y:auto}.ask-context-strip+.ask-field{padding-top:10px}.ask-context-row{background:color-mix(in srgb,var(--control) 55%,var(--float));min-width:0;height:32px;color:var(--ink);border-radius:8px;align-items:center;gap:8px;padding-inline:8px 4px;font-size:13px;line-height:20px;display:flex}.ask-context-row>span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ask-context-row>svg,.ask-context-row>button{flex:none}.ask-context-row>svg{color:var(--muted)}.ask-context-row>button{opacity:0;width:24px;height:24px}.ask-context-row:hover>button,.ask-context-row:focus-within>button{opacity:1}.ask-starters{flex-direction:column;align-items:flex-end;gap:8px;min-width:0;display:flex}.ask-starters button{max-width:80%;color:var(--muted);text-align:start;background:color-mix(in srgb,var(--control) 50%,transparent);border:0;border-radius:12px;padding:8px 12px;font-size:12px;line-height:20px}.ask-home-starters{opacity:1;visibility:visible;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s;flex-flow:wrap;justify-content:center;align-items:center;margin-top:12px}.ask-home-starters[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s var(--dur-micro)}@media (prefers-reduced-motion:reduce){.ask-home-starters{transition:opacity var(--dur-micro) var(--ease-out),visibility 0s}.ask-home-starters[aria-hidden=true]{transition-delay:0s,var(--dur-micro)}}.ask-home-starters button{white-space:nowrap;text-overflow:ellipsis;max-width:100%;height:28px;padding:4px 10px;font-size:12.5px;overflow:hidden}.ask-starters button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-starters button:active:not(:disabled){background:var(--control-pressed)}.ask-picker{z-index:80;inset-inline:0;border:1px solid var(--line);background:var(--float);max-height:min(260px,40vh);box-shadow:var(--shadow-soft);animation:ask-fade var(--dur-micro) var(--ease-out);border-radius:10px;padding:6px;position:absolute;bottom:calc(100% + 8px);overflow-y:auto}.ask-landing .ask-picker{top:calc(100% + 8px);bottom:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button{text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button[aria-selected=true],.ask-picker button:hover{background:var(--card)}.ask-picker button>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:active{background:var(--control-pressed)}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);padding:10px;font-size:12px}.ask-recent-positioner{z-index:80}.ask-history{width:min(520px,100vw - 32px);max-height:min(480px,var(--available-height));border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:9px;overflow:hidden}.ask-history-scroll{max-height:min(478px,calc(var(--available-height) - 2px));overscroll-behavior:contain;padding:8px;overflow-y:auto}.ask-history h2{color:var(--muted);padding:8px 8px 4px;font-size:10px;font-weight:500;line-height:14px}.ask-history section+section{margin-top:8px}.ask-history-empty{color:var(--muted);padding:16px 8px;font-size:12px}.ask-history-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:16px;height:46px;padding-inline:8px;display:grid}.ask-history-row:hover:not(:has(:focus-visible)){background:var(--card)}.ask-history-row:active{background:var(--control)}.ask-history-link{grid-area:1/1/2/3;grid-template-columns:subgrid;text-align:start;border-radius:5px;align-items:center;min-width:0;height:100%;display:grid}.ask-history-link strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:450;overflow:hidden}.ask-history-link time{min-width:86px;color:var(--muted);text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.ask-history-all{width:100%;color:var(--muted);text-align:start;border-radius:5px;padding:10px 8px;font-size:12px;display:block}.ask-history-all:hover{background:var(--card);color:var(--ink)}.ask-history-all:active{background:var(--control-pressed)}.ask-menu-positioner{z-index:110}.ask-actions-menu{min-width:156px}.ask-actions-menu [role=menuitem]{cursor:default;align-items:center;gap:8px;display:flex}.ask-actions-menu [data-highlighted]{background:var(--card);outline:none}.chat-panel .ask-conversation-head{height:44px;padding-inline:16px 12px}.chat-panel .ask-thread{padding:16px 12px}.chat-panel .ask-composer{padding:0 12px 12px;overflow:visible}@container (width<=520px){.ask-page{padding-inline:18px}}@media (hover:none){.ask-context-row>button{opacity:1}}@keyframes ask-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.ask-toolbar-button{transition:none}}.note-folder-proposal{width:max-content;max-width:min(256px,100%)}.note-folder-proposal:hover{color:var(--muted);background:0 0}.note-folder-name{border-radius:5px 0 0 5px;align-items:center;gap:6px;min-width:0;height:30px;padding:0 10px;display:flex}[dir=rtl] .note-folder-name{border-radius:0 5px 5px 0}.note-folder-name:hover,.note-folder-name[aria-expanded=true]{color:var(--ink);background:var(--control-hover)}.note-folder-name:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.note-folder-actions{border-inline-start:1px solid var(--line);flex:none;align-items:center;padding:0 1px;display:flex}.note-folder-proposal,.meeting-folder-proposal{transition:opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),gap var(--dur-base) var(--ease-out)}.note-folder-actions{width:59px;transition:width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),border-width var(--dur-base) var(--ease-out);overflow:hidden}.meeting-folder-proposal .note-folder-actions{width:40px}[data-phase=accepted] .note-folder-actions,[data-phase=settled] .note-folder-actions{opacity:0;border-inline-start-width:0;width:0;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){border-style:solid;gap:0;padding-inline-end:7px}.note-folder-proposal[data-phase=dismissed],.meeting-folder-proposal[data-phase=dismissed]{opacity:0;pointer-events:none}@container meeting-library (width<=460px){.meeting-folder-proposal .note-folder-name span:last-child{max-width:120px;transition:max-width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out)}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){gap:0;min-width:22px;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name{flex:1;justify-content:center;gap:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name span:last-child{opacity:0;max-width:0}}@media (prefers-reduced-motion:reduce){.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:none}}.ask-conversation ::selection{background:var(--accent-soft);color:var(--ink)}.native-library{scrollbar-gutter:stable}.native-library:has(.library-empty){flex-direction:column;display:flex}.library-load,.library-load>.loading-result{flex-direction:column;flex:1;display:flex}:root[data-chrome=overlay]{--controls-start:env(titlebar-area-x,0px);--controls-end:calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw))}:root[data-chrome=overlay] .workspace{--chrome-glass:var(--chrome)}:root[data-chrome=overlay] .workspace-sidebar-toggle{left:calc(14px + var(--controls-start));top:12px}:root[data-chrome=overlay] .sidebar-collapsed .workspace-window-bar{width:56px}:root[data-chrome=overlay] .workspace-toolbar{right:var(--controls-end)}:root[data-chrome=overlay] .workspace:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{right:calc(16px + var(--controls-end))}:root[data-chrome=overlay] .sidebar-collapsed .workspace-toolbar{padding-inline-start:24px}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 208px))}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 56px))}.note-reading-frame{border-radius:12px;flex:1;min-width:0;min-height:0;margin:0 calc(max(0px,50% - 430px) + clamp(20px,10cqw - 42px,48px) - 14px);padding:0 2px;position:relative}.note-reading-frame[hidden]{display:none}.note-reading-frame[data-generating=true]{--ask-ring-opacity:1}.note-reading-frame[data-active=true]{--ask-ring-play:running}.note-reading-clip{border-radius:10px;height:100%;overflow:hidden}.main-window .note-reading-clip>.note-notes-pane{scrollbar-width:auto;scrollbar-gutter:stable;height:100%}.note-reading-frame .note-notes-body{max-width:none;padding-block:22px 40px;padding-inline:12px 8px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar{width:4px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-track{background:0 0}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-thumb{background:0 0}.note-reading-clip>.note-notes-pane[data-scrolling]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,transparent);border-radius:3px}.note-summary-rim{z-index:2;inset:8px 0}.note-summary-status{inset-inline-start:14px;z-index:1;background:var(--bg);color:var(--muted);pointer-events:none;font-size:11px;line-height:16px;position:absolute;bottom:18px}.note-latest{z-index:3;border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:6px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;line-height:16px;display:flex;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.native-library{--meeting-selection-tint:6%}.native-library .native-meeting-row[data-selected=true],.native-library .native-meeting-row[data-selected=true]:hover{background:color-mix(in srgb,var(--primary) var(--meeting-selection-tint),var(--bg))}.native-meeting-row[data-selected=true]+.native-meeting-row[data-selected=true]{border-top-left-radius:0;border-top-right-radius:0}.native-meeting-row[data-selected=true]:has(+.native-meeting-row[data-selected=true]){border-bottom-right-radius:0;border-bottom-left-radius:0}.native-library:has([data-selecting=true]){padding-bottom:100px}.native-library:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.meeting-menu-divider{background:var(--line);height:1px;margin:4px 0}.meeting-selection-bar{border:1px solid var(--line);background:var(--float);width:max-content;color:var(--ink);z-index:60;border-radius:11px;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 10px 9px 16px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.meeting-selection-count{font-variant-numeric:tabular-nums;margin-inline-end:8px;font-size:12px;font-weight:500}.meeting-selection-count small{color:var(--muted);font-size:11px;font-weight:400;line-height:14px;display:block}.meeting-selection-delete{color:var(--danger)}.meeting-selection-folder{position:relative}.meeting-selection-menu{border:1px solid var(--line);width:240px;max-width:calc(100vw - 16px);max-height:min(320px,60vh);position:absolute;overflow:auto}.meeting-selection-bar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.meeting-drag-count{background:var(--primary);color:#fff;border-radius:5px;padding:2px 6px;font-size:11px}.app-toast[data-kind=recording-deleted-toast]{width:max-content;max-width:calc(100vw - 40px);inset-inline-start:auto}.app-toast[data-kind=recording-deleted-toast] :is(.app-toast-title,.app-toast-action){white-space:nowrap}.workspace-button:active:not(:disabled){transform:scale(.97)}@media (prefers-reduced-motion:reduce){.workspace-button:active:not(:disabled){transform:none}.app-toast{filter:none!important}.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:opacity var(--dur-micro) var(--ease-out)}}:root[data-marketing-theme=dark] .workspace{--sidebar-field:#2f2f31;--sidebar-field-edge:#363638;--sidebar-selected:#38313f}:root[data-marketing-theme=dark] .empty-tile{box-shadow:0 1px 2px #0003,0 14px 32px -10px #00000080}:root[data-marketing-theme=dark] .ask-box,:root[data-marketing-theme=dark] .note-reading-frame{--ask-ring-color:var(--primary);--ask-ring-highlight:color-mix(in srgb,var(--focus) 18%,var(--ink))}:root[data-marketing-theme=dark] .ask-box:before,:root[data-marketing-theme=dark] .note-reading-frame:before{content:"";border-radius:inherit;pointer-events:none;opacity:var(--ask-ring-opacity);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 9%,transparent),0 0 12px 2px color-mix(in srgb,var(--accent) 16%,transparent);transition:opacity .2s ease-out;position:absolute;inset:-2px}:root[data-marketing-theme=dark] .note-reading-frame:before{inset:8px 0}:root[data-marketing-theme=dark] .ask-conversation ::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .native-library{--meeting-selection-tint:9%}html,body,#root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;height:100%;margin:0;overflow:hidden}html.main-window,body{background:0 0!important}body{pointer-events:none;-webkit-user-select:none;user-select:none;caret-color:#0000}.marketing-window{background:var(--bg);border-radius:12px;position:absolute;inset:0;overflow:hidden;transform:translateZ(0)}@media (width>=1000px){.marketing-window .chat-panel{--chat-height:initial!important}}.marketing-traffic{z-index:100;gap:7px;display:flex;position:absolute;top:16px;left:18px}.marketing-traffic i{background:#ff6058;border-radius:50%;width:10px;height:10px}.marketing-traffic i:nth-child(2){background:#febc2e}.marketing-traffic i:nth-child(3){background:#29c840}html[data-still] *,html[data-still] :before,html[data-still] :after{transition:none!important;animation:none!important}html[data-playing=false] *,html[data-playing=false] :before,html[data-playing=false] :after{animation-play-state:paused!important}.marketing-window .transcript-turn:first-child .name-in{animation:none}.marketing-cursor{z-index:1000;pointer-events:none;opacity:0;width:30px;height:32px;position:fixed;top:0;left:0;overflow:visible}.cursor-pointer{fill:#2f3649;stroke:#fff;filter:drop-shadow(0 1px 1.5px #0e142633);transform-origin:4px 3px;transition:transform .13s ease-out}.marketing-cursor[data-clicking=true] .cursor-pointer{transform:scale(.88)}.cursor-ring{fill:none;stroke:#fff;stroke-width:1.5px;opacity:0;transform-origin:4px 3px;transition:transform .24s ease-out,opacity .18s ease-out;transform:scale(.6)}.marketing-cursor[data-clicking=true] .cursor-ring{opacity:.3;transform:scale(1)}html[data-typing=true] [data-testid=note-mine] li:last-child p:after{content:"";vertical-align:-.1em;border-right:1.5px solid;height:1em;animation:.9s step-end infinite demo-caret;display:inline-block}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child){position:relative}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child):after{position:absolute;top:50%;left:0;translate:0 -50%}@keyframes demo-caret{50%{opacity:0}}html[data-fragment]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.marketing-fragment{min-width:0;position:absolute;inset:24px 24px auto}.marketing-fragment .transcript-toolbar,.marketing-fragment .transcript-player-dock,.marketing-fragment .ask-conversation-head,.marketing-fragment .ask-composer,.marketing-fragment .chat-answer-actions{display:none}.fragment-transcript .transcript-inline [data-testid=transcript]{flex:none;gap:20px;padding:0;overflow:hidden}.fragment-transcript .transcript-turn{min-width:0;margin:0}.fragment-transcript .turn-head{align-self:stretch}.fragment-transcript .line-who{flex:1}.fragment-transcript .turn-time{display:none}.fragment-transcript .transcript-turn[data-track=me]>p.sr-only{clip:auto;clip-path:none;white-space:normal;text-align:right;width:auto;height:auto;font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--muted);align-self:stretch;margin:0;padding:0;display:flex;position:static;overflow:visible}.fragment-transcript [data-testid=transcript-empty],.fragment-transcript .loading-placeholder{display:none}.marketing-fragment .ask-thread{padding:0;overflow:visible}.marketing-fragment .ask-turn>.ask-question{order:0}.fragment-byline{color:var(--muted);order:1;align-items:center;gap:9px;font-size:12px;display:flex}.marketing-fragment .ask-turn>:is(.chat-progress,.chat-answer){order:2}.marketing-fragment .ask-turn>.chat-progress{margin:0}.marketing-fragment .ask-turn>.chat-answer{margin-left:29px}html[data-fragment-playing=false] *{animation-play-state:paused!important}.fragment-ask .ask-turn{position:relative}.fragment-ask .ask-turn>.chat-progress{left:29px;top:var(--fragment-answer-top);visibility:hidden;position:absolute}@media (width<=320px){.marketing-fragment{inset:20px 20px auto}.marketing-fragment .bubble,.marketing-fragment .ask-question,.marketing-fragment .chat-answer{font-size:15px}}.marketing-window [data-testid=transcript-who],.fragment-transcript [data-testid=transcript-who]{visibility:visible;animation:none}.fragment-plan{position:relative}.fragment-plan-size{visibility:hidden;pointer-events:none}.fragment-plan-live{position:absolute;inset:0}html[data-ask-focused=true] .ask-box:not([data-busy=true]){--ask-ring-opacity:1;--ask-ring-play:running}html[data-ask-focused=true] [data-testid=chat-suggestions]{visibility:hidden}
/*$vite$:1*/
\ No newline at end of file
diff --git a/site/public/marketing/app/renderer.js b/site/public/marketing/app/renderer.js
index f6d22413..010f06c7 100644
--- a/site/public/marketing/app/renderer.js
+++ b/site/public/marketing/app/renderer.js
@@ -11,14 +11,14 @@ Publish the page Tuesday. Send the announcement Wednesday morning, after checkin
Lincoln announces it Wednesday.`,y=(e,t,n,r,i)=>({id:e,meetingId:`sample-meeting`,track:`them`,speaker:t,speakerColor:[`Kara Moore`,`Ray Mones`,`Lincoln Park`].indexOf(t),text:n,startMs:r,endMs:i,hidden:!1}),b=[y(1,`Kara Moore`,`The launch page is ready for review.`,709e3,712e3)],x=[{from:1.5,to:4.5,line:y(2,`Ray Mones`,`Support has the checklist. We can publish Tuesday.`,721500,724500)},{from:5.2,to:7.5,line:y(3,`Lincoln Park`,`I’ll send the announcement on Wednesday morning.`,725200,727500)}],S=(e,t)=>e.split(` `).slice(0,Math.ceil(e.split(` `).length*Math.max(0,Math.min(1,t)))).join(` `);function C(e){let t=e>=l.resume,n=t?0:e,r=[...b];for(let e of x)r.push({...e.line,hidden:n<e.to});r.sort((e,t)=>e.startMs-t.startMs);let i=x.find(e=>n>=e.from&&n<e.to);return{transcript:r,partial:i?S(i.line.text,(n-i.from)/(i.to-i.from)):``,partialStart:i?.line.startMs??0,state:t||e<l.finish?`recording`:e<l.summary?`stopped`:`done`,status:t||e<l.finish?`idle`:e<l.summary?`writing`:`done`,mine:u+(!t&&e>=l.type-1.1?`
- `+d.slice(0,h.filter(t=>t<=e).length):``),draft:t||e<l.summaryStart?``:g.slice(0,Math.floor(371*Math.min(1,(e-l.summaryStart)/(l.summary-l.summaryStart)))),tab:e<l.notes||e>=l.transcript?`note-transcript-toggle`:e<l.finish||t?`note-notes-tab`:`note-summary-tab`,askFocused:e>=l.askFocus&&e<l.send,question:e<l.question?``:_.slice(0,Math.ceil(22*Math.min(1,(e-l.question)/2))),answer:e<l.answer?``:S(v,(e-l.answer)/(l.answered-l.answer))}}var w=Date.now(),T=new Date(w).setHours(0,0,0,0),E={id:`sample-meeting`,title:`Launch planning`,startedAt:Math.max(w-72e4,T),endedAt:null,durationMs:72e4,state:`recording`,eventId:null,app:null,language:`english`,titleSource:`user`,attendees:[`Kara Moore`,`Ray Mones`,`Lincoln Park`,`Charlotte Goode`].map(e=>({name:e}))},D=[{id:`launch`,name:`Launch`,color:`violet`},{id:`hiring`,name:`Hiring`,color:`teal`},{id:`customer-calls`,name:`Customer calls`,color:`amber`}].map((e,t)=>({...e,icon:`folder`,createdAt:E.startedAt,position:t})),O={meetingId:E.id,mine:u,enhanced:null,edited:!1,status:`idle`,draft:``,peopleChanged:!1,saves:{mine:{revision:0,status:`saved`},enhanced:{revision:0,status:`saved`}}},k=[{n:1,meetingId:E.id,title:E.title,startedAt:E.startedAt,atMs:721500,excerpt:`Ray Mones: Support has the checklist. We can publish Tuesday.
-Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{speakers:[`Kara Moore`,`Ray Mones`,`Lincoln Park`],lines:[{track:`them`,speaker:`Ray Mones`,text:`Support has the checklist. We can publish Tuesday.`,startMs:721500},{track:`them`,speaker:`Lincoln Park`,text:`I’ll send the announcement on Wednesday morning.`,startMs:725200}]}}],A=[{kind:`meeting`,id:E.id,title:E.title,startedAt:E.startedAt}],j={id:`sample-conversation`,title:`Launch date`,chips:A,draft:``,draftChips:[],firstChips:null,turns:[],waitsForMeeting:!1,waitsForModel:!1},M=new URLSearchParams(location.search).get(`fragment`),N=()=>{},P=()=>N,F=e=>async()=>structuredClone(e),I=Object.fromEntries([`widget`,`level`,`segment`,`speakers`,`partial`,`reset`,`meeting`,`notes`,`chat`].map(e=>{let t=new Set;return[e,{on:e=>(t.add(e),()=>{t.delete(e)}),emit:e=>t.forEach(t=>t(structuredClone(e)))}]})),L=I.reset.on,R=new URLSearchParams(location.search).get(`still`),z=Number(R),B=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(z)?33:z)),ee=!1,te=C(B).transcript,ne=JSON.stringify(te),re=``,V=``,ie=0,ae,H,oe;O.mine=H=C(B).mine;var se=(e,t,n)=>(O.mine=t,O.saves.mine={revision:n,status:`saved`},structuredClone(O.saves.mine)),ce=()=>E.state===`recording`?{kind:`recording`,meetingId:E.id,title:E.title,elapsedMs:72e4+(B>=l.resume?0:B)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,setup:{state:F({}),onState:P},widget:{state:async()=>ce(),onState:I.widget.on,onLevel:I.level.on},meetings:{get:F(E),onChange:I.meeting.on,stop:async()=>{},resume:async()=>(document.documentElement.dataset.resumeClicked=`true`,{id:E.id})},notes:{get:F(O),onChange:I.notes.on,onFlushRequest:P,keptEdits:N,setMine:async(...e)=>se(...e),setEnhanced:F({revision:0,status:`failed`}),flushSync:(e,t,n,r)=>t===`mine`?se(e,n,r):{revision:r,status:`saved`}},transcript:{get:async()=>structuredClone(te),onSpeakers:I.speakers.on,onSegment:I.segment.on,onPartial:I.partial.on},conversations:{current:F(j.id),get:F(j),onChange:I.chat.on,targets:F(A),warm:N,draft:async(e,t)=>{j.draft=t},ask:async(e,t)=>(t===`When are we launching?`&&(document.documentElement.dataset.questionSent=`true`),j.draft=``,j.id),stop:async()=>{}},settings:{get:F({theme:`dark`,locale:`en`,systemLocale:`en`,language:``,spoken:`en`,myName:`You`,macName:`You`,recordingReminder:!1}),onLanguage:P},audio:{tracks:F([]),mics:F({devices:[],choice:null,using:`Mac microphone`,defaultName:`Mac microphone`}),onMics:P},folders:{suggestion:F(null),of:F([D[0]]),list:F(D),onChange:P},onboarding:{nudge:F([])},nav:{go:N,takeAsk:F(!1),onAsk:P},share:{copy:F(`failed`),save:F(`cancelled`)}},HTMLElement.prototype.focus=N,R!==null&&(document.documentElement.dataset.still=``);var le=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>le(()=>{ee&&R===null&&e(...n)},t);var ue=e=>document.querySelector(`[data-testid="${e}"]`),de=(e,t=!0)=>e?.dispatchEvent(new MouseEvent(`click`,{bubbles:!0,cancelable:!0,detail:+!!t}));function fe(e){let t=ue(`note-mine`)?.editor;if(t&&(oe!==t||H!==e.mine)){oe=t,H=e.mine,t.commands.setContent({type:`doc`,content:[{type:`bulletList`,content:e.mine.split(`
-`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:e.slice(2)?[{type:`text`,text:e.slice(2)}]:[]}]}))}]});let n=0;t.state.doc.descendants((e,t)=>{e.isTextblock&&(n=t+1+e.content.size)}),t.commands.setTextSelection(n)}}function pe(e){document.activeElement?.blur();let t=ue(e.tab);(R!==null||e.tab!==`note-summary-tab`)&&t&&t!==ae&&(ae=t,t.getAttribute(`aria-selected`)!==`true`&&de(t,B>=l.notes)),B>=l.ask&&B<l.close&&ue(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&de(ue(`chat-open`)),B>=l.close&&ue(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(de(ue(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),B>=l.resume&&!document.documentElement.dataset.resumeClicked&&de(ue(`note-resume`)),fe(e),document.documentElement.dataset.typing=String(B>=l.type&&B<l.typed);let n=ue(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&de(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&B<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),B>=l.send&&B<l.close&&!document.documentElement.dataset.questionSent&&(n&&n.value!==`When are we launching?`?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,_),n.dispatchEvent(new Event(`input`,{bubbles:!0}))):ue(`chat-send`)&&!ue(`chat-send`).disabled&&ue(`chat-box`)?.dispatchEvent(new Event(`submit`,{bubbles:!0,cancelable:!0})))}var me=[{id:`note-notes-tab`,start:l.notes-1.2,at:l.notes},{id:`note-stop`,start:l.finish-1.3,at:l.finish},{id:`chat-open`,start:l.ask-1.3,at:l.ask},{id:`chat-input`,start:l.ask+.2,at:l.askFocus},{id:`chat-send`,start:l.send-1.1,at:l.send},{id:`chat-close`,start:l.close-1.1,at:l.close},{id:`note-resume`,start:l.resume-1.1,at:l.resume},{id:`note-transcript-toggle`,start:l.transcript-1.1,at:l.transcript},{id:`home`,start:l.transcript+.2,at:39}],he,ge,_e=0;function ve(e=B){let t=document.querySelector(`.marketing-cursor`);if(!t)return;let n={x:(window.innerWidth||1e3)*.75-4,y:(window.innerHeight||608)*.82-3};!ge&&!he&&(t.style.transform=`translate(${n.x}px,${n.y}px)`);let r=me.findLast(t=>e>=t.start);if(t.style.opacity=r&&e<r.at+(r.id===`note-notes-tab`?.2:.35)&&(R===null||r.id!==`home`)?`1`:`0`,r?.id===`chat-input`&&(t.style.opacity=String(Math.max(0,Math.min(1,1-(e-r.at-.15)/.2)))),t.dataset.clicking=String(!!r&&r.id!==`home`&&e>=r.at&&e<r.at+.15),r){if(r!==he){let{x:i,y:a}=n;if(r.id!==`home`){let e=ue(r.id);if(!e)return;let t=e.getBoundingClientRect();if(!t.width||!t.height)return;i=t.x+t.width*.6-4,a=t.y+t.height*.6-3}let o=t.getBoundingClientRect();if(r.id===`note-stop`){let e=ue(`note-mine`)?.editor;if(!e)return;let t=e.view.coordsAtPos(e.state.selection.to);if(t.bottom<=t.top)return;o={x:t.left+10,y:t.bottom+8}}let s=r.id===`chat-input`?(r.at-r.start-.1)*1e3:Math.max(240,Math.hypot(i-o.x,a-o.y)/.6);ge?.cancel(),ge=t.animate([{transform:`translate(${o.x}px,${o.y}px)`},{transform:`translate(${i}px,${a}px)`}],{duration:s,easing:`cubic-bezier(.45,0,.25,1)`,fill:`both`}),ge.pause(),he=r,_e=R===null?Math.max(r.start,e-1/60):r.start}ge.currentTime=Math.max(0,(e-_e)*1e3)}}function ye(e,t=[.4,.65,.5]){let n=e<B;B=e;let r=C(B);fe(r),ve(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),B>=l.finish&&B<l.resume&&E.state===`recording`&&de(ue(`note-stop`)),E.state!==r.state&&(E.state=r.state,E.endedAt=r.state===`recording`?null:E.startedAt+72e4+l.finish*1e3,I.meeting.emit()),te=r.transcript,JSON.stringify(te)!==ne&&(ne=JSON.stringify(te),te.filter(e=>!e.hidden).forEach(e=>I.segment.emit(e)),I.speakers.emit(E.id));let i=r.partial.split(` `).filter(Boolean).map((e,t)=>({text:e,startMs:r.partialStart+t*200,endMs:r.partialStart+t*200+150}));I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),Object.assign(O,{status:r.status,enhanced:r.status===`done`?g:null,draft:r.draft}),JSON.stringify(O)!==re&&(re=JSON.stringify(O),I.notes.emit(O)),j.turns=B<l.send||B>=l.resume?[]:[{id:1,question:_,answer:r.answer+(B>=l.answered?`[1]`:``),status:B<l.answered?`answering`:`done`,step:B<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==V&&(V=JSON.stringify(j),I.chat.emit(j)),B<1.5&&R===null&&(t=[.45+.2*Math.sin(B*9),.55+.18*Math.sin(B*13)]);let a=Array.isArray(t)?Math.max(0,...t.slice(0,3).map(e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0)):0,o={me:E.state===`recording`?a:0,them:E.state===`recording`?a:0};I.level.emit(o),I.widget.emit(ce()),n&&!ue(`note-transcript-toggle`)&&I.reset.emit(),pe(r),cancelAnimationFrame(ie);let s=6,c=()=>{pe(C(B)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(ie=requestAnimationFrame(c))};ie=requestAnimationFrame(c)}function be(){let e=()=>{ue(`note-transcript-toggle`)&&(B===0&&(pe(C(B)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),ye(B),requestAnimationFrame(()=>requestAnimationFrame(()=>{document.documentElement.dataset.ready=`true`,window.parent.postMessage({type:`yogurt-hero-ready`,duration:39},location.origin)}))))},t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),e(),()=>t.disconnect()}window.addEventListener(`message`,e=>{M||e.source!==window.parent||e.origin!==location.origin||(e.data?.type===`yogurt-hero-cursor`&&Number.isFinite(e.data.seconds)&&ve(Math.max(0,Math.min(39,e.data.seconds))),e.data?.type===`yogurt-hero-time`&&Number.isFinite(e.data.seconds)&&ye(Math.max(0,Math.min(39,e.data.seconds)),e.data.bands),e.data?.type===`yogurt-hero-playing`&&typeof e.data.playing==`boolean`&&(ee=e.data.playing,document.documentElement.dataset.playing=String(ee)))});function xe(e){j.turns=e?[{id:1,...e,sources:k}]:[],j.firstChips=A,I.chat.emit(j)}function Se(e,t){te=e;for(let t of e)I.segment.emit(t);I.speakers.emit(E.id),I.partial.emit({meetingId:E.id,...t})}var Ce=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var B={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=B,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),we=o(((e,t)=>{t.exports=Ce()})),Te=o((e=>{var t=we();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),Ee=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Te()})),U=c(we(),1),De=c(Ee()),Oe=/^(#{1,3})\s+(.*)$/,ke=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,Ae=`\\*_[]<#-+.)`;function je(e,t,n){for(let r=e.indexOf(t,n);r!==-1;r=e.indexOf(t,r+1)){let t=0;for(let n=r-1;n>=0&&e[n]===`\\`;n--)t++;if(t%2==0)return r}return-1}function Me(e,t,n){if(t[0]!==`*`)return je(e,t,n);let r=!1;for(let i=je(e,`*`,n);i!==-1;i=je(e,`*`,i)){let n=i+1;for(;e[n]===`*`;)n++;let a=n-i;if(a>=t.length&&(t.length===2||a!==2)){let e=r?t.length===2?1:2:0;if(a>=t.length+e)return i+e}r=!r,i=n}return-1}var Ne=(e,t)=>e.type===t.type&&(e.type!==`link`||t.type===`link`&&e.attrs.href===t.attrs.href),Pe=/<\/?(m(i(n(e)?)?)?)?$/;function Fe(e,t,n=[]){t.streaming&&(e=e.replace(Pe,``));let r=[],i=``,a=()=>{if(!i)return;let e=r.at(-1);e&&e.text!==void 0&&JSON.stringify(e.marks??[])===JSON.stringify(n)?e.text+=i:r.push(n.length?{type:`text`,text:i,marks:n}:{type:`text`,text:i}),i=``},o=(e,i)=>{a();for(let a of Fe(e,{...t,streaming:!1},[...n,i]))Ie(r,a)},s=(e,i)=>{a();for(let a of Fe(e,t,[...n,i]))Ie(r,a)},c=0;for(;c<e.length;){let l=e.slice(c),u=c>0?e[c-1]:` `;if(l[0]===`\\`&&l.length>1&&Ae.includes(l[1])){i+=l[1],c+=2;continue}if(t.inlineCode&&l[0]==="`"){let e=/^`+/.exec(l)[0],i=l.slice(e.length),o=RegExp("(?<!`)"+e+"(?!`)").exec(i);if(o||t.streaming){let t=i.slice(0,o?.index).replace(/\n/g,` `);/^ .* $/.test(t)&&/\S/.test(t)&&(t=t.slice(1,-1)),a(),r.push({type:`text`,text:t,marks:[...n,{type:`code`}]}),c+=e.length+(o?o.index+e.length:i.length);continue}}if(l.startsWith(`<mine>`)){let t=je(e,`</mine>`,c+6);if(t!==-1){o(e.slice(c+6,t),{type:`mine`}),c=t+7;continue}return s(e.slice(c+6),{type:`mine`}),r}if(l.startsWith(`</mine>`)){c+=7;continue}let d=l.startsWith(`***`)?je(e,`*`,c+3):-1,f=d!==-1&&e.slice(d,d+2)===`**`&&e[d+2]!==`*`;if(l.startsWith(`**`)&&!f||l.startsWith(`__`)&&!/\w/.test(u)){let n=l.slice(0,2),i=Me(e,n,c+2);if(i>c+2){o(e.slice(c+2,i),{type:`bold`}),c=i+2;continue}if(t.streaming&&i===-1)return s(e.slice(c+2),{type:`bold`}),r}if(l[0]===`*`&&l[1]!==` `&&(l[1]!==`*`||f)||l[0]===`_`&&!/\w/.test(u)&&l[1]!==`_`){let n=l[0],i=Me(e,n,c+1);for(;n===`_`&&i!==-1&&/\w/.test(e[i+1]??``);)i=je(e,n,i+1);if(i>c+1&&e[i-1]!==` `){o(e.slice(c+1,i),{type:`italic`}),c=i+1;continue}if(t.streaming&&i===-1&&l.length>1)return s(e.slice(c+1),{type:`italic`}),r}if(l[0]===`[`){let e=/^\[((?:\\.|[^\]\\])+)\]\(([^)\s]+)\)/.exec(l);if(e){o(e[1],{type:`link`,attrs:{href:e[2]}}),c+=e[0].length;continue}if(t.streaming&&/^\[[^\]]*(\]\([^)]*)?$/.test(l)){i+=l.slice(1).replace(/\]\(.*$/,``);break}}i+=e[c],c++}return a(),r}function Ie(e,t){let n=e.at(-1);n&&n.text!==void 0&&t.text!==void 0&&JSON.stringify(n.marks??[])===JSON.stringify(t.marks??[])?n.text+=t.text:e.push(t)}var Le=(e,t)=>{let n=Fe(e,t);return n.length?{type:`paragraph`,content:n}:{type:`paragraph`}};function Re(e,t={}){t.streaming&&(e=e.trimEnd().replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)]|#{1,6})$/,``).trimEnd());let n=[],r=[];for(let i of e.replace(/\r\n?/g,`
+Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{speakers:[`Kara Moore`,`Ray Mones`,`Lincoln Park`],lines:[{track:`them`,speaker:`Ray Mones`,text:`Support has the checklist. We can publish Tuesday.`,startMs:721500},{track:`them`,speaker:`Lincoln Park`,text:`I’ll send the announcement on Wednesday morning.`,startMs:725200}]}}],A=[{kind:`meeting`,id:E.id,title:E.title,startedAt:E.startedAt}],j={id:`sample-conversation`,title:`Launch date`,chips:A,draft:``,draftChips:[],firstChips:null,turns:[],waitsForMeeting:!1,waitsForModel:!1},M=new URLSearchParams(location.search).get(`fragment`),N=()=>{},P=()=>N,F=e=>async()=>structuredClone(e),I=Object.fromEntries([`widget`,`level`,`segment`,`speakers`,`partial`,`reset`,`meeting`,`notes`,`chat`].map(e=>{let t=new Set;return[e,{on:e=>(t.add(e),()=>{t.delete(e)}),emit:e=>t.forEach(t=>t(structuredClone(e)))}]})),L=I.reset.on,R=new URLSearchParams(location.search).get(`still`),z=Number(R),B=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(z)?33:z)),ee=!1,te=C(B).transcript,ne=JSON.stringify(te),re=``,V=``,H=0,ie,U,ae;O.mine=U=C(B).mine;var oe=(e,t,n)=>(O.mine=t,O.saves.mine={revision:n,status:`saved`},structuredClone(O.saves.mine)),se=()=>E.state===`recording`?{kind:`recording`,meetingId:E.id,title:E.title,elapsedMs:72e4+(B>=l.resume?0:B)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,setup:{state:F({}),onState:P},widget:{state:async()=>se(),onState:I.widget.on,onLevel:I.level.on},meetings:{get:F(E),onChange:I.meeting.on,stop:async()=>{},resume:async()=>(document.documentElement.dataset.resumeClicked=`true`,{id:E.id})},notes:{get:F(O),onChange:I.notes.on,onFlushRequest:P,keptEdits:N,setMine:async(...e)=>oe(...e),setEnhanced:F({revision:0,status:`failed`}),flushSync:(e,t,n,r)=>t===`mine`?oe(e,n,r):{revision:r,status:`saved`}},transcript:{get:async()=>structuredClone(te),onSpeakers:I.speakers.on,onSegment:I.segment.on,onPartial:I.partial.on},conversations:{current:F(j.id),get:F(j),onChange:I.chat.on,targets:F(A),warm:N,draft:async(e,t)=>{j.draft=t},ask:async(e,t)=>(t===`When are we launching?`&&(document.documentElement.dataset.questionSent=`true`),j.draft=``,j.id),stop:async()=>{}},settings:{get:F({theme:`dark`,locale:`en`,systemLocale:`en`,language:``,spoken:`en`,myName:`You`,macName:`You`,recordingReminder:!1}),onLanguage:P},audio:{tracks:F([]),onDeleted:P,mics:F({devices:[],choice:null,using:`Mac microphone`,defaultName:`Mac microphone`}),onMics:P},folders:{suggestion:F(null),of:F([D[0]]),list:F(D),onChange:P},onboarding:{nudge:F([])},nav:{go:N,takeAsk:F(!1),onAsk:P},share:{copy:F(`failed`),save:F(`cancelled`)}},HTMLElement.prototype.focus=N,R!==null&&(document.documentElement.dataset.still=``);var ce=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>ce(()=>{ee&&R===null&&e(...n)},t);var le=e=>document.querySelector(`[data-testid="${e}"]`),ue=(e,t=!0)=>e?.dispatchEvent(new MouseEvent(`click`,{bubbles:!0,cancelable:!0,detail:+!!t}));function de(e){let t=le(`note-mine`)?.editor;if(t&&(ae!==t||U!==e.mine)){ae=t,U=e.mine,t.commands.setContent({type:`doc`,content:[{type:`bulletList`,content:e.mine.split(`
+`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:e.slice(2)?[{type:`text`,text:e.slice(2)}]:[]}]}))}]});let n=0;t.state.doc.descendants((e,t)=>{e.isTextblock&&(n=t+1+e.content.size)}),t.commands.setTextSelection(n)}}function fe(e){document.activeElement?.blur();let t=le(e.tab);(R!==null||e.tab!==`note-summary-tab`)&&t&&t!==ie&&(ie=t,t.getAttribute(`aria-selected`)!==`true`&&ue(t,B>=l.notes)),B>=l.ask&&B<l.close&&le(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&ue(le(`chat-open`)),B>=l.close&&le(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(ue(le(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),B>=l.resume&&!document.documentElement.dataset.resumeClicked&&ue(le(`note-resume`)),de(e),document.documentElement.dataset.typing=String(B>=l.type&&B<l.typed);let n=le(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&ue(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&B<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),B>=l.send&&B<l.close&&!document.documentElement.dataset.questionSent&&(n&&n.value!==`When are we launching?`?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,_),n.dispatchEvent(new Event(`input`,{bubbles:!0}))):le(`chat-send`)&&!le(`chat-send`).disabled&&le(`chat-box`)?.dispatchEvent(new Event(`submit`,{bubbles:!0,cancelable:!0})))}var pe=[{id:`note-notes-tab`,start:l.notes-1.2,at:l.notes},{id:`note-stop`,start:l.finish-1.3,at:l.finish},{id:`chat-open`,start:l.ask-1.3,at:l.ask},{id:`chat-input`,start:l.ask+.2,at:l.askFocus},{id:`chat-send`,start:l.send-1.1,at:l.send},{id:`chat-close`,start:l.close-1.1,at:l.close},{id:`note-resume`,start:l.resume-1.1,at:l.resume},{id:`note-transcript-toggle`,start:l.transcript-1.1,at:l.transcript},{id:`home`,start:l.transcript+.2,at:39}],me,he,ge=0;function _e(e=B){let t=document.querySelector(`.marketing-cursor`);if(!t)return;let n={x:(window.innerWidth||1e3)*.75-4,y:(window.innerHeight||608)*.82-3};!he&&!me&&(t.style.transform=`translate(${n.x}px,${n.y}px)`);let r=pe.findLast(t=>e>=t.start);if(t.style.opacity=r&&e<r.at+(r.id===`note-notes-tab`?.2:.35)&&(R===null||r.id!==`home`)?`1`:`0`,r?.id===`chat-input`&&(t.style.opacity=String(Math.max(0,Math.min(1,1-(e-r.at-.15)/.2)))),t.dataset.clicking=String(!!r&&r.id!==`home`&&e>=r.at&&e<r.at+.15),r){if(r!==me){let{x:i,y:a}=n;if(r.id!==`home`){let e=le(r.id);if(!e)return;let t=e.getBoundingClientRect();if(!t.width||!t.height)return;i=t.x+t.width*.6-4,a=t.y+t.height*.6-3}let o=t.getBoundingClientRect();if(r.id===`note-stop`){let e=le(`note-mine`)?.editor;if(!e)return;let t=e.view.coordsAtPos(e.state.selection.to);if(t.bottom<=t.top)return;o={x:t.left+10,y:t.bottom+8}}let s=r.id===`chat-input`?(r.at-r.start-.1)*1e3:Math.max(240,Math.hypot(i-o.x,a-o.y)/.6);he?.cancel(),he=t.animate([{transform:`translate(${o.x}px,${o.y}px)`},{transform:`translate(${i}px,${a}px)`}],{duration:s,easing:`cubic-bezier(.45,0,.25,1)`,fill:`both`}),he.pause(),me=r,ge=R===null?Math.max(r.start,e-1/60):r.start}he.currentTime=Math.max(0,(e-ge)*1e3)}}function ve(e,t=[.4,.65,.5]){let n=e<B;B=e;let r=C(B);de(r),_e(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),B>=l.finish&&B<l.resume&&E.state===`recording`&&ue(le(`note-stop`)),E.state!==r.state&&(E.state=r.state,E.endedAt=r.state===`recording`?null:E.startedAt+72e4+l.finish*1e3,I.meeting.emit()),te=r.transcript,JSON.stringify(te)!==ne&&(ne=JSON.stringify(te),te.filter(e=>!e.hidden).forEach(e=>I.segment.emit(e)),I.speakers.emit(E.id));let i=r.partial.split(` `).filter(Boolean).map((e,t)=>({text:e,startMs:r.partialStart+t*200,endMs:r.partialStart+t*200+150}));I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),Object.assign(O,{status:r.status,enhanced:r.status===`done`?g:null,draft:r.draft}),JSON.stringify(O)!==re&&(re=JSON.stringify(O),I.notes.emit(O)),j.turns=B<l.send||B>=l.resume?[]:[{id:1,question:_,answer:r.answer+(B>=l.answered?`[1]`:``),status:B<l.answered?`answering`:`done`,step:B<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==V&&(V=JSON.stringify(j),I.chat.emit(j)),B<1.5&&R===null&&(t=[.45+.2*Math.sin(B*9),.55+.18*Math.sin(B*13)]);let a=Array.isArray(t)?Math.max(0,...t.slice(0,3).map(e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0)):0,o={me:E.state===`recording`?a:0,them:E.state===`recording`?a:0};I.level.emit(o),I.widget.emit(se()),n&&!le(`note-transcript-toggle`)&&I.reset.emit(),fe(r),cancelAnimationFrame(H);let s=6,c=()=>{fe(C(B)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(H=requestAnimationFrame(c))};H=requestAnimationFrame(c)}function ye(){let e=()=>{le(`note-transcript-toggle`)&&(B===0&&(fe(C(B)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),ve(B),requestAnimationFrame(()=>requestAnimationFrame(()=>{document.documentElement.dataset.ready=`true`,window.parent.postMessage({type:`yogurt-hero-ready`,duration:39},location.origin)}))))},t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),e(),()=>t.disconnect()}window.addEventListener(`message`,e=>{M||e.source!==window.parent||e.origin!==location.origin||(e.data?.type===`yogurt-hero-cursor`&&Number.isFinite(e.data.seconds)&&_e(Math.max(0,Math.min(39,e.data.seconds))),e.data?.type===`yogurt-hero-time`&&Number.isFinite(e.data.seconds)&&ve(Math.max(0,Math.min(39,e.data.seconds)),e.data.bands),e.data?.type===`yogurt-hero-playing`&&typeof e.data.playing==`boolean`&&(ee=e.data.playing,document.documentElement.dataset.playing=String(ee)))});function be(e){j.turns=e?[{id:1,...e,sources:k}]:[],j.firstChips=A,I.chat.emit(j)}function xe(e,t){te=e;for(let t of e)I.segment.emit(t);I.speakers.emit(E.id),I.partial.emit({meetingId:E.id,...t})}var Se=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function z(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(z.bind(null,e))}var B={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=B,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=z,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Ce=o(((e,t)=>{t.exports=Se()})),we=o((e=>{var t=Ce();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),Te=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=we()})),W=c(Ce()),Ee=c(Te()),De=/^(#{1,3})\s+(.*)$/,Oe=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,ke=`\\*_[]<#-+.)`;function Ae(e,t,n){for(let r=e.indexOf(t,n);r!==-1;r=e.indexOf(t,r+1)){let t=0;for(let n=r-1;n>=0&&e[n]===`\\`;n--)t++;if(t%2==0)return r}return-1}function je(e,t,n){if(t[0]!==`*`)return Ae(e,t,n);let r=!1;for(let i=Ae(e,`*`,n);i!==-1;i=Ae(e,`*`,i)){let n=i+1;for(;e[n]===`*`;)n++;let a=n-i;if(a>=t.length&&(t.length===2||a!==2)){let e=r?t.length===2?1:2:0;if(a>=t.length+e)return i+e}r=!r,i=n}return-1}var Me=(e,t)=>e.type===t.type&&(e.type!==`link`||t.type===`link`&&e.attrs.href===t.attrs.href),Ne=/<\/?(m(i(n(e)?)?)?)?$/;function Pe(e,t,n=[]){t.streaming&&(e=e.replace(Ne,``));let r=[],i=``,a=()=>{if(!i)return;let e=r.at(-1);e&&e.text!==void 0&&JSON.stringify(e.marks??[])===JSON.stringify(n)?e.text+=i:r.push(n.length?{type:`text`,text:i,marks:n}:{type:`text`,text:i}),i=``},o=(e,i)=>{a();for(let a of Pe(e,{...t,streaming:!1},[...n,i]))Fe(r,a)},s=(e,i)=>{a();for(let a of Pe(e,t,[...n,i]))Fe(r,a)},c=0;for(;c<e.length;){let l=e.slice(c),u=c>0?e[c-1]:` `;if(l[0]===`\\`&&l.length>1&&ke.includes(l[1])){i+=l[1],c+=2;continue}if(t.inlineCode&&l[0]==="`"){let e=/^`+/.exec(l)[0],i=l.slice(e.length),o=RegExp("(?<!`)"+e+"(?!`)").exec(i);if(o||t.streaming){let t=i.slice(0,o?.index).replace(/\n/g,` `);/^ .* $/.test(t)&&/\S/.test(t)&&(t=t.slice(1,-1)),a(),r.push({type:`text`,text:t,marks:[...n,{type:`code`}]}),c+=e.length+(o?o.index+e.length:i.length);continue}}if(l.startsWith(`<mine>`)){let t=Ae(e,`</mine>`,c+6);if(t!==-1){o(e.slice(c+6,t),{type:`mine`}),c=t+7;continue}return s(e.slice(c+6),{type:`mine`}),r}if(l.startsWith(`</mine>`)){c+=7;continue}let d=l.startsWith(`***`)?Ae(e,`*`,c+3):-1,f=d!==-1&&e.slice(d,d+2)===`**`&&e[d+2]!==`*`;if(l.startsWith(`**`)&&!f||l.startsWith(`__`)&&!/\w/.test(u)){let n=l.slice(0,2),i=je(e,n,c+2);if(i>c+2){o(e.slice(c+2,i),{type:`bold`}),c=i+2;continue}if(t.streaming&&i===-1)return s(e.slice(c+2),{type:`bold`}),r}if(l[0]===`*`&&l[1]!==` `&&(l[1]!==`*`||f)||l[0]===`_`&&!/\w/.test(u)&&l[1]!==`_`){let n=l[0],i=je(e,n,c+1);for(;n===`_`&&i!==-1&&/\w/.test(e[i+1]??``);)i=Ae(e,n,i+1);if(i>c+1&&e[i-1]!==` `){o(e.slice(c+1,i),{type:`italic`}),c=i+1;continue}if(t.streaming&&i===-1&&l.length>1)return s(e.slice(c+1),{type:`italic`}),r}if(l[0]===`[`){let e=/^\[((?:\\.|[^\]\\])+)\]\(([^)\s]+)\)/.exec(l);if(e){o(e[1],{type:`link`,attrs:{href:e[2]}}),c+=e[0].length;continue}if(t.streaming&&/^\[[^\]]*(\]\([^)]*)?$/.test(l)){i+=l.slice(1).replace(/\]\(.*$/,``);break}}i+=e[c],c++}return a(),r}function Fe(e,t){let n=e.at(-1);n&&n.text!==void 0&&t.text!==void 0&&JSON.stringify(n.marks??[])===JSON.stringify(t.marks??[])?n.text+=t.text:e.push(t)}var Ie=(e,t)=>{let n=Pe(e,t);return n.length?{type:`paragraph`,content:n}:{type:`paragraph`}};function Le(e,t={}){t.streaming&&(e=e.trimEnd().replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)]|#{1,6})$/,``).trimEnd());let n=[],r=[];for(let i of e.replace(/\r\n?/g,`
`).split(`
-`)){let e=i.replace(/\s+$/,``);if(!e.trim()){r=[],n.push({type:`paragraph`});continue}let a=ke.exec(e);if(a){let e=a[1].replace(/\t/g,` `).length,i=/\d/.test(a[2])?`orderedList`:`bulletList`;for(;r.length&&r.at(-1).indent>e;)r.pop();let o=r.at(-1);o&&o.indent===e&&o.list.type!==i&&(r.pop(),o=r.at(-1));let s={type:`listItem`,content:[Le(a[3],t)]};if(o&&o.indent===e)o.list.content.push(s);else{let t=i===`orderedList`?{type:i,attrs:{start:Number(a[2].replace(/\D/g,``))||1},content:[s]}:{type:i,content:[s]};o?o.list.content.at(-1).content.push(t):n.push(t),r.push({indent:e,list:t})}continue}r=[];let o=Oe.exec(e.trim());if(o){let e=Fe(o[2],t);n.push(e.length?{type:`heading`,attrs:{level:o[1].length},content:e}:{type:`heading`,attrs:{level:o[1].length}})}else n.push(Le(i,t))}return t.streaming&&Be(n),{type:`doc`,content:n.length?n:[{type:`paragraph`}]}}var ze=e=>!!e.text?.trim()||!!e.content?.some(ze);function Be(e){for(;e.length&&!ze(e.at(-1));)e.pop();let t=e.at(-1);t?.content&&/List$|^listItem$/.test(t.type)&&Be(t.content)}var Ve={link:()=>`[`,mine:()=>`<mine>`,bold:()=>`**`,italic:()=>`*`},He={link:e=>`](${e.type===`link`?e.attrs.href:``})`,mine:()=>`</mine>`,bold:()=>`**`,italic:()=>`*`},Ue=[`mine`,`link`,`bold`,`italic`],We=e=>e.replace(/[\\*_[\]]/g,`\\$&`).replace(/<(?=\/?mine>)/g,`\\<`),Ge=e=>e.replace(/^(\s*)([#+-])/,`$1\\$2`).replace(/^(\s*\d+)([.)])(?=\s)/,`$1\\$2`);function Ke(e=[]){let t=``,n=[];for(let[r,i]of e.entries()){if(i.type===`hardBreak`){t+=` `;continue}let a=t=>{let n=r+1;for(;n<e.length&&e[n].marks?.some(e=>Ne(e,t));)n++;return n},o=(i.marks??[]).filter(e=>e.type!==`code`).sort((e,t)=>[`bold`,`italic`].includes(e.type)&&[`bold`,`italic`].includes(t.type)&&a(t)-a(e)||Ue.indexOf(e.type)-Ue.indexOf(t.type)),s=0;for(;s<n.length&&s<o.length&&Ne(n[s],o[s]);)s++;for(let e=n.length-1;e>=s;e--)t+=He[n[e].type](n[e]);for(let e=s;e<o.length;e++)t+=Ve[o[e].type](o[e]);n=o;let c=i.text??``;if(i.marks?.some(e=>e.type===`code`)){let e="`".repeat(Math.max(0,...[...c.matchAll(/`+/g)].map(e=>e[0].length))+1),n=/^[` ]|[` ]$/.test(c)?` `:``;t+=`${e}${n}${c}${n}${e}`}else t+=We(c)}for(let e=n.length-1;e>=0;e--)t+=He[n[e].type](n[e]);return t}function qe(e,t,n){let r=Number(e.attrs?.start??1);for(let i of e.content??[]){let a=e.type===`orderedList`?`${r++}. `:`- `,[o,...s]=i.content??[];n.push(`${t}${a}${o?.type===`paragraph`?Ke(o.content):``}`);let c=t+` `.repeat(a.length);for(let e of o?.type===`paragraph`?s:i.content??[])e.type===`bulletList`||e.type===`orderedList`?qe(e,c,n):e.type===`paragraph`&&n.push(`${c}${Ge(Ke(e.content))}`)}}function Je(e){let t=[];for(let n of e.content??[])n.type===`heading`?t.push(`${`#`.repeat(Number(n.attrs?.level??2))} ${Ke(n.content)}`):n.type===`bulletList`||n.type===`orderedList`?qe(n,``,t):n.type===`paragraph`&&t.push(Ge(Ke(n.content)));return t.join(`
-`)}var Ye=/\[(\d+(?:\s*,\s*\d+)*)\]/g,Xe=/\[\d+(?:\s*,\s*\d+)*\](?:\s*\[\d+(?:\s*,\s*\d+)*\])*/g,Ze=4,Qe=e=>[...e.matchAll(Ye)].flatMap(e=>e[1].split(`,`).map(e=>Number(e.trim())));function $e(e,t){let n=new Map(t.map(e=>[e.n,e.meetingId])),r=new Set(n.values()).size;return e.replace(Xe,e=>{let t=new Set,i=Qe(e).filter(e=>{let r=n.get(e);return r===void 0||t.has(r)?!1:(t.add(r),!0)});return r>=Ze&&t.size>r/2?``:i.length?`[${i.join(`, `)}]`:``}).replace(/ +([.,;:!?])/g,`$1`).replace(/ +$/gm,``).replace(/ {2,}/g,` `)}var et=/[.!?…](?=$|[\s"'”’)\]]|\p{Lu})/u,tt=/^[ \t]*([.!?…"'”’)\]]+)/u;function nt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`citation`){i.text&&n.push(i);continue}for(;n.at(-1)?.type===`text`;){let e=n.at(-1);if(e.text=e.text.trimEnd(),e.text)break;n.pop()}let a=n.map(e=>e.text??``).join(``),o=e.slice(r+1).map(e=>e.text??``).join(``),s=/[.!?…]["'”’)\]]*$/.test(a),c=tt.exec(o),l=c?o.slice(c[0].length):o;if(c&&(s||et.test(c[1]+l)&&/[.!?…]/.test(c[1])||!t&&!l.trim())){let t=c[0].length,i=t-c[1].length;for(let a=r+1;t&&e[a]?.type===`text`;a++){let r=e[a],o=Math.min(t,r.text.length),s=r.text.slice(Math.min(i,o),o);s&&n.push({...r,text:s}),r.text=r.text.slice(o),i=Math.max(0,i-o),t-=o}}(!t||s||et.test(o)||/^\s+["“(]*\p{Lu}/u.test(o))&&(i.attrs.gap=/[\p{L}\p{N}\p{M}]$/u.test(n.at(-1)?.text??``),n.push(i))}let r=st(n.map(e=>e.text??``).join(``)),i=0;for(let e of n)e.type===`citation`&&(e.attrs.sentence=r.find(e=>i>e.index&&i<=e.end)?.text??``),i+=e.text?.length??0;let a=[];for(let e of n){if(e.type!==`citation`){a.push(e);continue}let t=[e];for(;a.at(-1)?.type===`text`;){let e=a.at(-1),n=/\S+$/.exec(e.text??``);if(!n)break;if(a.pop(),t.unshift({...e,text:n[0]}),n.index){a.push({...e,text:e.text.slice(0,n.index)});break}}a.push(t.length>1?{type:`citationAnchor`,content:t}:e)}return a}function rt(e,t,n=!1){let r=Re($e(n?e.replace(/\[[\d,\s]*$/,``):e,t).replace(/\n{2,}/g,`
-`),{streaming:n}),i=new Map(t.map(e=>[e.n,e.meetingId])),a=new Map,o=e=>e.content?.length&&e.type!==`paragraph`&&e.type!==`heading`?o(e.content.at(-1)):e,s=n?o(r):null,c=e=>{if(e.type!==`text`){if(!e.content)return[e];let t=e.content.flatMap(c);return[{...e,content:e.type===`paragraph`||e.type===`heading`?nt(t,e===s):t}]}let t=e.text??``,n=[],r=0;for(let o of t.matchAll(Ye)){o.index>r&&n.push({...e,text:t.slice(r,o.index)});let s=[];for(let e of o[1].split(`,`).map(Number)){let t=i.get(e);t!==void 0&&(a.has(t)||a.set(t,a.size+1),s.push({source:e,number:a.get(t)}))}s.length&&n.push({type:`citation`,attrs:{marks:s,length:o[0].length}}),r=o.index+o[0].length}return r<t.length&&n.push({...e,text:t.slice(r)}),n};return c(r)[0]}function it(e){let t=Re(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}),n=e=>e.type===`paragraph`||e.type===`heading`?[e.content??[]]:(e.content??[]).flatMap(n);return n(t)}var at=e=>it(e).map(e=>e.map(e=>e.text??``).join(``)).join(`
-`),ot=new Intl.Segmenter(void 0,{granularity:`sentence`});function st(e){let t=0;return e.split(`
-`).flatMap(e=>{let n=t;return t+=e.length+1,[...ot.segment(e)].filter(e=>e.segment.trim()).map(e=>({text:e.segment.trim(),index:n+e.index,end:n+e.index+e.segment.length}))})}var ct=new Set(`a an and are as at be been but by can did do for from had has have he her his how i in is it its me my of on or our she so that the their them there these they this to was we were what when which who will with would you your`.split(` `)),lt=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!ct.has(e)));function ut(e,t){let n=st(at(e)).map(e=>e.text),r=lt(t),i=0,a=-1;return n.forEach((e,t)=>{let n=[...lt(e)].filter(e=>r.has(e)).length;n>a&&(i=t,a=n)}),{before:n[i-1]??``,match:n[i]??``,after:n[i+1]??``}}var dt=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function ft(e,t,n=0){let r=dt(t);if(!r)return-1;let i=e.map(e=>dt(at(e))),a=e=>e.sort((e,t)=>Math.abs(e-n)-Math.abs(t-n))[0]??-1,o=a(i.flatMap((e,t)=>e.includes(r)?[t]:[]));if(o>=0)return o;let s=dt(t.replace(/^[^:\n]{1,80}:\s*/,``)),c=i.join(` `).indexOf(s);if(s&&c>=0){let e=0;return i.findIndex(t=>(e+=t.length+1,e>c))}return a(i.flatMap((e,t)=>e&&r.includes(e)?[t]:[]))}var pt={"{count} min":{one:`{count} min`,other:`{count} min`},"Starts in {count} min":{one:`Starts in {count} min`,other:`Starts in {count} min`},"Exported {count} meetings":{one:`Exported 1 meeting`,other:`Exported {count} meetings`},"Added {count} meetings.":{one:`Added 1 meeting.`,other:`Added {count} meetings.`},"{count} were already here.":{one:`1 was already here.`,other:`{count} were already here.`},"{count} meetings":{one:`1 meeting`,other:`{count} meetings`},"Meetings in the Trash are deleted for good after {count} days, with their recordings.":{one:`Meetings in the Trash are deleted for good after 1 day, with their recordings.`,other:`Meetings in the Trash are deleted for good after {count} days, with their recordings.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this Mac for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this computer for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.`},"{count} languages supported":{one:`{count} language supported`,other:`{count} languages supported`},"and {count} more":{one:`and {count} more`,other:`and {count} more`},"{count} left":{one:`{count} left`,other:`{count} left`},"{count} echoed lines":{one:`{count} echoed line`,other:`{count} echoed lines`},"Reading {count} meetings…":{one:`Reading 1 meeting…`,other:`Reading {count} meetings…`},"Still reading {count} meetings…":{one:`Still reading 1 meeting…`,other:`Still reading {count} meetings…`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.":`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,"Yogurt's AI is ready. Summaries and Ask now work.":`Yogurt's AI is ready. Summaries and Ask now work.`,"AI download stopped":`AI download stopped`,"Downloading Yogurt's AI":`Downloading Yogurt's AI`,"Downloading Yogurt's AI: {progress}":`Downloading Yogurt's AI: {progress}`,"{done} of {total} GB":`{done} of {total} GB`,"{progress} · about {minutes} min left":`{progress} · about {minutes} min left`,"You can record now. Yogurt writes your notes and answers questions once this finishes.":`You can record now. Yogurt writes your notes and answers questions once this finishes.`},mt=[{id:`en`,name:`English`,english:`English`},{id:`ar`,name:`العربية`,english:`Arabic`,rtl:!0},{id:`bn`,name:`বাংলা`,english:`Bengali`},{id:`zh-CN`,name:`简体中文`,english:`Chinese (Simplified)`},{id:`zh-TW`,name:`繁體中文`,english:`Chinese (Traditional)`},{id:`cs`,name:`Čeština`,english:`Czech`},{id:`da`,name:`Dansk`,english:`Danish`},{id:`nl`,name:`Nederlands`,english:`Dutch`},{id:`fil`,name:`Filipino`,english:`Filipino`},{id:`fi`,name:`Suomi`,english:`Finnish`},{id:`fr`,name:`Français`,english:`French`},{id:`de`,name:`Deutsch`,english:`German`},{id:`el`,name:`Ελληνικά`,english:`Greek`},{id:`he`,name:`עברית`,english:`Hebrew`,rtl:!0},{id:`hi`,name:`हिन्दी`,english:`Hindi`},{id:`hu`,name:`Magyar`,english:`Hungarian`},{id:`id`,name:`Bahasa Indonesia`,english:`Indonesian`},{id:`it`,name:`Italiano`,english:`Italian`},{id:`ja`,name:`日本語`,english:`Japanese`},{id:`ko`,name:`한국어`,english:`Korean`},{id:`ms`,name:`Bahasa Melayu`,english:`Malay`},{id:`nb`,name:`Norsk`,english:`Norwegian`},{id:`pl`,name:`Polski`,english:`Polish`},{id:`pt-BR`,name:`Português`,english:`Portuguese`},{id:`ro`,name:`Română`,english:`Romanian`},{id:`ru`,name:`Русский`,english:`Russian`},{id:`es`,name:`Español`,english:`Spanish`},{id:`sv`,name:`Svenska`,english:`Swedish`},{id:`th`,name:`ไทย`,english:`Thai`},{id:`tr`,name:`Türkçe`,english:`Turkish`},{id:`uk`,name:`Українська`,english:`Ukrainian`},{id:`vi`,name:`Tiếng Việt`,english:`Vietnamese`}],ht=e=>mt.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,gt=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":pt})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function _t(e,t,n,r){let i=e[t]?.[n]??e.en?.[n]??n;if(typeof i!=`string`){let e=typeof r?.count==`number`?r.count:0;i=i[new Intl.PluralRules(t).select(e)]??i.other??n}return r?i.replace(/\{(\w+)\}/g,(e,n)=>{let i=r[n];return i===void 0?e:typeof i==`number`?new Intl.NumberFormat(t).format(i):i}):i}var vt=`en`,yt=new Set,bt=()=>vt;function xt(e){return yt.add(e),()=>{yt.delete(e)}}var W=(e,t)=>_t(gt,vt,e,t),St=e=>e,Ct={folder:St(`Folder`),star:St(`Star`),heart:St(`Heart`),flag:St(`Flag`),bookmark:St(`Bookmark`),briefcase:St(`Briefcase`),users:St(`People`),handshake:St(`Handshake`),message:St(`Conversation`),video:St(`Video`),calendar:St(`Calendar`),clock:St(`Clock`),target:St(`Target`),lightbulb:St(`Idea`),rocket:St(`Rocket`),code:St(`Code`),palette:St(`Palette`),megaphone:St(`Megaphone`),graduation:St(`Graduation cap`),book:St(`Book`),flask:St(`Flask`),coffee:St(`Coffee`),house:St(`House`),plane:St(`Plane`)},wt={default:St(`Default`),violet:St(`Purple`),blue:St(`Blue`),teal:St(`Teal`),green:St(`Green`),amber:St(`Amber`),orange:St(`Orange`),rose:St(`Pink`)},Tt={icon:`folder`,color:`default`},Et=Object.keys(wt).filter(e=>e!=="default");function Dt(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%Et.length}var Ot=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),kt=o(((e,t)=>{t.exports=Ot()})),At=(0,U.createContext)({});function jt(e){let t=(0,U.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Mt=typeof window<`u`?U.useLayoutEffect:U.useEffect,Nt=(0,U.createContext)(null);function Pt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ft(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function It([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var Lt=(e,t,n)=>n>t?t:n<e?e:n,Rt={},zt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Bt=e=>typeof e==`object`&&!!e,Vt=e=>/^0[^.\s]+$/u.test(e);function Ht(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ut=e=>e,Wt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Gt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Kt=class{constructor(){this.subscriptions=[]}add(e){return Pt(this.subscriptions,e),()=>this.remove(e)}remove(e){Ft(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},qt=e=>e*1e3,Jt=e=>e/1e3,Yt=(e,t)=>t?1e3/t*e:0,Xt=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Zt=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Qt(e,t,n,r){return e===t&&n===r?Ut:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Zt(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Zt(s+1e-7,e,n)-i-r)}return Zt(s,t,r)}}var $t=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,en=e=>t=>1-e(1-t),tn=Qt(.33,1.53,.69,.99),nn=en(tn),rn=$t(nn),an=e=>e>=1?1:(e*=2)<1?.5*nn(e):.5*(2-2**(-10*(e-1))),on=e=>1-Math.sin(Math.acos(e)),sn=en(on),cn=$t(on),ln=Qt(.42,0,1,1),un=Qt(0,0,.58,1),dn=Qt(.42,0,.58,1),fn=e=>Array.isArray(e)&&typeof e[0]!=`number`;function pn(e,t){return fn(e)?e[Xt(0,e.length,t)]:e}var mn=e=>Array.isArray(e)&&typeof e[0]==`number`,hn={linear:Ut,easeIn:ln,easeInOut:dn,easeOut:un,circIn:on,circInOut:cn,circOut:sn,backIn:nn,backInOut:rn,backOut:tn,anticipate:an},gn=e=>typeof e==`string`,_n=e=>{if(mn(e)){e.length;let[t,n,r,i]=e;return Qt(t,n,r,i)}return gn(e)?(hn[e],`${e}`,hn[e]):e},vn={delta:0,timestamp:0,isProcessing:!1},yn;function bn(){yn=void 0}var xn={now:()=>(yn===void 0&&xn.set(vn.isProcessing||Rt.useManualTiming?vn.timestamp:performance.now()),yn),set:e=>{yn=e,queueMicrotask(bn)}},Sn=e=>Math.round(e*1e5)/1e5,Cn=e=>t=>typeof t==`string`&&t.startsWith(e),wn=Cn(`--`),Tn=Cn(`var(--`),En=e=>Tn(e)?Dn.test(e.split(`/*`)[0].trim()):!1,Dn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function On(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var kn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},An={...kn,transform:e=>Lt(0,1,e)},jn={...kn,default:1},Mn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nn(e){return e==null}var Pn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fn=(e,t)=>n=>!!(typeof n==`string`&&Pn.test(n)&&n.startsWith(e)||t&&!Nn(n)&&Object.prototype.hasOwnProperty.call(n,t)),In=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Mn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ln=e=>Lt(0,255,e),Rn={...kn,transform:e=>Math.round(Ln(e))},zn={test:Fn(`rgb`,`red`),parse:In(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Rn.transform(e)+`, `+Rn.transform(t)+`, `+Rn.transform(n)+`, `+Sn(An.transform(r))+`)`};function Bn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Vn={test:Fn(`#`),parse:Bn,transform:zn.transform},Hn=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Un=Hn(`deg`),Wn=Hn(`%`),G=Hn(`px`),Gn=Hn(`vh`),Kn=Hn(`vw`),qn={...Wn,parse:e=>Wn.parse(e)/100,transform:e=>Wn.transform(e*100)},Jn={test:Fn(`hsl`,`hue`),parse:In(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Wn.transform(Sn(t))+`, `+Wn.transform(Sn(n))+`, `+Sn(An.transform(r))+`)`},Yn={test:e=>zn.test(e)||Vn.test(e)||Jn.test(e),parse:e=>zn.test(e)?zn.parse(e):Jn.test(e)?Jn.parse(e):Vn.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?zn.transform(e):Jn.transform(e),getAnimatableNone:e=>{let t=Yn.parse(e);return t.alpha=0,Yn.transform(t)}},Xn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Zn=new RegExp(Mn.source),Qn=new RegExp(Xn.source,`i`);function $n(e){return isNaN(e)&&typeof e==`string`&&(Zn.test(e)||Qn.test(e))}var er=`number`,tr=`color`,nr=`var`,rr=`var(`,ir="${}",ar=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function or(e){let t=e.toString();return Zn.test(t)||Qn.test(t)}function sr(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ar,e=>(Yn.test(e)?(r.color.push(a),i.push(tr),n.push(Yn.parse(e))):e.startsWith(rr)?(r.var.push(a),i.push(nr),n.push(e)):(r.number.push(a),i.push(er),n.push(parseFloat(e))),++a,ir)).split(ir),indexes:r,types:i}}function cr(e){return sr(e).values}function lr({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===er?Sn(r[a]):e===tr?Yn.transform(r[a]):r[a]}return i}}function ur(e){return lr(sr(e))}var dr=e=>typeof e==`number`?0:Yn.test(e)?Yn.getAnimatableNone(e):e,fr=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:dr(e);function pr(e){let t=sr(e);return lr(t)(t.values.map((e,n)=>fr(e,t.split[n])))}var mr={test:$n,parse:cr,createTransformer:ur,getAnimatableNone:pr};function hr(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=hr(s,r,e+1/3),a=hr(s,r,e),o=hr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _r(e,t){return n=>n>0?t:e}var vr=(e,t,n)=>e+(t-e)*n,yr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},br=[Vn,zn,Jn],xr=e=>br.find(t=>t.test(e));function Sr(e){let t=xr(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Jn&&(n=gr(n)),n}var Cr=(e,t)=>{let n=Sr(e),r=Sr(t);if(!n||!r)return _r(e,t);let i={...n};return e=>(i.red=yr(n.red,r.red,e),i.green=yr(n.green,r.green,e),i.blue=yr(n.blue,r.blue,e),i.alpha=vr(n.alpha,r.alpha,e),zn.transform(i))},wr=new Set([`none`,`hidden`]);function Tr(e,t){return wr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Er(e,t){return n=>vr(e,t,n)}function Dr(e){return typeof e==`number`?Er:typeof e==`string`?En(e)?_r:Yn.test(e)?Cr:jr:Array.isArray(e)?Or:typeof e==`object`?Yn.test(e)?Cr:kr:_r}function Or(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Dr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function kr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ar(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var jr=(e,t)=>{let n=mr.createTransformer(t),r=sr(e),i=sr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wr.has(e)&&!i.values.length||wr.has(t)&&!r.values.length?Tr(e,t):Wt(Or(Ar(r,i),i.values),n):(`${e}${t}`,_r(e,t))},Mr=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Nr(e,t){let n=Mr.exec(e);if(!n)return;let r=Mr.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Sn(vr(a,o,e))+i}function Pr(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return vr(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Nr(e,t);if(n)return n}return Dr(e)(e,t)}var Fr=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ir(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Lr=40;function Rr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Fr.reduce((e,t)=>(e[t]=Ir(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Rt.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Lr),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Fr.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Fr.length;t++)o[Fr[t]].cancel(e)},state:n,steps:o}}var{schedule:zr,cancel:Br,steps:Vr}=Rr(typeof requestAnimationFrame<`u`?requestAnimationFrame:Ut,!0,vn),Hr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>zr.update(t,e),stop:()=>Br(t),now:()=>vn.isProcessing?vn.timestamp:xn.now()}},Ur=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Wr=2e4;function Gr(e,t=50,n=Wr,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Kr(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Gr(o),Wr);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Jt(s)}}var qr={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Jr=e=>e<0?1/Math.max(1+e,qr.minDamping):Math.max(1-e,qr.minDamping);function Yr(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Qr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Xr(e,t){return e*Math.sqrt(1-t*t)}var Zr=12;function Qr(e,t,n){let r=n;for(let n=1;n<Zr;n++)r-=e(r)/t(r);return r}var $r=.001;function ei({duration:e=qr.duration,bounce:t=qr.bounce}){let n,r;qr.maxDuration;let i=Jr(t);e=Lt(qr.minDuration,qr.maxDuration,Jt(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Xr(t,i),o=Math.exp(-r);return $r-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Xr(t*t,i);return(-n(t)+$r>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Qr(n,r,a),s=o*Yr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:qt(e)}}var ti=(e,t)=>(t?e>=0:e>0)&&e<1/0;function ni(e,t){if(ti(e,t))return e}function ri(e){let t=ni(e.stiffness),n=ni(e.damping,!0),r=ni(e.mass),i={...e,stiffness:t??qr.stiffness,damping:n??qr.damping,mass:r??qr.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Jr(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Yr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,ei(i)),i.isResolvedFromDuration=!0;ti(i.stiffness)&&ti(i.damping,!0)||(i.stiffness=qr.stiffness,i.damping=qr.damping)}return i}function ii(e=qr.visualDuration,t=qr.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=ri({...n}),f=e=>d?0:-Jt(e),p=s/(2*Math.sqrt(o*c)),m=Jt(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?qr.restSpeed.granular:qr.restSpeed.default),g.restDelta=n.restDelta||(e?qr.restDelta.granular:qr.restDelta.default)};_();let v,y,b;if(p<1){let e=Xr(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>qt(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=qt(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Gr(S),Wr),t=Ur(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}ii.applyToOptions=e=>{let t=Kr(e,100,ii);return e.ease=t.ease,e.duration=qt(t.duration),e.type=`keyframes`,e};function ai({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=ii({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function oi(e,t,n){let r=[],i=n||Rt.mix||Pr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Wt(Array.isArray(t)?t[n]||Ut:t,a)),r.push(a)}return r}function si(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=oi(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Gt(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Lt(e[0],e[a-1],t)):l}function ci(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Gt(0,t,r);e.push(vr(n,1,i))}}function li(e){let t=[0];return ci(t,e.length-1),t}function ui(e,t){return e.map(e=>e*t)}function di(e,t){return e.map(()=>t||dn).splice(0,e.length-1)}function fi({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=fn(r)?r.map(_n):_n(r)||dn,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(Rt.mix||Pr)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Lt(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=si(ui(n&&n.length===t.length?n:li(t),e),t,{ease:Array.isArray(i)?i:di(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var pi=5;function mi(e,t,n){let r=Math.max(t-pi,0);return Yt(n-e(r),t-r)}function hi(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):mi(t=>e.next(t).value,t,e.next(t).value)}var gi=e=>e!==null;function _i(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(gi),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var vi={decay:ai,inertia:ai,tween:fi,keyframes:fi,spring:ii};function yi(e){typeof e.type==`string`&&(e.type=vi[e.type])}var bi=40,xi=(e,t)=>t-e>bi&&!Rt.useManualTiming?t:e;function Si(e,t){return{kind:e,animation:t,timestamp:xn.now(),frameTimestamp:vn.timestamp,frameIsProcessing:vn.isProcessing}}function Ci(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Si(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function wi(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Si(`layout-animation-start`,e),node:t})}catch{}}var Ti=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Ei=e=>e/100,Di=e=>Math.round(e*1e4)/1e4,Oi=class extends Ti{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==xn.now()&&this.tick(xn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Ci(this,this.options)}initAnimation(){let{options:e}=this;yi(e);let{type:t=fi,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fi;s!==fi&&typeof o[0]!=`number`&&(this.mixKeyframes=Wt(Ei,Pr(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Gr(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=xi(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==ai&&(f.value=_i(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Di((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==ai?_i(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=Lt(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Jt(e)}get time(){return Jt(this.currentTime)}set time(e){e=qt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return hi(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(xn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Jt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Hr,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(xn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},ki=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ai(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Mn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ki.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ji=/\b([a-z-]*)\(.*?\)/gu,Mi={...mr,getAnimatableNone:e=>{let t=e.match(ji);return t?t.map(Ai).join(` `):e}},Ni={...mr,getAnimatableNone:e=>{let t=mr.parse(e);return mr.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Pi={...kn,transform:Math.round},Fi={rotate:Un,pathRotation:Un,rotateX:Un,rotateY:Un,rotateZ:Un,scale:jn,scaleX:jn,scaleY:jn,scaleZ:jn,skew:Un,skewX:Un,skewY:Un,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:An,originX:qn,originY:qn,originZ:G},Ii={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,...Fi,zIndex:Pi,fillOpacity:An,strokeOpacity:An,numOctaves:Pi},Li={...Ii,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Mi,WebkitFilter:Mi,mask:Ni,WebkitMask:Ni},Ri=e=>Li[e],zi=new Set([Mi,Ni]);function Bi(e,t){let n=Ri(e);return zi.has(n)||(n=mr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Vi(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Hi=e=>e*180/Math.PI,Ui=e=>Gi(Hi(Math.atan2(e[1],e[0]))),Wi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ui,rotateZ:Ui,skewX:e=>Hi(Math.atan(e[1])),skewY:e=>Hi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gi=e=>(e%=360,e<0&&(e+=360),e),Ki=Ui,qi=e=>Math.hypot(e[0],e[1]),Ji=e=>Math.hypot(e[4],e[5]),Yi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qi,scaleY:Ji,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(qi(e)+Ji(e))/2,rotateX:e=>Gi(Hi(Math.atan2(e[6],e[5]))),rotateY:e=>Gi(Hi(Math.atan2(-e[2],e[0]))),rotateZ:Ki,rotate:Ki,skewX:e=>Hi(Math.atan(e[4])),skewY:e=>Hi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Xi(e){return+!!e.includes(`scale`)}function Zi(e,t){if(!e||e===`none`)return Xi(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Yi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wi,i=t}if(!i)return Xi(t);let a=r[t],o=i[1].split(`,`).map($i);return typeof a==`function`?a(o):o[a]}var Qi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Zi(n,t)};function $i(e){return parseFloat(e.trim())}var ea=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],ta=new Set([...ea,`pathRotation`]),na=e=>e===kn||e===G,ra=new Set([`x`,`y`,`z`]),ia=ea.filter(e=>!ra.has(e));function aa(e){let t=[];return ia.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var oa=new Set([`bottom`,`right`]);function sa(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var ca={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>sa(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>sa(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Zi(e,`x`),y:({transform:e})=>Zi(e,`y`)};ca.translateX=ca.x,ca.translateY=ca.y;var la=new Set,ua=!1,da=!1,fa=!1;function pa(){if(da){let e=[],t=new Set,n=new Set;la.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),oa.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=aa(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}da=!1,ua=!1,la.forEach(e=>e.complete(fa)),la.clear()}function ma(){la.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(da=!0)})}function ha(){fa=!0,ma(),pa(),fa=!1}function ga(e,t,n){if(typeof e==`string`){if(zt(e)||Vt(e))return parseFloat(e);if(!mr.test(e)&&mr.test(n))return Bi(t,n)}return e??void 0}var _a=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(la.add(this),ua||(ua=!0,zr.read(ma),zr.resolveKeyframes(pa))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=ga(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Vi(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),la.delete(this)}cancel(){this.state===`scheduled`&&(la.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},va=e=>e.startsWith(`--`);function ya(e,t,n){va(t)?e.style.setProperty(t,n):e.style[t]=n}var ba={};function xa(e,t){let n=Ht(e);return()=>ba[t]??n()}var Sa=xa(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ca=xa(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),wa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ta={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:wa([0,.65,.55,1]),circOut:wa([.55,0,1,.45]),backIn:wa([.31,.01,.66,-.59]),backOut:wa([.33,1.53,.69,.99])};function Ea(e,t){if(e)return typeof e==`function`?Ca()?Ur(e,t):`ease-out`:mn(e)?wa(e):Array.isArray(e)?e.map(e=>Ea(e,t)||Ta.easeOut):Ta[e]}function Da(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Ea(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Oa(e){return typeof e==`function`&&`applyToOptions`in e}function ka({type:e,...t}){return Oa(e)&&Ca()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Aa=class extends Ti{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ka(e);this.animation=Da(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=_i(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ya(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Ci(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Jt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Jt(e)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=qt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Sa()?(this.animation.timeline=e,t?.(this.animation),Ut):n(this)}},ja={anticipate:an,backInOut:rn,circInOut:cn};function Ma(e){return e in ja}function Na(e){typeof e.ease==`string`&&Ma(e.ease)&&(e.ease=ja[e.ease])}var Pa=class extends Aa{constructor(e){Na(e),yi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(xn.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Oi({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?Lt(0,10,a):0,s=this.sample(a);n&&r&&ya(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Fa=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(mr.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ia(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function La(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Fa(i,t),s=Fa(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Ia(e)||(n===`spring`||Oa(n))&&r}function Ra(e){e.duration=0,e.type=`keyframes`}var za=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ba=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Va(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ba.test(e[t]))return!0;return!1}var Ha=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ua=Ht(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Wa(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(za.has(n)||Ha.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ua()&&(za.has(n)||Ha.has(n)&&Va(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ga=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ka={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},qa=ea.length;function Ja(e,t,n){let r=``,i=!0;for(let a=0;a<qa;a++){let o=ea[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ga(s,Ii[o]);if(!c){i=!1;let t=Ka[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ga(a,Ii.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Ya=new WeakMap,Xa=200,Za=.001,Qa=.1,$a=.001,eo=100,to=e=>/^(linear|ease(In|Out|InOut))$/.test(e),no=(e,t)=>e-t,ro=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(vr(e,t,i/n));return r},io=e=>e.motionValue.owner,ao=e=>Ya.get(e),oo=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),so=({name:e,motionValue:t})=>e&&ea.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ua()&&Ca();function co(e){let t=io(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(oo(t,`transform`)||`none`)===`none`&&!oo(t,`pathRotation`)&&!t.projection?.isProjecting()}var lo=class extends Oi{constructor(e){let t=io(e).current,{driver:n=Hr}=e,r,i=co(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=ao(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=ao(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return ao(io(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(xn.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=mn(n)?wa(n):to(n)&&Ta[n];if(o&&!i&&!r&&e.length===2&&t===fi&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||fi)===fi?u||li(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=xn.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||uo(io(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(xn.now())}get time(){return this.isAccelerated()?Jt(Lt(0,this.totalDuration,this.at(xn.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function uo(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?ea:a){let a=r.get(s),c=t===void 0?oo(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(Ka[e]||e)+`(`+Ga(r[e],Ii[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Ja(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=xn.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Xa,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=ro(t,n,i).concat(r).sort(no),o=e=>Gt(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Za>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Za)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Za)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Za))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Di(t)+` `+Di(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?$a:Qa))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=ro(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(no))e>c&&o(c,e,0),c=e;return i.sort(no)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Gt(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=ea.filter(t=>{if(r.has(t))return!0;let n=i[t]=oo(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,ao(t)===O&&Ya.delete(t),O.isJS||_(),!0),D=()=>{let t=xn.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=oo(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<eo)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,vn.isProcessing?zr.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(oo(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Ya.set(t,O),O}var fo=class extends Ti{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xn.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||_a;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=xn.now();let u=!0;La(e,i,a,o)||(u=!1,(Rt.instantAnimations||!s)&&l?.(_i(e,n,t)),e[0]=e[e.length-1],Ra(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Wa(n),p=!f&&so(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=xi(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Pa(n)}catch{m=new Oi(n)}}else m=p?new lo(n):new Oi(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ha()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},po=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return mo(this.animations,`duration`)}get iterationDuration(){return mo(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function mo(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var ho=class extends po{then(e,t){return this.finished.finally(e).then(()=>{})}};function go(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var _o=30,vo=e=>!isNaN(parseFloat(e)),yo={current:void 0},bo=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=xn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=xn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=vo(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Kt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Kt,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){zr.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){yo.current&&yo.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=xn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>_o)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,_o);return Yt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function xo(e,t){return new bo(e,t)}function So(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Co(e,t){let n=e?.[t]??e?.default??e;return n===e?n:So(n,e)}var wo={type:`spring`,stiffness:500,damping:25,restSpeed:10},To=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Eo={type:`keyframes`,duration:.8},Do={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Oo=(e,{keyframes:t})=>t.length>2?Eo:ta.has(e)?e.startsWith(`scale`)?To(t[1]):wo:Do,ko=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Ao(e){for(let t in e)if(!ko.has(t))return!0;return!1}var jo=(e,t,n,r={},i,a)=>o=>{let s=Co(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=qt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Ao(s)||Object.assign(u,Oo(e,u)),u.duration&&=qt(u.duration),u.repeatDelay&&=qt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ra(u),u.delay===0&&(d=!0)),(Rt.instantAnimations||Rt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ra(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=_i(u.keyframes,s);if(e!==void 0){zr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Oi(u):new fo(u)},Mo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function No(e){let t=Mo.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Po(e,t,n=1){`${e}`;let[r,i]=No(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return zt(e)?parseFloat(e):e}return En(i)?Po(i,t,n+1):i}function Fo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Io(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Fo(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Lo(e,t,n){return Io(e.getProps(),t,n,e)}var Ro=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,zo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ea]),Bo=e=>Array.isArray(e);function Vo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xo(n))}function Ho(e){return Bo(e)?e[e.length-1]||0:e}function Uo(e,t){let{transitionEnd:n={},transition:r={},...i}=Lo(e,t)||{};i={...i,...n};for(let t in i)Vo(e,t,Ho(i[t]))}var Wo=e=>!!(e&&e.getVelocity);function Go(e){return!!(Wo(e)&&e.add)}function Ko(e,t){let n=e.getValue(`willChange`);if(Go(n))return n.add(t);if(!n&&Rt.WillChange){let n=new Rt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function qo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Jo=`data-`+qo(`framerAppearId`);function Yo(e){return e.props[Jo]}var Xo=typeof window<`u`;function Zo({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Qo(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?So(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Zo(f,t))continue;let o={delay:n,...Co(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){zr.update(()=>r.set(i));continue}let p=!1;if(Xo&&window.MotionHandoffAnimation){let n=Yo(e);if(n){let e=window.MotionHandoffAnimation(n,t,zr);e!==null&&(o.startTime=e,p=!0)}}Ko(e,t);let m=l??e.shouldReduceMotion;r.start(jo(t,r,i,m&&zo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>zr.update(()=>{o&&Uo(e,o)});d.length?Promise.all(d).then(t):t()}return d}function $o(e,t,n={}){let r=Lo(e,t,Ro(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Qo(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push($o(e,t,{...n,delay:r+(typeof o==`function`?0:o)+go(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function es(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>$o(e,t,n))):typeof t==`string`?$o(e,t,n):Promise.all(Qo(e,Lo(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var ts={test:e=>e===`auto`,parse:e=>e},ns=e=>t=>t.test(e),rs=[kn,G,Wn,Un,Kn,Gn,ts],is=e=>rs.find(ns(e));function as(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Vt(e)}var ss=new Set([`auto`,`none`,`0`]);function cs(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ss.has(t)&&or(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Bi(n,i))}var ls=class extends _a{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(On(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),En(r))){let i=Po(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!zo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=is(r),o=is(i);if(On(r)!==On(i)&&ca[n])this.needsMeasurement=!0;else if(a!==o){if(na(a)&&na(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ca[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||as(e[t]))&&n.push(t);n.length&&cs(e,n,t)}measure(){let{element:e,name:t}=this;return ca[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},us=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],ds=[];function fs(e){typeof e.test==`function`&&e.read,ps(e),ds.unshift(e)}function ps(e){Ft(ds,e)}function ms(e){return ds.find(t=>t.test(e))}function hs(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?zr.update(()=>l.set(c)):(l.start(jo(o,l,c,s&&zo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>zr.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function gs(e,t,n,r,i){return hs(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=_s(i)??e.read(t,r,i),`${r}`}a=xo(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function _s(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function vs(e){return Bt(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ys(e){return Bt(e)&&`ownerSVGElement`in e}function bs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var xs=class{constructor(e=zr.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function Ss(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new xs(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var Cs={};function ws(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(Cs[i]||(Cs[i]=(Ka[i]||i)+`(`))+Ga(a,Fi[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ga(i,Fi.pathRotation)+`)`),t||`none`}var Ts=new Set([`originX`,`originY`,`originZ`]),Es=(e,t)=>Ga(e.get(t)?.get(),Ii[t]),Ds=(e,t,n,r)=>{let i,a;if(ta.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>ea.indexOf(e)-ea.indexOf(t)))}t.get(`transform`)||(!vs(e)&&!t.get(`transformBox`)&&Ds(e,t,`transformBox`,new bo(`fill-box`)),t.set(`transform`,new bo(`none`),()=>{Ya.get(e)?.check(),e.style.transform=ws(t)})),a=t.get(`transform`)}else Ts.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new bo(``),()=>{let n=Es(t,`originX`)??`50%`,r=Es(t,`originY`)??`50%`,i=Es(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=va(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ga(r.getCurrent(),Ii[n])};return t.set(n,r,i,a)},Os=e=>vs(e)||ys(e),ks=(e,t)=>{if(ta.has(t))return Qi(e,t);let n=getComputedStyle(e),r=va(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},As=Ss(Ds,{test:Os,read:ks});function js(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(ta.has(e))o=!0;else if(wn(e))i[e]=n;else{let t=Ga(n,Ii[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ja(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ms={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ns={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ps(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ms:Ns;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Fs=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Is(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(js(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Fs)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ps(d,i,a,o,!1)}function Ls(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Rs=(e,t,n,r,i=n)=>{let a=Ls(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=qo(i));let o=Ii[n]||Ii[i],s=a?()=>{e[i]=Ga(r.get(),Ii[n])}:()=>{let t=Ga(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function zs(e,t,n,r){return zr.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new bo(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Bs=Ss((e,t,n,r)=>n.startsWith(`path`)&&!ta.has(n)?zs(e,t,n,r):n.startsWith(`attr`)?Rs(e,t,n,r,Vs(n)):(ta.has(n)||Ts.has(n)||va(n)||n in e.style?Ds:Rs)(e,t,n,r),{test:ys,read:(e,t)=>ta.has(t)?Ii[t]?.default||0:va(t)||Fs.includes(t)?ks(e,t)||e.getAttribute(qo(t))||0:(t=Vs(t),e.getAttribute(qo(t))??e.getAttribute(t)??void 0)});function Vs(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Hs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Us({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ws(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gs(e){return e===void 0||e===1}function Ks({scale:e,scaleX:t,scaleY:n}){return!Gs(e)||!Gs(t)||!Gs(n)}function qs(e){return Ks(e)||Js(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Js(e){return Ys(e.x)||Ys(e.y)}function Ys(e){return e&&e!==`0%`}function Xs(e,t,n){return n+t*(e-n)}function Zs(e,t,n,r,i){return i!==void 0&&(e=Xs(e,i,r)),Xs(e,n,r)+t}function Qs(e,t=0,n=1,r,i){e.min=Zs(e.min,t,n,r,i),e.max=Zs(e.max,t,n,r,i)}function $s(e,{x:t,y:n}){Qs(e.x,t.translate,t.scale,t.originPoint),Qs(e.y,n.translate,n.scale,n.originPoint)}var ec=.999999999999,tc=1.0000000000001;function nc(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(rc(e.x,-a.scroll.offset.x),rc(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$s(e,o)),r&&qs(a.latestValues)&&oc(e,a.latestValues,a.layout?.layoutBox))}t.x<tc&&t.x>ec&&(t.x=1),t.y<tc&&t.y>ec&&(t.y=1)}function rc(e,t){e.min+=t,e.max+=t}function ic(e,t,n,r,i=.5){Qs(e,t,n,vr(e.min,e.max,i),r)}function ac(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function oc(e,t,n){let r=n??e;ic(e.x,ac(t.x,r.x),t.scaleX,t.scale,t.originX),ic(e.y,ac(t.y,r.y),t.scaleY,t.scale,t.originY)}function sc(e,t){return Hs(Ws(e.getBoundingClientRect(),t))}function cc(e,t,n){let r=sc(e,n),{scroll:i}=t;return i&&(rc(r.x,i.offset.x),rc(r.y,i.offset.y)),r}var lc={},uc=e=>ys(e)?Bs:As,dc=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ls}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return sc(this.current)}getProps(){return lc}};function fc(e,t,n,r){if(r)return hs(e=>r.getValue(e,null),t,n,r);let i=uc(e);return gs(i,e,t,n,new dc(i,e))}var pc=Ss((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Bt(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:mc,cancel:hc}=Rr(queueMicrotask,!1);function gc(e,t,n){let r=Wo(e)?e:xo(e);return r.start(jo(``,r,t,n)),r.animation}var _c={},vc={value:null,addProjectionMetrics:null};function yc(e,t){let n=xn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Br(r),e(a-t))};return zr.setup(r,!0),()=>Br(r)}function bc(e){return ys(e)&&e.tagName===`svg`}function xc(e){return Wo(e)?e.get():e}var Sc=e=>typeof e==`number`?e:parseFloat(e),Cc=us.length,wc=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],Tc=wc.length,Ec=e=>typeof e==`number`||G.test(e);function Dc(e,t,n,r,i,a){i?(e.opacity=vr(0,n.opacity??1,kc(r)),e.opacityExit=vr(t.opacity??1,0,Ac(r))):a&&(e.opacity=vr(t.opacity??1,n.opacity??1,r));for(let i=0;i<Cc;i++){let a=us[i],o=Oc(t,a),s=Oc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Ec(o)===Ec(s)?(e[a]=Math.max(vr(Sc(o),Sc(s),r),0),(Wn.test(s)||Wn.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<Tc;i++){let a=wc[i];(t[a]||n[a])&&(e[a]=vr(t[a]||0,n[a]||0,r))}}function Oc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var kc=jc(0,.5,sn),Ac=jc(.5,.95,Ut);function jc(e,t,n){return r=>r<e?0:r>t?1:n(Gt(e,t,r))}function Mc(e,t){e.min=t.min,e.max=t.max}function Nc(e,t){Mc(e.x,t.x),Mc(e.y,t.y)}function Pc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Fc=.9999,Ic=1.0001,Lc=-.01,Rc=.01;function zc(e){return e.max-e.min}function Bc(e,t,n){return Math.abs(e-t)<=n}function Vc(e,t,n,r=.5){e.origin=r,e.originPoint=vr(t.min,t.max,e.origin),e.scale=zc(n)/zc(t),e.translate=vr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Fc&&e.scale<=Ic||isNaN(e.scale))&&(e.scale=1),(e.translate>=Lc&&e.translate<=Rc||isNaN(e.translate))&&(e.translate=0)}function Hc(e,t,n,r){Vc(e.x,t.x,n.x,r?r.originX:void 0),Vc(e.y,t.y,n.y,r?r.originY:void 0)}function Uc(e,t,n,r=0){e.min=(r?vr(n.min,n.max,r):n.min)+t.min,e.max=e.min+zc(t)}function Wc(e,t,n,r){Uc(e.x,t.x,n.x,r?.x),Uc(e.y,t.y,n.y,r?.y)}function Gc(e,t,n,r=0){let i=r?vr(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+zc(t)}function Kc(e,t,n,r){Gc(e.x,t.x,n.x,r?.x),Gc(e.y,t.y,n.y,r?.y)}function qc(e,t,n,r,i){return e-=t,e=Xs(e,1/n,r),i!==void 0&&(e=Xs(e,1/i,r)),e}function Jc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Wn.test(t)&&(t=parseFloat(t),t=vr(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=vr(a.min,a.max,r);e===a&&(s-=t),e.min=qc(e.min,t,n,s,i),e.max=qc(e.max,t,n,s,i)}function Yc(e,t,[n,r,i],a,o){Jc(e,t[n],t[r],t[i],t.scale,a,o)}var Xc=[`x`,`scaleX`,`originX`],Zc=[`y`,`scaleY`,`originY`];function Qc(e,t,n,r){Yc(e.x,t,Xc,n?n.x:void 0,r?r.x:void 0),Yc(e.y,t,Zc,n?n.y:void 0,r?r.y:void 0)}var $c=()=>({translate:0,scale:1,origin:0,originPoint:0}),el=()=>({x:$c(),y:$c()}),tl=()=>({min:0,max:0}),nl=()=>({x:tl(),y:tl()});function rl(e){return e.translate===0&&e.scale===1}function il(e){return rl(e.x)&&rl(e.y)}function al(e,t){return e.min===t.min&&e.max===t.max}function ol(e,t){return al(e.x,t.x)&&al(e.y,t.y)}function sl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cl(e,t){return sl(e.x,t.x)&&sl(e.y,t.y)}function ll(e){return zc(e.x)/zc(e.y)}function ul(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var dl=class{constructor(){this.members=[]}add(e){Pt(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ft(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ft(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function fl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(G.test(e))e=parseFloat(e);else return e}return`${fl(e,t.target.x)}% ${fl(e,t.target.y)}%`}},ml={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=mr.parse(e);if(i.length>5)return r;let a=mr.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=vr(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},hl={borderRadius:{...pl,applyTo:[...us]},borderTopLeftRadius:pl,borderTopRightRadius:pl,borderBottomLeftRadius:pl,borderBottomRightRadius:pl,boxShadow:ml};function gl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function _l(e){return[e(`x`),e(`y`)]}var vl=(e,t)=>e.depth-t.depth,yl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Pt(this.children,e),this.isDirty=!0}remove(e){Ft(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vl),this.isDirty=!1,this.children.forEach(e)}},bl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(_c,{...hl,..._c});var xl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Sl=[``,`X`,`Y`,`Z`],Cl=1e3,wl=0;function Tl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var El=({instance:e})=>e&&Ya.get(e)?.demote();function Dl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Yo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,zr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Dl(r)}function Ol({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=wl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vc.value&&(xl.nodes=xl.calculatedTargetDeltas=xl.calculatedProjections=0),this.nodes.forEach(jl),this.nodes.forEach(Hl),this.nodes.forEach(Ul),this.nodes.forEach(Ml),vc.addProjectionMetrics&&vc.addProjectionMetrics(xl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new yl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Kt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ys(t)&&!bc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;zr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=yc(i,250),bl.hasAnimatedSinceResize&&(bl.hasAnimatedSinceResize=!1,this.nodes.forEach(Vl)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Yl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!cl(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Co(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Vl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wl),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;El(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,El(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Fl),this.nodes.forEach(Pl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Il);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rl),this.nodes.forEach(zl),this.nodes.forEach(Bl),this.nodes.forEach(kl),this.nodes.forEach(Al)):this.nodes.forEach(Il),this.clearAllSnapshots();let e=xn.now();vn.delta=Lt(0,1e3/60,e-vn.timestamp),vn.timestamp=e,vn.isProcessing=!0,Vr.update.process(vn),Vr.preRender.process(vn),Vr.render.process(vn),vn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nl),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!zc(this.snapshot.measuredBox.x)&&!zc(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=nl(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&El(this);let t=this.projectionDelta&&!il(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||qs(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),$l(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nl();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tu))){let{scroll:e}=this.root;e&&(rc(t.x,e.offset.x),rc(t.y,e.offset.y))}return t}removeElementScroll(e){let t=nl();if(Nc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Nc(t,e),rc(t.x,i.offset.x),rc(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||nl();Nc(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(rc(r.x,-n.scroll.offset.x),rc(r.y,-n.scroll.offset.y)),qs(n.latestValues)&&oc(r,n.latestValues,n.layout?.layoutBox)}return qs(this.latestValues)&&oc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=nl();Nc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!qs(n.latestValues))continue;let r;n.instance&&(Ks(n.latestValues)&&n.updateSnapshot(),r=nl(),Nc(r,n.measurePageBox())),Qc(t,n.latestValues,n.snapshot?.layoutBox,r)}return qs(this.latestValues)&&Qc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=vn.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=nl(),this.targetWithTransforms=nl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Nc(this.target,this.layout.layoutBox),$s(this.target,this.targetDelta)):Nc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),vc.value&&xl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ks(this.parent.latestValues)||Js(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nl(),this.relativeTargetOrigin=nl(),Kc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Nc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===vn.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Nc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;nc(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nl());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pc(this.prevProjectionDelta.x,this.projectionDelta.x),Pc(this.prevProjectionDelta.y,this.projectionDelta.y)),Hc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&ul(this.projectionDelta.x,this.prevProjectionDelta.x)&&ul(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),vc.value&&xl.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=el(),this.projectionDelta=el(),this.projectionDeltaWithTransform=el()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=el();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nl(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Jl));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=vr(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=vr(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Gl(o.x,e.x,n),Gl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Kc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ql(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&ol(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=nl(),Nc(f,this.relativeTarget)),c&&(this.animationValues=a,Dc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Br(this.pendingAnimation),void 0),this.pendingAnimation=zr.update(()=>{bl.hasAnimatedSinceResize=!0,this.motionValue||=xo(0),this.motionValue.jump(0,!1),this.currentAnimation=gc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),wi(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&eu(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||nl();let t=zc(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=zc(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Nc(t,i),oc(t,r),Hc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new dl),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Tl(`z`,e,r,this.animationValues);for(let t=0;t<Sl.length;t++)Tl(`rotate${Sl[t]}`,e,r,this.animationValues),Tl(`skew${Sl[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=xc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=xc(t?.pointerEvents)||``),this.hasProjected&&!qs(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=gl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in _c){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=_c[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?xc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Pl),this.root.sharedNodes.clear()}}}function kl(e){e.updateLayout(),Ll(e)}function Al(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)_l(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=zc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Mc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else eu(i,t.layoutBox,n)&&_l(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=zc(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=el();Hc(o,n,t.layoutBox);let s=el();a?Hc(s,e.applyTransform(r,!0),t.measuredBox):Hc(s,n,t.layoutBox);let c=!il(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=nl();Kc(s,t.layoutBox,i.layoutBox,o);let c=nl();Kc(c,n,a.layoutBox,o),cl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function jl(e){vc.value&&xl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ml(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nl(e){e.clearSnapshot()}function Pl(e){e.clearMeasurements()}function Fl(e){e.isLayoutDirty=!0,e.updateLayout()}function Il(e){e.isLayoutDirty=!1}function Ll(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;_l(e=>rc(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Rl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function zl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Bl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Vl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hl(e){e.resolveTargetDelta()}function Ul(e){e.calcProjection()}function Wl(e){e.resetSkewAndRotation()}function Gl(e,t,n){e.translate=vr(t.translate,0,n),e.scale=vr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Kl(e,t,n,r){e.min=vr(t.min,n.min,r),e.max=vr(t.max,n.max,r)}function ql(e,t,n,r){Kl(e.x,t.x,n.x,r),Kl(e.y,t.y,n.y,r)}function Jl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Yl={duration:.45,ease:[.4,0,.1,1]},Xl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zl=Xl(`applewebkit/`)&&!Xl(`chrome/`)?Math.round:Ut;function Ql(e){e.min=Zl(e.min),e.max=Zl(e.max)}function $l(e){Ql(e.x),Ql(e.y)}function eu(e,t,n){return e===`position`||e===`preserve-aspect`&&!Bc(ll(t),ll(n),.2)}function tu(e){return e!==e.root&&e.scroll?.wasRoot}function nu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var ru=Ol({attachResizeListener:(e,t)=>nu(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),iu={current:void 0},au=Ol({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iu.current){let e=new ru({});e.mount(window),e.setOptions({layoutScroll:!0}),iu.current=e}return iu.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ou=new WeakMap;function su(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function cu(e){return typeof e==`string`||Array.isArray(e)}var lu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],uu=[`initial`,...lu];function du(e){if(su(e.animate))return!0;for(let t=0;t<uu.length;t++)if(cu(e[uu[t]]))return!0;return!1}function fu(e){return!!(du(e)||e.variants)}function pu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Wo(i))e.addValue(r,i);else if(Wo(a))e.addValue(r,xo(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,xo(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var mu={current:null},hu={current:!1},gu=typeof window<`u`;function _u(){if(hu.current=!0,gu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>mu.current=e.matches;e.addEventListener(`change`,t),t()}else mu.current=!1}}var vu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],yu={};function bu(e){yu=e}function xu(){return yu}var Su=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=_a,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=xn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,zr.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=du(t),this.isVariantNode=fu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Wo(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,ou.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(hu.current||_u(),this.shouldReduceMotion=mu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Br(this.notifyUpdate),Br(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&za.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Aa({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:qt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=ta.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&zr.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Ya.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in yu){let t=yu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nl()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Ya.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<vu.length;t++){let n=vu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=pu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=xo(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(zt(n)||Vt(n))?n=parseFloat(n):typeof n!=`number`&&!mr.test(n)&&mr.test(t)&&(n=Bi(e,t)),this.setBaseTarget(e,Wo(n)?n.get():n)),Wo(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Kt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){mc.render(this.render)}},Cu=class extends Su{constructor(){super(...arguments),this.KeyframeResolver=ls}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Wo(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function wu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Tu(e,{layout:t,layoutId:n}){return ta.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!_c[e]||e===`opacity`)}function Eu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Wo(r[t])||i&&Wo(i[t])||Tu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Du(e){return window.getComputedStyle(e)}var Ou=class extends Cu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=wu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(ta.has(t))return this.projection?.isProjecting?Xi(t):Qi(e,t);{let n=Du(e),r=(wn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return sc(e,t)}build(e,t,n){js(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Eu(e,t,n)}},ku=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Au(e){return{point:{x:e.pageX,y:e.pageY}}}var ju=e=>t=>ku(t)&&e(t,Au(t));function Mu(e,t,n,r){return nu(e,t,ju(n),r)}var Nu=new WeakMap,Pu,Fu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ys(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Iu=Fu(`inline`,`width`,`offsetWidth`),Lu=Fu(`block`,`height`,`offsetHeight`);function Ru({target:e,borderBoxSize:t}){Nu.get(e)?.forEach(n=>{n(e,{get width(){return Iu(e,t)},get height(){return Lu(e,t)}})})}function zu(e){e.forEach(Ru)}function Bu(){typeof ResizeObserver<`u`&&(Pu=new ResizeObserver(zu))}function Vu(e,t){Pu||Bu();let n=bs(e);return n.forEach(e=>{let n=Nu.get(e);n||(n=new Set,Nu.set(e,n)),n.add(t),Pu?.observe(e)}),()=>{n.forEach(e=>{let n=Nu.get(e);n?.delete(t),n?.size||Pu?.unobserve(e)})}}var Hu=new Set,Uu;function Wu(){Uu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Hu.forEach(t=>t(e))},window.addEventListener(`resize`,Uu)}function Gu(e){return Hu.add(e),Uu||Wu(),()=>{Hu.delete(e),!Hu.size&&typeof Uu==`function`&&(window.removeEventListener(`resize`,Uu),Uu=void 0)}}function Ku(e,t){return typeof e==`function`?Gu(e):Vu(e,t)}var qu=(e,t)=>Math.abs(e-t);function Ju(e,t){let n=qu(e.x,t.x),r=qu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Yu=new Set([`auto`,`scroll`]),Xu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=$u(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Ju(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:xn.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Zu(t,this.transformPagePoint),this.hasPendingMove=!0,zr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=$u(e.type===`pointercancel`?this.lastMoveEventInfo:Zu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ku(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Zu(Au(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=vn;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,$u(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Wt(Mu(this.contextWindow,`pointermove`,this.handlePointerMove,d),Mu(this.contextWindow,`pointerup`,this.handlePointerUp,d),Mu(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Yu.has(e.overflowX)||Yu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),zr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Br(this.updatePoint)}};function Zu(e,t){return t?{point:t(e.point)}:e}function Qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $u({point:e},t){return{point:e,delta:Qu(e,td(t)),offset:Qu(e,ed(t)),velocity:nd(t,.1)}}function ed(e){return e[0]}function td(e){return e[e.length-1]}function nd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=td(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>qt(t)*2&&(r=e[1]);let a=Jt(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var rd=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function id(e){return rd.has(e.tagName)||e.isContentEditable===!0}var ad=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function od(e){return ad.has(e.tagName)||e.isContentEditable===!0}var sd={x:!1,y:!1};function cd(){return sd.x||sd.y}function ld(e){return e===`x`||e===`y`?sd[e]?null:(sd[e]=!0,()=>{sd[e]=!1}):sd.x||sd.y?null:(sd.x=sd.y=!0,()=>{sd.x=sd.y=!1})}function ud(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?vr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?vr(n,e,r.max):Math.min(e,n)),e}function dd(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function fd(e,{top:t,left:n,bottom:r,right:i}){return{x:dd(e.x,n,i),y:dd(e.y,t,r)}}function pd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function md(e,t){return{x:pd(e.x,t.x),y:pd(e.y,t.y)}}function hd(e,t){let n=.5,r=zc(e),i=zc(t);return i>r?n=Gt(t.min,t.max-r,e.min):r>i&&(n=Gt(e.min,e.max-i,t.min)),Lt(0,1,n)}function gd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var _d=.35;function vd(e=_d){return e===!1?e=0:e===!0&&(e=_d),{x:yd(e,`left`,`right`),y:yd(e,`top`,`bottom`)}}function yd(e,t,n){return{min:bd(e,t),max:bd(e,n)}}function bd(e,t){return typeof e==`number`?e:e[t]||0}var xd=new WeakMap,Sd=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nl(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ld(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_l(e=>{let t=this.getAxisMotionValue(e).get()||0;if(En(t)&&(t=Po(t,this.visualElement.current)||0),G.test(t))t=parseFloat(t);else if(Wn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=zc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&zr.update(()=>i(e,t),!1,!0),Ko(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=Od(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&zr.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Xu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&zr.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Dd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ud(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;Cd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?fd(n.layoutBox,e):!1,this.elastic=vd(t),r!==this.constraints&&!Cd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&_l(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=gd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Cd(e))return!1;let n=wd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=cc(n,r.root,this.visualElement.getTransformPagePoint()),a=md(r.layout.layoutBox,i);if(t){let e=t(Us(a));this.hasMutatedConstraints=!!e,e&&(a=Hs(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=_l(o=>{if(!Dd(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ko(this.visualElement,e),n.start(jo(e,n,0,t,this.visualElement,!1))}stopAnimation(){_l(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();_l(e=>{if(!Dd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-vr(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Cd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};_l(e=>{let t=this.getAxisMotionValue(e).get();i[e]=hd({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),_l(t=>{let n=this.getAxisMotionValue(t);if(!Dd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(vr(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xd.set(this.visualElement,this);let e=this.visualElement.current,t=Mu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&od(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Cd(t)&&wd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Ed(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),zr.read(r);let o=nu(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(_l(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=_d,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Cd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var wd=e=>`current`in e?e.current:e;function Td(e){let t=!0;return()=>{t?t=!1:e()}}function Ed(e,t,n){let r=Ku(e,Td(n)),i=Ku(t,Td(n));return()=>{r(),i()}}function Dd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Od(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function kd(e,t){let n=bs(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ad(e){return!(e.pointerType===`touch`||cd())}function jd(e,t,n={}){let[r,i,a]=kd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Ad(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Md=(e,t)=>t?e===t||Md(e,t.parentElement):!1,Nd=new WeakSet;function Pd(e){return t=>{t.key===`Enter`&&e(t)}}function Fd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Id=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Pd(()=>{if(Nd.has(n))return;Fd(n,`down`);let e=Pd(()=>{Fd(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Fd(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ld(e){return ku(e)&&!cd()}var Rd=new WeakSet;function zd(e,t,n={}){let[r,i,a]=kd(e,n),o=e=>{let r=e.currentTarget;if(!Ld(e)||Rd.has(e))return;Nd.add(r),n.stopPropagation&&Rd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Nd.has(r)&&Nd.delete(r),Ld(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Md(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),vs(e)&&(e.addEventListener(`focus`,e=>Id(e,i)),!id(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Bd(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=si(i,a,o);return t?s(r):s}var Vd=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Hd=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ud=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Wd(e,t,n,r){wu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Hd.has(n)?n:qo(n),t.attrs[n])}function Gd(e,t,n){let r=Eu(e,t,n);for(let n in e)if(n!==`children`&&(Wo(e[n])||Wo(t[n]))){let t=ea.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Kd=class extends Cu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=nl}getBaseTargetFromProps(e,t){return ta.has(t)?super.getBaseTargetFromProps(e,t)??Xi(t):e[t]}getDefaultValue(e){return ta.has(e)?this.latestValues[e]??Xi(e):void 0}readValueFromInstance(e,t){if(ta.has(t)){let e=Ri(t);return e&&e.default||0}if(Fs.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Hd.has(t)?t:qo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Gd(e,t,n)}build(e,t,n){Is(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Wd(e,t,n,r)}mount(e){this.isSVGTag=Ud(e.tagName),super.mount(e)}};function qd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Jd=[...lu].reverse();function Yd(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>es(e,t,n))),n=Zd(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Jd.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?cu(g)||g===!1?g:void 0:h,v=cu(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||su(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Xd(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Lo(e,n,Ro(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!qd(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Lo(s,n)?.transition?.delayChildren;r.delay=go(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Lo(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!Wo(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Zd(),i=!0}}}function Xd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!qd(t,e):!1}function Zd(){let e={};for(let t of lu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var Qd=(0,U.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function $d(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ef(...e){return t=>{let n=!1,r=e.map(e=>{let r=$d(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():$d(e[t],null)}}}}function tf(...e){return U.useCallback(ef(...e),e)}var K=kt(),nf=class extends U.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(vs(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=vs(e)&&e.offsetWidth||0,r=vs(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function rf({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,U.useId)(),c=(0,U.useRef)(null),l=(0,U.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,U.useContext)(Qd),d=tf(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,U.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
+`)){let e=i.replace(/\s+$/,``);if(!e.trim()){r=[],n.push({type:`paragraph`});continue}let a=Oe.exec(e);if(a){let e=a[1].replace(/\t/g,` `).length,i=/\d/.test(a[2])?`orderedList`:`bulletList`;for(;r.length&&r.at(-1).indent>e;)r.pop();let o=r.at(-1);o&&o.indent===e&&o.list.type!==i&&(r.pop(),o=r.at(-1));let s={type:`listItem`,content:[Ie(a[3],t)]};if(o&&o.indent===e)o.list.content.push(s);else{let t=i===`orderedList`?{type:i,attrs:{start:Number(a[2].replace(/\D/g,``))||1},content:[s]}:{type:i,content:[s]};o?o.list.content.at(-1).content.push(t):n.push(t),r.push({indent:e,list:t})}continue}r=[];let o=De.exec(e.trim());if(o){let e=Pe(o[2],t);n.push(e.length?{type:`heading`,attrs:{level:o[1].length},content:e}:{type:`heading`,attrs:{level:o[1].length}})}else n.push(Ie(i,t))}return t.streaming&&ze(n),{type:`doc`,content:n.length?n:[{type:`paragraph`}]}}var Re=e=>!!e.text?.trim()||!!e.content?.some(Re);function ze(e){for(;e.length&&!Re(e.at(-1));)e.pop();let t=e.at(-1);t?.content&&/List$|^listItem$/.test(t.type)&&ze(t.content)}var Be={link:()=>`[`,mine:()=>`<mine>`,bold:()=>`**`,italic:()=>`*`},Ve={link:e=>`](${e.type===`link`?e.attrs.href:``})`,mine:()=>`</mine>`,bold:()=>`**`,italic:()=>`*`},He=[`mine`,`link`,`bold`,`italic`],Ue=e=>e.replace(/[\\*_[\]]/g,`\\$&`).replace(/<(?=\/?mine>)/g,`\\<`),We=e=>e.replace(/^(\s*)([#+-])/,`$1\\$2`).replace(/^(\s*\d+)([.)])(?=\s)/,`$1\\$2`);function Ge(e=[]){let t=``,n=[];for(let[r,i]of e.entries()){if(i.type===`hardBreak`){t+=` `;continue}let a=t=>{let n=r+1;for(;n<e.length&&e[n].marks?.some(e=>Me(e,t));)n++;return n},o=(i.marks??[]).filter(e=>e.type!==`code`).sort((e,t)=>[`bold`,`italic`].includes(e.type)&&[`bold`,`italic`].includes(t.type)&&a(t)-a(e)||He.indexOf(e.type)-He.indexOf(t.type)),s=0;for(;s<n.length&&s<o.length&&Me(n[s],o[s]);)s++;for(let e=n.length-1;e>=s;e--)t+=Ve[n[e].type](n[e]);for(let e=s;e<o.length;e++)t+=Be[o[e].type](o[e]);n=o;let c=i.text??``;if(i.marks?.some(e=>e.type===`code`)){let e="`".repeat(Math.max(0,...[...c.matchAll(/`+/g)].map(e=>e[0].length))+1),n=/^[` ]|[` ]$/.test(c)?` `:``;t+=`${e}${n}${c}${n}${e}`}else t+=Ue(c)}for(let e=n.length-1;e>=0;e--)t+=Ve[n[e].type](n[e]);return t}function Ke(e,t,n){let r=Number(e.attrs?.start??1);for(let i of e.content??[]){let a=e.type===`orderedList`?`${r++}. `:`- `,[o,...s]=i.content??[];n.push(`${t}${a}${o?.type===`paragraph`?Ge(o.content):``}`);let c=t+` `.repeat(a.length);for(let e of o?.type===`paragraph`?s:i.content??[])e.type===`bulletList`||e.type===`orderedList`?Ke(e,c,n):e.type===`paragraph`&&n.push(`${c}${We(Ge(e.content))}`)}}function qe(e){let t=[];for(let n of e.content??[])n.type===`heading`?t.push(`${`#`.repeat(Number(n.attrs?.level??2))} ${Ge(n.content)}`):n.type===`bulletList`||n.type===`orderedList`?Ke(n,``,t):n.type===`paragraph`&&t.push(We(Ge(n.content)));return t.join(`
+`)}var Je=/\[(\d+(?:\s*,\s*\d+)*)\]/g,Ye=/\[\d+(?:\s*,\s*\d+)*\](?:\s*(?:,|;|&|and)?\s*\[\d+(?:\s*,\s*\d+)*\])*/g,Xe=4,Ze=e=>[...e.matchAll(Je)].flatMap(e=>e[1].split(`,`).map(e=>Number(e.trim())));function Qe(e,t){let n=new Map(t.map(e=>[e.n,e.meetingId])),r=new Set(n.values()).size;return e.replace(Ye,e=>{let t=new Set,i=Ze(e).filter(e=>{let r=n.get(e);return r===void 0||t.has(r)?!1:(t.add(r),!0)});return r>=Xe&&t.size>r/2?``:i.length?`[${i.join(`, `)}]`:``}).replace(/ +([.,;:!?])/g,`$1`).replace(/ +$/gm,``).replace(/ {2,}/g,` `)}var $e=/[.!?…](?=$|[\s"'”’)\]]|\p{Lu})/u,et=/^[ \t]*([.!?…"'”’)\]]+)/u;function tt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`citation`){i.text&&n.push(i);continue}for(;n.at(-1)?.type===`text`;){let e=n.at(-1);if(e.text=e.text.trimEnd(),e.text)break;n.pop()}let a=n.map(e=>e.text??``).join(``),o=e.slice(r+1).map(e=>e.text??``).join(``),s=/[.!?…]["'”’)\]]*$/.test(a),c=et.exec(o),l=c?o.slice(c[0].length):o;if(c&&(s||$e.test(c[1]+l)&&/[.!?…]/.test(c[1])||!t&&!l.trim())){let t=c[0].length,i=t-c[1].length;for(let a=r+1;t&&e[a]?.type===`text`;a++){let r=e[a],o=Math.min(t,r.text.length),s=r.text.slice(Math.min(i,o),o);s&&n.push({...r,text:s}),r.text=r.text.slice(o),i=Math.max(0,i-o),t-=o}}(!t||s||$e.test(o)||/^\s+["“(]*\p{Lu}/u.test(o))&&(i.attrs.gap=/[\p{L}\p{N}\p{M}]$/u.test(n.at(-1)?.text??``),n.push(i))}let r=ot(n.map(e=>e.text??``).join(``)),i=0;for(let e of n)e.type===`citation`&&(e.attrs.sentence=r.find(e=>i>e.index&&i<=e.end)?.text??``),i+=e.text?.length??0;let a=[];for(let e of n){if(e.type!==`citation`){a.push(e);continue}let t=[e];for(;a.at(-1)?.type===`text`;){let e=a.at(-1),n=/\S+$/.exec(e.text??``);if(!n)break;if(a.pop(),t.unshift({...e,text:n[0]}),n.index){a.push({...e,text:e.text.slice(0,n.index)});break}}a.push(t.length>1?{type:`citationAnchor`,content:t}:e)}return a}function nt(e,t,n=!1){let r=Le(Qe(n?e.replace(/\[[\d,\s]*$/,``):e,t).replace(/\n{2,}/g,`
+`),{streaming:n}),i=new Map(t.map(e=>[e.n,e.meetingId])),a=new Map,o=e=>e.content?.length&&e.type!==`paragraph`&&e.type!==`heading`?o(e.content.at(-1)):e,s=n?o(r):null,c=e=>{if(e.type!==`text`){if(!e.content)return[e];let t=e.content.flatMap(c);return[{...e,content:e.type===`paragraph`||e.type===`heading`?tt(t,e===s):t}]}let t=e.text??``,n=[],r=0;for(let o of t.matchAll(Je)){o.index>r&&n.push({...e,text:t.slice(r,o.index)});let s=[];for(let e of o[1].split(`,`).map(Number)){let t=i.get(e);t!==void 0&&(a.has(t)||a.set(t,a.size+1),s.push({source:e,number:a.get(t)}))}s.length&&n.push({type:`citation`,attrs:{marks:s,length:o[0].length}}),r=o.index+o[0].length}return r<t.length&&n.push({...e,text:t.slice(r)}),n};return c(r)[0]}function rt(e){let t=Le(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}),n=e=>e.type===`paragraph`||e.type===`heading`?[e.content??[]]:(e.content??[]).flatMap(n);return n(t)}var it=e=>rt(e).map(e=>e.map(e=>e.text??``).join(``)).join(`
+`),at=new Intl.Segmenter(void 0,{granularity:`sentence`});function ot(e){let t=0;return e.split(`
+`).flatMap(e=>{let n=t;return t+=e.length+1,[...at.segment(e)].filter(e=>e.segment.trim()).map(e=>({text:e.segment.trim(),index:n+e.index,end:n+e.index+e.segment.length}))})}var st=new Set(`a an and are as at be been but by can did do for from had has have he her his how i in is it its me my of on or our she so that the their them there these they this to was we were what when which who will with would you your`.split(` `)),ct=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!st.has(e)));function lt(e,t){let n=ot(it(e)).map(e=>e.text),r=ct(t),i=0,a=-1;return n.forEach((e,t)=>{let n=[...ct(e)].filter(e=>r.has(e)).length;n>a&&(i=t,a=n)}),{before:n[i-1]??``,match:n[i]??``,after:n[i+1]??``}}var ut=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function dt(e,t,n=0){let r=ut(t);if(!r)return-1;let i=e.map(e=>ut(it(e))),a=e=>e.sort((e,t)=>Math.abs(e-n)-Math.abs(t-n))[0]??-1,o=a(i.flatMap((e,t)=>e.includes(r)?[t]:[]));if(o>=0)return o;let s=ut(t.replace(/^[^:\n]{1,80}:\s*/,``)),c=i.join(` `).indexOf(s);if(s&&c>=0){let e=0;return i.findIndex(t=>(e+=t.length+1,e>c))}return a(i.flatMap((e,t)=>e&&r.includes(e)?[t]:[]))}var ft={"Take notes · {title}":`Take notes · {title}`,"Take notes · {count} now":{one:`Take notes · {count} now`,other:`Take notes · {count} now`},Now:`Now`,"in {count} min":{one:`in {count} min`,other:`in {count} min`},"Has notes":`Has notes`,"No matching meetings with {name}.":`No matching meetings with {name}.`,"No matching meetings on {date}.":`No matching meetings on {date}.`,"No matching meetings with {name} on {date}.":`No matching meetings with {name} on {date}.`,"Meetings with {name}":`Meetings with {name}`,"{count} min":{one:`{count} min`,other:`{count} min`},"Starts in {count} min":{one:`Starts in {count} min`,other:`Starts in {count} min`},"Exported {count} meetings":{one:`Exported 1 meeting`,other:`Exported {count} meetings`},"Added {count} meetings.":{one:`Added 1 meeting.`,other:`Added {count} meetings.`},"{count} were already here.":{one:`1 was already here.`,other:`{count} were already here.`},"{count} meetings":{one:`1 meeting`,other:`{count} meetings`},"Meetings in the Trash are deleted for good after {count} days, with their recordings.":{one:`Meetings in the Trash are deleted for good after 1 day, with their recordings.`,other:`Meetings in the Trash are deleted for good after {count} days, with their recordings.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this Mac for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this computer for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.`},"{count} languages supported":{one:`{count} language supported`,other:`{count} languages supported`},"and {count} more":{one:`and {count} more`,other:`and {count} more`},"{count} left":{one:`{count} left`,other:`{count} left`},"Reading {count} meetings…":{one:`Reading 1 meeting…`,other:`Reading {count} meetings…`},"Still reading {count} meetings…":{one:`Still reading 1 meeting…`,other:`Still reading {count} meetings…`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.":`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,"Yogurt's AI is ready. Summaries and Ask now work.":`Yogurt's AI is ready. Summaries and Ask now work.`,"AI download stopped":`AI download stopped`,"{done} of {total} GB":`{done} of {total} GB`,"{progress} · about {minutes} min left":`{progress} · about {minutes} min left`,"{count} selected":{one:`{count} selected`,other:`{count} selected`},"Add {count} meetings to folder":{one:`Add {count} meeting to folder`,other:`Add {count} meetings to folder`},"Move {count} meetings to Trash":{one:`Move {count} meeting to Trash`,other:`Move {count} meetings to Trash`},"{count} meetings moved to Trash":{one:`{count} meeting moved to Trash`,other:`{count} meetings moved to Trash`},"Upgrading AI":`Upgrading AI`,"Upgrading AI · {percent}":`Upgrading AI · {percent}`,"AI upgrade paused":`AI upgrade paused`,"Skip for now":`Skip for now`,"Better notes model":`Better notes model`,"Download ({size} GB)":`Download ({size} GB)`,"Couldn't change the notes model. Try again.":`Couldn't change the notes model. Try again.`,"Notes use this model. Removing it brings back the smaller one.":`Notes use this model. Removing it brings back the smaller one.`,"Getting the smaller model · {progress}":`Getting the smaller model · {progress}`,"The larger model keeps running summaries and Ask until then, and is removed after.":`The larger model keeps running summaries and Ask until then, and is removed after.`,"Removing…":`Removing…`,"Open Settings":`Open Settings`,"Download stopped":`Download stopped`,"Upgrade paused":`Upgrade paused`,"You can record meetings. AI summaries and Ask work when this finishes.":`You can record meetings. AI summaries and Ask work when this finishes.`,"Once this model is ready, we'll remove the old one.":`Once this model is ready, we'll remove the old one.`,"More detailed, accurate notes. Replaces the current model, so you don't keep both.":`More detailed, accurate notes. Replaces the current model, so you don't keep both.`,"about {minutes} min left":`about {minutes} min left`,"AI upgrade skipped":`AI upgrade skipped`,Suggested:`Suggested`,"Dismiss suggestion":`Dismiss suggestion`,"Delete recording":`Delete recording`,"Delete recording?":`Delete recording?`,"The audio is deleted for good. Your transcript and notes stay.":`The audio is deleted for good. Your transcript and notes stay.`,"Keep the audio until the transcript is saved.":`Keep the audio until the transcript is saved.`,"Couldn't delete the recording. Try again.":`Couldn't delete the recording. Try again.`,"Keep audio recordings after meetings":`Keep audio recordings after meetings`,"Recording deleted":`Recording deleted`,"When off, new meetings' audio is deleted once the summary is saved.":`When off, new meetings' audio is deleted once the summary is saved.`,Settings:`Settings`},pt=[{id:`en`,name:`English`,english:`English`},{id:`ar`,name:`العربية`,english:`Arabic`,rtl:!0},{id:`bn`,name:`বাংলা`,english:`Bengali`},{id:`zh-CN`,name:`简体中文`,english:`Chinese (Simplified)`},{id:`zh-TW`,name:`繁體中文`,english:`Chinese (Traditional)`},{id:`cs`,name:`Čeština`,english:`Czech`},{id:`da`,name:`Dansk`,english:`Danish`},{id:`nl`,name:`Nederlands`,english:`Dutch`},{id:`fil`,name:`Filipino`,english:`Filipino`},{id:`fi`,name:`Suomi`,english:`Finnish`},{id:`fr`,name:`Français`,english:`French`},{id:`de`,name:`Deutsch`,english:`German`},{id:`el`,name:`Ελληνικά`,english:`Greek`},{id:`he`,name:`עברית`,english:`Hebrew`,rtl:!0},{id:`hi`,name:`हिन्दी`,english:`Hindi`},{id:`hu`,name:`Magyar`,english:`Hungarian`},{id:`id`,name:`Bahasa Indonesia`,english:`Indonesian`},{id:`it`,name:`Italiano`,english:`Italian`},{id:`ja`,name:`日本語`,english:`Japanese`},{id:`ko`,name:`한국어`,english:`Korean`},{id:`ms`,name:`Bahasa Melayu`,english:`Malay`},{id:`nb`,name:`Norsk`,english:`Norwegian`},{id:`pl`,name:`Polski`,english:`Polish`},{id:`pt-BR`,name:`Português`,english:`Portuguese`},{id:`ro`,name:`Română`,english:`Romanian`},{id:`ru`,name:`Русский`,english:`Russian`},{id:`es`,name:`Español`,english:`Spanish`},{id:`sv`,name:`Svenska`,english:`Swedish`},{id:`th`,name:`ไทย`,english:`Thai`},{id:`tr`,name:`Türkçe`,english:`Turkish`},{id:`uk`,name:`Українська`,english:`Ukrainian`},{id:`vi`,name:`Tiếng Việt`,english:`Vietnamese`}],mt=e=>pt.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,ht=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":ft})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function gt(e,t,n,r){let i=e[t]?.[n]??e.en?.[n]??n;if(typeof i!=`string`){let e=typeof r?.count==`number`?r.count:0;i=i[new Intl.PluralRules(t).select(e)]??i.other??n}return r?i.replace(/\{(\w+)\}/g,(e,n)=>{let i=r[n];return i===void 0?e:typeof i==`number`?new Intl.NumberFormat(t).format(i):i}):i}var _t=`en`,vt=new Set,yt=()=>_t;function bt(e){return vt.add(e),()=>{vt.delete(e)}}var G=(e,t)=>gt(ht,_t,e,t),xt=e=>e,St={folder:xt(`Folder`),star:xt(`Star`),heart:xt(`Heart`),flag:xt(`Flag`),bookmark:xt(`Bookmark`),briefcase:xt(`Briefcase`),users:xt(`People`),handshake:xt(`Handshake`),message:xt(`Conversation`),video:xt(`Video`),calendar:xt(`Calendar`),clock:xt(`Clock`),target:xt(`Target`),lightbulb:xt(`Idea`),rocket:xt(`Rocket`),code:xt(`Code`),palette:xt(`Palette`),megaphone:xt(`Megaphone`),graduation:xt(`Graduation cap`),book:xt(`Book`),flask:xt(`Flask`),coffee:xt(`Coffee`),house:xt(`House`),plane:xt(`Plane`)},Ct={default:xt(`Default`),violet:xt(`Purple`),blue:xt(`Blue`),teal:xt(`Teal`),green:xt(`Green`),amber:xt(`Amber`),orange:xt(`Orange`),rose:xt(`Pink`)},wt={icon:`folder`,color:`default`},Tt=Object.keys(Ct).filter(e=>e!=="default");function Et(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%Tt.length}function Dt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ot(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kt([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var At=(e,t,n)=>n>t?t:n<e?e:n,jt={},Mt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Nt=e=>typeof e==`object`&&!!e,Pt=e=>/^0[^.\s]+$/u.test(e);function Ft(e){let t;return()=>(t===void 0&&(t=e()),t)}var It=e=>e,Lt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Rt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},zt=class{constructor(){this.subscriptions=[]}add(e){return Dt(this.subscriptions,e),()=>this.remove(e)}remove(e){Ot(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Bt=e=>e*1e3,Vt=e=>e/1e3,Ht=(e,t)=>t?1e3/t*e:0,Ut=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Wt=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Gt(e,t,n,r){return e===t&&n===r?It:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Wt(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Wt(s+1e-7,e,n)-i-r)}return Wt(s,t,r)}}var Kt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qt=e=>t=>1-e(1-t),Jt=Gt(.33,1.53,.69,.99),Yt=qt(Jt),Xt=Kt(Yt),Zt=e=>e>=1?1:(e*=2)<1?.5*Yt(e):.5*(2-2**(-10*(e-1))),Qt=e=>1-Math.sin(Math.acos(e)),$t=qt(Qt),en=Kt(Qt),tn=Gt(.42,0,1,1),nn=Gt(0,0,.58,1),rn=Gt(.42,0,.58,1),an=e=>Array.isArray(e)&&typeof e[0]!=`number`;function on(e,t){return an(e)?e[Ut(0,e.length,t)]:e}var sn=e=>Array.isArray(e)&&typeof e[0]==`number`,cn={linear:It,easeIn:tn,easeInOut:rn,easeOut:nn,circIn:Qt,circInOut:en,circOut:$t,backIn:Yt,backInOut:Xt,backOut:Jt,anticipate:Zt},ln=e=>typeof e==`string`,un=e=>{if(sn(e)){e.length;let[t,n,r,i]=e;return Gt(t,n,r,i)}return ln(e)?(cn[e],`${e}`,cn[e]):e},dn={delta:0,timestamp:0,isProcessing:!1},fn;function pn(){fn=void 0}var mn={now:()=>(fn===void 0&&mn.set(dn.isProcessing||jt.useManualTiming?dn.timestamp:performance.now()),fn),set:e=>{fn=e,queueMicrotask(pn)}},hn=e=>Math.round(e*1e5)/1e5,gn=e=>t=>typeof t==`string`&&t.startsWith(e),_n=gn(`--`),vn=gn(`var(--`),yn=e=>vn(e)?bn.test(e.split(`/*`)[0].trim()):!1,bn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function xn(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Sn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Cn={...Sn,transform:e=>At(0,1,e)},wn={...Sn,default:1},Tn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function En(e){return e==null}var Dn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,On=(e,t)=>n=>!!(typeof n==`string`&&Dn.test(n)&&n.startsWith(e)||t&&!En(n)&&Object.prototype.hasOwnProperty.call(n,t)),kn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Tn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},An=e=>At(0,255,e),jn={...Sn,transform:e=>Math.round(An(e))},Mn={test:On(`rgb`,`red`),parse:kn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+jn.transform(e)+`, `+jn.transform(t)+`, `+jn.transform(n)+`, `+hn(Cn.transform(r))+`)`};function Nn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Pn={test:On(`#`),parse:Nn,transform:Mn.transform},Fn=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),In=Fn(`deg`),Ln=Fn(`%`),K=Fn(`px`),Rn=Fn(`vh`),zn=Fn(`vw`),Bn={...Ln,parse:e=>Ln.parse(e)/100,transform:e=>Ln.transform(e*100)},Vn={test:On(`hsl`,`hue`),parse:kn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ln.transform(hn(t))+`, `+Ln.transform(hn(n))+`, `+hn(Cn.transform(r))+`)`},Hn={test:e=>Mn.test(e)||Pn.test(e)||Vn.test(e),parse:e=>Mn.test(e)?Mn.parse(e):Vn.test(e)?Vn.parse(e):Pn.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Mn.transform(e):Vn.transform(e),getAnimatableNone:e=>{let t=Hn.parse(e);return t.alpha=0,Hn.transform(t)}},Un=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Wn=new RegExp(Tn.source),Gn=new RegExp(Un.source,`i`);function Kn(e){return isNaN(e)&&typeof e==`string`&&(Wn.test(e)||Gn.test(e))}var qn=`number`,Jn=`color`,Yn=`var`,Xn=`var(`,Zn="${}",Qn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function $n(e){let t=e.toString();return Wn.test(t)||Gn.test(t)}function er(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Qn,e=>(Hn.test(e)?(r.color.push(a),i.push(Jn),n.push(Hn.parse(e))):e.startsWith(Xn)?(r.var.push(a),i.push(Yn),n.push(e)):(r.number.push(a),i.push(qn),n.push(parseFloat(e))),++a,Zn)).split(Zn),indexes:r,types:i}}function tr(e){return er(e).values}function nr({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===qn?hn(r[a]):e===Jn?Hn.transform(r[a]):r[a]}return i}}function rr(e){return nr(er(e))}var ir=e=>typeof e==`number`?0:Hn.test(e)?Hn.getAnimatableNone(e):e,ar=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ir(e);function or(e){let t=er(e);return nr(t)(t.values.map((e,n)=>ar(e,t.split[n])))}var sr={test:Kn,parse:tr,createTransformer:rr,getAnimatableNone:or};function cr(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=cr(s,r,e+1/3),a=cr(s,r,e),o=cr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ur(e,t){return n=>n>0?t:e}var dr=(e,t,n)=>e+(t-e)*n,fr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pr=[Pn,Mn,Vn],mr=e=>pr.find(t=>t.test(e));function hr(e){let t=mr(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Vn&&(n=lr(n)),n}var gr=(e,t)=>{let n=hr(e),r=hr(t);if(!n||!r)return ur(e,t);let i={...n};return e=>(i.red=fr(n.red,r.red,e),i.green=fr(n.green,r.green,e),i.blue=fr(n.blue,r.blue,e),i.alpha=dr(n.alpha,r.alpha,e),Mn.transform(i))},_r=new Set([`none`,`hidden`]);function vr(e,t){return _r.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yr(e,t){return n=>dr(e,t,n)}function br(e){return typeof e==`number`?yr:typeof e==`string`?yn(e)?ur:Hn.test(e)?gr:wr:Array.isArray(e)?xr:typeof e==`object`?Hn.test(e)?gr:Sr:ur}function xr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>br(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Sr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=br(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Cr(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var wr=(e,t)=>{let n=sr.createTransformer(t),r=er(e),i=er(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?_r.has(e)&&!i.values.length||_r.has(t)&&!r.values.length?vr(e,t):Lt(xr(Cr(r,i),i.values),n):(`${e}${t}`,ur(e,t))},Tr=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Er(e,t){let n=Tr.exec(e);if(!n)return;let r=Tr.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>hn(dr(a,o,e))+i}function Dr(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return dr(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Er(e,t);if(n)return n}return br(e)(e,t)}var Or=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function kr(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Ar=40;function jr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Or.reduce((e,t)=>(e[t]=kr(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=jt.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Ar),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Or.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Or.length;t++)o[Or[t]].cancel(e)},state:n,steps:o}}var{schedule:Mr,cancel:Nr,steps:Pr}=jr(typeof requestAnimationFrame<`u`?requestAnimationFrame:It,!0,dn),Fr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Mr.update(t,e),stop:()=>Nr(t),now:()=>dn.isProcessing?dn.timestamp:mn.now()}},Ir=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Lr=2e4;function Rr(e,t=50,n=Lr,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function zr(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Rr(o),Lr);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Vt(s)}}var Br={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Vr=e=>e<0?1/Math.max(1+e,Br.minDamping):Math.max(1-e,Br.minDamping);function Hr(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Gr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Ur(e,t){return e*Math.sqrt(1-t*t)}var Wr=12;function Gr(e,t,n){let r=n;for(let n=1;n<Wr;n++)r-=e(r)/t(r);return r}var Kr=.001;function qr({duration:e=Br.duration,bounce:t=Br.bounce}){let n,r;Br.maxDuration;let i=Vr(t);e=At(Br.minDuration,Br.maxDuration,Vt(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Ur(t,i),o=Math.exp(-r);return Kr-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Ur(t*t,i);return(-n(t)+Kr>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Gr(n,r,a),s=o*Hr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Bt(e)}}var Jr=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Yr(e,t){if(Jr(e,t))return e}function Xr(e){let t=Yr(e.stiffness),n=Yr(e.damping,!0),r=Yr(e.mass),i={...e,stiffness:t??Br.stiffness,damping:n??Br.damping,mass:r??Br.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Vr(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Hr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,qr(i)),i.isResolvedFromDuration=!0;Jr(i.stiffness)&&Jr(i.damping,!0)||(i.stiffness=Br.stiffness,i.damping=Br.damping)}return i}function Zr(e=Br.visualDuration,t=Br.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Xr({...n}),f=e=>d?0:-Vt(e),p=s/(2*Math.sqrt(o*c)),m=Vt(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Br.restSpeed.granular:Br.restSpeed.default),g.restDelta=n.restDelta||(e?Br.restDelta.granular:Br.restDelta.default)};_();let v,y,b;if(p<1){let e=Ur(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Bt(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Bt(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Rr(S),Lr),t=Ir(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Zr.applyToOptions=e=>{let t=zr(e,100,Zr);return e.ease=t.ease,e.duration=Bt(t.duration),e.type=`keyframes`,e};function Qr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Zr({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function $r(e,t,n){let r=[],i=n||jt.mix||Dr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Lt(Array.isArray(t)?t[n]||It:t,a)),r.push(a)}return r}function ei(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=$r(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Rt(e[r],e[r+1],n);return s[r](i)};return n?t=>l(At(e[0],e[a-1],t)):l}function ti(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Rt(0,t,r);e.push(dr(n,1,i))}}function ni(e){let t=[0];return ti(t,e.length-1),t}function ri(e,t){return e.map(e=>e*t)}function ii(e,t){return e.map(()=>t||rn).splice(0,e.length-1)}function ai({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=an(r)?r.map(un):un(r)||rn,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(jt.mix||Dr)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?At(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=ei(ri(n&&n.length===t.length?n:ni(t),e),t,{ease:Array.isArray(i)?i:ii(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var oi=5;function si(e,t,n){let r=Math.max(t-oi,0);return Ht(n-e(r),t-r)}function ci(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):si(t=>e.next(t).value,t,e.next(t).value)}var li=e=>e!==null;function ui(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(li),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var di={decay:Qr,inertia:Qr,tween:ai,keyframes:ai,spring:Zr};function fi(e){typeof e.type==`string`&&(e.type=di[e.type])}var pi=40,mi=(e,t)=>t-e>pi&&!jt.useManualTiming?t:e;function hi(e,t){return{kind:e,animation:t,timestamp:mn.now(),frameTimestamp:dn.timestamp,frameIsProcessing:dn.isProcessing}}function gi(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...hi(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function _i(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...hi(`layout-animation-start`,e),node:t})}catch{}}var vi=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},yi=e=>e/100,bi=e=>Math.round(e*1e4)/1e4,xi=class extends vi{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==mn.now()&&this.tick(mn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),gi(this,this.options)}initAnimation(){let{options:e}=this;fi(e);let{type:t=ai,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ai;s!==ai&&typeof o[0]!=`number`&&(this.mixKeyframes=Lt(yi,Dr(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Rr(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=mi(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==Qr&&(f.value=ui(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??bi((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==Qr?ui(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=At(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return Vt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vt(e)}get time(){return Vt(this.currentTime)}set time(e){e=Bt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return ci(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(mn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Vt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Fr,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(mn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Si=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ci(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Tn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Si.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var wi=/\b([a-z-]*)\(.*?\)/gu,Ti={...sr,getAnimatableNone:e=>{let t=e.match(wi);return t?t.map(Ci).join(` `):e}},Ei={...sr,getAnimatableNone:e=>{let t=sr.parse(e);return sr.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Di={...Sn,transform:Math.round},Oi={rotate:In,pathRotation:In,rotateX:In,rotateY:In,rotateZ:In,scale:wn,scaleX:wn,scaleY:wn,scaleZ:wn,skew:In,skewX:In,skewY:In,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Cn,originX:Bn,originY:Bn,originZ:K},ki={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,inset:K,insetBlock:K,insetBlockStart:K,insetBlockEnd:K,insetInline:K,insetInlineStart:K,insetInlineEnd:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockStart:K,paddingBlockEnd:K,paddingInline:K,paddingInlineStart:K,paddingInlineEnd:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockStart:K,marginBlockEnd:K,marginInline:K,marginInlineStart:K,marginInlineEnd:K,fontSize:K,backgroundPositionX:K,backgroundPositionY:K,...Oi,zIndex:Di,fillOpacity:Cn,strokeOpacity:Cn,numOctaves:Di},Ai={...ki,color:Hn,backgroundColor:Hn,outlineColor:Hn,fill:Hn,stroke:Hn,borderColor:Hn,borderTopColor:Hn,borderRightColor:Hn,borderBottomColor:Hn,borderLeftColor:Hn,filter:Ti,WebkitFilter:Ti,mask:Ei,WebkitMask:Ei},ji=e=>Ai[e],Mi=new Set([Ti,Ei]);function Ni(e,t){let n=ji(e);return Mi.has(n)||(n=sr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Pi(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Fi=e=>e*180/Math.PI,Ii=e=>Ri(Fi(Math.atan2(e[1],e[0]))),Li={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ii,rotateZ:Ii,skewX:e=>Fi(Math.atan(e[1])),skewY:e=>Fi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ri=e=>(e%=360,e<0&&(e+=360),e),zi=Ii,Bi=e=>Math.hypot(e[0],e[1]),Vi=e=>Math.hypot(e[4],e[5]),Hi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bi,scaleY:Vi,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Bi(e)+Vi(e))/2,rotateX:e=>Ri(Fi(Math.atan2(e[6],e[5]))),rotateY:e=>Ri(Fi(Math.atan2(-e[2],e[0]))),rotateZ:zi,rotate:zi,skewX:e=>Fi(Math.atan(e[4])),skewY:e=>Fi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ui(e){return+!!e.includes(`scale`)}function Wi(e,t){if(!e||e===`none`)return Ui(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Hi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Li,i=t}if(!i)return Ui(t);let a=r[t],o=i[1].split(`,`).map(Ki);return typeof a==`function`?a(o):o[a]}var Gi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Wi(n,t)};function Ki(e){return parseFloat(e.trim())}var qi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ji=new Set([...qi,`pathRotation`]),Yi=e=>e===Sn||e===K,Xi=new Set([`x`,`y`,`z`]),Zi=qi.filter(e=>!Xi.has(e));function Qi(e){let t=[];return Zi.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var $i=new Set([`bottom`,`right`]);function ea(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var ta={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>ea(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>ea(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Wi(e,`x`),y:({transform:e})=>Wi(e,`y`)};ta.translateX=ta.x,ta.translateY=ta.y;var na=new Set,ra=!1,ia=!1,aa=!1;function oa(){if(ia){let e=[],t=new Set,n=new Set;na.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),$i.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Qi(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ia=!1,ra=!1,na.forEach(e=>e.complete(aa)),na.clear()}function sa(){na.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ia=!0)})}function ca(){aa=!0,sa(),oa(),aa=!1}function la(e,t,n){if(typeof e==`string`){if(Mt(e)||Pt(e))return parseFloat(e);if(!sr.test(e)&&sr.test(n))return Ni(t,n)}return e??void 0}var ua=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(na.add(this),ra||(ra=!0,Mr.read(sa),Mr.resolveKeyframes(oa))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=la(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Pi(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),na.delete(this)}cancel(){this.state===`scheduled`&&(na.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},da=e=>e.startsWith(`--`);function fa(e,t,n){da(t)?e.style.setProperty(t,n):e.style[t]=n}var pa={};function ma(e,t){let n=Ft(e);return()=>pa[t]??n()}var ha=ma(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ga=ma(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),_a=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,va={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:_a([0,.65,.55,1]),circOut:_a([.55,0,1,.45]),backIn:_a([.31,.01,.66,-.59]),backOut:_a([.33,1.53,.69,.99])};function ya(e,t){if(e)return typeof e==`function`?ga()?Ir(e,t):`ease-out`:sn(e)?_a(e):Array.isArray(e)?e.map(e=>ya(e,t)||va.easeOut):va[e]}function ba(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ya(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function xa(e){return typeof e==`function`&&`applyToOptions`in e}function Sa({type:e,...t}){return xa(e)&&ga()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Ca=class extends vi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Sa(e);this.animation=ba(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ui(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),fa(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},gi(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Vt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Vt(e)}get time(){return Vt(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Bt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ha()?(this.animation.timeline=e,t?.(this.animation),It):n(this)}},wa={anticipate:Zt,backInOut:Xt,circInOut:en};function Ta(e){return e in wa}function Ea(e){typeof e.ease==`string`&&Ta(e.ease)&&(e.ease=wa[e.ease])}var Da=class extends Ca{constructor(e){Ea(e),fi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(mn.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new xi({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?At(0,10,a):0,s=this.sample(a);n&&r&&fa(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Oa=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(sr.test(e)||e===`0`)&&!e.startsWith(`url(`));function ka(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Aa(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Oa(i,t),s=Oa(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):ka(e)||(n===`spring`||xa(n))&&r}function ja(e){e.duration=0,e.type=`keyframes`}var Ma=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Na=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pa(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Na.test(e[t]))return!0;return!1}var Fa=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ia=Ft(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function La(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Ma.has(n)||Fa.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ia()&&(Ma.has(n)||Fa.has(n)&&Pa(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ra=(e,t)=>t&&typeof e==`number`?t.transform(e):e,za={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ba=qi.length;function Va(e,t,n){let r=``,i=!0;for(let a=0;a<Ba;a++){let o=qi[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ra(s,ki[o]);if(!c){i=!1;let t=za[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ra(a,ki.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Ha=new WeakMap,Ua=200,Wa=.001,Ga=.1,Ka=.001,qa=100,Ja=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ya=(e,t)=>e-t,Xa=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(dr(e,t,i/n));return r},Za=e=>e.motionValue.owner,Qa=e=>Ha.get(e),$a=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),eo=({name:e,motionValue:t})=>e&&qi.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ia()&&ga();function to(e){let t=Za(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&($a(t,`transform`)||`none`)===`none`&&!$a(t,`pathRotation`)&&!t.projection?.isProjecting()}var no=class extends xi{constructor(e){let t=Za(e).current,{driver:n=Fr}=e,r,i=to(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Qa(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Qa(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return Qa(Za(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(mn.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=sn(n)?_a(n):Ja(n)&&va[n];if(o&&!i&&!r&&e.length===2&&t===ai&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||ai)===ai?u||ni(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=mn.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||ro(Za(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(mn.now())}get time(){return this.isAccelerated()?Vt(At(0,this.totalDuration,this.at(mn.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function ro(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?qi:a){let a=r.get(s),c=t===void 0?$a(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(za[e]||e)+`(`+Ra(r[e],ki[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Va(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=mn.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ua,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Xa(t,n,i).concat(r).sort(Ya),o=e=>Rt(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Wa>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Wa)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Wa)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Wa))return`linear`;let l=[],u=(e,t=c(e))=>l.push(bi(t)+` `+bi(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Ka:Ga))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Xa(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Ya))e>c&&o(c,e,0),c=e;return i.sort(Ya)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Rt(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=qi.filter(t=>{if(r.has(t))return!0;let n=i[t]=$a(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,Qa(t)===O&&Ha.delete(t),O.isJS||_(),!0),D=()=>{let t=mn.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=$a(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<qa)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,dn.isProcessing?Mr.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if($a(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Ha.set(t,O),O}var io=class extends vi{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=mn.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ua;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=mn.now();let u=!0;Aa(e,i,a,o)||(u=!1,(jt.instantAnimations||!s)&&l?.(ui(e,n,t)),e[0]=e[e.length-1],ja(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&La(n),p=!f&&eo(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=mi(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Da(n)}catch{m=new xi(n)}}else m=p?new no(n):new xi(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ca()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},ao=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return oo(this.animations,`duration`)}get iterationDuration(){return oo(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function oo(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var so=class extends ao{then(e,t){return this.finished.finally(e).then(()=>{})}};function co(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var lo=30,uo=e=>!isNaN(parseFloat(e)),fo={current:void 0},po=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=mn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=mn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uo(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new zt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new zt,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Mr.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){fo.current&&fo.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>lo)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,lo);return Ht(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function mo(e,t){return new po(e,t)}function ho(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function go(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ho(n,e)}var _o={type:`spring`,stiffness:500,damping:25,restSpeed:10},vo=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yo={type:`keyframes`,duration:.8},bo={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},xo=(e,{keyframes:t})=>t.length>2?yo:Ji.has(e)?e.startsWith(`scale`)?vo(t[1]):_o:bo,So=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Co(e){for(let t in e)if(!So.has(t))return!0;return!1}var wo=(e,t,n,r={},i,a)=>o=>{let s=go(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Bt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Co(s)||Object.assign(u,xo(e,u)),u.duration&&=Bt(u.duration),u.repeatDelay&&=Bt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ja(u),u.delay===0&&(d=!0)),(jt.instantAnimations||jt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ja(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ui(u.keyframes,s);if(e!==void 0){Mr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new xi(u):new io(u)},To=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Eo(e){let t=To.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Do(e,t,n=1){`${e}`;let[r,i]=Eo(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Mt(e)?parseFloat(e):e}return yn(i)?Do(i,t,n+1):i}function Oo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ko(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Oo(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Ao(e,t,n){return ko(e.getProps(),t,n,e)}var jo=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Mo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...qi]),No=e=>Array.isArray(e);function Po(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mo(n))}function Fo(e){return No(e)?e[e.length-1]||0:e}function Io(e,t){let{transitionEnd:n={},transition:r={},...i}=Ao(e,t)||{};i={...i,...n};for(let t in i)Po(e,t,Fo(i[t]))}var Lo=e=>!!(e&&e.getVelocity);function Ro(e){return!!(Lo(e)&&e.add)}function zo(e,t){let n=e.getValue(`willChange`);if(Ro(n))return n.add(t);if(!n&&jt.WillChange){let n=new jt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Bo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Vo=`data-`+Bo(`framerAppearId`);function Ho(e){return e.props[Vo]}var Uo=typeof window<`u`;function Wo({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Go(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ho(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Wo(f,t))continue;let o={delay:n,...go(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Mr.update(()=>r.set(i));continue}let p=!1;if(Uo&&window.MotionHandoffAnimation){let n=Ho(e);if(n){let e=window.MotionHandoffAnimation(n,t,Mr);e!==null&&(o.startTime=e,p=!0)}}zo(e,t);let m=l??e.shouldReduceMotion;r.start(wo(t,r,i,m&&Mo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Mr.update(()=>{o&&Io(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ko(e,t,n={}){let r=Ao(e,t,jo(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Go(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Ko(e,t,{...n,delay:r+(typeof o==`function`?0:o)+co(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function qo(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ko(e,t,n))):typeof t==`string`?Ko(e,t,n):Promise.all(Go(e,Ao(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Jo={test:e=>e===`auto`,parse:e=>e},Yo=e=>t=>t.test(e),Xo=[Sn,K,Ln,In,zn,Rn,Jo],Zo=e=>Xo.find(Yo(e));function Qo(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Pt(e)}var $o=new Set([`auto`,`none`,`0`]);function es(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!$o.has(t)&&$n(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Ni(n,i))}var ts=class extends ua{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(xn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),yn(r))){let i=Do(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Mo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Zo(r),o=Zo(i);if(xn(r)!==xn(i)&&ta[n])this.needsMeasurement=!0;else if(a!==o){if(Yi(a)&&Yi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ta[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Qo(e[t]))&&n.push(t);n.length&&es(e,n,t)}measure(){let{element:e,name:t}=this;return ta[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ns=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],rs=[];function is(e){typeof e.test==`function`&&e.read,as(e),rs.unshift(e)}function as(e){Ot(rs,e)}function ss(e){return rs.find(t=>t.test(e))}function cs(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?Mr.update(()=>l.set(c)):(l.start(wo(o,l,c,s&&Mo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>Mr.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function ls(e,t,n,r,i){return cs(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=us(i)??e.read(t,r,i),`${r}`}a=mo(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function us(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function ds(e){return Nt(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function fs(e){return Nt(e)&&`ownerSVGElement`in e}function ps(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ms=class{constructor(e=Mr.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function hs(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new ms(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var gs={};function _s(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(gs[i]||(gs[i]=(za[i]||i)+`(`))+Ra(a,Oi[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ra(i,Oi.pathRotation)+`)`),t||`none`}var vs=new Set([`originX`,`originY`,`originZ`]),ys=(e,t)=>Ra(e.get(t)?.get(),ki[t]),bs=(e,t,n,r)=>{let i,a;if(Ji.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>qi.indexOf(e)-qi.indexOf(t)))}t.get(`transform`)||(!ds(e)&&!t.get(`transformBox`)&&bs(e,t,`transformBox`,new po(`fill-box`)),t.set(`transform`,new po(`none`),()=>{Ha.get(e)?.check(),e.style.transform=_s(t)})),a=t.get(`transform`)}else vs.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new po(``),()=>{let n=ys(t,`originX`)??`50%`,r=ys(t,`originY`)??`50%`,i=ys(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=da(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ra(r.getCurrent(),ki[n])};return t.set(n,r,i,a)},xs=e=>ds(e)||fs(e),Ss=(e,t)=>{if(Ji.has(t))return Gi(e,t);let n=getComputedStyle(e),r=da(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Cs=hs(bs,{test:xs,read:Ss});function ws(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Ji.has(e))o=!0;else if(_n(e))i[e]=n;else{let t=Ra(n,ki[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Va(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ts={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Es={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ds(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ts:Es;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Os=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ks(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ws(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Os)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ds(d,i,a,o,!1)}function As(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var js=(e,t,n,r,i=n)=>{let a=As(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Bo(i));let o=ki[n]||ki[i],s=a?()=>{e[i]=Ra(r.get(),ki[n])}:()=>{let t=Ra(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ms(e,t,n,r){return Mr.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new po(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Ns=hs((e,t,n,r)=>n.startsWith(`path`)&&!Ji.has(n)?Ms(e,t,n,r):n.startsWith(`attr`)?js(e,t,n,r,Ps(n)):(Ji.has(n)||vs.has(n)||da(n)||n in e.style?bs:js)(e,t,n,r),{test:fs,read:(e,t)=>Ji.has(t)?ki[t]?.default||0:da(t)||Os.includes(t)?Ss(e,t)||e.getAttribute(Bo(t))||0:(t=Ps(t),e.getAttribute(Bo(t))??e.getAttribute(t)??void 0)});function Ps(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Fs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Is({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ls(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rs(e){return e===void 0||e===1}function zs({scale:e,scaleX:t,scaleY:n}){return!Rs(e)||!Rs(t)||!Rs(n)}function Bs(e){return zs(e)||Vs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Vs(e){return Hs(e.x)||Hs(e.y)}function Hs(e){return e&&e!==`0%`}function Us(e,t,n){return n+t*(e-n)}function Ws(e,t,n,r,i){return i!==void 0&&(e=Us(e,i,r)),Us(e,n,r)+t}function Gs(e,t=0,n=1,r,i){e.min=Ws(e.min,t,n,r,i),e.max=Ws(e.max,t,n,r,i)}function Ks(e,{x:t,y:n}){Gs(e.x,t.translate,t.scale,t.originPoint),Gs(e.y,n.translate,n.scale,n.originPoint)}var qs=.999999999999,Js=1.0000000000001;function Ys(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Xs(e.x,-a.scroll.offset.x),Xs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ks(e,o)),r&&Bs(a.latestValues)&&$s(e,a.latestValues,a.layout?.layoutBox))}t.x<Js&&t.x>qs&&(t.x=1),t.y<Js&&t.y>qs&&(t.y=1)}function Xs(e,t){e.min+=t,e.max+=t}function Zs(e,t,n,r,i=.5){Gs(e,t,n,dr(e.min,e.max,i),r)}function Qs(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function $s(e,t,n){let r=n??e;Zs(e.x,Qs(t.x,r.x),t.scaleX,t.scale,t.originX),Zs(e.y,Qs(t.y,r.y),t.scaleY,t.scale,t.originY)}function ec(e,t){return Fs(Ls(e.getBoundingClientRect(),t))}function tc(e,t,n){let r=ec(e,n),{scroll:i}=t;return i&&(Xs(r.x,i.offset.x),Xs(r.y,i.offset.y)),r}var nc={},rc=e=>fs(e)?Ns:Cs,ic=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ts}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return ec(this.current)}getProps(){return nc}};function ac(e,t,n,r){if(r)return cs(e=>r.getValue(e,null),t,n,r);let i=rc(e);return ls(i,e,t,n,new ic(i,e))}var oc=hs((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Nt(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:sc,cancel:cc}=jr(queueMicrotask,!1);function lc(e,t,n){let r=Lo(e)?e:mo(e);return r.start(wo(``,r,t,n)),r.animation}var uc={},dc={value:null,addProjectionMetrics:null};function fc(e,t){let n=mn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Nr(r),e(a-t))};return Mr.setup(r,!0),()=>Nr(r)}function pc(e){return fs(e)&&e.tagName===`svg`}function mc(e){return Lo(e)?e.get():e}var hc=e=>typeof e==`number`?e:parseFloat(e),gc=ns.length,_c=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],vc=_c.length,yc=e=>typeof e==`number`||K.test(e);function bc(e,t,n,r,i,a){i?(e.opacity=dr(0,n.opacity??1,Sc(r)),e.opacityExit=dr(t.opacity??1,0,Cc(r))):a&&(e.opacity=dr(t.opacity??1,n.opacity??1,r));for(let i=0;i<gc;i++){let a=ns[i],o=xc(t,a),s=xc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||yc(o)===yc(s)?(e[a]=Math.max(dr(hc(o),hc(s),r),0),(Ln.test(s)||Ln.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<vc;i++){let a=_c[i];(t[a]||n[a])&&(e[a]=dr(t[a]||0,n[a]||0,r))}}function xc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Sc=wc(0,.5,$t),Cc=wc(.5,.95,It);function wc(e,t,n){return r=>r<e?0:r>t?1:n(Rt(e,t,r))}function Tc(e,t){e.min=t.min,e.max=t.max}function Ec(e,t){Tc(e.x,t.x),Tc(e.y,t.y)}function Dc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Oc=.9999,kc=1.0001,Ac=-.01,jc=.01;function Mc(e){return e.max-e.min}function Nc(e,t,n){return Math.abs(e-t)<=n}function Pc(e,t,n,r=.5){e.origin=r,e.originPoint=dr(t.min,t.max,e.origin),e.scale=Mc(n)/Mc(t),e.translate=dr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Oc&&e.scale<=kc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ac&&e.translate<=jc||isNaN(e.translate))&&(e.translate=0)}function Fc(e,t,n,r){Pc(e.x,t.x,n.x,r?r.originX:void 0),Pc(e.y,t.y,n.y,r?r.originY:void 0)}function Ic(e,t,n,r=0){e.min=(r?dr(n.min,n.max,r):n.min)+t.min,e.max=e.min+Mc(t)}function Lc(e,t,n,r){Ic(e.x,t.x,n.x,r?.x),Ic(e.y,t.y,n.y,r?.y)}function Rc(e,t,n,r=0){let i=r?dr(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Mc(t)}function zc(e,t,n,r){Rc(e.x,t.x,n.x,r?.x),Rc(e.y,t.y,n.y,r?.y)}function Bc(e,t,n,r,i){return e-=t,e=Us(e,1/n,r),i!==void 0&&(e=Us(e,1/i,r)),e}function Vc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ln.test(t)&&(t=parseFloat(t),t=dr(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=dr(a.min,a.max,r);e===a&&(s-=t),e.min=Bc(e.min,t,n,s,i),e.max=Bc(e.max,t,n,s,i)}function Hc(e,t,[n,r,i],a,o){Vc(e,t[n],t[r],t[i],t.scale,a,o)}var Uc=[`x`,`scaleX`,`originX`],Wc=[`y`,`scaleY`,`originY`];function Gc(e,t,n,r){Hc(e.x,t,Uc,n?n.x:void 0,r?r.x:void 0),Hc(e.y,t,Wc,n?n.y:void 0,r?r.y:void 0)}var Kc=()=>({translate:0,scale:1,origin:0,originPoint:0}),qc=()=>({x:Kc(),y:Kc()}),Jc=()=>({min:0,max:0}),Yc=()=>({x:Jc(),y:Jc()});function Xc(e){return e.translate===0&&e.scale===1}function Zc(e){return Xc(e.x)&&Xc(e.y)}function Qc(e,t){return e.min===t.min&&e.max===t.max}function $c(e,t){return Qc(e.x,t.x)&&Qc(e.y,t.y)}function el(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tl(e,t){return el(e.x,t.x)&&el(e.y,t.y)}function nl(e){return Mc(e.x)/Mc(e.y)}function rl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var il=class{constructor(){this.members=[]}add(e){Dt(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ot(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ot(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function al(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ol={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(K.test(e))e=parseFloat(e);else return e}return`${al(e,t.target.x)}% ${al(e,t.target.y)}%`}},sl={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=sr.parse(e);if(i.length>5)return r;let a=sr.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=dr(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},cl={borderRadius:{...ol,applyTo:[...ns]},borderTopLeftRadius:ol,borderTopRightRadius:ol,borderBottomLeftRadius:ol,borderBottomRightRadius:ol,boxShadow:sl};function ll(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function ul(e){return[e(`x`),e(`y`)]}var dl=(e,t)=>e.depth-t.depth,fl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Dt(this.children,e),this.isDirty=!0}remove(e){Ot(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dl),this.isDirty=!1,this.children.forEach(e)}},pl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(uc,{...cl,...uc});var ml={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},hl=[``,`X`,`Y`,`Z`],gl=1e3,_l=0;function vl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var yl=({instance:e})=>e&&Ha.get(e)?.demote();function bl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ho(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Mr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bl(r)}function xl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=_l++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,dc.value&&(ml.nodes=ml.calculatedTargetDeltas=ml.calculatedProjections=0),this.nodes.forEach(wl),this.nodes.forEach(Fl),this.nodes.forEach(Il),this.nodes.forEach(Tl),dc.addProjectionMetrics&&dc.addProjectionMetrics(ml)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new fl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=fs(t)&&!pc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Mr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=fc(i,250),pl.hasAnimatedSinceResize&&(pl.hasAnimatedSinceResize=!1,this.nodes.forEach(Pl)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Hl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!tl(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...go(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Pl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Nr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ll),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;yl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,yl(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ol),this.nodes.forEach(Dl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jl),this.nodes.forEach(Ml),this.nodes.forEach(Nl),this.nodes.forEach(Sl),this.nodes.forEach(Cl)):this.nodes.forEach(kl),this.clearAllSnapshots();let e=mn.now();dn.delta=At(0,1e3/60,e-dn.timestamp),dn.timestamp=e,dn.isProcessing=!0,Pr.update.process(dn),Pr.preRender.process(dn),Pr.render.process(dn),dn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(El),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Mc(this.snapshot.measuredBox.x)&&!Mc(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=Yc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&yl(this);let t=this.projectionDelta&&!Zc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Bs(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Kl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Yc();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Jl))){let{scroll:e}=this.root;e&&(Xs(t.x,e.offset.x),Xs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Yc();if(Ec(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Ec(t,e),Xs(t.x,i.offset.x),Xs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Yc();Ec(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Xs(r.x,-n.scroll.offset.x),Xs(r.y,-n.scroll.offset.y)),Bs(n.latestValues)&&$s(r,n.latestValues,n.layout?.layoutBox)}return Bs(this.latestValues)&&$s(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Yc();Ec(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Bs(n.latestValues))continue;let r;n.instance&&(zs(n.latestValues)&&n.updateSnapshot(),r=Yc(),Ec(r,n.measurePageBox())),Gc(t,n.latestValues,n.snapshot?.layoutBox,r)}return Bs(this.latestValues)&&Gc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=dn.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Yc(),this.targetWithTransforms=Yc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ec(this.target,this.layout.layoutBox),Ks(this.target,this.targetDelta)):Ec(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),dc.value&&ml.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||zs(this.parent.latestValues)||Vs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yc(),this.relativeTargetOrigin=Yc(),zc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Ec(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===dn.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Ec(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ys(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Yc());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dc(this.prevProjectionDelta.x,this.projectionDelta.x),Dc(this.prevProjectionDelta.y,this.projectionDelta.y)),Fc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&rl(this.projectionDelta.x,this.prevProjectionDelta.x)&&rl(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),dc.value&&ml.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qc(),this.projectionDelta=qc(),this.projectionDeltaWithTransform=qc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=qc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Yc(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Vl));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=dr(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=dr(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Rl(o.x,e.x,n),Rl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bl(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&$c(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Yc(),Ec(f,this.relativeTarget)),c&&(this.animationValues=a,bc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Nr(this.pendingAnimation),void 0),this.pendingAnimation=Mr.update(()=>{pl.hasAnimatedSinceResize=!0,this.motionValue||=mo(0),this.motionValue.jump(0,!1),this.currentAnimation=lc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),_i(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&ql(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Yc();let t=Mc(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Mc(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Ec(t,i),$s(t,r),Fc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new il),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&vl(`z`,e,r,this.animationValues);for(let t=0;t<hl.length;t++)vl(`rotate${hl[t]}`,e,r,this.animationValues),vl(`skew${hl[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=mc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=mc(t?.pointerEvents)||``),this.hasProjected&&!Bs(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=ll(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in uc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=uc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?mc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Dl),this.root.sharedNodes.clear()}}}function Sl(e){e.updateLayout(),Al(e)}function Cl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)ul(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Mc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Tc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ql(i,t.layoutBox,n)&&ul(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Mc(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=qc();Fc(o,n,t.layoutBox);let s=qc();a?Fc(s,e.applyTransform(r,!0),t.measuredBox):Fc(s,n,t.layoutBox);let c=!Zc(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Yc();zc(s,t.layoutBox,i.layoutBox,o);let c=Yc();zc(c,n,a.layoutBox,o),tl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function wl(e){dc.value&&ml.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Tl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function El(e){e.clearSnapshot()}function Dl(e){e.clearMeasurements()}function Ol(e){e.isLayoutDirty=!0,e.updateLayout()}function kl(e){e.isLayoutDirty=!1}function Al(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;ul(e=>Xs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function jl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Ml(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Nl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Pl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fl(e){e.resolveTargetDelta()}function Il(e){e.calcProjection()}function Ll(e){e.resetSkewAndRotation()}function Rl(e,t,n){e.translate=dr(t.translate,0,n),e.scale=dr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zl(e,t,n,r){e.min=dr(t.min,n.min,r),e.max=dr(t.max,n.max,r)}function Bl(e,t,n,r){zl(e.x,t.x,n.x,r),zl(e.y,t.y,n.y,r)}function Vl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hl={duration:.45,ease:[.4,0,.1,1]},Ul=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wl=Ul(`applewebkit/`)&&!Ul(`chrome/`)?Math.round:It;function Gl(e){e.min=Wl(e.min),e.max=Wl(e.max)}function Kl(e){Gl(e.x),Gl(e.y)}function ql(e,t,n){return e===`position`||e===`preserve-aspect`&&!Nc(nl(t),nl(n),.2)}function Jl(e){return e!==e.root&&e.scroll?.wasRoot}function Yl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Xl=xl({attachResizeListener:(e,t)=>Yl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Zl={current:void 0},Ql=xl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zl.current){let e=new Xl({});e.mount(window),e.setOptions({layoutScroll:!0}),Zl.current=e}return Zl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),$l=new WeakMap;function eu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function tu(e){return typeof e==`string`||Array.isArray(e)}var nu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ru=[`initial`,...nu];function iu(e){if(eu(e.animate))return!0;for(let t=0;t<ru.length;t++)if(tu(e[ru[t]]))return!0;return!1}function au(e){return!!(iu(e)||e.variants)}function ou(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Lo(i))e.addValue(r,i);else if(Lo(a))e.addValue(r,mo(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,mo(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var su={current:null},cu={current:!1},lu=typeof window<`u`;function uu(){if(cu.current=!0,lu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>su.current=e.matches;e.addEventListener(`change`,t),t()}else su.current=!1}}var du=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],fu={};function pu(e){fu=e}function mu(){return fu}var hu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ua,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=mn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Mr.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=iu(t),this.isVariantNode=au(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Lo(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,$l.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(cu.current||uu(),this.shouldReduceMotion=su.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Nr(this.notifyUpdate),Nr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ma.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Ca({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Bt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Ji.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Ha.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in fu){let t=fu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Yc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Ha.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<du.length;t++){let n=du[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ou(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=mo(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Mt(n)||Pt(n))?n=parseFloat(n):typeof n!=`number`&&!sr.test(n)&&sr.test(t)&&(n=Ni(e,t)),this.setBaseTarget(e,Lo(n)?n.get():n)),Lo(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new zt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){sc.render(this.render)}},gu=class extends hu{constructor(){super(...arguments),this.KeyframeResolver=ts}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Lo(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function _u(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function vu(e,{layout:t,layoutId:n}){return Ji.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!uc[e]||e===`opacity`)}function yu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Lo(r[t])||i&&Lo(i[t])||vu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function bu(e){return window.getComputedStyle(e)}var xu=class extends gu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=_u}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Ji.has(t))return this.projection?.isProjecting?Ui(t):Gi(e,t);{let n=bu(e),r=(_n(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ec(e,t)}build(e,t,n){ws(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yu(e,t,n)}},Su=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Cu(e){return{point:{x:e.pageX,y:e.pageY}}}var wu=e=>t=>Su(t)&&e(t,Cu(t));function Tu(e,t,n,r){return Yl(e,t,wu(n),r)}var Eu=new WeakMap,Du,Ou=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:fs(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ku=Ou(`inline`,`width`,`offsetWidth`),Au=Ou(`block`,`height`,`offsetHeight`);function ju({target:e,borderBoxSize:t}){Eu.get(e)?.forEach(n=>{n(e,{get width(){return ku(e,t)},get height(){return Au(e,t)}})})}function Mu(e){e.forEach(ju)}function Nu(){typeof ResizeObserver<`u`&&(Du=new ResizeObserver(Mu))}function Pu(e,t){Du||Nu();let n=ps(e);return n.forEach(e=>{let n=Eu.get(e);n||(n=new Set,Eu.set(e,n)),n.add(t),Du?.observe(e)}),()=>{n.forEach(e=>{let n=Eu.get(e);n?.delete(t),n?.size||Du?.unobserve(e)})}}var Fu=new Set,Iu;function Lu(){Iu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fu.forEach(t=>t(e))},window.addEventListener(`resize`,Iu)}function Ru(e){return Fu.add(e),Iu||Lu(),()=>{Fu.delete(e),!Fu.size&&typeof Iu==`function`&&(window.removeEventListener(`resize`,Iu),Iu=void 0)}}function zu(e,t){return typeof e==`function`?Ru(e):Pu(e,t)}var Bu=(e,t)=>Math.abs(e-t);function Vu(e,t){let n=Bu(e.x,t.x),r=Bu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Hu=new Set([`auto`,`scroll`]),Uu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Wu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Ku(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Vu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:mn.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Wu(t,this.transformPagePoint),this.hasPendingMove=!0,Mr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ku(e.type===`pointercancel`?this.lastMoveEventInfo:Wu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Su(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Wu(Cu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=dn;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ku(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Lt(Tu(this.contextWindow,`pointermove`,this.handlePointerMove,d),Tu(this.contextWindow,`pointerup`,this.handlePointerUp,d),Tu(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Hu.has(e.overflowX)||Hu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Mr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Nr(this.updatePoint)}};function Wu(e,t){return t?{point:t(e.point)}:e}function Gu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ku({point:e},t){return{point:e,delta:Gu(e,Ju(t)),offset:Gu(e,qu(t)),velocity:Yu(t,.1)}}function qu(e){return e[0]}function Ju(e){return e[e.length-1]}function Yu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ju(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Bt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Bt(t)*2&&(r=e[1]);let a=Vt(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Xu=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Zu(e){return Xu.has(e.tagName)||e.isContentEditable===!0}var Qu=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function $u(e){return Qu.has(e.tagName)||e.isContentEditable===!0}var ed={x:!1,y:!1};function td(){return ed.x||ed.y}function nd(e){return e===`x`||e===`y`?ed[e]?null:(ed[e]=!0,()=>{ed[e]=!1}):ed.x||ed.y?null:(ed.x=ed.y=!0,()=>{ed.x=ed.y=!1})}function rd(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?dr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?dr(n,e,r.max):Math.min(e,n)),e}function id(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ad(e,{top:t,left:n,bottom:r,right:i}){return{x:id(e.x,n,i),y:id(e.y,t,r)}}function od(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function sd(e,t){return{x:od(e.x,t.x),y:od(e.y,t.y)}}function cd(e,t){let n=.5,r=Mc(e),i=Mc(t);return i>r?n=Rt(t.min,t.max-r,e.min):r>i&&(n=Rt(e.min,e.max-i,t.min)),At(0,1,n)}function ld(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ud=.35;function dd(e=ud){return e===!1?e=0:e===!0&&(e=ud),{x:fd(e,`left`,`right`),y:fd(e,`top`,`bottom`)}}function fd(e,t,n){return{min:pd(e,t),max:pd(e,n)}}function pd(e,t){return typeof e==`number`?e:e[t]||0}var md=new WeakMap,hd=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Yc(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nd(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ul(e=>{let t=this.getAxisMotionValue(e).get()||0;if(yn(t)&&(t=Do(t,this.visualElement.current)||0),K.test(t))t=parseFloat(t);else if(Ln.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Mc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Mr.update(()=>i(e,t),!1,!0),zo(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=xd(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Mr.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Uu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Mr.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!bd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=rd(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;gd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?ad(n.layoutBox,e):!1,this.elastic=dd(t),r!==this.constraints&&!gd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&ul(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ld(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!gd(e))return!1;let n=_d(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=tc(n,r.root,this.visualElement.getTransformPagePoint()),a=sd(r.layout.layoutBox,i);if(t){let e=t(Is(a));this.hasMutatedConstraints=!!e,e&&(a=Fs(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=ul(o=>{if(!bd(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return zo(this.visualElement,e),n.start(wo(e,n,0,t,this.visualElement,!1))}stopAnimation(){ul(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();ul(e=>{if(!bd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-dr(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!gd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};ul(e=>{let t=this.getAxisMotionValue(e).get();i[e]=cd({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ul(t=>{let n=this.getAxisMotionValue(t);if(!bd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(dr(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;md.set(this.visualElement,this);let e=this.visualElement.current,t=Tu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&$u(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=gd(t)&&_d(t);r&&(this.constraints=this.resolveRefConstraints(),n||=yd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Mr.read(r);let o=Yl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ul(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ud,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function gd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var _d=e=>`current`in e?e.current:e;function vd(e){let t=!0;return()=>{t?t=!1:e()}}function yd(e,t,n){let r=zu(e,vd(n)),i=zu(t,vd(n));return()=>{r(),i()}}function bd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Sd(e,t){let n=ps(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Cd(e){return!(e.pointerType===`touch`||td())}function wd(e,t,n={}){let[r,i,a]=Sd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Cd(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Td=(e,t)=>t?e===t||Td(e,t.parentElement):!1,Ed=new WeakSet;function Dd(e){return t=>{t.key===`Enter`&&e(t)}}function Od(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var kd=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Dd(()=>{if(Ed.has(n))return;Od(n,`down`);let e=Dd(()=>{Od(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Od(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ad(e){return Su(e)&&!td()}var jd=new WeakSet;function Md(e,t,n={}){let[r,i,a]=Sd(e,n),o=e=>{let r=e.currentTarget;if(!Ad(e)||jd.has(e))return;Ed.add(r),n.stopPropagation&&jd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ed.has(r)&&Ed.delete(r),Ad(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Td(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ds(e)&&(e.addEventListener(`focus`,e=>kd(e,i)),!Zu(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Nd(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=ei(i,a,o);return t?s(r):s}var Pd=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Fd=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Id=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ld(e,t,n,r){_u(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Fd.has(n)?n:Bo(n),t.attrs[n])}function Rd(e,t,n){let r=yu(e,t,n);for(let n in e)if(n!==`children`&&(Lo(e[n])||Lo(t[n]))){let t=qi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var zd=class extends gu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Yc}getBaseTargetFromProps(e,t){return Ji.has(t)?super.getBaseTargetFromProps(e,t)??Ui(t):e[t]}getDefaultValue(e){return Ji.has(e)?this.latestValues[e]??Ui(e):void 0}readValueFromInstance(e,t){if(Ji.has(t)){let e=ji(t);return e&&e.default||0}if(Os.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Fd.has(t)?t:Bo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Rd(e,t,n)}build(e,t,n){ks(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ld(e,t,n,r)}mount(e){this.isSVGTag=Id(e.tagName),super.mount(e)}};function Bd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Vd=[...nu].reverse();function Hd(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>qo(e,t,n))),n=Wd(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Vd.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?tu(g)||g===!1?g:void 0:h,v=tu(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||eu(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Ud(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Ao(e,n,jo(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Bd(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Ao(s,n)?.transition?.delayChildren;r.delay=co(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Ao(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!Lo(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Wd(),i=!0}}}function Ud(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Bd(t,e):!1}function Wd(){let e={};for(let t of nu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Gd(e){return typeof e==`object`&&!Array.isArray(e)}function Kd(e,t,n,r){return e==null?[]:typeof e==`string`&&Gd(t)?ps(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function qd(e,t,n){return e*(t+1)+n*t}function Jd(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Yd(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ot(e,i),r--)}}function Xd(e,t,n,r,i,a){Yd(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:dr(i,a,r[o]),easing:on(n,o)})}function Zd(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Qd(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var $d=`easeInOut`,ef=20;function tf(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Jd(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Jd(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=af(e),{delay:l=0,times:u=ni(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=xa(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&cf(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=Bt(b));let r=zr(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ti(u,T),c.length===1&&c.unshift(null),m&&`${m}${ef}`,m&&m<ef){let e=b>0?_/b:0;b=qd(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?qt(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:on(f,e-1))}Zd(u,m,e)}let E=w+b;Xd(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Lo(p)){let e=nf(p,s);_(m,h,rf(`default`,e))}else{let e=Kd(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=nf(r,s);for(let e in m)_(m[e],of(h,e),rf(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Qd);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Rt(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift($d)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function nf(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function rf(e,t){return t[e]||(t[e]=[]),t[e]}function af(e){return Array.isArray(e)?e:[e]}function of(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var sf=e=>typeof e==`number`,cf=e=>e.every(sf);function lf(e,t){return Lo(e)||typeof e==`number`||typeof e==`string`&&!Gd(t)}function uf(e,t,n,r){let i=[];if(lf(e,t))i.push(lc(e,Gd(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Kd(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...ac(r,t,s,$l.get(r))):i.push(...ls(ss(r)??oc,r,t,s))}}return i}function df(e,t,n){let r=[];return tf(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=mo(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Zr}).forEach(({keyframes:e,transition:t},n)=>{r.push(...uf(n,e,t))}),r}function ff(e){return Array.isArray(e)&&e.some(Array.isArray)}function pf(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),ff(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=df(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=uf(e,i,{...c,...r},t)}let l=new so(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Ot(t.animations,l)})),l}return i}var mf=Object.assign(pf(),{addEffect:is,removeEffect:as}),hf=.1,gf=2/3,_f=1/3;function vf(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function yf(e,t,n=!1){return e.top>=t.scrollTop+t.height*hf&&e.bottom<=t.scrollTop+t.height*gf&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*_f)))}function bf(e,t,n){let r=e,i=e,a=[];return{to(e,t){e!==i&&a.push({delta:e-i,start:t}),i=e},at(e){let i=0;return a=a.filter(({delta:a,start:o})=>{let s=Math.max(0,Math.min(1,(e-o)/t));return s===1?(r+=a,!1):(i+=a*n(s),!0)}),r+i},get active(){return a.length>0}}}var xf=`(prefers-reduced-motion: reduce)`,Sf=[.23,1,.32,1],Cf=[.23,1.15,.32,1],wf=[.77,0,.175,1],Tf=Gt(...Sf),Ef={micro:120,base:180,surface:240,askExit:150,ease:`cubic-bezier(${Sf.join(`,`)})`,move:`cubic-bezier(${wf.join(`,`)})`,soft:`cubic-bezier(${Cf.join(`,`)})`,out:Sf,softCurve:Cf},Df={settleMs:280},Of=()=>window.matchMedia(xf).matches?`auto`:`smooth`;function kf(){let[e,t]=(0,W.useState)(()=>window.matchMedia(xf).matches);return(0,W.useEffect)(()=>{let e=window.matchMedia(xf),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function Af(e,t){let n=bf(e.scrollTop,Ef.surface,Tf),r=e.scrollTop,i=0,a=o=>{i=0,Of()===`auto`?(e.scrollTop=r,t()):(n.to(r,o),e.scrollTop=n.at(o),n.active?i=requestAnimationFrame(a):t())};return{to(e){r=e,i||=requestAnimationFrame(a)},stop(){cancelAnimationFrame(i),i=0},get active(){return i!==0}}}function jf(e,t){let[n,r]=(0,W.useState)({value:e,pointer:t});return(0,W.useLayoutEffect)(()=>{if(e){r({value:e,pointer:t});return}if(!n.value)return;let i=setTimeout(()=>r({value:e,pointer:!1}),Ef.micro);return()=>clearTimeout(i)},[e,t]),{value:e||(n.pointer?n.value:void 0),props:{"data-pointer":e?t:n.pointer,"data-ending-style":e?void 0:``,inert:!e}}}var Mf=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Nf=o(((e,t)=>{t.exports=Mf()})),Pf=(0,W.createContext)({});function Ff(e){let t=(0,W.useRef)(null);return t.current===null&&(t.current=e()),t.current}var If=typeof window<`u`?W.useLayoutEffect:W.useEffect,Lf=(0,W.createContext)(null),Rf=(0,W.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function zf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Bf(...e){return t=>{let n=!1,r=e.map(e=>{let r=zf(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():zf(e[t],null)}}}}function Vf(...e){return W.useCallback(Bf(...e),e)}var q=Nf(),Hf=class extends W.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(ds(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=ds(e)&&e.offsetWidth||0,r=ds(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Uf({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,W.useId)(),c=(0,W.useRef)(null),l=(0,W.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,W.useContext)(Rf),d=Vf(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,W.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${e}px !important;
@@ -26,25 +26,25 @@ Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{sp
${v}px !important;
${y}px !important;
}
- `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,K.jsx)(nf,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:U.cloneElement(e,{ref:d})})}var af=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=jt(of),d=(0,U.useId)(),f=(0,U.useRef)(),p=(0,U.useRef)(n),m=(0,U.useRef)(r);Mt(()=>{p.current=n,m.current=r});let h=!0,g=(0,U.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,U.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),U.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,K.jsx)(rf,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,K.jsx)(Nt.Provider,{value:g,children:e})};function of(){return new Map}function sf(e=!0){let t=(0,U.useContext)(Nt);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,U.useId)();(0,U.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,U.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function cf(){return lf((0,U.useContext)(Nt))}function lf(e){return e===null||e.isPresent}var uf=e=>e.key||``;function df(e){let t=[];return U.Children.forEach(e,e=>{(0,U.isValidElement)(e)&&t.push(e)}),t}var ff=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=sf(o),f=(0,U.useMemo)(()=>df(e),[e]),p=o&&!u?[]:f.map(uf),m=(0,U.useRef)(!0),h=jt(()=>new Map),g=(0,U.useRef)(new Set),[_,v]=(0,U.useState)(f),[y,b]=(0,U.useState)(f);Mt(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,U.useRef)();(0,U.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Mt(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=uf(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(uf(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(uf(e)))?e=f:a===`wait`&&(e=S),b(df(e)),v(f),null}let{forceRender:C}=(0,U.useContext)(At);return(0,K.jsx)(K.Fragment,{children:y.map(e=>{let _=uf(e),b=o&&!u?!1:f===y||p.includes(_);return(0,K.jsx)(af,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},pf=(0,U.createContext)({strict:!1}),mf={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},hf=!1;function gf(){if(hf)return;let e={};for(let t in mf)e[t]={isEnabled:e=>mf[t].some(t=>!!e[t])};bu(e),hf=!0}function _f(){return gf(),xu()}function vf(e){let t=_f();for(let n in e)t[n]={...t[n],...e[n]};bu(t)}function yf({children:e,...t}){let n=(0,U.useContext)(Qd);t={...n,...t},t.transition=So(t.transition,n.transition),t.isStatic=jt(()=>t.isStatic);let r=(0,U.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,K.jsx)(Qd.Provider,{value:r,children:e})}var bf=(0,U.createContext)({});function xf(e,t){if(du(e)){let{initial:t,animate:n}=e;return{initial:t===!1||cu(t)?t:void 0,animate:cu(n)?n:void 0}}return e.inherit===!1?{}:t}function Sf(e){let{initial:t,animate:n}=xf(e,(0,U.useContext)(bf));return(0,U.useMemo)(()=>({initial:t,animate:n}),[Cf(t),Cf(n)])}function Cf(e){return Array.isArray(e)?e.join(` `):e}var wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tf(e,t,n){for(let r in t)!Wo(t[r])&&!Tu(r,n)&&(e[r]=t[r])}function Ef({transformTemplate:e},t){return(0,U.useMemo)(()=>{let n=wf();return js(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Df(e,t){let n=e.style||{},r={};return Tf(r,n,e),Object.assign(r,Ef(e,t)),r}function Of(e,t){let n={},r=Df(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var kf=()=>({...wf(),attrs:{}});function Af(e,t,n,r){let i=(0,U.useMemo)(()=>{let n=kf();return Is(n,t,Ud(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Tf(t,e.style,e),i.style={...t,...i.style}}return i}var jf=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Mf(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||jf.has(e)}function Nf(e,t){return e.startsWith(`on`)?!Mf(e):t?.(e)??!Mf(e)}function Pf(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Wo(e[a])||(Nf(a,r)||n===!0&&Mf(a)||!t&&!Mf(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Ff=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function If(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ff.indexOf(e)>-1||/[A-Z]/u.test(e))}function Lf(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??If(e)?Af:Of)(t,r,i,e),l=Pf(t,typeof e==`string`,a,s),u=e===U.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,U.useMemo)(()=>Wo(d)?d.get():d,[d]);return(0,U.createElement)(e,{...u,children:f})}function Rf({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zf(n,r,i,e),renderState:t()}}function zf(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=xc(a[e]);let{initial:o,animate:s}=e,c=du(e),l=fu(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!su(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Io(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Bf=e=>(t,n)=>{let r=(0,U.useContext)(bf),i=(0,U.useContext)(Nt),a=()=>Rf(e,t,r,i);return n?a():jt(a)},Vf=Bf({scrapeMotionValuesFromProps:Eu,createRenderState:wf}),Hf=Bf({scrapeMotionValuesFromProps:Gd,createRenderState:kf}),Uf=Symbol.for(`motionComponentSymbol`);function Wf(e,t,n){let r=(0,U.useRef)(n);(0,U.useInsertionEffect)(()=>{r.current=n});let i=(0,U.useRef)(null);return(0,U.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Gf=(0,U.createContext)({});function Kf(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function qf(e,t,n,r,i,a){let{visualElement:o}=(0,U.useContext)(bf),s=(0,U.useContext)(pf),c=(0,U.useContext)(Nt),l=(0,U.useContext)(Qd),u=l.reducedMotion,d=l.skipAnimations,f=(0,U.useRef)(null),p=(0,U.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,U.useContext)(Gf);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Jf(f.current,n,i,h);let g=(0,U.useRef)(!1);(0,U.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Jo],v=(0,U.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Mt(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Mt(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,U.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Jf(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Yf(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Kf(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Yf(e){if(e)return e.options.allowProjection===!1?Yf(e.parent):e.projection}function Xf(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vf(r);let a=n?n===`svg`:If(e),o=a?Hf:Vf;function s(n,s){let c,l={...(0,U.useContext)(Qd),...n,layoutId:Zf(n)},{isStatic:u,isValidProp:d}=l,f=Sf(n),p=o(n,u);if(!u&&typeof window<`u`){Qf(l,r);let t=$f(l);c=t.MeasureLayout,f.visualElement=qf(e,p,l,i,t.ProjectionNode,a)}return(0,K.jsxs)(bf.Provider,{value:f,children:[c&&f.visualElement?(0,K.jsx)(c,{visualElement:f.visualElement,...l}):null,Lf(e,n,Wf(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,U.forwardRef)(s);return c[Uf]=e,c}function Zf({layoutId:e}){let t=(0,U.useContext)(At).id;return t&&e!==void 0?t+`-`+e:e}function Qf(e,t){(0,U.useContext)(pf).strict}function $f(e){let{drag:t,layout:n}=_f();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ep(e,t){if(typeof Proxy>`u`)return Xf;let n=new Map,r=(n,r)=>Xf(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Xf(a,void 0,e,t)),n.get(a))})}var tp=(e,t)=>t.isSVG??If(e)?new Kd(t):new Ou(t,{allowProjection:e!==U.Fragment}),np=class extends Vd{constructor(e){super(e),e.animationState||=Yd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();su(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},rp=0,ip={animation:{Feature:np},exit:{Feature:class extends Vd{constructor(){super(...arguments),this.id=rp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Lo(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},ap=class extends Vd{constructor(e){super(e),this.removeGroupControls=Ut,this.removeListeners=Ut,this.controls=new Sd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ut}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},op=({current:e})=>e?e.ownerDocument.defaultView:null,sp=e=>(t,n)=>{e&&zr.update(()=>e(t,n),!1,!0)},cp=class extends Vd{constructor(){super(...arguments),this.removePointerDownListener=Ut}onPointerDown(e){this.session=new Xu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:op(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:sp(e),onStart:sp(t),onMove:sp(n),onEnd:(e,t)=>{delete this.session,r&&zr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Mu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},lp=!1,up=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),dp=class extends U.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),lp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...up(this.props),onExitComplete:()=>this.safeToRemove()})),bl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...up(this.props)}),lp=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||zr.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),mc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;lp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fp(e){let[t,n]=sf(),r=(0,U.useContext)(At);return(0,K.jsx)(dp,{...e,layoutGroup:r,switchLayoutGroup:(0,U.useContext)(Gf),isPresent:t,safeToRemove:n})}var pp={pan:{Feature:cp},drag:{Feature:ap,ProjectionNode:au,MeasureLayout:fp}};function mp(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&zr.postRender(()=>i(t,Au(t)))}var hp=class extends Vd{mount(){let{current:e}=this.node;e&&(this.unmount=jd(e,(e,t)=>(mp(this.node,t,`Start`),e=>mp(this.node,e,`End`))))}unmount(){}},gp=class extends Vd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Wt(nu(this.node.current,`focus`,()=>this.onFocus()),nu(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function _p(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&zr.postRender(()=>i(t,Au(t)))}var vp=class extends Vd{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=zd(e,(e,t)=>(_p(this.node,t,`Start`),(e,{success:t})=>_p(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},yp=new WeakMap,bp=new WeakMap,xp=e=>{let t=yp.get(e.target);t&&t(e)},Sp=e=>{e.forEach(xp)};function Cp({root:e,...t}){let n=e||document;bp.has(n)||bp.set(n,{});let r=bp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Sp,{root:e,...t})),r[i]}function wp(e,t,n){let r=Cp(t);return yp.set(e,n),r.observe(e),()=>{yp.delete(e),r.unobserve(e)}}var Tp={some:0,all:1},Ep=class extends Vd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Tp[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=wp(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Dp(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Dp({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Op={inView:{Feature:Ep},tap:{Feature:vp},focus:{Feature:gp},hover:{Feature:hp}},kp={layout:{ProjectionNode:au,MeasureLayout:fp}},Ap=ep({...ip,...Op,...pp,...kp},tp);function jp(e){let t=jt(()=>xo(e)),{isStatic:n}=(0,U.useContext)(Qd);if(n){let[,n]=(0,U.useState)(e);(0,U.useEffect)(()=>t.on(`change`,n),[])}return t}function Mp(e,t){let n=jp(t()),r=()=>n.set(t());return r(),Mt(()=>{let t=()=>zr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Br(r)}}),n}function Np(e){yo.current=[],e();let t=Mp(yo.current,e);return yo.current=void 0,t}function Pp(e,t,n,r){if(typeof e==`function`)return Np(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Ip(e,t,n,r);let i=typeof t==`function`?t:Bd(t,n,r),a=Array.isArray(e)?Fp(e,i):Fp([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function Fp(e,t){let n=jt(()=>[]);return Mp(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Ip(e,t,n,r){let i=jt(()=>Object.keys(n)),a=jt(()=>({}));for(let o of i)a[o]=Pp(e,t,n[o],r);return a}function Lp(){!hu.current&&_u();let[e]=(0,U.useState)(mu.current);return e}function Rp(e){return typeof e==`object`&&!Array.isArray(e)}function zp(e,t,n,r){return e==null?[]:typeof e==`string`&&Rp(t)?bs(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Bp(e,t,n){return e*(t+1)+n*t}function Vp(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Hp(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ft(e,i),r--)}}function Up(e,t,n,r,i,a){Hp(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:vr(i,a,r[o]),easing:pn(n,o)})}function Wp(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Gp(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Kp=`easeInOut`,qp=20;function Jp(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Vp(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Vp(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Zp(e),{delay:l=0,times:u=li(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Oa(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&em(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=qt(b));let r=Kr(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ci(u,T),c.length===1&&c.unshift(null),m&&`${m}${qp}`,m&&m<qp){let e=b>0?_/b:0;b=Bp(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?en(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:pn(f,e-1))}Wp(u,m,e)}let E=w+b;Up(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Wo(p)){let e=Yp(p,s);_(m,h,Xp(`default`,e))}else{let e=zp(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Yp(r,s);for(let e in m)_(m[e],Qp(h,e),Xp(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Gp);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Gt(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Kp)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Yp(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Xp(e,t){return t[e]||(t[e]=[]),t[e]}function Zp(e){return Array.isArray(e)?e:[e]}function Qp(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var $p=e=>typeof e==`number`,em=e=>e.every($p);function tm(e,t){return Wo(e)||typeof e==`number`||typeof e==`string`&&!Rp(t)}function nm(e,t,n,r){let i=[];if(tm(e,t))i.push(gc(e,Rp(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=zp(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...fc(r,t,s,ou.get(r))):i.push(...gs(ms(r)??pc,r,t,s))}}return i}function rm(e,t,n){let r=[];return Jp(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=xo(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:ii}).forEach(({keyframes:e,transition:t},n)=>{r.push(...nm(n,e,t))}),r}function im(e){return Array.isArray(e)&&e.some(Array.isArray)}function am(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),im(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=rm(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=nm(e,i,{...c,...r},t)}let l=new ho(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Ft(t.animations,l)})),l}return i}var om=Object.assign(am(),{addEffect:fs,removeEffect:ps}),sm=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},cm=()=>new sm;function lm(){return jt(cm)}var um=(0,U.createContext)(null);function dm(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:vr(t.x.min,t.x.max,.5)+n.x,y:vr(t.y.min,t.y.max,.5)+n.y},i=fm(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>pm(r.y,t)<pm(r.y,e)?t:e);if(c!==s)return mm(e,o,r.x,c,a);let l=hm(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=hm(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:It(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=vr(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?It(e,o,o+s):e}function fm(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function pm(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function mm(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=vr(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function hm(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var gm=(e,t)=>e.max<=t.min||t.max<=e.min;function _m(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=gm(e[r].x,e[i].x),n||=gm(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function vm({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=jt(()=>Ap[t]),u=(0,U.useRef)(new Map),[d,f]=(0,U.useState)(`y`),p=(0,U.useRef)(!1),m=(0,U.useRef)(!1),h=(0,U.useRef)(null),g=n||d,_=new Set(i);u.current.forEach((e,t)=>{_.has(t)||u.current.delete(t)});let v={axis:g,groupRef:h,hasReordered:m,registerItem:(e,t)=>{if(u.current.set(e,t),!n){let e=_m(i.flatMap(e=>{let t=u.current.get(e);return t?[t]:[]}));e!==d&&f(e)}},updateOrder:(e,t,n)=>{if(p.current)return;let a=i.flatMap(e=>{let t=u.current.get(e);return t?[{value:e,layout:t}]:[]}),o=h.current?.ownerDocument.defaultView?.getComputedStyle(h.current).direction===`rtl`?`rtl`:`ltr`,s=dm(a,e,t,n,g,o);if(a!==s){p.current=!0,m.current=!0;let e=[...i],t=a.map(({value:e})=>i.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};(0,U.useEffect)(()=>{p.current=!1},[i]);let y=e=>{h.current=e,typeof c==`function`?c(e):c&&(c.current=e)},b={overflowAnchor:`none`,...s.style};return(0,K.jsx)(l,{...s,style:b,ref:y,onPointerDownCapture:e=>{m.current=!1,a?.(e)},onClickCapture:e=>{m.current&&e.detail&&(m.current=!1,e.stopPropagation(),e.preventDefault()),o?.(e)},ignoreStrict:!0,children:(0,K.jsx)(um.Provider,{value:v,children:e})})}var ym=(0,U.forwardRef)(vm),bm=50,xm=25,Sm=new Set([`auto`,`scroll`]),Cm=new WeakMap,wm=new WeakMap,Tm=null;function Em(){if(Tm){let e=Om(Tm,`y`);e&&(wm.delete(e),Cm.delete(e));let t=Om(Tm,`x`);t&&t!==e&&(wm.delete(t),Cm.delete(t)),Tm=null}}function Dm(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Sm.has(r)||i}function Om(e,t){let n=e?.parentElement;for(;n;){if(Dm(n,t))return n;n=n.parentElement}return null}function km(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<bm){let e=1-o/bm;return{amount:-25*e*e,edge:`start`}}if(s<bm){let e=1-s/bm;return{amount:xm*e*e,edge:`end`}}return{amount:0,edge:null}}function Am(e,t,n,r){if(!e)return;Tm=e;let i=Om(e,n);if(!i)return;let{amount:a,edge:o}=km(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){wm.delete(i),Cm.delete(i);return}let s=wm.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;wm.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Cm.set(i,e)}if(a>0){let e=Cm.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function jm(e,t=0){return Wo(e)?e:jp(t)}function Mm({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=jt(()=>Ap[r]),u=(0,U.useContext)(um),d={x:jm(t.x),y:jm(t.y)},f=Pp([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,K.jsx)(l,{drag:p===`xy`||p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o={x:d.x.get(),y:d.y.get()};h(n,o,r);let s=p===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:p;Am(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,Em(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var Nm=(0,U.forwardRef)(Mm),Pm=Ap,Fm={out:[.23,1,.32,1],soft:[.215,.61,.355,1],draw:[0,0,.58,1],inOut:[.77,0,.175,1],away:[.33,.17,.67,.5],in:[.4,0,1,1],drawer:[.34,1.2,.64,1],arrive:[.11,0,.5,0],color:[.25,.1,.25,1],leave:[0,0,.58,1],enter:[.25,.1,.35,1],resize:[.4,0,.1,1],fill:[.4,0,.2,1]},Im={press:{type:`spring`,stiffness:550,damping:30,restSpeed:10},pop:{type:`spring`,stiffness:400,damping:29},tooltip:{type:`spring`,stiffness:400,damping:31},dialog:{type:`spring`,stiffness:150,damping:25},toast:{type:`spring`,stiffness:280,damping:24},selection:{type:`spring`,stiffness:300,damping:30},highlight:{type:`spring`,stiffness:500,damping:40},reflow:{type:`spring`,stiffness:500,damping:40},handoff:{type:`spring`,stiffness:450,damping:43},morph:{type:`spring`,stiffness:660,damping:52},height:{type:`spring`,stiffness:300,damping:30,bounce:0,restDelta:.01},slide:{type:`spring`,stiffness:300,damping:35,restDelta:.01},thumb:{type:`spring`,stiffness:300,damping:25},slider:{type:`spring`,stiffness:400,damping:32},bounce:{type:`spring`,stiffness:200,damping:16},glyph:{type:`spring`,stiffness:500,damping:45},checkPop:{type:`spring`,stiffness:500,damping:24},entrance:{type:`spring`,stiffness:200,damping:20},progress:{type:`spring`,stiffness:300,damping:35,restDelta:.01,restSpeed:.1},number:{type:`spring`,stiffness:90,damping:50}},Lm={menu:{duration:.22,ease:Fm.soft},overlay:{duration:.4,ease:Fm.soft},dialogFade:{duration:.4,ease:Fm.soft},fade:{duration:.2,ease:Fm.out},color:{duration:.2,ease:Fm.color},reveal:{duration:.3,ease:Fm.out},disclosure:{duration:.35,ease:Fm.soft},panelOut:{duration:.15,ease:Fm.leave},panelIn:{duration:.3,ease:Fm.enter},tooltipIn:{duration:.34,ease:Fm.enter},tooltipOut:{duration:.13,ease:Fm.leave},panelHeight:{duration:.45,ease:Fm.resize},check:{duration:.3,delay:.2,ease:Fm.draw},uncheck:{duration:.3,ease:Fm.draw},fill:{duration:.3,ease:Fm.fill},popOut:{duration:.15,ease:Fm.out},swap:{duration:.15,ease:Fm.out},spin:{duration:.3,ease:Fm.out},handoffOut:{duration:.22,ease:Fm.soft},handoffIn:{duration:.26,ease:Fm.arrive},dismiss:{duration:.2,ease:Fm.away},shake:{duration:.4,ease:Fm.inOut},drawerOut:{duration:.16,ease:Fm.in},drawer:{duration:.4,ease:Fm.drawer},sheet:{duration:.4,ease:Fm.soft},collapse:{duration:.28,ease:Fm.inOut},collapseLabel:{duration:.14,ease:Fm.out},instant:{duration:0}},Rm={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},zm={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},Bm={icon:90},Vm={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},Hm={stack:.03};function Um(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,qm(n,e)]));return{tempo:e,ease:Fm,scale:Rm,blur:zm,rotate:Bm,shift:Vm,stagger:e===1?Hm:Object.fromEntries(Object.entries(Hm).map(([t,n])=>[t,n*e])),spring:t(Im),transition:t(Lm)}}var Wm=Um(),Gm=U.createContext(Wm),Km=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function qm(e,t){if(!e||t===1||typeof e!=`object`)return e;let n={};for(let[r,i]of Object.entries(e))n[r]=typeof i==`number`&&Km.includes(r)?i*t:typeof i==`number`&&r===`stiffness`?i/(t*t):typeof i==`number`&&r===`damping`?i/t:i&&typeof i==`object`&&!Array.isArray(i)?qm(i,t):i;return n}function Jm(e){let{tempo:t}=U.use(Gm);return qm(e,t)}function Ym(){return U.use(Gm)}U.createContext(`draw`);var Xm={linear:`linear`,easeIn:`cubic-bezier(0.42, 0, 1, 1)`,easeOut:`cubic-bezier(0, 0, 0.58, 1)`,easeInOut:`cubic-bezier(0.42, 0, 0.58, 1)`,circIn:`cubic-bezier(0, 0.65, 0.55, 1)`,circOut:`cubic-bezier(0.55, 0, 1, 0.45)`,backIn:`cubic-bezier(0.31, 0.01, 0.66, -0.59)`,backOut:`cubic-bezier(0.33, 1.53, 0.69, 0.99)`},Zm=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function Qm(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?Xm[e]??`ease`:Xm.easeInOut}function $m(e){let t=e;if(t.type===`spring`||Zm.some(e=>e in t)){let{duration:e,ease:n}=Kr(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,ii),r=Math.round(e*1e3);return{duration:r,easing:Ur(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:Qm(t.ease)}}var eh=U.createContext(`user`);function th(){let e=U.use(eh),{reducedMotion:t}=U.use(Qd);return t===`always`?`always`:e}function nh({children:e,remount:t}){let n=th();return(0,K.jsx)(yf,{reducedMotion:n,children:t?(0,K.jsx)(rh,{children:e}):e})}function rh({children:e}){let t=oh();return(0,K.jsx)(U.Fragment,{children:e},t?`reduce`:`full`)}var ih=`(prefers-reduced-motion: reduce)`;function ah(e){let t=window.matchMedia(ih);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function oh(){let e=th(),t=U.useSyncExternalStore(ah,()=>window.matchMedia(ih).matches,()=>!1);return e===`never`?!1:e===`always`||t}var sh=Wm.spring.pop;Wm.transition.menu,Wm.spring.morph;var ch={tooltip:Wm.scale.tooltip,popover:Wm.scale.popover,menu:Wm.scale.menu};function lh(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function uh(e){if(!(e instanceof HTMLElement))return[1,1];let t=e.getBoundingClientRect(),n=(e,t)=>t&&Math.abs(e-t)>=1?e/t:1;return[n(t.width,e.offsetWidth),n(t.height,e.offsetHeight)]}var dh=Wm.transition.fade,fh=[`top`,`bottom`,`left`,`right`],ph={top:`--scroll-fade-top`,bottom:`--scroll-fade-bottom`,left:`--scroll-fade-left`,right:`--scroll-fade-right`,size:`--scroll-fade-size`},mh=e=>`rgb(0 0 0 / calc(1 - var(${ph[e]}, 0)))`,hh=e=>`calc(var(${ph.size}) * min(1, var(${ph[e]}, 0) * 1000))`,gh=`linear-gradient(to bottom, ${mh(`top`)} 0, #000 ${hh(`top`)}, #000 calc(100% - ${hh(`bottom`)}), ${mh(`bottom`)} 100%)`,_h=`linear-gradient(to right, ${mh(`left`)} 0, #000 ${hh(`left`)}, #000 calc(100% - ${hh(`right`)}), ${mh(`right`)} 100%)`,vh={vertical:gh,horizontal:_h,both:`${gh}, ${_h}`},yh=e=>Math.min(1,Math.max(0,e)),bh=e=>e*e*(3-2*e),xh=1.75,Sh=150,Ch=`ul, ol, [role="list"], [role="group"]`;function wh(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(Ch)||Array.from(n.children).some(e=>e.matches(Ch))?wh(n,t):t.push(n));return t}function Th(e){let t=e;for(;t.children.length===1;)t=t.children[0];return wh(t,[])}function Eh(e,t){let n=e.style;if(t)n.setProperty(`mask-image`,t),n.setProperty(`-webkit-mask-image`,t),n.setProperty(`mask-composite`,`intersect`),n.setProperty(`-webkit-mask-composite`,`source-in`);else for(let e of[`mask-image`,`-webkit-mask-image`,`mask-composite`,`-webkit-mask-composite`])n.removeProperty(e)}function Dh(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=oh(),c=Jm(a??dh),l=U.useRef(c);U.useEffect(()=>{l.current=c});let u=jp(0),d=jp(0),f=jp(0),p=jp(0),m=U.useMemo(()=>({top:u,bottom:d,left:f,right:p}),[u,d,f,p]),h=U.useRef(s);return U.useEffect(()=>{h.current=s},[s]),U.useEffect(()=>{let a=e.current;if(!a||!o)return;let s=t!==`horizontal`,c=t!==`vertical`,u=vh[t],d=!1;a.style.setProperty(ph.size,`${n}px`);let f=new Set,p=new Set,g=()=>{for(let e of f)e.style.removeProperty(`scale`);for(let e of p)e.style.removeProperty(`filter`);f.clear(),p.clear()},_=[],v=0,y=0,b=()=>{if(!r&&!i){_=[];return}let e=a.getBoundingClientRect(),[t,n]=uh(a);v=a.clientWidth,y=a.clientHeight,_=Th(a).map(r=>{let i=r.getBoundingClientRect();return{item:r,x:(i.left+i.width/2-e.left)/t+a.scrollLeft,y:(i.top+i.height/2-e.top)/n+a.scrollTop,ownFilter:!p.has(r)&&getComputedStyle(r).filter!==`none`}})},x=n*xh,S=e=>x>0?bh(yh(1-e/x)):0,C=!0,w=()=>{C&&(C=!1,b());let e=h.current?0:r;if(!_.length||!e&&!i)return g();let t=a.scrollLeft,n=a.scrollTop;for(let{item:r,x:a,y:o,ownFilter:l}of _){let u=0;if(s){let e=o-n;u=Math.max(S(e)*m.top.get(),S(y-e)*m.bottom.get())}if(c){let e=a-t;u=Math.max(u,S(e)*m.left.get(),S(v-e)*m.right.get())}u>.001&&e?(r.style.scale=String(1-e*u),f.add(r)):f.delete(r)&&r.style.removeProperty(`scale`),u>.001&&i&&!l?(r.style.filter=`blur(${(i*u).toFixed(2)}px)`,p.add(r)):p.delete(r)&&r.style.removeProperty(`filter`)}},T=!1,E=()=>{T=!1,w()},D=()=>{T||(T=!0,zr.render(E))},O=()=>{let e=!1;for(let t of fh){let n=yh(m[t].get());n>.001&&(e=!0),a.style.setProperty(ph[t],n.toFixed(4))}e!==d&&(d=e,Eh(a,e?u:null)),D()},k=fh.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?yh(e/A):+(e>.5),M=e=>{let t={top:0,bottom:0,left:0,right:0};if(s){let e=a.scrollHeight-a.clientHeight;e>1&&(t.top=j(a.scrollTop),t.bottom=j(e-a.scrollTop))}if(c){let e=a.scrollWidth-a.clientWidth;if(e>1){let n=Math.abs(a.scrollLeft),r=e-n,i=getComputedStyle(a).direction===`rtl`;t.left=j(i?r:n),t.right=j(i?n:r)}}for(let n of fh)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&om(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>Sh&&(C=!0),N=e,M(!0)};a.addEventListener(`scroll`,P,{passive:!0});let F=new ResizeObserver(()=>{C=!0,M(!1)}),I=()=>{F.disconnect(),F.observe(a);for(let e of a.children)F.observe(e)};I();let L=new MutationObserver(e=>{e.some(e=>e.target===a)&&I(),C=!0,M(!1)});return L.observe(a,{childList:!0,subtree:!0}),()=>{a.removeEventListener(`scroll`,P),Br(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Eh(a,null),g();for(let e of Object.values(ph))a.style.removeProperty(e);for(let e of fh)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Oh={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function kh({ref:e,asChild:t=!1,orientation:n=`vertical`,size:r,shrink:i,blur:a,transition:o,enabled:s,style:c,children:l,...u}){let d=U.useRef(null),f=U.isValidElement(l)?l.props.ref:void 0,p=U.useMemo(()=>lh(d,f),[f]);U.useImperativeHandle(e,()=>d.current),Dh(d,{orientation:n,size:r,shrink:i,blur:a,transition:o,enabled:s});let m={"data-slot":`scroll-fade`,"data-orientation":n,...u};if(t&&U.isValidElement(l)){let e=l;return U.cloneElement(e,{...e.props,...m,className:[e.props.className,u.className].filter(Boolean).join(` `)||void 0,style:{...Oh[n],...e.props.style,...c},ref:p})}return(0,K.jsx)(`div`,{ref:d,style:{...Oh[n],...c},...m,children:l})}function Ah({children:e,enabled:t=!0,size:n=20}){return(0,K.jsx)(kh,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:.16,ease:`easeOut`},children:e})}var jh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Mh(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:jh(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Nh=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Ph=e=>{let t=Nh(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ih={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Lh(e){return e!=null}function Rh(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ih.width,a=e.size??e.height??Ih.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Fh(...c):Fh(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ih[`stroke-width`])*Number(e.size??e.width??Ih.width)/Number(t.size??t.width??Ih.width):t.strokeWidth??Ih[`stroke-width`];return[`svg`,{...Object.entries(Ih).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Lh(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Lh(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Lh(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function zh(e,t={}){return Rh(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Bh=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Vh=(0,U.createContext)({}),Hh=()=>(0,U.useContext)(Vh),Uh=(0,U.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Hh()??{},y=!!c||Bh(d),[b,x,S=[]]=zh(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Fh(v,s),hasA11yProp:y,attributes:d});return(0,U.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function q(e,t=[],n=[]){let r=typeof e==`string`?Mh(e,t,n):e,i=(0,U.forwardRef)(({className:e,...t},n)=>(0,U.createElement)(Uh,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Ph(r.name)),i}var Wh={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Wh.node;var Gh=q(Wh),Kh={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Kh.node;var qh=q(Kh),Jh={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Jh.node;var Yh=q(Jh),Xh={name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]};Xh.node;var Zh=q(Xh),Qh={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};Qh.node;var $h=q(Qh),eg={name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]};eg.node;var tg=q(eg),ng={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};ng.node;var rg=q(ng),ig={name:`bookmark`,size:24,node:[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};ig.node;var ag=q(ig),og={name:`briefcase-business`,size:24,node:[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};og.node;var sg=q(og),cg={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};cg.node;var lg=q(cg),ug={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};ug.node;var dg=q(ug),fg={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};fg.node;var pg=q(fg),mg={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};mg.node;var hg=q(mg),gg={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};gg.node;var _g=q(gg),vg={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};vg.node;var yg=q(vg),bg={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};bg.node;var xg=q(bg),Sg={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Sg.node;var Cg=q(Sg),wg={name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]};wg.node;var Tg=q(wg),Eg={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Eg.node;var Dg=q(Eg),Og={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Og.node;var kg=q(Og),Ag={name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]};Ag.node;var jg=q(Ag),Mg={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Mg.node;var Ng=q(Mg),Pg={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};Pg.node;var Fg=q(Pg),Ig={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};Ig.node;var Lg=q(Ig),Rg={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};Rg.node;var zg=q(Rg),Bg={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};Bg.node;var Vg=q(Bg),Hg={name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]};Hg.node;var Ug=q(Hg),Wg={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};Wg.node;var Gg=q(Wg),Kg={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]};Kg.node;var qg=q(Kg),Jg={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Jg.node;var Yg=q(Jg),Xg={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Xg.node;var Zg=q(Xg),Qg={name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]};Qg.node;var $g=q(Qg),e_={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};e_.node;var t_=q(e_),n_={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};n_.node;var r_=q(n_),i_={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};i_.node;var a_=q(i_),o_={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};o_.node;var s_=q(o_),c_={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};c_.node;var l_=q(c_),u_={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};u_.node;var d_=q(u_),f_={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};f_.node;var p_=q(f_),m_={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};m_.node;var h_=q(m_),g_={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};g_.node;var __=q(g_),v_={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};v_.node;var y_=q(v_),b_={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};b_.node;var x_=q(b_),S_={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};S_.node;var C_=q(S_),w_={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};w_.node;var T_=q(w_),E_={name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]};E_.node;var D_=q(E_),O_={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};O_.node;var k_=q(O_),A_={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};A_.node;var j_=q(A_),M_={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};M_.node;var N_=q(M_),P_={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};P_.node;var F_=q(P_),I_={name:`slash`,size:24,node:[[`path`,{d:`M22 2 2 22`,key:`y4kqgn`}]]};I_.node;var L_=q(I_),R_={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};R_.node;var z_=q(R_),B_={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};B_.node;var V_=q(B_),H_={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};H_.node;var U_=q(H_),W_={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};W_.node;var G_=q(W_),K_={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};K_.node;var q_=q(K_),J_={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};J_.node;var Y_=q(J_),X_={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};X_.node;var Z_=q(X_),Q_={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Q_.node;var $_=q(Q_),ev={name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]};ev.node;var tv=q(ev),nv={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};nv.node;var rv=q(nv),iv=({width:e=`60%`})=>(0,K.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function av({layout:e,testId:t=`${e}-loading`}){return(0,K.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":W(`Loading…`),"aria-busy":`true`,children:(0,K.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,K.jsx)(`div`,{className:`note-title-type`,children:(0,K.jsx)(iv,{width:`52%`})}),(0,K.jsx)(`div`,{className:`note-meta-row`,children:(0,K.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,K.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,K.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,K.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,K.jsx)($h,{size:14}),W(`Transcript`)]}),(0,K.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,K.jsx)(G_,{size:14}),W(`My notes`)]})]})]}),(0,K.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,K.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,K.jsx)(iv,{width:e},e))})})]}):e===`history`?(0,K.jsxs)(`section`,{children:[(0,K.jsx)(`h2`,{children:(0,K.jsx)(iv,{width:`48px`})}),(0,K.jsx)(`ul`,{children:[0,1,2].map(e=>(0,K.jsx)(`li`,{className:`ask-history-row`,children:(0,K.jsxs)(`div`,{className:`ask-history-link`,children:[(0,K.jsx)(`strong`,{children:(0,K.jsx)(iv,{width:`${130+e*14}px`})}),(0,K.jsx)(`time`,{children:(0,K.jsx)(iv,{width:`56px`})})]})},e))})]}):e===`folders`?(0,K.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,K.jsxs)(`div`,{className:`workspace-nav`,children:[(0,K.jsx)(`span`,{className:`loading-folder-icon`}),(0,K.jsx)(iv,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,K.jsx)(K.Fragment,{children:[0,1].map(e=>(0,K.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,K.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,K.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,K.jsx)(`span`,{className:`settings-label`,children:(0,K.jsx)(iv,{width:`120px`})}),(0,K.jsx)(`span`,{className:`settings-description block`,children:(0,K.jsx)(iv,{width:`90px`})})]}),(0,K.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,K.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,K.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,K.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,K.jsx)(iv,{width:`42px`})}),(0,K.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,K.jsx)(iv,{width:`${160+e*25}px`})})]},e))}):(0,K.jsxs)(`div`,{className:`ask-turn`,children:[(0,K.jsx)(`p`,{className:`ask-question`,children:(0,K.jsx)(iv,{width:`160px`})}),(0,K.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,K.jsx)(iv,{width:e},e))})]})})})}var ov=.1,sv=2/3,cv=1/3;function lv(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function uv(e,t,n=!1){return e.top>=t.scrollTop+t.height*ov&&e.bottom<=t.scrollTop+t.height*sv&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*cv)))}function dv(e,t,n){let r=e,i=e,a=[];return{to(e,t){e!==i&&a.push({delta:e-i,start:t}),i=e},at(e){let i=0;return a=a.filter(({delta:a,start:o})=>{let s=Math.max(0,Math.min(1,(e-o)/t));return s===1?(r+=a,!1):(i+=a*n(s),!0)}),r+i},get active(){return a.length>0}}}var fv=`(prefers-reduced-motion: reduce)`,pv=[.16,.8,.25,1],mv={pullMs:260,settleMs:280,exitMs:160,exitHoldMs:180,pullEase:`cubic-bezier(.18,.8,.25,1)`,settleEase:`cubic-bezier(${pv.join(`,`)})`,releaseEase:`cubic-bezier(.2,0,.25,1)`,settleAt:.72},hv=()=>window.matchMedia(fv).matches?`auto`:`smooth`;function gv(){let[e,t]=(0,U.useState)(()=>window.matchMedia(fv).matches);return(0,U.useEffect)(()=>{let e=window.matchMedia(fv),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function _v(e,t){let n=dv(e.scrollTop,mv.settleMs,Qt(...pv)),r=e.scrollTop,i=0,a=o=>{i=0,hv()===`auto`?(e.scrollTop=r,t()):(n.to(r,o),e.scrollTop=n.at(o),n.active?i=requestAnimationFrame(a):t())};return{to(e){r=e,i||=requestAnimationFrame(a)},stop(){cancelAnimationFrame(i),i=0},get active(){return i!==0}}}function vv(e){let t=gv(),[n,r]=(0,U.useState)(e?`waiting`:`ready`),i=(0,U.useRef)(void 0);return(0,U.useLayoutEffect)(()=>{let a;return e?n!==`skeleton`&&(i.current=void 0,r(`waiting`),a=setTimeout(()=>{i.current=performance.now(),r(`skeleton`)},100)):n===`waiting`?r(`ready`):n===`skeleton`?t?r(`ready`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(t?r(`ready`):a=setTimeout(()=>r(`ready`),120)),()=>clearTimeout(a)},[e,n,t]),n}var yv=()=>(0,U.useSyncExternalStore)(xt,bt);function bv(e){let t=[];for(let n of e){if(n.hidden&&n.echoConfident)continue;let e=!!n.hidden,r=t.at(-1);r?.echo===e?r.lines.push(n):t.push({echo:e,lines:[n]})}return t}var xv=e=>W(`{count} echoed lines`,{count:e}),Sv=3e4;function Cv(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=String(t%60).padStart(2,`0`);return n?`${n}:${String(r).padStart(2,`0`)}:${i}`:`${r}:${i}`}function wv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&r.track===n.track&&r.speaker===n.speaker&&n.startMs-(r.endMs??r.startMs)<Sv?e.push(n):t.push([n])}return t}function Tv(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].startMs<=t?(i=a,n=a+1):r=a-1}return i}function Ev(e,t){let n=t.toLocaleLowerCase().split(/\s+/).filter(Boolean);return n.length?e.filter(e=>{let t=e.text.toLocaleLowerCase();return n.every(e=>t.includes(e))}):e}function Dv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&n.startMs-r.endMs<1500?e.push(n):t.push([n])}return t}function Ov(e,t){let n=t.filter(e=>e.words.length).map(t=>{let n=e.filter(e=>e.track===t.track&&e.startMs<=t.startMs).at(-1);return{track:t.track,startMs:t.startMs,endMs:t.endMs,speaker:n?n.speaker:null,speakerColor:n?.speakerColor,live:t}});return n.length?[...e,...n].sort((e,t)=>e.startMs-t.startMs):e}function kv(e,t,n,r){let i=0,a=0;for(let t=0;t<e.length;t++){if(e[t]!==n[0])continue;let r=0;for(;t+r<e.length&&r<n.length&&e[t+r]===n[r];)r++;r>=a&&(a=r,i=t)}let o=r;return{keys:n.map((e,n)=>i+n<t.length?t[i+n]:o++),next:o}}function Av(e,t){let n=t.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean),r=e.toLocaleLowerCase(),i=Array(e.length).fill(!1);if(r.length===e.length)for(let e of n)for(let t=r.indexOf(e);t!==-1;t=r.indexOf(e,t+1))i.fill(!0,t,t+e.length);let a=[];for(let t=0;t<e.length;t++){let n=a.at(-1);n&&n.hit===i[t]?n.text+=e[t]:a.push({text:e[t],hit:i[t]})}return a.length?a:[{text:e,hit:!1}]}function jv(){return null}var Mv=new Map,Nv=new Map,Pv=e=>Mv.get(e);function Fv(){for(let[e,t]of Nv)t.clientHeight&&Mv.set(e,t.scrollTop)}function Iv(e,t=!0){let n=(0,U.useRef)(null);return(0,U.useLayoutEffect)(()=>{let r=n.current;if(!r)return;Nv.set(e,r),t&&Mv.has(e)&&(r.scrollTop=Mv.get(e));let i=()=>{r.clientHeight&&Mv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{Nv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var Lv=e=>(e.startMs+e.endMs)/2,Rv=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),zv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),Bv=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Vv=500;function Hv(e,t){let n=t.split(/\s+/).map(zv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>zv(e.text));if(!n.length||!r.length)return 0;let i=Array(n.length+1).fill(0),a=0,o=0;for(let e=1;e<=r.length;e++){let t=[e];for(let a=1;a<=n.length;a++)t[a]=Math.min(i[a]+1,t[a-1]+1,i[a-1]+ +!Bv(r[e-1],n[a-1]));let s=t[n.length],c=e-2*s;s<=Math.floor(e/4)&&(e>=2||n.length===1)&&c>o&&(a=e,o=c),i=t}return a}function Uv(e,t){let n=e.filter(e=>!e.rough&&Lv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Hv(r,t.text),a=r.filter(e=>Lv(e)<t.endMs-Vv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Wv=e=>`${e.track}:${e.startMs}`,Gv=24,Kv=new Map,qv=400,Jv=e=>e.track===`me`?W(`You`):e.speaker||W(`Them`);function Yv(e){let[t,n]=(0,U.useState)([]),[r,i]=(0,U.useState)(!1),a=(0,U.useRef)(new Set);return(0,U.useEffect)(()=>{let t=!0;i(!1),n([]),a.current=new Set;let r=(t,r)=>n(n=>{let i=new Set(n.map(Wv)),o=t.filter(t=>t.meetingId===e&&!i.has(Wv(t)));if(r)for(let e of o)a.current.add(Wv(e));return o.length?[...n,...o].sort((e,t)=>e.startMs-t.startMs):n}),o=window.yogurt.transcript.onSegment(e=>r([e],!0));window.yogurt.transcript.get(e,{hidden:!0}).then(e=>{t&&(r(e,!1),i(!0))});let s=window.yogurt.transcript.onSpeakers(t=>{t===e&&window.yogurt.transcript.get(e,{hidden:!0}).then(e=>n(t=>{let n=new Map(e.map(e=>[Wv(e),e])),r=new Set(t.map(Wv));return[...t.map(e=>n.get(Wv(e))??e),...e.filter(e=>!r.has(Wv(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}function Xv(e,t){let[n,r]=(0,U.useState)({}),i=(0,U.useRef)({me:-1/0,them:-1/0});(0,U.useEffect)(()=>{if(r({}),i.current={me:-1/0,them:-1/0},!t)return;let n=window.yogurt.transcript.onPartial(t=>{if(t.meetingId!==e)return;let n=t.words??[];n.length&&(i.current[t.track]=Math.max(i.current[t.track],n.at(-1).endMs)),r(e=>({...e,[t.track]:{track:t.track,startMs:n[0]?.startMs??t.startMs,endMs:n.at(-1)?.endMs??t.startMs,text:t.text,words:n}}))}),a=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&r(e=>{let n=e[t.track];if(!n)return e;let r=Uv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:Rv(r),startMs:r[0]?.startMs??n.startMs}}})});return()=>{n(),a()}},[e,t]);let a=(0,U.useCallback)(e=>e.startMs<i.current[e.track]+500,[]);return{live:[`me`,`them`].map(e=>n[e]).filter(e=>!!e&&e.words.length>0),previewed:a}}function Zv({said:e}){let t=(0,U.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=kv(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,K.jsxs)(`span`,{"data-testid":`transcript-partial`,"data-track":e.track,"data-start":e.startMs,"aria-live":`off`,className:`live-words`,children:[e.words.map((e,t)=>(0,K.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,K.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{})]})]})}var Qv=(0,U.memo)(function({line:e,focused:t,name:n,query:r,playing:i,playable:a,focusable:o,arrived:s,onPlay:c,onFocusLine:l,onRestore:u}){yv(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let d=Wv(e),f=Cv(e.startMs);return(0,K.jsxs)(`span`,{"data-key":d,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":i||void 0,role:a?`button`:void 0,"aria-label":a?W(`Play from {time}, {name}: {text}`,{time:f,name:n,text:e.text}):void 0,tabIndex:a?o?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&l(d)},onClick:t=>c(e,t),title:f,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${s===`fade`?`line-in`:s===`settle`?`line-settle`:``} ${a?`line-playable cursor-pointer`:``}`,children:[(0,K.jsx)(`span`,{"data-testid":`transcript-text`,children:r?Av(e.text,r).map((e,t)=>e.hit?(0,K.jsx)(`mark`,{className:`search-mark`,children:e.text},t):(0,K.jsx)(`span`,{children:e.text},t)):e.text}),(0,K.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:f}),e.hidden&&u&&(0,K.jsx)(`button`,{"data-testid":`transcript-restore`,onClick:t=>{t.stopPropagation(),u(e)},className:`transcript-restore`,children:W(`Restore`)})]})});function $v({id:e,recording:t,inline:n=!1,active:r=!0,onClose:i,focus:a,toolbar:o}){let{lines:s,live:c,loaded:l}=Yv(e),u=vv(!l),{live:d,previewed:f}=Xv(e,t),[p,m]=(0,U.useState)(()=>({id:e,keys:Kv.get(e)??new Set})),h=(0,U.useMemo)(()=>p.id===e?p.keys:Kv.get(e)??new Set,[e,p]),g=(0,U.useMemo)(()=>bv(Ov(s,d)),[s,d]),_=e=>e.lines.some(e=>h.has(Wv(e))),v=t=>{let n=new Set(h),r=_(t);for(let e of t.lines)r?n.delete(Wv(e)):n.add(Wv(e));Kv.set(e,n),m({id:e,keys:n})};(0,U.useEffect)(()=>{let t=new Set(h);for(let e of g)if(e.echo&&_(e))for(let n of e.lines)t.add(Wv(n));t.size!==h.size&&(Kv.set(e,t),m({id:e,keys:t}))},[g,h,e]);let y=(0,U.useMemo)(()=>g.flatMap(e=>e.echo&&!_(e)?[]:e.lines.filter(e=>!(`live`in e))),[g,h]),[b,x]=(0,U.useState)(!1),S=(0,U.useRef)(void 0),C=(0,U.useCallback)(t=>{t.id!==void 0&&(x(!1),document.activeElement?.closest(`[data-key]`)?.getAttribute(`data-key`)===Wv(t)&&(S.current=Wv(t)),window.yogurt.transcript.restore(e,[t.id]).catch(()=>{S.current=void 0,x(!0)}))},[e]),[w,T]=(0,U.useState)(``),E=(0,U.useRef)(!1),[D,O]=(0,U.useState)(!1);(0,U.useEffect)(()=>{T(``),x(!1)},[e]);let[k,A]=(0,U.useState)([]);(0,U.useEffect)(()=>{if(A([]),t)return;let n=!0;return window.yogurt.audio.tracks(e).then(e=>{n&&A(e)}),()=>{n=!1}},[e,t]);let j=(0,U.useRef)(null),M=k.length>0,N=(0,U.useRef)(null),[P,F]=(0,U.useState)(0);(0,U.useLayoutEffect)(()=>{let e=N.current;if(!n||!e){F(0);return}let t=()=>F(e.getBoundingClientRect().height+16);t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[n,M,r]);let[I,L]=(0,U.useState)(),[R,z]=(0,U.useState)(0),B=(0,U.useRef)(0),ee=(0,U.useRef)(y);ee.current=y;let te=(0,U.useCallback)((e,t=!1)=>{let n=e==null?-1:Tv(ee.current,e),r=n<0?void 0:Wv(ee.current[n]);L(e=>e===r?e:r),t&&z(e=>e+1)},[]),ne=`transcript/${e}`,re=Iv(ne,r&&l),V=(0,U.useRef)(Pv(ne)===void 0),[ie,ae]=(0,U.useState)(!1),H=()=>{let e=re.current;e&&(pe.current===null&&(me.current=performance.now(),be()),V.current=e.scrollHeight-e.scrollTop-e.clientHeight<Gv,ae(!V.current))};(0,U.useLayoutEffect)(()=>{let e=re.current;r&&t&&e&&V.current&&(e.scrollTop=e.scrollHeight)},[y,d,t,r]);let oe=()=>{let e=re.current;e&&(V.current=!0,ae(!1),e.scrollTo({top:e.scrollHeight,behavior:hv()}))},se=e=>e?re.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null;(0,U.useLayoutEffect)(()=>{let e=S.current;if(!e||!s.some(t=>Wv(t)===e&&!t.hidden))return;let t=se(e);t&&(t.hasAttribute(`tabindex`)||(t.tabIndex=-1),t.focus({preventScroll:!0})),S.current=void 0},[s]);let[ce,le]=(0,U.useState)(!1),ue=(0,U.useRef)(!0),[de,fe]=(0,U.useState)(null),pe=(0,U.useRef)(null),me=(0,U.useRef)(0),he=(0,U.useRef)(I);he.current=I,(0,U.useEffect)(()=>{ue.current=!0,fe(null)},[e]);let ge=e=>{let t=re.current,n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top-n.top+t.scrollTop;return{row:{top:i,bottom:i+r.height},view:{scrollTop:t.scrollTop,height:Math.max(0,t.clientHeight-P),scrollHeight:t.scrollHeight}}},_e=e=>{let t=re.current,n=se(he.current);if(!t||!n||!e&&performance.now()-me.current<qv)return;let{row:r,view:i}=ge(n),a=uv(r,i,e);if(!(a===null||!pe.current&&Math.abs(a-t.scrollTop)<2)){if(!pe.current){let e=_v(t,()=>requestAnimationFrame(()=>{pe.current===e&&!e.active&&(pe.current=null)}));pe.current=e}pe.current.to(a)}};(0,U.useEffect)(()=>{R===B.current?ce&&ue.current&&_e(!1):(B.current=R,ue.current=!0,fe(null),_e(!0))},[I,ce,R]);let ve=(0,U.useCallback)(()=>{ue.current=!0,fe(null)},[]),ye=()=>{ve(),_e(!0)},be=()=>{let e=re.current,n=se(he.current);if(t||!e||!n)return;let{row:r,view:i}=ge(n);ue.current=lv(r,i),fe(ue.current?null:r.top<i.scrollTop?`up`:`down`)},xe=()=>{me.current=performance.now(),pe.current?.stop(),pe.current=null};(0,U.useEffect)(()=>()=>{pe.current?.stop(),pe.current=null},[e,r]);let Se=(0,U.useRef)(M);Se.current=M;let Ce=(0,U.useCallback)((e,t)=>{!Se.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(ve(),j.current?.playFrom(e.startMs))},[ve]),we=(0,U.useMemo)(()=>Ev(y,w),[y,w]),[Te,Ee]=(0,U.useState)(),Oe=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(!r||!a||Oe.current===a.seq||!y.length)return;let e=y.filter(e=>!e.hidden),t=(a.match?e[ft(e.map(e=>e.text),a.match,Math.max(0,Tv(e,a.ms)))]:void 0)??y[Math.max(0,Tv(y,a.ms))];t&&(Oe.current=a.seq,V.current=!1,Ee(Wv(t)),Ae(Wv(t)),requestAnimationFrame(()=>se(Wv(t))?.scrollIntoView({block:`center`})))},[a?.seq,y,r]),(0,U.useEffect)(()=>{if(!Te)return;let e=window.setTimeout(()=>Ee(void 0),2400);return()=>clearTimeout(e)},[Te,a?.seq]);let[ke,Ae]=(0,U.useState)(),je=ke??I??(we[0]&&Wv(we[0])),Me=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!M||!t||t!==e.target)return;let n=we.findIndex(e=>Wv(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=se(Wv(we[Math.max(0,Math.min(we.length-1,e))]));t?.focus(),t?.scrollIntoView({block:`nearest`})};e.key===`ArrowDown`?(e.preventDefault(),r(n+1)):e.key===`ArrowUp`?(e.preventDefault(),r(n-1)):e.key===`Home`?(e.preventDefault(),r(0)):e.key===`End`?(e.preventDefault(),r(we.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ve(),j.current?.playFrom(we[n].startMs))},Ne=w.trim(),Pe=(0,U.useMemo)(()=>g.map(e=>({...e,source:e,lines:Ne?e.lines.filter(e=>!(`live`in e)&&Ev([e],Ne).length):e.lines})).filter(e=>e.lines.length),[g,Ne]),Fe=(0,U.useMemo)(()=>!!I&&we.some(e=>Wv(e)===I),[I,we]),Ie=n?`section`:`aside`,Le=(0,K.jsxs)(`div`,{className:`transcript-toolbar`,children:[(0,K.jsxs)(`label`,{className:`transcript-search-field`,"data-pointer":D,onPointerDown:()=>{E.current=!0},children:[(0,K.jsx)(F_,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,K.jsx)(`input`,{"data-testid":`transcript-search`,value:w,onFocus:()=>{O(E.current),E.current=!1},onChange:e=>T(e.target.value),placeholder:W(`Search`),"aria-label":W(`Search the transcript`),spellCheck:!1})]}),!n&&i&&(0,K.jsx)(`div`,{className:`transcript-actions`,children:(0,K.jsx)(`button`,{"data-testid":`transcript-close`,onClick:i,"aria-label":W(`Hide transcript`),title:W(`Hide transcript`),className:`ghost-btn !p-1.5`,children:(0,K.jsx)(pg,{size:15,"aria-hidden":`true`})})})]});return(0,K.jsxs)(Ie,{style:{"--playback-inset":`${P}px`},"data-testid":`transcript-panel`,"aria-label":W(`Transcript`),onKeyDown:e=>{!n&&e.key===`Escape`&&(e.stopPropagation(),i?.())},className:n?`transcript-inline`:`chat-in pointer-events-auto absolute inset-x-0 bottom-1 z-20 mx-auto flex h-[min(44vh,480px)] w-[min(720px,calc(100%-48px))] flex-col rounded-xl border border-line bg-float shadow-[var(--shadow)]`,children:[r&&(o?(0,De.createPortal)(Le,o):Le),b&&(0,K.jsx)(`p`,{role:`alert`,className:`px-4 text-xs text-muted`,children:W(`Couldn't save your changes`)}),(0,K.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,K.jsx)(Ah,{enabled:r&&l,children:(0,K.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:re,onScroll:H,onWheel:xe,onTouchStart:xe,onPointerDown:xe,onKeyDownCapture:xe,onKeyDown:Me,className:`loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]`,children:[u!==`ready`&&(0,K.jsx)(`li`,{className:`loading-placeholder`,children:(0,K.jsx)(av,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,K.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,K.jsxs)(`div`,{className:`empty-state-content`,children:[(0,K.jsx)(`div`,{className:`empty-tile`,children:(0,K.jsx)($h,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),W(`Nothing heard yet.`)]})}),s.length>0&&Pe.length===0&&(0,K.jsx)(`li`,{"data-testid":`transcript-none`,className:`note-empty`,children:W(`Nothing found for “{query}”.`,{query:Ne})}),Pe.map(e=>(0,K.jsxs)(U.Fragment,{children:[e.echo&&(0,K.jsxs)(`li`,{className:`transcript-echo`,"data-testid":`transcript-echo`,children:[(0,K.jsx)(`span`,{children:xv(e.lines.length)}),(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,K.jsx)(`button`,{type:`button`,"data-testid":`transcript-echo-toggle`,"aria-label":`${xv(e.lines.length)} · ${_(e.source)?W(`Hide`):W(`Show`)}`,"aria-expanded":_(e.source),onClick:()=>v(e.source),children:_(e.source)?W(`Hide`):W(`Show`)})]}),(!e.echo||_(e.source))&&wv(e.lines).map(t=>{let n=t[0].track===`me`,r=t[0],i=n||!(`speakerColor`in r)?void 0:r.speakerColor,a=t.some(e=>!(`live`in e));return(0,K.jsxs)(`li`,{"data-testid":`transcript-turn`,"data-track":r.track,className:`transcript-turn flex flex-col gap-[5px] ${n?`items-end`:`items-start`}`,children:[(0,K.jsxs)(`p`,{className:n?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,K.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":i,"data-folder-color":i===void 0?void 0:Et[i],className:`line-who font-medium ${n?``:`text-muted`} ${a?`name-in`:`invisible`}`,children:Jv(r)}),(0,K.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:Cv(r.startMs)})]}),Dv(t).map(t=>(0,K.jsx)(`p`,{"data-testid":`transcript-bubble`,"data-track":r.track,"data-echo":e.echo||void 0,dir:`auto`,className:`bubble ${n?`bubble-me`:`bubble-them`}`,children:t.map((e,t)=>{if(`live`in e)return(0,K.jsxs)(U.Fragment,{children:[t>0&&` `,(0,K.jsx)(Zv,{said:e.live})]},`live`);let n=Wv(e);return(0,K.jsxs)(U.Fragment,{children:[t>0&&` `,(0,K.jsx)(Qv,{line:e,focused:n===Te,name:Jv(e),query:Ne,playing:n===I,playable:M,focusable:n===je,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:Ce,onFocusLine:Ae,onRestore:e.id===void 0?void 0:C})]},n)})},Wv(t[0])))]},Wv(r))})]},Wv(e.lines[0])))]})}),t&&ie&&(0,K.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:oe,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,K.jsx)(Gh,{size:12,"aria-hidden":`true`}),W(`Latest`)]}),!t&&ce&&de&&Fe&&(0,K.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:ye,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,K.jsx)(Gh,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":de===`up`}),W(`Back to playing`)]})]}),r&&M&&(0,K.jsx)(`div`,{ref:N,className:`transcript-player-dock`,children:(0,K.jsx)(jv,{ref:j,id:e,tracks:k,onTime:te,onPlaying:le})})]})}function ey(e){this.content=e}ey.prototype={constructor:ey,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ey(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ey(n)},addToStart:function(e,t){return new ey([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ey(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ey(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ey.from(e),e.size?new ey(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ey.from(e),e.size?new ey(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ey.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ey.from=function(e){if(e instanceof ey)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ey(t)};function ty(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&iy(e.charCodeAt(r-1))&&ry(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ty(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function ny(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&iy(e.charCodeAt(i-1))&&ry(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=ny(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ry(e){return e>=56320&&e<57344}function iy(e){return e>=55296&&e<56320}var J=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ty(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ny(this,e,t,n)}findIndex(e){if(e==0)return oy(0,e);if(e==this.size)return oy(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?oy(t+1,i):oy(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};J.empty=new J([],0);var ay={index:0,offset:0};function oy(e,t){return ay.index=e,ay.offset=t,ay}function sy(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!sy(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!sy(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var cy=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&sy(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};cy.none=[];var ly=class extends Error{},Y=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=dy(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(uy(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(J.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};Y.empty=new Y(J.empty,0,0);function uy(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(uy(a.content,t-i-1,n-i-1)))}function dy(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=dy(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function fy(e,t,n){if(n.openStart>e.depth)throw new ly(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ly(`Inconsistent open depths`);return py(e,t,n,0)}function py(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=py(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return vy(a,by(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return vy(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=xy(n,e);return vy(a,yy(e,i,o,t,r))}}function my(e,t){if(!t.type.compatibleContent(e.type))throw new ly(`Cannot join `+t.type.name+` onto `+e.type.name)}function hy(e,t,n){let r=e.node(n);return my(r,t.node(n)),r}function gy(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function _y(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(gy(e.nodeAfter,r),a++));for(let e=a;e<o;e++)gy(i.child(e),r);t&&t.depth==n&&t.textOffset&&gy(t.nodeBefore,r)}function vy(e,t){if(!e.type.validContent(t))throw new ly(`Invalid content for node `+e.type.name);return e.copy(t)}function yy(e,t,n,r,i){let a=e.depth>i&&hy(e,t,i+1),o=r.depth>i&&hy(n,r,i+1),s=[];return _y(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(my(a,o),gy(vy(a,yy(e,t,n,r,i+1)),s)):(a&&gy(vy(a,by(e,t,i+1)),s),_y(t,n,i,s),o&&gy(vy(o,by(n,r,i+1)),s)),_y(r,null,i,s),new J(s)}function by(e,t,n){let r=[];return _y(null,e,n,r),e.depth>n&&gy(vy(hy(e,t,n+1),by(e,t,n+1)),r),_y(t,null,n,r),new J(r)}function xy(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(J.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Sy=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return cy.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ey(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ty.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Ty.set(t,r=new Cy);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%wy,i}},Cy=class{constructor(){this.elts=[],this.i=0}},wy=12,Ty=new WeakMap,Ey=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Dy=Object.create(null),Oy=class e{constructor(e,t,n,r=cy.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||J.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&sy(this.attrs,t||e.defaultAttrs||Dy)&&cy.sameSet(this.marks,n||cy.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return Y.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new Y(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return fy(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Sy.resolveCached(this,e)}resolveNoCache(e){return Sy.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ay(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=J.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),jy(this.type.attrs,this.attrs,`node`,this.type.name);let e=cy.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];jy(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!cy.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=J.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Oy.prototype.text=void 0;var ky=class e extends Oy{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ay(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ay(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function jy(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var My=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ny(t,n);if(r.next==null)return e.empty;let i=Py(r);r.next&&r.err(`Unexpected trailing text`);let a=Wy(Vy(i));return Gy(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return J.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
-`)}};My.empty=new My(!0);var Ny=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Py(e){let t=[];do t.push(Fy(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Fy(e){let t=[];do t.push(Iy(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Iy(e){let t=By(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Ry(e,t);else break;return t}function Ly(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Ry(e,t){let n=Ly(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ly(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function zy(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function By(e){if(e.eat(`(`)){let t=Py(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=zy(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Vy(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Hy(e,t){return t-e}function Uy(e,t){let n=[];return r(t),n.sort(Hy);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Wy(e){let t=Object.create(null);return n(Uy(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);Uy(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new My(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Hy);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Gy(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function Ky(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function qy(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function Jy(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Zy(e,r,t[r]);return n}var Yy=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=Jy(e,n.attrs),this.defaultAttrs=Ky(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==My.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:qy(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Oy(this,this.computeAttrs(e),J.from(t),cy.setFrom(n))}createChecked(e=null,t,n){return t=J.from(t),this.checkContent(t),new Oy(this,this.computeAttrs(e),t,cy.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=J.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(J.empty,!0);return i?new Oy(this,e,t.append(i),cy.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:cy.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function Xy(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var Zy=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Xy(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},Qy=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Jy(e,r.attrs),this.excluded=null;let i=Ky(this.attrs);this.instance=i?new cy(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cy(this,qy(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},$y=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ey.from(e.nodes),t.marks=ey.from(e.marks||{}),this.nodes=Yy.compile(this.spec.nodes,this),this.marks=Qy.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=My.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?eb(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:eb(this,n.split(` `))}this.nodeFromJSON=e=>Oy.fromJSON(this,e),this.markFromJSON=e=>cy.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof Yy))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new ky(n,n.defaultAttrs,e,cy.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function eb(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function tb(e){return e.tag!=null}function nb(e){return e.style!=null}var rb=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(tb(e))this.tags.push(e);else if(nb(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new fb(this,t,!1);return n.addAll(e,cy.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new fb(this,t,!0);return n.addAll(e,cy.none,t.from,t.to),Y.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(mb(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=hb(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=hb(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},ib={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ab={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ob={ol:!0,ul:!0},sb=1,cb=2,lb=4;function ub(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?sb:0)|(t===`full`?cb:0)}var db=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=cy.none,this.match=i||(a&lb?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(J.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&sb)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=J.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(J.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ib.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},fb=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=ub(null,t.preserveWhitespace,0)|(n?lb:0);i=r?new db(r.type,r.attrs,cy.none,!0,t.topMatch||r.type.contentMatch,a):n?new db(null,null,cy.none,!0,null,a):new db(e.schema.topNodeType,null,cy.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&cb?`full`:this.localPreserveWS||(r.options&sb)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
-`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;ob.hasOwnProperty(a)&&this.parser.normalizeLists&&pb(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:ab.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ib.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
-`),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=cy.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):gb(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=ub(e,i,a.options);a.options&lb&&a.content.length==0&&(o|=lb);let s=cy.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):gb(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new db(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=sb);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function pb(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&ob.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function mb(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function hb(e){let t={};for(let n in e)t[n]=e[n];return t}function gb(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var _b=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=yb(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return yb(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Cb(yb(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Cb(yb(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Cb(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=vb(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return vb(e.marks)}};function vb(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function yb(e){return e.document||window.document}var bb=new WeakMap;function xb(e){let t=bb.get(e);return t===void 0&&bb.set(e,t=Sb(e)),t}function Sb(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function Cb(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=xb(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Cb(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var wb=65535,Tb=2**16;function Eb(e,t){return e+t*Tb}function Db(e){return e&wb}function Ob(e){return(e-(e&wb))/Tb}var kb=1,Ab=2,jb=4,Mb=8,Nb=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Mb)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&jb)>0}},Pb=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Db(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Ob(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Eb(o/3,e-s),f=0;return c&&(f|=e==s?Ab:e==u?kb:jb,(t<0?e!=s:e!=u)&&(f|=Mb)),new Nb(a,f,d)}r+=l-c}return n?e+r:new Nb(e+r,0,null)}touches(e,t){let n=0,r=Db(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Pb.empty=new Pb([]);var Fb=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Nb(e,r,null)}},Ib=Object.create(null),Lb=class{getMap(){return Pb.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Ib[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ib)throw RangeError(`Duplicate use of step JSON ID `+e);return Ib[e]=t,t.prototype.jsonID=e,t}},Rb=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof ly)return e.fail(t.message);throw t}}};function zb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(zb(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return J.fromArray(r)}var Bb=class e extends Lb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new Y(zb(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Rb.fromReplace(e,this.from,this.to,i)}invert(t){let n=[];return t.nodesBetween(this.from,this.to,(t,r)=>{if(t.isInline&&t.isAtom){let i=this.mark.addToSet(t.marks);if(!cy.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);Hb(Vb,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||Hb(e,a,o,r,n)}}}),n.length==1?n[0]:new Ub(n)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Lb.jsonID(`addMark`,Bb);var Vb=class e extends Lb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new Y(zb(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Rb.fromReplace(e,this.from,this.to,n)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(e,n)=>{e.isInline&&e.isAtom&&this.mark.isInSet(e.marks)&&Hb(Bb,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new Ub(t)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Lb.jsonID(`removeMark`,Vb);function Hb(e,t,n,r,i){let a=i.length?i[i.length-1]:null;a&&a instanceof e&&a.to==t&&a.mark.eq(r)?i[i.length-1]=new e(a.from,n,r):i.push(new e(t,n,r))}var Ub=class e extends Lb{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let n=t.apply(e);if(!n.doc)return n;e=n.doc}return new Rb(e,null)}invert(t){return new e(this.steps.map(e=>e.invert(t)))}map(t){let n=[];for(let e of this.steps){let r=e.map(t);r&&n.push(r)}return n.length?new e(n):null}toJSON(){return{stepType:`markSet`,steps:this.steps.map(e=>e.toJSON())}}static fromJSON(t,n){if(!Array.isArray(n.steps)||!n.steps.every(e=>e.stepType==`addMark`||e.stepType==`removeMark`))throw RangeError(`Invalid JSON for MarkSetStep`);return new e(n.steps.map(e=>Lb.fromJSON(t,e)))}};Lb.jsonID(`markSet`,Ub);var Wb=class e extends Lb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Rb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Rb.fromReplace(e,this.pos,this.pos+1,new Y(J.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Gb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Lb.jsonID(`addNodeMark`,Wb);var Gb=class e extends Lb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Rb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Rb.fromReplace(e,this.pos,this.pos+1,new Y(J.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Wb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Lb.jsonID(`removeNodeMark`,Gb);var Kb=class e extends Lb{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Jb(e,this.from,this.to)?Rb.fail(`Structure replace would overwrite content`):Rb.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Pb([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Y.empty:new Y(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Y.empty:new Y(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,Y.fromJSON(t,n.slice),!!n.structure)}};Kb.MAP_BIAS=1,Lb.jsonID(`replace`,Kb);var qb=class e extends Lb{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Jb(e,this.from,this.gapFrom)||Jb(e,this.gapTo,this.to)))return Rb.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Rb.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Rb.fromReplace(e,this.from,this.to,n):Rb.fail(`Content does not fit in gap`)}getMap(){return new Pb([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,Y.fromJSON(t,n.slice),n.insert,!!n.structure)}};Lb.jsonID(`replaceAround`,qb);function Jb(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function Yb(e,t,n,r){let i=[];e.doc.nodesBetween(t,n,(e,a,o)=>{if(!e.isInline)return;let s=e.marks;!r.isInSet(s)&&o.type.allowsMarkType(r.type)&&Hb(Bb,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function Xb(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline||!e.isAtom)return;a++;let s=null;if(r instanceof Qy){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Vb(t.from,t.to,t.style)))}function Zb(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Kb(s,l,Y.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Vb(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new Y(J.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Kb(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(J.empty,!0);e.replace(s,s,new Y(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Qb(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function $b(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!Qb(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function ex(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=J.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=J.from(r.node(e).copy(u)),d++):c--;let f=J.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=J.from(i.node(e).copy(f)),p++):l++;e.step(new qb(c,l,o,s,new Y(u.append(f),d,p),u.size-d,!0))}function tx(e,t,n=null,r=e){let i=rx(e,t),a=i&&ix(r,t);return a?i.map(nx).concat({type:t,attrs:n}).concat(a.map(nx)):null}function nx(e){return{type:e,attrs:null}}function rx(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function ix(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function ax(e,t,n){let r=J.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=J.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new qb(i,a,i,a,new Y(r,0,0),n.length,!0))}function ox(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&lx(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&cx(e,t,n,a),Zb(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new qb(c,l,c+1,l-1,new Y(J.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&sx(e,t,n,a),!1}})}function sx(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function cx(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
-`))}})}function lx(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function ux(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new qb(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new Y(J.from(o),0,0),1,!0))}function dx(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function fx(e,t,n=1,r){let i=e.doc.resolve(t),a=J.empty,o=J.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=J.from(i.node(e).copy(a));let t=r&&r[s];o=J.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new Kb(t,t,new Y(a.append(o),n,n),!0))}function px(e,t){let n=e.resolve(t),r=n.index();return hx(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function mx(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function hx(e,t){return!!(e&&t&&!e.isLeaf&&mx(e,t))}function gx(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&hx(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function _x(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);cx(e,r.node(),r.before(),s)}o.inlineContent&&Zb(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new Kb(l,c.map(t+n,-1),Y.empty,!0)),r===!0){let t=e.doc.resolve(l);sx(e,t.node(),t.before(),e.steps.length)}return e}function vx(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function yx(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function bx(e,t,n=t,r=Y.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return xx(i,a,r)?new Kb(t,n,r):new Sx(i,a,r).fit()}function xx(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Sx=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=J.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=J.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new Y(i,a,o);return e>-1?new qb(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Kb(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=Tx(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(J.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return Ax(e,-1)<=t?!1:(this.unplaced.size>1&&Ax(e,1)>n&&n++,this.unplaced=new Y(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Tx(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new Y(Cx(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new Y(Cx(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Ex(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=wx(this.placed,t,J.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?Y.empty:new Y(Cx(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new Y(Cx(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Dx(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Dx(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Dx(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=wx(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=wx(this.placed,this.depth,J.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(J.empty,!0);e.childCount&&(this.placed=wx(this.placed,this.frontier.length,e))}};function Cx(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Cx(e.firstChild.content,t-1,n)))}function wx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(wx(e.lastChild.content,t-1,n)))}function Tx(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Ex(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Ex(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(J.empty,!0)))),e.copy(r)}function Dx(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!Ox(n,a.content,o)?s:null}function Ox(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function kx(e){return e.spec.defining||e.spec.definingForContent}function Ax(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function jx(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(xx(i,a,r))return e.step(new Kb(t,n,r));let o=Fx(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=kx(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new Y(Mx(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Mx(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Mx(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(J.empty,!0))}return e}function Nx(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=vx(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Y(J.from(r),0,0))}function Px(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=Fx(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function Fx(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var Ix=class e extends Lb{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Rb.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return Rb.fromReplace(e,this.pos,this.pos+1,new Y(J.from(r),0,+!t.isLeaf))}getMap(){return Pb.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};Lb.jsonID(`attr`,Ix);var Lx=class e extends Lb{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return Rb.ok(n)}getMap(){return Pb.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};Lb.jsonID(`docAttr`,Lx);var Rx=class extends Error{};Rx=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Rx.prototype=Object.create(Error.prototype),Rx.prototype.constructor=Rx,Rx.prototype.name=`TransformError`;var zx=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Fb}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Rx(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=Y.empty){let r=bx(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new Y(J.from(n),0,0))}delete(e,t){return this.replace(e,t,Y.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return jx(this,e,t,n),this}replaceRangeWith(e,t,n){return Nx(this,e,t,n),this}deleteRange(e,t){return Px(this,e,t),this}lift(e,t){return ex(this,e,t),this}join(e,t=1){return _x(this,e,t),this}wrap(e,t){return ax(this,e,t),this}setBlockType(e,t=e,n,r=null){return ox(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return ux(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Ix(e,t,n)),this}setDocAttribute(e,t){return this.step(new Lx(e,t)),this}addNodeMark(e,t){return this.step(new Wb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof cy)t.isInSet(n.marks)&&this.step(new Gb(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new Gb(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return fx(this,e,t,n),this}addMark(e,t,n){return Yb(this,e,t,n),this}removeMark(e,t,n){return Xb(this,e,t,n),this}clearIncompatible(e,t,n){return Zb(this,e,t,n),this}},Bx=Object.create(null),Vx=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Hx(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=Y.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?Y.empty:t),o==0&&Qx(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),Qx(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Gx(e):Zx(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?Zx(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Zx(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Yx(e.node(0))}static atStart(e){return Zx(e,e,0,0,1)||new Yx(e)}static atEnd(e){return Zx(e,e,e.content.size,e.childCount,-1)||new Yx(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Bx[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Bx)throw RangeError(`Duplicate use of selection JSON ID `+e);return Bx[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Gx.between(this.$anchor,this.$head).getBookmark()}};Vx.prototype.visible=!0;var Hx=class{constructor(e,t){this.$from=e,this.$to=t}},Ux=!1;function Wx(e){!Ux&&!e.parent.inlineContent&&(Ux=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var Gx=class e extends Vx{constructor(e,t=e){Wx(e),Wx(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Vx.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=Y.empty){if(super.replace(e,t),t==Y.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Kx(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=Vx.findFrom(n,r,!0)||Vx.findFrom(n,-r,!0);if(e)n=e.$head;else return Vx.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Vx.findFrom(t,-r,!0)||Vx.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};Vx.jsonID(`text`,Gx);var Kx=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return Gx.between(e.resolve(this.anchor),e.resolve(this.head))}},qx=class e extends Vx{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Vx.near(a):new e(a)}content(){return new Y(J.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Jx(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};qx.prototype.visible=!1,Vx.jsonID(`node`,qx);var Jx=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Kx(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&qx.isSelectable(n)?new qx(t):Vx.near(t)}},Yx=class e extends Vx{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=Y.empty){if(t==Y.empty){e.delete(0,e.doc.content.size);let t=Vx.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Xx}};Vx.jsonID(`all`,Yx);var Xx={map(){return this},resolve(e){return new Yx(e)}};function Zx(e,t,n,r,i,a=!1){if(t.inlineContent)return Gx.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=Zx(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&qx.isSelectable(r))return qx.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Qx(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Kb||i instanceof qb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(Vx.near(e.doc.resolve(o),n))}var $x=1,eS=2,tS=4,nS=class extends zx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|$x)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&$x)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=eS,this}ensureMarks(e){return cy.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&eS)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||cy.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(Vx.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=tS,this}get scrolledIntoView(){return(this.updated&tS)>0}};function rS(e,t){return!t||!e?e:e.bind(t)}var iS=class{constructor(e,t,n){this.name=e,this.init=rS(t.init,n),this.apply=rS(t.apply,n)}},aS=[new iS(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new iS(`selection`,{init(e,t){return e.selection||Vx.atStart(t.doc)},apply(e){return e.selection}}),new iS(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new iS(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],oS=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=aS.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new iS(e.key,e.spec.state,e))})}},sS=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new nS(this)}static create(t){let n=new oS(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new oS(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new oS(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=Oy.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=Vx.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function cS(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=cS(i,t,{})),n[r]=i}return n}var lS=class{constructor(e){this.spec=e,this.props={},e.props&&cS(e.props,this,this.props),this.key=e.key?e.key.key:dS(`plugin`)}getState(e){return e[this.key]}},uS=Object.create(null);function dS(e){return e in uS?e+`$`+ ++uS[e]:(uS[e]=0,e+`$`)}var fS=class{constructor(e=`key`){this.key=dS(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},pS=o((e=>{var t=we();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),mS=o(((e,t)=>{t.exports=pS()})),hS=mS(),gS=Object.defineProperty,_S=(e,t)=>{let n={};for(var r in e)gS(n,r,{get:e[r],enumerable:!0});return t||gS(n,Symbol.toStringTag,{value:`Module`}),n},vS=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function yS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var bS=(e,t,n)=>{let r=yS(e,n);if(!r)return!1;let i=ES(r);if(!i){let n=r.blockRange(),i=n&&$b(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(WS(e,i,t,-1))return!0;if(r.parent.content.size==0&&(wS(a,`end`)||qx.isSelectable(a)))for(let n=r.depth;;n--){let o=bx(e.doc,r.before(n),r.after(n),Y.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(wS(a,`end`)?Vx.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):qx.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},xS=(e,t,n)=>{let r=yS(e,n);if(!r)return!1;let i=ES(r);return i?CS(e,i,t):!1},SS=(e,t,n)=>{let r=DS(e,n);if(!r)return!1;let i=AS(r);return i?CS(e,i,t):!1};function CS(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=bx(e.doc,i,o,Y.empty);if(!s||s.from!=i||s instanceof Kb&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(Gx.create(t.doc,i)),n(t.scrollIntoView())}return!0}function wS(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var TS=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=ES(r)}let o=a&&a.nodeBefore;return!o||!qx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(qx.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function ES(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function DS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var OS=(e,t,n)=>{let r=DS(e,n);if(!r)return!1;let i=AS(r);if(!i)return!1;let a=i.nodeAfter;if(WS(e,i,t,1))return!0;if(r.parent.content.size==0&&(wS(a,`start`)||qx.isSelectable(a))){let n=bx(e.doc,r.before(),r.after(),Y.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(wS(a,`start`)?Vx.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):qx.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},kS=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=AS(r)}let o=a&&a.nodeAfter;return!o||!qx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(qx.create(e.doc,a.pos)).scrollIntoView()),!0)};function AS(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var jS=(e,t)=>{let n=e.selection,r=n instanceof qx,i;if(r){if(n.node.isTextblock||!px(e.doc,n.from))return!1;i=n.from}else if(i=gx(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(qx.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},MS=(e,t)=>{let n=e.selection,r;if(n instanceof qx){if(n.node.isTextblock||!px(e.doc,n.to))return!1;r=n.to}else if(r=gx(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},NS=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&$b(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},PS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
-`).scrollIntoView()),!0)};function FS(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var IS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=FS(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(Vx.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},LS=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Yx||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=FS(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(Gx.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},RS=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(dx(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&$b(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function zS(e){return(t,n)=>{if(t.selection instanceof qx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!dx(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof Gx||t.selection instanceof Yx)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=FS(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=dx(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,dx(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var BS=zS(),VS=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(qx.create(e.doc,i))),!0)},HS=(e,t)=>(t&&t(e.tr.setSelection(new Yx(e.doc))),!0);function US(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||px(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function WS(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&US(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=J.empty;for(let e=o.length-1;e>=0;e--)s=J.from(o[e].create(null,s));s=J.from(i.copy(s));let c=e.tr.step(new qb(t.pos-1,r,t.pos,r,new Y(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&px(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:Vx.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&$b(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&wS(a,`start`,!0)&&wS(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=J.empty;for(let e=o.length-1;e>=0;e--)r=J.from(o[e].copy(r));n(e.tr.step(new qb(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new Y(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function GS(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Gx.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var KS=GS(-1),qS=GS(1);function JS(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&tx(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function YS(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function XS(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var ZS=XS(vS,bS,TS),QS=XS(vS,OS,kS),$S={Enter:XS(PS,LS,RS,BS),"Mod-Enter":IS,Backspace:ZS,"Mod-Backspace":ZS,"Shift-Backspace":ZS,Delete:QS,"Mod-Delete":QS,"Mod-a":HS},eC={"Ctrl-h":$S.Backspace,"Alt-Backspace":$S[`Mod-Backspace`],"Ctrl-d":$S.Delete,"Ctrl-Alt-Backspace":$S[`Mod-Delete`],"Alt-Delete":$S[`Mod-Delete`],"Alt-d":$S[`Mod-Delete`],"Ctrl-a":KS,"Ctrl-e":qS};for(let e in $S)eC[e]=$S[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function tC(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return nC(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function nC(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new Ey(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Ey(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=tx(a,n,r,t);return s?(e&&rC(e,t,s,i,n),!0):!1}function rC(e,t,n,r,i){let a=J.empty;for(let e=n.length-1;e>=0;e--)a=J.from(n[e].type.create(n[e].attrs,a));e.step(new qb(t.start-(r?2:0),t.end,t.start,t.end,new Y(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&dx(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function iC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?aC(t,n,e,a):oC(t,n,a):!0:!1}}function aC(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new qb(a-1,o,a,o,new Y(J.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Ey(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=$b(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return px(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function oC(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?J.empty:J.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new qb(d-+!!s,f+ +!!c,d+1,f-1,new Y((s?J.empty:J.from(i.copy(J.empty))).append(c?J.empty:J.from(i.copy(J.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function sC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=J.from(r?e.create():null),o=new Y(J.from(e.create(null,J.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new qb(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var cC=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},lC=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},uC=null,dC=function(e,t,n){let r=uC||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},fC=function(){uC=null},pC=function(e,t,n,r){return n&&(hC(e,t,n,r,-1)||hC(e,t,n,r,1))},mC=/^(img|br|input|textarea|hr)$/i;function hC(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:gC(e))){let n=e.parentNode;if(!n||!_C(n)||CC(e)||mC.test(e.nodeName)||e.contentEditable==`false`)return!1;t=cC(e)+(i<0?0:1),e=n}else if(_C(e)){let n=e.childNodes[t+(i<0?-1:0)];if(_C(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?gC(e):0}else return!1}}function gC(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function _C(e){return e.nodeType==1}function vC(e){return e.nodeType==3}function yC(e,t){return t?e.contains(_C(t)?t:t.parentNode):!1}function bC(e,t){for(;;){if(vC(e)&&t)return e;if(_C(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=gC(e)}else if(e.parentNode&&!CC(e))t=cC(e),e=e.parentNode;else return null}}function xC(e,t){for(;;){if(vC(e)&&t<e.nodeValue.length)return e;if(_C(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!CC(e))t=cC(e)+1,e=e.parentNode;else return null}}function SC(e,t,n){for(let r=t==0,i=t==gC(e);r||i;){if(e==n)return!0;let t=cC(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==gC(e)}}function CC(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var wC=function(e){return e.focusNode&&pC(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function TC(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function EC(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function DC(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(gC(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(gC(r.startContainer),r.startOffset)}}}var OC=typeof navigator<`u`?navigator:null,kC=typeof document<`u`?document:null,AC=OC&&OC.userAgent||``,jC=/Edge\/(\d+)/.exec(AC),MC=/MSIE \d/.exec(AC),NC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(AC),PC=!!(MC||NC||jC),FC=MC?document.documentMode:NC?+NC[1]:jC?+jC[1]:0,IC=!PC&&/gecko\/(\d+)/i.test(AC);IC&&+(/Firefox\/(\d+)/.exec(AC)||[0,0])[1];var LC=!PC&&/Chrome\/(\d+)/.exec(AC),RC=!!LC,zC=LC?+LC[1]:0,BC=!PC&&!!OC&&/Apple Computer/.test(OC.vendor),VC=BC&&(/Mobile\/\w+/.test(AC)||!!OC&&OC.maxTouchPoints>2),HC=VC||(OC?/Mac/.test(OC.platform):!1),UC=OC?/Win/.test(OC.platform):!1,WC=/Android \d/.test(AC),GC=!!kC&&`webkitFontSmoothing`in kC.documentElement.style,KC=GC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function qC(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function JC(e,t){return typeof e==`number`?e:e[t]}function YC(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function XC(e,t,n){if(!dw(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!_C(o)){o=lC(o);continue}let e=o==a.body,n=e?qC(a):YC(o),s=0,c=0;if(t.top<n.top+JC(r,`top`)?c=-(n.top-t.top+JC(i,`top`)):t.bottom>n.bottom-JC(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+JC(i,`top`)-n.top:t.bottom-n.bottom+JC(i,`bottom`)),t.left<n.left+JC(r,`left`)?s=-(n.left-t.left+JC(i,`left`)):t.right>n.right-JC(r,`right`)&&(s=t.right-n.right+JC(i,`right`)),s||c){if(e)a.defaultView.scrollBy(s,c);else{let e=o.scrollLeft,n=o.scrollTop;c&&(o.scrollTop+=c),s&&(o.scrollLeft+=s);let r=o.scrollLeft-e,i=o.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}}let l=e?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(l))break;o=l==`absolute`?o.offsetParent:lC(o)}}function ZC(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:QC(e.dom)}}function QC(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=lC(r));return t}function $C({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;ew(n,r==0?0:r-t)}function ew(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var tw=null;function nw(e){if(e.setActive)return e.setActive();if(tw)return e.focus(tw);let t=QC(e);e.focus(tw==null?{get preventScroll(){return tw={preventScroll:!0},!0}}:void 0),tw||(tw=!1,ew(t,0))}function rw(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(_C(u))e=u.getClientRects();else if(vC(u))e=dC(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&vC(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,_C(u)&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&vC(n)?iw(n,i):!n||r?{node:e,offset:a}:rw(n,i)}function iw(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=fw(r,1);if(n.top!=n.bottom&&aw(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function aw(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function ow(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function sw(e,t,n){let{node:r,offset:i}=rw(t,n),a=-1;if(_C(r)&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function cw(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(_C(t.dom)&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function lw(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(_C(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(aw(t,i))return lw(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function uw(e,t){let n=e.dom.ownerDocument,r,i=0,a=DC(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let n=e.dom.getBoundingClientRect();if(!aw(t,n)||(o=lw(e.dom,t,n),!o))return null}if(BC)for(let e=o;r&&e;e=lC(e))e.draggable&&(r=void 0);if(o=ow(o,t),r){if(IC&&_C(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;GC&&i&&_C(r)&&_C(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&_C(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&_C(r)&&r.childNodes[i-1].nodeName==`BR`||(s=cw(e,r,i,t))}s??=sw(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function dw(e){return e.top<e.bottom||e.left<e.right}function fw(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(dw(e))return e}return Array.prototype.find.call(n,dw)||e.getBoundingClientRect()}var pw=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function mw(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=GC||IC;if(vC(r)){if(o&&(pw.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=fw(dC(r,i,i),n);if(IC&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=fw(dC(r,i-1,i-1),-1);if(t.top==e.top){let n=fw(dC(r,i,i+1),-1);if(n.top!=e.top)return hw(n,n.left<t.left)}}return e}{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,hw(fw(dC(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==gC(r))){let e=r.childNodes[i-1];if(_C(e))return gw(e.getBoundingClientRect(),!1)}if(a==null&&i<gC(r)){let e=r.childNodes[i];if(_C(e))return gw(e.getBoundingClientRect(),!0)}return gw(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==gC(r))){let e=r.childNodes[i-1],t=vC(e)?dC(e,gC(e)-+!o):_C(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return hw(fw(t,1),!1)}if(a==null&&i<gC(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?vC(e)?dC(e,0,+!o):_C(e)?e:null:null;if(t)return hw(fw(t,-1),!0)}return hw(fw(vC(r)?dC(r):r,-n),n>=0)}function hw(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function gw(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function _w(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function vw(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return _w(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=mw(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(_C(e))t=e.getClientRects();else if(vC(e))t=dC(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var yw=/[\u0590-\u08ac]/;function bw(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!yw.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:_w(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!yC(l,u)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var xw=null,Sw=null,Cw=!1;function ww(e,t,n){return xw==t&&Sw==n?Cw:(xw=t,Sw=n,Cw=n==`up`||n==`down`?vw(e,t,n):bw(e,t,n))}var Tw=0,Ew=1,Dw=2,Ow=3,kw=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=Tw,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&yC(this.contentDOM,e)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>cC(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM)){let n=e.compareDocumentPosition(this.contentDOM);r=n&16?t>Array.from(e.childNodes).findIndex(e=>e.contains(this.contentDOM)):!(n&4)}else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node)){if(n&&(a=i.nodeDOM)&&!(_C(a)?yC(a,e):a==e))n=!1;else return i}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(;n>0;n--){let e=this.children[n-1];if(e.size||!(e instanceof Iw||e instanceof Aw&&e.side>=0))break}if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?cC(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?cC(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=cC(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=cC(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(!_C(t)||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((IC||BC)&&e==t){let{node:e,offset:t}=o;if(vC(e)){if(u=!!(t&&e.nodeValue[t-1]==`
-`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:cC(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(IC&&l.focusNode&&l.focusNode!=s.node&&_C(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&BC)&&pC(o.node,o.offset,l.anchorNode,l.anchorOffset)&&pC(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&IC)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?Dw:Ew,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Ow:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Dw:Ow}n=a}this.dirty=Dw}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?Dw:Ew;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},Aw=class extends kw{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){let e=_C(a)?a:document.createElement(`span`);e!=a&&(e.appendChild(a),a=e),e.hasAttribute(`contenteditable`)||(e.contentEditable=`false`),e.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Tw&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},jw=class extends kw{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},Mw=class e extends kw{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return o&&o.dom||(o=_b.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Ow||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ow&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Tw){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=Tw}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=$w(a,n,o,r)),t>0&&(a=$w(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},Nw=class e extends kw{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(!vC(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=_b.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=Ww(u,r,n),l?c=new Lw(t,n,r,i,u,d||null,f,l):n.isText?new Fw(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>_C(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>J.empty}}return t}matchesNode(e,t,n){return this.dirty==Tw&&e.eq(this.node)&&Gw(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new qw(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;Xw(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?cy.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,u,d)=>{s.syncToMarks(t.marks,n,e,d),l&&t.isAtom&&!t.isText&&s.addHackNode(`IMG`,s.top);let f;s.findNodeMatch(t,a,u,d)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(f=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,u,f,e)||s.updateNextNode(t,a,u,e,d,r)||s.addNode(t,a,u,e,r),r+=t.nodeSize,c&&(l=t.isAtom&&!t.isText)}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==Dw)&&(a&&this.protectLocalComposition(e,a),Rw(this.contentDOM,this.children,e),VC&&Zw(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Gx)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=Qw(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new jw(this,i,t,r);e.input.compositionNodes.push(a),this.children=$w(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==Ow||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Tw}updateOuterDeco(e){if(Gw(e,this.outerDeco))return;let t=!_C(this.nodeDOM),n=this.dom;this.dom=Hw(this.dom,this.nodeDOM,Vw(this.outerDeco,this.node,t),Vw(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){_C(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){_C(this.nodeDOM)&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function Pw(e,t,n,r,i){Ww(r,t,e);let a=new Nw(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var Fw=class e extends Nw{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==Ow||this.dirty!=Tw&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Tw||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=Tw,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=Ow)}get domAtom(){return!1}isText(e){return this.node.text==e}},Iw=class extends kw{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Tw&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},Lw=class extends Nw{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==Ow)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function Rw(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=Kw(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Mw){let t=r?r.previousSibling:e.lastChild;Rw(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=Kw(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var zw=function(e){e&&(this.nodeName=e)};zw.prototype=Object.create(null);var Bw=[new zw];function Vw(e,t,n){if(e.length==0)return Bw;let r=n?Bw[0]:new zw,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new zw(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new zw(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function Hw(e,t,n,r){if(n==Bw&&r==Bw)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=Bw[0]),i=t}Uw(i,o||Bw[0],a)}return i}function Uw(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function Ww(e,t,n){return Hw(e,e,Bw,Vw(t,n,!_C(e)))}function Gw(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Kw(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var qw=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Jw(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=Tw,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof Mw&&t.dirty!=Ow&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=Mw.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==Ow&&a.dom==a.contentDOM&&(a.dirty=Dw),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof Nw){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=Ow&&Gw(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=Dw,u.updateChildren(r,a+1),u.dirty=Tw),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Gw(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=Nw.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=Nw.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new Aw(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Mw;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Fw)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((BC||RC)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new Iw(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||_C(e)&&e.contains(this.lock.parentNode))}};function Jw(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof Mw)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function Yw(e,t){return e.type.side-t.type.side}function Xw(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u){if(d){d.sort(Yw);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c)}let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function Zw(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Qw(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function $w(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function eT(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(wC(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&qx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&SC(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new qx(o==e?s:r.resolve(e))}else if(IC&&t==`key`&&o>e.state.selection.to&&_C(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let e=n.focusNode;;e=e.parentNode){if(getComputedStyle(e).overflow!=`visible`){l=Vx.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!_C(e.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=dT(e,u,s,n)}return l}function tT(e){return e.editable?e.hasFocus():pT(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function nT(e,t=!1){let n=e.state.selection;if(lT(e,n),!tT(e))return;let r=e.input.mouseDown;if(!t&&RC&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&pC(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)cT(e);else{let{anchor:r,head:i}=n,a,o;rT&&!(n instanceof Gx)&&(n.$from.parent.inlineContent||(a=iT(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=iT(e,n.to))),e.docView.setSelection(r,i,e,t),rT&&(a&&oT(a),o&&oT(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&sT(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var rT=BC||RC&&zC<63;function iT(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(BC&&i&&i.contentEditable==`false`)return aT(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return aT(i);if(a)return aT(a)}}function aT(e){return e.contentEditable=`true`,BC&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function oT(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function sT(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!tT(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function cT(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,cC(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&PC&&FC<=11&&(n.disabled=!0,n.disabled=!1)}function lT(e,t){if(t instanceof qx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(uT(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else uT(e)}function uT(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function dT(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||Gx.between(t,n,r)}function fT(e){return e.editable&&!e.hasFocus()?!1:pT(e)}function pT(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return yC(e.dom,t.anchorNode)&&(e.editable||yC(e.dom,t.focusNode))}catch{return!1}}function mT(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return pC(t.node,t.offset,n.anchorNode,n.anchorOffset)}function hT(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Vx.findFrom(a,t)}function gT(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function _T(e,t,n){let r=e.state.selection;if(r instanceof Gx){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return gT(e,new Gx(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=hT(e.state,t);return n&&n instanceof qx?gT(e,n):!1}if(!HC||n.indexOf(`m`)<0){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?qx.isSelectable(i)?gT(e,new qx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):gT(e,new Gx(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof qx&&r.node.isInline)return gT(e,new Gx(t>0?r.$to:r.$from));else{let n=hT(e.state,t);return n?gT(e,n):!1}}function vT(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):_C(e)&&e.contentEditable==`false`}function yT(e,t){return t<0?bT(e):xT(e)}function bT(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(IC&&_C(n)&&r<gC(n)&&vT(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!_C(n))break;let e=n.childNodes[r-1];if(vT(e,-1))i=n,a=--r;else if(vC(e))n=e,r=n.nodeValue.length;else break}else if(ST(n))break;else{let t=n.previousSibling;for(;t&&vT(t,-1);)i=n.parentNode,a=cC(t),t=t.previousSibling;if(t)n=t,r=gC(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?TT(e,n,r):i&&TT(e,i,a)}function xT(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=gC(n),a,o;for(;;)if(r<i){if(!_C(n))break;let e=n.childNodes[r];if(vT(e,1))a=n,o=++r;else break}else if(ST(n))break;else{let t=n.nextSibling;for(;t&&vT(t,1);)a=t.parentNode,o=cC(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=gC(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&TT(e,a,o)}function ST(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function CT(e,t){for(;e&&t==e.childNodes.length&&!CC(e);)t=cC(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(vC(n))return n;if(_C(n)&&n.contentEditable==`false`)break;e=n,t=0}}function wT(e,t){for(;e&&!t&&!CC(e);)t=cC(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(vC(n))return n;if(_C(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function TT(e,t,n){if(!vC(t)){let e,r;(r=CT(t,n))?(t=r,n=0):(e=wT(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;wC(i)?r.collapse(t,n):r.extend&&(r.collapse(i.anchorNode,i.anchorOffset),r.extend(t,n)),e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&nT(e)},50)}function ET(e,t){let n=e.state.doc.resolve(t);if(!(RC||UC)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}let r=e.dom;for(let t=n.depth;t>0;t--)if(n.node(t).isBlock){r=e.nodeDOM(n.before(t))||r;break}return getComputedStyle(r).direction==`rtl`?`rtl`:`ltr`}function DT(e,t,n){let r=e.state.selection;if(r instanceof Gx&&!r.empty||n.indexOf(`s`)>-1||HC&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=hT(e.state,t);if(n&&n instanceof qx)return gT(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof Yx?Vx.near(n,t):Vx.findFrom(n,t);return o?gT(e,o):!1}return!1}function OT(e,t){if(!(e.state.selection instanceof Gx))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function kT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function AT(e){if(!BC||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&_C(t)&&n==0&&t.firstChild&&_C(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;kT(e,n,`true`),setTimeout(()=>kT(e,n,`false`),20)}return!1}function jT(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function MT(e,t){let n=t.keyCode,r=jT(t);if(n==8||HC&&n==72&&r==`c`)return OT(e,-1)||yT(e,-1);if(n==46&&!t.shiftKey||HC&&n==68&&r==`c`)return OT(e,1)||yT(e,1);if(n==13||n==27)return!0;if(n==37||HC&&n==66&&r==`c`){let t=n==37?ET(e,e.state.selection.from)==`ltr`?-1:1:-1;return _T(e,t,r)||yT(e,t)}if(n==39||HC&&n==70&&r==`c`){let t=n==39?ET(e,e.state.selection.from)==`ltr`?1:-1:1;return _T(e,t,r)||yT(e,t)}return n==38||HC&&n==80&&r==`c`?DT(e,-1,r)||yT(e,-1):n==40||HC&&n==78&&r==`c`?AT(e)||DT(e,1,r)||yT(e,1):!(r!=(HC?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function NT(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||_b.fromSchema(e.state.schema),s=UT(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&_C(l)&&(u=HT[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&_C(l)&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
-
-`),slice:t}}function PT(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new Y(J.from(e.state.schema.text(t.replace(/\r\n?/g,`
-`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=_b.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=KT(n),GC&&qT(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&!_C(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||rb.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!FT.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=JT(VT(s,+u[1],+u[2]),u[4]);else if(s=Y.maxOpen(IT(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=VT(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var FT=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function IT(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&RT(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=zT(a[a.length-1],i.length));let n=LT(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return J.from(a)}return e}function LT(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,J.from(e));return e}function RT(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=RT(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(J.from(LT(n,e,i+1))))}}function zT(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,zT(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(J.empty,!0);return e.copy(n.append(r))}function BT(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=BT(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(J.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function VT(e,t,n){return t<e.openStart&&(e=new Y(BT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Y(BT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var HT={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function UT(){return document.implementation.createHTMLDocument(`title`)}var WT=null;function GT(e){let t=window.trustedTypes;if(!t)return e;if(!WT){if(WT=t.defaultPolicy)try{return WT.createHTML(e)}catch{}WT=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return WT.createHTML(e)}function KT(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=UT(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&HT[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=GT(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function qT(e){let t=e.querySelectorAll(RC?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function JT(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{i=J.from(t.create(r[e+1],i))}catch{break}a++,o++}return new Y(i,a,o)}var YT={},XT={},ZT={touchstart:!0,touchmove:!0},QT=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function $T(e){for(let t in YT){let n=YT[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{iE(e,t)&&!rE(e,t)&&(e.editable||!(t.type in XT))&&n(e,t)},ZT[t]?{passive:!0}:void 0)}BC&&e.dom.addEventListener(`input`,()=>null),nE(e)}function eE(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function tE(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function nE(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>rE(e,t))})}function rE(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function iE(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function aE(e,t){!rE(e,t)&&YT[t.type]&&(e.editable||!(t.type in XT))&&YT[t.type](e,t)}XT.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!SE(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(WC&&RC&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),VC&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,TC(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||MT(e,n)?n.preventDefault():eE(e,`key`)}},XT.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},XT.keypress=(e,t)=>{let n=t;if(SE(e)||!n.charCode||n.ctrlKey&&!n.altKey||HC&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Gx)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function oE(e){return{left:e.clientX,top:e.clientY}}function sE(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function cE(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function lE(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta(`pointer`,!0),e.dispatch(r)}function uE(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&qx.isSelectable(r)?(lE(e,new qx(n)),!0):!1}function dE(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof qx&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(qx.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i!=null&&(lE(e,qx.create(e.state.doc,i)),!0)}function fE(e,t,n,r,i){return cE(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?dE(e,n):uE(e,n))}function pE(e,t,n,r){return cE(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function mE(e,t,n,r){return cE(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||hE(e,n,r)}function hE(e,t,n){if(n.button!=0)return!1;let r=gE(e,t,!0),i=e.state.doc;return r?(lE(e,r),r instanceof Gx&&i.eq(e.state.doc)&&(e.input.mouseDown=new xE(e,r)),!0):!1}function gE(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?Gx.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return Gx.create(r,a+1,a+1+t.content.size);if(n&&qx.isSelectable(t))return qx.create(r,a)}return null}function _E(e){return OE(e)}var vE=HC?`metaKey`:`ctrlKey`;YT.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=_E(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&sE(n,e.input.lastClick)&&!n[vE]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(oE(n));o&&(a==`singleClick`?e.input.mouseDown=new bE(e,o,n,!!r):(a==`doubleClick`?pE:mE)(e,o.pos,o.inside,n)?n.preventDefault():eE(e,`pointer`))};var yE=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},bE=class extends yE{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[vE],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&_C(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof qx&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&IC&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),eE(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||nT(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(oE(e))),this.updateAllowDefault(e),this.allowDefault||!t?eE(this.view,`pointer`):fE(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||BC&&this.mightDrag&&!this.mightDrag.node.isAtom||RC&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(lE(this.view,Vx.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):eE(this.view,`pointer`)}move(e){this.updateAllowDefault(e),eE(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},xE=class extends yE{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),eE(this.view,`pointer`);let t=this.view.posAtCoords(oE(e)),n=t&&gE(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];lE(this.view,Gx.create(r,a,o))}};YT.touchstart=e=>{e.input.lastTouch=Date.now(),_E(e),eE(e,`pointer`)},YT.touchmove=e=>{e.input.lastTouch=Date.now(),eE(e,`pointer`)},YT.contextmenu=e=>_E(e);function SE(e,t){return e.composing?!0:BC&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var CE=WC?5e3:-1;XT.compositionstart=XT.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Gx&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||RC&&UC&&wE(e)))e.markCursor=e.state.storedMarks||n.marks(),OE(e,!0),e.markCursor=null;else if(OE(e,!t.selection.empty),IC&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&_C(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(vC(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}TE(e,CE)};function wE(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!_C(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return _C(r)&&r.contentEditable==`false`}XT.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,TE(e,20))};function TE(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>OE(e),t))}function EE(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function DE(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=bC(t.focusNode,t.focusOffset),r=xC(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function OE(e,t=!1){if(!(WC&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),EE(e),t||e.docView&&e.docView.dirty){let n=eT(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function kE(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var AE=PC&&FC<15||VC&&KC<604;YT.copy=XT.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=AE?null:n.clipboardData,{dom:o,text:s}=NT(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):kE(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function jE(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function ME(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?NE(e,r.value,null,i,t):NE(e,r.textContent,r.innerHTML,i,t)},50)}function NE(e,t,n,r,i){let a=PT(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||Y.empty)))return!0;if(!a)return!1;let o=jE(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function PE(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}XT.paste=(e,t)=>{let n=t;if(e.composing&&!WC)return;let r=AE?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&NE(e,PE(r),r.getData(`text/html`),i,n)?n.preventDefault():ME(e,n)};var FE=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},IE=HC?`altKey`:`ctrlKey`;function LE(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[IE]:!n}YT.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(oE(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof qx?i.to-1:i.to))){if(r&&r.mightDrag)o=qx.create(e.state.doc,r.mightDrag.pos);else if(n.target&&_C(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=qx.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=NT(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!RC||zC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(AE?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,AE||n.dataTransfer.setData(`text/plain`,c),e.dragging=new FE(l,LE(e,n),o)},YT.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},XT.dragover=XT.dragenter=(e,t)=>t.preventDefault(),XT.drop=(e,t)=>{try{RE(e,t,e.dragging)}finally{e.dragging=null}};function RE(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(oE(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=PT(e,PE(t.dataTransfer),AE?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&LE(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||Y.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?yx(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&qx.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new qx(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(dT(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}YT.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nT(e)},20))},YT.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},YT.beforeinput=(e,t)=>{if(WC&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,TC(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in XT)YT[e]=XT[e];function zE(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var BE=class{constructor(e){this.frag=e,this.index=0,this.off=0}nodeAt(e){for(;this.off<=e&&this.index<this.frag.childCount;){let t=this.frag.child(this.index);if(this.off==e)return t;this.off+=t.nodeSize,this.index++}return null}},VE=class e{constructor(e,t){this.toDOM=e,this.spec=t||KE,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new WE(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&zE(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},HE=class e{constructor(e,t){this.attrs=e,this.spec=t||KE}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new WE(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&zE(this.attrs,t.attrs)&&zE(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},UE=class e{constructor(e,t){this.attrs=e,this.spec=t||KE}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new WE(i.pos-n,a.pos-n,this)}valid(e,t,n){let r=n.nodeAt(t.from);return!!r&&!r.isText&&t.from+r.nodeSize==t.to}eq(t){return this==t||t instanceof e&&zE(this.attrs,t.attrs)&&zE(this.spec,t.spec)}destroy(){}},WE=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new VE(n,r))}static inline(t,n,r,i){return new e(t,n,new HE(r,i))}static node(t,n,r,i){return new e(t,n,new UE(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof HE}get widget(){return this.type instanceof VE}},GE=[],KE={},qE=class e{constructor(e,t){this.local=e.length?e:GE,this.children=t.length?t:GE}static create(e,t){return t.length?tD(t,e,0,KE):JE}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==JE||e.maps.length==0?this:this.mapInner(e,t,0,0,n||KE)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new BE(n.content);for(let s=0;s<this.local.length;s++){let c=this.local[s].map(t,r,i);c&&c.type.valid(n,c,e)?(o||=[]).push(c):a.onRemove&&a.onRemove(this.local[s].spec)}}return this.children.length?XE(this.children,o||[],t,n,r,i,a):o?new e(o.sort(nD),GE):JE}add(t,n){return n.length?this==JE?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=$E(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,tD(s,e,o+1,KE)),a+=3}});let o=ZE(a?eD(n):n,-r);if(o.length){let e=new BE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||o.splice(n--,1)}return new e(o.length?this.local.concat(o).sort(nD):this.local,i||this.children)}remove(e){return e.length==0||this==JE?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==JE?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):JE}forChild(t,n){if(this==JE)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof HE){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(nD),GE);return r?new YE([t,r]):t}return r||JE}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return rD(this.localsInner(e))}localsInner(e){if(this==JE)return GE;if(e.inlineContent||!this.local.some(HE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof HE||t.push(this.local[e]);return t}forEachSet(e){e(this)}};qE.empty=new qE([],[]),qE.removeOverlap=rD;var JE=qE.empty,YE=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,KE));return e.from(r)}forChild(t,n){if(n.isLeaf)return qE.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=JE&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length){if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}}return t?rD(n?t:t.sort(nD)):GE}static from(t){switch(t.length){case 0:return JE;case 1:return t[0];default:return new e(t.every(e=>e instanceof qE)?t:t.reduce((e,t)=>e.concat(t instanceof qE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function XE(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==JE?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=tD(QE(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new qE(t.sort(nD),s)}function ZE(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new WE(i.from+t,i.to+t,i.type))}return n}function QE(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function $E(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function eD(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function tD(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=$E(e,t,o+n);if(s){a=!0;let e=tD(s,t,n+o+1,r);e!=JE&&i.push(o,o+t.nodeSize,e)}});let o=ZE(a?eD(e):e,-n).sort(nD);if(o.length){let e=new BE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||(r.onRemove&&r.onRemove(o[n].spec),o.splice(n--,1))}return o.length||i.length?new qE(o,i):JE}function nD(e,t){return e.from-t.from||e.to-t.to}function rD(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from)a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),iD(t,i+1,a.copy(r.to,a.to)));else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),iD(t,i,r.copy(a.from,r.to)));break}}}return t}function iD(e,t,n){for(;t<e.length&&nD(n,e[t])>0;)t++;e.splice(t,0,n)}function aD(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=JE&&t.push(r)}),e.cursorWrapper&&t.push(qE.create(e.state.doc,[e.cursorWrapper.deco])),YE.from(t)}var oD={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},sD=PC&&FC<=11,cD=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},lD=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new cD,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);PC&&FC<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():BC&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),sD&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,oD)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(fT(this.view)){if(this.suppressingSelectionUpdates)return nT(this.view);if(PC&&FC<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&pC(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=lC(n))t.add(n);for(let r=e.anchorNode;r;r=lC(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:vC(n)?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n,r=!1;!this.suppressingSelectionUpdates&&fT(e)&&(n=e.domSelectionRange(),r=!this.currentSelection.eq(n)&&!this.ignoreSelectionChange(n));let i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||RC&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&_C(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(IC&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||hD(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&wC(n)&&(c=eT(e))&&c.eq(Vx.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,nT(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),fD(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,gD(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&nT(e),n&&this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),vC(r)&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(PC&&FC<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?cC(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?cC(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},uD=new WeakMap,dD=!1;function fD(e){if(!uD.has(e)&&(uD.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=IC,dD)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),dD=!0}}function pD(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return pC(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function mD(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return pD(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?pD(e,n):null}function hD(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function gD(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||!_C(e)||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function _D(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&yC(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],wC(l)||u.push({node:l.focusNode,offset:l.focusOffset})),RC&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||rb.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:vD(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var vD=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(BC&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||BC&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},yD=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bD(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=eT(e,t);if(n&&!e.state.selection.eq(n)){if(RC&&WC&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,TC(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=_D(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=ED(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(VC&&e.input.lastIOSEnter>Date.now()-225||WC)&&i.some(e=>_C(e)&&!yD.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,TC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof Gx&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=xD(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Gx&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),PC&&FC<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((VC&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&wD(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,TC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:CD(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,TC(8,`Backspace`)))){WC&&RC&&e.domObserver.suppressSelectionUpdates();return}RC&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),WC&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,TC(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=xD(e,n.doc,l.sel);t&&!(RC&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||PC&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){PC&&FC<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nT(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=SD(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x())}else e.dispatch(x())}function xD(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:dT(e,t.resolve(n.anchor),t.resolve(n.head))}function SD(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(J.from(l).eq(e))return{mark:s,type:o}}function CD(e,t,n,r,i){if(n-t<=i.pos-r.pos||TD(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.inlineContent){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(TD(a,!0,!0));return!o.parent.isTextblock||o.pos>n||TD(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function wD(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(e,a)=>{e.isTextblock&&a>=t&&a<n?r++:(e.isText?/\S/.test(e.text.slice(Math.max(0,t-a),Math.min(e.nodeSize,n-a))):e.isLeaf)&&i++}),i==0&&r==1}function TD(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function ED(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var DD=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new QT,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(PD),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=AD(this),kD(this),this.nodeViews=MD(this),this.docView=Pw(this.state.doc,OD(this),aD(this),this.dom,this),this.domObserver=new lD(this,(e,t,n,r)=>bD(this,e,t,n,r)),this.domObserver.start(),$T(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&nE(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(PD),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(EE(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=MD(this);ND(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&nE(this),this.editable=AD(this),kD(this);let o=aD(this),s=OD(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&ZC(this);if(i){this.domObserver.stop();let t=l&&(PC||RC)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&jD(n.selection,e.selection);if(l){let n=RC?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=DE(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=Pw(e.doc,s,o,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&mT(this)&&i.delaySelUpdate())?nT(this,t):(lT(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&$C(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&yC(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof qx){let t=this.docView.domAfterPos(this.state.selection.from);_C(t)&&XC(this,t.getBoundingClientRect(),e)}else XC(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new FE(e.slice,e.move,r<0?void 0:qx.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(PC){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&nw(this.dom),nT(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return uw(this,e)}coordsAtPos(e,t=1){return mw(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return ww(this,t||this.state,e)}pasteHTML(e,t){return NE(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return NE(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return NT(this,e)}destroy(){this.docView&&(tE(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],aD(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,fC())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return aE(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?BC&&this.root.nodeType===11&&EC(this.dom.ownerDocument)==this.dom&&mD(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};DD.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function OD(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[WE.node(0,e.state.doc.content.size,t)]}function kD(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:WE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function AD(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function jD(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function MD(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function ND(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function PD(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var FD={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},ID={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},LD=typeof navigator<`u`&&/Mac/.test(navigator.platform),RD=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),zD=0;zD<10;zD++)FD[48+zD]=FD[96+zD]=String(zD);for(var zD=1;zD<=24;zD++)FD[zD+111]=`F`+zD;for(var zD=65;zD<=90;zD++)FD[zD]=String.fromCharCode(zD+32),ID[zD]=String.fromCharCode(zD);for(var BD in FD)ID.hasOwnProperty(BD)||(ID[BD]=FD[BD]);function VD(e){var t=!(LD&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||RD&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?ID:FD)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var HD=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),UD=typeof navigator<`u`&&/Win/.test(navigator.platform);function WD(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))HD?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function GD(e){let t=Object.create(null);for(let n in e)t[WD(n)]=e[n];return t}function KD(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function qD(e){return new lS({props:{handleKeyDown:JD(e)}})}function JD(e){let t=GD(e);return function(e,n){let r=VD(n),i,a=t[KD(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[KD(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(UD&&n.ctrlKey&&n.altKey)&&(i=FD[n.keyCode])&&i!=r){let r=t[KD(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var YD=200,XD=function(){};XD.prototype.append=function(e){return e.length?(e=XD.from(e),!this.length&&e||e.length<YD&&this.leafAppend(e)||this.length<YD&&e.leafPrepend(this)||this.appendInner(e)):this},XD.prototype.prepend=function(e){return e.length?XD.from(e).append(this):this},XD.prototype.appendInner=function(e){return new QD(this,e)},XD.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?XD.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},XD.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},XD.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},XD.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},XD.from=function(e){return e instanceof XD?e:e&&e.length?new ZD(e):XD.empty};var ZD=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=YD)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=YD)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(XD);XD.empty=new ZD([]);var QD=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(XD),$D=500,eO=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new nO(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new nO(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new nO(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>iO&&(s=tO(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new Fb;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new nO(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new nO(i,o,l))}else r.push(new nO(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new nO(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>$D&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new nO(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(XD.from(i.reverse()),a)}};eO.empty=new eO(XD.empty,0);function tO(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var nO=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},rO=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},iO=20;function aO(e,t,n,r){let i=n.getMeta(mO),a;if(i)return i.historyState;n.getMeta(hO)&&(e=new rO(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(mO))return o.getMeta(mO).redo?new rO(e.done.addTransform(n,void 0,r,fO(t)),e.undone,sO(n.mapping.maps),e.prevTime,e.prevComposition):new rO(e.done,e.undone.addTransform(n,void 0,r,fO(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!oO(n,e.prevRanges)),s=o?cO(e.prevRanges,n.mapping):sO(n.mapping.maps);return new rO(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,fO(t)),eO.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new rO(e.done.rebased(n,a),e.undone.rebased(n,a),cO(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new rO(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),cO(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function oO(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function sO(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function cO(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function lO(e,t,n){let r=fO(t),i=mO.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new rO(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(mO,{redo:n,historyState:c})}var uO=!1,dO=null;function fO(e){let t=e.plugins;if(dO!=t){uO=!1,dO=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){uO=!0;break}}return uO}function pO(e){return e.setMeta(hO,!0)}var mO=new fS(`history`),hO=new fS(`closeHistory`);function gO(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new lS({key:mO,state:{init(){return new rO(eO.empty,eO.empty,null,0,-1)},apply(t,n,r){return aO(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?vO:n==`historyRedo`?yO:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function _O(e,t){return(n,r)=>{let i=mO.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=lO(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var vO=_O(!1,!0),yO=_O(!0,!0);function bO(e){return e.getMeta(mO)!=null}function xO(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var SO=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:xO({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},CO=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),wO=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),TO=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=$b(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},EO=e=>t=>e(t),DO=()=>({state:e,dispatch:t})=>LS(e,t),OO=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new Gx(r.doc.resolve(Math.max(o-1,0)))),!0},kO=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function AO(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var jO=e=>({tr:t,state:n,dispatch:r})=>{let i=AO(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},MO=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},NO=e=>e.content?/^text(\*|\+)/.test(e.content):!1,PO=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return NO(r)?n===`left`?e.start()-1:e.end()+1:e.pos},FO=(e,t,n)=>({from:PO(e,n,`left`),to:PO(t,n,`right`)}),IO=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=FO(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(Gx.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},LO=()=>({commands:e})=>e.keyboardShortcut(`Enter`),RO=()=>({state:e,dispatch:t})=>IS(e,t);function zO(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function BO(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:zO(t[r])?t[r].test(e[r]):t[r]===e[r])}function VO(e,t,n={}){return e.find(e=>e.type===t&&BO(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function HO(e,t,n={}){return!!VO(e,t,n)}function UO(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!VO([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&HO([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&HO([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function WO(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var GO=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=WO(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=UO(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=Gx.create(o,e.from,e.to);n.setSelection(t)}}return!0},KO=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function qO(e){return e instanceof Gx}function JO(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function YO(e,t=null){if(!t)return null;let n=Vx.atStart(e),r=Vx.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?Gx.create(e,JO(0,i,a),JO(e.content.size,i,a)):Gx.create(e,JO(t,i,a),JO(t,i,a))}function XO(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function ZO(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function QO(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var $O=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(ZO()||XO())&&r.dom.focus(),QO()&&!ZO()&&!XO()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!qO(n.state.selection))return o(),!0;let s=YO(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},ek=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),tk=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),nk=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&nk(r)}return e};function rk(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return nk(n)}function ik(e){return typeof e?.nodesBetween==`function`}function ak(e,t,n){if(ik(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return J.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),ak(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new $y({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?rb.fromSchema(a).parseSlice(rk(e),n.parseOptions):rb.fromSchema(a).parse(rk(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=rb.fromSchema(t);return n.slice?r.parseSlice(rk(e),n.parseOptions).content:r.parse(rk(e),n.parseOptions)}return ak(``,t,n)}function ok(e){return!(`type`in e)}function sk(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Kb||i instanceof qb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Vx.near(e.doc.resolve(o),n))}var ck=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{ak(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=ak(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=ok(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):ik(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=J.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&sk(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function lk(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var uk=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=lk(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=ak(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&sk(t,t.steps.length-1,-1)),!0):!1},dk=()=>({state:e,dispatch:t})=>jS(e,t),fk=()=>({state:e,dispatch:t})=>MS(e,t),pk=()=>({state:e,dispatch:t})=>bS(e,t),mk=()=>({state:e,dispatch:t})=>OS(e,t),hk=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},gk=()=>({state:e,dispatch:t,tr:n})=>{try{let r=gx(e.doc,e.selection.$from.pos,-1);return r==null||!hk(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},_k=()=>({state:e,dispatch:t,tr:n})=>{try{let r=gx(e.doc,e.selection.$from.pos,1);return r==null||!hk(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},vk=()=>({state:e,dispatch:t})=>xS(e,t),yk=()=>({state:e,dispatch:t})=>SS(e,t);function bk(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function xk(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))ZO()||bk()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var Sk=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=xk(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function Ck(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?AO(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>BO(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var wk=(e,t={})=>({state:n,dispatch:r})=>Ck(n,AO(e,n.schema),t)?NS(n,r):!1,Tk=()=>({state:e,dispatch:t})=>RS(e,t),Ek=e=>({state:t,dispatch:n})=>iC(AO(e,t.schema))(t,n),Dk=()=>({state:e,dispatch:t})=>PS(e,t);function Ok(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function kk(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var Ak=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Ok(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=AO(e,r.schema)),s===`mark`&&(o=WO(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,kk(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(kk(a.attrs,t))))})})}),c},jk=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Mk=()=>({tr:e,dispatch:t})=>{if(t){let t=new Yx(e.doc);e.setSelection(t)}return!0},Nk=()=>({state:e,dispatch:t})=>TS(e,t),Pk=()=>({state:e,dispatch:t})=>kS(e,t),Fk=()=>({state:e,dispatch:t})=>VS(e,t),Ik=()=>({state:e,dispatch:t})=>qS(e,t),Lk=()=>({state:e,dispatch:t})=>KS(e,t);function Rk(e,t,n={},r={}){return ak(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var zk=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=Rk(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=ok(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function Bk(e,t){let n=WO(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function Vk(e,t){let n=new zx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Hk(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Uk(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Wk(e){return t=>Uk(t.$from,e)}function X(e,t,n){return e.config[t]===void 0&&e.parent?X(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?X(e.parent,t,n):null}):e.config[t]}function Gk(e){return e.map(e=>{let t=X(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...Gk(t())]:e}).flat(10)}function Kk(e,t){let n=_b.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function qk(e,t){let n=new Map;for(let t of e){let e=n.get(t.type)??new Map;e.set(t.name,t),n.set(t.type,e)}return[...Object.values(t.nodes),...Object.values(t.marks)].flatMap(e=>Object.entries(e.spec.attrs??{}).map(([t,r])=>{let i=n.get(e.name)?.get(t),a=Object.hasOwn(r,`default`);return{type:e.name,name:t,attribute:{rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,...i?.attribute,default:r.default,isRequired:!a,validate:r.validate}}}))}var Jk={content:`string`,marks:`string`,group:`string`,inline:`boolean`,atom:`boolean`,selectable:`boolean`,draggable:`boolean`,code:`boolean`,whitespace:[`pre`,`normal`],definingAsContext:`boolean`,definingForContent:`boolean`,defining:`boolean`,isolating:`boolean`,linebreakReplacement:`boolean`},Yk={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function Xk(e,t,n){return Object.fromEntries(Object.entries(t).flatMap(([t,r])=>{let i=e[t];if(i===void 0)return[];if(!(typeof r==`string`?typeof i===r:typeof i==`string`&&r.includes(i)))throw RangeError(`Invalid schemaSpec field '${n}.${t}'`);return[[t,i]]}))}function Zk(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...Xk(n,r,e),attrs:n.attrs}}function Qk(e,t,n){for(let r of Object.keys(t))if(!Object.hasOwn(e,r))throw RangeError(`schemaSpec requires a local ${n} extension named '${r}'`);for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw RangeError(`Local ${n} extension '${r}' is not in schemaSpec`)}function $k(e,t){Qk(e.nodes,t.nodes,`node`),Qk(e.marks,t.marks,`mark`);let n=t.spec.nodes,r=t.spec.marks;return t.spec.nodes.forEach((t,r)=>{n=n.update(t,Zk(t,e.nodes[t],r,Jk))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,Zk(t,e.marks[t],n,Yk))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function eA(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function tA(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function nA(e){let t=[],{nodeExtensions:n,markExtensions:r}=tA(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=X(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=X(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function rA(e){return typeof e==`function`}function iA(e,t=void 0,...n){return rA(e)?t?e.bind(t)(...n):e(...n):e}function aA(e={}){return Object.keys(e).length===0&&e.constructor===Object}function oA(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function sA(e){let t=[],n=oA(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function cA(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...sA(n[e]),...sA(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function lA(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>cA(e,t),{})}function uA(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function dA(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):uA(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function fA(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&aA(t)?!1:t!=null))}function pA(e){var t,n;let r={};return!(e!=null&&(t=e.attribute)!=null&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function mA(e,t,n=nA(e)){let{nodeExtensions:r,markExtensions:i}=tA(e);return{topNode:r.find(e=>X(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=fA({...e.reduce((e,t)=>{let n=X(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:iA(X(r,`content`,a)),marks:iA(X(r,`marks`,a)),group:iA(X(r,`group`,a)),inline:iA(X(r,`inline`,a)),atom:iA(X(r,`atom`,a)),selectable:iA(X(r,`selectable`,a)),draggable:iA(X(r,`draggable`,a)),code:iA(X(r,`code`,a)),whitespace:iA(X(r,`whitespace`,a)),linebreakReplacement:iA(X(r,`linebreakReplacement`,a)),defining:iA(X(r,`defining`,a)),isolating:iA(X(r,`isolating`,a)),attrs:Object.fromEntries(i.map(pA))}),s=iA(X(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>dA(e,i)));let c=X(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:lA(e,i)}));let l=X(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=fA({...e.reduce((e,t)=>{let n=X(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:iA(X(r,`inclusive`,a)),excludes:iA(X(r,`excludes`,a)),group:iA(X(r,`group`,a)),spanning:iA(X(r,`spanning`,a)),code:iA(X(r,`code`,a)),attrs:Object.fromEntries(i.map(pA))}),s=iA(X(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>dA(e,i)));let c=X(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:lA(e,i)})),[r.name,o]}))}}function hA(e,t,n){if(n===void 0)return new $y(mA(e,t));let r=eA(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new $y(n);return new $y($k(mA(e,t,qk(nA(e),i)),i))}function gA(e){return e.sort((e,t)=>{let n=X(e,`priority`)||100,r=X(t,`priority`)||100;return n>r?-1:+(n<r)})}function _A(e){let t=gA(Gk(e)),n=eA(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function vA(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
-
-`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function yA(e,t){return vA(e,{from:0,to:e.content.size},t)}function bA(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function xA(e,t){let n=AO(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function SA(e,t){let n=Ok(typeof t==`string`?t:t.name,e.schema);return n===`node`?xA(e,t):n===`mark`?Bk(e,t):{}}function CA(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function wA(e){let t=CA(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function TA(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),wA(r)}function EA(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=UO(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var DA=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},OA=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function kA(e,t){return t.nodes[e]||t.marks[e]||null}function AA(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var jA=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function MA(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?WO(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>BO(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>BO(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function NA(e,t,n={}){if(!t)return Ck(e,null,n)||MA(e,null,n);let r=Ok(t,e.schema);return r===`node`?Ck(e,t,n):r===`mark`&&MA(e,t,n)}var PA=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=Wk(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},FA=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function IA(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function LA(e,t){let{nodeExtensions:n}=tA(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=iA(X(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function RA(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(RA(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function zA(e){return e instanceof qx}function BA(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.apply==`function`&&typeof t.getMap==`function`&&typeof t.invert==`function`&&typeof t.map==`function`&&typeof t.merge==`function`&&typeof t.toJSON==`function`}function VA(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!BA(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var HA=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function UA(e,t){let n=t.mapping.mapResult(e.position);return{position:new HA(n.pos),mapResult:n}}function WA(e){return new HA(e)}function GA(e,t,n){let r=e.state.doc.content.size,i=JO(t,0,r),a=JO(n,0,r),o=e.coordsAtPos(i),s=e.coordsAtPos(a,-1),c=Math.min(o.top,s.top),l=Math.max(o.bottom,s.bottom),u=Math.min(o.left,s.left),d=Math.max(o.right,s.right),f={top:c,bottom:l,left:u,right:d,width:d-u,height:l-c,x:u,y:c};return{...f,toJSON:()=>f}}function KA(e,t,n){let{selection:r}=t,i=null;if(qO(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var qA=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=WO(e,r.schema);if(i){if(o){let e=Bk(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return KA(r,n,c)},JA=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),YA=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=AO(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>YS(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>YS(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},XA=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=JO(e,0,n.content.size),i=qx.create(n,r);t.setSelection(i)}return!0},ZA=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},QA=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=Gx.atStart(n).from,o=Gx.atEnd(n).to,s=JO(r,a,o),c=JO(i,a,o),l=Gx.create(n,s,c);t.setSelection(l)}return!0},$A=e=>({state:t,dispatch:n})=>sC(AO(e,t.schema))(t,n);function ej(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var tj=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=AA(l,s.node().type.name,s.node().attrs);if(a instanceof qx&&a.node.isBlock)return!s.parentOffset||!dx(o,s.pos)?!1:(r&&(e&&ej(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:lk(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof Gx&&!a.empty?sS.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=dx(h,g,1,p);if(!p&&!_&&dx(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof Gx&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&ej(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},nj=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=AO(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=J.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=J.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...AA(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(J.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new Y(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(Gx.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...AA(d,u.type.name,u.attrs),...t},m={...AA(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!dx(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function rj(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function ij(e,t){if(e.pendingContent.length===0)return!0;let n=rj(t,J.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function aj(e,t,n){return n.validContent(J.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!ij(t,n)||!n.validContent(J.from(e))?!1:(t.pendingContent.push(e),!0)}function oj(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=rj(n.listType,J.from(i),e.attrs);return a?n.itemType.validContent(J.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):ij(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function sj(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?oj(a,r,t,n):aj(a,r,t.itemType)))return null}return ij(r,t.itemType)?r.items:null}function cj(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=sj(e.child(r),t,cj);if(!i)return null;n.push(...i)}return n}function lj(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function uj(e){return!e||e===`1`?null:e}function dj(e,t){return uj(e)===uj(t)}var fj=(e,t)=>{let n=Wk(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&px(e.doc,n.pos))||!dj(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},pj=(e,t)=>{let n=Wk(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&px(e.doc,r))||!dj(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function mj(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return Gx.between(r,i)}var hj=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=AO(e,o.schema),m=AO(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=Wk(e=>LA(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&LA(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=mj(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(LA(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>fj(a,p)).command(()=>pj(a,p)).run();if(LA(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=cj(E.node,{listType:p,itemType:m,isListNode:e=>LA(e.type.name,d)}),t=e?J.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=lj(l,i),t=lj(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(Gx.create(a.doc,n,r))}}return!0}).command(()=>fj(a,p)).command(()=>pj(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>fj(a,p)).command(()=>pj(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>fj(a,p)).command(()=>pj(a,p)).run()},gj=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=WO(e,r.schema);return MA(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},_j=(e,t,n={})=>({state:r,commands:i})=>{let a=AO(e,r.schema),o=AO(t,r.schema),s=Ck(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},vj=(e,t={})=>({state:n,commands:r})=>{let i=AO(e,n.schema);return Ck(n,i,t)?r.lift(i):r.wrapIn(i,t)},yj=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},bj=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},xj=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=WO(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=UO(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},Sj=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},Cj=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Ok(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=AO(e,r.schema)),s===`mark`&&(o=WO(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},wj=new fS(`__tiptap_decorations__`),Tj=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(wj,{type:`force`,name:e}),!0),Ej=(e,t={})=>({state:n,dispatch:r})=>JS(AO(e,n.schema),t)(n,r),Dj=(e,t={})=>({state:n,dispatch:r})=>tC(AO(e,n.schema),t)(n,r),Oj=_S({blur:()=>CO,clearContent:()=>wO,clearNodes:()=>TO,command:()=>EO,createParagraphNear:()=>DO,cut:()=>OO,deleteCurrentNode:()=>kO,deleteNode:()=>jO,deleteRange:()=>MO,deleteSelection:()=>IO,enter:()=>LO,exitCode:()=>RO,extendMarkRange:()=>GO,first:()=>KO,focus:()=>$O,forEach:()=>ek,insertContent:()=>tk,insertContentAt:()=>ck,insertDefaultBlock:()=>uk,joinBackward:()=>pk,joinDown:()=>fk,joinForward:()=>mk,joinItemBackward:()=>gk,joinItemForward:()=>_k,joinTextblockBackward:()=>vk,joinTextblockForward:()=>yk,joinUp:()=>dk,keyboardShortcut:()=>Sk,lift:()=>wk,liftEmptyBlock:()=>Tk,liftListItem:()=>Ek,newlineInCode:()=>Dk,resetAttributes:()=>Ak,scrollIntoView:()=>jk,selectAll:()=>Mk,selectNodeBackward:()=>Nk,selectNodeForward:()=>Pk,selectParentNode:()=>Fk,selectTextblockEnd:()=>Ik,selectTextblockStart:()=>Lk,setContent:()=>zk,setMark:()=>qA,setMeta:()=>JA,setNode:()=>YA,setNodeSelection:()=>XA,setTextDirection:()=>ZA,setTextSelection:()=>QA,sinkListItem:()=>$A,splitBlock:()=>tj,splitListItem:()=>nj,toggleList:()=>hj,toggleMark:()=>gj,toggleNode:()=>_j,toggleWrap:()=>vj,undoInputRule:()=>yj,unsetAllMarks:()=>bj,unsetMark:()=>xj,unsetTextDirection:()=>Sj,updateAttributes:()=>Cj,updateDecorations:()=>Tj,wrapIn:()=>Ej,wrapInList:()=>Dj}),kj=new WeakMap;function Aj(e,t){kj.set(e,(kj.get(e)??0)+1);try{return t()}finally{let t=(kj.get(e)??1)-1;t>0?kj.set(e,t):kj.delete(e)}}function jj(e){return kj.has(e)}var Mj=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},Nj=typeof process<`u`&&!1;function Pj(e){return e.kind===`widget`}function Fj(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&Pj(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function Ij(e,t,n){let{decorations:r,widgetKeys:i}=Fj(t,n);return{set:qE.create(e,r),widgetKeys:i}}function Lj({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function Rj({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>Lj({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function zj(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function Bj(e){let t=new Map,n=new Map;for(let r of e.find()){let e=zj(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function Vj(e){return e.jsonID===`attr`}function Hj(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||Vj(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function Uj(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function Wj(e,t){if(e.steps.some(e=>!Hj(e)))return{type:`full`};let n=TA(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!Vj(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=Uj(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function Gj(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function Kj(e,t,n){let r=t.decorationSetsByExtension[e]??qE.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:Gj(r,n.mapping,n.doc,i),widgetKeys:i}}function qj(e,t){let n=Object.values(t).flatMap(e=>e.find());return qE.create(e,n)}function Jj(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function Yj(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function Xj(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var Zj=new Set,Qj=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=wj.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>Yj(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return wj.getState(this.editor.state)?.widgetKeys??Zj}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new lS({key:wj,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:Jj(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(wj),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return Aj(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!Xj(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=Kj(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:Jj(u)}}},props:{decorations(e){return wj.getState(e)?.mergedDecorationSet??qE.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=Wj(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??qE.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=Gj(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>Lj({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=zj(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=Fj(Rj({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return Ij(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!Nj)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=Bj(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:qj(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):qj(n.doc,r)}};function $j(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof qx){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function eM(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function tM(e){return typeof e==`number`}function nM(e){return Object.prototype.toString.call(e).slice(8,-1)}function rM(e){return nM(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function iM(e,t,n){let r=e.split(`
+ `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,q.jsx)(Hf,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:W.cloneElement(e,{ref:d})})}var Wf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Ff(Gf),d=(0,W.useId)(),f=(0,W.useRef)(),p=(0,W.useRef)(n),m=(0,W.useRef)(r);If(()=>{p.current=n,m.current=r});let h=!0,g=(0,W.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,W.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),W.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,q.jsx)(Uf,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,q.jsx)(Lf.Provider,{value:g,children:e})};function Gf(){return new Map}function Kf(e=!0){let t=(0,W.useContext)(Lf);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,W.useId)();(0,W.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,W.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function qf(){return Jf((0,W.useContext)(Lf))}function Jf(e){return e===null||e.isPresent}var Yf=e=>e.key||``;function Xf(e){let t=[];return W.Children.forEach(e,e=>{(0,W.isValidElement)(e)&&t.push(e)}),t}var Zf=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Kf(o),f=(0,W.useMemo)(()=>Xf(e),[e]),p=o&&!u?[]:f.map(Yf),m=(0,W.useRef)(!0),h=Ff(()=>new Map),g=(0,W.useRef)(new Set),[_,v]=(0,W.useState)(f),[y,b]=(0,W.useState)(f);If(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,W.useRef)();(0,W.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),If(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Yf(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Yf(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Yf(e)))?e=f:a===`wait`&&(e=S),b(Xf(e)),v(f),null}let{forceRender:C}=(0,W.useContext)(Pf);return(0,q.jsx)(q.Fragment,{children:y.map(e=>{let _=Yf(e),b=o&&!u?!1:f===y||p.includes(_);return(0,q.jsx)(Wf,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Qf=(0,W.createContext)({strict:!1}),$f={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},ep=!1;function tp(){if(ep)return;let e={};for(let t in $f)e[t]={isEnabled:e=>$f[t].some(t=>!!e[t])};pu(e),ep=!0}function np(){return tp(),mu()}function rp(e){let t=np();for(let n in e)t[n]={...t[n],...e[n]};pu(t)}function ip({children:e,...t}){let n=(0,W.useContext)(Rf);t={...n,...t},t.transition=ho(t.transition,n.transition),t.isStatic=Ff(()=>t.isStatic);let r=(0,W.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,q.jsx)(Rf.Provider,{value:r,children:e})}var ap=(0,W.createContext)({});function op(e,t){if(iu(e)){let{initial:t,animate:n}=e;return{initial:t===!1||tu(t)?t:void 0,animate:tu(n)?n:void 0}}return e.inherit===!1?{}:t}function sp(e){let{initial:t,animate:n}=op(e,(0,W.useContext)(ap));return(0,W.useMemo)(()=>({initial:t,animate:n}),[cp(t),cp(n)])}function cp(e){return Array.isArray(e)?e.join(` `):e}var lp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function up(e,t,n){for(let r in t)!Lo(t[r])&&!vu(r,n)&&(e[r]=t[r])}function dp({transformTemplate:e},t){return(0,W.useMemo)(()=>{let n=lp();return ws(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fp(e,t){let n=e.style||{},r={};return up(r,n,e),Object.assign(r,dp(e,t)),r}function pp(e,t){let n={},r=fp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var mp=()=>({...lp(),attrs:{}});function hp(e,t,n,r){let i=(0,W.useMemo)(()=>{let n=mp();return ks(n,t,Id(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};up(t,e.style,e),i.style={...t,...i.style}}return i}var gp=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function _p(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||gp.has(e)}function vp(e,t){return e.startsWith(`on`)?!_p(e):t?.(e)??!_p(e)}function yp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Lo(e[a])||(vp(a,r)||n===!0&&_p(a)||!t&&!_p(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var bp=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function xp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??xp(e)?hp:pp)(t,r,i,e),l=yp(t,typeof e==`string`,a,s),u=e===W.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,W.useMemo)(()=>Lo(d)?d.get():d,[d]);return(0,W.createElement)(e,{...u,children:f})}function Cp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:wp(n,r,i,e),renderState:t()}}function wp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=mc(a[e]);let{initial:o,animate:s}=e,c=iu(e),l=au(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!eu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=ko(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Tp=e=>(t,n)=>{let r=(0,W.useContext)(ap),i=(0,W.useContext)(Lf),a=()=>Cp(e,t,r,i);return n?a():Ff(a)},Ep=Tp({scrapeMotionValuesFromProps:yu,createRenderState:lp}),Dp=Tp({scrapeMotionValuesFromProps:Rd,createRenderState:mp}),Op=Symbol.for(`motionComponentSymbol`);function kp(e,t,n){let r=(0,W.useRef)(n);(0,W.useInsertionEffect)(()=>{r.current=n});let i=(0,W.useRef)(null);return(0,W.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Ap=(0,W.createContext)({});function jp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Mp(e,t,n,r,i,a){let{visualElement:o}=(0,W.useContext)(ap),s=(0,W.useContext)(Qf),c=(0,W.useContext)(Lf),l=(0,W.useContext)(Rf),u=l.reducedMotion,d=l.skipAnimations,f=(0,W.useRef)(null),p=(0,W.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,W.useContext)(Ap);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Np(f.current,n,i,h);let g=(0,W.useRef)(!1);(0,W.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Vo],v=(0,W.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return If(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),If(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,W.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Np(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Pp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&jp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Pp(e){if(e)return e.options.allowProjection===!1?Pp(e.parent):e.projection}function Fp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&rp(r);let a=n?n===`svg`:xp(e),o=a?Dp:Ep;function s(n,s){let c,l={...(0,W.useContext)(Rf),...n,layoutId:Ip(n)},{isStatic:u,isValidProp:d}=l,f=sp(n),p=o(n,u);if(!u&&typeof window<`u`){Lp(l,r);let t=Rp(l);c=t.MeasureLayout,f.visualElement=Mp(e,p,l,i,t.ProjectionNode,a)}return(0,q.jsxs)(ap.Provider,{value:f,children:[c&&f.visualElement?(0,q.jsx)(c,{visualElement:f.visualElement,...l}):null,Sp(e,n,kp(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,W.forwardRef)(s);return c[Op]=e,c}function Ip({layoutId:e}){let t=(0,W.useContext)(Pf).id;return t&&e!==void 0?t+`-`+e:e}function Lp(e,t){(0,W.useContext)(Qf).strict}function Rp(e){let{drag:t,layout:n}=np();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function zp(e,t){if(typeof Proxy>`u`)return Fp;let n=new Map,r=(n,r)=>Fp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Fp(a,void 0,e,t)),n.get(a))})}var Bp=(e,t)=>t.isSVG??xp(e)?new zd(t):new xu(t,{allowProjection:e!==W.Fragment}),Vp=class extends Pd{constructor(e){super(e),e.animationState||=Hd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();eu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Hp=0,Up={animation:{Feature:Vp},exit:{Feature:class extends Pd{constructor(){super(...arguments),this.id=Hp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Ao(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},Wp=class extends Pd{constructor(e){super(e),this.removeGroupControls=It,this.removeListeners=It,this.controls=new hd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||It}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Gp=({current:e})=>e?e.ownerDocument.defaultView:null,Kp=e=>(t,n)=>{e&&Mr.update(()=>e(t,n),!1,!0)},qp=class extends Pd{constructor(){super(...arguments),this.removePointerDownListener=It}onPointerDown(e){this.session=new Uu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Kp(e),onStart:Kp(t),onMove:Kp(n),onEnd:(e,t)=>{delete this.session,r&&Mr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Tu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Jp=!1,Yp=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),Xp=class extends W.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Jp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Yp(this.props),onExitComplete:()=>this.safeToRemove()})),pl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...Yp(this.props)}),Jp=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Mr.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),sc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Jp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Zp(e){let[t,n]=Kf(),r=(0,W.useContext)(Pf);return(0,q.jsx)(Xp,{...e,layoutGroup:r,switchLayoutGroup:(0,W.useContext)(Ap),isPresent:t,safeToRemove:n})}var Qp={pan:{Feature:qp},drag:{Feature:Wp,ProjectionNode:Ql,MeasureLayout:Zp}};function $p(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Mr.postRender(()=>i(t,Cu(t)))}var em=class extends Pd{mount(){let{current:e}=this.node;e&&(this.unmount=wd(e,(e,t)=>($p(this.node,t,`Start`),e=>$p(this.node,e,`End`))))}unmount(){}},tm=class extends Pd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Lt(Yl(this.node.current,`focus`,()=>this.onFocus()),Yl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function nm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Mr.postRender(()=>i(t,Cu(t)))}var rm=class extends Pd{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Md(e,(e,t)=>(nm(this.node,t,`Start`),(e,{success:t})=>nm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},im=new WeakMap,am=new WeakMap,om=e=>{let t=im.get(e.target);t&&t(e)},sm=e=>{e.forEach(om)};function cm({root:e,...t}){let n=e||document;am.has(n)||am.set(n,{});let r=am.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sm,{root:e,...t})),r[i]}function lm(e,t,n){let r=cm(t);return im.set(e,n),r.observe(e),()=>{im.delete(e),r.unobserve(e)}}var um={some:0,all:1},dm=class extends Pd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:um[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=lm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(fm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function fm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var pm={inView:{Feature:dm},tap:{Feature:rm},focus:{Feature:tm},hover:{Feature:em}},mm={layout:{ProjectionNode:Ql,MeasureLayout:Zp}},hm=zp({...Up,...pm,...Qp,...mm},Bp);function gm(e){let t=Ff(()=>mo(e)),{isStatic:n}=(0,W.useContext)(Rf);if(n){let[,n]=(0,W.useState)(e);(0,W.useEffect)(()=>t.on(`change`,n),[])}return t}function _m(e,t){let n=gm(t()),r=()=>n.set(t());return r(),If(()=>{let t=()=>Mr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Nr(r)}}),n}function vm(e){fo.current=[],e();let t=_m(fo.current,e);return fo.current=void 0,t}function ym(e,t,n,r){if(typeof e==`function`)return vm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return xm(e,t,n,r);let i=typeof t==`function`?t:Nd(t,n,r),a=Array.isArray(e)?bm(e,i):bm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function bm(e,t){let n=Ff(()=>[]);return _m(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function xm(e,t,n,r){let i=Ff(()=>Object.keys(n)),a=Ff(()=>({}));for(let o of i)a[o]=ym(e,t,n[o],r);return a}var Sm=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Cm=()=>new Sm;function wm(){return Ff(Cm)}var Tm=(0,W.createContext)(null);function Em(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:dr(t.x.min,t.x.max,.5)+n.x,y:dr(t.y.min,t.y.max,.5)+n.y},i=Dm(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>Om(r.y,t)<Om(r.y,e)?t:e);if(c!==s)return km(e,o,r.x,c,a);let l=Am(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Am(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:kt(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=dr(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?kt(e,o,o+s):e}function Dm(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function Om(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function km(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=dr(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Am(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var jm=(e,t)=>e.max<=t.min||t.max<=e.min;function Mm(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=jm(e[r].x,e[i].x),n||=jm(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Nm({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=Ff(()=>hm[t]),u=(0,W.useRef)(new Map),[d,f]=(0,W.useState)(`y`),p=(0,W.useRef)(!1),m=(0,W.useRef)(!1),h=(0,W.useRef)(null),g=n||d,_=new Set(i);u.current.forEach((e,t)=>{_.has(t)||u.current.delete(t)});let v={axis:g,groupRef:h,hasReordered:m,registerItem:(e,t)=>{if(u.current.set(e,t),!n){let e=Mm(i.flatMap(e=>{let t=u.current.get(e);return t?[t]:[]}));e!==d&&f(e)}},updateOrder:(e,t,n)=>{if(p.current)return;let a=i.flatMap(e=>{let t=u.current.get(e);return t?[{value:e,layout:t}]:[]}),o=h.current?.ownerDocument.defaultView?.getComputedStyle(h.current).direction===`rtl`?`rtl`:`ltr`,s=Em(a,e,t,n,g,o);if(a!==s){p.current=!0,m.current=!0;let e=[...i],t=a.map(({value:e})=>i.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};(0,W.useEffect)(()=>{p.current=!1},[i]);let y=e=>{h.current=e,typeof c==`function`?c(e):c&&(c.current=e)},b={overflowAnchor:`none`,...s.style};return(0,q.jsx)(l,{...s,style:b,ref:y,onPointerDownCapture:e=>{m.current=!1,a?.(e)},onClickCapture:e=>{m.current&&e.detail&&(m.current=!1,e.stopPropagation(),e.preventDefault()),o?.(e)},ignoreStrict:!0,children:(0,q.jsx)(Tm.Provider,{value:v,children:e})})}var Pm=(0,W.forwardRef)(Nm),Fm=50,Im=25,Lm=new Set([`auto`,`scroll`]),Rm=new WeakMap,zm=new WeakMap,Bm=null;function Vm(){if(Bm){let e=Um(Bm,`y`);e&&(zm.delete(e),Rm.delete(e));let t=Um(Bm,`x`);t&&t!==e&&(zm.delete(t),Rm.delete(t)),Bm=null}}function Hm(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Lm.has(r)||i}function Um(e,t){let n=e?.parentElement;for(;n;){if(Hm(n,t))return n;n=n.parentElement}return null}function Wm(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Fm){let e=1-o/Fm;return{amount:-25*e*e,edge:`start`}}if(s<Fm){let e=1-s/Fm;return{amount:Im*e*e,edge:`end`}}return{amount:0,edge:null}}function Gm(e,t,n,r){if(!e)return;Bm=e;let i=Um(e,n);if(!i)return;let{amount:a,edge:o}=Wm(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){zm.delete(i),Rm.delete(i);return}let s=zm.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;zm.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Rm.set(i,e)}if(a>0){let e=Rm.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Km(e,t=0){return Lo(e)?e:gm(t)}function qm({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Ff(()=>hm[r]),u=(0,W.useContext)(Tm),d={x:Km(t.x),y:Km(t.y)},f=ym([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,q.jsx)(l,{drag:p===`xy`||p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o={x:d.x.get(),y:d.y.get()};h(n,o,r);let s=p===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:p;Gm(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,Vm(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var Jm=(0,W.forwardRef)(qm),Ym=hm,Xm={out:[.23,1,.32,1],soft:[.215,.61,.355,1],draw:[0,0,.58,1],inOut:[.77,0,.175,1],away:[.33,.17,.67,.5],in:[.4,0,1,1],drawer:[.34,1.2,.64,1],arrive:[.11,0,.5,0],color:[.25,.1,.25,1],leave:[0,0,.58,1],enter:[.25,.1,.35,1],resize:[.4,0,.1,1],fill:[.4,0,.2,1]},Zm={press:{type:`spring`,stiffness:550,damping:30,restSpeed:10},pop:{type:`spring`,stiffness:400,damping:29},tooltip:{type:`spring`,stiffness:400,damping:31},dialog:{type:`spring`,stiffness:150,damping:25},toast:{type:`spring`,stiffness:280,damping:24},selection:{type:`spring`,stiffness:300,damping:30},highlight:{type:`spring`,stiffness:500,damping:40},reflow:{type:`spring`,stiffness:500,damping:40},handoff:{type:`spring`,stiffness:450,damping:43},morph:{type:`spring`,stiffness:660,damping:52},height:{type:`spring`,stiffness:300,damping:30,bounce:0,restDelta:.01},slide:{type:`spring`,stiffness:300,damping:35,restDelta:.01},thumb:{type:`spring`,stiffness:300,damping:25},slider:{type:`spring`,stiffness:400,damping:32},bounce:{type:`spring`,stiffness:200,damping:16},glyph:{type:`spring`,stiffness:500,damping:45},checkPop:{type:`spring`,stiffness:500,damping:24},entrance:{type:`spring`,stiffness:200,damping:20},progress:{type:`spring`,stiffness:300,damping:35,restDelta:.01,restSpeed:.1},number:{type:`spring`,stiffness:90,damping:50}},Qm={menu:{duration:.22,ease:Xm.soft},overlay:{duration:.4,ease:Xm.soft},dialogFade:{duration:.4,ease:Xm.soft},fade:{duration:.2,ease:Xm.out},color:{duration:.2,ease:Xm.color},reveal:{duration:.3,ease:Xm.out},disclosure:{duration:.35,ease:Xm.soft},panelOut:{duration:.15,ease:Xm.leave},panelIn:{duration:.3,ease:Xm.enter},tooltipIn:{duration:.34,ease:Xm.enter},tooltipOut:{duration:.13,ease:Xm.leave},panelHeight:{duration:.45,ease:Xm.resize},check:{duration:.3,delay:.2,ease:Xm.draw},uncheck:{duration:.3,ease:Xm.draw},fill:{duration:.3,ease:Xm.fill},popOut:{duration:.15,ease:Xm.out},swap:{duration:.15,ease:Xm.out},spin:{duration:.3,ease:Xm.out},handoffOut:{duration:.22,ease:Xm.soft},handoffIn:{duration:.26,ease:Xm.arrive},dismiss:{duration:.2,ease:Xm.away},shake:{duration:.4,ease:Xm.inOut},drawerOut:{duration:.16,ease:Xm.in},drawer:{duration:.4,ease:Xm.drawer},sheet:{duration:.4,ease:Xm.soft},collapse:{duration:.28,ease:Xm.inOut},collapseLabel:{duration:.14,ease:Xm.out},instant:{duration:0}},$m={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},eh={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},th={icon:90},nh={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},rh={stack:.03};function ih(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,ch(n,e)]));return{tempo:e,ease:Xm,scale:$m,blur:eh,rotate:th,shift:nh,stagger:e===1?rh:Object.fromEntries(Object.entries(rh).map(([t,n])=>[t,n*e])),spring:t(Zm),transition:t(Qm)}}var ah=ih(),oh=W.createContext(ah),sh=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function ch(e,t){if(!e||t===1||typeof e!=`object`)return e;let n={};for(let[r,i]of Object.entries(e))n[r]=typeof i==`number`&&sh.includes(r)?i*t:typeof i==`number`&&r===`stiffness`?i/(t*t):typeof i==`number`&&r===`damping`?i/t:i&&typeof i==`object`&&!Array.isArray(i)?ch(i,t):i;return n}function lh(e){let{tempo:t}=W.use(oh);return ch(e,t)}function uh(){return W.use(oh)}W.createContext(`draw`);var dh={linear:`linear`,easeIn:`cubic-bezier(0.42, 0, 1, 1)`,easeOut:`cubic-bezier(0, 0, 0.58, 1)`,easeInOut:`cubic-bezier(0.42, 0, 0.58, 1)`,circIn:`cubic-bezier(0, 0.65, 0.55, 1)`,circOut:`cubic-bezier(0.55, 0, 1, 0.45)`,backIn:`cubic-bezier(0.31, 0.01, 0.66, -0.59)`,backOut:`cubic-bezier(0.33, 1.53, 0.69, 0.99)`},fh=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function ph(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?dh[e]??`ease`:dh.easeInOut}function mh(e){let t=e;if(t.type===`spring`||fh.some(e=>e in t)){let{duration:e,ease:n}=zr(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,Zr),r=Math.round(e*1e3);return{duration:r,easing:Ir(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:ph(t.ease)}}var hh=W.createContext(`user`);function gh(){let e=W.use(hh),{reducedMotion:t}=W.use(Rf);return t===`always`?`always`:e}function _h({children:e,remount:t}){let n=gh();return(0,q.jsx)(ip,{reducedMotion:n,children:t?(0,q.jsx)(vh,{children:e}):e})}function vh({children:e}){let t=xh();return(0,q.jsx)(W.Fragment,{children:e},t?`reduce`:`full`)}var yh=`(prefers-reduced-motion: reduce)`;function bh(e){let t=window.matchMedia(yh);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function xh(){let e=gh(),t=W.useSyncExternalStore(bh,()=>window.matchMedia(yh).matches,()=>!1);return e===`never`?!1:e===`always`||t}var Sh=ah.spring.pop;ah.transition.menu,ah.spring.morph;var Ch={tooltip:ah.scale.tooltip,popover:ah.scale.popover,menu:ah.scale.menu};function wh(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Th(e){if(!(e instanceof HTMLElement))return[1,1];let t=e.getBoundingClientRect(),n=(e,t)=>t&&Math.abs(e-t)>=1?e/t:1;return[n(t.width,e.offsetWidth),n(t.height,e.offsetHeight)]}var Eh=ah.transition.fade,Dh=[`top`,`bottom`,`left`,`right`],Oh={top:`--scroll-fade-top`,bottom:`--scroll-fade-bottom`,left:`--scroll-fade-left`,right:`--scroll-fade-right`,size:`--scroll-fade-size`},kh=e=>`rgb(0 0 0 / calc(1 - var(${Oh[e]}, 0)))`,Ah=e=>`calc(var(${Oh.size}) * min(1, var(${Oh[e]}, 0) * 1000))`,jh=`linear-gradient(to bottom, ${kh(`top`)} 0, #000 ${Ah(`top`)}, #000 calc(100% - ${Ah(`bottom`)}), ${kh(`bottom`)} 100%)`,Mh=`linear-gradient(to right, ${kh(`left`)} 0, #000 ${Ah(`left`)}, #000 calc(100% - ${Ah(`right`)}), ${kh(`right`)} 100%)`,Nh={vertical:jh,horizontal:Mh,both:`${jh}, ${Mh}`},Ph=e=>Math.min(1,Math.max(0,e)),Fh=e=>e*e*(3-2*e),Ih=1.75,Lh=150,Rh=`ul, ol, [role="list"], [role="group"]`;function zh(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(Rh)||Array.from(n.children).some(e=>e.matches(Rh))?zh(n,t):t.push(n));return t}function Bh(e){let t=e;for(;t.children.length===1;)t=t.children[0];return zh(t,[])}function Vh(e,t){let n=e.style;if(t)n.setProperty(`mask-image`,t),n.setProperty(`-webkit-mask-image`,t),n.setProperty(`mask-composite`,`intersect`),n.setProperty(`-webkit-mask-composite`,`source-in`);else for(let e of[`mask-image`,`-webkit-mask-image`,`mask-composite`,`-webkit-mask-composite`])n.removeProperty(e)}function Hh(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=xh(),c=lh(a??Eh),l=W.useRef(c);W.useEffect(()=>{l.current=c});let u=gm(0),d=gm(0),f=gm(0),p=gm(0),m=W.useMemo(()=>({top:u,bottom:d,left:f,right:p}),[u,d,f,p]),h=W.useRef(s);return W.useEffect(()=>{h.current=s},[s]),W.useEffect(()=>{let a=e.current;if(!a||!o)return;let s=t!==`horizontal`,c=t!==`vertical`,u=Nh[t],d=!1;a.style.setProperty(Oh.size,`${n}px`);let f=new Set,p=new Set,g=()=>{for(let e of f)e.style.removeProperty(`scale`);for(let e of p)e.style.removeProperty(`filter`);f.clear(),p.clear()},_=[],v=0,y=0,b=()=>{if(!r&&!i){_=[];return}let e=a.getBoundingClientRect(),[t,n]=Th(a);v=a.clientWidth,y=a.clientHeight,_=Bh(a).map(r=>{let i=r.getBoundingClientRect();return{item:r,x:(i.left+i.width/2-e.left)/t+a.scrollLeft,y:(i.top+i.height/2-e.top)/n+a.scrollTop,ownFilter:!p.has(r)&&getComputedStyle(r).filter!==`none`}})},x=n*Ih,S=e=>x>0?Fh(Ph(1-e/x)):0,C=!0,w=()=>{C&&(C=!1,b());let e=h.current?0:r;if(!_.length||!e&&!i)return g();let t=a.scrollLeft,n=a.scrollTop;for(let{item:r,x:a,y:o,ownFilter:l}of _){let u=0;if(s){let e=o-n;u=Math.max(S(e)*m.top.get(),S(y-e)*m.bottom.get())}if(c){let e=a-t;u=Math.max(u,S(e)*m.left.get(),S(v-e)*m.right.get())}u>.001&&e?(r.style.scale=String(1-e*u),f.add(r)):f.delete(r)&&r.style.removeProperty(`scale`),u>.001&&i&&!l?(r.style.filter=`blur(${(i*u).toFixed(2)}px)`,p.add(r)):p.delete(r)&&r.style.removeProperty(`filter`)}},T=!1,E=()=>{T=!1,w()},D=()=>{T||(T=!0,Mr.render(E))},O=()=>{let e=!1;for(let t of Dh){let n=Ph(m[t].get());n>.001&&(e=!0),a.style.setProperty(Oh[t],n.toFixed(4))}e!==d&&(d=e,Vh(a,e?u:null)),D()},k=Dh.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?Ph(e/A):+(e>.5),M=e=>{let t={top:0,bottom:0,left:0,right:0};if(s){let e=a.scrollHeight-a.clientHeight;e>1&&(t.top=j(a.scrollTop),t.bottom=j(e-a.scrollTop))}if(c){let e=a.scrollWidth-a.clientWidth;if(e>1){let n=Math.abs(a.scrollLeft),r=e-n,i=getComputedStyle(a).direction===`rtl`;t.left=j(i?r:n),t.right=j(i?n:r)}}for(let n of Dh)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&mf(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>Lh&&(C=!0),N=e,M(!0)};a.addEventListener(`scroll`,P,{passive:!0});let F=new ResizeObserver(()=>{C=!0,M(!1)}),I=()=>{F.disconnect(),F.observe(a);for(let e of a.children)F.observe(e)};I();let L=new MutationObserver(e=>{e.some(e=>e.target===a)&&I(),C=!0,M(!1)});return L.observe(a,{childList:!0,subtree:!0}),()=>{a.removeEventListener(`scroll`,P),Nr(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Vh(a,null),g();for(let e of Object.values(Oh))a.style.removeProperty(e);for(let e of Dh)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Uh={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function Wh({ref:e,asChild:t=!1,orientation:n=`vertical`,size:r,shrink:i,blur:a,transition:o,enabled:s,style:c,children:l,...u}){let d=W.useRef(null),f=W.isValidElement(l)?l.props.ref:void 0,p=W.useMemo(()=>wh(d,f),[f]);W.useImperativeHandle(e,()=>d.current),Hh(d,{orientation:n,size:r,shrink:i,blur:a,transition:o,enabled:s});let m={"data-slot":`scroll-fade`,"data-orientation":n,...u};if(t&&W.isValidElement(l)){let e=l;return W.cloneElement(e,{...e.props,...m,className:[e.props.className,u.className].filter(Boolean).join(` `)||void 0,style:{...Uh[n],...e.props.style,...c},ref:p})}return(0,q.jsx)(`div`,{ref:d,style:{...Uh[n],...c},...m,children:l})}function Gh({children:e,enabled:t=!0,size:n=20}){let r=kf();return(0,q.jsx)(Wh,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:(r?Ef.micro:Ef.base)/1e3,ease:Ef.out},children:e})}var Kh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function qh(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Kh(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Jh=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Yh=e=>{let t=Jh(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Zh={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Qh(e){return e!=null}function $h(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Zh.width,a=e.size??e.height??Zh.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Xh(...c):Xh(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Zh[`stroke-width`])*Number(e.size??e.width??Zh.width)/Number(t.size??t.width??Zh.width):t.strokeWidth??Zh[`stroke-width`];return[`svg`,{...Object.entries(Zh).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Qh(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Qh(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Qh(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function eg(e,t={}){return $h(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var tg=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ng=(0,W.createContext)({}),rg=()=>(0,W.useContext)(ng),ig=(0,W.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=rg()??{},y=!!c||tg(d),[b,x,S=[]]=eg(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Xh(v,s),hasA11yProp:y,attributes:d});return(0,W.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,W.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function J(e,t=[],n=[]){let r=typeof e==`string`?qh(e,t,n):e,i=(0,W.forwardRef)(({className:e,...t},n)=>(0,W.createElement)(ig,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Yh(r.name)),i}var ag={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};ag.node;var og=J(ag),sg={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};sg.node;var cg=J(sg),lg={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};lg.node;var ug=J(lg),dg={name:`at-sign`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]};dg.node;var fg=J(dg),pg={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};pg.node;var mg=J(pg),hg={name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]};hg.node;var gg=J(hg),_g={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};_g.node;var vg=J(_g),yg={name:`bookmark`,size:24,node:[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};yg.node;var bg=J(yg),xg={name:`briefcase-business`,size:24,node:[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};xg.node;var Sg=J(xg),Cg={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Cg.node;var wg=J(Cg),Tg={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Tg.node;var Eg=J(Tg),Dg={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Dg.node;var Og=J(Dg),kg={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};kg.node;var Ag=J(kg),jg={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};jg.node;var Mg=J(jg),Ng={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Ng.node;var Pg=J(Ng),Fg={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Fg.node;var Ig=J(Fg),Lg={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Lg.node;var Rg=J(Lg),zg={name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]};zg.node;var Bg=J(zg),Vg={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Vg.node;var Hg=J(Vg),Ug={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Ug.node;var Wg=J(Ug),Gg={name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]};Gg.node;var Kg=J(Gg),qg={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};qg.node;var Jg=J(qg),Yg={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};Yg.node;var Xg=J(Yg),Zg={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};Zg.node;var Qg=J(Zg),$g={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};$g.node;var e_=J($g),t_={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};t_.node;var n_=J(t_),r_={name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]};r_.node;var i_=J(r_),a_={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};a_.node;var o_=J(a_),s_={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]};s_.node;var c_=J(s_),l_={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};l_.node;var u_=J(l_),d_={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};d_.node;var f_=J(d_),p_={name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]};p_.node;var m_=J(p_),h_={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};h_.node;var g_=J(h_),__={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};__.node;var v_=J(__),y_={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};y_.node;var b_=J(y_),x_={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};x_.node;var S_=J(x_),C_={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};C_.node;var w_=J(C_),T_={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};T_.node;var E_=J(T_),D_={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};D_.node;var O_=J(D_),k_={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};k_.node;var A_=J(k_),j_={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};j_.node;var M_=J(j_),N_={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};N_.node;var P_=J(N_),F_={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};F_.node;var I_=J(F_),L_={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};L_.node;var R_=J(L_),z_={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};z_.node;var B_=J(z_),V_={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};V_.node;var H_=J(V_),U_={name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]};U_.node;var W_=J(U_),G_={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};G_.node;var K_=J(G_),q_={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};q_.node;var J_=J(q_),Y_={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};Y_.node;var X_=J(Y_),Z_={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Z_.node;var Q_=J(Z_),$_={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};$_.node;var ev=J($_),tv={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};tv.node;var nv=J(tv),rv={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};rv.node;var iv=J(rv),av={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};av.node;var ov=J(av),sv={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};sv.node;var cv=J(sv),lv={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};lv.node;var uv=J(lv),dv={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};dv.node;var fv=J(dv),pv={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};pv.node;var mv=J(pv),hv={name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]};hv.node;var gv=J(hv),_v={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_v.node;var vv=J(_v),yv=({width:e=`60%`})=>(0,q.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function bv({layout:e,testId:t=`${e}-loading`}){return(0,q.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":G(`Loading…`),"aria-busy":`true`,children:(0,q.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,q.jsx)(`div`,{className:`note-title-type`,children:(0,q.jsx)(yv,{width:`52%`})}),(0,q.jsx)(`div`,{className:`note-meta-row`,children:(0,q.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,q.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,q.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,q.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,q.jsx)(mg,{size:14}),G(`Transcript`)]}),(0,q.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,q.jsx)(ov,{size:14}),G(`My notes`)]})]})]}),(0,q.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,q.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,q.jsx)(yv,{width:e},e))})})]}):e===`history`?(0,q.jsxs)(`section`,{children:[(0,q.jsx)(`h2`,{children:(0,q.jsx)(yv,{width:`48px`})}),(0,q.jsx)(`ul`,{children:[0,1,2].map(e=>(0,q.jsx)(`li`,{className:`ask-history-row`,children:(0,q.jsxs)(`div`,{className:`ask-history-link`,children:[(0,q.jsx)(`strong`,{children:(0,q.jsx)(yv,{width:`${130+e*14}px`})}),(0,q.jsx)(`time`,{children:(0,q.jsx)(yv,{width:`56px`})})]})},e))})]}):e===`folders`?(0,q.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,q.jsxs)(`div`,{className:`workspace-nav`,children:[(0,q.jsx)(`span`,{className:`loading-folder-icon`}),(0,q.jsx)(yv,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,q.jsx)(q.Fragment,{children:[0,1].map(e=>(0,q.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,q.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,q.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,q.jsx)(`span`,{className:`settings-label`,children:(0,q.jsx)(yv,{width:`120px`})}),(0,q.jsx)(`span`,{className:`settings-description block`,children:(0,q.jsx)(yv,{width:`90px`})})]}),(0,q.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,q.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,q.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,q.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,q.jsx)(yv,{width:`42px`})}),(0,q.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,q.jsx)(yv,{width:`${160+e*25}px`})})]},e))}):(0,q.jsxs)(`div`,{className:`ask-turn`,children:[(0,q.jsx)(`p`,{className:`ask-question`,children:(0,q.jsx)(yv,{width:`160px`})}),(0,q.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,q.jsx)(yv,{width:e},e))})]})})})}function xv(e){let t=kf(),[n,r]=(0,W.useState)(e?`waiting`:`ready`),i=(0,W.useRef)(void 0);return(0,W.useLayoutEffect)(()=>{let a;return e?n!==`skeleton`&&(i.current=void 0,r(`waiting`),a=setTimeout(()=>{i.current=performance.now(),r(`skeleton`)},100)):n===`waiting`?r(`ready`):n===`skeleton`?t?r(`revealing`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(a=setTimeout(()=>r(`ready`),Ef.micro)),()=>clearTimeout(a)},[e,n,t]),n}var Sv=()=>(0,W.useSyncExternalStore)(bt,yt);function Cv(e){let t=[];for(let n of e){if(n.hidden&&n.echoConfident)continue;let e=!!n.hidden,r=t.at(-1);r?.echo===e?r.lines.push(n):t.push({echo:e,lines:[n]})}return t}var wv=3e4;function Tv(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=String(t%60).padStart(2,`0`);return n?`${n}:${String(r).padStart(2,`0`)}:${i}`:`${r}:${i}`}function Ev(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&r.track===n.track&&r.speaker===n.speaker&&n.startMs-(r.endMs??r.startMs)<wv?e.push(n):t.push([n])}return t}function Dv(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].startMs<=t?(i=a,n=a+1):r=a-1}return i}function Ov(e,t){let n=t.toLocaleLowerCase().split(/\s+/).filter(Boolean);return n.length?e.filter(e=>{let t=e.text.toLocaleLowerCase();return n.every(e=>t.includes(e))}):e}function kv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&n.startMs-r.endMs<1500?e.push(n):t.push([n])}return t}function Av(e,t){let n=t.filter(e=>e.words.length).map(t=>{let n=e.filter(e=>e.track===t.track&&e.startMs<=t.startMs).at(-1);return{track:t.track,startMs:t.startMs,endMs:t.endMs,speaker:n?n.speaker:null,speakerColor:n?.speakerColor,live:t}});return n.length?[...e,...n].sort((e,t)=>e.startMs-t.startMs):e}function jv(e,t,n,r){let i=0,a=0;for(let t=0;t<e.length;t++){if(e[t]!==n[0])continue;let r=0;for(;t+r<e.length&&r<n.length&&e[t+r]===n[r];)r++;r>=a&&(a=r,i=t)}let o=r;return{keys:n.map((e,n)=>i+n<t.length?t[i+n]:o++),next:o}}function Mv(e,t){let n=t.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean),r=e.toLocaleLowerCase(),i=Array(e.length).fill(!1);if(r.length===e.length)for(let e of n)for(let t=r.indexOf(e);t!==-1;t=r.indexOf(e,t+1))i.fill(!0,t,t+e.length);let a=[];for(let t=0;t<e.length;t++){let n=a.at(-1);n&&n.hit===i[t]?n.text+=e[t]:a.push({text:e[t],hit:i[t]})}return a.length?a:[{text:e,hit:!1}]}function Nv(){return null}var Pv=new Map,Fv=new Map,Iv=e=>Pv.get(e);function Lv(){for(let[e,t]of Fv)t.clientHeight&&Pv.set(e,t.scrollTop)}function Rv(e,t=!0){let n=(0,W.useRef)(null);return(0,W.useLayoutEffect)(()=>{let r=n.current;if(!r)return;Fv.set(e,r),t&&Pv.has(e)&&(r.scrollTop=Pv.get(e));let i=()=>{r.clientHeight&&Pv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{Fv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var zv=e=>(e.startMs+e.endMs)/2,Bv=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),Vv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),Hv=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Uv=500;function Wv(e,t){let n=t.split(/\s+/).map(Vv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>Vv(e.text));if(!n.length||!r.length)return 0;let i=Array(n.length+1).fill(0),a=0,o=0;for(let e=1;e<=r.length;e++){let t=[e];for(let a=1;a<=n.length;a++)t[a]=Math.min(i[a]+1,t[a-1]+1,i[a-1]+ +!Hv(r[e-1],n[a-1]));let s=t[n.length],c=e-2*s;s<=Math.floor(e/4)&&(e>=2||n.length===1)&&c>o&&(a=e,o=c),i=t}return a}function Gv(e,t){let n=e.filter(e=>!e.rough&&zv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Wv(r,t.text),a=r.filter(e=>zv(e)<t.endMs-Uv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Kv=e=>`${e.track}:${e.startMs}`,qv=24,Jv=400,Yv=e=>e.track===`me`?G(`You`):e.speaker||G(`Them`);function Xv(e){let[t,n]=(0,W.useState)([]),[r,i]=(0,W.useState)(!1),a=(0,W.useRef)(new Set);return(0,W.useEffect)(()=>{let t=!0;i(!1),n([]),a.current=new Set;let r=(t,r)=>n(n=>{let i=new Set(n.map(Kv)),o=t.filter(t=>t.meetingId===e&&!i.has(Kv(t)));if(r)for(let e of o)a.current.add(Kv(e));return o.length?[...n,...o].sort((e,t)=>e.startMs-t.startMs):n}),o=window.yogurt.transcript.onSegment(e=>r([e],!0));window.yogurt.transcript.get(e,{hidden:!0}).then(e=>{t&&(r(e,!1),i(!0))});let s=window.yogurt.transcript.onSpeakers(t=>{t===e&&window.yogurt.transcript.get(e,{hidden:!0}).then(e=>n(t=>{let n=new Map(e.map(e=>[Kv(e),e])),r=new Set(t.map(Kv));return[...t.map(e=>n.get(Kv(e))??e),...e.filter(e=>!r.has(Kv(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}function Zv(e,t){let[n,r]=(0,W.useState)({}),i=(0,W.useRef)({me:-1/0,them:-1/0});(0,W.useEffect)(()=>{if(r({}),i.current={me:-1/0,them:-1/0},!t)return;let n=window.yogurt.transcript.onPartial(t=>{if(t.meetingId!==e)return;let n=t.words??[];n.length&&(i.current[t.track]=Math.max(i.current[t.track],n.at(-1).endMs)),r(e=>({...e,[t.track]:{track:t.track,startMs:n[0]?.startMs??t.startMs,endMs:n.at(-1)?.endMs??t.startMs,text:t.text,words:n}}))}),a=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&r(e=>{let n=e[t.track];if(!n)return e;let r=Gv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:Bv(r),startMs:r[0]?.startMs??n.startMs}}})});return()=>{n(),a()}},[e,t]);let a=(0,W.useCallback)(e=>e.startMs<i.current[e.track]+500,[]);return{live:[`me`,`them`].map(e=>n[e]).filter(e=>!!e&&e.words.length>0),previewed:a}}function Qv({said:e}){let t=(0,W.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=jv(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,q.jsxs)(`span`,{"data-testid":`transcript-partial`,"data-track":e.track,"data-start":e.startMs,"aria-live":`off`,className:`live-words`,children:[e.words.map((e,t)=>(0,q.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,q.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{})]})]})}var $v=(0,W.memo)(function({line:e,focused:t,name:n,query:r,playing:i,playable:a,focusable:o,arrived:s,onPlay:c,onFocusLine:l}){Sv(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let u=Kv(e),d=Tv(e.startMs);return(0,q.jsxs)(`span`,{"data-key":u,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":i||void 0,role:a?`button`:void 0,"aria-label":a?G(`Play from {time}, {name}: {text}`,{time:d,name:n,text:e.text}):void 0,tabIndex:a?o?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&l(u)},onClick:t=>c(e,t),title:d,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${s===`fade`?`line-in`:s===`settle`?`line-settle`:``} ${a?`line-playable cursor-pointer`:``}`,children:[(0,q.jsx)(`span`,{"data-testid":`transcript-text`,children:r?Mv(e.text,r).map((e,t)=>e.hit?(0,q.jsx)(`mark`,{className:`search-mark`,children:e.text},t):(0,q.jsx)(`span`,{children:e.text},t)):e.text}),(0,q.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:d})]})});function ey({id:e,recording:t,inline:n=!1,active:r=!0,onClose:i,focus:a,toolbar:o}){let{lines:s,live:c,loaded:l}=Xv(e),u=xv(!l),{live:d,previewed:f}=Zv(e,t),p=(0,W.useMemo)(()=>Cv(Av(s,d)).filter(e=>!e.echo),[s,d]),m=(0,W.useMemo)(()=>p.flatMap(e=>e.lines.filter(e=>!(`live`in e))),[p]),[h,g]=(0,W.useState)(``);(0,W.useEffect)(()=>{g(``)},[e]);let[_,v]=(0,W.useState)([]);(0,W.useEffect)(()=>{if(v([]),t)return;let n=!0,r=!1,i=window.yogurt.audio.onDeleted(t=>{t===e&&(document.activeElement?.closest(`[data-testid="player"], [data-testid="recording-delete-confirm"]`)&&(M.current?.setAttribute(`tabindex`,`-1`),M.current?.focus({preventScroll:!0})),r=!0,v([]),B(!1),A(null))});return window.yogurt.audio.tracks(e).then(e=>{n&&!r&&v(e)}),()=>{n=!1,i()}},[e,t]);let y=(0,W.useRef)(null),b=_.length>0,x=(0,W.useRef)(null),[S,C]=(0,W.useState)(0);(0,W.useLayoutEffect)(()=>{let e=x.current;if(!n||!e){C(0);return}let t=()=>C(e.getBoundingClientRect().height+16);t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[n,b,r]);let[w,T]=(0,W.useState)(),[E,D]=(0,W.useState)(0),O=(0,W.useRef)(0),k=(0,W.useRef)(m);k.current=m;let A=(0,W.useCallback)((e,t=!1)=>{let n=e==null?-1:Dv(k.current,e),r=n<0?void 0:Kv(k.current[n]);T(e=>e===r?e:r),t&&D(e=>e+1)},[]),j=`transcript/${e}`,M=Rv(j,r&&l),N=(0,W.useRef)(Iv(j)===void 0),[P,F]=(0,W.useState)(!1),I=()=>{let e=M.current;e&&(re.current===null&&(V.current=performance.now(),se()),N.current=e.scrollHeight-e.scrollTop-e.clientHeight<qv,F(!N.current))};(0,W.useLayoutEffect)(()=>{let e=M.current;r&&t&&e&&N.current&&(e.scrollTop=e.scrollHeight)},[m,d,t,r]);let L=()=>{let e=M.current;e&&(N.current=!0,F(!1),e.scrollTo({top:e.scrollHeight,behavior:Of()}))},R=e=>e?M.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null,[z,B]=(0,W.useState)(!1),ee=(0,W.useRef)(!0),[te,ne]=(0,W.useState)(null),re=(0,W.useRef)(null),V=(0,W.useRef)(0),H=(0,W.useRef)(w);H.current=w,(0,W.useEffect)(()=>{ee.current=!0,ne(null)},[e]);let ie=e=>{let t=M.current,n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top-n.top+t.scrollTop;return{row:{top:i,bottom:i+r.height},view:{scrollTop:t.scrollTop,height:Math.max(0,t.clientHeight-S),scrollHeight:t.scrollHeight}}},U=e=>{let t=M.current,n=R(H.current);if(!t||!n||!e&&performance.now()-V.current<Jv)return;let{row:r,view:i}=ie(n),a=yf(r,i,e);if(!(a===null||!re.current&&Math.abs(a-t.scrollTop)<2)){if(!re.current){let e=Af(t,()=>requestAnimationFrame(()=>{re.current===e&&!e.active&&(re.current=null)}));re.current=e}re.current.to(a)}};(0,W.useEffect)(()=>{E===O.current?z&&ee.current&&U(!1):(O.current=E,ee.current=!0,ne(null),U(!0))},[w,z,E]);let ae=(0,W.useCallback)(()=>{ee.current=!0,ne(null)},[]),oe=()=>{ae(),U(!0)},se=()=>{let e=M.current,n=R(H.current);if(t||!e||!n)return;let{row:r,view:i}=ie(n);ee.current=vf(r,i),ne(ee.current?null:r.top<i.scrollTop?`up`:`down`)},ce=()=>{V.current=performance.now(),re.current?.stop(),re.current=null};(0,W.useEffect)(()=>()=>{re.current?.stop(),re.current=null},[e,r]);let le=(0,W.useRef)(b);le.current=b;let ue=(0,W.useCallback)((e,t)=>{!le.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(ae(),y.current?.playFrom(e.startMs))},[ae]),de=(0,W.useMemo)(()=>Ov(m,h),[m,h]),[fe,pe]=(0,W.useState)(),me=(0,W.useRef)(void 0);(0,W.useEffect)(()=>{if(!r||!a||me.current===a.seq||!m.length)return;let e=m.filter(e=>!e.hidden),t=(a.match?e[dt(e.map(e=>e.text),a.match,Math.max(0,Dv(e,a.ms)))]:void 0)??m[Math.max(0,Dv(m,a.ms))];t&&(me.current=a.seq,N.current=!1,pe(Kv(t)),ge(Kv(t)),requestAnimationFrame(()=>R(Kv(t))?.scrollIntoView({block:`center`})))},[a?.seq,m,r]),(0,W.useEffect)(()=>{if(!fe)return;let e=window.setTimeout(()=>pe(void 0),2400);return()=>clearTimeout(e)},[fe,a?.seq]);let[he,ge]=(0,W.useState)(),_e=he??w??(de[0]&&Kv(de[0])),ve=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!b||!t||t!==e.target)return;let n=de.findIndex(e=>Kv(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=R(Kv(de[Math.max(0,Math.min(de.length-1,e))]));t?.focus(),t?.scrollIntoView({block:`nearest`})};e.key===`ArrowDown`?(e.preventDefault(),r(n+1)):e.key===`ArrowUp`?(e.preventDefault(),r(n-1)):e.key===`Home`?(e.preventDefault(),r(0)):e.key===`End`?(e.preventDefault(),r(de.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ae(),y.current?.playFrom(de[n].startMs))},ye=h.trim(),be=(0,W.useMemo)(()=>p.map(e=>({...e,lines:ye?e.lines.filter(e=>!(`live`in e)&&Ov([e],ye).length):e.lines})).filter(e=>e.lines.length),[p,ye]),xe=(0,W.useMemo)(()=>!!w&&de.some(e=>Kv(e)===w),[w,de]),Se=n?`section`:`aside`,Ce=(0,q.jsxs)(`div`,{className:`transcript-toolbar`,children:[(0,q.jsxs)(`label`,{className:`transcript-search-field`,children:[(0,q.jsx)(Q_,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,q.jsx)(`input`,{"data-testid":`transcript-search`,value:h,onChange:e=>g(e.target.value),placeholder:G(`Search`),"aria-label":G(`Search the transcript`),spellCheck:!1})]}),!n&&i&&(0,q.jsx)(`div`,{className:`transcript-actions`,children:(0,q.jsx)(`button`,{"data-testid":`transcript-close`,onClick:i,"aria-label":G(`Hide transcript`),title:G(`Hide transcript`),className:`ghost-btn !p-1.5`,children:(0,q.jsx)(Og,{size:15,"aria-hidden":`true`})})})]});return(0,q.jsxs)(Se,{style:{"--playback-inset":`${S}px`},"data-testid":`transcript-panel`,"aria-label":G(`Transcript`),onKeyDown:e=>{!n&&e.key===`Escape`&&(e.stopPropagation(),i?.())},className:n?`transcript-inline`:`chat-in pointer-events-auto absolute inset-x-0 bottom-1 z-20 mx-auto flex h-[min(44vh,480px)] w-[min(720px,calc(100%-48px))] flex-col rounded-xl border border-line bg-float shadow-[var(--shadow)]`,children:[r&&(o?(0,Ee.createPortal)(Ce,o):Ce),(0,q.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,q.jsx)(Gh,{enabled:r&&l,children:(0,q.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:M,onScroll:I,onWheel:ce,onTouchStart:ce,onPointerDown:ce,onKeyDownCapture:ce,onKeyDown:ve,className:`loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]`,children:[u!==`ready`&&(0,q.jsx)(`li`,{className:`loading-placeholder`,children:(0,q.jsx)(bv,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,q.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,q.jsxs)(`div`,{className:`empty-state-content`,children:[(0,q.jsx)(`div`,{className:`empty-tile`,children:(0,q.jsx)(mg,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),G(`Nothing heard yet.`)]})}),s.length>0&&be.length===0&&(0,q.jsx)(`li`,{"data-testid":`transcript-none`,className:`note-empty`,children:G(`Nothing found for “{query}”.`,{query:ye})}),be.map(e=>(0,q.jsx)(W.Fragment,{children:Ev(e.lines).map(e=>{let t=e[0].track===`me`,n=e[0],r=t||!(`speakerColor`in n)?void 0:n.speakerColor,i=e.some(e=>!(`live`in e));return(0,q.jsxs)(`li`,{"data-testid":`transcript-turn`,"data-track":n.track,className:`transcript-turn flex flex-col gap-[5px] ${t?`items-end`:`items-start`}`,children:[(0,q.jsxs)(`p`,{className:t?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,q.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":r,"data-folder-color":r===void 0?void 0:Tt[r],className:`line-who font-medium ${t?``:`text-muted`} ${i?`name-in`:`invisible`}`,children:Yv(n)}),(0,q.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:Tv(n.startMs)})]}),kv(e).map(e=>(0,q.jsx)(`p`,{"data-testid":`transcript-bubble`,"data-track":n.track,dir:`auto`,className:`bubble ${t?`bubble-me`:`bubble-them`}`,children:e.map((e,t)=>{if(`live`in e)return(0,q.jsxs)(W.Fragment,{children:[t>0&&` `,(0,q.jsx)(Qv,{said:e.live})]},`live`);let n=Kv(e);return(0,q.jsxs)(W.Fragment,{children:[t>0&&` `,(0,q.jsx)($v,{line:e,focused:n===fe,name:Yv(e),query:ye,playing:n===w,playable:b,focusable:n===_e,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:ue,onFocusLine:ge})]},n)})},Kv(e[0])))]},Kv(n))})},Kv(e.lines[0])))]})}),t&&P&&(0,q.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:L,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,q.jsx)(og,{size:12,"aria-hidden":`true`}),G(`Latest`)]}),!t&&z&&te&&xe&&(0,q.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:oe,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,q.jsx)(og,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":te===`up`}),G(`Back to playing`)]})]}),r&&b&&(0,q.jsx)(`div`,{ref:x,className:`transcript-player-dock`,children:(0,q.jsx)(Nv,{ref:y,id:e,tracks:_,onTime:A,onPlaying:B})})]})}function ty(e){this.content=e}ty.prototype={constructor:ty,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ty(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ty(n)},addToStart:function(e,t){return new ty([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ty(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ty(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ty.from(e),e.size?new ty(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ty.from(e),e.size?new ty(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ty.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ty.from=function(e){if(e instanceof ty)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ty(t)};function ny(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ay(e.charCodeAt(r-1))&&iy(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ny(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function ry(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ay(e.charCodeAt(i-1))&&iy(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=ry(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function iy(e){return e>=56320&&e<57344}function ay(e){return e>=55296&&e<56320}var Y=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ny(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ry(this,e,t,n)}findIndex(e){if(e==0)return sy(0,e);if(e==this.size)return sy(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?sy(t+1,i):sy(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Y.empty=new Y([],0);var oy={index:0,offset:0};function sy(e,t){return oy.index=e,oy.offset=t,oy}function cy(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!cy(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!cy(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var ly=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&cy(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};ly.none=[];var uy=class extends Error{},X=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=fy(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(dy(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Y.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};X.empty=new X(Y.empty,0,0);function dy(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(dy(a.content,t-i-1,n-i-1)))}function fy(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=fy(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function py(e,t,n){if(n.openStart>e.depth)throw new uy(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new uy(`Inconsistent open depths`);return my(e,t,n,0)}function my(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=my(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return yy(a,xy(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return yy(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Sy(n,e);return yy(a,by(e,i,o,t,r))}}function hy(e,t){if(!t.type.compatibleContent(e.type))throw new uy(`Cannot join `+t.type.name+` onto `+e.type.name)}function gy(e,t,n){let r=e.node(n);return hy(r,t.node(n)),r}function _y(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function vy(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(_y(e.nodeAfter,r),a++));for(let e=a;e<o;e++)_y(i.child(e),r);t&&t.depth==n&&t.textOffset&&_y(t.nodeBefore,r)}function yy(e,t){if(!e.type.validContent(t))throw new uy(`Invalid content for node `+e.type.name);return e.copy(t)}function by(e,t,n,r,i){let a=e.depth>i&&gy(e,t,i+1),o=r.depth>i&&gy(n,r,i+1),s=[];return vy(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(hy(a,o),_y(yy(a,by(e,t,n,r,i+1)),s)):(a&&_y(yy(a,xy(e,t,i+1)),s),vy(t,n,i,s),o&&_y(yy(o,xy(n,r,i+1)),s)),vy(r,null,i,s),new Y(s)}function xy(e,t,n){let r=[];return vy(null,e,n,r),e.depth>n&&_y(yy(gy(e,t,n+1),xy(e,t,n+1)),r),vy(t,null,n,r),new Y(r)}function Sy(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Y.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Cy=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return ly.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Dy(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ey.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Ey.set(t,r=new wy);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ty,i}},wy=class{constructor(){this.elts=[],this.i=0}},Ty=12,Ey=new WeakMap,Dy=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Oy=Object.create(null),ky=class e{constructor(e,t,n,r=ly.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Y.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&cy(this.attrs,t||e.defaultAttrs||Oy)&&ly.sameSet(this.marks,n||ly.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return X.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new X(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return py(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Cy.resolveCached(this,e)}resolveNoCache(e){return Cy.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),jy(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Y.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),My(this.type.attrs,this.attrs,`node`,this.type.name);let e=ly.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];My(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!ly.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Y.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};ky.prototype.text=void 0;var Ay=class e extends ky{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):jy(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function jy(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function My(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Ny=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Py(t,n);if(r.next==null)return e.empty;let i=Fy(r);r.next&&r.err(`Unexpected trailing text`);let a=Gy(Hy(i));return Ky(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Y.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
+`)}};Ny.empty=new Ny(!0);var Py=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Fy(e){let t=[];do t.push(Iy(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Iy(e){let t=[];do t.push(Ly(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ly(e){let t=Vy(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=zy(e,t);else break;return t}function Ry(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function zy(e,t){let n=Ry(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ry(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function By(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Vy(e){if(e.eat(`(`)){let t=Fy(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=By(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Hy(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Uy(e,t){return t-e}function Wy(e,t){let n=[];return r(t),n.sort(Uy);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Gy(e){let t=Object.create(null);return n(Wy(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);Wy(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ny(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Uy);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Ky(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function qy(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function Jy(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function Yy(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Qy(e,r,t[r]);return n}var Xy=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=Yy(e,n.attrs),this.defaultAttrs=qy(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ny.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Jy(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new ky(this,this.computeAttrs(e),Y.from(t),ly.setFrom(n))}createChecked(e=null,t,n){return t=Y.from(t),this.checkContent(t),new ky(this,this.computeAttrs(e),t,ly.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Y.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(Y.empty,!0);return i?new ky(this,e,t.append(i),ly.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:ly.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function Zy(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var Qy=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Zy(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},$y=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Yy(e,r.attrs),this.excluded=null;let i=qy(this.attrs);this.instance=i?new ly(this,i):null}create(e=null){return!e&&this.instance?this.instance:new ly(this,Jy(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},eb=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ty.from(e.nodes),t.marks=ty.from(e.marks||{}),this.nodes=Xy.compile(this.spec.nodes,this),this.marks=$y.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Ny.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?tb(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:tb(this,n.split(` `))}this.nodeFromJSON=e=>ky.fromJSON(this,e),this.markFromJSON=e=>ly.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof Xy))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ay(n,n.defaultAttrs,e,ly.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function tb(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function nb(e){return e.tag!=null}function rb(e){return e.style!=null}var ib=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(nb(e))this.tags.push(e);else if(rb(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new pb(this,t,!1);return n.addAll(e,ly.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new pb(this,t,!0);return n.addAll(e,ly.none,t.from,t.to),X.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(hb(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=gb(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=gb(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},ab={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ob={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},sb={ol:!0,ul:!0},cb=1,lb=2,ub=4;function db(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?cb:0)|(t===`full`?lb:0)}var fb=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=ly.none,this.match=i||(a&ub?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Y.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&cb)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=Y.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ab.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},pb=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=db(null,t.preserveWhitespace,0)|(n?ub:0);i=r?new fb(r.type,r.attrs,ly.none,!0,t.topMatch||r.type.contentMatch,a):n?new fb(null,null,ly.none,!0,null,a):new fb(e.schema.topNodeType,null,ly.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&lb?`full`:this.localPreserveWS||(r.options&cb)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
+`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;sb.hasOwnProperty(a)&&this.parser.normalizeLists&&mb(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:ob.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ab.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
+`),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=ly.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):_b(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=db(e,i,a.options);a.options&ub&&a.content.length==0&&(o|=ub);let s=ly.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):_b(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new fb(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=cb);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function mb(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&sb.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function hb(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function gb(e){let t={};for(let n in e)t[n]=e[n];return t}function _b(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var vb=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=bb(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return bb(t).createTextNode(e.text);let{dom:n,contentDOM:r}=wb(bb(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&wb(bb(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:wb(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=yb(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return yb(e.marks)}};function yb(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function bb(e){return e.document||window.document}var xb=new WeakMap;function Sb(e){let t=xb.get(e);return t===void 0&&xb.set(e,t=Cb(e)),t}function Cb(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function wb(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Sb(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=wb(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Tb=65535,Eb=2**16;function Db(e,t){return e+t*Eb}function Ob(e){return e&Tb}function kb(e){return(e-(e&Tb))/Eb}var Ab=1,jb=2,Mb=4,Nb=8,Pb=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Nb)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Mb)>0}},Fb=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Ob(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+kb(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Db(o/3,e-s),f=0;return c&&(f|=e==s?jb:e==u?Ab:Mb,(t<0?e!=s:e!=u)&&(f|=Nb)),new Pb(a,f,d)}r+=l-c}return n?e+r:new Pb(e+r,0,null)}touches(e,t){let n=0,r=Ob(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Fb.empty=new Fb([]);var Ib=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Pb(e,r,null)}},Lb=Object.create(null),Rb=class{getMap(){return Fb.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Lb[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Lb)throw RangeError(`Duplicate use of step JSON ID `+e);return Lb[e]=t,t.prototype.jsonID=e,t}},zb=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof uy)return e.fail(t.message);throw t}}};function Bb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Bb(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return Y.fromArray(r)}var Vb=class e extends Rb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new X(Bb(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return zb.fromReplace(e,this.from,this.to,i)}invert(t){let n=[];return t.nodesBetween(this.from,this.to,(t,r)=>{if(t.isInline&&t.isAtom){let i=this.mark.addToSet(t.marks);if(!ly.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);Ub(Hb,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||Ub(e,a,o,r,n)}}}),n.length==1?n[0]:new Wb(n)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Rb.jsonID(`addMark`,Vb);var Hb=class e extends Rb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new X(Bb(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return zb.fromReplace(e,this.from,this.to,n)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(e,n)=>{e.isInline&&e.isAtom&&this.mark.isInSet(e.marks)&&Ub(Vb,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new Wb(t)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Rb.jsonID(`removeMark`,Hb);function Ub(e,t,n,r,i){let a=i.length?i[i.length-1]:null;a&&a instanceof e&&a.to==t&&a.mark.eq(r)?i[i.length-1]=new e(a.from,n,r):i.push(new e(t,n,r))}var Wb=class e extends Rb{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let n=t.apply(e);if(!n.doc)return n;e=n.doc}return new zb(e,null)}invert(t){return new e(this.steps.map(e=>e.invert(t)))}map(t){let n=[];for(let e of this.steps){let r=e.map(t);r&&n.push(r)}return n.length?new e(n):null}toJSON(){return{stepType:`markSet`,steps:this.steps.map(e=>e.toJSON())}}static fromJSON(t,n){if(!Array.isArray(n.steps)||!n.steps.every(e=>e.stepType==`addMark`||e.stepType==`removeMark`))throw RangeError(`Invalid JSON for MarkSetStep`);return new e(n.steps.map(e=>Rb.fromJSON(t,e)))}};Rb.jsonID(`markSet`,Wb);var Gb=class e extends Rb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return zb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return zb.fromReplace(e,this.pos,this.pos+1,new X(Y.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Kb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Rb.jsonID(`addNodeMark`,Gb);var Kb=class e extends Rb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return zb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return zb.fromReplace(e,this.pos,this.pos+1,new X(Y.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Gb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Rb.jsonID(`removeNodeMark`,Kb);var qb=class e extends Rb{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Yb(e,this.from,this.to)?zb.fail(`Structure replace would overwrite content`):zb.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Fb([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?X.empty:new X(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?X.empty:new X(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,X.fromJSON(t,n.slice),!!n.structure)}};qb.MAP_BIAS=1,Rb.jsonID(`replace`,qb);var Jb=class e extends Rb{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Yb(e,this.from,this.gapFrom)||Yb(e,this.gapTo,this.to)))return zb.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return zb.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?zb.fromReplace(e,this.from,this.to,n):zb.fail(`Content does not fit in gap`)}getMap(){return new Fb([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,X.fromJSON(t,n.slice),n.insert,!!n.structure)}};Rb.jsonID(`replaceAround`,Jb);function Yb(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function Xb(e,t,n,r){let i=[];e.doc.nodesBetween(t,n,(e,a,o)=>{if(!e.isInline)return;let s=e.marks;!r.isInSet(s)&&o.type.allowsMarkType(r.type)&&Ub(Vb,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function Zb(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline||!e.isAtom)return;a++;let s=null;if(r instanceof $y){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Hb(t.from,t.to,t.style)))}function Qb(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new qb(s,l,X.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Hb(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new X(Y.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new qb(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(Y.empty,!0);e.replace(s,s,new X(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function $b(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ex(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!$b(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function tx(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=Y.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=Y.from(r.node(e).copy(u)),d++):c--;let f=Y.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=Y.from(i.node(e).copy(f)),p++):l++;e.step(new Jb(c,l,o,s,new X(u.append(f),d,p),u.size-d,!0))}function nx(e,t,n=null,r=e){let i=ix(e,t),a=i&&ax(r,t);return a?i.map(rx).concat({type:t,attrs:n}).concat(a.map(rx)):null}function rx(e){return{type:e,attrs:null}}function ix(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function ax(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function ox(e,t,n){let r=Y.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=Y.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new Jb(i,a,i,a,new X(r,0,0),n.length,!0))}function sx(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&ux(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&lx(e,t,n,a),Qb(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new Jb(c,l,c+1,l-1,new X(Y.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&cx(e,t,n,a),!1}})}function cx(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function lx(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
+`))}})}function ux(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function dx(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new Jb(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new X(Y.from(o),0,0),1,!0))}function fx(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function px(e,t,n=1,r){let i=e.doc.resolve(t),a=Y.empty,o=Y.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=Y.from(i.node(e).copy(a));let t=r&&r[s];o=Y.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new qb(t,t,new X(a.append(o),n,n),!0))}function mx(e,t){let n=e.resolve(t),r=n.index();return gx(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function hx(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function gx(e,t){return!!(e&&t&&!e.isLeaf&&hx(e,t))}function _x(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&gx(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function vx(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);lx(e,r.node(),r.before(),s)}o.inlineContent&&Qb(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new qb(l,c.map(t+n,-1),X.empty,!0)),r===!0){let t=e.doc.resolve(l);cx(e,t.node(),t.before(),e.steps.length)}return e}function yx(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function bx(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function xx(e,t,n=t,r=X.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Sx(i,a,r)?new qb(t,n,r):new Cx(i,a,r).fit()}function Sx(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Cx=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=Y.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new X(i,a,o);return e>-1?new Jb(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new qb(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=Ex(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(Y.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return jx(e,-1)<=t?!1:(this.unplaced.size>1&&jx(e,1)>n&&n++,this.unplaced=new X(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ex(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new X(wx(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new X(wx(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Dx(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=Tx(this.placed,t,Y.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?X.empty:new X(wx(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new X(wx(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Ox(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Ox(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Ox(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Tx(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Tx(this.placed,this.depth,Y.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Y.empty,!0);e.childCount&&(this.placed=Tx(this.placed,this.frontier.length,e))}};function wx(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(wx(e.firstChild.content,t-1,n)))}function Tx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Tx(e.lastChild.content,t-1,n)))}function Ex(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Dx(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Dx(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Y.empty,!0)))),e.copy(r)}function Ox(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!kx(n,a.content,o)?s:null}function kx(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Ax(e){return e.spec.defining||e.spec.definingForContent}function jx(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function Mx(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Sx(i,a,r))return e.step(new qb(t,n,r));let o=Ix(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=Ax(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new X(Nx(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Nx(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Nx(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(Y.empty,!0))}return e}function Px(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=yx(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new X(Y.from(r),0,0))}function Fx(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=Ix(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function Ix(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var Lx=class e extends Rb{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return zb.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return zb.fromReplace(e,this.pos,this.pos+1,new X(Y.from(r),0,+!t.isLeaf))}getMap(){return Fb.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};Rb.jsonID(`attr`,Lx);var Rx=class e extends Rb{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return zb.ok(n)}getMap(){return Fb.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};Rb.jsonID(`docAttr`,Rx);var zx=class extends Error{};zx=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},zx.prototype=Object.create(Error.prototype),zx.prototype.constructor=zx,zx.prototype.name=`TransformError`;var Bx=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ib}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new zx(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=X.empty){let r=xx(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new X(Y.from(n),0,0))}delete(e,t){return this.replace(e,t,X.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Mx(this,e,t,n),this}replaceRangeWith(e,t,n){return Px(this,e,t,n),this}deleteRange(e,t){return Fx(this,e,t),this}lift(e,t){return tx(this,e,t),this}join(e,t=1){return vx(this,e,t),this}wrap(e,t){return ox(this,e,t),this}setBlockType(e,t=e,n,r=null){return sx(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return dx(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Lx(e,t,n)),this}setDocAttribute(e,t){return this.step(new Rx(e,t)),this}addNodeMark(e,t){return this.step(new Gb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof ly)t.isInSet(n.marks)&&this.step(new Kb(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new Kb(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return px(this,e,t,n),this}addMark(e,t,n){return Xb(this,e,t,n),this}removeMark(e,t,n){return Zb(this,e,t,n),this}clearIncompatible(e,t,n){return Qb(this,e,t,n),this}},Vx=Object.create(null),Hx=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ux(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=X.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?X.empty:t),o==0&&$x(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),$x(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Kx(e):Qx(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?Qx(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Qx(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Xx(e.node(0))}static atStart(e){return Qx(e,e,0,0,1)||new Xx(e)}static atEnd(e){return Qx(e,e,e.content.size,e.childCount,-1)||new Xx(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Vx[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Vx)throw RangeError(`Duplicate use of selection JSON ID `+e);return Vx[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Kx.between(this.$anchor,this.$head).getBookmark()}};Hx.prototype.visible=!0;var Ux=class{constructor(e,t){this.$from=e,this.$to=t}},Wx=!1;function Gx(e){!Wx&&!e.parent.inlineContent&&(Wx=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var Kx=class e extends Hx{constructor(e,t=e){Gx(e),Gx(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Hx.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=X.empty){if(super.replace(e,t),t==X.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new qx(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=Hx.findFrom(n,r,!0)||Hx.findFrom(n,-r,!0);if(e)n=e.$head;else return Hx.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Hx.findFrom(t,-r,!0)||Hx.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};Hx.jsonID(`text`,Kx);var qx=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return Kx.between(e.resolve(this.anchor),e.resolve(this.head))}},Jx=class e extends Hx{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Hx.near(a):new e(a)}content(){return new X(Y.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Yx(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Jx.prototype.visible=!1,Hx.jsonID(`node`,Jx);var Yx=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new qx(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Jx.isSelectable(n)?new Jx(t):Hx.near(t)}},Xx=class e extends Hx{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=X.empty){if(t==X.empty){e.delete(0,e.doc.content.size);let t=Hx.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Zx}};Hx.jsonID(`all`,Xx);var Zx={map(){return this},resolve(e){return new Xx(e)}};function Qx(e,t,n,r,i,a=!1){if(t.inlineContent)return Kx.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=Qx(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Jx.isSelectable(r))return Jx.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function $x(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof qb||i instanceof Jb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(Hx.near(e.doc.resolve(o),n))}var eS=1,tS=2,nS=4,rS=class extends Bx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|eS)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&eS)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=tS,this}ensureMarks(e){return ly.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&tS)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||ly.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(Hx.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=nS,this}get scrolledIntoView(){return(this.updated&nS)>0}};function iS(e,t){return!t||!e?e:e.bind(t)}var aS=class{constructor(e,t,n){this.name=e,this.init=iS(t.init,n),this.apply=iS(t.apply,n)}},oS=[new aS(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new aS(`selection`,{init(e,t){return e.selection||Hx.atStart(t.doc)},apply(e){return e.selection}}),new aS(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new aS(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],sS=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=oS.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new aS(e.key,e.spec.state,e))})}},cS=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new rS(this)}static create(t){let n=new sS(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new sS(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new sS(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=ky.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=Hx.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function lS(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=lS(i,t,{})),n[r]=i}return n}var uS=class{constructor(e){this.spec=e,this.props={},e.props&&lS(e.props,this,this.props),this.key=e.key?e.key.key:fS(`plugin`)}getState(e){return e[this.key]}},dS=Object.create(null);function fS(e){return e in dS?e+`$`+ ++dS[e]:(dS[e]=0,e+`$`)}var pS=class{constructor(e=`key`){this.key=fS(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},mS=o((e=>{var t=Ce();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),hS=o(((e,t)=>{t.exports=mS()})),gS=hS(),_S=Object.defineProperty,vS=(e,t)=>{let n={};for(var r in e)_S(n,r,{get:e[r],enumerable:!0});return t||_S(n,Symbol.toStringTag,{value:`Module`}),n},yS=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function bS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var xS=(e,t,n)=>{let r=bS(e,n);if(!r)return!1;let i=DS(r);if(!i){let n=r.blockRange(),i=n&&ex(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(GS(e,i,t,-1))return!0;if(r.parent.content.size==0&&(TS(a,`end`)||Jx.isSelectable(a)))for(let n=r.depth;;n--){let o=xx(e.doc,r.before(n),r.after(n),X.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(TS(a,`end`)?Hx.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):Jx.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},SS=(e,t,n)=>{let r=bS(e,n);if(!r)return!1;let i=DS(r);return i?wS(e,i,t):!1},CS=(e,t,n)=>{let r=OS(e,n);if(!r)return!1;let i=jS(r);return i?wS(e,i,t):!1};function wS(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=xx(e.doc,i,o,X.empty);if(!s||s.from!=i||s instanceof qb&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(Kx.create(t.doc,i)),n(t.scrollIntoView())}return!0}function TS(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var ES=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=DS(r)}let o=a&&a.nodeBefore;return!o||!Jx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Jx.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function DS(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function OS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var kS=(e,t,n)=>{let r=OS(e,n);if(!r)return!1;let i=jS(r);if(!i)return!1;let a=i.nodeAfter;if(GS(e,i,t,1))return!0;if(r.parent.content.size==0&&(TS(a,`start`)||Jx.isSelectable(a))){let n=xx(e.doc,r.before(),r.after(),X.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(TS(a,`start`)?Hx.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Jx.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},AS=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=jS(r)}let o=a&&a.nodeAfter;return!o||!Jx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Jx.create(e.doc,a.pos)).scrollIntoView()),!0)};function jS(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var MS=(e,t)=>{let n=e.selection,r=n instanceof Jx,i;if(r){if(n.node.isTextblock||!mx(e.doc,n.from))return!1;i=n.from}else if(i=_x(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(Jx.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},NS=(e,t)=>{let n=e.selection,r;if(n instanceof Jx){if(n.node.isTextblock||!mx(e.doc,n.to))return!1;r=n.to}else if(r=_x(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},PS=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&ex(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},FS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
+`).scrollIntoView()),!0)};function IS(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var LS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=IS(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(Hx.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},RS=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Xx||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=IS(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(Kx.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},zS=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(fx(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&ex(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function BS(e){return(t,n)=>{if(t.selection instanceof Jx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!fx(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof Kx||t.selection instanceof Xx)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=IS(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=fx(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,fx(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var VS=BS(),HS=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(Jx.create(e.doc,i))),!0)},US=(e,t)=>(t&&t(e.tr.setSelection(new Xx(e.doc))),!0);function WS(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||mx(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function GS(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&WS(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=Y.empty;for(let e=o.length-1;e>=0;e--)s=Y.from(o[e].create(null,s));s=Y.from(i.copy(s));let c=e.tr.step(new Jb(t.pos-1,r,t.pos,r,new X(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&mx(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:Hx.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&ex(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&TS(a,`start`,!0)&&TS(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=Y.empty;for(let e=o.length-1;e>=0;e--)r=Y.from(o[e].copy(r));n(e.tr.step(new Jb(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new X(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function KS(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Kx.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var qS=KS(-1),JS=KS(1);function YS(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&nx(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function XS(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function ZS(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var QS=ZS(yS,xS,ES),$S=ZS(yS,kS,AS),eC={Enter:ZS(FS,RS,zS,VS),"Mod-Enter":LS,Backspace:QS,"Mod-Backspace":QS,"Shift-Backspace":QS,Delete:$S,"Mod-Delete":$S,"Mod-a":US},tC={"Ctrl-h":eC.Backspace,"Alt-Backspace":eC[`Mod-Backspace`],"Ctrl-d":eC.Delete,"Ctrl-Alt-Backspace":eC[`Mod-Delete`],"Alt-Delete":eC[`Mod-Delete`],"Alt-d":eC[`Mod-Delete`],"Ctrl-a":qS,"Ctrl-e":JS};for(let e in eC)tC[e]=eC[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function nC(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return rC(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function rC(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new Dy(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Dy(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=nx(a,n,r,t);return s?(e&&iC(e,t,s,i,n),!0):!1}function iC(e,t,n,r,i){let a=Y.empty;for(let e=n.length-1;e>=0;e--)a=Y.from(n[e].type.create(n[e].attrs,a));e.step(new Jb(t.start-(r?2:0),t.end,t.start,t.end,new X(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&fx(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function aC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?oC(t,n,e,a):sC(t,n,a):!0:!1}}function oC(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Jb(a-1,o,a,o,new X(Y.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Dy(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=ex(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return mx(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function sC(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?Y.empty:Y.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new Jb(d-+!!s,f+ +!!c,d+1,f-1,new X((s?Y.empty:Y.from(i.copy(Y.empty))).append(c?Y.empty:Y.from(i.copy(Y.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function cC(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=Y.from(r?e.create():null),o=new X(Y.from(e.create(null,Y.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new Jb(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var lC=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},uC=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},dC=null,fC=function(e,t,n){let r=dC||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},pC=function(){dC=null},mC=function(e,t,n,r){return n&&(gC(e,t,n,r,-1)||gC(e,t,n,r,1))},hC=/^(img|br|input|textarea|hr)$/i;function gC(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:_C(e))){let n=e.parentNode;if(!n||!vC(n)||wC(e)||hC.test(e.nodeName)||e.contentEditable==`false`)return!1;t=lC(e)+(i<0?0:1),e=n}else if(vC(e)){let n=e.childNodes[t+(i<0?-1:0)];if(vC(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?_C(e):0}else return!1}}function _C(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function vC(e){return e.nodeType==1}function yC(e){return e.nodeType==3}function bC(e,t){return t?e.contains(vC(t)?t:t.parentNode):!1}function xC(e,t){for(;;){if(yC(e)&&t)return e;if(vC(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=_C(e)}else if(e.parentNode&&!wC(e))t=lC(e),e=e.parentNode;else return null}}function SC(e,t){for(;;){if(yC(e)&&t<e.nodeValue.length)return e;if(vC(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!wC(e))t=lC(e)+1,e=e.parentNode;else return null}}function CC(e,t,n){for(let r=t==0,i=t==_C(e);r||i;){if(e==n)return!0;let t=lC(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==_C(e)}}function wC(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var TC=function(e){return e.focusNode&&mC(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function EC(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function DC(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function OC(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(_C(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(_C(r.startContainer),r.startOffset)}}}var kC=typeof navigator<`u`?navigator:null,AC=typeof document<`u`?document:null,jC=kC&&kC.userAgent||``,MC=/Edge\/(\d+)/.exec(jC),NC=/MSIE \d/.exec(jC),PC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jC),FC=!!(NC||PC||MC),IC=NC?document.documentMode:PC?+PC[1]:MC?+MC[1]:0,LC=!FC&&/gecko\/(\d+)/i.test(jC);LC&&+(/Firefox\/(\d+)/.exec(jC)||[0,0])[1];var RC=!FC&&/Chrome\/(\d+)/.exec(jC),zC=!!RC,BC=RC?+RC[1]:0,VC=!FC&&!!kC&&/Apple Computer/.test(kC.vendor),HC=VC&&(/Mobile\/\w+/.test(jC)||!!kC&&kC.maxTouchPoints>2),UC=HC||(kC?/Mac/.test(kC.platform):!1),WC=kC?/Win/.test(kC.platform):!1,GC=/Android \d/.test(jC),KC=!!AC&&`webkitFontSmoothing`in AC.documentElement.style,qC=KC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function JC(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function YC(e,t){return typeof e==`number`?e:e[t]}function XC(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function ZC(e,t,n){if(!fw(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!vC(o)){o=uC(o);continue}let e=o==a.body,n=e?JC(a):XC(o),s=0,c=0;if(t.top<n.top+YC(r,`top`)?c=-(n.top-t.top+YC(i,`top`)):t.bottom>n.bottom-YC(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+YC(i,`top`)-n.top:t.bottom-n.bottom+YC(i,`bottom`)),t.left<n.left+YC(r,`left`)?s=-(n.left-t.left+YC(i,`left`)):t.right>n.right-YC(r,`right`)&&(s=t.right-n.right+YC(i,`right`)),s||c){if(e)a.defaultView.scrollBy(s,c);else{let e=o.scrollLeft,n=o.scrollTop;c&&(o.scrollTop+=c),s&&(o.scrollLeft+=s);let r=o.scrollLeft-e,i=o.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}}let l=e?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(l))break;o=l==`absolute`?o.offsetParent:uC(o)}}function QC(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:$C(e.dom)}}function $C(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=uC(r));return t}function ew({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;tw(n,r==0?0:r-t)}function tw(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var nw=null;function rw(e){if(e.setActive)return e.setActive();if(nw)return e.focus(nw);let t=$C(e);e.focus(nw==null?{get preventScroll(){return nw={preventScroll:!0},!0}}:void 0),nw||(nw=!1,tw(t,0))}function iw(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(vC(u))e=u.getClientRects();else if(yC(u))e=fC(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&yC(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,vC(u)&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&yC(n)?aw(n,i):!n||r?{node:e,offset:a}:iw(n,i)}function aw(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=pw(r,1);if(n.top!=n.bottom&&ow(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function ow(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function sw(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function cw(e,t,n){let{node:r,offset:i}=iw(t,n),a=-1;if(vC(r)&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function lw(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(vC(t.dom)&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function uw(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(vC(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(ow(t,i))return uw(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function dw(e,t){let n=e.dom.ownerDocument,r,i=0,a=OC(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let n=e.dom.getBoundingClientRect();if(!ow(t,n)||(o=uw(e.dom,t,n),!o))return null}if(VC)for(let e=o;r&&e;e=uC(e))e.draggable&&(r=void 0);if(o=sw(o,t),r){if(LC&&vC(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;KC&&i&&vC(r)&&vC(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&vC(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&vC(r)&&r.childNodes[i-1].nodeName==`BR`||(s=lw(e,r,i,t))}s??=cw(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function fw(e){return e.top<e.bottom||e.left<e.right}function pw(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(fw(e))return e}return Array.prototype.find.call(n,fw)||e.getBoundingClientRect()}var mw=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function hw(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=KC||LC;if(yC(r)){if(o&&(mw.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=pw(fC(r,i,i),n);if(LC&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=pw(fC(r,i-1,i-1),-1);if(t.top==e.top){let n=pw(fC(r,i,i+1),-1);if(n.top!=e.top)return gw(n,n.left<t.left)}}return e}{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,gw(pw(fC(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==_C(r))){let e=r.childNodes[i-1];if(vC(e))return _w(e.getBoundingClientRect(),!1)}if(a==null&&i<_C(r)){let e=r.childNodes[i];if(vC(e))return _w(e.getBoundingClientRect(),!0)}return _w(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==_C(r))){let e=r.childNodes[i-1],t=yC(e)?fC(e,_C(e)-+!o):vC(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return gw(pw(t,1),!1)}if(a==null&&i<_C(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?yC(e)?fC(e,0,+!o):vC(e)?e:null:null;if(t)return gw(pw(t,-1),!0)}return gw(pw(yC(r)?fC(r):r,-n),n>=0)}function gw(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function _w(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function vw(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function yw(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return vw(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=hw(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(vC(e))t=e.getClientRects();else if(yC(e))t=fC(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var bw=/[\u0590-\u08ac]/;function xw(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!bw.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:vw(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!bC(l,u)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var Sw=null,Cw=null,ww=!1;function Tw(e,t,n){return Sw==t&&Cw==n?ww:(Sw=t,Cw=n,ww=n==`up`||n==`down`?yw(e,t,n):xw(e,t,n))}var Ew=0,Dw=1,Ow=2,kw=3,Aw=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=Ew,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&bC(this.contentDOM,e)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>lC(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM)){let n=e.compareDocumentPosition(this.contentDOM);r=n&16?t>Array.from(e.childNodes).findIndex(e=>e.contains(this.contentDOM)):!(n&4)}else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node)){if(n&&(a=i.nodeDOM)&&!(vC(a)?bC(a,e):a==e))n=!1;else return i}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(;n>0;n--){let e=this.children[n-1];if(e.size||!(e instanceof Lw||e instanceof jw&&e.side>=0))break}if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?lC(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?lC(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=lC(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=lC(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(!vC(t)||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((LC||VC)&&e==t){let{node:e,offset:t}=o;if(yC(e)){if(u=!!(t&&e.nodeValue[t-1]==`
+`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:lC(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(LC&&l.focusNode&&l.focusNode!=s.node&&vC(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&VC)&&mC(o.node,o.offset,l.anchorNode,l.anchorOffset)&&mC(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&LC)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?Ow:Dw,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=kw:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Ow:kw}n=a}this.dirty=Ow}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?Ow:Dw;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},jw=class extends Aw{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){let e=vC(a)?a:document.createElement(`span`);e!=a&&(e.appendChild(a),a=e),e.hasAttribute(`contenteditable`)||(e.contentEditable=`false`),e.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Ew&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},Mw=class extends Aw{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},Nw=class e extends Aw{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return o&&o.dom||(o=vb.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&kw||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=kw&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Ew){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=Ew}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=eT(a,n,o,r)),t>0&&(a=eT(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},Pw=class e extends Aw{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(!yC(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=vb.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=Gw(u,r,n),l?c=new Rw(t,n,r,i,u,d||null,f,l):n.isText?new Iw(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>vC(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>Y.empty}}return t}matchesNode(e,t,n){return this.dirty==Ew&&e.eq(this.node)&&Kw(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new Jw(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;Zw(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?ly.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,u,d)=>{s.syncToMarks(t.marks,n,e,d),l&&t.isAtom&&!t.isText&&s.addHackNode(`IMG`,s.top);let f;s.findNodeMatch(t,a,u,d)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(f=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,u,f,e)||s.updateNextNode(t,a,u,e,d,r)||s.addNode(t,a,u,e,r),r+=t.nodeSize,c&&(l=t.isAtom&&!t.isText)}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==Ow)&&(a&&this.protectLocalComposition(e,a),zw(this.contentDOM,this.children,e),HC&&Qw(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Kx)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=$w(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new Mw(this,i,t,r);e.input.compositionNodes.push(a),this.children=eT(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==kw||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Ew}updateOuterDeco(e){if(Kw(e,this.outerDeco))return;let t=!vC(this.nodeDOM),n=this.dom;this.dom=Uw(this.dom,this.nodeDOM,Hw(this.outerDeco,this.node,t),Hw(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){vC(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){vC(this.nodeDOM)&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function Fw(e,t,n,r,i){Gw(r,t,e);let a=new Pw(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var Iw=class e extends Pw{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==kw||this.dirty!=Ew&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Ew||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=Ew,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=kw)}get domAtom(){return!1}isText(e){return this.node.text==e}},Lw=class extends Aw{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ew&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},Rw=class extends Pw{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==kw)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function zw(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=qw(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Nw){let t=r?r.previousSibling:e.lastChild;zw(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=qw(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var Bw=function(e){e&&(this.nodeName=e)};Bw.prototype=Object.create(null);var Vw=[new Bw];function Hw(e,t,n){if(e.length==0)return Vw;let r=n?Vw[0]:new Bw,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new Bw(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new Bw(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function Uw(e,t,n,r){if(n==Vw&&r==Vw)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=Vw[0]),i=t}Ww(i,o||Vw[0],a)}return i}function Ww(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function Gw(e,t,n){return Uw(e,e,Vw,Hw(t,n,!vC(e)))}function Kw(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function qw(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Jw=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Yw(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=Ew,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof Nw&&t.dirty!=kw&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=Nw.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==kw&&a.dom==a.contentDOM&&(a.dirty=Ow),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof Pw){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=kw&&Kw(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=Ow,u.updateChildren(r,a+1),u.dirty=Ew),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Kw(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=Pw.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=Pw.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new jw(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Nw;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Iw)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((VC||zC)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new Lw(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||vC(e)&&e.contains(this.lock.parentNode))}};function Yw(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof Nw)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function Xw(e,t){return e.type.side-t.type.side}function Zw(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u){if(d){d.sort(Xw);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c)}let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function Qw(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function $w(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function eT(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function tT(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(TC(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Jx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&CC(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Jx(o==e?s:r.resolve(e))}else if(LC&&t==`key`&&o>e.state.selection.to&&vC(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let e=n.focusNode;;e=e.parentNode){if(getComputedStyle(e).overflow!=`visible`){l=Hx.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!vC(e.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=fT(e,u,s,n)}return l}function nT(e){return e.editable?e.hasFocus():mT(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function rT(e,t=!1){let n=e.state.selection;if(uT(e,n),!nT(e))return;let r=e.input.mouseDown;if(!t&&zC&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&mC(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)lT(e);else{let{anchor:r,head:i}=n,a,o;iT&&!(n instanceof Kx)&&(n.$from.parent.inlineContent||(a=aT(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=aT(e,n.to))),e.docView.setSelection(r,i,e,t),iT&&(a&&sT(a),o&&sT(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&cT(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var iT=VC||zC&&BC<63;function aT(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(VC&&i&&i.contentEditable==`false`)return oT(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return oT(i);if(a)return oT(a)}}function oT(e){return e.contentEditable=`true`,VC&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function sT(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function cT(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!nT(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function lT(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,lC(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&FC&&IC<=11&&(n.disabled=!0,n.disabled=!1)}function uT(e,t){if(t instanceof Jx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(dT(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else dT(e)}function dT(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function fT(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||Kx.between(t,n,r)}function pT(e){return e.editable&&!e.hasFocus()?!1:mT(e)}function mT(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return bC(e.dom,t.anchorNode)&&(e.editable||bC(e.dom,t.focusNode))}catch{return!1}}function hT(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return mC(t.node,t.offset,n.anchorNode,n.anchorOffset)}function gT(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Hx.findFrom(a,t)}function _T(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function vT(e,t,n){let r=e.state.selection;if(r instanceof Kx){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return _T(e,new Kx(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=gT(e.state,t);return n&&n instanceof Jx?_T(e,n):!1}if(!UC||n.indexOf(`m`)<0){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?Jx.isSelectable(i)?_T(e,new Jx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):_T(e,new Kx(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof Jx&&r.node.isInline)return _T(e,new Kx(t>0?r.$to:r.$from));else{let n=gT(e.state,t);return n?_T(e,n):!1}}function yT(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):vC(e)&&e.contentEditable==`false`}function bT(e,t){return t<0?xT(e):ST(e)}function xT(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(LC&&vC(n)&&r<_C(n)&&yT(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!vC(n))break;let e=n.childNodes[r-1];if(yT(e,-1))i=n,a=--r;else if(yC(e))n=e,r=n.nodeValue.length;else break}else if(CT(n))break;else{let t=n.previousSibling;for(;t&&yT(t,-1);)i=n.parentNode,a=lC(t),t=t.previousSibling;if(t)n=t,r=_C(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?ET(e,n,r):i&&ET(e,i,a)}function ST(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=_C(n),a,o;for(;;)if(r<i){if(!vC(n))break;let e=n.childNodes[r];if(yT(e,1))a=n,o=++r;else break}else if(CT(n))break;else{let t=n.nextSibling;for(;t&&yT(t,1);)a=t.parentNode,o=lC(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=_C(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&ET(e,a,o)}function CT(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function wT(e,t){for(;e&&t==e.childNodes.length&&!wC(e);)t=lC(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(yC(n))return n;if(vC(n)&&n.contentEditable==`false`)break;e=n,t=0}}function TT(e,t){for(;e&&!t&&!wC(e);)t=lC(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(yC(n))return n;if(vC(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function ET(e,t,n){if(!yC(t)){let e,r;(r=wT(t,n))?(t=r,n=0):(e=TT(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;TC(i)?r.collapse(t,n):r.extend&&(r.collapse(i.anchorNode,i.anchorOffset),r.extend(t,n)),e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&rT(e)},50)}function DT(e,t){let n=e.state.doc.resolve(t);if(!(zC||WC)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}let r=e.dom;for(let t=n.depth;t>0;t--)if(n.node(t).isBlock){r=e.nodeDOM(n.before(t))||r;break}return getComputedStyle(r).direction==`rtl`?`rtl`:`ltr`}function OT(e,t,n){let r=e.state.selection;if(r instanceof Kx&&!r.empty||n.indexOf(`s`)>-1||UC&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=gT(e.state,t);if(n&&n instanceof Jx)return _T(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof Xx?Hx.near(n,t):Hx.findFrom(n,t);return o?_T(e,o):!1}return!1}function kT(e,t){if(!(e.state.selection instanceof Kx))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function AT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function jT(e){if(!VC||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&vC(t)&&n==0&&t.firstChild&&vC(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;AT(e,n,`true`),setTimeout(()=>AT(e,n,`false`),20)}return!1}function MT(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function NT(e,t){let n=t.keyCode,r=MT(t);if(n==8||UC&&n==72&&r==`c`)return kT(e,-1)||bT(e,-1);if(n==46&&!t.shiftKey||UC&&n==68&&r==`c`)return kT(e,1)||bT(e,1);if(n==13||n==27)return!0;if(n==37||UC&&n==66&&r==`c`){let t=n==37?DT(e,e.state.selection.from)==`ltr`?-1:1:-1;return vT(e,t,r)||bT(e,t)}if(n==39||UC&&n==70&&r==`c`){let t=n==39?DT(e,e.state.selection.from)==`ltr`?1:-1:1;return vT(e,t,r)||bT(e,t)}return n==38||UC&&n==80&&r==`c`?OT(e,-1,r)||bT(e,-1):n==40||UC&&n==78&&r==`c`?jT(e)||OT(e,1,r)||bT(e,1):!(r!=(UC?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function PT(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||vb.fromSchema(e.state.schema),s=WT(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&vC(l)&&(u=UT[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&vC(l)&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
+
+`),slice:t}}function FT(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new X(Y.from(e.state.schema.text(t.replace(/\r\n?/g,`
+`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=vb.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=qT(n),KC&&JT(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&!vC(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||ib.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!IT.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=YT(HT(s,+u[1],+u[2]),u[4]);else if(s=X.maxOpen(LT(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=HT(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var IT=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function LT(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&zT(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=BT(a[a.length-1],i.length));let n=RT(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return Y.from(a)}return e}function RT(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Y.from(e));return e}function zT(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=zT(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Y.from(RT(n,e,i+1))))}}function BT(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,BT(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Y.empty,!0);return e.copy(n.append(r))}function VT(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=VT(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Y.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function HT(e,t,n){return t<e.openStart&&(e=new X(VT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new X(VT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var UT={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function WT(){return document.implementation.createHTMLDocument(`title`)}var GT=null;function KT(e){let t=window.trustedTypes;if(!t)return e;if(!GT){if(GT=t.defaultPolicy)try{return GT.createHTML(e)}catch{}GT=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return GT.createHTML(e)}function qT(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=WT(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&UT[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=KT(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function JT(e){let t=e.querySelectorAll(zC?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function YT(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{i=Y.from(t.create(r[e+1],i))}catch{break}a++,o++}return new X(i,a,o)}var XT={},ZT={},QT={touchstart:!0,touchmove:!0},$T=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function eE(e){for(let t in XT){let n=XT[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{aE(e,t)&&!iE(e,t)&&(e.editable||!(t.type in ZT))&&n(e,t)},QT[t]?{passive:!0}:void 0)}VC&&e.dom.addEventListener(`input`,()=>null),rE(e)}function tE(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function nE(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function rE(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>iE(e,t))})}function iE(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function aE(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function oE(e,t){!iE(e,t)&&XT[t.type]&&(e.editable||!(t.type in ZT))&&XT[t.type](e,t)}ZT.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!CE(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(GC&&zC&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),HC&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,EC(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||NT(e,n)?n.preventDefault():tE(e,`key`)}},ZT.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},ZT.keypress=(e,t)=>{let n=t;if(CE(e)||!n.charCode||n.ctrlKey&&!n.altKey||UC&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Kx)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function sE(e){return{left:e.clientX,top:e.clientY}}function cE(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function lE(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function uE(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta(`pointer`,!0),e.dispatch(r)}function dE(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Jx.isSelectable(r)?(uE(e,new Jx(n)),!0):!1}function fE(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Jx&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(Jx.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i!=null&&(uE(e,Jx.create(e.state.doc,i)),!0)}function pE(e,t,n,r,i){return lE(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?fE(e,n):dE(e,n))}function mE(e,t,n,r){return lE(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function hE(e,t,n,r){return lE(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||gE(e,n,r)}function gE(e,t,n){if(n.button!=0)return!1;let r=_E(e,t,!0),i=e.state.doc;return r?(uE(e,r),r instanceof Kx&&i.eq(e.state.doc)&&(e.input.mouseDown=new SE(e,r)),!0):!1}function _E(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?Kx.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return Kx.create(r,a+1,a+1+t.content.size);if(n&&Jx.isSelectable(t))return Jx.create(r,a)}return null}function vE(e){return kE(e)}var yE=UC?`metaKey`:`ctrlKey`;XT.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=vE(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&cE(n,e.input.lastClick)&&!n[yE]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(sE(n));o&&(a==`singleClick`?e.input.mouseDown=new xE(e,o,n,!!r):(a==`doubleClick`?mE:hE)(e,o.pos,o.inside,n)?n.preventDefault():tE(e,`pointer`))};var bE=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},xE=class extends bE{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[yE],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&vC(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Jx&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&LC&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),tE(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||rT(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(sE(e))),this.updateAllowDefault(e),this.allowDefault||!t?tE(this.view,`pointer`):pE(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||VC&&this.mightDrag&&!this.mightDrag.node.isAtom||zC&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(uE(this.view,Hx.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):tE(this.view,`pointer`)}move(e){this.updateAllowDefault(e),tE(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},SE=class extends bE{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),tE(this.view,`pointer`);let t=this.view.posAtCoords(sE(e)),n=t&&_E(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];uE(this.view,Kx.create(r,a,o))}};XT.touchstart=e=>{e.input.lastTouch=Date.now(),vE(e),tE(e,`pointer`)},XT.touchmove=e=>{e.input.lastTouch=Date.now(),tE(e,`pointer`)},XT.contextmenu=e=>vE(e);function CE(e,t){return e.composing?!0:VC&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var wE=GC?5e3:-1;ZT.compositionstart=ZT.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Kx&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||zC&&WC&&TE(e)))e.markCursor=e.state.storedMarks||n.marks(),kE(e,!0),e.markCursor=null;else if(kE(e,!t.selection.empty),LC&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&vC(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(yC(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}EE(e,wE)};function TE(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!vC(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return vC(r)&&r.contentEditable==`false`}ZT.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,EE(e,20))};function EE(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>kE(e),t))}function DE(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function OE(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=xC(t.focusNode,t.focusOffset),r=SC(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function kE(e,t=!1){if(!(GC&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),DE(e),t||e.docView&&e.docView.dirty){let n=tT(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function AE(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var jE=FC&&IC<15||HC&&qC<604;XT.copy=ZT.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=jE?null:n.clipboardData,{dom:o,text:s}=PT(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):AE(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function ME(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function NE(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?PE(e,r.value,null,i,t):PE(e,r.textContent,r.innerHTML,i,t)},50)}function PE(e,t,n,r,i){let a=FT(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||X.empty)))return!0;if(!a)return!1;let o=ME(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function FE(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}ZT.paste=(e,t)=>{let n=t;if(e.composing&&!GC)return;let r=jE?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&PE(e,FE(r),r.getData(`text/html`),i,n)?n.preventDefault():NE(e,n)};var IE=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},LE=UC?`altKey`:`ctrlKey`;function RE(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[LE]:!n}XT.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(sE(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Jx?i.to-1:i.to))){if(r&&r.mightDrag)o=Jx.create(e.state.doc,r.mightDrag.pos);else if(n.target&&vC(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Jx.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=PT(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!zC||BC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(jE?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,jE||n.dataTransfer.setData(`text/plain`,c),e.dragging=new IE(l,RE(e,n),o)},XT.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ZT.dragover=ZT.dragenter=(e,t)=>t.preventDefault(),ZT.drop=(e,t)=>{try{zE(e,t,e.dragging)}finally{e.dragging=null}};function zE(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(sE(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=FT(e,FE(t.dataTransfer),jE?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&RE(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||X.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?bx(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&Jx.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Jx(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(fT(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}XT.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&rT(e)},20))},XT.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},XT.beforeinput=(e,t)=>{if(GC&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,EC(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in ZT)XT[e]=ZT[e];function BE(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var VE=class{constructor(e){this.frag=e,this.index=0,this.off=0}nodeAt(e){for(;this.off<=e&&this.index<this.frag.childCount;){let t=this.frag.child(this.index);if(this.off==e)return t;this.off+=t.nodeSize,this.index++}return null}},HE=class e{constructor(e,t){this.toDOM=e,this.spec=t||qE,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new GE(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&BE(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},UE=class e{constructor(e,t){this.attrs=e,this.spec=t||qE}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new GE(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&BE(this.attrs,t.attrs)&&BE(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},WE=class e{constructor(e,t){this.attrs=e,this.spec=t||qE}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new GE(i.pos-n,a.pos-n,this)}valid(e,t,n){let r=n.nodeAt(t.from);return!!r&&!r.isText&&t.from+r.nodeSize==t.to}eq(t){return this==t||t instanceof e&&BE(this.attrs,t.attrs)&&BE(this.spec,t.spec)}destroy(){}},GE=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new HE(n,r))}static inline(t,n,r,i){return new e(t,n,new UE(r,i))}static node(t,n,r,i){return new e(t,n,new WE(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof UE}get widget(){return this.type instanceof HE}},KE=[],qE={},JE=class e{constructor(e,t){this.local=e.length?e:KE,this.children=t.length?t:KE}static create(e,t){return t.length?nD(t,e,0,qE):YE}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==YE||e.maps.length==0?this:this.mapInner(e,t,0,0,n||qE)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new VE(n.content);for(let s=0;s<this.local.length;s++){let c=this.local[s].map(t,r,i);c&&c.type.valid(n,c,e)?(o||=[]).push(c):a.onRemove&&a.onRemove(this.local[s].spec)}}return this.children.length?ZE(this.children,o||[],t,n,r,i,a):o?new e(o.sort(rD),KE):YE}add(t,n){return n.length?this==YE?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=eD(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,nD(s,e,o+1,qE)),a+=3}});let o=QE(a?tD(n):n,-r);if(o.length){let e=new VE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||o.splice(n--,1)}return new e(o.length?this.local.concat(o).sort(rD):this.local,i||this.children)}remove(e){return e.length==0||this==YE?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==YE?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):YE}forChild(t,n){if(this==YE)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof UE){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(rD),KE);return r?new XE([t,r]):t}return r||YE}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return iD(this.localsInner(e))}localsInner(e){if(this==YE)return KE;if(e.inlineContent||!this.local.some(UE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof UE||t.push(this.local[e]);return t}forEachSet(e){e(this)}};JE.empty=new JE([],[]),JE.removeOverlap=iD;var YE=JE.empty,XE=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,qE));return e.from(r)}forChild(t,n){if(n.isLeaf)return JE.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=YE&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length){if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}}return t?iD(n?t:t.sort(rD)):KE}static from(t){switch(t.length){case 0:return YE;case 1:return t[0];default:return new e(t.every(e=>e instanceof JE)?t:t.reduce((e,t)=>e.concat(t instanceof JE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function ZE(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==YE?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=nD($E(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new JE(t.sort(rD),s)}function QE(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new GE(i.from+t,i.to+t,i.type))}return n}function $E(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function eD(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function tD(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function nD(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=eD(e,t,o+n);if(s){a=!0;let e=nD(s,t,n+o+1,r);e!=YE&&i.push(o,o+t.nodeSize,e)}});let o=QE(a?tD(e):e,-n).sort(rD);if(o.length){let e=new VE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||(r.onRemove&&r.onRemove(o[n].spec),o.splice(n--,1))}return o.length||i.length?new JE(o,i):YE}function rD(e,t){return e.from-t.from||e.to-t.to}function iD(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from)a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),aD(t,i+1,a.copy(r.to,a.to)));else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),aD(t,i,r.copy(a.from,r.to)));break}}}return t}function aD(e,t,n){for(;t<e.length&&rD(n,e[t])>0;)t++;e.splice(t,0,n)}function oD(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=YE&&t.push(r)}),e.cursorWrapper&&t.push(JE.create(e.state.doc,[e.cursorWrapper.deco])),XE.from(t)}var sD={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cD=FC&&IC<=11,lD=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},uD=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lD,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);FC&&IC<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():VC&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),cD&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,sD)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(pT(this.view)){if(this.suppressingSelectionUpdates)return rT(this.view);if(FC&&IC<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&mC(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=uC(n))t.add(n);for(let r=e.anchorNode;r;r=uC(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:yC(n)?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n,r=!1;!this.suppressingSelectionUpdates&&pT(e)&&(n=e.domSelectionRange(),r=!this.currentSelection.eq(n)&&!this.ignoreSelectionChange(n));let i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||zC&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&vC(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(LC&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||gD(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&TC(n)&&(c=tT(e))&&c.eq(Hx.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,rT(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),pD(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,_D(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&rT(e),n&&this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),yC(r)&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(FC&&IC<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?lC(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?lC(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},dD=new WeakMap,fD=!1;function pD(e){if(!dD.has(e)&&(dD.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=LC,fD)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),fD=!0}}function mD(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return mC(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function hD(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return mD(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?mD(e,n):null}function gD(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function _D(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||!vC(e)||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function vD(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&bC(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],TC(l)||u.push({node:l.focusNode,offset:l.focusOffset})),zC&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||ib.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:yD(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var yD=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(VC&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||VC&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},bD=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function xD(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=tT(e,t);if(n&&!e.state.selection.eq(n)){if(zC&&GC&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,EC(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=vD(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=DD(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(HC&&e.input.lastIOSEnter>Date.now()-225||GC)&&i.some(e=>vC(e)&&!bD.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,EC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof Kx&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=SD(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Kx&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),FC&&IC<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((HC&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&TD(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,EC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:wD(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,EC(8,`Backspace`)))){GC&&zC&&e.domObserver.suppressSelectionUpdates();return}zC&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),GC&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,EC(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=SD(e,n.doc,l.sel);t&&!(zC&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||FC&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){FC&&IC<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>rT(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=CD(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x())}else e.dispatch(x())}function SD(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:fT(e,t.resolve(n.anchor),t.resolve(n.head))}function CD(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(Y.from(l).eq(e))return{mark:s,type:o}}function wD(e,t,n,r,i){if(n-t<=i.pos-r.pos||ED(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.inlineContent){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(ED(a,!0,!0));return!o.parent.isTextblock||o.pos>n||ED(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function TD(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(e,a)=>{e.isTextblock&&a>=t&&a<n?r++:(e.isText?/\S/.test(e.text.slice(Math.max(0,t-a),Math.min(e.nodeSize,n-a))):e.isLeaf)&&i++}),i==0&&r==1}function ED(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function DD(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var OD=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new $T,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(FD),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=jD(this),AD(this),this.nodeViews=ND(this),this.docView=Fw(this.state.doc,kD(this),oD(this),this.dom,this),this.domObserver=new uD(this,(e,t,n,r)=>xD(this,e,t,n,r)),this.domObserver.start(),eE(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&rE(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(FD),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(DE(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=ND(this);PD(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&rE(this),this.editable=jD(this),AD(this);let o=oD(this),s=kD(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&QC(this);if(i){this.domObserver.stop();let t=l&&(FC||zC)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&MD(n.selection,e.selection);if(l){let n=zC?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=OE(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=Fw(e.doc,s,o,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&hT(this)&&i.delaySelUpdate())?rT(this,t):(uT(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&ew(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&bC(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof Jx){let t=this.docView.domAfterPos(this.state.selection.from);vC(t)&&ZC(this,t.getBoundingClientRect(),e)}else ZC(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new IE(e.slice,e.move,r<0?void 0:Jx.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(FC){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&rw(this.dom),rT(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return dw(this,e)}coordsAtPos(e,t=1){return hw(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return Tw(this,t||this.state,e)}pasteHTML(e,t){return PE(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return PE(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return PT(this,e)}destroy(){this.docView&&(nE(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],oD(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,pC())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return oE(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?VC&&this.root.nodeType===11&&DC(this.dom.ownerDocument)==this.dom&&hD(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};OD.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function kD(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[GE.node(0,e.state.doc.content.size,t)]}function AD(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:GE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function jD(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function MD(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function ND(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function PD(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function FD(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var ID={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},LD={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},RD=typeof navigator<`u`&&/Mac/.test(navigator.platform),zD=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),BD=0;BD<10;BD++)ID[48+BD]=ID[96+BD]=String(BD);for(var BD=1;BD<=24;BD++)ID[BD+111]=`F`+BD;for(var BD=65;BD<=90;BD++)ID[BD]=String.fromCharCode(BD+32),LD[BD]=String.fromCharCode(BD);for(var VD in ID)LD.hasOwnProperty(VD)||(LD[VD]=ID[VD]);function HD(e){var t=!(RD&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||zD&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?LD:ID)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var UD=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),WD=typeof navigator<`u`&&/Win/.test(navigator.platform);function GD(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))UD?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function KD(e){let t=Object.create(null);for(let n in e)t[GD(n)]=e[n];return t}function qD(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function JD(e){return new uS({props:{handleKeyDown:YD(e)}})}function YD(e){let t=KD(e);return function(e,n){let r=HD(n),i,a=t[qD(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[qD(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(WD&&n.ctrlKey&&n.altKey)&&(i=ID[n.keyCode])&&i!=r){let r=t[qD(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var XD=200,ZD=function(){};ZD.prototype.append=function(e){return e.length?(e=ZD.from(e),!this.length&&e||e.length<XD&&this.leafAppend(e)||this.length<XD&&e.leafPrepend(this)||this.appendInner(e)):this},ZD.prototype.prepend=function(e){return e.length?ZD.from(e).append(this):this},ZD.prototype.appendInner=function(e){return new $D(this,e)},ZD.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?ZD.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},ZD.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},ZD.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},ZD.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},ZD.from=function(e){return e instanceof ZD?e:e&&e.length?new QD(e):ZD.empty};var QD=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=XD)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=XD)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(ZD);ZD.empty=new QD([]);var $D=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(ZD),eO=500,tO=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new rO(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new rO(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new rO(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>aO&&(s=nO(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new Ib;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new rO(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new rO(i,o,l))}else r.push(new rO(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new rO(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>eO&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new rO(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(ZD.from(i.reverse()),a)}};tO.empty=new tO(ZD.empty,0);function nO(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var rO=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},iO=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},aO=20;function oO(e,t,n,r){let i=n.getMeta(hO),a;if(i)return i.historyState;n.getMeta(gO)&&(e=new iO(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(hO))return o.getMeta(hO).redo?new iO(e.done.addTransform(n,void 0,r,pO(t)),e.undone,cO(n.mapping.maps),e.prevTime,e.prevComposition):new iO(e.done,e.undone.addTransform(n,void 0,r,pO(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!sO(n,e.prevRanges)),s=o?lO(e.prevRanges,n.mapping):cO(n.mapping.maps);return new iO(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,pO(t)),tO.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new iO(e.done.rebased(n,a),e.undone.rebased(n,a),lO(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new iO(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),lO(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function sO(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function cO(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function lO(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function uO(e,t,n){let r=pO(t),i=hO.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new iO(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(hO,{redo:n,historyState:c})}var dO=!1,fO=null;function pO(e){let t=e.plugins;if(fO!=t){dO=!1,fO=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){dO=!0;break}}return dO}function mO(e){return e.setMeta(gO,!0)}var hO=new pS(`history`),gO=new pS(`closeHistory`);function _O(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new uS({key:hO,state:{init(){return new iO(tO.empty,tO.empty,null,0,-1)},apply(t,n,r){return oO(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?yO:n==`historyRedo`?bO:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function vO(e,t){return(n,r)=>{let i=hO.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=uO(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var yO=vO(!1,!0),bO=vO(!0,!0);function xO(e){return e.getMeta(hO)!=null}function SO(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var CO=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:SO({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},wO=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),TO=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),EO=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=ex(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},DO=e=>t=>e(t),OO=()=>({state:e,dispatch:t})=>RS(e,t),kO=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new Kx(r.doc.resolve(Math.max(o-1,0)))),!0},AO=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function jO(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var MO=e=>({tr:t,state:n,dispatch:r})=>{let i=jO(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},NO=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},PO=e=>e.content?/^text(\*|\+)/.test(e.content):!1,FO=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return PO(r)?n===`left`?e.start()-1:e.end()+1:e.pos},IO=(e,t,n)=>({from:FO(e,n,`left`),to:FO(t,n,`right`)}),LO=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=IO(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(Kx.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},RO=()=>({commands:e})=>e.keyboardShortcut(`Enter`),zO=()=>({state:e,dispatch:t})=>LS(e,t);function BO(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function VO(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:BO(t[r])?t[r].test(e[r]):t[r]===e[r])}function HO(e,t,n={}){return e.find(e=>e.type===t&&VO(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function UO(e,t,n={}){return!!HO(e,t,n)}function WO(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!HO([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&UO([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&UO([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function GO(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var KO=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=GO(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=WO(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=Kx.create(o,e.from,e.to);n.setSelection(t)}}return!0},qO=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function JO(e){return e instanceof Kx}function YO(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function XO(e,t=null){if(!t)return null;let n=Hx.atStart(e),r=Hx.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?Kx.create(e,YO(0,i,a),YO(e.content.size,i,a)):Kx.create(e,YO(t,i,a),YO(t,i,a))}function ZO(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function QO(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function $O(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var ek=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(QO()||ZO())&&r.dom.focus(),$O()&&!QO()&&!ZO()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!JO(n.state.selection))return o(),!0;let s=XO(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},tk=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),nk=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),rk=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&rk(r)}return e};function ik(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return rk(n)}function ak(e){return typeof e?.nodesBetween==`function`}function ok(e,t,n){if(ak(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Y.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),ok(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new eb({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?ib.fromSchema(a).parseSlice(ik(e),n.parseOptions):ib.fromSchema(a).parse(ik(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=ib.fromSchema(t);return n.slice?r.parseSlice(ik(e),n.parseOptions).content:r.parse(ik(e),n.parseOptions)}return ok(``,t,n)}function sk(e){return!(`type`in e)}function ck(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof qb||i instanceof Jb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Hx.near(e.doc.resolve(o),n))}var lk=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{ok(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=ok(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=sk(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):ak(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=Y.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&ck(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function uk(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var dk=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=uk(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=ok(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&ck(t,t.steps.length-1,-1)),!0):!1},fk=()=>({state:e,dispatch:t})=>MS(e,t),pk=()=>({state:e,dispatch:t})=>NS(e,t),mk=()=>({state:e,dispatch:t})=>xS(e,t),hk=()=>({state:e,dispatch:t})=>kS(e,t),gk=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},_k=()=>({state:e,dispatch:t,tr:n})=>{try{let r=_x(e.doc,e.selection.$from.pos,-1);return r==null||!gk(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},vk=()=>({state:e,dispatch:t,tr:n})=>{try{let r=_x(e.doc,e.selection.$from.pos,1);return r==null||!gk(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},yk=()=>({state:e,dispatch:t})=>SS(e,t),bk=()=>({state:e,dispatch:t})=>CS(e,t);function xk(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function Sk(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))QO()||xk()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var Ck=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=Sk(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function wk(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?jO(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>VO(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var Tk=(e,t={})=>({state:n,dispatch:r})=>wk(n,jO(e,n.schema),t)?PS(n,r):!1,Ek=()=>({state:e,dispatch:t})=>zS(e,t),Dk=e=>({state:t,dispatch:n})=>aC(jO(e,t.schema))(t,n),Ok=()=>({state:e,dispatch:t})=>FS(e,t);function kk(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function Ak(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var jk=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=kk(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=jO(e,r.schema)),s===`mark`&&(o=GO(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,Ak(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(Ak(a.attrs,t))))})})}),c},Mk=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Nk=()=>({tr:e,dispatch:t})=>{if(t){let t=new Xx(e.doc);e.setSelection(t)}return!0},Pk=()=>({state:e,dispatch:t})=>ES(e,t),Fk=()=>({state:e,dispatch:t})=>AS(e,t),Ik=()=>({state:e,dispatch:t})=>HS(e,t),Lk=()=>({state:e,dispatch:t})=>JS(e,t),Rk=()=>({state:e,dispatch:t})=>qS(e,t);function zk(e,t,n={},r={}){return ok(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Bk=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=zk(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=sk(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function Vk(e,t){let n=GO(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function Hk(e,t){let n=new Bx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Uk(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Wk(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Gk(e){return t=>Wk(t.$from,e)}function Kk(e,t,n){return e.config[t]===void 0&&e.parent?Kk(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?Kk(e.parent,t,n):null}):e.config[t]}function qk(e){return e.map(e=>{let t=Kk(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...qk(t())]:e}).flat(10)}function Jk(e,t){let n=vb.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function Yk(e,t){let n=new Map;for(let t of e){let e=n.get(t.type)??new Map;e.set(t.name,t),n.set(t.type,e)}return[...Object.values(t.nodes),...Object.values(t.marks)].flatMap(e=>Object.entries(e.spec.attrs??{}).map(([t,r])=>{let i=n.get(e.name)?.get(t),a=Object.hasOwn(r,`default`);return{type:e.name,name:t,attribute:{rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,...i?.attribute,default:r.default,isRequired:!a,validate:r.validate}}}))}var Xk={content:`string`,marks:`string`,group:`string`,inline:`boolean`,atom:`boolean`,selectable:`boolean`,draggable:`boolean`,code:`boolean`,whitespace:[`pre`,`normal`],definingAsContext:`boolean`,definingForContent:`boolean`,defining:`boolean`,isolating:`boolean`,linebreakReplacement:`boolean`},Zk={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function Qk(e,t,n){return Object.fromEntries(Object.entries(t).flatMap(([t,r])=>{let i=e[t];if(i===void 0)return[];if(!(typeof r==`string`?typeof i===r:typeof i==`string`&&r.includes(i)))throw RangeError(`Invalid schemaSpec field '${n}.${t}'`);return[[t,i]]}))}function $k(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...Qk(n,r,e),attrs:n.attrs}}function eA(e,t,n){for(let r of Object.keys(t))if(!Object.hasOwn(e,r))throw RangeError(`schemaSpec requires a local ${n} extension named '${r}'`);for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw RangeError(`Local ${n} extension '${r}' is not in schemaSpec`)}function tA(e,t){eA(e.nodes,t.nodes,`node`),eA(e.marks,t.marks,`mark`);let n=t.spec.nodes,r=t.spec.marks;return t.spec.nodes.forEach((t,r)=>{n=n.update(t,$k(t,e.nodes[t],r,Xk))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,$k(t,e.marks[t],n,Zk))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function nA(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function rA(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function iA(e){let t=[],{nodeExtensions:n,markExtensions:r}=rA(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=Kk(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=Kk(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function aA(e){return typeof e==`function`}function oA(e,t=void 0,...n){return aA(e)?t?e.bind(t)(...n):e(...n):e}function sA(e={}){return Object.keys(e).length===0&&e.constructor===Object}function cA(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function lA(e){let t=[],n=cA(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function uA(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...lA(n[e]),...lA(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function dA(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>uA(e,t),{})}function fA(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function pA(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):fA(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function mA(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&sA(t)?!1:t!=null))}function hA(e){var t,n;let r={};return!(e!=null&&(t=e.attribute)!=null&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function gA(e,t,n=iA(e)){let{nodeExtensions:r,markExtensions:i}=rA(e);return{topNode:r.find(e=>Kk(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=mA({...e.reduce((e,t)=>{let n=Kk(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:oA(Kk(r,`content`,a)),marks:oA(Kk(r,`marks`,a)),group:oA(Kk(r,`group`,a)),inline:oA(Kk(r,`inline`,a)),atom:oA(Kk(r,`atom`,a)),selectable:oA(Kk(r,`selectable`,a)),draggable:oA(Kk(r,`draggable`,a)),code:oA(Kk(r,`code`,a)),whitespace:oA(Kk(r,`whitespace`,a)),linebreakReplacement:oA(Kk(r,`linebreakReplacement`,a)),defining:oA(Kk(r,`defining`,a)),isolating:oA(Kk(r,`isolating`,a)),attrs:Object.fromEntries(i.map(hA))}),s=oA(Kk(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>pA(e,i)));let c=Kk(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:dA(e,i)}));let l=Kk(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=mA({...e.reduce((e,t)=>{let n=Kk(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:oA(Kk(r,`inclusive`,a)),excludes:oA(Kk(r,`excludes`,a)),group:oA(Kk(r,`group`,a)),spanning:oA(Kk(r,`spanning`,a)),code:oA(Kk(r,`code`,a)),attrs:Object.fromEntries(i.map(hA))}),s=oA(Kk(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>pA(e,i)));let c=Kk(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:dA(e,i)})),[r.name,o]}))}}function _A(e,t,n){if(n===void 0)return new eb(gA(e,t));let r=nA(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new eb(n);return new eb(tA(gA(e,t,Yk(iA(e),i)),i))}function vA(e){return e.sort((e,t)=>{let n=Kk(e,`priority`)||100,r=Kk(t,`priority`)||100;return n>r?-1:+(n<r)})}function yA(e){let t=vA(qk(e)),n=nA(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function bA(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
+
+`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function xA(e,t){return bA(e,{from:0,to:e.content.size},t)}function SA(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function CA(e,t){let n=jO(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function wA(e,t){let n=kk(typeof t==`string`?t:t.name,e.schema);return n===`node`?CA(e,t):n===`mark`?Vk(e,t):{}}function TA(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function EA(e){let t=TA(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function DA(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),EA(r)}function OA(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=WO(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var kA=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},AA=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function jA(e,t){return t.nodes[e]||t.marks[e]||null}function MA(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var NA=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function PA(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?GO(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>VO(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>VO(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function FA(e,t,n={}){if(!t)return wk(e,null,n)||PA(e,null,n);let r=kk(t,e.schema);return r===`node`?wk(e,t,n):r===`mark`&&PA(e,t,n)}var IA=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=Gk(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},LA=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function RA(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function zA(e,t){let{nodeExtensions:n}=rA(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=oA(Kk(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function BA(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(BA(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function VA(e){return e instanceof Jx}function HA(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.apply==`function`&&typeof t.getMap==`function`&&typeof t.invert==`function`&&typeof t.map==`function`&&typeof t.merge==`function`&&typeof t.toJSON==`function`}function UA(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!HA(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var WA=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function GA(e,t){let n=t.mapping.mapResult(e.position);return{position:new WA(n.pos),mapResult:n}}function KA(e){return new WA(e)}function qA(e,t,n){let r=e.state.doc.content.size,i=YO(t,0,r),a=YO(n,0,r),o=e.coordsAtPos(i),s=e.coordsAtPos(a,-1),c=Math.min(o.top,s.top),l=Math.max(o.bottom,s.bottom),u=Math.min(o.left,s.left),d=Math.max(o.right,s.right),f={top:c,bottom:l,left:u,right:d,width:d-u,height:l-c,x:u,y:c};return{...f,toJSON:()=>f}}function JA(e,t,n){let{selection:r}=t,i=null;if(JO(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var YA=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=GO(e,r.schema);if(i){if(o){let e=Vk(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return JA(r,n,c)},XA=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),ZA=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=jO(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>XS(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>XS(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},QA=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=YO(e,0,n.content.size),i=Jx.create(n,r);t.setSelection(i)}return!0},$A=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},ej=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=Kx.atStart(n).from,o=Kx.atEnd(n).to,s=YO(r,a,o),c=YO(i,a,o),l=Kx.create(n,s,c);t.setSelection(l)}return!0},tj=e=>({state:t,dispatch:n})=>cC(jO(e,t.schema))(t,n);function nj(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var rj=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=MA(l,s.node().type.name,s.node().attrs);if(a instanceof Jx&&a.node.isBlock)return!s.parentOffset||!fx(o,s.pos)?!1:(r&&(e&&nj(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:uk(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof Kx&&!a.empty?cS.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=fx(h,g,1,p);if(!p&&!_&&fx(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof Kx&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&nj(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},ij=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=jO(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=Y.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Y.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...MA(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Y.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new X(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(Kx.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...MA(d,u.type.name,u.attrs),...t},m={...MA(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!fx(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function aj(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function oj(e,t){if(e.pendingContent.length===0)return!0;let n=aj(t,Y.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function sj(e,t,n){return n.validContent(Y.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!oj(t,n)||!n.validContent(Y.from(e))?!1:(t.pendingContent.push(e),!0)}function cj(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=aj(n.listType,Y.from(i),e.attrs);return a?n.itemType.validContent(Y.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):oj(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function lj(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?cj(a,r,t,n):sj(a,r,t.itemType)))return null}return oj(r,t.itemType)?r.items:null}function uj(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=lj(e.child(r),t,uj);if(!i)return null;n.push(...i)}return n}function dj(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function fj(e){return!e||e===`1`?null:e}function pj(e,t){return fj(e)===fj(t)}var mj=(e,t)=>{let n=Gk(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&mx(e.doc,n.pos))||!pj(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},hj=(e,t)=>{let n=Gk(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&mx(e.doc,r))||!pj(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function gj(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return Kx.between(r,i)}var _j=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=jO(e,o.schema),m=jO(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=Gk(e=>zA(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&zA(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=gj(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(zA(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>mj(a,p)).command(()=>hj(a,p)).run();if(zA(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=uj(E.node,{listType:p,itemType:m,isListNode:e=>zA(e.type.name,d)}),t=e?Y.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=dj(l,i),t=dj(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(Kx.create(a.doc,n,r))}}return!0}).command(()=>mj(a,p)).command(()=>hj(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>mj(a,p)).command(()=>hj(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>mj(a,p)).command(()=>hj(a,p)).run()},vj=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=GO(e,r.schema);return PA(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},yj=(e,t,n={})=>({state:r,commands:i})=>{let a=jO(e,r.schema),o=jO(t,r.schema),s=wk(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},bj=(e,t={})=>({state:n,commands:r})=>{let i=jO(e,n.schema);return wk(n,i,t)?r.lift(i):r.wrapIn(i,t)},xj=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},Sj=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},Cj=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=GO(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=WO(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},wj=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},Tj=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=kk(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=jO(e,r.schema)),s===`mark`&&(o=GO(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},Ej=new pS(`__tiptap_decorations__`),Dj=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(Ej,{type:`force`,name:e}),!0),Oj=(e,t={})=>({state:n,dispatch:r})=>YS(jO(e,n.schema),t)(n,r),kj=(e,t={})=>({state:n,dispatch:r})=>nC(jO(e,n.schema),t)(n,r),Aj=vS({blur:()=>wO,clearContent:()=>TO,clearNodes:()=>EO,command:()=>DO,createParagraphNear:()=>OO,cut:()=>kO,deleteCurrentNode:()=>AO,deleteNode:()=>MO,deleteRange:()=>NO,deleteSelection:()=>LO,enter:()=>RO,exitCode:()=>zO,extendMarkRange:()=>KO,first:()=>qO,focus:()=>ek,forEach:()=>tk,insertContent:()=>nk,insertContentAt:()=>lk,insertDefaultBlock:()=>dk,joinBackward:()=>mk,joinDown:()=>pk,joinForward:()=>hk,joinItemBackward:()=>_k,joinItemForward:()=>vk,joinTextblockBackward:()=>yk,joinTextblockForward:()=>bk,joinUp:()=>fk,keyboardShortcut:()=>Ck,lift:()=>Tk,liftEmptyBlock:()=>Ek,liftListItem:()=>Dk,newlineInCode:()=>Ok,resetAttributes:()=>jk,scrollIntoView:()=>Mk,selectAll:()=>Nk,selectNodeBackward:()=>Pk,selectNodeForward:()=>Fk,selectParentNode:()=>Ik,selectTextblockEnd:()=>Lk,selectTextblockStart:()=>Rk,setContent:()=>Bk,setMark:()=>YA,setMeta:()=>XA,setNode:()=>ZA,setNodeSelection:()=>QA,setTextDirection:()=>$A,setTextSelection:()=>ej,sinkListItem:()=>tj,splitBlock:()=>rj,splitListItem:()=>ij,toggleList:()=>_j,toggleMark:()=>vj,toggleNode:()=>yj,toggleWrap:()=>bj,undoInputRule:()=>xj,unsetAllMarks:()=>Sj,unsetMark:()=>Cj,unsetTextDirection:()=>wj,updateAttributes:()=>Tj,updateDecorations:()=>Dj,wrapIn:()=>Oj,wrapInList:()=>kj}),jj=new WeakMap;function Mj(e,t){jj.set(e,(jj.get(e)??0)+1);try{return t()}finally{let t=(jj.get(e)??1)-1;t>0?jj.set(e,t):jj.delete(e)}}function Nj(e){return jj.has(e)}var Pj=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},Fj=typeof process<`u`&&!1;function Ij(e){return e.kind===`widget`}function Lj(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&Ij(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function Rj(e,t,n){let{decorations:r,widgetKeys:i}=Lj(t,n);return{set:JE.create(e,r),widgetKeys:i}}function zj({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function Bj({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>zj({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function Vj(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function Hj(e){let t=new Map,n=new Map;for(let r of e.find()){let e=Vj(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function Uj(e){return e.jsonID===`attr`}function Wj(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||Uj(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function Gj(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function Kj(e,t){if(e.steps.some(e=>!Wj(e)))return{type:`full`};let n=DA(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!Uj(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=Gj(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function qj(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function Jj(e,t,n){let r=t.decorationSetsByExtension[e]??JE.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:qj(r,n.mapping,n.doc,i),widgetKeys:i}}function Yj(e,t){let n=Object.values(t).flatMap(e=>e.find());return JE.create(e,n)}function Xj(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function Zj(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function Qj(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var $j=new Set,eM=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=Ej.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>Zj(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return Ej.getState(this.editor.state)?.widgetKeys??$j}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new uS({key:Ej,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:Xj(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(Ej),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return Mj(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!Qj(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=Jj(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:Xj(u)}}},props:{decorations(e){return Ej.getState(e)?.mergedDecorationSet??JE.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=Kj(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??JE.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=qj(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>zj({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=Vj(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=Lj(Bj({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return Rj(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!Fj)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=Hj(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:Yj(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):Yj(n.doc,r)}};function tM(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof Jx){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function nM(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function rM(e){return typeof e==`number`}function iM(e){return Object.prototype.toString.call(e).slice(8,-1)}function aM(e){return iM(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function oM(e,t,n){let r=e.split(`
`),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],u=e.match(t.itemPattern);if(!u){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}\n`;continue}return}let d=t.extractItemData(u),{indentLevel:f,mainContent:p}=d;a=`${a}${e}\n`;let m=[p];for(o+=1;o<r.length;){var c;let e=r[o];if(e.trim()===``){var l;let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((((l=r[o+1+t].match(/^(\s*)/))==null||(l=l[1])==null?void 0:l.length)||0)>f){m.push(e),a=`${a}${e}\n`,o+=1;continue}break}if((((c=e.match(/^(\s*)/))==null||(c=c[1])==null?void 0:c.length)||0)>f)m.push(e),a=`${a}${e}\n`,o+=1;else break}let h,g=m.slice(1);if(g.length>0){let e=g.map(e=>e.slice(f+s)).join(`
-`);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var aM=4;function oM(e){let t=0;for(let n of e)t=n===` `?t+aM-t%aM:t+1;return t}function sM(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=oM(a);return(oM(n)>=r?n:` `.repeat(r))+e},o=r.split(`
+`);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var sM=4;function cM(e){let t=0;for(let n of e)t=n===` `?t+sM-t%sM:t+1;return t}function lM(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=cM(a);return(cM(n)>=r?n:` `.repeat(r))+e},o=r.split(`
`).map(e=>n(e||``)).join(`
-`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function cM(e,t){let n={...e};return rM(e)&&rM(t)&&Object.keys(t).forEach(r=>{rM(t[r])&&rM(e[r])?n[r]=cM(e[r],t[r]):n[r]=t[r]}),n}function lM(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var uM=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},dM=(e,t)=>{if(zO(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function fM(e){let{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};let o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:sS.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function pM(e){let{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:c}=e,{view:l}=t,{inputTransaction:u,tr:d}=fM({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=xO({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new SO({editor:t,state:p});return a.handler({state:p,range:m,match:o,commands:h,chain:g,can:_})===null||!d.steps.length?!1:(u&&(l.dispatch(u),!l.state.doc.eq(u.doc))||(pO(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function mM(e,t,n){let r=t[0].length-n.length;if(r<=0)return!0;let i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function hM(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o,insertText:s}=e,{view:c}=t;if(c.composing)return!1;let l=c.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let u=jA(l)+i;for(let e of a){let a=dM(u,e.find);if(a&&mM(l,a,i)&&pM({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function gM(e){let{editor:t,rules:n}=e,r=new lS({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:Kk(J.from(e),a.schema);let{from:i}=s,o=i+e.length;hM({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return hM({editor:t,from:i,to:a,text:o,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&hM({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?hM({editor:t,from:a.pos,to:a.pos,text:`
-`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var _M=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...iA(X(this,`addOptions`,{name:this.name}))}}get storage(){return{...iA(X(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>cM(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},vM=class e extends _M{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},yM=class{constructor(e){this.find=e.find,this.handler=e.handler}},bM=(e,t,n)=>{if(zO(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function xM(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new SO({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if((f=e.type)!=null&&(f=f.spec)!=null&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||bM(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var SM=null,CM=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function wM(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr,l=xO({state:e,transaction:c});if(xM({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})&&c.steps.length){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return t.on(`destroy`,()=>{SM===t&&(SM=null)}),n.map(e=>new lS({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(SM=t)},i=()=>{SM&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=SM;e?.isEditable&&setTimeout(()=>{if(e.isDestroyed)return;let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:Kk(J.from(t),r.schema);let{from:n}=d,i=n+t.length,a=CM(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(tM(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var TM=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=_A(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=hA(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=X(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:kA(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=gA([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:kA(t.name,this.schema)},r=[],i=X(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&X(t,`exitable`,n)&&(a.ArrowRight=()=>vM.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=qD(a);r.push(o);let s=X(t,`addInputRules`,n);if(IA(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=gM({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=X(t,`addPasteRules`,n);if(IA(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=wM({editor:e,rules:t});r.push(...n)}}let l=X(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=X(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:kA(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new Qj({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=nA(this.extensions);return this.hasSchemaSpec?qk(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=tA(this.extensions);return Object.fromEntries(t.filter(e=>!!X(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=X(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:AO(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=lA(r,n);return i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return gA([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:kA(n.name,this.schema)},i=X(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return gA([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:kA(n.name,this.schema)},i=X(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=tA(this.extensions);return Object.fromEntries(t.filter(e=>!!X(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=X(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:WO(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=lA(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{lM(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:kA(e.name,this.schema)};e.type===`mark`&&((iA(X(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(iA(X(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=X(e,`onBeforeCreate`,t),r=X(e,`onCreate`,t),i=X(e,`onUpdate`,t),a=X(e,`onSelectionUpdate`,t),o=X(e,`onTransaction`,t),s=X(e,`onFocus`,t),c=X(e,`onBlur`,t),l=X(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};TM.resolve=_A,TM.sort=gA,TM.flatten=Gk;var EM=class e extends _M{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},DM=EM.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new lS({key:new fS(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=bA(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>vA(r,{from:e.pos,to:t.pos},s)).join(o??`
+`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function uM(e,t){let n={...e};return aM(e)&&aM(t)&&Object.keys(t).forEach(r=>{aM(t[r])&&aM(e[r])?n[r]=uM(e[r],t[r]):n[r]=t[r]}),n}function dM(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var fM=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},pM=(e,t)=>{if(BO(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function mM(e){let{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};let o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:cS.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function hM(e){let{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:c}=e,{view:l}=t,{inputTransaction:u,tr:d}=mM({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=SO({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new CO({editor:t,state:p});return a.handler({state:p,range:m,match:o,commands:h,chain:g,can:_})===null||!d.steps.length?!1:(u&&(l.dispatch(u),!l.state.doc.eq(u.doc))||(mO(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function gM(e,t,n){let r=t[0].length-n.length;if(r<=0)return!0;let i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function _M(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o,insertText:s}=e,{view:c}=t;if(c.composing)return!1;let l=c.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let u=NA(l)+i;for(let e of a){let a=pM(u,e.find);if(a&&gM(l,a,i)&&hM({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function vM(e){let{editor:t,rules:n}=e,r=new uS({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:Jk(Y.from(e),a.schema);let{from:i}=s,o=i+e.length;_M({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return _M({editor:t,from:i,to:a,text:o,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&_M({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?_M({editor:t,from:a.pos,to:a.pos,text:`
+`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var yM=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...oA(Kk(this,`addOptions`,{name:this.name}))}}get storage(){return{...oA(Kk(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>uM(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},bM=class e extends yM{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},xM=class{constructor(e){this.find=e.find,this.handler=e.handler}},SM=(e,t,n)=>{if(BO(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function CM(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new CO({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if((f=e.type)!=null&&(f=f.spec)!=null&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||SM(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var wM=null,TM=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function EM(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr,l=SO({state:e,transaction:c});if(CM({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})&&c.steps.length){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return t.on(`destroy`,()=>{wM===t&&(wM=null)}),n.map(e=>new uS({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(wM=t)},i=()=>{wM&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=wM;e?.isEditable&&setTimeout(()=>{if(e.isDestroyed)return;let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:Jk(Y.from(t),r.schema);let{from:n}=d,i=n+t.length,a=TM(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(rM(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var DM=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=yA(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=_A(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=Kk(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:jA(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=vA([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:jA(t.name,this.schema)},r=[],i=Kk(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&Kk(t,`exitable`,n)&&(a.ArrowRight=()=>bM.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=JD(a);r.push(o);let s=Kk(t,`addInputRules`,n);if(RA(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=vM({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=Kk(t,`addPasteRules`,n);if(RA(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=EM({editor:e,rules:t});r.push(...n)}}let l=Kk(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=Kk(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:jA(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new eM({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=iA(this.extensions);return this.hasSchemaSpec?Yk(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=rA(this.extensions);return Object.fromEntries(t.filter(e=>!!Kk(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Kk(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:jO(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=dA(r,n);return i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return vA([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:jA(n.name,this.schema)},i=Kk(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return vA([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:jA(n.name,this.schema)},i=Kk(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=rA(this.extensions);return Object.fromEntries(t.filter(e=>!!Kk(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Kk(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:GO(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=dA(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{dM(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:jA(e.name,this.schema)};e.type===`mark`&&((oA(Kk(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(oA(Kk(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=Kk(e,`onBeforeCreate`,t),r=Kk(e,`onCreate`,t),i=Kk(e,`onUpdate`,t),a=Kk(e,`onSelectionUpdate`,t),o=Kk(e,`onTransaction`,t),s=Kk(e,`onFocus`,t),c=Kk(e,`onBlur`,t),l=Kk(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};DM.resolve=yA,DM.sort=vA,DM.flatten=qk;var OM=class e extends yM{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},kM=OM.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new uS({key:new pS(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=SA(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>bA(r,{from:e.pos,to:t.pos},s)).join(o??`
-`)}}})]}}),OM=EM.create({name:`commands`,addCommands(){return{...Oj}}}),kM=EM.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=Vk(e.before,[e,...t]);TA(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof Vb){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),AM=EM.create({name:`drop`,addProseMirrorPlugins(){return[new lS({key:new fS(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),jM=EM.create({name:`editable`,addProseMirrorPlugins(){return[new lS({key:new fS(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),MM=new fS(`focusEvents`),NM=EM.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new lS({key:MM,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),PM=EM.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:Vx.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ZO()||bk()?i:r},addProseMirrorPlugins(){return[new lS({key:new fS(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=Vx.atStart(t.doc).from,l=Vx.atEnd(t.doc).to;if(a||o!==c||s!==l||!RA(n.doc))return;let u=n.tr,d=xO({state:n,transaction:u}),{commands:f}=new SO({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),FM=EM.create({name:`paste`,addProseMirrorPlugins(){return[new lS({key:new fS(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),IM=EM.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new lS({key:new fS(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),LM=EM.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=tA(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new lS({key:new fS(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),RM=!1;function zM(e){if(RM)return;RM=!0;let t;try{let n=Kb.fromJSON(e,{from:0,to:0});if(!VA(n))return;t=n.slice.content}catch{return}t instanceof J||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var BM=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e){if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r}r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),n&&r.length>0||(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},VM=`.ProseMirror {
+`)}}})]}}),AM=OM.create({name:`commands`,addCommands(){return{...Aj}}}),jM=OM.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=Hk(e.before,[e,...t]);DA(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof Hb){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),MM=OM.create({name:`drop`,addProseMirrorPlugins(){return[new uS({key:new pS(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),NM=OM.create({name:`editable`,addProseMirrorPlugins(){return[new uS({key:new pS(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),PM=new pS(`focusEvents`),FM=OM.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new uS({key:PM,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),IM=OM.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:Hx.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return QO()||xk()?i:r},addProseMirrorPlugins(){return[new uS({key:new pS(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=Hx.atStart(t.doc).from,l=Hx.atEnd(t.doc).to;if(a||o!==c||s!==l||!BA(n.doc))return;let u=n.tr,d=SO({state:n,transaction:u}),{commands:f}=new CO({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),LM=OM.create({name:`paste`,addProseMirrorPlugins(){return[new uS({key:new pS(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),RM=OM.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new uS({key:new pS(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),zM=OM.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=rA(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new uS({key:new pS(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),BM=!1;function VM(e){if(BM)return;BM=!0;let t;try{let n=qb.fromJSON(e,{from:0,to:0});if(!UA(n))return;t=n.slice.content}catch{return}t instanceof Y||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var HM=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e){if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r}r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),n&&r.length>0||(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},UM=`.ProseMirror {
position: relative;
}
@@ -114,65 +114,65 @@ img.ProseMirror-separator {
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
-}`,HM=class extends Mj{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:UA,createMappablePosition:WA},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=YO(t,this.options.autofocus);this.editorState=sS.create({doc:t,schema:this.schema,selection:e||void 0})}zM(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():SO.createFakeChain()}can(){return this.commandManager?this.commandManager.can():SO.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=eM(VM,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return Nj&&!this.hasWarnedStaleDecorationRead&&jj(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=rA(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[jM,DM.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),OM,NM,PM,IM.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),AM,FM,kM,LM.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions!=`object`||this.options.enableCoreExtensions[e.name]!==!1):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new TM(n,this)}createCommandManager(){this.commandManager=new SO({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Rk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=Rk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=sS.create({doc:t,schema:this.schema,selection:YO(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}getEditorViewAttributes(){let e=this.options.editorProps?.attributes;return rA(e)?t=>({role:`textbox`,...e(t)}):{role:`textbox`,...e}}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new DD(e,{...t,attributes:this.getEditorViewAttributes(),dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc)||this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return SA(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return NA(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Kk(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
+}`,WM=class extends Pj{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:GA,createMappablePosition:KA},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=XO(t,this.options.autofocus);this.editorState=cS.create({doc:t,schema:this.schema,selection:e||void 0})}VM(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():CO.createFakeChain()}can(){return this.commandManager?this.commandManager.can():CO.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=nM(UM,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return Fj&&!this.hasWarnedStaleDecorationRead&&Nj(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=aA(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[NM,kM.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),AM,FM,IM,RM.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),MM,LM,jM,zM.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions!=`object`||this.options.enableCoreExtensions[e.name]!==!1):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new DM(n,this)}createCommandManager(){this.commandManager=new CO({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=zk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=zk(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=cS.create({doc:t,schema:this.schema,selection:XO(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}getEditorViewAttributes(){let e=this.options.editorProps?.attributes;return aA(e)?t=>({role:`textbox`,...e(t)}):{role:`textbox`,...e}}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new OD(e,{...t,attributes:this.getEditorViewAttributes(),dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc)||this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return wA(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return FA(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Jk(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
-`,textSerializers:n={}}=e||{};return yA(this.state.doc,{blockSeparator:t,textSerializers:{...bA(this.schema),...n}})}get isEmpty(){return RA(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new BM(t,this,!1,n)}get $doc(){return this.$pos(0)}};function UM(e){return new uM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=iA(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(EA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function WM(e){return new uM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=iA(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function GM(e){return new uM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=iA(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function KM(e){return new uM({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=iA(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&tx(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&px(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var qM=class e extends _M{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function JM(e){return new yM({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=iA(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(EA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var{getOwnPropertyNames:YM,getOwnPropertySymbols:XM}=Object,{hasOwnProperty:ZM}=Object.prototype;function QM(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function $M(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function eN(e){return e?.[Symbol.toStringTag]}function tN(e){return YM(e).concat(XM(e))}var nN=Object.hasOwn||((e,t)=>ZM.call(e,t));function rN(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var iN=`__v`,aN=`__o`,oN=`_owner`,sN=64,{getOwnPropertyDescriptor:cN,keys:lN}=Object,{propertyIsEnumerable:uN}=Object.prototype,dN=cN(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function fN(e,t){return e.byteLength===t.byteLength&&EN(new Uint8Array(e),new Uint8Array(t))}function pN(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function mN(e,t){return e.byteLength===t.byteLength&&EN(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function hN(e,t){return rN(e.getTime(),t.getTime())}function gN(e,t,n){if(e.name!==t.name||e.message!==t.message||e.stack!==t.stack)return!1;let r=e.cause,i=t.cause;if(r!==i&&!n.equals(r,i,`cause`,`cause`,e,t,n))return!1;let a=e.errors,o=t.errors;if(a!==o&&!n.equals(a,o,`errors`,`errors`,e,t,n))return!1;let s=lN(e),c=lN(t),l=s.length;if(!l&&!c.length)return!0;let u=0,d;for(;l-->0;)if(d=s[l],d!==`cause`&&d!==`errors`){if(d!==c[l]&&!uN.call(t,d)||!n.equals(e[d],t[d],d,d,e,t,n))return!1;++u}let f=c.length-u;return!f||f===+!!uN.call(t,`cause`)+ +!!uN.call(t,`errors`)}function _N(e,t){return e===t}function vN(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&SN(e,t,n)}function yN(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var bN=rN;function xN(e,t,n){let r=lN(e),i=lN(t),a=r.length;if(i.length!==a)return!1;let o=a<=sN,s;for(;a-->0;)if(s=r[a],!AN(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):uN.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function SN(e,t,n){let r=tN(e),i=r.length;if(tN(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!AN(e,t,a)&&(!nN(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=cN(e,a),s=cN(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function CN(e,t){return rN(e.valueOf(),t.valueOf())}function wN(e,t){return e.source===t.source&&e.flags===t.flags}function TN(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function EN(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=dN.call(e);if(r===`Float64Array`||r===`Float32Array`||r===`Float16Array`){for(;n-->0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function DN(e,t){return e.href===t.href||e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&ON(e.searchParams,t.searchParams)}function ON(e,t){let n=e.toString(),r=t.toString();return n===r||kN(n)===kN(r)}function kN(e){return e.split(`&`).sort().join(`&`)}function AN(e,t,n){return(n===oN||n===aN||n===iN)&&!!(e.$$typeof||t.$$typeof)}var jN=`[object ArrayBuffer]`,MN=`[object Arguments]`,NN=`[object Boolean]`,PN=`[object DataView]`,FN=`[object Date]`,IN=`[object Error]`,LN=`[object Map]`,RN=`[object Number]`,zN=`[object Object]`,BN=`[object RegExp]`,VN=`[object Set]`,HN=`[object String]`,UN={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},WN=`[object URL]`,GN=Object.prototype.toString;function KN({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`&&a(h,g,_);let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);if(y==null)return c(h,g,_);let b=GN.call(h);if(b===FN)return r(h,g,_);if(b===BN)return u(h,g,_);if(b===LN)return o(h,g,_);if(b===VN)return d(h,g,_);if(b===zN)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===WN)return p(h,g,_);if(b===IN)return i(h,g,_);if(b===MN)return c(h,g,_);if(UN[b])return f(h,g,_);if(b===jN)return e(h,g,_);if(b===PN)return n(h,g,_);if(b===NN||b===RN||b===HN)return l(h,g,_);if(m){let e=m[b];if(!e){let t=eN(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function qN({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:fN,areArraysEqual:n?SN:pN,areDataViewsEqual:mN,areDatesEqual:hN,areErrorsEqual:n?vN:gN,areFunctionsEqual:_N,areMapsEqual:n?QM(yN,SN):yN,areNumbersEqual:bN,areObjectsEqual:n?SN:xN,arePrimitiveWrappersEqual:CN,areRegExpsEqual:wN,areSetsEqual:n?QM(TN,SN):TN,areTypedArraysEqual:n?QM(EN,SN):EN,areUrlsEqual:DN,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=$M(r.areArraysEqual),t=$M(r.areErrorsEqual),n=$M(r.areMapsEqual),i=$M(r.areObjectsEqual),a=$M(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function JN(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function YN({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}ZN(),ZN({strict:!0});var XN=ZN({circular:!0});ZN({circular:!0,strict:!0}),ZN({createInternalComparator:()=>rN}),ZN({strict:!0,createInternalComparator:()=>rN}),ZN({circular:!0,createInternalComparator:()=>rN}),ZN({circular:!0,createInternalComparator:()=>rN,strict:!0});function ZN(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=KN(qN(e));return YN({circular:t,comparator:a,createState:r,equals:n?n(a):JN(a),strict:i})}var QN=o((e=>{var t=we(),n=mS();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),$N=o(((e,t)=>{t.exports=QN()}))();function eP(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!ZO()&&!XO())return;let n=e.view,r=n.root,i=(r.getSelection?.call(r)??n.dom.ownerDocument.getSelection())?.anchorNode,a=(i?.nodeType===1?i:i?.parentElement)?.closest(`[data-node-view-content-react]`);if(!a||!n.dom.contains(a))return;let o=n.input.lastKeyCode;o===13&&(n.input.lastKeyCode=null),n.domObserver.forceFlush(),n.domObserver.flush();let s=new KeyboardEvent(`keydown`,{key:`Enter`,code:`Enter`,keyCode:13,shiftKey:t.inputType===`insertLineBreak`,bubbles:!0,cancelable:!0});n.someProp(`handleKeyDown`,e=>e(n,s))?(t.preventDefault(),n.input.lastIOSEnter=0,clearTimeout(n.input.lastIOSEnterFallbackTimeout)):o===13&&(n.input.lastKeyCode=o)}var tP=new fS(`reactMobileEnter`),nP=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},rP=({contentComponent:e})=>{let t=(0,hS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,K.jsx)(K.Fragment,{children:Object.values(t)})};function iP(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(e,n){t={...t,[e]:De.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var aP=class extends U.Component{constructor(e){super(e),this.editorContentRef=U.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=iP(),e.createNodeViews(),e.registerPlugin(new lS({key:tP,props:{handleDOMEvents:{beforeinput:(t,n)=>eP(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(tP),e.view.setProps({nodeViews:{}})),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{ref:nP(t,this.editorContentRef),...n}),e?.contentComponent&&(0,K.jsx)(rP,{contentComponent:e.contentComponent})]})}},oP=(0,U.forwardRef)((e,t)=>{let n=U.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return U.createElement(aP,{key:n,innerRef:t,...e})}),sP=U.memo(oP),cP=typeof window<`u`?U.useLayoutEffect:U.useEffect,lP=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e,t=t=>{(t?.transaction===void 0||t.transaction!==e)&&(e=t?.transaction,this.transactionNumber+=1,this.subscribers.forEach(e=>e()))},n=this.editor;return n.on(`transaction`,t),n.on(`update`,t),()=>{n.off(`transaction`,t),n.off(`update`,t)}}}};function uP(e){let[t]=(0,U.useState)(()=>new lP(e.editor)),n=(0,$N.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??XN);return cP(()=>t.watch(e.editor),[e.editor,t]),(0,U.useDebugValue)(n),n}var dP=typeof window>`u`,fP=dP||!!(typeof window<`u`&&window.next),pP=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=e??!0;return(dP||fP&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new HM({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)},onDelete:(...e)=>{var t;return(t=this.options.current).onDelete?.call(t,...e)},onMount:(...e)=>{var t;return(t=this.options.current).onMount?.call(t,...e)},onUnmount:(...e)=>{var t;return(t=this.options.current).onUnmount?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>e===t.extensions?.[n]):e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function mP(e={},t=[]){let n=(0,U.useRef)(e);n.current=e;let[r]=(0,U.useState)(()=>new pP(n)),i=(0,hS.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,U.useDebugValue)(i),(0,U.useEffect)(r.onRender(t)),uP({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var hP=(0,U.createContext)({editor:null});hP.Consumer;var gP=()=>(0,U.useContext)(hP),_P=(0,U.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),vP=()=>(0,U.useContext)(_P);U.forwardRef((e,t)=>{let{onDragStart:n}=vP(),r=e.as||`div`;return(0,K.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),U.createContext({markViewContentRef:()=>{}});var yP=(0,U.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});yP.displayName=`TiptapContext`;var bP=()=>(0,U.useContext)(yP);function xP({children:e,...t}){let n=`editor`in t?t.editor:t.instance;if(!n)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let r=(0,U.useMemo)(()=>({editor:n}),[n]),i=(0,U.useMemo)(()=>({editor:n}),[n]);return(0,K.jsx)(hP.Provider,{value:i,children:(0,K.jsx)(yP.Provider,{value:r,children:e})})}xP.displayName=`Tiptap`;function SP({...e}){let{editor:t}=bP();return(0,K.jsx)(sP,{editor:t,...e})}SP.displayName=`Tiptap.Content`,Object.assign(xP,{Content:SP});var CP=new WeakSet,wP=new WeakSet;function TP(e){let t=e;return CP.add(t),t}function EP(e){return Array.isArray(e)&&CP.has(e)}function DP(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&wP.has(e)&&!EP(e)?DP(e):[e])}function OP(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!EP(n)&&!wP.has(n)?TP(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(EP(n))return TP([e,r,n]);if(n.length===0)return TP([e,r]);let t=DP(n);return t.length===0?TP([e,r]):TP([e,r,...t])}return TP(n==null?[e,r]:[e,r,n])}var kP=(e,t)=>OP(e,t),AP=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new Y(n,0,0);return e.replace(l,i.after(),r),e.setSelection(Gx.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},jP=/^\s*>\s$/,MP=qM.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return kP(`blockquote`,{...cA(this.options.HTMLAttributes,e),children:kP(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
+`,textSerializers:n={}}=e||{};return xA(this.state.doc,{blockSeparator:t,textSerializers:{...SA(this.schema),...n}})}get isEmpty(){return BA(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new HM(t,this,!1,n)}get $doc(){return this.$pos(0)}};function GM(e){return new fM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=oA(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(OA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function KM(e){return new fM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=oA(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function qM(e){return new fM({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=oA(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function JM(e){return new fM({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=oA(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&nx(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&mx(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var YM=class e extends yM{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function XM(e){return new xM({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=oA(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(OA(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var{getOwnPropertyNames:ZM,getOwnPropertySymbols:QM}=Object,{hasOwnProperty:$M}=Object.prototype;function eN(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function tN(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function nN(e){return e?.[Symbol.toStringTag]}function rN(e){return ZM(e).concat(QM(e))}var iN=Object.hasOwn||((e,t)=>$M.call(e,t));function aN(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var oN=`__v`,sN=`__o`,cN=`_owner`,lN=64,{getOwnPropertyDescriptor:uN,keys:dN}=Object,{propertyIsEnumerable:fN}=Object.prototype,pN=uN(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function mN(e,t){return e.byteLength===t.byteLength&&ON(new Uint8Array(e),new Uint8Array(t))}function hN(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function gN(e,t){return e.byteLength===t.byteLength&&ON(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function _N(e,t){return aN(e.getTime(),t.getTime())}function vN(e,t,n){if(e.name!==t.name||e.message!==t.message||e.stack!==t.stack)return!1;let r=e.cause,i=t.cause;if(r!==i&&!n.equals(r,i,`cause`,`cause`,e,t,n))return!1;let a=e.errors,o=t.errors;if(a!==o&&!n.equals(a,o,`errors`,`errors`,e,t,n))return!1;let s=dN(e),c=dN(t),l=s.length;if(!l&&!c.length)return!0;let u=0,d;for(;l-->0;)if(d=s[l],d!==`cause`&&d!==`errors`){if(d!==c[l]&&!fN.call(t,d)||!n.equals(e[d],t[d],d,d,e,t,n))return!1;++u}let f=c.length-u;return!f||f===+!!fN.call(t,`cause`)+ +!!fN.call(t,`errors`)}function yN(e,t){return e===t}function bN(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&wN(e,t,n)}function xN(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var SN=aN;function CN(e,t,n){let r=dN(e),i=dN(t),a=r.length;if(i.length!==a)return!1;let o=a<=lN,s;for(;a-->0;)if(s=r[a],!MN(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):fN.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function wN(e,t,n){let r=rN(e),i=r.length;if(rN(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!MN(e,t,a)&&(!iN(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=uN(e,a),s=uN(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function TN(e,t){return aN(e.valueOf(),t.valueOf())}function EN(e,t){return e.source===t.source&&e.flags===t.flags}function DN(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function ON(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=pN.call(e);if(r===`Float64Array`||r===`Float32Array`||r===`Float16Array`){for(;n-->0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function kN(e,t){return e.href===t.href||e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&AN(e.searchParams,t.searchParams)}function AN(e,t){let n=e.toString(),r=t.toString();return n===r||jN(n)===jN(r)}function jN(e){return e.split(`&`).sort().join(`&`)}function MN(e,t,n){return(n===cN||n===sN||n===oN)&&!!(e.$$typeof||t.$$typeof)}var NN=`[object ArrayBuffer]`,PN=`[object Arguments]`,FN=`[object Boolean]`,IN=`[object DataView]`,LN=`[object Date]`,RN=`[object Error]`,zN=`[object Map]`,BN=`[object Number]`,VN=`[object Object]`,HN=`[object RegExp]`,UN=`[object Set]`,WN=`[object String]`,GN={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},KN=`[object URL]`,qN=Object.prototype.toString;function JN({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`&&a(h,g,_);let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);if(y==null)return c(h,g,_);let b=qN.call(h);if(b===LN)return r(h,g,_);if(b===HN)return u(h,g,_);if(b===zN)return o(h,g,_);if(b===UN)return d(h,g,_);if(b===VN)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===KN)return p(h,g,_);if(b===RN)return i(h,g,_);if(b===PN)return c(h,g,_);if(GN[b])return f(h,g,_);if(b===NN)return e(h,g,_);if(b===IN)return n(h,g,_);if(b===FN||b===BN||b===WN)return l(h,g,_);if(m){let e=m[b];if(!e){let t=nN(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function YN({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:mN,areArraysEqual:n?wN:hN,areDataViewsEqual:gN,areDatesEqual:_N,areErrorsEqual:n?bN:vN,areFunctionsEqual:yN,areMapsEqual:n?eN(xN,wN):xN,areNumbersEqual:SN,areObjectsEqual:n?wN:CN,arePrimitiveWrappersEqual:TN,areRegExpsEqual:EN,areSetsEqual:n?eN(DN,wN):DN,areTypedArraysEqual:n?eN(ON,wN):ON,areUrlsEqual:kN,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=tN(r.areArraysEqual),t=tN(r.areErrorsEqual),n=tN(r.areMapsEqual),i=tN(r.areObjectsEqual),a=tN(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function XN(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function ZN({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}$N(),$N({strict:!0});var QN=$N({circular:!0});$N({circular:!0,strict:!0}),$N({createInternalComparator:()=>aN}),$N({strict:!0,createInternalComparator:()=>aN}),$N({circular:!0,createInternalComparator:()=>aN}),$N({circular:!0,createInternalComparator:()=>aN,strict:!0});function $N(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=JN(YN(e));return ZN({circular:t,comparator:a,createState:r,equals:n?n(a):XN(a),strict:i})}var eP=o((e=>{var t=Ce(),n=hS();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),tP=o(((e,t)=>{t.exports=eP()}))();function nP(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!QO()&&!ZO())return;let n=e.view,r=n.root,i=(r.getSelection?.call(r)??n.dom.ownerDocument.getSelection())?.anchorNode,a=(i?.nodeType===1?i:i?.parentElement)?.closest(`[data-node-view-content-react]`);if(!a||!n.dom.contains(a))return;let o=n.input.lastKeyCode;o===13&&(n.input.lastKeyCode=null),n.domObserver.forceFlush(),n.domObserver.flush();let s=new KeyboardEvent(`keydown`,{key:`Enter`,code:`Enter`,keyCode:13,shiftKey:t.inputType===`insertLineBreak`,bubbles:!0,cancelable:!0});n.someProp(`handleKeyDown`,e=>e(n,s))?(t.preventDefault(),n.input.lastIOSEnter=0,clearTimeout(n.input.lastIOSEnterFallbackTimeout)):o===13&&(n.input.lastKeyCode=o)}var rP=new pS(`reactMobileEnter`),iP=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},aP=({contentComponent:e})=>{let t=(0,gS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,q.jsx)(q.Fragment,{children:Object.values(t)})};function oP(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(e,n){t={...t,[e]:Ee.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var sP=class extends W.Component{constructor(e){super(e),this.editorContentRef=W.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=oP(),e.createNodeViews(),e.registerPlugin(new uS({key:rP,props:{handleDOMEvents:{beforeinput:(t,n)=>nP(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(rP),e.view.setProps({nodeViews:{}})),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{ref:iP(t,this.editorContentRef),...n}),e?.contentComponent&&(0,q.jsx)(aP,{contentComponent:e.contentComponent})]})}},cP=(0,W.forwardRef)((e,t)=>{let n=W.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return W.createElement(sP,{key:n,innerRef:t,...e})}),lP=W.memo(cP),uP=typeof window<`u`?W.useLayoutEffect:W.useEffect,dP=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e,t=t=>{(t?.transaction===void 0||t.transaction!==e)&&(e=t?.transaction,this.transactionNumber+=1,this.subscribers.forEach(e=>e()))},n=this.editor;return n.on(`transaction`,t),n.on(`update`,t),()=>{n.off(`transaction`,t),n.off(`update`,t)}}}};function fP(e){let[t]=(0,W.useState)(()=>new dP(e.editor)),n=(0,tP.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??QN);return uP(()=>t.watch(e.editor),[e.editor,t]),(0,W.useDebugValue)(n),n}var pP=typeof window>`u`,mP=pP||!!(typeof window<`u`&&window.next),hP=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=e??!0;return(pP||mP&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new WM({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)},onDelete:(...e)=>{var t;return(t=this.options.current).onDelete?.call(t,...e)},onMount:(...e)=>{var t;return(t=this.options.current).onMount?.call(t,...e)},onUnmount:(...e)=>{var t;return(t=this.options.current).onUnmount?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>e===t.extensions?.[n]):e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function gP(e={},t=[]){let n=(0,W.useRef)(e);n.current=e;let[r]=(0,W.useState)(()=>new hP(n)),i=(0,gS.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,W.useDebugValue)(i),(0,W.useEffect)(r.onRender(t)),fP({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var _P=(0,W.createContext)({editor:null});_P.Consumer;var vP=()=>(0,W.useContext)(_P),yP=(0,W.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),bP=()=>(0,W.useContext)(yP);W.forwardRef((e,t)=>{let{onDragStart:n}=bP(),r=e.as||`div`;return(0,q.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),W.createContext({markViewContentRef:()=>{}});var xP=(0,W.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});xP.displayName=`TiptapContext`;var SP=()=>(0,W.useContext)(xP);function CP({children:e,...t}){let n=`editor`in t?t.editor:t.instance;if(!n)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let r=(0,W.useMemo)(()=>({editor:n}),[n]),i=(0,W.useMemo)(()=>({editor:n}),[n]);return(0,q.jsx)(_P.Provider,{value:i,children:(0,q.jsx)(xP.Provider,{value:r,children:e})})}CP.displayName=`Tiptap`;function wP({...e}){let{editor:t}=SP();return(0,q.jsx)(lP,{editor:t,...e})}wP.displayName=`Tiptap.Content`,Object.assign(CP,{Content:wP});var TP=new WeakSet,EP=new WeakSet;function DP(e){let t=e;return TP.add(t),t}function OP(e){return Array.isArray(e)&&TP.has(e)}function kP(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&EP.has(e)&&!OP(e)?kP(e):[e])}function AP(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!OP(n)&&!EP.has(n)?DP(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(OP(n))return DP([e,r,n]);if(n.length===0)return DP([e,r]);let t=kP(n);return t.length===0?DP([e,r]):DP([e,r,...t])}return DP(n==null?[e,r]:[e,r,n])}var jP=(e,t)=>AP(e,t),MP=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new X(n,0,0);return e.replace(l,i.after(),r),e.setSelection(Kx.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},NP=/^\s*>\s$/,PP=YM.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return jP(`blockquote`,{...uA(this.options.HTMLAttributes,e),children:jP(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
`).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
`))}),n.join(`
>
-`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>AP(this.editor,this.type)}},addInputRules(){return[KM({find:jP,type:this.type})]}}),NP=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,PP=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,FP=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,IP=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,LP=vM.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return kP(`strong`,{...cA(this.options.HTMLAttributes,e),children:kP(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[UM({find:NP,type:this.type}),UM({find:FP,type:this.type})]},addPasteRules(){return[JM({find:PP,type:this.type}),JM({find:IP,type:this.type})]}}),RP=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},zP=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function BP(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var VP=vM.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,cA(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(BP(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[UM({find:RP,type:this.type})]},addPasteRules(){return[JM({find:zP,type:this.type})]}}),HP=4,UP=/^```([a-z]+)?[\s\n]$/,WP=/^~~~([a-z]+)?[\s\n]$/,GP=qM.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:HP,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,cA(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
-`):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??HP,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
+`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>MP(this.editor,this.type)}},addInputRules(){return[JM({find:NP,type:this.type})]}}),FP=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,IP=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,LP=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,RP=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,zP=bM.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return jP(`strong`,{...uA(this.options.HTMLAttributes,e),children:jP(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[GM({find:FP,type:this.type}),GM({find:LP,type:this.type})]},addPasteRules(){return[XM({find:IP,type:this.type}),XM({find:RP,type:this.type})]}}),BP=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},VP=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function HP(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var UP=bM.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,uA(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(HP(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[GM({find:BP,type:this.type})]},addPasteRules(){return[XM({find:VP,type:this.type})]}}),WP=4,GP=/^```([a-z]+)?[\s\n]$/,KP=/^~~~([a-z]+)?[\s\n]$/,qP=YM.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:WP,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,uA(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
+`):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??WP,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
`,`
`).split(`
`).map(e=>o+e).join(`
-`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??HP,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
+`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??WP,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
`,`
`).split(`
-`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(Gx.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
+`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(Kx.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
`,`
`).split(`
`).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
`);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
-`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(Vx.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[GM({find:UP,type:this.type,getAttributes:e=>({language:e[1]})}),GM({find:WP,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new lS({key:new fS(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
-`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(Gx.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),KP=qM.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(Hx.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[qM({find:GP,type:this.type,getAttributes:e=>({language:e[1]})}),qM({find:KP,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new uS({key:new pS(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
+`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(Kx.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),JP=YM.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``}),qP=qM.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,cA(this.options.HTMLAttributes,e)]},renderText(){return`
+`):``}),YP=YM.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,uA(this.options.HTMLAttributes,e)]},renderText(){return`
`},renderMarkdown:()=>`
-`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),JP=qM.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,cA(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>GM({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),YP=qM.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,cA(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!$j(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return zA(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(Gx.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(qx.create(t.doc,n.pos)):t.setSelection(Gx.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(Gx.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[WM({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),XP=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,ZP=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,QP=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,$P=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,eF=vM.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,cA(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[UM({find:XP,type:this.type}),UM({find:QP,type:this.type})]},addPasteRules(){return[JM({find:ZP,type:this.type}),JM({find:$P,type:this.type})]}}),tF=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,nF=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,rF=`numeric`,iF=`ascii`,aF=`alpha`,oF=`asciinumeric`,sF=`alphanumeric`,cF=`domain`,lF=`emoji`,uF=`scheme`,dF=`slashscheme`,fF=`whitespace`;function pF(e,t){return e in t||(t[e]=[]),t[e]}function mF(e,t,n){t[rF]&&(t[oF]=!0,t[sF]=!0),t[iF]&&(t[oF]=!0,t[aF]=!0),t[oF]&&(t[sF]=!0),t[aF]&&(t[sF]=!0),t[sF]&&(t[cF]=!0),t[lF]&&(t[cF]=!0);for(let r in t){let t=pF(r,n);t.indexOf(e)<0&&t.push(e)}}function hF(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function gF(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}gF.groups={},gF.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=gF.groups;let i;return t&&t.j?i=t:(i=new gF(t),n&&r&&mF(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=gF.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new gF,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new gF,a&&(r&&(o.t&&typeof o.t==`string`?mF(a,Object.assign(hF(o.t,r),n),r):n&&mF(a,n,r)),o.t=a),i.j[e]=o,o}};var _F=(e,t,n,r,i)=>e.ta(t,n,r,i),vF=(e,t,n,r,i)=>e.tr(t,n,r,i),yF=(e,t,n,r,i)=>e.ts(t,n,r,i),Z=(e,t,n,r,i)=>e.tt(t,n,r,i),bF=`WORD`,xF=`UWORD`,SF=`ASCIINUMERICAL`,CF=`ALPHANUMERICAL`,wF=`LOCALHOST`,TF=`TLD`,EF=`UTLD`,DF=`SCHEME`,OF=`SLASH_SCHEME`,kF=`NUM`,AF=`WS`,jF=`NL`,MF=`OPENBRACE`,NF=`CLOSEBRACE`,PF=`OPENBRACKET`,FF=`CLOSEBRACKET`,IF=`OPENPAREN`,LF=`CLOSEPAREN`,RF=`OPENANGLEBRACKET`,zF=`CLOSEANGLEBRACKET`,BF=`FULLWIDTHLEFTPAREN`,VF=`FULLWIDTHRIGHTPAREN`,HF=`LEFTCORNERBRACKET`,UF=`RIGHTCORNERBRACKET`,WF=`LEFTWHITECORNERBRACKET`,GF=`RIGHTWHITECORNERBRACKET`,KF=`FULLWIDTHLESSTHAN`,qF=`FULLWIDTHGREATERTHAN`,JF=`AMPERSAND`,YF=`APOSTROPHE`,XF=`ASTERISK`,ZF=`AT`,QF=`BACKSLASH`,$F=`BACKTICK`,eI=`CARET`,tI=`COLON`,nI=`COMMA`,rI=`DOLLAR`,iI=`DOT`,aI=`EQUALS`,oI=`EXCLAMATION`,sI=`HYPHEN`,cI=`PERCENT`,lI=`PIPE`,uI=`PLUS`,dI=`POUND`,fI=`QUERY`,pI=`QUOTE`,mI=`FULLWIDTHMIDDLEDOT`,hI=`SEMI`,gI=`SLASH`,_I=`TILDE`,vI=`UNDERSCORE`,yI=`EMOJI`,bI=`SYM`,xI=Object.freeze({__proto__:null,ALPHANUMERICAL:CF,AMPERSAND:JF,APOSTROPHE:YF,ASCIINUMERICAL:SF,ASTERISK:XF,AT:ZF,BACKSLASH:QF,BACKTICK:$F,CARET:eI,CLOSEANGLEBRACKET:zF,CLOSEBRACE:NF,CLOSEBRACKET:FF,CLOSEPAREN:LF,COLON:tI,COMMA:nI,DOLLAR:rI,DOT:iI,EMOJI:yI,EQUALS:aI,EXCLAMATION:oI,FULLWIDTHGREATERTHAN:qF,FULLWIDTHLEFTPAREN:BF,FULLWIDTHLESSTHAN:KF,FULLWIDTHMIDDLEDOT:mI,FULLWIDTHRIGHTPAREN:VF,HYPHEN:sI,LEFTCORNERBRACKET:HF,LEFTWHITECORNERBRACKET:WF,LOCALHOST:wF,NL:jF,NUM:kF,OPENANGLEBRACKET:RF,OPENBRACE:MF,OPENBRACKET:PF,OPENPAREN:IF,PERCENT:cI,PIPE:lI,PLUS:uI,POUND:dI,QUERY:fI,QUOTE:pI,RIGHTCORNERBRACKET:UF,RIGHTWHITECORNERBRACKET:GF,SCHEME:DF,SEMI:hI,SLASH:gI,SLASH_SCHEME:OF,SYM:bI,TILDE:_I,TLD:TF,UNDERSCORE:vI,UTLD:EF,UWORD:xF,WORD:bF,WS:AF}),SI=/[a-z]/,CI=/[a-z]/i,wI=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{CI=RegExp(`\\p{L}`,`u`),wI=RegExp(`\\p{Emoji}`,`u`)}catch{}var TI=/\d/,EI=/\s/,DI=`\r`,OI=`
-`,kI=`️`,AI=`‍`,jI=``,MI=null,NI=null;function PI(e=[]){let t={};gF.groups=t;let n=new gF;MI??=RI(tF),NI??=RI(nF),Z(n,`'`,YF),Z(n,`{`,MF),Z(n,`}`,NF),Z(n,`[`,PF),Z(n,`]`,FF),Z(n,`(`,IF),Z(n,`)`,LF),Z(n,`<`,RF),Z(n,`>`,zF),Z(n,`(`,BF),Z(n,`)`,VF),Z(n,`「`,HF),Z(n,`」`,UF),Z(n,`『`,WF),Z(n,`』`,GF),Z(n,`<`,KF),Z(n,`>`,qF),Z(n,`&`,JF),Z(n,`*`,XF),Z(n,`@`,ZF),Z(n,"`",$F),Z(n,`^`,eI),Z(n,`:`,tI),Z(n,`,`,nI),Z(n,`$`,rI),Z(n,`.`,iI),Z(n,`=`,aI),Z(n,`!`,oI),Z(n,`-`,sI),Z(n,`%`,cI),Z(n,`|`,lI),Z(n,`+`,uI),Z(n,`#`,dI),Z(n,`?`,fI),Z(n,`"`,pI),Z(n,`/`,gI),Z(n,`;`,hI),Z(n,`~`,_I),Z(n,`_`,vI),Z(n,`\\`,QF),Z(n,`・`,mI);let r=vF(n,TI,kF,{[rF]:!0});vF(r,TI,r);let i=vF(r,SI,SF,{[oF]:!0}),a=vF(r,CI,CF,{[sF]:!0}),o=vF(n,SI,bF,{[iF]:!0});vF(o,TI,i),vF(o,SI,o),vF(i,TI,i),vF(i,SI,i);let s=vF(n,CI,xF,{[aF]:!0});vF(s,SI),vF(s,TI,a),vF(s,CI,s),vF(a,TI,a),vF(a,SI),vF(a,CI,a);let c=Z(n,OI,jF,{[fF]:!0}),l=Z(n,DI,AF,{[fF]:!0}),u=vF(n,EI,AF,{[fF]:!0});Z(n,jI,u),Z(l,OI,c),Z(l,jI,u),vF(l,EI,u),Z(u,DI),Z(u,OI),vF(u,EI,u),Z(u,jI,u);let d=vF(n,wI,yI,{[lF]:!0});Z(d,`#`),vF(d,wI,d),Z(d,kI,d);let f=Z(d,AI);Z(f,`#`),vF(f,wI,d);let p=[[SI,o],[TI,i]],m=[[SI,null],[CI,s],[TI,a]];for(let e=0;e<MI.length;e++)LI(n,MI[e],TF,bF,p);for(let e=0;e<NI.length;e++)LI(n,NI[e],EF,xF,m);mF(TF,{tld:!0,ascii:!0},t),mF(EF,{utld:!0,alpha:!0},t),LI(n,`file`,DF,bF,p),LI(n,`mailto`,DF,bF,p),LI(n,`http`,OF,bF,p),LI(n,`https`,OF,bF,p),LI(n,`ftp`,OF,bF,p),LI(n,`ftps`,OF,bF,p),mF(DF,{scheme:!0,ascii:!0},t),mF(OF,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[uF]:!0}:{[dF]:!0};r.indexOf(`-`)>=0?i[cF]=!0:SI.test(r)?TI.test(r)?i[oF]=!0:i[iF]=!0:i[rF]=!0,yF(n,r,r,i)}return yF(n,`localhost`,wF,{ascii:!0}),n.jd=new gF(bI),{start:n,tokens:Object.assign({groups:t},xI)}}function FI(e,t){let n=II(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function II(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function LI(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new gF(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new gF(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function RI(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var zI={defaultProtocol:`http`,events:null,format:VI,formatHref:VI,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function BI(e,t=null){let n=Object.assign({},zI);e&&(n=Object.assign(n,e instanceof BI?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i,this.ignoreClasses=n.ignoreClasses.slice()}BI.prototype={o:zI,ignoreTags:[],ignoreClasses:[],isIgnoredClass(e){if(typeof e!=`string`||this.ignoreClasses.length===0)return!1;let t=e.split(/\s+/);for(let e=0;e<t.length;e++)if(this.ignoreClasses.indexOf(t[e])>=0)return!0;return!1},defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:zI[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function VI(e){return e}function HI(e,t){this.t=`token`,this.v=e,this.tk=t}HI.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=zI.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function UI(e,t){class n extends HI{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var WI=UI(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),GI=UI(`text`),KI=UI(`nl`),qI=UI(`url`,{isLink:!0,toHref(e=zI.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==wF&&e[1].t===tI}}),JI=e=>new gF(e);function YI({groups:e}){let t=e.domain.concat([JF,XF,ZF,QF,$F,eI,rI,aI,sI,kF,cI,lI,uI,dI,gI,bI,_I,vI]),n=[YF,tI,nI,iI,oI,cI,fI,pI,hI,RF,zF,MF,NF,FF,PF,IF,LF,BF,VF,HF,UF,WF,GF,KF,qF],r=[JF,YF,XF,QF,$F,eI,rI,aI,sI,MF,NF,cI,lI,uI,dI,fI,gI,bI,_I,vI],i=JI(),a=Z(i,_I);_F(a,r,a),_F(a,e.domain,a);let o=JI(),s=JI(),c=JI();_F(i,e.domain,o),_F(i,e.scheme,s),_F(i,e.slashscheme,c),_F(o,r,a),_F(o,e.domain,o);let l=Z(o,ZF);Z(a,ZF,l),Z(s,ZF,l),Z(c,ZF,l);let u=Z(a,iI);_F(u,r,a),_F(u,e.domain,a);let d=JI();_F(l,e.domain,d),_F(d,e.domain,d);let f=Z(d,iI);_F(f,e.domain,d);let p=JI(WI);_F(f,e.tld,p),_F(f,e.utld,p),Z(l,wF,p);let m=Z(d,sI);Z(m,sI,m),_F(m,e.domain,d),_F(p,e.domain,d),Z(p,iI,f),Z(p,sI,m);let h=Z(o,sI),g=Z(o,iI);Z(h,sI,h),_F(h,e.domain,o),_F(g,r,a),_F(g,e.domain,o);let _=JI(qI);_F(g,e.tld,_),_F(g,e.utld,_),_F(_,e.domain,o),_F(_,r,a),Z(_,iI,g),Z(_,sI,h),Z(_,ZF,l);let v=Z(_,tI),y=JI(qI);_F(v,e.numeric,y);let b=JI(qI),x=JI();_F(b,t,b),_F(b,n,x),_F(x,t,b),_F(x,n,x),Z(_,gI,b),Z(y,gI,b),Z(_,fI,x),Z(_,dI,b),Z(y,fI,x),Z(y,dI,b);let S=Z(s,tI),C=Z(Z(Z(c,tI),gI),gI);_F(s,e.domain,o),Z(s,iI,g),Z(s,sI,h),_F(c,e.domain,o),Z(c,iI,g),Z(c,sI,h),_F(S,e.domain,b),Z(S,gI,b),Z(S,fI,b),_F(C,e.domain,b),_F(C,t,b),Z(C,gI,b);let w=[[MF,NF],[PF,FF],[IF,LF],[RF,zF],[BF,VF],[HF,UF],[WF,GF],[KF,qF]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Z(b,r);Z(x,r,a);let o=JI(qI);_F(a,t,o);let s=JI();_F(a,n,s),Z(a,i,b),_F(o,t,o),_F(o,n,s),_F(s,t,o),_F(s,n,s),Z(o,i,b),Z(s,i,b)}return Z(i,wF,_),Z(i,jF,KI),{start:i,tokens:xI}}function XI(e,t,n){let r=n.length,i=0,a=[],o=[],s=[];for(;i<r;){let c=e,l=null,u=null,d=0,f=null,p=-1,m=[];for(;i<r&&!(l=c.go(n[i].t));)o.push(n[i++]);for(;i<r&&(u=l||c.go(n[i].t));)if(l=null,c=u,i++,d++,c.accepts())p=0,f=c,m=[];else if(p>=0&&p++,m.push(c),s[i]&&s[i].has(c))break;for(let e=0,t=i-m.length+1;e<m.length;e++,t++)(s[t]||(s[t]=new Set)).add(m[e]);if(p<0)i-=d,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(ZI(GI,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push(ZI(e,t,r))}}return o.length>0&&a.push(ZI(GI,t,o)),a}function ZI(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var QI=typeof console<`u`&&console&&console.warn||(()=>{}),$I=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,eL={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tL(){return gF.groups={},eL.scanner=null,eL.parser=null,eL.tokenQueue=[],eL.pluginQueue=[],eL.customSchemes=[],eL.initialized=!1,eL}function nL(e,t=!1){if(eL.initialized&&QI(`linkifyjs: already initialized - will not register custom scheme "${e}" ${$I}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
+`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),XP=YM.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,uA(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>qM({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),ZP=YM.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,uA(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!tM(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return VA(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(Kx.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Jx.create(t.doc,n.pos)):t.setSelection(Kx.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(Kx.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[KM({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),QP=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,$P=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,eF=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,tF=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,nF=bM.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,uA(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[GM({find:QP,type:this.type}),GM({find:eF,type:this.type})]},addPasteRules(){return[XM({find:$P,type:this.type}),XM({find:tF,type:this.type})]}}),rF=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,iF=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,aF=`numeric`,oF=`ascii`,sF=`alpha`,cF=`asciinumeric`,lF=`alphanumeric`,uF=`domain`,dF=`emoji`,fF=`scheme`,pF=`slashscheme`,mF=`whitespace`;function hF(e,t){return e in t||(t[e]=[]),t[e]}function gF(e,t,n){t[aF]&&(t[cF]=!0,t[lF]=!0),t[oF]&&(t[cF]=!0,t[sF]=!0),t[cF]&&(t[lF]=!0),t[sF]&&(t[lF]=!0),t[lF]&&(t[uF]=!0),t[dF]&&(t[uF]=!0);for(let r in t){let t=hF(r,n);t.indexOf(e)<0&&t.push(e)}}function _F(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function vF(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}vF.groups={},vF.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=vF.groups;let i;return t&&t.j?i=t:(i=new vF(t),n&&r&&gF(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=vF.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new vF,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new vF,a&&(r&&(o.t&&typeof o.t==`string`?gF(a,Object.assign(_F(o.t,r),n),r):n&&gF(a,n,r)),o.t=a),i.j[e]=o,o}};var yF=(e,t,n,r,i)=>e.ta(t,n,r,i),bF=(e,t,n,r,i)=>e.tr(t,n,r,i),xF=(e,t,n,r,i)=>e.ts(t,n,r,i),Z=(e,t,n,r,i)=>e.tt(t,n,r,i),SF=`WORD`,CF=`UWORD`,wF=`ASCIINUMERICAL`,TF=`ALPHANUMERICAL`,EF=`LOCALHOST`,DF=`TLD`,OF=`UTLD`,kF=`SCHEME`,AF=`SLASH_SCHEME`,jF=`NUM`,MF=`WS`,NF=`NL`,PF=`OPENBRACE`,FF=`CLOSEBRACE`,IF=`OPENBRACKET`,LF=`CLOSEBRACKET`,RF=`OPENPAREN`,zF=`CLOSEPAREN`,BF=`OPENANGLEBRACKET`,VF=`CLOSEANGLEBRACKET`,HF=`FULLWIDTHLEFTPAREN`,UF=`FULLWIDTHRIGHTPAREN`,WF=`LEFTCORNERBRACKET`,GF=`RIGHTCORNERBRACKET`,KF=`LEFTWHITECORNERBRACKET`,qF=`RIGHTWHITECORNERBRACKET`,JF=`FULLWIDTHLESSTHAN`,YF=`FULLWIDTHGREATERTHAN`,XF=`AMPERSAND`,ZF=`APOSTROPHE`,QF=`ASTERISK`,$F=`AT`,eI=`BACKSLASH`,tI=`BACKTICK`,nI=`CARET`,rI=`COLON`,iI=`COMMA`,aI=`DOLLAR`,oI=`DOT`,sI=`EQUALS`,cI=`EXCLAMATION`,lI=`HYPHEN`,uI=`PERCENT`,dI=`PIPE`,fI=`PLUS`,pI=`POUND`,mI=`QUERY`,hI=`QUOTE`,gI=`FULLWIDTHMIDDLEDOT`,_I=`SEMI`,vI=`SLASH`,yI=`TILDE`,bI=`UNDERSCORE`,xI=`EMOJI`,SI=`SYM`,CI=Object.freeze({__proto__:null,ALPHANUMERICAL:TF,AMPERSAND:XF,APOSTROPHE:ZF,ASCIINUMERICAL:wF,ASTERISK:QF,AT:$F,BACKSLASH:eI,BACKTICK:tI,CARET:nI,CLOSEANGLEBRACKET:VF,CLOSEBRACE:FF,CLOSEBRACKET:LF,CLOSEPAREN:zF,COLON:rI,COMMA:iI,DOLLAR:aI,DOT:oI,EMOJI:xI,EQUALS:sI,EXCLAMATION:cI,FULLWIDTHGREATERTHAN:YF,FULLWIDTHLEFTPAREN:HF,FULLWIDTHLESSTHAN:JF,FULLWIDTHMIDDLEDOT:gI,FULLWIDTHRIGHTPAREN:UF,HYPHEN:lI,LEFTCORNERBRACKET:WF,LEFTWHITECORNERBRACKET:KF,LOCALHOST:EF,NL:NF,NUM:jF,OPENANGLEBRACKET:BF,OPENBRACE:PF,OPENBRACKET:IF,OPENPAREN:RF,PERCENT:uI,PIPE:dI,PLUS:fI,POUND:pI,QUERY:mI,QUOTE:hI,RIGHTCORNERBRACKET:GF,RIGHTWHITECORNERBRACKET:qF,SCHEME:kF,SEMI:_I,SLASH:vI,SLASH_SCHEME:AF,SYM:SI,TILDE:yI,TLD:DF,UNDERSCORE:bI,UTLD:OF,UWORD:CF,WORD:SF,WS:MF}),wI=/[a-z]/,TI=/[a-z]/i,EI=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{TI=RegExp(`\\p{L}`,`u`),EI=RegExp(`\\p{Emoji}`,`u`)}catch{}var DI=/\d/,OI=/\s/,kI=`\r`,AI=`
+`,jI=`️`,MI=`‍`,NI=``,PI=null,FI=null;function II(e=[]){let t={};vF.groups=t;let n=new vF;PI??=BI(rF),FI??=BI(iF),Z(n,`'`,ZF),Z(n,`{`,PF),Z(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(DF,{tld:!0,ascii:!0},t),gF(OF,{utld:!0,alpha:!0},t),zI(n,`file`,kF,SF,p),zI(n,`mailto`,kF,SF,p),zI(n,`http`,AF,SF,p),zI(n,`https`,AF,SF,p),zI(n,`ftp`,AF,SF,p),zI(n,`ftps`,AF,SF,p),gF(kF,{scheme:!0,ascii:!0},t),gF(AF,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[fF]:!0}:{[pF]:!0};r.indexOf(`-`)>=0?i[uF]=!0:wI.test(r)?DI.test(r)?i[cF]=!0:i[oF]=!0:i[aF]=!0,xF(n,r,r,i)}return xF(n,`localhost`,EF,{ascii:!0}),n.jd=new vF(SI),{start:n,tokens:Object.assign({groups:t},CI)}}function LI(e,t){let n=RI(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function RI(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function zI(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new vF(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new vF(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function BI(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var VI={defaultProtocol:`http`,events:null,format:UI,formatHref:UI,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function HI(e,t=null){let n=Object.assign({},VI);e&&(n=Object.assign(n,e instanceof HI?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i,this.ignoreClasses=n.ignoreClasses.slice()}HI.prototype={o:VI,ignoreTags:[],ignoreClasses:[],isIgnoredClass(e){if(typeof e!=`string`||this.ignoreClasses.length===0)return!1;let t=e.split(/\s+/);for(let e=0;e<t.length;e++)if(this.ignoreClasses.indexOf(t[e])>=0)return!0;return!1},defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:VI[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function UI(e){return e}function WI(e,t){this.t=`token`,this.v=e,this.tk=t}WI.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=VI.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function GI(e,t){class n extends WI{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var KI=GI(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),qI=GI(`text`),JI=GI(`nl`),YI=GI(`url`,{isLink:!0,toHref(e=VI.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==EF&&e[1].t===rI}}),XI=e=>new vF(e);function ZI({groups:e}){let t=e.domain.concat([XF,QF,$F,eI,tI,nI,aI,sI,lI,jF,uI,dI,fI,pI,vI,SI,yI,bI]),n=[ZF,rI,iI,oI,cI,uI,mI,hI,_I,BF,VF,PF,FF,LF,IF,RF,zF,HF,UF,WF,GF,KF,qF,JF,YF],r=[XF,ZF,QF,eI,tI,nI,aI,sI,lI,PF,FF,uI,dI,fI,pI,mI,vI,SI,yI,bI],i=XI(),a=Z(i,yI);yF(a,r,a),yF(a,e.domain,a);let o=XI(),s=XI(),c=XI();yF(i,e.domain,o),yF(i,e.scheme,s),yF(i,e.slashscheme,c),yF(o,r,a),yF(o,e.domain,o);let l=Z(o,$F);Z(a,$F,l),Z(s,$F,l),Z(c,$F,l);let u=Z(a,oI);yF(u,r,a),yF(u,e.domain,a);let d=XI();yF(l,e.domain,d),yF(d,e.domain,d);let f=Z(d,oI);yF(f,e.domain,d);let p=XI(KI);yF(f,e.tld,p),yF(f,e.utld,p),Z(l,EF,p);let m=Z(d,lI);Z(m,lI,m),yF(m,e.domain,d),yF(p,e.domain,d),Z(p,oI,f),Z(p,lI,m);let h=Z(o,lI),g=Z(o,oI);Z(h,lI,h),yF(h,e.domain,o),yF(g,r,a),yF(g,e.domain,o);let _=XI(YI);yF(g,e.tld,_),yF(g,e.utld,_),yF(_,e.domain,o),yF(_,r,a),Z(_,oI,g),Z(_,lI,h),Z(_,$F,l);let v=Z(_,rI),y=XI(YI);yF(v,e.numeric,y);let b=XI(YI),x=XI();yF(b,t,b),yF(b,n,x),yF(x,t,b),yF(x,n,x),Z(_,vI,b),Z(y,vI,b),Z(_,mI,x),Z(_,pI,b),Z(y,mI,x),Z(y,pI,b);let S=Z(s,rI),C=Z(Z(Z(c,rI),vI),vI);yF(s,e.domain,o),Z(s,oI,g),Z(s,lI,h),yF(c,e.domain,o),Z(c,oI,g),Z(c,lI,h),yF(S,e.domain,b),Z(S,vI,b),Z(S,mI,b),yF(C,e.domain,b),yF(C,t,b),Z(C,vI,b);let w=[[PF,FF],[IF,LF],[RF,zF],[BF,VF],[HF,UF],[WF,GF],[KF,qF],[JF,YF]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Z(b,r);Z(x,r,a);let o=XI(YI);yF(a,t,o);let s=XI();yF(a,n,s),Z(a,i,b),yF(o,t,o),yF(o,n,s),yF(s,t,o),yF(s,n,s),Z(o,i,b),Z(s,i,b)}return Z(i,EF,_),Z(i,NF,JI),{start:i,tokens:CI}}function QI(e,t,n){let r=n.length,i=0,a=[],o=[],s=[];for(;i<r;){let c=e,l=null,u=null,d=0,f=null,p=-1,m=[];for(;i<r&&!(l=c.go(n[i].t));)o.push(n[i++]);for(;i<r&&(u=l||c.go(n[i].t));)if(l=null,c=u,i++,d++,c.accepts())p=0,f=c,m=[];else if(p>=0&&p++,m.push(c),s[i]&&s[i].has(c))break;for(let e=0,t=i-m.length+1;e<m.length;e++,t++)(s[t]||(s[t]=new Set)).add(m[e]);if(p<0)i-=d,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push($I(qI,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push($I(e,t,r))}}return o.length>0&&a.push($I(qI,t,o)),a}function $I(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var eL=typeof console<`u`&&console&&console.warn||(()=>{}),tL=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,nL={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function rL(){return vF.groups={},nL.scanner=null,nL.parser=null,nL.tokenQueue=[],nL.pluginQueue=[],nL.customSchemes=[],nL.initialized=!1,nL}function iL(e,t=!1){if(nL.initialized&&eL(`linkifyjs: already initialized - will not register custom scheme "${e}" ${tL}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
-3. "-" cannot repeat`);eL.customSchemes.push([e,t])}function rL(){eL.scanner=PI(eL.customSchemes);for(let e=0;e<eL.tokenQueue.length;e++)eL.tokenQueue[e][1]({scanner:eL.scanner});eL.parser=YI(eL.scanner.tokens);for(let e=0;e<eL.pluginQueue.length;e++)eL.pluginQueue[e][1]({scanner:eL.scanner,parser:eL.parser});return eL.initialized=!0,eL}function iL(e){return eL.initialized||rL(),XI(eL.parser.start,e,FI(eL.scanner.start,e))}iL.scan=FI;function aL(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new BI(n),i=iL(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var oL=`[\0- \xA0 ᠎ -\u2029  ]`,sL=new RegExp(oL),cL=RegExp(`${oL}$`),lL=RegExp(`${oL}+$`),uL=new RegExp(oL,`g`);function dL(e,t,n){let r=e.doc.resolve(t.to);if(!r.nodeBefore?.isText)return;let i=e.doc.textBetween(t.from,t.to,``,``).match(lL)?.[0];if(!i)return;let a=t.to-i.length,o=EA(a,t.to,e.doc).filter(e=>e.mark.type===n);if(!o.length)return;let{nodeAfter:s}=r;if(s&&o.some(e=>e.mark.isInSet(s.marks)))return;let c=e.storedMarks;e.removeMark(a,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function fL(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function pL(e){return new lS({key:new fS(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r,s=Vk(n.doc,[...t]);if(!t.some(bO)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof Kb)||!e.slice.size)return;let r=s.mapping.slice(n+1),i=r.map(e.from,1),a=r.map(e.from+e.slice.size,-1);i<a&&t.push({from:i,to:a})}),t.sort((e,t)=>t.to-e.to),t.forEach(t=>dL(o,t,e.type))}if(TA(s).forEach(({newRange:t})=>{let n=Hk(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!cL.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(sL).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=iL(n).map(t=>t.toObject(e.defaultProtocol));if(!fL(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{EA(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function mL(e){return new lS({key:new fS(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=SA(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var hL=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,gL=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function _L(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function vL(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&_L(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function yL(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||_L(e,t.index??0)||vL(e,t.index??0)?!1:!!r.trim()&&n(i)}function bL(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function xL(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function SL(e){return{href:e.data?.href,title:e.data?.title??null}}function CL(e){let t=UM({find:t=>{let n=hL.exec(t);return!n||!yL(t,n,e.isAllowedHref)?null:bL(n)},type:e.type,getAttributes:SL});return new uM({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function wL(e){let t=JM({find:t=>{let n=[];for(let r of t.matchAll(gL))yL(t,r,e.isAllowedHref)&&n.push(bL(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>xL(t,e)));return[...n,...r]},type:e.type,getAttributes:SL});return new yM({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function TL(e){return new lS({key:new fS(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=aL(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function EL(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(uL,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var DL=vM.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{typeof e==`string`?nL(e):nL(e.scheme,e.optionalSlashes)})},onDestroy(){tL()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!EL(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,cA(this.options.HTMLAttributes,e),0]:[`a`,cA(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[CL({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;aL(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!EL(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[wL({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!EL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[JM({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(pL({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!EL(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(mL({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(TL({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),OL=`listItem`,kL=`textStyle`,AL=/^\s*([-+*])\s$/,jL=qM.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,cA(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(OL,this.editor.getAttributes(kL)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=KM({find:AL,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=KM({find:AL,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(kL),editor:this.editor})),[e]}}),ML=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},NL=(e,t,n,r)=>{let i=ML(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,J.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},PL=(e,t,n)=>NL(e.state,e.view.dispatch,t,n),FL=(e,t)=>EM.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>PL(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),IL=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],LL=`abcdefghijklmnopqrstuvwxyz`,RL=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function zL(e){let t=e,n=``;for(let[e,r]of IL)for(;t>=e;)n+=r,t-=e;return n}function BL(e){return zL(e).toUpperCase()}function VL(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of IL)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function HL(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=VL(e);return t<=0?!1:(e===e.toLowerCase()?zL(t):BL(t))===e}function UL(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function WL(e){if(e<=26)return LL[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?LL[n]:LL[t]+LL[n]}function GL(e){if(e&&!/^\d+$/.test(e)){if(HL(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function KL(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=GL(e);if(t===`i`||t===`I`)return VL(e);if(t===`a`||t===`A`){let t=UL(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function qL(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return WL(t);case`A`:return WL(t).toUpperCase();case`i`:return zL(t);case`I`:return BL(t);default:return String(t)}}function JL(e){if(e.length===0)return!1;let t=GL(e[0])??`numeric`,n=KL(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=qL(t,n+r);if(e[r]!==i)return!1}return!0}function YL(e){return{type:GL(e),start:KL(e)}}function XL(e){let{type:t,start:n}=YL(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function ZL(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${WL(r)}${n}`;case`A`:return`${WL(r).toUpperCase()}${n}`;case`i`:return`${zL(r)}${n}`;case`I`:return`${BL(r)}${n}`;default:return`${r}${n}`}}function QL(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function $L(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var eR=qM.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,cA(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(QL(e))return{type:`listItem`,content:[{type:`paragraph`,content:$L(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>sM(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return ZL((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[FL(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),tR=(e,t)=>{let{$from:n}=t.selection,r=AO(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},nR=(e,t)=>{let n=tR(e,t);if(!n)return!1;let[,r]=DA(t,e,n.$pos.pos+4);return r},rR=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},iR=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Ck(e.state,t)&&rR(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!Ck(e.state,t)||!FA(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},aR=(e,t)=>{let n=nR(e,t),r=tR(e,t);return!r||!n?!1:n>r.depth},oR=(e,t)=>{let n=nR(e,t),r=tR(e,t);return!r||!n?!1:n<r.depth},sR=(e,t)=>{if(!Ck(e.state,t)||!PA(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:aR(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():oR(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},cR=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||Ck(r,t))return!1;let o=OA(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,J.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,J.from(c)),e.setSelection(Gx.create(e.doc,d+1)),e.scrollIntoView()),!0))},lR=EM.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&sR(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&sR(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&iR(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&iR(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&cR(e,t,n))return!0;return!1}}}}),uR=RegExp(`^(\\s*)(${RL})([.)])\\s+(.*)$`),dR=/^\s/,fR={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function pR(e){return uR.test(e.trimStart())}function mR(e){let t=e.trimStart();return fR.bulletItem.test(t)||pR(t)||fR.heading.test(t)||fR.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||fR.codeFence.test(t)||fR.blockMath.test(t)}function hR(e){return Object.values(fR).some(t=>t.test(e))}function gR(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&mR(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function _R(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(uR);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?GL(s):void 0,p=isNaN(d)?KL(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(uR))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(dR)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||hR(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
+3. "-" cannot repeat`);nL.customSchemes.push([e,t])}function aL(){nL.scanner=II(nL.customSchemes);for(let e=0;e<nL.tokenQueue.length;e++)nL.tokenQueue[e][1]({scanner:nL.scanner});nL.parser=ZI(nL.scanner.tokens);for(let e=0;e<nL.pluginQueue.length;e++)nL.pluginQueue[e][1]({scanner:nL.scanner,parser:nL.parser});return nL.initialized=!0,nL}function oL(e){return nL.initialized||aL(),QI(nL.parser.start,e,LI(nL.scanner.start,e))}oL.scan=LI;function sL(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new HI(n),i=oL(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var cL=`[\0- \xA0 ᠎ -\u2029  ]`,lL=new RegExp(cL),uL=RegExp(`${cL}$`),dL=RegExp(`${cL}+$`),fL=new RegExp(cL,`g`);function pL(e,t,n){let r=e.doc.resolve(t.to);if(!r.nodeBefore?.isText)return;let i=e.doc.textBetween(t.from,t.to,``,``).match(dL)?.[0];if(!i)return;let a=t.to-i.length,o=OA(a,t.to,e.doc).filter(e=>e.mark.type===n);if(!o.length)return;let{nodeAfter:s}=r;if(s&&o.some(e=>e.mark.isInSet(s.marks)))return;let c=e.storedMarks;e.removeMark(a,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function mL(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function hL(e){return new uS({key:new pS(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r,s=Hk(n.doc,[...t]);if(!t.some(xO)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof qb)||!e.slice.size)return;let r=s.mapping.slice(n+1),i=r.map(e.from,1),a=r.map(e.from+e.slice.size,-1);i<a&&t.push({from:i,to:a})}),t.sort((e,t)=>t.to-e.to),t.forEach(t=>pL(o,t,e.type))}if(DA(s).forEach(({newRange:t})=>{let n=Uk(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!uL.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(lL).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=oL(n).map(t=>t.toObject(e.defaultProtocol));if(!mL(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{OA(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function gL(e){return new uS({key:new pS(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=wA(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var _L=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,vL=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function yL(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function bL(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&yL(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function xL(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||yL(e,t.index??0)||bL(e,t.index??0)?!1:!!r.trim()&&n(i)}function SL(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function CL(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function wL(e){return{href:e.data?.href,title:e.data?.title??null}}function TL(e){let t=GM({find:t=>{let n=_L.exec(t);return!n||!xL(t,n,e.isAllowedHref)?null:SL(n)},type:e.type,getAttributes:wL});return new fM({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function EL(e){let t=XM({find:t=>{let n=[];for(let r of t.matchAll(vL))xL(t,r,e.isAllowedHref)&&n.push(SL(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>CL(t,e)));return[...n,...r]},type:e.type,getAttributes:wL});return new xM({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function DL(e){return new uS({key:new pS(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=sL(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function OL(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(fL,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var kL=bM.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{typeof e==`string`?iL(e):iL(e.scheme,e.optionalSlashes)})},onDestroy(){rL()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!OL(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,uA(this.options.HTMLAttributes,e),0]:[`a`,uA(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[TL({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;sL(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!OL(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[EL({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!OL(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[XM({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(hL({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!OL(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(gL({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(DL({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),AL=`listItem`,jL=`textStyle`,ML=/^\s*([-+*])\s$/,NL=YM.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,uA(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(AL,this.editor.getAttributes(jL)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=JM({find:ML,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=JM({find:ML,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(jL),editor:this.editor})),[e]}}),PL=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},FL=(e,t,n,r)=>{let i=PL(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,Y.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},IL=(e,t,n)=>FL(e.state,e.view.dispatch,t,n),LL=(e,t)=>OM.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>IL(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),RL=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],zL=`abcdefghijklmnopqrstuvwxyz`,BL=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function VL(e){let t=e,n=``;for(let[e,r]of RL)for(;t>=e;)n+=r,t-=e;return n}function HL(e){return VL(e).toUpperCase()}function UL(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of RL)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function WL(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=UL(e);return t<=0?!1:(e===e.toLowerCase()?VL(t):HL(t))===e}function GL(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function KL(e){if(e<=26)return zL[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?zL[n]:zL[t]+zL[n]}function qL(e){if(e&&!/^\d+$/.test(e)){if(WL(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function JL(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=qL(e);if(t===`i`||t===`I`)return UL(e);if(t===`a`||t===`A`){let t=GL(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function YL(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return KL(t);case`A`:return KL(t).toUpperCase();case`i`:return VL(t);case`I`:return HL(t);default:return String(t)}}function XL(e){if(e.length===0)return!1;let t=qL(e[0])??`numeric`,n=JL(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=YL(t,n+r);if(e[r]!==i)return!1}return!0}function ZL(e){return{type:qL(e),start:JL(e)}}function QL(e){let{type:t,start:n}=ZL(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function $L(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${KL(r)}${n}`;case`A`:return`${KL(r).toUpperCase()}${n}`;case`i`:return`${VL(r)}${n}`;case`I`:return`${HL(r)}${n}`;default:return`${r}${n}`}}function eR(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function tR(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var nR=YM.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,uA(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(eR(e))return{type:`listItem`,content:[{type:`paragraph`,content:tR(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>lM(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return $L((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[LL(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),rR=(e,t)=>{let{$from:n}=t.selection,r=jO(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},iR=(e,t)=>{let n=rR(e,t);if(!n)return!1;let[,r]=kA(t,e,n.$pos.pos+4);return r},aR=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},oR=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!wk(e.state,t)&&aR(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!wk(e.state,t)||!LA(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},sR=(e,t)=>{let n=iR(e,t),r=rR(e,t);return!r||!n?!1:n>r.depth},cR=(e,t)=>{let n=iR(e,t),r=rR(e,t);return!r||!n?!1:n<r.depth},lR=(e,t)=>{if(!wk(e.state,t)||!IA(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:sR(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():cR(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},uR=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||wk(r,t))return!1;let o=AA(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,Y.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,Y.from(c)),e.setSelection(Kx.create(e.doc,d+1)),e.scrollIntoView()),!0))},dR=OM.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&lR(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&lR(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&oR(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&oR(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&uR(e,t,n))return!0;return!1}}}}),fR=RegExp(`^(\\s*)(${BL})([.)])\\s+(.*)$`),pR=/^\s/,mR={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function hR(e){return fR.test(e.trimStart())}function gR(e){let t=e.trimStart();return mR.bulletItem.test(t)||hR(t)||mR.heading.test(t)||mR.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||mR.codeFence.test(t)||mR.blockMath.test(t)}function _R(e){return Object.values(mR).some(t=>t.test(e))}function vR(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&gR(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function yR(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(fR);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?qL(s):void 0,p=isNaN(d)?JL(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(fR))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(pR)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||_R(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
`).trim(),contentLines:m,raw:g.join(`
-`)}),r=h,n=h}return[t,r]}var vR=RegExp(`^(${RL})([.)])\\s+(.+)$`);function yR(e){let t=e.split(`
-`).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(vR);if(!t)return null;n.push({marker:t[1],content:t[3]})}return JL(n.map(e=>e.marker))?{type:`orderedList`,attrs:XL(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function bR(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=gR(a.contentLines),c=o.join(`
+`)}),r=h,n=h}return[t,r]}var bR=RegExp(`^(${BL})([.)])\\s+(.+)$`);function xR(e){let t=e.split(`
+`).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(bR);if(!t)return null;n.push({marker:t[1],content:t[3]})}return XL(n.map(e=>e.marker))?{type:`orderedList`,attrs:QL(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function SR(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=vR(a.contentLines),c=o.join(`
`).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(`
-`).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=bR(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
-`)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function xR(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var SR=64;function CR(e,t){let n=[],r=0;for(;n.length<t;){let t=e.indexOf(`
-`,r);if(t===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,t)),r=t+1}return n}function wR(e){let t=e.indexOf(`
-`),n=t===-1?e:e.slice(0,t);if(!uR.test(n))return[[],0,[]];let r=SR,i=CR(e,r),a=_R(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=CR(e,r),a=_R(i);return[a[0],a[1],i]}var TR=`listItem`,ER=`textStyle`,DR=/^(\d+)\.\s$/;function OR(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var kR=qM.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=OR(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=OR(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=cA(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?xR(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=wR(e);if(r.length===0)return;let o=bR(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
-`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(TR,this.editor.getAttributes(ER)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new lS({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=yR(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=KM({find:DR,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=KM({find:DR,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(ER)}),joinPredicate:e,editor:this.editor})),[t]}}),AR=/^\s*(\[([( |x])?\])\s$/,jR=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,MR=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},NR=qM.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,cA(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>sM(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[FL(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=jR;let l=e=>{let t=MR(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=lA(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[KM({find:AR,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),PR=qM.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,cA(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=iM(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=iM(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});EM.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(jL.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(eR.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(lR.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(kR.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(NR.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(PR.configure(this.options.taskList)),e}});var FR=`&nbsp;`,IR=`\xA0`,LR=qM.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,cA(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===FR||n[0].text===FR||n[0].raw===IR||n[0].text===IR)&&r.length===1&&r[0].type===`text`&&(r[0].text===FR||r[0].text===IR)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?FR:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),RR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,zR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,BR=vM.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,cA(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[UM({find:RR,type:this.type})]},addPasteRules(){return[JM({find:zR,type:this.type})]}}),VR=qM.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),HR=vM.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,cA(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function UR(e={}){return new lS({view(t){return new WR(t,e)}})}var WR=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=yx(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},GR=class e extends Vx{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Vx.near(r)}content(){return Y.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new KR(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!JR(e)||!YR(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!qx.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};GR.prototype.visible=!1,GR.findFrom=GR.findGapCursorFrom,Vx.jsonID(`gapcursor`,GR);var KR=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return GR.valid(t)?new GR(t):Vx.near(t)}};function qR(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function JR(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||qR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function YR(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||qR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function XR(){return new lS({props:{decorations:tz,createSelectionBetween(e,t,n){return t.pos==n.pos&&GR.valid(n)?new GR(n):null},handleClick:$R,handleKeyDown:ZR,handleDOMEvents:{beforeinput:ez}}})}var ZR=JD({ArrowLeft:QR(`horiz`,-1),ArrowRight:QR(`horiz`,1),ArrowUp:QR(`vert`,-1),ArrowDown:QR(`vert`,1)});function QR(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof Gx){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=GR.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new GR(c))),!0):!1}}function $R(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!GR.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&qx.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new GR(r))),!0)}function ez(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof GR))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=J.empty;for(let e=r.length-1;e>=0;e--)i=J.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new Y(i,0,0));return a.setSelection(Gx.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function tz(e){if(!(e.selection instanceof GR))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,qE.create(e.doc,[WE.widget(e.selection.head,t,{key:`gapcursor`})])}EM.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new lS({key:new fS(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var nz=EM.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[UR(this.options)]}});EM.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new lS({key:new fS(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return qE.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(WE.node(t,t+e.nodeSize,{class:this.options.className}))}),qE.create(e,a)}}})]}});var rz=EM.create({name:`gapCursor`,addProseMirrorPlugins(){return[XR()]},extendNodeSchema(e){return{allowGapCursor:iA(X(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),iz=`placeholder`,az=new fS(`tiptap__placeholder`);function oz(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),WE.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function sz(e,t){return typeof e==`function`?e(t):e}function cz({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&RA(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(oz({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:sz(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function lz({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&RA(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(oz({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:sz(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...cz({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return qE.create(r,o)}function uz(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function dz(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function fz(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function pz(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function mz(e,t){let n=fz(e,t.from,t.to);return n.push(dz(e,uz(e,t.from))),t.to>t.from?n.push(dz(e,uz(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(dz(e,uz(e,Math.min(t.from+1,e.content.size)))),n}function hz(e,t,n){let r=[];if(e.docChanged){let t=TA(e);for(let e of t)r.push(...mz(n.doc,e.newRange))}return e.selectionSet&&(r.push(dz(n.doc,uz(n.doc,e.mapping.map(t.selection.anchor)))),r.push(dz(n.doc,uz(n.doc,n.selection.anchor)))),pz(r)}function gz(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function _z({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=gz(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=cz({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function vz({editor:e,options:t,dataAttribute:n}){return{init(r,i){return lz({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??qE.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:_z({decorations:i.map(r.mapping,r.doc),ranges:hz(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function yz(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function bz({editor:e,options:t}){let n=t.dataAttribute?`data-${yz(t.dataAttribute)}`:`data-${iz}`,r=t.showOnlyCurrent&&!t.includeChildren;return new lS({key:az,...r?{}:{state:vz({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>lz({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?qE.empty:az.getState(n)??qE.empty}})}var xz=EM.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:iz,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[bz({editor:this.editor,options:this.options})]}});function Sz(e,t){return!e.selection.empty&&!zA(e.selection)&&t.isEditable}function Cz(e,t){return Sz(e,t)&&!t.isFocused&&!t.view.dragging}function wz(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function Tz(e){e.focus()}EM.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new lS({key:new fS(`selection`),props:{decorations(n){return Cz(n,e)?qE.create(n.doc,[WE.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return Sz(t.state,e)&&wz(),!1},focus(t){return Sz(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&Tz(t)}),!1}}}})]}});function Ez({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Dz=EM.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new fS(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new lS({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!Ez({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!Ez({node:r,types:n})}}})]}}),Oz=EM.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>vO(e,t),redo:()=>({state:e,dispatch:t})=>yO(e,t)}},addProseMirrorPlugins(){return[gO(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),kz=EM.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(LP.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(MP.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(jL.configure(this.options.bulletList)),this.options.code!==!1&&e.push(VP.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(GP.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(KP.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(nz.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(rz.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(qP.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(JP.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(Oz.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(YP.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(eF.configure(this.options.italic)),this.options.listItem!==!1&&e.push(eR.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(lR.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(DL.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(kR.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(LR.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(BR.configure(this.options.strike)),this.options.text!==!1&&e.push(VR.configure(this.options.text)),this.options.underline!==!1&&e.push(HR.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(Dz.configure(this.options?.trailingNode)),e}}),Az=xz,jz=[`top`,`right`,`bottom`,`left`],Mz=[`start`,`end`],Nz=jz.reduce((e,t)=>e.concat(t,t+`-`+Mz[0],t+`-`+Mz[1]),[]),Pz=Math.min,Fz=Math.max,Iz=Math.round,Lz=Math.floor,Rz=e=>({x:e,y:e}),zz={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Bz(e,t,n){return Fz(e,Pz(t,n))}function Vz(e,t){return typeof e==`function`?e(t):e}function Hz(e){return e.split(`-`)[0]}function Uz(e){return e.split(`-`)[1]}function Wz(e){return e===`x`?`y`:`x`}function Gz(e){return e===`y`?`height`:`width`}function Kz(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function qz(e){return Wz(Kz(e))}function Jz(e,t,n){n===void 0&&(n=!1);let r=Uz(e),i=qz(e),a=Gz(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=rB(o)),[o,rB(o)]}function Yz(e){let t=rB(e);return[Xz(e),t,Xz(t)]}function Xz(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Zz=[`left`,`right`],Qz=[`right`,`left`],$z=[`top`,`bottom`],eB=[`bottom`,`top`];function tB(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Qz:Zz:t?Zz:Qz;case`left`:case`right`:return t?$z:eB;default:return[]}}function nB(e,t,n,r){let i=Uz(e),a=tB(Hz(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Xz)))),a}function rB(e){let t=Hz(e);return zz[t]+e.slice(t.length)}function iB(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function aB(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:iB(e)}function oB(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function sB(e,t,n){let{reference:r,floating:i}=e,a=Kz(t),o=qz(t),s=Gz(o),c=Hz(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Uz(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function cB(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Vz(t,e),p=aB(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=oB(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=oB(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var lB=50,uB=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:cB},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=sB(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<lB&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=sB(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},dB=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Vz(e,t)||{};if(l==null)return{};let d=aB(u),f={x:n,y:r},p=qz(i),m=Gz(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Pz(d[_],T),D=Pz(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Bz(E,k,O),j=!c.arrow&&Uz(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}});function fB(e,t,n){return(e?[...n.filter(t=>Uz(t)===e),...n.filter(t=>Uz(t)!==e)]:n.filter(e=>Hz(e)===e)).filter(n=>!e||Uz(n)===e||(t?Xz(n)!==n:!1))}var pB=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Nz,autoAlignment:u=!0,...d}=Vz(e,t),f=c!==void 0||l===Nz?fB(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Jz(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Hz(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Uz(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Uz(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},mB=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Vz(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Hz(r),_=Kz(o),v=Hz(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[rB(o)]:Yz(o)),x=p!==`none`;!d&&x&&b.push(...nB(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Jz(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Kz(t)||T.every(e=>Kz(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Kz(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function hB(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gB(e){return jz.some(t=>e[t]>=0)}var _B=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Vz(e,t);switch(i){case`referenceHidden`:{let e=hB(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gB(e)}}}case`escaped`:{let e=hB(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gB(e)}}}default:return{}}}}};function vB(e){let t=Pz(...e.map(e=>e.left)),n=Pz(...e.map(e=>e.top)),r=Fz(...e.map(e=>e.right)),i=Fz(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function yB(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>oB(vB(e)))}var bB=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Vz(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=yB(u),f=oB(vB(u)),p=aB(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Kz(n)===`y`){let e=d[0],t=d[d.length-1],r=Hz(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return oB({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Hz(n)===`left`,t=Fz(...d.map(e=>e.right)),r=Pz(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return oB({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},xB=new Set([`left`,`top`]);async function SB(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Hz(n),s=Uz(n),c=Kz(n)===`y`,l=xB.has(o)?-1:1,u=a&&c?-1:1,d=Vz(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var CB=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await SB(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wB=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Vz(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Kz(i),p=Wz(f),m=u[p],h=u[f],g=(e,t)=>Bz(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},TB=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Vz(e,t),u={x:n,y:r},d=Kz(i),f=Wz(d),p=u[f],m=u[d],h=Vz(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=xB.has(Hz(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},EB=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Vz(e,t),c=await i.detectOverflow(t,s),l=Hz(n),u=Uz(n),d=Kz(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Pz(p-c[m],g),y=Pz(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Fz(c.left,c.right):S=p-2*Fz(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function DB(){return typeof window<`u`}function OB(e){return jB(e)?(e.nodeName||``).toLowerCase():`#document`}function kB(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function AB(e){return((jB(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function jB(e){return DB()?e instanceof Node||e instanceof kB(e).Node:!1}function MB(e){return DB()?e instanceof Element||e instanceof kB(e).Element:!1}function NB(e){return DB()?e instanceof HTMLElement||e instanceof kB(e).HTMLElement:!1}function PB(e){return!DB()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof kB(e).ShadowRoot}function FB(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=KB(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function IB(e){return/^(table|td|th)$/.test(OB(e))}function LB(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var RB=/transform|translate|scale|rotate|perspective|filter/,zB=/paint|layout|strict|content/,BB=e=>!!e&&e!==`none`,VB;function HB(e){let t=MB(e)?KB(e):e;return BB(t.transform)||BB(t.translate)||BB(t.scale)||BB(t.rotate)||BB(t.perspective)||!WB()&&(BB(t.backdropFilter)||BB(t.filter))||RB.test(t.willChange||``)||zB.test(t.contain||``)}function UB(e){let t=JB(e);for(;NB(t)&&!GB(t);){if(HB(t))return t;if(LB(t))return null;t=JB(t)}return null}function WB(){return VB??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),VB}function GB(e){return/^(html|body|#document)$/.test(OB(e))}function KB(e){return kB(e).getComputedStyle(e)}function qB(e){return MB(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function JB(e){if(OB(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||PB(e)&&e.host||AB(e);return PB(t)?t.host:t}function YB(e){let t=JB(e);return GB(t)?(e.ownerDocument||e).body:NB(t)&&FB(t)?t:YB(t)}function XB(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=YB(e),i=r===e.ownerDocument?.body,a=kB(r);if(i){let e=ZB(a);return t.concat(a,a.visualViewport||[],FB(r)?r:[],e&&n?XB(e):[])}return t.concat(r,XB(r,[],n))}function ZB(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QB(e){let t=KB(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=NB(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Iz(n)!==a||Iz(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $B(e){return MB(e)?e:e.contextElement}function eV(e){let t=$B(e);if(!NB(t))return Rz(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QB(t),o=(a?Iz(n.width):n.width)/r,s=(a?Iz(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var tV=Rz(0);function nV(e){let t=kB(e);return!WB()||!t.visualViewport?tV:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rV(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===kB(e)}function iV(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$B(e),o=Rz(1);t&&(r?MB(r)&&(o=eV(r)):o=eV(e));let s=rV(a,n,r)?nV(a):Rz(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=kB(a),t=MB(r)?kB(r):r,n=e,i=ZB(n);for(;i&&t!==n;){let e=eV(i),t=i.getBoundingClientRect(),r=KB(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=kB(i),i=ZB(n)}}return oB({width:u,height:d,x:c,y:l})}function aV(e,t){let n=qB(e).scrollLeft;return t?t.left+n:iV(AB(e)).left+n}function oV(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-aV(e,n),y:n.top+t.scrollTop}}function sV(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=AB(r),s=t?LB(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Rz(1),u=Rz(0),d=NB(r);if((d||!a)&&((OB(r)!==`body`||FB(o))&&(c=qB(r)),d)){let e=iV(r);l=eV(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?oV(o,c):Rz(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cV(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function lV(e){let t=qB(e),n=e.ownerDocument.body,r=Fz(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Fz(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+aV(e),o=-t.scrollTop;return KB(n).direction===`rtl`&&(a+=Fz(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var uV=25;function dV(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=kB(e),a=AB(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!WB()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(aV(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=uV&&(s-=o)}return{width:s,height:c,x:l,y:u}}function fV(e,t){let n=iV(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=eV(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pV(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=dV(e,n,t);else if(t===`document`)r=lV(AB(e));else if(MB(t))r=fV(t,n);else{let n=nV(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oB(r)}function mV(e,t){let n=t.get(e);if(n)return n;let r=XB(e,[],!1).filter(e=>MB(e)&&OB(e)!==`body`),i=null,a=KB(e).position===`fixed`,o=a?JB(e):e;for(;MB(o)&&!GB(o);){let e=KB(o),t=HB(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=JB(o)}return t.set(e,r),r}function hV(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?LB(t)?[]:mV(t,this._c):[].concat(n),r],o=pV(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pV(t,a[e],i);s=Fz(n.top,s),c=Pz(n.right,c),l=Pz(n.bottom,l),u=Fz(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gV(e){let{width:t,height:n}=QB(e);return{width:t,height:n}}function _V(e,t,n){let r=NB(t),i=AB(t),a=n===`fixed`,o=iV(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Rz(0);if((r||!a)&&((OB(t)!==`body`||FB(i))&&(s=qB(t)),r)){let e=iV(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=aV(i));let l=i&&!r&&!a?oV(i,s):Rz(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function vV(e){return KB(e).position===`static`}function yV(e,t){if(!NB(e)||KB(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return AB(e)===n&&(n=n.ownerDocument.body),n}function bV(e,t){let n=kB(e);if(LB(e))return n;if(!NB(e)){let t=JB(e);for(;t&&!GB(t);){if(MB(t)&&!vV(t))return t;t=JB(t)}return n}let r=yV(e,t);for(;r&&IB(r)&&vV(r);)r=yV(r,t);return r&&GB(r)&&vV(r)&&!HB(r)?n:r||UB(e)||n}var xV=async function(e){let t=this.getOffsetParent||bV,n=this.getDimensions,r=await n(e.floating);return{reference:_V(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function SV(e){return KB(e).direction===`rtl`}var CV={convertOffsetParentRelativeRectToViewportRelativeRect:sV,getDocumentElement:AB,getClippingRect:hV,getOffsetParent:bV,getElementRects:xV,getClientRects:cV,getDimensions:gV,getScale:eV,isElement:MB,isRTL:SV};function wV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function TV(e,t,n){let r=null,i,a=AB(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Lz(d),h=Lz(a.clientWidth-(u+f)),g=Lz(a.clientHeight-(d+p)),_=Lz(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Fz(0,Pz(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!wV(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=kB(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function EV(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$B(e),u=i||a?[...l?XB(l):[],...t?XB(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?TV(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?iV(e):null;c&&g();function g(){let t=iV(e);h&&!wV(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var DV=CB,OV=pB,kV=wB,AV=mB,jV=EB,MV=_B,NV=dB,PV=bB,FV=TB,IV=(e,t,n)=>{let r=new Map,i=n??{},a={...CV,...i.platform,_c:r};return uB(e,t,{...i,platform:a})},LV,RV;if(typeof WeakMap<`u`){let e=new WeakMap;LV=t=>e.get(t),RV=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;LV=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},RV=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var zV=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o||t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return LV(e)||RV(e,BV(e))}};function BV(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=VV(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new zV(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&HV(s,o,e),s}function VV(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function HV(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r==null||c.colwidth&&c.colwidth[n]==r||((s||=UV(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function UV(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function WV(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new fS(`selectingCells`);function GV(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function KV(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function qV(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=GV(t.$head)||JV(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function JV(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function YV(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function XV(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function ZV(e,t,n){let r=e.node(-1),i=zV.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function QV(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var $V=class e extends Vx{constructor(e,t=e){let n=e.node(-1),r=zV.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new Hx(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(YV(r)&&YV(i)&&XV(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return Gx.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=zV.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=QV(e,0,l)),u>0&&(e=QV(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(J.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new Y(J.from(o),1,1)}replace(e,t=Y.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?Y.empty:t)}let i=Vx.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new Y(J.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=zV.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=zV.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=zV.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=zV.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new eH(this.$anchorCell.pos,this.$headCell.pos)}};$V.prototype.visible=!1,Vx.jsonID(`cell`,$V);var eH=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&XV(t,n)?new $V(t,n):Vx.near(n,1)}};new fS(`fix-tables`);function tH(e){let t=e.selection,n=qV(e),r=n.node(-1),i=n.start(-1),a=zV.get(r);return{...t instanceof $V?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function nH(e){return function(t,n){if(!KV(t))return!1;if(n){let r=WV(t.schema),i=tH(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function rH(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function iH(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?nH(e):function(t,n){if(!KV(t))return!1;if(n){let r=WV(t.schema),i=tH(t),a=t.tr,o=rH(`row`,i,r),s=rH(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}iH(`row`,{useDeprecatedLogic:!0}),iH(`column`,{useDeprecatedLogic:!0}),iH(`cell`,{useDeprecatedLogic:!0});function aH(e,t){let n=e.selection;if(!(n instanceof $V))return!1;if(t){let r=e.tr,i=WV(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new Y(i,0,0))}),r.docChanged&&t(r)}return!0}JD({ArrowLeft:sH(`horiz`,-1),ArrowRight:sH(`horiz`,1),ArrowUp:sH(`vert`,-1),ArrowDown:sH(`vert`,1),"Shift-ArrowLeft":cH(`horiz`,-1),"Shift-ArrowRight":cH(`horiz`,1),"Shift-ArrowUp":cH(`vert`,-1),"Shift-ArrowDown":cH(`vert`,1),Backspace:aH,"Mod-Backspace":aH,Delete:aH,"Mod-Delete":aH});function oH(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function sH(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof $V)return oH(n,r,Vx.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=lH(i,e,t);if(o==null)return!1;if(e==`horiz`)return oH(n,r,Vx.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=ZV(i,e,t),s;return s=a?Vx.near(a,1):t<0?Vx.near(n.doc.resolve(i.before(-1)),-1):Vx.near(n.doc.resolve(i.after(-1)),1),oH(n,r,s)}}}function cH(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof $V)o=a;else{let r=lH(i,e,t);if(r==null)return!1;o=new $V(n.doc.resolve(r))}let s=ZV(o.$headCell,e,t);return s?oH(n,r,new $V(o.$anchorCell,s)):!1}}function lH(e,t,n){if(!(e.state.selection instanceof Gx))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new fS(`tableColumnResizing`);function uH(e,t){let n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),a=Math.max(e.right,t.right)-i,o=r-n;return new DOMRect(i,n,a,o)}var dH=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(AV(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(kV(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(DV(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(NV(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(jV(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(OV(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(MV(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(PV(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}get virtualElement(){var e;let{selection:t}=this.editor.state,n=this.getReferencedVirtualElement?.call(this);if(n)return n;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let r=GA(this.view,t.from,t.to),i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(t instanceof qx){let e=this.view.nodeDOM(t.from),n=e.dataset.nodeViewWrapper?e:e.querySelector(`[data-node-view-wrapper]`);n&&(e=n),e&&(i={getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>[e.getBoundingClientRect()]})}if(t instanceof $V){let{$anchorCell:e,$headCell:n}=t,r=e?e.pos:n.pos,a=n?n.pos:e.pos,o=this.view.nodeDOM(r),s=this.view.nodeDOM(a);if(!o||!s)return;let c=o===s?o.getBoundingClientRect():uH(o.getBoundingClientRect(),s.getBoundingClientRect());i={getBoundingClientRect:()=>c,getClientRects:()=>[c]}}return i}constructor({editor:e,element:t,view:n,pluginKey:r=`bubbleMenu`,updateDelay:i=250,resizeDelay:a=60,shouldShow:o,appendTo:s,getReferencedVirtualElement:c,options:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:`absolute`,placement:`top`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:e,state:t,from:n,to:r})=>{let{doc:i,selection:a}=t,{empty:o}=a,s=!i.textBetween(n,r).length&&qO(t.selection),c=this.element.contains(document.activeElement);return!(!(e.hasFocus()||c)||o||s||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.editor.isDestroyed?this.destroy():this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(e,t)=>{let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.show(),this.updatePosition()):this.hide())},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=l?.scrollTarget??window,this.getReferencedVirtualElement=c,this.floatingUIOptions={...this.floatingUIOptions,...l},this.element.tabIndex=0,o&&(this.shouldShow=o),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener(`dragstart`,this.dragstartHandler),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;let e=this.virtualElement;e&&IV(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{this.isVisible&&!this.editor.isDestroyed&&this.element.isConnected&&(r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()))})}update(e,t){let{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}let i=!t?.selection.eq(e.state.selection),a=!t?.doc.eq(e.state.doc);this.updateHandler(e,i,a,t)}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,element:this.element,view:this.view,state:t,oldState:e,from:i,to:a})||!1}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener(`dragstart`,this.dragstartHandler),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},fH=e=>new lS({key:typeof e.pluginKey==`string`?new fS(e.pluginKey):e.pluginKey,view:t=>new dH({view:t,...e})});EM.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[fH({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var pH=class{getTextContent(e){return yA(e,{textSerializers:bA(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(AV(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(kV(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(DV(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(NV(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(jV(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(OV(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(MV(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(PV(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}constructor({editor:e,element:t,view:n,pluginKey:r=`floatingMenu`,updateDelay:i=250,resizeDelay:a=60,options:o,appendTo:s,shouldShow:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:r,empty:i}=n,a=r.depth===1,o=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&r.parent.childCount===0&&!this.getTextContent(r.parent);return!(!e.hasFocus()||!i||!a||!o||!this.editor.isEditable)},this.floatingUIOptions={strategy:`absolute`,placement:`right`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.updatePosition(),this.show()):this.hide())},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=o?.scrollTarget??window,this.floatingUIOptions={...this.floatingUIOptions,...o},this.element.tabIndex=0,c&&(this.shouldShow=c),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,view:this.view,state:t,oldState:e,from:i,to:a})}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){var e;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let{selection:t}=this.editor.state,n=GA(this.view,t.from,t.to);IV({getBoundingClientRect:()=>n,getClientRects:()=>[n]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate())})}update(e,t){let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);this.updateHandler(e,n,r,t)}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},mH=e=>new lS({key:typeof e.pluginKey==`string`?new fS(e.pluginKey):e.pluginKey,view:t=>new pH({view:t,...e})});EM.create({name:`floatingMenu`,addOptions(){return{element:null,options:{},pluginKey:`floatingMenu`,updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta(this.options.pluginKey,`updatePosition`),!0)}},addProseMirrorPlugins(){return this.options.element?[mH({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function hH(e,t){return e??new fS(t)}var gH=typeof window<`u`?U.useLayoutEffect:U.useEffect,_H=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),vH=new Set(`animationIterationCount.aspectRatio.borderImageOutset.borderImageSlice.borderImageWidth.columnCount.columns.fillOpacity.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineClamp.lineHeight.opacity.order.orphans.scale.stopOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeOpacity.strokeWidth.tabSize.widows.zIndex.zoom`.split(`.`)),yH=new Set([`children`,`className`,`style`]),bH=new Set([`tabIndex`]),xH=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),SH={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function CH(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function wH(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function TH(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||xH.has(e)}function EH(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function DH(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:SH[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function OH(e,t){let n=t.defaultPrevented,r=!1,i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:()=>void 0},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,t.preventDefault()}},stopPropagation:{value:()=>{r=!0,t.stopPropagation()}}}),i}function kH(e){return bH.has(e)}function AH(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function jH(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function MH(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||vH.has(e)?String(t):`${t}px`}function NH(e,t){_H.has(t)||e.style.removeProperty(EH(t))}function PH(e,t,n){_H.has(t)||e.style.setProperty(EH(t),MH(t,n))}function FH(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(yH.has(r)||!TH(r)||CH(r,t[r])||CH(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=wH(r);a==null||a===!1?(kH(r)&&jH(e,r),e.removeAttribute(o)):a===!0?(kH(r)&&AH(e,r,!0),e.setAttribute(o,``)):kH(r)?AH(e,r,a):e.setAttribute(o,String(a))})}function IH(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function LH(e,t,n){let r=t??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(t=>{let n=r[t],a=i[t];n!==a&&(a==null?NH(e,t):PH(e,t,a))})}function RH(e,t,n){t.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)});let r=[];return Object.entries(n).forEach(([t,n])=>{if(!CH(t,n))return;let{eventName:i,options:a}=DH(t),o=t=>{n(OH(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function zH(e,t){let n=(0,U.useRef)({}),r=(0,U.useRef)([]);gH(()=>{let i=n.current;return IH(e,i.className,t.className),LH(e,i.style,t.style),FH(e,i,t),r.current=RH(e,r.current,t),n.current=t,()=>{r.current.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)}),r.current=[]}},[e,t])}var BH=U.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,getReferencedVirtualElement:o,options:s,children:c,...l},u)=>{let d=(0,U.useRef)(document.createElement(`div`)),f=(0,U.useRef)(hH(e,`bubbleMenu`)).current;zH(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=gP(),m=t||p,h={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:a,getReferencedVirtualElement:o,options:s},g=(0,U.useRef)(h);g.current=h;let[_,v]=(0,U.useState)(!1),y=(0,U.useRef)(!0);return(0,U.useEffect)(()=>{if(m?.isDestroyed)return;if(!m){console.warn(`BubbleMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=d.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=fH({...g.current,editor:m,element:e});m.registerPlugin(t);let n=g.current.pluginKey;return y.current=!0,v(!0),()=>{v(!1),m.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[m]),(0,U.useEffect)(()=>{_&&m&&!m.isDestroyed&&(y.current?y.current=!1:m.view.dispatch(m.state.tr.setMeta(f,{type:`updateOptions`,options:g.current})))},[_,m,n,r,a,s,i,o,f]),(0,De.createPortal)(c,d.current)});U.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,options:o,children:s,...c},l)=>{let u=(0,U.useRef)(document.createElement(`div`)),d=(0,U.useRef)(hH(e,`floatingMenu`)).current;zH(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=gP(),p=t||f,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:a,options:o},h=(0,U.useRef)(m);h.current=m;let[g,_]=(0,U.useState)(!1),v=(0,U.useRef)(!0);return(0,U.useEffect)(()=>{if(p?.isDestroyed)return;if(!p){console.warn(`FloatingMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=u.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=mH({...h.current,editor:p,element:e});p.registerPlugin(t);let n=h.current.pluginKey;return v.current=!0,_(!0),()=>{_(!1),p.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[p]),(0,U.useEffect)(()=>{g&&p&&!p.isDestroyed&&(v.current?v.current=!1:p.view.dispatch(p.state.tr.setMeta(d,{type:`updateOptions`,options:h.current})))},[g,p,n,r,a,o,i,d]),(0,De.createPortal)(s,u.current)});function VH({editor:e}){let t=yv(),n=(0,U.useRef)(null),r=(0,U.useRef)(null),[i]=(0,U.useState)(()=>document.createElement(`div`)),[a,o]=(0,U.useState)(),s=uP({editor:e,selector:({editor:e})=>({bold:e.isActive(`bold`),italic:e.isActive(`italic`),heading:e.isActive(`heading`,{level:2}),bullets:e.isActive(`bulletList`),numbers:e.isActive(`orderedList`)})}),c=(0,U.useMemo)(()=>({strategy:`fixed`,placement:`top`,offset:8,scrollTarget:a,flip:{padding:8,boundary:a},shift:{padding:8,boundary:a},hide:{boundary:a}}),[a]),l=(0,U.useCallback)(({view:t,state:n,from:i,to:a,element:o})=>(r.current!==`${i}:${a}`&&(r.current=null),!r.current&&e.isEditable&&!n.selection.empty&&!!n.doc.textBetween(i,a).trim()&&(t.hasFocus()||o.contains(document.activeElement))),[e]),u=(0,U.useCallback)(()=>{let{from:t,to:n}=e.state.selection;r.current=`${t}:${n}`,e.view.focus(),e.commands.setMeta(`editorFormatting`,`hide`)},[e]);(0,U.useEffect)(()=>{document.body.append(i),o(e.view.dom.closest(`.note-notes-pane`)??void 0);let t=t=>{t.altKey&&t.key===`F10`&&!e.state.selection.empty?(t.preventDefault(),r.current=null,e.commands.setMeta(`editorFormatting`,`show`),n.current?.querySelector(`button`)?.focus()):t.key===`Escape`&&n.current?.isConnected&&(t.preventDefault(),t.stopPropagation(),u())},a=e.view.dom,s=()=>{r.current=null};return a.addEventListener(`keydown`,t),e.on(`selectionUpdate`,s),()=>{a.removeEventListener(`keydown`,t),e.off(`selectionUpdate`,s),i.remove()}},[e,u,i]);let d=[{label:W(`Bold`),icon:tg,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:W(`Italic`),icon:$g,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:W(`Heading`),icon:Gg,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:W(`Bulleted list`),icon:d_,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:W(`Numbered list`),icon:l_,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,K.jsx)(BH,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,K.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":W(`Text formatting`),dir:ht(t),onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),u();return}if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let n=Array.from(e.currentTarget.querySelectorAll(`button`)),r=n.indexOf(document.activeElement),i=(e.key===`ArrowRight`?1:-1)*(ht(t)===`rtl`?-1:1);n[e.key===`Home`?0:e.key===`End`?n.length-1:(r+i+n.length)%n.length]?.focus()},onBlur:t=>{!t.currentTarget.contains(t.relatedTarget)&&t.relatedTarget!==e.view.dom&&e.commands.setMeta(`editorFormatting`,`hide`)},children:d.map(({label:t,icon:n,active:r,shortcut:i,run:a},o)=>(0,K.jsx)(`button`,{type:`button`,tabIndex:o===0?0:-1,"aria-label":t,title:t,"aria-pressed":r,"aria-keyshortcuts":i,onClick:t=>{e.view.dispatch(pO(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,K.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var HH=class{text=``;times=[];update(e,t){let n=0,r=0;for(;n<this.text.length&&n<e.length&&this.text[n]===e[n];)n++;for(;r<this.text.length-n&&r<e.length-n&&this.text[this.text.length-1-r]===e[e.length-1-r];)r++;return this.times=[...this.times.slice(0,n),...Array(e.length-n-r).fill(t),...r?this.times.slice(-r):[]],this.text=e,[...e.matchAll(/\S+/g)].map(e=>({from:e.index,to:e.index+e[0].length,born:this.times[e.index]}))}},UH=new fS(`streamingInk`),WH=e=>Math.max(0,Math.min(1,e)),GH=Qt(.18,.8,.25,1),KH=EM.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new HH;return[new lS({key:UH,state:{init:()=>({live:!1,reduced:!1,decorations:qE.empty}),apply(t,n){let r=t.getMeta(UH)??n;if(!r.live)return e.update(``,0),{...r,decorations:qE.empty};if(!t.docChanged&&r.live===n.live&&r.reduced===n.reduced)return n;let i=``,a=[];t.doc.descendants((e,t)=>{e.isTextblock&&(i+=`
-`),e.isText&&(a.push({from:i.length,to:i.length+e.text.length,pos:t}),i+=e.text)});let o=performance.now(),s=[],c=0;for(let t of e.update(i,o)){for(;c<a.length&&a[c].to<=t.from;)c++;if(!(r.reduced||o-t.born>=420))for(let e=c;e<a.length&&a[e].from<t.to;e++){let n=a[e];s.push(WE.inline(n.pos+Math.max(0,t.from-n.from),n.pos+Math.min(n.to,t.to)-n.from,{class:`summary-ink`,"data-ink-born":String(t.born)}))}}return{...r,decorations:qE.create(t.doc,s)}}},props:{decorations:e=>UH.getState(e).decorations},view(e){let t=0,n,r=142,i=a=>{cancelAnimationFrame(t);let o=e.dom.closest(`.summary-surface`);if(!o)return;let s=o.querySelector(`.summary-wash`),c=o.querySelector(`.summary-heading-bar`),{live:l,reduced:u}=UH.getState(e.state),d=l&&!e.state.doc.textContent.trim();if(o.dataset.waiting=String(d),s.replaceChildren(),(!l||d)&&(n=void 0),l&&!d&&n===void 0&&(n=a),l&&!d&&a-n<260){let t=e.dom.querySelector(`h1,h2,h3`);if(t){let e=document.createRange();e.selectNodeContents(t),r=e.getBoundingClientRect().width}else r=142}let f=d?0:!l||u?1:WH((a-(n??a))/260),p=1-(1-f)**3;e.dom.style.opacity=String(d||!l||u?1:p),c.hidden=!l||!d&&f===1,c.style.width=`${142+(r-142)*GH(f)}px`,c.style.transform=`scaleY(${1-.72*GH(f)})`,c.style.opacity=String(d?1:1-p);let m=l&&!d&&f<1;if(l&&!u){let t=o.getBoundingClientRect(),n=o.querySelector(`filter`).id;for(let r of e.dom.querySelectorAll(`[data-ink-born]`)){let e=a-Number(r.dataset.inkBorn);if(r.style.setProperty(`--ink-fresh`,`${(1-WH(e/420))*100}%`),e>=420)continue;m=!0;let i=document.createRange();i.selectNodeContents(r);for(let r of i.getClientRects()){let i=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),a=r.width+4,o=GH(WH(e/260));i.setAttribute(`transform`,`translate(${r.left-t.left-2+a*.12*(1-o)} ${r.top-t.top}) scale(${o} 1)`),i.setAttribute(`opacity`,String(.11*(1-WH((e-160)/260))*p)),i.setAttribute(`filter`,`url(#${n})`),i.innerHTML=`<rect y="6" width="${a*.82}" height="12" rx="8"/><circle cx="${a-4}" cy="12" r="4"/>`,s.append(i)}}}m&&(t=requestAnimationFrame(i))};return{update:()=>i(performance.now()),destroy:()=>cancelAnimationFrame(t)}}})]}}),qH=vM.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function JH(e){let t=(0,U.useId)(),n=gv(),r=(0,U.useRef)(e.onChange),i=(0,U.useRef)(e.onBlur);r.current=e.onChange,i.current=e.onBlur;let a=(0,U.useRef)(e.markdown),o=mP({extensions:[kz.configure({heading:{levels:[1,2,3]},code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,strike:!1,underline:!1,trailingNode:!1,link:{openOnClick:!1,autolink:!0,defaultProtocol:`https`}}),Az.configure({placeholder:e.placeholder??``}),qH,KH],content:Re(e.markdown,{streaming:e.streaming}),editable:e.editable??!0,shouldRerenderOnTransaction:!1,editorProps:{attributes:{dir:`auto`,"data-testid":e.testId,class:`note-prose outline-none ${e.className??``}`,spellcheck:`true`,role:`textbox`,"aria-label":e.label,"aria-multiline":`true`,"aria-readonly":String(e.editable===!1)}},onUpdate:({editor:e})=>{let t=Je(e.getJSON());t!==a.current&&(a.current=t,r.current?.(t))},onBlur:()=>i.current?.()});return(0,U.useLayoutEffect)(()=>{if(!o||o.isDestroyed)return;a.current=e.markdown;let t=o.chain().setMeta(UH,{live:!!e.streaming,reduced:n});(Je(o.getJSON())!==e.markdown||e.streaming)&&t.setContent(Re(e.markdown,{streaming:e.streaming}),{emitUpdate:!1}),t.run()},[o,e.markdown,e.streaming,n]),(0,U.useEffect)(()=>{if(!o||o.isDestroyed||!e.focus?.match)return;let t,n=0,r=requestAnimationFrame(()=>{if(o.isDestroyed)return;let r=Array.from(o.view.dom.querySelectorAll(`p,h1,h2,h3`)),i=r[ft(r.map(e=>e.textContent??``),e.focus.match)];if(!i)return;i.scrollIntoView({block:`center`});let a=document.createRange();a.selectNodeContents(i),t=new Highlight(a),CSS.highlights.set(`citation-target`,t),n=window.setTimeout(()=>CSS.highlights.delete(`citation-target`),2400)});return()=>{cancelAnimationFrame(r),clearTimeout(n),CSS.highlights.get(`citation-target`)===t&&CSS.highlights.delete(`citation-target`)}},[o,e.focus?.seq]),(0,U.useEffect)(()=>{o&&!o.isDestroyed&&o.setEditable(e.editable??!0,!1)},[o,e.editable]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,K.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,K.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,K.jsx)(`feColorMatrix`,{values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})}),(0,K.jsx)(`g`,{className:`summary-wash`})]}),(0,K.jsx)(sP,{editor:o}),(0,K.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,K.jsx)(VH,{editor:o})]})}function YH(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.kind}:${e.id}`;return!n.has(t)&&(n.add(t),!0)})}function XH(e){return e.startsWith(`/note/`)?{panel:!0,fresh:!1,chips:[{kind:`meeting`,id:e.slice(6)}]}:e.startsWith(`/folder/`)?{panel:!1,fresh:!1,chips:[{kind:`folder`,id:e.slice(8)}]}:{panel:!1,fresh:e===`/chat`||e.startsWith(`/chat/`),chips:[]}}function ZH(e,t){let n=/(?:^|\s)@([^@\n]{0,80})$/.exec(e.slice(0,t));return n?{start:t-n[1].length-1,end:t,query:n[1]}:void 0}var QH=4e3;function $H(e,t){let n=eU(e);return n[Math.min(Math.max(0,t),n.length-1)]}function eU(e){if(!e||e.kind===`loading`)return[W(`Thinking…`),W(`Still thinking…`)];if(e.kind===`searching`)return[W(`Searching your meetings…`),W(`Still searching your meetings…`)];let t=W(`Still reading. Your answer comes next.`);if(e.title!==void 0||!e.meetings){let n=e.title?.trim()||W(`Untitled meeting`);return[W(`Reading {title}…`,{title:n}),W(`Still reading {title}…`,{title:n}),t]}return[W(`Reading {count} meetings…`,{count:e.meetings}),W(`Still reading {count} meetings…`,{count:e.meetings}),t]}var tU=864e5,nU=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/tU);function rU(e,t={}){let n=new Date(e),r=nU(e);if(r===0)return W(`Today`);if(r===1)return W(`Yesterday`);if(r===-1)return W(`Tomorrow`);if(t.weekday&&r>1&&r<7)return n.toLocaleDateString(bt(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(bt(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function iU(e){let t=nU(e);if(t===0||t===1)return rU(e);let n=new Date(e);return n.toLocaleDateString(bt(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var aU=e=>new Date(e).toLocaleTimeString(bt(),{hour:`numeric`,minute:`2-digit`}),oU=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},sU=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},cU=(e,t)=>t.startsWith(e)?e:t.slice(0,sU(t,oU(e,t))),lU=class{shown;target;since=0;constructor(e,t){this.target=e,this.shown=t?``:e}get settled(){return this.shown===this.target}update(e,t,n,r=!1){let i=this.settled;this.target=e,!t||r?this.shown=e:(this.shown=cU(this.shown,e),i&&(this.since=n))}tick(e){let t=this.target.length-this.shown.length;if(t<=0){this.since=e;return}let n=Math.min(5,250/t),r=Math.min(t,Math.floor((e-this.since)/n));r<=0||(this.shown=this.target.slice(0,sU(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function uU(e,t,n={}){let r=gv(),i=t&&!r,[a]=(0,U.useState)(()=>new lU(e,i&&!n.startShown)),[o,s]=(0,U.useState)(a.shown),c=(0,U.useRef)(n.minCommitMs??0);return c.current=n.minCommitMs??0,(0,U.useEffect)(()=>{if(a.update(e,i,performance.now()),s(a.shown),a.settled)return;let t=0,n=performance.now(),r=e=>{a.tick(e),(a.settled||e-n>=c.current)&&(n=e,s(a.shown)),a.settled||(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[a,e,i]),i?cU(o,e):e}var dU={};function fU(e,t){let n=U.useRef(dU);return n.current===dU&&(n.current=e(t)),n}var pU=[],mU=void 0;function hU(){return mU}function gU(e){pU.push(e)}function _U(e){let t=(t,n)=>{let r=fU(yU).current,i;try{mU=r;for(let e of pU)e.before(r);i=e(t,n);for(let e of pU)e.after(r);r.didInitialize=!0}finally{mU=void 0}return i};return t.displayName=e.displayName||e.name,t}function vU(e){return U.forwardRef(_U(e))}function yU(){return{didInitialize:!1}}function bU(){}var xU=Object.freeze([]),SU=Object.freeze({});function CU(e){U.useEffect(e,xU)}var wU=0,TU=class e{static create(){return new e}currentId=wU;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=wU,t()},e)}isStarted(){return this.currentId!==wU}clear=()=>{this.currentId!==wU&&(clearTimeout(this.currentId),this.currentId=wU)};disposeEffect=()=>this.clear};function EU(){let e=fU(TU.create).current;return CU(e.disposeEffect),e}var Q=typeof document<`u`?U.useLayoutEffect:()=>{};function DU(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:OU,platform:kU,maxTouchPoints:AU}=DU(),jU=OU.toLowerCase(),MU=kU.toLowerCase(),NU=/^i(os$|p)/.test(MU)||MU===`macintel`&&AU>1,PU=`android`,FU=MU===PU||jU.includes(PU),IU=!NU&&MU.startsWith(`mac`);MU.startsWith(`win`),!FU&&/^(linux|chrome os)/.test(MU);var LU=IU||NU,RU=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!RU&&jU.includes(`firefox`),!RU&&jU.includes(`chrom`);var zU=LU,BU=/jsdom|happydom/.test(jU);function VU(e){e.preventDefault(),e.stopPropagation()}function HU(e){return`nativeEvent`in e}function UU(e){return e.pointerType===``&&e.isTrusted?!0:FU&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function WU(e){return BU?!1:!FU&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(FU||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function GU(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function KU(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function qU(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function $(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&PB(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function JU(e,t){let n=e;for(;n;){if(MB(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(PB(n)?n.host:null)}return null}function YU(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var XU=`data-base-ui-focusable`,ZU=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,QU=`ArrowLeft`,$U=`ArrowRight`,eW=`ArrowUp`,tW=`ArrowDown`,nW=`data-starting-style`,rW=`data-ending-style`,iW={[nW]:``},aW={[rW]:``},oW={transitionStatus(e){return e===`starting`?iW:e===`ending`?aW:null}},sW=`data-open`,cW=`data-closed`,lW=`data-anchor-hidden`,uW=`data-popup-open`,dW=`data-pressed`,fW={[uW]:``},pW={[uW]:``,[dW]:``},mW={[sW]:``},hW={[cW]:``},gW={[lW]:``},_W={open(e){return e?fW:null}},vW={open(e){return e?pW:null}},yW={open(e){return e?mW:hW},anchorHidden(e){return e?gW:null}},bW={...yW,...oW},xW=`data-trigger-disabled`;function SW(e,t){if(!MB(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(xW);for(let[,e]of t.entries())if($(e,n))return!e.hasAttribute(xW);return!1}function CW(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function wW(e){return e.matches(`html,body`)}function TW(e){return NB(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function EW(e){return JU(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ZU}`)!=null}function DW(e){return e?e.getAttribute(`role`)===`combobox`&&TW(e):!1}function OW(e){if(!e||BU)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function kW(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function AW(e,t){return t!=null&&!GU(t)?0:typeof e==`function`?e():e}function jW(e,t,n){let r=AW(e,n);return typeof r==`number`?r:r?.[t]}function MW(e){return typeof e==`function`?e():e}function NW(e,t){return t||e===`click`||e===`mousedown`}function PW(e){return e?.includes(`mouse`)&&e!==`mousedown`}function FW(e,t,n,r){let i=!1,a=!1,o=r??SU;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function IW(e,t,n){let r=n??SU;return{reason:e,event:t??new Event(`base-ui`),...r}}var LW=`none`,RW=`trigger-press`,zW=`trigger-hover`,BW=`trigger-focus`,VW=`outside-press`,HW=`item-press`,UW=`close-press`,WW=`focus-out`,GW=`escape-key`,KW=`list-navigation`,qW=`keyboard`,JW=`pointer`,YW=`cancel-open`,XW=`sibling-open`,ZW=`imperative-action`;function QW(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function $W(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function eG(e,t,n,r){let i=fU(nG).current;return rG(i,e,t,n,r)&&aG(i,[e,t,n,r]),i.callback}function tG(e){let t=fU(nG).current;return iG(t,e)&&aG(t,e),t.callback}function nG(){return{callback:null,cleanup:null,refs:[]}}function rG(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function iG(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function aG(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function oG(e){let t=fU(sG,e).current;return t.next=e,Q(t.effect),t}function sG(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var cG={...U},lG=cG.useInsertionEffect,uG=lG&&lG!==cG.useLayoutEffect?lG:e=>e();function dG(e){let t=fU(fG).current;return t.next=e,uG(t.effect),t.trampoline}function fG(){let e={next:void 0,callback:pG,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function pG(){}var mG=null;globalThis.requestAnimationFrame;var hG=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},gG=class e{static create(){return new e}static request(e){return hG.request(e)}static cancel(e){return hG.cancel(e)}currentId=mG;request(e){this.cancel(),this.currentId=hG.request(()=>{this.currentId=mG,e()})}cancel=()=>{this.currentId!==mG&&(hG.cancel(this.currentId),this.currentId=mG)};disposeEffect=()=>this.cancel};function _G(){let e=fU(gG.create).current;return CU(e.disposeEffect),e}function vG(e){return e?.ownerDocument||document}var yG={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},bG={...yG,position:`fixed`,margin:0,top:0,left:0};({...yG});var xG=U.forwardRef(function(e,t){let[n,r]=U.useState();Q(()=>{zU&&RU&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,K.jsx)(`span`,{...e,ref:t,style:bG,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function SG(e,t){return t<0||t>=e.length}function CG(e,t){return EG(e.current,{disabledIndices:t})}function wG(e,t){return EG(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function TG(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>EG(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:SG(e,u)?-1:u,wrapped:d}}function EG(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&DG(e,a,r));return a}function DG(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!kG(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function OG(e){return e.visibility===`hidden`||e.visibility===`collapse`}function kG(e,t=e?KB(e):null){return!e||!e.isConnected||!t||OG(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var AG=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function jG(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return PB(n)?n.host:null}function MG(e){for(let t of Array.from(e.children))if(OB(t)===`summary`)return t;return null}function NG(e,t){let n=MG(t);return!!n&&(e===n||$(n,e))}function PG(e){let t=e?OB(e):``;return e!=null&&e.matches(AG)&&(t!==`summary`||e.parentElement!=null&&OB(e.parentElement)===`details`&&MG(e.parentElement)===e)&&(t!==`details`||MG(e)==null)&&(t!==`input`||e.type!==`hidden`)}function FG(e){if(!PG(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=jG(t)){let n=t!==e,r=OB(t)===`slot`;if(t.hasAttribute(`inert`)||n&&OB(t)===`details`&&!t.open&&!NG(e,t)||t.hasAttribute(`hidden`)||!r&&!IG(t,n))return!1}return!0}function IG(e,t){let n=KB(e);return t?n.display!==`none`:kG(e,n)}function LG(e){let t=e.tabIndex;if(t<0){let t=OB(e);if(t===`details`||t===`audio`||t===`video`||NB(e)&&e.isContentEditable)return 0}return t}function RG(e){if(OB(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function zG(e,t){let n=RG(e);if(!n)return!0;let r=t.find(e=>{let t=RG(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=RG(e);return t?.name===n.name&&t.form===n.form})===n}function BG(e){if(NB(e)&&OB(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return NB(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function VG(e,t){BG(e).forEach(e=>{PG(e)&&t.push(e),VG(e,t)})}function HG(e,t,n){BG(e).forEach(e=>{NB(e)&&e.matches(t)&&n.push(e),HG(e,t,n)})}function UG(e){return FG(e)&&LG(e)>=0}function WG(e){let t=[];return VG(e,t),t.filter(FG)}function GG(e){let t=WG(e);return t.filter(e=>LG(e)>=0&&zG(e,t))}function KG(e,t){let n=GG(e),r=n.length;if(r===0)return;let i=qU(vG(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function qG(e){return KG(vG(e).body,1)||e}function JG(e){return KG(vG(e).body,-1)||e}function YG(e,t,n){if(!e)return null;let r=[];VG(vG(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(FG);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!$(n,o)&&UG(o)&&zG(o,a))return o}return r[i]}function XG(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function ZG(e){GG(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function QG(e){let t=[];HG(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function $G(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...$G(e,t.id,n)])}function eK(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function tK(e){return`data-base-ui-${e}`}var nK=0;function rK(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(nK);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),bU;let o=requestAnimationFrame(a);return nK=o,()=>{nK===o&&(cancelAnimationFrame(o),nK=0)}}var iK=`data-base-ui-inert`,aK=new WeakMap,oK=new WeakSet,sK=new WeakMap,cK=0;function lK(e){return e?PB(e)?e.host:lK(e.parentNode):null}var uK=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=lK(t);return e.contains(n)?n:null}).filter(e=>e!=null),dK=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},fK=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{OB(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function pK(e,t,n,{mark:r=!0}){let i=uK(t,e),a=r?fK(t,dK(i),new Set(i)):[],o=[],s=[];if(n){let e=uK(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);fK(t,dK(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(aK.get(e)||0)+1;aK.set(e,r),o.push(e),r===1&&n&&oK.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(sK.get(e)||0)+1;sK.set(e,t),s.push(e),t===1&&e.setAttribute(iK,``)}),cK+=1,()=>{o.forEach(e=>{let t=(aK.get(e)||0)-1;aK.set(e,t),t||(oK.has(e)||e.removeAttribute(`aria-hidden`),oK.delete(e))}),r&&s.forEach(e=>{let t=(sK.get(e)||0)-1;sK.set(e,t),t||e.removeAttribute(iK)}),--cK,cK||(aK=new WeakMap,oK=new WeakSet,sK=new WeakMap)}}function mK(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=vG(e[0]).body;return pK(e,i,n,{mark:r})}function hK(){let[,e]=U.useState({});return U.useCallback(()=>{e({})},[])}var gK=0;function _K(e,t=`mui`){let n=U.useRef(void 0),r=hK(),i=e??n.current;return U.useEffect(()=>{n.current??(gK+=1,n.current=`${t}-${gK}`,e??r())},[e,t,r]),i}var vK=cG.useId;function yK(e,t){if(vK!==void 0){let n=vK();return e??(t?`${t}-${n}`:n)}return _K(e,t)}var bK=19;function xK(e){return bK>=e}function SK(e){if(!U.isValidElement(e))return null;let t=e,n=t.props;return(xK(19)?n?.ref:t.ref)??null}function CK(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function wK(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function TK(e,t){return typeof e==`function`?e(t):e}function EK(e,t){return typeof e==`function`?e(t):e}var DK={};function OK(e,t,n,r,i){if(!n&&!r&&!i&&!e)return AK(t);let a=AK(e);return t&&(a=jK(a,t)),n&&(a=jK(a,n)),r&&(a=jK(a,r)),i&&(a=jK(a,i)),a}function kK(e){if(e.length===0)return DK;if(e.length===1)return AK(e[0]);let t=AK(e[0]);for(let n=1;n<e.length;n+=1)t=jK(t,e[n]);return t}function AK(e){return FK(e)?{...e(DK)}:MK(e)}function jK(e,t){return FK(t)?t(e):NK(e,t)}function MK(e){let t={...e};for(let e in t){let n=t[e];PK(e,n)&&(t[e]=LK(n))}return t}function NK(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=CK(e.style,r);break;case`className`:e[n]=zK(e.className,r);break;default:e[n]=PK(n,r)?IK(e[n],r):r}}return e}function PK(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function FK(e){return typeof e==`function`}function IK(e,t){return t?e?(...n)=>{let r=n[0];if(BK(r)){let i=r;RK(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:LK(t):e}function LK(e){return e&&((...t)=>{let n=t[0];return BK(n)&&RK(n),e(...t)})}function RK(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zK(e,t){return t?e?t+` `+e:t:e}function BK(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function VK(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=GK(r));let i=HK(t,n,r);if(n.enabled===!1)return null;let a=n.state??SU;return KK(e,r,i,a)}function HK(e,t,n){let{className:r,style:i}=e,{state:a=SU,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?TK(r,a):void 0,d=l?EK(i,a):void 0,f=l?wK(a,c):SU,p=l&&s?UK(s):void 0,m=l?CK(f,p)??{}:SU;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?tG([m.ref,SK(n),...o]):eG(m.ref,SK(n),o):eG(null,null)),l?(u!==void 0&&(m.className=zK(m.className,u)),d!==void 0&&(m.style=CK(m.style,d)),m):SU}function UK(e){return Array.isArray(e)?kK(e):OK(void 0,e)}var WK=Symbol.for(`react.lazy`);function GK(e){if(e?.$$typeof!==WK)return e;let t=U.Children.toArray(e)[0];return U.isValidElement(t)?t:e}function KK(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=OK(n,t.props);return e.ref=n.ref,U.cloneElement(t,e)}return qK(e,n)}function qK(e,t){return e===`button`?(0,U.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,U.createElement)(`img`,{alt:``,...t,key:t.key}):U.createElement(e,t)}var JK={style:{transition:`none`}},YK=`data-base-ui-click-trigger`,XK=`data-base-ui-swipe-ignore`,ZK=`data-swipe-ignore`,QK=`[${XK}]`,$K=`[${ZK}]`,eq={fallbackAxisSide:`none`},tq={fallbackAxisSide:`end`},nq={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},rq=U.createContext(null),iq=()=>U.useContext(rq),aq=tK(`portal`);function oq(e={}){let{ref:t,container:n,componentProps:r=SU,elementProps:i}=e,a=yK(),o=iq()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=dG(e=>{e!==null&&u(e)}),f=U.useRef(null);Q(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(jB(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=VK(`div`,r,{ref:[t,d],props:[{id:a,[aq]:``},i]}),m=s&&p?De.createPortal(p,s):null;return{node:l,nodeId:U.isValidElement(p)?p.props.id:void 0,subtree:m}}var sq=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=oq({container:o,ref:t,componentProps:e,elementProps:c}),f=U.useRef(null),p=U.useRef(null),m=U.useRef(null),h=U.useRef(null),[g,_]=U.useState(null),v=U.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;U.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&XG(e)&&(e.type===`focusin`?v.current&&=(QG(l),!1):(ZG(l),v.current=!0))}return $W(QW(l,`focusin`,e,!0),QW(l,`focusout`,e,!0))},[l,y]),Q(()=>{l&&b===!0&&v.current&&(QG(l),v.current=!1)},[b,l]);let S=U.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,K.jsxs)(U.Fragment,{children:[d,(0,K.jsxs)(rq.Provider,{value:S,children:[x&&l&&(0,K.jsx)(xG,{"data-type":`outside`,ref:f,onFocus:e=>{XG(e,l)?m.current?.focus():JG(g?g.domReference:null)?.focus()}}),x&&l&&(0,K.jsx)(`span`,{role:s,"aria-owns":u,style:nq}),l&&De.createPortal(a,l),x&&l&&(0,K.jsx)(xG,{"data-type":`outside`,ref:p,onFocus:e=>{XG(e,l)?h.current?.focus():(qG(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,FW(`focus-out`,e.nativeEvent)))}})]})]})});function cq(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var lq=class{nodesRef={current:[]};events=cq();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},uq=U.createContext(null),dq=U.createContext(null),fq=()=>U.useContext(uq)?.id||null,pq=e=>{let t=U.useContext(dq);return e??t};function mq(e){let t=yK(),n=pq(e),r=fq();return Q(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function hq(e){let{children:t,id:n}=e,r=fq();return(0,K.jsx)(uq.Provider,{value:U.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function gq(e){let{children:t,externalTree:n}=e,r=fU(()=>n??new lq).current;return(0,K.jsx)(dq.Provider,{value:r,children:t})}function _q(e){return e==null?e:`current`in e?e.current:e}function vq(e,t){let n=kB(YU(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(UU(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var yq=20,bq=[];function xq(){bq=bq.filter(e=>e.deref()?.isConnected)}function Sq(e){xq(),e&&OB(e)!==`body`&&(bq.push(new WeakRef(e)),bq.length>yq&&(bq=bq.slice(-20)))}function Cq(){return xq(),bq[bq.length-1]?.deref()}function wq(e){return e?UG(e)?e:GG(e)[0]||e:null}function Tq(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=WG(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return UG(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Eq(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=dG(()=>b.current.floatingContext?.nodeId),S=i===!1,C=DW(_)&&S,w=oG(i),T=oG(a),E=oG(o),D=oG(u),O=oG(g),k=pq(m),A=iq(),j=U.useRef(!1),M=U.useRef(!1),N=U.useRef(!1),P=U.useRef(null),F=U.useRef(``),I=U.useRef(``),L=U.useRef(null),R=U.useRef(null),z=eG(L,p,A?.beforeInsideRef),B=eG(R,A?.afterInsideRef),ee=EU(),te=EU(),ne=_G(),re=A!=null,V=kW(v),ie=dG((e=V)=>e?GG(e):[]),ae=dG(()=>h?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&$(V,qU(vG(V)))&&ie().length===0&&!C&&VU(e)}return QW(vG(V),`keydown`,e)},[r,V,c,C,ie]),U.useEffect(()=>{if(r||!g)return;let e=vG(V);function t(){N.current=!1}function n(e){let t=YU(e),n=ae(),r=$(v,t)||$(_,t)||$(A?.portalNode,t)||n.some(e=>e===t||$(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,JU(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,te.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return $W(QW(e,`pointerdown`,n,!0),QW(e,`pointerup`,t,!0),QW(e,`pointercancel`,t,!0),QW(e,`keydown`,i,!0),t)},[r,v,_,V,g,A,te,ae]),U.useEffect(()=>{if(r||!l)return;let e=vG(V);function n(){M.current=!0,te.start(0,()=>{M.current=!1})}function i(e){let t=YU(e);UG(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=YU(n);c&&r==null&&a!=null&&$(v,a)&&Sq(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=ae(),p=r?.hasAttribute(tK(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,_q(f),_q(d)].includes(r),m=!($(_,r)||$(v,r)||$(r,v)||$(A?.portalNode,r)||u.some(e=>e===r||$(e,r))||l.hasMatchingElement(e=>$(e,r))||p||k&&($G(k.nodesRef.current,o).find(e=>$(e.context?.elements.floating,r)||$(e.context?.elements.domReference,r))||eK(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,kW(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&V&&Tq(V),s&&i!==_&&!kG(a)&&qU(e)===e.body){if(NB(V)&&(V.focus(),s===`popup`)){ne.request(()=>{V.focus()});return}let e=ie(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;NB(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==Cq())&&(j.current=!0,t.setOpen(!1,FW(WW,n)))})}function o(){N.current||(b.current.insideReactTree=!0,ee.start(0,()=>{b.current.insideReactTree=!1}))}let u=NB(_)?_:null;if(v||u)return $W(u&&QW(u,`focusout`,a),u&&QW(u,`pointerdown`,n),v&&QW(v,`focusin`,i),v&&QW(v,`focusout`,a),v&&A&&QW(v,`focusout`,o,!0))},[r,_,v,V,c,k,A,t,l,s,ie,C,x,b,ee,te,ne,d,f,ae]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${tK(`portal`)}]`)||[]),t=(k?eK(k.nodesRef.current,x()):[]).find(e=>DW(e.context?.elements.domReference||null))?.context?.elements.domReference,n=mK([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ae(),t,_q(f),_q(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=mK([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,ae]),Q(()=>{if(!g||r||!NB(V))return;F.current=``,I.current=``;let e=vG(V),t=qU(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||$(V,t))return;let i=null,a=()=>(i??=ie(V),i[0]||V),o;o=r===!0||r===null?a():_q(r),o||=a();let s=$(V,qU(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&UU(c);rK(o,{sync:l,preventScroll:o===V,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=qU(e);return!(t!==o&&$(V,t))}})})},[r,g,V,ie,w,D,O,b]);let H=U.useRef(null);Q(()=>{if(r||!V){H.current=null;return}H.current&&=(H.current.cancelled=!0,null);let e=vG(V),t=qU(e),n=D.current==null;Sq(t);function i(e){if(e.open||(F.current=vq(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(tK(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(UU(e.nativeEvent)||WU(e.nativeEvent))j.current=!1;else{let e=!1;vG(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&OB(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Cq()||null,typeof i==`boolean`?s:_q(i)||s||null}return()=>{y.off(`openchange`,i);let t=qU(e),n=ae(),r=$(v,t)||n.some(e=>e===t||$(e,t))||k&&$G(k.nodesRef.current,x(),!1).some(e=>$(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};H.current=l,queueMicrotask(()=>{H.current===l&&(H.current=null);let n=wq(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&NB(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,V,T,E,D,y,k,_,x,ae]),Q(()=>{if(!RU||g||!v)return;let e=qU(vG(v));NB(e)&&TW(e)&&$(v,e)&&e.blur()},[g,v]),Q(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),Q(()=>{if(!r&&V)return Tq(V),()=>{queueMicrotask(xq)}},[r,V]);let oe=!r&&(!c||!C)&&(re||c);return(0,K.jsxs)(U.Fragment,{children:[oe&&(0,K.jsx)(xG,{"data-type":`inside`,ref:z,onFocus:e=>{if(c){let e=ie();rK(e[e.length-1])}else A?.portalNode&&(j.current=!1,XG(e,A.portalNode)?qG(_)?.focus():_q(f??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,K.jsx)(xG,{"data-type":`inside`,ref:B,onFocus:e=>{c?rK(ie()[0]):A?.portalNode&&(l&&(j.current=!0),XG(e,A.portalNode)?JG(_)?.focus():_q(d??A.afterOutsideRef)?.focus())}})]})}function Dq(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=RW}=t,l=e.context.dataRef,u=U.useRef(void 0),d=_G(),f=EU(),p=U.useMemo(()=>{function t(t,n,r,i){let a=FW(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=GU(e.pointerType,!0)&&WU(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||GU(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=YU(s),p=TW(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:GU(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return U.useMemo(()=>n?{reference:p}:SU,[n,p])}function Oq(){return!1}function kq(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Aq(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Oq,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=pq(c),m=dG(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=dG(()=>a),{escapeKey:v,outsidePress:y}=kq(s),b=U.useRef(!1),x=U.useRef(!1),S=U.useRef(!1),C=U.useRef(!1),w=U.useRef(!1),T=U.useRef(``),E=U.useRef(null),D=EU(),O=EU(),k=EU(),A=dG(()=>{O.clear(),d.current.insideReactTree=!1}),j=dG(e=>{let t=d.current.floatingContext?.nodeId;return(p?$G(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=dG(t=>CW(t,e.select(`floatingElement`))||CW(t,e.select(`domReferenceElement`))),N=dG(t=>{o()&&e.setOpen(!1,FW(RW,t.nativeEvent))}),P=dG(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=HU(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=FW(GW,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=dG(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=dG(t=>{if(!l||!n||t.button!==0)return;let r=YU(t.nativeEvent);$(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=dG(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});U.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),U.useEffect(()=>A,[A]),U.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new TU,i=vG(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(RU?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&$G(p.nodesRef.current,t).some(t=>CW(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=YU(n),i=`[${tK(`inert`)}]`,a=MB(r)?r.getRootNode():null,o=Array.from((PB(a)?a:vG(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>$(e,r))))return;let c=MB(r)?r:null;for(;c&&!GB(c);){let e=JB(c);if(GB(e)||!MB(e))break;c=e}if(!(o.length&&MB(r)&&!wW(r)&&!$(r,e.select(`floatingElement`))&&o.every(e=>!$(c,e)))){if(NB(r)&&!(`touches`in n)){let e=GB(r),t=KB(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!UU(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,FW(VW,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=YU(e);if(!n)return;let r=QW(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function z(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function B(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function ee(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function te(e){L(e,ee)}function ne(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function re(e){L(e,ne)}let V=$W(r&&$W(QW(i,`keydown`,P),QW(i,`compositionstart`,a),QW(i,`compositionend`,o)),g&&$W(QW(i,`click`,z,!0),QW(i,`pointerdown`,z,!0),QW(i,`pointerup`,B,!0),QW(i,`pointercancel`,B,!0),QW(i,`mousedown`,z,!0),QW(i,`mouseup`,B,!0),QW(i,`touchstart`,R,{capture:!0,passive:!0}),QW(i,`touchmove`,te,{capture:!0,passive:!0}),QW(i,`touchend`,re,{capture:!0,passive:!0})));return()=>{V(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let R=U.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),z=U.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return U.useMemo(()=>n?{reference:R,floating:z,trigger:R}:{},[n,R,z])}function jq(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Mq=jq(`https://base-ui.com/production-error`,`Base UI`),Nq=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let t=this.attachedStores.lastIndexOf(e);t!==-1&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let t=this.attachedStore;if(t===null)return;let n;if(e){for(let t=this.attachedStores.length-1;t>=0&&!n;--t)n=this.attachedStores[t].context.triggerElements.getById(e);n??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!n&&this.throwOnMissingTrigger)throw Error(Mq(99,this.componentName,e,this.componentName));t.setOpen(!0,FW(ZW,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,FW(ZW))}};function Pq(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Q(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};MB(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function Fq(e,t=!1,n=!1,r=!1){let[i,a]=U.useState(e&&t?`idle`:void 0),[o,s]=U.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Q(()=>{if(!e&&o&&i!==`ending`&&n){let e=gG.request(()=>{a(`ending`)});return()=>{gG.cancel(e)}}},[e,o,i,n]),Q(()=>{if(!e||t||i===void 0)return;let n=gG.request(()=>{a(void 0)});return()=>{gG.cancel(n)}},[t,e,i]),Q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=gG.request(()=>{a(`idle`)});return()=>{gG.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Iq(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var Lq=null;function Rq(e){if(!Lq){let e=[];Lq=e,queueMicrotask(()=>{Lq=null,De.flushSync(()=>{for(let t of e)t()})})}Lq.push(e)}function zq(e,t=!1,n=!1){let r=_G();return dG((i,a=null)=>{r.cancel();let o=_q(e);if(o==null)return;let s=o,c=()=>{n?Rq(()=>{a?.aborted||i()}):De.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Iq(s).map(e=>e.finished.then(bU))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Iq(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=nW;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function Bq(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=dG(a),s=zq(r,n,i);U.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function Vq(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=dG(i),{mounted:c,setMounted:l,transitionStatus:u}=Fq(t,!1,!1,o),d=!t&&r;Q(()=>{t&&s(!1)},[t,s]);let f=U.useRef(c),p=U.useRef(!1),m=hK(),h=()=>{f.current=!1,l(!1),a()};Q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=dG(()=>{f.current&&(t?(p.current=!0,m()):h())});return Bq({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var Hq={tabIndex:-1,[XU]:``};function Uq(e){return t=>t!==`touch`||e.current}function Wq(e,t=!1){let n=yK(),r=fq()!=null,i=fU(()=>e(n,r)).current;return Pq({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Gq({handle:e,store:t}){return Q(()=>e.attachStore(t),[e,t]),null}function Kq(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function qq(e,t){let n=U.useRef(null);return dG(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),Kq(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Kq(t))})}function Jq(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function Yq(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Xq(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=qq(e,n),o=dG(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=dG(e=>{a(e),e&&o(e)});return Q(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Q(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function Zq(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=U.useRef(null),i=e.useState(`open`);Q(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=FW(LW);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function Qq(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Vq({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return fU(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function $q(e,t){e.useSyncedValues(t),Q(()=>()=>{e.update({activeTriggerProps:SU,inactiveTriggerProps:SU,popupProps:SU})},[e])}function eJ(e,t){Q(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Q(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var tJ=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},nJ=xK(19)?aJ:oJ;function rJ(e,t,n,r,i){return nJ(e,t,n,r,i)}function iJ(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,hS.useSyncExternalStore)(e.subscribe,a,a)}gU({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,hS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function aJ(e,t,n,r,i){let a=hU();if(!a)return iJ(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function oJ(e,t,n,r,i){return(0,$N.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var sJ=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return rJ(this,e,t,n,r)}},cJ=class extends sJ{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;Q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Q(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Q(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;Q(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return U.useDebugValue(e),rJ(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=dG(t??bU);this.context[e]=n}useStateSetter(e){let t=U.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},lJ={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},uJ=class extends cJ{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:cq(),nested:n,triggerElements:i},lJ),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&KU(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function dJ(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new uJ({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:SU,inactiveTriggerProps:SU,popupProps:SU}}var fJ=e=>e.triggerIdProp??e.activeTriggerId,pJ=e=>e.openProp??e.open,mJ=e=>(e.popupElement?.id??e.floatingId)||void 0;function hJ(e,t){return t!==void 0&&pJ(e)&&fJ(e)===t}function gJ(e,t){return hJ(e,t)?!0:t!==void 0&&pJ(e)&&fJ(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var _J={open:pJ,mounted:e=>e.mounted,transitionStatus:e=>pJ(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:fJ,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:mJ,isTriggerActive:(e,t)=>t!==void 0&&fJ(e)===t,isOpenedByTrigger:(e,t)=>hJ(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&fJ(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>gJ(e,t)?mJ(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function vJ(e){let t=U.useCallback(t=>e===void 0?bU:e.subscribeStore(t),[e]),n=U.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,hS.useSyncExternalStore)(t,n,()=>e?.serverStore)}function yJ(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=yK(),a=fq()!=null,o=fU(()=>new uJ({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new tJ,floatingId:i,syncOnly:!1,nested:a})).current;return Q(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=MB(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var bJ=IU&&RU;function xJ(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=U.useRef(!1),s=U.useRef(null),c=U.useRef(!0),l=EU();U.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=kB(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&NB(t)&&t===qU(vG(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return $W(QW(r,`blur`,i),bJ&&QW(r,`keydown`,a,!0),bJ&&QW(r,`pointerdown`,l,!0))},[e,n]),U.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);MB(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=U.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=YU(n.nativeEvent);if(MB(a)){if(bJ&&!n.relatedTarget){if(!c.current&&!TW(a))return}else if(!OW(a))return}let u=SW(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,FW(BW,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,FW(BW,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=MB(r)&&r.hasAttribute(tK(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=qU(vG(t));!r&&n===t||$(a.current.floatingContext?.refs.floating.current,n)||$(t,n)||o||SW(r??n,e.context.triggerElements)||e.setOpen(!1,FW(BW,i))})}}},[a,r,e,l]);return U.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var SJ=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new TU;restTimeout=new TU;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},CJ=new WeakMap;function wJ(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&CJ.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),CJ.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function TJ(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=CJ.get(n);a&&a!==e&&wJ(a),wJ(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,CJ.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function EJ(e){let t=e.context.dataRef.current,n=fU(()=>t.hoverInteractionState??SJ.create()).current;return t.hoverInteractionState||=n,CU(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function DJ(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=pq(),u=fq(),d=EJ(e),f=EU(),p=dG(()=>NW(c.current.openEvent?.type,d.interactedInside)),m=dG(()=>PW(c.current.openEvent?.type)),h=dG(()=>{wJ(d)});Q(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),U.useEffect(()=>h,[h]),Q(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&MB(s)&&o){let e=s,t=o,n=vG(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??JU(e,`[data-rootownerid]`)??n.body;return TJ(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),U.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&$G(l.nodesRef.current,u).length>0)}function a(t){let n=jW(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,FW(zW,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=YU(e);EW(t)?d.interactedInside=JU(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(SW(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&MB(o)&&$G(l.nodesRef.current,r,!1).some(e=>$(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,FW(zW,n)),l.events.emit(`floating.closed`,n)})}let y=o;return $W(y&&QW(y,`mouseenter`,g),y&&QW(y,`mouseleave`,_),y&&QW(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var OJ={current:null};function kJ(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=OJ,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=pq(l),v=EJ(e),y=U.useRef(!1),b=oG(i),x=oG(r),S=oG(o),C=oG(n),w=oG(p),T=oG(f),E=dG(()=>NW(h.current.openEvent?.type,v.interactedInside)),D=dG(()=>w.current?.()!==!1),O=dG((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!$(t,n);if(!MB(r))return!1;let a=r;return i.hasMatchingElement(e=>$(e,a))&&(!t||!$(t,a))}),k=dG(()=>{v.handler&&=(vG(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=dG(()=>{wJ(v)});return u&&(v.handleCloseOptions=i?.__options),U.useEffect(()=>k,[k]),U.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===zW,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),U.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=jW(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,FW(zW,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,FW(zW,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!MB(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!GU(v.pointerType))return;let n=MW(S.current),r=jW(x.current,`open`,v.pointerType),i=YU(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(MB(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if($(t,i)){c=t;break}}MB(o)&&MB(s)&&!e.context.triggerElements.hasElement(o)&&$(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&MB(c)&&MB(s)&&$(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,FW(zW,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,FW(zW,t,c))}):g&&D()&&e.setOpen(!0,FW(zW,t,c)))}function o(n){if(E()){A();return}k();let r=vG(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!SW(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&$(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){$(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?QW(r,`mouseout`,l):void 0;return s?$W(QW(r,`mousemove`,i,{once:!0}),QW(r,`mouseenter`,i),QW(r,`mouseleave`,o),f):$W(QW(r,`mouseenter`,i),QW(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),U.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!GU(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;TJ(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=MW(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,FW(zW,n,r))}v.pointerType===`touch`?De.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function AJ(e){return RU&&e.movementX===0&&e.movementY===0}function jJ(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function MJ(e,t){return jJ(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function NJ(e,t,n){return jJ(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function PJ(e,t,n){return jJ(t,n?e===QU:e===$U,e===tW)}function FJ(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:jJ(t,n?e===$U:e===QU,e===eW)}function IJ(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=kW(E),A=DW(D),j=oG(k),M=fq(),N=pq(x),P=U.useRef(f),F=U.useRef(o??-1),I=U.useRef(null),L=U.useRef(!0),R=dG(e=>{i(F.current===-1?null:F.current,e)}),z=U.useRef(!!E),B=U.useRef(T),ee=U.useRef(!1),te=U.useRef(!1),ne=U.useRef(null),re=oG(h),V=oG(T),ie=oG(o),ae=oG(b),H=_G(),oe=_G(),se=dG(()=>{H.cancel();function e(e){d||(ne.current=rK(e,{sync:ee.current,preventScroll:!0}))}let t=n.current[F.current],r=te.current;t&&e(t),(ee.current?e=>e():e=>H.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),pe&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Q(()=>{O.current.orientation=g},[O,g]),Q(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Q(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(te.current=!0,R())):z.current&&(F.current=-1,R()))},[a,T,E,o,R]),Q(()=>{if(a){if(!T)ee.current=!1;else if(E){if(r==null){if(ee.current=!1,ie.current!=null)return;if(z.current&&(F.current=-1,se()),(!B.current||!z.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>oe.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||NJ(I.current,_,u)||l?CG(n):wG(n),I.current=null,R())};t()}}else SG(n.current,r)||(F.current=r,se(),te.current=!1)}}},[a,T,E,r,ie,l,n,_,u,R,se,oe]),Q(()=>{if(!a||E||!N||d||!z.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=qU(vG(D??t??null)),r=e.some(e=>e.context&&$(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Q(()=>{B.current=T,z.current=!!E});let ce=r!=null,le=dG(e=>{if(!V.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),ue=dG(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),de=dG(()=>CG(n,re.current)),fe=dG(t=>{if(L.current=!1,ee.current=!0,t.which===229||!V.current&&t.currentTarget===j.current)return;if(l&&FJ(t.key,g,u,w)){MJ(t.key,ue())||VU(t),e.setOpen(!1,FW(KW,t.nativeEvent));let n=S?.current??D;NB(n)&&n.focus();return}r!=null&&r!==F.current&&!SG(n.current,r)&&(F.current=r);let i=F.current,a=CG(n,h),o=wG(n,h);if(A||(t.key===`Home`&&(VU(t),F.current=a,R(t)),t.key===`End`&&(VU(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(MJ(t.key,g)){VU(t);let e=qU(t.currentTarget.ownerDocument);if(T&&!d&&$(t.currentTarget,e)&&!n.current.some(t=>t!=null&&$(t,e))){F.current=NJ(t.key,g,u)?a:o,R(t),r===F.current&&se();return}let{index:l,wrapped:f}=TG(n.current,i,{decrement:!NJ(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(ee.current=!1),F.current=l,R(t)}}),pe=U.useMemo(()=>({onFocus(e){ee.current=!0,le(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){AJ(e)||(ee.current=!0,te.current=!1,p&&le(e))},onPointerLeave(e){if(!V.current||!L.current||e.pointerType===`touch`)return;ee.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ae.current&&(ne.current?.(),ne.current=null,F.current=-1,R(e),!d)){let e=j.current,t=qU(vG(e));e&&$(e,t)&&e.focus({preventScroll:!0})}}}),[le,V,j,p,n,R,ae,d]),me=U.useMemo(()=>d&&T&&ce&&{"aria-activedescendant":`${y}-${r}`},[d,T,ce,y,r]),he=U.useMemo(()=>({...A?{}:me,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=YU(t.nativeEvent);if(n&&!$(j.current,n))return;VU(t);let r=FW(WW,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&NB(i)&&i.focus()}else fe(t)},onPointerMove(e){AJ(e)||(L.current=!0)}}),[me,fe,j,A,e,T,d,D,S]),ge=U.useMemo(()=>{function t(t){e.setOpen(!0,FW(KW,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&UU(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&WU(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=PJ(n.key,ue(),u),o=MJ(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||TW(n.currentTarget)))return fe(n);if(r||m||!i){if(s){let e=MJ(n.key,ue());I.current=l&&e?null:n.key}l?a&&(VU(n),r?(F.current=de(),R(n),d&&j.current?.focus()):t(n)):o&&(ie.current!=null&&(F.current=ie.current),VU(n),!r&&m?t(n):fe(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[fe,f,de,l,R,e,m,g,_,ue,u,ie,d,j]),_e=U.useMemo(()=>({...me,...ge}),[me,ge]);return U.useMemo(()=>a?{reference:_e,floating:he,item:pe,trigger:ge}:{},[a,_e,he,ge,pe])}function LJ(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=dG(s),f=e.useState(`open`),p=EU(),m=U.useRef(``),h=U.useRef(u??i??-1),g=U.useRef(null),_=dG(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!kG(n)||n?.matches(`:disabled`)?!1:o==null||!DG(xU,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(VU(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(VU(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=dG(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);$(r,n)||$(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Q(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=U.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return U.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var RJ=.1,zJ=RJ*RJ,BJ=.5;function VJ(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function HJ(e,t,n,r,i,a,o,s,c,l){let u=!1;return VJ(e,t,n,r,i,a)&&(u=!u),VJ(e,t,i,a,o,s)&&(u=!u),VJ(e,t,o,s,c,l)&&(u=!u),VJ(e,t,c,l,n,r)&&(u=!u),u}function UJ(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function WJ(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function GJ(e={}){let{blockPointerEvents:t=!1}=e,n=new TU,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*zJ;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=YU(r),g=r.type===`mouseleave`,_=$(u,h),v=$(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&MB(r.relatedTarget)&&$(u,r.relatedTarget))return;function y(){return!!(s&&$G(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=WJ(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=WJ(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=WJ(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=WJ(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!UJ(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?BJ/2:BJ*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+BJ+1,o=C||T?S.bottom-BJ:S.top,s=C?T?S.bottom-BJ:S.top:S.bottom-BJ;M=HJ(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?BJ/2:BJ*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-BJ,o=C||T?S.top+BJ:S.bottom,s=C?T?S.top+BJ:S.bottom:S.top+BJ;M=HJ(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?BJ/2:BJ*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+BJ+1,o=w||E?S.right-BJ:S.left,s=w?E?S.right-BJ:S.left:S.right-BJ;M=HJ(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?BJ/2:BJ*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-BJ,o=w||E?S.left+BJ:S.right,s=w?E?S.left+BJ:S.right:S.left+BJ;M=HJ(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var KJ=typeof document<`u`?U.useLayoutEffect:function(){};function qJ(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!qJ(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!qJ(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function JJ(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YJ(e,t){let n=JJ(e);return Math.round(t*n)/n}function XJ(e){let t=U.useRef(e);return KJ(()=>{t.current=e}),t}function ZJ(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);qJ(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=XJ(c),D=XJ(i),O=XJ(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),IV(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!qJ(w.current,t)&&(w.current=t,De.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);KJ(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);KJ(()=>(A.current=!0,()=>{A.current=!1}),[]),KJ(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),N=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=YJ(M.floating,u.x),r=YJ(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...JJ(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var QJ=(e,t)=>{let n=DV(e);return{name:n.name,fn:n.fn,options:[e,t]}},$J=(e,t)=>{let n=kV(e);return{name:n.name,fn:n.fn,options:[e,t]}},eY=(e,t)=>({fn:FV(e).fn,options:[e,t]}),tY=(e,t)=>{let n=AV(e);return{name:n.name,fn:n.fn,options:[e,t]}},nY=(e,t)=>{let n=jV(e);return{name:n.name,fn:n.fn,options:[e,t]}},rY=U.createContext(void 0);function iY(e){let t=U.useContext(rY);if(t===void 0&&!e)throw Error(Mq(47));return t}var aY=class extends cJ{setState(e){}update(e){}set(e,t){}notifyAll(){}},oY={..._J,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!_J.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&_J.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>_J.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},sY=class extends cJ{constructor(e,t,n){let r=new tJ;super(cY(e,r,t,n),lY(r),oY)}setOpen=(e,t)=>{let n=t.reason===zW,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Yq(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Jq(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),De.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function cY(e,t,n,r=!1){let i={...dJ(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function lY(e){return{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:U.createRef(),beforeTriggerFocusGuardRef:U.createRef(),beforeContentFocusGuardRef:U.createRef(),stickIfOpenTimeout:new TU,stickIfOpen:!0,triggerElements:e}}var uY=_U(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=fY(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),eJ(u,d),Zq(u);let{forceUnmount:m}=Qq(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),U.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),U.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,FW(ZW))}),[m,u]);let h=d||f||s!=null;return(0,K.jsxs)(rY.Provider,{value:u,children:[s&&(0,K.jsx)(Gq,{handle:s,store:u}),h&&(0,K.jsx)(pY,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function dY(e){return iY(!0)?(0,K.jsx)(uY,{props:e}):(0,K.jsx)(gq,{children:(0,K.jsx)(uY,{props:e})})}function fY(e,t){let n=Wq((e,n)=>new sY(t,e,n));return U.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function pY({store:e,modal:t}){let n=Aq(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return $q(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var mY=U.createContext(void 0);function hY(e=!1){let t=U.useContext(mY);if(t===void 0&&!e)throw Error(Mq(16));return t}function gY(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:U.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function _Y(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(kB(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function vY(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=U.useRef(null),s=hY(!0),c=a??s!==void 0,{props:l}=gY({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=U.useCallback(()=>{let e=o.current;yY(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Q(u,[u]),{getButtonProps:U.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return OK({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(RK(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=yY(r),s=!i&&bY(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),_Y(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),_Y(r,e)))},onKeyUp(e){t||(RK(e),a?.(e),e.target===e.currentTarget&&i&&c&&yY(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),_Y(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:dG(e=>{o.current=e,u()})}}function yY(e){return NB(e)&&e.tagName===`BUTTON`}function bY(e){return NB(e)&&e.tagName===`A`&&!!e.href}function xY(e){return yK(e,`base-ui`)}function SY(e,t){function n(n,r,i){let a=n.currentTarget;De.flushSync(()=>{e.setOpen(!1,FW(WW,n.nativeEvent,a))}),YG(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&XG(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function CY(e){let t=U.useRef(``),n=U.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:U.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function wY(e,t){let n=U.useRef(e),r=dG(t);Q(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function TY(e,t){let{onClick:n,onPointerDown:r}=CY(dG((n,r)=>{(typeof e==`function`?e():e)||t(r||(NU?`touch`:``))}));return U.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function EY(e){let[t,n]=U.useState(null),r=TY(e,n);return wY(e,t=>{t&&!e&&n(null)}),U.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var DY=vU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=iY(!0),h=vJ(s)??m;if(!h)throw Error(Mq(74));let g=xY(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=U.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Xq(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=kJ(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:GJ(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=Dq(v,{stickIfOpen:dG(()=>h.context.stickIfOpen)}),k=TY(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=vY({disabled:a,native:o}),N={open(e){return w?vW.open(e):_W.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=SY(h,x),I=VK(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[YK]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,K.jsx)(U.Fragment,{children:I},g);return E?(0,K.jsxs)(U.Fragment,{children:[(0,K.jsx)(xG,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,K.jsx)(xG,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),OY=U.createContext(void 0);function kY(){let e=U.useContext(OY);if(e===void 0)throw Error(Mq(45));return e}var AY=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return iY().useState(`mounted`)||n?(0,K.jsx)(OY.Provider,{value:n,children:(0,K.jsx)(sq,{ref:t,...r})}):null});function jY(e){return xK(19)?e:e?`true`:void 0}var MY=U.createContext(void 0);function NY(){let e=U.useContext(MY);if(!e)throw Error(Mq(46));return e}function PY(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=U.useState(null),d=U.useRef(null),f=pq(n),p=U.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=ZJ({...e,elements:{...p,...l&&{reference:l}}}),h=U.useCallback(e=>{let t=MB(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=U.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=U.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=U.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Q(()=>{o&&(d.current=o)},[o]),Q(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),U.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var FY=U.createContext(void 0);function IY(){return U.useContext(FY)?.direction??`ltr`}var LY=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Vz(e,t)||{};if(l==null)return{};let d=aB(u),f={x:n,y:r},p=qz(i),m=Gz(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=Bz(D,k,O),j=!c.arrow&&Uz(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),RY=(e,t)=>{let{name:n,fn:r}=LY(e);return{name:n,fn:r,options:[e,t]}},zY={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},BY={sideX:`left`,sideY:`top`},VY=`--available-width`,HY=`--available-height`,UY=`--anchor-width`,WY=`--anchor-height`,GY=`--transform-origin`,KY=VY,qY=HY;function JY(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function YY(e,t,n){let{rects:r,placement:i}=e;return{side:JY(t,Hz(i),n),align:Uz(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function XY(e){return ZY(e,PY)}function ZY(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=dG(O),A=O?k:n,j=oG(n),M=oG(g),N=IY()===`rtl`,[P,F]=U.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?Hz(P):null,R=P&&I?Uz(P)||`center`:null,z=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],B=R||o,ee=B===`center`?z:`${z}-${B}`,te=l;typeof te==`number`?te={top:te,right:te,bottom:te,left:te}:te&&={top:te.top||0,right:te.right||0,bottom:te.bottom||0,left:te.left||0};let ne=+(i===`bottom`),re=+(i===`top`),V=+(i===`right`),ie=+(i===`left`),ae={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:te},H=U.useRef(null),oe=oG(a),se=oG(s),ce=typeof a==`function`?0:a,le=typeof s==`function`?0:s,ue=[];p&&ue.push(p),ue.push(QJ(e=>{let t=YY(e,i,N),n=typeof oe.current==`function`?oe.current(t):oe.current,r=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ce,le,N,i]));let de=w===`none`&&C!==`shift`,fe=!de&&(u||E||C===`shift`),pe=C===`none`?null:tY({...ae,padding:{top:te.top+1+ne,right:te.right+1+ie,bottom:te.bottom+1+re,left:te.left+1+V},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),me=de?null:$J({...ae,rootBoundary:D,mainAxis:w!==`none`,crossAxis:fe,limiter:u||E?void 0:eY(e=>{if(!H.current)return{};let{width:t,height:n}=H.current.getBoundingClientRect(),r=Kz(Hz(e.placement)),i=r===`y`?t:n,a=r===`y`?te.left+te.right:te.top+te.bottom;return{offset:i/2+a/2}})},[ae,u,E,D,te,w]);C===`shift`||w===`shift`||B===`center`?ue.push(me,pe):ue.push(pe,me),ue.push(nY({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(KY,`${t}px`),i.setProperty(qY,`${n}px`);let a=kB(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(UY,`${u}px`),i.setProperty(WY,`${d}px`)}}),RY(e=>({element:H.current||vG(e.elements.floating).createElement(`div`),padding:H.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=Hz(r),u=Uz(r),d=Kz(l)===`y`,f=H.current,p=typeof a==`function`?a(YY(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return fe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(GY,d?`${m} ${h}`:`${h} ${m}`),{}}},zY,b),Q(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let he=U.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ge,elements:_e,x:ve,y:ye,middlewareData:be,update:xe,placement:Se,context:Ce,isPositioned:we,floatingStyles:Te}=t({rootContext:h,open:m?g:void 0,placement:ee,middleware:ue,strategy:r,whileElementsMounted:m?void 0:(...e)=>EV(...e,he),nodeId:y,externalTree:S}),{sideX:Ee,sideY:De}=be.adaptiveOrigin||BY,Oe=we?r:`fixed`,ke=U.useMemo(()=>{let e;return e=we?b?{position:Oe,[Ee]:ve,[De]:ye}:{...Te,position:Oe}:{position:Oe,top:0,left:0},e[KY]=`100vw`,e[qY]=`100vh`,we||(e.opacity=0),e},[b,Oe,Ee,ve,De,ye,Te,we]),Ae=U.useRef(null);Q(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(QY(t)?t.current:t)||null;n!==Ae.current&&(ge.setPositionReference(n),Ae.current=n)},[g,ge,A,j]),U.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&QY(e)&&e.current!==Ae.current&&(ge.setPositionReference(e.current),Ae.current=e.current)},[g,ge,A,j]),U.useEffect(()=>{if(m&&g&&_e.reference&&_e.floating)return EV(_e.reference,_e.floating,xe,he)},[m,g,_e,xe,he]);let je=Hz(Se),Me=JY(i,je,N),Ne=Uz(Se)||`center`,Pe=!!be.hide?.referenceHidden;Q(()=>{x&&g&&we&&(je!==z||I&&Ne!==B)&&F(Se)},[x,I,g,we,Se,je,Ne,z,B]);let Fe=U.useMemo(()=>({position:`absolute`,top:be.arrow?.y,left:be.arrow?.x}),[be.arrow]),Ie=be.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:ke,arrowStyles:Fe,arrowRef:H,arrowUncentered:Ie,side:Me,align:Ne,physicalSide:je,anchorHidden:Pe,refs:ge,context:Ce,isPositioned:we,update:xe}),[ke,Fe,H,Ie,Me,Ne,je,Pe,ge,Ce,we,xe])}function QY(e){return e!=null&&`current`in e}var $Y=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,K.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function eX(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=U.useRef(null),o=U.useRef(null),s=zq(r);Q(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Q(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}function tX(e){return e===`starting`?JK:SU}function nX(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),VK(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},tX(r),i],stateAttributesMapping:yW})}var rX={},iX={},aX=``;function oX(e,t){return FB(e)?e:t}function sX(e,t,n){return/hidden|clip/.test(e.getComputedStyle(oX(t,n)).overflowY)}function cX(e){if(typeof document>`u`)return!1;let t=vG(e);return kB(t).innerWidth-t.documentElement.clientWidth>0}function lX(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=vG(e),n=t.documentElement,r=t.body,i=oX(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function uX(e){let t=vG(e),n=t.documentElement,r=t.body,i=oX(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function dX(e){let t=vG(e),n=t.documentElement,r=t.body,i=kB(n),a=0,o=0,s=!1,c=gG.create();if(RU&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,rX={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},aX=n.style.scrollBehavior,iX={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=oX(n,r);s=lX(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,rX),Object.assign(r.style,iX),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=aX)}function d(){u(),c.request(l)}l();let f=QW(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var fX=new class{lockCount=0;restore=null;timeoutLock=TU.create();timeoutUnlock=TU.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=vG(e),n=t.documentElement,r=t.body,i=kB(n);if(sX(i,n,r)){let t=new i.MutationObserver(()=>{sX(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=NU||!cX(e);this.restore=a?uX(e):dX(e)}};function pX(e=!0,t=null){Q(()=>{if(e)return fX.acquire(t)},[e,t])}var mX=20;function hX(e,t,n,r){let[i,a]=U.useState(!1);Q(()=>{if(!e||!t||n==null){a(!1);return}let r=vG(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-mX)},[e,t,n]),pX(e&&(!t||i),r)}var gX=U.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=tq,..._}=e,v=iY(),y=kY(),b=mq(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=XY({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});eX({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;hX(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=nX(e,{open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:k},{styles:j.positionerStyles,transitionStatus:A,props:_,refs:[t,N],hidden:!S,inert:!C});return(0,K.jsxs)(MY.Provider,{value:j,children:[S&&M&&(0,K.jsx)($Y,{inert:jY(!C),cutout:T}),(0,K.jsx)(hq,{id:b,children:P})]})}),_X=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),vX=U.createContext(void 0);function yX(e){let t=U.useContext(vX);if(t===void 0&&!e)throw Error(Mq(69));return t}var bX=U.createContext(void 0);function xX(){let[e,t]=U.useState(0),n=dG(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:U.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var SX=U.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=iY(),l=NY(),u=yX(!0)!=null,{context:d,hasClosePart:f}=xX(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);Bq({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),DJ(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?Uq(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=VK(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...Hq,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&_X.has(e.key)&&e.stopPropagation()}},tX(g),s],stateAttributesMapping:bW});return(0,K.jsx)(Eq,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:NB(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,K.jsx)(bX.Provider,{value:d,children:M})})}),CX=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=iY(),s=xY(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),VK(`h2`,e,{ref:t,props:[{id:s},a]})});function wX(e,t){for(let n of it(e)){let e=n.map(e=>e.text??``).join(``).indexOf(t);if(e<0||!t)continue;let r=0;return n.flatMap(n=>{let i=n.text??``,a=Math.max(0,e-r),o=Math.min(i.length,e+t.length-r);return r+=i.length,o>a?[{...n,text:i.slice(a,o)}]:[]})}return[{type:`text`,text:t}]}function TX(e,t){let n=new Set,r=i=>{if(i.type===`paragraph`||i.type===`heading`){let r=(i.content??[]).map(e=>e.text??``).join(``);return[`before`,`match`,`after`].flatMap(i=>!t[i]||n.has(i)||!r.includes(t[i])?[]:(n.add(i),[{type:`citationPart`,attrs:{part:i},content:wX(e,t[i])}]))}let a=(i.content??[]).map((e,t)=>r(e).map(e=>i.type===`orderedList`?{...e,attrs:{...e.attrs,value:Number(i.attrs?.start??1)+t}}:e)),o=a.flat();return o.length?[{...i,content:o,...i.type===`orderedList`?{attrs:{...i.attrs,start:Number(i.attrs?.start??1)+a.findIndex(e=>e.length)}}:{}}]:[]};return r(Re(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}))[0]?.content??[]}function EX(e,t){let n=e.atMs===null?`notes`:`transcript`,r=e.transcript?.lines??[],i=e.excerpt??``;n===`transcript`&&(i=at(i).split(`
-`).map(e=>{for(let t of r){let n=`${t.track===`me`?`You`:t.speaker||`Them`}: `;if(e.startsWith(n)&&(e.slice(n.length).startsWith(at(t.text))||at(t.text).startsWith(e.slice(n.length))))return e.slice(n.length)}return e}).join(`
-`));let a=ut(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[ft(r.map(e=>e.text),t,o)]:void 0,s=Dt(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?wX(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:Et[s],atMs:a?.startMs}},c=s(a.match),l=n===`transcript`?r.flatMap(e=>{let t=at(e.text);if(t&&i.includes(t))return[{...e,text:t}];if(t&&i.endsWith(`
+`).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=SR(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
+`)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function CR(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var wR=64;function TR(e,t){let n=[],r=0;for(;n.length<t;){let t=e.indexOf(`
+`,r);if(t===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,t)),r=t+1}return n}function ER(e){let t=e.indexOf(`
+`),n=t===-1?e:e.slice(0,t);if(!fR.test(n))return[[],0,[]];let r=wR,i=TR(e,r),a=yR(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=TR(e,r),a=yR(i);return[a[0],a[1],i]}var DR=`listItem`,OR=`textStyle`,kR=/^(\d+)\.\s$/;function AR(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var jR=YM.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=AR(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=AR(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=uA(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?CR(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=ER(e);if(r.length===0)return;let o=SR(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
+`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(DR,this.editor.getAttributes(OR)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new uS({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=xR(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=JM({find:kR,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=JM({find:kR,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(OR)}),joinPredicate:e,editor:this.editor})),[t]}}),MR=/^\s*(\[([( |x])?\])\s$/,NR=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,PR=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},FR=YM.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,uA(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>lM(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[LL(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=NR;let l=e=>{let t=PR(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=dA(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[JM({find:MR,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),IR=YM.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,uA(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=oM(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=oM(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});OM.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(NL.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(nR.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(dR.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(jR.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(FR.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(IR.configure(this.options.taskList)),e}});var LR=`&nbsp;`,RR=`\xA0`,zR=YM.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,uA(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===LR||n[0].text===LR||n[0].raw===RR||n[0].text===RR)&&r.length===1&&r[0].type===`text`&&(r[0].text===LR||r[0].text===RR)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?LR:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),BR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,VR=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,HR=bM.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,uA(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[GM({find:BR,type:this.type})]},addPasteRules(){return[XM({find:VR,type:this.type})]}}),UR=YM.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),WR=bM.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,uA(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function GR(e={}){return new uS({view(t){return new KR(t,e)}})}var KR=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=bx(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},qR=class e extends Hx{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Hx.near(r)}content(){return X.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new JR(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!XR(e)||!ZR(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!Jx.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};qR.prototype.visible=!1,qR.findFrom=qR.findGapCursorFrom,Hx.jsonID(`gapcursor`,qR);var JR=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return qR.valid(t)?new qR(t):Hx.near(t)}};function YR(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function XR(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||YR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function ZR(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||YR(e.type))return!0;if(e.inlineContent)return!1}}return!0}function QR(){return new uS({props:{decorations:rz,createSelectionBetween(e,t,n){return t.pos==n.pos&&qR.valid(n)?new qR(n):null},handleClick:tz,handleKeyDown:$R,handleDOMEvents:{beforeinput:nz}}})}var $R=YD({ArrowLeft:ez(`horiz`,-1),ArrowRight:ez(`horiz`,1),ArrowUp:ez(`vert`,-1),ArrowDown:ez(`vert`,1)});function ez(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof Kx){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=qR.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new qR(c))),!0):!1}}function tz(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!qR.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Jx.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new qR(r))),!0)}function nz(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof qR))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Y.empty;for(let e=r.length-1;e>=0;e--)i=Y.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new X(i,0,0));return a.setSelection(Kx.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function rz(e){if(!(e.selection instanceof qR))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,JE.create(e.doc,[GE.widget(e.selection.head,t,{key:`gapcursor`})])}OM.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new uS({key:new pS(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var iz=OM.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[GR(this.options)]}});OM.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new uS({key:new pS(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return JE.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(GE.node(t,t+e.nodeSize,{class:this.options.className}))}),JE.create(e,a)}}})]}});var az=OM.create({name:`gapCursor`,addProseMirrorPlugins(){return[QR()]},extendNodeSchema(e){return{allowGapCursor:oA(Kk(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),oz=`placeholder`,sz=new pS(`tiptap__placeholder`);function cz(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),GE.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function lz(e,t){return typeof e==`function`?e(t):e}function uz({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&BA(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(cz({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:lz(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function dz({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&BA(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(cz({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:lz(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...uz({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return JE.create(r,o)}function fz(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function pz(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function mz(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function hz(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function gz(e,t){let n=mz(e,t.from,t.to);return n.push(pz(e,fz(e,t.from))),t.to>t.from?n.push(pz(e,fz(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(pz(e,fz(e,Math.min(t.from+1,e.content.size)))),n}function _z(e,t,n){let r=[];if(e.docChanged){let t=DA(e);for(let e of t)r.push(...gz(n.doc,e.newRange))}return e.selectionSet&&(r.push(pz(n.doc,fz(n.doc,e.mapping.map(t.selection.anchor)))),r.push(pz(n.doc,fz(n.doc,n.selection.anchor)))),hz(r)}function vz(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function yz({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=vz(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=uz({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function bz({editor:e,options:t,dataAttribute:n}){return{init(r,i){return dz({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??JE.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:yz({decorations:i.map(r.mapping,r.doc),ranges:_z(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function xz(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function Sz({editor:e,options:t}){let n=t.dataAttribute?`data-${xz(t.dataAttribute)}`:`data-${oz}`,r=t.showOnlyCurrent&&!t.includeChildren;return new uS({key:sz,...r?{}:{state:bz({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>dz({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?JE.empty:sz.getState(n)??JE.empty}})}var Cz=OM.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:oz,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[Sz({editor:this.editor,options:this.options})]}});function wz(e,t){return!e.selection.empty&&!VA(e.selection)&&t.isEditable}function Tz(e,t){return wz(e,t)&&!t.isFocused&&!t.view.dragging}function Ez(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function Dz(e){e.focus()}OM.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new uS({key:new pS(`selection`),props:{decorations(n){return Tz(n,e)?JE.create(n.doc,[GE.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return wz(t.state,e)&&Ez(),!1},focus(t){return wz(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&Dz(t)}),!1}}}})]}});function Oz({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var kz=OM.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new pS(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new uS({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!Oz({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!Oz({node:r,types:n})}}})]}}),Az=OM.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>yO(e,t),redo:()=>({state:e,dispatch:t})=>bO(e,t)}},addProseMirrorPlugins(){return[_O(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),jz=OM.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(zP.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(PP.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(NL.configure(this.options.bulletList)),this.options.code!==!1&&e.push(UP.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(qP.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(JP.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(iz.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(az.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(YP.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(XP.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(Az.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(ZP.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(nF.configure(this.options.italic)),this.options.listItem!==!1&&e.push(nR.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(dR.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(kL.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(jR.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(zR.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(HR.configure(this.options.strike)),this.options.text!==!1&&e.push(UR.configure(this.options.text)),this.options.underline!==!1&&e.push(WR.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(kz.configure(this.options?.trailingNode)),e}}),Mz=Cz,Nz=[`top`,`right`,`bottom`,`left`],Pz=[`start`,`end`],Fz=Nz.reduce((e,t)=>e.concat(t,t+`-`+Pz[0],t+`-`+Pz[1]),[]),Iz=Math.min,Lz=Math.max,Rz=Math.round,zz=Math.floor,Bz=e=>({x:e,y:e}),Vz={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hz(e,t,n){return Lz(e,Iz(t,n))}function Uz(e,t){return typeof e==`function`?e(t):e}function Wz(e){return e.split(`-`)[0]}function Gz(e){return e.split(`-`)[1]}function Kz(e){return e===`x`?`y`:`x`}function qz(e){return e===`y`?`height`:`width`}function Jz(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Yz(e){return Kz(Jz(e))}function Xz(e,t,n){n===void 0&&(n=!1);let r=Gz(e),i=Yz(e),a=qz(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=aB(o)),[o,aB(o)]}function Zz(e){let t=aB(e);return[Qz(e),t,Qz(t)]}function Qz(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $z=[`left`,`right`],eB=[`right`,`left`],tB=[`top`,`bottom`],nB=[`bottom`,`top`];function rB(e,t,n){switch(e){case`top`:case`bottom`:return n?t?eB:$z:t?$z:eB;case`left`:case`right`:return t?tB:nB;default:return[]}}function iB(e,t,n,r){let i=Gz(e),a=rB(Wz(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qz)))),a}function aB(e){let t=Wz(e);return Vz[t]+e.slice(t.length)}function oB(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function sB(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:oB(e)}function cB(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lB(e,t,n){let{reference:r,floating:i}=e,a=Jz(t),o=Yz(t),s=qz(o),c=Wz(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Gz(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function uB(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Uz(t,e),p=sB(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=cB(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=cB(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var dB=50,fB=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:uB},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=lB(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<dB&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=lB(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pB=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Uz(e,t)||{};if(l==null)return{};let d=sB(u),f={x:n,y:r},p=Yz(i),m=qz(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Iz(d[_],T),D=Iz(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Hz(E,k,O),j=!c.arrow&&Gz(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}});function mB(e,t,n){return(e?[...n.filter(t=>Gz(t)===e),...n.filter(t=>Gz(t)!==e)]:n.filter(e=>Wz(e)===e)).filter(n=>!e||Gz(n)===e||(t?Qz(n)!==n:!1))}var hB=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Fz,autoAlignment:u=!0,...d}=Uz(e,t),f=c!==void 0||l===Fz?mB(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Xz(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[Wz(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Gz(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Gz(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},gB=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Uz(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Wz(r),_=Jz(o),v=Wz(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[aB(o)]:Zz(o)),x=p!==`none`;!d&&x&&b.push(...iB(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Xz(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Jz(t)||T.every(e=>Jz(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Jz(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function _B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vB(e){return Nz.some(t=>e[t]>=0)}var yB=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Uz(e,t);switch(i){case`referenceHidden`:{let e=_B(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:vB(e)}}}case`escaped`:{let e=_B(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:vB(e)}}}default:return{}}}}};function bB(e){let t=Iz(...e.map(e=>e.left)),n=Iz(...e.map(e=>e.top)),r=Lz(...e.map(e=>e.right)),i=Lz(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function xB(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>cB(bB(e)))}var SB=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Uz(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=xB(u),f=cB(bB(u)),p=sB(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Jz(n)===`y`){let e=d[0],t=d[d.length-1],r=Wz(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return cB({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Wz(n)===`left`,t=Lz(...d.map(e=>e.right)),r=Iz(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return cB({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},CB=new Set([`left`,`top`]);async function wB(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Wz(n),s=Gz(n),c=Jz(n)===`y`,l=CB.has(o)?-1:1,u=a&&c?-1:1,d=Uz(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var TB=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await wB(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},EB=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Uz(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Jz(i),p=Kz(f),m=u[p],h=u[f],g=(e,t)=>Hz(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},DB=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Uz(e,t),u={x:n,y:r},d=Jz(i),f=Kz(d),p=u[f],m=u[d],h=Uz(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=CB.has(Wz(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},OB=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Uz(e,t),c=await i.detectOverflow(t,s),l=Wz(n),u=Gz(n),d=Jz(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Iz(p-c[m],g),y=Iz(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Lz(c.left,c.right):S=p-2*Lz(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function kB(){return typeof window<`u`}function AB(e){return NB(e)?(e.nodeName||``).toLowerCase():`#document`}function jB(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function MB(e){return((NB(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function NB(e){return kB()?e instanceof Node||e instanceof jB(e).Node:!1}function PB(e){return kB()?e instanceof Element||e instanceof jB(e).Element:!1}function FB(e){return kB()?e instanceof HTMLElement||e instanceof jB(e).HTMLElement:!1}function IB(e){return!kB()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof jB(e).ShadowRoot}function LB(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=JB(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function RB(e){return/^(table|td|th)$/.test(AB(e))}function zB(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var BB=/transform|translate|scale|rotate|perspective|filter/,VB=/paint|layout|strict|content/,HB=e=>!!e&&e!==`none`,UB;function WB(e){let t=PB(e)?JB(e):e;return HB(t.transform)||HB(t.translate)||HB(t.scale)||HB(t.rotate)||HB(t.perspective)||!KB()&&(HB(t.backdropFilter)||HB(t.filter))||BB.test(t.willChange||``)||VB.test(t.contain||``)}function GB(e){let t=XB(e);for(;FB(t)&&!qB(t);){if(WB(t))return t;if(zB(t))return null;t=XB(t)}return null}function KB(){return UB??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),UB}function qB(e){return/^(html|body|#document)$/.test(AB(e))}function JB(e){return jB(e).getComputedStyle(e)}function YB(e){return PB(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function XB(e){if(AB(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||IB(e)&&e.host||MB(e);return IB(t)?t.host:t}function ZB(e){let t=XB(e);return qB(t)?(e.ownerDocument||e).body:FB(t)&&LB(t)?t:ZB(t)}function QB(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ZB(e),i=r===e.ownerDocument?.body,a=jB(r);if(i){let e=$B(a);return t.concat(a,a.visualViewport||[],LB(r)?r:[],e&&n?QB(e):[])}return t.concat(r,QB(r,[],n))}function $B(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eV(e){let t=JB(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=FB(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Rz(n)!==a||Rz(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function tV(e){return PB(e)?e:e.contextElement}function nV(e){let t=tV(e);if(!FB(t))return Bz(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eV(t),o=(a?Rz(n.width):n.width)/r,s=(a?Rz(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var rV=Bz(0);function iV(e){let t=jB(e);return!KB()||!t.visualViewport?rV:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aV(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===jB(e)}function oV(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=tV(e),o=Bz(1);t&&(r?PB(r)&&(o=nV(r)):o=nV(e));let s=aV(a,n,r)?iV(a):Bz(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=jB(a),t=PB(r)?jB(r):r,n=e,i=$B(n);for(;i&&t!==n;){let e=nV(i),t=i.getBoundingClientRect(),r=JB(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=jB(i),i=$B(n)}}return cB({width:u,height:d,x:c,y:l})}function sV(e,t){let n=YB(e).scrollLeft;return t?t.left+n:oV(MB(e)).left+n}function cV(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-sV(e,n),y:n.top+t.scrollTop}}function lV(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=MB(r),s=t?zB(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Bz(1),u=Bz(0),d=FB(r);if((d||!a)&&((AB(r)!==`body`||LB(o))&&(c=YB(r)),d)){let e=oV(r);l=nV(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?cV(o,c):Bz(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function uV(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function dV(e){let t=YB(e),n=e.ownerDocument.body,r=Lz(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Lz(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+sV(e),o=-t.scrollTop;return JB(n).direction===`rtl`&&(a+=Lz(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var fV=25;function pV(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=jB(e),a=MB(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!KB()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(sV(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=fV&&(s-=o)}return{width:s,height:c,x:l,y:u}}function mV(e,t){let n=oV(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=nV(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function hV(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=pV(e,n,t);else if(t===`document`)r=dV(MB(e));else if(PB(t))r=mV(t,n);else{let n=iV(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cB(r)}function gV(e,t){let n=t.get(e);if(n)return n;let r=QB(e,[],!1).filter(e=>PB(e)&&AB(e)!==`body`),i=null,a=JB(e).position===`fixed`,o=a?XB(e):e;for(;PB(o)&&!qB(o);){let e=JB(o),t=WB(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=XB(o)}return t.set(e,r),r}function _V(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?zB(t)?[]:gV(t,this._c):[].concat(n),r],o=hV(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=hV(t,a[e],i);s=Lz(n.top,s),c=Iz(n.right,c),l=Iz(n.bottom,l),u=Lz(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function vV(e){let{width:t,height:n}=eV(e);return{width:t,height:n}}function yV(e,t,n){let r=FB(t),i=MB(t),a=n===`fixed`,o=oV(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Bz(0);if((r||!a)&&((AB(t)!==`body`||LB(i))&&(s=YB(t)),r)){let e=oV(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=sV(i));let l=i&&!r&&!a?cV(i,s):Bz(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function bV(e){return JB(e).position===`static`}function xV(e,t){if(!FB(e)||JB(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return MB(e)===n&&(n=n.ownerDocument.body),n}function SV(e,t){let n=jB(e);if(zB(e))return n;if(!FB(e)){let t=XB(e);for(;t&&!qB(t);){if(PB(t)&&!bV(t))return t;t=XB(t)}return n}let r=xV(e,t);for(;r&&RB(r)&&bV(r);)r=xV(r,t);return r&&qB(r)&&bV(r)&&!WB(r)?n:r||GB(e)||n}var CV=async function(e){let t=this.getOffsetParent||SV,n=this.getDimensions,r=await n(e.floating);return{reference:yV(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wV(e){return JB(e).direction===`rtl`}var TV={convertOffsetParentRelativeRectToViewportRelativeRect:lV,getDocumentElement:MB,getClippingRect:_V,getOffsetParent:SV,getElementRects:CV,getClientRects:uV,getDimensions:vV,getScale:nV,isElement:PB,isRTL:wV};function EV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DV(e,t,n){let r=null,i,a=MB(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=zz(d),h=zz(a.clientWidth-(u+f)),g=zz(a.clientHeight-(d+p)),_=zz(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Lz(0,Iz(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!EV(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=jB(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function OV(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=tV(e),u=i||a?[...l?QB(l):[],...t?QB(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?DV(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?oV(e):null;c&&g();function g(){let t=oV(e);h&&!EV(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var kV=TB,AV=hB,jV=EB,MV=gB,NV=OB,PV=yB,FV=pB,IV=SB,LV=DB,RV=(e,t,n)=>{let r=new Map,i=n??{},a={...TV,...i.platform,_c:r};return fB(e,t,{...i,platform:a})},zV,BV;if(typeof WeakMap<`u`){let e=new WeakMap;zV=t=>e.get(t),BV=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;zV=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},BV=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var VV=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o||t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return zV(e)||BV(e,HV(e))}};function HV(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=UV(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new VV(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&WV(s,o,e),s}function UV(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function WV(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r==null||c.colwidth&&c.colwidth[n]==r||((s||=GV(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function GV(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function KV(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new pS(`selectingCells`);function qV(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function JV(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function YV(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=qV(t.$head)||XV(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function XV(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function ZV(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function QV(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function $V(e,t,n){let r=e.node(-1),i=VV.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function eH(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var tH=class e extends Hx{constructor(e,t=e){let n=e.node(-1),r=VV.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new Ux(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(ZV(r)&&ZV(i)&&QV(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return Kx.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=VV.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=eH(e,0,l)),u>0&&(e=eH(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(Y.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new X(Y.from(o),1,1)}replace(e,t=X.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?X.empty:t)}let i=Hx.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new X(Y.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=VV.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=VV.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=VV.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=VV.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new nH(this.$anchorCell.pos,this.$headCell.pos)}};tH.prototype.visible=!1,Hx.jsonID(`cell`,tH);var nH=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&QV(t,n)?new tH(t,n):Hx.near(n,1)}};new pS(`fix-tables`);function rH(e){let t=e.selection,n=YV(e),r=n.node(-1),i=n.start(-1),a=VV.get(r);return{...t instanceof tH?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function iH(e){return function(t,n){if(!JV(t))return!1;if(n){let r=KV(t.schema),i=rH(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function aH(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function oH(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?iH(e):function(t,n){if(!JV(t))return!1;if(n){let r=KV(t.schema),i=rH(t),a=t.tr,o=aH(`row`,i,r),s=aH(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}oH(`row`,{useDeprecatedLogic:!0}),oH(`column`,{useDeprecatedLogic:!0}),oH(`cell`,{useDeprecatedLogic:!0});function sH(e,t){let n=e.selection;if(!(n instanceof tH))return!1;if(t){let r=e.tr,i=KV(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new X(i,0,0))}),r.docChanged&&t(r)}return!0}YD({ArrowLeft:lH(`horiz`,-1),ArrowRight:lH(`horiz`,1),ArrowUp:lH(`vert`,-1),ArrowDown:lH(`vert`,1),"Shift-ArrowLeft":uH(`horiz`,-1),"Shift-ArrowRight":uH(`horiz`,1),"Shift-ArrowUp":uH(`vert`,-1),"Shift-ArrowDown":uH(`vert`,1),Backspace:sH,"Mod-Backspace":sH,Delete:sH,"Mod-Delete":sH});function cH(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function lH(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof tH)return cH(n,r,Hx.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=dH(i,e,t);if(o==null)return!1;if(e==`horiz`)return cH(n,r,Hx.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=$V(i,e,t),s;return s=a?Hx.near(a,1):t<0?Hx.near(n.doc.resolve(i.before(-1)),-1):Hx.near(n.doc.resolve(i.after(-1)),1),cH(n,r,s)}}}function uH(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof tH)o=a;else{let r=dH(i,e,t);if(r==null)return!1;o=new tH(n.doc.resolve(r))}let s=$V(o.$headCell,e,t);return s?cH(n,r,new tH(o.$anchorCell,s)):!1}}function dH(e,t,n){if(!(e.state.selection instanceof Kx))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new pS(`tableColumnResizing`);function fH(e,t){let n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),a=Math.max(e.right,t.right)-i,o=r-n;return new DOMRect(i,n,a,o)}var pH=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(MV(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(jV(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(kV(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(FV(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(NV(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(AV(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(PV(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(IV(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}get virtualElement(){var e;let{selection:t}=this.editor.state,n=this.getReferencedVirtualElement?.call(this);if(n)return n;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let r=qA(this.view,t.from,t.to),i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(t instanceof Jx){let e=this.view.nodeDOM(t.from),n=e.dataset.nodeViewWrapper?e:e.querySelector(`[data-node-view-wrapper]`);n&&(e=n),e&&(i={getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>[e.getBoundingClientRect()]})}if(t instanceof tH){let{$anchorCell:e,$headCell:n}=t,r=e?e.pos:n.pos,a=n?n.pos:e.pos,o=this.view.nodeDOM(r),s=this.view.nodeDOM(a);if(!o||!s)return;let c=o===s?o.getBoundingClientRect():fH(o.getBoundingClientRect(),s.getBoundingClientRect());i={getBoundingClientRect:()=>c,getClientRects:()=>[c]}}return i}constructor({editor:e,element:t,view:n,pluginKey:r=`bubbleMenu`,updateDelay:i=250,resizeDelay:a=60,shouldShow:o,appendTo:s,getReferencedVirtualElement:c,options:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:`absolute`,placement:`top`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:e,state:t,from:n,to:r})=>{let{doc:i,selection:a}=t,{empty:o}=a,s=!i.textBetween(n,r).length&&JO(t.selection),c=this.element.contains(document.activeElement);return!(!(e.hasFocus()||c)||o||s||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.editor.isDestroyed?this.destroy():this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(e,t)=>{let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.show(),this.updatePosition()):this.hide())},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=l?.scrollTarget??window,this.getReferencedVirtualElement=c,this.floatingUIOptions={...this.floatingUIOptions,...l},this.element.tabIndex=0,o&&(this.shouldShow=o),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener(`dragstart`,this.dragstartHandler),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;let e=this.virtualElement;e&&RV(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{this.isVisible&&!this.editor.isDestroyed&&this.element.isConnected&&(r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()))})}update(e,t){let{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}let i=!t?.selection.eq(e.state.selection),a=!t?.doc.eq(e.state.doc);this.updateHandler(e,i,a,t)}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,element:this.element,view:this.view,state:t,oldState:e,from:i,to:a})||!1}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener(`dragstart`,this.dragstartHandler),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},mH=e=>new uS({key:typeof e.pluginKey==`string`?new pS(e.pluginKey):e.pluginKey,view:t=>new pH({view:t,...e})});OM.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[mH({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var hH=class{getTextContent(e){return xA(e,{textSerializers:SA(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(MV(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(jV(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(kV(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(FV(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(NV(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(AV(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(PV(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(IV(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}constructor({editor:e,element:t,view:n,pluginKey:r=`floatingMenu`,updateDelay:i=250,resizeDelay:a=60,options:o,appendTo:s,shouldShow:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:r,empty:i}=n,a=r.depth===1,o=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&r.parent.childCount===0&&!this.getTextContent(r.parent);return!(!e.hasFocus()||!i||!a||!o||!this.editor.isEditable)},this.floatingUIOptions={strategy:`absolute`,placement:`right`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.updatePosition(),this.show()):this.hide())},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=o?.scrollTarget??window,this.floatingUIOptions={...this.floatingUIOptions,...o},this.element.tabIndex=0,c&&(this.shouldShow=c),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,view:this.view,state:t,oldState:e,from:i,to:a})}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){var e;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let{selection:t}=this.editor.state,n=qA(this.view,t.from,t.to);RV({getBoundingClientRect:()=>n,getClientRects:()=>[n]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate())})}update(e,t){let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);this.updateHandler(e,n,r,t)}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},gH=e=>new uS({key:typeof e.pluginKey==`string`?new pS(e.pluginKey):e.pluginKey,view:t=>new hH({view:t,...e})});OM.create({name:`floatingMenu`,addOptions(){return{element:null,options:{},pluginKey:`floatingMenu`,updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta(this.options.pluginKey,`updatePosition`),!0)}},addProseMirrorPlugins(){return this.options.element?[gH({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function _H(e,t){return e??new pS(t)}var vH=typeof window<`u`?W.useLayoutEffect:W.useEffect,yH=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),bH=new Set(`animationIterationCount.aspectRatio.borderImageOutset.borderImageSlice.borderImageWidth.columnCount.columns.fillOpacity.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineClamp.lineHeight.opacity.order.orphans.scale.stopOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeOpacity.strokeWidth.tabSize.widows.zIndex.zoom`.split(`.`)),xH=new Set([`children`,`className`,`style`]),SH=new Set([`tabIndex`]),CH=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),wH={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function TH(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function EH(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function DH(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||CH.has(e)}function OH(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function kH(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:wH[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function AH(e,t){let n=t.defaultPrevented,r=!1,i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:()=>void 0},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,t.preventDefault()}},stopPropagation:{value:()=>{r=!0,t.stopPropagation()}}}),i}function jH(e){return SH.has(e)}function MH(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function NH(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function PH(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||bH.has(e)?String(t):`${t}px`}function FH(e,t){yH.has(t)||e.style.removeProperty(OH(t))}function IH(e,t,n){yH.has(t)||e.style.setProperty(OH(t),PH(t,n))}function LH(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(xH.has(r)||!DH(r)||TH(r,t[r])||TH(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=EH(r);a==null||a===!1?(jH(r)&&NH(e,r),e.removeAttribute(o)):a===!0?(jH(r)&&MH(e,r,!0),e.setAttribute(o,``)):jH(r)?MH(e,r,a):e.setAttribute(o,String(a))})}function RH(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function zH(e,t,n){let r=t??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(t=>{let n=r[t],a=i[t];n!==a&&(a==null?FH(e,t):IH(e,t,a))})}function BH(e,t,n){t.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)});let r=[];return Object.entries(n).forEach(([t,n])=>{if(!TH(t,n))return;let{eventName:i,options:a}=kH(t),o=t=>{n(AH(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function VH(e,t){let n=(0,W.useRef)({}),r=(0,W.useRef)([]);vH(()=>{let i=n.current;return RH(e,i.className,t.className),zH(e,i.style,t.style),LH(e,i,t),r.current=BH(e,r.current,t),n.current=t,()=>{r.current.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)}),r.current=[]}},[e,t])}var HH=W.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,getReferencedVirtualElement:o,options:s,children:c,...l},u)=>{let d=(0,W.useRef)(document.createElement(`div`)),f=(0,W.useRef)(_H(e,`bubbleMenu`)).current;VH(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=vP(),m=t||p,h={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:a,getReferencedVirtualElement:o,options:s},g=(0,W.useRef)(h);g.current=h;let[_,v]=(0,W.useState)(!1),y=(0,W.useRef)(!0);return(0,W.useEffect)(()=>{if(m?.isDestroyed)return;if(!m){console.warn(`BubbleMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=d.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=mH({...g.current,editor:m,element:e});m.registerPlugin(t);let n=g.current.pluginKey;return y.current=!0,v(!0),()=>{v(!1),m.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[m]),(0,W.useEffect)(()=>{_&&m&&!m.isDestroyed&&(y.current?y.current=!1:m.view.dispatch(m.state.tr.setMeta(f,{type:`updateOptions`,options:g.current})))},[_,m,n,r,a,s,i,o,f]),(0,Ee.createPortal)(c,d.current)});W.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,options:o,children:s,...c},l)=>{let u=(0,W.useRef)(document.createElement(`div`)),d=(0,W.useRef)(_H(e,`floatingMenu`)).current;VH(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=vP(),p=t||f,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:a,options:o},h=(0,W.useRef)(m);h.current=m;let[g,_]=(0,W.useState)(!1),v=(0,W.useRef)(!0);return(0,W.useEffect)(()=>{if(p?.isDestroyed)return;if(!p){console.warn(`FloatingMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=u.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=gH({...h.current,editor:p,element:e});p.registerPlugin(t);let n=h.current.pluginKey;return v.current=!0,_(!0),()=>{_(!1),p.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[p]),(0,W.useEffect)(()=>{g&&p&&!p.isDestroyed&&(v.current?v.current=!1:p.view.dispatch(p.state.tr.setMeta(d,{type:`updateOptions`,options:h.current})))},[g,p,n,r,a,o,i,d]),(0,Ee.createPortal)(s,u.current)});function UH({editor:e}){let t=Sv(),n=(0,W.useRef)(null),r=(0,W.useRef)(null),[i]=(0,W.useState)(()=>document.createElement(`div`)),[a,o]=(0,W.useState)(),s=fP({editor:e,selector:({editor:e})=>({bold:e.isActive(`bold`),italic:e.isActive(`italic`),heading:e.isActive(`heading`,{level:2}),bullets:e.isActive(`bulletList`),numbers:e.isActive(`orderedList`)})}),c=(0,W.useMemo)(()=>({strategy:`fixed`,placement:`top`,offset:8,scrollTarget:a,flip:{padding:8,boundary:a},shift:{padding:8,boundary:a},hide:{boundary:a}}),[a]),l=(0,W.useCallback)(({view:t,state:n,from:i,to:a,element:o})=>(r.current!==`${i}:${a}`&&(r.current=null),!r.current&&e.isEditable&&!n.selection.empty&&!!n.doc.textBetween(i,a).trim()&&(t.hasFocus()||o.contains(document.activeElement))),[e]),u=(0,W.useCallback)(()=>{let{from:t,to:n}=e.state.selection;r.current=`${t}:${n}`,e.view.focus(),e.commands.setMeta(`editorFormatting`,`hide`)},[e]);(0,W.useEffect)(()=>{document.body.append(i),o(e.view.dom.closest(`.note-notes-pane`)??void 0);let t=t=>{t.altKey&&t.key===`F10`&&!e.state.selection.empty?(t.preventDefault(),r.current=null,e.commands.setMeta(`editorFormatting`,`show`),n.current?.querySelector(`button`)?.focus()):t.key===`Escape`&&n.current?.isConnected&&(t.preventDefault(),t.stopPropagation(),u())},a=e.view.dom,s=()=>{r.current=null};return a.addEventListener(`keydown`,t),e.on(`selectionUpdate`,s),()=>{a.removeEventListener(`keydown`,t),e.off(`selectionUpdate`,s),i.remove()}},[e,u,i]);let d=[{label:G(`Bold`),icon:gg,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:G(`Italic`),icon:m_,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:G(`Heading`),icon:o_,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:G(`Bulleted list`),icon:E_,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:G(`Numbered list`),icon:w_,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,q.jsx)(HH,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,q.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":G(`Text formatting`),dir:mt(t),onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),u();return}if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let n=Array.from(e.currentTarget.querySelectorAll(`button`)),r=n.indexOf(document.activeElement),i=(e.key===`ArrowRight`?1:-1)*(mt(t)===`rtl`?-1:1);n[e.key===`Home`?0:e.key===`End`?n.length-1:(r+i+n.length)%n.length]?.focus()},onBlur:t=>{!t.currentTarget.contains(t.relatedTarget)&&t.relatedTarget!==e.view.dom&&e.commands.setMeta(`editorFormatting`,`hide`)},children:d.map(({label:t,icon:n,active:r,shortcut:i,run:a},o)=>(0,q.jsx)(`button`,{type:`button`,tabIndex:o===0?0:-1,"aria-label":t,title:t,"aria-pressed":r,"aria-keyshortcuts":i,onClick:t=>{e.view.dispatch(mO(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,q.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var WH=class{text=``;times=[];update(e,t){let n=0,r=0;for(;n<this.text.length&&n<e.length&&this.text[n]===e[n];)n++;for(;r<this.text.length-n&&r<e.length-n&&this.text[this.text.length-1-r]===e[e.length-1-r];)r++;return this.times=[...this.times.slice(0,n),...Array(e.length-n-r).fill(t),...r?this.times.slice(-r):[]],this.text=e,[...e.matchAll(/\S+/g)].map(e=>({from:e.index,to:e.index+e[0].length,born:this.times[e.index]}))}},GH=new pS(`streamingInk`),KH=e=>Math.max(0,Math.min(1,e)),qH=Gt(.18,.8,.25,1),JH=OM.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new WH;return[new uS({key:GH,state:{init:()=>({live:!1,reduced:!1,decorations:JE.empty}),apply(t,n){let r=t.getMeta(GH)??n;if(!r.live)return e.update(``,0),{...r,decorations:JE.empty};if(!t.docChanged&&r.live===n.live&&r.reduced===n.reduced)return n;let i=``,a=[];t.doc.descendants((e,t)=>{e.isTextblock&&(i+=`
+`),e.isText&&(a.push({from:i.length,to:i.length+e.text.length,pos:t}),i+=e.text)});let o=performance.now(),s=[],c=0;for(let t of e.update(i,o)){for(;c<a.length&&a[c].to<=t.from;)c++;if(!(r.reduced||o-t.born>=420))for(let e=c;e<a.length&&a[e].from<t.to;e++){let n=a[e];s.push(GE.inline(n.pos+Math.max(0,t.from-n.from),n.pos+Math.min(n.to,t.to)-n.from,{class:`summary-ink`,"data-ink-born":String(t.born)}))}}return{...r,decorations:JE.create(t.doc,s)}}},props:{decorations:e=>GH.getState(e).decorations},view(e){let t=0,n,r=142,i=a=>{cancelAnimationFrame(t);let o=e.dom.closest(`.summary-surface`);if(!o)return;let s=o.querySelector(`.summary-wash`),c=o.querySelector(`.summary-heading-bar`),{live:l,reduced:u}=GH.getState(e.state),d=l&&!e.state.doc.textContent.trim();if(o.dataset.waiting=String(d),s.replaceChildren(),(!l||d)&&(n=void 0),l&&!d&&n===void 0&&(n=a),l&&!d&&a-n<260){let t=e.dom.querySelector(`h1,h2,h3`);if(t){let e=document.createRange();e.selectNodeContents(t),r=e.getBoundingClientRect().width}else r=142}let f=d?0:!l||u?1:KH((a-(n??a))/260),p=1-(1-f)**3;e.dom.style.opacity=String(d||!l||u?1:p),c.hidden=!l||!d&&f===1,c.style.width=`${142+(r-142)*qH(f)}px`,c.style.transform=`scaleY(${1-.72*qH(f)})`,c.style.opacity=String(d?1:1-p);let m=l&&!d&&f<1;if(l&&!u){let t=o.getBoundingClientRect(),n=o.querySelector(`filter`).id;for(let r of e.dom.querySelectorAll(`[data-ink-born]`)){let e=a-Number(r.dataset.inkBorn);if(r.style.setProperty(`--ink-fresh`,`${(1-KH(e/420))*100}%`),e>=420)continue;m=!0;let i=document.createRange();i.selectNodeContents(r);for(let r of i.getClientRects()){let i=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),a=r.width+4,o=qH(KH(e/260));i.setAttribute(`transform`,`translate(${r.left-t.left-2+a*.12*(1-o)} ${r.top-t.top}) scale(${o} 1)`),i.setAttribute(`opacity`,String(.11*(1-KH((e-160)/260))*p)),i.setAttribute(`filter`,`url(#${n})`),i.innerHTML=`<rect y="6" width="${a*.82}" height="12" rx="8"/><circle cx="${a-4}" cy="12" r="4"/>`,s.append(i)}}}m&&(t=requestAnimationFrame(i))};return{update:()=>i(performance.now()),destroy:()=>cancelAnimationFrame(t)}}})]}}),YH=bM.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function XH(e){let t=(0,W.useId)(),n=kf(),r=(0,W.useRef)(e.onChange),i=(0,W.useRef)(e.onBlur);r.current=e.onChange,i.current=e.onBlur;let a=(0,W.useRef)(e.markdown),o=gP({extensions:[jz.configure({heading:{levels:[1,2,3]},code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,strike:!1,underline:!1,trailingNode:!1,link:{openOnClick:!1,autolink:!0,defaultProtocol:`https`}}),Mz.configure({placeholder:e.placeholder??``}),YH,JH],content:Le(e.markdown,{streaming:e.streaming}),editable:e.editable??!0,shouldRerenderOnTransaction:!1,editorProps:{attributes:{dir:`auto`,"data-testid":e.testId,class:`note-prose outline-none ${e.className??``}`,spellcheck:`true`,role:`textbox`,"aria-label":e.label,"aria-multiline":`true`,"aria-readonly":String(e.editable===!1)}},onUpdate:({editor:e})=>{let t=qe(e.getJSON());t!==a.current&&(a.current=t,r.current?.(t))},onBlur:()=>i.current?.()});return(0,W.useLayoutEffect)(()=>{if(!o||o.isDestroyed)return;a.current=e.markdown;let t=o.chain().setMeta(GH,{live:!!e.streaming,reduced:n});(qe(o.getJSON())!==e.markdown||e.streaming)&&t.setContent(Le(e.markdown,{streaming:e.streaming}),{emitUpdate:!1}),t.run()},[o,e.markdown,e.streaming,n]),(0,W.useEffect)(()=>{if(!o||o.isDestroyed||!e.focus?.match)return;let t,n=0,r=requestAnimationFrame(()=>{if(o.isDestroyed)return;let r=Array.from(o.view.dom.querySelectorAll(`p,h1,h2,h3`)),i=r[dt(r.map(e=>e.textContent??``),e.focus.match)];if(!i)return;i.scrollIntoView({block:`center`});let a=document.createRange();a.selectNodeContents(i),t=new Highlight(a),CSS.highlights.set(`citation-target`,t),n=window.setTimeout(()=>CSS.highlights.delete(`citation-target`),2400)});return()=>{cancelAnimationFrame(r),clearTimeout(n),CSS.highlights.get(`citation-target`)===t&&CSS.highlights.delete(`citation-target`)}},[o,e.focus?.seq]),(0,W.useEffect)(()=>{o&&!o.isDestroyed&&o.setEditable(e.editable??!0,!1)},[o,e.editable]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,q.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,q.jsx)(`defs`,{children:(0,q.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,q.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,q.jsx)(`feColorMatrix`,{values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})}),(0,q.jsx)(`g`,{className:`summary-wash`})]}),(0,q.jsx)(lP,{editor:o}),(0,q.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,q.jsx)(UH,{editor:o})]})}function ZH(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.kind}:${e.id}`;return!n.has(t)&&(n.add(t),!0)})}function QH(e){return e.startsWith(`/note/`)?{panel:!0,fresh:!1,chips:[{kind:`meeting`,id:e.slice(6)}]}:e.startsWith(`/folder/`)?{panel:!1,fresh:!1,chips:[{kind:`folder`,id:e.slice(8)}]}:{panel:!1,fresh:e===`/chat`||e.startsWith(`/chat/`),chips:[]}}function $H(e,t){let n=/(?:^|\s)@([^@\n]{0,80})$/.exec(e.slice(0,t));return n?{start:t-n[1].length-1,end:t,query:n[1]}:void 0}var eU=4e3;function tU(e,t){let n=nU(e);return n[Math.min(Math.max(0,t),n.length-1)]}function nU(e){if(!e||e.kind===`loading`)return[G(`Thinking…`),G(`Still thinking…`)];if(e.kind===`searching`)return[G(`Searching your meetings…`),G(`Still searching your meetings…`)];let t=G(`Still reading. Your answer comes next.`);if(e.title!==void 0||!e.meetings){let n=e.title?.trim()||G(`Untitled meeting`);return[G(`Reading {title}…`,{title:n}),G(`Still reading {title}…`,{title:n}),t]}return[G(`Reading {count} meetings…`,{count:e.meetings}),G(`Still reading {count} meetings…`,{count:e.meetings}),t]}var rU=864e5,iU=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/rU);function aU(e,t={}){let n=new Date(e),r=iU(e);if(r===0)return G(`Today`);if(r===1)return G(`Yesterday`);if(r===-1)return G(`Tomorrow`);if(t.weekday&&r>1&&r<7)return n.toLocaleDateString(yt(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(yt(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function oU(e){let t=iU(e);if(t===0||t===1)return aU(e);let n=new Date(e);return n.toLocaleDateString(yt(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var sU=e=>new Date(e).toLocaleTimeString(yt(),{hour:`numeric`,minute:`2-digit`}),cU=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},lU=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},uU=(e,t)=>t.startsWith(e)?e:t.slice(0,lU(t,cU(e,t))),dU=class{shown;target;since=0;constructor(e,t){this.target=e,this.shown=t?``:e}get settled(){return this.shown===this.target}update(e,t,n,r=!1){let i=this.settled;this.target=e,!t||r?this.shown=e:(this.shown=uU(this.shown,e),i&&(this.since=n))}tick(e){let t=this.target.length-this.shown.length;if(t<=0){this.since=e;return}let n=Math.min(5,250/t),r=Math.min(t,Math.floor((e-this.since)/n));r<=0||(this.shown=this.target.slice(0,lU(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function fU(e,t,n={}){let r=kf(),i=t&&!r,[a]=(0,W.useState)(()=>new dU(e,i&&!n.startShown)),[o,s]=(0,W.useState)(a.shown),c=(0,W.useRef)(n.minCommitMs??0);return c.current=n.minCommitMs??0,(0,W.useEffect)(()=>{if(a.update(e,i,performance.now()),s(a.shown),a.settled)return;let t=0,n=performance.now(),r=e=>{a.tick(e),(a.settled||e-n>=c.current)&&(n=e,s(a.shown)),a.settled||(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[a,e,i]),i?uU(o,e):e}var pU={};function mU(e,t){let n=W.useRef(pU);return n.current===pU&&(n.current=e(t)),n}var hU=[],gU=void 0;function _U(){return gU}function vU(e){hU.push(e)}function yU(e){let t=(t,n)=>{let r=mU(xU).current,i;try{gU=r;for(let e of hU)e.before(r);i=e(t,n);for(let e of hU)e.after(r);r.didInitialize=!0}finally{gU=void 0}return i};return t.displayName=e.displayName||e.name,t}function bU(e){return W.forwardRef(yU(e))}function xU(){return{didInitialize:!1}}function SU(){}var CU=Object.freeze([]),wU=Object.freeze({});function TU(e){W.useEffect(e,CU)}var EU=0,DU=class e{static create(){return new e}currentId=EU;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=EU,t()},e)}isStarted(){return this.currentId!==EU}clear=()=>{this.currentId!==EU&&(clearTimeout(this.currentId),this.currentId=EU)};disposeEffect=()=>this.clear};function OU(){let e=mU(DU.create).current;return TU(e.disposeEffect),e}var Q=typeof document<`u`?W.useLayoutEffect:()=>{};function kU(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:AU,platform:jU,maxTouchPoints:MU}=kU(),NU=AU.toLowerCase(),PU=jU.toLowerCase(),FU=/^i(os$|p)/.test(PU)||PU===`macintel`&&MU>1,IU=`android`,LU=PU===IU||NU.includes(IU),RU=!FU&&PU.startsWith(`mac`);PU.startsWith(`win`),!LU&&/^(linux|chrome os)/.test(PU);var zU=RU||FU,BU=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!BU&&NU.includes(`firefox`),!BU&&NU.includes(`chrom`);var VU=zU,HU=/jsdom|happydom/.test(NU);function UU(e){e.preventDefault(),e.stopPropagation()}function WU(e){return`nativeEvent`in e}function GU(e){return e.pointerType===``&&e.isTrusted?!0:LU&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function KU(e){return HU?!1:!LU&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(LU||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function qU(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function JU(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function YU(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function $(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&IB(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function XU(e,t){let n=e;for(;n;){if(PB(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(IB(n)?n.host:null)}return null}function ZU(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var QU=`data-base-ui-focusable`,$U=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,eW=`ArrowLeft`,tW=`ArrowRight`,nW=`ArrowUp`,rW=`ArrowDown`,iW=`data-starting-style`,aW=`data-ending-style`,oW={[iW]:``},sW={[aW]:``},cW={transitionStatus(e){return e===`starting`?oW:e===`ending`?sW:null}},lW=`data-open`,uW=`data-closed`,dW=`data-anchor-hidden`,fW=`data-popup-open`,pW=`data-pressed`,mW={[fW]:``},hW={[fW]:``,[pW]:``},gW={[lW]:``},_W={[uW]:``},vW={[dW]:``},yW={open(e){return e?mW:null}},bW={open(e){return e?hW:null}},xW={open(e){return e?gW:_W},anchorHidden(e){return e?vW:null}},SW={...xW,...cW},CW=`data-trigger-disabled`;function wW(e,t){if(!PB(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(CW);for(let[,e]of t.entries())if($(e,n))return!e.hasAttribute(CW);return!1}function TW(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function EW(e){return e.matches(`html,body`)}function DW(e){return FB(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function OW(e){return XU(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${$U}`)!=null}function kW(e){return e?e.getAttribute(`role`)===`combobox`&&DW(e):!1}function AW(e){if(!e||HU)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function jW(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function MW(e,t){return t!=null&&!qU(t)?0:typeof e==`function`?e():e}function NW(e,t,n){let r=MW(e,n);return typeof r==`number`?r:r?.[t]}function PW(e){return typeof e==`function`?e():e}function FW(e,t){return t||e===`click`||e===`mousedown`}function IW(e){return e?.includes(`mouse`)&&e!==`mousedown`}function LW(e,t,n,r){let i=!1,a=!1,o=r??wU;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function RW(e,t,n){let r=n??wU;return{reason:e,event:t??new Event(`base-ui`),...r}}var zW=`none`,BW=`trigger-press`,VW=`trigger-hover`,HW=`trigger-focus`,UW=`outside-press`,WW=`item-press`,GW=`close-press`,KW=`focus-out`,qW=`escape-key`,JW=`list-navigation`,YW=`keyboard`,XW=`pointer`,ZW=`cancel-open`,QW=`sibling-open`,$W=`imperative-action`;function eG(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function tG(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function nG(e,t,n,r){let i=mU(iG).current;return aG(i,e,t,n,r)&&sG(i,[e,t,n,r]),i.callback}function rG(e){let t=mU(iG).current;return oG(t,e)&&sG(t,e),t.callback}function iG(){return{callback:null,cleanup:null,refs:[]}}function aG(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function oG(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function sG(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function cG(e){let t=mU(lG,e).current;return t.next=e,Q(t.effect),t}function lG(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var uG={...W},dG=uG.useInsertionEffect,fG=dG&&dG!==uG.useLayoutEffect?dG:e=>e();function pG(e){let t=mU(mG).current;return t.next=e,fG(t.effect),t.trampoline}function mG(){let e={next:void 0,callback:hG,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function hG(){}var gG=null;globalThis.requestAnimationFrame;var _G=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},vG=class e{static create(){return new e}static request(e){return _G.request(e)}static cancel(e){return _G.cancel(e)}currentId=gG;request(e){this.cancel(),this.currentId=_G.request(()=>{this.currentId=gG,e()})}cancel=()=>{this.currentId!==gG&&(_G.cancel(this.currentId),this.currentId=gG)};disposeEffect=()=>this.cancel};function yG(){let e=mU(vG.create).current;return TU(e.disposeEffect),e}function bG(e){return e?.ownerDocument||document}var xG={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},SG={...xG,position:`fixed`,margin:0,top:0,left:0};({...xG});var CG=W.forwardRef(function(e,t){let[n,r]=W.useState();Q(()=>{VU&&BU&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,q.jsx)(`span`,{...e,ref:t,style:SG,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function wG(e,t){return t<0||t>=e.length}function TG(e,t){return OG(e.current,{disabledIndices:t})}function EG(e,t){return OG(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function DG(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>OG(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:wG(e,u)?-1:u,wrapped:d}}function OG(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&kG(e,a,r));return a}function kG(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!jG(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function AG(e){return e.visibility===`hidden`||e.visibility===`collapse`}function jG(e,t=e?JB(e):null){return!e||!e.isConnected||!t||AG(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var MG=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function NG(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return IB(n)?n.host:null}function PG(e){for(let t of Array.from(e.children))if(AB(t)===`summary`)return t;return null}function FG(e,t){let n=PG(t);return!!n&&(e===n||$(n,e))}function IG(e){let t=e?AB(e):``;return e!=null&&e.matches(MG)&&(t!==`summary`||e.parentElement!=null&&AB(e.parentElement)===`details`&&PG(e.parentElement)===e)&&(t!==`details`||PG(e)==null)&&(t!==`input`||e.type!==`hidden`)}function LG(e){if(!IG(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=NG(t)){let n=t!==e,r=AB(t)===`slot`;if(t.hasAttribute(`inert`)||n&&AB(t)===`details`&&!t.open&&!FG(e,t)||t.hasAttribute(`hidden`)||!r&&!RG(t,n))return!1}return!0}function RG(e,t){let n=JB(e);return t?n.display!==`none`:jG(e,n)}function zG(e){let t=e.tabIndex;if(t<0){let t=AB(e);if(t===`details`||t===`audio`||t===`video`||FB(e)&&e.isContentEditable)return 0}return t}function BG(e){if(AB(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function VG(e,t){let n=BG(e);if(!n)return!0;let r=t.find(e=>{let t=BG(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=BG(e);return t?.name===n.name&&t.form===n.form})===n}function HG(e){if(FB(e)&&AB(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return FB(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function UG(e,t){HG(e).forEach(e=>{IG(e)&&t.push(e),UG(e,t)})}function WG(e,t,n){HG(e).forEach(e=>{FB(e)&&e.matches(t)&&n.push(e),WG(e,t,n)})}function GG(e){return LG(e)&&zG(e)>=0}function KG(e){let t=[];return UG(e,t),t.filter(LG)}function qG(e){let t=KG(e);return t.filter(e=>zG(e)>=0&&VG(e,t))}function JG(e,t){let n=qG(e),r=n.length;if(r===0)return;let i=YU(bG(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function YG(e){return JG(bG(e).body,1)||e}function XG(e){return JG(bG(e).body,-1)||e}function ZG(e,t,n){if(!e)return null;let r=[];UG(bG(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(LG);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!$(n,o)&&GG(o)&&VG(o,a))return o}return r[i]}function QG(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function $G(e){qG(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function eK(e){let t=[];WG(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function tK(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...tK(e,t.id,n)])}function nK(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function rK(e){return`data-base-ui-${e}`}var iK=0;function aK(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(iK);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),SU;let o=requestAnimationFrame(a);return iK=o,()=>{iK===o&&(cancelAnimationFrame(o),iK=0)}}var oK=`data-base-ui-inert`,sK=new WeakMap,cK=new WeakSet,lK=new WeakMap,uK=0;function dK(e){return e?IB(e)?e.host:dK(e.parentNode):null}var fK=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=dK(t);return e.contains(n)?n:null}).filter(e=>e!=null),pK=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},mK=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{AB(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function hK(e,t,n,{mark:r=!0}){let i=fK(t,e),a=r?mK(t,pK(i),new Set(i)):[],o=[],s=[];if(n){let e=fK(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);mK(t,pK(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(sK.get(e)||0)+1;sK.set(e,r),o.push(e),r===1&&n&&cK.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(lK.get(e)||0)+1;lK.set(e,t),s.push(e),t===1&&e.setAttribute(oK,``)}),uK+=1,()=>{o.forEach(e=>{let t=(sK.get(e)||0)-1;sK.set(e,t),t||(cK.has(e)||e.removeAttribute(`aria-hidden`),cK.delete(e))}),r&&s.forEach(e=>{let t=(lK.get(e)||0)-1;lK.set(e,t),t||e.removeAttribute(oK)}),--uK,uK||(sK=new WeakMap,cK=new WeakSet,lK=new WeakMap)}}function gK(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=bG(e[0]).body;return hK(e,i,n,{mark:r})}function _K(){let[,e]=W.useState({});return W.useCallback(()=>{e({})},[])}var vK=0;function yK(e,t=`mui`){let n=W.useRef(void 0),r=_K(),i=e??n.current;return W.useEffect(()=>{n.current??(vK+=1,n.current=`${t}-${vK}`,e??r())},[e,t,r]),i}var bK=uG.useId;function xK(e,t){if(bK!==void 0){let n=bK();return e??(t?`${t}-${n}`:n)}return yK(e,t)}var SK=19;function CK(e){return SK>=e}function wK(e){if(!W.isValidElement(e))return null;let t=e,n=t.props;return(CK(19)?n?.ref:t.ref)??null}function TK(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function EK(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function DK(e,t){return typeof e==`function`?e(t):e}function OK(e,t){return typeof e==`function`?e(t):e}var kK={};function AK(e,t,n,r,i){if(!n&&!r&&!i&&!e)return MK(t);let a=MK(e);return t&&(a=NK(a,t)),n&&(a=NK(a,n)),r&&(a=NK(a,r)),i&&(a=NK(a,i)),a}function jK(e){if(e.length===0)return kK;if(e.length===1)return MK(e[0]);let t=MK(e[0]);for(let n=1;n<e.length;n+=1)t=NK(t,e[n]);return t}function MK(e){return LK(e)?{...e(kK)}:PK(e)}function NK(e,t){return LK(t)?t(e):FK(e,t)}function PK(e){let t={...e};for(let e in t){let n=t[e];IK(e,n)&&(t[e]=zK(n))}return t}function FK(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=TK(e.style,r);break;case`className`:e[n]=VK(e.className,r);break;default:e[n]=IK(n,r)?RK(e[n],r):r}}return e}function IK(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function LK(e){return typeof e==`function`}function RK(e,t){return t?e?(...n)=>{let r=n[0];if(HK(r)){let i=r;BK(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:zK(t):e}function zK(e){return e&&((...t)=>{let n=t[0];return HK(n)&&BK(n),e(...t)})}function BK(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function VK(e,t){return t?e?t+` `+e:t:e}function HK(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function UK(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=qK(r));let i=WK(t,n,r);if(n.enabled===!1)return null;let a=n.state??wU;return JK(e,r,i,a)}function WK(e,t,n){let{className:r,style:i}=e,{state:a=wU,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?DK(r,a):void 0,d=l?OK(i,a):void 0,f=l?EK(a,c):wU,p=l&&s?GK(s):void 0,m=l?TK(f,p)??{}:wU;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?rG([m.ref,wK(n),...o]):nG(m.ref,wK(n),o):nG(null,null)),l?(u!==void 0&&(m.className=VK(m.className,u)),d!==void 0&&(m.style=TK(m.style,d)),m):wU}function GK(e){return Array.isArray(e)?jK(e):AK(void 0,e)}var KK=Symbol.for(`react.lazy`);function qK(e){if(e?.$$typeof!==KK)return e;let t=W.Children.toArray(e)[0];return W.isValidElement(t)?t:e}function JK(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=AK(n,t.props);return e.ref=n.ref,W.cloneElement(t,e)}return YK(e,n)}function YK(e,t){return e===`button`?(0,W.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,W.createElement)(`img`,{alt:``,...t,key:t.key}):W.createElement(e,t)}var XK={style:{transition:`none`}},ZK=`data-base-ui-click-trigger`,QK=`data-base-ui-swipe-ignore`,$K=`data-swipe-ignore`,eq=`[${QK}]`,tq=`[${$K}]`,nq={fallbackAxisSide:`none`},rq={fallbackAxisSide:`end`},iq={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},aq=W.createContext(null),oq=()=>W.useContext(aq),sq=rK(`portal`);function cq(e={}){let{ref:t,container:n,componentProps:r=wU,elementProps:i}=e,a=xK(),o=oq()?.portalNode,[s,c]=W.useState(null),[l,u]=W.useState(null),d=pG(e=>{e!==null&&u(e)}),f=W.useRef(null);Q(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(NB(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=UK(`div`,r,{ref:[t,d],props:[{id:a,[sq]:``},i]}),m=s&&p?Ee.createPortal(p,s):null;return{node:l,nodeId:W.isValidElement(p)?p.props.id:void 0,subtree:m}}var lq=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=cq({container:o,ref:t,componentProps:e,elementProps:c}),f=W.useRef(null),p=W.useRef(null),m=W.useRef(null),h=W.useRef(null),[g,_]=W.useState(null),v=W.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;W.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&QG(e)&&(e.type===`focusin`?v.current&&=(eK(l),!1):($G(l),v.current=!0))}return tG(eG(l,`focusin`,e,!0),eG(l,`focusout`,e,!0))},[l,y]),Q(()=>{l&&b===!0&&v.current&&(eK(l),v.current=!1)},[b,l]);let S=W.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,q.jsxs)(W.Fragment,{children:[d,(0,q.jsxs)(aq.Provider,{value:S,children:[x&&l&&(0,q.jsx)(CG,{"data-type":`outside`,ref:f,onFocus:e=>{QG(e,l)?m.current?.focus():XG(g?g.domReference:null)?.focus()}}),x&&l&&(0,q.jsx)(`span`,{role:s,"aria-owns":u,style:iq}),l&&Ee.createPortal(a,l),x&&l&&(0,q.jsx)(CG,{"data-type":`outside`,ref:p,onFocus:e=>{QG(e,l)?h.current?.focus():(YG(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,LW(`focus-out`,e.nativeEvent)))}})]})]})});function uq(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var dq=class{nodesRef={current:[]};events=uq();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},fq=W.createContext(null),pq=W.createContext(null),mq=()=>W.useContext(fq)?.id||null,hq=e=>{let t=W.useContext(pq);return e??t};function gq(e){let t=xK(),n=hq(e),r=mq();return Q(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function _q(e){let{children:t,id:n}=e,r=mq();return(0,q.jsx)(fq.Provider,{value:W.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function vq(e){let{children:t,externalTree:n}=e,r=mU(()=>n??new dq).current;return(0,q.jsx)(pq.Provider,{value:r,children:t})}function yq(e){return e==null?e:`current`in e?e.current:e}function bq(e,t){let n=jB(ZU(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(GU(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var xq=20,Sq=[];function Cq(){Sq=Sq.filter(e=>e.deref()?.isConnected)}function wq(e){Cq(),e&&AB(e)!==`body`&&(Sq.push(new WeakRef(e)),Sq.length>xq&&(Sq=Sq.slice(-20)))}function Tq(){return Cq(),Sq[Sq.length-1]?.deref()}function Eq(e){return e?GG(e)?e:qG(e)[0]||e:null}function Dq(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=KG(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return GG(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Oq(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=pG(()=>b.current.floatingContext?.nodeId),S=i===!1,C=kW(_)&&S,w=cG(i),T=cG(a),E=cG(o),D=cG(u),O=cG(g),k=hq(m),A=oq(),j=W.useRef(!1),M=W.useRef(!1),N=W.useRef(!1),P=W.useRef(null),F=W.useRef(``),I=W.useRef(``),L=W.useRef(null),R=W.useRef(null),z=nG(L,p,A?.beforeInsideRef),B=nG(R,A?.afterInsideRef),ee=OU(),te=OU(),ne=yG(),re=A!=null,V=jW(v),H=pG((e=V)=>e?qG(e):[]),ie=pG(()=>h?.().filter(e=>e!=null)??[]);W.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&$(V,YU(bG(V)))&&H().length===0&&!C&&UU(e)}return eG(bG(V),`keydown`,e)},[r,V,c,C,H]),W.useEffect(()=>{if(r||!g)return;let e=bG(V);function t(){N.current=!1}function n(e){let t=ZU(e),n=ie(),r=$(v,t)||$(_,t)||$(A?.portalNode,t)||n.some(e=>e===t||$(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,XU(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,te.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return tG(eG(e,`pointerdown`,n,!0),eG(e,`pointerup`,t,!0),eG(e,`pointercancel`,t,!0),eG(e,`keydown`,i,!0),t)},[r,v,_,V,g,A,te,ie]),W.useEffect(()=>{if(r||!l)return;let e=bG(V);function n(){M.current=!0,te.start(0,()=>{M.current=!1})}function i(e){let t=ZU(e);GG(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=ZU(n);c&&r==null&&a!=null&&$(v,a)&&wq(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=ie(),p=r?.hasAttribute(rK(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,yq(f),yq(d)].includes(r),m=!($(_,r)||$(v,r)||$(r,v)||$(A?.portalNode,r)||u.some(e=>e===r||$(e,r))||l.hasMatchingElement(e=>$(e,r))||p||k&&(tK(k.nodesRef.current,o).find(e=>$(e.context?.elements.floating,r)||$(e.context?.elements.domReference,r))||nK(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,jW(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&V&&Dq(V),s&&i!==_&&!jG(a)&&YU(e)===e.body){if(FB(V)&&(V.focus(),s===`popup`)){ne.request(()=>{V.focus()});return}let e=H(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||V;FB(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==Tq())&&(j.current=!0,t.setOpen(!1,LW(KW,n)))})}function o(){N.current||(b.current.insideReactTree=!0,ee.start(0,()=>{b.current.insideReactTree=!1}))}let u=FB(_)?_:null;if(v||u)return tG(u&&eG(u,`focusout`,a),u&&eG(u,`pointerdown`,n),v&&eG(v,`focusin`,i),v&&eG(v,`focusout`,a),v&&A&&eG(v,`focusout`,o,!0))},[r,_,v,V,c,k,A,t,l,s,H,C,x,b,ee,te,ne,d,f,ie]),W.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${rK(`portal`)}]`)||[]),t=(k?nK(k.nodesRef.current,x()):[]).find(e=>kW(e.context?.elements.domReference||null))?.context?.elements.domReference,n=gK([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ie(),t,yq(f),yq(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=gK([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,ie]),Q(()=>{if(!g||r||!FB(V))return;F.current=``,I.current=``;let e=bG(V),t=YU(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||$(V,t))return;let i=null,a=()=>(i??=H(V),i[0]||V),o;o=r===!0||r===null?a():yq(r),o||=a();let s=$(V,YU(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&GU(c);aK(o,{sync:l,preventScroll:o===V,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=YU(e);return!(t!==o&&$(V,t))}})})},[r,g,V,H,w,D,O,b]);let U=W.useRef(null);Q(()=>{if(r||!V){U.current=null;return}U.current&&=(U.current.cancelled=!0,null);let e=bG(V),t=YU(e),n=D.current==null;wq(t);function i(e){if(e.open||(F.current=bq(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(rK(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(GU(e.nativeEvent)||KU(e.nativeEvent))j.current=!1;else{let e=!1;bG(V).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&AB(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Tq()||null,typeof i==`boolean`?s:yq(i)||s||null}return()=>{y.off(`openchange`,i);let t=YU(e),n=ie(),r=$(v,t)||n.some(e=>e===t||$(e,t))||k&&tK(k.nodesRef.current,x(),!1).some(e=>$(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};U.current=l,queueMicrotask(()=>{U.current===l&&(U.current=null);let n=Eq(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&FB(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,V,T,E,D,y,k,_,x,ie]),Q(()=>{if(!BU||g||!v)return;let e=YU(bG(v));FB(e)&&DW(e)&&$(v,e)&&e.blur()},[g,v]),Q(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),Q(()=>{if(!r&&V)return Dq(V),()=>{queueMicrotask(Cq)}},[r,V]);let ae=!r&&(!c||!C)&&(re||c);return(0,q.jsxs)(W.Fragment,{children:[ae&&(0,q.jsx)(CG,{"data-type":`inside`,ref:z,onFocus:e=>{if(c){let e=H();aK(e[e.length-1])}else A?.portalNode&&(j.current=!1,QG(e,A.portalNode)?YG(_)?.focus():yq(f??A.beforeOutsideRef)?.focus())}}),n,ae&&(0,q.jsx)(CG,{"data-type":`inside`,ref:B,onFocus:e=>{c?aK(H()[0]):A?.portalNode&&(l&&(j.current=!0),QG(e,A.portalNode)?XG(_)?.focus():yq(d??A.afterOutsideRef)?.focus())}})]})}function kq(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=BW}=t,l=e.context.dataRef,u=W.useRef(void 0),d=yG(),f=OU(),p=W.useMemo(()=>{function t(t,n,r,i){let a=LW(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=qU(e.pointerType,!0)&&KU(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||qU(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ZU(s),p=DW(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:qU(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return W.useMemo(()=>n?{reference:p}:wU,[n,p])}function Aq(){return!1}function jq(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Mq(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Aq,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=hq(c),m=pG(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=pG(()=>a),{escapeKey:v,outsidePress:y}=jq(s),b=W.useRef(!1),x=W.useRef(!1),S=W.useRef(!1),C=W.useRef(!1),w=W.useRef(!1),T=W.useRef(``),E=W.useRef(null),D=OU(),O=OU(),k=OU(),A=pG(()=>{O.clear(),d.current.insideReactTree=!1}),j=pG(e=>{let t=d.current.floatingContext?.nodeId;return(p?tK(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=pG(t=>TW(t,e.select(`floatingElement`))||TW(t,e.select(`domReferenceElement`))),N=pG(t=>{o()&&e.setOpen(!1,LW(BW,t.nativeEvent))}),P=pG(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=WU(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=LW(qW,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=pG(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=pG(t=>{if(!l||!n||t.button!==0)return;let r=ZU(t.nativeEvent);$(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=pG(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});W.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),W.useEffect(()=>A,[A]),W.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new DU,i=bG(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(BU?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&tK(p.nodesRef.current,t).some(t=>TW(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=ZU(n),i=`[${rK(`inert`)}]`,a=PB(r)?r.getRootNode():null,o=Array.from((IB(a)?a:bG(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>$(e,r))))return;let c=PB(r)?r:null;for(;c&&!qB(c);){let e=XB(c);if(qB(e)||!PB(e))break;c=e}if(!(o.length&&PB(r)&&!EW(r)&&!$(r,e.select(`floatingElement`))&&o.every(e=>!$(c,e)))){if(FB(r)&&!(`touches`in n)){let e=qB(r),t=JB(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!GU(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,LW(UW,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=ZU(e);if(!n)return;let r=eG(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function z(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function B(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function ee(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function te(e){L(e,ee)}function ne(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function re(e){L(e,ne)}let V=tG(r&&tG(eG(i,`keydown`,P),eG(i,`compositionstart`,a),eG(i,`compositionend`,o)),g&&tG(eG(i,`click`,z,!0),eG(i,`pointerdown`,z,!0),eG(i,`pointerup`,B,!0),eG(i,`pointercancel`,B,!0),eG(i,`mousedown`,z,!0),eG(i,`mouseup`,B,!0),eG(i,`touchstart`,R,{capture:!0,passive:!0}),eG(i,`touchmove`,te,{capture:!0,passive:!0}),eG(i,`touchend`,re,{capture:!0,passive:!0})));return()=>{V(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let R=W.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),z=W.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return W.useMemo(()=>n?{reference:R,floating:z,trigger:R}:{},[n,R,z])}function Nq(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Pq=Nq(`https://base-ui.com/production-error`,`Base UI`),Fq=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let t=this.attachedStores.lastIndexOf(e);t!==-1&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let t=this.attachedStore;if(t===null)return;let n;if(e){for(let t=this.attachedStores.length-1;t>=0&&!n;--t)n=this.attachedStores[t].context.triggerElements.getById(e);n??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!n&&this.throwOnMissingTrigger)throw Error(Pq(99,this.componentName,e,this.componentName));t.setOpen(!0,LW($W,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,LW($W))}};function Iq(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Q(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};PB(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function Lq(e,t=!1,n=!1,r=!1){let[i,a]=W.useState(e&&t?`idle`:void 0),[o,s]=W.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Q(()=>{if(!e&&o&&i!==`ending`&&n){let e=vG.request(()=>{a(`ending`)});return()=>{vG.cancel(e)}}},[e,o,i,n]),Q(()=>{if(!e||t||i===void 0)return;let n=vG.request(()=>{a(void 0)});return()=>{vG.cancel(n)}},[t,e,i]),Q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=vG.request(()=>{a(`idle`)});return()=>{vG.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Rq(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var zq=null;function Bq(e){if(!zq){let e=[];zq=e,queueMicrotask(()=>{zq=null,Ee.flushSync(()=>{for(let t of e)t()})})}zq.push(e)}function Vq(e,t=!1,n=!1){let r=yG();return pG((i,a=null)=>{r.cancel();let o=yq(e);if(o==null)return;let s=o,c=()=>{n?Bq(()=>{a?.aborted||i()}):Ee.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Rq(s).map(e=>e.finished.then(SU))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Rq(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=iW;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function Hq(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=pG(a),s=Vq(r,n,i);W.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function Uq(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=pG(i),{mounted:c,setMounted:l,transitionStatus:u}=Lq(t,!1,!1,o),d=!t&&r;Q(()=>{t&&s(!1)},[t,s]);let f=W.useRef(c),p=W.useRef(!1),m=_K(),h=()=>{f.current=!1,l(!1),a()};Q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=pG(()=>{f.current&&(t?(p.current=!0,m()):h())});return Hq({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var Wq={tabIndex:-1,[QU]:``};function Gq(e){return t=>t!==`touch`||e.current}function Kq(e,t=!1){let n=xK(),r=mq()!=null,i=mU(()=>e(n,r)).current;return Iq({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function qq({handle:e,store:t}){return Q(()=>e.attachStore(t),[e,t]),null}function Jq(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function Yq(e,t){let n=W.useRef(null);return pG(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),Jq(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Jq(t))})}function Xq(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function Zq(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Qq(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Yq(e,n),o=pG(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=pG(e=>{a(e),e&&o(e)});return Q(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Q(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function $q(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=W.useRef(null),i=e.useState(`open`);Q(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=LW(zW);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function eJ(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Uq({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return mU(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function tJ(e,t){e.useSyncedValues(t),Q(()=>()=>{e.update({activeTriggerProps:wU,inactiveTriggerProps:wU,popupProps:wU})},[e])}function nJ(e,t){Q(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Q(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var rJ=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},iJ=CK(19)?sJ:cJ;function aJ(e,t,n,r,i){return iJ(e,t,n,r,i)}function oJ(e,t,n,r,i){let a=W.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,gS.useSyncExternalStore)(e.subscribe,a,a)}vU({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,gS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function sJ(e,t,n,r,i){let a=_U();if(!a)return oJ(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function cJ(e,t,n,r,i){return(0,tP.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var lJ=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return aJ(this,e,t,n,r)}},uJ=class extends lJ{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){W.useDebugValue(e);let n=this;Q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Q(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Q(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){W.useDebugValue(e);let n=this,r=t!==void 0;Q(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return W.useDebugValue(e),aJ(this,this.selectors[e],t,n,r)}useContextCallback(e,t){W.useDebugValue(e);let n=pG(t??SU);this.context[e]=n}useStateSetter(e){let t=W.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},dJ={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},fJ=class extends uJ{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:uq(),nested:n,triggerElements:i},dJ),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&JU(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function pJ(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new fJ({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:wU,inactiveTriggerProps:wU,popupProps:wU}}var mJ=e=>e.triggerIdProp??e.activeTriggerId,hJ=e=>e.openProp??e.open,gJ=e=>(e.popupElement?.id??e.floatingId)||void 0;function _J(e,t){return t!==void 0&&hJ(e)&&mJ(e)===t}function vJ(e,t){return _J(e,t)?!0:t!==void 0&&hJ(e)&&mJ(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var yJ={open:hJ,mounted:e=>e.mounted,transitionStatus:e=>hJ(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:mJ,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:gJ,isTriggerActive:(e,t)=>t!==void 0&&mJ(e)===t,isOpenedByTrigger:(e,t)=>_J(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&mJ(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>vJ(e,t)?gJ(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function bJ(e){let t=W.useCallback(t=>e===void 0?SU:e.subscribeStore(t),[e]),n=W.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,gS.useSyncExternalStore)(t,n,()=>e?.serverStore)}function xJ(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=xK(),a=mq()!=null,o=mU(()=>new fJ({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new rJ,floatingId:i,syncOnly:!1,nested:a})).current;return Q(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=PB(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var SJ=RU&&BU;function CJ(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=W.useRef(!1),s=W.useRef(null),c=W.useRef(!0),l=OU();W.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=jB(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&FB(t)&&t===YU(bG(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return tG(eG(r,`blur`,i),SJ&&eG(r,`keydown`,a,!0),SJ&&eG(r,`pointerdown`,l,!0))},[e,n]),W.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);PB(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=W.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=ZU(n.nativeEvent);if(PB(a)){if(SJ&&!n.relatedTarget){if(!c.current&&!DW(a))return}else if(!AW(a))return}let u=wW(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,LW(HW,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,LW(HW,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=PB(r)&&r.hasAttribute(rK(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=YU(bG(t));!r&&n===t||$(a.current.floatingContext?.refs.floating.current,n)||$(t,n)||o||wW(r??n,e.context.triggerElements)||e.setOpen(!1,LW(HW,i))})}}},[a,r,e,l]);return W.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var wJ=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new DU;restTimeout=new DU;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},TJ=new WeakMap;function EJ(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&TJ.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),TJ.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function DJ(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=TJ.get(n);a&&a!==e&&EJ(a),EJ(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,TJ.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function OJ(e){let t=e.context.dataRef.current,n=mU(()=>t.hoverInteractionState??wJ.create()).current;return t.hoverInteractionState||=n,TU(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function kJ(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=hq(),u=mq(),d=OJ(e),f=OU(),p=pG(()=>FW(c.current.openEvent?.type,d.interactedInside)),m=pG(()=>IW(c.current.openEvent?.type)),h=pG(()=>{EJ(d)});Q(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),W.useEffect(()=>h,[h]),Q(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&PB(s)&&o){let e=s,t=o,n=bG(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??XU(e,`[data-rootownerid]`)??n.body;return DJ(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),W.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&tK(l.nodesRef.current,u).length>0)}function a(t){let n=NW(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,LW(VW,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=ZU(e);OW(t)?d.interactedInside=XU(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(wW(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&PB(o)&&tK(l.nodesRef.current,r,!1).some(e=>$(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,LW(VW,n)),l.events.emit(`floating.closed`,n)})}let y=o;return tG(y&&eG(y,`mouseenter`,g),y&&eG(y,`mouseleave`,_),y&&eG(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var AJ={current:null};function jJ(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=AJ,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=hq(l),v=OJ(e),y=W.useRef(!1),b=cG(i),x=cG(r),S=cG(o),C=cG(n),w=cG(p),T=cG(f),E=pG(()=>FW(h.current.openEvent?.type,v.interactedInside)),D=pG(()=>w.current?.()!==!1),O=pG((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!$(t,n);if(!PB(r))return!1;let a=r;return i.hasMatchingElement(e=>$(e,a))&&(!t||!$(t,a))}),k=pG(()=>{v.handler&&=(bG(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=pG(()=>{EJ(v)});return u&&(v.handleCloseOptions=i?.__options),W.useEffect(()=>k,[k]),W.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===VW,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),W.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=NW(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,LW(VW,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,LW(VW,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!PB(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!qU(v.pointerType))return;let n=PW(S.current),r=NW(x.current,`open`,v.pointerType),i=ZU(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(PB(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if($(t,i)){c=t;break}}PB(o)&&PB(s)&&!e.context.triggerElements.hasElement(o)&&$(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&PB(c)&&PB(s)&&$(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,LW(VW,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,LW(VW,t,c))}):g&&D()&&e.setOpen(!0,LW(VW,t,c)))}function o(n){if(E()){A();return}k();let r=bG(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!wW(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&$(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){$(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?eG(r,`mouseout`,l):void 0;return s?tG(eG(r,`mousemove`,i,{once:!0}),eG(r,`mouseenter`,i),eG(r,`mouseleave`,o),f):tG(eG(r,`mouseenter`,i),eG(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),W.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!qU(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;DJ(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=PW(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,LW(VW,n,r))}v.pointerType===`touch`?Ee.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function MJ(e){return BU&&e.movementX===0&&e.movementY===0}function NJ(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function PJ(e,t){return NJ(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function FJ(e,t,n){return NJ(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function IJ(e,t,n){return NJ(t,n?e===eW:e===tW,e===rW)}function LJ(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:NJ(t,n?e===tW:e===eW,e===nW)}function RJ(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=jW(E),A=kW(D),j=cG(k),M=mq(),N=hq(x),P=W.useRef(f),F=W.useRef(o??-1),I=W.useRef(null),L=W.useRef(!0),R=pG(e=>{i(F.current===-1?null:F.current,e)}),z=W.useRef(!!E),B=W.useRef(T),ee=W.useRef(!1),te=W.useRef(!1),ne=W.useRef(null),re=cG(h),V=cG(T),H=cG(o),ie=cG(b),U=yG(),ae=yG(),oe=pG(()=>{U.cancel();function e(e){d||(ne.current=aK(e,{sync:ee.current,preventScroll:!0}))}let t=n.current[F.current],r=te.current;t&&e(t),(ee.current?e=>e():e=>U.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),fe&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Q(()=>{O.current.orientation=g},[O,g]),Q(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Q(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(te.current=!0,R())):z.current&&(F.current=-1,R()))},[a,T,E,o,R]),Q(()=>{if(a){if(!T)ee.current=!1;else if(E){if(r==null){if(ee.current=!1,H.current!=null)return;if(z.current&&(F.current=-1,oe()),(!B.current||!z.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ae.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||FJ(I.current,_,u)||l?TG(n):EG(n),I.current=null,R())};t()}}else wG(n.current,r)||(F.current=r,oe(),te.current=!1)}}},[a,T,E,r,H,l,n,_,u,R,oe,ae]),Q(()=>{if(!a||E||!N||d||!z.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=YU(bG(D??t??null)),r=e.some(e=>e.context&&$(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Q(()=>{B.current=T,z.current=!!E});let se=r!=null,ce=pG(e=>{if(!V.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),le=pG(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),ue=pG(()=>TG(n,re.current)),de=pG(t=>{if(L.current=!1,ee.current=!0,t.which===229||!V.current&&t.currentTarget===j.current)return;if(l&&LJ(t.key,g,u,w)){PJ(t.key,le())||UU(t),e.setOpen(!1,LW(JW,t.nativeEvent));let n=S?.current??D;FB(n)&&n.focus();return}r!=null&&r!==F.current&&!wG(n.current,r)&&(F.current=r);let i=F.current,a=TG(n,h),o=EG(n,h);if(A||(t.key===`Home`&&(UU(t),F.current=a,R(t)),t.key===`End`&&(UU(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(PJ(t.key,g)){UU(t);let e=YU(t.currentTarget.ownerDocument);if(T&&!d&&$(t.currentTarget,e)&&!n.current.some(t=>t!=null&&$(t,e))){F.current=FJ(t.key,g,u)?a:o,R(t),r===F.current&&oe();return}let{index:l,wrapped:f}=DG(n.current,i,{decrement:!FJ(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(ee.current=!1),F.current=l,R(t)}}),fe=W.useMemo(()=>({onFocus(e){ee.current=!0,ce(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){MJ(e)||(ee.current=!0,te.current=!1,p&&ce(e))},onPointerLeave(e){if(!V.current||!L.current||e.pointerType===`touch`)return;ee.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ie.current&&(ne.current?.(),ne.current=null,F.current=-1,R(e),!d)){let e=j.current,t=YU(bG(e));e&&$(e,t)&&e.focus({preventScroll:!0})}}}),[ce,V,j,p,n,R,ie,d]),pe=W.useMemo(()=>d&&T&&se&&{"aria-activedescendant":`${y}-${r}`},[d,T,se,y,r]),me=W.useMemo(()=>({...A?{}:pe,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=ZU(t.nativeEvent);if(n&&!$(j.current,n))return;UU(t);let r=LW(KW,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&FB(i)&&i.focus()}else de(t)},onPointerMove(e){MJ(e)||(L.current=!0)}}),[pe,de,j,A,e,T,d,D,S]),he=W.useMemo(()=>{function t(t){e.setOpen(!0,LW(JW,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&GU(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&KU(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=IJ(n.key,le(),u),o=PJ(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||DW(n.currentTarget)))return de(n);if(r||m||!i){if(s){let e=PJ(n.key,le());I.current=l&&e?null:n.key}l?a&&(UU(n),r?(F.current=ue(),R(n),d&&j.current?.focus()):t(n)):o&&(H.current!=null&&(F.current=H.current),UU(n),!r&&m?t(n):de(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[de,f,ue,l,R,e,m,g,_,le,u,H,d,j]),ge=W.useMemo(()=>({...pe,...he}),[pe,he]);return W.useMemo(()=>a?{reference:ge,floating:me,item:fe,trigger:he}:{},[a,ge,me,he,fe])}function zJ(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=pG(s),f=e.useState(`open`),p=OU(),m=W.useRef(``),h=W.useRef(u??i??-1),g=W.useRef(null),_=pG(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!jG(n)||n?.matches(`:disabled`)?!1:o==null||!kG(CU,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(UU(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(UU(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=pG(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);$(r,n)||$(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Q(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=W.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return W.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var BJ=.1,VJ=BJ*BJ,HJ=.5;function UJ(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function WJ(e,t,n,r,i,a,o,s,c,l){let u=!1;return UJ(e,t,n,r,i,a)&&(u=!u),UJ(e,t,i,a,o,s)&&(u=!u),UJ(e,t,o,s,c,l)&&(u=!u),UJ(e,t,c,l,n,r)&&(u=!u),u}function GJ(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function KJ(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function qJ(e={}){let{blockPointerEvents:t=!1}=e,n=new DU,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*VJ;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ZU(r),g=r.type===`mouseleave`,_=$(u,h),v=$(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&PB(r.relatedTarget)&&$(u,r.relatedTarget))return;function y(){return!!(s&&tK(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=KJ(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=KJ(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=KJ(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=KJ(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!GJ(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?HJ/2:HJ*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+HJ+1,o=C||T?S.bottom-HJ:S.top,s=C?T?S.bottom-HJ:S.top:S.bottom-HJ;M=WJ(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?HJ/2:HJ*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-HJ,o=C||T?S.top+HJ:S.bottom,s=C?T?S.top+HJ:S.bottom:S.top+HJ;M=WJ(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?HJ/2:HJ*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+HJ+1,o=w||E?S.right-HJ:S.left,s=w?E?S.right-HJ:S.left:S.right-HJ;M=WJ(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?HJ/2:HJ*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-HJ,o=w||E?S.left+HJ:S.right,s=w?E?S.left+HJ:S.right:S.left+HJ;M=WJ(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var JJ=typeof document<`u`?W.useLayoutEffect:function(){};function YJ(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!YJ(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!YJ(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function XJ(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZJ(e,t){let n=XJ(e);return Math.round(t*n)/n}function QJ(e){let t=W.useRef(e);return JJ(()=>{t.current=e}),t}function $J(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=W.useState(r);YJ(f,r)||p(r);let[m,h]=W.useState(null),[g,_]=W.useState(null),v=W.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=W.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=W.useRef(null),C=W.useRef(null),w=W.useRef(u),T=c!=null,E=QJ(c),D=QJ(i),O=QJ(l),k=W.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),RV(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!YJ(w.current,t)&&(w.current=t,Ee.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);JJ(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=W.useRef(!1);JJ(()=>(A.current=!0,()=>{A.current=!1}),[]),JJ(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=W.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=W.useMemo(()=>({reference:b,floating:x}),[b,x]),N=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ZJ(M.floating,u.x),r=ZJ(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...XJ(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return W.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var eY=(e,t)=>{let n=kV(e);return{name:n.name,fn:n.fn,options:[e,t]}},tY=(e,t)=>{let n=jV(e);return{name:n.name,fn:n.fn,options:[e,t]}},nY=(e,t)=>({fn:LV(e).fn,options:[e,t]}),rY=(e,t)=>{let n=MV(e);return{name:n.name,fn:n.fn,options:[e,t]}},iY=(e,t)=>{let n=NV(e);return{name:n.name,fn:n.fn,options:[e,t]}},aY=W.createContext(void 0);function oY(e){let t=W.useContext(aY);if(t===void 0&&!e)throw Error(Pq(47));return t}var sY=class extends uJ{setState(e){}update(e){}set(e,t){}notifyAll(){}},cY={...yJ,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!yJ.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&yJ.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>yJ.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},lY=class extends uJ{constructor(e,t,n){let r=new rJ;super(uY(e,r,t,n),dY(r),cY)}setOpen=(e,t)=>{let n=t.reason===VW,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Zq(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Xq(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Ee.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function uY(e,t,n,r=!1){let i={...pJ(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function dY(e){return{popupRef:W.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:W.createRef(),beforeTriggerFocusGuardRef:W.createRef(),beforeContentFocusGuardRef:W.createRef(),stickIfOpenTimeout:new DU,stickIfOpen:!0,triggerElements:e}}var fY=yU(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=mY(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),nJ(u,d),$q(u);let{forceUnmount:m}=eJ(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),W.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),W.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,LW($W))}),[m,u]);let h=d||f||s!=null;return(0,q.jsxs)(aY.Provider,{value:u,children:[s&&(0,q.jsx)(qq,{handle:s,store:u}),h&&(0,q.jsx)(hY,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function pY(e){return oY(!0)?(0,q.jsx)(fY,{props:e}):(0,q.jsx)(vq,{children:(0,q.jsx)(fY,{props:e})})}function mY(e,t){let n=Kq((e,n)=>new lY(t,e,n));return W.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function hY({store:e,modal:t}){let n=Mq(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return tJ(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var gY=W.createContext(void 0);function _Y(e=!1){let t=W.useContext(gY);if(t===void 0&&!e)throw Error(Pq(16));return t}function vY(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:W.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function yY(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(jB(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function bY(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=W.useRef(null),s=_Y(!0),c=a??s!==void 0,{props:l}=vY({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=W.useCallback(()=>{let e=o.current;xY(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Q(u,[u]),{getButtonProps:W.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return AK({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(BK(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=xY(r),s=!i&&SY(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),yY(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),yY(r,e)))},onKeyUp(e){t||(BK(e),a?.(e),e.target===e.currentTarget&&i&&c&&xY(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),yY(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:pG(e=>{o.current=e,u()})}}function xY(e){return FB(e)&&e.tagName===`BUTTON`}function SY(e){return FB(e)&&e.tagName===`A`&&!!e.href}function CY(e){return xK(e,`base-ui`)}function wY(e,t){function n(n,r,i){let a=n.currentTarget;Ee.flushSync(()=>{e.setOpen(!1,LW(KW,n.nativeEvent,a))}),ZG(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&QG(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function TY(e){let t=W.useRef(``),n=W.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:W.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function EY(e,t){let n=W.useRef(e),r=pG(t);Q(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function DY(e,t){let{onClick:n,onPointerDown:r}=TY(pG((n,r)=>{(typeof e==`function`?e():e)||t(r||(FU?`touch`:``))}));return W.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function OY(e){let[t,n]=W.useState(null),r=DY(e,n);return EY(e,t=>{t&&!e&&n(null)}),W.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var kY=bU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=oY(!0),h=bJ(s)??m;if(!h)throw Error(Pq(74));let g=CY(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=W.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Qq(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=jJ(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:qJ(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=kq(v,{stickIfOpen:pG(()=>h.context.stickIfOpen)}),k=DY(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=bY({disabled:a,native:o}),N={open(e){return w?bW.open(e):yW.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=wY(h,x),I=UK(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[ZK]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,q.jsx)(W.Fragment,{children:I},g);return E?(0,q.jsxs)(W.Fragment,{children:[(0,q.jsx)(CG,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,q.jsx)(CG,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),AY=W.createContext(void 0);function jY(){let e=W.useContext(AY);if(e===void 0)throw Error(Pq(45));return e}var MY=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return oY().useState(`mounted`)||n?(0,q.jsx)(AY.Provider,{value:n,children:(0,q.jsx)(lq,{ref:t,...r})}):null});function NY(e){return CK(19)?e:e?`true`:void 0}var PY=W.createContext(void 0);function FY(){let e=W.useContext(PY);if(!e)throw Error(Pq(46));return e}function IY(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=W.useState(null),d=W.useRef(null),f=hq(n),p=W.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=$J({...e,elements:{...p,...l&&{reference:l}}}),h=W.useCallback(e=>{let t=PB(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=W.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=W.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=W.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Q(()=>{o&&(d.current=o)},[o]),Q(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),W.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var LY=W.createContext(void 0);function RY(){return W.useContext(LY)?.direction??`ltr`}var zY=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Uz(e,t)||{};if(l==null)return{};let d=sB(u),f={x:n,y:r},p=Yz(i),m=qz(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=Hz(D,k,O),j=!c.arrow&&Gz(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),BY=(e,t)=>{let{name:n,fn:r}=zY(e);return{name:n,fn:r,options:[e,t]}},VY={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},HY={sideX:`left`,sideY:`top`},UY=`--available-width`,WY=`--available-height`,GY=`--anchor-width`,KY=`--anchor-height`,qY=`--transform-origin`,JY=UY,YY=WY;function XY(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function ZY(e,t,n){let{rects:r,placement:i}=e;return{side:XY(t,Wz(i),n),align:Gz(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function QY(e){return $Y(e,IY)}function $Y(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=pG(O),A=O?k:n,j=cG(n),M=cG(g),N=RY()===`rtl`,[P,F]=W.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?Wz(P):null,R=P&&I?Gz(P)||`center`:null,z=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],B=R||o,ee=B===`center`?z:`${z}-${B}`,te=l;typeof te==`number`?te={top:te,right:te,bottom:te,left:te}:te&&={top:te.top||0,right:te.right||0,bottom:te.bottom||0,left:te.left||0};let ne=+(i===`bottom`),re=+(i===`top`),V=+(i===`right`),H=+(i===`left`),ie={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:te},U=W.useRef(null),ae=cG(a),oe=cG(s),se=typeof a==`function`?0:a,ce=typeof s==`function`?0:s,le=[];p&&le.push(p),le.push(eY(e=>{let t=ZY(e,i,N),n=typeof ae.current==`function`?ae.current(t):ae.current,r=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[se,ce,N,i]));let ue=w===`none`&&C!==`shift`,de=!ue&&(u||E||C===`shift`),fe=C===`none`?null:rY({...ie,padding:{top:te.top+1+ne,right:te.right+1+H,bottom:te.bottom+1+re,left:te.left+1+V},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),pe=ue?null:tY({...ie,rootBoundary:D,mainAxis:w!==`none`,crossAxis:de,limiter:u||E?void 0:nY(e=>{if(!U.current)return{};let{width:t,height:n}=U.current.getBoundingClientRect(),r=Jz(Wz(e.placement)),i=r===`y`?t:n,a=r===`y`?te.left+te.right:te.top+te.bottom;return{offset:i/2+a/2}})},[ie,u,E,D,te,w]);C===`shift`||w===`shift`||B===`center`?le.push(pe,fe):le.push(fe,pe),le.push(iY({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(JY,`${t}px`),i.setProperty(YY,`${n}px`);let a=jB(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(GY,`${u}px`),i.setProperty(KY,`${d}px`)}}),BY(e=>({element:U.current||bG(e.elements.floating).createElement(`div`),padding:U.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=Wz(r),u=Gz(r),d=Jz(l)===`y`,f=U.current,p=typeof a==`function`?a(ZY(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return de&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(qY,d?`${m} ${h}`:`${h} ${m}`),{}}},VY,b),Q(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let me=W.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=t({rootContext:h,open:m?g:void 0,placement:ee,middleware:le,strategy:r,whileElementsMounted:m?void 0:(...e)=>OV(...e,me),nodeId:y,externalTree:S}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||HY,De=Ce?r:`fixed`,Oe=W.useMemo(()=>{let e;return e=Ce?b?{position:De,[Te]:_e,[Ee]:ve}:{...we,position:De}:{position:De,top:0,left:0},e[JY]=`100vw`,e[YY]=`100vh`,Ce||(e.opacity=0),e},[b,De,Te,_e,Ee,ve,we,Ce]),ke=W.useRef(null);Q(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(eX(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[g,he,A,j]),W.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&eX(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[g,he,A,j]),W.useEffect(()=>{if(m&&g&&ge.reference&&ge.floating)return OV(ge.reference,ge.floating,be,me)},[m,g,ge,be,me]);let Ae=Wz(xe),je=XY(i,Ae,N),Me=Gz(xe)||`center`,Ne=!!ye.hide?.referenceHidden;Q(()=>{x&&g&&Ce&&(Ae!==z||I&&Me!==B)&&F(xe)},[x,I,g,Ce,xe,Ae,Me,z,B]);let Pe=W.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:U,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,U,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function eX(e){return e!=null&&`current`in e}var tX=W.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,q.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function nX(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=W.useRef(null),o=W.useRef(null),s=Vq(r);Q(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Q(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}function rX(e){return e===`starting`?XK:wU}function iX(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),UK(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},rX(r),i],stateAttributesMapping:xW})}var aX={},oX={},sX=``;function cX(e,t){return LB(e)?e:t}function lX(e,t,n){return/hidden|clip/.test(e.getComputedStyle(cX(t,n)).overflowY)}function uX(e){if(typeof document>`u`)return!1;let t=bG(e);return jB(t).innerWidth-t.documentElement.clientWidth>0}function dX(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=bG(e),n=t.documentElement,r=t.body,i=cX(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function fX(e){let t=bG(e),n=t.documentElement,r=t.body,i=cX(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function pX(e){let t=bG(e),n=t.documentElement,r=t.body,i=jB(n),a=0,o=0,s=!1,c=vG.create();if(BU&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,aX={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},sX=n.style.scrollBehavior,oX={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=cX(n,r);s=dX(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,aX),Object.assign(r.style,oX),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=sX)}function d(){u(),c.request(l)}l();let f=eG(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var mX=new class{lockCount=0;restore=null;timeoutLock=DU.create();timeoutUnlock=DU.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=bG(e),n=t.documentElement,r=t.body,i=jB(n);if(lX(i,n,r)){let t=new i.MutationObserver(()=>{lX(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=FU||!uX(e);this.restore=a?fX(e):pX(e)}};function hX(e=!0,t=null){Q(()=>{if(e)return mX.acquire(t)},[e,t])}var gX=20;function _X(e,t,n,r){let[i,a]=W.useState(!1);Q(()=>{if(!e||!t||n==null){a(!1);return}let r=bG(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-gX)},[e,t,n]),hX(e&&(!t||i),r)}var vX=W.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=rq,..._}=e,v=oY(),y=jY(),b=gq(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=QY({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});nX({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;_X(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=iX(e,{open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:k},{styles:j.positionerStyles,transitionStatus:A,props:_,refs:[t,N],hidden:!S,inert:!C});return(0,q.jsxs)(PY.Provider,{value:j,children:[S&&M&&(0,q.jsx)(tX,{inert:NY(!C),cutout:T}),(0,q.jsx)(_q,{id:b,children:P})]})}),yX=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),bX=W.createContext(void 0);function xX(e){let t=W.useContext(bX);if(t===void 0&&!e)throw Error(Pq(69));return t}var SX=W.createContext(void 0);function CX(){let[e,t]=W.useState(0),n=pG(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:W.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var wX=W.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=oY(),l=FY(),u=xX(!0)!=null,{context:d,hasClosePart:f}=CX(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);Hq({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),kJ(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?Gq(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=UK(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...Wq,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&yX.has(e.key)&&e.stopPropagation()}},rX(g),s],stateAttributesMapping:SW});return(0,q.jsx)(Oq,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:FB(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,q.jsx)(SX.Provider,{value:d,children:M})})}),TX=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=oY(),s=CY(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),UK(`h2`,e,{ref:t,props:[{id:s},a]})}),EX=function(e){let{direction:t=`ltr`}=e,n=W.useMemo(()=>({direction:t}),[t]);return(0,q.jsx)(LY.Provider,{value:n,children:e.children})};function DX(e,t){for(let n of rt(e)){let e=n.map(e=>e.text??``).join(``).indexOf(t);if(e<0||!t)continue;let r=0;return n.flatMap(n=>{let i=n.text??``,a=Math.max(0,e-r),o=Math.min(i.length,e+t.length-r);return r+=i.length,o>a?[{...n,text:i.slice(a,o)}]:[]})}return[{type:`text`,text:t}]}function OX(e,t){let n=new Set,r=i=>{if(i.type===`paragraph`||i.type===`heading`){let r=(i.content??[]).map(e=>e.text??``).join(``);return[`before`,`match`,`after`].flatMap(i=>!t[i]||n.has(i)||!r.includes(t[i])?[]:(n.add(i),[{type:`citationPart`,attrs:{part:i},content:DX(e,t[i])}]))}let a=(i.content??[]).map((e,t)=>r(e).map(e=>i.type===`orderedList`?{...e,attrs:{...e.attrs,value:Number(i.attrs?.start??1)+t}}:e)),o=a.flat();return o.length?[{...i,content:o,...i.type===`orderedList`?{attrs:{...i.attrs,start:Number(i.attrs?.start??1)+a.findIndex(e=>e.length)}}:{}}]:[]};return r(Le(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}))[0]?.content??[]}function kX(e,t){let n=e.atMs===null?`notes`:`transcript`,r=e.transcript?.lines??[],i=e.excerpt??``;n===`transcript`&&(i=it(i).split(`
+`).map(e=>{for(let t of r){let n=`${t.track===`me`?`You`:t.speaker||`Them`}: `;if(e.startsWith(n)&&(e.slice(n.length).startsWith(it(t.text))||it(t.text).startsWith(e.slice(n.length))))return e.slice(n.length)}return e}).join(`
+`));let a=lt(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[dt(r.map(e=>e.text),t,o)]:void 0,s=Et(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?DX(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:Tt[s],atMs:a?.startMs}},c=s(a.match),l=n===`transcript`?r.flatMap(e=>{let t=it(e.text);if(t&&i.includes(t))return[{...e,text:t}];if(t&&i.endsWith(`
…`)){let n=i.slice(0,-2),r=n.lastIndexOf(t.split(/\s/)[0]),a=r<0?``:n.slice(r);if(a&&t.startsWith(a))return[{...e,text:a+`…`}]}return[]}):[],u=l.length?l:n===`transcript`?i.split(`
-`).filter(e=>e.trim()).map(t=>({text:t,track:`them`,speaker:null,startMs:e.atMs})):[],d=Math.max(0,ft(u.map(e=>e.text),c.text,Math.max(0,u.findIndex(e=>e.startMs===c.atMs))));return{kind:n,before:s(a.before),match:c,after:s(a.after),notes:n===`notes`?TX(i,a):[],lines:u.map((t,n)=>{let r=Dt(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:Et[r]}}),matchedLine:d}}function DX(e,t){let n=0,r=e.length,i=e.reduce((e,t)=>e+t,0);for(;i>6&&r-n>1;)t-n>r-1-t?i-=e[n++]:i-=e[--r];return{start:n,end:r}}function OX({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,K.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,K.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,K.jsx)(`code`,{children:n}));return n}function kX({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,U.useId)().replace(/:/g,``),o=(0,U.useRef)(null);ut(e.excerpt??``,t);let s=EX(e,t),c=gv(),l=n?document.getElementById(n):null,u=e.title||W(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(bt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`});return(0,U.useLayoutEffect)(()=>{if(!r||c)return;let e=0,t=requestAnimationFrame(()=>{let t=o.current;if(!t||!l)return;let n=l.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2-r.left,a=n.top+n.height/2-r.top,s={"from-x":`${i-9}px`,"from-y":`${a>r.height/2?a-n.height/2-18:a+n.height/2}px`,"from-sx":18/r.width,"from-sy":18/r.height};for(let[e,n]of Object.entries(s))t.style.setProperty(`--${e}`,String(n));t.dataset.morph=`true`,e=window.setTimeout(()=>{delete t.dataset.morph},mv.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,K.jsx)(AY,{container:l?.closest(`dialog`)??void 0,children:(0,K.jsx)(gX,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,K.jsxs)(SX,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,K.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,K.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,K.jsx)(`feColorMatrix`,{type:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})})}),(0,K.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,K.jsx)(`div`,{className:`citation-mass`})}),(0,K.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,K.jsxs)(`div`,{className:`citation-content`,children:[(0,K.jsxs)(`div`,{className:`citation-heading`,children:[(0,K.jsx)(CX,{className:`citation-title`,title:u,children:u}),(0,K.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(bt(),{month:`short`,day:`numeric`})})]}),s.match.text&&(s.kind===`transcript`?(0,K.jsx)(AX,{preview:s},JSON.stringify(s.lines)+s.matchedLine):(0,K.jsx)(jX,{preview:s})),(0,K.jsxs)(`div`,{className:`citation-footer`,children:[(0,K.jsx)(`span`,{children:e.atMs===null?W(`Notes`):(0,K.jsxs)(K.Fragment,{children:[W(`Transcript`),` · `,Cv(s.match.atMs??e.atMs)]})}),(0,K.jsxs)(`button`,{className:`citation-open`,"data-testid":`citation-open`,"aria-label":W(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[W(`Open`),(0,K.jsx)(qh,{size:12,"aria-hidden":`true`})]})]})]})]})})})}function AX({preview:e}){let t=(0,U.useRef)(null),[n,r]=(0,U.useState)({start:0,end:e.lines.length}),[i,a]=(0,U.useState)(0);return(0,U.useLayoutEffect)(()=>{let i=t.current;(()=>{let t=[];for(let e of i.querySelectorAll(`[data-citation-line]`)){let n=e.querySelector(`.citation-lines`);t.push(Math.ceil(n.scrollHeight/parseFloat(getComputedStyle(n).lineHeight)))}let a=DX(t,e.matchedLine-n.start),o={start:n.start+a.start,end:n.start+a.end};r(e=>e.start===o.start&&e.end===o.end?e:o)})()},[i,n.start,n.end]),(0,U.useLayoutEffect)(()=>{let n=t.current,i=n.clientWidth,o=new ResizeObserver(()=>{n.clientWidth!==i&&(i=n.clientWidth,r({start:0,end:e.lines.length}),a(i))});return o.observe(n),()=>o.disconnect()},[]),(0,K.jsx)(`div`,{ref:t,className:`citation-passage citation-transcript`,"data-testid":`citation-excerpt`,children:wv(e.lines.slice(n.start,n.end)).map(t=>{let r=t[0],i=r.track===`me`,a=i||!!r.speaker;return(0,K.jsxs)(`div`,{className:`transcript-turn`,"data-track":r.track,children:[a&&(0,K.jsx)(`span`,{className:`line-who citation-speaker`,"data-folder-color":r.color,children:i?W(`You`):r.speaker}),t.map((t,r)=>(0,K.jsx)(`p`,{"data-citation-line":t.index,"data-citation-part":t.index===e.matchedLine?`match`:`context`,"data-track":t.track,dir:`auto`,className:`bubble bubble-${t.track}`,"data-continuation":!a||r>0||void 0,children:(0,K.jsxs)(`span`,{className:`citation-lines`,style:{WebkitLineClamp:6},children:[t.index===n.start&&n.start>0&&`… `,t.text,t.index===n.end-1&&n.end<e.lines.length&&` …`]})},t.index))]},r.index)})})}function jX({preview:e}){let t=(0,U.useRef)(null);(0,U.useLayoutEffect)(()=>{let e=t.current,n=()=>{let t=[...e.querySelectorAll(`[data-citation-part]`)],n=new Map(t.map(e=>{e.hidden=!1;let t=e.querySelector(`.citation-lines`);return t.style.webkitLineClamp=`unset`,[e.dataset.citationPart,Math.ceil(t.scrollHeight/parseFloat(getComputedStyle(t).lineHeight))]})),r=Math.min(6,n.get(`match`)??0),i=6-r,a=Math.min(2,n.get(`before`)??0,Math.floor(i/(n.has(`after`)?2:1))),o=Math.min(2,n.get(`after`)??0,i-a);for(let e of t){let t=e.dataset.citationPart===`match`?r:e.dataset.citationPart===`before`?a:o;e.hidden=t===0,e.querySelector(`.citation-lines`).style.webkitLineClamp=String(t)}};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[e]);let n=(e,t)=>{if(e.type===`citationPart`)return(0,K.jsx)(`div`,{"data-citation-part":String(e.attrs.part),children:(0,K.jsx)(`p`,{className:`citation-lines`,children:(0,K.jsx)(`span`,{className:e.attrs.part===`match`?`citation-match`:void 0,children:e.content?.map((e,t)=>(0,K.jsx)(OX,{marks:e.marks,children:e.text},t))})})},t);let r=e.content?.map(n);return e.type===`bulletList`?(0,K.jsx)(`ul`,{children:r},t):e.type===`orderedList`?(0,K.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},t):(0,K.jsx)(`li`,{value:e.attrs?.value,children:r},t)};return(0,K.jsx)(`div`,{ref:t,className:`citation-passage citation-notes`,"data-testid":`citation-excerpt`,children:e.notes.map(n)})}function MX({md:e,live:t,sources:n,onSource:r}){let i=(0,U.useId)(),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)(null),[l,u]=(0,U.useState)(!1),d=(0,U.useRef)(null),f=(0,U.useMemo)(()=>{let r=rt(e,n,t),i=e=>{e.type===`citation`&&(e.attrs.payloads=e.attrs.marks.map(t=>({source:n.find(e=>e.n===t.source),sentence:String(e.attrs.sentence??``)}))),e.content?.forEach(i)};return i(r),r},[e,n,t]),p={live:t,at:{n:0},id:i,sources:n,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(!1),c(e.id),o(!0)))},blur:()=>{d.current=null},activate:e=>{d.current=null,u(!1),c(e.id),o(!0)},dismiss:e=>!a||s!==e.id?!1:(o(!1),!0)};return(0,K.jsx)(dY,{open:a,triggerId:s,onOpenChange:(e,t)=>{!e&&t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail===0?t.cancel():(t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&(a&&t.trigger?.id===s||u(t.reason===`trigger-hover`||t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail>0),c(t.trigger?.id??s)),o(e))},children:({payload:e})=>(p.at.n=0,(0,K.jsxs)(K.Fragment,{children:[(f.content??[]).map(e=>NX(e,p)),e&&(0,K.jsx)(kX,{source:e.source,sentence:e.sentence,triggerId:s,animate:l,onOpen:t=>{o(!1),r(e.source,t)}},s)]}))})}function NX(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),(0,K.jsx)(`span`,{className:`citation-group`,"data-gap":e.attrs.gap||void 0,"data-single":e.attrs.marks.length===1||void 0,children:e.attrs.marks.map((r,i)=>{let a=t.sources.find(e=>e.n===r.source),o=a.title||W(`Untitled`);return(0,K.jsx)(DY,{id:`${t.id}-${n}-${r.source}`,payload:e.attrs.payloads[i],openOnHover:!0,delay:100,closeDelay:180,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${r.number}: ${o} · ${rU(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),t.activate(e.currentTarget)),e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:r.number},r.source)})},n);if(e.type===`citationAnchor`)return(0,K.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>NX(e,t))},n);if(e.type===`text`){let r=e.text??``,i=PX(r,t.at.n,t.live);return t.at.n+=r.length,(0,K.jsx)(OX,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>NX(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,K.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,K.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,K.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,K.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,K.jsx)(`p`,{children:r},n):null;default:return(0,K.jsx)(U.Fragment,{children:r},n)}}function PX(e,t,n){if(!n)return e?[e]:[];let r=[],i=t;for(let t of e.split(/(\s+)/))t&&r.push(/^\s+$/.test(t)?t:(0,K.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function FX(e,t){return function({size:n=16,...r}){return(0,K.jsx)(`svg`,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"data-icon":e,...r,children:t.map(([e,t])=>(0,U.createElement)(e,t))})}}var IX=FX(`MessageCircle`,[[`path`,{d:`M21.9598 12.9919C21.6856 17.2342 18.3536 20.6134 14.1706 20.8915C13.4574 20.9389 12.7285 21.001 12 21.001C10.4054 21.001 8.95127 20.8637 7.44544 20.2902C7.44544 20.2902 5.56108 21.7589 3.69962 21.4587C3.31009 21.3959 3.11532 21.3644 3.00091 21.1343C2.8865 20.9042 3.00788 20.6756 3.25063 20.2185C3.65964 19.4483 3.92248 18.6737 3.80076 17.8306C3.73703 17.3892 3.50433 16.9974 3.27644 16.6136L3.26529 16.5948C2.62637 15.5188 2.12462 14.2975 2.04024 12.9919C1.98659 12.1617 1.98659 11.3019 2.04024 10.4717C2.31441 6.22935 5.64639 2.85011 9.8294 2.57205C11.2536 2.47738 12.7435 2.47719 14.1706 2.57205C18.3536 2.85011 21.6856 6.22935 21.9598 10.4717C22.0134 11.3019 22.0134 12.1617 21.9598 12.9919Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8.75 9.50098H12.25`,pathLength:`1`,stroke:`currentColor`,key:`1`}],[`path`,{d:`M8.75 14.501H15.25`,pathLength:`1`,stroke:`currentColor`,key:`2`}]]),LX=FX(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),RX=FX(`SidebarToggle`,[[`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`4`,key:`frame`}],[`rect`,{x:`6.5`,y:`7.5`,width:`6`,height:`9`,rx:`1`,fill:`currentColor`,stroke:`none`,className:`sidebar-toggle-pane`,key:`pane`}]]),zX=FX(`FileText`,[[`path`,{d:`M8 17H16`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8 13H12`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`2`}]]),BX=FX(`Settings`,[[`path`,{d:`M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}]]),VX=FX(`Mic`,[[`path`,{d:`M7 6.5C7 4.01472 9.01472 2 11.5 2C13.9853 2 16 4.01472 16 6.5V11.5C16 13.9853 13.9853 16 11.5 16C9.01472 16 7 13.9853 7 11.5V6.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M11.5 19H11.0828C7.57267 19 4.57706 16.4623 4 13M11.5 19H11.9172C15.4273 19 18.4229 16.4623 19 13M11.5 19V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),HX=FX(`Pause`,[[`path`,{d:`M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z`,stroke:`currentColor`,key:`1`}]]),UX=FX(`Play`,[[`path`,{d:`M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}]]),WX=FX(`Sparkles`,[[`path`,{d:`M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`1`}]]),GX=FX(`Copy`,[[`path`,{d:`M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),KX=FX(`Loader`,[[`path`,{d:`M12 3V6`,stroke:`currentColor`,strokeLinecap:`round`,key:`0`}],[`path`,{d:`M12 18V21`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}],[`path`,{d:`M21 12L18 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`2`}],[`path`,{d:`M6 12L3 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`3`}],[`path`,{d:`M18.3635 5.63672L16.2422 7.75804`,stroke:`currentColor`,strokeLinecap:`round`,key:`4`}],[`path`,{d:`M7.75804 16.2422L5.63672 18.3635`,stroke:`currentColor`,strokeLinecap:`round`,key:`5`}],[`path`,{d:`M18.3635 18.3635L16.2422 16.2422`,stroke:`currentColor`,strokeLinecap:`round`,key:`6`}],[`path`,{d:`M7.75804 7.75804L5.63672 5.63672`,stroke:`currentColor`,strokeLinecap:`round`,key:`7`}]]);function qX(e){return U.Children.map(e,e=>{if(!(0,U.isValidElement)(e))return e;let t=e;return(0,U.cloneElement)(t,{ref:null,...typeof e.type==`string`?{id:void 0,"data-testid":void 0}:{}},t.props.children===void 0?void 0:qX(t.props.children))})}function JX({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=vv(e),s=(0,U.useRef)(void 0);e&&(s.current=n??qX(t));let c=o===`waiting`||o===`skeleton`,l=(0,U.useRef)(a);return l.current=a,(0,U.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,K.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,K.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,K.jsx)(`span`,{className:`sr-only`,role:`status`,children:W(`Loading…`)}),(0,K.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,inert:!0,ref:e=>{n===void 0&&e?.querySelectorAll(`[id],[data-testid]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`)})},children:s.current})]}),!e&&(0,K.jsx)(`div`,{className:`loading-result`,children:t})]})}var YX=e=>new Intl.NumberFormat(bt(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100);function XX(e){let t=W(`Downloading Yogurt's AI`);if(!e.notesTotalBytes||!Number.isFinite(e.notesTotalBytes)||e.notesTotalBytes<0||e.notesFraction===void 0||!Number.isFinite(e.notesFraction))return{title:t,detail:t};let n=new Intl.NumberFormat(bt(),{minimumFractionDigits:1,maximumFractionDigits:1}),r=W(`{done} of {total} GB`,{done:n.format(e.notesTotalBytes*Math.max(0,Math.min(1,e.notesFraction))/1e9),total:n.format(e.notesTotalBytes/1e9)}),i=e.notesEtaSec,a=e.notesFraction<1&&i!==void 0&&Number.isFinite(i)&&i>0?W(`{progress} · about {minutes} min left`,{progress:r,minutes:new Intl.NumberFormat(bt()).format(Math.max(1,Math.round(i/60)))}):r;return{title:W(`Downloading Yogurt's AI: {progress}`,{progress:r}),detail:a}}function ZX({children:e,downloading:t}){let[n,r]=(0,U.useState)(),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(!1);(0,U.useEffect)(()=>{let e=window.yogurt.setup.onState(e=>{r(e),e.notesError||s(!1)});return window.yogurt.setup.state().then(e=>r(t=>t??e)),e},[]);let c=async()=>{a(!0),s(!1);try{await window.yogurt.setup.retry()}catch{s(!0)}finally{a(!1)}};return n?.notesError?(0,K.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,K.jsx)(`p`,{className:`font-medium text-ink`,children:W(`The notes model couldn't download.`)}),(0,K.jsx)(`p`,{children:n.notesError}),(0,K.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`rounded px-1 font-medium text-accent underline underline-offset-2 disabled:opacity-50`,children:W(i?`Retrying…`:`Retry download`)}),o&&(0,K.jsx)(`p`,{className:`text-danger`,children:W(`Couldn't restart the download. Try again.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(YX(n.notesFraction??0)):e}function QX(e,t,n){let r=(1-Math.cos(n*Math.PI*2))/2,i=4.7-3.7*r,a=0;for(let o of[-1,1]){let s=(e-9-o*i)/(1+r*.12),c=(t-10-o*Math.sin(n*Math.PI*2)*.65)/(1-r*.08);a+=2.75**2/Math.max(.01,s*s+c*c)}return Math.max(0,Math.min(255,(a-.98)*1700))}function $X(){let e=(0,U.useRef)(null),t=gv();return(0,U.useEffect)(()=>{let n=e.current,r=n?.getContext(`2d`);if(!n||!r||t)return;let i=r.createImageData(72,80),a=0,o=-1/0,s=!1,c=e=>{if(n.isConnected){if(e-o>=1e3/30){o=e;let t=getComputedStyle(n).color.match(/[\d.]+/g).map(Number);for(let n=0;n<80;n++)for(let r=0;r<72;r++){let a=(n*72+r)*4;i.data[a]=t[0],i.data[a+1]=t[1],i.data[a+2]=t[2],i.data[a+3]=QX((r+.5)/4,(n+.5)/4,e%2800/2800)}r.putImageData(i,0,0)}a=requestAnimationFrame(c)}},l=()=>{cancelAnimationFrame(a),s&&!document.hidden&&(a=requestAnimationFrame(c))},u=new IntersectionObserver(([e])=>{s=e.isIntersecting,l()});return u.observe(n),document.addEventListener(`visibilitychange`,l),()=>{u.disconnect(),cancelAnimationFrame(a),document.removeEventListener(`visibilitychange`,l)}},[t]),t?(0,K.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{})]}):(0,K.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var eZ=U.createContext(void 0);function tZ(e){let t=U.useContext(eZ);if(t===void 0&&!e)throw Error(Mq(33));return t}var nZ=U.createContext(void 0);function rZ(e){let t=U.useContext(nZ);if(t===void 0&&!e)throw Error(Mq(36));return t}var iZ=U.createContext(void 0);function aZ(e=!0){let t=U.useContext(iZ);if(t===void 0&&!e)throw Error(Mq(25));return t}var oZ=U.createContext(null);function sZ(e=`root`){let t=U.useContext(oZ),n=U.useContext(nZ);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var cZ={visible:!0,ref:null};function lZ(){return cZ}function uZ(e,t,n=`root`){let r=sZ(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??lZ)({label:e.label,children:e.children,render:e.render}),a=eG(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function dZ(e){e.preventDefault()}function fZ(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=rZ(),u=aZ(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return U.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?dZ:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:HW})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!IU&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&_Y(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var pZ={type:`regular-item`};function mZ(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=U.useRef(null),{getButtonProps:d,buttonRef:f}=vY({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=fZ({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=U.useCallback(e=>OK(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=eG(u,f);return U.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var hZ=U.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function gZ(){return U.useContext(hZ)}function _Z(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=gZ(),u=U.useRef(-1),[d,f]=U.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=U.useRef(null),h=U.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Q(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var vZ=U.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=rZ(),f=_Z({guess:!0,label:a}),p=xY(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=mZ({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:pZ});return VK(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),yZ=U.forwardRef(function(e,t){let n=uZ(e,t);return n.visible?(0,K.jsx)(vZ,{...e,ref:n.ref}):null}),bZ=U.createContext(void 0);function xZ(){return U.useContext(bZ)}function SZ(e,t){let n=GK(e.render);if(U.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function CZ(e,t,n){let r=SZ(e,t),i=r===t?void 0:r;return[r,U.useCallback(e=>n?.(e?i:void 0),[i,n])]}function wZ(e,t,n){let r=GK(e.render),i=U.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var TZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=rZ(),m=xZ(),{side:h,align:g}=tZ(),_=yX(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=CZ(e,u,d),L=wZ(e,C,N),R=w.type===`menu`?m:void 0,z=w.type===`context-menu`,B=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(B=()=>l.state.activeIndex===null&&P),Bq({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),U.useEffect(()=>{function e(e){l.setOpen(!1,FW(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),DJ(D,{enabled:A&&!j&&!z&&w.type!==`menubar`,closeDelay:k});let ee=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:te,handleFocus:ne}=(U.useContext(oZ)?.useParentHandoff??DZ)(l,w,v,f),re=VK(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,ee,I],stateAttributesMapping:bW,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&_X.has(e.key)&&e.stopPropagation()},onFocus:ne},tX(y),c,{"data-rootownerid":E}]}),V=w.type===void 0||z;(C||w.type===`menubar`&&T!==`outside-press`)&&(V=!0);let ie=R?.getReturnElement??te;return(0,K.jsx)(Eq,{context:D,openInteractionType:M,modal:z,disabled:!x,returnFocus:a??ie??V,explicitReturnFocus:a===void 0&&ie?!1:void 0,initialFocus:B,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:re})}),EZ={parentVirtualFocusRef:void 0,handleFocus:void 0};function DZ(){return EZ}var OZ=U.forwardRef(function(e,t){let n=sZ()?.Popup??TZ;return(0,K.jsx)(n,{...e,ref:t})}),kZ=U.createContext(void 0);function AZ(){let e=U.useContext(kZ);if(e===void 0)throw Error(Mq(32));return e}var jZ=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=rZ();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,K.jsx)(kZ.Provider,{value:n,children:(0,K.jsx)(sq,{ref:t,...r,portalOwnerRole:o})})});function MZ(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=dG(i),[,o]=U.useState(0),s=fU(PZ).current,c=fU(NZ).current,l=U.useRef(0),u=U.useRef(!0),d=U.useRef(null),f=U.useRef(null),p=dG(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=dG((e,t)=>{c.set(e,t),p()}),h=dG(e=>{c.delete(e),p()}),g=dG(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!LZ(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&RZ(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=IZ(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=dG(()=>{let[e,t]=FZ(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Q(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Q(()=>{u.current&&v()}),Q(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=dG(e=>(s.add(e),()=>{s.delete(e)})),b=U.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,K.jsx)(hZ.Provider,{value:b,children:t})}function NZ(){return new Map}function PZ(){return new Set}function FZ(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>RZ(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function IZ(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function LZ(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function RZ(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var zZ=U.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=eq,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=rZ(),x=AZ(),S=aZ(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),R=w.useState(`domReferenceElement`),z=n,B=c,ee=l,te=s,ne=h;C.type===`context-menu`&&(z=n??C.context?.anchor,te??=`start`,!o&&te!==`center`&&(ee=e.alignOffset??2,B=e.sideOffset??-5));let re=o,V=te;C.type===`menu`?(re??=`inline-end`,V??=`start`,ne=e.collisionAvoidance??tq):C.type===`menubar`&&(re??=C.context.orientation===`vertical`?`inline-end`:`bottom`,V??=`start`);let ie=C.type===`context-menu`,ae=XY({anchor:z,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:re,sideOffset:B,align:V,alignOffset:ee,arrowPadding:ie?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:ne,shift:ie?{crossAxis:!(`side`in ne&&ne.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});U.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,FW(XW)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),U.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,FW(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let H=EU();U.useEffect(()=>{D||H.clear()},[D,H]),U.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?H.isStarted()||H.start(e,()=>{v.setOpen(!1,FW(XW))}):v.setOpen(!1,FW(XW))}else H.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,H]),U.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),eX({store:v,domReference:R,positionerElement:M,open:D});let oe={open:D,side:ae.side,align:ae.align,anchorHidden:ae.anchorHidden,nested:C.type===`menu`,instant:N},se=C.type===`menubar`&&C.context.modal;hX(D&&(se||O&&F!==`trigger-hover`),k===`touch`,M,A);let ce=nX(e,oe,{styles:ae.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),le=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),ue=null;return C.type===`menubar`?ue=C.context.contentElement:C.type===void 0&&(ue=A),(0,K.jsxs)(eZ.Provider,{value:ae,children:[le&&(0,K.jsx)($Y,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:jY(!D),cutout:ue}),(0,K.jsx)(hq,{id:I,children:(0,K.jsx)(MZ,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:ce})})]})}),BZ=U.createContext(null);function VZ(e){let t=U.useContext(BZ);if(t===null&&!e)throw Error(Mq(5));return t}function HZ(e){return e==null?LW:e.type.startsWith(`key`)?qW:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?JW:LW}var UZ={..._J,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=_J.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>RU&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!_J.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},WZ=class extends cJ{constructor(e,t,n=!1){let r=new tJ,i=KZ(r,t,n,e);super(i,GZ(r),UZ),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function GZ(e){return{positionerRef:U.createRef(),popupRef:U.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:U.createRef(),beforeTriggerFocusGuardRef:U.createRef(),beforeContentFocusGuardRef:U.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function KZ(e,t,n=!1,r){return{...dJ(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:SU,inputProps:SU,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new lq,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:SU,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var qZ=U.createContext(null);function JZ(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function YZ(e,t){return e===`list-navigation`||JZ(e,t)}var XZ=_U(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=aZ(!0),C=rZ(!0),w=VZ(!0),T=C?.store,E=C?.virtualFocus??!1,D=U.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=xY(),k=xY(),[A,j]=U.useState(void 0),M=(A??k)||void 0,N=fq(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=fU(()=>F?P?.state.instantType:void 0).current,L=fU(()=>{let e=new WZ({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let R=L.useState(`floatingTreeRoot`),z=mq(R),B=L.useState(`open`),ee=L.useState(`activeTriggerElement`),te=L.useState(`positionerElement`),ne=L.useState(`hoverEnabled`),re=L.useState(`disabled`),V=L.useState(`lastOpenChangeReason`),ie=L.useState(`parent`),ae=L.useState(`activeIndex`),H=L.useState(`keyboardOpen`),oe=L.useState(`payload`),se=L.useState(`floatingParentNodeId`),ce=U.useRef(null),le=U.useRef(ie.type!==`context-menu`),ue=EU(),de=U.useRef(!0),fe=EU(),pe=se!=null,{openMethod:me,triggerProps:he}=EY(B);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:ie.type===void 0?c:void 0,openMethod:me,rootId:O}),Zq(L);let{forceUnmount:ge,transitionStatus:_e}=Qq(B,L,()=>{L.set(`allowMouseEnter`,!1)},F),ve=zq(L.context.popupRef);U.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!B){e();return}if(_e!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return ve(e,t.signal),()=>{t.abort()}},[I,B,_e,ve,L]),Q(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:z,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:z,floatingParentNodeId:N})},[S,C,z,N,ee,L]),U.useEffect(()=>{B||(ce.current=null),ie.type===`context-menu`&&(B?ue.start(500,()=>{le.current=!0}):(ue.clear(),le.current=!1))},[ue,B,ie.type]),Q(()=>{!B&&!ne&&L.set(`hoverEnabled`,!0)},[B,ne,L]);let ye=dG((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||B===e&&t.trigger===ee&&V===n)return;let i=Yq(t);if(!e&&t.trigger==null&&(t.trigger=ee??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!de.current)return;e&&n===`trigger-focus`?(de.current=!1,fe.start(300,()=>{de.current=!0})):(de.current=!0,fe.clear());let o=!e&&(n===`escape-key`||n==null);ce.current=t.event;let s=Jq(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&YZ(n,a),s.instantType=ie.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:JZ(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),be=Pq({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:ye}),xe=be.context.events;Q(()=>{let e=({open:e,eventDetails:t})=>ye(e,t);return xe.on(`setOpen`,e),()=>{xe?.off(`setOpen`,e)}},[xe,ye]),Q(()=>L.subscribeToParentMenu(),[L]);let Se=U.useCallback(()=>{L.setOpen(!1,FW(ZW))},[L]);U.useImperativeHandle(d,()=>({unmount:ge,close:Se}),[ge,Se]);let Ce;ie.type===`context-menu`&&(Ce=ie.context),U.useImperativeHandle(Ce?.positionerRef,()=>te,[te]),U.useImperativeHandle(Ce?.actionsRef,()=>({setOpen:ye}),[ye]);let we=Aq(be,{enabled:!re,bubbles:{escapeKey:f&&ie.type===`menu`},outsidePress(){return ie.type!==`context-menu`||ce.current?.type===`contextmenu`||le.current},externalTree:pe?R:void 0}),Te=IY(),Ee=IJ(be,{enabled:!re,listRef:L.context.itemDomElements,activeIndex:ae,virtual:v,nested:ie.type===`menubar`||!v&&ie.type!==void 0,parentOrientation:ie.type===`menubar`?ie.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?H:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:Te===`rtl`,disabledIndices:xU,onNavigate(e,t){L.setActiveIndex(e,HZ(t),t?.nativeEvent)},openOnArrowKeyDown:ie.type!==`context-menu`&&!(v&&_),externalTree:!v&&pe?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),De=U.useCallback(e=>{L.context.typingRef.current=e},[L]),Oe=LJ(be,{enabled:!re&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:ae,resetMs:500,onMatch:(e,t)=>{B&&e!==ae&&L.setActiveIndex(e,qW,t.nativeEvent)},onTyping:De}),ke=dG(a),Ae=U.useRef(-1),je=dG(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(Ae.current===n&&L.context.reportedItem===t)return;Ae.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=LW,L.context.highlightEvent=void 0,a&&ke(t,IW(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Q(()=>{je()},[ae,je]);let Me=U.useMemo(()=>{if(!v)return Ee.reference;if(!Ee.trigger)return SU;let{onFocus:e,...t}=Ee.trigger;return t},[v,Ee.reference,Ee.trigger]);L.useSyncedValue(`inputProps`,v?Ee.reference??SU:SU);let Ne=U.useMemo(()=>{let e=OK(Oe.reference,Me,we.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},he);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=B,e},[L,Oe.reference,Me,we.reference,he,B]),Pe=U.useMemo(()=>{let e=OK(Ee.trigger,we.trigger,he);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Ee.trigger,we.trigger,he]);fU(()=>(L.update({inactiveTriggerProps:Pe}),null)),$q(L,{floatingRootContext:be,activeTriggerProps:Ne,inactiveTriggerProps:Pe,popupProps:U.useMemo(()=>OK(Hq,{onMouseMove(){L.set(`allowMouseEnter`,!0),ie.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Oe.floating,Ee.floating,we.floating),[ie.type,L,Oe.floating,Ee.floating,we.floating]),itemProps:Ee.item??SU});let Fe=U.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:je}),[L,D,u,l,b,k,v,E,je]),Ie=typeof t==`function`?t({payload:oe}):t,Le=(0,K.jsxs)(nZ.Provider,{value:Fe,children:[p&&(0,K.jsx)(Gq,{handle:p,store:L}),Ie]});return(ie.type===void 0||ie.type===`context-menu`)&&(Le=(0,K.jsx)(gq,{externalTree:R,children:Le})),Le});function ZZ(e){let t=U.useContext(qZ);if(t===null)return(0,K.jsx)(XZ,{...e});let n=t.Root;return(0,K.jsx)(qZ.Provider,{value:null,children:(0,K.jsx)(n,{...t.options,...e})})}var QZ=5;function $Z(e,t){let n=eQ(t);return e.clientX>=n.left-QZ&&e.clientX<=n.right+QZ&&e.clientY>=n.top-QZ&&e.clientY<=n.bottom+QZ}function eQ(e){let t=e.getBoundingClientRect(),n=kB(e);if(BU)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function tQ(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=hY(),{ref:i,index:a}=_Z(e),o=n===a,s=U.useRef(null),c=eG(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function nQ(e){let{render:t,className:n,style:r,state:i=SU,props:a=xU,refs:o=xU,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=tQ({metadata:s});return VK(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function rQ(e){if(NB(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!GB(e))return rQ(JB(e))}function iQ(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=U.useRef(!1);return U.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,vG(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:SU,[t,n,r])}var aQ=vU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=rZ(!0),h=vJ(d)??m?.store;if(!h)throw Error(Mq(85));let g=xY(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=U.useRef(null),S=sQ(),C=hY(!0),w=pq(),T=U.useMemo(()=>w??new lq,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=Xq(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:mq(T),floatingParentNodeId:fq(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=vY({disabled:A,native:o});U.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=U.useRef(null),P=EU(),F=dG(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;$(N.current,t)||$(h.select(`positionerElement`),t)||t===N.current||t!=null&&rQ(t)===h.select(`rootId`)||$Z(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:YW})});U.useEffect(()=>{let e=vG(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=kJ(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:GJ({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=oQ(y,h.select(`lastOpenChangeReason`)),z=Dq(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),B=xJ(v,{enabled:!A&&I}),ee=iQ({open:y,enabled:O,mouseDownAction:`open`}),te=U.useMemo(()=>OK(B.reference,z.reference),[B.reference,z.reference]),ne=h.useState(`triggerProps`,D),re=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:V,handleFocusTargetFocus:ie}=SY(h,x),ae={disabled:A,open:y},H=[N,t,M,E,x],oe=[te,L??SU,ne,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),vG(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},re,O?{role:`menuitem`}:{},ee,p,j],se=VK(`button`,e,{enabled:!O,stateAttributesMapping:vW,state:ae,ref:H,props:oe});return O?(0,K.jsx)(nQ,{tag:`button`,render:n,className:r,style:i,state:ae,refs:H,props:oe,stateAttributesMapping:vW}):y?(0,K.jsxs)(U.Fragment,{children:[(0,K.jsx)(xG,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:V},`${g}-pre-focus-guard`),(0,K.jsx)(U.Fragment,{children:se},g),(0,K.jsx)(xG,{ref:h.context.triggerFocusTargetRef,onFocus:ie},`${g}-post-focus-guard`)]}):(0,K.jsx)(U.Fragment,{children:se},g)});function oQ(e,t){let n=EU(),[r,i]=U.useState(!1);return Q(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function sQ(){let e=VZ(!0);return U.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var cQ={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function lQ(e,t){if(t===`darwin`)return e;if(cQ[e])return cQ[e];let n=e.replace(/[⌃⇧⌥⌘]/g,``);return n===e?e:[...[e.includes(`⌘`)||e.includes(`⌃`)?`Ctrl`:``,e.includes(`⇧`)?`Shift`:``,e.includes(`⌥`)?`Alt`:``].filter(Boolean),n].join(`+`)}var uQ=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function dQ(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var fQ=()=>globalThis.window?.yogurt?.os??`darwin`,pQ=e=>lQ(e,fQ()),mQ=e=>uQ(e,fQ()),hQ=()=>fQ()===`darwin`,gQ=e=>dQ(e,fQ()),_Q=Object.defineProperty,vQ=(e,t)=>{let n={};for(var r in e)_Q(n,r,{get:e[r],enumerable:!0});return t||_Q(n,Symbol.toStringTag,{value:`Module`}),n};function yQ(e){let t=U.createContext(void 0);return[({value:e,children:n})=>(0,K.jsx)(t.Provider,{value:e,children:n}),()=>{let n=U.useContext(t);if(n===void 0)throw Error(`useContext must be used within ${e??`a Provider`}`);return n}]}var bQ=Wm.transition.overlay,xQ=Wm.spring.dialog,SQ=Wm.transition.dismiss;Wm.transition.drawerOut;var CQ=Wm.transition.dialogFade,wQ=Wm.spring.toast;Wm.transition.drawer;var TQ=Wm.transition.sheet;function EQ(e,t,n,r){return{enter:Jm(e??n),exit:Jm(t??r??e??n)}}function DQ(e,t){return EQ(e,t,bQ)}function OQ(e,t,n){let{enter:r,exit:i}=EQ(t,n,e?TQ:xQ,SQ),a=Jm(CQ);return{enter:e||t?r:{...r,opacity:a},exit:i}}var kQ=[`top`,`right`,`bottom`,`left`];function AQ(e){return typeof e==`string`&&kQ.includes(e)?e:void 0}var jQ={top:`translateY(-100%)`,right:`translateX(100%)`,bottom:`translateY(100%)`,left:`translateX(-100%)`};function MQ(e){let t=e===`top`||e===`bottom`?`rotateX`:`rotateY`;return{tipped:`perspective(500px) ${t}(${e===`bottom`||e===`left`?`20deg`:`-20deg`}) scale(${Wm.scale.dialog})`,upright:`perspective(500px) ${t}(0deg) scale(1)`}}function NQ({side:e,from:t=`top`,reduce:n,enter:r,exit:i}){if(e){let t=e===`left`||e===`right`?`translateX(0%)`:`translateY(0%)`,a={opacity:0,transform:n?t:jQ[e]};return{initial:a,animate:{opacity:1,transform:t,transition:r},exit:{...a,transition:i}}}let{tipped:a,upright:o}=MQ(t),s={opacity:0,filter:Wm.blur.surface,transform:n?o:a};return{initial:s,animate:{opacity:1,filter:`blur(0px)`,transform:o,transition:r},exit:{...s,transition:i}}}function PQ(){let[e,t]=U.useState(!1);return U.useLayoutEffect(()=>{let e=requestAnimationFrame(()=>t(!0));return()=>cancelAnimationFrame(e)},[]),e}function FQ(e,t,n){return n&&!t?e.exit:e.animate}function IQ(e,t){let[n,r]=U.useState(!e);return e&&n&&r(!1),{hidden:t&&!e&&n,onAnimationComplete:()=>{e||r(!0)}}}var LQ={backgroundColor:`transparent`,backdropFilter:`none`,opacity:`0`};function RQ(e){let t=getComputedStyle(e);return{backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,opacity:t.opacity,hasImage:t.backgroundImage!==`none`}}function zQ(e,t,n){let r=t=>({backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,...e.hasImage?{opacity:t.opacity}:{}});return[r(t),r(n)]}function BQ(e){let{visible:t}=e,n=U.useRef(null),r=U.useRef(e);U.useLayoutEffect(()=>{r.current=e});let i=U.useRef(null),a=U.useRef(!1);return U.useLayoutEffect(()=>{let{animated:e=!0,enter:o,exit:s,onFadedOut:c}=r.current,l=n.current,u=!a.current;if(a.current=!0,u&&!t)return;if(!l||!e||typeof l.animate!=`function`){t||c?.();return}let d=i.current,f=d?RQ(l):null;d?.cancel();let p=RQ(l),{duration:m,easing:h}=$m(t?o:s),g=l.animate(zQ(p,f??(t?LQ:p),t?p:LQ),{duration:m,easing:h,fill:t?`backwards`:`forwards`});i.current=g,g.finished.then(()=>{i.current===g&&(t?i.current=null:r.current.onFadedOut?.())}).catch(()=>{})},[t]),U.useCallback(e=>{n.current=e},[])}var VQ=new WeakMap;function HQ(e){if(typeof e==`string`)return Pm[e];let t=VQ.get(e);return t||(t=Pm.create(e),VQ.set(e,t)),t}function UQ(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function WQ(e,t){let n=e.props;return U.createElement(HQ(e.type),{...n,...t,ref:UQ(n.ref,t.ref),style:{...n.style,...t.style}})}function GQ(e,t){return typeof e==`function`?((n,r)=>WQ(e(n,r),t)):e?WQ(e,t):U.createElement(HQ(`div`),t)}var KQ=U.createContext(void 0);function qQ(e){let t=U.useContext(KQ);if(!e&&t===void 0)throw Error(Mq(27));return t}var JQ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=qQ(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return VK(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:bW,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),YQ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=qQ(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=vY({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,FW(UW,e.nativeEvent))}return VK(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),XQ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=qQ(),c=xY(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),VK(`p`,e,{ref:t,props:[{id:c},o]})}),ZQ=U.createContext(void 0);function QQ(){let e=U.useContext(ZQ);if(e===void 0)throw Error(Mq(26));return e}var $Q=`--nested-dialogs`,e$=`data-nested-dialog-open`,t$={...yW,...oW,nestedDialogOpen(e){return e?{[e$]:``}:null}},n$=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=qQ(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);QQ(),Bq({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Uq(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=VK(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Hq,hidden:!m,onKeyDown(e){_X.has(e.key)&&e.stopPropagation()},style:{[$Q]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:t$});return(0,K.jsx)(Eq,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),r$=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=qQ(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,K.jsx)(ZQ.Provider,{value:n,children:(0,K.jsxs)(sq,{ref:t,...r,children:[a&&o===!0&&(0,K.jsx)($Y,{ref:i.context.internalBackdropRef,inert:jY(!s)}),e.children]})}):null});function i$({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=U.useState(0),[d,f]=U.useState(0),p=l===0,m=Aq(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=YU(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||$(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return pX(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Q(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Q(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),$q(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var a$={..._J,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},o$=class extends cJ{constructor(e,t,n){let r=new tJ,i=c$(e,r,t,n);super(i,l$(r),a$)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(Jq(this.state,e,t.trigger)))}};function s$(){let e=new tJ;return new aY(Object.freeze(c$(void 0,e)),Object.freeze(l$(e)),a$)}function c$(e,t,n,r=!1){return{...dJ(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function l$(e){return{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function u$(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=qQ(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=Wq((e,t)=>new o$({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);eJ(b,x),Zq(b);let{forceUnmount:w}=Qq(x,b);U.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,FW(ZW))}),[w,b]);let T=x||S||u!=null;return(0,K.jsxs)(KQ.Provider,{value:b,children:[u&&(0,K.jsx)(Gq,{handle:u,store:b}),T&&(0,K.jsx)(i$,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var d$=_U(function(e){return u$(`dialog`,e)}),f$=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=QQ(),c=qQ(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`),m=c.useStateSetter(`viewportElement`);return VK(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:t$,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),p$=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=qQ(),c=xY(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),VK(`h2`,e,{ref:t,props:[{id:c},o]})}),m$=vU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=qQ(!0),f=vJ(l)??d;if(!f)throw Error(Mq(79));let p=xY(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=U.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=Xq(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=vY({disabled:a,native:o}),S=Dq(m),C=TY(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return VK(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[YK]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:_W})}),h$=class extends Nq{constructor(){super(s$(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,FW(ZW)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function g$(){return new h$}var[_$,v$]=yQ(`Dialog.Root`),y$=U.createContext({keepMounted:!1});function b$(e){return function({defaultOpen:t,...n}){let r=n.open!==void 0,[i,a]=U.useState(t??!1),o=r?!!n.open:i,s=(e,t)=>{n.onOpenChange?.(e,t),t?.isCanceled||r||a(e)};return(0,K.jsx)(_$,{value:{open:o},children:(0,K.jsx)(e,{...n,open:o,onOpenChange:s})})}}function x$({keepMounted:e,children:t,...n}){let{open:r}=v$();return(0,K.jsx)(ff,{children:(r||e)&&(0,K.jsx)(r$,{...n,keepMounted:!0,children:(0,K.jsx)(y$,{value:{keepMounted:!!e},children:(0,K.jsx)(nh,{children:t})})},`portal`)})}function S$(e){let{open:t}=v$(),{keepMounted:n}=U.use(y$),r=cf(),{hidden:i,onAnimationComplete:a}=IQ(t,n),o=!r||n&&!t&&!i,s=PQ();return{initial:e.initial,animate:s?FQ(e,t,n):e.initial,exit:e.exit,onAnimationComplete:a,...o?{hidden:!1}:{},...t?{}:{style:{pointerEvents:`none`}}}}function C$({transition:e,exitTransition:t,render:n,...r}){let{open:i}=v$(),{keepMounted:a}=U.use(y$),[o,s]=sf(),{hidden:c,onAnimationComplete:l}=IQ(i,a),u=BQ({visible:i&&o,...DQ(e,t),onFadedOut:()=>{l(),s?.()}}),d=!o||a&&!i&&!c;return(0,K.jsx)(JQ,{...r,render:GQ(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function w$({from:e,transition:t,exitTransition:n,render:r,...i}){let a=oh(),o=AQ(i[`data-side`]),{enter:s,exit:c}=OQ(o,t,n),l=S$(NQ({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,K.jsx)(n$,{...i,render:GQ(r,l)})}var T$=vQ({Backdrop:()=>k$,Close:()=>M$,Description:()=>P$,Handle:()=>I$,Popup:()=>A$,Portal:()=>O$,Root:()=>D$,Title:()=>N$,Trigger:()=>j$,Viewport:()=>F$,createHandle:()=>L$}),E$=b$(d$);function D$(e){return(0,K.jsx)(E$,{...e})}function O$(e){return(0,K.jsx)(x$,{...e})}function k$(e){return(0,K.jsx)(C$,{...e})}function A$(e){return(0,K.jsx)(w$,{...e})}var j$=m$,M$=YQ,N$=p$,P$=XQ,F$=f$,I$=h$,L$=g$,R$=(0,U.forwardRef)(function({open:e,reduced:t,fade:n=!1,children:r,className:i,...a},o){let s=(0,U.useRef)(null),c=(0,U.useRef)(null),l=(0,U.useRef)(null),u=(0,U.useRef)([]);return(0,U.useImperativeHandle)(o,()=>s.current,[]),(0,U.useLayoutEffect)(()=>{let r=s.current,i=c.current,a=l.current;if(!r||!i||!a)return;let o=u.current.some(e=>e.playState===`running`),d=getComputedStyle(i),f=getComputedStyle(a),p=d.transform,m=d.opacity,h=f.opacity,g=f.clipPath,_=getComputedStyle(r).opacity;if(u.current.forEach(e=>e.cancel()),u.current=[],t)return;if(n){u.current=[r.animate([{opacity:o?_:+!e},{opacity:+!!e}],{duration:160,easing:`ease-out`,fill:`both`})];return}let v=e?mv.settleMs:mv.exitMs,y=e?[{transform:o?p:`translateY(12px) scale(.94, .86)`,opacity:o?m:0,easing:mv.settleEase},{transform:`translateY(-1px) scale(1.008, 1.018)`,opacity:1,offset:mv.settleAt,easing:`ease-out`},{transform:`none`,opacity:1}]:[{transform:o?p:`none`,opacity:o?m:1},{transform:`translateY(6px) scale(.98, .96)`,opacity:0}],b=a.getBoundingClientRect(),x=getComputedStyle(r).borderRadius,S=(e,t,n)=>{let r=(1-t)/2*b.width,i=(1-n)/2*b.height;return`inset(${i+e}px ${r}px ${i-e}px ${r}px round ${x})`},C=e?[{clipPath:o&&g!==`none`?g:S(12,.94,.86),easing:mv.settleEase},{clipPath:S(-1,1.008,1.018),offset:mv.settleAt,easing:`ease-out`},{clipPath:S(0,1,1)}]:[{clipPath:o&&g!==`none`?g:S(0,1,1)},{clipPath:S(6,.98,.96)}];u.current=[i.animate(y,{duration:v,easing:e?`linear`:`ease-out`,fill:`both`}),a.animate(C,{duration:v,easing:e?`linear`:`ease-out`,fill:e?`backwards`:`forwards`}),a.animate([{opacity:o?h:+!e},{opacity:+!!e}],{duration:e?150:90,delay:e?35:0,easing:`ease-out`,fill:`both`}),r.animate([{opacity:1},{opacity:1}],{duration:v,fill:`both`})]},[e,t,n]),(0,U.useEffect)(()=>()=>u.current.forEach(e=>e.cancel()),[]),(0,K.jsxs)(n$,{...a,ref:s,className:e=>`${typeof i==`function`?i(e):i??``} dialog-motion`,children:[(0,K.jsx)(`div`,{ref:c,className:`dialog-motion-surface`,"aria-hidden":`true`}),(0,K.jsx)(`div`,{ref:l,className:`dialog-motion-content`,children:r})]})}),z$=T$.Close;function B$({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,fade:s=!1,container:c}){let[l,u]=(0,U.useState)(!0),d=Lp(),f=(0,U.useRef)(null),p=(0,U.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),m=(0,U.useRef)(r);return m.current=r,(0,U.useEffect)(()=>{if(l)return;let e=setTimeout(()=>m.current(),d?0:s?160:mv.exitHoldMs);return()=>clearTimeout(e)},[l,d,s]),(0,K.jsx)(T$.Root,{open:l,onOpenChange:(e,t)=>{!e&&i?t.cancel():u(e)},children:(0,K.jsxs)(T$.Portal,{keepMounted:!0,container:c,children:[(0,K.jsx)(T$.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{duration:d?0:s?.16:.2},exitTransition:{duration:d?0:mv.exitMs/1e3}}),(0,K.jsxs)(R$,{ref:f,open:l,reduced:!!d,fade:s,"data-testid":o,role:a,"aria-modal":`true`,"aria-busy":i||void 0,className:`app-modal no-drag`,finalFocus:p,initialFocus:()=>{let e=f.current?.querySelector(`[data-dialog-focus], [data-dialog-cancel]`);return e instanceof HTMLInputElement&&e.select(),e??f.current},children:[(0,K.jsxs)(`div`,{className:`modal-copy`,children:[(0,K.jsx)(T$.Title,{children:e}),t&&(0,K.jsx)(T$.Description,{children:t})]}),n]})]})})}function V$({id:e,title:t,onNew:n,onDeleted:r,onEdit:i,className:a=``}){let o=(0,U.useRef)(null),s=(0,U.useRef)(null),c=(0,U.useCallback)(e=>{o.current=e,s.current=e?.closest(`dialog`)??null},[]),[l,u]=(0,U.useState)(),d=e=>{o.current?.focus(),i?i(e):u(e)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(ZZ,{modal:!1,children:[(0,K.jsx)(aQ,{ref:c,"data-testid":`chat-menu`,className:`chat-icon ask-menu-trigger ${a}`,"aria-label":W(`More`),title:W(`More`),children:(0,K.jsx)(Dg,{size:17,"aria-hidden":`true`})}),(0,K.jsx)(jZ,{container:s,children:(0,K.jsx)(zZ,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,K.jsxs)(OZ,{className:`menu-entry ask-actions-menu`,"aria-label":W(`More`),finalFocus:!l&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,K.jsxs)(yZ,{"data-testid":`chat-rename`,onClick:()=>d(`rename`),children:[(0,K.jsx)(T_,{size:14,"aria-hidden":`true`}),W(`Rename`)]}),n&&(0,K.jsxs)(yZ,{"data-testid":`chat-new`,onClick:n,children:[(0,K.jsx)(k_,{size:14,"aria-hidden":`true`}),W(`New chat`)]}),(0,K.jsxs)(yZ,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>d(`delete`),children:[(0,K.jsx)(q_,{size:14,"aria-hidden":`true`}),W(`Delete`)]})]})})})]}),l&&(0,K.jsx)(H$,{id:e,title:t,kind:l,container:s.current??void 0,onClose:()=>{u(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function H$({id:e,title:t,kind:n,container:r,onClose:i,onDeleted:a}){let[o,s]=(0,U.useState)(t),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=async()=>{if(!(c||n===`rename`&&!o.trim())){l(!0),d(!1);try{n===`delete`?await window.yogurt.conversations.delete(e):await window.yogurt.conversations.rename(e,o.trim()),i(),n===`delete`&&a()}catch{d(!0)}finally{l(!1)}}};return(0,K.jsx)(B$,{fade:!0,container:r,busy:c,testId:n===`delete`?`chat-delete-confirm`:`chat-rename-dialog`,role:n===`delete`?`alertdialog`:`dialog`,onCancel:i,title:W(n===`delete`?`Delete “{title}”?`:`Rename “{title}”`,{title:t||W(`New chat`)}),description:n===`delete`?gQ({mac:W(`This conversation is removed from this Mac for good. Your meetings stay as they are.`),other:W(`This conversation is removed from this computer for good. Your meetings stay as they are.`)}):void 0,children:(0,K.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,K.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`chat-rename-input`,"aria-label":W(`Conversation name`),value:o,maxLength:200,className:`chat-rename-input`,disabled:c,onChange:e=>s(e.target.value)}),u&&(0,K.jsx)(`p`,{className:`chat-error`,role:`alert`,children:W(`Couldn't save your changes`)}),(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{type:`submit`,"data-testid":n===`delete`?`chat-delete-yes`:`chat-rename-save`,disabled:c||n===`rename`&&!o.trim(),className:`modal-button${n===`delete`?` danger`:``}`,children:W(n===`delete`?`Delete`:`Save`)}),(0,K.jsx)(z$,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`modal-button`,disabled:c,children:W(`Cancel`)})]})]})})}var U$=e=>e.title.trim()||(e.kind===`meeting`?W(`Untitled meeting`):W(`Folder`));function W$({chips:e,disabled:t,onRemove:n}){return e.length?(0,K.jsx)(`div`,{className:`ask-context-strip`,"data-testid":`ask-composer-context`,children:e.map(e=>(0,K.jsxs)(`div`,{className:`ask-context-row`,title:U$(e),children:[e.kind===`meeting`?(0,K.jsx)(Ng,{size:14,"aria-hidden":`true`}):(0,K.jsx)(zg,{size:14,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:U$(e)}),(0,K.jsx)(`button`,{type:`button`,className:`chat-icon`,disabled:t,"aria-label":`${W(`Remove`)} ${U$(e)}`,title:W(`Remove`),onClick:()=>n(e),children:(0,K.jsx)(rv,{size:12,"aria-hidden":`true`})})]},`${e.kind}:${e.id}`))}):null}function G$(e,t,n,r){let i,a=e.scrollTop,o=()=>{i?.stop(),i=void 0},s=()=>r(e.scrollHeight-e.scrollTop-e.clientHeight>=24),c=()=>{!document.hidden&&e.clientHeight&&(n.current&&(i?.active?i.to(Math.max(0,e.scrollHeight-e.clientHeight)):(e.scrollTop=e.scrollHeight,a=e.scrollTop)),s())},l=()=>{let t=e.scrollTop<a;if(a=e.scrollTop,i?.active)return;let r=e.scrollHeight-e.scrollTop-e.clientHeight<24;(t||r)&&(n.current=r),s()},u=()=>{o()},d=e=>{o(),e.deltaY<0&&(n.current=!1,s())},f=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&o()},p=()=>{document.hidden?o():c()},m=new ResizeObserver(c);m.observe(t),m.observe(e),e.addEventListener(`scroll`,l,{passive:!0}),e.addEventListener(`wheel`,d,{passive:!0});for(let t of[`touchstart`,`pointerdown`])e.addEventListener(t,u,{passive:!0});return e.addEventListener(`keydown`,f),document.addEventListener(`visibilitychange`,p),c(),{latest(){n.current=!0,r(!1),!document.hidden&&e.clientHeight&&(o(),i=_v(e,()=>{}),i.to(Math.max(0,e.scrollHeight-e.clientHeight)))},dispose(){o(),m.disconnect(),e.removeEventListener(`scroll`,l),e.removeEventListener(`wheel`,d);for(let t of[`touchstart`,`pointerdown`])e.removeEventListener(t,u);e.removeEventListener(`keydown`,f),document.removeEventListener(`visibilitychange`,p)}}}function K$(e,t,n,r=!0){let i=(0,U.useRef)(r),a=(0,U.useRef)(null),[o,s]=(0,U.useState)(!1);return(0,U.useLayoutEffect)(()=>{let r=e.current,o=t.current;if(!n||!r||!o)return;let c=G$(r,o,i,s);return a.current=c,()=>{c.dispose(),a.current=null}},[n,e,t]),{behind:n&&o,resume:()=>{i.current=!0,s(!1)},latest:()=>a.current?.latest()}}function q$({show:e,options:t,className:n}){return(0,K.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,K.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function J$({text:e,widest:t}){let n=(0,U.useRef)(!1);return(0,U.useEffect)(()=>{n.current=!0},[]),(0,K.jsx)(`span`,{className:`swap-text`,"data-widest":t,children:(0,K.jsx)(`span`,{className:n.current?`swap-in`:void 0,children:e},e)})}var Y$=new Map,X$=(e,t)=>e.length===1&&e[0].kind===`meeting`?t?[W(`What did I just miss?`),W(`Sum up the meeting so far`),W(`What should I ask next?`)]:[W(`What was decided?`),W(`What are my next steps?`),W(`What questions are still open?`)]:e.length?[W(`What was decided?`),W(`What are my next steps?`),W(`What questions are still open?`)]:[W(`What are my next steps this week?`),W(`What did we decide last week?`),W(`Catch me up on yesterday`)];function Z$({id:e,initial:t,home:n=!1,panel:r=!1,recording:i=!1,onSelect:a,onSource:o,onDeleted:s,onClose:c,onExpand:l}){let[u,d]=(0,U.useState)(t),[f,p]=(0,U.useState)(Y$.get(e)??t?.draft??``),[m,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),[b,x]=(0,U.useState)(),[S,C]=(0,U.useState)(),w=S?.items??[],[T,E]=(0,U.useState)(0),D=(0,U.useRef)(null),O=(0,U.useRef)(!1),k=`conversation/${e}`,A=Iv(k,!!u),j=(0,U.useRef)(null),M=K$(A,j,!!u,Pv(k)===void 0),N=r?`chat`:`chat-page`;(0,U.useEffect)(()=>{if(!e)return;let n=!0,r=0;h(!1),x(void 0);let i=window.yogurt.conversations.onChange(t=>{t.id===e&&(r++,d(t))}),a=(i=!1)=>{let a=++r;window.yogurt.conversations.get(e).then(o=>{if(n){if(!o)throw Error(`Conversation not found`);a===r&&d(o),i&&(t||p(Y$.get(e)??o.draft))}}).catch(()=>{n&&a===r&&h(!0)})},o=window.yogurt.meetings.onChange(()=>a()),s=window.yogurt.folders.onChange(()=>a());return a(!0),()=>{n=!1,i(),o(),s()}},[e]),(0,U.useEffect)(()=>{let e=!0;if(!b)C(void 0),E(0);else return window.yogurt.conversations.targets(b.query).then(t=>{e&&(C({query:b.query,items:t.filter(e=>![...u?.chips??[],...u?.draftChips??[]].some(t=>t.kind===e.kind&&t.id===e.id))}),E(0))}).catch(()=>{e&&h(!0)}),()=>{e=!1}},[b?.query,!!b,u?.chips,u?.draftChips]);let P=u?YH(u.chips,u.draftChips):[],F=P.length===1&&P[0].kind===`meeting`?P[0].id:void 0,I=()=>{F&&window.yogurt.conversations.warm(e)};(0,U.useEffect)(I,[e,F]),(0,U.useEffect)(()=>{document.getElementById(`${N}-context-${T}`)?.scrollIntoView({block:`nearest`})},[T,w]),(0,U.useLayoutEffect)(()=>{!v&&O.current&&(O.current=!1,D.current?.focus())},[v,u]);let L=u?.turns??[],R=L.at(-1),z=R?.status===`waiting`||R?.status===`answering`,B=!u||g||v||z,ee=(u?u.firstChips===null:n||r)&&!L.length,te=n||!r&&ee,ne=u?YH(u.chips,u.draftChips):[],re=t=>{p(t),Y$.set(e,t),window.yogurt.conversations.draft(e,t).then(()=>{Y$.get(e)===t&&Y$.delete(e)}).catch(()=>h(!0))},V=(e,t)=>{x(ZH(e,t))},ie=async t=>{y(!0),h(!1);try{await window.yogurt.conversations.context(e,t)}catch{throw h(!0),Error(`Context was not saved`)}finally{y(!1)}},ae=e=>{if(!b||B||!u)return;let t=b;ie([...u.draftChips,e]).then(()=>{let e=f.slice(0,t.start)+f.slice(t.end);re(e),x(void 0),requestAnimationFrame(()=>{D.current?.focus(),D.current?.setSelectionRange(t.start,t.start)})}).catch(()=>{})},H=async t=>{if(!B){O.current=!0,y(!0),h(!1);try{await window.yogurt.conversations.removeContext(e,t)}catch{O.current=!1,h(!0)}finally{y(!1)}}},oe=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&D.current?.focus({preventScroll:!0})},se=t=>{t.trim()&&!B&&(oe(),M.resume(),_(!0),h(!1),x(void 0),window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);p(``),Y$.delete(e),n&&a(t)}).catch(()=>{re(t),h(!0)}).finally(()=>_(!1)))},ce=e=>{e.nativeEvent.isComposing||(b&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)?(e.preventDefault(),e.stopPropagation(),e.key===`Escape`?x(void 0):e.key===`Enter`?w[T]&&ae(w[T]):E(t=>(t+(e.key===`ArrowDown`?1:-1)+w.length)%(w.length||1))):e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),se(f)))},le=()=>{u&&!v&&window.yogurt.conversations.current(YH(u.chips,u.draftChips),!0).then(a).catch(()=>h(!0))},ue=!r&&!!f,de=ee&&(te||r)&&(!r||!f)&&(0,K.jsx)(`div`,{"data-testid":r?`chat-suggestions`:`chat-starters`,"aria-hidden":ue||void 0,inert:ue,className:`ask-starters${r?``:` ask-home-starters`}`,children:X$(u?YH(u.chips,u.draftChips):[],i).map(e=>(0,K.jsx)(`button`,{type:`button`,title:e,"data-testid":r?`chat-suggestion`:`chat-starter`,disabled:B||ue,onClick:()=>se(e),children:e},e))});return(0,K.jsxs)(`div`,{"data-testid":te?`chat-empty`:void 0,"aria-busy":R?.status===`answering`,className:`ask-conversation${te?` ask-landing`:``}`,children:[te?(0,K.jsx)(`h1`,{className:`ask-home-title`,children:W(`Ask about your meetings`)}):(0,K.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,K.jsx)(`h2`,{id:r?`meeting-chat-title`:void 0,title:[u?.title||W(`New chat`),...u?.chips.map(U$)??[]].join(`
-`),children:u?.title||W(`New chat`)}),(0,K.jsxs)(`div`,{className:`ask-header-actions`,children:[u&&(0,K.jsx)(V$,{id:e,title:u.title,onNew:le,onDeleted:s}),l&&(0,K.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`chat-icon`,onClick:l,"aria-label":W(`Open in Ask`),title:W(`Open in Ask`),children:(0,K.jsx)(h_,{size:15,"aria-hidden":`true`})}),c&&(0,K.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`chat-icon`,onClick:c,"aria-label":W(`Close`),title:W(`Close`),children:(0,K.jsx)(rv,{size:16,"aria-hidden":`true`})})]})]}),(0,K.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,K.jsx)(Ah,{children:(0,K.jsx)(`div`,{className:`ask-thread${r?` chat-history`:``}${ee?` ask-thread-empty`:``}`,ref:A,children:(0,K.jsx)(`div`,{ref:j,className:`ask-thread-content`,children:(0,K.jsxs)(JX,{pending:!u&&!m,skeleton:(0,K.jsx)(av,{layout:`chat`,testId:`chat-thread-loading`}),children:[!te&&L.map(e=>(0,K.jsx)(Q$,{turn:e,chat:u,panel:r,onSource:o,onRetry:()=>se(e.question)},e.id)),r&&de]})})})}),M.behind&&(0,K.jsx)(`button`,{className:`chat-latest`,"data-testid":`chat-latest`,"aria-label":W(`Back to latest`),onClick:M.latest,children:(0,K.jsx)(Gh,{size:15})})]}),(0,K.jsxs)(`div`,{className:`ask-composer${r?` chat-composer`:``}`,children:[m&&(0,K.jsx)(`p`,{"data-testid":r?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:W(`Couldn't save your changes`)}),(0,K.jsx)(JX,{pending:!u&&!m,onReady:()=>{u&&D.current?.focus({preventScroll:!0})},testId:te?`chat-loading`:void 0,children:(0,K.jsxs)(`form`,{className:`ask-box`,"data-busy":B||void 0,"data-testid":`${N}-box`,onSubmit:e=>{e.preventDefault(),se(f)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||x(void 0)},children:[(0,K.jsx)(`span`,{className:`ask-border`,"aria-hidden":`true`}),(0,K.jsx)(W$,{chips:ne,disabled:B,onRemove:H}),(0,K.jsxs)(`div`,{className:`ask-field`,children:[(0,K.jsx)(`textarea`,{ref:D,id:r?`meeting-question`:`library-question`,"data-testid":`${N}-input`,rows:1,maxLength:4e3,placeholder:W(r?`Ask anything`:`Ask about your meetings`),"aria-label":W(r?`Ask anything`:`Ask about your meetings`),value:f,disabled:!u,readOnly:g||v,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!b,"aria-controls":b?`${N}-contexts`:void 0,"aria-activedescendant":b&&w[T]?`${N}-context-${T}`:void 0,onChange:e=>{re(e.target.value),V(e.target.value,e.target.selectionStart)},onClick:e=>V(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:I,onKeyDown:ce}),(0,K.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,K.jsx)(`button`,{type:`button`,className:`ask-toolbar-button`,disabled:B,"aria-label":W(`Add a meeting or folder`),title:W(`Add a meeting or folder`),onClick:()=>{let e=D.current?.selectionStart??f.length,t=e&&!/\s/.test(f[e-1])?` @`:`@`,n=f.slice(0,e)+t+f.slice(e);re(n),V(n,e+t.length),D.current?.focus(),requestAnimationFrame(()=>D.current?.setSelectionRange(e+t.length,e+t.length))},children:(0,K.jsx)(Zh,{size:16,"aria-hidden":`true`})}),z?(0,K.jsx)(`button`,{type:`button`,"data-testid":`${N}-stop`,className:`ask-toolbar-button ask-stop`,"aria-label":u?.waitsForModel?W(`Cancel question`):W(`Stop`),title:u?.waitsForModel?W(`Cancel question`):W(`Stop`),onClick:()=>{oe(),window.yogurt.conversations.stop(e)},children:(0,K.jsx)(z_,{size:10,fill:`currentColor`})}):(0,K.jsxs)(`button`,{type:`submit`,"data-testid":`${N}-send`,className:`ask-toolbar-button ask-send`,disabled:B||!f.trim(),"aria-label":W(`Ask`),children:[(0,K.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,K.jsx)(Yh,{size:16})]})]})]}),b&&(0,K.jsxs)(`div`,{className:`ask-picker`,id:`${N}-contexts`,role:`listbox`,"aria-label":W(`Add context`),children:[[`meeting`,`folder`].map(e=>w.some(t=>t.kind===e)&&(0,K.jsxs)(`div`,{role:`group`,"aria-label":W(e===`meeting`?`Meetings`:`Folders`),children:[(0,K.jsx)(`h3`,{children:W(e===`meeting`?`Meetings`:`Folders`)}),w.map((t,n)=>t.kind===e&&(0,K.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":T===n,id:`${N}-context-${n}`,onMouseDown:e=>e.preventDefault(),onClick:()=>ae(t),children:[e===`meeting`?(0,K.jsx)(Ng,{size:14}):(0,K.jsx)(zg,{size:14}),(0,K.jsx)(`span`,{children:U$(t)}),t.startedAt&&(0,K.jsx)(`small`,{children:rU(t.startedAt)})]},`${t.kind}:${t.id}`))]},e)),!S&&!m&&(0,K.jsx)(`p`,{role:`status`,children:W(`Loading…`)}),S&&!w.length&&(0,K.jsx)(`p`,{children:W(`Nothing found for “{query}”.`,{query:S.query})})]})]})})]}),!r&&de,(0,K.jsx)(`p`,{"data-testid":`${N}-announce`,className:`sr-only`,"aria-live":`polite`,children:R?.status===`done`?R.answer:``})]})}function Q$({turn:e,chat:t,panel:n,onSource:r,onRetry:i}){let a=e.status===`answering`,o=uU(e.answer,a),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1),d=n?`chat`:`chat-page`;return(0,U.useEffect)(()=>{if(!s)return;let e=setTimeout(()=>c(!1),1800);return()=>clearTimeout(e)},[s]),(0,K.jsxs)(`div`,{"data-testid":`${d}-turn`,"data-status":e.status,className:`ask-turn`,children:[(0,K.jsx)(`p`,{className:`ask-question`,"data-testid":`${d}-question`,children:e.question}),(e.status===`waiting`||a&&!o)&&(t.waitsForModel&&e.status===`waiting`?(0,K.jsx)(ZX,{downloading:e=>(0,K.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:W(`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,{percent:e})}),children:(0,K.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:W(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,K.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?W(`Yogurt will answer once the meeting ends.`):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)($X,{}),(0,K.jsx)($$,{step:e.status===`waiting`?void 0:e.step})]})})),o&&(0,K.jsx)(`div`,{"data-testid":`${d}-answer`,dir:`auto`,"data-streaming":a||void 0,className:`note-prose chat-answer${a?` stream-caret`:``}`,children:(0,K.jsx)(MX,{md:o,live:a,sources:e.sources,onSource:r})}),o&&!a&&(0,K.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,K.jsxs)(`button`,{className:`chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":W(s?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{c(!0),u(!1)}).catch(()=>u(!0))},children:[(0,K.jsx)(q$,{show:s?`done`:`copy`,options:{copy:(0,K.jsx)(GX,{size:13}),done:(0,K.jsx)(dg,{size:13})}}),(0,K.jsx)(J$,{text:W(s?`Copied`:`Copy`),widest:W(`Copied`)})]}),(0,K.jsx)(`span`,{role:`status`,className:l?`text-danger`:`sr-only`,children:l?W(`Couldn't copy. Try again.`):s?W(`Copied`):``})]}),e.status===`stopped`&&(0,K.jsx)(`p`,{className:`text-xs text-muted`,children:W(o?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,K.jsxs)(`p`,{role:`alert`,children:[W(`Yogurt couldn't answer that.`),` `,(0,K.jsx)(`button`,{className:`ghost-btn`,onClick:i,children:W(`Try again`)})]})]})}function $$({step:e}){let[t,n]=(0,U.useState)(0),r=JSON.stringify(e??null);(0,U.useEffect)(()=>{n(0);let e=setInterval(()=>n(e=>e+1),QH);return()=>clearInterval(e)},[r]);let i=$H(e,t);return(0,K.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var e1=`M21.528 8.111Q25.000 7.278 30.000 7.278L30.000 7.278Q35.000 7.278 45.833 7.833L56.667 8.389L56.667 8.389L56.111 20.056Q55.556 31.722 54.861 34.222L54.861 34.222Q54.167 36.722 53.472 37.556L53.472 37.556Q52.778 38.389 51.528 39.083L51.528 39.083Q50.278 39.778 44.028 40.889L44.028 40.889Q37.778 42.000 36.111 43.250L36.111 43.250Q34.444 44.500 33.889 45.750L33.889 45.750Q33.333 47.000 33.472 48.806L33.472 48.806Q33.611 50.611 34.583 52.417L34.583 52.417Q35.556 54.222 37.361 55.889L37.361 55.889Q39.167 57.556 40.694 58.250L42.222 58.944L42.222 58.944L42.361 59.778Q42.500 60.611 42.500 62.278L42.500 63.944L42.500 63.944L41.250 63.944Q40.000 63.944 35.139 62.972L35.139 62.972Q30.278 62.000 25.556 60.056L25.556 60.056Q20.833 58.111 18.194 56.306L18.194 56.306Q15.556 54.500 13.611 52.556L13.611 52.556Q11.667 50.611 10.278 48.667L10.278 48.667Q8.889 46.722 7.500 43.389L7.500 43.389Q6.111 40.056 5.556 36.861L5.556 36.861Q5.000 33.667 5.000 31.167L5.000 31.167Q5.000 28.667 5.417 26.028L5.417 26.028Q5.833 23.389 6.944 20.611L6.944 20.611Q8.056 17.833 9.444 15.889L9.444 15.889Q10.833 13.944 12.639 12.417L12.639 12.417Q14.444 10.889 16.250 9.917L16.250 9.917Q18.056 8.944 21.528 8.111L21.528 8.111Z M66.250 33.944Q68.611 33.667 72.639 33.667L72.639 33.667Q76.667 33.667 79.028 34.083L79.028 34.083Q81.389 34.500 83.889 35.611L83.889 35.611Q86.389 36.722 88.611 38.667L88.611 38.667Q90.833 40.611 92.083 42.694L92.083 42.694Q93.333 44.778 93.889 46.444L93.889 46.444Q94.444 48.111 94.861 51.306L94.861 51.306Q95.278 54.500 95.139 57.972L95.139 57.972Q95.000 61.444 94.444 64.222L94.444 64.222Q93.889 67.000 92.083 71.306L92.083 71.306Q90.278 75.611 89.028 77.278L89.028 77.278Q87.778 78.944 85.694 81.028L85.694 81.028Q83.611 83.111 80.694 85.194L80.694 85.194Q77.778 87.278 75.556 88.389L75.556 88.389Q73.333 89.500 71.111 90.333L71.111 90.333Q68.889 91.167 65.833 91.861L65.833 91.861Q62.778 92.556 59.028 92.833L55.278 93.111L55.278 93.111L55.278 89.222L55.278 89.222L56.944 88.528Q58.611 87.833 60.972 85.889L60.972 85.889Q63.333 83.944 64.444 81.722L64.444 81.722Q65.556 79.500 65.417 77.417L65.417 77.417Q65.278 75.333 64.722 74.639L64.722 74.639Q64.167 73.944 63.194 73.528L63.194 73.528Q62.222 73.111 56.667 72.972L56.667 72.972Q51.111 72.833 50.139 72.556L50.139 72.556Q49.167 72.278 48.472 71.583L48.472 71.583Q47.778 70.889 47.361 66.861L47.361 66.861Q46.944 62.833 46.944 57.833L46.944 57.833Q46.944 52.833 47.222 51.167L47.222 51.167Q47.500 49.500 48.611 46.722L48.611 46.722Q49.722 43.944 51.944 41.306L51.944 41.306Q54.167 38.667 56.667 37.139L56.667 37.139Q59.167 35.611 61.528 34.917L61.528 34.917Q63.889 34.222 66.250 33.944L66.250 33.944Z`,t1=`M265 -179Q225 -179 184.0 -171.0Q143 -163 107.5 -146.5Q72 -130 48 -104L91 0Q120 -33 166.0 -50.0Q212 -67 259 -67Q314 -67 350.0 -44.5Q386 -22 405.0 25.0Q424 72 426 142L433 237H412Q402 169 379.0 126.5Q356 84 321.5 64.5Q287 45 241 45Q184 45 145.0 74.0Q106 103 86.5 160.0Q67 217 67 301V523H194V330Q194 236 217.0 193.5Q240 151 287 151Q312 151 333.0 164.5Q354 178 368.5 203.5Q383 229 391.5 267.0Q400 305 401 354V523H528V137Q528 74 517.5 23.5Q507 -27 486.0 -64.5Q465 -102 433.5 -128.0Q402 -154 360.0 -166.5Q318 -179 265 -179ZM875 -13Q798 -13 739.0 18.5Q680 50 646.5 111.5Q613 173 613 263Q613 355 647.5 415.5Q682 476 741.0 506.0Q800 536 874 536Q951 536 1010.0 505.0Q1069 474 1103.0 412.5Q1137 351 1137 260Q1137 168 1103.0 107.0Q1069 46 1009.5 16.5Q950 -13 875 -13ZM880 83Q922 83 951.0 102.5Q980 122 995.5 161.0Q1011 200 1011 254Q1011 311 994.5 351.5Q978 392 947.5 414.0Q917 436 871 436Q831 436 801.0 416.5Q771 397 755.5 359.0Q740 321 740 265Q740 177 777.5 130.0Q815 83 880 83ZM1428 -180Q1343 -180 1288.5 -167.0Q1234 -154 1208.0 -128.0Q1182 -102 1182 -64Q1182 -18 1218.5 11.5Q1255 41 1327 48V68Q1273 67 1245.0 79.5Q1217 92 1217 120Q1217 147 1244.5 168.0Q1272 189 1336 203V223Q1275 226 1241.0 261.5Q1207 297 1207 354Q1207 405 1235.0 444.0Q1263 483 1317.5 505.5Q1372 528 1450 528H1709V428L1545 452V430Q1607 420 1636.5 395.0Q1666 370 1666 327Q1666 286 1640.0 254.5Q1614 223 1564.5 205.5Q1515 188 1445 188Q1432 188 1417.0 189.0Q1402 190 1370 194Q1349 179 1336.0 167.5Q1323 156 1323 146Q1323 138 1333.0 132.5Q1343 127 1359.0 125.0Q1375 123 1390 123H1529Q1549 123 1580.5 120.0Q1612 117 1643.5 104.0Q1675 91 1696.5 63.0Q1718 35 1718 -16Q1718 -73 1685.5 -109.5Q1653 -146 1588.5 -163.0Q1524 -180 1428 -180ZM1439 -78Q1501 -78 1538.0 -71.0Q1575 -64 1591.0 -48.5Q1607 -33 1607 -9Q1607 13 1597.0 25.5Q1587 38 1571.5 43.0Q1556 48 1540.0 49.0Q1524 50 1513 50H1390Q1342 43 1322.5 23.0Q1303 3 1303 -21Q1303 -45 1319.0 -57.5Q1335 -70 1365.5 -74.0Q1396 -78 1439 -78ZM1442 257Q1494 257 1521.0 281.5Q1548 306 1548 346Q1548 389 1520.5 416.5Q1493 444 1441 444Q1389 444 1360.5 417.0Q1332 390 1332 348Q1332 321 1344.5 300.5Q1357 280 1381.5 268.5Q1406 257 1442 257ZM1968 -13Q1878 -13 1832.5 48.5Q1787 110 1787 235V523H1914V249Q1914 170 1938.0 131.0Q1962 92 2012 92Q2041 92 2063.0 106.5Q2085 121 2101.0 147.5Q2117 174 2126.5 209.0Q2136 244 2138 286V523H2264V215V0H2160L2162 165H2144Q2131 102 2107.5 63.0Q2084 24 2050.0 5.5Q2016 -13 1968 -13ZM2381 0V262V523H2487L2485 343H2503Q2512 407 2531.0 449.5Q2550 492 2584.0 513.5Q2618 535 2668 535Q2678 535 2689.5 534.0Q2701 533 2715 529L2710 396Q2694 402 2677.5 404.5Q2661 407 2647 407Q2608 407 2579.5 387.0Q2551 367 2533.5 330.5Q2516 294 2507 244V0ZM2961 -12Q2878 -12 2839.0 32.5Q2800 77 2800 171V422H2723L2725 522H2776Q2805 522 2819.0 531.0Q2833 540 2836 563L2848 639H2921V523H3059V418H2921V176Q2921 139 2938.5 122.0Q2956 105 2991 105Q3010 105 3028.5 109.5Q3047 114 3063 125V5Q3032 -5 3006.5 -8.5Q2981 -12 2961 -12Z`;function n1({size:e=28,className:t=`text-accent`}){return(0,K.jsx)(`svg`,{"data-testid":`logo`,role:`img`,"aria-label":`Yogurt`,width:e,height:e,viewBox:`0 0 100 100`,className:`shrink-0 ${t}`,children:(0,K.jsx)(`path`,{fill:`currentColor`,d:e1})})}function r1({height:e=32}){return(0,K.jsxs)(`svg`,{"data-testid":`wordmark`,role:`img`,"aria-label":`Yogurt`,height:e,width:e*286/80,viewBox:`0 0 286 80`,className:`shrink-0`,children:[(0,K.jsx)(`path`,{className:`text-accent`,fill:`currentColor`,transform:`translate(0 5) scale(.65)`,d:e1}),(0,K.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:t1})]})}var i1=[{speaker:`Kara`,text:`The launch page is ready for review.`,track:`them`,speakerColor:0},{speaker:`Ray`,text:`We can publish Tuesday.`,track:`them`,speakerColor:1},{text:`I'll send Ray the asset list by Friday.`,track:`me`}].map((e,t)=>({...e,id:t+1,meetingId:`sample-meeting`,startMs:1e4+t*1e4,endMs:14e3+t*1e4,hidden:!1})),a1=[.8,2.65,4.05],o1=[2.35,3.8,5.95];function s1(e){let t=i1.map((t,n)=>({...t,hidden:e<o1[n]})),n=a1.findIndex((t,n)=>e>=t&&e<o1[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=i1[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-a1[n])/(o1[n]-a1[n])*(i.length-1))),o=i.slice(0,a).map((e,t)=>({text:e,startMs:r.startMs+t*350,endMs:r.startMs+(t+1)*350}));return{lines:t,partial:{track:r.track,startMs:r.startMs,text:o.map(e=>e.text).join(` `),words:o}}}var c1=[`## Tuesday launch`,`- Publish the page Tuesday.`,`- Announce it Wednesday morning.`,`## Next steps`,`- **Kara:** Release notes by Friday.`,`- **You:** Send Ray the asset list by Friday.`],l1=c1.join(`
-`),u1=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function d1(e){return c1.flatMap((t,n)=>{let[,r,i]=t.match(/^(## |- )(.*)$/),a=i.split(` `),o=(n<3?.16:.14)*.8,s=Math.max(0,Math.min(a.length,Math.floor((e-u1[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
-`)}var f1=()=>{},p1=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&Se(i1,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&xe({question:_,answer:v+`[1]`,status:p1?`waiting`:`done`});function m1(e){let t=[],n=(e,n,r=.28)=>{e&&t.push({element:e,start:n,duration:r})},r=(e,t,r)=>{let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=[];for(;i.nextNode();)i.currentNode.textContent?.trim()&&!i.currentNode.parentElement?.closest(`button,time,.sr-only`)&&a.push(i.currentNode);let o=0;for(let e of a){let i=document.createDocumentFragment();for(let a of e.data.split(/(\s+)/)){if(!a.trim()){i.append(a);continue}let e=document.createElement(`span`);e.className=`fragment-word`,e.textContent=a,i.append(e),n(e,t+o++*r)}e.replaceWith(i)}};if(M===`ask`){let t=e.querySelector(`.ask-question`);n(t,1),r(t,1,.045),n(e.querySelector(`.fragment-byline`),2.05);let i=4.45;e.querySelectorAll(`.chat-answer>p`).forEach(e=>{r(e,i,1.5/v.split(` `).length),i+=e.textContent.replace(/1$/,``).trim().split(/\s+/).length*1.5/v.split(` `).length}),n(e.querySelector(`.source-citation`),5.95)}return t}function h1(){let[e,t]=(0,U.useState)(p1?0:99),[n,r]=(0,U.useState)(null),[i,a]=(0,U.useState)(0);return(0,U.useEffect)(()=>{let e=!1,n=[],i=``,o=null,s=e=>{if(e.source!==parent||e.origin!==location.origin||e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let r=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(r),M===`transcript`){let e=s1(r),t=JSON.stringify(e);t!==i&&(i=t,Se(e.lines,e.partial))}for(let{element:e,start:t,duration:i}of n){let n=Math.max(0,Math.min(1,(r-t)/i));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=r>=2.05&&r<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(r<20)};window.addEventListener(`message`,s);let c=()=>{if(e||o?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&r(t),document.querySelector(`[data-testid="transcript"][data-loaded=true], [data-testid="fragment-plan"], [data-testid="chat-answer"]`)&&(M!==`ask`||document.querySelector(`.fragment-byline`))&&(e=!0,document.fonts.ready.then(()=>requestAnimationFrame(()=>{if(M===`transcript`&&p1&&!o){o=document.querySelector(`[data-testid=transcript]`);let t=[...o.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${o.getBoundingClientRect().height}px;display:grid;grid-template-rows:${t.map(e=>e.getBoundingClientRect().height+`px`).join(` `)};gap:20px}`+t.map((e,t)=>{let n=e.querySelector(`.bubble`).getBoundingClientRect();return`.fragment-transcript .transcript-turn:nth-child(${t+1} of .transcript-turn) .bubble{width:${n.width}px;height:${n.height}px;flex:none}`}).join(``),document.head.append(n),Se([],{track:`them`,startMs:0,text:``,words:[]}),e=!1,a(1)}else{if(M===`ask`){let e=document.querySelector(`.chat-answer`),t=e.closest(`.ask-turn`);t.style.setProperty(`--fragment-answer-top`,`${e.getBoundingClientRect().top-t.getBoundingClientRect().top}px`)}if(n=m1(document.querySelector(`.marketing-fragment`)),p1)for(let{element:e}of n)e.style.opacity=`0`;document.documentElement.dataset.ready=`true`,parent.postMessage({type:`yogurt-fragment-ready`},location.origin)}})))},l=new MutationObserver(c);return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-loaded`]}),c(),()=>{l.disconnect(),window.removeEventListener(`message`,s)}},[]),(0,K.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,K.jsx)($v,{id:E.id,recording:!0,inline:!0},i),M===`summary`&&(0,K.jsxs)(`div`,{className:`fragment-plan`,children:[(0,K.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,K.jsx)(JH,{markdown:l1,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,K.jsx)(`div`,{className:`fragment-plan-live`,children:(0,K.jsx)(JH,{markdown:d1(e),streaming:p1&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Z$,{id:j.id,initial:j,panel:!0,onSelect:f1,onSource:f1,onDeleted:f1}),n&&(0,De.createPortal)((0,K.jsxs)(`div`,{className:`fragment-byline`,children:[(0,K.jsx)(n1,{size:20}),(0,K.jsx)(`span`,{children:`Yogurt`})]}),n)]})]})}var g1=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),_1=o(((e,t)=>{t.exports=g1()})),v1=o((e=>{var t=_1(),n=we(),r=Ee();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),z=Symbol.for(`react.legacy_hidden`),B=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.for(`react.view_transition`),te=Symbol.for(`react.recoverable`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var V=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===V?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case R:return`Activity`;case ee:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function ue(e){return{current:e}}function de(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function fe(e,t){le++,ce[le]=e.current,e.current=t}var pe=ue(null),me=ue(null),he=ue(null),ge=ue(null);function _e(e,t){switch(fe(he,t),fe(me,e),fe(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_p(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_p(t),e=vp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}de(pe),fe(pe,e)}function ve(){de(pe),de(me),de(he)}function ye(e){var t=e.memoizedState;t!==null&&(mh._currentValue=t.memoizedState,fe(ge,e)),t=pe.current;var n=vp(t,e.type);t!==n&&(fe(me,e),fe(pe,n))}function be(e){me.current===e&&(de(pe),de(me)),ge.current===e&&(de(ge),mh._currentValue=se)}var xe,Se;function Ce(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1<e.stack.indexOf(`
+`).filter(e=>e.trim()).map(t=>({text:t,track:`them`,speaker:null,startMs:e.atMs})):[],d=Math.max(0,dt(u.map(e=>e.text),c.text,Math.max(0,u.findIndex(e=>e.startMs===c.atMs))));return{kind:n,before:s(a.before),match:c,after:s(a.after),notes:n===`notes`?OX(i,a):[],lines:u.map((t,n)=>{let r=Et(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:Tt[r]}}),matchedLine:d}}function AX(e,t){let n=0,r=e.length,i=e.reduce((e,t)=>e+t,0);for(;i>6&&r-n>1;)t-n>r-1-t?i-=e[n++]:i-=e[--r];return{start:n,end:r}}function jX({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,q.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,q.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,q.jsx)(`code`,{children:n}));return n}function MX({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,W.useId)().replace(/:/g,``),o=(0,W.useRef)(null);lt(e.excerpt??``,t);let s=kX(e,t),c=kf(),l=n?document.getElementById(n):null,u=e.title||G(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(yt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`});return(0,W.useLayoutEffect)(()=>{if(!r||c)return;let e=0,t=requestAnimationFrame(()=>{let t=o.current;if(!t||!l)return;let n=l.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2-r.left,a=n.top+n.height/2-r.top,s={"from-x":`${i-9}px`,"from-y":`${a>r.height/2?a-n.height/2-18:a+n.height/2}px`,"from-sx":18/r.width,"from-sy":18/r.height};for(let[e,n]of Object.entries(s))t.style.setProperty(`--${e}`,String(n));t.dataset.morph=`true`,e=window.setTimeout(()=>{delete t.dataset.morph},Df.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,q.jsx)(MY,{container:l?.closest(`dialog`)??void 0,children:(0,q.jsx)(vX,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,q.jsxs)(wX,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,q.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,q.jsx)(`defs`,{children:(0,q.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,q.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,q.jsx)(`feColorMatrix`,{type:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})})}),(0,q.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,q.jsx)(`div`,{className:`citation-mass`})}),(0,q.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,q.jsxs)(`div`,{className:`citation-content`,children:[(0,q.jsxs)(`div`,{className:`citation-heading`,children:[(0,q.jsx)(TX,{className:`citation-title`,title:u,children:u}),(0,q.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(yt(),{month:`short`,day:`numeric`})})]}),s.match.text&&(s.kind===`transcript`?(0,q.jsx)(NX,{preview:s},JSON.stringify(s.lines)+s.matchedLine):(0,q.jsx)(PX,{preview:s})),(0,q.jsxs)(`div`,{className:`citation-footer`,children:[(0,q.jsx)(`span`,{children:e.atMs===null?G(`Notes`):(0,q.jsxs)(q.Fragment,{children:[G(`Transcript`),` · `,Tv(s.match.atMs??e.atMs)]})}),(0,q.jsxs)(`button`,{className:`citation-open`,"data-testid":`citation-open`,"aria-label":G(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[G(`Open`),(0,q.jsx)(cg,{size:12,"aria-hidden":`true`})]})]})]})]})})})}function NX({preview:e}){let t=(0,W.useRef)(null),[n,r]=(0,W.useState)({start:0,end:e.lines.length}),[i,a]=(0,W.useState)(0);return(0,W.useLayoutEffect)(()=>{let i=t.current;(()=>{let t=[];for(let e of i.querySelectorAll(`[data-citation-line]`)){let n=e.querySelector(`.citation-lines`);t.push(Math.ceil(n.scrollHeight/parseFloat(getComputedStyle(n).lineHeight)))}let a=AX(t,e.matchedLine-n.start),o={start:n.start+a.start,end:n.start+a.end};r(e=>e.start===o.start&&e.end===o.end?e:o)})()},[i,n.start,n.end]),(0,W.useLayoutEffect)(()=>{let n=t.current,i=n.clientWidth,o=new ResizeObserver(()=>{n.clientWidth!==i&&(i=n.clientWidth,r({start:0,end:e.lines.length}),a(i))});return o.observe(n),()=>o.disconnect()},[]),(0,q.jsx)(`div`,{ref:t,className:`citation-passage citation-transcript`,"data-testid":`citation-excerpt`,children:Ev(e.lines.slice(n.start,n.end)).map(t=>{let r=t[0],i=r.track===`me`,a=i||!!r.speaker;return(0,q.jsxs)(`div`,{className:`transcript-turn`,"data-track":r.track,children:[a&&(0,q.jsx)(`span`,{className:`line-who citation-speaker`,"data-folder-color":r.color,children:i?G(`You`):r.speaker}),t.map((t,r)=>(0,q.jsx)(`p`,{"data-citation-line":t.index,"data-citation-part":t.index===e.matchedLine?`match`:`context`,"data-track":t.track,dir:`auto`,className:`bubble bubble-${t.track}`,"data-continuation":!a||r>0||void 0,children:(0,q.jsxs)(`span`,{className:`citation-lines`,style:{WebkitLineClamp:6},children:[t.index===n.start&&n.start>0&&`… `,t.text,t.index===n.end-1&&n.end<e.lines.length&&` …`]})},t.index))]},r.index)})})}function PX({preview:e}){let t=(0,W.useRef)(null);(0,W.useLayoutEffect)(()=>{let e=t.current,n=()=>{let t=[...e.querySelectorAll(`[data-citation-part]`)],n=new Map(t.map(e=>{e.hidden=!1;let t=e.querySelector(`.citation-lines`);return t.style.webkitLineClamp=`unset`,[e.dataset.citationPart,Math.ceil(t.scrollHeight/parseFloat(getComputedStyle(t).lineHeight))]})),r=Math.min(6,n.get(`match`)??0),i=6-r,a=Math.min(2,n.get(`before`)??0,Math.floor(i/(n.has(`after`)?2:1))),o=Math.min(2,n.get(`after`)??0,i-a);for(let e of t){let t=e.dataset.citationPart===`match`?r:e.dataset.citationPart===`before`?a:o;e.hidden=t===0,e.querySelector(`.citation-lines`).style.webkitLineClamp=String(t)}};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[e]);let n=(e,t)=>{if(e.type===`citationPart`)return(0,q.jsx)(`div`,{"data-citation-part":String(e.attrs.part),children:(0,q.jsx)(`p`,{className:`citation-lines`,children:(0,q.jsx)(`span`,{className:e.attrs.part===`match`?`citation-match`:void 0,children:e.content?.map((e,t)=>(0,q.jsx)(jX,{marks:e.marks,children:e.text},t))})})},t);let r=e.content?.map(n);return e.type===`bulletList`?(0,q.jsx)(`ul`,{children:r},t):e.type===`orderedList`?(0,q.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},t):(0,q.jsx)(`li`,{value:e.attrs?.value,children:r},t)};return(0,q.jsx)(`div`,{ref:t,className:`citation-passage citation-notes`,"data-testid":`citation-excerpt`,children:e.notes.map(n)})}function FX({md:e,live:t,sources:n,onSource:r}){let i=(0,W.useId)(),[a,o]=(0,W.useState)(!1),[s,c]=(0,W.useState)(null),[l,u]=(0,W.useState)(!1),d=(0,W.useRef)(null),f=(0,W.useMemo)(()=>{let r=nt(e,n,t),i=e=>{e.type===`citation`&&(e.attrs.payloads=e.attrs.marks.map(t=>({source:n.find(e=>e.n===t.source),sentence:String(e.attrs.sentence??``)}))),e.content?.forEach(i)};return i(r),r},[e,n,t]),p={live:t,at:{n:0},id:i,sources:n,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(!1),c(e.id),o(!0)))},blur:()=>{d.current=null},activate:e=>{d.current=null,u(!1),c(e.id),o(!0)},dismiss:e=>!a||s!==e.id?!1:(o(!1),!0)};return(0,q.jsx)(pY,{open:a,triggerId:s,onOpenChange:(e,t)=>{!e&&t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail===0?t.cancel():(t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&(a&&t.trigger?.id===s||u(t.reason===`trigger-hover`||t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail>0),c(t.trigger?.id??s)),o(e))},children:({payload:e})=>(p.at.n=0,(0,q.jsxs)(q.Fragment,{children:[(f.content??[]).map(e=>IX(e,p)),e&&(0,q.jsx)(MX,{source:e.source,sentence:e.sentence,triggerId:s,animate:l,onOpen:t=>{o(!1),r(e.source,t)}},s)]}))})}function IX(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),(0,q.jsx)(`span`,{className:`citation-group`,"data-gap":e.attrs.gap||void 0,"data-single":e.attrs.marks.length===1||void 0,children:e.attrs.marks.map((r,i)=>{let a=t.sources.find(e=>e.n===r.source),o=a.title||G(`Untitled`);return(0,q.jsx)(kY,{id:`${t.id}-${n}-${r.source}`,payload:e.attrs.payloads[i],openOnHover:!0,delay:100,closeDelay:180,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${r.number}: ${o} · ${aU(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),t.activate(e.currentTarget)),e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:r.number},r.source)})},n);if(e.type===`citationAnchor`)return(0,q.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>IX(e,t))},n);if(e.type===`text`){let r=e.text??``,i=LX(r,t.at.n,t.live);return t.at.n+=r.length,(0,q.jsx)(jX,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>IX(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,q.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,q.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,q.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,q.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,q.jsx)(`p`,{children:r},n):null;default:return(0,q.jsx)(W.Fragment,{children:r},n)}}function LX(e,t,n){if(!n)return e?[e]:[];let r=[],i=t;for(let t of e.split(/(\s+)/))t&&r.push(/^\s+$/.test(t)?t:(0,q.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function RX(e,t){return function({size:n=16,...r}){return(0,q.jsx)(`svg`,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"data-icon":e,...r,children:t.map(([e,t])=>(0,W.createElement)(e,t))})}}var zX=RX(`MessageCircle`,[[`path`,{d:`M21.9598 12.9919C21.6856 17.2342 18.3536 20.6134 14.1706 20.8915C13.4574 20.9389 12.7285 21.001 12 21.001C10.4054 21.001 8.95127 20.8637 7.44544 20.2902C7.44544 20.2902 5.56108 21.7589 3.69962 21.4587C3.31009 21.3959 3.11532 21.3644 3.00091 21.1343C2.8865 20.9042 3.00788 20.6756 3.25063 20.2185C3.65964 19.4483 3.92248 18.6737 3.80076 17.8306C3.73703 17.3892 3.50433 16.9974 3.27644 16.6136L3.26529 16.5948C2.62637 15.5188 2.12462 14.2975 2.04024 12.9919C1.98659 12.1617 1.98659 11.3019 2.04024 10.4717C2.31441 6.22935 5.64639 2.85011 9.8294 2.57205C11.2536 2.47738 12.7435 2.47719 14.1706 2.57205C18.3536 2.85011 21.6856 6.22935 21.9598 10.4717C22.0134 11.3019 22.0134 12.1617 21.9598 12.9919Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8.75 9.50098H12.25`,pathLength:`1`,stroke:`currentColor`,key:`1`}],[`path`,{d:`M8.75 14.501H15.25`,pathLength:`1`,stroke:`currentColor`,key:`2`}]]),BX=RX(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),VX=RX(`SidebarToggle`,[[`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`4`,key:`frame`}],[`rect`,{x:`6.5`,y:`7.5`,width:`6`,height:`9`,rx:`1`,fill:`currentColor`,stroke:`none`,className:`sidebar-toggle-pane`,key:`pane`}]]),HX=RX(`FileText`,[[`path`,{d:`M8 17H16`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8 13H12`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`2`}]]),UX=RX(`Settings`,[[`path`,{d:`M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}]]),WX=RX(`Mic`,[[`path`,{d:`M7 6.5C7 4.01472 9.01472 2 11.5 2C13.9853 2 16 4.01472 16 6.5V11.5C16 13.9853 13.9853 16 11.5 16C9.01472 16 7 13.9853 7 11.5V6.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M11.5 19H11.0828C7.57267 19 4.57706 16.4623 4 13M11.5 19H11.9172C15.4273 19 18.4229 16.4623 19 13M11.5 19V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),GX=RX(`Pause`,[[`path`,{d:`M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z`,stroke:`currentColor`,key:`1`}]]),KX=RX(`Play`,[[`path`,{d:`M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}]]),qX=RX(`Sparkles`,[[`path`,{d:`M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`1`}]]),JX=RX(`Copy`,[[`path`,{d:`M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),YX=RX(`Loader`,[[`path`,{d:`M12 3V6`,stroke:`currentColor`,strokeLinecap:`round`,key:`0`}],[`path`,{d:`M12 18V21`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}],[`path`,{d:`M21 12L18 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`2`}],[`path`,{d:`M6 12L3 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`3`}],[`path`,{d:`M18.3635 5.63672L16.2422 7.75804`,stroke:`currentColor`,strokeLinecap:`round`,key:`4`}],[`path`,{d:`M7.75804 16.2422L5.63672 18.3635`,stroke:`currentColor`,strokeLinecap:`round`,key:`5`}],[`path`,{d:`M18.3635 18.3635L16.2422 16.2422`,stroke:`currentColor`,strokeLinecap:`round`,key:`6`}],[`path`,{d:`M7.75804 7.75804L5.63672 5.63672`,stroke:`currentColor`,strokeLinecap:`round`,key:`7`}]]);function XX(e){return W.Children.map(e,e=>{if(!(0,W.isValidElement)(e))return e;let t=e;return(0,W.cloneElement)(t,{ref:null,...typeof e.type==`string`?{id:void 0,"data-testid":void 0}:{}},t.props.children===void 0?void 0:XX(t.props.children))})}function ZX({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=xv(e),s=(0,W.useRef)(void 0);e&&(s.current=n??XX(t));let c=o===`waiting`||o===`skeleton`,l=(0,W.useRef)(a);return l.current=a,(0,W.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,q.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,q.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,q.jsx)(`span`,{className:`sr-only`,role:`status`,children:G(`Loading…`)}),(0,q.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,inert:!0,ref:e=>{n===void 0&&e?.querySelectorAll(`[id],[data-testid]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`)})},children:s.current})]}),!e&&(0,q.jsx)(`div`,{className:`loading-result`,children:t})]})}var QX=e=>new Intl.NumberFormat(yt(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100),$X=e=>!e.notesDownloading&&!e.notesError&&!!(e.notesUpgradePending||e.notesUpgradeDownloading||e.notesUpgradeError),eZ=e=>!!e&&!!(e.notesDownloading||e.notesError||$X(e));function tZ(e){let t=e.notesRestoreFraction!==void 0,n=$X(e),r=t?e.notesRestoreTotalBytes:n?e.notesUpgradeTotalBytes:e.notesTotalBytes,i=t?e.notesRestoreFraction:n?e.notesUpgradeFraction:e.notesFraction,a=t?e.notesRestoreEtaSec:n?e.notesUpgradeEtaSec:e.notesEtaSec,o=G(n?`Upgrading AI`:`Downloading AI`);if(!r||!Number.isFinite(r)||r<0||i===void 0||!Number.isFinite(i))return{progress:``,eta:``,detail:o};let s=new Intl.NumberFormat(yt(),{minimumFractionDigits:1,maximumFractionDigits:1}),c=G(`{done} of {total} GB`,{done:s.format(r*Math.max(0,Math.min(1,i))/1e9),total:s.format(r/1e9)}),l=!e.notesError&&!e.notesUpgradeError&&i<1&&a!==void 0&&Number.isFinite(a)&&a>0?new Intl.NumberFormat(yt()).format(Math.max(1,Math.round(a/60))):void 0;return{progress:c,eta:l?G(`about {minutes} min left`,{minutes:l}):``,detail:l?G(`{progress} · about {minutes} min left`,{progress:c,minutes:l}):c}}function nZ({children:e,downloading:t}){let[n,r]=(0,W.useState)(),[i,a]=(0,W.useState)(!1),[o,s]=(0,W.useState)(!1);(0,W.useEffect)(()=>{let e=window.yogurt.setup.onState(e=>{r(e),e.notesError||s(!1)});return window.yogurt.setup.state().then(e=>r(t=>t??e)),e},[]);let c=async()=>{a(!0),s(!1);try{await window.yogurt.setup.retry()}catch{s(!0)}finally{a(!1)}};return n?.notesError?(0,q.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,q.jsx)(`p`,{className:`font-medium text-ink`,children:G(`The notes model couldn't download.`)}),(0,q.jsx)(`p`,{children:n.notesError}),(0,q.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`rounded px-1 font-medium text-accent underline underline-offset-2 disabled:opacity-50`,children:G(i?`Retrying…`:`Retry download`)}),o&&(0,q.jsx)(`p`,{className:`text-danger`,children:G(`Couldn't restart the download. Try again.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(QX(n.notesFraction??0)):e}function rZ(e,t,n){let r=(1-Math.cos(n*Math.PI*2))/2,i=4.7-3.7*r,a=0;for(let o of[-1,1]){let s=(e-9-o*i)/(1+r*.12),c=(t-10-o*Math.sin(n*Math.PI*2)*.65)/(1-r*.08);a+=2.75**2/Math.max(.01,s*s+c*c)}return Math.max(0,Math.min(255,(a-.98)*1700))}function iZ(){let e=(0,W.useRef)(null),t=kf();return(0,W.useEffect)(()=>{let n=e.current,r=n?.getContext(`2d`);if(!n||!r||t)return;let i=r.createImageData(72,80),a=0,o=-1/0,s=!1,c=e=>{if(n.isConnected){if(e-o>=1e3/30){o=e;let t=getComputedStyle(n).color.match(/[\d.]+/g).map(Number);for(let n=0;n<80;n++)for(let r=0;r<72;r++){let a=(n*72+r)*4;i.data[a]=t[0],i.data[a+1]=t[1],i.data[a+2]=t[2],i.data[a+3]=rZ((r+.5)/4,(n+.5)/4,e%2800/2800)}r.putImageData(i,0,0)}a=requestAnimationFrame(c)}},l=()=>{cancelAnimationFrame(a),s&&!document.hidden&&(a=requestAnimationFrame(c))},u=new IntersectionObserver(([e])=>{s=e.isIntersecting,l()});return u.observe(n),document.addEventListener(`visibilitychange`,l),()=>{u.disconnect(),cancelAnimationFrame(a),document.removeEventListener(`visibilitychange`,l)}},[t]),t?(0,q.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{})]}):(0,q.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var aZ=W.createContext(void 0);function oZ(e){let t=W.useContext(aZ);if(t===void 0&&!e)throw Error(Pq(33));return t}var sZ=W.createContext(void 0);function cZ(e){let t=W.useContext(sZ);if(t===void 0&&!e)throw Error(Pq(36));return t}var lZ=W.createContext(void 0);function uZ(e=!0){let t=W.useContext(lZ);if(t===void 0&&!e)throw Error(Pq(25));return t}var dZ=W.createContext(null);function fZ(e=`root`){let t=W.useContext(dZ),n=W.useContext(sZ);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var pZ={visible:!0,ref:null};function mZ(){return pZ}function hZ(e,t,n=`root`){let r=fZ(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??mZ)({label:e.label,children:e.children,render:e.render}),a=nG(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function gZ(e){e.preventDefault()}function _Z(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=cZ(),u=uZ(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return W.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?gZ:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:WW})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!RU&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&yY(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var vZ={type:`regular-item`};function yZ(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=W.useRef(null),{getButtonProps:d,buttonRef:f}=bY({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=_Z({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=W.useCallback(e=>AK(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=nG(u,f);return W.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var bZ=W.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function xZ(){return W.useContext(bZ)}function SZ(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=xZ(),u=W.useRef(-1),[d,f]=W.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=W.useRef(null),h=W.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Q(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var CZ=W.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=cZ(),f=SZ({guess:!0,label:a}),p=CY(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=yZ({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:vZ});return UK(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),wZ=W.forwardRef(function(e,t){let n=hZ(e,t);return n.visible?(0,q.jsx)(CZ,{...e,ref:n.ref}):null}),TZ=W.createContext(void 0);function EZ(){return W.useContext(TZ)}function DZ(e,t){let n=qK(e.render);if(W.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function OZ(e,t,n){let r=DZ(e,t),i=r===t?void 0:r;return[r,W.useCallback(e=>n?.(e?i:void 0),[i,n])]}function kZ(e,t,n){let r=qK(e.render),i=W.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var AZ=W.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=cZ(),m=EZ(),{side:h,align:g}=oZ(),_=xX(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=OZ(e,u,d),L=kZ(e,C,N),R=w.type===`menu`?m:void 0,z=w.type===`context-menu`,B=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(B=()=>l.state.activeIndex===null&&P),Hq({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),W.useEffect(()=>{function e(e){l.setOpen(!1,LW(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),kJ(D,{enabled:A&&!j&&!z&&w.type!==`menubar`,closeDelay:k});let ee=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:te,handleFocus:ne}=(W.useContext(dZ)?.useParentHandoff??MZ)(l,w,v,f),re=UK(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,ee,I],stateAttributesMapping:SW,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&yX.has(e.key)&&e.stopPropagation()},onFocus:ne},rX(y),c,{"data-rootownerid":E}]}),V=w.type===void 0||z;(C||w.type===`menubar`&&T!==`outside-press`)&&(V=!0);let H=R?.getReturnElement??te;return(0,q.jsx)(Oq,{context:D,openInteractionType:M,modal:z,disabled:!x,returnFocus:a??H??V,explicitReturnFocus:a===void 0&&H?!1:void 0,initialFocus:B,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:re})}),jZ={parentVirtualFocusRef:void 0,handleFocus:void 0};function MZ(){return jZ}var NZ=W.forwardRef(function(e,t){let n=fZ()?.Popup??AZ;return(0,q.jsx)(n,{...e,ref:t})}),PZ=W.createContext(void 0);function FZ(){let e=W.useContext(PZ);if(e===void 0)throw Error(Pq(32));return e}var IZ=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=cZ();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,q.jsx)(PZ.Provider,{value:n,children:(0,q.jsx)(lq,{ref:t,...r,portalOwnerRole:o})})});function LZ(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=pG(i),[,o]=W.useState(0),s=mU(zZ).current,c=mU(RZ).current,l=W.useRef(0),u=W.useRef(!0),d=W.useRef(null),f=W.useRef(null),p=pG(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=pG((e,t)=>{c.set(e,t),p()}),h=pG(e=>{c.delete(e),p()}),g=pG(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!HZ(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&UZ(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=VZ(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=pG(()=>{let[e,t]=BZ(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Q(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Q(()=>{u.current&&v()}),Q(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=pG(e=>(s.add(e),()=>{s.delete(e)})),b=W.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,q.jsx)(bZ.Provider,{value:b,children:t})}function RZ(){return new Map}function zZ(){return new Set}function BZ(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>UZ(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function VZ(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function HZ(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function UZ(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var WZ=W.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=nq,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=cZ(),x=FZ(),S=uZ(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),R=w.useState(`domReferenceElement`),z=n,B=c,ee=l,te=s,ne=h;C.type===`context-menu`&&(z=n??C.context?.anchor,te??=`start`,!o&&te!==`center`&&(ee=e.alignOffset??2,B=e.sideOffset??-5));let re=o,V=te;C.type===`menu`?(re??=`inline-end`,V??=`start`,ne=e.collisionAvoidance??rq):C.type===`menubar`&&(re??=C.context.orientation===`vertical`?`inline-end`:`bottom`,V??=`start`);let H=C.type===`context-menu`,ie=QY({anchor:z,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:re,sideOffset:B,align:V,alignOffset:ee,arrowPadding:H?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:ne,shift:H?{crossAxis:!(`side`in ne&&ne.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});W.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,LW(QW)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),W.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,LW(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let U=OU();W.useEffect(()=>{D||U.clear()},[D,U]),W.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?U.isStarted()||U.start(e,()=>{v.setOpen(!1,LW(QW))}):v.setOpen(!1,LW(QW))}else U.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,U]),W.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),nX({store:v,domReference:R,positionerElement:M,open:D});let ae={open:D,side:ie.side,align:ie.align,anchorHidden:ie.anchorHidden,nested:C.type===`menu`,instant:N},oe=C.type===`menubar`&&C.context.modal;_X(D&&(oe||O&&F!==`trigger-hover`),k===`touch`,M,A);let se=iX(e,ae,{styles:ie.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ce=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),le=null;return C.type===`menubar`?le=C.context.contentElement:C.type===void 0&&(le=A),(0,q.jsxs)(aZ.Provider,{value:ie,children:[ce&&(0,q.jsx)(tX,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:NY(!D),cutout:le}),(0,q.jsx)(_q,{id:I,children:(0,q.jsx)(LZ,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:se})})]})}),GZ=W.createContext(null);function KZ(e){let t=W.useContext(GZ);if(t===null&&!e)throw Error(Pq(5));return t}function qZ(e){return e==null?zW:e.type.startsWith(`key`)?YW:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?XW:zW}var JZ={...yJ,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=yJ.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>BU&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!yJ.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},YZ=class extends uJ{constructor(e,t,n=!1){let r=new rJ,i=ZZ(r,t,n,e);super(i,XZ(r),JZ),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function XZ(e){return{positionerRef:W.createRef(),popupRef:W.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:W.createRef(),beforeTriggerFocusGuardRef:W.createRef(),beforeContentFocusGuardRef:W.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function ZZ(e,t,n=!1,r){return{...pJ(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:wU,inputProps:wU,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new dq,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:wU,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var QZ=W.createContext(null);function $Z(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function eQ(e,t){return e===`list-navigation`||$Z(e,t)}var tQ=yU(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=uZ(!0),C=cZ(!0),w=KZ(!0),T=C?.store,E=C?.virtualFocus??!1,D=W.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=CY(),k=CY(),[A,j]=W.useState(void 0),M=(A??k)||void 0,N=mq(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=mU(()=>F?P?.state.instantType:void 0).current,L=mU(()=>{let e=new YZ({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let R=L.useState(`floatingTreeRoot`),z=gq(R),B=L.useState(`open`),ee=L.useState(`activeTriggerElement`),te=L.useState(`positionerElement`),ne=L.useState(`hoverEnabled`),re=L.useState(`disabled`),V=L.useState(`lastOpenChangeReason`),H=L.useState(`parent`),ie=L.useState(`activeIndex`),U=L.useState(`keyboardOpen`),ae=L.useState(`payload`),oe=L.useState(`floatingParentNodeId`),se=W.useRef(null),ce=W.useRef(H.type!==`context-menu`),le=OU(),ue=W.useRef(!0),de=OU(),fe=oe!=null,{openMethod:pe,triggerProps:me}=OY(B);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:H.type===void 0?c:void 0,openMethod:pe,rootId:O}),$q(L);let{forceUnmount:he,transitionStatus:ge}=eJ(B,L,()=>{L.set(`allowMouseEnter`,!1)},F),_e=Vq(L.context.popupRef);W.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!B){e();return}if(ge!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return _e(e,t.signal),()=>{t.abort()}},[I,B,ge,_e,L]),Q(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:z,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:z,floatingParentNodeId:N})},[S,C,z,N,ee,L]),W.useEffect(()=>{B||(se.current=null),H.type===`context-menu`&&(B?le.start(500,()=>{ce.current=!0}):(le.clear(),ce.current=!1))},[le,B,H.type]),Q(()=>{!B&&!ne&&L.set(`hoverEnabled`,!0)},[B,ne,L]);let ve=pG((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||B===e&&t.trigger===ee&&V===n)return;let i=Zq(t);if(!e&&t.trigger==null&&(t.trigger=ee??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!ue.current)return;e&&n===`trigger-focus`?(ue.current=!1,de.start(300,()=>{ue.current=!0})):(ue.current=!0,de.clear());let o=!e&&(n===`escape-key`||n==null);se.current=t.event;let s=Xq(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&eQ(n,a),s.instantType=H.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:$Z(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),ye=Iq({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:ve}),be=ye.context.events;Q(()=>{let e=({open:e,eventDetails:t})=>ve(e,t);return be.on(`setOpen`,e),()=>{be?.off(`setOpen`,e)}},[be,ve]),Q(()=>L.subscribeToParentMenu(),[L]);let xe=W.useCallback(()=>{L.setOpen(!1,LW($W))},[L]);W.useImperativeHandle(d,()=>({unmount:he,close:xe}),[he,xe]);let Se;H.type===`context-menu`&&(Se=H.context),W.useImperativeHandle(Se?.positionerRef,()=>te,[te]),W.useImperativeHandle(Se?.actionsRef,()=>({setOpen:ve}),[ve]);let Ce=Mq(ye,{enabled:!re,bubbles:{escapeKey:f&&H.type===`menu`},outsidePress(){return H.type!==`context-menu`||se.current?.type===`contextmenu`||ce.current},externalTree:fe?R:void 0}),we=RY(),Te=RJ(ye,{enabled:!re,listRef:L.context.itemDomElements,activeIndex:ie,virtual:v,nested:H.type===`menubar`||!v&&H.type!==void 0,parentOrientation:H.type===`menubar`?H.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?U:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:we===`rtl`,disabledIndices:CU,onNavigate(e,t){L.setActiveIndex(e,qZ(t),t?.nativeEvent)},openOnArrowKeyDown:H.type!==`context-menu`&&!(v&&_),externalTree:!v&&fe?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Ee=W.useCallback(e=>{L.context.typingRef.current=e},[L]),De=zJ(ye,{enabled:!re&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:ie,resetMs:500,onMatch:(e,t)=>{B&&e!==ie&&L.setActiveIndex(e,YW,t.nativeEvent)},onTyping:Ee}),Oe=pG(a),ke=W.useRef(-1),Ae=pG(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(ke.current===n&&L.context.reportedItem===t)return;ke.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=zW,L.context.highlightEvent=void 0,a&&Oe(t,RW(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Q(()=>{Ae()},[ie,Ae]);let je=W.useMemo(()=>{if(!v)return Te.reference;if(!Te.trigger)return wU;let{onFocus:e,...t}=Te.trigger;return t},[v,Te.reference,Te.trigger]);L.useSyncedValue(`inputProps`,v?Te.reference??wU:wU);let Me=W.useMemo(()=>{let e=AK(De.reference,je,Ce.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=B,e},[L,De.reference,je,Ce.reference,me,B]),Ne=W.useMemo(()=>{let e=AK(Te.trigger,Ce.trigger,me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Te.trigger,Ce.trigger,me]);mU(()=>(L.update({inactiveTriggerProps:Ne}),null)),tJ(L,{floatingRootContext:ye,activeTriggerProps:Me,inactiveTriggerProps:Ne,popupProps:W.useMemo(()=>AK(Wq,{onMouseMove(){L.set(`allowMouseEnter`,!0),H.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},De.floating,Te.floating,Ce.floating),[H.type,L,De.floating,Te.floating,Ce.floating]),itemProps:Te.item??wU});let Pe=W.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Ae}),[L,D,u,l,b,k,v,E,Ae]),Fe=typeof t==`function`?t({payload:ae}):t,Ie=(0,q.jsxs)(sZ.Provider,{value:Pe,children:[p&&(0,q.jsx)(qq,{handle:p,store:L}),Fe]});return(H.type===void 0||H.type===`context-menu`)&&(Ie=(0,q.jsx)(vq,{externalTree:R,children:Ie})),Ie});function nQ(e){let t=W.useContext(QZ);if(t===null)return(0,q.jsx)(tQ,{...e});let n=t.Root;return(0,q.jsx)(QZ.Provider,{value:null,children:(0,q.jsx)(n,{...t.options,...e})})}var rQ=5;function iQ(e,t){let n=aQ(t);return e.clientX>=n.left-rQ&&e.clientX<=n.right+rQ&&e.clientY>=n.top-rQ&&e.clientY<=n.bottom+rQ}function aQ(e){let t=e.getBoundingClientRect(),n=jB(e);if(HU)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function oQ(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=_Y(),{ref:i,index:a}=SZ(e),o=n===a,s=W.useRef(null),c=nG(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function sQ(e){let{render:t,className:n,style:r,state:i=wU,props:a=CU,refs:o=CU,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=oQ({metadata:s});return UK(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function cQ(e){if(FB(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!qB(e))return cQ(XB(e))}function lQ(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=W.useRef(!1);return W.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,bG(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:wU,[t,n,r])}var uQ=bU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=cZ(!0),h=bJ(d)??m?.store;if(!h)throw Error(Pq(85));let g=CY(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=W.useRef(null),S=fQ(),C=_Y(!0),w=hq(),T=W.useMemo(()=>w??new dq,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=Qq(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:gq(T),floatingParentNodeId:mq(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=bY({disabled:A,native:o});W.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=W.useRef(null),P=OU(),F=pG(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;$(N.current,t)||$(h.select(`positionerElement`),t)||t===N.current||t!=null&&cQ(t)===h.select(`rootId`)||iQ(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:ZW})});W.useEffect(()=>{let e=bG(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=jJ(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:qJ({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=dQ(y,h.select(`lastOpenChangeReason`)),z=kq(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),B=CJ(v,{enabled:!A&&I}),ee=lQ({open:y,enabled:O,mouseDownAction:`open`}),te=W.useMemo(()=>AK(B.reference,z.reference),[B.reference,z.reference]),ne=h.useState(`triggerProps`,D),re=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:V,handleFocusTargetFocus:H}=wY(h,x),ie={disabled:A,open:y},U=[N,t,M,E,x],ae=[te,L??wU,ne,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),bG(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},re,O?{role:`menuitem`}:{},ee,p,j],oe=UK(`button`,e,{enabled:!O,stateAttributesMapping:bW,state:ie,ref:U,props:ae});return O?(0,q.jsx)(sQ,{tag:`button`,render:n,className:r,style:i,state:ie,refs:U,props:ae,stateAttributesMapping:bW}):y?(0,q.jsxs)(W.Fragment,{children:[(0,q.jsx)(CG,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:V},`${g}-pre-focus-guard`),(0,q.jsx)(W.Fragment,{children:oe},g),(0,q.jsx)(CG,{ref:h.context.triggerFocusTargetRef,onFocus:H},`${g}-post-focus-guard`)]}):(0,q.jsx)(W.Fragment,{children:oe},g)});function dQ(e,t){let n=OU(),[r,i]=W.useState(!1);return Q(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function fQ(){let e=KZ(!0);return W.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var pQ={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function mQ(e,t){if(t===`darwin`)return e;if(pQ[e])return pQ[e];let n=e.replace(/[⌃⇧⌥⌘]/g,``);return n===e?e:[...[e.includes(`⌘`)||e.includes(`⌃`)?`Ctrl`:``,e.includes(`⇧`)?`Shift`:``,e.includes(`⌥`)?`Alt`:``].filter(Boolean),n].join(`+`)}var hQ=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function gQ(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var _Q=()=>globalThis.window?.yogurt?.os??`darwin`,vQ=e=>mQ(e,_Q()),yQ=e=>hQ(e,_Q()),bQ=()=>_Q()===`darwin`,xQ=e=>gQ(e,_Q()),SQ=Object.defineProperty,CQ=(e,t)=>{let n={};for(var r in e)SQ(n,r,{get:e[r],enumerable:!0});return t||SQ(n,Symbol.toStringTag,{value:`Module`}),n};function wQ(e){let t=W.createContext(void 0);return[({value:e,children:n})=>(0,q.jsx)(t.Provider,{value:e,children:n}),()=>{let n=W.useContext(t);if(n===void 0)throw Error(`useContext must be used within ${e??`a Provider`}`);return n}]}var TQ=ah.transition.overlay,EQ=ah.spring.dialog,DQ=ah.transition.dismiss;ah.transition.drawerOut;var OQ=ah.transition.dialogFade,kQ=ah.spring.toast;ah.transition.drawer;var AQ=ah.transition.sheet;function jQ(e,t,n,r){return{enter:lh(e??n),exit:lh(t??r??e??n)}}function MQ(e,t){return jQ(e,t,TQ)}function NQ(e,t,n){let{enter:r,exit:i}=jQ(t,n,e?AQ:EQ,DQ),a=lh(OQ);return{enter:e||t?r:{...r,opacity:a},exit:i}}var PQ=[`top`,`right`,`bottom`,`left`];function FQ(e){return typeof e==`string`&&PQ.includes(e)?e:void 0}var IQ={top:`translateY(-100%)`,right:`translateX(100%)`,bottom:`translateY(100%)`,left:`translateX(-100%)`};function LQ(e){let t=e===`top`||e===`bottom`?`rotateX`:`rotateY`;return{tipped:`perspective(500px) ${t}(${e===`bottom`||e===`left`?`20deg`:`-20deg`}) scale(${ah.scale.dialog})`,upright:`perspective(500px) ${t}(0deg) scale(1)`}}function RQ({side:e,from:t=`top`,reduce:n,enter:r,exit:i}){if(e){let t=e===`left`||e===`right`?`translateX(0%)`:`translateY(0%)`,a={opacity:0,transform:n?t:IQ[e]};return{initial:a,animate:{opacity:1,transform:t,transition:r},exit:{...a,transition:i}}}let{tipped:a,upright:o}=LQ(t),s={opacity:0,filter:ah.blur.surface,transform:n?o:a};return{initial:s,animate:{opacity:1,filter:`blur(0px)`,transform:o,transition:r},exit:{...s,transition:i}}}function zQ(){let[e,t]=W.useState(!1);return W.useLayoutEffect(()=>{let e=requestAnimationFrame(()=>t(!0));return()=>cancelAnimationFrame(e)},[]),e}function BQ(e,t,n){return n&&!t?e.exit:e.animate}function VQ(e,t){let[n,r]=W.useState(!e);return e&&n&&r(!1),{hidden:t&&!e&&n,onAnimationComplete:()=>{e||r(!0)}}}var HQ={backgroundColor:`transparent`,backdropFilter:`none`,opacity:`0`};function UQ(e){let t=getComputedStyle(e);return{backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,opacity:t.opacity,hasImage:t.backgroundImage!==`none`}}function WQ(e,t,n){let r=t=>({backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,...e.hasImage?{opacity:t.opacity}:{}});return[r(t),r(n)]}function GQ(e){let{visible:t}=e,n=W.useRef(null),r=W.useRef(e);W.useLayoutEffect(()=>{r.current=e});let i=W.useRef(null),a=W.useRef(!1);return W.useLayoutEffect(()=>{let{animated:e=!0,enter:o,exit:s,onFadedOut:c}=r.current,l=n.current,u=!a.current;if(a.current=!0,u&&!t)return;if(!l||!e||typeof l.animate!=`function`){t||c?.();return}let d=i.current,f=d?UQ(l):null;d?.cancel();let p=UQ(l),{duration:m,easing:h}=mh(t?o:s),g=l.animate(WQ(p,f??(t?HQ:p),t?p:HQ),{duration:m,easing:h,fill:t?`backwards`:`forwards`});i.current=g,g.finished.then(()=>{i.current===g&&(t?i.current=null:r.current.onFadedOut?.())}).catch(()=>{})},[t]),W.useCallback(e=>{n.current=e},[])}var KQ=new WeakMap;function qQ(e){if(typeof e==`string`)return Ym[e];let t=KQ.get(e);return t||(t=Ym.create(e),KQ.set(e,t)),t}function JQ(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function YQ(e,t){let n=e.props;return W.createElement(qQ(e.type),{...n,...t,ref:JQ(n.ref,t.ref),style:{...n.style,...t.style}})}function XQ(e,t){return typeof e==`function`?((n,r)=>YQ(e(n,r),t)):e?YQ(e,t):W.createElement(qQ(`div`),t)}var ZQ=W.createContext(void 0);function QQ(e){let t=W.useContext(ZQ);if(!e&&t===void 0)throw Error(Pq(27));return t}var $Q=W.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=QQ(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return UK(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:SW,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),e$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=QQ(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=bY({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,LW(GW,e.nativeEvent))}return UK(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),t$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=QQ(),c=CY(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),UK(`p`,e,{ref:t,props:[{id:c},o]})}),n$=W.createContext(void 0);function r$(){let e=W.useContext(n$);if(e===void 0)throw Error(Pq(26));return e}var i$=`--nested-dialogs`,a$=`data-nested-dialog-open`,o$={...xW,...cW,nestedDialogOpen(e){return e?{[a$]:``}:null}},s$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=QQ(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);r$(),Hq({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?Gq(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=UK(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Wq,hidden:!m,onKeyDown(e){yX.has(e.key)&&e.stopPropagation()},style:{[i$]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:o$});return(0,q.jsx)(Oq,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),c$=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=QQ(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,q.jsx)(n$.Provider,{value:n,children:(0,q.jsxs)(lq,{ref:t,...r,children:[a&&o===!0&&(0,q.jsx)(tX,{ref:i.context.internalBackdropRef,inert:NY(!s)}),e.children]})}):null});function l$({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=W.useState(0),[d,f]=W.useState(0),p=l===0,m=Mq(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=ZU(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||$(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return hX(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Q(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Q(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),tJ(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var u$={...yJ,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},d$=class extends uJ{constructor(e,t,n){let r=new rJ,i=p$(e,r,t,n);super(i,m$(r),u$)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(Xq(this.state,e,t.trigger)))}};function f$(){let e=new rJ;return new sY(Object.freeze(p$(void 0,e)),Object.freeze(m$(e)),u$)}function p$(e,t,n,r=!1){return{...pJ(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function m$(e){return{popupRef:W.createRef(),backdropRef:W.createRef(),internalBackdropRef:W.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function h$(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=QQ(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=Kq((e,t)=>new d$({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);nJ(b,x),$q(b);let{forceUnmount:w}=eJ(x,b);W.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,LW($W))}),[w,b]);let T=x||S||u!=null;return(0,q.jsxs)(ZQ.Provider,{value:b,children:[u&&(0,q.jsx)(qq,{handle:u,store:b}),T&&(0,q.jsx)(l$,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var g$=yU(function(e){return h$(`dialog`,e)}),_$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=r$(),c=QQ(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`),m=c.useStateSetter(`viewportElement`);return UK(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:o$,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),v$=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=QQ(),c=CY(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),UK(`h2`,e,{ref:t,props:[{id:c},o]})}),y$=bU(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=QQ(!0),f=bJ(l)??d;if(!f)throw Error(Pq(79));let p=CY(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=W.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=Qq(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=bY({disabled:a,native:o}),S=kq(m),C=DY(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return UK(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[ZK]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:yW})}),b$=class extends Fq{constructor(){super(f$(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,LW($W)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function x$(){return new b$}var[S$,C$]=wQ(`Dialog.Root`),w$=W.createContext({keepMounted:!1});function T$(e){return function({defaultOpen:t,...n}){let r=n.open!==void 0,[i,a]=W.useState(t??!1),o=r?!!n.open:i,s=(e,t)=>{n.onOpenChange?.(e,t),t?.isCanceled||r||a(e)};return(0,q.jsx)(S$,{value:{open:o},children:(0,q.jsx)(e,{...n,open:o,onOpenChange:s})})}}function E$({keepMounted:e,children:t,...n}){let{open:r}=C$();return(0,q.jsx)(Zf,{children:(r||e)&&(0,q.jsx)(c$,{...n,keepMounted:!0,children:(0,q.jsx)(w$,{value:{keepMounted:!!e},children:(0,q.jsx)(_h,{children:t})})},`portal`)})}function D$(e){let{open:t}=C$(),{keepMounted:n}=W.use(w$),r=qf(),{hidden:i,onAnimationComplete:a}=VQ(t,n),o=!r||n&&!t&&!i,s=zQ();return{initial:e.initial,animate:s?BQ(e,t,n):e.initial,exit:e.exit,onAnimationComplete:a,...o?{hidden:!1}:{},...t?{}:{style:{pointerEvents:`none`}}}}function O$({transition:e,exitTransition:t,render:n,...r}){let{open:i}=C$(),{keepMounted:a}=W.use(w$),[o,s]=Kf(),{hidden:c,onAnimationComplete:l}=VQ(i,a),u=GQ({visible:i&&o,...MQ(e,t),onFadedOut:()=>{l(),s?.()}}),d=!o||a&&!i&&!c;return(0,q.jsx)($Q,{...r,render:XQ(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function k$({from:e,transition:t,exitTransition:n,render:r,...i}){let a=xh(),o=FQ(i[`data-side`]),{enter:s,exit:c}=NQ(o,t,n),l=D$(RQ({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,q.jsx)(s$,{...i,render:XQ(r,l)})}var A$=CQ({Backdrop:()=>P$,Close:()=>L$,Description:()=>z$,Handle:()=>V$,Popup:()=>F$,Portal:()=>N$,Root:()=>M$,Title:()=>R$,Trigger:()=>I$,Viewport:()=>B$,createHandle:()=>H$}),j$=T$(g$);function M$(e){return(0,q.jsx)(j$,{...e})}function N$(e){return(0,q.jsx)(E$,{...e})}function P$(e){return(0,q.jsx)(O$,{...e})}function F$(e){return(0,q.jsx)(k$,{...e})}var I$=y$,L$=e$,R$=v$,z$=t$,B$=_$,V$=b$,H$=x$,U$=(0,W.forwardRef)(function({className:e,...t},n){return(0,q.jsx)(s$,{...t,ref:n,className:t=>`${typeof e==`function`?e(t):e??``} dialog-motion`})}),W$=A$.Close;function G$({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,container:s}){let[c,l]=(0,W.useState)(!0),u=kf(),d=(0,W.useRef)(null),f=(0,W.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),p=(0,W.useRef)(r);return p.current=r,(0,W.useEffect)(()=>{if(c)return;let e=setTimeout(()=>p.current(),u?Ef.micro:Ef.base);return()=>clearTimeout(e)},[c,u]),(0,q.jsx)(A$.Root,{open:c,onOpenChange:(e,t)=>{!e&&i?t.cancel():l(e)},children:(0,q.jsxs)(A$.Portal,{keepMounted:!0,container:s,children:[(0,q.jsx)(A$.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{ease:Ef.out,duration:(u?Ef.micro:Ef.surface)/1e3},exitTransition:{ease:Ef.out,duration:(u?Ef.micro:Ef.base)/1e3}}),(0,q.jsxs)(U$,{ref:d,"data-testid":o,role:a,"aria-modal":`true`,"aria-busy":i||void 0,className:`app-modal no-drag`,finalFocus:f,initialFocus:()=>{let e=d.current?.querySelector(`[data-dialog-focus], [data-dialog-cancel]`);return e instanceof HTMLInputElement&&e.select(),e??d.current},children:[(0,q.jsxs)(`div`,{className:`modal-copy`,children:[(0,q.jsx)(A$.Title,{children:e}),t&&(0,q.jsx)(A$.Description,{children:t})]}),n]})]})})}function K$({id:e,title:t,onNew:n,onDeleted:r,onEdit:i,className:a=``}){let o=(0,W.useRef)(null),s=(0,W.useRef)(null),c=(0,W.useCallback)(e=>{o.current=e,s.current=e?.closest(`dialog`)??null},[]),[l,u]=(0,W.useState)(!1),[d,f]=(0,W.useState)(),p=e=>{o.current?.focus(),f(e),i?.(e)};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(nQ,{modal:!1,onOpenChange:(e,t)=>{e&&u(t.event instanceof MouseEvent&&t.event.detail>0)},children:[(0,q.jsx)(uQ,{ref:c,"data-testid":`chat-menu`,className:`chat-icon ask-menu-trigger ${a}`,"aria-label":G(`More`),title:G(`More`),children:(0,q.jsx)(Hg,{size:17,"aria-hidden":`true`})}),(0,q.jsx)(IZ,{container:s,children:(0,q.jsx)(WZ,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,q.jsxs)(NZ,{"data-pointer":l,className:`menu-entry ask-actions-menu`,"aria-label":G(`More`),finalFocus:!d&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,q.jsxs)(wZ,{"data-testid":`chat-rename`,onClick:()=>p(`rename`),children:[(0,q.jsx)(H_,{size:14,"aria-hidden":`true`}),G(`Rename`)]}),n&&(0,q.jsxs)(wZ,{"data-testid":`chat-new`,onClick:n,children:[(0,q.jsx)(K_,{size:14,"aria-hidden":`true`}),G(`New chat`)]}),(0,q.jsxs)(wZ,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>p(`delete`),children:[(0,q.jsx)(cv,{size:14,"aria-hidden":`true`}),G(`Delete`)]})]})})})]}),d&&!i&&(0,q.jsx)(q$,{id:e,title:t,kind:d,container:s.current??void 0,onClose:()=>{f(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function q$({id:e,title:t,kind:n,container:r,onClose:i,onDeleted:a}){let[o,s]=(0,W.useState)(t),[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(!1),f=async()=>{if(!(c||n===`rename`&&!o.trim())){l(!0),d(!1);try{n===`delete`?await window.yogurt.conversations.delete(e):await window.yogurt.conversations.rename(e,o.trim()),i(),n===`delete`&&a()}catch{d(!0)}finally{l(!1)}}};return(0,q.jsx)(G$,{container:r,busy:c,testId:n===`delete`?`chat-delete-confirm`:`chat-rename-dialog`,role:n===`delete`?`alertdialog`:`dialog`,onCancel:i,title:G(n===`delete`?`Delete “{title}”?`:`Rename “{title}”`,{title:t||G(`New chat`)}),description:n===`delete`?xQ({mac:G(`This conversation is removed from this Mac for good. Your meetings stay as they are.`),other:G(`This conversation is removed from this computer for good. Your meetings stay as they are.`)}):void 0,children:(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,q.jsx)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,q.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`chat-rename-input`,"aria-label":G(`Conversation name`),value:o,maxLength:200,className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`,disabled:c,onChange:e=>s(e.target.value)})}),u&&(0,q.jsx)(`p`,{className:`chat-error`,role:`alert`,children:G(`Couldn't save your changes`)}),(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{type:`submit`,"data-testid":n===`delete`?`chat-delete-yes`:`chat-rename-save`,disabled:c||n===`rename`&&!o.trim(),className:`modal-button ${n===`delete`?`danger`:`primary`}`,children:G(n===`delete`?`Delete`:`Save`)}),(0,q.jsx)(W$,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`modal-button`,disabled:c,children:G(`Cancel`)})]})]})})}var J$=e=>e.title.trim()||(e.kind===`meeting`?G(`Untitled meeting`):G(`Folder`));function Y$({chips:e,disabled:t,onRemove:n}){return e.length?(0,q.jsx)(`div`,{className:`ask-context-strip`,"data-testid":`ask-composer-context`,children:e.map(e=>(0,q.jsxs)(`div`,{className:`ask-context-row`,title:J$(e),children:[e.kind===`meeting`?(0,q.jsx)(Jg,{size:14,"aria-hidden":`true`}):(0,q.jsx)(e_,{size:14,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:J$(e)}),(0,q.jsx)(`button`,{type:`button`,className:`chat-icon`,disabled:t,"aria-label":`${G(`Remove`)} ${J$(e)}`,title:G(`Remove`),onClick:()=>n(e),children:(0,q.jsx)(vv,{size:12,"aria-hidden":`true`})})]},`${e.kind}:${e.id}`))}):null}function X$(e,t,n,r){let i,a=e.scrollTop,o=()=>{i?.stop(),i=void 0},s=()=>r(e.scrollHeight-e.scrollTop-e.clientHeight>=24),c=()=>{!document.hidden&&e.clientHeight&&(n.current&&(i?.active?i.to(Math.max(0,e.scrollHeight-e.clientHeight)):(e.scrollTop=e.scrollHeight,a=e.scrollTop)),s())},l=()=>{let t=e.scrollTop<a;if(a=e.scrollTop,i?.active)return;let r=e.scrollHeight-e.scrollTop-e.clientHeight<24;(t||r)&&(n.current=r),s()},u=()=>{o()},d=e=>{o(),e.deltaY<0&&(n.current=!1,s())},f=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&o()},p=()=>{document.hidden?o():c()},m=new ResizeObserver(c);m.observe(t),m.observe(e),e.addEventListener(`scroll`,l,{passive:!0}),e.addEventListener(`wheel`,d,{passive:!0});for(let t of[`touchstart`,`pointerdown`])e.addEventListener(t,u,{passive:!0});return e.addEventListener(`keydown`,f),document.addEventListener(`visibilitychange`,p),c(),{latest(){n.current=!0,r(!1),!document.hidden&&e.clientHeight&&(o(),i=Af(e,()=>{}),i.to(Math.max(0,e.scrollHeight-e.clientHeight)))},dispose(){o(),m.disconnect(),e.removeEventListener(`scroll`,l),e.removeEventListener(`wheel`,d);for(let t of[`touchstart`,`pointerdown`])e.removeEventListener(t,u);e.removeEventListener(`keydown`,f),document.removeEventListener(`visibilitychange`,p)}}}function Z$(e,t,n,r=!0){let i=(0,W.useRef)(r),a=(0,W.useRef)(null),[o,s]=(0,W.useState)(!1);return(0,W.useLayoutEffect)(()=>{let r=e.current,o=t.current;if(!n||!r||!o)return;let c=X$(r,o,i,s);return a.current=c,()=>{c.dispose(),a.current=null}},[n,e,t]),{behind:n&&o,resume:()=>{i.current=!0,s(!1)},latest:()=>a.current?.latest()}}function Q$({show:e,options:t,className:n}){return(0,q.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,q.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function $$({text:e,widest:t}){let n=(0,W.useRef)(!1);return(0,W.useEffect)(()=>{n.current=!0},[]),(0,q.jsx)(`span`,{className:`swap-text`,"data-widest":t,children:(0,q.jsx)(`span`,{className:n.current?`swap-in`:void 0,children:e},e)})}var e1=new Map,t1=(e,t)=>e.length===1&&e[0].kind===`meeting`?t?[G(`What did I just miss?`),G(`Sum up the meeting so far`),G(`What should I ask next?`)]:[G(`What was decided?`),G(`What are my next steps?`),G(`What questions are still open?`)]:e.length?[G(`What was decided?`),G(`What are my next steps?`),G(`What questions are still open?`)]:[G(`What are my next steps this week?`),G(`What did we decide last week?`),G(`Catch me up on yesterday`)];function n1({id:e,pendingDraftKey:t,initial:n,loadError:r=!1,home:i=!1,panel:a=!1,recording:o=!1,onSelect:s,onSource:c,onDeleted:l,onClose:u,onExpand:d}){let[f,p]=(0,W.useState)(n),[m,h]=(0,W.useState)((t?e1.get(t):void 0)??e1.get(e)??n?.draft??``),g=(0,W.useRef)(!1),[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(!1),x=(0,W.useRef)(void 0),[S,C]=(0,W.useState)(!1),[w,T]=(0,W.useState)(),[E,D]=(0,W.useState)(),O=E?.items??[],[k,A]=(0,W.useState)(0),j=(0,W.useRef)(null),M=(0,W.useRef)(!1),N=`conversation/${e}`,P=Rv(N,!!f),F=(0,W.useRef)(null),I=Z$(P,F,!!f,Iv(N)===void 0),L=a?`chat`:`chat-page`;(0,W.useEffect)(()=>{if(!e)return;let r=!0,i=0;v(!1);let a=t?e1.get(t):void 0;a!==void 0&&(g.current=!0,e1.set(e,a),e1.delete(t),window.yogurt.conversations.draft(e,a).then(()=>{e1.get(e)===a&&e1.delete(e)}).catch(()=>{r&&v(!0)}));let o=window.yogurt.conversations.onChange(t=>{t.id===e&&(i++,p(t))}),s=(t=!1)=>{let a=++i;window.yogurt.conversations.get(e).then(o=>{if(r){if(!o)throw Error(`Conversation not found`);a===i&&p(o),t&&!n&&!g.current&&h(e1.get(e)??o.draft)}}).catch(()=>{r&&a===i&&(v(!0),x.current!==void 0&&(x.current=void 0,b(!1)))})},c=window.yogurt.meetings.onChange(()=>s()),l=window.yogurt.folders.onChange(()=>s());return s(!0),()=>{r=!1,o(),c(),l()}},[e]),(0,W.useEffect)(()=>{let e=!0;if(!w)D(void 0),A(0);else return window.yogurt.conversations.targets(w.query).then(t=>{e&&(D({query:w.query,items:t.filter(e=>![...f?.chips??[],...f?.draftChips??[]].some(t=>t.kind===e.kind&&t.id===e.id))}),A(0))}).catch(()=>{e&&v(!0)}),()=>{e=!1}},[w?.query,!!w,f?.chips,f?.draftChips]);let R=f?ZH(f.chips,f.draftChips):[],z=R.length===1&&R[0].kind===`meeting`?R[0].id:void 0,B=()=>{z&&window.yogurt.conversations.warm(e)};(0,W.useEffect)(B,[e,z]),(0,W.useEffect)(()=>{document.getElementById(`${L}-context-${k}`)?.scrollIntoView({block:`nearest`})},[k,O]),(0,W.useLayoutEffect)(()=>{!S&&M.current&&(M.current=!1,j.current?.focus())},[S,f]);let ee=f?.turns??[],te=ee.at(-1),ne=te?.status===`waiting`||te?.status===`answering`,re=!f||y||S||ne,V=(f?f.firstChips===null:i||a)&&!ee.length,H=i||!a&&V,ie=f?ZH(f.chips,f.draftChips):[],U=n=>{g.current=!0,h(n),(e||t)&&e1.set(e||t,n),e&&window.yogurt.conversations.draft(e,n).then(()=>{e1.get(e)===n&&e1.delete(e)}).catch(()=>v(!0))},ae=(e,t)=>{T($H(e,t))},oe=async t=>{C(!0),v(!1);try{await window.yogurt.conversations.context(e,t)}catch{throw v(!0),Error(`Context was not saved`)}finally{C(!1)}},se=e=>{if(!w||re||!f)return;let t=w;oe([...f.draftChips,e]).then(()=>{let e=m.slice(0,t.start)+m.slice(t.end);U(e),T(void 0),requestAnimationFrame(()=>{j.current?.focus(),j.current?.setSelectionRange(t.start,t.start)})}).catch(()=>{})},ce=async t=>{if(!re){M.current=!0,C(!0),v(!1);try{await window.yogurt.conversations.removeContext(e,t)}catch{M.current=!1,v(!0)}finally{C(!1)}}},le=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&j.current?.focus({preventScroll:!0})},ue=t=>{window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);h(``),e1.delete(e),i&&s(t)}).catch(()=>{U(t),v(!0)}).finally(()=>b(!1))},de=e=>{!e.trim()||y||S||ne||r||!f&&(!a||_)||(le(),I.resume(),b(!0),v(!1),T(void 0),f?ue(e):x.current=e)};(0,W.useEffect)(()=>{if(r){x.current=void 0,b(!1);return}if(!f||x.current===void 0)return;let e=x.current;x.current=void 0,ue(e)},[f,r]);let fe=e=>{e.nativeEvent.isComposing||(w&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)?(e.preventDefault(),e.stopPropagation(),e.key===`Escape`?T(void 0):e.key===`Enter`?O[k]&&se(O[k]):A(t=>(t+(e.key===`ArrowDown`?1:-1)+O.length)%(O.length||1))):e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),de(m)))},pe=()=>{f&&!S&&window.yogurt.conversations.current(ZH(f.chips,f.draftChips),!0).then(s).catch(()=>v(!0))},me=!a&&!!m,he=V&&(H||a)&&(!a||!m)&&(0,q.jsx)(`div`,{"data-testid":a?`chat-suggestions`:`chat-starters`,"aria-hidden":me||void 0,inert:me,className:`ask-starters${a?``:` ask-home-starters`}`,children:t1(f?ZH(f.chips,f.draftChips):[],o).map(e=>(0,q.jsx)(`button`,{type:`button`,title:e,"data-testid":a?`chat-suggestion`:`chat-starter`,disabled:re||me,onClick:()=>de(e),children:e},e))});return(0,q.jsxs)(`div`,{"data-testid":H?`chat-empty`:void 0,"aria-busy":te?.status===`answering`,className:`ask-conversation${H?` ask-landing`:``}`,children:[H?(0,q.jsx)(`h1`,{className:`ask-home-title`,children:G(`Ask about your meetings`)}):(0,q.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,q.jsx)(`h2`,{id:a?`meeting-chat-title`:void 0,title:[f?.title||G(`New chat`),...f?.chips.map(J$)??[]].join(`
+`),children:f?.title||G(`New chat`)}),(0,q.jsxs)(`div`,{className:`ask-header-actions`,children:[f&&(0,q.jsx)(K$,{id:e,title:f.title,onNew:pe,onDeleted:l}),d&&(0,q.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`chat-icon`,onClick:d,"aria-label":G(`Open in Ask`),title:G(`Open in Ask`),children:(0,q.jsx)(A_,{size:15,"aria-hidden":`true`})}),u&&(0,q.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`chat-icon`,onClick:u,"aria-label":G(`Close`),title:G(`Close`),children:(0,q.jsx)(vv,{size:16,"aria-hidden":`true`})})]})]}),(0,q.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,q.jsx)(Gh,{children:(0,q.jsx)(`div`,{className:`ask-thread${a?` chat-history`:``}${V?` ask-thread-empty`:``}`,ref:P,children:(0,q.jsx)(`div`,{ref:F,className:`ask-thread-content`,children:(0,q.jsxs)(ZX,{pending:!f&&!_,skeleton:(0,q.jsx)(bv,{layout:`chat`,testId:`chat-thread-loading`}),children:[!H&&ee.map(e=>(0,q.jsx)(r1,{turn:e,chat:f,panel:a,onSource:c,onRetry:()=>de(e.question)},e.id)),a&&he]})})})}),I.behind&&(0,q.jsx)(`button`,{className:`chat-latest`,"data-testid":`chat-latest`,"aria-label":G(`Back to latest`),onClick:I.latest,children:(0,q.jsx)(og,{size:15})})]}),(0,q.jsxs)(`div`,{className:`ask-composer${a?` chat-composer`:``}`,children:[_&&(0,q.jsx)(`p`,{"data-testid":a?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:G(`Couldn't save your changes`)}),(0,q.jsx)(ZX,{pending:!a&&!f&&!_,onReady:()=>{f&&j.current?.focus({preventScroll:!0})},testId:H?`chat-loading`:void 0,children:(0,q.jsxs)(`form`,{className:`ask-box`,"data-busy":re||void 0,"data-testid":`${L}-box`,onSubmit:e=>{e.preventDefault(),de(m)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(void 0)},children:[(0,q.jsx)(`span`,{className:`ask-border`,"aria-hidden":`true`}),(0,q.jsx)(Y$,{chips:ie,disabled:re,onRemove:ce}),(0,q.jsxs)(`div`,{className:`ask-field`,children:[(0,q.jsx)(`textarea`,{autoFocus:a,ref:j,id:a?`meeting-question`:`library-question`,"data-testid":`${L}-input`,rows:1,maxLength:4e3,placeholder:G(a?`Ask anything`:`Ask about your meetings`),"aria-label":G(a?`Ask anything`:`Ask about your meetings`),value:m,disabled:!a&&!f,readOnly:y||S,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!w,"aria-controls":w?`${L}-contexts`:void 0,"aria-activedescendant":w&&O[k]?`${L}-context-${k}`:void 0,onChange:e=>{U(e.target.value),ae(e.target.value,e.target.selectionStart)},onClick:e=>ae(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:B,onKeyDown:fe}),(0,q.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,q.jsx)(`button`,{type:`button`,className:`ask-toolbar-button`,disabled:re,"aria-label":G(`Add a meeting or folder`),title:G(`Add a meeting or folder`),onClick:()=>{let e=j.current?.selectionStart??m.length,t=e&&!/\s/.test(m[e-1])?` @`:`@`,n=m.slice(0,e)+t+m.slice(e);U(n),ae(n,e+t.length),j.current?.focus(),requestAnimationFrame(()=>j.current?.setSelectionRange(e+t.length,e+t.length))},children:(0,q.jsx)(fg,{size:16,"aria-hidden":`true`})}),ne?(0,q.jsx)(`button`,{type:`button`,"data-testid":`${L}-stop`,className:`ask-toolbar-button ask-stop`,"aria-label":f?.waitsForModel?G(`Cancel question`):G(`Stop`),title:f?.waitsForModel?G(`Cancel question`):G(`Stop`),onClick:()=>{le(),window.yogurt.conversations.stop(e)},children:(0,q.jsx)(ev,{size:10,fill:`currentColor`})}):(0,q.jsxs)(`button`,{type:`submit`,"data-testid":`${L}-send`,className:`ask-toolbar-button ask-send`,disabled:re||!m.trim(),"aria-label":G(`Ask`),children:[(0,q.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,q.jsx)(ug,{size:16})]})]})]}),w&&(0,q.jsxs)(`div`,{className:`ask-picker`,id:`${L}-contexts`,role:`listbox`,"aria-label":G(`Add context`),children:[[`meeting`,`folder`].map(e=>O.some(t=>t.kind===e)&&(0,q.jsxs)(`div`,{role:`group`,"aria-label":G(e===`meeting`?`Meetings`:`Folders`),children:[(0,q.jsx)(`h3`,{children:G(e===`meeting`?`Meetings`:`Folders`)}),O.map((t,n)=>t.kind===e&&(0,q.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":k===n,id:`${L}-context-${n}`,onMouseDown:e=>e.preventDefault(),onClick:()=>se(t),children:[e===`meeting`?(0,q.jsx)(Jg,{size:14}):(0,q.jsx)(e_,{size:14}),(0,q.jsx)(`span`,{children:J$(t)}),t.startedAt&&(0,q.jsx)(`small`,{children:aU(t.startedAt)})]},`${t.kind}:${t.id}`))]},e)),!E&&!_&&(0,q.jsx)(`p`,{role:`status`,children:G(`Loading…`)}),E&&!O.length&&(0,q.jsx)(`p`,{children:G(`Nothing found for “{query}”.`,{query:E.query})})]})]})})]}),!a&&he,(0,q.jsx)(`p`,{"data-testid":`${L}-announce`,className:`sr-only`,"aria-live":`polite`,children:te?.status===`done`?te.answer:``})]})}function r1({turn:e,chat:t,panel:n,onSource:r,onRetry:i}){let a=e.status===`answering`,o=fU(e.answer,a),[s,c]=(0,W.useState)(!1),[l,u]=(0,W.useState)(!1),d=n?`chat`:`chat-page`;return(0,W.useEffect)(()=>{if(!s)return;let e=setTimeout(()=>c(!1),1800);return()=>clearTimeout(e)},[s]),(0,q.jsxs)(`div`,{"data-testid":`${d}-turn`,"data-status":e.status,className:`ask-turn`,children:[(0,q.jsx)(`p`,{className:`ask-question`,"data-testid":`${d}-question`,children:e.question}),(e.status===`waiting`||a&&!o)&&(t.waitsForModel&&e.status===`waiting`?(0,q.jsx)(nZ,{downloading:e=>(0,q.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:G(`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,{percent:e})}),children:(0,q.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:G(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,q.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?G(`Yogurt will answer once the meeting ends.`):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(iZ,{}),(0,q.jsx)(i1,{step:e.status===`waiting`?void 0:e.step})]})})),o&&(0,q.jsx)(`div`,{"data-testid":`${d}-answer`,dir:`auto`,"data-streaming":a||void 0,className:`note-prose chat-answer${a?` stream-caret`:``}`,children:(0,q.jsx)(FX,{md:o,live:a,sources:e.sources,onSource:r})}),o&&!a&&(0,q.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,q.jsxs)(`button`,{className:`chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":G(s?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{c(!0),u(!1)}).catch(()=>u(!0))},children:[(0,q.jsx)(Q$,{show:s?`done`:`copy`,options:{copy:(0,q.jsx)(JX,{size:13}),done:(0,q.jsx)(Eg,{size:13})}}),(0,q.jsx)($$,{text:G(s?`Copied`:`Copy`),widest:G(`Copied`)})]}),(0,q.jsx)(`span`,{role:`status`,className:l?`text-danger`:`sr-only`,children:l?G(`Couldn't copy. Try again.`):s?G(`Copied`):``})]}),e.status===`stopped`&&(0,q.jsx)(`p`,{className:`text-xs text-muted`,children:G(o?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,q.jsxs)(`p`,{role:`alert`,children:[G(`Yogurt couldn't answer that.`),` `,(0,q.jsx)(`button`,{className:`ghost-btn`,onClick:i,children:G(`Try again`)})]})]})}function i1({step:e}){let[t,n]=(0,W.useState)(0),r=JSON.stringify(e??null);(0,W.useEffect)(()=>{n(0);let e=setInterval(()=>n(e=>e+1),eU);return()=>clearInterval(e)},[r]);let i=tU(e,t);return(0,q.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var a1=`M21.528 8.111Q25.000 7.278 30.000 7.278L30.000 7.278Q35.000 7.278 45.833 7.833L56.667 8.389L56.667 8.389L56.111 20.056Q55.556 31.722 54.861 34.222L54.861 34.222Q54.167 36.722 53.472 37.556L53.472 37.556Q52.778 38.389 51.528 39.083L51.528 39.083Q50.278 39.778 44.028 40.889L44.028 40.889Q37.778 42.000 36.111 43.250L36.111 43.250Q34.444 44.500 33.889 45.750L33.889 45.750Q33.333 47.000 33.472 48.806L33.472 48.806Q33.611 50.611 34.583 52.417L34.583 52.417Q35.556 54.222 37.361 55.889L37.361 55.889Q39.167 57.556 40.694 58.250L42.222 58.944L42.222 58.944L42.361 59.778Q42.500 60.611 42.500 62.278L42.500 63.944L42.500 63.944L41.250 63.944Q40.000 63.944 35.139 62.972L35.139 62.972Q30.278 62.000 25.556 60.056L25.556 60.056Q20.833 58.111 18.194 56.306L18.194 56.306Q15.556 54.500 13.611 52.556L13.611 52.556Q11.667 50.611 10.278 48.667L10.278 48.667Q8.889 46.722 7.500 43.389L7.500 43.389Q6.111 40.056 5.556 36.861L5.556 36.861Q5.000 33.667 5.000 31.167L5.000 31.167Q5.000 28.667 5.417 26.028L5.417 26.028Q5.833 23.389 6.944 20.611L6.944 20.611Q8.056 17.833 9.444 15.889L9.444 15.889Q10.833 13.944 12.639 12.417L12.639 12.417Q14.444 10.889 16.250 9.917L16.250 9.917Q18.056 8.944 21.528 8.111L21.528 8.111Z M66.250 33.944Q68.611 33.667 72.639 33.667L72.639 33.667Q76.667 33.667 79.028 34.083L79.028 34.083Q81.389 34.500 83.889 35.611L83.889 35.611Q86.389 36.722 88.611 38.667L88.611 38.667Q90.833 40.611 92.083 42.694L92.083 42.694Q93.333 44.778 93.889 46.444L93.889 46.444Q94.444 48.111 94.861 51.306L94.861 51.306Q95.278 54.500 95.139 57.972L95.139 57.972Q95.000 61.444 94.444 64.222L94.444 64.222Q93.889 67.000 92.083 71.306L92.083 71.306Q90.278 75.611 89.028 77.278L89.028 77.278Q87.778 78.944 85.694 81.028L85.694 81.028Q83.611 83.111 80.694 85.194L80.694 85.194Q77.778 87.278 75.556 88.389L75.556 88.389Q73.333 89.500 71.111 90.333L71.111 90.333Q68.889 91.167 65.833 91.861L65.833 91.861Q62.778 92.556 59.028 92.833L55.278 93.111L55.278 93.111L55.278 89.222L55.278 89.222L56.944 88.528Q58.611 87.833 60.972 85.889L60.972 85.889Q63.333 83.944 64.444 81.722L64.444 81.722Q65.556 79.500 65.417 77.417L65.417 77.417Q65.278 75.333 64.722 74.639L64.722 74.639Q64.167 73.944 63.194 73.528L63.194 73.528Q62.222 73.111 56.667 72.972L56.667 72.972Q51.111 72.833 50.139 72.556L50.139 72.556Q49.167 72.278 48.472 71.583L48.472 71.583Q47.778 70.889 47.361 66.861L47.361 66.861Q46.944 62.833 46.944 57.833L46.944 57.833Q46.944 52.833 47.222 51.167L47.222 51.167Q47.500 49.500 48.611 46.722L48.611 46.722Q49.722 43.944 51.944 41.306L51.944 41.306Q54.167 38.667 56.667 37.139L56.667 37.139Q59.167 35.611 61.528 34.917L61.528 34.917Q63.889 34.222 66.250 33.944L66.250 33.944Z`,o1=`M265 -179Q225 -179 184.0 -171.0Q143 -163 107.5 -146.5Q72 -130 48 -104L91 0Q120 -33 166.0 -50.0Q212 -67 259 -67Q314 -67 350.0 -44.5Q386 -22 405.0 25.0Q424 72 426 142L433 237H412Q402 169 379.0 126.5Q356 84 321.5 64.5Q287 45 241 45Q184 45 145.0 74.0Q106 103 86.5 160.0Q67 217 67 301V523H194V330Q194 236 217.0 193.5Q240 151 287 151Q312 151 333.0 164.5Q354 178 368.5 203.5Q383 229 391.5 267.0Q400 305 401 354V523H528V137Q528 74 517.5 23.5Q507 -27 486.0 -64.5Q465 -102 433.5 -128.0Q402 -154 360.0 -166.5Q318 -179 265 -179ZM875 -13Q798 -13 739.0 18.5Q680 50 646.5 111.5Q613 173 613 263Q613 355 647.5 415.5Q682 476 741.0 506.0Q800 536 874 536Q951 536 1010.0 505.0Q1069 474 1103.0 412.5Q1137 351 1137 260Q1137 168 1103.0 107.0Q1069 46 1009.5 16.5Q950 -13 875 -13ZM880 83Q922 83 951.0 102.5Q980 122 995.5 161.0Q1011 200 1011 254Q1011 311 994.5 351.5Q978 392 947.5 414.0Q917 436 871 436Q831 436 801.0 416.5Q771 397 755.5 359.0Q740 321 740 265Q740 177 777.5 130.0Q815 83 880 83ZM1428 -180Q1343 -180 1288.5 -167.0Q1234 -154 1208.0 -128.0Q1182 -102 1182 -64Q1182 -18 1218.5 11.5Q1255 41 1327 48V68Q1273 67 1245.0 79.5Q1217 92 1217 120Q1217 147 1244.5 168.0Q1272 189 1336 203V223Q1275 226 1241.0 261.5Q1207 297 1207 354Q1207 405 1235.0 444.0Q1263 483 1317.5 505.5Q1372 528 1450 528H1709V428L1545 452V430Q1607 420 1636.5 395.0Q1666 370 1666 327Q1666 286 1640.0 254.5Q1614 223 1564.5 205.5Q1515 188 1445 188Q1432 188 1417.0 189.0Q1402 190 1370 194Q1349 179 1336.0 167.5Q1323 156 1323 146Q1323 138 1333.0 132.5Q1343 127 1359.0 125.0Q1375 123 1390 123H1529Q1549 123 1580.5 120.0Q1612 117 1643.5 104.0Q1675 91 1696.5 63.0Q1718 35 1718 -16Q1718 -73 1685.5 -109.5Q1653 -146 1588.5 -163.0Q1524 -180 1428 -180ZM1439 -78Q1501 -78 1538.0 -71.0Q1575 -64 1591.0 -48.5Q1607 -33 1607 -9Q1607 13 1597.0 25.5Q1587 38 1571.5 43.0Q1556 48 1540.0 49.0Q1524 50 1513 50H1390Q1342 43 1322.5 23.0Q1303 3 1303 -21Q1303 -45 1319.0 -57.5Q1335 -70 1365.5 -74.0Q1396 -78 1439 -78ZM1442 257Q1494 257 1521.0 281.5Q1548 306 1548 346Q1548 389 1520.5 416.5Q1493 444 1441 444Q1389 444 1360.5 417.0Q1332 390 1332 348Q1332 321 1344.5 300.5Q1357 280 1381.5 268.5Q1406 257 1442 257ZM1968 -13Q1878 -13 1832.5 48.5Q1787 110 1787 235V523H1914V249Q1914 170 1938.0 131.0Q1962 92 2012 92Q2041 92 2063.0 106.5Q2085 121 2101.0 147.5Q2117 174 2126.5 209.0Q2136 244 2138 286V523H2264V215V0H2160L2162 165H2144Q2131 102 2107.5 63.0Q2084 24 2050.0 5.5Q2016 -13 1968 -13ZM2381 0V262V523H2487L2485 343H2503Q2512 407 2531.0 449.5Q2550 492 2584.0 513.5Q2618 535 2668 535Q2678 535 2689.5 534.0Q2701 533 2715 529L2710 396Q2694 402 2677.5 404.5Q2661 407 2647 407Q2608 407 2579.5 387.0Q2551 367 2533.5 330.5Q2516 294 2507 244V0ZM2961 -12Q2878 -12 2839.0 32.5Q2800 77 2800 171V422H2723L2725 522H2776Q2805 522 2819.0 531.0Q2833 540 2836 563L2848 639H2921V523H3059V418H2921V176Q2921 139 2938.5 122.0Q2956 105 2991 105Q3010 105 3028.5 109.5Q3047 114 3063 125V5Q3032 -5 3006.5 -8.5Q2981 -12 2961 -12Z`;function s1({size:e=28,className:t=`text-accent`}){return(0,q.jsx)(`svg`,{"data-testid":`logo`,role:`img`,"aria-label":`Yogurt`,width:e,height:e,viewBox:`0 0 100 100`,className:`shrink-0 ${t}`,children:(0,q.jsx)(`path`,{fill:`currentColor`,d:a1})})}function c1({height:e=32}){return(0,q.jsxs)(`svg`,{"data-testid":`wordmark`,role:`img`,"aria-label":`Yogurt`,height:e,width:e*286/80,viewBox:`0 0 286 80`,className:`shrink-0`,children:[(0,q.jsx)(`path`,{style:{fill:`color-mix(in srgb, var(--primary), var(--accent))`},transform:`translate(0 5) scale(.65)`,d:a1}),(0,q.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:o1})]})}var l1=[{speaker:`Kara`,text:`The launch page is ready for review.`,track:`them`,speakerColor:0},{speaker:`Ray`,text:`We can publish Tuesday.`,track:`them`,speakerColor:1},{text:`I'll send Ray the asset list by Friday.`,track:`me`}].map((e,t)=>({...e,id:t+1,meetingId:`sample-meeting`,startMs:1e4+t*1e4,endMs:14e3+t*1e4,hidden:!1})),u1=[.8,2.65,4.05],d1=[2.35,3.8,5.95];function f1(e){let t=l1.map((t,n)=>({...t,hidden:e<d1[n]})),n=u1.findIndex((t,n)=>e>=t&&e<d1[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=l1[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-u1[n])/(d1[n]-u1[n])*(i.length-1))),o=i.slice(0,a).map((e,t)=>({text:e,startMs:r.startMs+t*350,endMs:r.startMs+(t+1)*350}));return{lines:t,partial:{track:r.track,startMs:r.startMs,text:o.map(e=>e.text).join(` `),words:o}}}var p1=[`## Tuesday launch`,`- Publish the page Tuesday.`,`- Announce it Wednesday morning.`,`## Next steps`,`- **Kara:** Release notes by Friday.`,`- **You:** Send Ray the asset list by Friday.`],m1=p1.join(`
+`),h1=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function g1(e){return p1.flatMap((t,n)=>{let[,r,i]=t.match(/^(## |- )(.*)$/),a=i.split(` `),o=(n<3?.16:.14)*.8,s=Math.max(0,Math.min(a.length,Math.floor((e-h1[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
+`)}var _1=()=>{},v1=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&xe(l1,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&be({question:_,answer:v+`[1]`,status:v1?`waiting`:`done`});function y1(e){let t=[],n=(e,n,r=.28)=>{e&&t.push({element:e,start:n,duration:r})},r=(e,t,r)=>{let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=[];for(;i.nextNode();)i.currentNode.textContent?.trim()&&!i.currentNode.parentElement?.closest(`button,time,.sr-only`)&&a.push(i.currentNode);let o=0;for(let e of a){let i=document.createDocumentFragment();for(let a of e.data.split(/(\s+)/)){if(!a.trim()){i.append(a);continue}let e=document.createElement(`span`);e.className=`fragment-word`,e.textContent=a,i.append(e),n(e,t+o++*r)}e.replaceWith(i)}};if(M===`ask`){let t=e.querySelector(`.ask-question`);n(t,1),r(t,1,.045),n(e.querySelector(`.fragment-byline`),2.05);let i=4.45;e.querySelectorAll(`.chat-answer>p`).forEach(e=>{r(e,i,1.5/v.split(` `).length),i+=e.textContent.replace(/1$/,``).trim().split(/\s+/).length*1.5/v.split(` `).length}),n(e.querySelector(`.source-citation`),5.95)}return t}function b1(){let[e,t]=(0,W.useState)(v1?0:99),[n,r]=(0,W.useState)(null),[i,a]=(0,W.useState)(0);return(0,W.useEffect)(()=>{let e=!1,n=[],i=``,o=null,s=e=>{if(e.source!==parent||e.origin!==location.origin||e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let r=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(r),M===`transcript`){let e=f1(r),t=JSON.stringify(e);t!==i&&(i=t,xe(e.lines,e.partial))}for(let{element:e,start:t,duration:i}of n){let n=Math.max(0,Math.min(1,(r-t)/i));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=r>=2.05&&r<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(r<20)};window.addEventListener(`message`,s);let c=()=>{if(e||o?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&r(t),document.querySelector(`[data-testid="transcript"][data-loaded=true], [data-testid="fragment-plan"], [data-testid="chat-answer"]`)&&(M!==`ask`||document.querySelector(`.fragment-byline`))&&(e=!0,document.fonts.ready.then(()=>requestAnimationFrame(()=>{if(M===`transcript`&&v1&&!o){o=document.querySelector(`[data-testid=transcript]`);let t=[...o.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${o.getBoundingClientRect().height}px;display:grid;grid-template-rows:${t.map(e=>e.getBoundingClientRect().height+`px`).join(` `)};gap:20px}`+t.map((e,t)=>{let n=e.querySelector(`.bubble`).getBoundingClientRect();return`.fragment-transcript .transcript-turn:nth-child(${t+1} of .transcript-turn) .bubble{width:${n.width}px;height:${n.height}px;flex:none}`}).join(``),document.head.append(n),xe([],{track:`them`,startMs:0,text:``,words:[]}),e=!1,a(1)}else{if(M===`ask`){let e=document.querySelector(`.chat-answer`),t=e.closest(`.ask-turn`);t.style.setProperty(`--fragment-answer-top`,`${e.getBoundingClientRect().top-t.getBoundingClientRect().top}px`)}if(n=y1(document.querySelector(`.marketing-fragment`)),v1)for(let{element:e}of n)e.style.opacity=`0`;document.documentElement.dataset.ready=`true`,parent.postMessage({type:`yogurt-fragment-ready`},location.origin)}})))},l=new MutationObserver(c);return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-loaded`]}),c(),()=>{l.disconnect(),window.removeEventListener(`message`,s)}},[]),(0,q.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,q.jsx)(ey,{id:E.id,recording:!0,inline:!0},i),M===`summary`&&(0,q.jsxs)(`div`,{className:`fragment-plan`,children:[(0,q.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,q.jsx)(XH,{markdown:m1,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,q.jsx)(`div`,{className:`fragment-plan-live`,children:(0,q.jsx)(XH,{markdown:g1(e),streaming:v1&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n1,{id:j.id,initial:j,panel:!0,onSelect:_1,onSource:_1,onDeleted:_1}),n&&(0,Ee.createPortal)((0,q.jsxs)(`div`,{className:`fragment-byline`,children:[(0,q.jsx)(s1,{size:20}),(0,q.jsx)(`span`,{children:`Yogurt`})]}),n)]})]})}var x1=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),S1=o(((e,t)=>{t.exports=x1()})),C1=o((e=>{var t=S1(),n=Ce(),r=Te();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),z=Symbol.for(`react.legacy_hidden`),B=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.for(`react.view_transition`),te=Symbol.for(`react.recoverable`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var V=Symbol.for(`react.client.reference`);function H(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===V?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case R:return`Activity`;case ee:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?H(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return H(e(t))}catch{}}return null}var ie=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function de(e,t){ce++,se[ce]=e.current,e.current=t}var fe=le(null),pe=le(null),me=le(null),he=le(null);function ge(e,t){switch(de(me,t),de(pe,e),de(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gp(t),e=_p(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(fe),de(fe,e)}function _e(){ue(fe),ue(pe),ue(me)}function ve(e){var t=e.memoizedState;t!==null&&(ph._currentValue=t.memoizedState,de(he,e)),t=fe.current;var n=_p(t,e.type);t!==n&&(de(pe,e),de(fe,n))}function ye(e){pe.current===e&&(ue(fe),ue(pe)),he.current===e&&(ue(he),ph._currentValue=oe)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
-`+xe+e+Se}var Te=!1;function U(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
+`+be+e+xe}var we=!1;function W(e,t){if(!e||we)return``;we=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
-`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ce(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce(`Lazy`);case 13:return e.child!==t&&t!==null?Ce(`Suspense Fallback`):Ce(`Suspense`);case 19:return Ce(`SuspenseList`);case 0:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);case 31:return Ce(`Activity`);case 30:return Ce(`ViewTransition`);default:return``}}function Oe(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
+`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{we=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Ee(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 1:return W(e.type,!0);case 31:return Se(`Activity`);case 30:return Se(`ViewTransition`);default:return``}}function De(e){try{var t=``,n=null;do t+=Ee(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
-`+e.stack}}var ke=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,je=t.unstable_cancelCallback,Me=t.unstable_shouldYield,Ne=t.unstable_requestPaint,Pe=t.unstable_now,Fe=t.unstable_getCurrentPriorityLevel,Ie=t.unstable_ImmediatePriority,Le=t.unstable_UserBlockingPriority,Re=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Ve=t.log,He=t.unstable_setDisableYieldValue,Ue=null,We=null;function Ge(e){if(typeof Ve==`function`&&He(e),We&&typeof We.setStrictMode==`function`)try{We.setStrictMode(Ue,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ke(n),i=1<<r;t|=e[r],n&=~i}return t}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=oe.p;return e===0?(e=window.event,e===void 0?32:Ah(e.type)):e}function mt(e,t){var n=oe.p;try{return oe.p=e,t()}finally{oe.p=n}}var ht=Math.random().toString(36).slice(2),gt=`__reactFiber$`+ht,_t=`__reactProps$`+ht,vt=`__reactContainer$`+ht,yt=`__reactEvents$`+ht,bt=`__reactListeners$`+ht,xt=`__reactHandles$`+ht,W=`__reactResources$`+ht,St=`__reactMarker$`+ht,Ct=`__reactLoad$`+ht;function wt(e){delete e[gt],delete e[_t],delete e[bt],delete e[xt]}function Tt(e){var t;if(t=e[gt])return t;for(var n=e.parentNode;n;){if(t=n[vt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ym(e);e!==null;){if(n=e[gt])return n;e=ym(e)}return t}e=n,n=e.parentNode}return null}function Et(e){if(e=e[gt]||e[vt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ot(e){var t=e[W];return t||=e[W]={hoistableStyles:new Map,hoistableScripts:new Map},t}function kt(e){e[St]=!0}function At(e){e[Ct]=void 0}var jt=new Set,Mt={};function Nt(e,t){Pt(e,t),Pt(e+`Capture`,t)}function Pt(e,t){for(Mt[e]=t,e=0;e<t.length;e++)jt.add(t[e])}var Ft=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),It={},Lt={};function Rt(e){return ke.call(Lt,e)?!0:ke.call(It,e)?!1:Ft.test(e)?Lt[e]=!0:(It[e]=!0,!1)}var zt=!1;function Bt(){var e=zt;return zt=!1,e}function Vt(e,t,n){if(Rt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Ht(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Ut(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Gt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qt(e){if(!e._valueTracker){var t=Gt(e)?`checked`:`value`;e._valueTracker=Kt(e,t,``+e[t])}}function Jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Gt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Yt=/[\n"\\]/g;function Xt(e){return e.replace(Yt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Wt(t)):e.value!==``+Wt(t)&&(e.value=``+Wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):$t(e,Wt(n)):o===`number`&&e.value==t?$t(e,Wt(e.value)):$t(e,Wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Wt(s):e.removeAttribute(`name`)}function Qt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){qt(e);return}n=n==null?``:``+Wt(n),t=t==null?n:``+Wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),qt(e)}function $t(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function en(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function tn(e,t,n){t!=null&&(t=``+Wt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Wt(n)}function nn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),qt(e)}function rn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var an=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function on(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||an.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function sn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,zt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(on(e,a,r),zt=!0)}else for(var o in t)t.hasOwnProperty(o)&&on(e,o,t[o])}function cn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var ln=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),un=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dn(e){return un.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function fn(){}var pn=null;function mn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hn=null,gn=null;function _n(e){var t=Et(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Xt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[_t]||null;if(!a)throw Error(i(90));Zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Jt(r)}break a;case`textarea`:tn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&en(e,!!n.multiple,t,!1)}}}var vn=!1;function yn(e,t,n){if(vn)return e(t,n);vn=!0;try{return e(t)}finally{if(vn=!1,(hn!==null||gn!==null)&&(Wd(),hn&&(t=hn,e=gn,gn=hn=null,_n(t),e)))for(t=0;t<e.length;t++)_n(e[t])}}function bn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_t]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var xn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Sn=!1;if(xn)try{var Cn={};Object.defineProperty(Cn,"passive",{get:function(){Sn=!0}}),window.addEventListener(`test`,Cn,Cn),window.removeEventListener(`test`,Cn,Cn)}catch{Sn=!1}var wn=null,Tn=null,En=null;function Dn(){if(En)return En;var e,t=Tn,n=t.length,r,i=`value`in wn?wn.value:wn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return En=i.slice(e,1<r?1-r:void 0)}function On(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kn(){return!0}function An(){return!1}function jn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?kn:An,this.isPropagationStopped=An,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=jn(Mn),Pn=w({},Mn,{view:0,detail:0}),Fn=jn(Pn),In,Ln,Rn,zn=w({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Rn&&(Rn&&e.type===`mousemove`?(In=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=In=0,Rn=e),In)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=jn(zn),Vn=jn(w({},zn,{dataTransfer:0})),Hn=jn(w({},Pn,{relatedTarget:0})),Un=jn(w({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=jn(w({},Mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),G=jn(w({},Mn,{data:0})),Gn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Kn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qn[e])?!!t[e]:!1}function Yn(){return Jn}var Xn=jn(w({},Pn,{key:function(e){if(e.key){var t=Gn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=On(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yn,charCode:function(e){return e.type===`keypress`?On(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?On(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Zn=jn(w({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Qn=jn(w({},Mn,{submitter:0})),$n=jn(w({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yn})),er=jn(w({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),tr=jn(w({},zn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),nr=jn(w({},Mn,{newState:0,oldState:0,source:0})),rr=[9,13,27,32],ir=xn&&`CompositionEvent`in window,ar=null;xn&&`documentMode`in document&&(ar=document.documentMode);var or=xn&&`TextEvent`in window&&!ar,sr=xn&&(!ir||ar&&8<ar&&11>=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=Dn(),En=Tn=wn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return sr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){hn?gn?gn.push(r):gn=[r]:hn=r,t=ep(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){Kf(e,0)}function xr(e){if(Jt(Dt(e)))return e}function Sr(e,t){if(e===`change`)return t}var Cr=!1;if(xn){var wr;if(xn){var Tr=`oninput`in document;if(!Tr){var Er=document.createElement(`div`);Er.setAttribute(`oninput`,`return;`),Tr=typeof Er.oninput==`function`}wr=Tr}else wr=!1;Cr=wr&&(!document.documentMode||9<document.documentMode)}function Dr(){vr&&(vr.detachEvent(`onpropertychange`,Or),yr=vr=null)}function Or(e){if(e.propertyName===`value`&&xr(yr)){var t=[];_r(t,yr,e,mn(e)),yn(br,t)}}function kr(e,t,n){e===`focusin`?(Dr(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Or)):e===`focusout`&&Dr()}function Ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return xr(yr)}function jr(e,t){if(e===`click`)return xr(t)}function Mr(e,t){if(e===`input`||e===`change`)return xr(t)}function Nr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Pr=typeof Object.is==`function`?Object.is:Nr;function Fr(e,t){if(Pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ke.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function Ir(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rr(e,t){var n=Lr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Lr(n)}}function zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ir(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ir(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Hr=xn&&`documentMode`in document&&11>=document.documentMode,Ur=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||Ur==null||Ur!==Ir(r)||(r=Ur,`selectionStart`in r&&Vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Fr(Gr,r)||(Gr=r,r=ep(Wr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yr={animationend:Jr(`Animation`,`AnimationEnd`),animationiteration:Jr(`Animation`,`AnimationIteration`),animationstart:Jr(`Animation`,`AnimationStart`),transitionrun:Jr(`Transition`,`TransitionRun`),transitionstart:Jr(`Transition`,`TransitionStart`),transitioncancel:Jr(`Transition`,`TransitionCancel`),transitionend:Jr(`Transition`,`TransitionEnd`)},Xr={},Zr={};xn&&(Zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),`TransitionEvent`in window||delete Yr.transitionend.transition);function Qr(e){if(Xr[e])return Xr[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zr)return Xr[e]=t[n];return e}var $r=Qr(`animationend`),ei=Qr(`animationiteration`),ti=Qr(`animationstart`),ni=Qr(`transitionrun`),ri=Qr(`transitionstart`),ii=Qr(`transitioncancel`),ai=Qr(`transitionend`),oi=new Map,si=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);si.push(`scrollEnd`);function ci(e,t){oi.set(e,t),Nt(t,[e])}var li=0;function ui(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Td.identifierPrefix;var n=li++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function di(e){if(e==null||typeof e==`string`)return e;var t=null,n=Nd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function fi(e,t){return e=di(e),t=di(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var pi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},mi=[],hi=0,gi=0;function _i(){for(var e=hi,t=gi=hi=0;t<e;){var n=mi[t];mi[t++]=null;var r=mi[t];mi[t++]=null;var i=mi[t];mi[t++]=null;var a=mi[t];if(mi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&xi(n,i,a)}}function vi(e,t,n,r){mi[hi++]=e,mi[hi++]=t,mi[hi++]=n,mi[hi++]=r,gi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function yi(e,t,n,r){return vi(e,t,n,r),Si(e)}function bi(e,t){return vi(e,null,null,t),Si(e)}function xi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Si(e){if(50<Pd)throw Pd=0,Fd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ci={};function wi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ti(e,t,n,r){return new wi(e,t,n,r)}function Ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Di(e,t){var n=e.alternate;return n===null?(n=Ti(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Oi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ei(r)&&(s=1);else if(typeof r==`string`)s=eh(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ti(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return Ai(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Ti(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Ti(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Ti(19,n,t,a),e.elementType=F,e.lanes=o,e;case z:case ee:return e=a|32,e=Ti(30,n,t,e),e.elementType=ee,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ti(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ai(e,t,n,r){return e=Ti(7,e,r,t),e.lanes=n,e}function ji(e,t,n){return e=Ti(6,e,null,t),e.lanes=n,e}function Mi(e){var t=Ti(18,null,null,0);return t.stateNode=e,t}function Ni(e,t,n){return t=Ti(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pi=new WeakMap;function Fi(e,t){if(typeof e==`object`&&e){var n=Pi.get(e);return n===void 0?(t={value:e,source:t,stack:Oe(t)},Pi.set(e,t),t):n}return{value:e,source:t,stack:Oe(t)}}var Ii=[],Li=0,Ri=null,zi=0,Bi=[],Vi=0,Hi=null,Ui=1,Wi=``;function Gi(e,t){Ii[Li++]=zi,Ii[Li++]=Ri,Ri=e,zi=t}function Ki(e,t,n){Bi[Vi++]=Ui,Bi[Vi++]=Wi,Bi[Vi++]=Hi,Hi=e;var r=Ui;e=Wi;var i=32-Ke(r)-1;r&=~(1<<i),n+=1;var a=32-Ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ui=1<<32-Ke(t)+i|n<<i|r,Wi=a+e}else Ui=1<<a|n<<i|r,Wi=e}function qi(e){e.return!==null&&(Gi(e,1),Ki(e,1,0))}function Ji(e){for(;e===Ri;)Ri=Ii[--Li],Ii[Li]=null,zi=Ii[--Li],Ii[Li]=null;for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Wi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null}function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Wi,Bi[Vi++]=Hi,Ui=t.id,Wi=t.overflow,Hi=e}var Xi=null,Zi=null,Qi=!1,$i=null,ea=!1,ta=Error(i(519));function na(e){throw ca(Fi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ta}function ra(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[gt]=e,t[_t]=r,n){case`dialog`:qf(`cancel`,t),qf(`close`,t);break;case`iframe`:case`object`:case`embed`:qf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Wf.length;n++)qf(Wf[n],t);break;case`source`:qf(`error`,t);break;case`img`:case`image`:case`link`:qf(`error`,t),qf(`load`,t);break;case`details`:qf(`toggle`,t);break;case`input`:qf(`invalid`,t),Qt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:qf(`invalid`,t);break;case`textarea`:qf(`invalid`,t),nn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||op(t.textContent,n)?(r.popover!=null&&(qf(`beforetoggle`,t),qf(`toggle`,t)),r.onScroll!=null&&qf(`scroll`,t),r.onScrollEnd!=null&&qf(`scrollend`,t),r.onClick!=null&&(t.onclick=fn),t=!0):t=!1,t||na(e,!0)}function ia(e){for(Xi=e.return;Xi;)switch(Xi.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Xi=Xi.return}}function aa(e){if(e!==Xi)return!1;if(!Qi)return ia(e),Qi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||bp(e.type,e.memoizedProps)),n=!n),n&&Zi&&na(e),ia(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Zi=vm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Zi=vm(e)}else t===27?(t=Zi,kp(e.type)?(e=_m,_m=null,Zi=e):Zi=t):Zi=Xi?gm(e.stateNode.nextSibling):null;return!0}function oa(){Zi=Xi=null,Qi=!1}function sa(){var e=$i;return e!==null&&(_d===null?_d=e:_d.push.apply(_d,e),$i=null),e}function ca(e){$i===null?$i=[e]:$i.push(e)}var la=ue(null),ua=null,da=null;function fa(e,t,n){fe(la,t._currentValue),t._currentValue=n}function pa(e){e._currentValue=la.current,de(la)}function ma(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ha(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ma(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ma(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ma(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ga(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Pr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ge.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[mh]:e.push(mh))}a=a.return}return e!==null&&ha(t,e,n,r),t.flags|=262144,e!==null}function _a(e){for(e=e.firstContext;e!==null;){if(!Pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){ua=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ya(e){return xa(ua,e)}function ba(e,t){return ua===null&&va(e),xa(e,t)}function xa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},da===null){if(e===null)throw Error(i(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return n}var Sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ca=t.unstable_scheduleCallback,wa=t.unstable_NormalPriority,Ta={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ea(){return{controller:new Sa,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Ca(wa,function(){e.controller.abort()})}function Oa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var ka=null;function Aa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ja=null,Ma=0,Na=0,Pa=null;function Fa(e,t){if(ja===null){var n=ja=[];Ma=0,Na=zf(),Pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ma++,t.then(Ia,Ia),t}function Ia(){if(--Ma===0&&(ka=null,ja!==null)){Pa!==null&&(Pa.status=`fulfilled`);var e=ja;ja=null,Na=0,Pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function La(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ra=H.S;H.S=function(e,t){if(bd=Pe(),typeof t==`object`&&t&&typeof t.then==`function`&&Fa(e,t),ka!==null)for(var n=Tf;n!==null;)Oa(n,ka),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)Oa(r,n),r=r.next;if(Na!==0){r=ka,r===null&&(r=ka=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ra!==null&&Ra(e,t)};var za=ue(null);function Ba(){var e=za.current;return e===null?td.pooledCache:e}function Va(e,t){t===null?fe(za,za.current):fe(za,t.pool)}function Ha(){var e=Ba();return e===null?null:{parent:Ta._currentValue,pool:e}}var Ua=Error(i(460)),Wa=Error(i(474)),Ga=Error(i(542)),Ka={then:function(){}};function qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(fn,fn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(fn,fn);else{if(e=td,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e}throw Xa=t,Ua}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Xa=e,Ua):e}}var Xa=null;function Za(){if(Xa===null)throw Error(i(459));var e=Xa;return Xa=null,e}function Qa(e){if(e===Ua||e===Ga)throw Error(i(483))}var $a=null,eo=0;function to(e){var t=eo;return eo+=1,$a===null&&($a=[]),Ja($a,e,t)}function no(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ro(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ji(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),no(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Ya(i)===t.type)?(t=a(t,n.props),no(t,n),t.return=e,t):(t=ki(n.type,n.key,n.props,null,e.mode,r),no(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ni(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Ai(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ji(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=ki(t.type,t.key,t.props,null,e.mode,n),no(n,t),n.return=e,n;case D:return t=Ni(t,e.mode,n),t.return=e,t;case L:return t=Ya(t),f(e,t,n)}if(ae(t)||re(t))return t=Ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,to(t),n);if(t.$$typeof===M)return f(e,ba(e,t),n);ro(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=Ya(n),p(e,t,n,r)}if(ae(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,to(n),r);if(n.$$typeof===M)return p(e,t,ba(e,n),r);ro(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Ya(r),m(e,t,n,r,i)}if(ae(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,to(r),i);if(r.$$typeof===M)return m(e,t,n,ba(t,r),i);ro(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Qi&&Gi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Qi&&Gi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Qi&&Gi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Qi&&Gi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Qi&&Gi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Qi&&Gi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),no(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),no(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Ai(o.props.children,e.mode,c,o.key),no(c,o),c.return=e,e=c):(c=ki(o.type,o.key,o.props,null,e.mode,c),no(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ni(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Ya(o),_(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,to(o),c);if(o.$$typeof===M)return _(e,r,ba(e,o),c);ro(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ji(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{eo=0;var i=_(e,t,n,r);return $a=null,i}catch(t){if(t===Ua||t===Ga)throw t;var a=Ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ao=io(!0),oo=io(!1),so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ed&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Si(e),xi(e,null,n),t}return vi(e,r,t,n),Si(e)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function go(){if(ho){var e=Pa;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(rd&f)===f:(r&f)===f){f!==0&&f===Na&&(ho=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:so=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),dd|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vo(n[e],t)}var bo=ue(null),xo=ue(0);function So(e,t){e=ld,fe(xo,e),fe(bo,t),ld=e|t.baseLanes}function Co(){fe(xo,ld),fe(bo,bo.current)}function wo(){ld=xo.current,de(bo),de(xo)}var To=ue(null),Eo=null;function Do(e){var t=e.alternate;fe(Mo,Mo.current&1),fe(To,e),Eo===null&&(t===null||bo.current!==null||t.memoizedState!==null)&&(Eo=e)}function Oo(e){fe(Mo,Mo.current),fe(To,e),Eo===null&&(Eo=e)}function ko(e){e.tag===22?(fe(Mo,Mo.current),fe(To,e),Eo===null&&(Eo=e)):Ao()}function Ao(){fe(Mo,Mo.current),fe(To,To.current)}function jo(e){de(To),Eo===e&&(Eo=null),de(Mo)}var Mo=ue(0);function No(e,t){fe(To,To.current),fe(Mo,t)}function Po(e){de(Mo),de(To),Eo===e&&(Eo=null)}function Fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pm(n)||mm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Io=0,Lo=null,Ro=null,zo=null,Bo=!1,Vo=!1,Ho=!1,Uo=0,Wo=0,Go=null,Ko=0;function qo(){throw Error(i(321))}function Jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function Yo(e,t,n,r,i,a){return Io=a,Lo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?pc:mc,Ho=!1,a=n(r,i),Ho=!1,Vo&&(a=Zo(t,n,r,i)),Xo(e),a}function Xo(e){H.H=fc;var t=Ro!==null&&Ro.next!==null;if(Io=0,zo=Ro=Lo=null,Bo=!1,Wo=0,Go=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&_a(e)&&(jc=!0))}function Zo(e,t,n,r){Lo=e;var a=0;do{if(Vo&&(Go=null),Wo=0,Vo=!1,25<=a)throw Error(i(301));if(a+=1,zo=Ro=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}H.H=hc,o=t(n,r)}while(Vo);return o}function Qo(){var e=H.H,t=e.useState()[0];return t=typeof t.then==`function`?as(t):t,e=e.useState()[0],(Ro===null?null:Ro.memoizedState)!==e&&(Lo.flags|=1024),t}function $o(){var e=Uo!==0;return Uo=0,e}function es(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ts(e){if(Bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bo=!1}Io=0,zo=Ro=Lo=null,Vo=!1,Wo=Uo=0,Go=null}function ns(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?Lo.memoizedState=zo=e:zo=zo.next=e,zo}function rs(){if(Ro===null){var e=Lo.alternate;e=e===null?null:e.memoizedState}else e=Ro.next;var t=zo===null?Lo.memoizedState:zo.next;if(t!==null)zo=t,Ro=e;else{if(e===null)throw Lo.alternate===null?Error(i(467)):Error(i(310));Ro=e,e={memoizedState:Ro.memoizedState,baseState:Ro.baseState,baseQueue:Ro.baseQueue,queue:Ro.queue,next:null},zo===null?Lo.memoizedState=zo=e:zo=zo.next=e}return zo}function is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(e){var t=Wo;return Wo+=1,Go===null&&(Go=[]),e=Ja(Go,e,t),t=Lo,(zo===null?t.memoizedState:zo.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return as(e);if(e.$$typeof===te)return;if(e.$$typeof===M)return ya(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=Lo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Lo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=is(),Lo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=B;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(rs(),Ro,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Io&f)===f:(rd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Na&&(d=!0);else if((Io&p)===p){u=u.next,p===Na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Lo.lanes|=p,dd|=p;f=u.action,Ho&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Lo.lanes|=f,dd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Pr(o,e.memoizedState)&&(jc=!0,d&&(n=Pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=rs(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Pr(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=Lo,a=rs(),o=Qi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Pr((Ro||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||zo!==null&&!!(zo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,td===null)throw Error(i(349));o||Io&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Lo.updateQueue,t===null?(t=is(),Lo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function vs(e){var t=bi(e,2);t!==null&&zd(t,e,2)}function ys(e){var t=ns();if(typeof e==`function`){var n=e;if(e=n(),Ho){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,Ro,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};H.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=H.T,o={};o.types=a===null?null:a.types,H.T=o;try{var s=n(i,r),c=H.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),H.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if(Qi){var n=td.formState;if(n!==null){a:{var r=Lo;if(Qi){if(Zi){b:{for(var i=Zi,a=ea;i.nodeType!==8;)if(!a||(i=gm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Zi=gm(i.nextSibling),r=i.data===`F!`;break a}}na(r)}r=!1}r&&(t=n[0])}}return n=ns(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,Lo,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,Lo,!1,r.queue),r=ns(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,Lo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(rs(),Ro,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=as(t)}catch(e){throw e===Ua?Ga:e}else r=t;t=rs();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Lo.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=rs(),n=Ro;if(n!==null)return As(t,n,e);rs(),t=t.memoizedState,n=rs();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Lo.updateQueue,t===null&&(t=is(),Lo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ps(){return rs().memoizedState}function Fs(e,t,n,r){var i=ns();Lo.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=rs();r=r===void 0?null:r;var a=i.memoizedState.inst;Ro!==null&&r!==null&&Jo(r,Ro.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(Lo.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){Lo.flags|=4;var t=Lo.updateQueue;if(t===null)t=is(),Lo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=rs().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(ed&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=rs();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Jo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=rs();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Jo(t,r[1]))return r[0];if(r=e(),Ho){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Io&1073741824&&!(rd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ld(),Lo.lanes|=e,dd|=e,n)}function Ys(e,t,n,r){return Pr(n,t)?n:bo.current===null?!(Io&106)||Io&1073741824&&!(rd&261930)?(jc=!0,e.memoizedState=n):(e=Ld(),Lo.lanes|=e,dd|=e,t):(e=Js(e,n,r),Pr(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=oe.p;oe.p=a!==0&&8>a?a:8;var o=H.T,s={};s.types=o===null?null:o.types,H.T=s,cc(e,!1,t,n);try{var c=i(),l=H.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,La(c,r),Id(e)):sc(e,t,r,Id(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Id())}finally{oe.p=a,o!==null&&s.types!==null&&(o.types=s.types),H.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,se,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Id())}function tc(){return ya(mh)}function nc(){return rs().memoizedState}function rc(){return rs().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Id();e=uo(n);var r=fo(t,e,n);r!==null&&(zd(r,t,n),po(r,t,n)),t={cache:Ea()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Id();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=yi(e,t,n,r),n!==null&&(zd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Id())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o))return vi(e,t,i,0),td===null&&_i(),!1}catch{}if(n=yi(e,t,i,r),n!==null)return zd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=yi(e,n,r,2),t!==null&&zd(t,e,2)}function lc(e){var t=e.alternate;return e===Lo||t!==null&&t===Lo}function uc(e,t){Vo=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var fc={readContext:ya,use:ss,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useLayoutEffect:qo,useInsertionEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useDeferredValue:qo,useTransition:qo,useSyncExternalStore:qo,useId:qo,useHostTransitionStatus:qo,useFormState:qo,useActionState:qo,useOptimistic:qo,useMemoCache:qo,useCacheRefresh:qo,useEffectEvent:qo},pc={readContext:ya,use:ss,useCallback:function(e,t){return ns().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=ns();t=t===void 0?null:t;var r=e();if(Ho){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ns();if(n!==void 0){var i=n(t);if(Ho){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ac.bind(null,Lo,e),[r.memoizedState,e]},useRef:function(e){var t=ns();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,Lo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(ns(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,Lo,e.queue,!0,!1),ns().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Lo,a=ns();if(Qi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),td===null)throw Error(i(349));rd&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=ns(),t=td.identifierPrefix;if(Qi){var n=Wi,r=Ui;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ko++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=ns();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,Lo,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return ns().memoizedState=ic.bind(null,Lo)},useEffectEvent:function(e){var t=ns(),n={impl:e};return t.memoizedState=n,function(){if(ed&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:ya,use:ss,useCallback:Ks,useContext:ya,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(rs(),Ro.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=rs().memoizedState;return[typeof e==`boolean`?e:as(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(rs(),Ro,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:ya,use:ss,useCallback:Ks,useContext:ya,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=rs();return Ro===null?Js(n,e,t):Ys(n,Ro.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=rs().memoizedState;return[typeof e==`boolean`?e:as(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=rs();return Ro===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,Ro,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Id(),i=uo(r);i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(zd(t,e,r),po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Id(),i=uo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(zd(t,e,r),po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Id(),r=uo(n);r.tag=2,t!=null&&(r.callback=t),t=fo(e,r,n),t!==null&&(zd(t,e,n),po(t,e,n))}};function vc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function yc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function bc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){pi(e)}function Sc(e){console.error(e)}function Cc(e){pi(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){return n=uo(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=uo(e),e.tag=3,e}function Oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(Cd===null?Cd=new Set([this]):Cd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ga(t,n,a,!0),n=To.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Eo===null?Zd():n.alternate===null&&ud===0&&(ud=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Zd(),!1}if(Qi)return t=To.current,t===null?(r!==ta&&(t=Error(i(423),{cause:r}),ca(Fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Fi(r,n),a=Ec(e.stateNode,r,a),mo(e,a),ud!==4&&(ud=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ta&&(e=Error(i(422),{cause:r}),ca(Fi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Fi(o,n),gd===null?gd=[o]:gd.push(o),ud!==4&&(ud=2),t===null)return!0;r=Fi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),mo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Cd===null||!Cd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),mo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return va(t),r=Yo(e,t,n,o,a,i),s=$o(),e!==null&&!jc?(es(e,t,i),sl(e,t,i)):(Qi&&s&&qi(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ei(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=ki(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Fr:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Di(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Va(t,a===null?null:a.cachePool),a===null?Co():So(t,a),ko(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Va(t,null),Co(),Ao()):(Va(t,a.cachePool),So(t,a),Ao(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Ba();return a=a===null?null:{parent:Ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Va(t,null),Co(),ko(t),e!==null&&ga(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return ao(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,jo(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Qi){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(Oo(t),(e=Zi)?(e=fm(e,ea),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi===null?null:{id:Ui,overflow:Wi},retryLane:536870912,hydrationErrors:null},n=Mi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Oo(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||ga(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(bo.current===null){if(r=td,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,bi(e,s),zd(r,e,s),Ac;Zd()}t=Bc(e,t,n)}else e=o.treeContext,Zi=gm(s.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return va(t),n=Yo(e,t,n,r,void 0,i),r=$o(),e!==null&&!jc?(es(e,t,i),sl(e,t,i)):(Qi&&r&&qi(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return va(t),t.updateQueue=null,n=Zo(t,r,n,i),Xo(e),r=$o(),e!==null&&!jc?(es(e,t,a),sl(e,t,a)):(Qi&&r&&qi(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(va(t),t.stateNode===null){var a=Ci,o=n.contextType;typeof o==`object`&&o&&(a=ya(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},co(t),o=n.contextType,a.context=typeof o==`object`&&o?ya(o):Ci,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&_c.enqueueReplaceState(a,a.state,null),_o(t,r,a,i),go(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ci,typeof u==`object`&&u&&(o=ya(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&yc(t,a,r,o),so=!1;var f=t.memoizedState;a.state=f,_o(t,r,a,i),go(),l=t.memoizedState,s||f!==l||so?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=so||vc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lo(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ci,typeof l==`object`&&l&&(c=ya(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&yc(t,a,r,c),so=!1,f=t.memoizedState,a.state=f,_o(t,r,a,i),go();var p=t.memoizedState;o!==d||f!==p||so||e!==null&&e.dependencies!==null&&_a(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=so||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&_a(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ao(t,e.child,null,i),t.child=ao(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return oa(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Ha()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=md),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Mo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Qi){if(i?Do(t):Ao(),(e=Zi)?(e=fm(e,ea),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi===null?null:{id:Ui,overflow:Wi},retryLane:536870912,hydrationErrors:null},n=Mi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=mm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ao(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=Ai(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(Do(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(Ao(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Di(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ai(i,a,n,null),i.flags|=2):i=Di(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Ha():(s=Ta._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(Do(t),n=e.child,e=n.sibling,n=Di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ti(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return ao(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Do(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(Ao(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=Ai(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ao(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(Ao(),t.child=e.child,t.flags|=128,null);if(Do(t),mm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ca({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||ga(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(bo.current!==null)return $c(e,t,c);if(r=td,r!==null&&(a=ut(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,bi(e,a),zd(r,e,a),Ac;return pm(o)||Zd(),$c(e,t,c)}return pm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Zi=gm(o.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ma(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Fo(n)===null&&(t=e),e=e.sibling}return t}function rl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Mo.current;if(t.flags&128)return No(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,No(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=Qi?zi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return fa(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ga(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&_a(e)))}function ll(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),fa(t,Ta,e.memoizedState.cache),oa();break;case 27:case 5:ye(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Do(t),t.flags|=128,null;r=ga(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(Do(t),e=sl(e,t,n),e===null?null:e.sibling)}Do(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ga(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),No(t,Mo.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:fa(t,Ta,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,Qi&&t.flags&1048576&&Ki(t,zi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e==`function`)Ei(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,lo(e,t),_o(t,r,null,n);var s=t.memoizedState;if(r=s.cache,fa(t,Ta,r),r!==o.cache&&ha(t,[Ta],n,!0),go(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==a){a=Fi(Error(i(424)),t),ca(a),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Zi=gm(e.firstChild),Xi=t,Qi=!0,$i=null,ea=!0,n=oo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(oa(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qi||(t.stateNode=yp(t.type,t.pendingProps,he.current,t)):t.memoizedState=Bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&Qi&&(r=t.stateNode=Sm(t.type,t.pendingProps,he.current),Xi=t,ea=!0,a=Zi,kp(t.type)?(_m=a,Zi=gm(r.firstChild)):Zi=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qi&&((a=r=Zi)&&(r=um(r,t.type,t.pendingProps,ea),r===null?a=!1:(t.stateNode=r,Xi=t,Zi=gm(r.firstChild),ea=!1,a=!0)),a||na(t)),ye(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,bp(a,o)?r=null:s!==null&&bp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Yo(e,t,Qo,null,null,n),mh._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&Qi&&((e=n=Zi)&&(n=dm(n,t.pendingProps,ea),n===null?e=!1:(t.stateNode=n,Xi=t,Zi=null,e=!0)),e||na(t)),null;case 13:return Xc(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ao(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,va(t),a=ya(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return va(t),r=ya(Ta),e===null?(a=Ba(),a===null&&(a=td,o=Ea(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},co(t),fa(t,Ta,a)):((e.lanes&n)!==0&&(lo(e,t),_o(t,null,null,n),go()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,fa(t,Ta,r),r!==a.cache&&ha(t,[Ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),fa(t,Ta,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Qi&&qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?th(t,r):th(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Jd())e.flags|=8192;else throw Xa=Ka,Wa}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!nh(t)){if(Jd())e.flags|=8192;else throw Xa=Ka,Wa}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,hd|=t)}function hl(e,t){if(!Qi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch(Ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pa(Ta),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sa())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(be(t),n=he.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=pe.current,aa(t)?ra(t,e):(e=Sm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(be(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=pe.current,aa(t))ra(t,o);else{var s=gp(he.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(lp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=he.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||op(e.nodeValue,n)),e||na(t,!0)}else e=gp(e).createTextNode(r),e[gt]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=aa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[gt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=aa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[gt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return ve(),e===null&&Xf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return pa(t.type),gl(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(ud!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Oi(n,e),n=n.sibling;return No(t,Mo.current&1|2),Qi&&Gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>xd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Qi)return gl(t),null}else 2*Pe()-r.renderingStartTime>xd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Pe(),e.sibling=null,o=Mo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Qi?No(t,o):(n=o,fe(To,t),fe(Mo,n),Eo===null&&(Eo=t)),Qi&&Gi(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&de(za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Ta),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch(Ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ta),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ve(),null;case 10:return pa(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&de(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ta),null;case 25:return null;default:return null}}function yl(e,t){switch(Ji(t),t.tag){case 3:pa(Ta),ve();break;case 26:case 27:case 5:be(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:pa(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&de(za);break;case 24:pa(Ta)}}function bl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function xl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){vf(e,e.return,t)}}}function Cl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=ui(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Vp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Hp(e);f(e.child,!1,am,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)sm(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&sm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&cm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;dp(r,e.type,n,t),r[_t]=t}catch(t){vf(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fn)),El(e,r),zt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),zt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,kp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lp(t,r,n),t[gt]=e,t[_t]=n}catch(t){vf(e,e.return,t)}}var Rl=!1,zl=null;function Bl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Vl=null;function Hl(){var e=Vl;return Vl=null,e}var Ul=0;function Wl(e,t,n,r,i){return Ul=0,Gl(e.child,t,n,r,i)}function Gl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Fp(o);r.push(s),s.view&&(a=!0)}else a||Fp(o).view&&(a=!0);Rl=!0,Mp(o,Ul===0?t:t+`_`+Ul,n),Ul++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Gl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Kl(e,t){for(;e!==null;)e.tag===5?Np(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Kl(e.child,t),e=e.sibling}function ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=fi(t.default,t.share),t!==`none`&&(Wl(e,n,t,null,!1)||Kl(e.child,!1))}e=e.sibling}}function Jl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=ui(r,n),a=fi(r.default,n.paired?r.share:r.enter);a===`none`?ql(e):Wl(e,i,a,null,!1)?(ql(e),n.paired||t||Rd(e,r.onEnter)):Kl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Jl(e,t),e=e.sibling;else ql(e)}function Yl(e){if(zl!==null&&zl.size!==0){var t=zl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=fi(n.default,n.share);if(a!==`none`&&(Wl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Rd(e,n.onShare)):Kl(e.child,!1)),t.delete(r),t.size===0)break}}}Yl(e)}e=e.sibling}}}function Xl(e){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=fi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Wl(e,n,i,null,!1)?r===void 0?Rd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),Rd(e,t.onShare)):Kl(e.child,!1)),zl!==null&&Yl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else zl!==null&&Yl(e)}function Zl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode);t=fi(t.default,t.update),e.flags&=-5,t!==`none`&&Wl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Zl(e);e=e.sibling}}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Kl(e.child,!1))}Ql(e)}e=e.sibling}}function $l(e){if(e.tag===30)e.stateNode.paired=null,Kl(e.child,!1),Ql(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Ql(e)}function eu(e){for(e=e.child;e!==null;)e.tag===30?Kl(e.child,!1):e.subtreeFlags&33554432&&eu(e),e=e.sibling}function tu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ul<a.length){var l=a[Ul],u=Fp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Mp(c,Ul===0?n:n+`_`+Ul,i),s&&e.flags&4||(Vl===null&&(Vl=[]),Vl.push(c,Ul===0?r:r+`_`+Ul,t.memoizedProps)),Ul++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:tu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function nu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=ui(n,r),a=fi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ip)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ul=0,i=tu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Rd(e,n.onUpdate))}else e.subtreeFlags&33554432&&nu(e,t);e=e.sibling}}var ru=!1,iu=!1,au=!1,ou=!1,su=typeof WeakSet==`function`?WeakSet:Set,cu=null,lu=!1,uu=!1,du=!1,fu=!1;function pu(e,t,n){if(e=e.containerInfo,mp=Ch,e=Br(e),Vr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(hp={focusedElem:e,selectionRange:r},Ch=!1,n=(n&335544064)===n,cu=t,t=n?9270:1024;cu!==null;){if(e=cu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Xl(r[a]);if(e.alternate===null&&e.flags&2)n&&Bl(e),mu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Xl(r),mu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Bl(e),mu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,cu=r):(n&&Zl(e),mu(n))}}zl=null}function mu(e){for(;cu!==null;){var t=cu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)lm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:lm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=ui(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=fi(a.default,a.update),a!==`none`&&Wl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,cu=r;break}cu=t.return}}function hu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fu(e,n),r&4&&bl(5,n);break;case 1:if(Fu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Fu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yo(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Fu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Fu(e,n);break;case 31:Fu(e,n),r&4&&wu(e,n);break;case 13:Fu(e,n),r&4&&Tu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),hm(e,n))));break;case 22:if(r=n.memoizedState!==null||ru,!r){var a=t!==null&&t.memoizedState!==null||iu;t=ru,i=iu,ru=r,(iu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Lu(e,n,r)):Fu(e,n),ru=t,iu=i}break;case 30:Fu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Fu(e,n)}}function gu(e,t){for(e=e.child;e!==null;)_u(e,t),e=e.sibling}function _u(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}vu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,zt=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?jp(s,!0):jp(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&gu(e,t);break;default:gu(e,t)}}function vu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:_u(n,r);break a;case 22:n.memoizedState===null&&vu(n,r);break a;default:vu(n,r)}}e=e.sibling}}function yu(e){var t=e.alternate;t!==null&&(e.alternate=null,yu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var bu=null,xu=!1;function Su(e,t,n){for(n=n.child;n!==null;)Cu(e,t,n),n=n.sibling}function Cu(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:iu||Tl(n,t),Su(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!iu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:iu||Tl(n,t),Ol(n);var r=bu,i=xu;kp(n.type)&&(bu=n.stateNode,xu=!1),Su(e,t,n),Cm(n.stateNode,n.type,n.memoizedProps),bu=r,xu=i;break;case 5:iu||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=bu,i=xu,bu=null,Su(e,t,n),bu=r,xu=i,bu!==null){if(xu)try{(bu.nodeType===9?bu.body:bu.nodeName===`HTML`?bu.ownerDocument.body:bu).removeChild(n.stateNode),zt=!0}catch(e){vf(n,t,e)}else try{bu.removeChild(n.stateNode),zt=!0}catch(e){vf(n,t,e)}}break;case 18:bu!==null&&(xu?(e=bu,Ap(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Jh(e)):Ap(bu,n.stateNode));break;case 4:r=bu,i=xu,bu=n.stateNode.containerInfo,xu=!0,Su(e,t,n),bu=r,xu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),iu||xl(4,n,t),Su(e,t,n);break;case 1:iu||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),Su(e,t,n);break;case 21:Su(e,t,n);break;case 22:iu=(r=iu)||n.memoizedState!==null,Su(e,t,n),iu=r;break;case 30:Tl(n,t),Su(e,t,n);break;case 7:iu||Tl(n,t),Su(e,t,n);break;default:Su(e,t,n)}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jh(e)}catch(e){vf(t,t.return,e)}}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jh(e)}catch(e){vf(t,t.return,e)}}function Eu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new su),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new su),t;default:throw Error(i(435,e.tag))}}function Du(e,t){var n=Eu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function Ou(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(kp(l.type)){bu=l.stateNode,xu=!1;break a}break;case 5:bu=l.stateNode,xu=!1;break a;case 3:case 4:bu=l.stateNode.containerInfo,xu=!0;break a}l=l.return}if(bu===null)throw Error(i(160));Cu(s,c,o),bu=null,xu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Au(t,e,n),t=t.sibling}var ku=null;function Au(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Ou(t,e,n),ju(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),a&64&&ru&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=ku,Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ru)e.stateNode=yp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[St]||r[gt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),lp(r,t,n),r[gt]=e,kt(r),t=r;break a;case`link`:if(o=Qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[gt]=e,kt(r),t=r}e.stateNode=t}}else ru||$m(o,e.type,e.stateNode)}else e.stateNode=qm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||iu||t.parentNode.removeChild(t)):a.count--,n===null?ru||$m(o,e.type,e.stateNode):qm(o,n,e.memoizedProps))}break;case 27:Ou(t,e,n),ju(e),a&512&&(iu||r===null||Tl(r,r.return)),r!==null&&a&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=au,au=!1,Ou(t,e,n),au=o,ju(e),a&512&&(iu||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{rn(t,``),zt=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),a&1024&&(ou=!0);break;case 6:if(Ou(t,e,n),ju(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,zt=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(zt=!1,Zm=null,o=ku,ku=Dm(t.containerInfo),Ou(t,e,n),ku=o,ju(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(t.containerInfo)}catch(t){vf(e,e.return,t)}ou&&(ou=!1,Mu(e)),zt=!1;break;case 4:a=au,au=ru,r=Bt(),o=ku,ku=Dm(e.stateNode.containerInfo),Ou(t,e,n),ju(e),ku=o,zt&&uu&&(du=!0),zt=r,au=a;break;case 12:Ou(t,e,n),ju(e);break;case 31:Ou(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 13:Ou(t,e,n),ju(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(yd=Pe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=ru,l=iu,u=au;ru=c||o,au=u||o,iu=l||s,Ou(t,e,n),iu=l,au=u,ru=c,ju(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||ru||iu||(t=s||iu,n=ru,r=iu,ru=o||ru,iu=t,Iu(e,2),ru=n,iu=r),!o&&au||gu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Du(e,n))));break;case 19:Ou(t,e,n),ju(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Du(e,t)));break;case 30:a&512&&(iu||r===null||Tl(r,r.return)),a=Bt(),o=uu,s=(n&335544064)===n,c=e.memoizedProps,uu=s&&fi(c.default,c.update)!==`none`,Ou(t,e,n),ju(e),s&&r!==null&&zt&&(e.flags|=4),uu=o,zt=a;break;case 21:break;case 7:a&512&&(iu||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Ou(t,e,n),ju(e)}}function ju(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Al(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(kl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(rn(l,``),n.flags&=-33),Il(e,Pl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ch=!0,t.reset(),Ch=!1),e=e.sibling}}function Nu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Pu(t,e),t=t.sibling;else nu(t,!1)}function Pu(e,t){var n=e.alternate;if(n===null)Jl(e,!1);else switch(e.tag){case 3:if(fu=lu=!1,Hl(),Nu(t,e),!lu&&!du){if(e=Vl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Np(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),fu=!0}Vl=null;break;case 5:Nu(t,e);break;case 4:r=lu,lu=!1,Nu(t,e),lu&&(du=!0),lu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Nu(t,e):Jl(e,!1));break;case 30:r=lu,i=Hl(),lu=!1,Nu(t,e),lu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=ui(a,o),o=ui(n.memoizedProps,o);var s=fi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ul=0,t=tu(e,n,t,o,s,a,!0),Ul!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Rd(e,e.memoizedProps.onUpdate),Vl=i):i!==null&&(i.push.apply(i,Vl),Vl=i),lu=e.flags&32?!0:r;break;default:Nu(t,e)}}function Fu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hu(e,t.alternate,t),t=t.sibling}function Iu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Iu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Iu(n,r);break;case 27:r&2&&Cm(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Iu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||iu||i.parentNode.removeChild(i),Iu(n,r);break;case 22:n.memoizedState===null&&Iu(n,r);break;case 30:Tl(n,n.return),Iu(n,r);break;case 7:Tl(n,n.return);default:Iu(n,r)}e=e.sibling}}function Lu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Lu(i,a,n),bl(4,a);break;case 1:if(Lu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)vo(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Lu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ru||$m(Dm(c.ownerDocument),a.type,c),Lu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Lu(i,a,n);break;case 31:Lu(i,a,n),s&&o&4&&wu(i,a);break;case 13:Lu(i,a,n),s&&o&4&&Tu(i,a);break;case 22:a.memoizedState===null&&Lu(i,a,n),wl(a,a.return);break;case 30:Lu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Lu(i,a,n)}t=t.sibling}}function Ru(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Da(n))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Bu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Vu(e,t,n,r),t=t.sibling;else i&&eu(t)}function Vu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$l(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Bu(e,t,n,r),a&2048&&bl(9,t);break;case 1:Bu(e,t,n,r);break;case 3:Bu(e,t,n,r),i&&fu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Da(a)));break;case 12:if(a&2048){Bu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else Bu(e,t,n,r);break;case 31:Bu(e,t,n,r);break;case 13:Bu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&$l(t),o._visibility&2?Bu(e,t,n,r):(o._visibility|=2,Hu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&$l(s),o._visibility&2?Bu(e,t,n,r):Uu(e,t)),a&2048&&Ru(s,t);break;case 24:Bu(e,t,n,r),a&2048&&zu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Kl(a.child,!0),Kl(t.child,!0))),Bu(e,t,n,r);break;default:Bu(e,t,n,r)}}function Hu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Hu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Hu(a,o,s,c,i)):u._visibility&2?Hu(a,o,s,c,i):Uu(a,o),i&&l&2048&&Ru(o.alternate,o);break;case 24:Hu(a,o,s,c,i),i&&l&2048&&zu(o.alternate,o);break;default:Hu(a,o,s,c,i)}t=t.sibling}}function Uu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Uu(n,r),i&2048&&Ru(r.alternate,r);break;case 24:Uu(n,r),i&2048&&zu(r.alternate,r);break;default:Uu(n,r)}t=t.sibling}}var Wu=8192;function Gu(e,t,n){if(e.subtreeFlags&Wu)for(e=e.child;e!==null;)Ku(e,t,n),e=e.sibling}function Ku(e,t,n){switch(e.tag){case 26:Gu(e,t,n),e.flags&Wu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ih(n,e)):ah(n,ku,e.memoizedState,e.memoizedProps));break;case 5:Gu(e,t,n),e.flags&Wu&&(e=e.stateNode,(t&335544128)===t&&ih(n,e));break;case 3:case 4:var r=ku;ku=Dm(e.stateNode.containerInfo),Gu(e,t,n),ku=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Wu,Wu=16777216,Gu(e,t,n),Wu=r):Gu(e,t,n));break;case 30:if((e.flags&Wu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Gu(e,t,n);break;default:Gu(e,t,n)}}function qu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yu(e),e=e.sibling}function Yu(e){switch(e.tag){case 0:case 11:case 15:Ju(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Ju(e);break;case 12:Ju(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xu(e)):Ju(e);break;default:Ju(e)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cu=r,Zu(r,e)}qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Xu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(t));break;default:Xu(t)}e=e.sibling}}function Zu(e,t){for(;cu!==null;){var n=cu;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cu=r;else a:for(n=e;cu!==null;){r=cu;var i=r.sibling,a=r.return;if(yu(r),r===n){cu=null;break a}if(i!==null){i.return=a,cu=i;break a}cu=a}}}var Qu={getCacheForType:function(e){var t=ya(Ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ya(Ta).controller.signal}},$u=typeof WeakMap==`function`?WeakMap:Map,ed=0,td=null,nd=null,rd=0,id=0,ad=null,od=!1,sd=!1,cd=!1,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=null,_d=null,vd=!1,yd=0,bd=0,xd=1/0,Sd=null,Cd=null,wd=0,Td=null,Ed=null,Dd=0,Od=0,kd=null,Ad=null,jd=null,Md=null,Nd=null,Pd=0,Fd=null;function Id(){return ed&2&&rd!==0?rd&-rd:H.T===null?pt():zf()}function Ld(){if(md===0){if(!(rd&536870912)||Qi){var e=Ze;Ze<<=1,!(Ze&3932160)&&(Ze=262144),md=e}else md=536870912}return e=To.current,e!==null&&(e.flags|=32),md}function Rd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Vp(ui(e.memoizedProps,n))),Md===null&&(Md=[]),Md.push(t.bind(null,r))}}function zd(e,t,n){(e===td&&(id===2||id===9)||e.cancelPendingCommit!==null)&&(Kd(e,0),Ud(e,rd,md,!1)),ot(e,n),ed&2&&e===td||(e===td&&(!(ed&2)&&(fd|=n),ud===4&&Ud(e,rd,md,!1)),jf(e))}function Bd(e,t,n){if(ed&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||tt(e,t),a=r?ef(e,t):Qd(e,t,!0),o=r;do{if(a===0){sd&&!r&&Ud(e,t,0,!1);break}if(n=e.current.alternate,o&&!Hd(n))a=Qd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=gd;var l=c.current.memoizedState.isDehydrated;if(l&&(Kd(c,s).flags|=256),s=Qd(c,s,!1),s!==2&&s!==6){if(cd&&!l){c.errorRecoveryDisabledLanes|=o,fd|=o,a=4;break a}o=_d,_d=a,o!==null&&(_d===null?_d=o:_d.push.apply(_d,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Kd(e,0),Ud(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ud(r,t,md,!od);break a;case 2:_d=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=yd+300-Pe(),10<a)){if(Ud(r,t,md,!od),et(r,0,!0)!==0)break a;Dd=t,r.timeoutHandle=Cp(Vd.bind(null,r,n,_d,Sd,vd,t,md,fd,hd,od,o,`Throttled`,-0,0),a);break a}Vd(r,n,_d,Sd,vd,t,md,fd,hd,od,o,null,-0,0)}break}}while(1);jf(e)}function Vd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fn},zl=null,Ku(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=lh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?yd-Pe():(a&4194048)===a?bd-Pe():0,m=sh(d,m),m!==null)?(Dd=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ud(e,a,o,!l)):sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Hd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ud(e,t,n,r){t=nt(e,t),t&=~pd,t&=~fd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function Wd(){return ed&6?!0:(Mf(0,!1),!1)}function Gd(){if(nd!==null){if(id===0)var e=nd.return;else e=nd,da=ua=null,ts(e),$a=null,eo=0,e=nd;for(;e!==null;)yl(e.alternate,e),e=e.return;nd=null}}function Kd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,wp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Dd=0,Gd(),td=e,nd=n=Di(e.current,null),rd=t,id=0,ad=null,od=!1,sd=tt(e,t),cd=!1,hd=md=pd=fd=dd=ud=0,_d=gd=null,vd=!1,ld=nt(e,t),_i(),n}function qd(e,t){Lo=null,H.H=fc,t===Ua||t===Ga?(t=Za(),id=3):t===Wa?(t=Za(),id=4):id=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ad=t,nd===null&&(ud=1,wc(e,Fi(t,e.current)))}function Jd(){var e=To.current;return e===null?!0:(rd&4194048)===rd?Eo===null:(rd&62914560)===rd||rd&536870912?e===Eo:!1}function Yd(){var e=H.H;return H.H=fc,e===null?fc:e}function Xd(){var e=H.A;return H.A=Qu,e}function Zd(){ud=4,od||(rd&4194048)!==rd&&To.current!==null||(sd=!0),!(dd&134217727)&&!(fd&134217727)||td===null||Ud(td,rd,md,!1)}function Qd(e,t,n){var r=ed;ed|=2;var i=Yd(),a=Xd();(td!==e||rd!==t)&&(Sd=null,Kd(e,t)),t=!1;var o=ud;a:do try{if(id!==0&&nd!==null){var s=nd,c=ad;switch(id){case 8:Gd(),o=6;break a;case 3:case 2:case 9:case 6:To.current===null&&(t=!0);var l=id;if(id=0,ad=null,rf(e,s,c,l),n&&sd){o=0;break a}break;default:l=id,id=0,ad=null,rf(e,s,c,l)}}$d(),o=ud;break}catch(t){qd(e,t)}while(1);return t&&e.shellSuspendCounter++,da=ua=null,ed=r,H.H=i,H.A=a,nd===null&&(td=null,rd=0,_i()),o}function $d(){for(;nd!==null;)K(nd)}function ef(e,t){var n=ed;ed|=2;var r=Yd(),a=Xd();td!==e||rd!==t?(Sd=null,xd=Pe()+500,Kd(e,t)):sd=tt(e,t);a:do try{if(id!==0&&nd!==null){t=nd;var o=ad;b:switch(id){case 1:id=0,ad=null,rf(e,t,o,1);break;case 2:case 9:if(qa(o)){id=0,ad=null,nf(t);break}t=function(){id!==2&&id!==9||td!==e||(id=7),jf(e)},o.then(t,t);break a;case 3:id=7;break a;case 4:id=5;break a;case 7:qa(o)?(id=0,ad=null,nf(t)):(id=0,ad=null,rf(e,t,o,7));break;case 5:var s=null;switch(nd.tag){case 26:s=nd.memoizedState;case 5:case 27:var c=nd;if(s?nh(s):c.stateNode.complete){id=0,ad=null;var l=c.sibling;if(l!==null)nd=l;else{var u=c.return;u===null?nd=null:(nd=u,af(u))}break b}}id=0,ad=null,rf(e,t,o,5);break;case 6:id=0,ad=null,rf(e,t,o,6);break;case 8:Gd(),ud=6;break a;default:throw Error(i(462))}}tf();break}catch(t){qd(e,t)}while(1);return da=ua=null,H.H=r,H.A=a,ed=n,nd===null?(td=null,rd=0,_i(),ud):0}function tf(){for(;nd!==null&&!Me();)K(nd)}function K(e){var t=ul(e.alternate,e,ld);e.memoizedProps=e.pendingProps,t===null?af(e):nd=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,rd);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,rd);break;case 5:ts(t);var r=t;r===Xi&&(Qi?(ia(r),r.tag===5&&r.stateNode!=null&&(Zi=r.stateNode)):(ia(r),Qi=!0));default:yl(n,t),t=nd=Oi(t,ld),t=ul(n,t,ld)}e.memoizedProps=e.pendingProps,t===null?af(e):nd=t}function rf(e,t,n,r){da=ua=null,ts(t),$a=null,eo=0;var i=t.return;try{if(kc(e,i,t,n,rd)){ud=1,wc(e,Fi(n,e.current)),nd=null;return}}catch(t){if(i!==null)throw nd=i,t;ud=1,wc(e,Fi(n,e.current)),nd=null;return}t.flags&32768?(Qi||r===1?e=!0:sd||rd&536870912?e=!1:(od=e=!0,(r===2||r===9||r===3||r===6)&&(r=To.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,od);return}e=t.return;var n=_l(t.alternate,t,ld);if(n!==null){nd=n;return}if(t=t.sibling,t!==null){nd=t;return}nd=t=e}while(t!==null);ud===0&&(ud=5)}function of(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,nd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nd=e;return}nd=e=n}while(e!==null);ud=6,nd=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(wd!==0);if(ed&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===td&&(nd=td=null,rd=0),Ed=t,Td=e,Dd=n,kd=a,Ad=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Od=s,s|=gi,st(e,n,s,r,i,a),Md=null,(n&335544064)===n?(Nd=Aa(e),r=10262):(Nd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(Re,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=H.T,H.T=null,i=oe.p,oe.p=2,a=ed,ed|=4;try{pu(e,t,n)}finally{ed=a,oe.p=i,H.T=r}}wd=1,Rl?jd=zp(o,e.containerInfo,Nd,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(wd!==0){var t=Td.onRecoverableError;t(e,{componentStack:null})}}function uf(){wd===3&&(wd=0,Pu(Ed,Td),wd=4)}function df(){if(wd===1){wd=0;var e=Td,t=Ed,n=Dd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=H.T,H.T=null;var i=oe.p;oe.p=2;var a=ed;ed|=4;try{uu=du=!1,Au(t,e,n),n=hp;var o=Br(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&zr(s.ownerDocument.documentElement,s)){if(c!==null&&Vr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Rr(s,h),v=Rr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Ch=!!mp,hp=mp=null}finally{ed=a,oe.p=i,H.T=r}}e.current=t,wd=2}}function ff(){if(wd===2){wd=0;var e=Td,t=Ed,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=H.T,H.T=null;var r=oe.p;oe.p=2;var i=ed;ed|=4;try{hu(e,t.alternate,t)}finally{ed=i,oe.p=r,H.T=n}}wd=3}}function pf(){if(wd===4||wd===3){wd=0;var e=jd;jd=null,Ne();var t=Td,n=Ed,r=Dd,i=Ad,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?wd=5:(wd=0,Ed=Td=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Cd=null),ft(r),n=n.stateNode,We&&typeof We.onCommitFiberRoot==`function`)try{We.onCommitFiberRoot(Ue,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=H.T,a=oe.p,oe.p=2,H.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{H.T=n,oe.p=a}}if(i=Md,o=Nd,Nd=null,i!==null&&(Md=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Dd&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Fd?Pd++:(Pd=0,Fd=t):(Pd=0,Fd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function hf(){return jd!==null&&(jd.skipTransition(),jd=null),df(),ff(),pf(),gf()}function gf(){if(wd!==5)return!1;var e=Td,t=Od;Od=0;var n=ft(Dd),r=H.T,a=oe.p;try{oe.p=32>n?32:n,H.T=null,n=kd,kd=null;var o=Td,s=Dd;if(wd=0,Ed=Td=null,Dd=0,ed&6)throw Error(i(331));var c=ed;if(ed|=4,Yu(o.current),Vu(o,o.current,s,n),ed=c,Mf(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{oe.p=a,H.T=r,mf(e,t)}}function _f(e,t,n){t=Fi(n,t),t=Ec(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(ot(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cd===null||!Cd.has(r))){e=Fi(n,e),n=Dc(2),r=fo(t,n,2),r!==null&&(Oc(n,r,t,e),ot(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(cd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,td===e&&(rd&n)===n&&(ud===4||ud===3&&(rd&62914560)===rd&&300>Pe()-yd?ed&2?pd|=n:Kd(e,0):pd|=n,hd===rd&&(hd=0)),jf(e)}function xf(e,t){t===0&&(t=it()),e=bi(e,t),e!==null&&(ot(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return Ae(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=rd,a=et(r,r===td?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&Sp()&&(e=Af);for(var t=Pe(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}wd!==0&&wd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=td,n=rd,n=et(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(id===2||id===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&je(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||tt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&je(r),ft(n)){case 2:case 8:n=Le;break;case 32:n=Re;break;case 268435456:n=Be;break;default:n=Re}return r=If.bind(null,e),n=Ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&je(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(wd!==0&&wd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=rd;return r=et(e,e===td?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Bd(e,r,t),Ff(e,Pe()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;Bd(e,t,!0)}function Rf(){Dp(function(){ed&6?Ae(Ie,Nf):Pf()})}function zf(){if(Af===0){var e=Na;e===0&&(e=Xe,Xe<<=1,!(Xe&261888)&&(Xe=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:dn(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[_t]||null).action),o=r.submitter;o&&(t=(t=o[_t]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Nn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Hf=0;Hf<si.length;Hf++){var Uf=si[Hf];ci(Uf.toLowerCase(),`on`+(Uf[0].toUpperCase()+Uf.slice(1)))}ci($r,`onAnimationEnd`),ci(ei,`onAnimationIteration`),ci(ti,`onAnimationStart`),ci(`dblclick`,`onDoubleClick`),ci(`focusin`,`onFocus`),ci(`focusout`,`onBlur`),ci(ni,`onTransitionRun`),ci(ri,`onTransitionStart`),ci(ii,`onTransitionCancel`),ci(ai,`onTransitionEnd`),Pt(`onMouseEnter`,[`mouseout`,`mouseover`]),Pt(`onMouseLeave`,[`mouseout`,`mouseover`]),Pt(`onPointerEnter`,[`pointerout`,`pointerover`]),Pt(`onPointerLeave`,[`pointerout`,`pointerover`]),Nt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Nt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Nt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Nt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Nt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Wf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Gf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Wf));function Kf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){pi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){pi(e)}i.currentTarget=null,a=c}}}}function qf(e,t){var n=t[yt];n===void 0&&(n=t[yt]=new Set);var r=e+`__bubble`;n.has(r)||(Zf(t,e,2,!1),n.add(r))}function Jf(e,t,n){var r=0;t&&(r|=4),Zf(n,e,r,t)}var Yf=`_reactListening`+Math.random().toString(36).slice(2);function Xf(e){if(!e[Yf]){e[Yf]=!0,jt.forEach(function(t){t!==`selectionchange`&&(Gf.has(t)||Jf(t,!1,e),Jf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yf]||(t[Yf]=!0,Jf(`selectionchange`,!1,t))}}function Zf(e,t,n,r){switch(Ah(t)){case 2:var i=wh;break;case 8:i=Th;break;default:i=Eh}n=i.bind(null,t,n,e),i=void 0,!Sn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Tt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}yn(function(){var r=a,i=mn(n),s=[];a:{var c=oi.get(e);if(c!==void 0){var l=Nn,u=e;switch(e){case`keypress`:if(On(n)===0)break a;case`keydown`:case`keyup`:l=Xn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=$n;break;case $r:case ei:case ti:l=Un;break;case ai:l=er;break;case`scroll`:case`scrollend`:l=Fn;break;case`wheel`:l=tr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Zn;break;case`submit`:l=Qn;break;case`toggle`:case`beforetoggle`:l=nr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=bn(m,p),g!=null&&d.push($f(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==pn&&(u=n.relatedTarget||n.fromElement)&&(Tt(u)||u[vt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Tt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Zn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Dt(c),h=l==null?u:Dt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Tt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,tp):null,c!==null&&np(s,u,c,d,!1),l!==null&&f!==null&&np(s,f,l,d,!0)))}a:{if(c=r?Dt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Sr;else if(gr(c)){if(Cr)_=Mr;else{_=Ar;var v=kr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&cn(r.elementType)&&(_=Sr):_=jr;if(_&&=_(e,r)){_r(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Dt(r):window,e){case`focusin`:(gr(v)||v.contentEditable===`true`)&&(Ur=v,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=Ur=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(s,n,i);break;case`selectionchange`:if(Hr)break;case`keydown`:case`keyup`:qr(s,n,i)}var y;if(ir)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else fr?ur(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(sr&&n.locale!==`ko`&&(fr||b!==`onCompositionStart`?b===`onCompositionEnd`&&fr&&(y=Dn()):(wn=i,Tn=`value`in wn?wn.value:wn.textContent,fr=!0)),v=ep(r,b),0<v.length&&(b=new G(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=dr(n),y!==null&&(b.data=y)))),(y=or?pr(e,n):mr(e,n))&&(b=ep(r,`onBeforeInput`),0<b.length&&(v=new G(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Kf(s,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ep(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=bn(e,n),i!=null&&r.unshift($f(e,i,a)),i=bn(e,t),i!=null&&r.push($f(e,i,a))),e.tag===3)return r;e=e.return}return[]}function tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=bn(n,a),l!=null&&o.unshift($f(n,l,c))):i||(l=bn(n,a),l!=null&&o.push($f(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function ap(e){return(typeof e==`string`?e:``+e).replace(rp,`
-`).replace(ip,``)}function op(e,t){return t=ap(t),ap(e)===t}function sp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&rn(e,``+r);else return;break;case`className`:Ht(e,`class`,r);break;case`tabIndex`:Ht(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ht(e,n,r);break;case`style`:sn(e,r,o);return;case`data`:if(t!==`object`){Ht(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&sp(e,t,`name`,a.name,a,null),sp(e,t,`formEncType`,a.formEncType,a,null),sp(e,t,`formMethod`,a.formMethod,a,null),sp(e,t,`formTarget`,a.formTarget,a,null)):(sp(e,t,`encType`,a.encType,a,null),sp(e,t,`method`,a.method,a,null),sp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=dn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=fn);return;case`onScroll`:r!=null&&qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&qf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=dn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:qf(`beforetoggle`,e),qf(`toggle`,e),Vt(e,`popover`,r);break;case`xlinkActuate`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ut(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ut(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Vt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=ln.get(n)||n,Vt(e,n,r);else return}zt=!0}function cp(e,t,n,r,a,o){switch(n){case`style`:sn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)rn(e,r);else if(typeof r==`number`||typeof r==`bigint`)rn(e,``+r);else return;break;case`onScroll`:r!=null&&qf(`scroll`,e);return;case`onScrollEnd`:r!=null&&qf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=fn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[_t]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}zt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Vt(e,n,r)}return}zt=!0}function lp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:qf(`error`,e),qf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,o,s,n,null)}}a&&sp(e,t,`srcSet`,n.srcSet,n,null),r&&sp(e,t,`src`,n.src,n,null);return;case`input`:qf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:sp(e,t,r,d,n,null)}}Qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in qf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:sp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&en(e,!!r,n,!0):en(e,!!r,t,!1);return;case`textarea`:for(s in qf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:sp(e,t,s,c,n,null)}nn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:sp(e,t,l,r,n,null)}return;case`dialog`:qf(`beforetoggle`,e),qf(`toggle`,e),qf(`cancel`,e),qf(`close`,e);break;case`iframe`:case`object`:qf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Wf.length;r++)qf(Wf[r],e);break;case`image`:qf(`error`,e),qf(`load`,e);break;case`details`:qf(`toggle`,e);break;case`embed`:case`source`:case`link`:qf(`error`,e),qf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,u,r,n,null)}return;default:if(cn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&cp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&sp(e,t,c,r,n,null))}var up={};function dp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||sp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(zt=!0),o=m;break;case`name`:m!==f&&(zt=!0),a=m;break;case`checked`:m!==f&&(zt=!0),u=m;break;case`defaultChecked`:m!==f&&(zt=!0),d=m;break;case`value`:m!==f&&(zt=!0),s=m;break;case`defaultValue`:m!==f&&(zt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&sp(e,t,p,m,r,f)}}Zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||sp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(zt=!0),p=o;break;case`defaultValue`:o!==l&&(zt=!0),c=o;break;case`multiple`:o!==l&&(zt=!0),s=o;default:o!==l&&sp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?en(e,!!n,n?[]:``,!1):en(e,!!n,t,!0)):en(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:sp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(zt=!0),p=a;break;case`defaultValue`:a!==o&&(zt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&sp(e,t,s,a,r,o)}tn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:sp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(zt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:sp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&sp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:sp(e,t,u,p,r,m)}return;default:if(cn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&cp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||cp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&sp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||sp(e,t,f,p,r,m)}function fp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function pp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&fp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&fp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var mp=null,hp=null;function gp(e){return e.nodeType===9?e:e.ownerDocument}function _p(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function vp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function yp(e,t,n,r){return n=gp(n).createElement(e),n[gt]=r,n[_t]=t,lp(n,e,t),kt(n),n}function bp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xp=null;function Sp(){var e=window.event;return e&&e.type===`popstate`?e!==xp&&(xp=e,!0):(xp=null,!1)}var Cp=typeof setTimeout==`function`?setTimeout:void 0,wp=typeof clearTimeout==`function`?clearTimeout:void 0,Tp=typeof Promise==`function`?Promise:void 0,Ep=typeof requestAnimationFrame==`function`?requestAnimationFrame:Cp,Dp=typeof queueMicrotask==`function`?queueMicrotask:Tp===void 0?Cp:function(e){return Tp.resolve(null).then(e).catch(Op)};function Op(e){setTimeout(function(){throw e})}function kp(e){return e===`head`}function Ap(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Jh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)wm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,wm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&wm(e.ownerDocument.body)}n=i}while(n);Jh(t)}function jp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Mp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Np(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Pp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Fp(e){return Pp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ip(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Pp(t,n,e)}function Lp(e){return e.documentElement.clientHeight}function Rp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function zp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Lp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=rh(f),u>oh){s.length=o;break}f=new Promise(Rp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Bp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Bp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Bp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Bp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Vp(e){return{name:e,group:new Bp(`group`,e),imagePair:new Bp(`image-pair`,e),old:new Bp(`old`,e),new:new Bp(`new`,e)}}function Hp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Hp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(qp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Gp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Up,e,s,r)}this._eventListeners=a}};function Up(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Hp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=qp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Gp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Wp,e,n,i),r.splice(t,1),a!==null&&a()}};function Wp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Gp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Kp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function qp(e,t,n,r){if(e.length===0)return-1;r=Kp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Kp(a.optionsOrUseCapture)===r)return i}return-1}Hp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Gp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Gp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Hp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag!==6&&(e=_(e),bm(e,t))}Hp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Yp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Jp(t[n],e);n--);};function Yp(e,t){return t.push(e),!1}Hp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=gp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Xp,e,void 0,void 0))};function Xp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Hp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0)};function Zp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Hp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0);for(var n=t=0;n<$p.length;n++){var r=$p[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):$p[t++]=r}$p.length=t}};function Qp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var $p=[],em=!1;function tm(e,t,n){$p.push({fragmentInstance:e,observer:t,instance:n}),em||(em=!0,xm(function(){em=!1;var e=$p;$p=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Hp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,nm,e,void 0,void 0),e};function nm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Hp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Hp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Yp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||rm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function rm(e,t,n,r,i){var a=Tt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function im(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Hp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Yp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),im(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),im(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function am(e,t){return e=_(e),om(e,t),!1}function om(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function sm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Gp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<$p.length;i++){var a=$p[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&($p[r++]=a)}$p.length=r,n.observe(e)}),om(e,t))}function cm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Gp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?tm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function lm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lm(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function um(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gm(e.nextSibling),e===null)break}return null}function dm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gm(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gm(e.nextSibling),e===null))return null;return e}function pm(e){return e.data===`$?`||e.data===`$~`}function mm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _m=null;function vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ym(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function xm(e){Ep(function(){Ep(function(t){return e(t)})})}function Sm(e,t,n){switch(t=gp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Cm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&sp(e,t,r,null,up,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===fn&&(e.onclick=null),wt(e)}function wm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var Tm=new Map,Em=new Set;function Dm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Om=oe.d;oe.d={f:km,r:Am,D:Nm,C:Pm,L:Fm,m:Im,X:Rm,S:Lm,M:zm};function km(){var e=Om.f(),t=Wd();return e||t}function Am(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Om.r(e)}var jm=typeof document>`u`?null:document;function Mm(e,t,n){var r=jm;if(r&&typeof t==`string`&&t){var i=Xt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Em.has(i)||(Em.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),lp(t,`link`,e),kt(t),r.head.appendChild(t)))}}function Nm(e){Om.D(e),Mm(`dns-prefetch`,e,null)}function Pm(e,t){Om.C(e,t),Mm(`preconnect`,e,t)}function Fm(e,t,n){Om.L(e,t,n);var r=jm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Xt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Xt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Xt(n.imageSizes)+`"]`)):i+=`[href="`+Xt(e)+`"]`;var a=i;switch(t){case`style`:a=Vm(e);break;case`script`:a=Gm(e)}if(!(Tm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Tm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Hm(a))||t===`script`&&r.querySelector(Km(a))))){var o=r.createElement(`link`);lp(o,`link`,e),t===`style`&&(o[Ct]=!0,o.onload=o.onerror=function(){At(o)}),kt(o),r.head.appendChild(o)}}}function Im(e,t){Om.m(e,t);var n=jm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Xt(r)+`"][href="`+Xt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Gm(e)}if(!Tm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Tm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Km(a)))return}r=n.createElement(`link`),lp(r,`link`,e),kt(r),n.head.appendChild(r)}}}function Lm(e,t,n){Om.S(e,t,n);var r=jm;if(r&&e){var i=Ot(r).hoistableStyles,a=Vm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Hm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Tm.get(a))&&Ym(e,n);var c=o=r.createElement(`link`);kt(c),lp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Jm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rm(e,t){Om.X(e,t);var n=jm;if(n&&e){var r=Ot(n).hoistableScripts,i=Gm(e),a=r.get(i);a||(a=n.querySelector(Km(i)),a||(e=w({src:e,async:!0},t),(t=Tm.get(i))&&Xm(e,t),a=n.createElement(`script`),kt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zm(e,t){Om.M(e,t);var n=jm;if(n&&e){var r=Ot(n).hoistableScripts,i=Gm(e),a=r.get(i);a||(a=n.querySelector(Km(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Tm.get(i))&&Xm(e,t),a=n.createElement(`script`),kt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t,n,r){var a=(a=he.current)?Dm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Vm(n.href),t=Ot(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Vm(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Hm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Tm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tm.set(e,o)),Wm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Gm(n),t=Ot(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vm(e){return`href="`+Xt(e)+`"`}function Hm(e){return`link[rel="stylesheet"][`+e+`]`}function Um(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Wm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ct]){r.loading=1;return}}else t=e.createElement(`link`),t[Ct]=!0,t.onload=t.onerror=At.bind(null,t),lp(t,`link`,n),kt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Gm(e){return`[src="`+Xt(e)+`"]`}function Km(e){return`script[async]`+e}function qm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Xt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),lp(r,`style`,a),Jm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Vm(n.href);var o=e.querySelector(Hm(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=Um(n),(a=Tm.get(a))&&Ym(r,a),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),lp(o,`link`,r),t.state.loading|=4,Jm(o,n.precedence,e),t.instance=o;case`script`:return o=Gm(n.src),(a=e.querySelector(Km(o)))?(t.instance=a,kt(a),a):(r=n,(a=Tm.get(o))&&(r=w({},n),Xm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),lp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Jm(r,n.precedence,e));return t.instance}function Jm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ym(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Zm=null;function Qm(e,t,n){if(Zm===null){var r=new Map,i=Zm=new Map;i.set(n,r)}else i=Zm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[gt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function $m(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function eh(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function th(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function nh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function rh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ih(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=rh(t),e.suspenseyImages.push(t)),e=uh.bind(e),t.decode().then(e,e))}function ah(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Vm(r.href),a=t.querySelector(Hm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=lh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=Um(r),(i=Tm.get(i))&&Ym(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),lp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=lh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var oh=0;function sh(e,t){return e.stylesheets&&e.count===0&&fh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&fh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&oh===0&&(oh=62500*pp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>oh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ch(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)fh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function lh(){this.count--,ch(this)}function uh(){this.imgCount--,ch(this)}var dh=null;function fh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,dh=new Map,t.forEach(ph,e),dh=null,lh.call(e))}function ph(e,t){if(!(t.state.loading&4)){var n=dh.get(e);if(n)var r=n.get(null);else{n=new Map,dh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=lh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var mh={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function hh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function gh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new hh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ti(3,null,null,t),e.current=a,a.stateNode=e,t=Ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},co(a),e}function _h(e){return e?(e=Ci,e):Ci}function vh(e,t,n,r,i,a){i=_h(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(zd(n,e,t),po(n,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bh(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function xh(e){if(e.tag===13||e.tag===31){var t=bi(e,67108864);t!==null&&zd(t,e,67108864),bh(e,67108864)}}function Sh(e){if(e.tag===13||e.tag===31){var t=Id();t=dt(t);var n=bi(e,t);n!==null&&zd(n,e,t),bh(e,t)}}var Ch=!0;function wh(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=2,Eh(e,t,n,r)}finally{oe.p=a,H.T=i}}function Th(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=8,Eh(e,t,n,r)}finally{oe.p=a,H.T=i}}function Eh(e,t,n,r){if(Ch){var i=Dh(r);if(i===null)Qf(e,t,r,Oh,n),zh(e,r);else if(Vh(i,e,t,n,r))r.stopPropagation();else if(zh(e,r),t&4&&-1<Rh.indexOf(e)){for(;i!==null;){var a=Et(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=$e(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ke(o);s.entanglements[1]|=c,o&=~c}jf(a),!(ed&6)&&(xd=Pe()+500,Mf(0,!1))}}break;case 31:case 13:s=bi(a,2),s!==null&&zd(s,a,2),Wd(),bh(a,2)}if(a=Dh(r),a===null&&Qf(e,t,r,Oh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Qf(e,t,r,null,n)}}function Dh(e){return e=mn(e),kh(e)}var Oh=null;function kh(e){if(Oh=null,e=Tt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oh=e,null}function Ah(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Fe()){case Ie:return 2;case Le:return 8;case Re:case ze:return 32;case Be:return 268435456;default:return 32}default:return 32}}var jh=!1,Mh=null,Nh=null,Ph=null,Fh=new Map,Ih=new Map,Lh=[],Rh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function zh(e,t){switch(e){case`focusin`:case`focusout`:Mh=null;break;case`dragenter`:case`dragleave`:Nh=null;break;case`mouseover`:case`mouseout`:Ph=null;break;case`pointerover`:case`pointerout`:Fh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ih.delete(t.pointerId)}}function Bh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Et(t),t!==null&&xh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vh(e,t,n,r,i){switch(t){case`focusin`:return Mh=Bh(Mh,e,t,n,r,i),!0;case`dragenter`:return Nh=Bh(Nh,e,t,n,r,i),!0;case`mouseover`:return Ph=Bh(Ph,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Fh.set(a,Bh(Fh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ih.set(a,Bh(Ih.get(a)||null,e,t,n,r,i)),!0}return!1}function Hh(e){var t=Tt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,mt(e.priority,function(){Sh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){Sh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pn=r,n.target.dispatchEvent(r),pn=null}else return t=Et(n),t!==null&&xh(t),e.blockedOn=n,!1;t.shift()}return!0}function q(e,t,n){Uh(e)&&n.delete(t)}function Wh(){jh=!1,Mh!==null&&Uh(Mh)&&(Mh=null),Nh!==null&&Uh(Nh)&&(Nh=null),Ph!==null&&Uh(Ph)&&(Ph=null),Fh.forEach(q),Ih.forEach(q)}function Gh(e,n){e.blockedOn===n&&(e.blockedOn=null,jh||(jh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wh)))}var Kh=null;function qh(e){Kh!==e&&(Kh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Kh===e&&(Kh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(kh(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Jh(e){function t(t){return Gh(t,e)}Mh!==null&&Gh(Mh,e),Nh!==null&&Gh(Nh,e),Ph!==null&&Gh(Ph,e),Fh.forEach(t),Ih.forEach(t);for(var n=0;n<Lh.length;n++){var r=Lh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lh.length&&(n=Lh[0],n.blockedOn===null);)Hh(n),n.blockedOn===null&&Lh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[_t]||null;if(typeof a==`function`)o||qh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[_t]||null)s=o.formAction;else if(kh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),qh(n)}}}function Yh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Xh(e){this._internalRoot=e}Zh.prototype.render=Xh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;vh(n,Id(),e,t,null,null)},Zh.prototype.unmount=Xh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vh(e.current,2,null,e,null,null),Wd(),t[vt]=null}};function Zh(e){this._internalRoot=e}Zh.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lh.length&&t!==0&&t<Lh[n].priority;n++);Lh.splice(n,0,e),n===0&&Hh(e)}};var Qh=n.version;if(Qh!==`19.3.0`)throw Error(i(527,Qh,`19.3.0`));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var $h={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:H,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eg.isDisabled&&eg.supportsFiber)try{Ue=eg.inject($h),We=eg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=Sc,c=Cc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=gh(e,1,!1,null,null,n,r,null,o,s,c,Yh),e[vt]=t.current,Xf(e),new Xh(t)}})),y1=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v1()}))();function b1({active:e,summary:t,generating:n,writing:r,scroll:i,children:a}){let o=(0,U.useRef)(null),s=(0,U.useRef)(null),[c,l]=(0,U.useState)(!1);(0,U.useEffect)(()=>{if(!e||!n||!o.current){l(!1);return}let t=!1,r=()=>l(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,r()});return i.observe(o.current),document.addEventListener(`visibilitychange`,r),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,r)}},[e,n]);let u=K$(i,s,e&&n&&c);return(0,K.jsxs)(`div`,{ref:o,className:`note-reading-frame`,hidden:!e,"data-generating":n,"data-active":e&&n&&c,children:[(0,K.jsx)(`div`,{className:`note-reading-clip`,children:(0,K.jsx)(Ah,{enabled:e,children:(0,K.jsx)(`section`,{ref:i,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,K.jsx)(`div`,{ref:s,className:`note-page-width note-notes-body`,children:a})})})}),(0,K.jsx)(`span`,{className:`ask-border note-summary-rim`,"data-testid":`note-summary-rim`,"aria-hidden":`true`}),r&&!u.behind&&(0,K.jsx)(`span`,{className:`note-summary-status`,"aria-hidden":`true`,children:W(`Generating notes…`)}),u.behind&&(0,K.jsxs)(`button`,{type:`button`,className:`note-latest`,"data-testid":`note-summary-latest`,onClick:u.latest,children:[(0,K.jsx)(Gh,{size:12,"aria-hidden":`true`}),W(`Latest`)]})]})}function x1(){let[e,t]=(0,U.useState)(),[n,r]=(0,U.useState)(!1),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(!1),[c,l]=(0,U.useState)(!1);(0,U.useEffect)(()=>{let e,n=!0,i=n=>{e=n,t(n),n.notesError||l(!1),!n.notesDownloading&&!n.notesError&&r(!1)},a=window.yogurt.setup.onState(i);return window.yogurt.setup.state().then(t=>{n&&!e&&i(t)}),()=>{n=!1,a()}},[]);let u=async()=>{s(!0),l(!1);try{await window.yogurt.setup.retry()}catch{l(!0)}finally{s(!1)}};if(!e||!e.notesDownloading&&!e.notesError)return null;let d=!!e.notesError,f=d?W(`AI download stopped`):W(`Downloading AI · {percent}`,{percent:YX(e.notesFraction??0)}),p=XX(e);return(0,K.jsxs)(`span`,{className:`notes-download-status flex min-w-0 items-center gap-1.5`,children:[(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,K.jsxs)(dY,{open:n,onOpenChange:r,children:[(0,K.jsxs)(DY,{"data-testid":`notes-setup-open`,title:d?e.notesError:p.title,onClick:e=>a(e.detail>0),className:`bar-btn flex min-w-0 items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,K.jsx)(`span`,{"aria-hidden":`true`,"data-failed":d,className:`notes-download-dot`}),(0,K.jsx)(`span`,{className:`truncate`,children:f}),(0,K.jsx)(pg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),(0,K.jsx)(AY,{children:(0,K.jsx)(gX,{side:`top`,align:`start`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,K.jsx)(SX,{"data-testid":`notes-setup`,"data-failed":d,"data-pointer":i,"data-anchor":`bottom-start`,"aria-label":W(d?`AI download stopped`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:d?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{role:`status`,children:c?W(`Couldn't restart the download. Try again.`):e.notesError}),(0,K.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`inline-error-action notes-download-retry`,disabled:o,onClick:()=>void u(),children:W(o?`Retrying…`:`Try again`)})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{children:p.detail}),(0,K.jsx)(`p`,{className:`text-muted`,children:W(`You can record now. Yogurt writes your notes and answers questions once this finishes.`)})]})})})})]})]})}function S1(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`||e.enhanced==null)||t.rewrittenFrom!==void 0&&(e.enhanced??``)===t.rewrittenFrom?{view:{...t,mine:e.mine}}:{view:{...t,mine:e.mine,enhanced:e.enhanced},...t.rewrittenFrom===void 0?{}:{keptEdits:!0}}:{view:t}}Wm.transition.check,Wm.transition.uncheck,{...Wm.spring.checkPop},Wm.transition.check.delay,Wm.transition.popOut,Wm.spring.bounce;var C1=Wm.scale.icon,w1=2,T1=`path, line, polyline, polygon, circle, ellipse, rect`,E1=new WeakMap,D1=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function O1(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?D1.forEach((n,r)=>{let i=t.dash[r];i==null?e.removeAttribute(n):e.setAttribute(n,i)}):(e.setAttribute(`pathLength`,`1`),e.setAttribute(`stroke-dasharray`,`${Math.min(1,Math.max(0,n))} 1`),e.setAttribute(`stroke-dashoffset`,`0`))),t.mode===`pop`){let i=r||t.reduce||n===0&&t.blur>0;e.style.transform=i?t.inlineTransform:`scale(${t.from+(1-t.from)*n})`,t.blur&&(e.style.filter=i?t.inlineFilter:`blur(${t.blur*(1-Math.min(1,Math.max(0,n)))}px)`)}e.style.opacity=r?t.inlineOpacity:String(t.opacity*Math.min(1,Math.max(0,n)))}var k1=({kind:e,animation:t})=>e===`dot`||t===`pop`;function A1(e,t){return k1(t)?e:e.flatMap(e=>{let t=e.matches(T1)?[e]:Array.from(e.querySelectorAll(T1));return t.length>0?t:[e]})}function j1(e,t,n){let r=E1.get(e);if(!r){let i=k1(t);i&&t.kind===`check`&&e instanceof HTMLElement&&getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),r={mode:i?`pop`:e instanceof SVGGeometryElement?`stroke`:`fade`,from:t.kind===`dot`?0:C1,blur:t.kind===`dot`?0:w1,progress:xo(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:D1.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>O1(e,a,t)),E1.set(e,r)}return r.reduce=n,r}function M1(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(T1))]){let t=E1.get(e);t&&(t.controls?.stop(),t.unsubscribe(),O1(e,t,1),E1.delete(e))}}function N1(e,t,n,r,i){let a=e.map(e=>{let a=!E1.has(e),o=j1(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=om(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function P1(...e){return t=>{let n=e.map(e=>{if(typeof e==`function`)return e(t);e&&(e.current=t)});return()=>{n.forEach((t,n)=>{let r=e[n];typeof t==`function`?t():typeof r==`function`?r(null):r&&(r.current=null)})}}}var F1=`[data-slot="toast-icon"]`;function I1(e){return e.querySelector(F1)?.firstElementChild??null}function L1(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var R1=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function z1(e){if(!e||!e.isConnected)return null;let t=e.getBoundingClientRect();if(t.width===0&&t.height===0)return null;let n=getComputedStyle(e),r=e.cloneNode(!0);for(let e of[r,...r.querySelectorAll(`[id], [data-slot]`)])e.removeAttribute(`id`),e.removeAttribute(`data-slot`);if(r instanceof HTMLElement)for(let e of R1)r.style[e]=n[e];let i=e.getAnimations().find(e=>e instanceof CSSAnimation)?.currentTime;return{element:r,rect:t,text:e.textContent??``,opacity:Number(n.opacity),filter:n.filter,color:n.color,time:typeof i==`number`?i:null}}function B1(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:z1(I1(e)),title:z1(L1(e,`aria-labelledby`)),description:z1(L1(e,`aria-describedby`))}}var V1=class extends U.Component{getSnapshotBeforeUpdate(e){return this.props.watch.some((t,n)=>!Object.is(t,e.watch[n]))?this.props.take():null}componentDidUpdate(e,t,n){n&&this.props.onUpdate(n)}render(){return this.props.children}},H1=[`success`,`error`];function U1(e,t,n,r,i){M1([e]);let a=H1.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(N1(A1([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;W1(e,(n+t.duration/2)*1e3,r)}}function W1(e,t,n){let{duration:r,ease:i}=n.transition.shake,a=`cubic-bezier(${i.join(`, `)})`;e.animate([0,-1,1,-.66,.66,-.33,0].map(e=>({transform:`translateX(${e*n.shift.shake}px)`,easing:a})),{duration:r*1e3,delay:t})}function G1(e,t,n){let{element:r,rect:i}=t,a=n.scale||1,o=e.ownerDocument.createElement(`div`);if(o.setAttribute(`aria-hidden`,`true`),o.inert=!0,Object.assign(o.style,{position:`absolute`,left:`${(i.left-n.root.left)/a-e.clientLeft}px`,top:`${(i.top-n.root.top)/a-e.clientTop}px`,width:`${i.width/a}px`,height:`${i.height/a}px`,margin:`0`,pointerEvents:`none`,color:t.color,opacity:String(t.opacity),filter:t.filter}),r instanceof SVGElement&&(r.setAttribute(`width`,`100%`),r.setAttribute(`height`,`100%`),r.style.display=`block`),r instanceof HTMLElement&&(r.style.margin=`0`,r.style.width=`100%`),o.append(r),e.append(o),t.time!==null)for(let e of r.getAnimations())e.currentTime=t.time;return o}var K1=e=>$m(e);function q1(e,t,n,r){let{duration:i,easing:a}=K1(n.transition.swap),o={opacity:e.style.opacity},s={opacity:0};o.filter=e.style.filter===`none`?`blur(0px)`:e.style.filter,s.filter=n.blur.icon,t&&!r&&(o.transform=`scale(1)`,s.transform=`scale(${n.scale.icon})`),e.animate([o,s],{duration:i,easing:a,fill:`forwards`}).finished.then(()=>e.remove(),()=>e.remove())}function J1(e,t){let{duration:n,easing:r}=K1(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function Y1(e,t,n){let r=e.style.height;e.style.height=`auto`;let i=e.offsetHeight;e.style.height=r,Math.abs(i-t)<1||e.animate([{height:`${t}px`},{height:`${i}px`}],{duration:n.duration,easing:n.easing})}function X1(e,t,n,r,i,a,o){if(!e)return;o||Y1(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,L1(e,`aria-labelledby`)],[t.description,L1(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&q1(G1(e,n,t),!1,i,o),r&&a&&J1(r,i))}if(!n)return;t.icon&&s&&q1(G1(e,t.icon,t),!0,i,o);let l=I1(e);l&&U1(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var Z1=.5,Q1=48,$1=360,e0=80,t0=100;function n0(e){let t=Z1*Math.abs(e);return Math.sign(e)*(t*Q1/(Q1+t))}function r0(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function i0(e){let t=e.currentTarget,n=new DOMMatrix(getComputedStyle(t).transform.replace(`none`,``));return{pointerId:e.pointerId,start:{x:e.clientX,y:e.clientY},first:!0,axis:null,initial:{x:n.m41,y:n.m42,scale:Math.hypot(n.a,n.b)},width:t.offsetWidth,height:t.offsetHeight,points:[{t:e.timeStamp,x:e.clientX,y:e.clientY}],releasedAt:null}}function a0(e,t,n){if(t.pointerId!==e.pointerId||e.releasedAt!==null)return;e.first&&=(e.start={x:t.clientX,y:t.clientY},!1);let r=t.clientX-e.start.x,i=t.clientY-e.start.y,a=n.some(e=>e===`left`||e===`right`),o=n.some(e=>e===`up`||e===`down`);e.axis===null&&a&&o&&Math.hypot(r,i)>=1&&(e.axis=Math.abs(r)>Math.abs(i)?`x`:`y`),e.points.push({t:t.timeStamp,x:t.clientX,y:t.clientY}),e.points.length>32&&e.points.shift()}function o0(e,t){let n=e.points.at(-1),r=e.first?0:n.x-e.start.x,i=e.first?0:n.y-e.start.y,a=t.some(e=>e===`left`||e===`right`),o=t.some(e=>e===`up`||e===`down`),s=(e,n,r)=>e>0&&t.includes(n)||e<0&&t.includes(r)?e:n0(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function s0(e,t){let{x:n,y:r}=o0(e,t),i=Math.max(0,...t.map(t=>r0(t,n,r)/((t===`left`||t===`right`?e.width:e.height)||1))),{initial:a}=e;return{transform:`translateX(${a.x+n}px) translateY(${a.y+r}px) scale(${a.scale})`,opacity:1-Math.min(1,i)}}function c0(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=t0),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?r0(t,a.x-i.x,a.y-i.y)/(n-i.t):0,s=t===`left`||t===`right`?e.width:e.height,c=o>0?Math.min($1,Math.max(e0,s/o)):$1;return{duration:Math.round(c),easing:`linear`}}var l0=`data-animate-ui-toast-progress`,u0=`data-animate-ui-toast-progress-bar`,d0=`
-:where([${l0}]) {
+`+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ge(n),i=1<<r;t|=e[r],n&=~i}return t}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ge(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&st(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function st(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function lt(e,t){var n=t&-t;return n=n&42?1:ut(n),(n&(e.suspendedLanes|t))===0?n:0}function ut(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function dt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ft(){var e=ae.p;return e===0?(e=window.event,e===void 0?32:kh(e.type)):e}function pt(e,t){var n=ae.p;try{return ae.p=e,t()}finally{ae.p=n}}var mt=Math.random().toString(36).slice(2),ht=`__reactFiber$`+mt,gt=`__reactProps$`+mt,_t=`__reactContainer$`+mt,vt=`__reactEvents$`+mt,yt=`__reactListeners$`+mt,bt=`__reactHandles$`+mt,G=`__reactResources$`+mt,xt=`__reactMarker$`+mt,St=`__reactLoad$`+mt;function Ct(e){delete e[ht],delete e[gt],delete e[yt],delete e[bt]}function wt(e){var t;if(t=e[ht])return t;for(var n=e.parentNode;n;){if(t=n[_t]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vm(e);e!==null;){if(n=e[ht])return n;e=vm(e)}return t}e=n,n=e.parentNode}return null}function Tt(e){if(e=e[ht]||e[_t]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Dt(e){var t=e[G];return t||=e[G]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ot(e){e[xt]=!0}function kt(e){e[St]=void 0}var At=new Set,jt={};function Mt(e,t){Nt(e,t),Nt(e+`Capture`,t)}function Nt(e,t){for(jt[e]=t,e=0;e<t.length;e++)At.add(t[e])}var Pt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Ft={},It={};function Lt(e){return Oe.call(It,e)?!0:Oe.call(Ft,e)?!1:Pt.test(e)?It[e]=!0:(Ft[e]=!0,!1)}var Rt=!1;function zt(){var e=Rt;return Rt=!1,e}function Bt(e,t,n){if(Lt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Vt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Ht(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Ut(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Wt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Gt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kt(e){if(!e._valueTracker){var t=Wt(e)?`checked`:`value`;e._valueTracker=Gt(e,t,``+e[t])}}function qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Wt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Jt=/[\n"\\]/g;function Yt(e){return e.replace(Jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Xt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ut(t)):e.value!==``+Ut(t)&&(e.value=``+Ut(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Qt(e,Ut(n)):o===`number`&&e.value==t?Qt(e,Ut(e.value)):Qt(e,Ut(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ut(s):e.removeAttribute(`name`)}function Zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Kt(e);return}n=n==null?``:``+Ut(n),t=t==null?n:``+Ut(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Kt(e)}function Qt(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function $t(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ut(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function en(e,t,n){t!=null&&(t=``+Ut(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Ut(n)}function tn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ut(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Kt(e)}function nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function an(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||rn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function on(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Rt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(an(e,a,r),Rt=!0)}else for(var o in t)t.hasOwnProperty(o)&&an(e,o,t[o])}function sn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var cn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),ln=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function un(e){return ln.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function dn(){}var fn=null;function pn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mn=null,hn=null;function gn(e){var t=Tt(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Xt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Yt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gt]||null;if(!a)throw Error(i(90));Xt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&qt(r)}break a;case`textarea`:en(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&$t(e,!!n.multiple,t,!1)}}}var _n=!1;function vn(e,t,n){if(_n)return e(t,n);_n=!0;try{return e(t)}finally{if(_n=!1,(mn!==null||hn!==null)&&(Ud(),mn&&(t=mn,e=hn,hn=mn=null,gn(t),e)))for(t=0;t<e.length;t++)gn(e[t])}}function yn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var bn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,xn=!1;if(bn)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){xn=!0}}),window.addEventListener(`test`,Sn,Sn),window.removeEventListener(`test`,Sn,Sn)}catch{xn=!1}var Cn=null,wn=null,Tn=null;function En(){if(Tn)return Tn;var e,t=wn,n=t.length,r,i=`value`in Cn?Cn.value:Cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Tn=i.slice(e,1<r?1-r:void 0)}function Dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function On(){return!0}function kn(){return!1}function An(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?On:kn,this.isPropagationStopped=kn,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=On)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=On)},persist:function(){},isPersistent:On}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mn=An(jn),Nn=w({},jn,{view:0,detail:0}),Pn=An(Nn),Fn,In,Ln,K=w({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Ln&&(Ln&&e.type===`mousemove`?(Fn=e.screenX-Ln.screenX,In=e.screenY-Ln.screenY):In=Fn=0,Ln=e),Fn)},movementY:function(e){return`movementY`in e?e.movementY:In}}),Rn=An(K),zn=An(w({},K,{dataTransfer:0})),Bn=An(w({},Nn,{relatedTarget:0})),Vn=An(w({},jn,{animationName:0,elapsedTime:0,pseudoElement:0})),Hn=An(w({},jn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Un=An(w({},jn,{data:0})),Wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Gn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kn[e])?!!t[e]:!1}function Jn(){return qn}var Yn=An(w({},Nn,{key:function(e){if(e.key){var t=Wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Gn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jn,charCode:function(e){return e.type===`keypress`?Dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Xn=An(w({},K,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Zn=An(w({},jn,{submitter:0})),Qn=An(w({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jn})),$n=An(w({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0})),er=An(w({},K,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),tr=An(w({},jn,{newState:0,oldState:0,source:0})),nr=[9,13,27,32],rr=bn&&`CompositionEvent`in window,ir=null;bn&&`documentMode`in document&&(ir=document.documentMode);var ar=bn&&`TextEvent`in window&&!ir,or=bn&&(!rr||ir&&8<ir&&11>=ir),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return nr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!rr&&lr(e,t)?(e=En(),Tn=wn=Cn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return or&&t.locale!==`ko`?null:t.data;default:return null}}var mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){mn?hn?hn.push(r):hn=[r]:mn=r,t=$f(t,`onChange`),0<t.length&&(n=new Mn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){Gf(e,0)}function br(e){if(qt(Et(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(bn){var Cr;if(bn){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){_r&&(_r.detachEvent(`onpropertychange`,Dr),vr=_r=null)}function Dr(e){if(e.propertyName===`value`&&br(vr)){var t=[];gr(t,vr,e,pn(e)),vn(yr,t)}}function Or(e,t,n){e===`focusin`?(Er(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function Ar(e,t){if(e===`click`)return br(t)}function jr(e,t){if(e===`input`||e===`change`)return br(t)}function Mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Nr=typeof Object.is==`function`?Object.is:Mr;function Pr(e,t){if(Nr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Oe.call(t,i)||!Nr(e[i],t[i]))return!1}return!0}function Fr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Vr=bn&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==Fr(r)||(r=Hr,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Pr(Wr,r)||(Wr=r,r=$f(Ur,`onSelect`),0<r.length&&(t=new Mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Jr={animationend:qr(`Animation`,`AnimationEnd`),animationiteration:qr(`Animation`,`AnimationIteration`),animationstart:qr(`Animation`,`AnimationStart`),transitionrun:qr(`Transition`,`TransitionRun`),transitionstart:qr(`Transition`,`TransitionStart`),transitioncancel:qr(`Transition`,`TransitionCancel`),transitionend:qr(`Transition`,`TransitionEnd`)},Yr={},Xr={};bn&&(Xr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Jr.animationend.animation,delete Jr.animationiteration.animation,delete Jr.animationstart.animation),`TransitionEvent`in window||delete Jr.transitionend.transition);function Zr(e){if(Yr[e])return Yr[e];if(!Jr[e])return e;var t=Jr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xr)return Yr[e]=t[n];return e}var Qr=Zr(`animationend`),$r=Zr(`animationiteration`),ei=Zr(`animationstart`),ti=Zr(`transitionrun`),ni=Zr(`transitionstart`),ri=Zr(`transitioncancel`),ii=Zr(`transitionend`),ai=new Map,oi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);oi.push(`scrollEnd`);function si(e,t){ai.set(e,t),Mt(t,[e])}var ci=0;function li(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=wd.identifierPrefix;var n=ci++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function ui(e){if(e==null||typeof e==`string`)return e;var t=null,n=Md;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function di(e,t){return e=ui(e),t=ui(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var fi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},pi=[],mi=0,hi=0;function gi(){for(var e=mi,t=hi=mi=0;t<e;){var n=pi[t];pi[t++]=null;var r=pi[t];pi[t++]=null;var i=pi[t];pi[t++]=null;var a=pi[t];if(pi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&bi(n,i,a)}}function _i(e,t,n,r){pi[mi++]=e,pi[mi++]=t,pi[mi++]=n,pi[mi++]=r,hi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function vi(e,t,n,r){return _i(e,t,n,r),xi(e)}function yi(e,t){return _i(e,null,null,t),xi(e)}function bi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ge(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function xi(e){if(50<Nd)throw Nd=0,Pd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Si={};function Ci(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wi(e,t,n,r){return new Ci(e,t,n,r)}function Ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ei(e,t){var n=e.alternate;return n===null?(n=wi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Di(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ti(r)&&(s=1);else if(typeof r==`string`)s=$m(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=wi(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return ki(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=wi(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=wi(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=wi(19,n,t,a),e.elementType=F,e.lanes=o,e;case z:case ee:return e=a|32,e=wi(30,n,t,e),e.elementType=ee,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=wi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ki(e,t,n,r){return e=wi(7,e,r,t),e.lanes=n,e}function Ai(e,t,n){return e=wi(6,e,null,t),e.lanes=n,e}function ji(e){var t=wi(18,null,null,0);return t.stateNode=e,t}function Mi(e,t,n){return t=wi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ni=new WeakMap;function Pi(e,t){if(typeof e==`object`&&e){var n=Ni.get(e);return n===void 0?(t={value:e,source:t,stack:De(t)},Ni.set(e,t),t):n}return{value:e,source:t,stack:De(t)}}var Fi=[],Ii=0,Li=null,Ri=0,zi=[],Bi=0,Vi=null,Hi=1,Ui=``;function Wi(e,t){Fi[Ii++]=Ri,Fi[Ii++]=Li,Li=e,Ri=t}function Gi(e,t,n){zi[Bi++]=Hi,zi[Bi++]=Ui,zi[Bi++]=Vi,Vi=e;var r=Hi;e=Ui;var i=32-Ge(r)-1;r&=~(1<<i),n+=1;var a=32-Ge(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Hi=1<<32-Ge(t)+i|n<<i|r,Ui=a+e}else Hi=1<<a|n<<i|r,Ui=e}function Ki(e){e.return!==null&&(Wi(e,1),Gi(e,1,0))}function qi(e){for(;e===Li;)Li=Fi[--Ii],Fi[Ii]=null,Ri=Fi[--Ii],Fi[Ii]=null;for(;e===Vi;)Vi=zi[--Bi],zi[Bi]=null,Ui=zi[--Bi],zi[Bi]=null,Hi=zi[--Bi],zi[Bi]=null}function Ji(e,t){zi[Bi++]=Hi,zi[Bi++]=Ui,zi[Bi++]=Vi,Hi=t.id,Ui=t.overflow,Vi=e}var Yi=null,Xi=null,Zi=!1,Qi=null,$i=!1,ea=Error(i(519));function ta(e){throw sa(Pi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ea}function na(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[gt]=r,n){case`dialog`:Kf(`cancel`,t),Kf(`close`,t);break;case`iframe`:case`object`:case`embed`:Kf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Uf.length;n++)Kf(Uf[n],t);break;case`source`:Kf(`error`,t);break;case`img`:case`image`:case`link`:Kf(`error`,t),Kf(`load`,t);break;case`details`:Kf(`toggle`,t);break;case`input`:Kf(`invalid`,t),Zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Kf(`invalid`,t);break;case`textarea`:Kf(`invalid`,t),tn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ap(t.textContent,n)?(r.popover!=null&&(Kf(`beforetoggle`,t),Kf(`toggle`,t)),r.onScroll!=null&&Kf(`scroll`,t),r.onScrollEnd!=null&&Kf(`scrollend`,t),r.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||ta(e,!0)}function ra(e){for(Yi=e.return;Yi;)switch(Yi.tag){case 5:case 31:case 13:$i=!1;return;case 27:case 3:$i=!0;return;default:Yi=Yi.return}}function ia(e){if(e!==Yi)return!1;if(!Zi)return ra(e),Zi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||yp(e.type,e.memoizedProps)),n=!n),n&&Xi&&ta(e),ra(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Xi=_m(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Xi=_m(e)}else t===27?(t=Xi,Op(e.type)?(e=gm,gm=null,Xi=e):Xi=t):Xi=Yi?hm(e.stateNode.nextSibling):null;return!0}function aa(){Xi=Yi=null,Zi=!1}function oa(){var e=Qi;return e!==null&&(gd===null?gd=e:gd.push.apply(gd,e),Qi=null),e}function sa(e){Qi===null?Qi=[e]:Qi.push(e)}var ca=le(null),la=null,ua=null;function da(e,t,n){de(ca,t._currentValue),t._currentValue=n}function fa(e){e._currentValue=ca.current,ue(ca)}function pa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ma(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),pa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),pa(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),pa(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ha(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Nr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===he.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ph]:e.push(ph))}a=a.return}return e!==null&&ma(t,e,n,r),t.flags|=262144,e!==null}function ga(e){for(e=e.firstContext;e!==null;){if(!Nr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){la=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function va(e){return ba(la,e)}function ya(e,t){return la===null&&_a(e),ba(e,t)}function ba(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ua===null){if(e===null)throw Error(i(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return n}var xa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Sa=t.unstable_scheduleCallback,Ca=t.unstable_NormalPriority,wa={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ta(){return{controller:new xa,data:new Map,refCount:0}}function Ea(e){e.refCount--,e.refCount===0&&Sa(Ca,function(){e.controller.abort()})}function Da(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Oa=null;function ka(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Aa=null,ja=0,Ma=0,Na=null;function Pa(e,t){if(Aa===null){var n=Aa=[];ja=0,Ma=zf(),Na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ja++,t.then(Fa,Fa),t}function Fa(){if(--ja===0&&(Oa=null,Aa!==null)){Na!==null&&(Na.status=`fulfilled`);var e=Aa;Aa=null,Ma=0,Na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ia(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var La=U.S;U.S=function(e,t){if(yd=Ne(),typeof t==`object`&&t&&typeof t.then==`function`&&Pa(e,t),Oa!==null)for(var n=Tf;n!==null;)Da(n,Oa),n=n.next;if(n=e.types,n!==null){for(var r=Tf;r!==null;)Da(r,n),r=r.next;if(Ma!==0){r=Oa,r===null&&(r=Oa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}La!==null&&La(e,t)};var Ra=le(null);function za(){var e=Ra.current;return e===null?ed.pooledCache:e}function Ba(e,t){t===null?de(Ra,Ra.current):de(Ra,t.pool)}function Va(){var e=za();return e===null?null:{parent:wa._currentValue,pool:e}}var Ha=Error(i(460)),Ua=Error(i(474)),Wa=Error(i(542)),Ga={then:function(){}};function Ka(e){return e=e.status,e===`fulfilled`||e===`rejected`}function qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Za(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(dn,dn);else{if(e=ed,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Za(e),e}throw Ya=t,Ha}}function Ja(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ya=e,Ha):e}}var Ya=null;function Xa(){if(Ya===null)throw Error(i(459));var e=Ya;return Ya=null,e}function Za(e){if(e===Ha||e===Wa)throw Error(i(483))}var Qa=null,$a=0;function eo(e){var t=$a;return $a+=1,Qa===null&&(Qa=[]),qa(Qa,e,t)}function to(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function no(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ro(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ei(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ai(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),to(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Ja(i)===t.type)?(t=a(t,n.props),to(t,n),t.return=e,t):(t=Oi(n.type,n.key,n.props,null,e.mode,r),to(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ki(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ai(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Oi(t.type,t.key,t.props,null,e.mode,n),to(n,t),n.return=e,n;case D:return t=Mi(t,e.mode,n),t.return=e,t;case L:return t=Ja(t),f(e,t,n)}if(ie(t)||re(t))return t=ki(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,eo(t),n);if(t.$$typeof===M)return f(e,ya(e,t),n);no(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=Ja(n),p(e,t,n,r)}if(ie(n)||re(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,eo(n),r);if(n.$$typeof===M)return p(e,t,ya(e,n),r);no(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Ja(r),m(e,t,n,r,i)}if(ie(r)||re(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,eo(r),i);if(r.$$typeof===M)return m(e,t,n,ya(t,r),i);no(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Zi&&Wi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Zi&&Wi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Zi&&Wi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Zi&&Wi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Zi&&Wi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Zi&&Wi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),to(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),to(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=ki(o.props.children,e.mode,c,o.key),to(c,o),c.return=e,e=c):(c=Oi(o.type,o.key,o.props,null,e.mode,c),to(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Mi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Ja(o),_(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(re(o)){if(l=re(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,eo(o),c);if(o.$$typeof===M)return _(e,r,ya(e,o),c);no(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ai(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{$a=0;var i=_(e,t,n,r);return Qa=null,i}catch(t){if(t===Ha||t===Wa)throw t;var a=wi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var io=ro(!0),ao=ro(!1),oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$u&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=xi(e),bi(e,null,n),t}return _i(e,r,t,n),xi(e)}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mo=!1;function ho(){if(mo){var e=Na;if(e!==null)throw e}}function go(e,t,n,r){mo=!1;var i=e.updateQueue;oo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(nd&f)===f:(r&f)===f){f!==0&&f===Ma&&(mo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:oo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ud|=o,e.lanes=o,e.memoizedState=d}}function _o(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function vo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_o(n[e],t)}var yo=le(null),bo=le(0);function xo(e,t){e=cd,de(bo,e),de(yo,t),cd=e|t.baseLanes}function So(){de(bo,cd),de(yo,yo.current)}function Co(){cd=bo.current,ue(yo),ue(bo)}var wo=le(null),To=null;function Eo(e){var t=e.alternate;de(jo,jo.current&1),de(wo,e),To===null&&(t===null||yo.current!==null||t.memoizedState!==null)&&(To=e)}function Do(e){de(jo,jo.current),de(wo,e),To===null&&(To=e)}function Oo(e){e.tag===22?(de(jo,jo.current),de(wo,e),To===null&&(To=e)):ko()}function ko(){de(jo,jo.current),de(wo,wo.current)}function Ao(e){ue(wo),To===e&&(To=null),ue(jo)}var jo=le(0);function Mo(e,t){de(wo,wo.current),de(jo,t)}function No(e){ue(jo),ue(wo),To===e&&(To=null)}function Po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fm(n)||pm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fo=0,Io=null,Lo=null,Ro=null,zo=!1,Bo=!1,Vo=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){throw Error(i(321))}function qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,a){return Fo=a,Io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?fc:pc,Vo=!1,a=n(r,i),Vo=!1,Bo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){U.H=dc;var t=Lo!==null&&Lo.next!==null;if(Fo=0,Ro=Lo=Io=null,zo=!1,Uo=0,Wo=null,t)throw Error(i(300));e===null||Ac||(e=e.dependencies,e!==null&&ga(e)&&(Ac=!0))}function Xo(e,t,n,r){Io=e;var a=0;do{if(Bo&&(Wo=null),Uo=0,Bo=!1,25<=a)throw Error(i(301));if(a+=1,Ro=Lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}U.H=mc,o=t(n,r)}while(Bo);return o}function Zo(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?is(t):t,e=e.useState()[0],(Lo===null?null:Lo.memoizedState)!==e&&(Io.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}Fo=0,Ro=Lo=Io=null,Bo=!1,Uo=Ho=0,Wo=null}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function ns(){if(Lo===null){var e=Io.alternate;e=e===null?null:e.memoizedState}else e=Lo.next;var t=Ro===null?Io.memoizedState:Ro.next;if(t!==null)Ro=t,Lo=e;else{if(e===null)throw Io.alternate===null?Error(i(467)):Error(i(310));Lo=e,e={memoizedState:Lo.memoizedState,baseState:Lo.baseState,baseQueue:Lo.baseQueue,queue:Lo.queue,next:null},Ro===null?Io.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=qa(Wo,e,t),t=Io,(Ro===null?t.memoizedState:Ro.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?fc:pc),e}function as(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return is(e);if(e.$$typeof===te)return;if(e.$$typeof===M)return va(e)}throw Error(i(438,String(e)))}function ss(e){var t=null,n=Io.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Io.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=rs(),Io.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=B;return t.index++,n}function cs(e,t){return typeof t==`function`?t(e):t}function ls(e){return us(ns(),Lo,e)}function us(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Fo&f)===f:(nd&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ma&&(d=!0);else if((Fo&p)===p){u=u.next,p===Ma&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Io.lanes|=p,ud|=p;f=u.action,Vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Io.lanes|=f,ud|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Nr(o,e.memoizedState)&&(Ac=!0,d&&(n=Na,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ds(e){var t=ns(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Nr(o,t.memoizedState)||(Ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fs(e,t,n){var r=Io,a=ns(),o=Zi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Nr((Lo||a).memoizedState,n);if(s&&(a.memoizedState=n,Ac=!0),a=a.queue,Ls(hs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ro!==null&&!!(Ro.memoizedState.tag&1),Ms(e?9:8,{destroy:void 0},ms.bind(null,r,a,n,t),null),e){if(r.flags|=2048,ed===null)throw Error(i(349));o||Fo&127||ps(r,t,n)}return n}function ps(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Io.updateQueue,t===null?(t=rs(),Io.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ms(e,t,n,r){t.value=n,t.getSnapshot=r,gs(t)&&_s(e)}function hs(e,t,n){return n(function(){gs(t)&&_s(e)})}function gs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nr(e,n)}catch{return!0}}function _s(e){var t=yi(e,2);t!==null&&Rd(t,e,2)}function vs(e){var t=ts();if(typeof e==`function`){var n=e;if(e=n(),Vo){We(!0);try{n()}finally{We(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e},t}function ys(e,t,n,r){return e.baseState=n,us(e,Lo,typeof r==`function`?r:cs)}function bs(e,t,n,r,a){if(cc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};U.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,xs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function xs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o.types=a===null?null:a.types,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),Ss(e,t,s)}catch(n){ws(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),U.T=a}}else try{a=n(i,r),Ss(e,t,a)}catch(n){ws(e,t,n)}}function Ss(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Cs(e,t,n)},function(n){return ws(e,t,n)}):Cs(e,t,n)}function Cs(e,t,n){t.status=`fulfilled`,t.value=n,Ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xs(e,n)))}function ws(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ts(t),t=t.next;while(t!==r)}e.action=null}function Ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Es(e,t){return t}function Ds(e,t){if(Zi){var n=ed.formState;if(n!==null){a:{var r=Io;if(Zi){if(Xi){b:{for(var i=Xi,a=$i;i.nodeType!==8;)if(!a||(i=hm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Xi=hm(i.nextSibling),r=i.data===`F!`;break a}}ta(r)}r=!1}r&&(t=n[0])}}return n=ts(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:t},n.queue=r,n=ac.bind(null,Io,r),r.dispatch=n,r=vs(!1),a=sc.bind(null,Io,!1,r.queue),r=ts(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=bs.bind(null,Io,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Os(e){return ks(ns(),Lo,e)}function ks(e,t,n){if(t=us(e,t,Es)[0],e=ls(cs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=is(t)}catch(e){throw e===Ha?Wa:e}else r=t;t=ns();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Io.flags|=2048,Ms(9,{destroy:void 0},As.bind(null,i,n),null)),[r,a,e]}function As(e,t){e.action=t}function js(e){var t=ns(),n=Lo;if(n!==null)return ks(t,n,e);ns(),t=t.memoizedState,n=ns();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ms(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Io.updateQueue,t===null&&(t=rs(),Io.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ns(){return ns().memoizedState}function Ps(e,t,n,r){var i=ts();Io.flags|=e,i.memoizedState=Ms(1|t,{destroy:void 0},n,r===void 0?null:r)}function Fs(e,t,n,r){var i=ns();r=r===void 0?null:r;var a=i.memoizedState.inst;Lo!==null&&r!==null&&qo(r,Lo.memoizedState.deps)?i.memoizedState=Ms(t,a,n,r):(Io.flags|=e,i.memoizedState=Ms(1|t,a,n,r))}function Is(e,t){Ps(8390656,8,e,t)}function Ls(e,t){Fs(2048,8,e,t)}function Rs(e){Io.flags|=4;var t=Io.updateQueue;if(t===null)t=rs(),Io.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function zs(e){var t=ns().memoizedState;return Rs({ref:t,nextImpl:e}),function(){if($u&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Bs(e,t){return Fs(4,2,e,t)}function Vs(e,t){return Fs(4,4,e,t)}function Hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Us(e,t,n){n=n==null?null:n.concat([e]),Fs(4,4,Hs.bind(null,t,e),n)}function Ws(){}function Gs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),Vo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r}function qs(e,t,n){return n===void 0||Fo&1073741824&&!(nd&261930)?e.memoizedState=t:(e.memoizedState=n,e=Id(),Io.lanes|=e,ud|=e,n)}function Js(e,t,n,r){return Nr(n,t)?n:yo.current===null?!(Fo&106)||Fo&1073741824&&!(nd&261930)?(Ac=!0,e.memoizedState=n):(e=Id(),Io.lanes|=e,ud|=e,t):(e=qs(e,n,r),Nr(e,t)||(Ac=!0),e)}function Ys(e,t,n,r,i){var a=ae.p;ae.p=a!==0&&8>a?a:8;var o=U.T,s={};s.types=o===null?null:o.types,U.T=s,sc(e,!1,t,n);try{var c=i(),l=U.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?oc(e,t,Ia(c,r),Fd(e)):oc(e,t,r,Fd(e))}catch(n){oc(e,t,{then:function(){},status:`rejected`,reason:n},Fd())}finally{ae.p=a,o!==null&&s.types!==null&&(o.types=s.types),U.T=o}}function Xs(){}function Zs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Qs(e).queue;Ys(e,a,t,oe,n===null?Xs:function(){return $s(e),n(r)})}function Qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $s(e){var t=Qs(e);t.next===null&&(t=e.alternate.memoizedState),oc(e,t.next.queue,{},Fd())}function ec(){return va(ph)}function tc(){return ns().memoizedState}function nc(){return ns().memoizedState}function rc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Fd();e=lo(n);var r=uo(t,e,n);r!==null&&(Rd(r,t,n),fo(r,t,n)),t={cache:Ta()},e.payload=t;return}t=t.return}}function ic(e,t,n){var r=Fd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?lc(t,n):(n=vi(e,t,n,r),n!==null&&(Rd(n,e,r),uc(n,t,r)))}function ac(e,t,n){oc(e,t,n,Fd())}function oc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))lc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Nr(s,o))return _i(e,t,i,0),ed===null&&gi(),!1}catch{}if(n=vi(e,t,i,r),n!==null)return Rd(n,e,r),uc(n,t,r),!0}return!1}function sc(e,t,n,r){if(r={lane:2,revertLane:zf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(i(479))}else t=vi(e,n,r,2),t!==null&&Rd(t,e,2)}function cc(e){var t=e.alternate;return e===Io||t!==null&&t===Io}function lc(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var dc={readContext:va,use:as,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},fc={readContext:va,use:as,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:Is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ps(4194308,4,Hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ps(4194308,4,e,t)},useInsertionEffect:function(e,t){Ps(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(Vo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(Vo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ic.bind(null,Io,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=vs(e);var t=e.queue,n=ac.bind(null,Io,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ws,useDeferredValue:function(e,t){return qs(ts(),e,t)},useTransition:function(){var e=vs(!1);return e=Ys.bind(null,Io,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Io,a=ts();if(Zi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),ed===null)throw Error(i(349));nd&127||ps(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Is(hs.bind(null,r,o,e),[e]),r.flags|=2048,Ms(9,{destroy:void 0},ms.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=ed.identifierPrefix;if(Zi){var n=Ui,r=Hi;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:Ds,useActionState:Ds,useOptimistic:function(e){var t=ts();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=sc.bind(null,Io,!0,n),n.dispatch=t,[e,t]},useMemoCache:ss,useCacheRefresh:function(){return ts().memoizedState=rc.bind(null,Io)},useEffectEvent:function(e){var t=ts(),n={impl:e};return t.memoizedState=n,function(){if($u&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},pc={readContext:va,use:as,useCallback:Gs,useContext:va,useEffect:Ls,useImperativeHandle:Us,useInsertionEffect:Bs,useLayoutEffect:Vs,useMemo:Ks,useReducer:ls,useRef:Ns,useState:function(){return ls(cs)},useDebugValue:Ws,useDeferredValue:function(e,t){return Js(ns(),Lo.memoizedState,e,t)},useTransition:function(){var e=ls(cs)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:fs,useId:tc,useHostTransitionStatus:ec,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){return ys(ns(),Lo,e,t)},useMemoCache:ss,useCacheRefresh:nc,useEffectEvent:zs},mc={readContext:va,use:as,useCallback:Gs,useContext:va,useEffect:Ls,useImperativeHandle:Us,useInsertionEffect:Bs,useLayoutEffect:Vs,useMemo:Ks,useReducer:ds,useRef:Ns,useState:function(){return ds(cs)},useDebugValue:Ws,useDeferredValue:function(e,t){var n=ns();return Lo===null?qs(n,e,t):Js(n,Lo.memoizedState,e,t)},useTransition:function(){var e=ds(cs)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:fs,useId:tc,useHostTransitionStatus:ec,useFormState:js,useActionState:js,useOptimistic:function(e,t){var n=ns();return Lo===null?(n.baseState=e,[e,n.queue.dispatch]):ys(n,Lo,e,t)},useMemoCache:ss,useCacheRefresh:nc,useEffectEvent:zs};function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=lo(r);i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Rd(t,e,r),fo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fd(),i=lo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=uo(e,i,r),t!==null&&(Rd(t,e,r),fo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fd(),r=lo(n);r.tag=2,t!=null&&(r.callback=t),t=uo(e,r,n),t!==null&&(Rd(t,e,n),fo(t,e,n))}};function _c(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(i,a):!0}function vc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gc.enqueueReplaceState(t,t.state,null)}function yc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function bc(e){fi(e)}function xc(e){console.error(e)}function Sc(e){fi(e)}function Cc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Tc(e,t,n){return n=lo(n),n.tag=3,n.payload={element:null},n.callback=function(){Cc(e,t)},n}function Ec(e){return e=lo(e),e.tag=3,e}function Dc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){wc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){wc(t,n,r),typeof i!=`function`&&(Sd===null?Sd=new Set([this]):Sd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Oc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ha(t,n,a,!0),n=wo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return To===null?Xd():n.alternate===null&&ld===0&&(ld=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ga?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),yf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ga?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),yf(e,r,a)),!1}throw Error(i(435,n.tag))}return yf(e,r,a),Xd(),!1}if(Zi)return t=wo.current,t===null?(r!==ea&&(t=Error(i(423),{cause:r}),sa(Pi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Pi(r,n),a=Tc(e.stateNode,r,a),po(e,a),ld!==4&&(ld=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ea&&(e=Error(i(422),{cause:r}),sa(Pi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Pi(o,n),hd===null?hd=[o]:hd.push(o),ld!==4&&(ld=2),t===null)return!0;r=Pi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Tc(n.stateNode,r,e),po(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Sd===null||!Sd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ec(a),Dc(a,e,n,r),po(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var kc=Error(i(461)),Ac=!1;function jc(e,t,n,r){t.child=e===null?ao(t,null,n,r):io(t,e.child,n,r)}function Mc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return _a(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!Ac?($o(e,t,i),ol(e,t,i)):(Zi&&s&&Ki(t),t.flags|=1,jc(e,t,r,i),t.child)}function Nc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Pc(e,t,a,r,i)):(e=Oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!sl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Pr:n,n(o,r)&&e.ref===t.ref)return ol(e,t,i)}return t.flags|=1,e=Ei(a,r),e.ref=t.ref,e.return=t,t.child=e}function Pc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pr(a,r)&&e.ref===t.ref){if(Ac=!1,t.pendingProps=r=a,sl(e,i))e.flags&131072&&(Ac=!0);else return t.lanes=e.lanes,ol(e,t,i)}}return Hc(e,t,n,r,i)}function Fc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ba(t,a===null?null:a.cachePool),a===null?So():xo(t,a),Oo(t);else return r=t.lanes=536870912,Lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ba(t,null),So(),ko()):(Ba(t,a.cachePool),xo(t,a),ko(),t.memoizedState=null);return jc(e,t,i,n),t.child}function Ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lc(e,t,n,r,i){var a=za();return a=a===null?null:{parent:wa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ba(t,null),So(),Oo(t),e!==null&&ha(e,t,r,!0),t.childLanes=i,null}function Rc(e,t){return t=Zc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zc(e,t,n){return io(t,e.child,null,n),e=Rc(t,t.pendingProps),e.flags|=2,Ao(t),t.memoizedState=null,e}function Bc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Zi){if(r.mode===`hidden`)return e=Rc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ic(null,e);if(Do(t),(e=Xi)?(e=dm(e,$i),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi===null?null:{id:Hi,overflow:Ui},retryLane:536870912,hydrationErrors:null},n=ji(e),n.return=t,t.child=n,Yi=t,Xi=null)):e=null,e===null)throw ta(t);return t.lanes=536870912,null}return Rc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Do(t),a){if(t.flags&256)t.flags&=-257,t=zc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Ac||ha(e,t,n,!1),a=(n&e.childLanes)!==0,Ac||a){if(yo.current===null){if(r=ed,r!==null&&(s=lt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,yi(e,s),Rd(r,e,s),kc;Xd()}t=zc(e,t,n)}else e=o.treeContext,Xi=hm(s.nextSibling),Yi=t,Zi=!0,Qi=null,$i=!1,e!==null&&Ji(t,e),t=Rc(t,r),t.flags|=134221824;return t}return e=Ei(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Hc(e,t,n,r,i){return _a(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!Ac?($o(e,t,i),ol(e,t,i)):(Zi&&r&&Ki(t),t.flags|=1,jc(e,t,n,i),t.child)}function Uc(e,t,n,r,i,a){return _a(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!Ac?($o(e,t,a),ol(e,t,a)):(Zi&&r&&Ki(t),t.flags|=1,jc(e,t,n,a),t.child)}function Wc(e,t,n,r,i){if(_a(t),t.stateNode===null){var a=Si,o=n.contextType;typeof o==`object`&&o&&(a=va(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=gc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},so(t),o=n.contextType,a.context=typeof o==`object`&&o?va(o):Si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(hc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&gc.enqueueReplaceState(a,a.state,null),go(t,r,a,i),ho(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=yc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Si,typeof u==`object`&&u&&(o=va(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&vc(t,a,r,o),oo=!1;var f=t.memoizedState;a.state=f,go(t,r,a,i),ho(),l=t.memoizedState,s||f!==l||oo?(typeof d==`function`&&(hc(t,n,d,r),l=t.memoizedState),(c=oo||_c(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,co(e,t),o=t.memoizedProps,u=yc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Si,typeof l==`object`&&l&&(c=va(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&vc(t,a,r,c),oo=!1,f=t.memoizedState,a.state=f,go(t,r,a,i),ho();var p=t.memoizedState;o!==d||f!==p||oo||e!==null&&e.dependencies!==null&&ga(e.dependencies)?(typeof s==`function`&&(hc(t,n,s,r),p=t.memoizedState),(u=oo||_c(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ga(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Vc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=io(t,e.child,null,i),t.child=io(t,null,n,i)):jc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ol(e,t,i),e}function Gc(e,t,n,r){return aa(),t.flags|=256,jc(e,t,n,r),t.child}var Kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qc(e){return{baseLanes:e,cachePool:Va()}}function Jc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=pd),e}function Yc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(jo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Zi){if(i?Eo(t):ko(),(e=Xi)?(e=dm(e,$i),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi===null?null:{id:Hi,overflow:Ui},retryLane:536870912,hydrationErrors:null},n=ji(e),n.return=t,t.child=n,Yi=t,Xi=null)):e=null,e===null)throw ta(t);return t.lanes=pm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(ko(),i=t.mode,a=Zc({mode:`hidden`,children:a},i),r=ki(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=qc(n),r.childLanes=Jc(e,o,n),t.memoizedState=Kc,Ic(null,r)):(Eo(t),Xc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return $c(e,t,a,o,r,c,s,n)}return i?(ko(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ei(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ki(i,a,n,null),i.flags|=2):i=Ei(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Ic(null,r),r=t.child,i=e.child.memoizedState,i===null?i=qc(n):(a=i.cachePool,a===null?a=Va():(s=wa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Jc(e,o,n),t.memoizedState=Kc,Ic(e.child,r)):(Eo(t),n=e.child,e=n.sibling,n=Ei(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Xc(e,t){return t=Zc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Zc(e,t){return e=wi(22,e,null,t),e.lanes=0,e}function Qc(e,t,n){return io(t,e.child,null,n),e=Xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $c(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Eo(t),t.flags&=-257,Qc(e,t,c)):t.memoizedState===null?(ko(),o=a.fallback,s=t.mode,a=Zc({mode:`visible`,children:a.children},s),o=ki(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,io(t,e.child,null,c),a=t.child,a.memoizedState=qc(c),a.childLanes=Jc(e,r,c),t.memoizedState=Kc,Ic(null,a)):(ko(),t.child=e.child,t.flags|=128,null);if(Eo(t),pm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,sa({value:a,source:null,stack:null})),Qc(e,t,c)}if(Ac||ha(e,t,c,!1),r=(c&e.childLanes)!==0,Ac||r){if(yo.current!==null)return Qc(e,t,c);if(r=ed,r!==null&&(a=lt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,yi(e,a),Rd(r,e,a),kc;return fm(o)||Xd(),Qc(e,t,c)}return fm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Xi=hm(o.nextSibling),Yi=t,Zi=!0,Qi=null,$i=!1,e!==null&&Ji(t,e),t=Xc(t,a.children),t.flags|=134221824,t)}function el(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pa(e.return,t,n)}function tl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Po(n)===null&&(t=e),e=e.sibling}return t}function nl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function rl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function il(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=jo.current;if(t.flags&128)return Mo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Mo(t,o),i===`backwards`&&e!==null?(rl(e),jc(e,t,r,n),rl(e)):jc(e,t,r,n),r=Zi?Ri:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&el(e,n,t);else if(e.tag===19)el(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=tl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,rl(t)),nl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,a,r);break;case`together`:nl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=tl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,a,r)}return t.child}function al(e,t,n){var r=t.pendingProps;return da(t,t.type,r.value),jc(e,t,r.children,n),t.child}function ol(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ud|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ga(e)))}function cl(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),da(t,wa,e.memoizedState.cache),aa();break;case 27:case 5:ve(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Do(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Eo(t),t.flags|=128,null;r=ha(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Yc(e,t,n):(Eo(t),e=ol(e,t,n),e===null?null:e.sibling)}Eo(t);break;case 19:if(t.flags&128)return il(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ha(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return il(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mo(t,jo.current),r)break;return null;case 22:return t.lanes=0,Fc(e,t,n,t.pendingProps);case 24:da(t,wa,e.memoizedState.cache)}return ol(e,t,n)}function ll(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Ac=!0;else{if(!sl(e,n)&&!(t.flags&128))return Ac=!1,cl(e,t,n);Ac=!!(e.flags&131072)}}else Ac=!1,Zi&&t.flags&1048576&&Gi(t,Ri,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ja(t.elementType),t.type=e,typeof e==`function`)Ti(e)?(r=yc(e,r),t.tag=1,t=Wc(null,t,e,r,n)):(t.tag=0,t=Hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Mc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Nc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=al(null,t,n);break a}}throw t=H(e)||e,Error(i(306,t,``))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=yc(r,t.pendingProps),Wc(e,t,r,a,n);case 3:a:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,co(e,t),go(t,r,null,n);var s=t.memoizedState;if(r=s.cache,da(t,wa,r),r!==o.cache&&ma(t,[wa],n,!0),ho(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Gc(e,t,r,n);break a}if(r!==a){a=Pi(Error(i(424)),t),sa(a),t=Gc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Xi=hm(e.firstChild),Yi=t,Zi=!0,Qi=null,$i=!0,n=ao(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(aa(),r===a){t=ol(e,t,n);break a}jc(e,t,r,n)}t=t.child}return t;case 26:return Vc(e,t),e===null?(n=zm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Zi||(t.stateNode=vp(t.type,t.pendingProps,me.current,t)):t.memoizedState=zm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Zi&&(r=t.stateNode=xm(t.type,t.pendingProps,me.current),Yi=t,$i=!0,a=Xi,Op(t.type)?(gm=a,Xi=hm(r.firstChild)):Xi=a),jc(e,t,t.pendingProps.children,n),Vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Zi&&((a=r=Xi)&&(r=lm(r,t.type,t.pendingProps,$i),r===null?a=!1:(t.stateNode=r,Yi=t,Xi=hm(r.firstChild),$i=!1,a=!0)),a||ta(t)),ve(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,yp(a,o)?r=null:s!==null&&yp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Jo(e,t,Zo,null,null,n),ph._currentValue=a),Vc(e,t),jc(e,t,r,n),t.child;case 6:return e===null&&Zi&&((e=n=Xi)&&(n=um(n,t.pendingProps,$i),n===null?e=!1:(t.stateNode=n,Yi=t,Xi=null,e=!0)),e||ta(t)),null;case 13:return Yc(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):jc(e,t,r,n),t.child;case 11:return Mc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Vc(e,t),jc(e,t,r,n),t.child;case 8:return jc(e,t,t.pendingProps.children,n),t.child;case 12:return jc(e,t,t.pendingProps.children,n),t.child;case 10:return al(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,_a(t),a=va(a),r=r(a),t.flags|=1,jc(e,t,r,n),t.child;case 14:return Nc(e,t,t.type,t.pendingProps,n);case 15:return Pc(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return Bc(e,t,n);case 22:return Fc(e,t,n,t.pendingProps);case 24:return _a(t),r=va(wa),e===null?(a=za(),a===null&&(a=ed,o=Ta(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},so(t),da(t,wa,a)):((e.lanes&n)!==0&&(co(e,t),go(t,null,null,n),ho()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,da(t,wa,r),r!==a.cache&&ma(t,[wa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),da(t,wa,r))),jc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Zi&&Ki(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Vc(e,t),jc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ul(e){e.flags|=4}function dl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?eh(t,r):eh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(qd())e.flags|=8192;else throw Ya=Ga,Ua}}else e.flags&=-16777217}function fl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!th(t)){if(qd())e.flags|=8192;else throw Ya=Ga,Ua}}function pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:rt(),e.lanes|=t,md|=t)}function ml(e,t){if(!Zi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function hl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var r=t.pendingProps;switch(qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hl(t),null;case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fa(wa),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ia(t)?ul(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oa())),hl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ul(t),o===null?(hl(t),dl(t,a,null,r,n)):(hl(t),fl(t,o))):o?o===e.memoizedState?(hl(t),t.flags&=-16777217):(ul(t),hl(t),fl(t,o)):(e=e.memoizedProps,e!==r&&ul(t),hl(t),dl(t,a,e,r,n)),null;case 27:if(ye(t),n=me.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return hl(t),t.subtreeFlags&=-33554433,null}e=fe.current,ia(t)?na(t,e):(e=xm(a,r,n),t.stateNode=e,ul(t))}return hl(t),t.subtreeFlags&=-33554433,null;case 5:if(ye(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return hl(t),t.subtreeFlags&=-33554433,null}if(o=fe.current,ia(t))na(t,o);else{var s=hp(me.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(cp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ul(t)}}return hl(t),t.subtreeFlags&=-33554433,dl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ul(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=me.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Yi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ap(e.nodeValue,n)),e||ta(t,!0)}else e=hp(e).createTextNode(r),e[ht]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ia(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ao(t),t):(Ao(t),null);if(t.flags&128)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ao(t),t):(Ao(t),null)}return Ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pl(t,t.updateQueue),hl(t),null);case 4:return _e(),e===null&&Yf(t.stateNode.containerInfo),t.flags|=67108864,hl(t),null;case 10:return fa(t.type),hl(t),null;case 19:if(No(t),r=t.memoizedState,r===null)return hl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ml(r,!1);else{if(ld!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Po(e),o!==null){for(t.flags|=128,ml(r,!1),e=o.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Di(n,e),n=n.sibling;return Mo(t,jo.current&1|2),Zi&&Wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ne()>bd&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),ml(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Zi)return hl(t),null}else 2*Ne()-r.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,a=!0,ml(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ne(),e.sibling=null,o=jo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Zi?Mo(t,o):(n=o,de(wo,t),de(jo,n),To===null&&(To=t)),Zi&&Wi(t,r.treeForkCount),e}return hl(t),null;case 22:case 23:return Ao(t),Co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(hl(t),t.subtreeFlags&6&&(t.flags|=8192)):hl(t),n=t.updateQueue,n!==null&&pl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ue(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(wa),hl(t),null;case 25:return null;case 30:return t.flags|=33554432,hl(t),null}throw Error(i(156,t.tag))}function _l(e,t){switch(qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(wa),_e(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return No(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _e(),null;case 10:return fa(t.type),null;case 22:case 23:return Ao(t),Co(),e!==null&&ue(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(wa),null;case 25:return null;default:return null}}function vl(e,t){switch(qi(t),t.tag){case 3:fa(wa),_e();break;case 26:case 27:case 5:ye(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:No(t);break;case 10:fa(t.type);break;case 22:case 23:Ao(t),Co(),e!==null&&ue(Ra);break;case 24:fa(wa)}}function yl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){vf(t,t.return,e)}}function bl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){vf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){vf(t,t.return,e)}}function xl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{vo(t,n)}catch(t){vf(e,e.return,t)}}}function Sl(e,t,n){n.props=yc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){vf(e,t,n)}}function Cl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=li(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Bp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Vp(e);f(e.child,!1,im,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){vf(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){vf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){vf(e,t,n)}else n.current=null}}function Tl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)om(e.stateNode,t[n])}function El(e){for(var t=e.return;t!==null&&(kl(t)&&om(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Dl(e){for(var t=e.return;t!==null&&(kl(t)&&sm(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Ol(e){return e.tag===5||e.tag===3||e.tag===27}function kl(e){return e&&e.tag===7&&e.stateNode!==null}function Al(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){vf(e,e.return,t)}}function jl(e,t,n){try{var r=e.stateNode;up(r,e.type,n,t),r[gt]=t}catch(t){vf(e,e.return,t)}}function Ml(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Op(e.type)||e.tag===4}function Nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Op(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn)),Tl(e,r),Rt=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Op(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Pl(e,t,n,r),e=e.sibling;e!==null;)Pl(e,t,n,r),e=e.sibling}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Tl(e,r),Rt=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Op(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);cp(t,r,n),t[ht]=e,t[gt]=n}catch(t){vf(e,e.return,t)}}var Ll=!1,Rl=null;function zl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ll=!0)}var Bl=null;function Vl(){var e=Bl;return Bl=null,e}var Hl=0;function Ul(e,t,n,r,i){return Hl=0,Wl(e.child,t,n,r,i)}function Wl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Pp(o);r.push(s),s.view&&(a=!0)}else a||Pp(o).view&&(a=!0);Ll=!0,jp(o,Hl===0?t:t+`_`+Hl,n),Hl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Wl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Gl(e,t){for(;e!==null;)e.tag===5?Mp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Gl(e.child,t),e=e.sibling}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Kl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=di(t.default,t.share),t!==`none`&&(Ul(e,n,t,null,!1)||Gl(e.child,!1))}e=e.sibling}}function ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=li(r,n),a=di(r.default,n.paired?r.share:r.enter);a===`none`?Kl(e):Ul(e,i,a,null,!1)?(Kl(e),n.paired||t||Ld(e,r.onEnter)):Gl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e,t),e=e.sibling;else Kl(e)}function Jl(e){if(Rl!==null&&Rl.size!==0){var t=Rl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=di(n.default,n.share);if(a!==`none`&&(Ul(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ld(e,n.onShare)):Gl(e.child,!1)),t.delete(r),t.size===0)break}}}Jl(e)}e=e.sibling}}}function Yl(e){if(e.tag===30){var t=e.memoizedProps,n=li(t,e.stateNode),r=Rl===null?void 0:Rl.get(n),i=di(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Ul(e,n,i,null,!1)?r===void 0?Ld(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Rl.delete(n),Ld(e,t.onShare)):Gl(e.child,!1)),Rl!==null&&Jl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Rl!==null&&Jl(e)}function Xl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=li(t,e.stateNode);t=di(t.default,t.update),e.flags&=-5,t!==`none`&&Ul(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Xl(e);e=e.sibling}}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Gl(e.child,!1))}Zl(e)}e=e.sibling}}function Ql(e){if(e.tag===30)e.stateNode.paired=null,Gl(e.child,!1),Zl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Zl(e)}function $l(e){for(e=e.child;e!==null;)e.tag===30?Gl(e.child,!1):e.subtreeFlags&33554432&&$l(e),e=e.sibling}function eu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Hl<a.length){var l=a[Hl],u=Pp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&jp(c,Hl===0?n:n+`_`+Hl,i),s&&e.flags&4||(Bl===null&&(Bl=[]),Bl.push(c,Hl===0?r:r+`_`+Hl,t.memoizedProps)),Hl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function tu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=li(n,r),a=di(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Fp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Hl=0,i=eu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Ld(e,n.onUpdate))}else e.subtreeFlags&33554432&&tu(e,t);e=e.sibling}}var nu=!1,ru=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,pp=Sh,e=zr(e),Br(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(mp={focusedElem:e,selectionRange:r},Sh=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Yl(r[a]);if(e.alternate===null&&e.flags&2)n&&zl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Yl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&zl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Xl(e),pu(n))}}Rl=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=yc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){vf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)cm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:cm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=li(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=di(a.default,a.update),a!==`none`&&Ul(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n),r&4&&yl(5,n);break;case 1:if(Pu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){vf(n,n.return,e)}else{var i=yc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vf(n,n.return,e)}}}r&64&&xl(n),r&512&&Cl(n,n.return);break;case 3:if(Pu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{vo(e,t)}catch(e){vf(n,n.return,e)}}break;case 27:t===null&&r&4&&Il(n);case 26:case 5:Pu(e,n),t===null&&r&4&&Al(n),r&512&&Cl(n,n.return);break;case 12:Pu(e,n);break;case 31:Pu(e,n),r&4&&Cu(e,n);break;case 13:Pu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Sf.bind(null,n),mm(e,n))));break;case 22:if(r=n.memoizedState!==null||nu,!r){var a=t!==null&&t.memoizedState!==null||ru;t=nu,i=ru,nu=r,(ru=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Iu(e,n,r)):Pu(e,n),nu=t,ru=i}break;case 30:Pu(e,n),r&512&&Cl(n,n.return);break;case 7:r&512&&Cl(n,n.return);default:Pu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){vf(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Rt=!0}catch(t){vf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ap(s,!0):Ap(e.stateNode,!1)}catch(t){vf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount==`function`)try{Ue.onCommitFiberUnmount(He,n)}catch{}switch(n.tag){case 26:ru||wl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ru&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ru||wl(n,t),Dl(n);var r=yu,i=bu;Op(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),Sm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:ru||wl(n,t),Dl(n);case 6:if(n.tag===6&&Dl(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),Rt=!0}catch(e){vf(n,t,e)}else try{yu.removeChild(n.stateNode),Rt=!0}catch(e){vf(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,kp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Jh(e)):kp(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:bl(2,n,t),ru||bl(4,n,t),xu(e,t,n);break;case 1:ru||(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Sl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:ru=(r=ru)||n.memoizedState!==null,xu(e,t,n),ru=r;break;case 30:wl(n,t),xu(e,t,n);break;case 7:ru||wl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jh(e)}catch(e){vf(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jh(e)}catch(e){vf(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(i(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Cf.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Op(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(i(160));Su(s,c,o),yu=null,bu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Du(t,e,n),Au(e),a&4&&(bl(3,e,e.return),yl(3,e),bl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),a&64&&nu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Ou,Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(nu)e.stateNode=vp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[xt]||r[ht]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),cp(r,t,n),r[ht]=e,Ot(r),t=r;break a;case`link`:if(o=Zm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Zm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),cp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[ht]=e,Ot(r),t=r}e.stateNode=t}}else nu||Qm(o,e.type,e.stateNode)}else e.stateNode=Km(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&jl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ru||t.parentNode.removeChild(t)):a.count--,n===null?nu||Qm(o,e.type,e.stateNode):Km(o,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),a&512&&(ru||r===null||wl(r,r.return)),r!==null&&a&4&&jl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=iu,iu=!1,Du(t,e,n),iu=o,Au(e),a&512&&(ru||r===null||wl(r,r.return)),e.flags&32){t=e.stateNode;try{nn(t,``),Rt=!0}catch(t){vf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,jl(e,t,r===null?t:r.memoizedProps)),a&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Rt=!0}catch(t){vf(e,e.return,t)}}break;case 3:if(Rt=!1,Xm=null,o=Ou,Ou=Em(t.containerInfo),Du(t,e,n),Ou=o,Au(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Jh(t.containerInfo)}catch(t){vf(e,e.return,t)}au&&(au=!1,ju(e)),Rt=!1;break;case 4:a=iu,iu=nu,r=zt(),o=Ou,Ou=Em(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=o,Rt&&lu&&(uu=!0),Rt=r,iu=a;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(vd=Ne()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=nu,l=ru,u=iu;nu=c||o,iu=u||o,ru=l||s,Du(t,e,n),ru=l,iu=u,nu=c,Au(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||nu||ru||(t=s||ru,n=nu,r=ru,nu=o||nu,ru=t,Fu(e,2),nu=n,ru=r),!o&&iu||hu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:a&512&&(ru||r===null||wl(r,r.return)),a=zt(),o=lu,s=(n&335544064)===n,c=e.memoizedProps,lu=s&&di(c.default,c.update)!==`none`,Du(t,e,n),Au(e),s&&r!==null&&Rt&&(e.flags|=4),lu=o,Rt=a;break;case 21:break;case 7:a&512&&(ru||r===null||wl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ml(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(kl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ol(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Fl(e,Nl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(nn(l,``),n.flags&=-33),Fl(e,Nl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Pl(e,Nl(e),u,s);break;default:throw Error(i(161))}}catch(t){vf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Sh=!0,t.reset(),Sh=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Nu(t,e),t=t.sibling;else tu(t,!1)}function Nu(e,t){var n=e.alternate;if(n===null)ql(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Vl(),Mu(t,e),!cu&&!uu){if(e=Bl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Mp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Bl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):ql(e,!1));break;case 30:r=cu,i=Vl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=li(a,o),o=li(n.memoizedProps,o);var s=di(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Hl=0,t=eu(e,n,t,o,s,a,!0),Hl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Ld(e,e.memoizedProps.onUpdate),Bl=i):i!==null&&(i.push.apply(i,Bl),Bl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Pu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Fu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:bl(4,n,n.return),Fu(n,r);break;case 1:wl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Sl(n,n.return,i),Fu(n,r);break;case 27:r&2&&Sm(n.stateNode,n.type,n.memoizedProps);case 5:wl(n,n.return),n.tag!==5&&n.tag!==27||Dl(n),Fu(n,r);break;case 6:Dl(n);break;case 26:wl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ru||i.parentNode.removeChild(i),Fu(n,r);break;case 22:n.memoizedState===null&&Fu(n,r);break;case 30:wl(n,n.return),Fu(n,r);break;case 7:wl(n,n.return);default:Fu(n,r)}e=e.sibling}}function Iu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Iu(i,a,n),yl(4,a);break;case 1:if(Iu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){vf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)_o(l[i],c)}catch(e){vf(r,r.return,e)}}s&&o&64&&xl(a),Cl(a,a.return);break;case 27:n&2&&Il(a);case 5:a.tag!==5&&a.tag!==27||El(a),Iu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 6:El(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||nu||Qm(Em(c.ownerDocument),a.type,c),Iu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 12:Iu(i,a,n);break;case 31:Iu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Iu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Iu(i,a,n),Cl(a,a.return);break;case 30:Iu(i,a,n),Cl(a,a.return);break;case 7:Cl(a,a.return);default:Iu(i,a,n)}t=t.sibling}}function Lu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ea(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ea(e))}function zu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Bu(e,t,n,r),t=t.sibling;else i&&$l(t)}function Bu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:zu(e,t,n,r),a&2048&&yl(9,t);break;case 1:zu(e,t,n,r);break;case 3:zu(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ea(a)));break;case 12:if(a&2048){zu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){vf(t,t.return,e)}}else zu(e,t,n,r);break;case 31:zu(e,t,n,r);break;case 13:zu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Ql(t),o._visibility&2?zu(e,t,n,r):(o._visibility|=2,Vu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Ql(s),o._visibility&2?zu(e,t,n,r):Hu(e,t)),a&2048&&Lu(s,t);break;case 24:zu(e,t,n,r),a&2048&&Ru(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Gl(a.child,!0),Gl(t.child,!0))),zu(e,t,n,r);break;default:zu(e,t,n,r)}}function Vu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Vu(a,o,s,c,i),yl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Vu(a,o,s,c,i)):u._visibility&2?Vu(a,o,s,c,i):Hu(a,o),i&&l&2048&&Lu(o.alternate,o);break;case 24:Vu(a,o,s,c,i),i&&l&2048&&Ru(o.alternate,o);break;default:Vu(a,o,s,c,i)}t=t.sibling}}function Hu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Hu(n,r),i&2048&&Lu(r.alternate,r);break;case 24:Hu(n,r),i&2048&&Ru(r.alternate,r);break;default:Hu(n,r)}t=t.sibling}}var Uu=8192;function Wu(e,t,n){if(e.subtreeFlags&Uu)for(e=e.child;e!==null;)Gu(e,t,n),e=e.sibling}function Gu(e,t,n){switch(e.tag){case 26:Wu(e,t,n),e.flags&Uu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&rh(n,e)):ih(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Wu(e,t,n),e.flags&Uu&&(e=e.stateNode,(t&335544128)===t&&rh(n,e));break;case 3:case 4:var r=Ou;Ou=Em(e.stateNode.containerInfo),Wu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Uu,Uu=16777216,Wu(e,t,n),Uu=r):Wu(e,t,n));break;case 30:if((e.flags&Uu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Rl===null&&(Rl=new Map),Rl.set(r,i)}Wu(e,t,n);break;default:Wu(e,t,n)}}function Ku(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ju(e),e=e.sibling}function Ju(e){switch(e.tag){case 0:case 11:case 15:qu(e),e.flags&2048&&bl(9,e,e.return);break;case 3:qu(e);break;case 12:qu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):qu(e);break;default:qu(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Xu(r,e)}Ku(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function Xu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:bl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ea(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Zu={getCacheForType:function(e){var t=va(wa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return va(wa).controller.signal}},Qu=typeof WeakMap==`function`?WeakMap:Map,$u=0,ed=null,td=null,nd=0,rd=0,id=null,ad=!1,od=!1,sd=!1,cd=0,ld=0,ud=0,dd=0,fd=0,pd=0,md=0,hd=null,gd=null,_d=!1,vd=0,yd=0,bd=1/0,xd=null,Sd=null,Cd=0,wd=null,Td=null,Ed=0,Dd=0,Od=null,kd=null,Ad=null,jd=null,Md=null,Nd=0,Pd=null;function Fd(){return $u&2&&nd!==0?nd&-nd:U.T===null?ft():zf()}function Id(){if(pd===0){if(!(nd&536870912)||Zi){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),pd=e}else pd=536870912}return e=wo.current,e!==null&&(e.flags|=32),pd}function Ld(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Bp(li(e.memoizedProps,n))),jd===null&&(jd=[]),jd.push(t.bind(null,r))}}function Rd(e,t,n){(e===ed&&(rd===2||rd===9)||e.cancelPendingCommit!==null)&&(Gd(e,0),Hd(e,nd,pd,!1)),at(e,n),$u&2&&e===ed||(e===ed&&(!($u&2)&&(dd|=n),ld===4&&Hd(e,nd,pd,!1)),jf(e))}function zd(e,t,n){if($u&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||et(e,t),a=r?$d(e,t):Zd(e,t,!0),o=r;do{if(a===0){od&&!r&&Hd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Vd(n))a=Zd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=hd;var l=c.current.memoizedState.isDehydrated;if(l&&(Gd(c,s).flags|=256),s=Zd(c,s,!1),s!==2&&s!==6){if(sd&&!l){c.errorRecoveryDisabledLanes|=o,dd|=o,a=4;break a}o=gd,gd=a,o!==null&&(gd===null?gd=o:gd.push.apply(gd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Gd(e,0),Hd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Hd(r,t,pd,!ad);break a;case 2:gd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=vd+300-Ne(),10<a)){if(Hd(r,t,pd,!ad),$e(r,0,!0)!==0)break a;Ed=t,r.timeoutHandle=Sp(Bd.bind(null,r,n,gd,xd,_d,t,pd,dd,md,ad,o,`Throttled`,-0,0),a);break a}Bd(r,n,gd,xd,_d,t,pd,dd,md,ad,o,null,-0,0)}break}}while(1);jf(e)}function Bd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Rl=null,Gu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ch.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?vd-Ne():(a&4194048)===a?yd-Ne():0,m=oh(d,m),m!==null)?(Ed=a,e.cancelPendingCommit=m(sf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Hd(e,a,o,!l)):sf(e,t,a,n,r,i,o,s,c,l,u,d)}function Vd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Nr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hd(e,t,n,r){t=tt(e,t),t&=~fd,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ge(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&st(e,n,t)}function Ud(){return $u&6?!0:(Mf(0,!1),!1)}function Wd(){if(td!==null){if(rd===0)var e=td.return;else e=td,ua=la=null,es(e),Qa=null,$a=0,e=td;for(;e!==null;)vl(e.alternate,e),e=e.return;td=null}}function Gd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Cp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ed=0,Wd(),ed=e,td=n=Ei(e.current,null),nd=t,rd=0,id=null,ad=!1,od=et(e,t),sd=!1,md=pd=fd=dd=ud=ld=0,gd=hd=null,_d=!1,cd=tt(e,t),gi(),n}function Kd(e,t){Io=null,U.H=dc,t===Ha||t===Wa?(t=Xa(),rd=3):t===Ua?(t=Xa(),rd=4):rd=t===kc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,id=t,td===null&&(ld=1,Cc(e,Pi(t,e.current)))}function qd(){var e=wo.current;return e===null?!0:(nd&4194048)===nd?To===null:(nd&62914560)===nd||nd&536870912?e===To:!1}function Jd(){var e=U.H;return U.H=dc,e===null?dc:e}function Yd(){var e=U.A;return U.A=Zu,e}function Xd(){ld=4,ad||(nd&4194048)!==nd&&wo.current!==null||(od=!0),!(ud&134217727)&&!(dd&134217727)||ed===null||Hd(ed,nd,pd,!1)}function Zd(e,t,n){var r=$u;$u|=2;var i=Jd(),a=Yd();(ed!==e||nd!==t)&&(xd=null,Gd(e,t)),t=!1;var o=ld;a:do try{if(rd!==0&&td!==null){var s=td,c=id;switch(rd){case 8:Wd(),o=6;break a;case 3:case 2:case 9:case 6:wo.current===null&&(t=!0);var l=rd;if(rd=0,id=null,rf(e,s,c,l),n&&od){o=0;break a}break;default:l=rd,rd=0,id=null,rf(e,s,c,l)}}Qd(),o=ld;break}catch(t){Kd(e,t)}while(1);return t&&e.shellSuspendCounter++,ua=la=null,$u=r,U.H=i,U.A=a,td===null&&(ed=null,nd=0,gi()),o}function Qd(){for(;td!==null;)tf(td)}function $d(e,t){var n=$u;$u|=2;var r=Jd(),a=Yd();ed!==e||nd!==t?(xd=null,bd=Ne()+500,Gd(e,t)):od=et(e,t);a:do try{if(rd!==0&&td!==null){t=td;var o=id;b:switch(rd){case 1:rd=0,id=null,rf(e,t,o,1);break;case 2:case 9:if(Ka(o)){rd=0,id=null,nf(t);break}t=function(){rd!==2&&rd!==9||ed!==e||(rd=7),jf(e)},o.then(t,t);break a;case 3:rd=7;break a;case 4:rd=5;break a;case 7:Ka(o)?(rd=0,id=null,nf(t)):(rd=0,id=null,rf(e,t,o,7));break;case 5:var s=null;switch(td.tag){case 26:s=td.memoizedState;case 5:case 27:var c=td;if(s?th(s):c.stateNode.complete){rd=0,id=null;var l=c.sibling;if(l!==null)td=l;else{var u=c.return;u===null?td=null:(td=u,af(u))}break b}}rd=0,id=null,rf(e,t,o,5);break;case 6:rd=0,id=null,rf(e,t,o,6);break;case 8:Wd(),ld=6;break a;default:throw Error(i(462))}}ef();break}catch(t){Kd(e,t)}while(1);return ua=la=null,U.H=r,U.A=a,$u=n,td===null?(ed=null,nd=0,gi(),ld):0}function ef(){for(;td!==null&&!je();)tf(td)}function tf(e){var t=ll(e.alternate,e,cd);e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function nf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uc(n,t,t.pendingProps,t.type,void 0,nd);break;case 11:t=Uc(n,t,t.pendingProps,t.type.render,t.ref,nd);break;case 5:es(t);var r=t;r===Yi&&(Zi?(ra(r),r.tag===5&&r.stateNode!=null&&(Xi=r.stateNode)):(ra(r),Zi=!0));default:vl(n,t),t=td=Di(t,cd),t=ll(n,t,cd)}e.memoizedProps=e.pendingProps,t===null?af(e):td=t}function rf(e,t,n,r){ua=la=null,es(t),Qa=null,$a=0;var i=t.return;try{if(Oc(e,i,t,n,nd)){ld=1,Cc(e,Pi(n,e.current)),td=null;return}}catch(t){if(i!==null)throw td=i,t;ld=1,Cc(e,Pi(n,e.current)),td=null;return}t.flags&32768?(Zi||r===1?e=!0:od||nd&536870912?e=!1:(ad=e=!0,(r===2||r===9||r===3||r===6)&&(r=wo.current,r!==null&&r.tag===13&&(r.flags|=16384))),of(t,e)):af(t)}function af(e){var t=e;do{if(t.flags&32768){of(t,ad);return}e=t.return;var n=gl(t.alternate,t,cd);if(n!==null){td=n;return}if(t=t.sibling,t!==null){td=t;return}td=t=e}while(t!==null);ld===0&&(ld=5)}function of(e,t){do{var n=_l(e.alternate,e);if(n!==null){n.flags&=32767,td=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){td=e;return}td=e=n}while(e!==null);ld=6,td=null}function sf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do hf();while(Cd!==0);if($u&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===ed&&(td=ed=null,nd=0),Td=t,wd=e,Ed=n,Od=a,kd=r,cf(e,t,n,s,c,l,f)}}function cf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Dd=s,s|=hi,ot(e,n,s,r,i,a),jd=null,(n&335544064)===n?(Md=ka(e),r=10262):(Md=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,wf(Le,function(){return gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ll=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=U.T,U.T=null,i=ae.p,ae.p=2,a=$u,$u|=4;try{fu(e,t,n)}finally{$u=a,ae.p=i,U.T=r}}Cd=1,Ll?Ad=Rp(o,e.containerInfo,Md,df,ff,uf,pf,gf,lf,null,null):(df(),ff(),pf())}function lf(e){if(Cd!==0){var t=wd.onRecoverableError;t(e,{componentStack:null})}}function uf(){Cd===3&&(Cd=0,Nu(Td,wd),Cd=4)}function df(){if(Cd===1){Cd=0;var e=wd,t=Td,n=Ed,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=ae.p;ae.p=2;var a=$u;$u|=4;try{lu=uu=!1,ku(t,e,n),n=mp;var o=zr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Rr(s.ownerDocument.documentElement,s)){if(c!==null&&Br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Lr(s,h),v=Lr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Sh=!!pp,mp=pp=null}finally{$u=a,ae.p=i,U.T=r}}e.current=t,Cd=2}}function ff(){if(Cd===2){Cd=0;var e=wd,t=Td,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=U.T,U.T=null;var r=ae.p;ae.p=2;var i=$u;$u|=4;try{mu(e,t.alternate,t)}finally{$u=i,ae.p=r,U.T=n}}Cd=3}}function pf(){if(Cd===4||Cd===3){Cd=0;var e=Ad;Ad=null,Me();var t=wd,n=Td,r=Ed,i=kd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Cd=5:(Cd=0,Td=wd=null,mf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Sd=null),dt(r),n=n.stateNode,Ue&&typeof Ue.onCommitFiberRoot==`function`)try{Ue.onCommitFiberRoot(He,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=U.T,a=ae.p,ae.p=2,U.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{U.T=n,ae.p=a}}if(i=jd,o=Md,Md=null,i!==null&&(jd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Ed&3&&hf(),jf(t),a=t.pendingLanes,r&261930&&a&42?t===Pd?Nd++:(Nd=0,Pd=t):(Nd=0,Pd=null),Mf(0,!1)}}function mf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ea(t)))}function hf(){return Ad!==null&&(Ad.skipTransition(),Ad=null),df(),ff(),pf(),gf()}function gf(){if(Cd!==5)return!1;var e=wd,t=Dd;Dd=0;var n=dt(Ed),r=U.T,a=ae.p;try{ae.p=32>n?32:n,U.T=null,n=Od,Od=null;var o=wd,s=Ed;if(Cd=0,Td=wd=null,Ed=0,$u&6)throw Error(i(331));var c=$u;if($u|=4,Ju(o.current),Bu(o,o.current,s,n),$u=c,Mf(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,o)}catch{}return!0}finally{ae.p=a,U.T=r,mf(e,t)}}function _f(e,t,n){t=Pi(n,t),t=Tc(e.stateNode,t,2),e=uo(e,t,2),e!==null&&(at(e,2),jf(e))}function vf(e,t,n){if(e.tag===3)_f(e,e,n);else for(;t!==null;){if(t.tag===3){_f(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Sd===null||!Sd.has(r))){e=Pi(n,e),n=Ec(2),r=uo(t,n,2),r!==null&&(Dc(n,r,t,e),at(r,2),jf(r));break}}t=t.return}}function yf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(sd=!0,i.add(n),e=bf.bind(null,e,t,n),t.then(e,e))}function bf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ed===e&&(nd&n)===n&&(ld===4||ld===3&&(nd&62914560)===nd&&300>Ne()-vd?$u&2?fd|=n:Gd(e,0):fd|=n,md===nd&&(md=0)),jf(e)}function xf(e,t){t===0&&(t=rt()),e=yi(e,t),e!==null&&(at(e,t),jf(e))}function Sf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function Cf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),xf(e,n)}function wf(e,t){return ke(e,t)}var Tf=null,Ef=null,Df=!1,Of=!1,kf=!1,Af=0;function jf(e){e!==Ef&&e.next===null&&(Ef===null?Tf=Ef=e:Ef=Ef.next=e),Of=!0,Df||(Df=!0,Rf())}function Mf(e,t){if(!kf&&Of){kf=!0;do for(var n=!1,r=Tf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Lf(r,a))}else a=nd,a=$e(r,r===ed?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,Lf(r,a))}r=r.next}while(n);kf=!1}}function Nf(){Pf()}function Pf(){Of=Df=!1;var e=0;Af!==0&&xp()&&(e=Af);for(var t=Ne(),n=null,r=Tf;r!==null;){var i=r.next,a=Ff(r,t);a===0?(r.next=null,n===null?Tf=i:n.next=i,i===null&&(Ef=n)):(n=r,(e!==0||a&3)&&(Of=!0)),r=i}Cd!==0&&Cd!==5||Mf(e,!1),Af!==0&&(Af=0)}function Ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ge(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=ed,n=nd,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(rd===2||rd===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ae(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ae(r),dt(n)){case 2:case 8:n=Ie;break;case 32:n=Le;break;case 268435456:n=ze;break;default:n=Le}return r=If.bind(null,e),n=ke(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ae(r),e.callbackPriority=2,e.callbackNode=null,2}function If(e,t){if(Cd!==0&&Cd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hf()&&e.callbackNode!==n)return null;var r=nd;return r=$e(e,e===ed?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(zd(e,r,t),Ff(e,Ne()),e.callbackNode!=null&&e.callbackNode===n?If.bind(null,e):null)}function Lf(e,t){if(hf())return null;zd(e,t,!0)}function Rf(){Ep(function(){$u&6?ke(Fe,Nf):Pf()})}function zf(){if(Af===0){var e=Ma;e===0&&(e=Ye,Ye<<=1,!(Ye&261888)&&(Ye=256)),Af=e}return Af}function Bf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:un(e)}function Vf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Bf((i[gt]||null).action),o=r.submitter;o&&(t=(t=o[gt]||null)?Bf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Mn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Af!==0){var e=new FormData(i,o);Zs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Zs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var q=0;q<oi.length;q++){var Hf=oi[q];si(Hf.toLowerCase(),`on`+(Hf[0].toUpperCase()+Hf.slice(1)))}si(Qr,`onAnimationEnd`),si($r,`onAnimationIteration`),si(ei,`onAnimationStart`),si(`dblclick`,`onDoubleClick`),si(`focusin`,`onFocus`),si(`focusout`,`onBlur`),si(ti,`onTransitionRun`),si(ni,`onTransitionStart`),si(ri,`onTransitionCancel`),si(ii,`onTransitionEnd`),Nt(`onMouseEnter`,[`mouseout`,`mouseover`]),Nt(`onMouseLeave`,[`mouseout`,`mouseover`]),Nt(`onPointerEnter`,[`pointerout`,`pointerover`]),Nt(`onPointerLeave`,[`pointerout`,`pointerover`]),Mt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Mt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Mt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Mt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Uf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Wf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Uf));function Gf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){fi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){fi(e)}i.currentTarget=null,a=c}}}}function Kf(e,t){var n=t[vt];n===void 0&&(n=t[vt]=new Set);var r=e+`__bubble`;n.has(r)||(Xf(t,e,2,!1),n.add(r))}function qf(e,t,n){var r=0;t&&(r|=4),Xf(n,e,r,t)}var Jf=`_reactListening`+Math.random().toString(36).slice(2);function Yf(e){if(!e[Jf]){e[Jf]=!0,At.forEach(function(t){t!==`selectionchange`&&(Wf.has(t)||qf(t,!1,e),qf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jf]||(t[Jf]=!0,qf(`selectionchange`,!1,t))}}function Xf(e,t,n,r){switch(kh(t)){case 2:var i=Ch;break;case 8:i=wh;break;default:i=Th}n=i.bind(null,t,n,e),i=void 0,!xn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Zf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=wt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}vn(function(){var r=a,i=pn(n),s=[];a:{var c=ai.get(e);if(c!==void 0){var l=Mn,u=e;switch(e){case`keypress`:if(Dn(n)===0)break a;case`keydown`:case`keyup`:l=Yn;break;case`focusin`:u=`focus`,l=Bn;break;case`focusout`:u=`blur`,l=Bn;break;case`beforeblur`:case`afterblur`:l=Bn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Rn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Qn;break;case Qr:case $r:case ei:l=Vn;break;case ii:l=$n;break;case`scroll`:case`scrollend`:l=Pn;break;case`wheel`:l=er;break;case`copy`:case`cut`:case`paste`:l=Hn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Xn;break;case`submit`:l=Zn;break;case`toggle`:case`beforetoggle`:l=tr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=yn(m,p),g!=null&&d.push(Qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==fn&&(u=n.relatedTarget||n.fromElement)&&(wt(u)||u[_t]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?wt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Rn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Xn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Et(c),h=l==null?u:Et(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,wt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,ep):null,c!==null&&tp(s,u,c,d,!1),l!==null&&f!==null&&tp(s,f,l,d,!0)))}a:{if(c=r?Et(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=xr;else if(hr(c)){if(Sr)_=jr;else{_=kr;var v=Or}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&sn(r.elementType)&&(_=xr):_=Ar;if(_&&=_(e,r)){gr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Et(r):window,e){case`focusin`:(hr(v)||v.contentEditable===`true`)&&(Hr=v,Ur=r,Wr=null);break;case`focusout`:Wr=Ur=Hr=null;break;case`mousedown`:Gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Gr=!1,Kr(s,n,i);break;case`selectionchange`:if(Vr)break;case`keydown`:case`keyup`:Kr(s,n,i)}var y;if(rr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else dr?lr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(or&&n.locale!==`ko`&&(dr||b!==`onCompositionStart`?b===`onCompositionEnd`&&dr&&(y=En()):(Cn=i,wn=`value`in Cn?Cn.value:Cn.textContent,dr=!0)),v=$f(r,b),0<v.length&&(b=new Un(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=ur(n),y!==null&&(b.data=y)))),(y=ar?fr(e,n):pr(e,n))&&(b=$f(r,`onBeforeInput`),0<b.length&&(v=new Un(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Vf(s,e,r,n,i)}Gf(s,t)})}function Qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $f(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=yn(e,n),i!=null&&r.unshift(Qf(e,i,a)),i=yn(e,t),i!=null&&r.push(Qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ep(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=yn(n,a),l!=null&&o.unshift(Qf(n,l,c))):i||(l=yn(n,a),l!=null&&o.push(Qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var np=/\r\n?/g,rp=/\u0000|\uFFFD/g;function ip(e){return(typeof e==`string`?e:``+e).replace(np,`
+`).replace(rp,``)}function ap(e,t){return t=ip(t),ip(e)===t}function op(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||nn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&nn(e,``+r);else return;break;case`className`:Vt(e,`class`,r);break;case`tabIndex`:Vt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Vt(e,n,r);break;case`style`:on(e,r,o);return;case`data`:if(t!==`object`){Vt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=un(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&op(e,t,`name`,a.name,a,null),op(e,t,`formEncType`,a.formEncType,a,null),op(e,t,`formMethod`,a.formMethod,a,null),op(e,t,`formTarget`,a.formTarget,a,null)):(op(e,t,`encType`,a.encType,a,null),op(e,t,`method`,a.method,a,null),op(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=un(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=dn);return;case`onScroll`:r!=null&&Kf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Kf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=un(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Kf(`beforetoggle`,e),Kf(`toggle`,e),Bt(e,`popover`,r);break;case`xlinkActuate`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ht(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ht(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ht(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ht(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Bt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=cn.get(n)||n,Bt(e,n,r);else return}Rt=!0}function sp(e,t,n,r,a,o){switch(n){case`style`:on(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)nn(e,r);else if(typeof r==`number`||typeof r==`bigint`)nn(e,``+r);else return;break;case`onScroll`:r!=null&&Kf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Kf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=dn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!jt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[gt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Rt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Bt(e,n,r)}return}Rt=!0}function cp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Kf(`error`,e),Kf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,o,s,n,null)}}a&&op(e,t,`srcSet`,n.srcSet,n,null),r&&op(e,t,`src`,n.src,n,null);return;case`input`:Kf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:op(e,t,r,d,n,null)}}Zt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Kf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:op(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&$t(e,!!r,n,!0):$t(e,!!r,t,!1);return;case`textarea`:for(s in Kf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:op(e,t,s,c,n,null)}tn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:op(e,t,l,r,n,null)}return;case`dialog`:Kf(`beforetoggle`,e),Kf(`toggle`,e),Kf(`cancel`,e),Kf(`close`,e);break;case`iframe`:case`object`:Kf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Uf.length;r++)Kf(Uf[r],e);break;case`image`:Kf(`error`,e),Kf(`load`,e);break;case`details`:Kf(`toggle`,e);break;case`embed`:case`source`:case`link`:Kf(`error`,e),Kf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:op(e,t,u,r,n,null)}return;default:if(sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&sp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&op(e,t,c,r,n,null))}var lp={};function up(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||op(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Rt=!0),o=m;break;case`name`:m!==f&&(Rt=!0),a=m;break;case`checked`:m!==f&&(Rt=!0),u=m;break;case`defaultChecked`:m!==f&&(Rt=!0),d=m;break;case`value`:m!==f&&(Rt=!0),s=m;break;case`defaultValue`:m!==f&&(Rt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&op(e,t,p,m,r,f)}}Xt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||op(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Rt=!0),p=o;break;case`defaultValue`:o!==l&&(Rt=!0),c=o;break;case`multiple`:o!==l&&(Rt=!0),s=o;default:o!==l&&op(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?$t(e,!!n,n?[]:``,!1):$t(e,!!n,t,!0)):$t(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:op(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Rt=!0),p=a;break;case`defaultValue`:a!==o&&(Rt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&op(e,t,s,a,r,o)}en(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:op(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Rt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:op(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&op(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:op(e,t,u,p,r,m)}return;default:if(sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&sp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||sp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&op(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||op(e,t,f,p,r,m)}function dp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function fp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&dp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&dp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var pp=null,mp=null;function hp(e){return e.nodeType===9?e:e.ownerDocument}function gp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function _p(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function vp(e,t,n,r){return n=hp(n).createElement(e),n[ht]=r,n[gt]=t,cp(n,e,t),Ot(n),n}function yp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bp=null;function xp(){var e=window.event;return e&&e.type===`popstate`?e!==bp&&(bp=e,!0):(bp=null,!1)}var Sp=typeof setTimeout==`function`?setTimeout:void 0,Cp=typeof clearTimeout==`function`?clearTimeout:void 0,wp=typeof Promise==`function`?Promise:void 0,Tp=typeof requestAnimationFrame==`function`?requestAnimationFrame:Sp,Ep=typeof queueMicrotask==`function`?queueMicrotask:wp===void 0?Sp:function(e){return wp.resolve(null).then(e).catch(Dp)};function Dp(e){setTimeout(function(){throw e})}function Op(e){return e===`head`}function kp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Jh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cm(e.ownerDocument.body)}n=i}while(n);Jh(t)}function Ap(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function jp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Mp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Np(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Pp(e){return Np(e.getBoundingClientRect(),getComputedStyle(e),e)}function Fp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Np(t,n,e)}function Ip(e){return e.documentElement.clientHeight}function Lp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Rp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ip(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=nh(f),u>ah){s.length=o;break}f=new Promise(Lp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function zp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}zp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},zp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},zp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Bp(e){return{name:e,group:new zp(`group`,e),imagePair:new zp(`image-pair`,e),old:new zp(`old`,e),new:new zp(`new`,e)}}function Vp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Kp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Wp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Hp,e,s,r)}this._eventListeners=a}};function Hp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Vp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Kp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Wp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Up,e,n,i),r.splice(t,1),a!==null&&a()}};function Up(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Wp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Gp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Kp(e,t,n,r){if(e.length===0)return-1;r=Gp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Gp(a.optionsOrUseCapture)===r)return i}return-1}Vp.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Wp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Vp.prototype.focus=function(e){f(this._fragmentFiber.child,!0,qp,e,void 0,void 0)};function qp(e,t){return e.tag!==6&&(e=_(e),ym(e,t))}Vp.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Jp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!qp(t[n],e);n--);};function Jp(e,t){return t.push(e),!1}Vp.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=hp(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Yp,e,void 0,void 0))};function Yp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Xp,e,void 0,void 0)};function Xp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Vp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0);for(var n=t=0;n<Qp.length;n++){var r=Qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Qp[t++]=r}Qp.length=t}};function Zp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var Qp=[],$p=!1;function em(e,t,n){Qp.push({fragmentInstance:e,observer:t,instance:n}),$p||($p=!0,bm(function(){$p=!1;var e=Qp;Qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Vp.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,tm,e,void 0,void 0),e};function tm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Vp.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Vp.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Jp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||nm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function nm(e,t,n,r,i){var a=wt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function rm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Jp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),rm(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),rm(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function im(e,t){return e=_(e),am(e,t),!1}function am(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Qp.length;i++){var a=Qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Qp[r++]=a)}Qp.length=r,n.observe(e)}),am(e,t))}function sm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Wp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?em(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function cm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cm(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hm(e.nextSibling),e===null)break}return null}function um(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hm(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hm(e.nextSibling),e===null))return null;return e}function fm(e){return e.data===`$?`||e.data===`$~`}function pm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gm=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ym(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function bm(e){Tp(function(){Tp(function(t){return e(t)})})}function xm(e,t,n){switch(t=hp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Sm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&op(e,t,r,null,lp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===dn&&(e.onclick=null),Ct(e)}function Cm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var wm=new Map,Tm=new Set;function Em(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Dm=ae.d;ae.d={f:Om,r:km,D:Mm,C:Nm,L:Pm,m:Fm,X:Lm,S:Im,M:Rm};function Om(){var e=Dm.f(),t=Ud();return e||t}function km(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?$s(t):Dm.r(e)}var Am=typeof document>`u`?null:document;function jm(e,t,n){var r=Am;if(r&&typeof t==`string`&&t){var i=Yt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tm.has(i)||(Tm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),cp(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Mm(e){Dm.D(e),jm(`dns-prefetch`,e,null)}function Nm(e,t){Dm.C(e,t),jm(`preconnect`,e,t)}function Pm(e,t,n){Dm.L(e,t,n);var r=Am;if(r&&e&&t){var i=`link[rel="preload"][as="`+Yt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Yt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Yt(n.imageSizes)+`"]`)):i+=`[href="`+Yt(e)+`"]`;var a=i;switch(t){case`style`:a=Bm(e);break;case`script`:a=Wm(e)}if(!(wm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vm(a))||t===`script`&&r.querySelector(Gm(a))))){var o=r.createElement(`link`);cp(o,`link`,e),t===`style`&&(o[St]=!0,o.onload=o.onerror=function(){kt(o)}),Ot(o),r.head.appendChild(o)}}}function Fm(e,t){Dm.m(e,t);var n=Am;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Yt(r)+`"][href="`+Yt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wm(e)}if(!wm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),wm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gm(a)))return}r=n.createElement(`link`),cp(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Im(e,t,n){Dm.S(e,t,n);var r=Am;if(r&&e){var i=Dt(r).hoistableStyles,a=Bm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wm.get(a))&&Jm(e,n);var c=o=r.createElement(`link`);Ot(c),cp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,qm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lm(e,t){Dm.X(e,t);var n=Am;if(n&&e){var r=Dt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=w({src:e,async:!0},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),Ot(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rm(e,t){Dm.M(e,t);var n=Am;if(n&&e){var r=Dt(n).hoistableScripts,i=Wm(e),a=r.get(i);a||(a=n.querySelector(Gm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=wm.get(i))&&Ym(e,t),a=n.createElement(`script`),Ot(a),cp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zm(e,t,n,r){var a=(a=me.current)?Em(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Bm(n.href),t=Dt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bm(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=wm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wm.set(e,o)),Um(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Wm(n),t=Dt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bm(e){return`href="`+Yt(e)+`"`}function Vm(e){return`link[rel="stylesheet"][`+e+`]`}function Hm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Um(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[St]){r.loading=1;return}}else t=e.createElement(`link`),t[St]=!0,t.onload=t.onerror=kt.bind(null,t),cp(t,`link`,n),Ot(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Wm(e){return`[src="`+Yt(e)+`"]`}function Gm(e){return`script[async]`+e}function Km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Yt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),cp(r,`style`,a),qm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bm(n.href);var o=e.querySelector(Vm(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Hm(n),(a=wm.get(a))&&Jm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),cp(o,`link`,r),t.state.loading|=4,qm(o,n.precedence,e),t.instance=o;case`script`:return o=Wm(n.src),(a=e.querySelector(Gm(o)))?(t.instance=a,Ot(a),a):(r=n,(a=wm.get(o))&&(r=w({},n),Ym(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),cp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qm(r,n.precedence,e));return t.instance}function qm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Ym(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Xm=null;function Zm(e,t,n){if(Xm===null){var r=new Map,i=Xm=new Map;i.set(n,r)}else i=Xm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[ht]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $m(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function eh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function th(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function nh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function rh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=nh(t),e.suspenseyImages.push(t)),e=lh.bind(e),t.decode().then(e,e))}function ih(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bm(r.href),a=t.querySelector(Vm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ch.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Hm(r),(i=wm.get(i))&&Jm(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),cp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ch.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ah=0;function oh(e,t){return e.stylesheets&&e.count===0&&dh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ah===0&&(ah=62500*fp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&dh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ah?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)dh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ch(){this.count--,sh(this)}function lh(){this.imgCount--,sh(this)}var uh=null;function dh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uh=new Map,t.forEach(fh,e),uh=null,ch.call(e))}function fh(e,t){if(!(t.state.loading&4)){var n=uh.get(e);if(n)var r=n.get(null);else{n=new Map,uh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ch.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ph={$$typeof:M,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function mh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function hh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new mh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=wi(3,null,null,t),e.current=a,a.stateNode=e,t=Ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},so(a),e}function gh(e){return e?(e=Si,e):Si}function _h(e,t,n,r,i,a){i=gh(i),r.context===null?r.context=i:r.pendingContext=i,r=lo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=uo(e,r,t),n!==null&&(Rd(n,e,t),fo(n,e,t))}function vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yh(e,t){vh(e,t),(e=e.alternate)&&vh(e,t)}function bh(e){if(e.tag===13||e.tag===31){var t=yi(e,67108864);t!==null&&Rd(t,e,67108864),yh(e,67108864)}}function xh(e){if(e.tag===13||e.tag===31){var t=Fd();t=ut(t);var n=yi(e,t);n!==null&&Rd(n,e,t),yh(e,t)}}var Sh=!0;function Ch(e,t,n,r){var i=U.T;U.T=null;var a=ae.p;try{ae.p=2,Th(e,t,n,r)}finally{ae.p=a,U.T=i}}function wh(e,t,n,r){var i=U.T;U.T=null;var a=ae.p;try{ae.p=8,Th(e,t,n,r)}finally{ae.p=a,U.T=i}}function Th(e,t,n,r){if(Sh){var i=Eh(r);if(i===null)Zf(e,t,r,Dh,n),Rh(e,r);else if(Bh(i,e,t,n,r))r.stopPropagation();else if(Rh(e,r),t&4&&-1<Lh.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ge(o);s.entanglements[1]|=c,o&=~c}jf(a),!($u&6)&&(bd=Ne()+500,Mf(0,!1))}}break;case 31:case 13:s=yi(a,2),s!==null&&Rd(s,a,2),Ud(),yh(a,2)}if(a=Eh(r),a===null&&Zf(e,t,r,Dh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Zf(e,t,r,null,n)}}function Eh(e){return e=pn(e),Oh(e)}var Dh=null;function Oh(e){if(Dh=null,e=wt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dh=e,null}function kh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Pe()){case Fe:return 2;case Ie:return 8;case Le:case Re:return 32;case ze:return 268435456;default:return 32}default:return 32}}var Ah=!1,jh=null,Mh=null,Nh=null,Ph=new Map,Fh=new Map,Ih=[],Lh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Rh(e,t){switch(e){case`focusin`:case`focusout`:jh=null;break;case`dragenter`:case`dragleave`:Mh=null;break;case`mouseover`:case`mouseout`:Nh=null;break;case`pointerover`:case`pointerout`:Ph.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Fh.delete(t.pointerId)}}function zh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Bh(e,t,n,r,i){switch(t){case`focusin`:return jh=zh(jh,e,t,n,r,i),!0;case`dragenter`:return Mh=zh(Mh,e,t,n,r,i),!0;case`mouseover`:return Nh=zh(Nh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ph.set(a,zh(Ph.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Fh.set(a,zh(Fh.get(a)||null,e,t,n,r,i)),!0}return!1}function Vh(e){var t=wt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,pt(e.priority,function(){xh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,pt(e.priority,function(){xh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fn=r,n.target.dispatchEvent(r),fn=null}else return t=Tt(n),t!==null&&bh(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){Hh(e)&&n.delete(t)}function Wh(){Ah=!1,jh!==null&&Hh(jh)&&(jh=null),Mh!==null&&Hh(Mh)&&(Mh=null),Nh!==null&&Hh(Nh)&&(Nh=null),Ph.forEach(Uh),Fh.forEach(Uh)}function Gh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ah||(Ah=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wh)))}var Kh=null;function qh(e){Kh!==e&&(Kh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Kh===e&&(Kh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Oh(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,Zs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Jh(e){function t(t){return Gh(t,e)}jh!==null&&Gh(jh,e),Mh!==null&&Gh(Mh,e),Nh!==null&&Gh(Nh,e),Ph.forEach(t),Fh.forEach(t);for(var n=0;n<Ih.length;n++){var r=Ih[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ih.length&&(n=Ih[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&Ih.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[gt]||null;if(typeof a==`function`)o||qh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[gt]||null)s=o.formAction;else if(Oh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),qh(n)}}}function Yh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Xh(e){this._internalRoot=e}Zh.prototype.render=Xh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;_h(n,Fd(),e,t,null,null)},Zh.prototype.unmount=Xh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_h(e.current,2,null,e,null,null),Ud(),t[_t]=null}};function Zh(e){this._internalRoot=e}Zh.prototype.unstable_scheduleHydration=function(e){if(e){var t=ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ih.length&&t!==0&&t<Ih[n].priority;n++);Ih.splice(n,0,e),n===0&&Vh(e)}};var Qh=n.version;if(Qh!==`19.3.0`)throw Error(i(527,Qh,`19.3.0`));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var $h={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:U,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eg.isDisabled&&eg.supportsFiber)try{He=eg.inject($h),Ue=eg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=bc,s=xc,c=Sc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=hh(e,1,!1,null,null,n,r,null,o,s,c,Yh),e[_t]=t.current,Yf(e),new Xh(t)}})),w1=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=C1()}))();function T1({active:e,summary:t,generating:n,writing:r,scroll:i,children:a}){let o=(0,W.useRef)(null),s=(0,W.useRef)(null),[c,l]=(0,W.useState)(!1);(0,W.useEffect)(()=>{if(!e||!n||!o.current){l(!1);return}let t=!1,r=()=>l(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,r()});return i.observe(o.current),document.addEventListener(`visibilitychange`,r),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,r)}},[e,n]);let u=Z$(i,s,e&&n&&c);return(0,q.jsxs)(`div`,{ref:o,className:`note-reading-frame`,hidden:!e,"data-generating":n,"data-active":e&&n&&c,children:[(0,q.jsx)(`div`,{className:`note-reading-clip`,children:(0,q.jsx)(Gh,{enabled:e,children:(0,q.jsx)(`section`,{ref:i,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,q.jsx)(`div`,{ref:s,className:`note-page-width note-notes-body`,children:a})})})}),(0,q.jsx)(`span`,{className:`ask-border note-summary-rim`,"data-testid":`note-summary-rim`,"aria-hidden":`true`}),r&&!u.behind&&(0,q.jsx)(`span`,{className:`note-summary-status`,"aria-hidden":`true`,children:G(`Generating notes…`)}),u.behind&&(0,q.jsxs)(`button`,{type:`button`,className:`note-latest`,"data-testid":`note-summary-latest`,onClick:u.latest,children:[(0,q.jsx)(og,{size:12,"aria-hidden":`true`}),G(`Latest`)]})]})}function E1(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`||e.enhanced==null)||t.rewrittenFrom!==void 0&&(e.enhanced??``)===t.rewrittenFrom?{view:{...t,mine:e.mine}}:{view:{...t,mine:e.mine,enhanced:e.enhanced},...t.rewrittenFrom===void 0?{}:{keptEdits:!0}}:{view:t}}ah.transition.check,ah.transition.uncheck,{...ah.spring.checkPop},ah.transition.check.delay,ah.transition.popOut,ah.spring.bounce;var D1=ah.scale.icon,O1=2,k1=`path, line, polyline, polygon, circle, ellipse, rect`,A1=new WeakMap,j1=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function M1(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?j1.forEach((n,r)=>{let i=t.dash[r];i==null?e.removeAttribute(n):e.setAttribute(n,i)}):(e.setAttribute(`pathLength`,`1`),e.setAttribute(`stroke-dasharray`,`${Math.min(1,Math.max(0,n))} 1`),e.setAttribute(`stroke-dashoffset`,`0`))),t.mode===`pop`){let i=r||t.reduce||n===0&&t.blur>0;e.style.transform=i?t.inlineTransform:`scale(${t.from+(1-t.from)*n})`,t.blur&&(e.style.filter=i?t.inlineFilter:`blur(${t.blur*(1-Math.min(1,Math.max(0,n)))}px)`)}e.style.opacity=r?t.inlineOpacity:String(t.opacity*Math.min(1,Math.max(0,n)))}var N1=({kind:e,animation:t})=>e===`dot`||t===`pop`;function P1(e,t){return N1(t)?e:e.flatMap(e=>{let t=e.matches(k1)?[e]:Array.from(e.querySelectorAll(k1));return t.length>0?t:[e]})}function F1(e,t,n){let r=A1.get(e);if(!r){let i=N1(t);i&&t.kind===`check`&&e instanceof HTMLElement&&getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),r={mode:i?`pop`:e instanceof SVGGeometryElement?`stroke`:`fade`,from:t.kind===`dot`?0:D1,blur:t.kind===`dot`?0:O1,progress:mo(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:j1.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>M1(e,a,t)),A1.set(e,r)}return r.reduce=n,r}function I1(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(k1))]){let t=A1.get(e);t&&(t.controls?.stop(),t.unsubscribe(),M1(e,t,1),A1.delete(e))}}function L1(e,t,n,r,i){let a=e.map(e=>{let a=!A1.has(e),o=F1(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=mf(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function R1(...e){return t=>{let n=e.map(e=>{if(typeof e==`function`)return e(t);e&&(e.current=t)});return()=>{n.forEach((t,n)=>{let r=e[n];typeof t==`function`?t():typeof r==`function`?r(null):r&&(r.current=null)})}}}var z1=`[data-slot="toast-icon"]`;function B1(e){return e.querySelector(z1)?.firstElementChild??null}function V1(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var H1=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function U1(e){if(!e||!e.isConnected)return null;let t=e.getBoundingClientRect();if(t.width===0&&t.height===0)return null;let n=getComputedStyle(e),r=e.cloneNode(!0);for(let e of[r,...r.querySelectorAll(`[id], [data-slot]`)])e.removeAttribute(`id`),e.removeAttribute(`data-slot`);if(r instanceof HTMLElement)for(let e of H1)r.style[e]=n[e];let i=e.getAnimations().find(e=>e instanceof CSSAnimation)?.currentTime;return{element:r,rect:t,text:e.textContent??``,opacity:Number(n.opacity),filter:n.filter,color:n.color,time:typeof i==`number`?i:null}}function W1(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:U1(B1(e)),title:U1(V1(e,`aria-labelledby`)),description:U1(V1(e,`aria-describedby`))}}var G1=class extends W.Component{getSnapshotBeforeUpdate(e){return this.props.watch.some((t,n)=>!Object.is(t,e.watch[n]))?this.props.take():null}componentDidUpdate(e,t,n){n&&this.props.onUpdate(n)}render(){return this.props.children}},K1=[`success`,`error`];function q1(e,t,n,r,i){I1([e]);let a=K1.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(L1(P1([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;J1(e,(n+t.duration/2)*1e3,r)}}function J1(e,t,n){let{duration:r,ease:i}=n.transition.shake,a=`cubic-bezier(${i.join(`, `)})`;e.animate([0,-1,1,-.66,.66,-.33,0].map(e=>({transform:`translateX(${e*n.shift.shake}px)`,easing:a})),{duration:r*1e3,delay:t})}function Y1(e,t,n){let{element:r,rect:i}=t,a=n.scale||1,o=e.ownerDocument.createElement(`div`);if(o.setAttribute(`aria-hidden`,`true`),o.inert=!0,Object.assign(o.style,{position:`absolute`,left:`${(i.left-n.root.left)/a-e.clientLeft}px`,top:`${(i.top-n.root.top)/a-e.clientTop}px`,width:`${i.width/a}px`,height:`${i.height/a}px`,margin:`0`,pointerEvents:`none`,color:t.color,opacity:String(t.opacity),filter:t.filter}),r instanceof SVGElement&&(r.setAttribute(`width`,`100%`),r.setAttribute(`height`,`100%`),r.style.display=`block`),r instanceof HTMLElement&&(r.style.margin=`0`,r.style.width=`100%`),o.append(r),e.append(o),t.time!==null)for(let e of r.getAnimations())e.currentTime=t.time;return o}var X1=e=>mh(e);function Z1(e,t,n,r){let{duration:i,easing:a}=X1(n.transition.swap),o={opacity:e.style.opacity},s={opacity:0};o.filter=e.style.filter===`none`?`blur(0px)`:e.style.filter,s.filter=n.blur.icon,t&&!r&&(o.transform=`scale(1)`,s.transform=`scale(${n.scale.icon})`),e.animate([o,s],{duration:i,easing:a,fill:`forwards`}).finished.then(()=>e.remove(),()=>e.remove())}function Q1(e,t){let{duration:n,easing:r}=X1(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function $1(e,t,n){let r=e.style.height;e.style.height=`auto`;let i=e.offsetHeight;e.style.height=r,Math.abs(i-t)<1||e.animate([{height:`${t}px`},{height:`${i}px`}],{duration:n.duration,easing:n.easing})}function e0(e,t,n,r,i,a,o){if(!e)return;o||$1(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,V1(e,`aria-labelledby`)],[t.description,V1(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&Z1(Y1(e,n,t),!1,i,o),r&&a&&Q1(r,i))}if(!n)return;t.icon&&s&&Z1(Y1(e,t.icon,t),!0,i,o);let l=B1(e);l&&q1(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var t0=.5,n0=48,r0=360,i0=80,a0=100;function o0(e){let t=t0*Math.abs(e);return Math.sign(e)*(t*n0/(n0+t))}function s0(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function c0(e){let t=e.currentTarget,n=new DOMMatrix(getComputedStyle(t).transform.replace(`none`,``));return{pointerId:e.pointerId,start:{x:e.clientX,y:e.clientY},first:!0,axis:null,initial:{x:n.m41,y:n.m42,scale:Math.hypot(n.a,n.b)},width:t.offsetWidth,height:t.offsetHeight,points:[{t:e.timeStamp,x:e.clientX,y:e.clientY}],releasedAt:null}}function l0(e,t,n){if(t.pointerId!==e.pointerId||e.releasedAt!==null)return;e.first&&=(e.start={x:t.clientX,y:t.clientY},!1);let r=t.clientX-e.start.x,i=t.clientY-e.start.y,a=n.some(e=>e===`left`||e===`right`),o=n.some(e=>e===`up`||e===`down`);e.axis===null&&a&&o&&Math.hypot(r,i)>=1&&(e.axis=Math.abs(r)>Math.abs(i)?`x`:`y`),e.points.push({t:t.timeStamp,x:t.clientX,y:t.clientY}),e.points.length>32&&e.points.shift()}function u0(e,t){let n=e.points.at(-1),r=e.first?0:n.x-e.start.x,i=e.first?0:n.y-e.start.y,a=t.some(e=>e===`left`||e===`right`),o=t.some(e=>e===`up`||e===`down`),s=(e,n,r)=>e>0&&t.includes(n)||e<0&&t.includes(r)?e:o0(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function d0(e,t){let{x:n,y:r}=u0(e,t),i=Math.max(0,...t.map(t=>s0(t,n,r)/((t===`left`||t===`right`?e.width:e.height)||1))),{initial:a}=e;return{transform:`translateX(${a.x+n}px) translateY(${a.y+r}px) scale(${a.scale})`,opacity:1-Math.min(1,i)}}function f0(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=a0),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?s0(t,a.x-i.x,a.y-i.y)/(n-i.t):0,s=t===`left`||t===`right`?e.width:e.height,c=o>0?Math.min(r0,Math.max(i0,s/o)):r0;return{duration:Math.round(c),easing:`linear`}}var p0=`data-animate-ui-toast-progress`,m0=`data-animate-ui-toast-progress-bar`,h0=`
+:where([${p0}]) {
position: absolute;
inset: 0;
border-radius: inherit;
@@ -184,8 +184,8 @@ Error generating stack: `+e.message+`
transition-timing-function: var(--animate-ui-toast-fade-ease, ease-out);
transition-delay: var(--animate-ui-toast-cascade, 0ms);
}
-:where([data-expanded] > [${l0}]) { opacity: 1; }
-:where([${u0}]) {
+:where([data-expanded] > [${p0}]) { opacity: 1; }
+:where([${m0}]) {
position: absolute;
inset-inline: 0;
bottom: 0;
@@ -194,6 +194,6 @@ Error generating stack: `+e.message+`
opacity: 0.25;
transform-origin: left;
}
-:where([${u0}][data-tinted]) { opacity: 0.8; }
-:where([${u0}]:dir(rtl)) { transform-origin: right; }
-`,f0=U.createContext(void 0);function p0(){let e=U.useContext(f0);if(!e)throw Error(Mq(73));return e}var m0=0;function h0(e){return m0+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${m0}`}function g0(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function _0(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function v0(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var y0={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},b0=class extends cJ{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:_0(e.toasts)},{},y0)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=v0(this.state.toasts,t);r.toasts=e,r.toastMetadata=_0(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=y0.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||h0(`toast`);if(e.id){let t=y0.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(v0(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),y0.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=y0.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=y0.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),y0.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=y0.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=v0(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=g0(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=g0(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=g0(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=TU.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=YU(e);$(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=y0.expandedOrOutOfFocus(this.state)?void 0:TU.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:_0(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=qU(vG(this.state.viewport));if(!this.state.viewport||!$(this.state.viewport,t)||!OW(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=y0.toasts(this.state),r=y0.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},x0=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=fU(()=>new b0({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return CU(a.disposeEffect),U.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,K.jsxs)(f0.Provider,{value:a,children:[(0,K.jsx)(S0,{store:a,timeout:n,limit:r}),t]})};function S0(e){let{store:t,timeout:n,limit:r}=e;return Q(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var C0=`--toast-frontmost-height`,w0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=p0(),c=EU(),l=U.useRef(!1),u=U.useRef(!1),d=U.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);U.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=kB(e),n=vG(e);function r(t){t.key===`F6`&&YU(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,qU(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){YU(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=YU(n),i=qU(vG(e));r!==t&&$(e,r)&&OW(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return $W(QW(t,`keydown`,r),QW(t,`blur`,i,!0),QW(t,`focus`,a,!0),QW(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&YU(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}U.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||OW(qU(vG(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!$(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let k={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[C0]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,K.jsx)(xG,{onFocus:b}),M=VK(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,K.jsxs)(U.Fragment,{children:[j,a,j]})}]});return(0,K.jsxs)(U.Fragment,{children:[j,M,!m&&y.length>0&&(0,K.jsx)(`div`,{style:bG,children:y.map(e=>(0,K.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,K.jsx)(`div`,{children:e.title}),(0,K.jsx)(`div`,{children:e.description})]},e.id))})]})}),T0=U.createContext(void 0);function E0(){let e=U.useContext(T0);if(!e)throw Error(Mq(66));return e}function D0(e,t){let n=(t??kB(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function O0(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var k0=`--toast-index`,A0=`--toast-offset-y`,j0=`--toast-height`,M0=`--toast-swipe-movement-x`,N0=`--toast-swipe-movement-y`,P0=`data-swipe-direction`,F0={...oW,swipeDirection(e){return e?{[P0]:e}:null}},I0=40,L0=10,R0=.5,z0=1,B0=`${QK},${$K}`,V0=U.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=p0(),[f,p]=U.useState(void 0),[m,h]=U.useState(!1),[g,_]=U.useState(!1),[v,y]=U.useState({x:0,y:0}),[b,x]=U.useState({x:0,y:0,scale:1}),[S,C]=U.useState(),[w,T]=U.useState(),[E,D]=U.useState(null),O=U.useRef(null),k=U.useRef(void 0),A=U.useRef({x:0,y:0}),j=U.useRef({x:0,y:0,scale:1}),M=U.useRef(void 0),N=U.useRef(0),P=U.useRef(!1),F=U.useRef({x:0,y:0}),I=U.useRef(!1),L=U.useRef({x:0,y:0}),R=U.useRef(null),z=U.useRef(null),B=d.useState(`toastIndex`,n.id),ee=d.useState(`toastVisibleIndex`,n.id),te=d.useState(`toastOffsetY`,n.id),ne=d.useState(`focused`),re=d.useState(`expanded`);Bq({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let V=dG((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?De.flushSync(a):a()});Q(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),ie({x:0,y:0})),k.current=n.id,V())},[V,n.id,n.transitionStatus]);function ie(e){L.current=e,y(e)}Q(()=>()=>{z.current?.abort()},[]);function ae(e,t){let n=e=>e>0?e**R0:-(Math.abs(e)**R0),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let H=dG(e=>{if(e.pointerId!==R.current)return;R.current=null,z.current?.abort(),z.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){ie({x:t.x,y:t.y}),p(void 0);return}let r=L.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(O0(e,i,a)>I0){o=e;break}o?(p(o),d.closeToast(n.id)):(ie({x:t.x,y:t.y}),p(void 0))});function oe(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),JU(YU(e.nativeEvent),`button,a,input,textarea,[role="button"],${B0}`)))return;P.current=!1,M.current=void 0,N.current=0,R.current=e.pointerId,A.current={x:e.clientX,y:e.clientY},F.current=A.current;let t=e.currentTarget,n=D0(t);j.current=n,x(n),ie({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,z.current?.abort();let r=new AbortController;z.current=r;let i=vG(t);i.addEventListener(`pointerup`,H,{signal:r.signal}),i.addEventListener(`pointercancel`,H,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function se(e){if(e.pointerId!==R.current)return;e.preventDefault(),I.current&&=(A.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>F.current.y||i>0&&t<F.current.y)&&(F.current={x:F.current.x,y:t}),(r<0&&n>F.current.x||r>0&&n<F.current.x)&&(F.current={x:n,y:F.current.y});let a=n-A.current.x,o=t-A.current.y,s=t-F.current.y,c=n-F.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=z0){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!M.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(M.current=d,N.current=O0(d,a,o),p(d));else{let e=M.current,t=O0(e,c,s);t>I0?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=L0&&(P.current=!0)}let f=ae(a,o),m=j.current.x,h=j.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),ie({x:m,y:h})}function ce(e){if(e.key===`Escape`){if(!O.current||!$(O.current,qU(vG(O.current))))return;d.closeToast(n.id)}}U.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&$(e,YU(t))&&t.preventDefault()}return QW(e,`touchmove`,t,{passive:!1})},[u]);function le(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[M0]:`${e}px`,[N0]:`${t}px`}}let ue=n.priority===`high`,de={role:ue?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":ue&&!ne?!0:void 0,onPointerDown:u?oe:void 0,onPointerMove:u?se:void 0,onPointerUp:u?H:void 0,onPointerCancel:u?H:void 0,onKeyDown:ce,inert:jY(n.limited),style:{...le(),[k0]:n.transitionStatus===`ending`?B:ee,[A0]:`${te}px`,[j0]:n.height?`${n.height}px`:void 0}},fe=U.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:V,visibleIndex:ee,expanded:re}),[n,C,T,V,ee,re]),pe={transitionStatus:n.transitionStatus,expanded:re,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},me=VK(`div`,e,{ref:[t,O],state:pe,stateAttributesMapping:F0,props:[de,s]});return(0,K.jsx)(T0.Provider,{value:fe,children:me})}),H0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=E0(),l=U.useRef(null);return Q(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),VK(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function U0(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(U0)}function W0(e){return U.isValidElement(e)&&U0(e.props.children)}function G0(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=E0(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:yK(e),children:s,type:r.type,setId:o}}function K0(e,t,n){let r=W0(e);return Q(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var q0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=G0(a,o,`description`);return K0(VK(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),J0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=G0(a,o,`title`);return K0(VK(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Y0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=p0(),{toast:l,expanded:u}=E0(),[d,f]=U.useState(!1),{getButtonProps:p,buttonRef:m}=vY({disabled:a,native:o}),h={type:l.type};return VK(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),X0=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=E0(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=vY({disabled:a,native:o}),f={type:c.type},p=VK(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return W0(p)?p:null}),Z0=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=oq({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,K.jsxs)(U.Fragment,{children:[l,c&&De.createPortal(n,c)]})}),Q0=U.forwardRef(function(e,t){return(0,K.jsx)(Z0,{ref:t,...e})}),$0=U.createContext(void 0);function e2(){let e=U.useContext($0);if(e===void 0)throw Error(Mq(84));return e}var t2=U.forwardRef(function(e,t){let{toast:n,...r}=e,i=p0(),a=n.positionerProps??SU,{render:o,className:s,anchor:c=a.anchor,positionMethod:l=a.positionMethod??`absolute`,side:u=a.side??`top`,align:d=a.align??`center`,sideOffset:f=a.sideOffset??0,alignOffset:p=a.alignOffset??0,collisionBoundary:m=a.collisionBoundary??`clipping-ancestors`,collisionPadding:h=a.collisionPadding??5,arrowPadding:g=a.arrowPadding??5,sticky:_=a.sticky??!1,disableAnchorTracking:v=a.disableAnchorTracking??!1,collisionAvoidance:y=a.collisionAvoidance??tq,style:b,...x}=r,[S,C]=U.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=MB(c)?c:null,D=XY({anchor:E,positionMethod:l,floatingRootContext:yJ({open:!0,onOpenChange:bU,elements:{floating:S,reference:E}}),mounted:!0,side:u,sideOffset:f,align:d,alignOffset:p,collisionBoundary:m,collisionPadding:h,sticky:_,arrowPadding:g,disableAnchorTracking:v,keepMounted:!0,collisionAvoidance:y}),O=nX(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[k0]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,K.jsx)($0.Provider,{value:D,children:O})}),n2=U.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=e2();return VK(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function r2(){let e=p0(),t=e.useState(`toasts`);return U.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function i2(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||h0(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var a2=vQ({Action:()=>P2,Arrow:()=>L2,Close:()=>N2,Content:()=>A2,Description:()=>j2,Portal:()=>F2,Positioner:()=>I2,Provider:()=>S2,Root:()=>w2,Title:()=>M2,Viewport:()=>C2,createToastManager:()=>z2,useToastManager:()=>R2}),o2=`0.75rem`,s2=`0.75rem`,c2=ch.tooltip,l2=Wm.scale.toast,u2=Wm.blur.surface,d2=Wm.transition.fade,f2=5e3,p2=150,m2=`animate-ui-base-ui-toast`,h2=U.createContext({timeout:f2,progressBar:!0});function g2(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function _2(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function v2(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function y2(){let e=U.useRef({at:-1/0});return t=>{let n=e.current;return n.expanded!==void 0&&n.expanded!==t&&(n.at=performance.now()),n.expanded=t,performance.now()-n.at<p2}}function b2(e,{side:t,reduce:n,anchored:r,enter:i,exit:a,cascade:o,swipe:s,thrown:c}){let l=e.transitionStatus===`ending`,u=e.transitionStatus===`starting`,d=u||l||e.limited;if(e.swiping)return s??{opacity:+!d};if(r)return{opacity:+!d,...g2(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?c2:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...g2(n?f?[`transform`,`opacity`]:[`opacity`,`filter`]:[`transform`,`opacity`,`height`,`filter`],f&&c?c:l?a:i,l?void 0:o)},m=t===`top`?-1:1,h=`max(0.9, calc(1 - var(--toast-index) * 0.05))`,g=e.expanded?`1`:h,_=e.expanded?`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-offset-y, 0px) + var(--toast-index, 0) * ${o2}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${s2} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=u2,n||(y=`${m*100}%`,b=`calc(${g} * ${l2})`)),f===`down`&&(y=`100%`),f===`up`&&(y=`-100%`),f===`right`&&(v=`100%`),f===`left`&&(v=`-100%`),p.transform=`translateX(calc(var(--toast-swipe-movement-x, 0px) + ${v})) translateY(calc(${_} + ${y})) scale(${b})`,p.transformOrigin=t===`top`?`top`:`bottom`,p}function x2(e,t){return typeof e==`function`?e(t):e}function S2({progressBar:e=!0,...t}){let n=t.timeout??f2,r=U.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,K.jsx)(h2,{value:r,children:(0,K.jsx)(x0,{...t})})}var C2=w0;function w2(e){return(0,K.jsx)(nh,{children:(0,K.jsx)(T2,{...e})})}function T2({ref:e,style:t,transition:n,exitTransition:r,progressBar:i,children:a,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:l,...u}){let{toast:d}=u,f=oh(),p=Ym(),m=U.use(h2),h=d.positionerProps!=null,g=$m(Jm(n??(h?sh:wQ))),_=$m(Jm(r??(h?n??sh:SQ))),v=$m(Jm(d2)),y=_2(u.swipeDirection),b=v2(y),x=y2(),S=p.stagger.stack*1e3,C=U.useRef(null),w=U.useRef(null);U.useLayoutEffect(()=>{let e=C.current,t=e&&I1(e);t&&U1(t,d.type,p.transition.check.delay,p,f)},[]);let T=U.useRef(d.type),E=e=>{let t=T.current!==d.type;T.current=d.type,X1(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,K.jsx)(V1,{watch:[d.type,d.title,d.description],take:()=>B1(C.current),onUpdate:E,children:(0,K.jsxs)(V0,{...u,ref:P1(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=i0(e))},onPointerMove:e=>{s?.(e),w.current&&a0(w.current,e,y)},onPointerUp:e=>{c?.(e);let t=w.current;t?.pointerId===e.pointerId&&(t.releasedAt=e.timeStamp)},onPointerCancel:e=>{l?.(e),w.current=null},style:e=>{let n=x(e.expanded)&&!f?`calc(var(--toast-index, 0) * ${S}ms)`:void 0,r=w.current;return{...b2(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?s0(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?c0(r,e.swipeDirection):null}),...D&&{"--animate-ui-toast-fade-duration":`${v.duration}ms`,"--animate-ui-toast-fade-ease":v.easing,"--animate-ui-toast-cascade":n??`0ms`},...x2(t,e)}},children:[a,D&&!h&&(0,K.jsx)(k2,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function E2(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var D2=`--animate-ui-toast-progress-color`,O2=`data-tinted`;function k2({duration:e,running:t,ending:n}){let r=U.useRef(null),i=U.useRef(null),a=U.useSyncExternalStore(E2,()=>document.hasFocus(),()=>!0),o=U.useRef({ending:n,windowFocused:a}),s=()=>r.current?.parentElement?.parentElement??null,c=U.useCallback(()=>{let e=i.current,t=s();if(!e||!t)return;let n=o.current.ending||!o.current.windowFocused||t.hasAttribute(`data-expanded`);n&&e.playState===`running`&&e.pause(),!n&&e.playState===`paused`&&e.play()},[]);return U.useLayoutEffect(()=>{let n=r.current;if(!t||!n)return;let a=n.animate([{transform:`scaleX(1)`},{transform:`scaleX(0)`}],{duration:e,easing:`linear`,fill:`forwards`});i.current=a;let o=s(),l=o?.querySelector(`[data-slot="toast-icon"] > *`),u=l&&o?getComputedStyle(l).color:null;return u&&u!==getComputedStyle(o).color?(n.style.setProperty(D2,u),n.setAttribute(O2,``)):(n.style.removeProperty(D2),n.removeAttribute(O2)),c(),()=>{a.cancel(),i.current=null}},[t,e,c]),U.useLayoutEffect(()=>{let e=s();if(!t||!e)return;let n=new MutationObserver(c);return n.observe(e,{attributeFilter:[`data-expanded`]}),()=>n.disconnect()},[t,c]),U.useLayoutEffect(()=>{o.current={ending:n,windowFocused:a},c()},[c,n,a]),t?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`style`,{href:m2,precedence:`animate-ui`,children:d0}),(0,K.jsx)(`div`,{[l0]:``,"aria-hidden":`true`,children:(0,K.jsx)(`div`,{ref:r,[u0]:``})})]}):null}function A2({style:e,transition:t,...n}){let r=oh(),i=y2(),a=Ym().stagger.stack*1e3,o=$m(Jm(t??d2));return(0,K.jsx)(H0,{...n,style:t=>({...g2([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...x2(e,t)})})}var j2=q0,M2=J0,N2=Y0,P2=X0,F2=Q0,I2=t2,L2=n2,R2=r2,z2=i2,B2;function V2(e){B2&&(e??document.body).append(B2)}var H2,U2=a2.createToastManager();async function W2(e,t){let n=await window.yogurt.meetings.trash(e).catch(()=>`failed`);return n===`trashed`?(H2?.({id:e,from:t}),!0):n===`missing`||(H2?.({id:e,error:W(n===`recording`?`Stop the recording first, then try again.`:n===`save-pending`?`Open this note and finish saving before deleting it.`:`Yogurt couldn't move this note to the Trash. Try again.`)}),!1)}function G2({id:e,recording:t,anchor:n,onSource:r}){let[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),f=(0,U.useRef)(null),p=(0,U.useRef)(null),m=(0,U.useRef)(null),h=(0,U.useRef)(null),g=(0,U.useRef)([]),_=(0,U.useRef)(!1),v=(0,U.useRef)(!1);(0,U.useEffect)(()=>{a(!1),s(void 0),l(!1),v.current=!1},[e]),(0,U.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>d(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,U.useEffect)(()=>{if(!i||o)return;let t=!0;return window.yogurt.conversations.current([{kind:`meeting`,id:e}]).then(e=>{t&&s(e)}).catch(()=>{t&&l(!0)}),()=>{t=!1}},[i,e,o]);let y=(e,t)=>{let n=m.current,r=h.current,i=p.current,a=f.current;if(!n||!r||!i||!a)return;let o=g.current.some(e=>e.playState===`running`),s={transform:getComputedStyle(n).transform,radius:getComputedStyle(n).borderRadius,shell:getComputedStyle(n).opacity,body:getComputedStyle(r).opacity,clip:getComputedStyle(r).clipPath,button:getComputedStyle(a).opacity};if(g.current.forEach(e=>e.cancel()),g.current=[],!t||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let c=a.getBoundingClientRect(),l=i.getBoundingClientRect(),u=r.getBoundingClientRect(),d=c.width/l.width,_=c.height/l.height,v=`translate(${c.x-l.x}px, ${c.y-l.y}px) scale(${d}, ${_})`,y=parseFloat(getComputedStyle(a).borderRadius),b=`${y/d}px / ${y/_}px`,x=`inset(${c.top-u.top}px ${u.right-c.right}px ${u.bottom-c.bottom}px ${c.left-u.left}px round ${y}px)`,S=e?260:220,C=e?`cubic-bezier(.22,1.06,.36,1)`:`cubic-bezier(.4,0,.2,1)`,w=e?50:90,T=n.animate([{transform:o?s.transform:e?v:`none`,borderRadius:o?s.radius:e?b:`12px`},{transform:e?`none`:v,borderRadius:e?`12px`:b}],{duration:S,easing:C,fill:`both`}),E=r.animate([{clipPath:o&&s.clip!==`none`?s.clip:e?x:`inset(0px round 12px)`},{clipPath:e?`inset(0px round 12px)`:x}],{duration:S,easing:C,fill:e?`backwards`:`forwards`}),D=r.animate([{opacity:o?s.body:+!e},{opacity:+!!e}],{duration:e?160:120,delay:e?60:0,easing:`ease-out`,fill:`both`}),O={duration:w,delay:e?0:S-w,easing:`ease-out`,fill:`both`},k=n.animate([{opacity:o?s.shell:+!e},{opacity:+!!e}],O),A=a.animate([{opacity:o?s.button:+!!e},{opacity:+!e}],O);return g.current=[T,E,D,k,A],T};(0,U.useEffect)(()=>()=>g.current.forEach(e=>e.cancel()),[]),(0,U.useLayoutEffect)(()=>{if(!i||!n||!p.current)return;let e=p.current,t=()=>{let t=n.getBoundingClientRect();e.style.setProperty(`--chat-bottom`,`${Math.max(16,innerHeight-t.bottom+12)}px`),e.style.setProperty(`--chat-height`,`${u?440:Math.max(0,t.height-24)}px`)};t(),u?e.showModal():e.show(),V2(u?e:null),y(!0,_.current),_.current=!1,p.current?.querySelector(`textarea`)?.focus({preventScroll:!0});let r=new ResizeObserver(t);return r.observe(n),window.addEventListener(`resize`,t),()=>{r.disconnect(),window.removeEventListener(`resize`,t),V2(null),e.close()}},[i,u,n]);let b=(e=!0)=>{if(v.current)return;v.current=!0;let t=y(!1,e),n=()=>{v.current&&(v.current=!1,p.current?.close(),a(!1),f.current?.focus({preventScroll:!0}))};t?t.finished.then(n,()=>{}):n()},x=i&&(0,K.jsxs)(`dialog`,{id:`meeting-chat`,ref:p,"data-testid":`chat-panel`,className:`chat-panel no-drag`,"aria-labelledby":`meeting-chat-title`,"aria-modal":u||void 0,onKeyDown:e=>{e.key!==`Escape`||e.defaultPrevented||p.current?.querySelector(`.citation-card:not([data-ending-style])`)||e.target.closest(`[role="alertdialog"], [role="dialog"], [role="menu"]`)||(e.preventDefault(),e.stopPropagation(),b())},onCancel:e=>{e.preventDefault(),b()},children:[(0,K.jsx)(`div`,{ref:m,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,K.jsxs)(`div`,{ref:h,className:`chat-panel-contents`,children:[!o&&(0,K.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,K.jsx)(`h2`,{id:`meeting-chat-title`,children:W(`New chat`)}),(0,K.jsx)(`button`,{"data-testid":`chat-close`,className:`chat-icon`,onClick:()=>b(),"aria-label":W(`Close`),children:(0,K.jsx)(rv,{size:16,"aria-hidden":`true`})})]}),c&&(0,K.jsx)(`p`,{role:`alert`,children:W(`Yogurt couldn't answer that.`)}),o&&(0,K.jsx)(Z$,{id:o,panel:!0,recording:t,onSelect:s,onClose:()=>b(),onExpand:()=>{Fv(),b(!1),window.yogurt.nav.go(`/chat/${o}`)},onDeleted:()=>{b(!1),s(void 0),window.yogurt.nav.go(`/chat`)},onSource:(e,t)=>{b(!1),r(e,t)}},o)]})]});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`button`,{id:`meeting-ask`,ref:f,"data-testid":`chat-open`,className:`chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:hQ()?W(`Ask Yogurt (⌘J)`):`${W(`Ask Yogurt`)} (${pQ(`⌘J`)})`,onClick:e=>{v.current&&(v.current=!1,y(!0,!0)),_.current=!0,l(!1),a(!0),p.current?.querySelector(`textarea`)?.focus({preventScroll:!0})},children:[(0,K.jsx)(IX,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:W(`Ask Yogurt`)}),(0,K.jsx)(`kbd`,{"aria-hidden":`true`,children:pQ(`⌘J`)})]}),n&&(0,De.createPortal)(x,n)]})}function K2(e){let t=Math.max(0,Math.floor(e/1e3)),n=String(t%60).padStart(2,`0`),r=Math.floor(t/60);return r>=60?`${Math.floor(r/60)}:${String(r%60).padStart(2,`0`)}:${n}`:`${r}:${n}`}var q2=60,J2=220,Y2=class{target=0;level=0;step(e){let t=this.target>this.level?q2:J2;this.level+=(this.target-this.level)*(1-Math.exp(-e/t))}settled(){return this.target!==0||this.level>=.002?!1:(this.level=0,!0)}};function X2(e){if(e.paused||e.reduced)return{heights:[0,0,0],alpha:[.5,.5,.5]};let t=e.bars===3?[.75,1,.75]:[.5,.75,1,.75,.5];return{heights:t.map(t=>t*e.level),alpha:t.map(()=>.45+.55*e.level)}}var Z2=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),Q2=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,$2=3,e4=3,t4=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function n4({height:e,className:t,testId:n,paused:r=!1,bars:i=5}){let a=(0,U.useRef)(null),o=i*$2+(i-1)*e4;return(0,U.useEffect)(()=>{let t=a.current;if(!t)return;let n=new Y2,s=t4(),c=window.devicePixelRatio||1,l=s.matches;t.width=o*c,t.height=e*c;let u=getComputedStyle(t).color,d=``,f=(a=!1)=>{let s=t.getContext(`2d`);if(!s)return;let f=X2({reduced:l,paused:r,level:n.level,bars:i}),p=Z2(f,e-$2);(a||p!==d)&&(d=p,s.setTransform(c,0,0,c,0,0),s.clearRect(0,0,o,e),s.fillStyle=u,f.heights.forEach((t,n)=>{let r=$2+Math.round(t*(e-$2));s.globalAlpha=f.alpha[n],s.beginPath();let i=(o-f.heights.length*$2-(f.heights.length-1)*e4)/2;s.roundRect(i+n*6,(e-r)/2,$2,r,$2/2),s.fill()}),s.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},p=performance.now(),m=window.yogurt.widget.onLevel(e=>{n.target=Q2(e),p=performance.now(),l?(n.level=n.target,f()):n.target>0&&b()}),h=0,g=performance.now(),_=e=>{e||(cancelAnimationFrame(h),h=0),t.dataset.live=e?`1`:`0`},v=e=>{let t=Math.min(100,e-g);g=e,e-p>300&&(n.target=0),n.step(t),n.settled()?(f(!0),_(!1)):(f(),h=requestAnimationFrame(v))},y=()=>{g=performance.now(),h=requestAnimationFrame(v),_(!0)},b=()=>{h||l||r||document.visibilityState!==`visible`||y()},x=()=>{_(!1),!l&&!r&&document.visibilityState===`visible`&&y(),f(!0)},S=()=>{l=s.matches,x()},C=()=>{document.visibilityState===`visible`?b():_(!1)},w=()=>{u=getComputedStyle(t).color,f(!0)},T=window.matchMedia(`(prefers-color-scheme: dark)`);return s.addEventListener(`change`,S),T.addEventListener(`change`,w),document.addEventListener(`visibilitychange`,C),x(),()=>{m(),cancelAnimationFrame(h),s.removeEventListener(`change`,S),T.removeEventListener(`change`,w),document.removeEventListener(`visibilitychange`,C)}},[e,o,r,i]),(0,K.jsx)(`canvas`,{ref:a,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:o,height:e}})}function r4({view:e,testId:t=`note-elapsed`,className:n=`note-elapsed`}){let[r,i]=(0,U.useState)(`—`);return(0,U.useEffect)(()=>{if(!e){i(`—`);return}let t=()=>i(K2(e.elapsedMs+(e.kind===`recording`&&!e.paused?Math.max(0,Date.now()-e.at):0)));if(t(),e.kind!==`recording`||e.paused)return;let n=setInterval(t,250);return()=>clearInterval(n)},[e]),(0,K.jsx)(`time`,{"data-testid":t,className:n,"aria-label":W(`Recorded time`),children:r})}function i4(e,t,n=!1){return e===`mine`?{side:`mine`,writing:!1,fellBack:!1}:t===`waiting`||t===`writing`?{side:`enhanced`,writing:!0,fellBack:!1}:t===`failed`&&!n||t===`empty`?{side:`mine`,writing:!1,fellBack:!0}:{side:`enhanced`,writing:!1,fellBack:!1}}function a4({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)(),l=(0,U.useRef)(null),u=(0,U.useRef)(null),d=(0,U.useRef)([]),f=(0,U.useRef)(void 0),p=i4(t,n,r),m=(0,U.useCallback)((e,t=`notice`)=>{c({text:e,kind:t}),clearTimeout(f.current),f.current=setTimeout(()=>c(void 0),2e3)},[]);(0,U.useEffect)(()=>(c(void 0),o(!1),()=>clearTimeout(f.current)),[e]);let{side:h,writing:g,fellBack:_}=p,v=(0,U.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=i4(o,n,r);if(a===`notes`&&c){m(W(`Still generating your summary`));return}if(a===`notes`&&!await i()){m(W(`Couldn't save your latest changes. Try again before copying.`),`error`);return}let u=await window.yogurt.share.copy(e,a,s);m(W(u===`failed`?`Couldn't copy. Try again.`:u===`nothing`?`Nothing to copy yet`:a===`notes`&&l?`Copied your notes`:`Copied`),u===`failed`?`error`:u===`nothing`?`notice`:`copied`)},[e,t,n,r,i,m]),y=async()=>{if(g){m(W(`Still generating your summary`));return}if(!await i()){m(W(`Couldn't save your latest changes. Try again before exporting.`),`error`);return}let t=await window.yogurt.share.save(e,h);t===`saved`?m(W(_?`Saved your notes`:`Saved`),`saved`):t===`failed`&&m(W(`Couldn't save the file`),`error`)},b=e=>{o(!1),u.current?.focus(),e()};(0,U.useEffect)(()=>{let e=e=>{!e.repeat&&mQ(e)&&e.shiftKey&&!e.altKey&&!(hQ()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),v(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v]),(0,U.useEffect)(()=>{if(!a)return;d.current[0]?.focus();let e=e=>{l.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]);let x=e=>{let t=d.current.filter(e=>e&&!e.disabled),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),o(!1),u.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&(o(!1),u.current?.focus())},S=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,C=s?.kind===`copied`;return(0,K.jsxs)(`div`,{ref:l,className:`relative flex items-center gap-1.5`,children:[(0,K.jsx)(`span`,{"data-testid":`share-said`,"data-tone":s?.kind,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`pointer-events-none absolute end-0 top-full z-20 mt-2 flex w-max max-w-[min(280px,calc(100vw-48px))] items-start gap-1.5 rounded-md text-xs text-muted ${s?`border border-line bg-float px-2.5 py-1.5 shadow-[var(--shadow-soft)]`:``}`,children:s&&(0,K.jsxs)(K.Fragment,{children:[(s.kind===`copied`||s.kind===`saved`)&&(0,K.jsx)(dg,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),s.kind===`error`&&(0,K.jsx)(yg,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),s.text]})}),(0,K.jsxs)(`button`,{ref:u,"data-testid":`share-button`,"data-state":C?`copied`:`idle`,"aria-haspopup":`menu`,"aria-expanded":!!a,title:W(`Copy and export`),onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-record-action share-btn`,children:[(0,K.jsx)(GX,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),W(`Copy`),(0,K.jsx)(pg,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),a&&(0,K.jsxs)(`div`,{"data-testid":`share-menu`,"data-pointer":a===`pointer`,role:`menu`,"aria-label":W(`Copy and export`),onKeyDown:x,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,K.jsxs)(`button`,{ref:e=>{d.current[0]=e},role:`menuitem`,"data-testid":`share-copy-notes`,onClick:()=>b(()=>void v(`notes`,`mine`)),className:S,children:[(0,K.jsx)(GX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,K.jsx)(`span`,{className:`flex-1`,children:W(`Copy my notes`)})]}),(0,K.jsxs)(`button`,{ref:e=>{d.current[1]=e},role:`menuitem`,"data-testid":`share-copy-summary`,disabled:!r&&!g,onClick:()=>b(()=>void v(`notes`,`enhanced`)),className:`${S} disabled:opacity-40`,children:[(0,K.jsx)(GX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Copy summary`)]}),(0,K.jsxs)(`button`,{ref:e=>{d.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>b(()=>void v(`transcript`)),className:S,children:[(0,K.jsx)(GX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Copy transcript`)]}),(0,K.jsxs)(`button`,{ref:e=>{d.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>b(()=>void y()),className:S,children:[(0,K.jsx)(jg,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Export as Markdown…`)]})]})]})}function o4({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a}){let[o,s]=(0,U.useState)(!1),[c,l]=(0,U.useState)(!1),u=(0,U.useRef)(null),d=(0,U.useRef)(null),f=(0,U.useRef)(null);(0,U.useEffect)(()=>{if(!o){l(!1);return}f.current?.focus();let e=e=>{u.current?.contains(e.target)||s(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[o]);let p=e=>{let t=Array.from(u.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),s(!1),d.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&s(!1)},m=e=>{s(!1),e()},h=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`;return(0,K.jsxs)(`div`,{ref:u,className:`relative`,children:[(0,K.jsx)(`button`,{ref:d,"data-testid":`note-menu-button`,"aria-haspopup":`menu`,"aria-expanded":!!o,"aria-label":W(`More`),title:W(`More`),onClick:e=>s(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn grid size-7 place-items-center rounded-md text-muted`,children:(0,K.jsx)(Dg,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),o&&(0,K.jsx)(`div`,{"data-testid":`note-menu`,"data-pointer":o===`pointer`,role:`menu`,"aria-label":W(`More`),onKeyDown:p,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:c&&i?i(()=>{s(!1),d.current?.focus()}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`button`,{ref:f,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>m(n),className:h,children:[(0,K.jsx)(T_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Rename`)]}),i&&(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{l(!0),requestAnimationFrame(()=>u.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:h,children:[(0,K.jsx)(zg,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,K.jsx)(`span`,{className:`flex-1`,children:W(`Add to folder`)}),(0,K.jsx)(_g,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>m(()=>{d.current?.focus(),r()}),className:`${h} text-danger`,children:[(0,K.jsx)(q_,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,K.jsxs)(`span`,{className:`flex flex-col`,children:[W(a?`Delete forever`:`Delete note`),e&&(0,K.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Stop the recording first`)}),t&&(0,K.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Finish saving first`)})]})]})]})})]})}function s4({testId:e,warningTestId:t,className:n=``,children:r}){return(0,K.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,K.jsx)(Y_,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function c4({id:e,title:t,onDone:n}){let[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(null),s=()=>n(!1),c=async()=>{i(!0),o(null);let t=await window.yogurt.meetings.delete(e).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,K.jsxs)(B$,{testId:`delete-confirm`,role:`alertdialog`,title:W(`Delete “{title}” forever?`,{title:t}),description:gQ({mac:W(`Its notes, transcript and recording are removed from this Mac for good.`),other:W(`Its notes, transcript and recording are removed from this computer for good.`)}),onCancel:s,busy:r,children:[a&&(0,K.jsx)(s4,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,K.jsx)(`span`,{children:W(a===`recording`?`Stop the recording first, then try again.`:a===`save-pending`?`Open this note and finish saving before deleting it.`:`Yogurt couldn't finish deleting this note. Try again.`)})}),(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:W(`Delete forever`)}),(0,K.jsx)(z$,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`modal-button`,children:W(`Cancel`)})]})]})}var l4=1e3,u4=class{save;handoff;revision=0;pending;timer;flight;status=`saved`;reason;changed=()=>{};constructor(e,t){this.save=e,this.handoff=t}seed(e,t){!t||t.revision<this.revision||this.flight&&t.revision===this.revision||(t.revision!==this.revision||this.status!==`saved`||t.status!==`failed`)&&(this.revision=t.revision,t.status===`failed`?(this.pending={text:e,revision:t.revision},this.status=`failed`,this.reason=t.reason):this.pending&&this.pending.revision!==t.revision||(this.pending=void 0,this.status=`saved`,this.reason=void 0))}change(e){this.pending={text:e,revision:++this.revision},this.status=`saving`,this.reason=void 0,this.changed(),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.flush()},l4)}acknowledge(e,t){this.pending?.revision===e.revision&&(t.revision===e.revision&&t.status===`saved`?(this.pending=void 0,this.status=`saved`):this.status=`failed`,this.reason=t.reason,this.changed())}flush(){if(clearTimeout(this.timer),this.flight)return this.flight;let e=this.pending;if(!e)return Promise.resolve(!0);this.status=`saving`,this.changed();let t;try{t=this.save(e)}catch{t=Promise.resolve({revision:e.revision,status:`failed`})}return this.flight=t.catch(()=>({revision:e.revision,status:`failed`})).then(t=>(this.acknowledge(e,t),this.flight=void 0,this.pending&&this.pending.revision>e.revision?this.flush():!this.pending)),this.flight}flushSync(){clearTimeout(this.timer);let e=this.pending;if(!e)return!0;try{let t=this.handoff(e);return this.acknowledge(e,t),t.status===`saved`||t.retained===!0}catch{return this.status=`failed`,this.changed(),!1}}dispose(){return clearTimeout(this.timer),this.changed=()=>{},this.flushSync()}},d4=new Set,f4=e=>(d4.add(e),()=>{e.dispose()&&d4.delete(e)}),p4=(e,t)=>e||t.includes(`@`);function m4(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function h4(e,t,n){(0,U.useLayoutEffect)(()=>{let r=e.current,i=t.current;if(!r||!i)return;let a=i.closest(`[data-testid="note"]`),o=()=>{let e=i.parentElement.getBoundingClientRect(),t=r.getBoundingClientRect().width,n=getComputedStyle(r).direction===`rtl`,o=Math.max(12,Math.min(n?e.right-t:e.left,innerWidth-t-12));r.style.insetInlineStart=`${n?e.right-o-t:o-e.left}px`;let s=Math.min(innerHeight,a?.getBoundingClientRect().bottom??innerHeight);r.style.setProperty(`--people-available-height`,`${Math.max(0,s-e.bottom-16)}px`)};o(),r.querySelector(`input, button, [tabindex="-1"]`)?.focus({preventScroll:!0});let s=new ResizeObserver(o);s.observe(i),a&&s.observe(a);let c=e=>{!r.contains(e.target)&&!i.contains(e.target)&&n(!1)};return window.addEventListener(`resize`,o),window.addEventListener(`scroll`,o,!0),document.addEventListener(`pointerdown`,c),()=>{s.disconnect(),window.removeEventListener(`resize`,o),window.removeEventListener(`scroll`,o,!0),document.removeEventListener(`pointerdown`,c)}},[e,t,n])}var g4=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),_4=e=>v4(e).split(/\s+/)[0]??e;function v4(e){let t=y4(e);return!t?.email||t.name!==t.email?t?.name??e:m4(t.email)}function y4(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return null;let n=/<?([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>?/.exec(t);return n?{name:t.replace(n[0],``).replace(/[,;]/g,` `).trim()||n[1],email:n[1]}:{name:t,email:null}}function b4(e,t,n=3){let r=e.filter(e=>!g4(e.name,t));if(!r.length)return W(`Me`);let i=r.slice(0,n).map(e=>_4(e.name)).reduce((e,t)=>W(`{a}, {b}`,{a:e,b:t}));return r.length>n?W(`{name} + {more}`,{name:i,more:r.length-n}):i}function x4(e,t){return e.some(e=>!g4(e.name,t))?b4(e,t,2):W(`Add attendees`)}function S4(){let[e,t]=(0,U.useState)(``);return(0,U.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function C4({m:e}){let[t,n]=(0,U.useState)(!1),r=S4(),i=(0,U.useRef)(null),a=(0,U.useCallback)((e=!0)=>{n(!1),e&&i.current?.focus({preventScroll:!0})},[]);return(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsx)(`button`,{ref:i,"data-testid":`note-attendees`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),title:e.attendees.map(e=>e.email?`${e.name} <${e.email}>`:e.name).join(`, `)||void 0,className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:(0,K.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,K.jsx)($_,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),x4(e.attendees,r)]})}),t&&(0,K.jsx)(w4,{m:e,me:r,pointer:t===`pointer`,chip:i,onClose:a})]})}function w4({m:e,me:t,pointer:n,chip:r,onClose:i}){let[a,o]=(0,U.useState)(``),[s,c]=(0,U.useState)(()=>!e.attendees.some(e=>!g4(e.name,t))),[l,u]=(0,U.useState)(!1),d=(0,U.useRef)(null),f=(0,U.useRef)(null);h4(f,r,i),(0,U.useEffect)(()=>{s&&d.current?.focus({preventScroll:!0})},[s]);let p=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return U2.add({title:W(`Yogurt couldn't make that change. Try again.`)}),!1}},m=async()=>{let t=y4(a);t&&(e.attendees.some(e=>g4(e.name,t.name)||t.email&&e.email&&g4(e.email,t.email))||await p([...e.attendees,t])&&o(``))},h=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},g=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:e})=>!g4(e.name,t));return(0,K.jsxs)(`div`,{ref:f,"data-testid":`people-card`,"data-pointer":n,"data-anchor":`start`,role:`dialog`,"aria-label":W(`People`),onKeyDown:h,className:`people-card menu-entry absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,children:[(0,K.jsxs)(`ul`,{"data-testid":`people-list`,className:`people-list max-h-64 overflow-y-auto p-1.5`,children:[(0,K.jsx)(T4,{name:t||W(`Me`),email:e.attendees.find(e=>g4(e.name,t))?.email,mine:!0}),g.map(({p:t,i:n})=>(0,K.jsx)(T4,{name:v4(t.name),email:t.email,onRename:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:()=>void p(e.attendees.filter((e,t)=>t!==n))},t.email||n))]}),(0,K.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,K.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),d.current?.focus()},className:`flex w-full items-center gap-2 text-start text-[13px] text-muted ${s?`mb-2`:`h-11 px-4 hover:bg-card`}`,children:[(0,K.jsx)(k_,{size:14,"aria-hidden":`true`}),W(`Add an attendee`)]}),s&&(0,K.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,K.jsx)(`input`,{ref:d,"data-testid":`people-add`,value:a,onChange:e=>o(e.target.value),maxLength:200,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),m())},placeholder:W(`Name or email`),"aria-label":W(`Add an attendee`),onFocus:()=>u(!0),onBlur:()=>u(!1),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})}),p4(l,a)&&(0,K.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,K.jsx)(p_,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,K.jsx)(`span`,{children:W(`Nothing is sent. This is only for your notes.`)})]})]})]})}function T4({name:e,email:t,mine:n,onRemove:r,onRename:i}){let a=(0,U.useRef)(null),o=()=>{c(!1),requestAnimationFrame(()=>a.current?.focus())},[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(e),[d,f]=(0,U.useState)(!1),p=async()=>{if(l.trim()&&!d){f(!0);try{if(!await i?.(l))throw Error(`Attendee no longer available`);o()}catch{U2.add({title:W(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,K.jsxs)(`li`,{"data-testid":`people-row`,"data-me":n?``:void 0,className:`person-row flex ${t?`min-h-[52px]`:`min-h-10`} items-center gap-2 rounded-md px-2.5 py-1.5`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,K.jsx)(`input`,{"data-testid":`people-rename`,autoFocus:!0,value:l,disabled:d,maxLength:200,"aria-label":W(`Rename`),onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),p()),e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),o())},className:`w-full rounded border border-line bg-card px-1 py-0.5`}):i?(0,K.jsx)(`button`,{ref:a,"data-testid":`people-name`,title:W(`Rename`),className:`block max-w-full truncate text-start`,onClick:()=>{u(e),c(!0)},children:e}):(0,K.jsxs)(`span`,{children:[e,n&&(0,K.jsxs)(`span`,{className:`text-muted`,children:[` `,W(`(me)`)]})]}),t&&(0,K.jsx)(`span`,{"data-testid":`people-email`,className:`block break-words text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,K.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":W(`Rename`),title:W(`Rename`),onClick:()=>{u(e),c(!0)},className:`person-remove grid size-6 shrink-0 place-items-center rounded text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,K.jsx)(T_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,K.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":W(`Remove {name}`,{name:e}),title:W(`Remove`),className:`person-remove grid size-6 shrink-0 place-items-center rounded-full text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,K.jsx)(rv,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}function E4(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function D4(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function O4({m:e}){let[t,n]=(0,U.useState)(!1),r=(0,U.useRef)(null),i=(0,U.useCallback)((e=!0)=>{n(!1),e&&r.current?.focus({preventScroll:!0})},[]);return(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(`button`,{ref:r,"data-testid":`note-date`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[(0,K.jsx)(lg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),iU(e.startedAt)]}),t&&(0,K.jsx)(k4,{m:e,chip:r,pointer:t===`pointer`,onClose:i},`${e.id}/${e.eventId}`)]})}function k4({m:e,chip:t,pointer:n,onClose:r}){let i=(0,U.useRef)(null),a=window.yogurt.capabilities.calendar,o=a&&!!e.eventId,[s,c]=(0,U.useState)(),[l,u]=(0,U.useState)(0),[d,f]=(0,U.useState)(!1),p=(0,U.useRef)(null);h4(i,t,r),(0,U.useEffect)(()=>{if(!o)return;let t=!0;return c(void 0),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(n=>{t&&c(n.status===`granted`?n.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??null:null)},()=>{t&&c(null)}),()=>{t=!1}},[o,e.eventId,e.eventStartedAt,e.startedAt,l]);let m=s?.start??e.startedAt,h=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),g=s?.url?.trim();return(0,K.jsx)(`div`,{ref:i,"data-testid":`note-date-card`,"data-pointer":n,"data-anchor":`start`,role:`dialog`,"aria-label":W(`Date`),className:`people-card menu-entry note-date-card absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),r())},children:(0,K.jsxs)(`div`,{className:`agenda-inspector-content`,children:[(0,K.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,K.jsx)(`h3`,{"data-testid":`note-date-heading`,tabIndex:o?void 0:-1,children:o?(0,K.jsxs)(`button`,{ref:p,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle`,"aria-expanded":d,onClick:()=>f(e=>!e),children:[(0,K.jsx)(`span`,{children:s?.title||e.title}),(0,K.jsx)(pg,{size:15,"aria-hidden":`true`})]}):new Date(m).toLocaleDateString(bt(),{weekday:`long`,month:`short`,day:`numeric`,year:`numeric`})}),(0,K.jsx)(`button`,{className:`workspace-icon`,"data-testid":`note-date-close`,"aria-label":W(`Close`),onClick:()=>r(),children:(0,K.jsx)(rv,{size:16,"aria-hidden":`true`})})]}),!d&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,K.jsx)(xg,{size:15,"aria-hidden":`true`}),(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`p`,{children:[aU(m),s?` – ${aU(s.end)}`:` · ${W(`{count} min`,{count:h})}`]}),o&&(0,K.jsx)(`p`,{className:`agenda-inspector-muted`,children:new Date(m).toLocaleDateString(bt(),{weekday:`long`,month:`short`,day:`numeric`})})]})]}),o&&!s&&(0,K.jsxs)(`p`,{role:`status`,className:`text-xs text-muted`,children:[W(s===void 0?`Looking at your calendar…`:`Calendar event unavailable`),s===null&&(0,K.jsx)(`button`,{className:`ms-2 underline`,onClick:()=>u(e=>e+1),children:W(`Try again`)})]}),s&&(s.calendar||g)&&(0,K.jsxs)(`div`,{className:`agenda-inspector-footer`,children:[s.calendar&&(0,K.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,K.jsx)(lg,{size:15,"aria-hidden":`true`}),(0,K.jsxs)(`p`,{children:[s.calendar.name,(0,K.jsx)(`span`,{className:`agenda-inspector-muted`,children:s.calendar.source})]})]}),g&&(0,K.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,K.jsxs)(`a`,{className:`workspace-button agenda-open-note`,title:W(`Join meeting`),href:g,target:`_blank`,rel:`noreferrer`,children:[(0,K.jsx)(`span`,{children:W(`Join meeting`)}),(0,K.jsx)(kg,{size:12,"aria-hidden":`true`})]})})]}),a&&!e.eventId&&(0,K.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,K.jsxs)(`button`,{ref:p,"data-testid":`note-date-events-toggle`,className:`workspace-button agenda-open-note`,title:W(`Link to a calendar event`),"aria-expanded":d,onClick:()=>f(!0),children:[(0,K.jsx)(a_,{size:13,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:W(`Link to a calendar event`)})]})})]}),d&&(0,K.jsx)(A4,{m:e,onLinked:()=>{f(!1),p.current?.focus({preventScroll:!0})}})]})})}function A4({m:e,onLinked:t}){let[n,r]=(0,U.useState)(e.eventStartedAt??e.startedAt),[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)(0),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=(0,U.useRef)(null),p=(0,U.useRef)(null),m=S4();(0,U.useEffect)(()=>{let t=!0;return a(void 0),window.yogurt.calendar.day(n).then(n=>{t&&a({...n,events:D4(n.events,e.startedAt)})},()=>{t&&a({status:`error`,events:[]})}),()=>{t=!1}},[n,o,e.startedAt]),(0,U.useEffect)(()=>{f.current&&(f.current.scrollTop=0),(f.current?.querySelector(`[data-event-id]`)??p.current)?.focus({preventScroll:!0})},[i]);let h=async r=>{if(!c){l(!0),d(!1);try{await window.yogurt.meetings.linkEvent(e.id,r,n),t()}catch{d(!0)}finally{l(!1)}}};return(0,K.jsxs)(`div`,{className:`note-date-picker`,children:[(0,K.jsxs)(`div`,{className:`note-date-days`,children:[(0,K.jsx)(`button`,{type:`button`,ref:p,className:`workspace-icon`,"data-testid":`note-date-previous`,"aria-label":W(`Previous day`),disabled:c,onClick:()=>r(e=>E4(e,-1)),children:(0,K.jsx)(hg,{size:15,"aria-hidden":`true`})}),(0,K.jsx)(`span`,{"aria-live":`polite`,children:new Date(n).toLocaleDateString(bt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`})}),(0,K.jsx)(`button`,{type:`button`,className:`workspace-icon`,"data-testid":`note-date-next`,"aria-label":W(`Next day`),disabled:c,onClick:()=>r(e=>E4(e,1)),children:(0,K.jsx)(_g,{size:15,"aria-hidden":`true`})})]}),(0,K.jsx)(Ah,{enabled:!!i?.events.length,children:(0,K.jsx)(`div`,{ref:f,"data-testid":`note-date-events`,className:`note-date-events`,role:`group`,"aria-label":W(`Select calendar event`),onKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(e.currentTarget.querySelectorAll(`button[data-event-id]:not(:disabled)`));if(!t.length)return;e.preventDefault();let n=t.indexOf(document.activeElement),r=e.key===`Home`?0:e.key===`End`?t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;t[r].focus({preventScroll:!0}),t[r].scrollIntoView({block:`nearest`,container:`nearest`})},children:i?i.status===`granted`?i.events.length?i.events.map(t=>(0,K.jsxs)(`button`,{"data-event-id":t.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:c,onClick:()=>void h(t.id),children:[(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`strong`,{children:t.title||W(`Meeting`)}),(0,K.jsxs)(`small`,{children:[aU(t.start),` – `,aU(t.end)]}),!!t.attendees.length&&(0,K.jsx)(`small`,{children:b4(t.attendees,m)})]}),(e.eventId===t.id||t.aliases?.includes(e.eventId))&&(0,K.jsx)(dg,{size:14,"aria-hidden":`true`})]},t.id)):(0,K.jsx)(`p`,{"data-testid":`note-date-events-none`,children:W(`No calendar events on this day.`)}):(0,K.jsxs)(`div`,{className:`note-date-calendar-error`,children:[(0,K.jsx)(`p`,{children:i.status===`error`?W(`Yogurt couldn't read your calendar`):W(`Calendar access is off`)}),(0,K.jsx)(`button`,{className:`underline`,onClick:i.status===`error`?()=>s(e=>e+1):()=>void window.yogurt.calendar.connect().then(()=>s(e=>e+1),()=>a({status:`error`,events:[]})),children:i.status===`error`?W(`Try again`):W(`Connect calendar`)})]}):(0,K.jsx)(`p`,{role:`status`,children:W(`Looking at your calendar…`)})})}),e.eventId&&(0,K.jsxs)(`button`,{"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:c,onClick:()=>void h(null),children:[(0,K.jsx)(s_,{size:14,"aria-hidden":`true`}),(0,K.jsxs)(`span`,{children:[W(`Unlink calendar event`),(0,K.jsx)(`small`,{children:W(`Keep the title, attendees and notes.`)})]})]}),u&&(0,K.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:W(`Yogurt couldn't update the calendar link. Try again.`)})]})}function j4({hasSummary:e,canWriteAgain:t,onWriteAgain:n,menuButton:r}){let i=W(e?`Regenerate summary`:`Generate summary`),[a,o]=(0,U.useState)(!1),s=(0,U.useRef)(null),c=(0,U.useRef)(null);return(0,U.useEffect)(()=>{if(!a)return;c.current?.focus();let e=e=>{s.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]),(0,K.jsxs)(`div`,{ref:s,className:`note-summary-actions relative`,children:[(0,K.jsx)(`button`,{ref:r,"data-testid":`note-view-menu`,"aria-haspopup":`menu`,"aria-expanded":!!a,"aria-label":W(`Summary actions`),title:i,onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-view-menu`,children:(0,K.jsx)(Dg,{size:15,strokeWidth:1.75,"aria-hidden":`true`})}),a&&(0,K.jsx)(`div`,{role:`menu`,"data-testid":`note-view-menu-list`,"data-pointer":a===`pointer`,"data-anchor":`end`,"aria-label":W(`Summary`),onKeyDown:e=>{(e.key===`Escape`||e.key===`Tab`)&&(e.preventDefault(),o(!1),r.current?.focus())},className:`menu-entry absolute end-0 top-full z-30 mt-2 w-52 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:(0,K.jsxs)(`button`,{ref:c,role:`menuitem`,"data-testid":`note-write-again`,disabled:!t,onClick:()=>{o(!1),n()},className:`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`,children:[(0,K.jsx)(N_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),i]})})]})}var M4=()=>gQ({mac:W(`Uses the microphone your Mac is set to`),other:W(`Uses the microphone your computer is set to`)}),N4=1500,P4=15e3,F4=8e3;function I4({recording:e,paused:t}){let[n,r]=(0,U.useState)(),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(null),c=(0,U.useRef)(null),l=(0,U.useRef)(null),u=(0,U.useRef)(void 0),d=(0,U.useCallback)(()=>window.yogurt.audio.mics().then(e=>{u.current=e,r(e)}).catch(()=>{}),[]);(0,U.useEffect)(()=>{d(),window.addEventListener(`focus`,d);let t=e?setInterval(d,P4):void 0,n=window.yogurt.audio.onMics(({fellBack:e})=>{e&&s(u.current?.using??``),d()});return()=>{window.removeEventListener(`focus`,d),clearInterval(t),n()}},[e,d]),(0,U.useEffect)(()=>{if(o===null)return;let e=setTimeout(()=>s(null),F4);return()=>clearTimeout(e)},[o]),(0,U.useEffect)(()=>{e||s(null)},[e]),(0,U.useEffect)(()=>{if(!i)return;d();let e=setInterval(d,N4),t=e=>{c.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,d]),(0,U.useEffect)(()=>{i&&c.current?.querySelector(`[role="menuitemradio"][aria-checked="true"], [role="menuitemradio"]`)?.focus()},[i]);let f=async e=>{a(!1),s(null),l.current?.focus(),n&&r({...n,choice:e,using:e?n.devices.find(t=>t.id===e)?.name??n.using:n.defaultName}),await window.yogurt.audio.setMic(e).catch(()=>!1),d()},p=e=>{let t=Array.from(c.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),a(!1),l.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&a(!1)},m=n?.using??W(`No microphone`),h=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,g=e=>(0,K.jsx)(dg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,K.jsxs)(`div`,{ref:c,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,K.jsxs)(`button`,{ref:l,"data-testid":`rec-mic-chip`,"aria-haspopup":`menu`,"aria-expanded":!!i,title:W(`Microphone`),onClick:e=>a(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex max-w-[220px] items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,K.jsx)(q$,{show:t?`paused`:`mic`,options:{mic:(0,K.jsx)(x_,{size:11}),paused:(0,K.jsx)(HX,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,K.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?W(`Recording paused`):m}),(0,K.jsx)(pg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),o!==null&&(0,K.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:o?W(`{name} isn't available anymore. Recording continues with Auto.`,{name:o}):W(`Your mic isn't available anymore. Recording continues with Auto.`)}),i&&n&&(0,K.jsxs)(`div`,{"data-testid":`mic-menu`,"data-pointer":i===`pointer`,"data-anchor":`bottom-start`,role:`menu`,"aria-label":W(`Microphone`),onKeyDown:p,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-72 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,K.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void f(null),className:h,children:[(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,K.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[W(`Auto`),(0,K.jsx)(`span`,{"data-testid":`mic-auto-info`,title:M4(),"aria-label":M4(),className:`text-muted`,children:(0,K.jsx)(Zg,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,K.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),g(n.choice===null)]}),n.devices.length>0&&(0,K.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,K.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===e.id,"data-testid":`mic-option`,"data-id":e.id,onClick:()=>void f(e.id),className:h,children:[(0,K.jsx)(`span`,{className:`truncate`,children:e.name}),g(n.choice===e.id)]},e.id))]})]})}var L4=e=>W(e===`en`?`English`:`Multi-language`);function R4(){let[e,t]=(0,U.useState)(),[n,r]=(0,U.useState)(!1),i=(0,U.useRef)(null),a=(0,U.useRef)(null);(0,U.useEffect)(()=>{let e=()=>void window.yogurt.settings.get().then(e=>t(e.spoken)).catch(()=>{});return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[]),(0,U.useEffect)(()=>{if(!n)return;let e=e=>{i.current?.contains(e.target)||r(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n]),(0,U.useEffect)(()=>{if(!n)return;let e=e=>i.current?.querySelector(e);(e(`[role="menuitemradio"][aria-checked="true"]`)??e(`[role="menuitemradio"]`))?.focus()},[n]);let o=e=>{r(!1),a.current?.focus(),t(e),window.yogurt.settings.setSpoken(e).catch(()=>{})},s=e=>{let t=Array.from(i.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),r(!1),a.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&r(!1)};if(!e)return null;let c=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,l=e=>(0,K.jsx)(dg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`}),u=W(`Yogurt listens for the language being spoken. Pick it for meetings that are not in English.`);return(0,K.jsxs)(`div`,{ref:i,className:`relative flex min-w-0 items-center`,children:[(0,K.jsxs)(`button`,{ref:a,"data-testid":`spoken-chip`,"aria-haspopup":`menu`,"aria-expanded":!!n,title:W(`Spoken language`),onClick:e=>r(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,K.jsx)(t_,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,K.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:L4(e)}),(0,K.jsx)(pg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),n&&(0,K.jsxs)(`div`,{"data-testid":`spoken-menu`,"data-pointer":n===`pointer`,"data-anchor":`bottom-start`,role:`menu`,"aria-label":W(`Spoken language`),onKeyDown:s,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-64 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,K.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>o(`en`),className:c,children:[(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,K.jsx)(`span`,{children:W(`English only`)}),(0,K.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Highest quality`)})]}),l(e===`en`)]}),(0,K.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>o(`multi`),className:c,children:[(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,K.jsx)(`span`,{children:W(`Multi-language`)}),(0,K.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[W(`{count} languages supported`,{count:99}),(0,K.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:u,"aria-label":u,children:(0,K.jsx)(Zg,{size:12,"aria-hidden":`true`})})]})]}),l(e===`multi`)]})]})]})}function z4(){return null}var B4={folder:zg,star:V_,heart:qg,flag:Fg,bookmark:ag,briefcase:sg,users:Z_,handshake:Ug,message:y_,video:tv,calendar:lg,clock:xg,target:U_,lightbulb:r_,rocket:j_,code:Cg,palette:C_,megaphone:__,graduation:Vg,book:rg,flask:Lg,coffee:Tg,house:Yg,plane:D_};function V4({appearance:e,size:t=16}){let n=B4[e.icon]??zg;return(0,K.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,K.jsx)(n,{size:t,strokeWidth:1.75})})}function H4(e,t){let n=getComputedStyle(e.currentTarget).direction===`rtl`,r=e.key===`ArrowDown`?t:e.key===`ArrowUp`?-t:e.key===`ArrowRight`?n?-1:1:e.key===`ArrowLeft`?n?1:-1:0;if(!r&&e.key!==`Home`&&e.key!==`End`)return;let i=Array.from(e.currentTarget.querySelectorAll(`[role="radio"]:not(:disabled)`));if(!i.length)return;e.preventDefault();let a=i.indexOf(document.activeElement),o=e.key===`Home`?0:e.key===`End`?i.length-1:(a+r+i.length)%i.length;i[o].focus(),i[o].click()}function U4({value:e,onChange:t,disabled:n}){return(0,K.jsxs)(`div`,{className:`folder-choices`,children:[(0,K.jsx)(`div`,{className:`folder-choice-label`,children:W(`Icon`)}),(0,K.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":W(`Icon`),onKeyDown:e=>H4(e,6),children:Object.keys(Ct).map(r=>(0,K.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":W(Ct[r]),title:W(Ct[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,K.jsx)(V4,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,K.jsx)(`div`,{className:`folder-choice-label`,children:W(`Color`)}),(0,K.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":W(`Color`),onKeyDown:e=>H4(e,1),children:Object.keys(wt).map(r=>(0,K.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":W(wt[r]),title:W(wt[r]),tabIndex:r===e.color?0:-1,disabled:n,"data-testid":`folder-color-${r}`,"data-folder-color":r,onClick:()=>t({...e,color:r}),children:(0,K.jsx)(`span`,{})},r))})]})}var W4=`application/x-yogurt-meeting`;function G4(e){let[t,n]=(0,U.useState)();return(0,U.useEffect)(()=>{let t=0,r=()=>{let r=++t;(e?window.yogurt.folders.of(e):window.yogurt.folders.list()).then(e=>{r===t&&n(e)},()=>{})};r();let i=window.yogurt.folders.onChange(r),a=window.yogurt.meetings.onChange(r);return()=>{t++,i(),a()}},[e]),t}function K4({meetingId:e,onNew:t,testId:n}){let r=G4(),i=G4(e),[a,o]=(0,U.useState)({});(0,U.useEffect)(()=>{o({})},[i]);let s=e=>a[e]??!!i?.some(t=>t.id===e),c=t=>{let n=!s(t);o(e=>({...e,[t]:n})),n?window.yogurt.folders.add(t,e):window.yogurt.folders.remove(t,e)},l=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`;return(0,K.jsxs)(`div`,{"data-testid":n,role:`group`,"aria-label":W(`Folders`),children:[r?.map(e=>(0,K.jsxs)(`button`,{role:`menuitemcheckbox`,"aria-checked":s(e.id),"data-testid":`folder-option`,onClick:()=>c(e.id),className:l,children:[(0,K.jsx)(V4,{appearance:e,size:15}),(0,K.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),s(e.id)&&(0,K.jsx)(dg,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,onClick:t,className:`${l} ${r?.length?`folder-picker-new`:``}`,children:[(0,K.jsx)(k_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),W(`New folder…`)]})]})}function q4({meetingId:e,onNew:t,suggestion:n}){let[r,i]=(0,U.useState)(null);(0,U.useEffect)(()=>{i(null);let t=0,n=()=>{let n=++t;window.yogurt.folders.suggestion(e).then(e=>{n===t&&i(e)},()=>{})};n();let r=window.yogurt.folders.onChange(n),a=window.yogurt.meetings.onChange(n);return()=>{t++,r(),a()}},[e]);let a=n??(r?{folder:r,dismiss:()=>i(null)}:void 0),o=G4(e),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1),d=(0,U.useRef)(null),f=(0,U.useRef)(null);(0,U.useEffect)(()=>{a&&o?.some(e=>e.id===a.folder.id)&&a.dismiss()},[o,a]),(0,U.useEffect)(()=>{if(!l)return;d.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus();let e=e=>{d.current?.contains(e.target)||u(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[l]);let p=e=>{let t=Array.from(d.current?.querySelectorAll(`[role="menuitemcheckbox"], [role="menuitem"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),u(!1),f.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&u(!1)},m=o?.length?o.length===1?o[0].name:W(`{name} + {more}`,{name:o[0].name,more:o.length-1}):W(`Add to folder`),h=async()=>{if(!n)try{await window.yogurt.folders.dismissSuggestion(e)}catch{U2.add({title:W(`Yogurt couldn't make that change. Try again.`)});return}U2.close(`folder-suggestion-${e}`),a?.dismiss(),requestAnimationFrame(()=>{document.activeElement===document.body&&f.current?.focus({preventScroll:!0})})},g=async()=>{if(!a||s)return;let t=a.folder.id;c(!0),U2.close(`folder-suggestion-${e}`);try{if(await window.yogurt.folders.add(t,e),!(await window.yogurt.folders.of(e)).some(e=>e.id===t))throw Error(`Folder not added`);await h()}catch{U2.add({id:`folder-suggestion-${e}`,data:{testId:`folder-suggestion-error`},title:W(`Yogurt couldn't add this note to the folder. Try again.`)})}finally{c(!1)}};return a&&!o?.some(e=>e.id===a.folder.id)?(0,K.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":W(`Add to folder`),className:`note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line ps-2.5 pe-1 text-[13px] text-muted ${n?``:`note-folder-proposal`}`,children:[(0,K.jsx)(V4,{appearance:a.folder,size:14}),(0,K.jsx)(`span`,{className:`min-w-0 truncate`,title:W(`Add to {name}?`,{name:a.folder.name}),children:n?W(`Add to {name}?`,{name:a.folder.name}):(0,K.jsxs)(K.Fragment,{children:[a.folder.name,`?`]})}),(0,K.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`workspace-icon`,disabled:s,onClick:()=>void g(),"aria-label":W(`Add to folder`),title:W(`Add to folder`),children:(0,K.jsx)(dg,{size:15,"aria-hidden":`true`})}),(0,K.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`workspace-icon`,disabled:s,onClick:()=>void h(),"aria-label":W(`Cancel`),title:W(`Cancel`),children:(0,K.jsx)(rv,{size:15,"aria-hidden":`true`})})]}):(0,K.jsxs)(`div`,{ref:d,className:`relative`,children:[(0,K.jsxs)(`button`,{ref:f,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":!!l,onClick:e=>u(t=>t?!1:e.detail>0?`pointer`:`keyboard`),title:o?.map(e=>e.name).join(`, `)||void 0,className:`note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[o?.length===1?(0,K.jsx)(V4,{appearance:o[0],size:14}):(0,K.jsx)(zg,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,K.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:m})]}),l&&(0,K.jsx)(`div`,{"data-testid":`folder-menu`,"data-pointer":l===`pointer`,"data-anchor":`start`,role:`menu`,"aria-label":W(`Add to folder`),onKeyDown:p,className:`menu-entry absolute start-0 top-full z-30 mt-2 max-h-80 w-60 overflow-y-auto rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:(0,K.jsx)(K4,{testId:`folder-chip-list`,meetingId:e,onNew:()=>{u(!1),t()}})})]})}function J4({folder:e,onDone:t}){let[n,r]=(0,U.useState)(e??Tt),[i,a]=(0,U.useState)(e?.name??``),[o,s]=(0,U.useState)(!1),[c,l]=(0,U.useState)(!1),u=async()=>{if(i.trim()&&!o){s(!0),l(!1);try{if(e)await window.yogurt.folders.rename(e.id,i),t();else{let e=await window.yogurt.folders.create(i,n);if(!e)throw Error(`Folder not created`);t(e)}}catch{l(!0),s(!1)}}};return(0,K.jsx)(B$,{testId:`folder-name`,title:W(e?`Rename folder`:`New folder`),description:W(e?`Its meetings stay in it.`:`A folder keeps related meetings together. A meeting can be in more than one.`),onCancel:()=>t(),busy:o,children:(0,K.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,K.jsxs)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center gap-2 rounded-md border border-line bg-card px-2.5`,children:[(0,K.jsx)(V4,{appearance:n,size:15}),(0,K.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`folder-name-input`,value:i,onChange:e=>a(e.target.value),maxLength:200,placeholder:W(`Folder name`),"aria-label":W(`Folder name`),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})]}),!e&&(0,K.jsx)(U4,{value:n,onChange:r,disabled:o}),c&&(0,K.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't save this folder. Try again.`)}),(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:W(e?`Rename`:`Create folder`)}),(0,K.jsx)(z$,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`modal-button`,children:W(`Cancel`)})]})]})})}function Y4({folder:e,onDone:t}){let[n,r]=(0,U.useState)(!1),[i,a]=(0,U.useState)(!1),o=async()=>{r(!0),a(!1);try{await window.yogurt.folders.delete(e.id),t(!0)}catch{a(!0),r(!1)}};return(0,K.jsxs)(B$,{testId:`folder-delete-confirm`,role:`alertdialog`,title:W(`Delete “{name}”?`,{name:e.name}),description:W(`Only the folder is deleted. Its meetings stay in Meetings.`),onCancel:()=>t(!1),busy:n,children:[i&&(0,K.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't delete this folder. Try again.`)}),(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:W(`Delete folder`)}),(0,K.jsx)(z$,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`modal-button`,children:W(`Cancel`)})]})]})}function X4({folder:e,onDone:t}){let[n,r]=(0,U.useState)({icon:e.icon,color:e.color}),[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(!1),c=async()=>{if(!i){a(!0),s(!1);try{if(!await window.yogurt.folders.appearance(e.id,n))throw Error(`Folder not saved`);t()}catch{s(!0),a(!1)}}};return(0,K.jsxs)(B$,{testId:`folder-appearance`,title:W(`Change icon`),onCancel:t,busy:i,children:[(0,K.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,K.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,K.jsx)(V4,{appearance:n,size:23})}),(0,K.jsx)(`strong`,{children:e.name})]}),(0,K.jsx)(U4,{value:n,onChange:r,disabled:i}),o&&(0,K.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't save this folder. Try again.`)}),(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:W(`Save`)}),(0,K.jsx)(z$,{"data-dialog-cancel":!0,disabled:i,className:`modal-button`,children:W(`Cancel`)})]})]})}function Z4(e,t,n,r){let[,i]=(0,U.useState)(0),a=(0,U.useMemo)(()=>new u4(n=>t===`mine`?window.yogurt.notes.setMine(e,n.text,n.revision):window.yogurt.notes.setEnhanced(e,n.text,n.revision),n=>window.yogurt.notes.flushSync(e,t,n.text,n.revision)),[e,t]);return a.seed(n,r),(0,U.useEffect)(()=>(a.changed=()=>i(e=>e+1),f4(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var Q4=new Map;function $4({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i}){let[a,o]=(0,U.useState)(),[s,c]=(0,U.useState)(null);(0,U.useLayoutEffect)(()=>{if(!s)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-s.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(s),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[s]),(0,U.useEffect)(()=>{a&&t({id:a.id,title:a.title})},[a?.id,a?.title,t]);let[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(!1),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1),[y,b]=(0,U.useState)(!1),[x,S]=(0,U.useState)(!1),[C,w]=(0,U.useState)(null),[T,E]=(0,U.useState)(),[D,O]=(0,U.useState)(()=>Q4.get(e)?.view??`mine`),[k,A]=(0,U.useState)(!1),j=gv(),M=a?.id===e&&a.state!==`prepared`&&a.state!==`recording`&&!!T&&T.status!==`idle`,N=k&&M&&j,P=N?`enhanced`:D,F=(0,U.useRef)(Q4.has(e)),I=(0,U.useRef)(!1),[L,R]=(0,U.useState)(()=>Q4.get(e)?.primary??`notes`),z=N?`notes`:L,B=Iv(`note/${e}/${P}`,!!a&&!!T&&z===`notes`);(0,U.useEffect)(()=>{a&&T&&Q4.set(e,{primary:z,view:P})},[e,a,T,z,P]);let[ee,te]=(0,U.useState)(z===`transcript`);(0,U.useEffect)(()=>{z===`transcript`&&te(!0)},[z]);let[ne,re]=(0,U.useState)(!1),V=(0,U.useRef)(null),ie=(0,U.useRef)(null),ae=(0,U.useRef)(0);(0,U.useEffect)(()=>()=>{ae.current++,ie.current?.skipTransition()},[e]);let H=(0,U.useRef)(null),oe=(0,U.useRef)(null),se=(0,U.useRef)(null),ce=(0,U.useRef)(null),[le,ue]=(0,U.useState)(!1),de=(0,U.useRef)(null),[fe,pe]=(0,U.useState)(!1),[me,he]=(0,U.useState)(!1),[ge,_e]=(0,U.useState)(!1),[ve,ye]=(0,U.useState)(!1),[be,xe]=(0,U.useState)(null),[Se,Ce]=(0,U.useState)(null),we=(0,U.useRef)(void 0),[Te,Ee]=(0,U.useState)(null),Oe=Te?.note,ke=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(n&&T&&a&&ke.current!==n.seq&&(ke.current=n.seq,F.current=!0,R(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&ft([T.enhanced??``],n.match)>=0;O(M&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,T,a,M]);let Ae=a?.id===e&&a.state===`recording`,je=async()=>{let t=!a?.paused;S(!0),w(null);try{await window.yogurt.meetings.setPaused(e,t)?o(await window.yogurt.meetings.get(e)):w(t?`pause`:`resume`)}catch{w(t?`pause`:`resume`)}finally{S(!1)}};(0,U.useEffect)(()=>{if(!Ae){Ee(null);return}let t=t=>Ee(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,Ae]),(0,U.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(o);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,U.useEffect)(()=>{A(!1),re(!1),E(void 0),we.current=void 0,O(Q4.get(e)?.view??`mine`),F.current=Q4.has(e),I.current=!1,pe(!1),ue(!1),he(!1),_e(!1),v(!1),b(!1);let t=t=>{let n=!we.current,{view:r,keptEdits:i}=S1(we.current,t);i&&window.yogurt.notes.keptEdits(e),we.current=r,E(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(F.current=!0,O(a),R(`notes`)),t.status!==`idle`&&!F.current&&!I.current&&O(`enhanced`)},n=window.yogurt.notes.onChange(n=>{n.meetingId===e&&t(n)});return window.yogurt.notes.get(e).then(t),n},[e]),(0,U.useEffect)(()=>{we.current=T},[T]),(0,U.useEffect)(()=>{a?.state!==`recording`&&(a?.stopSavePending||T?.status!==`idle`)&&m(!1)},[a?.state,a?.stopSavePending,T?.status]),(0,U.useEffect)(()=>{if(!k||!M)return;let e=()=>{Ve(`notes`,`enhanced`,!0),ce.current?.focus({preventScroll:!0})};if(j){e();return}let t=setTimeout(e,120);return()=>clearTimeout(t)},[e,k,M,j]);let Me=Z4(e,`mine`,T?.mine??``,T?.saves?.mine),Ne=Z4(e,`enhanced`,T?.enhanced??``,T?.saves?.enhanced);if((0,U.useLayoutEffect)(()=>{let e=H.current;if(!e)return;let t=()=>{let t=(z===`transcript`?oe:P===`enhanced`&&ce.current?ce:se).current;if(!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=getComputedStyle(e).direction===`rtl`?n.right-r.right:n.left-r.left;e.style.setProperty(`--tab-x`,`${i}px`),e.style.setProperty(`--tab-width`,`${n.width}px`)};t();let n=new ResizeObserver(t);n.observe(e);for(let e of[oe.current,se.current,ce.current])e&&n.observe(e);return()=>n.disconnect()},[z,P,a?.state,T?.status]),!a||!T)return(0,K.jsx)(JX,{pending:!0,skeleton:(0,K.jsx)(av,{layout:`note`}),className:`loading-note-frame`});let Pe=a.state===`recording`,Fe=p||T.status===`waiting`||T.status===`writing`,Ie=a.trashedAt!=null,Le=a.endedAt?Math.max(1,Math.round((a.durationMs??a.endedAt-a.startedAt)/6e4)):null,Re=M?P:`mine`,ze=e=>{F.current=!0,O(e),Me.flush(),Ne.flush()},Be=(e,t=!1)=>{re(t),e!==L&&(R(e),e===`transcript`&&ue(!1),Me.flush(),Ne.flush())},Ve=(e,t,n=!1)=>{A(!1);let r=++ae.current;ie.current?.skipTransition();let i=()=>{r===ae.current&&(Be(e,n),t&&ze(t))},a=V.current;e===z&&(!t||t===Re)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(ie.current=a.startViewTransition(()=>(0,De.flushSync)(i)),ie.current.ready.catch(()=>{}))},He=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[oe.current,se.current,...M?[ce.current]:[]],n=getComputedStyle(e.currentTarget).direction===`rtl`?-1:1,r=e.key===`ArrowRight`?n:-n,i=t.indexOf(e.currentTarget),a=e.key===`Home`?0:e.key===`End`?t.length-1:(i+r+t.length)%t.length;t[a]?.click(),t[a]?.focus({preventScroll:!0})},Ue=async()=>(await Promise.all([Me.flush(),Ne.flush()])).every(Boolean),We=async()=>{if(!d){f(!0),g(!1);try{if(!await Ue())return;let t=await window.yogurt.meetings.startPrepared(e);g(`error`in t),`error`in t||(R(`notes`),O(`mine`))}catch{g(!0)}finally{f(!1)}}},Ge=async(t=!1)=>{if(!(d||Fe)){if((T.edited||fe)&&!t)v(!0);else{v(!1),f(!0),b(!1);try{if(!await Ue())return;`error`in await window.yogurt.meetings.resume(e)?b(!0):(F.current=!1,R(`notes`),O(`mine`),pe(!1))}catch{b(!0)}finally{f(!1)}}}},Ke=Me.status===`failed`||Ne.status===`failed`?`failed`:Me.status===`saving`||Ne.status===`saving`?`saving`:`saved`,qe=()=>{ue(!1),de.current?.focus({preventScroll:!0})},Je=async()=>{let t=le;t&&qe(),await Ue()&&((T.edited||fe)&&!t?ue(!0):(t||qe(),pe(!1),window.yogurt.notes.writeAgain(e)))};return(0,K.jsx)(JX,{pending:!1,skeleton:(0,K.jsx)(av,{layout:`note`}),className:`loading-note-frame`,children:(0,K.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[_&&(0,K.jsx)(B$,{testId:`resume-confirm`,role:`alertdialog`,title:W(`Record more in this note?`),description:W(`Your notes, transcript, and previous audio are kept. Your edited summary will be replaced when you finish recording.`),onCancel:()=>v(!1),children:(0,K.jsxs)(`div`,{className:`modal-actions`,children:[(0,K.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void Ge(!0),className:`modal-button primary`,children:W(`Resume recording`)}),(0,K.jsx)(z$,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`modal-button`,children:W(`Cancel`)})]})}),(0,K.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed right-4 top-[10px] z-[60]`,children:(0,K.jsx)(o4,{recording:Pe,savePending:a.stopSavePending,trashed:Ie,onRename:()=>he(!0),onDelete:()=>{Ue().then(t=>{t&&(Ie?_e(!0):W2(e,`/note/${e}`))})},folders:t=>(0,K.jsx)(K4,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),ye(!0)}})})}),(0,K.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":ne,children:[(0,K.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,K.jsx)(e3,{id:e,title:a.title,editing:me,onEdit:he}),(0,K.jsxs)(`div`,{className:`note-meta-row`,children:[(0,K.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,K.jsx)(O4,{m:a}),(0,K.jsx)(C4,{m:a}),(0,K.jsx)(q4,{meetingId:e,onNew:()=>ye(!0),suggestion:r})]}),(0,K.jsxs)(`div`,{"data-testid":Pe?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,K.jsxs)(`div`,{"data-testid":`note-state`,"data-state":a.state,"data-paused":!!a.paused,className:`note-recording-group`,"data-recording":Pe&&!p,role:`group`,"aria-label":Pe?a.paused?W(`Paused`):W(`Recording`):W(`Meeting controls`),children:[Pe&&!p&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`span`,{className:`note-recording-status`,children:[(0,K.jsx)(n4,{height:14,bars:3,testId:`note-wave`,paused:!!a.paused,className:`text-muted`}),(0,K.jsx)(r4,{view:Te})]}),(0,K.jsx)(`button`,{"data-testid":`note-pause`,disabled:x,onClick:()=>{je()},"aria-label":a.paused?W(`Resume recording`):W(`Pause recording`),title:a.paused?W(`Resume recording`):W(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,K.jsx)(q$,{show:a.paused?`play`:`pause`,options:{pause:(0,K.jsx)(HX,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,K.jsx)(UX,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,K.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{A(!0),F.current=!0,O(`mine`),m(!0),re(t.detail>0),window.yogurt.meetings.stop(e)},"aria-label":W(`Finish recording`),title:W(`Finish recording`),className:`note-record-action note-finish-action primary`,children:W(`Finish`)})]}),p&&(0,K.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:W(`Finishing…`)}),!p&&(a.state===`stopped`||a.state===`done`)&&!a.stopSavePending&&!Ie&&(0,K.jsxs)(`button`,{"data-testid":`note-resume`,disabled:d||Fe,"aria-busy":Fe,"data-processing":Fe,onClick:()=>void Ge(),className:`note-record-action note-resume-action`,title:W(Fe?`Summarizing…`:`Resume recording in this note`),children:[(0,K.jsx)(q$,{show:Fe?`busy`:`mic`,options:{mic:(0,K.jsx)(VX,{size:14}),busy:(0,K.jsx)(KX,{size:14})}}),(0,K.jsx)(J$,{text:W(Fe?`Summarizing…`:d?`Preparing…`:`Resume recording`),widest:W(`Resume recording`)})]}),a.state===`prepared`&&!Ie&&(0,K.jsxs)(`button`,{"data-testid":`note-start`,disabled:d,onClick:()=>{We()},className:`note-record-action primary`,children:[(0,K.jsx)(VX,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(d?`Starting…`:`Start recording`)]})]}),(0,K.jsx)(a4,{id:e,shown:Re,status:T.status,hasEnhanced:T.enhanced!=null,beforeUse:Ue})]})]}),Ie&&(0,K.jsxs)(`div`,{"data-testid":`note-trashed`,role:`status`,className:`mt-5 flex flex-wrap items-center gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,K.jsx)(q_,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,K.jsx)(`p`,{className:`min-w-48 flex-1`,children:W(`This note is in the Trash.`)}),(0,K.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,K.jsx)(N_,{size:13,"aria-hidden":`true`}),W(`Restore`)]})]}),(0,K.jsxs)(`div`,{ref:H,className:`note-primary-tabs`,"data-summary-arriving":k&&M&&!j,children:[(0,K.jsxs)(`div`,{role:`tablist`,"aria-label":W(`Meeting view`),className:`contents`,children:[(0,K.jsxs)(`button`,{ref:oe,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":z===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:z===`transcript`?0:-1,onKeyDown:He,onClick:e=>Ve(`transcript`,void 0,e.detail>0),children:[(0,K.jsx)($h,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`Transcript`)]}),(0,K.jsxs)(`button`,{ref:se,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":z===`notes`&&Re===`mine`,"aria-controls":`note-notes-panel`,"data-version":Re,tabIndex:z===`notes`&&Re===`mine`?0:-1,onKeyDown:He,onClick:e=>Ve(`notes`,`mine`,e.detail>0),children:[(0,K.jsx)(G_,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`My notes`)]}),M&&(0,K.jsxs)(`button`,{ref:ce,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":z===`notes`&&Re===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:z===`notes`&&Re===`enhanced`?0:-1,onKeyDown:He,onClick:e=>Ve(`notes`,`enhanced`,e.detail>0),children:[(0,K.jsx)(WX,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`Summary`)]})]}),z===`transcript`&&(0,K.jsx)(`div`,{ref:xe,className:`note-primary-tools`}),(0,K.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`}),M&&z===`notes`&&(0,K.jsx)(j4,{menuButton:de,hasSummary:T.enhanced!=null,canWriteAgain:T.status===`done`||T.status===`failed`||T.status===`empty`,onWriteAgain:()=>{ze(`enhanced`),Je()}})]})]}),(0,K.jsx)(`div`,{ref:Ce,className:`note-reading-area`,children:(0,K.jsxs)(`div`,{ref:V,className:`note-panels`,children:[(0,K.jsx)(b1,{active:z===`notes`,summary:Re===`enhanced`,generating:Re===`enhanced`&&(T.status===`waiting`||T.status===`writing`),writing:Re===`enhanced`&&T.status===`writing`&&!!T.draft,scroll:B,children:Re===`mine`?(0,K.jsx)(JH,{focus:z===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:W(`My notes`),className:`min-h-[40vh]`,markdown:T.mine,placeholder:W(`Write notes here. Yogurt fills in the rest after the meeting.`),onChange:e=>{I.current=!0;let t={...we.current,mine:e};we.current=t,E(t),Me.change(e)},onBlur:()=>{I.current=!1,Me.flush()}}):(0,K.jsx)(t3,{focus:z===`notes`&&n?.ms===null?n:void 0,notes:T,disabled:d,onChange:e=>{pe(!0);let t={...we.current,enhanced:e};we.current=t,E(t),Ne.change(e)},onBlur:Ne.flush,onRetry:Je})}),(z===`transcript`||ee)&&(0,K.jsx)(`section`,{hidden:z!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,K.jsx)($v,{id:e,recording:Pe,active:z===`transcript`,inline:!0,toolbar:be,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,K.jsxs)(`footer`,{ref:c,className:`note-footer`,children:[a.stopSavePending&&(0,K.jsxs)(`div`,{"data-testid":`note-stop-unsaved`,role:`alert`,className:`mt-5 flex flex-wrap items-start gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,K.jsx)(Y_,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,K.jsx)(`p`,{className:`min-w-48 flex-1`,children:W(`Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.`)}),(0,K.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:l,className:`bar-btn rounded-md border border-line bg-bg px-3 py-1 text-ink disabled:opacity-50`,onClick:()=>{u(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&oe.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>u(!1))},children:W(l?`Saving…`:`Try again`)})]}),z===`notes`&&Re===`enhanced`&&T.status===`done`&&T.peopleChanged&&!le&&(0,K.jsxs)(`div`,{"data-testid":`note-people-changed`,className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]`,children:[(0,K.jsx)(`span`,{children:W(`People changed. Regenerate summary?`)}),(0,K.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:Je,className:`workspace-button primary`,children:W(`Regenerate summary`)})]}),le&&(0,K.jsxs)(`div`,{"data-testid":`note-confirm`,role:`alertdialog`,"aria-label":W(`Regenerate summary?`),"aria-describedby":`note-rewrite-description`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),qe())},className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2.5 text-sm shadow-[var(--shadow)]`,children:[(0,K.jsx)(`span`,{id:`note-rewrite-description`,children:W(`Regenerate summary? Your edits to the summary will be replaced.`)}),(0,K.jsx)(`button`,{"data-testid":`note-write-again-cancel`,autoFocus:!0,onClick:qe,className:`workspace-button`,children:W(`Cancel`)}),(0,K.jsx)(`button`,{"data-testid":`note-write-again-confirm`,onClick:Je,className:`workspace-button primary`,children:W(`Regenerate summary`)})]}),Ke===`failed`&&(0,K.jsxs)(s4,{testId:`note-save-status`,warningTestId:`note-save-warning`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]`,children:[(0,K.jsx)(`span`,{children:Me.reason===`too-long`||Ne.reason===`too-long`?W(`This note is too long to save. Shorten it and try again.`):W(`Couldn't save your changes`)}),(0,K.jsx)(`button`,{"data-testid":`note-save-retry`,className:`inline-error-action`,onClick:()=>{Ue()},children:W(`Try again`)})]}),h&&(0,K.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:W(`Yogurt couldn't start the notes. Try again in a moment.`)}),y&&(0,K.jsx)(`p`,{"data-testid":`note-resume-failed`,role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)] text-[13px] text-danger`,children:W(`Couldn't resume recording. Your existing note and audio are kept. Try again.`)}),C&&Pe&&(0,K.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:W(C===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),Pe&&Oe&&(0,K.jsx)(z4,{hint:Oe}),(0,K.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,K.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(Pe||a.state===`prepared`)&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(I4,{recording:Pe,paused:Pe&&a.paused}),(0,K.jsx)(R4,{}),(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ke!==`failed`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":Ke,role:`status`,className:`flex items-center gap-1.5`,children:[(0,K.jsx)(p_,{size:10,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:Ke===`saving`?W(`Saving…`):gQ({mac:W(`Saved on this Mac`),other:W(`Saved on this computer`)})})]}),(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Le!=null&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{"data-testid":`note-duration`,children:W(`{count} min`,{count:Le})}),(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),W(`Yogurt can make mistakes.`),(0,K.jsx)(x1,{})]}),(0,K.jsx)(G2,{id:e,recording:Pe,anchor:Se,onSource:i})]})]})]}),ge&&(0,K.jsx)(c4,{id:e,title:a.title,onDone:()=>_e(!1)}),ve&&(0,K.jsx)(J4,{onDone:t=>{ye(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function e3({id:e,title:t,editing:n,onEdit:r}){let[i,a]=(0,U.useState)(t),o=(0,U.useRef)(!1);(0,U.useEffect)(()=>{n&&(a(t),o.current=!1)},[n,t]);let s=`note-title-type w-full font-sans`;return n?(0,K.jsx)(`input`,{"data-testid":`note-title-input`,"aria-label":W(`Title`),autoFocus:!0,value:i,maxLength:200,onFocus:e=>e.currentTarget.select(),onChange:e=>a(e.target.value),onBlur:()=>{r(!1),!o.current&&i.trim()&&i.trim()!==t&&window.yogurt.meetings.rename(e,i)},onKeyDown:e=>{e.key===`Enter`?e.currentTarget.blur():e.key===`Escape`&&(o.current=!0,e.currentTarget.blur())},className:`${s} -mx-1 rounded-lg bg-transparent px-1 outline-none ring-1 ring-line focus:ring-accent`}):(0,K.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,K.jsx)(`button`,{onClick:()=>r(!0),title:W(`Rename`),className:`note-title-btn -mx-1 max-w-full rounded-lg px-1 text-start`,children:t})})}function t3({notes:e,disabled:t,onChange:n,onBlur:r,onRetry:i,focus:a}){let{status:o}=e,s=o===`waiting`||o===`writing`,c=uU(e.draft??``,s,{minCommitMs:32});return o===`failed`&&e.enhanced==null?(0,K.jsxs)(s4,{testId:`note-enhanced-failed`,children:[(0,K.jsx)(`span`,{children:W(`Yogurt couldn't generate this summary.`)}),(0,K.jsx)(`button`,{onClick:i,className:`inline-error-action`,children:W(`Try again`)})]}):o===`empty`?(0,K.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:W(`Nothing was said or written in this meeting.`)}):s&&!e.draft?(0,K.jsx)(ZX,{downloading:e=>(0,K.jsx)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:e?W(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes. ({percent})`,{percent:e}):W(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes.`)}),children:(0,K.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[(0,K.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`}),(0,K.jsx)(`p`,{className:o===`writing`&&e.part?`pt-9 text-[15px] text-muted`:`sr-only`,children:o===`writing`&&e.part?W(`Reading a long meeting, part {part} of {of}…`,{part:e.part.part,of:e.part.of}):W(`Generating notes…`)})]})}):(0,K.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":o,className:s?`streaming`:``,children:[o===`failed`&&(0,K.jsxs)(s4,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,K.jsx)(`span`,{children:W(`Couldn't regenerate the summary. Your previous version is below.`)}),(0,K.jsx)(`button`,{onClick:i,className:`inline-error-action`,children:W(`Try again`)})]}),(0,K.jsx)(JH,{focus:a,testId:`note-enhanced-editor`,label:W(`Summary`),className:`enhanced`,markdown:s?c:e.enhanced??``,streaming:s,editable:!s&&!t,onChange:n,onBlur:r}),s&&(0,K.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:W(`Generating notes…`)})]})}var n3=Wm.transition.collapse;Wm.transition.collapseLabel,Wm.transition.color,U.createContext(null),U.createContext(!0);function r3(e,t){let n=oh(),{duration:r,easing:i}=$m(Jm(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function i3({transition:e=n3,style:t,...n}){let r=r3(e,`width`);return(0,K.jsx)(`div`,{...n,style:{...r,...t}})}function a3({transition:e=n3,style:t,...n}){let r=r3(e,`left, right, width`);return(0,K.jsx)(`div`,{...n,style:{...r,...t}})}U.Component;function o3({folders:e,route:t,go:n,collapsed:r=!1}){let[i,a]=(0,U.useState)(),[o,s]=(0,U.useState)(),[c,l]=(0,U.useState)(),[u,d]=(0,U.useState)(),[f,p]=(0,U.useState)(!1),m=(0,U.useRef)(!1),h=(0,U.useRef)(null),g=u?[...u.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!u.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),_=(0,U.useRef)(g);_.current=g,(0,U.useEffect)(()=>{!m.current&&!f&&d(void 0)},[e]);let v=async t=>{if(m.current=!1,t.every((t,n)=>t===e?.[n]?.id))d(void 0);else{d(t),p(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{d(void 0),U2.add({title:W(`Yogurt couldn't make that change. Try again.`)})}finally{p(!1)}}},y=(e,t)=>{let n=g.indexOf(e),r=[...g];f||n+t<0||n+t>=g.length||(r.splice(n,1),r.splice(n+t,0,e),v(r))};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`nav`,{"aria-label":W(`Folders`),"data-testid":`sidebar-folders`,children:[(0,K.jsx)(JX,{pending:!e,skeleton:(0,K.jsx)(av,{layout:`folders`,testId:`folders-loading`}),children:(0,K.jsx)(ym,{as:`div`,ref:h,axis:`y`,values:g,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{_.current=e,d(e)},children:g.map((i,o)=>{let c=e.find(e=>e.id===i);return(0,K.jsx)(s3,{folder:c,collapsed:r,current:t===`/folder/${c.id}`,go:n,constraints:h,reorderable:!f&&g.length>1,onDragStart:()=>{m.current=!0},onDragEnd:()=>void v(_.current),moveUp:!f&&o>0?()=>y(i,-1):void 0,moveDown:!f&&o<g.length-1?()=>y(i,1):void 0,onAppearance:()=>s(c),onRename:()=>a({folder:c}),onDelete:()=>l(c)},c.id)})})}),(0,K.jsxs)(`button`,{"data-testid":`folder-create`,"data-sidebar":`menu-button`,"aria-label":W(`New folder`),title:r?W(`New folder`):void 0,className:`workspace-nav workspace-folder-new`,onClick:()=>a({}),children:[(0,K.jsx)(k_,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:W(`New folder`)})]})]}),o&&(0,K.jsx)(X4,{folder:o,onDone:()=>s(void 0)}),i&&(0,K.jsx)(J4,{folder:i.folder,onDone:e=>{a(void 0),e&&n(`/folder/${e.id}`)}}),c&&(0,K.jsx)(Y4,{folder:c,onDone:e=>{l(void 0),e&&t===`/folder/${c.id}`&&n(``)}})]})}function s3({folder:e,collapsed:t,current:n,go:r,onRename:i,onDelete:a,onAppearance:o,constraints:s,reorderable:c,onDragStart:l,onDragEnd:u,moveUp:d,moveDown:f}){let p=lm(),m=Lp(),h=(0,U.useRef)(!1),[g,_]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),[b,x]=(0,U.useState)(),S=(0,U.useRef)(null),C=(0,U.useRef)(null),w=(0,U.useRef)(null),T=(0,U.useRef)(null);(0,U.useEffect)(()=>{if(!b)return;T.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{S.current?.contains(e.target)||x(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[b]);let E=e=>{let t=S.current.getBoundingClientRect(),n=getComputedStyle(S.current).direction===`rtl`;x({pointer:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},D=e=>{let n=Array.from(T.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),x(void 0),(t?w:C).current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),n[(r+1)%n.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),n[(r-1+n.length)%n.length]?.focus()):e.key===`Tab`&&x(void 0)},O=e=>{x(void 0),(t?w:C).current?.focus(),e()},k=e=>e.dataTransfer.types.includes(W4);return(0,K.jsxs)(Nm,{as:`div`,ref:S,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":g,dragListener:!1,dragControls:p,dragConstraints:s,dragElastic:0,dragMomentum:!1,transition:m?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{h.current=!0,_(!0),x(void 0),l()},onDragEnd:()=>{_(!1),u()},children:[(0,K.jsxs)(`button`,{ref:w,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":v,"aria-current":n?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{h.current=!1,c&&e.button===0&&p.start(e,{distanceThreshold:4})},onClick:t=>{h.current&&t.detail?h.current=!1:r(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),E(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),E(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?d:f)?.())},onDragEnter:e=>{k(e)&&(e.preventDefault(),y(!0))},onDragOver:e=>{k(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>y(!1),onDrop:t=>{y(!1);let n=t.dataTransfer.getData(W4);n&&(t.preventDefault(),window.yogurt.folders.add(e.id,n))},children:[(0,K.jsx)(V4,{appearance:e}),(0,K.jsx)(`span`,{children:e.name}),(0,K.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":W(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,K.jsx)(`button`,{ref:C,"data-testid":`sidebar-folder-more`,className:`workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!b,"aria-label":W(`More for “{name}”`,{name:e.name}),title:W(`More`),onClick:e=>b?x(void 0):E(e.detail>0),children:(0,K.jsx)(Dg,{size:15,"aria-hidden":`true`})}),b&&(0,K.jsxs)(`div`,{ref:T,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,"data-pointer":b.pointer,"data-anchor":`start`,onKeyDown:D,style:b.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>O(o),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,K.jsx)(C_,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Change icon`)]}),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>O(i),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,K.jsx)(T_,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Rename`)]}),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!d,onClick:()=>d&&O(d),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,K.jsx)(Yh,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Move up`)]}),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!f,onClick:()=>f&&O(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,K.jsx)(Gh,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Move down`)]}),(0,K.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>O(a),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,K.jsx)(q_,{size:15,"aria-hidden":`true`}),W(`Delete folder`)]})]})]})}function c3(){return null}function l3({route:e,meeting:t,folders:n,go:r,back:i,forward:a,search:o,collapsed:s,sidebarMotion:c,toggleSidebar:l,children:u}){let[d,f]=(0,U.useState)(null);(0,U.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.widget.onState(e=>{t=!0,f(e)});return window.yogurt.widget.state().then(n=>{e&&!t&&f(n)}),()=>{e=!1,n()}},[]);let p={duration:c?.2:0,ease:[.22,1,.36,1]},m=e.startsWith(`/note/`),h=e.startsWith(`/chat/`)?`/chat`:e,g=d?.kind===`recording`&&e!==`/note/${d.meetingId}`;(0,U.useEffect)(()=>{let t=()=>{if(document.querySelector(`[aria-modal="true"]:not([data-testid="chat-panel"]), [role="alertdialog"]`))return;let t=XH(e);t.panel?document.getElementById(`meeting-ask`)?.click():window.yogurt.conversations.current(t.chips,t.fresh).then(e=>r(`/chat/${e}`)).catch(e=>{console.error(`Opening Ask failed`,e),U2.add({title:W(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!mQ(e)||hQ()&&e.ctrlKey||e.altKey||e.shiftKey||e.code!==`KeyJ`||e.defaultPrevented||(e.preventDefault(),t())},i=()=>{window.yogurt.nav.takeAsk().then(e=>{e&&t()})},a=window.yogurt.nav.onAsk(i);return i(),window.addEventListener(`keydown`,n),()=>{a(),window.removeEventListener(`keydown`,n)}},[e,r]);let _=[{route:``,label:W(`Meetings`),Icon:zX},{route:`/chat`,label:W(`Ask`),Icon:IX},{route:`/trash`,label:W(`Trash`),Icon:q_},{route:`/settings`,label:W(`Settings`),Icon:BX}],v=e.startsWith(`/folder/`)?n?.find(t=>e===`/folder/${t.id}`):void 0,y=_.find(e=>e.route===h)??(e.startsWith(`/folder/`)?{label:v?.name??W(`Folder`)}:void 0),b=m?t&&e===`/note/${t.id}`?t.title:W(`Meeting`):e===`/settings`?W(`Settings`):y?.label??W(`Meetings`),x=t=>(0,K.jsxs)(`button`,{"data-testid":t.route===``?`nav-home`:t.route===`/chat`?`nav-chat`:t.route===`/settings`?`settings-open`:`nav-trash`,"data-sidebar":`menu-button`,"aria-label":t.label,title:s?t.label:void 0,className:`workspace-nav${t.route===`/trash`?` workspace-trash`:``}`,"aria-current":h===t.route||t.route===``&&e===`/meetings`?`page`:void 0,onClick:()=>r(t.route),children:[(0,K.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:t.label})]},t.route);return(0,K.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,K.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,K.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,K.jsx)(`button`,{className:`workspace-icon workspace-sidebar-toggle no-drag`,"data-testid":s?`sidebar-expand`:`sidebar-collapse`,onClick:e=>l(e.detail>0),"aria-expanded":!s,"aria-controls":`workspace-sidebar`,"aria-keyshortcuts":hQ()?`Control+Meta+S`:`Control+Shift+S`,title:`${W(s?`Expand sidebar`:`Collapse sidebar`)} (${pQ(`⌃⌘S`)})`,"aria-label":W(s?`Expand sidebar`:`Collapse sidebar`),children:(0,K.jsx)(RX,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,K.jsx)(i3,{className:`workspace-sidebar-gap`,transition:p}),(0,K.jsx)(a3,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":W(`Main navigation`),transition:p,children:(0,K.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,K.jsx)(`div`,{className:`sidebar-titlebar`}),(0,K.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,K.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":W(`Search`),title:`${W(`Search`)} (${pQ(`⌘K`)})`,onClick:o,children:[(0,K.jsx)(LX,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,K.jsx)(`span`,{children:W(`Search`)}),(0,K.jsx)(`kbd`,{children:pQ(`⌘K`)})]}),(0,K.jsx)(`nav`,{"aria-label":W(`Workspace`),children:_.slice(0,2).map(x)}),(0,K.jsx)(`div`,{className:`workspace-folder-label`,children:W(`Your workspace`)}),(0,K.jsx)(o3,{collapsed:s,folders:n,route:e,go:r})]}),(0,K.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,K.jsx)(c3,{collapsed:s}),x(_[2]),x(_[3]),(0,K.jsx)(`div`,{className:`workspace-brand`,children:(0,K.jsx)(`span`,{className:`workspace-wordmark`,children:(0,K.jsx)(r1,{height:25})})})]})]})}),(0,K.jsxs)(`div`,{className:`workspace-content`,children:[(0,K.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,K.jsxs)(`div`,{className:`workspace-breadcrumb no-drag`,children:[(0,K.jsxs)(`span`,{className:`workspace-history`,children:[(0,K.jsx)(`button`,{"data-testid":`nav-back`,className:`workspace-icon`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":W(`Back`),title:`${W(`Back`)} (${pQ(`⌘[`)})`,children:(0,K.jsx)(hg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,K.jsx)(`button`,{"data-testid":`nav-forward`,className:`workspace-icon`,disabled:!a,onClick:a,"aria-label":W(`Forward`),title:`${W(`Forward`)} (${pQ(`⌘]`)})`,children:(0,K.jsx)(_g,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),m&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`button`,{className:`workspace-parent`,onClick:()=>r(``),children:W(`Meetings`)}),(0,K.jsx)(L_,{size:12,strokeWidth:1.4,className:`workspace-parent-separator rtl:-scale-x-100`,"aria-hidden":`true`})]}),(0,K.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),g&&(0,K.jsxs)(`button`,{className:`workspace-recording-link no-drag`,"data-testid":`recording-return`,"data-paused":d.paused,"aria-label":W(`Open {title}`,{title:d.title}),title:W(`Open {title}`,{title:d.title}),onClick:()=>r(`/note/${d.meetingId}`),children:[(0,K.jsx)(n4,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,K.jsx)(r4,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,K.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var u3=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function d3(){let[e,t]=(0,U.useState)(0);return(0,U.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,U.useEffect)(()=>be(),[e]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`marketing-window`,children:[(0,K.jsx)(l3,{route:`/note/${E.id}`,meeting:E,folders:D,go:u3,search:u3,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:u3,children:(0,K.jsx)($4,{id:E.id,onTitleChange:u3},e)}),(0,K.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{}),(0,K.jsx)(`i`,{})]})]}),(0,K.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,K.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,K.jsx)(`path`,{className:`cursor-pointer`,d:`M4 3 24 13 15.1 15.7 11.3 25Z`,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`})]})]})}(0,y1.createRoot)(document.getElementById(`root`)).render(M?(0,K.jsx)(h1,{}):(0,K.jsx)(d3,{}))})();
\ No newline at end of file
+:where([${m0}][data-tinted]) { opacity: 0.8; }
+:where([${m0}]:dir(rtl)) { transform-origin: right; }
+`,g0=W.createContext(void 0);function _0(){let e=W.useContext(g0);if(!e)throw Error(Pq(73));return e}var v0=0;function y0(e){return v0+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${v0}`}function b0(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function x0(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function S0(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var C0={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},w0=class extends uJ{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:x0(e.toasts)},{},C0)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=S0(this.state.toasts,t);r.toasts=e,r.toastMetadata=x0(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=C0.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||y0(`toast`);if(e.id){let t=C0.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(S0(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),C0.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=C0.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=C0.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),C0.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=C0.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=S0(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=b0(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=b0(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=b0(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=DU.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=ZU(e);$(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=C0.expandedOrOutOfFocus(this.state)?void 0:DU.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:x0(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=YU(bG(this.state.viewport));if(!this.state.viewport||!$(this.state.viewport,t)||!AW(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=C0.toasts(this.state),r=C0.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},T0=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=mU(()=>new w0({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return TU(a.disposeEffect),W.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,q.jsxs)(g0.Provider,{value:a,children:[(0,q.jsx)(E0,{store:a,timeout:n,limit:r}),t]})};function E0(e){let{store:t,timeout:n,limit:r}=e;return Q(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var D0=`--toast-frontmost-height`,O0=W.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=_0(),c=OU(),l=W.useRef(!1),u=W.useRef(!1),d=W.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);W.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=jB(e),n=bG(e);function r(t){t.key===`F6`&&ZU(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,YU(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){ZU(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=ZU(n),i=YU(bG(e));r!==t&&$(e,r)&&AW(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return tG(eG(t,`keydown`,r),eG(t,`blur`,i,!0),eG(t,`focus`,a,!0),eG(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&ZU(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}W.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||AW(YU(bG(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!$(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let k={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[D0]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,q.jsx)(CG,{onFocus:b}),M=UK(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,q.jsxs)(W.Fragment,{children:[j,a,j]})}]});return(0,q.jsxs)(W.Fragment,{children:[j,M,!m&&y.length>0&&(0,q.jsx)(`div`,{style:SG,children:y.map(e=>(0,q.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,q.jsx)(`div`,{children:e.title}),(0,q.jsx)(`div`,{children:e.description})]},e.id))})]})}),k0=W.createContext(void 0);function A0(){let e=W.useContext(k0);if(!e)throw Error(Pq(66));return e}function j0(e,t){let n=(t??jB(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function M0(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var N0=`--toast-index`,P0=`--toast-offset-y`,F0=`--toast-height`,I0=`--toast-swipe-movement-x`,L0=`--toast-swipe-movement-y`,R0=`data-swipe-direction`,z0={...cW,swipeDirection(e){return e?{[R0]:e}:null}},B0=40,V0=10,H0=.5,U0=1,W0=`${eq},${tq}`,G0=W.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=_0(),[f,p]=W.useState(void 0),[m,h]=W.useState(!1),[g,_]=W.useState(!1),[v,y]=W.useState({x:0,y:0}),[b,x]=W.useState({x:0,y:0,scale:1}),[S,C]=W.useState(),[w,T]=W.useState(),[E,D]=W.useState(null),O=W.useRef(null),k=W.useRef(void 0),A=W.useRef({x:0,y:0}),j=W.useRef({x:0,y:0,scale:1}),M=W.useRef(void 0),N=W.useRef(0),P=W.useRef(!1),F=W.useRef({x:0,y:0}),I=W.useRef(!1),L=W.useRef({x:0,y:0}),R=W.useRef(null),z=W.useRef(null),B=d.useState(`toastIndex`,n.id),ee=d.useState(`toastVisibleIndex`,n.id),te=d.useState(`toastOffsetY`,n.id),ne=d.useState(`focused`),re=d.useState(`expanded`);Hq({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let V=pG((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?Ee.flushSync(a):a()});Q(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),H({x:0,y:0})),k.current=n.id,V())},[V,n.id,n.transitionStatus]);function H(e){L.current=e,y(e)}Q(()=>()=>{z.current?.abort()},[]);function ie(e,t){let n=e=>e>0?e**H0:-(Math.abs(e)**H0),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let U=pG(e=>{if(e.pointerId!==R.current)return;R.current=null,z.current?.abort(),z.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){H({x:t.x,y:t.y}),p(void 0);return}let r=L.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(M0(e,i,a)>B0){o=e;break}o?(p(o),d.closeToast(n.id)):(H({x:t.x,y:t.y}),p(void 0))});function ae(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),XU(ZU(e.nativeEvent),`button,a,input,textarea,[role="button"],${W0}`)))return;P.current=!1,M.current=void 0,N.current=0,R.current=e.pointerId,A.current={x:e.clientX,y:e.clientY},F.current=A.current;let t=e.currentTarget,n=j0(t);j.current=n,x(n),H({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,z.current?.abort();let r=new AbortController;z.current=r;let i=bG(t);i.addEventListener(`pointerup`,U,{signal:r.signal}),i.addEventListener(`pointercancel`,U,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function oe(e){if(e.pointerId!==R.current)return;e.preventDefault(),I.current&&=(A.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>F.current.y||i>0&&t<F.current.y)&&(F.current={x:F.current.x,y:t}),(r<0&&n>F.current.x||r>0&&n<F.current.x)&&(F.current={x:n,y:F.current.y});let a=n-A.current.x,o=t-A.current.y,s=t-F.current.y,c=n-F.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=U0){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!M.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(M.current=d,N.current=M0(d,a,o),p(d));else{let e=M.current,t=M0(e,c,s);t>B0?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=V0&&(P.current=!0)}let f=ie(a,o),m=j.current.x,h=j.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),H({x:m,y:h})}function se(e){if(e.key===`Escape`){if(!O.current||!$(O.current,YU(bG(O.current))))return;d.closeToast(n.id)}}W.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&$(e,ZU(t))&&t.preventDefault()}return eG(e,`touchmove`,t,{passive:!1})},[u]);function ce(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[I0]:`${e}px`,[L0]:`${t}px`}}let le=n.priority===`high`,ue={role:le?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":le&&!ne?!0:void 0,onPointerDown:u?ae:void 0,onPointerMove:u?oe:void 0,onPointerUp:u?U:void 0,onPointerCancel:u?U:void 0,onKeyDown:se,inert:NY(n.limited),style:{...ce(),[N0]:n.transitionStatus===`ending`?B:ee,[P0]:`${te}px`,[F0]:n.height?`${n.height}px`:void 0}},de=W.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:V,visibleIndex:ee,expanded:re}),[n,C,T,V,ee,re]),fe={transitionStatus:n.transitionStatus,expanded:re,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},pe=UK(`div`,e,{ref:[t,O],state:fe,stateAttributesMapping:z0,props:[ue,s]});return(0,q.jsx)(k0.Provider,{value:de,children:pe})}),K0=W.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=A0(),l=W.useRef(null);return Q(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),UK(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function q0(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(q0)}function J0(e){return W.isValidElement(e)&&q0(e.props.children)}function Y0(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=A0(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:xK(e),children:s,type:r.type,setId:o}}function X0(e,t,n){let r=J0(e);return Q(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var Z0=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Y0(a,o,`description`);return X0(UK(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Q0=W.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Y0(a,o,`title`);return X0(UK(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),$0=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=_0(),{toast:l,expanded:u}=A0(),[d,f]=W.useState(!1),{getButtonProps:p,buttonRef:m}=bY({disabled:a,native:o}),h={type:l.type};return UK(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),e2=W.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=A0(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=bY({disabled:a,native:o}),f={type:c.type},p=UK(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return J0(p)?p:null}),t2=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=cq({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,q.jsxs)(W.Fragment,{children:[l,c&&Ee.createPortal(n,c)]})}),n2=W.forwardRef(function(e,t){return(0,q.jsx)(t2,{ref:t,...e})}),r2=W.createContext(void 0);function i2(){let e=W.useContext(r2);if(e===void 0)throw Error(Pq(84));return e}var a2=W.forwardRef(function(e,t){let{toast:n,...r}=e,i=_0(),a=n.positionerProps??wU,{render:o,className:s,anchor:c=a.anchor,positionMethod:l=a.positionMethod??`absolute`,side:u=a.side??`top`,align:d=a.align??`center`,sideOffset:f=a.sideOffset??0,alignOffset:p=a.alignOffset??0,collisionBoundary:m=a.collisionBoundary??`clipping-ancestors`,collisionPadding:h=a.collisionPadding??5,arrowPadding:g=a.arrowPadding??5,sticky:_=a.sticky??!1,disableAnchorTracking:v=a.disableAnchorTracking??!1,collisionAvoidance:y=a.collisionAvoidance??rq,style:b,...x}=r,[S,C]=W.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=PB(c)?c:null,D=QY({anchor:E,positionMethod:l,floatingRootContext:xJ({open:!0,onOpenChange:SU,elements:{floating:S,reference:E}}),mounted:!0,side:u,sideOffset:f,align:d,alignOffset:p,collisionBoundary:m,collisionPadding:h,sticky:_,arrowPadding:g,disableAnchorTracking:v,keepMounted:!0,collisionAvoidance:y}),O=iX(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[N0]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,q.jsx)(r2.Provider,{value:D,children:O})}),o2=W.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=i2();return UK(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function s2(){let e=_0(),t=e.useState(`toasts`);return W.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function c2(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||y0(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var l2=CQ({Action:()=>R2,Arrow:()=>V2,Close:()=>L2,Content:()=>P2,Description:()=>F2,Portal:()=>z2,Positioner:()=>B2,Provider:()=>E2,Root:()=>O2,Title:()=>I2,Viewport:()=>D2,createToastManager:()=>U2,useToastManager:()=>H2}),u2=`0.75rem`,d2=`0.75rem`,f2=Ch.tooltip,p2=ah.scale.toast,m2=ah.blur.surface,h2=ah.transition.fade,g2=5e3,_2=150,v2=`animate-ui-base-ui-toast`,y2=W.createContext({timeout:g2,progressBar:!0});function b2(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function x2(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function S2(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function C2(){let e=W.useRef({at:-1/0});return t=>{let n=e.current;return n.expanded!==void 0&&n.expanded!==t&&(n.at=performance.now()),n.expanded=t,performance.now()-n.at<_2}}function w2(e,{side:t,reduce:n,anchored:r,enter:i,exit:a,cascade:o,swipe:s,thrown:c}){let l=e.transitionStatus===`ending`,u=e.transitionStatus===`starting`,d=u||l||e.limited;if(e.swiping)return s??{opacity:+!d};if(r)return{opacity:+!d,...b2(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?f2:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...b2(n?f?[`transform`,`opacity`]:[`opacity`,`filter`]:[`transform`,`opacity`,`height`,`filter`],f&&c?c:l?a:i,l?void 0:o)},m=t===`top`?-1:1,h=`max(0.9, calc(1 - var(--toast-index) * 0.05))`,g=e.expanded?`1`:h,_=e.expanded?`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-offset-y, 0px) + var(--toast-index, 0) * ${u2}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${d2} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=m2,n||(y=`${m*100}%`,b=`calc(${g} * ${p2})`)),f===`down`&&(y=`100%`),f===`up`&&(y=`-100%`),f===`right`&&(v=`100%`),f===`left`&&(v=`-100%`),p.transform=`translateX(calc(var(--toast-swipe-movement-x, 0px) + ${v})) translateY(calc(${_} + ${y})) scale(${b})`,p.transformOrigin=t===`top`?`top`:`bottom`,p}function T2(e,t){return typeof e==`function`?e(t):e}function E2({progressBar:e=!0,...t}){let n=t.timeout??g2,r=W.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,q.jsx)(y2,{value:r,children:(0,q.jsx)(T0,{...t})})}var D2=O0;function O2(e){return(0,q.jsx)(_h,{children:(0,q.jsx)(k2,{...e})})}function k2({ref:e,style:t,transition:n,exitTransition:r,progressBar:i,children:a,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:l,...u}){let{toast:d}=u,f=xh(),p=uh(),m=W.use(y2),h=d.positionerProps!=null,g=mh(lh(n??(h?Sh:kQ))),_=mh(lh(r??(h?n??Sh:DQ))),v=mh(lh(h2)),y=x2(u.swipeDirection),b=S2(y),x=C2(),S=p.stagger.stack*1e3,C=W.useRef(null),w=W.useRef(null);W.useLayoutEffect(()=>{let e=C.current,t=e&&B1(e);t&&q1(t,d.type,p.transition.check.delay,p,f)},[]);let T=W.useRef(d.type),E=e=>{let t=T.current!==d.type;T.current=d.type,e0(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,q.jsx)(G1,{watch:[d.type,d.title,d.description],take:()=>W1(C.current),onUpdate:E,children:(0,q.jsxs)(G0,{...u,ref:R1(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=c0(e))},onPointerMove:e=>{s?.(e),w.current&&l0(w.current,e,y)},onPointerUp:e=>{c?.(e);let t=w.current;t?.pointerId===e.pointerId&&(t.releasedAt=e.timeStamp)},onPointerCancel:e=>{l?.(e),w.current=null},style:e=>{let n=x(e.expanded)&&!f?`calc(var(--toast-index, 0) * ${S}ms)`:void 0,r=w.current;return{...w2(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?d0(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?f0(r,e.swipeDirection):null}),...D&&{"--animate-ui-toast-fade-duration":`${v.duration}ms`,"--animate-ui-toast-fade-ease":v.easing,"--animate-ui-toast-cascade":n??`0ms`},...T2(t,e)}},children:[a,D&&!h&&(0,q.jsx)(N2,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function A2(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var j2=`--animate-ui-toast-progress-color`,M2=`data-tinted`;function N2({duration:e,running:t,ending:n}){let r=W.useRef(null),i=W.useRef(null),a=W.useSyncExternalStore(A2,()=>document.hasFocus(),()=>!0),o=W.useRef({ending:n,windowFocused:a}),s=()=>r.current?.parentElement?.parentElement??null,c=W.useCallback(()=>{let e=i.current,t=s();if(!e||!t)return;let n=o.current.ending||!o.current.windowFocused||t.hasAttribute(`data-expanded`);n&&e.playState===`running`&&e.pause(),!n&&e.playState===`paused`&&e.play()},[]);return W.useLayoutEffect(()=>{let n=r.current;if(!t||!n)return;let a=n.animate([{transform:`scaleX(1)`},{transform:`scaleX(0)`}],{duration:e,easing:`linear`,fill:`forwards`});i.current=a;let o=s(),l=o?.querySelector(`[data-slot="toast-icon"] > *`),u=l&&o?getComputedStyle(l).color:null;return u&&u!==getComputedStyle(o).color?(n.style.setProperty(j2,u),n.setAttribute(M2,``)):(n.style.removeProperty(j2),n.removeAttribute(M2)),c(),()=>{a.cancel(),i.current=null}},[t,e,c]),W.useLayoutEffect(()=>{let e=s();if(!t||!e)return;let n=new MutationObserver(c);return n.observe(e,{attributeFilter:[`data-expanded`]}),()=>n.disconnect()},[t,c]),W.useLayoutEffect(()=>{o.current={ending:n,windowFocused:a},c()},[c,n,a]),t?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`style`,{href:v2,precedence:`animate-ui`,children:h0}),(0,q.jsx)(`div`,{[p0]:``,"aria-hidden":`true`,children:(0,q.jsx)(`div`,{ref:r,[m0]:``})})]}):null}function P2({style:e,transition:t,...n}){let r=xh(),i=C2(),a=uh().stagger.stack*1e3,o=mh(lh(t??h2));return(0,q.jsx)(K0,{...n,style:t=>({...b2([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...T2(e,t)})})}var F2=Z0,I2=Q0,L2=$0,R2=e2,z2=n2,B2=a2,V2=o2,H2=s2,U2=c2;async function W2(e,t){let n=[],r=[],i;for(let a of new Set(e)){let e=await t(a).catch(()=>`failed`);e===`trashed`&&n.push(a),e===`trashed`||e===`missing`?r.push(a):i??=e}return{trashed:n,done:r,error:i}}var G2;function K2(e){G2&&(e??document.body).append(G2)}var q2,J2=l2.createToastManager();async function Y2(e,t){return(await X2([e],t,!1)).includes(e)}async function X2(e,t,n=!0){let r=await W2(e,e=>window.yogurt.meetings.trash(e)),i=r.error===`recording`?G(`Stop the recording first, then try again.`):r.error===`save-pending`?G(`Open this note and finish saving before deleting it.`):r.error?G(`Yogurt couldn't move this note to the Trash. Try again.`):void 0;return(r.trashed.length||i)&&q2?.({ids:r.trashed,from:t,bulk:n,error:i}),r.done}function Z2({id:e,recording:t,anchor:n,onSource:r}){let[i,a]=(0,W.useState)(!1),[o,s]=(0,W.useState)(),[c,l]=(0,W.useState)(0),[u,d]=(0,W.useState)(!1),[f,p]=(0,W.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),m=(0,W.useRef)(null),h=(0,W.useRef)(null),g=(0,W.useRef)(null),_=(0,W.useRef)(null),v=(0,W.useRef)([]),y=(0,W.useRef)(!1),b=(0,W.useRef)(!1);(0,W.useEffect)(()=>{a(!1),s(void 0),d(!1),b.current=!1},[e]),(0,W.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>p(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,W.useEffect)(()=>{if(!i||o)return;let t=!0;return window.yogurt.conversations.current([{kind:`meeting`,id:e}]).then(e=>{t&&s(e)}).catch(()=>{t&&d(!0)}),()=>{t=!1}},[i,e,o]);let x=(e,t=!0)=>{let n=g.current,r=_.current,i=h.current,a=m.current;if(!n||!r||!i||!a)return;let o=v.current.some(e=>e.playState===`running`),s=getComputedStyle(n),c={left:s.left,top:s.top,width:s.width,height:s.height,borderRadius:s.borderRadius,shell:s.opacity,dialog:getComputedStyle(i).opacity,body:getComputedStyle(r).opacity,clip:getComputedStyle(r).clipPath,button:getComputedStyle(a).opacity};if(v.current.forEach(e=>e.cancel()),v.current=[],!t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){let t=i.animate([{opacity:o?c.dialog:+!e},{opacity:+!!e}],{duration:Ef.micro,easing:Ef.ease,fill:`both`});return v.current=[t],t}let l=a.getBoundingClientRect(),u=i.getBoundingClientRect(),d=r.getBoundingClientRect(),f=parseFloat(getComputedStyle(a).borderRadius),p={left:`${l.x-u.x-1}px`,top:`${l.y-u.y-1}px`,width:`${l.width}px`,height:`${l.height}px`,borderRadius:`${f}px`},y={left:`-1px`,top:`-1px`,width:`calc(100% + 2px)`,height:`calc(100% + 2px)`,borderRadius:`12px`},b=`inset(${l.top+1-d.top}px ${d.right-l.right+1}px ${d.bottom-l.bottom+1}px ${l.left+1-d.left}px round ${Math.max(0,f-1)}px)`,x=`inset(0px round 11px)`,S=e?Ef.base:Ef.askExit,C=Ef.ease,w=Ef.micro,T=n.animate([o?{left:c.left,top:c.top,width:c.width,height:c.height,borderRadius:c.borderRadius}:e?p:y,e?y:p],{duration:S,easing:C,fill:`both`}),E=r.animate([{clipPath:o&&c.clip!==`none`?c.clip:e?b:x},{clipPath:e?x:b}],{duration:S,easing:C,fill:e?`backwards`:`forwards`}),D=r.animate([{opacity:o?c.body:+!e},{opacity:+!!e}],{duration:Ef.micro,easing:C,fill:`both`}),O={duration:w,delay:e?0:S-w,easing:C,fill:`both`},k=n.animate([{opacity:o?c.shell:+!e},{opacity:+!!e}],O),A=a.animate([{opacity:o?c.button:+!!e},{opacity:+!e}],O);return v.current=[T,E,D,k,A],T};(0,W.useEffect)(()=>()=>v.current.forEach(e=>e.cancel()),[]),(0,W.useLayoutEffect)(()=>{if(!i||!n||!h.current)return;let e=h.current,t=()=>{let t=n.getBoundingClientRect();e.style.setProperty(`--chat-bottom`,`${Math.max(16,innerHeight-t.bottom+12)}px`),e.style.setProperty(`--chat-height`,`${f?440:Math.max(0,t.height-24)}px`)};t(),f?e.showModal():e.show(),K2(f?e:null),e.querySelector(`textarea`)?.focus({preventScroll:!0}),x(!0,y.current),y.current=!1;let r=new ResizeObserver(t);return r.observe(n),window.addEventListener(`resize`,t),()=>{r.disconnect(),window.removeEventListener(`resize`,t),K2(null),e.close()}},[i,f,n]);let S=(e=!0)=>{if(b.current)return;b.current=!0;let t=x(!1,e),n=()=>{b.current&&(b.current=!1,h.current?.close(),a(!1),m.current?.focus({preventScroll:!0}))};t?t.finished.then(n,()=>{}):n()},C=i&&(0,q.jsxs)(`dialog`,{id:`meeting-chat`,ref:h,"data-testid":`chat-panel`,className:`chat-panel no-drag`,"aria-labelledby":`meeting-chat-title`,"aria-modal":f||void 0,onKeyDown:e=>{e.key!==`Escape`||e.defaultPrevented||h.current?.querySelector(`.citation-card:not([data-ending-style])`)||e.target.closest(`[role="alertdialog"], [role="dialog"], [role="menu"]`)||(e.preventDefault(),e.stopPropagation(),S())},onCancel:e=>{e.preventDefault(),S()},children:[(0,q.jsx)(`div`,{ref:g,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,q.jsxs)(`div`,{ref:_,className:`chat-panel-contents`,children:[u&&(0,q.jsx)(`p`,{role:`alert`,children:G(`Yogurt couldn't answer that.`)}),(0,q.jsx)(n1,{id:o??``,pendingDraftKey:`meeting/${e}`,loadError:u,panel:!0,recording:t,onSelect:e=>{s(e),l(e=>e+1)},onClose:()=>S(),onExpand:o?()=>{Lv(),S(!1),window.yogurt.nav.go(`/chat/${o}`)}:void 0,onDeleted:()=>{S(!1),s(void 0),window.yogurt.nav.go(`/chat`)},onSource:(e,t)=>{S(!1),r(e,t)}},`${e}/${c}`)]})]});return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{id:`meeting-ask`,ref:m,"data-testid":`chat-open`,className:`chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:bQ()?G(`Ask Yogurt (⌘J)`):`${G(`Ask Yogurt`)} (${vQ(`⌘J`)})`,onClick:()=>{i&&!b.current?S():(b.current&&(b.current=!1,x(!0)),y.current=!0,d(!1),a(!0),h.current?.querySelector(`textarea`)?.focus({preventScroll:!0}))},children:[(0,q.jsx)(zX,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:G(`Ask Yogurt`)}),(0,q.jsx)(`kbd`,{"aria-hidden":`true`,children:vQ(`⌘J`)})]}),n&&(0,Ee.createPortal)(C,n)]})}function Q2(e){let t=Math.max(0,Math.floor(e/1e3)),n=String(t%60).padStart(2,`0`),r=Math.floor(t/60);return r>=60?`${Math.floor(r/60)}:${String(r%60).padStart(2,`0`)}:${n}`:`${r}:${n}`}var $2=60,e4=220,t4=class{target=0;level=0;step(e){let t=this.target>this.level?$2:e4;this.level+=(this.target-this.level)*(1-Math.exp(-e/t))}settled(){return this.target!==0||this.level>=.002?!1:(this.level=0,!0)}};function n4(e){let t=e.paused||e.reduced;if(t&&!e.stillBars)return{heights:[0,0,0],alpha:[.5,.5,.5]};let n=e.bars===3?[.75,1,.75]:[.5,.75,1,.75,.5],r=t?.7:e.level;return{heights:n.map(e=>e*r),alpha:n.map(()=>.45+.55*r)}}var r4=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),i4=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,a4=3,o4=3,s4=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function c4({height:e,className:t,testId:n,paused:r=!1,bars:i=5,stillBars:a=!1}){let o=(0,W.useRef)(null),s=i*a4+(i-1)*o4;return(0,W.useEffect)(()=>{let t=o.current;if(!t)return;let n=new t4,c=s4(),l=window.devicePixelRatio||1,u=c.matches;t.width=s*l,t.height=e*l;let d=getComputedStyle(t).color,f=``,p=(o=!1)=>{let c=t.getContext(`2d`);if(!c)return;let p=n4({reduced:u,paused:r,level:n.level,bars:i,stillBars:a}),m=r4(p,e-a4);(o||m!==f)&&(f=m,c.setTransform(l,0,0,l,0,0),c.clearRect(0,0,s,e),c.fillStyle=d,p.heights.forEach((t,n)=>{let r=a4+Math.round(t*(e-a4));c.globalAlpha=p.alpha[n],c.beginPath();let i=(s-p.heights.length*a4-(p.heights.length-1)*o4)/2;c.roundRect(i+n*6,(e-r)/2,a4,r,a4/2),c.fill()}),c.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},m=performance.now(),h=window.yogurt.widget.onLevel(e=>{n.target=i4(e),m=performance.now(),u?(n.level=n.target,p()):n.target>0&&x()}),g=0,_=performance.now(),v=e=>{e||(cancelAnimationFrame(g),g=0),t.dataset.live=e?`1`:`0`},y=e=>{let t=Math.min(100,e-_);_=e,e-m>300&&(n.target=0),n.step(t),n.settled()?(p(!0),v(!1)):(p(),g=requestAnimationFrame(y))},b=()=>{_=performance.now(),g=requestAnimationFrame(y),v(!0)},x=()=>{g||u||r||document.visibilityState!==`visible`||b()},S=()=>{v(!1),!u&&!r&&document.visibilityState===`visible`&&b(),p(!0)},C=()=>{u=c.matches,S()},w=()=>{document.visibilityState===`visible`?x():v(!1)},T=()=>{d=getComputedStyle(t).color,p(!0)},E=window.matchMedia(`(prefers-color-scheme: dark)`);return c.addEventListener(`change`,C),E.addEventListener(`change`,T),document.addEventListener(`visibilitychange`,w),S(),()=>{h(),cancelAnimationFrame(g),c.removeEventListener(`change`,C),E.removeEventListener(`change`,T),document.removeEventListener(`visibilitychange`,w)}},[e,s,r,i,a]),(0,q.jsx)(`canvas`,{ref:o,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:s,height:e}})}function l4({view:e,testId:t=`note-elapsed`,className:n=`note-elapsed`}){let[r,i]=(0,W.useState)(`—`);return(0,W.useEffect)(()=>{if(!e){i(`—`);return}let t=()=>i(Q2(e.elapsedMs+(e.kind===`recording`&&!e.paused?Math.max(0,Date.now()-e.at):0)));if(t(),e.kind!==`recording`||e.paused)return;let n=setInterval(t,250);return()=>clearInterval(n)},[e]),(0,q.jsx)(`time`,{"data-testid":t,className:n,"aria-label":G(`Recorded time`),children:r})}function u4(e,t,n=!1){return e===`mine`?{side:`mine`,writing:!1,fellBack:!1}:t===`waiting`||t===`writing`?{side:`enhanced`,writing:!0,fellBack:!1}:t===`failed`&&!n||t===`empty`?{side:`mine`,writing:!1,fellBack:!0}:{side:`enhanced`,writing:!1,fellBack:!1}}function d4({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,W.useState)(!1),s=jf(a,a===`pointer`),[c,l]=(0,W.useState)(),u=(0,W.useRef)(null),d=(0,W.useRef)(null),f=(0,W.useRef)([]),p=(0,W.useRef)(void 0),m=u4(t,n,r),h=(0,W.useCallback)((e,t=`notice`)=>{l({text:e,kind:t}),clearTimeout(p.current),p.current=setTimeout(()=>l(void 0),2e3)},[]);(0,W.useEffect)(()=>(l(void 0),o(!1),()=>clearTimeout(p.current)),[e]);let{side:g,writing:_,fellBack:v}=m,y=(0,W.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=u4(o,n,r);if(a===`notes`&&c){h(G(`Still generating your summary`));return}if(a===`notes`&&!await i()){h(G(`Couldn't save your latest changes. Try again before copying.`),`error`);return}let u=await window.yogurt.share.copy(e,a,s);h(G(u===`failed`?`Couldn't copy. Try again.`:u===`nothing`?`Nothing to copy yet`:a===`notes`&&l?`Copied your notes`:`Copied`),u===`failed`?`error`:u===`nothing`?`notice`:`copied`)},[e,t,n,r,i,h]),b=async()=>{if(_){h(G(`Still generating your summary`));return}if(!await i()){h(G(`Couldn't save your latest changes. Try again before exporting.`),`error`);return}let t=await window.yogurt.share.save(e,g);t===`saved`?h(G(v?`Saved your notes`:`Saved`),`saved`):t===`failed`&&h(G(`Couldn't save the file`),`error`)},x=e=>{o(!1),d.current?.focus(),e()};(0,W.useEffect)(()=>{let e=e=>{!e.repeat&&yQ(e)&&e.shiftKey&&!e.altKey&&!(bQ()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),y(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,W.useEffect)(()=>{if(!a)return;f.current[0]?.focus();let e=e=>{u.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]);let S=e=>{let t=f.current.filter(e=>e&&!e.disabled),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),o(!1),d.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&(o(!1),d.current?.focus())},C=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,w=c?.kind===`copied`;return(0,q.jsxs)(`div`,{ref:u,className:`relative flex items-center gap-1.5`,children:[(0,q.jsx)(`span`,{"data-testid":`share-said`,"data-tone":c?.kind,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`pointer-events-none absolute end-0 top-full z-20 mt-2 flex w-max max-w-[min(280px,calc(100vw-48px))] items-start gap-1.5 rounded-md text-xs text-muted ${c?`border border-line bg-float px-2.5 py-1.5 shadow-[var(--shadow-soft)]`:``}`,children:c&&(0,q.jsxs)(q.Fragment,{children:[(c.kind===`copied`||c.kind===`saved`)&&(0,q.jsx)(Eg,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),c.kind===`error`&&(0,q.jsx)(Pg,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),c.text]})}),(0,q.jsxs)(`button`,{ref:d,"data-testid":`share-button`,"data-state":w?`copied`:`idle`,"aria-haspopup":`menu`,"aria-expanded":!!a,title:G(`Copy and export`),onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-record-action share-btn`,children:[(0,q.jsx)(JX,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),G(`Copy`),(0,q.jsx)(Og,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),s.value&&(0,q.jsxs)(`div`,{"data-testid":`share-menu`,...s.props,role:`menu`,"aria-label":G(`Copy and export`),onKeyDown:S,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,q.jsxs)(`button`,{ref:e=>{f.current[0]=e},role:`menuitem`,"data-testid":`share-copy-notes`,onClick:()=>x(()=>void y(`notes`,`mine`)),className:C,children:[(0,q.jsx)(JX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,q.jsx)(`span`,{className:`flex-1`,children:G(`Copy my notes`)})]}),(0,q.jsxs)(`button`,{ref:e=>{f.current[1]=e},role:`menuitem`,"data-testid":`share-copy-summary`,disabled:!r&&!_,onClick:()=>x(()=>void y(`notes`,`enhanced`)),className:`${C} disabled:opacity-40`,children:[(0,q.jsx)(JX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Copy summary`)]}),(0,q.jsxs)(`button`,{ref:e=>{f.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>x(()=>void y(`transcript`)),className:C,children:[(0,q.jsx)(JX,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Copy transcript`)]}),(0,q.jsxs)(`button`,{ref:e=>{f.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>x(()=>void b()),className:C,children:[(0,q.jsx)(Kg,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Export as Markdown…`)]})]})]})}function f4({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a}){let[o,s]=(0,W.useState)(!1),c=jf(o,o===`pointer`),[l,u]=(0,W.useState)(!1),d=(0,W.useRef)(null),f=(0,W.useRef)(null),p=(0,W.useRef)(null);(0,W.useEffect)(()=>{if(!o){c.value||u(!1);return}p.current?.focus();let e=e=>{d.current?.contains(e.target)||s(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[o,c.value]);let m=e=>{let t=Array.from(d.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),s(!1),f.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&s(!1)},h=e=>{s(!1),e()},g=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`;return(0,q.jsxs)(`div`,{ref:d,className:`relative`,children:[(0,q.jsx)(`button`,{ref:f,"data-testid":`note-menu-button`,"aria-haspopup":`menu`,"aria-expanded":!!o,"aria-label":G(`More`),title:G(`More`),onClick:e=>s(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn grid size-7 place-items-center rounded-md text-muted`,children:(0,q.jsx)(Hg,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),c.value&&(0,q.jsx)(`div`,{"data-testid":`note-menu`,...c.props,role:`menu`,"aria-label":G(`More`),onKeyDown:m,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:l&&i?i(()=>{s(!1),f.current?.focus()}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{ref:p,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>h(n),className:g,children:[(0,q.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Rename`)]}),i&&(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{u(!0),requestAnimationFrame(()=>d.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:g,children:[(0,q.jsx)(e_,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,q.jsx)(`span`,{className:`flex-1`,children:G(`Add to folder`)}),(0,q.jsx)(Mg,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>h(()=>{f.current?.focus(),r()}),className:`${g} text-danger`,children:[(0,q.jsx)(cv,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,q.jsxs)(`span`,{className:`flex flex-col`,children:[G(a?`Delete forever`:`Delete note`),e&&(0,q.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Stop the recording first`)}),t&&(0,q.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Finish saving first`)})]})]})]})})]})}function p4({testId:e,warningTestId:t,className:n=``,children:r}){return(0,q.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,q.jsx)(uv,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function m4({id:e,title:t,onDone:n}){let[r,i]=(0,W.useState)(!1),[a,o]=(0,W.useState)(null),s=()=>n(!1),c=async()=>{i(!0),o(null);let t=await window.yogurt.meetings.delete(e).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,q.jsxs)(G$,{testId:`delete-confirm`,role:`alertdialog`,title:G(`Delete “{title}” forever?`,{title:t}),description:xQ({mac:G(`Its notes, transcript and recording are removed from this Mac for good.`),other:G(`Its notes, transcript and recording are removed from this computer for good.`)}),onCancel:s,busy:r,children:[a&&(0,q.jsx)(p4,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,q.jsx)(`span`,{children:G(a===`recording`?`Stop the recording first, then try again.`:a===`save-pending`?`Open this note and finish saving before deleting it.`:`Yogurt couldn't finish deleting this note. Try again.`)})}),(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:G(`Delete forever`)}),(0,q.jsx)(W$,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`modal-button`,children:G(`Cancel`)})]})]})}var h4=1e3,g4=class{save;handoff;revision=0;pending;timer;flight;status=`saved`;reason;changed=()=>{};constructor(e,t){this.save=e,this.handoff=t}seed(e,t){!t||t.revision<this.revision||this.flight&&t.revision===this.revision||(t.revision!==this.revision||this.status!==`saved`||t.status!==`failed`)&&(this.revision=t.revision,t.status===`failed`?(this.pending={text:e,revision:t.revision},this.status=`failed`,this.reason=t.reason):this.pending&&this.pending.revision!==t.revision||(this.pending=void 0,this.status=`saved`,this.reason=void 0))}change(e){this.pending={text:e,revision:++this.revision},this.status=`saving`,this.reason=void 0,this.changed(),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.flush()},h4)}acknowledge(e,t){this.pending?.revision===e.revision&&(t.revision===e.revision&&t.status===`saved`?(this.pending=void 0,this.status=`saved`):this.status=`failed`,this.reason=t.reason,this.changed())}flush(){if(clearTimeout(this.timer),this.flight)return this.flight;let e=this.pending;if(!e)return Promise.resolve(!0);this.status=`saving`,this.changed();let t;try{t=this.save(e)}catch{t=Promise.resolve({revision:e.revision,status:`failed`})}return this.flight=t.catch(()=>({revision:e.revision,status:`failed`})).then(t=>(this.acknowledge(e,t),this.flight=void 0,this.pending&&this.pending.revision>e.revision?this.flush():!this.pending)),this.flight}flushSync(){clearTimeout(this.timer);let e=this.pending;if(!e)return!0;try{let t=this.handoff(e);return this.acknowledge(e,t),t.status===`saved`||t.retained===!0}catch{return this.status=`failed`,this.changed(),!1}}dispose(){return clearTimeout(this.timer),this.changed=()=>{},this.flushSync()}},_4=new Set,v4=e=>(_4.add(e),()=>{e.dispose()&&_4.delete(e)}),y4=(e,t)=>e||t.includes(`@`);function b4(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function x4(e,t,n,r=!0){(0,W.useLayoutEffect)(()=>{let i=e.current,a=t.current;if(!i||!a||!r)return;let o=a.closest(`[data-testid="note"]`),s=()=>{let e=a.parentElement.getBoundingClientRect(),t=i.getBoundingClientRect().width,n=getComputedStyle(i).direction===`rtl`,r=Math.max(12,Math.min(n?e.right-t:e.left,innerWidth-t-12));i.style.insetInlineStart=`${n?e.right-r-t:r-e.left}px`;let s=Math.min(innerHeight,o?.getBoundingClientRect().bottom??innerHeight);i.style.setProperty(`--people-available-height`,`${Math.max(0,s-e.bottom-16)}px`)};s(),i.querySelector(`input, button, [tabindex="-1"]`)?.focus({preventScroll:!0});let c=new ResizeObserver(s);c.observe(a),o&&c.observe(o);let l=e=>{!i.contains(e.target)&&!a.contains(e.target)&&n(!1)};return window.addEventListener(`resize`,s),window.addEventListener(`scroll`,s,!0),document.addEventListener(`pointerdown`,l),()=>{c.disconnect(),window.removeEventListener(`resize`,s),window.removeEventListener(`scroll`,s,!0),document.removeEventListener(`pointerdown`,l)}},[e,t,n,r])}var S4=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),C4=e=>w4(e).split(/\s+/)[0]??e;function w4(e){let t=T4(e);return!t?.email||t.name!==t.email?t?.name??e:b4(t.email)}function T4(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return null;let n=/<?([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>?/.exec(t);return n?{name:t.replace(n[0],``).replace(/[,;]/g,` `).trim()||n[1],email:n[1]}:{name:t,email:null}}function E4(e,t,n=3){let r=e.filter(e=>!S4(e.name,t));if(!r.length)return G(`Me`);let i=r.slice(0,n).map(e=>C4(e.name)).reduce((e,t)=>G(`{a}, {b}`,{a:e,b:t}));return r.length>n?G(`{name} + {more}`,{name:i,more:r.length-n}):i}function D4(e,t){return e.some(e=>!S4(e.name,t))?E4(e,t,2):G(`Add attendees`)}function O4(){let[e,t]=(0,W.useState)(``);return(0,W.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function k4({m:e}){let[t,n]=(0,W.useState)(!1),r=jf(t,t===`pointer`),i=O4(),a=(0,W.useRef)(null),o=(0,W.useCallback)((e=!0)=>{n(!1),e&&a.current?.focus({preventScroll:!0})},[]);return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(`button`,{ref:a,"data-testid":`note-attendees`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),title:e.attendees.map(e=>e.email?`${e.name} <${e.email}>`:e.name).join(`, `)||void 0,className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:(0,q.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,q.jsx)(mv,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),D4(e.attendees,i)]})}),r.value&&(0,q.jsx)(A4,{m:e,me:i,motionProps:r.props,chip:a,onClose:o})]})}function A4({m:e,me:t,motionProps:n,chip:r,onClose:i}){let[a,o]=(0,W.useState)(``),[s,c]=(0,W.useState)(()=>!e.attendees.some(e=>!S4(e.name,t))),[l,u]=(0,W.useState)(!1),d=(0,W.useRef)(null),f=(0,W.useRef)(null);x4(f,r,i,!n.inert),(0,W.useEffect)(()=>{s&&d.current?.focus({preventScroll:!0})},[s]);let p=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return J2.add({title:G(`Yogurt couldn't make that change. Try again.`)}),!1}},m=async()=>{let t=T4(a);t&&(e.attendees.some(e=>S4(e.name,t.name)||t.email&&e.email&&S4(e.email,t.email))||await p([...e.attendees,t])&&o(``))},h=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},g=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:e})=>!S4(e.name,t));return(0,q.jsxs)(`div`,{ref:f,"data-testid":`people-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":G(`People`),onKeyDown:h,className:`people-card menu-entry absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,children:[(0,q.jsxs)(`ul`,{"data-testid":`people-list`,className:`people-list max-h-64 overflow-y-auto p-1.5`,children:[(0,q.jsx)(j4,{name:t||G(`Me`),email:e.attendees.find(e=>S4(e.name,t))?.email,mine:!0}),g.map(({p:t,i:n})=>(0,q.jsx)(j4,{name:w4(t.name),email:t.email,onRename:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:()=>void p(e.attendees.filter((e,t)=>t!==n))},t.email||n))]}),(0,q.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,q.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),d.current?.focus()},className:`flex w-full items-center gap-2 text-start text-[13px] text-muted ${s?`mb-2`:`h-11 px-4 hover:bg-card`}`,children:[(0,q.jsx)(K_,{size:14,"aria-hidden":`true`}),G(`Add an attendee`)]}),s&&(0,q.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,q.jsx)(`input`,{ref:d,"data-testid":`people-add`,value:a,onChange:e=>o(e.target.value),maxLength:200,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),m())},placeholder:G(`Name or email`),"aria-label":G(`Add an attendee`),onFocus:()=>u(!0),onBlur:()=>u(!1),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})}),y4(l,a)&&(0,q.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,q.jsx)(O_,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,q.jsx)(`span`,{children:G(`Nothing is sent. This is only for your notes.`)})]})]})]})}function j4({name:e,email:t,mine:n,onRemove:r,onRename:i}){let a=(0,W.useRef)(null),o=()=>{c(!1),requestAnimationFrame(()=>a.current?.focus())},[s,c]=(0,W.useState)(!1),[l,u]=(0,W.useState)(e),[d,f]=(0,W.useState)(!1),p=async()=>{if(l.trim()&&!d){f(!0);try{if(!await i?.(l))throw Error(`Attendee no longer available`);o()}catch{J2.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,q.jsxs)(`li`,{"data-testid":`people-row`,"data-me":n?``:void 0,className:`person-row flex ${t?`min-h-[52px]`:`min-h-10`} items-center gap-2 rounded-md px-2.5 py-1.5`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,q.jsx)(`input`,{"data-testid":`people-rename`,autoFocus:!0,value:l,disabled:d,maxLength:200,"aria-label":G(`Rename`),onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),p()),e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),o())},className:`w-full rounded border border-line bg-card px-1 py-0.5`}):i?(0,q.jsx)(`button`,{ref:a,"data-testid":`people-name`,title:G(`Rename`),className:`block max-w-full truncate text-start`,onClick:()=>{u(e),c(!0)},children:e}):(0,q.jsxs)(`span`,{children:[e,n&&(0,q.jsxs)(`span`,{className:`text-muted`,children:[` `,G(`(me)`)]})]}),t&&(0,q.jsx)(`span`,{"data-testid":`people-email`,className:`block break-words text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,q.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":G(`Rename`),title:G(`Rename`),onClick:()=>{u(e),c(!0)},className:`person-remove grid size-6 shrink-0 place-items-center rounded text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,q.jsx)(H_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,q.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":G(`Remove {name}`,{name:e}),title:G(`Remove`),className:`person-remove grid size-6 shrink-0 place-items-center rounded-full text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,q.jsx)(vv,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}function M4(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function N4(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function P4({m:e}){let[t,n]=(0,W.useState)(!1),r=jf(t,t===`pointer`),i=(0,W.useRef)(null),a=(0,W.useCallback)((e=!0)=>{n(!1),e&&i.current?.focus({preventScroll:!0})},[]);return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsxs)(`button`,{ref:i,"data-testid":`note-date`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[(0,q.jsx)(wg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),oU(e.startedAt)]}),r.value&&(0,q.jsx)(F4,{m:e,chip:i,motionProps:r.props,onClose:a},`${e.id}/${e.eventId}`)]})}function F4({m:e,chip:t,motionProps:n,onClose:r}){let i=(0,W.useRef)(null),a=window.yogurt.capabilities.calendar,o=a&&!!e.eventId,[s,c]=(0,W.useState)(),[l,u]=(0,W.useState)(0),[d,f]=(0,W.useState)(!1),p=(0,W.useRef)(null);x4(i,t,r,!n.inert),(0,W.useEffect)(()=>{if(!o)return;let t=!0;return c(void 0),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(n=>{t&&c(n.status===`granted`?n.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??null:null)},()=>{t&&c(null)}),()=>{t=!1}},[o,e.eventId,e.eventStartedAt,e.startedAt,l]);let m=s?.start??e.startedAt,h=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),g=s?.url?.trim();return(0,q.jsx)(`div`,{ref:i,"data-testid":`note-date-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":G(`Date`),className:`people-card menu-entry note-date-card absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),r())},children:(0,q.jsxs)(`div`,{className:`agenda-inspector-content`,children:[(0,q.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,q.jsx)(`h3`,{"data-testid":`note-date-heading`,tabIndex:o?void 0:-1,children:o?(0,q.jsxs)(`button`,{ref:p,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle`,"aria-expanded":d,onClick:()=>f(e=>!e),children:[(0,q.jsx)(`span`,{children:s?.title||e.title}),(0,q.jsx)(Og,{size:15,"aria-hidden":`true`})]}):new Date(m).toLocaleDateString(yt(),{weekday:`long`,month:`short`,day:`numeric`,year:`numeric`})}),(0,q.jsx)(`button`,{className:`workspace-icon`,"data-testid":`note-date-close`,"aria-label":G(`Close`),onClick:()=>r(),children:(0,q.jsx)(vv,{size:16,"aria-hidden":`true`})})]}),!d&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,q.jsx)(Ig,{size:15,"aria-hidden":`true`}),(0,q.jsxs)(`div`,{children:[(0,q.jsxs)(`p`,{children:[sU(m),s?` – ${sU(s.end)}`:` · ${G(`{count} min`,{count:h})}`]}),o&&(0,q.jsx)(`p`,{className:`agenda-inspector-muted`,children:new Date(m).toLocaleDateString(yt(),{weekday:`long`,month:`short`,day:`numeric`})})]})]}),o&&!s&&(0,q.jsxs)(`p`,{role:`status`,className:`text-xs text-muted`,children:[G(s===void 0?`Looking at your calendar…`:`Calendar event unavailable`),s===null&&(0,q.jsx)(`button`,{className:`ms-2 underline`,onClick:()=>u(e=>e+1),children:G(`Try again`)})]}),s&&(s.calendar||g)&&(0,q.jsxs)(`div`,{className:`agenda-inspector-footer`,children:[s.calendar&&(0,q.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,q.jsx)(wg,{size:15,"aria-hidden":`true`}),(0,q.jsxs)(`p`,{children:[s.calendar.name,(0,q.jsx)(`span`,{className:`agenda-inspector-muted`,children:s.calendar.source})]})]}),g&&(0,q.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,q.jsxs)(`a`,{className:`workspace-button agenda-open-note`,title:G(`Join meeting`),href:g,target:`_blank`,rel:`noreferrer`,children:[(0,q.jsx)(`span`,{children:G(`Join meeting`)}),(0,q.jsx)(Wg,{size:12,"aria-hidden":`true`})]})})]}),a&&!e.eventId&&(0,q.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,q.jsxs)(`button`,{ref:p,"data-testid":`note-date-events-toggle`,className:`workspace-button agenda-open-note`,title:G(`Link to a calendar event`),"aria-expanded":d,onClick:()=>f(!0),children:[(0,q.jsx)(b_,{size:13,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:G(`Link to a calendar event`)})]})})]}),d&&(0,q.jsx)(I4,{m:e,onLinked:()=>{f(!1),p.current?.focus({preventScroll:!0})}})]})})}function I4({m:e,onLinked:t}){let[n,r]=(0,W.useState)(e.eventStartedAt??e.startedAt),[i,a]=(0,W.useState)(),[o,s]=(0,W.useState)(0),[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(!1),f=(0,W.useRef)(null),p=(0,W.useRef)(null),m=O4();(0,W.useEffect)(()=>{let t=!0;return a(void 0),window.yogurt.calendar.day(n).then(n=>{t&&a({...n,events:N4(n.events,e.startedAt)})},()=>{t&&a({status:`error`,events:[]})}),()=>{t=!1}},[n,o,e.startedAt]),(0,W.useEffect)(()=>{f.current&&(f.current.scrollTop=0),(f.current?.querySelector(`[data-event-id]`)??p.current)?.focus({preventScroll:!0})},[i]);let h=async r=>{if(!c){l(!0),d(!1);try{await window.yogurt.meetings.linkEvent(e.id,r,n),t()}catch{d(!0)}finally{l(!1)}}};return(0,q.jsxs)(`div`,{className:`note-date-picker`,children:[(0,q.jsxs)(`div`,{className:`note-date-days`,children:[(0,q.jsx)(`button`,{type:`button`,ref:p,className:`workspace-icon`,"data-testid":`note-date-previous`,"aria-label":G(`Previous day`),disabled:c,onClick:()=>r(e=>M4(e,-1)),children:(0,q.jsx)(Ag,{size:15,"aria-hidden":`true`})}),(0,q.jsx)(`span`,{"aria-live":`polite`,children:new Date(n).toLocaleDateString(yt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`})}),(0,q.jsx)(`button`,{type:`button`,className:`workspace-icon`,"data-testid":`note-date-next`,"aria-label":G(`Next day`),disabled:c,onClick:()=>r(e=>M4(e,1)),children:(0,q.jsx)(Mg,{size:15,"aria-hidden":`true`})})]}),(0,q.jsx)(Gh,{enabled:!!i?.events.length,children:(0,q.jsx)(`div`,{ref:f,"data-testid":`note-date-events`,className:`note-date-events`,role:`group`,"aria-label":G(`Select calendar event`),onKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(e.currentTarget.querySelectorAll(`button[data-event-id]:not(:disabled)`));if(!t.length)return;e.preventDefault();let n=t.indexOf(document.activeElement),r=e.key===`Home`?0:e.key===`End`?t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;t[r].focus({preventScroll:!0}),t[r].scrollIntoView({block:`nearest`,container:`nearest`})},children:i?i.status===`granted`?i.events.length?i.events.map(t=>(0,q.jsxs)(`button`,{"data-event-id":t.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:c,onClick:()=>void h(t.id),children:[(0,q.jsxs)(`span`,{children:[(0,q.jsx)(`strong`,{children:t.title||G(`Meeting`)}),(0,q.jsxs)(`small`,{children:[sU(t.start),` – `,sU(t.end)]}),!!t.attendees.length&&(0,q.jsx)(`small`,{children:E4(t.attendees,m)})]}),(e.eventId===t.id||t.aliases?.includes(e.eventId))&&(0,q.jsx)(Eg,{size:14,"aria-hidden":`true`})]},t.id)):(0,q.jsx)(`p`,{"data-testid":`note-date-events-none`,children:G(`No calendar events on this day.`)}):(0,q.jsxs)(`div`,{className:`note-date-calendar-error`,children:[(0,q.jsx)(`p`,{children:i.status===`error`?G(`Yogurt couldn't read your calendar`):G(`Calendar access is off`)}),(0,q.jsx)(`button`,{className:`underline`,onClick:i.status===`error`?()=>s(e=>e+1):()=>void window.yogurt.calendar.connect().then(()=>s(e=>e+1),()=>a({status:`error`,events:[]})),children:i.status===`error`?G(`Try again`):G(`Connect calendar`)})]}):(0,q.jsx)(`p`,{role:`status`,children:G(`Looking at your calendar…`)})})}),e.eventId&&(0,q.jsxs)(`button`,{"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:c,onClick:()=>void h(null),children:[(0,q.jsx)(S_,{size:14,"aria-hidden":`true`}),(0,q.jsxs)(`span`,{children:[G(`Unlink calendar event`),(0,q.jsx)(`small`,{children:G(`Keep the title, attendees and notes.`)})]})]}),u&&(0,q.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:G(`Yogurt couldn't update the calendar link. Try again.`)})]})}function L4({hasSummary:e,canWriteAgain:t,onWriteAgain:n,menuButton:r}){let i=G(e?`Regenerate summary`:`Generate summary`),[a,o]=(0,W.useState)(!1),s=jf(a,a===`pointer`),c=(0,W.useRef)(null),l=(0,W.useRef)(null);return(0,W.useEffect)(()=>{if(!a)return;l.current?.focus();let e=e=>{c.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]),(0,q.jsxs)(`div`,{ref:c,className:`note-summary-actions relative`,children:[(0,q.jsx)(`button`,{ref:r,"data-testid":`note-view-menu`,"aria-haspopup":`menu`,"aria-expanded":!!a,"aria-label":G(`Summary actions`),title:i,onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-view-menu`,children:(0,q.jsx)(Hg,{size:15,strokeWidth:1.75,"aria-hidden":`true`})}),s.value&&(0,q.jsx)(`div`,{role:`menu`,"data-testid":`note-view-menu-list`,...s.props,"data-anchor":`end`,"aria-label":G(`Summary`),onKeyDown:e=>{(e.key===`Escape`||e.key===`Tab`)&&(e.preventDefault(),o(!1),r.current?.focus())},className:`menu-entry absolute end-0 top-full z-30 mt-2 w-52 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:(0,q.jsxs)(`button`,{ref:l,role:`menuitem`,"data-testid":`note-write-again`,disabled:!t,onClick:()=>{o(!1),n()},className:`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`,children:[(0,q.jsx)(X_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),i]})})]})}var R4=()=>xQ({mac:G(`Uses the microphone your Mac is set to`),other:G(`Uses the microphone your computer is set to`)}),z4=1500,B4=15e3,V4=8e3;function H4({recording:e,paused:t}){let[n,r]=(0,W.useState)(),[i,a]=(0,W.useState)(!1),o=jf(i,i===`pointer`),[s,c]=(0,W.useState)(null),l=(0,W.useRef)(null),u=(0,W.useRef)(null),d=(0,W.useRef)(void 0),f=(0,W.useCallback)(()=>window.yogurt.audio.mics().then(e=>{d.current=e,r(e)}).catch(()=>{}),[]);(0,W.useEffect)(()=>{f(),window.addEventListener(`focus`,f);let t=e?setInterval(f,B4):void 0,n=window.yogurt.audio.onMics(({fellBack:e})=>{e&&c(d.current?.using??``),f()});return()=>{window.removeEventListener(`focus`,f),clearInterval(t),n()}},[e,f]),(0,W.useEffect)(()=>{if(s===null)return;let e=setTimeout(()=>c(null),V4);return()=>clearTimeout(e)},[s]),(0,W.useEffect)(()=>{e||c(null)},[e]),(0,W.useEffect)(()=>{if(!i)return;f();let e=setInterval(f,z4),t=e=>{l.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,f]),(0,W.useEffect)(()=>{i&&l.current?.querySelector(`[role="menuitemradio"][aria-checked="true"], [role="menuitemradio"]`)?.focus()},[i]);let p=async e=>{a(!1),c(null),u.current?.focus(),n&&r({...n,choice:e,using:e?n.devices.find(t=>t.id===e)?.name??n.using:n.defaultName}),await window.yogurt.audio.setMic(e).catch(()=>!1),f()},m=e=>{let t=Array.from(l.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),a(!1),u.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&a(!1)},h=n?.using??G(`No microphone`),g=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,_=e=>(0,q.jsx)(Eg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,q.jsxs)(`div`,{ref:l,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,q.jsxs)(`button`,{ref:u,"data-testid":`rec-mic-chip`,"aria-haspopup":`menu`,"aria-expanded":!!i,title:G(`Microphone`),onClick:e=>a(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex max-w-[220px] items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,q.jsx)(Q$,{show:t?`paused`:`mic`,options:{mic:(0,q.jsx)(I_,{size:11}),paused:(0,q.jsx)(GX,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,q.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?G(`Recording paused`):h}),(0,q.jsx)(Og,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),s!==null&&(0,q.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:s?G(`{name} isn't available anymore. Recording continues with Auto.`,{name:s}):G(`Your mic isn't available anymore. Recording continues with Auto.`)}),o.value&&n&&(0,q.jsxs)(`div`,{"data-testid":`mic-menu`,...o.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":G(`Microphone`),onKeyDown:m,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-72 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,q.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void p(null),className:g,children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[G(`Auto`),(0,q.jsx)(`span`,{"data-testid":`mic-auto-info`,title:R4(),"aria-label":R4(),className:`text-muted`,children:(0,q.jsx)(f_,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,q.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),_(n.choice===null)]}),n.devices.length>0&&(0,q.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,q.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===e.id,"data-testid":`mic-option`,"data-id":e.id,onClick:()=>void p(e.id),className:g,children:[(0,q.jsx)(`span`,{className:`truncate`,children:e.name}),_(n.choice===e.id)]},e.id))]})]})}var U4=e=>G(e===`en`?`English`:`Multi-language`);function W4(){let[e,t]=(0,W.useState)(),[n,r]=(0,W.useState)(!1),i=jf(n,n===`pointer`),a=(0,W.useRef)(null),o=(0,W.useRef)(null);(0,W.useEffect)(()=>{let e=()=>void window.yogurt.settings.get().then(e=>t(e.spoken)).catch(()=>{});return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[]),(0,W.useEffect)(()=>{if(!n)return;let e=e=>{a.current?.contains(e.target)||r(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n]),(0,W.useEffect)(()=>{if(!n)return;let e=e=>a.current?.querySelector(e);(e(`[role="menuitemradio"][aria-checked="true"]`)??e(`[role="menuitemradio"]`))?.focus()},[n]);let s=e=>{r(!1),o.current?.focus(),t(e),window.yogurt.settings.setSpoken(e).catch(()=>{})},c=e=>{let t=Array.from(a.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),r(!1),o.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&r(!1)};if(!e)return null;let l=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,u=e=>(0,q.jsx)(Eg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`}),d=G(`Yogurt listens for the language being spoken. Pick it for meetings that are not in English.`);return(0,q.jsxs)(`div`,{ref:a,className:`relative flex min-w-0 items-center`,children:[(0,q.jsxs)(`button`,{ref:o,"data-testid":`spoken-chip`,"aria-haspopup":`menu`,"aria-expanded":!!n,title:G(`Spoken language`),onClick:e=>r(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,q.jsx)(g_,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,q.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:U4(e)}),(0,q.jsx)(Og,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),i.value&&(0,q.jsxs)(`div`,{"data-testid":`spoken-menu`,...i.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":G(`Spoken language`),onKeyDown:c,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-64 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,q.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>s(`en`),className:l,children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,q.jsx)(`span`,{children:G(`English only`)}),(0,q.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Highest quality`)})]}),u(e===`en`)]}),(0,q.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>s(`multi`),className:l,children:[(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,q.jsx)(`span`,{children:G(`Multi-language`)}),(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[G(`{count} languages supported`,{count:99}),(0,q.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:d,"aria-label":d,children:(0,q.jsx)(f_,{size:12,"aria-hidden":`true`})})]})]}),u(e===`multi`)]})]})]})}function G4(){return null}var K4={folder:e_,star:nv,heart:c_,flag:Xg,bookmark:bg,briefcase:Sg,users:fv,handshake:i_,message:P_,video:gv,calendar:wg,clock:Ig,target:iv,lightbulb:v_,rocket:J_,code:Rg,palette:B_,megaphone:M_,graduation:n_,book:vg,flask:Qg,coffee:Bg,house:u_,plane:W_};function q4({appearance:e,size:t=16}){let n=K4[e.icon]??e_;return(0,q.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,q.jsx)(n,{size:t,strokeWidth:1.75})})}function J4(e,t){let n=getComputedStyle(e.currentTarget).direction===`rtl`,r=e.key===`ArrowDown`?t:e.key===`ArrowUp`?-t:e.key===`ArrowRight`?n?-1:1:e.key===`ArrowLeft`?n?1:-1:0;if(!r&&e.key!==`Home`&&e.key!==`End`)return;let i=Array.from(e.currentTarget.querySelectorAll(`[role="radio"]:not(:disabled)`));if(!i.length)return;e.preventDefault();let a=i.indexOf(document.activeElement),o=e.key===`Home`?0:e.key===`End`?i.length-1:(a+r+i.length)%i.length;i[o].focus(),i[o].click()}function Y4({value:e,onChange:t,disabled:n}){return(0,q.jsxs)(`div`,{className:`folder-choices`,children:[(0,q.jsx)(`div`,{className:`folder-choice-label`,children:G(`Icon`)}),(0,q.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":G(`Icon`),onKeyDown:e=>J4(e,6),children:Object.keys(St).map(r=>(0,q.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":G(St[r]),title:G(St[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,q.jsx)(q4,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,q.jsx)(`div`,{className:`folder-choice-label`,children:G(`Color`)}),(0,q.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":G(`Color`),onKeyDown:e=>J4(e,1),children:Object.keys(Ct).map(r=>(0,q.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":G(Ct[r]),title:G(Ct[r]),tabIndex:r===e.color?0:-1,disabled:n,"data-testid":`folder-color-${r}`,"data-folder-color":r,onClick:()=>t({...e,color:r}),children:(0,q.jsx)(`span`,{})},r))})]})}var X4=`application/x-yogurt-meeting`;function Z4(e){let[t,n]=(0,W.useState)();return(0,W.useEffect)(()=>{if(e===null)return;let t=0,r=()=>{let r=++t;(e?window.yogurt.folders.of(e):window.yogurt.folders.list()).then(e=>{r===t&&n(e)},()=>{})};r();let i=window.yogurt.folders.onChange(r),a=window.yogurt.meetings.onChange(r);return()=>{t++,i(),a()}},[e]),t}async function Q4(e,t){return $4(e,t,!0)}async function $4(e,t,n){if((await Promise.allSettled([...new Set(t)].map(async t=>{if(await(n?window.yogurt.folders.add(e,t):window.yogurt.folders.remove(e,t)),(await window.yogurt.folders.of(t)).some(t=>t.id===e)!==n)throw Error(`Folder membership not updated`)}))).some(e=>e.status===`rejected`))throw Error(n?`Folder not added`:`Folder not removed`)}function e3(e,t,n){let r=e.filter(e=>t[e]?.includes(n)).length;return r===0?!1:r===e.length||`mixed`}var t3=e=>e!==!0;function n3(e,t,n){let r=Object.entries(e).filter(([e,r])=>r.saving||r.source===n||e3(t,n,e)!==r.checked);return r.length===Object.keys(e).length?e:Object.fromEntries(r)}function r3({meetingId:e,meetingIds:t,memberships:n,suggestedId:r,onNew:i,testId:a,autoFocus:o=!1}){let s=Z4(),c=(0,W.useRef)(null),l=s!==void 0;(0,W.useEffect)(()=>{o&&l&&c.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus()},[o,l]);let u=Z4(n?null:e),d=(0,W.useMemo)(()=>t??(e?[e]:[]),[t,e]),f=(0,W.useMemo)(()=>n??{[e??``]:u?.map(e=>e.id)??[]},[n,e,u]),[p,m]=(0,W.useState)({}),h=(0,W.useRef)(!1),g=Object.values(p).some(e=>e.saving);(0,W.useEffect)(()=>{m(e=>n3(e,d,f))},[d,f,p]);let _=e=>e in p?p[e].checked:e3(d,f,e),v=async e=>{if(h.current||!d.length||!n&&!u)return;let t=t3(_(e));h.current=!0,m(n=>({...n,[e]:{checked:t,saving:!0,source:f}}));try{await $4(e,d,t),m(t=>({...t,[e]:{...t[e],saving:!1}}))}catch{m(t=>{let n={...t};return delete n[e],n}),J2.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{h.current=!1}},y=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,b=r?s?.filter(e=>e.id===r).concat(s.filter(e=>e.id!==r)):s;return(0,q.jsxs)(`div`,{ref:c,"data-testid":a,role:`group`,"aria-label":G(`Folders`),children:[b?.map(e=>(0,q.jsxs)(`button`,{role:`menuitemcheckbox`,"aria-checked":_(e.id),"aria-disabled":g||!n&&!u,"data-testid":`folder-option`,onClick:()=>void v(e.id),className:y,children:[(0,q.jsx)(q4,{appearance:e,size:15}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.id===r&&(0,q.jsx)(`span`,{className:`shrink-0 text-[10px] text-muted`,children:G(`Suggested`)}),_(e.id)===!0&&(0,q.jsx)(Eg,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`}),_(e.id)===`mixed`&&(0,q.jsx)(R_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,disabled:g,onClick:i,className:`${y} ${s?.length?`folder-picker-new`:``}`,children:[(0,q.jsx)(K_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),G(`New folder…`)]})]})}function i3({meetingId:e,onNew:t,suggestion:n,row:r,rowFolders:i,children:a,onChoose:o}){let[s,c]=(0,W.useState)(null);(0,W.useEffect)(()=>{c(null);let t=0,n=()=>{let n=++t;window.yogurt.folders.suggestion(e).then(e=>{n===t&&c(e)},()=>{})};n();let r=window.yogurt.folders.onChange(n),i=window.yogurt.meetings.onChange(n);return()=>{t++,r(),i()}},[e]);let l=n??(s?{folder:s,dismiss:()=>c(null)}:void 0),u=Z4(r?null:e),d=r?i:u,f=kf(),[p,m]=(0,W.useState)(null),[h,g]=(0,W.useState)(!1),[_,v]=(0,W.useState)(!1),y=jf(_,_===`pointer`),b=(0,W.useRef)(null),x=(0,W.useRef)(null);(0,W.useEffect)(()=>{l&&d?.length&&l.dismiss(),p?.phase===`settled`&&d?.length&&m(null)},[d,l,p]),(0,W.useEffect)(()=>{if(!_)return;let e=e=>{b.current?.contains(e.target)||v(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[_]);let S=e=>{let t=Array.from(b.current?.querySelectorAll(`[role="menuitemcheckbox"], [role="menuitem"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),v(!1),x.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&v(!1)},C=p&&!(p.phase===`settled`&&d?.length)?p:null,w=C?.folder??(d?.length===0?l?.folder:void 0),T=C?.phase===`accepted`||C?.phase===`settled`,E=w?.name??(d?.length?d.length===1?d[0].name:G(`{name} + {more}`,{name:d[0].name,more:d.length-1}):G(`Add to folder`)),D=()=>r?b.current?.closest(`li`)?.querySelector(`.native-meeting-link`):x.current,O=t=>{J2.close(`folder-suggestion-${e}`),l?.dismiss(),c(null),v(!1),requestAnimationFrame(()=>{document.activeElement===document.body&&(r?t:x.current)?.focus({preventScroll:!0})})},k=async()=>{if(!w||h||C)return;let t=D();g(!0),m({folder:w,phase:`saving`});try{await window.yogurt.folders.dismissSuggestion(e),m({folder:w,phase:`dismissed`}),O(t)}catch{m(null),J2.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{g(!1)}},A=async()=>{if(!w||h||C)return;let t=D(),n=w.id;m({folder:w,phase:`saving`}),g(!0),J2.close(`folder-suggestion-${e}`);try{if(await window.yogurt.folders.add(n,e),!(await window.yogurt.folders.of(e)).some(e=>e.id===n))throw Error(`Folder not added`);m({folder:w,phase:`accepted`}),O(t)}catch{m(null),J2.add({id:`folder-suggestion-${e}`,data:{testId:`folder-suggestion-error`},title:G(`Yogurt couldn't add this note to the folder. Try again.`)})}finally{g(!1)}};(0,W.useEffect)(()=>{if(!p||p.phase===`saving`||p.phase===`settled`)return;let e=D(),t=setTimeout(()=>{m(p.phase===`accepted`?{...p,phase:`settled`}:null),requestAnimationFrame(()=>{document.activeElement===document.body&&(r?e:x.current)?.focus({preventScroll:!0})})},f?Ef.micro:Ef.base);return()=>clearTimeout(t)},[p,f]);let j=w??(d?.length===1?d[0]:void 0);if(r&&!w)return a;let M=(0,q.jsxs)(`button`,{ref:x,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":o?void 0:!!_,onClick:e=>{o&&w?o(w.id):v(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},title:w?.name??(d?.map(e=>e.name).join(`, `)||void 0),className:w?`note-folder-name`:`note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[r&&w?(0,q.jsx)(`span`,{className:`meeting-folder-dot`,"data-folder-color":w.color,"aria-hidden":`true`}):j?(0,q.jsx)(q4,{appearance:j,size:14}):(0,q.jsx)(e_,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,q.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:E})]});return(0,q.jsxs)(`div`,{ref:b,className:r?`meeting-folder-suggestion`:`relative`,onClick:r?e=>e.stopPropagation():void 0,children:[w?(0,q.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":G(T?`Folders`:`Suggested`),inert:C?.phase===`dismissed`,"data-phase":C?.phase,className:r?`meeting-folder-pill meeting-folder-proposal`:`note-chip note-folder-proposal flex items-center rounded-md border border-line text-[13px] text-muted`,children:[M,(0,q.jsxs)(`div`,{className:`note-folder-actions`,inert:T||C?.phase===`dismissed`,children:[(0,q.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`workspace-icon`,disabled:h||!!C,onClick:()=>void k(),"aria-label":G(`Dismiss suggestion`),title:G(`Dismiss suggestion`),children:(0,q.jsx)(vv,{size:r?12:15,"aria-hidden":`true`})}),(0,q.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`workspace-icon`,disabled:h||!!C,onClick:()=>void A(),"aria-label":G(`Add to folder`),title:G(`Add to folder`),children:(0,q.jsx)(Eg,{size:r?12:15,"aria-hidden":`true`})})]})]}):M,y.value&&(0,q.jsx)(`div`,{"data-testid":`folder-menu`,...y.props,"data-anchor":`start`,role:`menu`,"aria-label":G(`Add to folder`),onKeyDown:S,className:`menu-entry absolute start-0 top-full z-30 mt-2 max-h-80 w-60 overflow-y-auto rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:(0,q.jsx)(r3,{autoFocus:!0,testId:`folder-chip-list`,meetingId:e,suggestedId:w?.id,onNew:()=>{v(!1),t?.()}})})]})}function a3({folder:e,onDone:t}){let[n,r]=(0,W.useState)(e??wt),[i,a]=(0,W.useState)(e?.name??``),[o,s]=(0,W.useState)(!1),[c,l]=(0,W.useState)(!1),u=async()=>{if(i.trim()&&!o){s(!0),l(!1);try{if(e)await window.yogurt.folders.rename(e.id,i),t();else{let e=await window.yogurt.folders.create(i,n);if(!e)throw Error(`Folder not created`);t(e)}}catch{l(!0),s(!1)}}};return(0,q.jsx)(G$,{testId:`folder-name`,title:G(e?`Rename folder`:`New folder`),description:G(e?`Its meetings stay in it.`:`A folder keeps related meetings together. A meeting can be in more than one.`),onCancel:()=>t(),busy:o,children:(0,q.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,q.jsxs)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center gap-2 rounded-md border border-line bg-card px-2.5`,children:[(0,q.jsx)(q4,{appearance:n,size:15}),(0,q.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`folder-name-input`,value:i,onChange:e=>a(e.target.value),maxLength:200,placeholder:G(`Folder name`),"aria-label":G(`Folder name`),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})]}),!e&&(0,q.jsx)(Y4,{value:n,onChange:r,disabled:o}),c&&(0,q.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't save this folder. Try again.`)}),(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:G(e?`Rename`:`Create folder`)}),(0,q.jsx)(W$,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`modal-button`,children:G(`Cancel`)})]})]})})}function o3({folder:e,onDone:t}){let[n,r]=(0,W.useState)(!1),[i,a]=(0,W.useState)(!1),o=async()=>{r(!0),a(!1);try{await window.yogurt.folders.delete(e.id),t(!0)}catch{a(!0),r(!1)}};return(0,q.jsxs)(G$,{testId:`folder-delete-confirm`,role:`alertdialog`,title:G(`Delete “{name}”?`,{name:e.name}),description:G(`Only the folder is deleted. Its meetings stay in Meetings.`),onCancel:()=>t(!1),busy:n,children:[i&&(0,q.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't delete this folder. Try again.`)}),(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:G(`Delete folder`)}),(0,q.jsx)(W$,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`modal-button`,children:G(`Cancel`)})]})]})}function s3({folder:e,onDone:t}){let[n,r]=(0,W.useState)({icon:e.icon,color:e.color}),[i,a]=(0,W.useState)(!1),[o,s]=(0,W.useState)(!1),c=async()=>{if(!i){a(!0),s(!1);try{if(!await window.yogurt.folders.appearance(e.id,n))throw Error(`Folder not saved`);t()}catch{s(!0),a(!1)}}};return(0,q.jsxs)(G$,{testId:`folder-appearance`,title:G(`Change icon`),onCancel:t,busy:i,children:[(0,q.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,q.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,q.jsx)(q4,{appearance:n,size:23})}),(0,q.jsx)(`strong`,{children:e.name})]}),(0,q.jsx)(Y4,{value:n,onChange:r,disabled:i}),o&&(0,q.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't save this folder. Try again.`)}),(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:G(`Save`)}),(0,q.jsx)(W$,{"data-dialog-cancel":!0,disabled:i,className:`modal-button`,children:G(`Cancel`)})]})]})}function c3(e,t,n,r){let[,i]=(0,W.useState)(0),a=(0,W.useMemo)(()=>new g4(n=>t===`mine`?window.yogurt.notes.setMine(e,n.text,n.revision):window.yogurt.notes.setEnhanced(e,n.text,n.revision),n=>window.yogurt.notes.flushSync(e,t,n.text,n.revision)),[e,t]);return a.seed(n,r),(0,W.useEffect)(()=>(a.changed=()=>i(e=>e+1),v4(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var l3=new Map;function u3({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i}){let[a,o]=(0,W.useState)(),[s,c]=(0,W.useState)(null);(0,W.useLayoutEffect)(()=>{if(!s)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-s.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(s),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[s]),(0,W.useEffect)(()=>{a&&t({id:a.id,title:a.title})},[a?.id,a?.title,t]);let[l,u]=(0,W.useState)(!1),[d,f]=(0,W.useState)(!1),[p,m]=(0,W.useState)(!1),[h,g]=(0,W.useState)(!1),[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(!1),[x,S]=(0,W.useState)(!1),[C,w]=(0,W.useState)(null),[T,E]=(0,W.useState)(),[D,O]=(0,W.useState)(()=>l3.get(e)?.view??`mine`),[k,A]=(0,W.useState)(!1),j=kf(),M=a?.id===e&&a.state!==`prepared`&&a.state!==`recording`&&!!T&&T.status!==`idle`,N=k&&M&&j,P=N?`enhanced`:D,F=(0,W.useRef)(l3.has(e)),I=(0,W.useRef)(!1),[L,R]=(0,W.useState)(()=>l3.get(e)?.primary??`notes`),z=N?`notes`:L,B=Rv(`note/${e}/${P}`,!!a&&!!T&&z===`notes`);(0,W.useEffect)(()=>{a&&T&&l3.set(e,{primary:z,view:P})},[e,a,T,z,P]);let[ee,te]=(0,W.useState)(z===`transcript`);(0,W.useEffect)(()=>{z===`transcript`&&te(!0)},[z]);let[ne,re]=(0,W.useState)(!1),V=(0,W.useRef)(null),H=(0,W.useRef)(null),ie=(0,W.useRef)(0);(0,W.useEffect)(()=>()=>{ie.current++,H.current?.skipTransition()},[e]);let U=(0,W.useRef)(null),ae=(0,W.useRef)(null),oe=(0,W.useRef)(null),se=(0,W.useRef)(null),[ce,le]=(0,W.useState)(!1),ue=(0,W.useRef)(null),[de,fe]=(0,W.useState)(!1),[pe,me]=(0,W.useState)(!1),[he,ge]=(0,W.useState)(!1),[_e,ve]=(0,W.useState)(!1),[ye,be]=(0,W.useState)(null),[xe,Se]=(0,W.useState)(null),Ce=(0,W.useRef)(void 0),[we,Te]=(0,W.useState)(null),De=we?.note,Oe=(0,W.useRef)(void 0);(0,W.useEffect)(()=>{if(n&&T&&a&&Oe.current!==n.seq&&(Oe.current=n.seq,F.current=!0,R(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&dt([T.enhanced??``],n.match)>=0;O(M&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,T,a,M]);let ke=a?.id===e&&a.state===`recording`,Ae=async()=>{let t=!a?.paused;S(!0),w(null);try{await window.yogurt.meetings.setPaused(e,t)?o(await window.yogurt.meetings.get(e)):w(t?`pause`:`resume`)}catch{w(t?`pause`:`resume`)}finally{S(!1)}};(0,W.useEffect)(()=>{if(!ke){Te(null);return}let t=t=>Te(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,ke]),(0,W.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(o);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,W.useEffect)(()=>{A(!1),re(!1),E(void 0),Ce.current=void 0,O(l3.get(e)?.view??`mine`),F.current=l3.has(e),I.current=!1,fe(!1),le(!1),me(!1),ge(!1),v(!1),b(!1);let t=t=>{let n=!Ce.current,{view:r,keptEdits:i}=E1(Ce.current,t);i&&window.yogurt.notes.keptEdits(e),Ce.current=r,E(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(F.current=!0,O(a),R(`notes`)),t.status!==`idle`&&!F.current&&!I.current&&O(`enhanced`)},n=window.yogurt.notes.onChange(n=>{n.meetingId===e&&t(n)});return window.yogurt.notes.get(e).then(t),n},[e]),(0,W.useEffect)(()=>{Ce.current=T},[T]),(0,W.useEffect)(()=>{a?.state!==`recording`&&(a?.stopSavePending||T?.status!==`idle`)&&m(!1)},[a?.state,a?.stopSavePending,T?.status]),(0,W.useEffect)(()=>{if(!k||!M)return;let e=()=>{Be(`notes`,`enhanced`,!0),se.current?.focus({preventScroll:!0})};if(j){e();return}let t=setTimeout(e,Ef.micro);return()=>clearTimeout(t)},[e,k,M,j]);let je=c3(e,`mine`,T?.mine??``,T?.saves?.mine),Me=c3(e,`enhanced`,T?.enhanced??``,T?.saves?.enhanced);if((0,W.useLayoutEffect)(()=>{let e=U.current;if(!e)return;let t=()=>{let t=(z===`transcript`?ae:P===`enhanced`&&se.current?se:oe).current;if(!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=getComputedStyle(e).direction===`rtl`?n.right-r.right:n.left-r.left;e.style.setProperty(`--tab-x`,`${i}px`),e.style.setProperty(`--tab-width`,`${n.width}px`)};t();let n=new ResizeObserver(t);n.observe(e);for(let e of[ae.current,oe.current,se.current])e&&n.observe(e);return()=>n.disconnect()},[z,P,a?.state,T?.status]),!a||!T)return(0,q.jsx)(ZX,{pending:!0,skeleton:(0,q.jsx)(bv,{layout:`note`}),className:`loading-note-frame`});let Ne=a.state===`recording`,Pe=p||T.status===`waiting`||T.status===`writing`,Fe=a.trashedAt!=null,Ie=a.endedAt?Math.max(1,Math.round((a.durationMs??a.endedAt-a.startedAt)/6e4)):null,Le=M?P:`mine`,Re=e=>{F.current=!0,O(e),je.flush(),Me.flush()},ze=(e,t=!1)=>{re(t),e!==L&&(R(e),e===`transcript`&&le(!1),je.flush(),Me.flush())},Be=(e,t,n=!1)=>{A(!1);let r=++ie.current;H.current?.skipTransition();let i=()=>{r===ie.current&&(ze(e,n),t&&Re(t))},a=V.current;e===z&&(!t||t===Le)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(H.current=a.startViewTransition(()=>(0,Ee.flushSync)(i)),H.current.ready.catch(()=>{}))},Ve=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[ae.current,oe.current,...M?[se.current]:[]],n=getComputedStyle(e.currentTarget).direction===`rtl`?-1:1,r=e.key===`ArrowRight`?n:-n,i=t.indexOf(e.currentTarget),a=e.key===`Home`?0:e.key===`End`?t.length-1:(i+r+t.length)%t.length;t[a]?.click(),t[a]?.focus({preventScroll:!0})},He=async()=>(await Promise.all([je.flush(),Me.flush()])).every(Boolean),Ue=async()=>{if(!d){f(!0),g(!1);try{if(!await He())return;let t=await window.yogurt.meetings.startPrepared(e);g(`error`in t),`error`in t||(R(`notes`),O(`mine`))}catch{g(!0)}finally{f(!1)}}},We=async(t=!1)=>{if(!(d||Pe)){if((T.edited||de)&&!t)v(!0);else{v(!1),f(!0),b(!1);try{if(!await He())return;`error`in await window.yogurt.meetings.resume(e)?b(!0):(F.current=!1,R(`notes`),O(`mine`),fe(!1))}catch{b(!0)}finally{f(!1)}}}},Ge=je.status===`failed`||Me.status===`failed`?`failed`:je.status===`saving`||Me.status===`saving`?`saving`:`saved`,Ke=()=>{le(!1),ue.current?.focus({preventScroll:!0})},qe=async()=>{let t=ce;t&&Ke(),await He()&&((T.edited||de)&&!t?le(!0):(t||Ke(),fe(!1),window.yogurt.notes.writeAgain(e)))};return(0,q.jsx)(ZX,{pending:!1,skeleton:(0,q.jsx)(bv,{layout:`note`}),className:`loading-note-frame`,children:(0,q.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[_&&(0,q.jsx)(G$,{testId:`resume-confirm`,role:`alertdialog`,title:G(`Record more in this note?`),description:G(`Your notes, transcript, and previous audio are kept. Your edited summary will be replaced when you finish recording.`),onCancel:()=>v(!1),children:(0,q.jsxs)(`div`,{className:`modal-actions`,children:[(0,q.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void We(!0),className:`modal-button primary`,children:G(`Resume recording`)}),(0,q.jsx)(W$,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`modal-button`,children:G(`Cancel`)})]})}),(0,q.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed right-4 top-[10px] z-[60]`,children:(0,q.jsx)(f4,{recording:Ne,savePending:a.stopSavePending,trashed:Fe,onRename:()=>me(!0),onDelete:()=>{He().then(t=>{t&&(Fe?ge(!0):Y2(e,`/note/${e}`))})},folders:t=>(0,q.jsx)(r3,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),ve(!0)}})})}),(0,q.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":ne,children:[(0,q.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,q.jsx)(d3,{id:e,title:a.title,editing:pe,onEdit:me}),(0,q.jsxs)(`div`,{className:`note-meta-row`,children:[(0,q.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,q.jsx)(P4,{m:a}),(0,q.jsx)(k4,{m:a}),(0,q.jsx)(i3,{meetingId:e,onNew:()=>ve(!0),suggestion:r})]}),(0,q.jsxs)(`div`,{"data-testid":Ne?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,q.jsxs)(`div`,{"data-testid":`note-state`,"data-state":a.state,"data-paused":!!a.paused,className:`note-recording-group`,"data-recording":Ne&&!p,role:`group`,"aria-label":Ne?a.paused?G(`Paused`):G(`Recording`):G(`Meeting controls`),children:[Ne&&!p&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:`note-recording-status`,children:[(0,q.jsx)(c4,{height:14,bars:3,testId:`note-wave`,paused:!!a.paused,className:`text-muted`}),(0,q.jsx)(l4,{view:we})]}),(0,q.jsx)(`button`,{"data-testid":`note-pause`,disabled:x,onClick:()=>{Ae()},"aria-label":a.paused?G(`Resume recording`):G(`Pause recording`),title:a.paused?G(`Resume recording`):G(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,q.jsx)(Q$,{show:a.paused?`play`:`pause`,options:{pause:(0,q.jsx)(GX,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,q.jsx)(KX,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,q.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{A(!0),F.current=!0,O(`mine`),m(!0),re(t.detail>0),window.yogurt.meetings.stop(e)},"aria-label":G(`Finish recording`),title:G(`Finish recording`),className:`note-record-action note-finish-action primary`,children:G(`Finish`)})]}),p&&(0,q.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:G(`Finishing…`)}),!p&&(a.state===`stopped`||a.state===`done`)&&!a.stopSavePending&&!Fe&&(0,q.jsxs)(`button`,{"data-testid":`note-resume`,disabled:d||Pe,"aria-busy":Pe,"data-processing":Pe,onClick:()=>void We(),className:`note-record-action note-resume-action`,title:G(Pe?`Summarizing…`:`Resume recording in this note`),children:[(0,q.jsx)(Q$,{show:Pe?`busy`:`mic`,options:{mic:(0,q.jsx)(WX,{size:14}),busy:(0,q.jsx)(YX,{size:14})}}),(0,q.jsx)($$,{text:G(Pe?`Summarizing…`:d?`Preparing…`:`Resume recording`),widest:G(`Resume recording`)})]}),a.state===`prepared`&&!Fe&&(0,q.jsxs)(`button`,{"data-testid":`note-start`,disabled:d,onClick:()=>{Ue()},className:`note-record-action primary`,children:[(0,q.jsx)(WX,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(d?`Starting…`:`Start recording`)]})]}),(0,q.jsx)(d4,{id:e,shown:Le,status:T.status,hasEnhanced:T.enhanced!=null,beforeUse:He})]})]}),Fe&&(0,q.jsxs)(`div`,{"data-testid":`note-trashed`,role:`status`,className:`mt-5 flex flex-wrap items-center gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,q.jsx)(cv,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,q.jsx)(`p`,{className:`min-w-48 flex-1`,children:G(`This note is in the Trash.`)}),(0,q.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,q.jsx)(X_,{size:13,"aria-hidden":`true`}),G(`Restore`)]})]}),(0,q.jsxs)(`div`,{ref:U,className:`note-primary-tabs`,"data-summary-arriving":k&&M&&!j,children:[(0,q.jsxs)(`div`,{role:`tablist`,"aria-label":G(`Meeting view`),className:`contents`,children:[(0,q.jsxs)(`button`,{ref:ae,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":z===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:z===`transcript`?0:-1,onKeyDown:Ve,onClick:e=>Be(`transcript`,void 0,e.detail>0),children:[(0,q.jsx)(mg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`Transcript`)]}),(0,q.jsxs)(`button`,{ref:oe,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":z===`notes`&&Le===`mine`,"aria-controls":`note-notes-panel`,"data-version":Le,tabIndex:z===`notes`&&Le===`mine`?0:-1,onKeyDown:Ve,onClick:e=>Be(`notes`,`mine`,e.detail>0),children:[(0,q.jsx)(ov,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`My notes`)]}),M&&(0,q.jsxs)(`button`,{ref:se,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":z===`notes`&&Le===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:z===`notes`&&Le===`enhanced`?0:-1,onKeyDown:Ve,onClick:e=>Be(`notes`,`enhanced`,e.detail>0),children:[(0,q.jsx)(qX,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`Summary`)]})]}),z===`transcript`&&(0,q.jsx)(`div`,{ref:be,className:`note-primary-tools`}),(0,q.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`}),M&&z===`notes`&&(0,q.jsx)(L4,{menuButton:ue,hasSummary:T.enhanced!=null,canWriteAgain:T.status===`done`||T.status===`failed`||T.status===`empty`,onWriteAgain:()=>{Re(`enhanced`),qe()}})]})]}),(0,q.jsx)(`div`,{ref:Se,className:`note-reading-area`,children:(0,q.jsxs)(`div`,{ref:V,className:`note-panels`,children:[(0,q.jsx)(T1,{active:z===`notes`,summary:Le===`enhanced`,generating:Le===`enhanced`&&(T.status===`waiting`||T.status===`writing`),writing:Le===`enhanced`&&T.status===`writing`&&!!T.draft,scroll:B,children:Le===`mine`?(0,q.jsx)(XH,{focus:z===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:G(`My notes`),className:`min-h-[40vh]`,markdown:T.mine,placeholder:G(`Write notes here. Yogurt fills in the rest after the meeting.`),onChange:e=>{I.current=!0;let t={...Ce.current,mine:e};Ce.current=t,E(t),je.change(e)},onBlur:()=>{I.current=!1,je.flush()}}):(0,q.jsx)(f3,{focus:z===`notes`&&n?.ms===null?n:void 0,notes:T,disabled:d,onChange:e=>{fe(!0);let t={...Ce.current,enhanced:e};Ce.current=t,E(t),Me.change(e)},onBlur:Me.flush,onRetry:qe})}),(z===`transcript`||ee)&&(0,q.jsx)(`section`,{hidden:z!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,q.jsx)(ey,{id:e,recording:Ne,active:z===`transcript`,inline:!0,toolbar:ye,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,q.jsxs)(`footer`,{ref:c,className:`note-footer`,children:[a.stopSavePending&&(0,q.jsxs)(`div`,{"data-testid":`note-stop-unsaved`,role:`alert`,className:`mt-5 flex flex-wrap items-start gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,q.jsx)(uv,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,q.jsx)(`p`,{className:`min-w-48 flex-1`,children:G(`Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.`)}),(0,q.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:l,className:`bar-btn rounded-md border border-line bg-bg px-3 py-1 text-ink disabled:opacity-50`,onClick:()=>{u(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&ae.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>u(!1))},children:G(l?`Saving…`:`Try again`)})]}),z===`notes`&&Le===`enhanced`&&T.status===`done`&&T.peopleChanged&&!ce&&(0,q.jsxs)(`div`,{"data-testid":`note-people-changed`,className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]`,children:[(0,q.jsx)(`span`,{children:G(`People changed. Regenerate summary?`)}),(0,q.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:qe,className:`workspace-button primary`,children:G(`Regenerate summary`)})]}),ce&&(0,q.jsxs)(`div`,{"data-testid":`note-confirm`,role:`alertdialog`,"aria-label":G(`Regenerate summary?`),"aria-describedby":`note-rewrite-description`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Ke())},className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2.5 text-sm shadow-[var(--shadow)]`,children:[(0,q.jsx)(`span`,{id:`note-rewrite-description`,children:G(`Regenerate summary? Your edits to the summary will be replaced.`)}),(0,q.jsx)(`button`,{"data-testid":`note-write-again-cancel`,autoFocus:!0,onClick:Ke,className:`workspace-button`,children:G(`Cancel`)}),(0,q.jsx)(`button`,{"data-testid":`note-write-again-confirm`,onClick:qe,className:`workspace-button primary`,children:G(`Regenerate summary`)})]}),Ge===`failed`&&(0,q.jsxs)(p4,{testId:`note-save-status`,warningTestId:`note-save-warning`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]`,children:[(0,q.jsx)(`span`,{children:je.reason===`too-long`||Me.reason===`too-long`?G(`This note is too long to save. Shorten it and try again.`):G(`Couldn't save your changes`)}),(0,q.jsx)(`button`,{"data-testid":`note-save-retry`,className:`inline-error-action`,onClick:()=>{He()},children:G(`Try again`)})]}),h&&(0,q.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:G(`Yogurt couldn't start the notes. Try again in a moment.`)}),y&&(0,q.jsx)(`p`,{"data-testid":`note-resume-failed`,role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)] text-[13px] text-danger`,children:G(`Couldn't resume recording. Your existing note and audio are kept. Try again.`)}),C&&Ne&&(0,q.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:G(C===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),Ne&&De&&(0,q.jsx)(G4,{hint:De}),(0,q.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,q.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(Ne||a.state===`prepared`)&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(H4,{recording:Ne,paused:Ne&&a.paused}),(0,q.jsx)(W4,{}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ge!==`failed`&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":Ge,role:`status`,className:`flex items-center gap-1.5`,children:[(0,q.jsx)(O_,{size:10,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:Ge===`saving`?G(`Saving…`):xQ({mac:G(`Saved on this Mac`),other:G(`Saved on this computer`)})})]}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ie!=null&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{"data-testid":`note-duration`,children:G(`{count} min`,{count:Ie})}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),G(`Yogurt can make mistakes.`)]}),(0,q.jsx)(Z2,{id:e,recording:Ne,anchor:xe,onSource:i})]})]})]}),he&&(0,q.jsx)(m4,{id:e,title:a.title,onDone:()=>ge(!1)}),_e&&(0,q.jsx)(a3,{onDone:t=>{ve(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function d3({id:e,title:t,editing:n,onEdit:r}){let[i,a]=(0,W.useState)(t),o=(0,W.useRef)(!1);(0,W.useEffect)(()=>{n&&(a(t),o.current=!1)},[n,t]);let s=`note-title-type w-full font-sans`;return n?(0,q.jsx)(`input`,{"data-testid":`note-title-input`,"aria-label":G(`Title`),autoFocus:!0,value:i,maxLength:200,onFocus:e=>e.currentTarget.select(),onChange:e=>a(e.target.value),onBlur:()=>{r(!1),!o.current&&i.trim()&&i.trim()!==t&&window.yogurt.meetings.rename(e,i)},onKeyDown:e=>{e.key===`Enter`?e.currentTarget.blur():e.key===`Escape`&&(o.current=!0,e.currentTarget.blur())},className:`${s} -mx-1 rounded-lg bg-transparent px-1 outline-none ring-1 ring-line focus:ring-accent`}):(0,q.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,q.jsx)(`button`,{onClick:()=>r(!0),title:G(`Rename`),className:`note-title-btn -mx-1 max-w-full rounded-lg px-1 text-start`,children:t})})}function f3({notes:e,disabled:t,onChange:n,onBlur:r,onRetry:i,focus:a}){let{status:o}=e,s=o===`waiting`||o===`writing`,c=fU(e.draft??``,s,{minCommitMs:32});return o===`failed`&&e.enhanced==null?(0,q.jsxs)(p4,{testId:`note-enhanced-failed`,children:[(0,q.jsx)(`span`,{children:G(`Yogurt couldn't generate this summary.`)}),(0,q.jsx)(`button`,{onClick:i,className:`inline-error-action`,children:G(`Try again`)})]}):o===`empty`?(0,q.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:G(`Nothing was said or written in this meeting.`)}):s&&!e.draft?(0,q.jsx)(nZ,{downloading:e=>(0,q.jsx)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:e?G(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes. ({percent})`,{percent:e}):G(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes.`)}),children:(0,q.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[(0,q.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`}),(0,q.jsx)(`p`,{className:o===`writing`&&e.part?`pt-9 text-[15px] text-muted`:`sr-only`,children:o===`writing`&&e.part?G(`Reading a long meeting, part {part} of {of}…`,{part:e.part.part,of:e.part.of}):G(`Generating notes…`)})]})}):(0,q.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":o,className:s?`streaming`:``,children:[o===`failed`&&(0,q.jsxs)(p4,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,q.jsx)(`span`,{children:G(`Couldn't regenerate the summary. Your previous version is below.`)}),(0,q.jsx)(`button`,{onClick:i,className:`inline-error-action`,children:G(`Try again`)})]}),(0,q.jsx)(XH,{focus:a,testId:`note-enhanced-editor`,label:G(`Summary`),className:`enhanced`,markdown:s?c:e.enhanced??``,streaming:s,editable:!s&&!t,onChange:n,onBlur:r}),s&&(0,q.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:G(`Generating notes…`)})]})}var p3=ah.transition.collapse;ah.transition.collapseLabel,ah.transition.color,W.createContext(null),W.createContext(!0);function m3(e,t){let n=xh(),{duration:r,easing:i}=mh(lh(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function h3({transition:e=p3,style:t,...n}){let r=m3(e,`width`);return(0,q.jsx)(`div`,{...n,style:{...r,...t}})}function g3({transition:e=p3,style:t,...n}){let r=m3(e,`left, right, width`);return(0,q.jsx)(`div`,{...n,style:{...r,...t}})}W.Component;function _3(e){if(!e)return[];if(!e.startsWith(`[`))return[e];try{let t=JSON.parse(e);return Array.isArray(t)&&t.every(e=>typeof e==`string`&&e.length>0)?[...new Set(t)]:[]}catch{return[]}}function v3({folders:e,route:t,go:n,collapsed:r=!1}){let[i,a]=(0,W.useState)(),[o,s]=(0,W.useState)(),[c,l]=(0,W.useState)(),[u,d]=(0,W.useState)(),[f,p]=(0,W.useState)(!1),m=(0,W.useRef)(!1),h=(0,W.useRef)(null),g=u?[...u.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!u.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),_=(0,W.useRef)(g);_.current=g,(0,W.useEffect)(()=>{!m.current&&!f&&d(void 0)},[e]);let v=async t=>{if(m.current=!1,t.every((t,n)=>t===e?.[n]?.id))d(void 0);else{d(t),p(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{d(void 0),J2.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{p(!1)}}},y=(e,t)=>{let n=g.indexOf(e),r=[...g];f||n+t<0||n+t>=g.length||(r.splice(n,1),r.splice(n+t,0,e),v(r))};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`nav`,{"aria-label":G(`Folders`),"data-testid":`sidebar-folders`,children:[(0,q.jsx)(ZX,{pending:!e,skeleton:(0,q.jsx)(bv,{layout:`folders`,testId:`folders-loading`}),children:(0,q.jsx)(Pm,{as:`div`,ref:h,axis:`y`,values:g,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{_.current=e,d(e)},children:g.map((i,o)=>{let c=e.find(e=>e.id===i);return(0,q.jsx)(y3,{folder:c,collapsed:r,current:t===`/folder/${c.id}`,go:n,constraints:h,reorderable:!f&&g.length>1,onDragStart:()=>{m.current=!0},onDragEnd:()=>void v(_.current),moveUp:!f&&o>0?()=>y(i,-1):void 0,moveDown:!f&&o<g.length-1?()=>y(i,1):void 0,onAppearance:()=>s(c),onRename:()=>a({folder:c}),onDelete:()=>l(c)},c.id)})})}),(0,q.jsxs)(`button`,{"data-testid":`folder-create`,"data-sidebar":`menu-button`,"aria-label":G(`New folder`),title:r?G(`New folder`):void 0,className:`workspace-nav workspace-folder-new`,onClick:()=>a({}),children:[(0,q.jsx)(K_,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:G(`New folder`)})]})]}),o&&(0,q.jsx)(s3,{folder:o,onDone:()=>s(void 0)}),i&&(0,q.jsx)(a3,{folder:i.folder,onDone:e=>{a(void 0),e&&n(`/folder/${e.id}`)}}),c&&(0,q.jsx)(o3,{folder:c,onDone:e=>{l(void 0),e&&t===`/folder/${c.id}`&&n(``)}})]})}function y3({folder:e,collapsed:t,current:n,go:r,onRename:i,onDelete:a,onAppearance:o,constraints:s,reorderable:c,onDragStart:l,onDragEnd:u,moveUp:d,moveDown:f}){let p=wm(),m=kf(),h=(0,W.useRef)(!1),[g,_]=(0,W.useState)(!1),[v,y]=(0,W.useState)(!1),[b,x]=(0,W.useState)(),S=jf(b,!!b?.pointer),C=(0,W.useRef)(null),w=(0,W.useRef)(null),T=(0,W.useRef)(null),E=(0,W.useRef)(null);(0,W.useEffect)(()=>{if(!b)return;E.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{C.current?.contains(e.target)||x(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[b]);let D=e=>{let t=C.current.getBoundingClientRect(),n=getComputedStyle(C.current).direction===`rtl`;x({pointer:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},O=e=>{let n=Array.from(E.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),x(void 0),(t?T:w).current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),n[(r+1)%n.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),n[(r-1+n.length)%n.length]?.focus()):e.key===`Tab`&&x(void 0)},k=e=>{x(void 0),(t?T:w).current?.focus(),e()},A=e=>e.dataTransfer.types.includes(X4);return(0,q.jsxs)(Jm,{as:`div`,ref:C,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":g,dragListener:!1,dragControls:p,dragConstraints:s,dragElastic:0,dragMomentum:!1,transition:m?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{h.current=!0,_(!0),x(void 0),l()},onDragEnd:()=>{_(!1),u()},children:[(0,q.jsxs)(`button`,{ref:T,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":v,"aria-current":n?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{h.current=!1,c&&e.button===0&&p.start(e,{distanceThreshold:4})},onClick:t=>{h.current&&t.detail?h.current=!1:r(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),D(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),D(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?d:f)?.())},onDragEnter:e=>{A(e)&&(e.preventDefault(),y(!0))},onDragOver:e=>{A(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>y(!1),onDrop:t=>{y(!1);let n=_3(t.dataTransfer.getData(X4));n.length&&(t.preventDefault(),Q4(e.id,n).catch(()=>J2.add({title:G(`Yogurt couldn't add this note to the folder. Try again.`)})))},children:[(0,q.jsx)(q4,{appearance:e}),(0,q.jsx)(`span`,{children:e.name}),(0,q.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":G(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,q.jsx)(`button`,{ref:w,"data-testid":`sidebar-folder-more`,className:`workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!b,"aria-label":G(`More for “{name}”`,{name:e.name}),title:G(`More`),onClick:e=>b?x(void 0):D(e.detail>0),children:(0,q.jsx)(Hg,{size:15,"aria-hidden":`true`})}),S.value&&(0,q.jsxs)(`div`,{ref:E,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,...S.props,"data-anchor":`start`,onKeyDown:O,style:S.value.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>k(o),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,q.jsx)(B_,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Change icon`)]}),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>k(i),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,q.jsx)(H_,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Rename`)]}),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!d,onClick:()=>d&&k(d),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,q.jsx)(ug,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Move up`)]}),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!f,onClick:()=>f&&k(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,q.jsx)(og,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Move down`)]}),(0,q.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>k(a),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,q.jsx)(cv,{size:15,"aria-hidden":`true`}),G(`Delete folder`)]})]})]})}function b3(){return null}function x3({go:e}){let[t,n]=(0,W.useState)(),[r,i]=(0,W.useState)(!1),[a,o]=(0,W.useState)(!1),[s,c]=(0,W.useState)(!1),[l,u]=(0,W.useState)(!1),[d,f]=(0,W.useState)(!1);(0,W.useEffect)(()=>{let e,t=!0,r=t=>{e=t,n(t),!t.notesError&&!t.notesUpgradeError&&u(!1),eZ(t)||(i(!1),f(!1))},a=window.yogurt.setup.onState(r);return window.yogurt.setup.state().then(n=>{t&&!e&&r(n)}),()=>{t=!1,a()}},[]);let p=async()=>{c(!0),u(!1);try{await window.yogurt.setup.retry()}catch{u(!0)}finally{c(!1)}},m=async()=>{f(!1);try{await window.yogurt.setup.skipUpgrade();let t=J2.add({title:G(`AI upgrade skipped`),timeout:8e3,data:{testId:`notes-skipped-toast`},actionProps:{children:G(`Settings`),onClick:()=>{J2.close(t),e(`/settings/notes-model`)}}})}catch{f(!0)}};if(!t||!eZ(t))return null;let h=$X(t),g=h?t.notesUpgradeError:t.notesError,_=!!g,v=G(h?`AI upgrade paused`:`AI download stopped`),y=_?v:t.notesUpgradePending&&h?G(`Upgrading AI`):h?G(`Upgrading AI · {percent}`,{percent:QX(t.notesUpgradeFraction??0)}):G(`Downloading AI · {percent}`,{percent:QX(t.notesFraction??0)}),b=tZ(t),x=h?t.notesUpgradeFraction:t.notesFraction,S=x!==void 0&&Number.isFinite(x)?Math.floor(Math.max(0,Math.min(1,x))*100):void 0;return(0,q.jsx)(EX,{direction:mt(yt()),children:(0,q.jsx)(`span`,{className:`notes-download-status`,children:(0,q.jsxs)(pY,{open:r,onOpenChange:(e,t)=>{e&&o(t.event instanceof MouseEvent&&t.event.detail>0),i(e)},children:[(0,q.jsxs)(kY,{"data-testid":`notes-setup-open`,"aria-label":y,title:y,className:`bar-btn notes-download-trigger no-drag`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,"data-failed":_,"data-upgrade":h,className:`notes-download-dot`}),(0,q.jsx)(`span`,{className:`truncate`,children:y})]}),(0,q.jsx)(MY,{children:(0,q.jsx)(vX,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,q.jsxs)(wX,{"data-testid":`notes-setup`,"data-failed":_,"data-pointer":a,"data-anchor":`end`,"aria-label":_?v:G(h?`Upgrading AI`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:[(0,q.jsxs)(`div`,{className:`notes-download-readout`,children:[(0,q.jsx)(`strong`,{role:_?`status`:void 0,children:_?G(h?`Upgrade paused`:`Download stopped`):b.progress||G(h?`Upgrading AI`:`Downloading AI`)}),(0,q.jsx)(`span`,{children:_?b.progress:h?S!==void 0&&QX(x):b.eta})]}),(0,q.jsx)(`div`,{className:`notes-download-progress`,role:`progressbar`,"aria-label":y,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":S,children:(0,q.jsx)(`span`,{style:{width:`${S??0}%`}})}),(0,q.jsxs)(`div`,{className:`notes-download-footer`,children:[(0,q.jsx)(`p`,{className:`notes-download-support`,children:_?g:G(h?`Once this model is ready, we'll remove the old one.`:`You can record meetings. AI summaries and Ask work when this finishes.`)}),(_||h)&&(0,q.jsxs)(`div`,{className:`notes-download-actions`,children:[_&&(0,q.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`notes-download-retry`,disabled:s,onClick:()=>void p(),children:G(s?`Retrying…`:`Try again`)}),h&&(0,q.jsx)(`button`,{"data-testid":`notes-setup-skip`,className:`notes-download-skip`,disabled:t.notesUpgradeChanging,onClick:()=>void m(),children:G(`Skip for now`)})]})]}),l&&(0,q.jsx)(`p`,{role:`alert`,children:G(`Couldn't restart the download. Try again.`)}),d&&(0,q.jsx)(`p`,{role:`alert`,children:G(`Couldn't change the notes model. Try again.`)})]})})})]})})})}function S3({route:e,meeting:t,folders:n,go:r,back:i,forward:a,search:o,collapsed:s,sidebarMotion:c,toggleSidebar:l,children:u}){let[d,f]=(0,W.useState)(null);(0,W.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.widget.onState(e=>{t=!0,f(e)});return window.yogurt.widget.state().then(n=>{e&&!t&&f(n)}),()=>{e=!1,n()}},[]);let p={duration:c?.2:0,ease:[.22,1,.36,1]},m=e.startsWith(`/note/`),h=e.startsWith(`/settings/`)?`/settings`:e.startsWith(`/chat/`)?`/chat`:e,g=d?.kind===`recording`&&e!==`/note/${d.meetingId}`;(0,W.useEffect)(()=>{let t=()=>{if(document.querySelector(`[aria-modal="true"]:not([data-testid="chat-panel"]), [role="alertdialog"]`))return;let t=QH(e);t.panel?document.getElementById(`meeting-ask`)?.click():window.yogurt.conversations.current(t.chips,t.fresh).then(e=>r(`/chat/${e}`)).catch(e=>{console.error(`Opening Ask failed`,e),J2.add({title:G(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!yQ(e)||bQ()&&e.ctrlKey||e.altKey||e.shiftKey||e.code!==`KeyJ`||e.defaultPrevented||(e.preventDefault(),!e.repeat&&!e.isComposing&&t())},i=()=>{window.yogurt.nav.takeAsk().then(e=>{e&&t()})},a=window.yogurt.nav.onAsk(i);return i(),window.addEventListener(`keydown`,n),()=>{a(),window.removeEventListener(`keydown`,n)}},[e,r]);let _=[{route:``,label:G(`Meetings`),Icon:HX},{route:`/chat`,label:G(`Ask`),Icon:zX},{route:`/trash`,label:G(`Trash`),Icon:cv},{route:`/settings`,label:G(`Settings`),Icon:UX}],v=e.startsWith(`/folder/`)?n?.find(t=>e===`/folder/${t.id}`):void 0,y=_.find(e=>e.route===h)??(e.startsWith(`/folder/`)?{label:v?.name??G(`Folder`)}:void 0),b=m?t&&e===`/note/${t.id}`?t.title:G(`Meeting`):e.startsWith(`/settings`)?G(`Settings`):y?.label??G(`Meetings`),x=t=>(0,q.jsxs)(`button`,{"data-testid":t.route===``?`nav-home`:t.route===`/chat`?`nav-chat`:t.route===`/settings`?`settings-open`:`nav-trash`,"data-sidebar":`menu-button`,"aria-label":t.label,title:s?t.label:void 0,className:`workspace-nav${t.route===`/trash`?` workspace-trash`:``}`,"aria-current":h===t.route||t.route===``&&e===`/meetings`?`page`:void 0,onClick:()=>r(t.route),children:[(0,q.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:t.label})]},t.route);return(0,q.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,q.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,q.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,q.jsx)(`button`,{className:`workspace-icon workspace-sidebar-toggle no-drag`,"data-testid":s?`sidebar-expand`:`sidebar-collapse`,onClick:e=>l(e.detail>0),"aria-expanded":!s,"aria-controls":`workspace-sidebar`,"aria-keyshortcuts":bQ()?`Control+Meta+S`:`Control+Shift+S`,title:`${G(s?`Expand sidebar`:`Collapse sidebar`)} (${vQ(`⌃⌘S`)})`,"aria-label":G(s?`Expand sidebar`:`Collapse sidebar`),children:(0,q.jsx)(VX,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,q.jsx)(h3,{className:`workspace-sidebar-gap`,transition:p}),(0,q.jsx)(g3,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":G(`Main navigation`),transition:p,children:(0,q.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,q.jsx)(`div`,{className:`sidebar-titlebar`}),(0,q.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,q.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":G(`Search`),title:`${G(`Search`)} (${vQ(`⌘K`)})`,onClick:o,children:[(0,q.jsx)(BX,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,q.jsx)(`span`,{children:G(`Search`)}),(0,q.jsx)(`kbd`,{children:vQ(`⌘K`)})]}),(0,q.jsx)(`nav`,{"aria-label":G(`Workspace`),children:_.slice(0,2).map(x)}),(0,q.jsx)(`div`,{className:`workspace-folder-label`,children:G(`Your workspace`)}),(0,q.jsx)(v3,{collapsed:s,folders:n,route:e,go:r})]}),(0,q.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,q.jsx)(b3,{collapsed:s}),x(_[2]),x(_[3]),(0,q.jsx)(`div`,{className:`workspace-brand`,children:(0,q.jsx)(`span`,{className:`workspace-wordmark`,children:(0,q.jsx)(c1,{height:25})})})]})]})}),(0,q.jsxs)(`div`,{className:`workspace-content`,children:[(0,q.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,q.jsxs)(`div`,{className:`workspace-breadcrumb drag`,children:[(0,q.jsxs)(`span`,{className:`workspace-history`,children:[(0,q.jsx)(`button`,{"data-testid":`nav-back`,className:`workspace-icon no-drag`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":G(`Back`),title:`${G(`Back`)} (${vQ(`⌘[`)})`,children:(0,q.jsx)(Ag,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,q.jsx)(`button`,{"data-testid":`nav-forward`,className:`workspace-icon no-drag`,disabled:!a,onClick:a,"aria-label":G(`Forward`),title:`${G(`Forward`)} (${vQ(`⌘]`)})`,children:(0,q.jsx)(Mg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),(0,q.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),g&&(0,q.jsxs)(`button`,{className:`workspace-recording-link no-drag`,"data-testid":`recording-return`,"data-paused":d.paused,"aria-label":G(`Open {title}`,{title:d.title}),title:G(`Open {title}`,{title:d.title}),onClick:()=>r(`/note/${d.meetingId}`),children:[(0,q.jsx)(c4,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,q.jsx)(l4,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,q.jsx)(x3,{go:r}),(0,q.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var C3=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function w3(){let[e,t]=(0,W.useState)(0);return(0,W.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,W.useEffect)(()=>ye(),[e]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`marketing-window`,children:[(0,q.jsx)(S3,{route:`/note/${E.id}`,meeting:E,folders:D,go:C3,search:C3,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:C3,children:(0,q.jsx)(u3,{id:E.id,onTitleChange:C3},e)}),(0,q.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{}),(0,q.jsx)(`i`,{})]})]}),(0,q.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,q.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,q.jsx)(`path`,{className:`cursor-pointer`,d:`M4 3 24 13 15.1 15.7 11.3 25Z`,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`})]})]})}(0,w1.createRoot)(document.getElementById(`root`)).render(M?(0,q.jsx)(b1,{}):(0,q.jsx)(w3,{}))})();
\ No newline at end of file
diff --git a/site/public/marketing/stills/hero-desktop.webp b/site/public/marketing/stills/hero-desktop.webp
index a30f0abf..76051833 100644
Binary files a/site/public/marketing/stills/hero-desktop.webp and b/site/public/marketing/stills/hero-desktop.webp differ
diff --git a/site/public/marketing/stills/hero-finished-desktop.webp b/site/public/marketing/stills/hero-finished-desktop.webp
index 7e80fbfc..626a351e 100644
Binary files a/site/public/marketing/stills/hero-finished-desktop.webp and b/site/public/marketing/stills/hero-finished-desktop.webp differ
diff --git a/site/public/marketing/stills/hero-phone.webp b/site/public/marketing/stills/hero-phone.webp
index 0c110ed7..101868c5 100644
Binary files a/site/public/marketing/stills/hero-phone.webp and b/site/public/marketing/stills/hero-phone.webp differ
diff --git a/site/public/marketing/stills/manifest.json b/site/public/marketing/stills/manifest.json
index cf1c2529..add990d8 100644
--- a/site/public/marketing/stills/manifest.json
+++ b/site/public/marketing/stills/manifest.json
@@ -1,19 +1,19 @@
{
- "appCommit": "f07515bb86d8169e5be57f8ab7ccf9c79ccacf4e",
- "bundleSha256": "45600e67501aa6d8ebacb00377d668d766bd559ee3381e2c1d77f48ca6f58251",
- "generatedAt": "2026-11-12T06:41:11.873Z",
+ "appCommit": "86854aa0f96371978d42eae435b5681c0638787d",
+ "bundleSha256": "cdb40b1141c8cdafc906bc5382279bab584a6522cd5396d2ac233cfa204d69d6",
+ "generatedAt": "2026-11-14T16:34:31.648Z",
"images": {
"hero-desktop.webp": {
- "bytes": 45094,
- "sha256": "1f1acb34917a60ba9abe713b572fe811b4146f06c2b790f34ac12f1a0d9cfa0c"
+ "bytes": 44286,
+ "sha256": "5b3f45784a88a061cab9959b192e11f1436be954609ad2f5cbf49656f2c9696e"
},
"hero-finished-desktop.webp": {
- "bytes": 80442,
- "sha256": "5490f276fa6ef0d60e9ca5646d8de81fce6c2b36940e11f16fea3f156e2a5156"
+ "bytes": 79848,
+ "sha256": "bf05192c7cf1f103198a603eb66ac3daea592e4cfc35227442c7098e09664b89"
},
"hero-phone.webp": {
- "bytes": 63048,
- "sha256": "4623d26a3cff52136bae83d2ad06ee4173a3ccb3c498ec179b2124896289cf0e"
+ "bytes": 62138,
+ "sha256": "ce0401dfccc96596cace9f2241d731bb75612fd5e05e248059867dff758d9c15"
},
"fragment-transcript-desktop.webp": {
"bytes": 13458,
@@ -39,5 +39,6 @@
"bytes": 12696,
"sha256": "e0efce378eada45dbd63612a60a9890e29fcfeca5534e3a585082032ce992969"
}
- }
+ },
+ "bundleCssSha256": "76f09d60ce9d5a1511ae8014e11b20c221f93588002741dc8e6bdcb245463ed7"
}
diff --git a/site/renderer/README.md b/site/renderer/README.md
index e87f1a89..f220737b 100644
--- a/site/renderer/README.md
+++ b/site/renderer/README.md
@@ -15,7 +15,7 @@ pnpm --dir site test
pnpm --dir site build
```
-The bundle defaults to this repository's `HEAD`. Set `YOGURT_APP_REF` to another local commit when needed. Its manifest records the app commit, source files and output hashes. `SITE_URL` changes the local origin used by the still exporter; `CHROME_BIN` changes its browser executable. The exporter uses headless Chrome directly, not Electron or Playwright.
+The bundle defaults to `origin/main` without changing the checkout. Set `YOGURT_APP_REF` to another local commit when needed. The approved wordmark change from `bd3d73d` and ring change from `1e1c0d0` are applied to the archived source. Its manifest records the app commit, source overrides, source files and output hashes. `SITE_URL` changes the local origin used by the still exporter; `CHROME_BIN` changes its browser executable. The exporter uses headless Chrome directly, not Electron or Playwright.
`timeline.mjs` owns the 39-second hero sequence. `bridge.mjs` provides the in-memory app bridge and drives the editor and cursor. `fragments.tsx` renders the three How it works surfaces. Desktop fragments animate; phone and reduced-motion layouts use the completed exports. `frame.css` styles only the isolated frames. Page layout stays in `public/marketing/site.css`.
diff --git a/site/renderer/bridge.mjs b/site/renderer/bridge.mjs
index 9c8092fa..73b951a8 100644
--- a/site/renderer/bridge.mjs
+++ b/site/renderer/bridge.mjs
@@ -49,7 +49,7 @@ window.yogurt = {
stop:async()=>{},
},
settings: { get: read({ theme: 'dark', locale: 'en', systemLocale: 'en', language: '', spoken: 'en', myName: 'You', macName: 'You', recordingReminder: false }), onLanguage: off },
- audio: { tracks: read([]), mics: read({ devices: [], choice: null, using: 'Mac microphone', defaultName: 'Mac microphone' }), onMics: off },
+ audio: { tracks: read([]), onDeleted: off, mics: read({ devices: [], choice: null, using: 'Mac microphone', defaultName: 'Mac microphone' }), onMics: off },
folders: { suggestion:read(null), of: read([folders[0]]), list: read(folders), onChange: off },
onboarding: { nudge: read([]) }, nav: { go: noop, takeAsk: read(false), onAsk: off }, share: { copy: read('failed'), save: read('cancelled') },
}
diff --git a/site/renderer/frame.css b/site/renderer/frame.css
index 44ac096d..b5d141c0 100644
--- a/site/renderer/frame.css
+++ b/site/renderer/frame.css
@@ -24,8 +24,6 @@ html[data-playing=false] *,html[data-playing=false] *::before,html[data-playing=
.cursor-ring{fill:none;stroke:white;stroke-width:1.5px;opacity:0;transform-origin:4px 3px;transform:scale(.6);transition:transform 240ms ease-out,opacity 180ms ease-out}
.marketing-cursor[data-clicking=true] .cursor-ring{opacity:.3;transform:scale(1)}
-/* Fixture replay hides future lines without exposing the app's duplicate-recovery controls. */
-[data-testid=transcript-hidden-toggle],.transcript-echo{display:none}
html[data-typing=true] [data-testid=note-mine] li:last-child p::after{content:'';display:inline-block;height:1em;border-right:1.5px solid currentColor;vertical-align:-.1em;animation:demo-caret 900ms step-end infinite}
/* Tiptap's empty paragraph ends in a break; keep its preview caret on that line. */
html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child){position:relative}
diff --git a/site/scripts/bundle.mjs b/site/scripts/bundle.mjs
index 495a0a40..e8038895 100644
--- a/site/scripts/bundle.mjs
+++ b/site/scripts/bundle.mjs
@@ -16,11 +16,20 @@ const { default: tailwind } = await import(pathToFileURL(require.resolve('@tailw
const postcss = createRequire(fs.realpathSync(path.join(site, 'node_modules/next/package.json')))('postcss')
const outDir = path.join(site, 'public/marketing/app')
// Build the renderer from this repository at a reproducible commit.
-const appCommit = execFileSync('git', ['rev-parse', process.env.YOGURT_APP_REF || 'HEAD'], { cwd: repo, encoding: 'utf8' }).trim()
+const appCommit = execFileSync('git', ['rev-parse', process.env.YOGURT_APP_REF || 'origin/main'], { cwd: repo, encoding: 'utf8' }).trim()
const source = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'yogurt-marketing-source-')))
process.on('exit', () => fs.rmSync(source, { recursive: true, force: true }))
const archive = execFileSync('git', ['archive', appCommit, 'app/src/renderer', 'app/src/shared'], { cwd: repo, maxBuffer: 32*1024*1024 })
execFileSync('tar', ['-xf', '-', '-C', source], { input: archive })
+// Apply approved UI changes without replacing newer source on main.
+const sourceOverrides = {
+ 'app/src/renderer/src/components/Logo.tsx': 'bd3d73de6e1c5ffba88d83042c2cf7510b8c47b4',
+ 'app/src/renderer/src/workspace.css': '1e1c0d07eec486691d71844446c3f73700ac5ef4',
+}
+for (const [file, commit] of Object.entries(sourceOverrides)) {
+ const patch = execFileSync('git', ['diff', `${commit}^`, commit, '--', file], { cwd: repo })
+ execFileSync('git', ['apply', '-'], { cwd: source, input: patch })
+}
const sourceFiles = new Set()
await build({
configFile: false, root: path.join(site, 'renderer'), publicDir: false, base: '/marketing/app/',
@@ -78,6 +87,6 @@ const files = Object.fromEntries(fs.readdirSync(outDir).map(name => {
const bytes = fs.readFileSync(path.join(outDir, name))
return [name, { bytes: bytes.length, gzipBytes: gzipSync(bytes, { level: 9 }).length, sha256: createHash('sha256').update(bytes).digest('hex') }]
}))
-const manifest = { appCommit, generatedAt: new Date().toISOString(), source: 'app/src/renderer', fixture: 'site/renderer/bridge.mjs', nativeCode: false, stripped: ['Player', 'FinishSetup', 'RecordingHint', 'non-English locale tables'], sourceFiles: [...sourceFiles].sort(), files, totalGzipBytes: Object.entries(files).reduce((sum, [name, f]) => sum + (name.endsWith('.txt') ? 0 : f.gzipBytes), 0) }
+const manifest = { appCommit, sourceOverrides, generatedAt: new Date().toISOString(), source: 'app/src/renderer', fixture: 'site/renderer/bridge.mjs', nativeCode: false, stripped: ['Player', 'FinishSetup', 'RecordingHint', 'non-English locale tables'], sourceFiles: [...sourceFiles].sort(), files, totalGzipBytes: Object.entries(files).reduce((sum, [name, f]) => sum + (name.endsWith('.txt') ? 0 : f.gzipBytes), 0) }
fs.writeFileSync(path.join(outDir, 'manifest.json'), JSON.stringify(manifest, null, 2) + '\n')
console.log(`Renderer: ${(manifest.totalGzipBytes / 1024).toFixed(1)} KiB gzip. Stills must be regenerated with pnpm site:stills.`)
diff --git a/site/scripts/stills.mjs b/site/scripts/stills.mjs
index d3b82710..57e06c06 100644
--- a/site/scripts/stills.mjs
+++ b/site/scripts/stills.mjs
@@ -98,7 +98,7 @@ try {
}
}
const manifest=JSON.parse(await fs.readFile(path.join(site,'public/marketing/app/manifest.json'),'utf8'))
- await fs.writeFile(path.join(site,'public/marketing/stills/manifest.json'),JSON.stringify({appCommit:manifest.appCommit,bundleSha256:manifest.files['renderer.js'].sha256,generatedAt:new Date().toISOString(),images},null,2)+'\n')
+ await fs.writeFile(path.join(site,'public/marketing/stills/manifest.json'),JSON.stringify({appCommit:manifest.appCommit,bundleSha256:manifest.files['renderer.js'].sha256,bundleCssSha256:manifest.files['renderer.css'].sha256,generatedAt:new Date().toISOString(),images},null,2)+'\n')
} finally {
socket?.close(); chrome.kill()