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: a card for connecting an AI app to your notes replaces the copy and export card

Eric Brownroutec5b551cfce7
diff --git a/site/content/home.html b/site/content/home.html
index 2a364d03..14148014 100644
--- a/site/content/home.html
+++ b/site/content/home.html
@@ -859,14 +859,65 @@
</div>
</div>
</article>
- <article class="feature-card card-copy">
+ <article class="feature-card card-mcp" id="local-mcp">
<div class="feature-copy">
- <span class="feature-label">Copy and export</span>
- <h3>Take your notes with you.</h3>
- <p>Copy notes or transcripts, or save both as Markdown.</p>
+ <span class="feature-label">Local MCP</span>
+ <h3>Use your notes in your AI app.</h3>
+ <p>Let your assistant read meeting notes and transcripts directly from your computer.</p>
</div>
<div aria-hidden="true" class="feature-visual material-art">
- <span class="native-copy"></span>
+ <svg class="mcp-tiles" viewBox="0 0 224 154" fill="none">
+ <defs>
+ <linearGradient id="wired-shell" x1="0" x2="0.3" y1="0" y2="1">
+ <stop stop-color="var(--color-white)"/>
+ <stop offset=".5" stop-color="var(--color-ink-50)"/>
+ <stop offset="1" stop-color="var(--color-ink-200)"/>
+ </linearGradient>
+ <linearGradient id="wired-face" x1="0" x2=".3" y1="0" y2="1">
+ <stop stop-color="var(--color-white)"/>
+ <stop offset="1" stop-color="var(--color-ink-100)"/>
+ </linearGradient>
+ <filter height="220%" id="wired-lift" width="200%" x="-50%" y="-50%">
+ <fedropshadow dx="0" dy="3" flood-color="var(--color-ink-900)" flood-opacity=".08" stdDeviation="2"/>
+ <fedropshadow dx="0" dy="14" flood-color="var(--color-ink-900)" flood-opacity=".09" stdDeviation="12"/>
+ </filter>
+ <pattern id="wired-pad" width="8" height="8" patternUnits="userSpaceOnUse">
+ <circle cx="4" cy="4" r=".75" fill="var(--pad-dot)"/>
+ </pattern>
+ <radialGradient id="wired-fade">
+ <stop offset=".45" stop-color="white"/>
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
+ </radialGradient>
+ <mask id="wired-fade-mask">
+ <ellipse cx="112" cy="76" rx="105" ry="64" fill="url(#wired-fade)"/>
+ </mask>
+ </defs>
+ <rect x="8" y="12" width="208" height="132" fill="url(#wired-pad)" mask="url(#wired-fade-mask)"/>
+ <g stroke-linecap="round">
+ <path d="M70 53H94C119 53 104 101 130 101H153" stroke="var(--art-edge)" stroke-width="6"/>
+ <path d="M70 52H94C119 52 104 100 130 100H153" stroke="var(--art-inner)" stroke-width="4"/>
+ <path d="M70 52H94C119 52 104 100 130 100H153" stroke="var(--wire)" stroke-width="2"/>
+ </g>
+ <g transform="translate(18 21)">
+ <rect x="-1" y="2" width="64" height="64" rx="15" fill="var(--color-ink-100)" filter="url(#wired-lift)"/>
+ <rect x="0" y="0" width="62" height="62" rx="14" fill="url(#wired-shell)" stroke="var(--art-edge)"/>
+ <rect x="2" y="2" width="58" height="57" rx="12" fill="url(#wired-face)" stroke="var(--art-rim)"/>
+ <rect x="5" y="5" width="52" height="51" rx="10" fill="none" stroke="var(--art-inner)"/>
+ <g transform="translate(14 14)" fill="none" stroke="var(--art-glyph)" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M9 3h11l7 7v20H9z M20 3v8h7 M13 16h10 M13 21h8 M13 26h5"/>
+ </g>
+ </g>
+ <g transform="translate(145 70)">
+ <rect x="-1" y="2" width="64" height="64" rx="15" fill="var(--color-ink-100)" filter="url(#wired-lift)"/>
+ <rect x="0" y="0" width="62" height="62" rx="14" fill="url(#wired-shell)" stroke="var(--art-edge)"/>
+ <rect x="2" y="2" width="58" height="57" rx="12" fill="url(#wired-face)" stroke="var(--art-rim)"/>
+ <rect x="5" y="5" width="52" height="51" rx="10" fill="none" stroke="var(--art-inner)"/>
+ <g transform="translate(14 14)" fill="none" stroke="var(--link)" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 6h27v19H16l-7 5v-5H4z"/>
+ <path d="M10 13h15 M10 18h10"/>
+ </g>
+ </g>
+ </svg>
</div>
</article>
<article class="feature-card card-language">
diff --git a/site/public/marketing/app/manifest.json b/site/public/marketing/app/manifest.json
index d2329828..65de0836 100644
--- a/site/public/marketing/app/manifest.json
+++ b/site/public/marketing/app/manifest.json
@@ -3,7 +3,7 @@
"sourceOverrides": {
"app/src/renderer/src/styles.css": "13f3c987136d93ff888fb4438e3464864dc04114dcbc036127a660018bec11f3"
},
- "generatedAt": "2026-11-18T19:04:58.384Z",
+ "generatedAt": "2026-11-18T19:16:00.868Z",
"source": "app/src/renderer",
"fixture": "site/renderer/bridge.mjs",
"nativeCode": false,
@@ -130,15 +130,15 @@
"sha256": "45e4eb19dcb4fc8ce3825d6cfeeb1d8f8d7a16e09ee4583a005518c880f028e4"
},
"renderer.css": {
- "bytes": 264247,
- "gzipBytes": 86034,
- "sha256": "473a2b82bcbc6d67e26032f54a38d5ec9a7aa7b9821f3f7e01e12fa6ff16990d"
+ "bytes": 263670,
+ "gzipBytes": 85887,
+ "sha256": "802f1ba3a9f1d0076d6f75a5206de0e55c0d8416f7d5d0bbf8b31106ffe430e6"
},
"renderer.js": {
- "bytes": 1505315,
- "gzipBytes": 463633,
- "sha256": "526febdc140c297322752d42858d914e9e4c5ae87383b600f81b96752a13eb27"
+ "bytes": 1504949,
+ "gzipBytes": 462855,
+ "sha256": "7ea7d390704d873e34731997dc8236f53d51465ed1c28349321282a18f73060a"
}
},
- "totalGzipBytes": 550031
+ "totalGzipBytes": 549106
}
diff --git a/site/public/marketing/app/renderer.css b/site/public/marketing/app/renderer.css
index 3cbac74e..8236446d 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-outline-style:solid;--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);--text-base:1rem;--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)}.end-4{inset-inline-end:calc(var(--spacing) * 4)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.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-\[80\]{z-index:80}.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-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-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.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-\[26px\]{width:26px;height:26px}.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-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-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-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 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)}.min-w-60{min-width:calc(var(--spacing) * 60)}.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}.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}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.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)}.p-3{padding:calc(var(--spacing) * 3)}.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-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.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)}.whitespace-nowrap{white-space:nowrap}.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}.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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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-disabled\:opacity-50[aria-disabled=true]{opacity:.5}@media (hover:hover){.aria-disabled\:hover\:bg-transparent[aria-disabled=true]: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+AAAAFgAAABAAAQABAiAAAQASAhICEwIVAhYCGAIZAhoCGwIcAh0CHgIfAiUCJwIoAikCKwIsAAEAAwIhAiICIwAAABAAxgADAAEECQAAAMQBzAADAAEECQABADgBlAADAAEECQACAA4BhgADAAEECQADAEwBOgADAAEECQAEADgBlAADAAEECQAFAFYA5AADAAEECQAGADYArgADAAEECQAOADYAeAADAAEECQAQACYAUgADAAEECQARABAAQgADAAEECQEAABgAKgADAAEECQEBAAwAHgADAAEECQECAAoAFAADAAEECQEHABAAQgADAAEECQELAAgADAADAAEECQETAAwAAABOAG8AcgBtAGEAbAAxADQAcAB0AFcAaQBkAHQAaABXAGUAaQBnAGgAdABPAHAAdABpAGMAYQBsACAAcwBpAHoAZQBTAGUAbQBpAEIAbwBsAGQAQgByAGkAYwBvAGwAYQBnAGUAIABHAHIAbwB0AGUAcwBxAHUAZQBoAHQAdABwAHMAOgAvAC8AcwBjAHIAaQBwAHQAcwAuAHMAaQBsAC4AbwByAGcALwBPAEYATABCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAxADsAZwBmAHQAbwBvAGwAcwBbADAALgA5AC4AMwAzAC4AZABlAHYAOAArAGcAMAAyADkAZQAxADkAZgBdADEALgAwADAAMQA7AEEAVABMAFIAOwBCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABSAGUAZwB1AGwAYQByAEIAcgBpAGMAbwBsAGEAZwBlACAARwByAG8AdABlAHMAcQB1AGUAIABTAGUAbQBpAEIAbwBsAGQAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMgAyACAAVABoAGUAIABCAHIAaQBjAG8AbABhAGcAZQAgAEcAcgBvAHQAZQBzAHEAdQBlACAAUAByAG8AagBlAGMAdAAgAEEAdQB0AGgAbwByAHMAIAAoAGgAdAB0AHAAcwA6AC8ALwBnAGkAdABoAHUAYgAuAGMAbwBtAC8AYQB0AGUAbABpAGUAcgB0AHIAaQBhAHkALwBiAHIAaQBjAG8AbABhAGcAZQApAAAAAABEAF0AaQB1AIUAlQDMANwA7AEQARwBLAE8AWUBdQGFAZEBnQG9AckB1QHhAe0B+QIpAmACmgKmAuoC9gMCAy0DYgNqA50DvQPJA/MD/wQPBB8ETgReBG4EegSGBJIEuQTFBNEE3QTpBQMFQgVOBVoFZgWABaIFrgW6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AJAAkQCWAJcAnwG7AbABvAIBAbYCMwCjALsAvADBAMUA1gDXANsA3QDqAOwA7gDzAPQA+gERARMBFAEYAR4BIQE0ATUBOgE7AUMBuQHUAboB/wGRAacB3QHuAfIB1QHNAjEBzgFHAcMCAAHPAjsB0QH9AYgBiQI0AgoBzAGqAjwBhwFIAcQBdgFzAXcBqQASAAIACgAXABAAFgAYAB0ALwAkACYALABCAD0APgA/ACIAVABgAFcAWABrAF4B9QBqAIMAfgCAAIEAmABuAR0AtACkAKwAuQCyALgAugC/ANEAxgDIAM4A5ADfAOAA4QDEAPgBBAD7APwBDwECAfYBDgEnASIBJAElATwBEgE+ABQAtgADAKUAFQC3ABsAvQAeAMAAHAC+ACAAwgAhAMMAMQDTAC0AzwAyANQAJQDHADYA2AA4ANoANwDZADoA3ABGAOgARADmAEUA5wBAAN4APADpAEkA7QBLAO8ATQDxAEwA8ABOAPIAUQD1AFMA9wBSAPYAVQD5AGkBDQBoAQwAbAEQAHEBFQBzARcAcgEWAHUBGQB3ARsAdgEaAHsBHwCPATMAjAEwAH8BIwCOATIAiwEvAI0BMQCTATcAmQE9AJoAoAFEAKIBRgChAUUAYgEGAIUBKQAJAKsAeAEcAHwBIAI4AjICOQI9AjoCNQIUAhUCGAIcAh0CGgITAhICHgIbAhYCGQCVATkAkgE2AJQBOAARALMAEwC1AAsArQANAK8ADgCwAA8AsQAMAK4ABACmAAYAqAAHAKkACACqAAUApwAuANAAMADSADMA1QAnAMkAKQDLACoAzAArAM0AKADKAEMA5QBBAOMAXwEDAGEBBQBZAP0AWwD/AFwBAABdAQEAWgD+AGMBBwBlAQkAZgEKAGcBCwBkAQgAggEmAIQBKACGASoAiAEsAIkBLQCKAS4AhwErAJwBQACbAT8AnQFBAJ4BQgGUAZUBkgGTAcEBwgG9Ab8BwAG+AdYB2AGrAZ4CDQHsAfEB4AHhAeQB8AHqAeIB4wHcAe8B7QHnAegB6wHlAdsCEQIOAg8CEAIDAgYCCAH0AfwB+wABAAAACgCeASoAAkRGTFQAfmxhdG4ADgB0AAhBWkUgAFxDQVQgAEhDUlQgAFxLQVogAFxNT0wgADRST00gADRUQVQgAFxUUksgAFwAAP//AAcAAAABAAIABQAGAAcACAAA//8ABwAAAAEAAgAEAAYABwAIAAD//wAHAAAAAQACAAMABgAHAAgABAAAAAD//wAGAAAAAQACAAYABwAIAAljY21wAIRkbm9tAH5mcmFjAFxsb2NsAFZsb2NsAFBsb2NsAEpudW1yAERwbnVtAD50bnVtADgAAAABAA8AAAABAA4AAAABAAwAAAABAAgAAAABAAkAAAABAAcAAAAPABAAEgAUABYAGAAaABwAHgAgACIAJAAmACgAKgAsAAAAAQANAAAAAgAAAAEALgaUBcQFrgWSBXYFkgV2BWIFTAUQBQIE9ATcBM4EtgSoApIChAJkBNwCPgTcAiAE3AIABNwB3gTcAboE3AGUBNwBbATcAUIE3AEWBNwA6ATcALgE3ACOBM4AbABeAAEAAAABAAgAAQAiAAsABgAAAAEACAADAAEEdgABABQAAQHmAAEAAAAtAAEAAQGQAAYAAAABAAgAAwABABIAAQRUAAAAAQAAACsAAgACAV4BZwAAAXIBcgAKAAYAAAABAAgAAwAAAAEEKgAMAZoBmgGaAZoBmgGaAZoBmgGaAZoBmgG+AAEAAAApAAYAAAABAAgAAwAAAAED+gALAWoBagFqAWoBagFqAWoBagFqAWoBjgABAAAAJwAGAAAAAQAIAAMAAAABA8wACgE8ATwBPAE8ATwBPAE8ATwBPAFgAAEAAAAlAAYAAAABAAgAAwAAAAEDoAAJARABEAEQARABEAEQARABEAE0AAEAAAAjAAYAAAABAAgAAwAAAAEDdgAIAOYA5gDmAOYA5gDmAOYBCgABAAAAIQAGAAAAAQAIAAMAAAABA04ABwC+AL4AvgC+AL4AvgDiAAEAAAAfAAYAAAABAAgAAwAAAAEDKAAGAJgAmACYAJgAmAC8AAEAAAAdAAYAAAABAAgAAwAAAAEDBAAFAHQAdAB0AHQAmAABAAAAGwAGAAAAAQAIAAMAAAABAuIABABSAFIAUgB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUC1gA2As8ANQPgADUCfgBOAoAATgLRADUCnQBOAp0ATgKdAE4CnQBOAocALwKHAC8ChwAvAocALwKHAC8CvQBKAjIAFQIyABUCMgAVAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQKZABYDzAAbA8wAGwPMABsDzAAbA8wAGwKiABgCbQAJAm0ACQJtAAkCbQAJAm0ACQJtAAkCbQAJAm0ACQI1ACICNQAiAjUAIgI1ACICQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgOVACoCdABHAjAAKgIwACoCMAAqAjAAKgIwACoCdAArAnQAKwJwACsCXQApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkBhQAYAlMAHAJTABwCUwAcAlMAHAJrAEcCbv/0AQwANwELAEcBCwBHAQv//gEL//YBCwA3AQwANwEM//gBCwAtAQsABwELABsBC//wAh0ANwER/+oBEf/qAkAARwJAAEcBCgBHAQoARwEKAEcBCgA1AWsAJgOhAEcCawBHAmsARwJrAEcCawBHAmsARwJrAEcCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCeAApAngAKQJ4ACkCeAApAngAKQJ4ACkCXwApAl8AKQJfACkCXwApA8IAKQJ0AEcCdABHAnQAKwGmAEcBpgBHAaYANgGmADoCGwAkAhsAJAIbACQCGwAkAhsAJAKhAEcBhQAQAYUAEAGFABACYwA/AmMAPwJjAD8CYwA/AmMAPwJjAD8CYwA/AmMAPwKIAD8CiAA/AogAPwKIAD8CiAA/AogAPwJjAD8CYwA/AmMAPwJjAD8CYwA/Ai8ADQNNABIDTQASA00AEgNNABIDTQASAicAEQJVADACVQAwAlUAMAJVADACVQAwAlUAMAJVADACVQAwAgAAIwIAACMCAAAjAgAAIwGmABUBogAUAosAFQKVADUBTQAfAlEALQJYABoCYQAZAlwAMwKMADUB9QAYAooAMwKGADMCaAAuAmgAKgJoACgCaAAhAmgAFAJoADgCaAAuAmgAKgJoADUCaAA4AcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYBKv+RA5YAIwOhACMESQAnA5AAIwQkABYDpQAjBDkAFgQ9AC8D0QAZAcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYA7gAAAO4AAAH0AAAD6AAAAfQAAAPoAAABLAAAAPoAAACnAAACaAAAANcAAAB4AAAAPwAAAAAAAACnAAABQAAQAUAAHQDXABcAtAADAOEAHADMAAQC4AAXARcANwEXADcBoQAVAZsAEADXABcBKwAXAZ8ACwHgAE4CawAVAWX/+gFd//IAsQAEAAH/QQFZAB8CEQAfAxEAHwI2AAABOQA7AS8ACQFfABkBUQAIAUAATgE2ABAAtAADAWoAAwF0ABUBdAAQAL4AFQC+ABABuQAZAbkAIADsABkA4gAVAVIAGQCoABkClwBOA8oAOALzABkCpwAjAjEALwOtACkCnwAbA9MACgFjABsAtgAZAV8AGQEJAE4BCQBOAasAFQHuABABogAVAz8AKQQ/AE4ClwBOApcANQIwACoClwA1AnwALwJwACsC5gAZAqQAHALNAC0C3AASAqoAMwLOABUCtAAlAqUAPANxACIDDwAgArEAJgS5AE4CSQAkAs4AFQIyABUCJwAVBCEAIgJhAAkCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKACQCCgAkAgoAOwIvAA0DzgAqAuwAOwHOAA4DCAAnAsAAFgLMAE4COQAtAqgAFQJxAD8CbgArA8IAGwVmABsB8QATAm4AEgH0ABUCbgAQAAAAFAAAABQAAAAUAAAAFAAAABQAAAAAAAAAFAAAABQAAAAQAAAAFAAAABEAAAAUAAAAFAAAABQAAAAUAAAAFAAAABQAAAAUAAAAFAAAABAAAAAQAAAAEAAAAA0AAAAUAAAAFAAAABQAAAALAAAAFAAAABQAAAASAAAAFAF3ABQAxwAUARsAFAEbABQBcgAUAWYAFAFmABQBEQAQAOAAFAFvABEBSAAUASIAFADPABQAAgAAAAAAAP+cADIAAAAAAAAAAAAAAAAAAAAAAAAAAAI+AAAAJADJAQIBAwEEAQUBBgEHAQgAxwEJAQoBCwEMAQ0AYgEOAK0BDwEQAREAYwCuAJAAJQAmAP0A/wBkARIAJwETARQA6QAoAGUBFQDIARYBFwEYARkBGgDKARsBHADLAR0BHgEfASAAKQAqAPgBIQEiACsBIwAsASQAzADNAM4A+gElAM8BJgEnASgBKQAtAC4BKgAvASsBLAEtAOIAMAAxAS4BLwEwAGYBMQAyANAA0QEyATMBNAE1ATYAZwE3ANMBOAE5AToBOwE8AT0BPgE/AUAAkQCvALAAMwDtADQANQFBAUIBQwA2AUQA5AD7AUUBRgA3AUcBSAA4ANQBSQDVAGgBSgDWAUsBTAFNAU4BTwFQAVEBUgFTAVQBVQFWADkAOgFXAVgBWQFaADsAPADrAVsAuwFcAV0BXgFfAD0BYADmAWEARABpAWIBYwFkAWUBZgFnAWgAawFpAWoBawFsAW0AbAFuAGoBbwFwAXEAbgBtAKAARQBGAP4BAABvAXIARwFzAQEA6gBIAHABdAByAXUBdgF3AXgBeQBzAXoBewBxAXwBfQF+AX8ASQBKAPkBgAGBAEsBggBMANcAdAB2AHcBgwGEAHUBhQGGAYcBiAGJAE0BigBOAYsATwGMAY0BjgDjAFAAUQGPAZABkQB4AZIAUgB5AHsBkwGUAZUBlgGXAHwBmAB6AZkBmgGbAZwBnQGeAZ8BoAGhAKEAfQCxAFMA7gBUAFUBogGjAaQAVgGlAOUA/AGmAIkAVwGnAagAWAB+AakAgACBAaoAfwGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgBZAFoBtwG4AbkBugBbAFwA7AG7ALoBvAG9Ab4BvwBdAcAA5wHBAJ0AngCbABMAFAAVABYAFwAYABkAGgAbABwBwgHDAcQBxQHGAccByAHJAcoBywHMAc0BzgHPAdAB0QHSAdMB1AHVAdYB1wHYAdkB2gHbAdwB3QHeAd8AvAD0AeAB4QD1APYB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMB9AH1AfYB9wH4AfkAAwH6AfsB/AH9Af4B/wIAAgECAgIDAgQCBQIGAgcCCAIJABEADwAdAB4AqwAEAKMAIgCiAMMAhwANAgoABgASAD8CCwIMABAAsgCzAEIACwAMAF4AYAA+AEAAxADFALQAtQC2ALcAqQCqAL4AvwAFAAoCDQAjAAkAiACGAIsAigCMAIMCDgIPAF8A6ACCAhAAwgIRAhICEwIUAIQCFQAHAhYCFwIYAhkCGgIbAhwCHQIeAh8CIAIhAiICIwCFAiQCJQImAJYADgDvAPAAuAAgAI8AIQAfAJUAlACTAKcAYQCkAEEAkgInAJwCKAIpAJoAmQClAioAmAAIAMYCKwIsAi0CLgIvAjACMQIyAjMCNAI1AjYCNwI4AjkCOgI7AjwCPQI+Aj8CQAJBAkICQwJEAkUCRgJHAkgCSQJKAksCTAJNAI4A3ABDAI0A3wDYAOEA2wDdANkA2gDeAOAGQWJyZXZlB3VuaTFFQUUHdW5pMUVCNgd1bmkxRUIwB3VuaTFFQjIHdW5pMUVCNAd1bmkwMUNEB3VuaTFFQTQHdW5pMUVBQwd1bmkxRUE2B3VuaTFFQTgHdW5pMUVBQQd1bmkxRUEwB3VuaTFFQTIHQW1hY3JvbgdBb2dvbmVrCkNkb3RhY2NlbnQGRGNhcm9uBkRjcm9hdAZFY2Fyb24HdW5pMUVCRQd1bmkxRUM2B3VuaTFFQzAHdW5pMUVDMgd1bmkxRUM0CkVkb3RhY2NlbnQHdW5pMUVCOAd1bmkxRUJBB0VtYWNyb24HRW9nb25lawd1bmkxRUJDB3VuaTAxMjIKR2RvdGFjY2VudARIYmFyAklKB3VuaTFFQ0EHdW5pMUVDOAdJbWFjcm9uB0lvZ29uZWsGSXRpbGRlB3VuaTAxMzYGTGFjdXRlBkxjYXJvbgd1bmkwMTNCBk5hY3V0ZQZOY2Fyb24HdW5pMDE0NQNFbmcHdW5pMUVEMAd1bmkxRUQ4B3VuaTFFRDIHdW5pMUVENAd1bmkxRUQ2B3VuaTFFQ0MHdW5pMUVDRQVPaG9ybgd1bmkxRURBB3VuaTFFRTIHdW5pMUVEQwd1bmkxRURFB3VuaTFFRTANT2h1bmdhcnVtbGF1dAdPbWFjcm9uBlJhY3V0ZQZSY2Fyb24HdW5pMDE1NgZTYWN1dGUHdW5pMDIxOAd1bmkxRTlFBlRjYXJvbgd1bmkwMjFBBlVicmV2ZQd1bmkxRUU0B3VuaTFFRTYFVWhvcm4HdW5pMUVFOAd1bmkxRUYwB3VuaTFFRUEHdW5pMUVFQwd1bmkxRUVFDVVodW5nYXJ1bWxhdXQHVW1hY3JvbgdVb2dvbmVrBVVyaW5nBlV0aWxkZQZXYWN1dGULV2NpcmN1bWZsZXgJV2RpZXJlc2lzBldncmF2ZQtZY2lyY3VtZmxleAd1bmkxRUY0BllncmF2ZQd1bmkxRUY2B3VuaTFFRjgGWmFjdXRlClpkb3RhY2NlbnQGYWJyZXZlB3VuaTFFQUYHdW5pMUVCNwd1bmkxRUIxB3VuaTFFQjMHdW5pMUVCNQd1bmkwMUNFB3VuaTFFQTUHdW5pMUVBRAd1bmkxRUE3B3VuaTFFQTkHdW5pMUVBQgd1bmkxRUExB3VuaTFFQTMHYW1hY3Jvbgdhb2dvbmVrCmNkb3RhY2NlbnQGZGNhcm9uBmVjYXJvbgd1bmkxRUJGB3VuaTFFQzcHdW5pMUVDMQd1bmkxRUMzB3VuaTFFQzUKZWRvdGFjY2VudAd1bmkxRUI5B3VuaTFFQkIHZW1hY3Jvbgdlb2dvbmVrB3VuaTFFQkQHdW5pMDEyMwpnZG90YWNjZW50BGhiYXIJaS5sb2NsVFJLB3VuaTFFQ0IHdW5pMUVDOQdpbWFjcm9uB2lvZ29uZWsGaXRpbGRlAmlqB3VuaTAyMzcHdW5pMDEzNwZsYWN1dGUGbGNhcm9uB3VuaTAxM0MGbmFjdXRlBm5jYXJvbgd1bmkwMTQ2A2VuZwd1bmkxRUQxB3VuaTFFRDkHdW5pMUVEMwd1bmkxRUQ1B3VuaTFFRDcHdW5pMUVDRAd1bmkxRUNGBW9ob3JuB3VuaTFFREIHdW5pMUVFMwd1bmkxRUREB3VuaTFFREYHdW5pMUVFMQ1vaHVuZ2FydW1sYXV0B29tYWNyb24GcmFjdXRlBnJjYXJvbgd1bmkwMTU3BnNhY3V0ZQd1bmkwMjE5BnRjYXJvbgd1bmkwMjFCBnVicmV2ZQd1bmkxRUU1B3VuaTFFRTcFdWhvcm4HdW5pMUVFOQd1bmkxRUYxB3VuaTFFRUIHdW5pMUVFRAd1bmkxRUVGDXVodW5nYXJ1bWxhdXQHdW1hY3Jvbgd1b2dvbmVrBXVyaW5nBnV0aWxkZQZ3YWN1dGULd2NpcmN1bWZsZXgJd2RpZXJlc2lzBndncmF2ZQt5Y2lyY3VtZmxleAd1bmkxRUY1BnlncmF2ZQd1bmkxRUY3B3VuaTFFRjkGemFjdXRlCnpkb3RhY2NlbnQHemVyby50ZgZvbmUudGYGdHdvLnRmCHRocmVlLnRmB2ZvdXIudGYHZml2ZS50ZgZzaXgudGYIc2V2ZW4udGYIZWlnaHQudGYHbmluZS50Zgl6ZXJvLmRub20Ib25lLmRub20IdHdvLmRub20KdGhyZWUuZG5vbQlmb3VyLmRub20JZml2ZS5kbm9tCHNpeC5kbm9tCnNldmVuLmRub20KZWlnaHQuZG5vbQluaW5lLmRub20JemVyby5udW1yCG9uZS5udW1yCHR3by5udW1yCnRocmVlLm51bXIJZm91ci5udW1yCWZpdmUubnVtcghzaXgubnVtcgpzZXZlbi5udW1yCmVpZ2h0Lm51bXIJbmluZS5udW1yB3VuaTIxNTMHdW5pMjE1NAlvbmVlaWdodGgMdGhyZWVlaWdodGhzC2ZpdmVlaWdodGhzDHNldmVuZWlnaHRocwd1bmkyMDgwB3VuaTIwODEHdW5pMjA4Mgd1bmkyMDgzB3VuaTIwODQHdW5pMjA4NQd1bmkyMDg2B3VuaTIwODcHdW5pMjA4OAd1bmkyMDg5B3VuaTIwNzAHdW5pMDBCOQd1bmkwMEIyB3VuaTAwQjMHdW5pMjA3NAd1bmkyMDc1B3VuaTIwNzYHdW5pMjA3Nwd1bmkyMDc4B3VuaTIwNzkHdW5pMDBBMAd1bmkyMDAyB3VuaTIwMDMHdW5pMjAwMAd1bmkyMDAxB3VuaTIwMDQHdW5pMjAwNQd1bmkyMDA2B3VuaTIwMDcHdW5pMjAwOAd1bmkyMDA5B3VuaTIwMEEHdW5pMjAwQgd1bmkyMDJGB3VuaTI3RTgHdW5pMjdFOQd1bmkyMDE2FnBlcmlvZGNlbnRlcmVkLmxvY2xDQVQbcGVyaW9kY2VudGVyZWQubG9jbENBVC5jYXNlB3VuaTBFM0YGbWludXRlBnNlY29uZAd1bmkyMTEzCWVzdGltYXRlZAd1bmkyMTE2B3VuaTIwQkYHdW5pMjBCNQ1jb2xvbm1vbmV0YXJ5BGRvbmcERXVybwd1bmkyMEIyB3VuaTIwQjQHdW5pMjBBRAd1bmkyMEJFBGxpcmEHdW5pMjBCQQd1bmkyMEJDB3VuaTIwQTYHdW5pMjBCMQd1bmkyMEJEB3VuaTIwQTgHdW5pMjBCOQd1bmkyMEI4B3VuaTIwQUUHdW5pMjBBOQhlbXB0eXNldAd1bmkyMTI2B3VuaTIyMDYHdW5pMDBCNQdhcnJvd3VwCmFycm93cmlnaHQJYXJyb3dkb3duCWFycm93bGVmdAd1bmkwMzA4B3VuaTAzMDcJZ3JhdmVjb21iCWFjdXRlY29tYgd1bmkwMzBCC3VuaTAzMEMuYWx0B3VuaTAzMDIHdW5pMDMwQwd1bmkwMzA2B3VuaTAzMEEJdGlsZGVjb21iB3VuaTAzMDQNaG9va2Fib3ZlY29tYgd1bmkwMzEyB3VuaTAzMUIM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AAAR7AAAEfIAABHmAAAR8gAAEfgAABHgAAAR2gAAEfIAABHUAAARzgAAEcgRwhG8EbYRsBHCEbwRthGqEcIRvBG2EaQRwhG8EbYRqhHCEZ4RthHIEcIRvBG2EZgRwhG8EbYRkhHCEbwRthGMEcIRvBG2EcgRwhGeEbYRyBHCEbwRthGGEcIRvBG2EcgRwhG8EbYRsBHCEbwRthHIEcIRnhG2EcgRwhG8EbYRhhHCEbwRthGAEcIRvBG2EXoRwhG8EbYRdBHCEbwRthFuEWgRYhFcEVYRwhG8EbYRUAAAEUoAABFEAAARPgAAETgAABM8AAASKAAAETIAABEsAAARMgAAESYAABEyAAASKAAAESAAABEaAAARFAAAEQ4AABEUAAARCAAAERQAABEaAAARAgAAERoAABD8AAAQ9gAAEPAAABDqAAAQ5AAAEN4AABDkAAAQ6gAAENgAABDSEMwQxhDAELoQzBDGEMAQtBDMEMYQwBCuEMwQxhDAEKgQzBDGEMAQ0hDMEKIQwBDSEMwQxhDAEJwQzBDGEMAQ0hCWEMYQwBC6EJYQxhDAENIQlhCiEMAQ0hCWEMYQwBCcEJYQxhDAEJAQlhDGEMAQihDMEMYQwBCEEMwQxhDAENIQzBDGEMAQfhDMEMYQwBCQEMwQxhDAEjoAABB4AAAQcgAAEGwAABBmAAAQbAAAEGAAABBsAAAQWgAAEGwAABByAAAQbAAAEFQAABBOAAAQSAAAEEIAABA8AAAQQgAAEDYAABBCAAAQMAAAEEIAABBIAAAQKgAAEEgAABBCAAAQJAAAEEIAABAeAAAQQgAAEBgAABASAAAQDAAAEBIAABAGAAAQEgAAEAAAABASAAAP+gAAD/QP7g/oAAAP9A/uD+IAAA/0D+4P3AAAD/QP7g/iAAAP1g/uD/oAAA/0D+4P0AAAD/QP7g/KAAAP9A/uD8QAAA/0D+4PvgAAD/QP7g+4AAAP9A/uD74AAA/WD+4P+gAAD/QP7g+yAAAP9A/uD6wAAA/0D+4PpgAAD/QP7g/6AAAP1g/uD/oAAA/0D+4PoAAAD/QP7g+aAAAP9A/uD/oAAA/0D+4PlAAAD/QP7g+OAAAP9A/uD4gAAA+CAAAPfAAAD3YAAA9wAAAPagAAD2QAAA9qAAAPXgAAD2oAAA9wAAAPWAAAD1IAAA9qAAAPTA9GD0AAAA9MD0YPQAAAD0wPRg9AAAAPOgAADzQPLg8oAAAPNA8uDyIAAA80Dy4PHAAADzQPLg8WAAAPNA8uDxwAAA9YDy4POgAADzQPLg8QAAAPNA8uDwoAAA80Dy4PBAAADzQPLg7+AAAPNA8uDzoAAA9YDy4POgAADzQPLg74AAAPNA8uDvIAAA80Dy4POgAADzQPLg7sAAAPNA8uDuYAAA7gAAAO2gAADtQAAA7OAAAO1AAADsgAAA7UAAAOwgAADtQAAA68AAAOtgAADrAAAA6qAAAOpAAAFOIAAA6eAAAOmAAADpIAAA6YAAAOjAAADpgAAA6GAAAOmAAADoAAAA6YAAAOpAAADnoAAA50AAAU4gAADm4AAA6YAAAOaAAADpgAAA6AAAAOmAAADmIAAA6YAAAOXAAADlYAAA5QAAAOVgAADkoAAA5EAAAOSgAADj4AAA44DjIOLAAADiYOMg4sAAAOOA4yDiwAAA44DjIOIAAADhoOFA4OAAAOCAAADgIAAA38AAAN9gAADfAAAA32AAAN6gAADfYAAA38AAAN5AAADd4AAA32AAAN2AAAEEIAAA3SDcwNxg3ADboNzA3GDcANtA3MDcYNwA2uDcwNxg3ADbQNzA2oDcAN0g3MDcYNwA2iDcwNxg3ADZwNzA3GDcANlg3MDcYNwA3SDcwNqA3ADdINzA3GDcANkA3MDcYNwA3SDcwNxg3ADboNzA3GDcAN0g3MDagNwA3SDcwNxg3ADZANzA3GDcANig3MDcYNwA2EDcwNxg3ADX4NzA3GDcANeA3MDcYNwA1yDcwNxg3ADWwAAA1mAAANYAAADVoAAA1UAAANTgAADUgAAA1CAAANPAAADUIAAA02AAANQgAADUgAAA0wAAANVAAADSoAAA0kAAANKgAADR4AAA0qAAANVAAADRgAAA1UAAANEgAADQwAAA0GAAANAAz6DPQAAA0ADPoM9AAADQAM+gzuAAAM6AziD0AM3AzWDOIPQAzcDNAM4g9ADNwMygziD0AM3AzEDOIPQAzcDOgM4gy+DNwM6AziD0AM3Ay4DOIPQAzcDOgMsg9ADNwM1gyyD0AM3AzoDLIMvgzcDOgMsg9ADNwMuAyyD0AM3AysDLIPQAzcDKYM4g9ADNwMoAziD0AM3AzoDOIPQAzcDJoM4g9ADNwMrAziD0AM3AyUAAAMjgAADIgAAAyC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ACIAAP/5ACUAAP+4AAYAAAAAAAAABf/+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//gAAAAAAAAAAAAAAAAAAAAAAAAAA/+UAAAAA//T//v/wAAUAAAAAAAAAAwAAAAD/+//8AAD/6wABAAAAAP/wAAIAGAANAAgAAAAAAAD//v/5AAAAAAAAAAD/+AAA//v/9QAEAAwADwAAABEAAgAA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//cADAAAAAD//AAA//4AAP/3//T////0/+v/8QAK//b////6//f/9QAF//sAAP/v//4AAAAAAAAAAP/uABD/9v/+AAYADgAJAAAADgAA//7/8P/5//UAAP/1////9AAA//QAAwAAAAD/6gAF//v/7f/8AAD/7AAH//gAAAAAAAAAAP/y/8sABP/y/+P/5//vAAD/5v/x/+f/8AAW/+7//QAfAAD/7f//AA//5//l//wAHP/X//YAAP/w/+r/6v/2AAAAAAAiAB4AFAAAAAD/yP/a/94AIQAE/9v/3gAZADgAGQAZ//z/2AAAAAP/wwAAAAf//wAAAAL/6f/7//3/+v//AAD/6gAnAAL////h//EAAAAAAAMACAAI//kAF//eAAAAFQAKAAQAFAAL/8cAAAAE//oABAAA//8AAAAAAAD//v/7AAAABwAAAAAAAAAAAAAABwAA/9D//QAF/+4AAAAJAAAABgAAAAAAAv/M/+8AAAAAAAD/+v/+AAgAAAAA//b/+v/5AAD//AAAAAoAAP/g//QAFf/2//z/8v/r/+4AFwAFAAAAAgABAAL//wAEAAD/+AAEAAkAAQAQABoAAP/6AAAAAP/+//YAAf/4AAD//P/7/+kAAP/xAA0AAP/2/+QAHf/b/+H//gAAAAIAAf/8//v/+QAAAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7AAAAAAAAAAAAAAAFAAAAAAAA////5wAAAAP/9gAA//MACQAAAAAABAAAAAAAAP/5AAAAAAAAAAAAAAAA//IABQAcAAoACAAA//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//MAG//sAAAABAAM/7n/6//2/+P/5//f//MAAAAAAA4ACAADAAD/8QAAAA7/1wACABgAAP/KAAQAHAAjABgABAAQAAD/9AADAAAABf/5AAD/9f/8/9b/+f/+AAIAAP/oACUABAAB/8X/4f/aAAD/+gADAAD/9wAUABQAAAATAAAAAQAVAAAADAAA//4AEP/3/+8AAwAAAAAABP/z//8AAwAAAAAAAAAAAAAAAAAAAAD/6P/+AAD/+gAAAAMAAP/+AAIAAv///+3/7gAFAAAAAAAG//YADgAAAAD/9//9//4AAP/3AAD//gAA/+3/7QAAAAD//AAA/+z/8wAA//8AAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAgAAAAAAAcAAAAAAAAAAAAAAAAAAAAA//0AAAAA/+///QAB//wAAAAQ/+8AAP/8AAAAAP//AAD//v/8AAAAYQAXAAAAAAABAAAAAAABAG0AAAAOAAAADAAAAAAAAAAAAFAAAgACAAAAAAABABsAAAAAAAAACwAAAAAAAAAJAAAAAACGAHEAcgAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAACFAAP//gAAAE3/+wAAAFgAOwAAAFUAAAAZAAAAAAAAAAAAAAAAAAAATQAAAAAAAAAAAFIAAABXAAAAiAAAAAAAawAAAA8AAABzAAcAAABjAAAAUAABAAAAAAAAAAD/+P//AAAAAAAAAAAAAAAAAAAAAAAA/+z/+wAG//kAAAAAAAAABgAA//kAAP/4/+EAAAAAAAD////1AAb//f/+//v///////X/9gAA//8AAP/v//EAAAAA//8AAP/7//UACv/7AAMAAP/+AAAAAAAAAAAAAAAHAAAAAAAIAAAAAAAAAAAAAP//AAAAAAAAAAAAAP/8AAAAAP/zAAEAAAAAAAAACP/6AAD/+QAMAAAABQAAAAAAAAAA//4AB//x//8ABv/8ABIAAAAAABEAEf/8ABL/wP////v/6gAA//7//P/yABH////m/6wAAAAI//sAAAAAAAAAFAAAAAD/lv+b/5v/6P/0AAD/5AAA/9z/zAAAAAAAAAAAAAD/4//0/+T//wAAAAAAAAAA/////wAAAA0AAAAA//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//q/+0AAAAi/8f/+wAOAAD/lv/y/9UAEQAeAB8AFgASABMACwAA/9MAAAAfABEAAAAAABQAAAAkAB7//v+m//wAAP9XAAAAAAAAAAAAAP/HAAAAAP/xAAAAAP+YAAAAAAABAAAAAAAAAAIAAAAQAAD/9wAf/5YACwAkAAAACgAeAAD/xAABAAAABAAAABAACgAAAAD/8f+7AAD/8v/h/97/7gAA/9z/4//o/+MAHP/v//sAGQAA/+sAAQAH/+D/4//8ABz/y//zAAIAAP+b/+X/0AAGAA8AHAANAA0ACAAAAAD/0QAAABYADwAAAAAADgAAACQAHf/2/6b/8wAA/0YAAAAA//4AAAAA/7sAAAAA/+wAAAAA/50AAAAA//8AAAAAAAD//QAAAAcAAP/yACP/lv//ABoAAP/+ABcAAP/AAAAAAP/9AAAABAABAAAAAP/v/7kABP/1/9r/1//yAAD/1f/h/+L/3wAk//P//QAeAAD/5wAFAAz/2v/d//4AIf/B//EABgAA/5n/5f/OAAAAGQAfABMADwAAAAcAAP/QAAAAHAAVAAAAAAATAAAAJgAg//T/pv/4AAD/RgAAAAD//v/+AAD/vgAAAAD/5gAAAAD/sQAAAAAAAAAAAAAAAP/+AAAAEAAA//MAI/+WAAQAIwAA//gAGwAA/78ABgAA//8AAAAI//8AAAAAAAD/9//+AAAAAP//AAAAAP//AAAAAAAA/+f/+wAE//kAAAAA//8AA/////j////4/+0AAAAAAAAAAf/0AAz//P/+//oAAP/8//T/9gAA//8AAP/q/+oAAAAA//4AAP/2//QAAP/5AAEAAP/4AAAAAAAAAAAAAAAMAAAAAAAFAAAAAAAEAAAAAP/9AAAAAAAA//4AAP/9AAAAAP/x//3//wAAAAD//f/5AAD/9gAHAAAAAAAAAAAAAAAAAAD//wAL//0AAAAA//sAAAAA//z//AAA//v/8P//AAEAAAAAAAAACAAT//wAAAAT//n/1f//AA8AAP/f//P/+gAAAAAAAQAJAA0AAP/+AAAAGAAA//gAAgAG/90ACQAC/////wAUAB4AAP/9AA3//QACAAEAAP/5//0AAAAAAAcADgAA/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//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/cACYABf///9X/6f/aAAAAAgAGAAP/7QAP/8cAAAASAAP/+gAVAAz/rgAAAAP/9AACAAD//gAAAAD/2AAC////4v/1/9//+gAA/+H/5P/6/+EAB//u//EAAwAA//L/6QAR/+T//QADAAv/pf/c/+7/4P/M/83/6AAAAAAAEAALAAMAAP/wAAAADf/RAAMADgAA/7EABQAcACIAFgAAAA4AAP/3AAQAAAAA//UAAP/3/+z/0v/1//v//gAh/88AIAABAAD/rwAA/8UAAP/7AAAAAP/uABEADwAAAA0AAgADAAoAAQAIAAD//QAH//j/5wAGAAD//wAAAAP/+f//AAQAAP////8AAQAAAAAAAP+4AAAAAf/k//8ABgAAAAgAAgAAAAX/rQAAAAD/+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAD/z///AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//4AAP/x//z/0v/y//b/8QAA//L/8v/8AAAAAAAA/8MAAP/r/+T/8v/6AAD/x//9AAD/5/+nAAAAAP/3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/74AAP/W/68AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/3wAAAAH//v/GAAb////0//T//QAF//QAAAAAAAAAFv/8AAUAGQAA//sAFAAJ//X/9QAHABoAAP/+ABYAAP/nAAD/6wAAAAAAEwAaABIAAAAAAAD/1gAAABYABgAAAAAAHAAAAB4AFQAI/6f//wAAAAAAAAAAAAsAAQAA/90AAAAA//cAAAAA/+cAAAAA//8AAAAAAAAACgAAABgAAP/8ABL/mwASAB0AAAARABgAAP/LAAQAAAAMAAAAFgAOAAD///////D/+wAAAAAAAAAAAAAAAAAAAAAAAP/PAAAAAP/pAAAAAgAA//wAAQAA////2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/+AAD/2//lAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//IAAAAA/+H//QAA/+f/5//V/+4AAf/VAAAAAAAAABT//v/8AAsAAP/i//cAHf/XAAf//AAT/7f/5f/8AAAAAAAA/9oAAAAAABcAEQAHAAAAAAAA//8AAAALABUAAAAAABEAAAA8ADP/8gAr//YAAP/7AAAAAP/8//4AAP/bAAAAAP/jAAAAAP/QAAAAAAA/AAAAAAAA//0AAAAEAAD/7wArAAL/+AAaAAAAKAATAAAAHgAEAAD//gAA//j//AAAAAD/5AAAAAD/5v/q/+H/7gAA/+D/6P/t/+YAEwAC//cAEgAB/+T/9AAU/+EACv//AAv/xf/o//kAAP/h/9P/6wAAAAAAGAAQAAgAAP//AAAAAAAAAAkADgAAAAAADwAAADoAMv/3ACr/8wAA//oAAAAA//z//AAA/+MAAAAA/+oAAAAA/+EAAAAAAD4AAAAAAAD/+QAAAAgAAP/tACv////4ABUAAAAmAAkAAAAeAAMAAP//AAD/9QAAAAAAAAAJAAgAAAAEAAsAAQABAAAAAAAAAAAAAP/pAAEADP/9AAAAEQASAA8AAgAHABn/5gAAAAkAEwAA//QAAAAEAAAAAP/+AAUABwAAAAAAAAATAAD/8wAAAAAAAAAHAAD/+P/7AAAAAAAKAAAAAAAAAAAAEQALAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAARAAD/+wAAAAD/+gAAABIAAAAAAAD/8QAAAAAACAAAABUAAAAPAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8gAAAAD/6gAA//wAAAAA/6b/pv+mAAD/pwAAAAAAAAAAAAAAAAAA/6cAAAAkAB4AAAAA//4AAAAAAAAAAAAA//4AAP/8AAAAAAALAAAAAP/rAAAAAAAAAAAAAAAA//0AAP/tAAAAAAAfAAAAAAAAAAAAAP/rAAAAAAAJAAAAHgAAAAAAAAAAAAAACQAAAAAABgAEAAUABQAGAAUABQAFAAUAAAAAAAAAAAAGAAYABgAAAAYABAADAAAAAAAAAAgAAAAAAAAACwAAAAAAKgAAAB4AAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAOwAGAAMAAAAVAAAAAAAbAAgAAAAJAAAAAgAAAAoAAAAAAAUAAAAQAAYAAAAAAAAAAAAZAAAAGwAAADkABQAAACsAAAASAAAAIwAEAAAAEgAAAAsABQAAAAD/+f/kAAn/4//xAAD/8v/7//v/9AAAAAD/8v+T/+n//f/F//sAAP/YAA7/8//8AA7/pgAA/+f/5QAA/8cAAP/1AAAAAP9X/0b/RgAA/2wAAAAVAAD/qAACAAAAAP9nAAD//v/7AAkAGf/+AAAAFAAAAAD/4//+AAD/+QAAAAAACAAAAAAAAAAAAAD/+wAAAAAAAP/4AAD/2QAA//X/+gAe/+f/9wAAAA7/2QAAAA8AAAAAAAkAAP/EAAUAAP/w//n/5//w//f/9QAA//P/8//4AAAAAAAA/9IAAP/2/+r/8//3AAD/7P/5AAD/8//OAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+cAAP/h/8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/9QAAAAUAAP/cAAoAAAAAAAH//wAA//8AAAAAAAIAHP//AAAAHQABAAIADAAHAAEAAAAAABr/+QAAAAwAAP/9//0ACwAAAAAAKgAlACEAAAARAAD/3gAAABgAC//j//gAJAA+ACYAGwAP/9wAAAAQ/8f//gAHABEAAAAG//cAEP/+ABAAGQAS//0AFgAF/////P//AAAAAAAMAAoADAAAAB3/3gAAABwACgAaABIAE//gAAAAGAACAA0ABgAAAAAAAP/+//gAAAAAAAAAAP//AAAAAAAAAAAAAP/+//oAAP//AAAAAP/9AAQAAAAA//z////y//7//gAAAAb/+AAR//f/+v/7//r/9v/w//MAAP//AAD//v/9AAAAAP/9AAAABf//AAD/+AAAAAD/9wAAAAAAAAAAAAAAEAAAAAAACAAAAAAACAAAAAD//wAAAAAAAP//AAD/+gAAAAD//f/9//f//wAA/////wAA//UACwAA//4AAP/6//MAAAAAAAYAAAAAAAAAAwADAAAAAAAEAAQAAAAA/+7//wAI//UAAAAA//kABwACAAAAAP/s/+4ABv/8AAAAAf//ABH/8//t//D/7//w/+T/5wAAAAAAAP/u//MAAAAA//YAAP/6//MAAAAAAAsAAP/+AAAAAP/9AAQAAAAbAAAAAAAQAAAAAAABAAAAAP//AAAAAAAAAAEAAP/uAAAAAP/4AAn/+v/+AAAAAP/vAAD//wAIAAAAAAAA//L/8wAA/+3/9//T/+//9P/sAAD/8P/w//cAAAAAAAD/xAAA/+r/4//v//UAAP/M//cAAP/m/7IAAAAA//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/vgAA/9X/rwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/hAAAAAAAL//IAAAAG//wAEwAAAAAAEgAS//wAE//C/////f/qAAD//v/8//MAE////+f/rP/9AAz/+wAAAAAAAAAUAAAAAP+Y/53/nf/p//UAAP/mAAD/3P/PAAAAAP/mAAD/1v/k//b/5AAAAAAAAAAAAAD/////AAAADQAAAAD//gAAAAAABQAAAAD//gAAAAAAAP/3AAD/5AAAAAf/5v/j//X/5wAA//f/zgAA//P//QAA/+oAAP/3/9oAAP/+/9b/+//3/+P/4v/V/+X/+v/V/9cAAAAAAAb//P/yAAv//P/h//QAAP/XAAD/9gAGAAAAAP/3AAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAA//8AAAADAAMAAAAAAAAAAAAlAAAAAAAAAAAAAAAAAAAAAP/wAAAAAAAAAAAAAAAAAAAAAP/RAAAAAAA1AAAAAAAAAAAAAAAAAAD/5wAeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//L/+QAA//X/9P/3//b/9v/4AAD/8v/3//YAAAAAAAD/+QAAAAD//f/z//kAAP/+//YAAP/9//sAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//j/9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/+AAAAAAAA/+L//P/+//z/+//4//v/+v/6//z/+wAA//gAAAAA//sAAAAAAAD//P/9AAAAAAAAAAAABQAA//UAAAADAAAAAAAAAAgABwAAAAAAAAAA/+gAAP/jAAAAAAAAAAAAAP/rAAz/7AAA////3gAA//gAAAAA//sAAAAFAAAACgAAAAD/9QAA//v/+QAA//8AAAAA//4AAP/6//v/7//uAAD/+wAAABMAAP/o/+QAAAAAAAD/+wAAAAAAAP/o//D/3f/rAAD/7QAA/+j/6P/yAAAAAAAA/84AAP/y/+T/6P/vAAD/6f/xAAD/8v/KAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+IAAP/b/8UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/4//8//z/5//n/+T/6AAA/+P/6f/r/+gACQAH//QADwAB/+j/8wAI/+UAEf/3AAf/yP/l//gAAP/h/9z/7QAD//8AFgANAAr/+P/zAAD//gAAAAcACQAAAAAACQAAAC8AKf/2ACX/7wAA//QAAAAA//f//AAA/+kAAAAA//EAAAAA/+IAAAAAAEEAAAAAAAD/9QAA//0AAP/nAC///v/1AA0AAAAiAAYAAAAZAAAAAP/8AAD/9f/9AAAAAP/0ABn/8//7AAv/+v//////+wAAAAAAAP+y//oAAP/f//8AB//qACH//AAMABj/wgAA//X/9QAA/+MAAP/7/5cAAP+W/5b/lgAA/6oAAAAnAAD/xwAOAAAAAP+bAAAABAAAABYAAAABAAAAAAAAAAD/8gABAAAABAAAAAAACwAAAAD/4wAAAAAABgAAAAAAAP/9AAD/7AAA//0ABgAT//L//AAAABr/6wAAACQADAAAABcAAP/bABIAAAAA//7/xwAAAAD/9f/1//0AAP/0AAAAAAAAAAX//wADAAQAAAAAABX////2//gABQAIAAAAAAAUAAD/4wAA//sAAAAAABsAIwAeAAAADwAA/9IAAAAC//gAAAAAAB8AAAANAAcADP/RAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAMAAAAAP/lAAAAAP/+AAAAAAAAAAAAAAAAAAD//gAF/9YAAAAUAAAAFQAAAAD/zwAAAAAAAAAAABcADAAA//b/6gAA/+b/7P/3/+n/+v/6/+gAAAAAAAD/1AAI/+//5P/5//b/+QAA/+sAHQAA/94AAP/r//0AAAAAAAD/9gAAAAD/8P/1//YAAAAAAAAABQAA/93//wAAAAAAAAAAAAAAFwAAAAD/8AAAAAAAAAAA//n/7wAA/+sAAAAA//gAAAAAAAAAAAAAADYAAAAAAAD/8QAA//UAAAAAABkAAAAAAAAAAAAA/+cAAAAA/+sAAP//AAD/+gAAAAIAIAABADkAAAA7AD0AOQBAAEAAPABCAEUAPQBHAEsAQQBNAFQARgBWAG0ATgBvAHgAZgB6AN8AcADiAOQA1gDnAOcA2QDpAOoA2gDsARwA3AEeAR4BDQEgATMBDgE1ATkBIgE7AUYBJwFKAUoBMwFOAVABNAFSAVMBNwGfAZ8BOQGhAaMBOgGlAaUBPQGoAakBPgGsAawBQAGzAbUBQQG3AbsBRAG/AcgBSQHKAcsBUwHzAfcBVQH5AfoBWgH/Af8BXAACAI4AAQAXAAMAGAAYACgAGQAZAAEAGgAeAAIAHwAgAAEAIQAiAB0AIwA0AAEANQA4AAIAOQA5AAEAOwA9AAEAQABBAAEARwBHACkASABNAAEATgBOACoATwBVAAEAVgBpAAIAawBsAAIAbQBuAAEAbwBvAAIAcABzAAEAdAB4ABAAegB8ABkAfQCPAAQAkACQACsAkQCVABEAlgCWACwAlwCeAA4AnwCiABUAowCpAAYAqgCyAAwAswC4AAYAuQC5AAwAugC6AAYAuwC7AAkAvAC9AAoAvgC+AAsAvwDAAAoAwQDDABYAxADEADgAxQDGAAoAxwDOAAsAzwDSAAoA0wDTAAsA1ADUAAoA1QDVAAsA1gDWADoA1wDaABcA2wDbAAkA3ADcAEIA3QDdABIA3gDeAAgA3wDfAAkA4ADgAEQA4gDjABIA5ADkAEUA5wDnABIA6QDpABIA6gDqAEYA7ADxAAkA8gDyAEgA8wD5AAgA+gD7AAcA/AECAA0BAwEKAAcBCwELAA0BDAEOAAcBDwEPAA0BEAEQAAcBEQERAAgBEgESAAkBEwETABYBFAEVAAgBFgEWAAkBFwEXAAgBGAEcABMBHQEdAAgBHgEgABwBIQEzAAUBNAE0AFwBNQE5ABQBOgE6AF0BOwFCAA8BQwFGABgBSQFJAFEBSgFKABsBSwFLAEwBTAFMAFoBTQFNAFgBTgFOAD0BTwFPADsBUAFQABsBUQFRAFUBUgFSADUBUwFTAEoBaAFoACYBbgFuACYBhgGGACcBhwGHAE0BiAGIAFsBiQGJAFkBigGKAD4BiwGLADwBjAGMACcBjQGNAFYBjgGOADYBjwGPAEsBoAGgAFMBoQGhAFABogGiADQBowGjADMBpAGkAFQBpQGlADcBpgGmADkBqAGoAFIBrAGsAC8BrwGvAFcBsAGwADABswGzAEMBtAG1AB4BtwG3AE4BuAG4AE8BugG6ADEBvAG8ADIBvwG/ACQBwAHAACUBwQHBACQBwgHCACUBwwHDACABxAHEAEABxQHFACABxgHGAEEBxwHIACMBywHLAC0B0gHTACEB8wH0ABoB9QH1AEkB9gH2ABoB9wH4AB8B+QH5AD8B+gH6AEcB/wH/AC4CDAINACIAAgB0ABgAGAACABkAGQAxABoAHgARAB8AIgAYACMAMwACADQANAAyADUAOAAZADkAOQAIADsAOwAIADwAPAAGAD0APQAIAEAAQAAIAEIARQAIAEcARwAGAEgASQAjAEoASwAgAE0ATQAgAE4ATgAzAE8AVAAIAFYAYQAEAGIAZwANAGgAawAEAGwAbAACAG0AbQA0AG8AbwAEAHAAcwAaAHQAeAASAHoAfAAhAH0AhAAGAIUAigAOAIsAjwAGAJAAkAA1AJEAlQATAJYAlgA2AJcAngAKAJ8AogAbAKMAuQABALoAugADALsAuwAcALwAwAAUAMEAwQAVAMIAwgAlAMMAwwA/AMQAxAAcAMUA1QADANYA1gBCANcA2gAdANsA3AAJAN0A3QAMAN4A3gAHAN8A3wAMAOIA4wAMAOQA5AAVAOcA5wAMAOkA6gAMAOwA7QAqAO4A7wAVAPAA8AAlAPEA8QAVAPIA8gBJAPMA+QAJAPoBBQAFAQYBCwAPAQwBDwAFARABEAADAREBEgAcARMBEwAHARQBFwAeARgBHAAWAR4BHgAwASABIAAwASEBKAAHASkBLgAQAS8BMwAHATUBOQAXATsBQgALAUMBRgAfAUoBSgArAU4BTgBEAU8BTwBDAVABUAAvAVIBUgAmAVMBUwArAZ8BnwBHAaEBoQBMAaIBogA+AaMBowA9AaUBpQBAAagBqABNAakBqQBOAawBrAA5AbMBswBGAbQBtQAnAbcBtwBLAbgBuAAkAbkBuQA7AboBugAkAbsBuwA8Ab8BvwAtAcABwAAuAcEBwQAtAcIBwgAuAcMBwwAoAcQBxAApAcUBxQAoAcYBxgApAccByAAsAcoBygA6AcsBywA3AfMB9AAiAfUB9QBKAfYB9gAiAfcB9wBBAfkB+QBFAfoB+gBIAf8B/wA4AAEAAgAAAAgAAQHuAAQAAADyLNIsyCyyLKgsqCyiLKIsoiyQLIosiix0LGosZCxKLCAsFiwAK8IrvCu2K7ArpitEKyoqtCoOKgAp7imwKZ4piClyKWApUikUKNoo1CiKJ+An2ifIJ7YnsCd2J1AnEiaEJjomFCXuJeQleiRwJGYkXCRGJDwjtiN0Iz4i1CLGIsAiuiKUIooiVCJOIkQiOiIUIgIh6CHSIcwhxiGEIX4hdCFCIRwiTiEOIPAiTiDOILQgliCQIGYgDB9uHyAfGh8EHvIe6B6iHoweNh4wHeodzB2iHZgdih2AHUYdKB0GHQAc+hz0HOoc2ByuHFQcThxIHDocNBwqG6gbkhrwGuoa4BraHPQawBqmGpgadhpwGmoaXBpCGdgZohk0GQoY1Bh2GGAYNhf0F8YXjBdaFwQW1hakFnIWQBYOFdgVphV4FXIVbBVmFWAVYBVaFVoVUBVKFUQU/hTMFI4URBPiE4wTOhLoEs4SfBJSEjQSFhHoEcYRoBGGEWQRDhD0ENYQyBC2EGwQQhAED9IPfA8+DzQPJg7QDlINzA1+DVwNPgxYDC4MEAv+C5gLcgs0CroKgAomCawJjglsCWYJSAjaCFAILgf8B94HwAeuB1gHGga4BiIF/AWWBWAFSgVABP4E4ARiA+ADugACAEwAAQACAAAACgAQAAIAEgASAAkAFAAVAAoAFwAaAAwAHAAcABAAHwAfABEAIwAlABIALAAsABUAMgAyABYANAA1ABcAOQA7ABkAPQA/ABwAQQBBAB8ARABKACAATABNACcATwBQACkAVQBWACsAagBqAC0AbQBwAC4AdAB0ADIAdgB2ADMAeQB9ADQAgQCBADkAkACRADoAlgCZADwAmwCbAEAAnwCfAEEAoQChAEIAowCjAEMArACsAEQAsgCyAEUAtAC0AEYAtwC3AEcAugC8AEgAvgC/AEsAwQDFAE0AyADIAFIAzgDOAFMA1ADXAFQA2wDdAFgA3wDqAFsA7ADsAGcA7gDuAGgA8ADxAGkA8wD0AGsA+QD6AG0A/AD8AG8BAgECAHABDAEMAHEBEAERAHIBEwEWAHQBGAEYAHgBGgEbAHkBHQEhAHsBJQElAIABLwEvAIEBMQExAIIBNAE1AIMBOgE7AIUBPQE9AIcBRwFTAIgBXgFyAJUBfAGPAKoBnwGiAL4BpAGpAMIBrgGwAMgBswG1AMsBtwG7AM4BvQHIANMBygHLAN8B0gHTAOEB4gHiAOMB8wH1AOQB9wH/AOcCDAINAPAACQGhABYBogAJAaj/9AGs/8YBuP/zAb//lAHA/5cBwf+iAcL/ogAgAYb/0gGH/9YBiP/xAYn/5wGK/9ABi//cAYz/0wGN/9sBjv/iAY//3gGhABYBogAJAaMADQGkAAABpv//Aaj/9QGs/8YBswAJAbQACQG1AAkBuP/zAbz/9wG//6MBwP+fAcH/qwHC/6gBwwASAcQADgHFABIBxgAYAcf/qgHI/64AHwDW//4A1//5AOr/8AE0//QBNf/4ATv/8wFK//wBS//qAUz/4QFN/9QBTv//AU//9QFQ//wBUf+2AVL/6QFT//QBof+7AaL/twGm/+oBqP/cAaz/7gGv/9YBt//3Abj/2QG8/9QBv//RAcD/2AHB/+UBwv/lAcf/3gHI/98ABwAB/+8BS//4AUz//QFNAAABUf/nAbj/7QG/AAIAEABH//4Alv/hAUr/9QFL//UBTP/5AU3//QFP//UBUP/2AVH/4gFp/+kBav/uAW//3gFx//ABt//0Abj/5AG8/+IAAgFR//4BuP//AAUAev/hAUv/+QFM//8BUf/jAbj/6QANANf/7ADq//AA+v/2ATv/8gFNAAIBUf/8AWn/8QFr//EBb//sAbf/8wG4//QBvP/6Afr/2wAZANf/8QDq/+wA+v/4ATT/8wE1//UBO//xAUv/6AFM/+cBTf/ZAU//7wFR/7sBUv/rAVP/8QFo/+8Baf/dAW7/8AFv/98Bcf/wAbf/9AG4/9cBvP/RAcf/5AHI/+QB+f/bAfr/9AAJAAH/5QBQ//IAl//eALv/9AFK//wBS//0AUz/8wFR/+EBuP/iACUA1v/7ANf/8wDq//AA+v/4ATT/+wE1//0BO//zAUn//AFK//kBS//zAUz/8QFN//sBTgAAAU//8wFQ//kBUf/bAVL/9QFT//YBaP/0AWn/6QFu//QBb//cAXH/8gGh/+wBov/mAbf/9gG4/+EBvP/ZAb//7wHA//EBwf/vAcL/8QHH//MByP/zAfP/5AH0/+YB9//4ABgA1//mAUr/8AFL/+8BTP/zAU3/8gFO//sBT//tAVD/8AFR/9EBUv/yAVP/8wFo/+8Baf/aAWr/6QFt/+gBbv/wAW//ywFx/+UBt//qAbj/1wG///gBwP/3Acf/9QHI//UADwDq/+UBNP/nATX/7gE7/+oBSf/lAUz/0QFp/9UBa//0AWz/8QFt/+gBb//aAXD/7QFx/+oBv//AAcD/wQAVALL/5QDW//YA1//wAOr/5QD6//UBNP/oATX/7gE7/+kBSf/lAU3/ywFp/9UBbP/xAW3/6AFv/9oBcP/tAXH/6gGm/+ABv//OAcD/0wHG//gByP/OAAQBS//5AVH/9AGN/+cBuP/4AAcBof+WAaL/pwGv/8QBs//SAbgAHgHD/9oBxf/aAAcBSv/1AU7/ygGh/6cBov+rAbP/0gG4AB4B0gASAAwA1gAAATT/7gE1//YBS//nAVH/1wG4//IBv//IAcD/yQHB/8gBwv/JAcf/xwHI/8cACAE0//kBNf/+AUv/9AFR/9kBuP/qAbz/5gHH//AByP/wACIACv/E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)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);--dur-player-duck:.16s;--dur-player-return:.36s;--ease-player-duck:linear(0, .00391, .01563, .03516, .0625, .09766, .14063, .19141, .25, .31641, .39063, .47266, .5625, .66016, .76563, .87891, 1);--ease-player-return:linear(0, .02869, .10244, .2049, .32261, .44499, .56409, .67433, .77212, .85554, .92399, .97783, 1.01814, 1.04642, 1.06443, 1.07399, 1.07691, 1.07484, 1.06925, 1.06143, 1.0524, 1.04299, 1.03381, 1.0253, 1.01775, 1.0113, 1.006, 1.00182, .99869, .99649, .99508, .99432, .99409, .99423, .99466, 1, 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-retry{color:#ffb0bd}.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{bottom:12px;position:absolute;inset-inline-start:50%;translate:-50%}[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{margin-top:10px;display:flex}.widget-preview .page-loading{--control:#ffffff14}.summary-regenerate{z-index:40;border:1px solid var(--line);background:var(--float);width:420px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);inset-inline-end:0;border-radius:9px;padding:14px;position:absolute;top:calc(100% + 8px);overflow:hidden}.summary-regenerate-heading{white-space:nowrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:12px;font-weight:500;line-height:20px;display:flex}.summary-regenerate-input{border:1px solid var(--control-border);background:var(--control);width:100%;height:36px;color:var(--ink);border-radius:6px;padding:0 10px;font-size:12px}.main-window .summary-regenerate-input:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.summary-regenerate-input::placeholder{color:var(--muted)}.summary-regenerate-warning{color:var(--muted);white-space:nowrap;margin-top:10px;font-size:12px;line-height:20px}.summary-regenerate-actions{justify-content:flex-end;margin-top:12px;display:flex}.note-chip,.note-record-action{height:32px}.note-chip{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{outline:2px solid var(--accent);outline-offset:2px}.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:not([data-motion=instant]){transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.menu-entry:not([data-motion=instant]){opacity:0;transform:scale(.97)}}.menu-entry:not([data-motion=instant])[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,.menu-entry:not([data-motion=instant]){transition:opacity var(--dur-micro) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{transform:none}@starting-style{.menu-entry:not([data-motion=instant]){transform:none}}}@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) backwards}.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-text[data-resize]{transition:width var(--dur-base) var(--ease-out);display:inline-block;overflow:hidden}.swap-text[data-resize]>span{white-space:nowrap;width:max-content;display:block}.swap-text[data-resize] .swap-in{animation-name:motion-fade}@media (prefers-reduced-motion:reduce){.swap-text[data-resize]{transition:none}}.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;visibility:hidden;min-height:0;transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-base);overflow:hidden}.accordion[data-open=true]>*{opacity:1;visibility:visible;transition:opacity var(--dur-base) var(--ease-out) 40ms,visibility 0s}@media (prefers-reduced-motion:reduce){.accordion{transition:none}.accordion>*,.accordion[data-open=true]>*{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{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-outline{pointer-events:none;padding-top:5px;font-size:15px}.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,var(--line) 50%,var(--line) 100%);border-radius:3px;height:8px}@supports (color:color-mix(in lab, red, red)){.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,color-mix(in srgb,var(--line) 40%,var(--card)) 50%,var(--line) 100%)}}.summary-outline-bar{background-size:200% 100%;animation:1.6s ease-in-out infinite shimmer}.summary-outline-heading{width:30%;height:11px;margin-bottom:16px}.summary-outline-block+.summary-outline-block{margin-top:29px}.summary-outline-bullet{align-items:center;gap:calc(1.3em - 4px);margin-bottom:14px;display:flex}.summary-outline-bullet:before{content:"";background:var(--line);border-radius:50%;flex:none;width:4px;height:4px}.summary-outline-bullet .summary-outline-bar{width:80%}.summary-outline-bullet:nth-child(3) .summary-outline-bar{width:58%}.summary-outline-block+.summary-outline-block .summary-outline-bullet:nth-child(2) .summary-outline-bar{width:70%}.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-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-outline-bar,.summary-outline-block{opacity:.75;animation:none}.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) backwards}.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) backwards}.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) backwards}.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;padding-inline:20px;display:flex}.search-field{min-width:0;font-size:var(--text-base);flex:1;line-height:24px;position:relative}.search-field input{width:100%;min-width:0;height:60px;color:var(--ink);caret-color:var(--accent);font:inherit;letter-spacing:inherit;background:0 0;border:0;outline:none;padding:18px 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:18px;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 20px 12px;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{font-size:var(--text-xs);color:var(--muted);padding:12px 12px 4px;font-weight:500;line-height:16px}.command-row{min-height:40px;font-size:var(--text-sm);cursor:default;border-radius:7px;align-items:center;gap:10px;padding:8px 12px;font-weight:500;line-height:20px;display:flex}.search-row>svg,.search-row>.folder-glyph{width:16px;height:16px;color:var(--muted);flex:none}.search-filter>.folder-glyph{color:var(--muted)}.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:10px;min-height:48px;padding:8px 12px;display:flex}.search-metadata{max-width:35%;color:var(--muted);font-size:var(--text-xs);text-align:end;font-variant-numeric:tabular-nums;flex:none;line-height:18px}.search-metadata>span{display:block}.search-return{visibility:hidden;flex:none}.search-row[aria-selected=true] .search-return{visibility:visible}.search-key{min-width:20px;height:20px;font:var(--text-xs) var(--font-sans);white-space:nowrap;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;flex:none;place-items:center;padding:0 4px;display:inline-grid}.search-footer{border-top:1px solid var(--line);min-height:44px;color:var(--muted);font-size:var(--text-xs);background:var(--card);flex:none;align-items:center;gap:14px;padding:10px 20px;display:flex}.search-footer>span{white-space:nowrap;align-items:center;gap:5px;display:flex}@media (width<=480px){.search-input-row,.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;text-overflow:ellipsis;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-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}.workspace .note-record-action:focus-visible{outline-offset:-2px}.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}[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-latest{z-index:1;bottom:8px;position:absolute;inset-inline-start:calc(50% - 14px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.ask-turn .chat-answer-actions{opacity:0;transition:opacity var(--dur-base) ease,transform 0s linear var(--dur-base);transform:translateY(2px)}.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{opacity:1;transition:opacity var(--dur-surface) var(--ease-out) 60ms,transform var(--dur-surface) var(--ease-out) 60ms;transform:none}@starting-style{.ask-turn[data-show-copy] .chat-answer-actions{opacity:0;transform:translateY(2px)}}.ask-turn[data-show-copy] .chat-answer-actions{transition-delay:.15s}@media (prefers-reduced-motion:reduce){.ask-turn .chat-answer-actions,.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}@media (hover:none){.ask-turn .chat-answer-actions{opacity:1}}.chat-answer-scope{min-width:0;color:var(--muted);white-space:pre;align-items:center;margin-inline-start:-5px;font-size:11px;line-height:16px;display:flex}.chat-answer-scope:before{content:"·";flex:none;margin-inline-end:8px}.chat-copy-action{margin-inline-start:-10px}.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{flex:1;align-self:flex-start;align-items:center;min-width:32px;height:34px;margin-inline-start:auto;display:flex;container-type:inline-size}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;justify-content:flex-end;width:100%;padding:0}.note-primary-tools .transcript-find-clip{width:clamp(240px,100cqw,376px)}.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}.note-primary-tabs{z-index:2}.transcript-find{z-index:2;clip-path:inset(-4px -4px -4px -600px);width:32px;height:32px;position:relative}.ghost-btn.transcript-find-trigger{opacity:1;width:32px;height:32px;transition:opacity var(--dur-micro) var(--ease-out) var(--dur-micro);justify-content:center;padding:0}.transcript-find[data-open=true] .transcript-find-trigger{opacity:0;pointer-events:none;transition-delay:0s}.transcript-find-clip{opacity:0;pointer-events:none;width:min(376px,100vw - 48px);height:32px;transition:transform var(--dur-micro) var(--ease-out),opacity var(--dur-micro) var(--ease-out);inset-inline-end:0;border-radius:6px;position:absolute;top:0;overflow:hidden;transform:translate(calc(100% - 32px))}.transcript-search-field{background:var(--control);height:32px;transition:transform var(--dur-micro) var(--ease-out);border-radius:6px;align-items:center;gap:8px;padding-inline:10px 4px;display:flex;transform:translate(calc(32px - 100%))}.transcript-find[data-open=true] .transcript-find-clip{opacity:1;pointer-events:auto;transition-duration:var(--dur-base);transform:none}.transcript-find[data-open=true] .transcript-search-field{transition-duration:var(--dur-base);transform:none}.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px var(--ink)}@supports (color:color-mix(in lab, red, red)){.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 22%,transparent)}}[data-testid=transcript-search]{width:0;min-width:0;height:100%;color:var(--ink);text-align:start;background:0 0;border:0;flex:1;padding:0;font-size:13px;font-weight:400;line-height:20px}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-find-controls{flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results{opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results[data-visible=true]{opacity:1;pointer-events:auto}.transcript-find-count{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:end;flex:none;font-size:11px;line-height:20px;display:grid}.transcript-find-count>span{grid-area:1/1}.transcript-find-reserve{visibility:hidden}.transcript-find-arrows{flex:none;align-items:center;gap:2px;display:flex}.transcript-find-controls svg{display:block}.transcript-find-close{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-find[data-open=true] .transcript-find-close{opacity:1;transition-delay:var(--dur-micro)}::highlight(transcript-find){background:var(--accent-soft);color:var(--ink)}::highlight(transcript-find-current){background:var(--primary);color:#fff}.transcript-find: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)){clip-path:inset(-4px -600px -4px -4px)}.transcript-find: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)) .transcript-find-clip{transform:translate(calc(32px - 100%))}.transcript-find: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)) .transcript-search-field{transform:translate(calc(100% - 32px))}.transcript-find: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))[data-open=true] :is(.transcript-find-clip,.transcript-search-field){transform:none}.note-primary-tools [data-find-below=true] .transcript-find{clip-path:inset(-4px -4px -48px -600px)}.note-primary-tools [data-find-below=true] .transcript-find: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)){clip-path:inset(-4px -600px -48px -4px)}.note-primary-tools [data-find-below=true] .transcript-find-clip{width:min(376px,100vw - 60px);top:40px}@media (prefers-reduced-motion:reduce){.transcript-find[data-open] :is(.transcript-find-trigger,.transcript-find-clip,.transcript-search-field,.transcript-find-results,.transcript-find-close){transition: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%}}@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}[data-testid=transcript-panel] [data-testid=transcript]{padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-player-dock{z-index:1;clip-path:inset(-16px -16px -12px);inset-inline:max(16px,50% - 206px);position:absolute;bottom:12px}.transcript-player{border:1px solid var(--line);background:var(--float);border-radius:22px;padding:5px 8px}@supports (color:color-mix(in lab, red, red)){.transcript-player{background:color-mix(in srgb,var(--float) 96%,transparent)}}.transcript-player{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:1;transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-player-return) var(--ease-player-return);transform:translateY(0);box-shadow:0 2px 8px #0000000d}.transcript-player-dock[data-hidden=true] .transcript-player{opacity:0;pointer-events:none;transition:transform var(--dur-player-duck) var(--ease-player-duck),opacity calc(var(--dur-player-duck)/4) linear calc(var(--dur-player-duck)*.75);transform:translateY(calc(100% + 12px))}@media (prefers-reduced-motion:reduce){.transcript-player,.transcript-player-dock[data-hidden=true] .transcript-player{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}[data-testid=transcript-panel] [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-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)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{margin-inline-start:auto}.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}.grouped-people{max-height:386px}.grouped-people section+section{margin-top:6px}.company-heading{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:8px 10px 3px;font-size:11px;font-weight:500;line-height:16px;overflow:hidden}.grouped-people .person-row{gap:9px}.person-initials{background:var(--control);width:28px;height:28px;color:var(--muted);border-radius:50%;flex:none;place-items:center;font-size:10px;font-weight:500;display:grid}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-card{--note-date-ms:var(--dur-base);--note-date-ease:var(--ease-out)}.note-date-swap{position:relative;overflow:hidden}.note-date-retiring{pointer-events:none;position:absolute;inset:0 0 auto}.note-date-retiring,.note-date-retiring *{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.note-date-card{--note-date-ms:0s}}.note-date-card .agenda-inspector-heading h3{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.note-date-linked{flex-direction:column;display:flex}.note-date-picker-space{padding-top:0}.note-date-linked .note-date-picker-motion{margin-inline:-8px}.note-date-linked .note-date-picker-motion[data-open=true]{margin-top:12px}.note-date-linked:last-child .note-date-picker-motion[data-open=true]{margin-bottom:-8px}.note-date-motion,.note-date-motion[data-open=true]{transition:grid-template-rows var(--note-date-ms) var(--note-date-ease),margin-top var(--note-date-ms) var(--note-date-ease),margin-bottom var(--note-date-ms) var(--note-date-ease)}.note-date-motion>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s var(--note-date-ms)}.note-date-motion[data-open=true]>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s}.note-date-details-motion[data-open=false]{margin-top:-16px}.note-date-linked .note-date-link{gap:6px}.note-date-details{flex-direction:column;gap:16px;display:flex}.note-date-event-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.note-date-event-toggle{text-align:start;border-radius:6px;align-items:flex-start;gap:10px;width:calc(100% + 16px);margin:-8px;padding-block:3px 5px;padding-inline:8px 5px;display:flex}.note-date-color{border-radius:3px;flex:none;width:10px;height:10px;margin-top:5px}.note-date-actions{min-height:28px}.note-date-actions .note-date-access{flex-wrap:nowrap}.note-date-actions p{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-reveal{opacity:1;transition:opacity var(--dur-micro) var(--ease-out)}.note-date-reveal[data-ready=false]{opacity:0}@media (prefers-reduced-motion:reduce){.note-date-reveal{transition:none}}.note-date-identity{flex:1;min-width:0}.note-date-identity>strong,.note-date-time,.note-date-calendar{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-identity>strong{font-size:14px;font-weight:600;line-height:21px}.note-date-time{color:var(--written);margin-top:3px;font-size:12px;line-height:18px}.note-date-calendar{min-height:16px;color:var(--muted);margin-top:3px;font-size:11px;line-height:16px}.note-date-event-toggle>svg{color:var(--muted);transition:transform var(--note-date-ms) var(--note-date-ease);flex:none;margin-top:4px}.note-date-linked :is(.note-date-event-toggle,.note-date-link):hover:not(:disabled){background:var(--row-hover)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):active:not(:disabled){background:var(--control-pressed)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@media (prefers-reduced-motion:reduce){.note-date-motion,.note-date-motion[data-open=true],.note-date-motion>*,.note-date-motion[data-open=true]>*,.note-date-event-toggle>svg{transition: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-card .note-date-picker button:focus-visible{outline-offset:-2px}.note-date-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-link>svg{flex:none}.note-date-link small{text-overflow:ellipsis;margin-top:3px;font-size:11px;display:block;overflow:hidden}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p{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}.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 12px}.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-actions{align-items:center;gap:12px;font-size:12px;line-height:18px;display:flex}.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){.player-btn:active{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}}}.summary-rewrite{position:relative}.summary-rewrite[data-rewriting=true]>.summary-result{opacity:.45;-webkit-user-select:none;user-select:none;pointer-events:none}.summary-rewrite[data-handoff=true]>.summary-result{animation:summary-rewrite-out var(--dur-micro) var(--ease-out) both;pointer-events:none}.summary-rewrite[data-resetting=true]{visibility:hidden}@keyframes summary-rewrite-out{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:no-preference){.summary-rewrite:is([data-rewriting=true],[data-handoff=true])>.summary-result{opacity:1}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,var(--written) 38%,var(--ink) 50%,var(--written) 62%) 0 0 / 250% 100%}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,color-mix(in srgb,var(--written) 45%,transparent) 38%,color-mix(in srgb,var(--ink) 90%,transparent) 50%,color-mix(in srgb,var(--written) 45%,transparent) 62%) 0 0 / 250% 100%}}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{color:#0000;-webkit-background-clip:text;background-clip:text;animation:2.8s linear infinite step-shimmer}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose :is(h1,h2,h3,p,li,strong,a,em){color:#0000}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:color-mix(in srgb,var(--ink) 31.5%,transparent)}}}.summary-stop-icon{place-items:center;width:14px;height:14px;display:inline-grid}.summary-stop-icon>*{transition:opacity var(--dur-base) var(--ease-out);grid-area:1/1}.summary-stop-square{opacity:0;background:currentColor;border-radius:2px;width:10px;height:10px}.note-resume-action[data-processing=true]{cursor:pointer}.note-resume-action[data-processing=true]:hover{background:var(--float)}.note-resume-action:is(:hover,:focus-visible) .summary-stop-icon>svg{opacity:0}.note-resume-action:is(:hover,:focus-visible) .summary-stop-square{opacity:1}.summary-stopped{color:var(--muted);flex-direction:column;align-items:flex-start;gap:8px;font-size:13px;display:flex}@media (prefers-reduced-motion:reduce){.summary-stop-icon>*{transition:none}}.renderer-recovery{background:var(--bg);height:100%;color:var(--ink);place-items:center;padding:72px 24px 24px;display:grid;position:relative}.renderer-recovery-titlebar{height:52px;position:absolute;inset:0 0 auto}.renderer-recovery-content{text-align:center;flex-direction:column;align-items:center;gap:16px;max-width:360px;font-size:14px;display:flex}.renderer-recovery-content .modal-button{width:auto;min-width:80px}.update-ready-status{max-width:35%}.update-ready-menu{width:max-content;min-width:286px;max-width:calc(100vw - 24px)}.update-ready-menu h2{font-size:12px;font-weight:550;line-height:18px}.update-ready-menu .update-ready-description{color:var(--muted);white-space:nowrap;text-wrap:nowrap;text-overflow:ellipsis;margin:6px 0 15px;font-size:11px;overflow:hidden}.update-ready-actions{justify-content:flex-end;align-items:center;gap:14px;font-size:12px;line-height:18px;display:flex}.update-ready-menu [role=alert]{max-width:320px;color:var(--muted);font-size:11px}.text-action,.ghost-btn,.workspace-button{box-sizing:border-box;white-space:nowrap;flex:none;justify-content:center;align-items:center;gap:6px;line-height:18px;text-decoration:none;display:inline-flex}.text-action{color:var(--muted);font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:3px;padding:4px 0;font-weight:400}.text-action:hover:not(:disabled){color:var(--ink)}.ghost-btn,.workspace-button{border:1px solid #0000;border-radius:6px;height:30px;padding:0 11px;font-size:12px}.ghost-btn{color:var(--muted);background:0 0;font-weight:400}.workspace-button{border-color:var(--line);background:var(--float);color:var(--ink);font-weight:500;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.ghost-btn:hover:not(:disabled),.ghost-btn:is(:where([aria-haspopup])[aria-expanded=true],[aria-pressed=true]):not(:disabled),.workspace-button:not(.primary):hover:not(:disabled){color:var(--ink);background:var(--control-hover)}.ghost-btn:active:not(:disabled),.workspace-button:not(.primary):active:not(:disabled){background:var(--control-pressed)}.text-action:disabled,.ghost-btn:disabled,.workspace-button:disabled{opacity:.45;cursor:default}.text-action:focus-visible,.ghost-btn:focus-visible,.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-icon{width:28px;height:28px;padding:0}.modal-actions>.workspace-button{width:100%}.widget-preview{--float:var(--pill);--ink:var(--pill-ink);--line:var(--widget-line);--control-hover:#ffffff14;--control-pressed:#ffffff20;--focus:var(--pill-accent)}: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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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{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;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}.note-topbar{top:10.5px}.note-topbar>div>button{width:30px;height:30px}.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 button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.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{flex:0 auto;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(.update-ready-status):has(.notes-download-status:not(.update-ready-status)){gap:8px}.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;position:relative;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,.meeting-day-exit{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}.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)}.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}: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 .workspace-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);text-wrap:balance;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-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:0;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-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-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-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}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.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 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:4px;margin-inline:2px 0;line-height:1;display:inline-flex;position:relative}.source-citation{border:1px solid var(--line);background:var(--card);max-width:180px;height:18px;color:var(--written);letter-spacing:0;border-radius:999px;justify-content:center;align-items:center;padding:0 7px;font-size:13px;font-weight:400;line-height:16px;display:inline-flex;position:relative}.source-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.source-citation:before{content:"";width:max(100%,24px);height:max(100%,24px);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.citation-anchor:has(.citation-group:not([data-single])){white-space:normal}.citation-group:not([data-single]){white-space:normal;display:inline}.citation-group:not([data-single]) .source-citation~.source-citation{margin-inline-start:4px}.source-citation:hover,.source-citation[aria-expanded=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 20%,var(--line));color:var(--ink)}.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:fit-content;min-width:min(280px,100vw - 24px);max-width:min(400px,100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:14px;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 14px}.citation-heading{min-width:0;color:var(--muted);justify-content:flex-start;align-items:baseline;gap:6px;font-size:12px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:260px;color:var(--muted);flex:0 auto;margin:0;font-size:12px;font-weight:400;line-height:18px;overflow:hidden}.citation-date{white-space:nowrap;flex:none;font-size:12px;line-height:18px}.citation-quote{color:var(--ink);letter-spacing:0;overflow-wrap:anywhere;max-height:min(320px,100vh - 160px);margin:8px 0;font-size:14px;font-weight:400;line-height:21px;overflow:auto}.citation-context{color:var(--written)}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;margin:4px 0 0;font-size:11px;display:flex}.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{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-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 button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.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}@media (prefers-reduced-motion:reduce){.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-tracer{pointer-events:none;opacity:0;fill:none;width:calc(100% + 2px);height:calc(100% + 2px);stroke:var(--primary);stroke-width:3px;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent));position:absolute;inset:-1px;overflow:visible}.ask-tracer rect{stroke-dasharray:1.05 98.95}@media (prefers-reduced-motion:reduce){.ask-tracer{display:none}}.ask-field{padding: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-scope-group{align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px);display:flex}.ask-scope{background:var(--control);min-width:0;max-width:100%;height:28px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.ask-scope:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope:disabled{opacity:.45}.ask-scope-group:has(.ask-scope-clear) .ask-scope{border-start-end-radius:0;border-end-end-radius:0}.ask-scope-clear{background:var(--control);width:26px;height:28px;color:var(--muted);border-start-end-radius:8px;border-end-end-radius:8px;flex:none;justify-content:center;align-items:center;display:flex}.ask-scope-clear:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope-clear:disabled{opacity:.45}.ask-picker h3:has(.text-action){justify-content:space-between;align-items:center;display:flex}.ask-scope-label{min-width:0;display:flex}.ask-scope-name{text-overflow:ellipsis;min-width:0;overflow:hidden}.ask-scope-others{white-space:pre;flex:none}.ask-scope>svg{flex:none}.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)}.ask-home-starters[data-instant]{transition:none}@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;border:1px solid var(--line);background:var(--float);max-height:min(340px,50vh);color:var(--ink);box-shadow:var(--shadow-soft);animation:ask-fade var(--dur-micro) var(--ease-out);border-radius:10px;padding:6px;overflow-y:auto}.ask-mention{width:min(380px,100vw - 32px);position:fixed}.ask-selector-positioner{z-index:80}.ask-picker.ask-selector{width:min(380px,100vw - 32px);max-height:min(380px,60vh,var(--available-height));color:var(--ink);flex-direction:column;display:flex;position:static;inset:auto;overflow:hidden}.ask-picker-search{border-bottom:1px solid var(--line);width:100%;min-width:0;color:var(--ink);text-overflow:ellipsis;background:0 0;border-radius:0;outline:none;flex:none;padding:10px 8px;font-size:13px}.ask-picker-search::placeholder{color:var(--muted)}.ask-picker-search:focus-visible{border-radius:0;outline:none}.ask-picker-results{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button:not(.text-action){text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button:not(.text-action)[data-active=true],.ask-picker button:not(.text-action):hover:not(:disabled){background:var(--card)}.ask-picker button:not(.text-action)>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:not(.text-action):active{background:var(--control-pressed)}.ask-picker button:not(.text-action)>svg{flex:none}.ask-picker button:not(.text-action):disabled{opacity:.45}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:10px;font-size:12px;overflow:hidden}.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{justify-content:flex-start;width:100%}.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}}@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-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-latest{z-index:3;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,.workspace-button){white-space:nowrap}@media (prefers-reduced-motion:reduce){.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)}}.note-reading-frame[data-resetting=true] .note-reading-clip{visibility:hidden}.workspace-button.primary{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)}.workspace-button.primary:active:not(:disabled){transform:scale(.97)}@media (prefers-reduced-motion:reduce){.workspace-button.primary{transition:none}.workspace-button.primary:active:not(:disabled){transform:none}}: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-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:21px;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] [data-testid=chat-suggestions]{visibility:hidden}html[data-fragment=ask] .fragment-ask{justify-content:center;align-items:center;padding:28px;display:flex;inset:0}.fragment-ask .ask-conversation{flex:none;width:100%;max-width:400px}.fragment-ask .ask-thread-wrap,.fragment-ask .ask-thread{flex:none;overflow:visible!important}.fragment-ask .ask-turn{gap:28px;margin:0}.fragment-ask .ask-turn>.ask-question{border-radius:14px 14px 4px;max-width:85%;padding:10px 14px}.fragment-ask .ask-turn>.chat-answer{border:1px solid var(--line);background:var(--float);border-radius:4px 14px 14px;margin:0 24px 0 32px;padding:12px 16px;font-size:14.5px;line-height:1.6}.fragment-ask .chat-answer>p{margin:0}.fragment-ask .chat-answer>p+p{margin-top:6px}.fragment-ask .fragment-byline{left:0;top:calc(var(--fragment-answer-top) + 12px);width:20px;height:20px;margin:0;position:absolute}.fragment-ask .fragment-byline>span{display:none}.fragment-ask .ask-turn>.chat-progress{left:48px;top:calc(var(--fragment-answer-top) + 12px);margin:0}@media (width<=320px){html[data-fragment=ask] .fragment-ask{padding:20px}.fragment-ask .ask-turn{gap:24px}.fragment-ask .ask-turn>.chat-answer{margin-right:0;font-size:14px}.fragment-ask .ask-turn>.ask-question{font-size:14px}}.fragment-ask .ask-turn>.chat-answer{opacity:var(--reply-opacity,1);transition:opacity .18s ease-out}@media (prefers-reduced-motion:reduce){.fragment-ask .ask-turn>.chat-answer{transition:none}}.fragment-plan[data-waiting=true] .fragment-plan-live{visibility:hidden}.summary-cue{position:absolute;inset:0}.summary-cue>span{color:var(--muted);margin-bottom:8px;font-size:14px;display:block}.fragment-ask .ask-thread-wrap .ask-thread{width:100%;min-width:0;max-width:100%}html[data-fragment=copy] #root{justify-content:center;align-items:center;display:flex;container-type:size}.copy-stage{width:182px;height:178px;transform:scale(clamp(.25,min(tan(atan2(calc(100cqw - 8px),182px)),tan(atan2(calc(100cqh - 6px),178px))),1));flex:none}.copy-stage>div{justify-content:flex-end;width:100%}.copy-stage [role=menu]{width:100%;box-shadow:var(--shadow-soft);animation:none}html[data-fragment][data-paused=true] *,html[data-fragment][data-paused=true] :before,html[data-fragment][data-paused=true] :after{animation-play-state:paused!important}.copy-stage [aria-haspopup=menu][aria-expanded=true]{height:30px;color:var(--ink);border:1px solid var(--line);box-shadow:none;background:0 0;border-radius:6px;gap:6px;padding:0 12px}
+@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-outline-style:solid;--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);--text-base:1rem;--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)}.end-4{inset-inline-end:calc(var(--spacing) * 4)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.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-\[80\]{z-index:80}.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-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-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.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-\[26px\]{width:26px;height:26px}.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-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-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-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 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)}.min-w-60{min-width:calc(var(--spacing) * 60)}.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}.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}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.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)}.p-3{padding:calc(var(--spacing) * 3)}.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-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.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)}.whitespace-nowrap{white-space:nowrap}.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}.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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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-disabled\:opacity-50[aria-disabled=true]{opacity:.5}@media (hover:hover){.aria-disabled\:hover\:bg-transparent[aria-disabled=true]: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+AAAAFgAAABAAAQABAiAAAQASAhICEwIVAhYCGAIZAhoCGwIcAh0CHgIfAiUCJwIoAikCKwIsAAEAAwIhAiICIwAAABAAxgADAAEECQAAAMQBzAADAAEECQABADgBlAADAAEECQACAA4BhgADAAEECQADAEwBOgADAAEECQAEADgBlAADAAEECQAFAFYA5AADAAEECQAGADYArgADAAEECQAOADYAeAADAAEECQAQACYAUgADAAEECQARABAAQgADAAEECQEAABgAKgADAAEECQEBAAwAHgADAAEECQECAAoAFAADAAEECQEHABAAQgADAAEECQELAAgADAADAAEECQETAAwAAABOAG8AcgBtAGEAbAAxADQAcAB0AFcAaQBkAHQAaABXAGUAaQBnAGgAdABPAHAAdABpAGMAYQBsACAAcwBpAHoAZQBTAGUAbQBpAEIAbwBsAGQAQgByAGkAYwBvAGwAYQBnAGUAIABHAHIAbwB0AGUAcwBxAHUAZQBoAHQAdABwAHMAOgAvAC8AcwBjAHIAaQBwAHQAcwAuAHMAaQBsAC4AbwByAGcALwBPAEYATABCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAxADsAZwBmAHQAbwBvAGwAcwBbADAALgA5AC4AMwAzAC4AZABlAHYAOAArAGcAMAAyADkAZQAxADkAZgBdADEALgAwADAAMQA7AEEAVABMAFIAOwBCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABSAGUAZwB1AGwAYQByAEIAcgBpAGMAbwBsAGEAZwBlACAARwByAG8AdABlAHMAcQB1AGUAIABTAGUAbQBpAEIAbwBsAGQAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMgAyACAAVABoAGUAIABCAHIAaQBjAG8AbABhAGcAZQAgAEcAcgBvAHQAZQBzAHEAdQBlACAAUAByAG8AagBlAGMAdAAgAEEAdQB0AGgAbwByAHMAIAAoAGgAdAB0AHAAcwA6AC8ALwBnAGkAdABoAHUAYgAuAGMAbwBtAC8AYQB0AGUAbABpAGUAcgB0AHIAaQBhAHkALwBiAHIAaQBjAG8AbABhAGcAZQApAAAAAABEAF0AaQB1AIUAlQDMANwA7AEQARwBLAE8AWUBdQGFAZEBnQG9AckB1QHhAe0B+QIpAmACmgKmAuoC9gMCAy0DYgNqA50DvQPJA/MD/wQPBB8ETgReBG4EegSGBJIEuQTFBNEE3QTpBQMFQgVOBVoFZgWABaIFrgW6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AJAAkQCWAJcAnwG7AbABvAIBAbYCMwCjALsAvADBAMUA1gDXANsA3QDqAOwA7gDzAPQA+gERARMBFAEYAR4BIQE0ATUBOgE7AUMBuQHUAboB/wGRAacB3QHuAfIB1QHNAjEBzgFHAcMCAAHPAjsB0QH9AYgBiQI0AgoBzAGqAjwBhwFIAcQBdgFzAXcBqQASAAIACgAXABAAFgAYAB0ALwAkACYALABCAD0APgA/ACIAVABgAFcAWABrAF4B9QBqAIMAfgCAAIEAmABuAR0AtACkAKwAuQCyALgAugC/ANEAxgDIAM4A5ADfAOAA4QDEAPgBBAD7APwBDwECAfYBDgEnASIBJAElATwBEgE+ABQAtgADAKUAFQC3ABsAvQAeAMAAHAC+ACAAwgAhAMMAMQDTAC0AzwAyANQAJQDHADYA2AA4ANoANwDZADoA3ABGAOgARADmAEUA5wBAAN4APADpAEkA7QBLAO8ATQDxAEwA8ABOAPIAUQD1AFMA9wBSAPYAVQD5AGkBDQBoAQwAbAEQAHEBFQBzARcAcgEWAHUBGQB3ARsAdgEaAHsBHwCPATMAjAEwAH8BIwCOATIAiwEvAI0BMQCTATcAmQE9AJoAoAFEAKIBRgChAUUAYgEGAIUBKQAJAKsAeAEcAHwBIAI4AjICOQI9AjoCNQIUAhUCGAIcAh0CGgITAhICHgIbAhYCGQCVATkAkgE2AJQBOAARALMAEwC1AAsArQANAK8ADgCwAA8AsQAMAK4ABACmAAYAqAAHAKkACACqAAUApwAuANAAMADSADMA1QAnAMkAKQDLACoAzAArAM0AKADKAEMA5QBBAOMAXwEDAGEBBQBZAP0AWwD/AFwBAABdAQEAWgD+AGMBBwBlAQkAZgEKAGcBCwBkAQgAggEmAIQBKACGASoAiAEsAIkBLQCKAS4AhwErAJwBQACbAT8AnQFBAJ4BQgGUAZUBkgGTAcEBwgG9Ab8BwAG+AdYB2AGrAZ4CDQHsAfEB4AHhAeQB8AHqAeIB4wHcAe8B7QHnAegB6wHlAdsCEQIOAg8CEAIDAgYCCAH0AfwB+wABAAAACgCeASoAAkRGTFQAfmxhdG4ADgB0AAhBWkUgAFxDQVQgAEhDUlQgAFxLQVogAFxNT0wgADRST00gADRUQVQgAFxUUksgAFwAAP//AAcAAAABAAIABQAGAAcACAAA//8ABwAAAAEAAgAEAAYABwAIAAD//wAHAAAAAQACAAMABgAHAAgABAAAAAD//wAGAAAAAQACAAYABwAIAAljY21wAIRkbm9tAH5mcmFjAFxsb2NsAFZsb2NsAFBsb2NsAEpudW1yAERwbnVtAD50bnVtADgAAAABAA8AAAABAA4AAAABAAwAAAABAAgAAAABAAkAAAABAAcAAAAPABAAEgAUABYAGAAaABwAHgAgACIAJAAmACgAKgAsAAAAAQANAAAAAgAAAAEALgaUBcQFrgWSBXYFkgV2BWIFTAUQBQIE9ATcBM4EtgSoApIChAJkBNwCPgTcAiAE3AIABNwB3gTcAboE3AGUBNwBbATcAUIE3AEWBNwA6ATcALgE3ACOBM4AbABeAAEAAAABAAgAAQAiAAsABgAAAAEACAADAAEEdgABABQAAQHmAAEAAAAtAAEAAQGQAAYAAAABAAgAAwABABIAAQRUAAAAAQAAACsAAgACAV4BZwAAAXIBcgAKAAYAAAABAAgAAwAAAAEEKgAMAZoBmgGaAZoBmgGaAZoBmgGaAZoBmgG+AAEAAAApAAYAAAABAAgAAwAAAAED+gALAWoBagFqAWoBagFqAWoBagFqAWoBjgABAAAAJwAGAAAAAQAIAAMAAAABA8wACgE8ATwBPAE8ATwBPAE8ATwBPAFgAAEAAAAlAAYAAAABAAgAAwAAAAEDoAAJARABEAEQARABEAEQARABEAE0AAEAAAAjAAYAAAABAAgAAwAAAAEDdgAIAOYA5gDmAOYA5gDmAOYBCgABAAAAIQAGAAAAAQAIAAMAAAABA04ABwC+AL4AvgC+AL4AvgDiAAEAAAAfAAYAAAABAAgAAwAAAAEDKAAGAJgAmACYAJgAmAC8AAEAAAAdAAYAAAABAAgAAwAAAAEDBAAFAHQAdAB0AHQAmAABAAAAGwAGAAAAAQAIAAMAAAABAuIABABSAFIAUgB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUC1gA2As8ANQPgADUCfgBOAoAATgLRADUCnQBOAp0ATgKdAE4CnQBOAocALwKHAC8ChwAvAocALwKHAC8CvQBKAjIAFQIyABUCMgAVAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQKZABYDzAAbA8wAGwPMABsDzAAbA8wAGwKiABgCbQAJAm0ACQJtAAkCbQAJAm0ACQJtAAkCbQAJAm0ACQI1ACICNQAiAjUAIgI1ACICQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgOVACoCdABHAjAAKgIwACoCMAAqAjAAKgIwACoCdAArAnQAKwJwACsCXQApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkBhQAYAlMAHAJTABwCUwAcAlMAHAJrAEcCbv/0AQwANwELAEcBCwBHAQv//gEL//YBCwA3AQwANwEM//gBCwAtAQsABwELABsBC//wAh0ANwER/+oBEf/qAkAARwJAAEcBCgBHAQoARwEKAEcBCgA1AWsAJgOhAEcCawBHAmsARwJrAEcCawBHAmsARwJrAEcCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCeAApAngAKQJ4ACkCeAApAngAKQJ4ACkCXwApAl8AKQJfACkCXwApA8IAKQJ0AEcCdABHAnQAKwGmAEcBpgBHAaYANgGmADoCGwAkAhsAJAIbACQCGwAkAhsAJAKhAEcBhQAQAYUAEAGFABACYwA/AmMAPwJjAD8CYwA/AmMAPwJjAD8CYwA/AmMAPwKIAD8CiAA/AogAPwKIAD8CiAA/AogAPwJjAD8CYwA/AmMAPwJjAD8CYwA/Ai8ADQNNABIDTQASA00AEgNNABIDTQASAicAEQJVADACVQAwAlUAMAJVADACVQAwAlUAMAJVADACVQAwAgAAIwIAACMCAAAjAgAAIwGmABUBogAUAosAFQKVADUBTQAfAlEALQJYABoCYQAZAlwAMwKMADUB9QAYAooAMwKGADMCaAAuAmgAKgJoACgCaAAhAmgAFAJoADgCaAAuAmgAKgJoADUCaAA4AcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYBKv+RA5YAIwOhACMESQAnA5AAIwQkABYDpQAjBDkAFgQ9AC8D0QAZAcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYA7gAAAO4AAAH0AAAD6AAAAfQAAAPoAAABLAAAAPoAAACnAAACaAAAANcAAAB4AAAAPwAAAAAAAACnAAABQAAQAUAAHQDXABcAtAADAOEAHADMAAQC4AAXARcANwEXADcBoQAVAZsAEADXABcBKwAXAZ8ACwHgAE4CawAVAWX/+gFd//IAsQAEAAH/QQFZAB8CEQAfAxEAHwI2AAABOQA7AS8ACQFfABkBUQAIAUAATgE2ABAAtAADAWoAAwF0ABUBdAAQAL4AFQC+ABABuQAZAbkAIADsABkA4gAVAVIAGQCoABkClwBOA8oAOALzABkCpwAjAjEALwOtACkCnwAbA9MACgFjABsAtgAZAV8AGQEJAE4BCQBOAasAFQHuABABogAVAz8AKQQ/AE4ClwBOApcANQIwACoClwA1AnwALwJwACsC5gAZAqQAHALNAC0C3AASAqoAMwLOABUCtAAlAqUAPANxACIDDwAgArEAJgS5AE4CSQAkAs4AFQIyABUCJwAVBCEAIgJhAAkCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKACQCCgAkAgoAOwIvAA0DzgAqAuwAOwHOAA4DCAAnAsAAFgLMAE4COQAtAqgAFQJxAD8CbgArA8IAGwVmABsB8QATAm4AEgH0ABUCbgAQAAAAFAAAABQAAAAUAAAAFAAAABQAAAAAAAAAFAAAABQAAAAQAAAAFAAAABEAAAAUAAAAFAAAABQAAAAUAAAAFAAAABQAAAAUAAAAFAAAABAAAAAQAAAAEAAAAA0AAAAUAAAAFAAAABQAAAALAAAAFAAAABQAAAASAAAAFAF3ABQAxwAUARsAFAEbABQBcgAUAWYAFAFmABQBEQAQAOAAFAFvABEBSAAUASIAFADPABQAAgAAAAAAAP+cADIAAAAAAAAAAAAAAAAAAAAAAAAAAAI+AAAAJADJAQIBAwEEAQUBBgEHAQgAxwEJAQoBCwEMAQ0AYgEOAK0BDwEQAREAYwCuAJAAJQAmAP0A/wBkARIAJwETARQA6QAoAGUBFQDIARYBFwEYARkBGgDKARsBHADLAR0BHgEfASAAKQAqAPgBIQEiACsBIwAsASQAzADNAM4A+gElAM8BJgEnASgBKQAtAC4BKgAvASsBLAEtAOIAMAAxAS4BLwEwAGYBMQAyANAA0QEyATMBNAE1ATYAZwE3ANMBOAE5AToBOwE8AT0BPgE/AUAAkQCvALAAMwDtADQANQFBAUIBQwA2AUQA5AD7AUUBRgA3AUcBSAA4ANQBSQDVAGgBSgDWAUsBTAFNAU4BTwFQAVEBUgFTAVQBVQFWADkAOgFXAVgBWQFaADsAPADrAVsAuwFcAV0BXgFfAD0BYADmAWEARABpAWIBYwFkAWUBZgFnAWgAawFpAWoBawFsAW0AbAFuAGoBbwFwAXEAbgBtAKAARQBGAP4BAABvAXIARwFzAQEA6gBIAHABdAByAXUBdgF3AXgBeQBzAXoBewBxAXwBfQF+AX8ASQBKAPkBgAGBAEsBggBMANcAdAB2AHcBgwGEAHUBhQGGAYcBiAGJAE0BigBOAYsATwGMAY0BjgDjAFAAUQGPAZABkQB4AZIAUgB5AHsBkwGUAZUBlgGXAHwBmAB6AZkBmgGbAZwBnQGeAZ8BoAGhAKEAfQCxAFMA7gBUAFUBogGjAaQAVgGlAOUA/AGmAIkAVwGnAagAWAB+AakAgACBAaoAfwGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgBZAFoBtwG4AbkBugBbAFwA7AG7ALoBvAG9Ab4BvwBdAcAA5wHBAJ0AngCbABMAFAAVABYAFwAYABkAGgAbABwBwgHDAcQBxQHGAccByAHJAcoBywHMAc0BzgHPAdAB0QHSAdMB1AHVAdYB1wHYAdkB2gHbAdwB3QHeAd8AvAD0AeAB4QD1APYB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMB9AH1AfYB9wH4AfkAAwH6AfsB/AH9Af4B/wIAAgECAgIDAgQCBQIGAgcCCAIJABEADwAdAB4AqwAEAKMAIgCiAMMAhwANAgoABgASAD8CCwIMABAAsgCzAEIACwAMAF4AYAA+AEAAxADFALQAtQC2ALcAqQCqAL4AvwAFAAoCDQAjAAkAiACGAIsAigCMAIMCDgIPAF8A6ACCAhAAwgIRAhICEwIUAIQCFQAHAhYCFwIYAhkCGgIbAhwCHQIeAh8CIAIhAiICIwCFAiQCJQImAJYADgDvAPAAuAAgAI8AIQAfAJUAlACTAKcAYQCkAEEAkgInAJwCKAIpAJoAmQClAioAmAAIAMYCKwIsAi0CLgIvAjACMQIyAjMCNAI1AjYCNwI4AjkCOgI7AjwCPQI+Aj8CQAJBAkICQwJEAkUCRgJHAkgCSQJKAksCTAJNAI4A3ABDAI0A3wDYAOEA2wDdANkA2gDeAOAGQWJyZXZlB3VuaTFFQUUHdW5pMUVCNgd1bmkxRUIwB3VuaTFFQjIHdW5pMUVCNAd1bmkwMUNEB3VuaTFFQTQHdW5pMUVBQwd1bmkxRUE2B3VuaTFFQTgHdW5pMUVBQQd1bmkxRUEwB3VuaTFFQTIHQW1hY3JvbgdBb2dvbmVrCkNkb3RhY2NlbnQGRGNhcm9uBkRjcm9hdAZFY2Fyb24HdW5pMUVCRQd1bmkxRUM2B3VuaTFFQzAHdW5pMUVDMgd1bmkxRUM0CkVkb3RhY2NlbnQHdW5pMUVCOAd1bmkxRUJBB0VtYWNyb24HRW9nb25lawd1bmkxRUJDB3VuaTAxMjIKR2RvdGFjY2VudARIYmFyAklKB3VuaTFFQ0EHdW5pMUVDOAdJbWFjcm9uB0lvZ29uZWsGSXRpbGRlB3VuaTAxMzYGTGFjdXRlBkxjYXJvbgd1bmkwMTNCBk5hY3V0ZQZOY2Fyb24HdW5pMDE0NQNFbmcHdW5pMUVEMAd1bmkxRUQ4B3VuaTFFRDIHdW5pMUVENAd1bmkxRUQ2B3VuaTFFQ0MHdW5pMUVDRQVPaG9ybgd1bmkxRURBB3VuaTFFRTIHdW5pMUVEQwd1bmkxRURFB3VuaTFFRTANT2h1bmdhcnVtbGF1dAdPbWFjcm9uBlJhY3V0ZQZSY2Fyb24HdW5pMDE1NgZTYWN1dGUHdW5pMDIxOAd1bmkxRTlFBlRjYXJvbgd1bmkwMjFBBlVicmV2ZQd1bmkxRUU0B3VuaTFFRTYFVWhvcm4HdW5pMUVFOAd1bmkxRUYwB3VuaTFFRUEHdW5pMUVFQwd1bmkxRUVFDVVodW5nYXJ1bWxhdXQHVW1hY3JvbgdVb2dvbmVrBVVyaW5nBlV0aWxkZQZXYWN1dGULV2NpcmN1bWZsZXgJV2RpZXJlc2lzBldncmF2ZQtZY2lyY3VtZmxleAd1bmkxRUY0BllncmF2ZQd1bmkxRUY2B3VuaTFFRjgGWmFjdXRlClpkb3RhY2NlbnQGYWJyZXZlB3VuaTFFQUYHdW5pMUVCNwd1bmkxRUIxB3VuaTFFQjMHdW5pMUVCNQd1bmkwMUNFB3VuaTFFQTUHdW5pMUVBRAd1bmkxRUE3B3VuaTFFQTkHdW5pMUVBQgd1bmkxRUExB3VuaTFFQTMHYW1hY3Jvbgdhb2dvbmVrCmNkb3RhY2NlbnQGZGNhcm9uBmVjYXJvbgd1bmkxRUJGB3VuaTFFQzcHdW5pMUVDMQd1bmkxRUMzB3VuaTFFQzUKZWRvdGFjY2VudAd1bmkxRUI5B3VuaTFFQkIHZW1hY3Jvbgdlb2dvbmVrB3VuaTFFQkQHdW5pMDEyMwpnZG90YWNjZW50BGhiYXIJaS5sb2NsVFJLB3VuaTFFQ0IHdW5pMUVDOQdpbWFjcm9uB2lvZ29uZWsGaXRpbGRlAmlqB3VuaTAyMzcHdW5pMDEzNwZsYWN1dGUGbGNhcm9uB3VuaTAxM0MGbmFjdXRlBm5jYXJvbgd1bmkwMTQ2A2VuZwd1bmkxRUQxB3VuaTFFRDkHdW5pMUVEMwd1bmkxRUQ1B3VuaTFFRDcHdW5pMUVDRAd1bmkxRUNGBW9ob3JuB3VuaTFFREIHdW5pMUVFMwd1bmkxRUREB3VuaTFFREYHdW5pMUVFMQ1vaHVuZ2FydW1sYXV0B29tYWNyb24GcmFjdXRlBnJjYXJvbgd1bmkwMTU3BnNhY3V0ZQd1bmkwMjE5BnRjYXJvbgd1bmkwMjFCBnVicmV2ZQd1bmkxRUU1B3VuaTFFRTcFdWhvcm4HdW5pMUVFOQd1bmkxRUYxB3VuaTFFRUIHdW5pMUVFRAd1bmkxRUVGDXVodW5nYXJ1bWxhdXQHdW1hY3Jvbgd1b2dvbmVrBXVyaW5nBnV0aWxkZQZ3YWN1dGULd2NpcmN1bWZsZXgJd2RpZXJlc2lzBndncmF2ZQt5Y2lyY3VtZmxleAd1bmkxRUY1BnlncmF2ZQd1bmkxRUY3B3VuaTFFRjkGemFjdXRlCnpkb3RhY2NlbnQHemVyby50ZgZvbmUudGYGdHdvLnRmCHRocmVlLnRmB2ZvdXIudGYHZml2ZS50ZgZzaXgudGYIc2V2ZW4udGYIZWlnaHQudGYHbmluZS50Zgl6ZXJvLmRub20Ib25lLmRub20IdHdvLmRub20KdGhyZWUuZG5vbQlmb3VyLmRub20JZml2ZS5kbm9tCHNpeC5kbm9tCnNldmVuLmRub20KZWlnaHQuZG5vbQluaW5lLmRub20JemVyby5udW1yCG9uZS5udW1yCHR3by5udW1yCnRocmVlLm51bXIJZm91ci5udW1yCWZpdmUubnVtcghzaXgubnVtcgpzZXZlbi5udW1yCmVpZ2h0Lm51bXIJbmluZS5udW1yB3VuaTIxNTMHdW5pMjE1NAlvbmVlaWdodGgMdGhyZWVlaWdodGhzC2ZpdmVlaWdodGhzDHNldmVuZWlnaHRocwd1bmkyMDgwB3VuaTIwODEHdW5pMjA4Mgd1bmkyMDgzB3VuaTIwODQHdW5pMjA4NQd1bmkyMDg2B3VuaTIwODcHdW5pMjA4OAd1bmkyMDg5B3VuaTIwNzAHdW5pMDBCOQd1bmkwMEIyB3VuaTAwQjMHdW5pMjA3NAd1bmkyMDc1B3VuaTIwNzYHdW5pMjA3Nwd1bmkyMDc4B3VuaTIwNzkHdW5pMDBBMAd1bmkyMDAyB3VuaTIwMDMHdW5pMjAwMAd1bmkyMDAxB3VuaTIwMDQHdW5pMjAwNQd1bmkyMDA2B3VuaTIwMDcHdW5pMjAwOAd1bmkyMDA5B3VuaTIwMEEHdW5pMjAwQgd1bmkyMDJGB3VuaTI3RTgHdW5pMjdFOQd1bmkyMDE2FnBlcmlvZGNlbnRlcmVkLmxvY2xDQVQbcGVyaW9kY2VudGVyZWQubG9jbENBVC5jYXNlB3VuaTBFM0YGbWludXRlBnNlY29uZAd1bmkyMTEzCWVzdGltYXRlZAd1bmkyMTE2B3VuaTIwQkYHdW5pMjBCNQ1jb2xvbm1vbmV0YXJ5BGRvbmcERXVybwd1bmkyMEIyB3VuaTIwQjQHdW5pMjBBRAd1bmkyMEJFBGxpcmEHdW5pMjBCQQd1bmkyMEJDB3VuaTIwQTYHdW5pMjBCMQd1bmkyMEJEB3VuaTIwQTgHdW5pMjBCOQd1bmkyMEI4B3VuaTIwQUUHdW5pMjBBOQhlbXB0eXNldAd1bmkyMTI2B3VuaTIyMDYHdW5pMDBCNQdhcnJvd3VwCmFycm93cmlnaHQJYXJyb3dkb3duCWFycm93bGVmdAd1bmkwMzA4B3VuaTAzMDcJZ3JhdmVjb21iCWFjdXRlY29tYgd1bmkwMzBCC3VuaTAzMEMuYWx0B3VuaTAzMDIHdW5pMDMwQwd1bmkwMzA2B3VuaTAzMEEJdGlsZGVjb21iB3VuaTAzMDQNaG9va2Fib3ZlY29tYgd1bmkwMzEyB3VuaTAzMUIM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AAAR7AAAEfIAABHmAAAR8gAAEfgAABHgAAAR2gAAEfIAABHUAAARzgAAEcgRwhG8EbYRsBHCEbwRthGqEcIRvBG2EaQRwhG8EbYRqhHCEZ4RthHIEcIRvBG2EZgRwhG8EbYRkhHCEbwRthGMEcIRvBG2EcgRwhGeEbYRyBHCEbwRthGGEcIRvBG2EcgRwhG8EbYRsBHCEbwRthHIEcIRnhG2EcgRwhG8EbYRhhHCEbwRthGAEcIRvBG2EXoRwhG8EbYRdBHCEbwRthFuEWgRYhFcEVYRwhG8EbYRUAAAEUoAABFEAAARPgAAETgAABM8AAASKAAAETIAABEsAAARMgAAESYAABEyAAASKAAAESAAABEaAAARFAAAEQ4AABEUAAARCAAAERQAABEaAAARAgAAERoAABD8AAAQ9gAAEPAAABDqAAAQ5AAAEN4AABDkAAAQ6gAAENgAABDSEMwQxhDAELoQzBDGEMAQtBDMEMYQwBCuEMwQxhDAEKgQzBDGEMAQ0hDMEKIQwBDSEMwQxhDAEJwQzBDGEMAQ0hCWEMYQwBC6EJYQxhDAENIQlhCiEMAQ0hCWEMYQwBCcEJYQxhDAEJAQlhDGEMAQihDMEMYQwBCEEMwQxhDAENIQzBDGEMAQfhDMEMYQwBCQEMwQxhDAEjoAABB4AAAQcgAAEGwAABBmAAAQbAAAEGAAABBsAAAQWgAAEGwAABByAAAQbAAAEFQAABBOAAAQSAAAEEIAABA8AAAQQgAAEDYAABBCAAAQMAAAEEIAABBIAAAQKgAAEEgAABBCAAAQJAAAEEIAABAeAAAQQgAAEBgAABASAAAQDAAAEBIAABAGAAAQEgAAEAAAABASAAAP+gAAD/QP7g/oAAAP9A/uD+IAAA/0D+4P3AAAD/QP7g/iAAAP1g/uD/oAAA/0D+4P0AAAD/QP7g/KAAAP9A/uD8QAAA/0D+4PvgAAD/QP7g+4AAAP9A/uD74AAA/WD+4P+gAAD/QP7g+yAAAP9A/uD6wAAA/0D+4PpgAAD/QP7g/6AAAP1g/uD/oAAA/0D+4PoAAAD/QP7g+aAAAP9A/uD/oAAA/0D+4PlAAAD/QP7g+OAAAP9A/uD4gAAA+CAAAPfAAAD3YAAA9wAAAPagAAD2QAAA9qAAAPXgAAD2oAAA9wAAAPWAAAD1IAAA9qAAAPTA9GD0AAAA9MD0YPQAAAD0wPRg9AAAAPOgAADzQPLg8oAAAPNA8uDyIAAA80Dy4PHAAADzQPLg8WAAAPNA8uDxwAAA9YDy4POgAADzQPLg8QAAAPNA8uDwoAAA80Dy4PBAAADzQPLg7+AAAPNA8uDzoAAA9YDy4POgAADzQPLg74AAAPNA8uDvIAAA80Dy4POgAADzQPLg7sAAAPNA8uDuYAAA7gAAAO2gAADtQAAA7OAAAO1AAADsgAAA7UAAAOwgAADtQAAA68AAAOtgAADrAAAA6qAAAOpAAAFOIAAA6eAAAOmAAADpIAAA6YAAAOjAAADpgAAA6GAAAOmAAADoAAAA6YAAAOpAAADnoAAA50AAAU4gAADm4AAA6YAAAOaAAADpgAAA6AAAAOmAAADmIAAA6YAAAOXAAADlYAAA5QAAAOVgAADkoAAA5EAAAOSgAADj4AAA44DjIOLAAADiYOMg4sAAAOOA4yDiwAAA44DjIOIAAADhoOFA4OAAAOCAAADgIAAA38AAAN9gAADfAAAA32AAAN6gAADfYAAA38AAAN5AAADd4AAA32AAAN2AAAEEIAAA3SDcwNxg3ADboNzA3GDcANtA3MDcYNwA2uDcwNxg3ADbQNzA2oDcAN0g3MDcYNwA2iDcwNxg3ADZwNzA3GDcANlg3MDcYNwA3SDcwNqA3ADdINzA3GDcANkA3MDcYNwA3SDcwNxg3ADboNzA3GDcAN0g3MDagNwA3SDcwNxg3ADZANzA3GDcANig3MDcYNwA2EDcwNxg3ADX4NzA3GDcANeA3MDcYNwA1yDcwNxg3ADWwAAA1mAAANYAAADVoAAA1UAAANTgAADUgAAA1CAAANPAAADUIAAA02AAANQgAADUgAAA0wAAANVAAADSoAAA0kAAANKgAADR4AAA0qAAANVAAADRgAAA1UAAANEgAADQwAAA0GAAANAAz6DPQAAA0ADPoM9AAADQAM+gzuAAAM6AziD0AM3AzWDOIPQAzcDNAM4g9ADNwMygziD0AM3AzEDOIPQAzcDOgM4gy+DNwM6AziD0AM3Ay4DOIPQAzcDOgMsg9ADNwM1gyyD0AM3AzoDLIMvgzcDOgMsg9ADNwMuAyyD0AM3AysDLIPQAzcDKYM4g9ADNwMoAziD0AM3AzoDOIPQAzcDJoM4g9ADNwMrAziD0AM3AyUAAAMjgAADIgAAAyCAAAMfAAADIIAAAx2AAAMggAADHAAAAyCAAAMiAAADIIAAAxqAAAMZAAADOgAAAxeAAAM1gAADF4AAAxYAAAMXgAADFIAAAxeAAAM6AAADEwAAAzoAAAMXgAADEYAAAxeAAAMQAAADF4AAAw6AAAMNAAADC4AAAw0AAAMKAAADDQAAAwiAAAMNAAADBwAAAAAAAAMFgAADBAAAAwKAAAMBAAAC/4AAAAAAAAL+AAAC/IAAAvsAAAL5gAAC+AAAAAAAAAL2gAAAAAAAAvUAAAAAAAAC84AAAvIAAALwgAAC7wAAAu2AAAAAAAAC7AAAAuqAAALpAAAC54AAAuYAAALkgAAEfgAABHyAAALjAAAC4YAAAuAAAALegAAC3QAAAtuAAALgAAAC3oAAAtoAAALYgAAD0wPRg9AAAALXAAAC1YAAAtQAAALSgAAC0QAAAs+AAALOAAACzIAAAssAAALJgAACyAAAAsaAAALFAAACw4AAAsIAAALAgAAAAEBMQAGAAEBMQKNAAECQAAHAAECFQKOAAEBFAAHAAEBFAKOAAEBmAAHAAEBmAKOAAEBogAAAAEBogKUAAEBuQAHAAEBuQKOAAEBRwAFAAEBRwKMAAEBmgAAAAEBmgKUAAEBQAANAAEBPwKHAAEBJgA5AAEBJwJEAAEBUQAHAAEBUQKOAAEBegAHAAEBegKOAAEBegAGAAEBegKNAAEA0AKkAAEA4QEeAAEBAwENAAEA8gKSAAEAzgKUAAEA0ADEAAEA4f8+AAEBA/8tAAEA8gCyAAEAzgC0AAEDNAFeAAECoAFeAAEA0ALCAAEA4QE8AAEBAwErAAEA8gKwAAEAzgKyAAEA0AFuAAEA4f/oAAEBA//XAAEA8gFcAAEAzgFeAAEBAQJyAAEBAQKSAAEBCgKQAAEBGAAAAAEBAQILAAEBMAJ0AAEBMgLYAAEBLf7vAAEBLwJ3AAEBLQLqAAEBLf9hAAEBHgAAAAEBHgIdAAEBqgJ3AAEBqALqAAEBsgKQAAEBsQAAAAEBqQILAAEBJAAAAAEBJAIcAAEBLgKMAAEBLgJtAAEBDwJ3AAEBLwJ0AAEChAKAAAEBMQLYAAEBPf+NAAEBLgJ3AAEBLALqAAEBLgLKAAEBNwKQAAECHAAAAAECHAILAAEBLgILAAEAwv7pAAEA0AAAAAEBDQLBAAEAxgILAAEBSgAAAAEBSgLBAAEA//7oAAEBE/+MAAEBBwKSAAEBEAKQAAEBDf//AAEAff7pAAEA1QKSAAEA3gKQAAEAiwAAAAEA1QILAAEA5AAAAAEBBwILAAEBbgAAAAEBbAILAAEB5AAAAAEB5AILAAEBMQJ0AAEBLQILAAEBLwJtAAEBEAJ3AAEBLwJzAAEBMwLYAAEBMAJ3AAEBMANTAAEBMQO3AAEBNf+NAAEBNwNvAAEBLgLqAAEBOQKQAAECHgAIAAEBNQAAAAECUQIdAAEBLwILAAEBNwILAAEBPQJzAAEBMP7pAAEBOwKRAAEBRAKPAAEBPgAAAAEBOwIKAAEB1wAAAAEB9QILAAEAtQAAAAEBKgLGAAEAtALCAAEAd/7pAAEAjQNHAAEAhQAAAAEA+QLGAAEAhALCAAEBIv7pAAEBMAAAAAEBUAJsAAEAiwILAAEAoP9nAAEAiwJyAAEAhgJzAAEAhgJtAAEAigLYAAEAhwILAAEAh/+NAAEAhgJyAAEAhgJ2AAEAhgKaAAEAjwKQAAEAhgAAAAEAhgILAAEAhwJyAAEBSQAAAAEBSQJsAAEBRwAAAAEBRwJsAAEBJQJzAAEBJQLoAAEBJQLKAAEBJv9oAAEBJQIMAAEA2AAAAAEA2AJuAAEBJwJ0AAEBJQJtAAEBKALYAAEBJQJyAAEBJQJ3AAEBJQNTAAEBJwO3AAEBLQNvAAEBIwLqAAEBJQKSAAEBLgKQAAEBif/8AAEBLAAAAAEBJQILAAEBPQAAAAECZQLGAAEBPQLBAAEBJwJyAAEBLP+NAAEBJwKSAAEBMAKQAAEBJgAAAAEBJwILAAEBhgAAAAEBbwILAAEBywAAAAEBywILAAEBKAJyAAEBJgKKAAEBJgJsAAEBKQLWAAEBJgJ2AAEBJgNSAAEBKAO1AAEBLgNuAAEBJALoAAEBJgKRAAEBJgMwAAEBKQOVAAEBKf+NAAEBLwNOAAEBJgLIAAEBLwKPAAECCwAAAAEBKQAAAAEBJgIJAAEBGwL7AAEBGwMbAAEBJAMZAAEBGwAAAAEBGwKUAAEBOQL9AAEBOwNhAAEBN/+NAAEBOAMAAAEBNgNzAAEBQAMZAAEBNwAAAAEBNwKUAAEBUQAAAAEBUQKUAAEB6AMAAAEB5gNzAAEB8QMZAAECFAAAAAEB5wKUAAEBTQAAAAEBagMVAAEBagL3AAEBSwMBAAEBbAL9AAEC8gMJAAEBbgNhAAEBav+NAAEBawMAAAEBaQNzAAEBagNTAAEBcwMZAAEBnv/2AAEBagAAAAECigKUAAEBagKUAAEBC/7pAAEBGQMbAAEBGQAAAAEBGQKUAAEBZAAAAAEBZAKUAAEBOP7pAAEBTP+NAAEBRQMaAAEBTgMYAAEBRQAAAAEBRQKTAAEBTv7pAAEBPwMbAAEBSAMZAAEBXAAAAAEBaQKUAAEBXwAAAAEBXwKUAAEB9gAAAAEB9gKUAAEBagL9AAEChAALAAEBbwADAAECugKXAAEBbwKXAAEBaAL3AAEBSQMBAAEBaAL8AAEBbANhAAEBaQMAAAEBaQPcAAEBagRAAAEBaP+NAAEBcAP4AAEBZwNzAAEBcQMZAAECfQAIAAEBaAAAAAECswKUAAEBaAKUAAEAAAAAAAEAAAAVAAEBgAL9AAEBcP7pAAEBfgMbAAEBhwMZAAEBfgAAAAEBfgKUAAEB8AAAAAEB7wKUAAEBXQAAAAEBjgKUAAEA3QKUAAEBAP7pAAEBDgAAAAEBPwKUAAEBRP7pAAEBUgAAAAEBTQKUAAEAsQAAAAEA4wKUAAEAjgL8AAEAjgL3AAEAkQNhAAEAjv+NAAEAjgL7AAEAjgMAAAEAjgMjAAEAlwMZAAEAzwAAAAEAjgAAAAEAjgKUAAEBpAAAAAEBpAKUAAEBbQAAAAEBbQKUAAEBZgL7AAEBWf7pAAEBZgNTAAEBZgAAAAEBZgKUAAEBJQAAAAEBJQKUAAEBNQL9AAEBMwL3AAEBNgNhAAEBMwL7AAEBMwMAAAEBMwPcAAEBNQRAAAEBMv+NAAEBOgP4AAEBMQNzAAEBMwMbAAEBPAMZAAECOwAAAAEBMgAAAAEBMwKUAAEBnAAAAAEBiAKUAAEBVQMbAAEBaQAAAAEBVQKUAAEBVwL7AAEBXf+NAAEBVwMbAAEBYAMZAAEBVwAAAAEBVwKUAAEBgAAAAAEBgAKUAAEB1gAAAAEB1gKUAAEBWgL9AAEBWAMVAAEBWAL3AAEBWwNhAAEBWAMAAAEBWAPcAAEBWgRAAAEBXwP4AAEBVgNzAAEBWAMbAAEBWAO7AAEBWwQgAAEBWP+NAAEBYQPYAAEBWANTAAEBYQMZAAECigAAAAEBWAAAAAEBWAKUAAIAFgABAG0AAABvAMMAbQDFAOgAwgDqAREA5gETAUYBDgFiAWIBQgFkAWQBQwFnAWcBRAFsAWwBRQFuAW4BRgFxAXEBRwF2AXcBSAGAAYABSgGCAYIBSwGFAYUBTAGKAYoBTQGMAYwBTgGPAY8BTwHJAckBUAHaAeIBUQHpAesBWgHwAfIBXQAXAAAAsgAAAKwAAACmAAAAoAAAAJoAAACaAAAAlAAAAI4AAACIAAAAlAAAAIIAAAB8AAEAdgACAHAAAgBqAAIAZAADAF4AAACUAAAAlAAAAJQAAACaAAAAmgAAAJoAAQC+AAAAAQCHAAAAAQBkAAAAAQBgAAAAAQBiAgoAAQBZAgoAAQBuAgsAAQC4AgoAAQBxAgoAAQCkAgoAAQCzAgoAAQCeAgMAAQBQAgsAAQBkAgoAAQC9AgoAAgAFAhICEwAAAhUCFgACAhgCJQAEAicCKQASAisCLAAVAAkACAADRzoGRgAMAAEAAgAAAAgAAgXwAAQAAAYEQRIACABeAAAAAP/5AB7/9//9AA4AAwADAAMABQAFAA4AA/+q//4AB//aAAMACv/tACgAAwAMABv/tP/K//r/8wAA/+3/8f/5AAD/qwAA/0v/oQAAAAAAAAAnAAD/wgAMAAAAAP97AAAAAAAAABAALQAEAAAAGwAAAAD/7gAEAAAACgAAAAAAAAAAAAD/7QAAAAAAGQAAAAAAAAABAAD/5gAA//8AAAAt//D/+QAAAAD/4gAAACMAFAAAAB4AAP/dAA0AAP///+wAEv/s//kABv/5AAAAAP/6//oABv/5/67////9/9MAAAAH/+YAGv/6ABUAF/+4/7b/7v/xAAD/5f/m/+8AAP+yAAD/pv+mAAAAAAAAACwAAP/AAAsAAAAA/6YAAAAAAAAADQA1//0AAAAYAAAAAP/s//0AAP/5AAAAAP/+AAAAAP/lAAAAAAAqAAAAAAAA//sAAP/iAAD//AAAACD/7f/4AAAAAP/jAAAALgAIAAAAEAAA/9IAEAAAAAH/8v+5AAT/9f/V/9L/7gAA/8//2wAAAAAAHf/w//8AHAAA/+MAAwAT/9f/2P/9ACn/vP/1AAQAAP/J/+P/4wAlABMALgAtACIACQADAAD/0wAAABgADQAAAAAAIwAAAB8AE//0/73//AAA/54AAAAA//4AAAAA/8YAAAAA//MAAAAA/8kAAAAA//8AAAAAAAAABAAAAA8AAP/zABb/vQAAACIAAP/5ACUAAP+4AAYAAAAAAAAABf/+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//gAAAAAAAAAAAAAAAAAAAAAAAAAA/+UAAAAA//T//v/wAAUAAAAAAAAAAwAAAAD/+//8AAD/6wABAAAAAP/wAAIAGAANAAgAAAAAAAD//v/5AAAAAAAAAAD/+AAA//v/9QAEAAwADwAAABEAAgAA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//cADAAAAAD//AAA//4AAP/3//T////0/+v/8QAK//b////6//f/9QAF//sAAP/v//4AAAAAAAAAAP/uABD/9v/+AAYADgAJAAAADgAA//7/8P/5//UAAP/1////9AAA//QAAwAAAAD/6gAF//v/7f/8AAD/7AAH//gAAAAAAAAAAP/y/8sABP/y/+P/5//vAAD/5v/x/+f/8AAW/+7//QAfAAD/7f//AA//5//l//wAHP/X//YAAP/w/+r/6v/2AAAAAAAiAB4AFAAAAAD/yP/a/94AIQAE/9v/3gAZADgAGQAZ//z/2AAAAAP/wwAAAAf//wAAAAL/6f/7//3/+v//AAD/6gAnAAL////h//EAAAAAAAMACAAI//kAF//eAAAAFQAKAAQAFAAL/8cAAAAE//oABAAA//8AAAAAAAD//v/7AAAABwAAAAAAAAAAAAAABwAA/9D//QAF/+4AAAAJAAAABgAAAAAAAv/M/+8AAAAAAAD/+v/+AAgAAAAA//b/+v/5AAD//AAAAAoAAP/g//QAFf/2//z/8v/r/+4AFwAFAAAAAgABAAL//wAEAAD/+AAEAAkAAQAQABoAAP/6AAAAAP/+//YAAf/4AAD//P/7/+kAAP/xAA0AAP/2/+QAHf/b/+H//gAAAAIAAf/8//v/+QAAAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7AAAAAAAAAAAAAAAFAAAAAAAA////5wAAAAP/9gAA//MACQAAAAAABAAAAAAAAP/5AAAAAAAAAAAAAAAA//IABQAcAAoACAAA//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//MAG//sAAAABAAM/7n/6//2/+P/5//f//MAAAAAAA4ACAADAAD/8QAAAA7/1wACABgAAP/KAAQAHAAjABgABAAQAAD/9AADAAAABf/5AAD/9f/8/9b/+f/+AAIAAP/oACUABAAB/8X/4f/aAAD/+gADAAD/9wAUABQAAAATAAAAAQAVAAAADAAA//4AEP/3/+8AAwAAAAAABP/z//8AAwAAAAAAAAAAAAAAAAAAAAD/6P/+AAD/+gAAAAMAAP/+AAIAAv///+3/7gAFAAAAAAAG//YADgAAAAD/9//9//4AAP/3AAD//gAA/+3/7QAAAAD//AAA/+z/8wAA//8AAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAgAAAAAAAcAAAAAAAAAAAAAAAAAAAAA//0AAAAA/+///QAB//wAAAAQ/+8AAP/8AAAAAP//AAD//v/8AAAAYQAXAAAAAAABAAAAAAABAG0AAAAOAAAADAAAAAAAAAAAAFAAAgACAAAAAAABABsAAAAAAAAACwAAAAAAAAAJAAAAAACGAHEAcgAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAACFAAP//gAAAE3/+wAAAFgAOwAAAFUAAAAZAAAAAAAAAAAAAAAAAAAATQAAAAAAAAAAAFIAAABXAAAAiAAAAAAAawAAAA8AAABzAAcAAABjAAAAUAABAAAAAAAAAAD/+P//AAAAAAAAAAAAAAAAAAAAAAAA/+z/+wAG//kAAAAAAAAABgAA//kAAP/4/+EAAAAAAAD////1AAb//f/+//v///////X/9gAA//8AAP/v//EAAAAA//8AAP/7//UACv/7AAMAAP/+AAAAAAAAAAAAAAAHAAAAAAAIAAAAAAAAAAAAAP//AAAAAAAAAAAAAP/8AAAAAP/zAAEAAAAAAAAACP/6AAD/+QAMAAAABQAAAAAAAAAA//4AB//x//8ABv/8ABIAAAAAABEAEf/8ABL/wP////v/6gAA//7//P/yABH////m/6wAAAAI//sAAAAAAAAAFAAAAAD/lv+b/5v/6P/0AAD/5AAA/9z/zAAAAAAAAAAAAAD/4//0/+T//wAAAAAAAAAA/////wAAAA0AAAAA//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//q/+0AAAAi/8f/+wAOAAD/lv/y/9UAEQAeAB8AFgASABMACwAA/9MAAAAfABEAAAAAABQAAAAkAB7//v+m//wAAP9XAAAAAAAAAAAAAP/HAAAAAP/xAAAAAP+YAAAAAAABAAAAAAAAAAIAAAAQAAD/9wAf/5YACwAkAAAACgAeAAD/xAABAAAABAAAABAACgAAAAD/8f+7AAD/8v/h/97/7gAA/9z/4//o/+MAHP/v//sAGQAA/+sAAQAH/+D/4//8ABz/y//zAAIAAP+b/+X/0AAGAA8AHAANAA0ACAAAAAD/0QAAABYADwAAAAAADgAAACQAHf/2/6b/8wAA/0YAAAAA//4AAAAA/7sAAAAA/+wAAAAA/50AAAAA//8AAAAAAAD//QAAAAcAAP/yACP/lv//ABoAAP/+ABcAAP/AAAAAAP/9AAAABAABAAAAAP/v/7kABP/1/9r/1//yAAD/1f/h/+L/3wAk//P//QAeAAD/5wAFAAz/2v/d//4AIf/B//EABgAA/5n/5f/OAAAAGQAfABMADwAAAAcAAP/QAAAAHAAVAAAAAAATAAAAJgAg//T/pv/4AAD/RgAAAAD//v/+AAD/vgAAAAD/5gAAAAD/sQAAAAAAAAAAAAAAAP/+AAAAEAAA//MAI/+WAAQAIwAA//gAGwAA/78ABgAA//8AAAAI//8AAAAAAAD/9//+AAAAAP//AAAAAP//AAAAAAAA/+f/+wAE//kAAAAA//8AA/////j////4/+0AAAAAAAAAAf/0AAz//P/+//oAAP/8//T/9gAA//8AAP/q/+oAAAAA//4AAP/2//QAAP/5AAEAAP/4AAAAAAAAAAAAAAAMAAAAAAAFAAAAAAAEAAAAAP/9AAAAAAAA//4AAP/9AAAAAP/x//3//wAAAAD//f/5AAD/9gAHAAAAAAAAAAAAAAAAAAD//wAL//0AAAAA//sAAAAA//z//AAA//v/8P//AAEAAAAAAAAACAAT//wAAAAT//n/1f//AA8AAP/f//P/+gAAAAAAAQAJAA0AAP/+AAAAGAAA//gAAgAG/90ACQAC/////wAUAB4AAP/9AA3//QACAAEAAP/5//0AAAAAAAcADgAA/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//7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AAIAawBsAAIAbQBuAAEAbwBvAAIAcABzAAEAdAB4ABAAegB8ABkAfQCPAAQAkACQACsAkQCVABEAlgCWACwAlwCeAA4AnwCiABUAowCpAAYAqgCyAAwAswC4AAYAuQC5AAwAugC6AAYAuwC7AAkAvAC9AAoAvgC+AAsAvwDAAAoAwQDDABYAxADEADgAxQDGAAoAxwDOAAsAzwDSAAoA0wDTAAsA1ADUAAoA1QDVAAsA1gDWADoA1wDaABcA2wDbAAkA3ADcAEIA3QDdABIA3gDeAAgA3wDfAAkA4ADgAEQA4gDjABIA5ADkAEUA5wDnABIA6QDpABIA6gDqAEYA7ADxAAkA8gDyAEgA8wD5AAgA+gD7AAcA/AECAA0BAwEKAAcBCwELAA0BDAEOAAcBDwEPAA0BEAEQAAcBEQERAAgBEgESAAkBEwETABYBFAEVAAgBFgEWAAkBFwEXAAgBGAEcABMBHQEdAAgBHgEgABwBIQEzAAUBNAE0AFwBNQE5ABQBOgE6AF0BOwFCAA8BQwFGABgBSQFJAFEBSgFKABsBSwFLAEwBTAFMAFoBTQFNAFgBTgFOAD0BTwFPADsBUAFQABsBUQFRAFUBUgFSADUBUwFTAEoBaAFoACYBbgFuACYBhgGGACcBhwGHAE0BiAGIAFsBiQGJAFkBigGKAD4BiwGLADwBjAGMACcBjQGNAFYBjgGOADYBjwGPAEsBoAGgAFMBoQGhAFABogGiADQBowGjADMBpAGkAFQBpQGlADcBpgGmADkBqAGoAFIBrAGsAC8BrwGvAFcBsAGwADABswGzAEMBtAG1AB4BtwG3AE4BuAG4AE8BugG6ADEBvAG8ADIBvwG/ACQBwAHAACUBwQHBACQBwgHCACUBwwHDACABxAHEAEABxQHFACABxgHGAEEBxwHIACMBywHLAC0B0gHTACEB8wH0ABoB9QH1AEkB9gH2ABoB9wH4AB8B+QH5AD8B+gH6AEcB/wH/AC4CDAINACIAAgB0ABgAGAACABkAGQAxABoAHgARAB8AIgAYACMAMwACADQANAAyADUAOAAZADkAOQAIADsAOwAIADwAPAAGAD0APQAIAEAAQAAIAEIARQAIAEcARwAGAEgASQAjAEoASwAgAE0ATQAgAE4ATgAzAE8AVAAIAFYAYQAEAGIAZwANAGgAawAEAGwAbAACAG0AbQA0AG8AbwAEAHAAcwAaAHQAeAASAHoAfAAhAH0AhAAGAIUAigAOAIsAjwAGAJAAkAA1AJEAlQATAJYAlgA2AJcAngAKAJ8AogAbAKMAuQABALoAugADALsAuwAcALwAwAAUAMEAwQAVAMIAwgAlAMMAwwA/AMQAxAAcAMUA1QADANYA1gBCANcA2gAdANsA3AAJAN0A3QAMAN4A3gAHAN8A3wAMAOIA4wAMAOQA5AAVAOcA5wAMAOkA6gAMAOwA7QAqAO4A7wAVAPAA8AAlAPEA8QAVAPIA8gBJAPMA+QAJAPoBBQAFAQYBCwAPAQwBDwAFARABEAADAREBEgAcARMBEwAHARQBFwAeARgBHAAWAR4BHgAwASABIAAwASEBKAAHASkBLgAQAS8BMwAHATUBOQAXATsBQgALAUMBRgAfAUoBSgArAU4BTgBEAU8BTwBDAVABUAAvAVIBUgAmAVMBUwArAZ8BnwBHAaEBoQBMAaIBogA+AaMBowA9AaUBpQBAAagBqABNAakBqQBOAawBrAA5AbMBswBGAbQBtQAnAbcBtwBLAbgBuAAkAbkBuQA7AboBugAkAbsBuwA8Ab8BvwAtAcABwAAuAcEBwQAtAcIBwgAuAcMBwwAoAcQBxAApAcUBxQAoAcYBxgApAccByAAsAcoBygA6AcsBywA3AfMB9AAiAfUB9QBKAfYB9gAiAfcB9wBBAfkB+QBFAfoB+gBIAf8B/wA4AAEAAgAAAAgAAQHuAAQAAADyLNIsyCyyLKgsqCyiLKIsoiyQLIosiix0LGosZCxKLCAsFiwAK8IrvCu2K7ArpitEKyoqtCoOKgAp7imwKZ4piClyKWApUikUKNoo1CiKJ+An2ifIJ7YnsCd2J1AnEiaEJjomFCXuJeQleiRwJGYkXCRGJDwjtiN0Iz4i1CLGIsAiuiKUIooiVCJOIkQiOiIUIgIh6CHSIcwhxiGEIX4hdCFCIRwiTiEOIPAiTiDOILQgliCQIGYgDB9uHyAfGh8EHvIe6B6iHoweNh4wHeodzB2iHZgdih2AHUYdKB0GHQAc+hz0HOoc2ByuHFQcThxIHDocNBwqG6gbkhrwGuoa4BraHPQawBqmGpgadhpwGmoaXBpCGdgZohk0GQoY1Bh2GGAYNhf0F8YXjBdaFwQW1hakFnIWQBYOFdgVphV4FXIVbBVmFWAVYBVaFVoVUBVKFUQU/hTMFI4URBPiE4wTOhLoEs4SfBJSEjQSFhHoEcYRoBGGEWQRDhD0ENYQyBC2EGwQQhAED9IPfA8+DzQPJg7QDlINzA1+DVwNPgxYDC4MEAv+C5gLcgs0CroKgAomCawJjglsCWYJSAjaCFAILgf8B94HwAeuB1gHGga4BiIF/AWWBWAFSgVABP4E4ARiA+ADugACAEwAAQACAAAACgAQAAIAEgASAAkAFAAVAAoAFwAaAAwAHAAcABAAHwAfABEAIwAlABIALAAsABUAMgAyABYANAA1ABcAOQA7ABkAPQA/ABwAQQBBAB8ARABKACAATABNACcATwBQACkAVQBWACsAagBqAC0AbQBwAC4AdAB0ADIAdgB2ADMAeQB9ADQAgQCBADkAkACRADoAlgCZADwAmwCbAEAAnwCfAEEAoQChAEIAowCjAEMArACsAEQAsgCyAEUAtAC0AEYAtwC3AEcAugC8AEgAvgC/AEsAwQDFAE0AyADIAFIAzgDOAFMA1ADXAFQA2wDdAFgA3wDqAFsA7ADsAGcA7gDuAGgA8ADxAGkA8wD0AGsA+QD6AG0A/AD8AG8BAgECAHABDAEMAHEBEAERAHIBEwEWAHQBGAEYAHgBGgEbAHkBHQEhAHsBJQElAIABLwEvAIEBMQExAIIBNAE1AIMBOgE7AIUBPQE9AIcBRwFTAIgBXgFyAJUBfAGPAKoBnwGiAL4BpAGpAMIBrgGwAMgBswG1AMsBtwG7AM4BvQHIANMBygHLAN8B0gHTAOEB4gHiAOMB8wH1AOQB9wH/AOcCDAINAPAACQGhABYBogAJAaj/9AGs/8YBuP/zAb//lAHA/5cBwf+iAcL/ogAgAYb/0gGH/9YBiP/xAYn/5wGK/9ABi//cAYz/0wGN/9sBjv/iAY//3gGhABYBogAJAaMADQGkAAABpv//Aaj/9QGs/8YBswAJAbQACQG1AAkBuP/zAbz/9wG//6MBwP+fAcH/qwHC/6gBwwASAcQADgHFABIBxgAYAcf/qgHI/64AHwDW//4A1//5AOr/8AE0//QBNf/4ATv/8wFK//wBS//qAUz/4QFN/9QBTv//AU//9QFQ//wBUf+2AVL/6QFT//QBof+7AaL/twGm/+oBqP/cAaz/7gGv/9YBt//3Abj/2QG8/9QBv//RAcD/2AHB/+UBwv/lAcf/3gHI/98ABwAB/+8BS//4AUz//QFNAAABUf/nAbj/7QG/AAIAEABH//4Alv/hAUr/9QFL//UBTP/5AU3//QFP//UBUP/2AVH/4gFp/+kBav/uAW//3gFx//ABt//0Abj/5AG8/+IAAgFR//4BuP//AAUAev/hAUv/+QFM//8BUf/jAbj/6QANANf/7ADq//AA+v/2ATv/8gFNAAIBUf/8AWn/8QFr//EBb//sAbf/8wG4//QBvP/6Afr/2wAZANf/8QDq/+wA+v/4ATT/8wE1//UBO//xAUv/6AFM/+cBTf/ZAU//7wFR/7sBUv/rAVP/8QFo/+8Baf/dAW7/8AFv/98Bcf/wAbf/9AG4/9cBvP/RAcf/5AHI/+QB+f/bAfr/9AAJAAH/5QBQ//IAl//eALv/9AFK//wBS//0AUz/8wFR/+EBuP/iACUA1v/7ANf/8wDq//AA+v/4ATT/+wE1//0BO//zAUn//AFK//kBS//zAUz/8QFN//sBTgAAAU//8wFQ//kBUf/bAVL/9QFT//YBaP/0AWn/6QFu//QBb//cAXH/8gGh/+wBov/mAbf/9gG4/+EBvP/ZAb//7wHA//EBwf/vAcL/8QHH//MByP/zAfP/5AH0/+YB9//4ABgA1//mAUr/8AFL/+8BTP/zAU3/8gFO//sBT//tAVD/8AFR/9EBUv/yAVP/8wFo/+8Baf/aAWr/6QFt/+gBbv/wAW//ywFx/+UBt//qAbj/1wG///gBwP/3Acf/9QHI//UADwDq/+UBNP/nATX/7gE7/+oBSf/lAUz/0QFp/9UBa//0AWz/8QFt/+gBb//aAXD/7QFx/+oBv//AAcD/wQAVALL/5QDW//YA1//wAOr/5QD6//UBNP/oATX/7gE7/+kBSf/lAU3/ywFp/9UBbP/xAW3/6AFv/9oBcP/tAXH/6gGm/+ABv//OAcD/0wHG//gByP/OAAQBS//5AVH/9AGN/+cBuP/4AAcBof+WAaL/pwGv/8QBs//SAbgAHgHD/9oBxf/aAAcBSv/1AU7/ygGh/6cBov+rAbP/0gG4AB4B0gASAAwA1gAAATT/7gE1//YBS//nAVH/1wG4//IBv//IAcD/yQHB/8gBwv/JAcf/xwHI/8cACAE0//kBNf/+AUv/9AFR/9kBuP/qAbz/5gHH//AByP/wACIACv/E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)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);--dur-player-duck:.16s;--dur-player-return:.36s;--ease-player-duck:linear(0, .00391, .01563, .03516, .0625, .09766, .14063, .19141, .25, .31641, .39063, .47266, .5625, .66016, .76563, .87891, 1);--ease-player-return:linear(0, .02869, .10244, .2049, .32261, .44499, .56409, .67433, .77212, .85554, .92399, .97783, 1.01814, 1.04642, 1.06443, 1.07399, 1.07691, 1.07484, 1.06925, 1.06143, 1.0524, 1.04299, 1.03381, 1.0253, 1.01775, 1.0113, 1.006, 1.00182, .99869, .99649, .99508, .99432, .99409, .99423, .99466, 1, 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-retry{color:#ffb0bd}.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{bottom:12px;position:absolute;inset-inline-start:50%;translate:-50%}[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{margin-top:10px;display:flex}.widget-preview .page-loading{--control:#ffffff14}.summary-regenerate{z-index:40;border:1px solid var(--line);background:var(--float);width:420px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);inset-inline-end:0;border-radius:9px;padding:14px;position:absolute;top:calc(100% + 8px);overflow:hidden}.summary-regenerate-heading{white-space:nowrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:12px;font-weight:500;line-height:20px;display:flex}.summary-regenerate-input{border:1px solid var(--control-border);background:var(--control);width:100%;height:36px;color:var(--ink);border-radius:6px;padding:0 10px;font-size:12px}.main-window .summary-regenerate-input:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.summary-regenerate-input::placeholder{color:var(--muted)}.summary-regenerate-warning{color:var(--muted);white-space:nowrap;margin-top:10px;font-size:12px;line-height:20px}.summary-regenerate-actions{justify-content:flex-end;margin-top:12px;display:flex}.note-chip,.note-record-action{height:32px}.note-chip{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{outline:2px solid var(--accent);outline-offset:2px}.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:not([data-motion=instant]){transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.menu-entry:not([data-motion=instant]){opacity:0;transform:scale(.97)}}.menu-entry:not([data-motion=instant])[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,.menu-entry:not([data-motion=instant]){transition:opacity var(--dur-micro) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{transform:none}@starting-style{.menu-entry:not([data-motion=instant]){transform:none}}}@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) backwards}.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-text[data-resize]{transition:width var(--dur-base) var(--ease-out);display:inline-block;overflow:hidden}.swap-text[data-resize]>span{white-space:nowrap;width:max-content;display:block}.swap-text[data-resize] .swap-in{animation-name:motion-fade}@media (prefers-reduced-motion:reduce){.swap-text[data-resize]{transition:none}}.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;visibility:hidden;min-height:0;transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-base);overflow:hidden}.accordion[data-open=true]>*{opacity:1;visibility:visible;transition:opacity var(--dur-base) var(--ease-out) 40ms,visibility 0s}@media (prefers-reduced-motion:reduce){.accordion{transition:none}.accordion>*,.accordion[data-open=true]>*{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{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-outline{pointer-events:none;padding-top:5px;font-size:15px}.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,var(--line) 50%,var(--line) 100%);border-radius:3px;height:8px}@supports (color:color-mix(in lab, red, red)){.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,color-mix(in srgb,var(--line) 40%,var(--card)) 50%,var(--line) 100%)}}.summary-outline-bar{background-size:200% 100%;animation:1.6s ease-in-out infinite shimmer}.summary-outline-heading{width:30%;height:11px;margin-bottom:16px}.summary-outline-block+.summary-outline-block{margin-top:29px}.summary-outline-bullet{align-items:center;gap:calc(1.3em - 4px);margin-bottom:14px;display:flex}.summary-outline-bullet:before{content:"";background:var(--line);border-radius:50%;flex:none;width:4px;height:4px}.summary-outline-bullet .summary-outline-bar{width:80%}.summary-outline-bullet:nth-child(3) .summary-outline-bar{width:58%}.summary-outline-block+.summary-outline-block .summary-outline-bullet:nth-child(2) .summary-outline-bar{width:70%}.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-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-outline-bar,.summary-outline-block{opacity:.75;animation:none}.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) backwards}.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) backwards}.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) backwards}.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;padding-inline:20px;display:flex}.search-field{min-width:0;font-size:var(--text-base);flex:1;line-height:24px;position:relative}.search-field input{width:100%;min-width:0;height:60px;color:var(--ink);caret-color:var(--accent);font:inherit;letter-spacing:inherit;background:0 0;border:0;outline:none;padding:18px 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:18px;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 20px 12px;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{font-size:var(--text-xs);color:var(--muted);padding:12px 12px 4px;font-weight:500;line-height:16px}.command-row{min-height:40px;font-size:var(--text-sm);cursor:default;border-radius:7px;align-items:center;gap:10px;padding:8px 12px;font-weight:500;line-height:20px;display:flex}.search-row>svg,.search-row>.folder-glyph{width:16px;height:16px;color:var(--muted);flex:none}.search-filter>.folder-glyph{color:var(--muted)}.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:10px;min-height:48px;padding:8px 12px;display:flex}.search-metadata{max-width:35%;color:var(--muted);font-size:var(--text-xs);text-align:end;font-variant-numeric:tabular-nums;flex:none;line-height:18px}.search-metadata>span{display:block}.search-return{visibility:hidden;flex:none}.search-row[aria-selected=true] .search-return{visibility:visible}.search-key{min-width:20px;height:20px;font:var(--text-xs) var(--font-sans);white-space:nowrap;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;flex:none;place-items:center;padding:0 4px;display:inline-grid}.search-footer{border-top:1px solid var(--line);min-height:44px;color:var(--muted);font-size:var(--text-xs);background:var(--card);flex:none;align-items:center;gap:14px;padding:10px 20px;display:flex}.search-footer>span{white-space:nowrap;align-items:center;gap:5px;display:flex}@media (width<=480px){.search-input-row,.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;text-overflow:ellipsis;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-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}.workspace .note-record-action:focus-visible{outline-offset:-2px}.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}[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-latest{z-index:1;bottom:8px;position:absolute;inset-inline-start:calc(50% - 14px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.ask-turn .chat-answer-actions{opacity:0;transition:opacity var(--dur-base) ease,transform 0s linear var(--dur-base);transform:translateY(2px)}.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{opacity:1;transition:opacity var(--dur-surface) var(--ease-out) 60ms,transform var(--dur-surface) var(--ease-out) 60ms;transform:none}@starting-style{.ask-turn[data-show-copy] .chat-answer-actions{opacity:0;transform:translateY(2px)}}.ask-turn[data-show-copy] .chat-answer-actions{transition-delay:.15s}@media (prefers-reduced-motion:reduce){.ask-turn .chat-answer-actions,.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}@media (hover:none){.ask-turn .chat-answer-actions{opacity:1}}.chat-answer-scope{min-width:0;color:var(--muted);white-space:pre;align-items:center;margin-inline-start:-5px;font-size:11px;line-height:16px;display:flex}.chat-answer-scope:before{content:"·";flex:none;margin-inline-end:8px}.chat-copy-action{margin-inline-start:-10px}.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{flex:1;align-self:flex-start;align-items:center;min-width:32px;height:34px;margin-inline-start:auto;display:flex;container-type:inline-size}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;justify-content:flex-end;width:100%;padding:0}.note-primary-tools .transcript-find-clip{width:clamp(240px,100cqw,376px)}.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}.note-primary-tabs{z-index:2}.transcript-find{z-index:2;clip-path:inset(-4px -4px -4px -600px);width:32px;height:32px;position:relative}.ghost-btn.transcript-find-trigger{opacity:1;width:32px;height:32px;transition:opacity var(--dur-micro) var(--ease-out) var(--dur-micro);justify-content:center;padding:0}.transcript-find[data-open=true] .transcript-find-trigger{opacity:0;pointer-events:none;transition-delay:0s}.transcript-find-clip{opacity:0;pointer-events:none;width:min(376px,100vw - 48px);height:32px;transition:transform var(--dur-micro) var(--ease-out),opacity var(--dur-micro) var(--ease-out);inset-inline-end:0;border-radius:6px;position:absolute;top:0;overflow:hidden;transform:translate(calc(100% - 32px))}.transcript-search-field{background:var(--control);height:32px;transition:transform var(--dur-micro) var(--ease-out);border-radius:6px;align-items:center;gap:8px;padding-inline:10px 4px;display:flex;transform:translate(calc(32px - 100%))}.transcript-find[data-open=true] .transcript-find-clip{opacity:1;pointer-events:auto;transition-duration:var(--dur-base);transform:none}.transcript-find[data-open=true] .transcript-search-field{transition-duration:var(--dur-base);transform:none}.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px var(--ink)}@supports (color:color-mix(in lab, red, red)){.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 22%,transparent)}}[data-testid=transcript-search]{width:0;min-width:0;height:100%;color:var(--ink);text-align:start;background:0 0;border:0;flex:1;padding:0;font-size:13px;font-weight:400;line-height:20px}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-find-controls{flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results{opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results[data-visible=true]{opacity:1;pointer-events:auto}.transcript-find-count{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:end;flex:none;font-size:11px;line-height:20px;display:grid}.transcript-find-count>span{grid-area:1/1}.transcript-find-reserve{visibility:hidden}.transcript-find-arrows{flex:none;align-items:center;gap:2px;display:flex}.transcript-find-controls svg{display:block}.transcript-find-close{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-find[data-open=true] .transcript-find-close{opacity:1;transition-delay:var(--dur-micro)}::highlight(transcript-find){background:var(--accent-soft);color:var(--ink)}::highlight(transcript-find-current){background:var(--primary);color:#fff}.transcript-find: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)){clip-path:inset(-4px -600px -4px -4px)}.transcript-find: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)) .transcript-find-clip{transform:translate(calc(32px - 100%))}.transcript-find: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)) .transcript-search-field{transform:translate(calc(100% - 32px))}.transcript-find: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))[data-open=true] :is(.transcript-find-clip,.transcript-search-field){transform:none}.note-primary-tools [data-find-below=true] .transcript-find{clip-path:inset(-4px -4px -48px -600px)}.note-primary-tools [data-find-below=true] .transcript-find: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)){clip-path:inset(-4px -600px -48px -4px)}.note-primary-tools [data-find-below=true] .transcript-find-clip{width:min(376px,100vw - 60px);top:40px}@media (prefers-reduced-motion:reduce){.transcript-find[data-open] :is(.transcript-find-trigger,.transcript-find-clip,.transcript-search-field,.transcript-find-results,.transcript-find-close){transition: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%}}@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}[data-testid=transcript-panel] [data-testid=transcript]{padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-player-dock{z-index:1;clip-path:inset(-16px -16px -12px);inset-inline:max(16px,50% - 206px);position:absolute;bottom:12px}.transcript-player{border:1px solid var(--line);background:var(--float);border-radius:22px;padding:5px 8px}@supports (color:color-mix(in lab, red, red)){.transcript-player{background:color-mix(in srgb,var(--float) 96%,transparent)}}.transcript-player{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:1;transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-player-return) var(--ease-player-return);transform:translateY(0);box-shadow:0 2px 8px #0000000d}.transcript-player-dock[data-hidden=true] .transcript-player{opacity:0;pointer-events:none;transition:transform var(--dur-player-duck) var(--ease-player-duck),opacity calc(var(--dur-player-duck)/4) linear calc(var(--dur-player-duck)*.75);transform:translateY(calc(100% + 12px))}@media (prefers-reduced-motion:reduce){.transcript-player,.transcript-player-dock[data-hidden=true] .transcript-player{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}[data-testid=transcript-panel] [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-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)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{margin-inline-start:auto}.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}.grouped-people{max-height:386px}.grouped-people section+section{margin-top:6px}.company-heading{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:8px 10px 3px;font-size:11px;font-weight:500;line-height:16px;overflow:hidden}.grouped-people .person-row{gap:9px}.person-initials{background:var(--control);width:28px;height:28px;color:var(--muted);border-radius:50%;flex:none;place-items:center;font-size:10px;font-weight:500;display:grid}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-card{--note-date-ms:var(--dur-base);--note-date-ease:var(--ease-out)}.note-date-swap{position:relative;overflow:hidden}.note-date-retiring{pointer-events:none;position:absolute;inset:0 0 auto}.note-date-retiring,.note-date-retiring *{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.note-date-card{--note-date-ms:0s}}.note-date-card .agenda-inspector-heading h3{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.note-date-linked{flex-direction:column;display:flex}.note-date-picker-space{padding-top:0}.note-date-linked .note-date-picker-motion{margin-inline:-8px}.note-date-linked .note-date-picker-motion[data-open=true]{margin-top:12px}.note-date-linked:last-child .note-date-picker-motion[data-open=true]{margin-bottom:-8px}.note-date-motion,.note-date-motion[data-open=true]{transition:grid-template-rows var(--note-date-ms) var(--note-date-ease),margin-top var(--note-date-ms) var(--note-date-ease),margin-bottom var(--note-date-ms) var(--note-date-ease)}.note-date-motion>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s var(--note-date-ms)}.note-date-motion[data-open=true]>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s}.note-date-details-motion[data-open=false]{margin-top:-16px}.note-date-linked .note-date-link{gap:6px}.note-date-details{flex-direction:column;gap:16px;display:flex}.note-date-event-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.note-date-event-toggle{text-align:start;border-radius:6px;align-items:flex-start;gap:10px;width:calc(100% + 16px);margin:-8px;padding-block:3px 5px;padding-inline:8px 5px;display:flex}.note-date-color{border-radius:3px;flex:none;width:10px;height:10px;margin-top:5px}.note-date-actions{min-height:28px}.note-date-actions .note-date-access{flex-wrap:nowrap}.note-date-actions p{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-reveal{opacity:1;transition:opacity var(--dur-micro) var(--ease-out)}.note-date-reveal[data-ready=false]{opacity:0}@media (prefers-reduced-motion:reduce){.note-date-reveal{transition:none}}.note-date-identity{flex:1;min-width:0}.note-date-identity>strong,.note-date-time,.note-date-calendar{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-identity>strong{font-size:14px;font-weight:600;line-height:21px}.note-date-time{color:var(--written);margin-top:3px;font-size:12px;line-height:18px}.note-date-calendar{min-height:16px;color:var(--muted);margin-top:3px;font-size:11px;line-height:16px}.note-date-event-toggle>svg{color:var(--muted);transition:transform var(--note-date-ms) var(--note-date-ease);flex:none;margin-top:4px}.note-date-linked :is(.note-date-event-toggle,.note-date-link):hover:not(:disabled){background:var(--row-hover)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):active:not(:disabled){background:var(--control-pressed)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@media (prefers-reduced-motion:reduce){.note-date-motion,.note-date-motion[data-open=true],.note-date-motion>*,.note-date-motion[data-open=true]>*,.note-date-event-toggle>svg{transition: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-card .note-date-picker button:focus-visible{outline-offset:-2px}.note-date-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-link>svg{flex:none}.note-date-link small{text-overflow:ellipsis;margin-top:3px;font-size:11px;display:block;overflow:hidden}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p{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}.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 12px}.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-actions{align-items:center;gap:12px;font-size:12px;line-height:18px;display:flex}.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){.player-btn:active{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}}}.summary-rewrite{position:relative}.summary-rewrite[data-rewriting=true]>.summary-result{opacity:.45;-webkit-user-select:none;user-select:none;pointer-events:none}.summary-rewrite[data-handoff=true]>.summary-result{animation:summary-rewrite-out var(--dur-micro) var(--ease-out) both;pointer-events:none}.summary-rewrite[data-resetting=true]{visibility:hidden}@keyframes summary-rewrite-out{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:no-preference){.summary-rewrite:is([data-rewriting=true],[data-handoff=true])>.summary-result{opacity:1}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,var(--written) 38%,var(--ink) 50%,var(--written) 62%) 0 0 / 250% 100%}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,color-mix(in srgb,var(--written) 45%,transparent) 38%,color-mix(in srgb,var(--ink) 90%,transparent) 50%,color-mix(in srgb,var(--written) 45%,transparent) 62%) 0 0 / 250% 100%}}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{color:#0000;-webkit-background-clip:text;background-clip:text;animation:2.8s linear infinite step-shimmer}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose :is(h1,h2,h3,p,li,strong,a,em){color:#0000}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:color-mix(in srgb,var(--ink) 31.5%,transparent)}}}.summary-stop-icon{place-items:center;width:14px;height:14px;display:inline-grid}.summary-stop-icon>*{transition:opacity var(--dur-base) var(--ease-out);grid-area:1/1}.summary-stop-square{opacity:0;background:currentColor;border-radius:2px;width:10px;height:10px}.note-resume-action[data-processing=true]{cursor:pointer}.note-resume-action[data-processing=true]:hover{background:var(--float)}.note-resume-action:is(:hover,:focus-visible) .summary-stop-icon>svg{opacity:0}.note-resume-action:is(:hover,:focus-visible) .summary-stop-square{opacity:1}.summary-stopped{color:var(--muted);flex-direction:column;align-items:flex-start;gap:8px;font-size:13px;display:flex}@media (prefers-reduced-motion:reduce){.summary-stop-icon>*{transition:none}}.renderer-recovery{background:var(--bg);height:100%;color:var(--ink);place-items:center;padding:72px 24px 24px;display:grid;position:relative}.renderer-recovery-titlebar{height:52px;position:absolute;inset:0 0 auto}.renderer-recovery-content{text-align:center;flex-direction:column;align-items:center;gap:16px;max-width:360px;font-size:14px;display:flex}.renderer-recovery-content .modal-button{width:auto;min-width:80px}.update-ready-status{max-width:35%}.update-ready-menu{width:max-content;min-width:286px;max-width:calc(100vw - 24px)}.update-ready-menu h2{font-size:12px;font-weight:550;line-height:18px}.update-ready-menu .update-ready-description{color:var(--muted);white-space:nowrap;text-wrap:nowrap;text-overflow:ellipsis;margin:6px 0 15px;font-size:11px;overflow:hidden}.update-ready-actions{justify-content:flex-end;align-items:center;gap:14px;font-size:12px;line-height:18px;display:flex}.update-ready-menu [role=alert]{max-width:320px;color:var(--muted);font-size:11px}.text-action,.ghost-btn,.workspace-button{box-sizing:border-box;white-space:nowrap;flex:none;justify-content:center;align-items:center;gap:6px;line-height:18px;text-decoration:none;display:inline-flex}.text-action{color:var(--muted);font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:3px;padding:4px 0;font-weight:400}.text-action:hover:not(:disabled){color:var(--ink)}.ghost-btn,.workspace-button{border:1px solid #0000;border-radius:6px;height:30px;padding:0 11px;font-size:12px}.ghost-btn{color:var(--muted);background:0 0;font-weight:400}.workspace-button{border-color:var(--line);background:var(--float);color:var(--ink);font-weight:500;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.ghost-btn:hover:not(:disabled),.ghost-btn:is(:where([aria-haspopup])[aria-expanded=true],[aria-pressed=true]):not(:disabled),.workspace-button:not(.primary):hover:not(:disabled){color:var(--ink);background:var(--control-hover)}.ghost-btn:active:not(:disabled),.workspace-button:not(.primary):active:not(:disabled){background:var(--control-pressed)}.text-action:disabled,.ghost-btn:disabled,.workspace-button:disabled{opacity:.45;cursor:default}.text-action:focus-visible,.ghost-btn:focus-visible,.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-icon{width:28px;height:28px;padding:0}.modal-actions>.workspace-button{width:100%}.widget-preview{--float:var(--pill);--ink:var(--pill-ink);--line:var(--widget-line);--control-hover:#ffffff14;--control-pressed:#ffffff20;--focus:var(--pill-accent)}: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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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{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;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}.note-topbar{top:10.5px}.note-topbar>div>button{width:30px;height:30px}.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 button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.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{flex:0 auto;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(.update-ready-status):has(.notes-download-status:not(.update-ready-status)){gap:8px}.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;position:relative;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,.meeting-day-exit{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}.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)}.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}: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 .workspace-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);text-wrap:balance;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-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:0;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-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-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-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}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.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 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:4px;margin-inline:2px 0;line-height:1;display:inline-flex;position:relative}.source-citation{border:1px solid var(--line);background:var(--card);max-width:180px;height:18px;color:var(--written);letter-spacing:0;border-radius:999px;justify-content:center;align-items:center;padding:0 7px;font-size:13px;font-weight:400;line-height:16px;display:inline-flex;position:relative}.source-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.source-citation:before{content:"";width:max(100%,24px);height:max(100%,24px);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.citation-anchor:has(.citation-group:not([data-single])){white-space:normal}.citation-group:not([data-single]){white-space:normal;display:inline}.citation-group:not([data-single]) .source-citation~.source-citation{margin-inline-start:4px}.source-citation:hover,.source-citation[aria-expanded=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 20%,var(--line));color:var(--ink)}.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:fit-content;min-width:min(280px,100vw - 24px);max-width:min(400px,100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:14px;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 14px}.citation-heading{min-width:0;color:var(--muted);justify-content:flex-start;align-items:baseline;gap:6px;font-size:12px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:260px;color:var(--muted);flex:0 auto;margin:0;font-size:12px;font-weight:400;line-height:18px;overflow:hidden}.citation-date{white-space:nowrap;flex:none;font-size:12px;line-height:18px}.citation-quote{color:var(--ink);letter-spacing:0;overflow-wrap:anywhere;max-height:min(320px,100vh - 160px);margin:8px 0;font-size:14px;font-weight:400;line-height:21px;overflow:auto}.citation-context{color:var(--written)}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;margin:4px 0 0;font-size:11px;display:flex}.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{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-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 button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.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}@media (prefers-reduced-motion:reduce){.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-tracer{pointer-events:none;opacity:0;fill:none;width:calc(100% + 2px);height:calc(100% + 2px);stroke:var(--primary);stroke-width:3px;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent));position:absolute;inset:-1px;overflow:visible}.ask-tracer rect{stroke-dasharray:1.05 98.95}@media (prefers-reduced-motion:reduce){.ask-tracer{display:none}}.ask-field{padding: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-scope-group{align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px);display:flex}.ask-scope{background:var(--control);min-width:0;max-width:100%;height:28px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.ask-scope:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope:disabled{opacity:.45}.ask-scope-group:has(.ask-scope-clear) .ask-scope{border-start-end-radius:0;border-end-end-radius:0}.ask-scope-clear{background:var(--control);width:26px;height:28px;color:var(--muted);border-start-end-radius:8px;border-end-end-radius:8px;flex:none;justify-content:center;align-items:center;display:flex}.ask-scope-clear:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope-clear:disabled{opacity:.45}.ask-picker h3:has(.text-action){justify-content:space-between;align-items:center;display:flex}.ask-scope-label{min-width:0;display:flex}.ask-scope-name{text-overflow:ellipsis;min-width:0;overflow:hidden}.ask-scope-others{white-space:pre;flex:none}.ask-scope>svg{flex:none}.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)}.ask-home-starters[data-instant]{transition:none}@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;border:1px solid var(--line);background:var(--float);max-height:min(340px,50vh);color:var(--ink);box-shadow:var(--shadow-soft);animation:ask-fade var(--dur-micro) var(--ease-out);border-radius:10px;padding:6px;overflow-y:auto}.ask-mention{width:min(380px,100vw - 32px);position:fixed}.ask-selector-positioner{z-index:80}.ask-picker.ask-selector{width:min(380px,100vw - 32px);max-height:min(380px,60vh,var(--available-height));color:var(--ink);flex-direction:column;display:flex;position:static;inset:auto;overflow:hidden}.ask-picker-search{border-bottom:1px solid var(--line);width:100%;min-width:0;color:var(--ink);text-overflow:ellipsis;background:0 0;border-radius:0;outline:none;flex:none;padding:10px 8px;font-size:13px}.ask-picker-search::placeholder{color:var(--muted)}.ask-picker-search:focus-visible{border-radius:0;outline:none}.ask-picker-results{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button:not(.text-action){text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button:not(.text-action)[data-active=true],.ask-picker button:not(.text-action):hover:not(:disabled){background:var(--card)}.ask-picker button:not(.text-action)>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:not(.text-action):active{background:var(--control-pressed)}.ask-picker button:not(.text-action)>svg{flex:none}.ask-picker button:not(.text-action):disabled{opacity:.45}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:10px;font-size:12px;overflow:hidden}.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{justify-content:flex-start;width:100%}.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}}@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-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-latest{z-index:3;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,.workspace-button){white-space:nowrap}@media (prefers-reduced-motion:reduce){.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)}}.note-reading-frame[data-resetting=true] .note-reading-clip{visibility:hidden}.workspace-button.primary{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)}.workspace-button.primary:active:not(:disabled){transform:scale(.97)}@media (prefers-reduced-motion:reduce){.workspace-button.primary{transition:none}.workspace-button.primary:active:not(:disabled){transform:none}}: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-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:21px;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] [data-testid=chat-suggestions]{visibility:hidden}html[data-fragment=ask] .fragment-ask{justify-content:center;align-items:center;padding:28px;display:flex;inset:0}.fragment-ask .ask-conversation{flex:none;width:100%;max-width:400px}.fragment-ask .ask-thread-wrap,.fragment-ask .ask-thread{flex:none;overflow:visible!important}.fragment-ask .ask-turn{gap:28px;margin:0}.fragment-ask .ask-turn>.ask-question{border-radius:14px 14px 4px;max-width:85%;padding:10px 14px}.fragment-ask .ask-turn>.chat-answer{border:1px solid var(--line);background:var(--float);border-radius:4px 14px 14px;margin:0 24px 0 32px;padding:12px 16px;font-size:14.5px;line-height:1.6}.fragment-ask .chat-answer>p{margin:0}.fragment-ask .chat-answer>p+p{margin-top:6px}.fragment-ask .fragment-byline{left:0;top:calc(var(--fragment-answer-top) + 12px);width:20px;height:20px;margin:0;position:absolute}.fragment-ask .fragment-byline>span{display:none}.fragment-ask .ask-turn>.chat-progress{left:48px;top:calc(var(--fragment-answer-top) + 12px);margin:0}@media (width<=320px){html[data-fragment=ask] .fragment-ask{padding:20px}.fragment-ask .ask-turn{gap:24px}.fragment-ask .ask-turn>.chat-answer{margin-right:0;font-size:14px}.fragment-ask .ask-turn>.ask-question{font-size:14px}}.fragment-ask .ask-turn>.chat-answer{opacity:var(--reply-opacity,1);transition:opacity .18s ease-out}@media (prefers-reduced-motion:reduce){.fragment-ask .ask-turn>.chat-answer{transition:none}}.fragment-plan[data-waiting=true] .fragment-plan-live{visibility:hidden}.summary-cue{position:absolute;inset:0}.summary-cue>span{color:var(--muted);margin-bottom:8px;font-size:14px;display:block}.fragment-ask .ask-thread-wrap .ask-thread{width:100%;min-width:0;max-width:100%}html[data-fragment][data-paused=true] *,html[data-fragment][data-paused=true] :before,html[data-fragment][data-paused=true] :after{animation-play-state:paused!important}
/*$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 c5a4b5bb..608580a2 100644
--- a/site/public/marketing/app/renderer.js
+++ b/site/public/marketing/app/renderer.js
@@ -9,15 +9,15 @@ 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(321*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`),ee=Number(R),z=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(ee)?33:ee)),te=!1,ne=C(z).transcript,re=JSON.stringify(ne),ie=``,B=``,ae=0,oe,V,se;O.mine=V=C(z).mine;var ce=(e,t,n)=>(O.mine=t,O.saves.mine={revision:n,status:`saved`},structuredClone(O.saves.mine)),le=()=>E.state===`recording`?{kind:`recording`,meetingId:E.id,title:E.title,elapsedMs:72e4+(z>=l.resume?0:z)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,capabilities:{calendar:!1,callNames:!1,permissionPrompts:!1,mediaPause:!1},setup:{state:F({}),onState:P},updates:{status:F({version:``,available:!1,on:!1,state:`idle`}),onStatus:P},widget:{state:async()=>le(),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)=>ce(...e),setEnhanced:F({revision:0,status:`failed`}),flushSync:(e,t,n,r)=>t===`mine`?ce(e,n,r):{revision:r,status:`saved`}},transcript:{get:async()=>structuredClone(ne),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 ue=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>ue(()=>{te&&R===null&&e(...n)},t);var de=e=>document.querySelector(`[data-testid="${e}"]`),fe=(e,t=!0)=>e?.dispatchEvent(new MouseEvent(`click`,{bubbles:!0,cancelable:!0,detail:+!!t}));function pe(e){let t=de(`note-mine`)?.editor;if(t&&(se!==t||V!==e.mine)){se=t,V=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 me(e){document.activeElement?.blur();let t=de(e.tab);(R!==null||e.tab!==`note-summary-tab`)&&t&&t!==oe&&(oe=t,t.getAttribute(`aria-selected`)!==`true`&&fe(t,z>=l.notes)),z>=l.ask&&z<l.close&&de(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&fe(de(`chat-open`)),z>=l.close&&de(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(fe(de(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),z>=l.resume&&!document.documentElement.dataset.resumeClicked&&fe(de(`note-resume`)),pe(e),document.documentElement.dataset.typing=String(z>=l.type&&z<l.typed);let n=de(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&fe(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&z<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),z>=l.send&&z<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}))):de(`chat-send`)&&!de(`chat-send`).disabled&&de(`chat-box`)?.dispatchEvent(new Event(`submit`,{bubbles:!0,cancelable:!0})))}var he=[{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}],ge,_e,ve=0;function ye(e=z){let t=document.querySelector(`.marketing-cursor`);if(!t)return;let n={x:(window.innerWidth||1e3)*.75-4,y:(window.innerHeight||608)*.82-3};!_e&&!ge&&(t.style.transform=`translate(${n.x}px,${n.y}px)`);let r=he.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!==ge){let{x:i,y:a}=n;if(r.id!==`home`){let e=de(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=de(`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);_e?.cancel(),_e=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`}),_e.pause(),ge=r,ve=R===null?Math.max(r.start,e-1/60):r.start}_e.currentTime=Math.max(0,(e-ve)*1e3)}}function be(e,t=[.4,.65,.5]){let n=e<z;z=e;let r=C(z);pe(r),ye(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),z>=l.finish&&z<l.resume&&E.state===`recording`&&fe(de(`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()),ne=r.transcript,JSON.stringify(ne)!==re&&(re=JSON.stringify(ne),ne.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)!==ie&&(ie=JSON.stringify(O),I.notes.emit(O)),j.turns=z<l.send||z>=l.resume?[]:[{id:1,question:_,answer:r.answer+(z>=l.answered?`[1]`:``),status:z<l.answered?`answering`:`done`,step:z<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k,scope:A}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==B&&(B=JSON.stringify(j),I.chat.emit(j)),z<1.5&&R===null&&(t=[.45+.2*Math.sin(z*9),.55+.18*Math.sin(z*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(le()),n&&!de(`note-transcript-toggle`)&&I.reset.emit(),me(r),cancelAnimationFrame(ae);let s=6,c=()=>{me(C(z)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(ae=requestAnimationFrame(c))};ae=requestAnimationFrame(c)}function xe(){let e=()=>{de(`note-transcript-toggle`)&&(z===0&&(me(C(z)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),be(z),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)&&ye(Math.max(0,Math.min(39,e.data.seconds))),e.data?.type===`yogurt-hero-time`&&Number.isFinite(e.data.seconds)&&be(Math.max(0,Math.min(39,e.data.seconds)),e.data.bands),e.data?.type===`yogurt-hero-playing`&&typeof e.data.playing==`boolean`&&(te=e.data.playing,document.documentElement.dataset.playing=String(te)))});function Se(e){j.turns=e?[{id:1,...e,sources:k,scope:A}]:[],j.firstChips=A,I.chat.emit(j)}function Ce(e,t){ne=e;for(let t of e)I.segment.emit(t);I.speakers.emit(E.id),I.partial.emit({meetingId:E.id,...t})}var we=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 ee(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(ee.bind(null,e))}var z={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=z,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=ee,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`})),Te=o(((e,t)=>{t.exports=we()}));function Ee(e,t){e.indexOf(t)===-1&&e.push(t)}function De(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Oe([...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 ke=(e,t,n)=>n>t?t:n<e?e:n,Ae={},je=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Me=e=>typeof e==`object`&&!!e,Ne=e=>/^0[^.\s]+$/u.test(e);function Pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var Fe=e=>e,Ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Le=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Re=class{constructor(){this.subscriptions=[]}add(e){return Ee(this.subscriptions,e),()=>this.remove(e)}remove(e){De(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}},ze=e=>e*1e3,Be=e=>e/1e3,Ve=(e,t)=>t?1e3/t*e:0,He=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ue=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function We(e,t,n,r){return e===t&&n===r?Fe:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ue(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ue(s+1e-7,e,n)-i-r)}return Ue(s,t,r)}}var Ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ke=e=>t=>1-e(1-t),qe=We(.33,1.53,.69,.99),Je=Ke(qe),Ye=Ge(Je),Xe=e=>e>=1?1:(e*=2)<1?.5*Je(e):.5*(2-2**(-10*(e-1))),Ze=e=>1-Math.sin(Math.acos(e)),Qe=Ke(Ze),$e=Ge(Ze),et=We(.42,0,1,1),tt=We(0,0,.58,1),nt=We(.42,0,.58,1),rt=e=>Array.isArray(e)&&typeof e[0]!=`number`;function it(e,t){return rt(e)?e[He(0,e.length,t)]:e}var at=e=>Array.isArray(e)&&typeof e[0]==`number`,ot={linear:Fe,easeIn:et,easeInOut:nt,easeOut:tt,circIn:Ze,circInOut:$e,circOut:Qe,backIn:Je,backInOut:Ye,backOut:qe,anticipate:Xe},st=e=>typeof e==`string`,ct=e=>{if(at(e)){e.length;let[t,n,r,i]=e;return We(t,n,r,i)}return st(e)?(ot[e],`${e}`,ot[e]):e},lt={delta:0,timestamp:0,isProcessing:!1},ut;function dt(){ut=void 0}var ft={now:()=>(ut===void 0&&ft.set(lt.isProcessing||Ae.useManualTiming?lt.timestamp:performance.now()),ut),set:e=>{ut=e,queueMicrotask(dt)}},pt=e=>Math.round(e*1e5)/1e5,mt=e=>t=>typeof t==`string`&&t.startsWith(e),ht=mt(`--`),gt=mt(`var(--`),_t=e=>gt(e)?vt.test(e.split(`/*`)[0].trim()):!1,vt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var bt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},xt={...bt,transform:e=>ke(0,1,e)},St={...bt,default:1},Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wt(e){return e==null}var Tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n==`string`&&Tt.test(n)&&n.startsWith(e)||t&&!wt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ot=e=>ke(0,255,e),kt={...bt,transform:e=>Math.round(Ot(e))},At={test:Et(`rgb`,`red`),parse:Dt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+kt.transform(e)+`, `+kt.transform(t)+`, `+kt.transform(n)+`, `+pt(xt.transform(r))+`)`};function jt(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 Mt={test:Et(`#`),parse:jt,transform:At.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=Nt(`deg`),Ft=Nt(`%`),H=Nt(`px`),It=Nt(`vh`),Lt=Nt(`vw`),Rt={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},zt={test:Et(`hsl`,`hue`),parse:Dt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ft.transform(pt(t))+`, `+Ft.transform(pt(n))+`, `+pt(xt.transform(r))+`)`},Bt={test:e=>At.test(e)||Mt.test(e)||zt.test(e),parse:e=>At.test(e)?At.parse(e):zt.test(e)?zt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?At.transform(e):zt.transform(e),getAnimatableNone:e=>{let t=Bt.parse(e);return t.alpha=0,Bt.transform(t)}},Vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ht=new RegExp(Ct.source),Ut=new RegExp(Vt.source,`i`);function Wt(e){return isNaN(e)&&typeof e==`string`&&(Ht.test(e)||Ut.test(e))}var Gt=`number`,Kt=`color`,qt=`var`,Jt=`var(`,Yt="${}",Xt=/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 Zt(e){let t=e.toString();return Ht.test(t)||Ut.test(t)}function Qt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Xt,e=>(Bt.test(e)?(r.color.push(a),i.push(Kt),n.push(Bt.parse(e))):e.startsWith(Jt)?(r.var.push(a),i.push(qt),n.push(e)):(r.number.push(a),i.push(Gt),n.push(parseFloat(e))),++a,Yt)).split(Yt),indexes:r,types:i}}function $t(e){return Qt(e).values}function en({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===Gt?pt(r[a]):e===Kt?Bt.transform(r[a]):r[a]}return i}}function tn(e){return en(Qt(e))}var nn=e=>typeof e==`number`?0:Bt.test(e)?Bt.getAnimatableNone(e):e,rn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:nn(e);function an(e){let t=Qt(e);return en(t)(t.values.map((e,n)=>rn(e,t.split[n])))}var on={test:Wt,parse:$t,createTransformer:tn,getAnimatableNone:an};function sn(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 cn({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=sn(s,r,e+1/3),a=sn(s,r,e),o=sn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ln(e,t){return n=>n>0?t:e}var un=(e,t,n)=>e+(t-e)*n,dn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fn=[Mt,At,zt],pn=e=>fn.find(t=>t.test(e));function mn(e){let t=pn(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===zt&&(n=cn(n)),n}var hn=(e,t)=>{let n=mn(e),r=mn(t);if(!n||!r)return ln(e,t);let i={...n};return e=>(i.red=dn(n.red,r.red,e),i.green=dn(n.green,r.green,e),i.blue=dn(n.blue,r.blue,e),i.alpha=un(n.alpha,r.alpha,e),At.transform(i))},gn=new Set([`none`,`hidden`]);function _n(e,t){return gn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vn(e,t){return n=>un(e,t,n)}function yn(e){return typeof e==`number`?vn:typeof e==`string`?_t(e)?ln:Bt.test(e)?hn:Cn:Array.isArray(e)?bn:typeof e==`object`?Bt.test(e)?hn:xn:ln}function bn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Sn(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 Cn=(e,t)=>{let n=on.createTransformer(t),r=Qt(e),i=Qt(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?gn.has(e)&&!i.values.length||gn.has(t)&&!r.values.length?_n(e,t):Ie(bn(Sn(r,i),i.values),n):(`${e}${t}`,ln(e,t))},wn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Tn(e,t){let n=wn.exec(e);if(!n)return;let r=wn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>pt(un(a,o,e))+i}function En(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return un(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Tn(e,t);if(n)return n}return yn(e)(e,t)}var Dn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function On(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 kn=40;function An(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Dn.reduce((e,t)=>(e[t]=On(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Ae.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,kn),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:Dn.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<Dn.length;t++)o[Dn[t]].cancel(e)},state:n,steps:o}}var{schedule:jn,cancel:Mn,steps:Nn}=An(typeof requestAnimationFrame<`u`?requestAnimationFrame:Fe,!0,lt),Pn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>jn.update(t,e),stop:()=>Mn(t),now:()=>lt.isProcessing?lt.timestamp:ft.now()}},Fn=(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)})`},In=2e4;function Ln(e,t=50,n=In,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 Rn(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(Ln(o),In);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Be(s)}}var zn={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},Bn=e=>e<0?1/Math.max(1+e,zn.minDamping):Math.max(1-e,zn.minDamping);function Vn(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 Wn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Hn(e,t){return e*Math.sqrt(1-t*t)}var Un=12;function Wn(e,t,n){let r=n;for(let n=1;n<Un;n++)r-=e(r)/t(r);return r}var Gn=.001;function Kn({duration:e=zn.duration,bounce:t=zn.bounce}){let n,r;zn.maxDuration;let i=Bn(t);e=ke(zn.minDuration,zn.maxDuration,Be(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Hn(t,i),o=Math.exp(-r);return Gn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Hn(t*t,i);return(-n(t)+Gn>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=Wn(n,r,a),s=o*Vn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:ze(e)}}var qn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Jn(e,t){if(qn(e,t))return e}function Yn(e){let t=Jn(e.stiffness),n=Jn(e.damping,!0),r=Jn(e.mass),i={...e,stiffness:t??zn.stiffness,damping:n??zn.damping,mass:r??zn.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=Bn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Vn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Kn(i)),i.isResolvedFromDuration=!0;qn(i.stiffness)&&qn(i.damping,!0)||(i.stiffness=zn.stiffness,i.damping=zn.damping)}return i}function Xn(e=zn.visualDuration,t=zn.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}=Yn({...n}),f=e=>d?0:-Be(e),p=s/(2*Math.sqrt(o*c)),m=Be(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?zn.restSpeed.granular:zn.restSpeed.default),g.restDelta=n.restDelta||(e?zn.restDelta.granular:zn.restDelta.default)};_();let v,y,b;if(p<1){let e=Hn(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=>ze(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=ze(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(Ln(S),In),t=Fn(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Xn.applyToOptions=e=>{let t=Rn(e,100,Xn);return e.ease=t.ease,e.duration=ze(t.duration),e.type=`keyframes`,e};function Zn({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=Xn({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 Qn(e,t,n){let r=[],i=n||Ae.mix||En,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ie(Array.isArray(t)?t[n]||Fe:t,a)),r.push(a)}return r}function $n(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=Qn(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=Le(e[r],e[r+1],n);return s[r](i)};return n?t=>l(ke(e[0],e[a-1],t)):l}function er(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Le(0,t,r);e.push(un(n,1,i))}}function tr(e){let t=[0];return er(t,e.length-1),t}function nr(e,t){return e.map(e=>e*t)}function rr(e,t){return e.map(()=>t||nt).splice(0,e.length-1)}function ir({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=rt(r)?r.map(ct):ct(r)||nt,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:(Ae.mix||En)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?ke(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=$n(nr(n&&n.length===t.length?n:tr(t),e),t,{ease:Array.isArray(i)?i:rr(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ar=5;function or(e,t,n){let r=Math.max(t-ar,0);return Ve(n-e(r),t-r)}function sr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):or(t=>e.next(t).value,t,e.next(t).value)}var cr=e=>e!==null;function lr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(cr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ur={decay:Zn,inertia:Zn,tween:ir,keyframes:ir,spring:Xn};function dr(e){typeof e.type==`string`&&(e.type=ur[e.type])}var fr=40,pr=(e,t)=>t-e>fr&&!Ae.useManualTiming?t:e;function mr(e,t){return{kind:e,animation:t,timestamp:ft.now(),frameTimestamp:lt.timestamp,frameIsProcessing:lt.isProcessing}}function hr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...mr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function gr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...mr(`layout-animation-start`,e),node:t})}catch{}}var _r=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)}},vr=e=>e/100,yr=e=>Math.round(e*1e4)/1e4,br=class extends _r{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!==ft.now()&&this.tick(ft.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),hr(this,this.options)}initAnimation(){let{options:e}=this;dr(e);let{type:t=ir,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ir;s!==ir&&typeof o[0]!=`number`&&(this.mixKeyframes=Ie(vr,En(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=Ln(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=pr(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!==Zn&&(f.value=lr(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??yr((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!==Zn?lr(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=ke(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 Be(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Be(e)}get time(){return Be(this.currentTime)}set time(e){e=ze(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 sr(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(ft.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Be(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Pn,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(ft.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)}},xr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Sr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!xr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Cr=/\b([a-z-]*)\(.*?\)/gu,wr={...on,getAnimatableNone:e=>{let t=e.match(Cr);return t?t.map(Sr).join(` `):e}},Tr={...on,getAnimatableNone:e=>{let t=on.parse(e);return on.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Er={...bt,transform:Math.round},Dr={rotate:Pt,pathRotation:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:St,scaleX:St,scaleY:St,scaleZ:St,skew:Pt,skewX:Pt,skewY:Pt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:xt,originX:Rt,originY:Rt,originZ:H},Or={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,...Dr,zIndex:Er,fillOpacity:xt,strokeOpacity:xt,numOctaves:Er},kr={...Or,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:wr,WebkitFilter:wr,mask:Tr,WebkitMask:Tr},Ar=e=>kr[e],jr=new Set([wr,Tr]);function Mr(e,t){let n=Ar(e);return jr.has(n)||(n=on),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Nr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Pr=e=>e*180/Math.PI,Fr=e=>Lr(Pr(Math.atan2(e[1],e[0]))),Ir={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:Fr,rotateZ:Fr,skewX:e=>Pr(Math.atan(e[1])),skewY:e=>Pr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lr=e=>(e%=360,e<0&&(e+=360),e),Rr=Fr,zr=e=>Math.hypot(e[0],e[1]),Br=e=>Math.hypot(e[4],e[5]),Vr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zr,scaleY:Br,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(zr(e)+Br(e))/2,rotateX:e=>Lr(Pr(Math.atan2(e[6],e[5]))),rotateY:e=>Lr(Pr(Math.atan2(-e[2],e[0]))),rotateZ:Rr,rotate:Rr,skewX:e=>Pr(Math.atan(e[4])),skewY:e=>Pr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hr(e){return+!!e.includes(`scale`)}function Ur(e,t){if(!e||e===`none`)return Hr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Vr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ir,i=t}if(!i)return Hr(t);let a=r[t],o=i[1].split(`,`).map(Gr);return typeof a==`function`?a(o):o[a]}var Wr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ur(n,t)};function Gr(e){return parseFloat(e.trim())}var Kr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],qr=new Set([...Kr,`pathRotation`]),Jr=e=>e===bt||e===H,Yr=new Set([`x`,`y`,`z`]),Xr=Kr.filter(e=>!Yr.has(e));function Zr(e){let t=[];return Xr.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 Qr=new Set([`bottom`,`right`]);function $r(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 ei={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>$r(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>$r(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})=>Ur(e,`x`),y:({transform:e})=>Ur(e,`y`)};ei.translateX=ei.x,ei.translateY=ei.y;var ti=new Set,ni=!1,ri=!1,ii=!1;function ai(){if(ri){let e=[],t=new Set,n=new Set;ti.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Qr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Zr(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)})}ri=!1,ni=!1,ti.forEach(e=>e.complete(ii)),ti.clear()}function oi(){ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ri=!0)})}function si(){ii=!0,oi(),ai(),ii=!1}function ci(e,t,n){if(typeof e==`string`){if(je(e)||Ne(e))return parseFloat(e);if(!on.test(e)&&on.test(n))return Mr(t,n)}return e??void 0}var li=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?(ti.add(this),ni||(ni=!0,jn.read(oi),jn.resolveKeyframes(ai))):(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=ci(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])}Nr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ti.delete(this)}cancel(){this.state===`scheduled`&&(ti.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ui=e=>e.startsWith(`--`);function di(e,t,n){ui(t)?e.style.setProperty(t,n):e.style[t]=n}var fi={};function pi(e,t){let n=Pe(e);return()=>fi[t]??n()}var mi=pi(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),hi=pi(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),gi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_i={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:gi([0,.65,.55,1]),circOut:gi([.55,0,1,.45]),backIn:gi([.31,.01,.66,-.59]),backOut:gi([.33,1.53,.69,.99])};function vi(e,t){if(e)return typeof e==`function`?hi()?Fn(e,t):`ease-out`:at(e)?gi(e):Array.isArray(e)?e.map(e=>vi(e,t)||_i.easeOut):_i[e]}function yi(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=vi(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 bi(e){return typeof e==`function`&&`applyToOptions`in e}function xi({type:e,...t}){return bi(e)&&hi()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Si=class extends _r{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=xi(e);this.animation=yi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=lr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),di(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},hr(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 Be(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Be(e)}get time(){return Be(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ze(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&&mi()?(this.animation.timeline=e,t?.(this.animation),Fe):n(this)}},Ci={anticipate:Xe,backInOut:Ye,circInOut:$e};function wi(e){return e in Ci}function Ti(e){typeof e.ease==`string`&&wi(e.ease)&&(e.ease=Ci[e.ease])}var Ei=class extends Si{constructor(e){Ti(e),dr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(ft.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 br({...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?ke(0,10,a):0,s=this.sample(a);n&&r&&di(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Di=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(on.test(e)||e===`0`)&&!e.startsWith(`url(`));function Oi(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 ki(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=Di(i,t),s=Di(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Oi(e)||(n===`spring`||bi(n))&&r}function Ai(e){e.duration=0,e.type=`keyframes`}var ji=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Mi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ni(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Mi.test(e[t]))return!0;return!1}var Pi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Fi=Pe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ii(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(ji.has(n)||Pi.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 Fi()&&(ji.has(n)||Pi.has(n)&&Ni(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Li=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ri={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},zi=Kr.length;function Bi(e,t,n){let r=``,i=!0;for(let a=0;a<zi;a++){let o=Kr[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=Li(s,Or[o]);if(!c){i=!1;let t=Ri[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Li(a,Or.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Vi=new WeakMap,Hi=200,Ui=.001,Wi=.1,Gi=.001,Ki=100,qi=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Ji=(e,t)=>e-t,Yi=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(un(e,t,i/n));return r},Xi=e=>e.motionValue.owner,Zi=e=>Vi.get(e),Qi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),$i=({name:e,motionValue:t})=>e&&Kr.includes(e)&&t?.owner?.current instanceof HTMLElement&&Fi()&&hi();function ea(e){let t=Xi(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Qi(t,`transform`)||`none`)===`none`&&!Qi(t,`pathRotation`)&&!t.projection?.isProjecting()}var ta=class extends br{constructor(e){let t=Xi(e).current,{driver:n=Pn}=e,r,i=ea(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=Zi(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=Zi(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 Zi(Xi(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(ft.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=at(n)?gi(n):qi(n)&&_i[n];if(o&&!i&&!r&&e.length===2&&t===ir&&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||ir)===ir?u||tr(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=ft.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||na(Xi(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(ft.now())}get time(){return this.isAccelerated()?Be(ke(0,this.totalDuration,this.at(ft.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 na(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?Kr:a){let a=r.get(s),c=t===void 0?Qi(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+=(Ri[e]||e)+`(`+Li(r[e],Or[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Bi(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=ft.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(Hi,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Yi(t,n,i).concat(r).sort(Ji),o=e=>Le(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)*Ui>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Ui)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Ui)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Ui))return`linear`;let l=[],u=(e,t=c(e))=>l.push(yr(t)+` `+yr(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`)?Gi:Wi))),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=Yi(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(Ji))e>c&&o(c,e,0),c=e;return i.sort(Ji)},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=>Le(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=Kr.filter(t=>{if(r.has(t))return!0;let n=i[t]=Qi(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,Zi(t)===O&&Vi.delete(t),O.isJS||_(),!0),D=()=>{let t=ft.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]=Qi(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<Ki)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,lt.isProcessing?jn.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(Qi(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 Vi.set(t,O),O}var ra=class extends _r{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ft.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||li;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=ft.now();let u=!0;ki(e,i,a,o)||(u=!1,(Ae.instantAnimations||!s)&&l?.(lr(e,n,t)),e[0]=e[e.length-1],Ai(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Ii(n),p=!f&&$i(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=pr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Ei(n)}catch{m=new br(n)}}else m=p?new ta(n):new br(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(),si()),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()}},ia=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 aa(this.animations,`duration`)}get iterationDuration(){return aa(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 aa(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 oa=class extends ia{then(e,t){return this.finished.finally(e).then(()=>{})}};function sa(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 ca=30,la=e=>!isNaN(parseFloat(e)),ua={current:void 0},da=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ft.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=ft.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=la(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 Re)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Re,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(){jn.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(){ua.current&&ua.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=ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ca)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ca);return Ve(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 fa(e,t){return new da(e,t)}function pa(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ma(e,t){let n=e?.[t]??e?.default??e;return n===e?n:pa(n,e)}var ha={type:`spring`,stiffness:500,damping:25,restSpeed:10},ga=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_a={type:`keyframes`,duration:.8},va={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ya=(e,{keyframes:t})=>t.length>2?_a:qr.has(e)?e.startsWith(`scale`)?ga(t[1]):ha:va,ba=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function xa(e){for(let t in e)if(!ba.has(t))return!0;return!1}var Sa=(e,t,n,r={},i,a)=>o=>{let s=ma(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=ze(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};xa(s)||Object.assign(u,ya(e,u)),u.duration&&=ze(u.duration),u.repeatDelay&&=ze(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ai(u),u.delay===0&&(d=!0)),(Ae.instantAnimations||Ae.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ai(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=lr(u.keyframes,s);if(e!==void 0){jn.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new br(u):new ra(u)},Ca=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wa(e){let t=Ca.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ta(e,t,n=1){`${e}`;let[r,i]=wa(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return je(e)?parseFloat(e):e}return _t(i)?Ta(i,t,n+1):i}function Ea(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Da(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Ea(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Oa(e,t,n){return Da(e.getProps(),t,n,e)}var ka=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Aa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Kr]),ja=e=>Array.isArray(e);function Ma(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fa(n))}function Na(e){return ja(e)?e[e.length-1]||0:e}function Pa(e,t){let{transitionEnd:n={},transition:r={},...i}=Oa(e,t)||{};i={...i,...n};for(let t in i)Ma(e,t,Na(i[t]))}var Fa=e=>!!(e&&e.getVelocity);function Ia(e){return!!(Fa(e)&&e.add)}function La(e,t){let n=e.getValue(`willChange`);if(Ia(n))return n.add(t);if(!n&&Ae.WillChange){let n=new Ae.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ra(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var za=`data-`+Ra(`framerAppearId`);function Ba(e){return e.props[za]}var Va=typeof window<`u`;function Ha({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Ua(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?pa(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&&Ha(f,t))continue;let o={delay:n,...ma(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){jn.update(()=>r.set(i));continue}let p=!1;if(Va&&window.MotionHandoffAnimation){let n=Ba(e);if(n){let e=window.MotionHandoffAnimation(n,t,jn);e!==null&&(o.startTime=e,p=!0)}}La(e,t);let m=l??e.shouldReduceMotion;r.start(Sa(t,r,i,m&&Aa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>jn.update(()=>{o&&Pa(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Wa(e,t,n={}){let r=Oa(e,t,ka(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Ua(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(Wa(e,t,{...n,delay:r+(typeof o==`function`?0:o)+sa(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 Ga(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Wa(e,t,n))):typeof t==`string`?Wa(e,t,n):Promise.all(Ua(e,Oa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Ka={test:e=>e===`auto`,parse:e=>e},qa=e=>t=>t.test(e),Ja=[bt,H,Ft,Pt,Lt,It,Ka],Ya=e=>Ja.find(qa(e));function Xa(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ne(e)}var Za=new Set([`auto`,`none`,`0`]);function Qa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Za.has(t)&&Zt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Mr(n,i))}var $a=class extends li{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(yt(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(),_t(r))){let i=Ta(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Aa.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ya(r),o=Ya(i);if(yt(r)!==yt(i)&&ei[n])this.needsMeasurement=!0;else if(a!==o){if(Jr(a)&&Jr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ei[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Xa(e[t]))&&n.push(t);n.length&&Qa(e,n,t)}measure(){let{element:e,name:t}=this;return ei[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()}},eo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],to=[];function no(e){typeof e.test==`function`&&e.read,ro(e),to.unshift(e)}function ro(e){De(to,e)}function io(e){return to.find(t=>t.test(e))}function ao(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?jn.update(()=>l.set(c)):(l.start(Sa(o,l,c,s&&Aa.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>jn.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function oo(e,t,n,r,i){return ao(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=so(i)??e.read(t,r,i),`${r}`}a=fa(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function so(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function co(e){return Me(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function lo(e){return Me(e)&&`ownerSVGElement`in e}function uo(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 fo=class{constructor(e=jn.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 po(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new fo(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 mo={};function ho(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&&` `)+(mo[i]||(mo[i]=(Ri[i]||i)+`(`))+Li(a,Dr[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Li(i,Dr.pathRotation)+`)`),t||`none`}var go=new Set([`originX`,`originY`,`originZ`]),_o=(e,t)=>Li(e.get(t)?.get(),Or[t]),vo=(e,t,n,r)=>{let i,a;if(qr.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Kr.indexOf(e)-Kr.indexOf(t)))}t.get(`transform`)||(!co(e)&&!t.get(`transformBox`)&&vo(e,t,`transformBox`,new da(`fill-box`)),t.set(`transform`,new da(`none`),()=>{Vi.get(e)?.check(),e.style.transform=ho(t)})),a=t.get(`transform`)}else go.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new da(``),()=>{let n=_o(t,`originX`)??`50%`,r=_o(t,`originY`)??`50%`,i=_o(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ui(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Li(r.getCurrent(),Or[n])};return t.set(n,r,i,a)},yo=e=>co(e)||lo(e),bo=(e,t)=>{if(qr.has(t))return Wr(e,t);let n=getComputedStyle(e),r=ui(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},xo=po(vo,{test:yo,read:bo});function So(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(qr.has(e))o=!0;else if(ht(e))i[e]=n;else{let t=Li(n,Or[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Bi(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 Co={offset:`stroke-dashoffset`,array:`stroke-dasharray`},wo={offset:`strokeDashoffset`,array:`strokeDasharray`};function To(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Co:wo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Eo=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Do(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(So(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 Eo)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&&To(d,i,a,o,!1)}function Oo(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 ko=(e,t,n,r,i=n)=>{let a=Oo(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Ra(i));let o=Or[n]||Or[i],s=a?()=>{e[i]=Li(r.get(),Or[n])}:()=>{let t=Li(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ao(e,t,n,r){return jn.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 da(`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 jo=po((e,t,n,r)=>n.startsWith(`path`)&&!qr.has(n)?Ao(e,t,n,r):n.startsWith(`attr`)?ko(e,t,n,r,Mo(n)):(qr.has(n)||go.has(n)||ui(n)||n in e.style?vo:ko)(e,t,n,r),{test:lo,read:(e,t)=>qr.has(t)?Or[t]?.default||0:ui(t)||Eo.includes(t)?bo(e,t)||e.getAttribute(Ra(t))||0:(t=Mo(t),e.getAttribute(Ra(t))??e.getAttribute(t)??void 0)});function Mo(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function No({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Po({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fo(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 Io(e){return e===void 0||e===1}function Lo({scale:e,scaleX:t,scaleY:n}){return!Io(e)||!Io(t)||!Io(n)}function Ro(e){return Lo(e)||zo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function zo(e){return Bo(e.x)||Bo(e.y)}function Bo(e){return e&&e!==`0%`}function Vo(e,t,n){return n+t*(e-n)}function Ho(e,t,n,r,i){return i!==void 0&&(e=Vo(e,i,r)),Vo(e,n,r)+t}function Uo(e,t=0,n=1,r,i){e.min=Ho(e.min,t,n,r,i),e.max=Ho(e.max,t,n,r,i)}function Wo(e,{x:t,y:n}){Uo(e.x,t.translate,t.scale,t.originPoint),Uo(e.y,n.translate,n.scale,n.originPoint)}var Go=.999999999999,Ko=1.0000000000001;function qo(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&&(Jo(e.x,-a.scroll.offset.x),Jo(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Wo(e,o)),r&&Ro(a.latestValues)&&Zo(e,a.latestValues,a.layout?.layoutBox))}t.x<Ko&&t.x>Go&&(t.x=1),t.y<Ko&&t.y>Go&&(t.y=1)}function Jo(e,t){e.min+=t,e.max+=t}function Yo(e,t,n,r,i=.5){Uo(e,t,n,un(e.min,e.max,i),r)}function Xo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Zo(e,t,n){let r=n??e;Yo(e.x,Xo(t.x,r.x),t.scaleX,t.scale,t.originX),Yo(e.y,Xo(t.y,r.y),t.scaleY,t.scale,t.originY)}function Qo(e,t){return No(Fo(e.getBoundingClientRect(),t))}function $o(e,t,n){let r=Qo(e,n),{scroll:i}=t;return i&&(Jo(r.x,i.offset.x),Jo(r.y,i.offset.y)),r}var es={},ts=e=>lo(e)?jo:xo,ns=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=$a}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 Qo(this.current)}getProps(){return es}};function rs(e,t,n,r){if(r)return ao(e=>r.getValue(e,null),t,n,r);let i=ts(e);return oo(i,e,t,n,new ns(i,e))}var is=po((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Me(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:as,cancel:ss}=An(queueMicrotask,!1);function cs(e,t,n){let r=Fa(e)?e:fa(e);return r.start(Sa(``,r,t,n)),r.animation}var ls={},us={value:null,addProjectionMetrics:null};function ds(e,t){let n=ft.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Mn(r),e(a-t))};return jn.setup(r,!0),()=>Mn(r)}function fs(e){return lo(e)&&e.tagName===`svg`}function ps(e){return Fa(e)?e.get():e}var ms=e=>typeof e==`number`?e:parseFloat(e),hs=eo.length,gs=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],_s=gs.length,vs=e=>typeof e==`number`||H.test(e);function ys(e,t,n,r,i,a){i?(e.opacity=un(0,n.opacity??1,xs(r)),e.opacityExit=un(t.opacity??1,0,Ss(r))):a&&(e.opacity=un(t.opacity??1,n.opacity??1,r));for(let i=0;i<hs;i++){let a=eo[i],o=bs(t,a),s=bs(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||vs(o)===vs(s)?(e[a]=Math.max(un(ms(o),ms(s),r),0),(Ft.test(s)||Ft.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<_s;i++){let a=gs[i];(t[a]||n[a])&&(e[a]=un(t[a]||0,n[a]||0,r))}}function bs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var xs=Cs(0,.5,Qe),Ss=Cs(.5,.95,Fe);function Cs(e,t,n){return r=>r<e?0:r>t?1:n(Le(e,t,r))}function ws(e,t){e.min=t.min,e.max=t.max}function Ts(e,t){ws(e.x,t.x),ws(e.y,t.y)}function Es(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ds=.9999,Os=1.0001,ks=-.01,As=.01;function js(e){return e.max-e.min}function Ms(e,t,n){return Math.abs(e-t)<=n}function Ns(e,t,n,r=.5){e.origin=r,e.originPoint=un(t.min,t.max,e.origin),e.scale=js(n)/js(t),e.translate=un(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ds&&e.scale<=Os||isNaN(e.scale))&&(e.scale=1),(e.translate>=ks&&e.translate<=As||isNaN(e.translate))&&(e.translate=0)}function Ps(e,t,n,r){Ns(e.x,t.x,n.x,r?r.originX:void 0),Ns(e.y,t.y,n.y,r?r.originY:void 0)}function Fs(e,t,n,r=0){e.min=(r?un(n.min,n.max,r):n.min)+t.min,e.max=e.min+js(t)}function Is(e,t,n,r){Fs(e.x,t.x,n.x,r?.x),Fs(e.y,t.y,n.y,r?.y)}function Ls(e,t,n,r=0){let i=r?un(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+js(t)}function Rs(e,t,n,r){Ls(e.x,t.x,n.x,r?.x),Ls(e.y,t.y,n.y,r?.y)}function zs(e,t,n,r,i){return e-=t,e=Vo(e,1/n,r),i!==void 0&&(e=Vo(e,1/i,r)),e}function Bs(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=un(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=un(a.min,a.max,r);e===a&&(s-=t),e.min=zs(e.min,t,n,s,i),e.max=zs(e.max,t,n,s,i)}function Vs(e,t,[n,r,i],a,o){Bs(e,t[n],t[r],t[i],t.scale,a,o)}var Hs=[`x`,`scaleX`,`originX`],Us=[`y`,`scaleY`,`originY`];function Ws(e,t,n,r){Vs(e.x,t,Hs,n?n.x:void 0,r?r.x:void 0),Vs(e.y,t,Us,n?n.y:void 0,r?r.y:void 0)}var Gs=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:Gs(),y:Gs()}),qs=()=>({min:0,max:0}),Js=()=>({x:qs(),y:qs()});function Ys(e){return e.translate===0&&e.scale===1}function Xs(e){return Ys(e.x)&&Ys(e.y)}function Zs(e,t){return e.min===t.min&&e.max===t.max}function Qs(e,t){return Zs(e.x,t.x)&&Zs(e.y,t.y)}function $s(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ec(e,t){return $s(e.x,t.x)&&$s(e.y,t.y)}function tc(e){return js(e.x)/js(e.y)}function nc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var rc=class{constructor(){this.members=[]}add(e){Ee(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||(De(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(De(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 ic(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ac={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(H.test(e))e=parseFloat(e);else return e}return`${ic(e,t.target.x)}% ${ic(e,t.target.y)}%`}},oc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=on.parse(e);if(i.length>5)return r;let a=on.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=un(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},sc={borderRadius:{...ac,applyTo:[...eo]},borderTopLeftRadius:ac,borderTopRightRadius:ac,borderBottomLeftRadius:ac,borderBottomRightRadius:ac,boxShadow:oc};function cc(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 lc(e){return[e(`x`),e(`y`)]}var uc=(e,t)=>e.depth-t.depth,dc=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ee(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uc),this.isDirty=!1,this.children.forEach(e)}},fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(ls,{...sc,...ls});var pc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},mc=[``,`X`,`Y`,`Z`],hc=1e3,gc=0;function _c(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var vc=({instance:e})=>e&&Vi.get(e)?.demote();function yc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ba(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,jn,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yc(r)}function bc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=gc++,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,us.value&&(pc.nodes=pc.calculatedTargetDeltas=pc.calculatedProjections=0),this.nodes.forEach(Cc),this.nodes.forEach(Pc),this.nodes.forEach(Fc),this.nodes.forEach(wc),us.addProjectionMetrics&&us.addProjectionMetrics(pc)},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 dc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Re),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=lo(t)&&!fs(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;jn.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ds(i,250),fc.hasAnimatedSinceResize&&(fc.hasAnimatedSinceResize=!1,this.nodes.forEach(Nc)))})}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()||Vc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!ec(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={...ma(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||Nc(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,Mn(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(Ic),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&&yc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;vc(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,vc(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(Dc),this.nodes.forEach(Ec);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Oc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ac),this.nodes.forEach(jc),this.nodes.forEach(Mc),this.nodes.forEach(xc),this.nodes.forEach(Sc)):this.nodes.forEach(Oc),this.clearAllSnapshots();let e=ft.now();lt.delta=ke(0,1e3/60,e-lt.timestamp),lt.timestamp=e,lt.isProcessing=!0,Nn.update.process(lt),Nn.preRender.process(lt),Nn.render.process(lt),lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,as.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!js(this.snapshot.measuredBox.x)&&!js(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||=Js(),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&&vc(this);let t=this.projectionDelta&&!Xs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ro(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)),Gc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Js();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qc))){let{scroll:e}=this.root;e&&(Jo(t.x,e.offset.x),Jo(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Js();if(Ts(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&&Ts(t,e),Jo(t.x,i.offset.x),Jo(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Js();Ts(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&&(Jo(r.x,-n.scroll.offset.x),Jo(r.y,-n.scroll.offset.y)),Ro(n.latestValues)&&Zo(r,n.latestValues,n.layout?.layoutBox)}return Ro(this.latestValues)&&Zo(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Js();Ts(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ro(n.latestValues))continue;let r;n.instance&&(Lo(n.latestValues)&&n.updateSnapshot(),r=Js(),Ts(r,n.measurePageBox())),Ws(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ro(this.latestValues)&&Ws(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!==lt.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=lt.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=Js(),this.targetWithTransforms=Js()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Is(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ts(this.target,this.layout.layoutBox),Wo(this.target,this.targetDelta)):Ts(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),us.value&&pc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Lo(this.parent.latestValues)||zo(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=Js(),this.relativeTargetOrigin=Js(),Rs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Ts(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===lt.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;Ts(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;qo(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=Js());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Es(this.prevProjectionDelta.x,this.projectionDelta.x),Es(this.prevProjectionDelta.y,this.projectionDelta.y)),Ps(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&nc(this.projectionDelta.x,this.prevProjectionDelta.x)&&nc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),us.value&&pc.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=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ks();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Js(),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(Bc));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=un(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=un(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Lc(o.x,e.x,n),Lc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),zc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Qs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Js(),Ts(f,this.relativeTarget)),c&&(this.animationValues=a,ys(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&&=(Mn(this.pendingAnimation),void 0),this.pendingAnimation=jn.update(()=>{fc.hasAnimatedSinceResize=!0,this.motionValue||=fa(0),this.motionValue.jump(0,!1),this.currentAnimation=cs(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()}}),gr(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(hc),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&&Kc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Js();let t=js(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=js(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Ts(t,i),Zo(t,r),Ps(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rc),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&&_c(`z`,e,r,this.animationValues);for(let t=0;t<mc.length;t++)_c(`rotate${mc[t]}`,e,r,this.animationValues),_c(`skew${mc[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=ps(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=ps(t?.pointerEvents)||``),this.hasProjected&&!Ro(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=cc(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 ls){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ls[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?ps(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(Ec),this.root.sharedNodes.clear()}}}function xc(e){e.updateLayout(),kc(e)}function Sc(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`)lc(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=js(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ws(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Kc(i,t.layoutBox,n)&&lc(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=js(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=Ks();Ps(o,n,t.layoutBox);let s=Ks();a?Ps(s,e.applyTransform(r,!0),t.measuredBox):Ps(s,n,t.layoutBox);let c=!Xs(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=Js();Rs(s,t.layoutBox,i.layoutBox,o);let c=Js();Rs(c,n,a.layoutBox,o),ec(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 Cc(e){us.value&&pc.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 wc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tc(e){e.clearSnapshot()}function Ec(e){e.clearMeasurements()}function Dc(e){e.isLayoutDirty=!0,e.updateLayout()}function Oc(e){e.isLayoutDirty=!1}function kc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;lc(e=>Jo(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Ac(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function jc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Mc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Nc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pc(e){e.resolveTargetDelta()}function Fc(e){e.calcProjection()}function Ic(e){e.resetSkewAndRotation()}function Lc(e,t,n){e.translate=un(t.translate,0,n),e.scale=un(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rc(e,t,n,r){e.min=un(t.min,n.min,r),e.max=un(t.max,n.max,r)}function zc(e,t,n,r){Rc(e.x,t.x,n.x,r),Rc(e.y,t.y,n.y,r)}function Bc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Vc={duration:.45,ease:[.4,0,.1,1]},Hc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uc=Hc(`applewebkit/`)&&!Hc(`chrome/`)?Math.round:Fe;function Wc(e){e.min=Uc(e.min),e.max=Uc(e.max)}function Gc(e){Wc(e.x),Wc(e.y)}function Kc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ms(tc(t),tc(n),.2)}function qc(e){return e!==e.root&&e.scroll?.wasRoot}function Jc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Yc=bc({attachResizeListener:(e,t)=>Jc(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Xc={current:void 0},Zc=bc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xc.current){let e=new Yc({});e.mount(window),e.setOptions({layoutScroll:!0}),Xc.current=e}return Xc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Qc=new WeakMap;function $c(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function el(e){return typeof e==`string`||Array.isArray(e)}var tl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],nl=[`initial`,...tl];function rl(e){if($c(e.animate))return!0;for(let t=0;t<nl.length;t++)if(el(e[nl[t]]))return!0;return!1}function il(e){return!!(rl(e)||e.variants)}function al(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Fa(i))e.addValue(r,i);else if(Fa(a))e.addValue(r,fa(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,fa(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ol={current:null},sl={current:!1},cl=typeof window<`u`;function ll(){if(sl.current=!0,cl){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ol.current=e.matches;e.addEventListener(`change`,t),t()}else ol.current=!1}}var ul=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],dl={};function fl(e){dl=e}function pl(){return dl}var ml=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=li,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=ft.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,jn.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=rl(t),this.isVariantNode=il(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&&Fa(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,Qc.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:(sl.current||ll(),this.shouldReduceMotion=ol.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(),Mn(this.notifyUpdate),Mn(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&&ji.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Si({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:ze(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=qr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&jn.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Vi.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 dl){let t=dl[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):Js()}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)&&Vi.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ul.length;t++){let n=ul[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=al(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=fa(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`&&(je(n)||Ne(n))?n=parseFloat(n):typeof n!=`number`&&!on.test(n)&&on.test(t)&&(n=Mr(e,t)),this.setBaseTarget(e,Fa(n)?n.get():n)),Fa(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){as.render(this.render)}},hl=class extends ml{constructor(){super(...arguments),this.KeyframeResolver=$a}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;Fa(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function gl(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 _l(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ls[e]||e===`opacity`)}function vl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Fa(r[t])||i&&Fa(i[t])||_l(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function yl(e){return window.getComputedStyle(e)}var bl=class extends hl{constructor(){super(...arguments),this.type=`html`,this.renderInstance=gl}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(qr.has(t))return this.projection?.isProjecting?Hr(t):Wr(e,t);{let n=yl(e),r=(ht(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Qo(e,t)}build(e,t,n){So(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return vl(e,t,n)}},xl=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Sl(e){return{point:{x:e.pageX,y:e.pageY}}}var Cl=e=>t=>xl(t)&&e(t,Sl(t));function wl(e,t,n,r){return Jc(e,t,Cl(n),r)}var Tl=new WeakMap,El,Dl=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:lo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ol=Dl(`inline`,`width`,`offsetWidth`),kl=Dl(`block`,`height`,`offsetHeight`);function Al({target:e,borderBoxSize:t}){Tl.get(e)?.forEach(n=>{n(e,{get width(){return Ol(e,t)},get height(){return kl(e,t)}})})}function jl(e){e.forEach(Al)}function Ml(){typeof ResizeObserver<`u`&&(El=new ResizeObserver(jl))}function Nl(e,t){El||Ml();let n=uo(e);return n.forEach(e=>{let n=Tl.get(e);n||(n=new Set,Tl.set(e,n)),n.add(t),El?.observe(e)}),()=>{n.forEach(e=>{let n=Tl.get(e);n?.delete(t),n?.size||El?.unobserve(e)})}}var Pl=new Set,Fl;function Il(){Fl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Pl.forEach(t=>t(e))},window.addEventListener(`resize`,Fl)}function Ll(e){return Pl.add(e),Fl||Il(),()=>{Pl.delete(e),!Pl.size&&typeof Fl==`function`&&(window.removeEventListener(`resize`,Fl),Fl=void 0)}}function Rl(e,t){return typeof e==`function`?Ll(e):Nl(e,t)}var zl=(e,t)=>Math.abs(e-t);function Bl(e,t){let n=zl(e.x,t.x),r=zl(e.y,t.y);return Math.sqrt(n**2+r**2)}var Vl=new Set([`auto`,`scroll`]),Hl=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=Ul(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Gl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Bl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:ft.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=Ul(t,this.transformPagePoint),this.hasPendingMove=!0,jn.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=Gl(e.type===`pointercancel`?this.lastMoveEventInfo:Ul(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!xl(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Ul(Sl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=lt;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Gl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ie(wl(this.contextWindow,`pointermove`,this.handlePointerMove,d),wl(this.contextWindow,`pointerup`,this.handlePointerUp,d),wl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Vl.has(e.overflowX)||Vl.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),jn.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Mn(this.updatePoint)}};function Ul(e,t){return t?{point:t(e.point)}:e}function Wl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gl({point:e},t){return{point:e,delta:Wl(e,ql(t)),offset:Wl(e,Kl(t)),velocity:Jl(t,.1)}}function Kl(e){return e[0]}function ql(e){return e[e.length-1]}function Jl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ql(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ze(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>ze(t)*2&&(r=e[1]);let a=Be(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 Yl=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Xl(e){return Yl.has(e.tagName)||e.isContentEditable===!0}var Zl=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ql(e){return Zl.has(e.tagName)||e.isContentEditable===!0}var $l={x:!1,y:!1};function eu(){return $l.x||$l.y}function tu(e){return e===`x`||e===`y`?$l[e]?null:($l[e]=!0,()=>{$l[e]=!1}):$l.x||$l.y?null:($l.x=$l.y=!0,()=>{$l.x=$l.y=!1})}function nu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?un(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?un(n,e,r.max):Math.min(e,n)),e}function ru(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 iu(e,{top:t,left:n,bottom:r,right:i}){return{x:ru(e.x,n,i),y:ru(e.y,t,r)}}function au(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 ou(e,t){return{x:au(e.x,t.x),y:au(e.y,t.y)}}function su(e,t){let n=.5,r=js(e),i=js(t);return i>r?n=Le(t.min,t.max-r,e.min):r>i&&(n=Le(e.min,e.max-i,t.min)),ke(0,1,n)}function cu(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 lu=.35;function uu(e=lu){return e===!1?e=0:e===!0&&(e=lu),{x:du(e,`left`,`right`),y:du(e,`top`,`bottom`)}}function du(e,t,n){return{min:fu(e,t),max:fu(e,n)}}function fu(e,t){return typeof e==`number`?e:e[t]||0}var pu=new WeakMap,mu=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=Js(),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=tu(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),lc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(_t(t)&&(t=Ta(t,this.visualElement.current)||0),H.test(t))t=parseFloat(t);else if(Ft.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=js(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&jn.update(()=>i(e,t),!1,!0),La(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=bu(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&&jn.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 Hl(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&&jn.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||!yu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=nu(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;hu(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?iu(n.layoutBox,e):!1,this.elastic=uu(t),r!==this.constraints&&!hu(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&lc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=cu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!hu(e))return!1;let n=gu(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=$o(n,r.root,this.visualElement.getTransformPagePoint()),a=ou(r.layout.layoutBox,i);if(t){let e=t(Po(a));this.hasMutatedConstraints=!!e,e&&(a=No(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=lc(o=>{if(!yu(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 La(this.visualElement,e),n.start(Sa(e,n,0,t,this.visualElement,!1))}stopAnimation(){lc(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();lc(e=>{if(!yu(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-un(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!hu(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};lc(e=>{let t=this.getAxisMotionValue(e).get();i[e]=su({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(),lc(t=>{let n=this.getAxisMotionValue(t);if(!yu(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(un(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pu.set(this.visualElement,this);let e=this.visualElement.current,t=wl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ql(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=hu(t)&&gu(t);r&&(this.constraints=this.resolveRefConstraints(),n||=vu(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jn.read(r);let o=Jc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(lc(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=lu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function hu(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var gu=e=>`current`in e?e.current:e;function _u(e){let t=!0;return()=>{t?t=!1:e()}}function vu(e,t,n){let r=Rl(e,_u(n)),i=Rl(t,_u(n));return()=>{r(),i()}}function yu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function xu(e,t){let n=uo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Su(e){return!(e.pointerType===`touch`||eu())}function Cu(e,t,n={}){let[r,i,a]=xu(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(!Su(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 wu=(e,t)=>t?e===t||wu(e,t.parentElement):!1,Tu=new WeakSet;function Eu(e){return t=>{t.key===`Enter`&&e(t)}}function Du(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Ou=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Eu(()=>{if(Tu.has(n))return;Du(n,`down`);let e=Eu(()=>{Du(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Du(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ku(e){return xl(e)&&!eu()}var Au=new WeakSet;function ju(e,t,n={}){let[r,i,a]=xu(e,n),o=e=>{let r=e.currentTarget;if(!ku(e)||Au.has(e))return;Tu.add(r),n.stopPropagation&&Au.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Tu.has(r)&&Tu.delete(r),ku(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||wu(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),co(e)&&(e.addEventListener(`focus`,e=>Ou(e,i)),!Xl(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Mu(...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=$n(i,a,o);return t?s(r):s}var Nu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Pu=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`]),Fu=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Iu(e,t,n,r){gl(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Pu.has(n)?n:Ra(n),t.attrs[n])}function Lu(e,t,n){let r=vl(e,t,n);for(let n in e)if(n!==`children`&&(Fa(e[n])||Fa(t[n]))){let t=Kr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ru=class extends hl{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Js}getBaseTargetFromProps(e,t){return qr.has(t)?super.getBaseTargetFromProps(e,t)??Hr(t):e[t]}getDefaultValue(e){return qr.has(e)?this.latestValues[e]??Hr(e):void 0}readValueFromInstance(e,t){if(qr.has(t)){let e=Ar(t);return e&&e.default||0}if(Eo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Pu.has(t)?t:Ra(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Lu(e,t,n)}build(e,t,n){Do(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Iu(e,t,n,r)}mount(e){this.isSVGTag=Fu(e.tagName),super.mount(e)}};function zu(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 Bu=[...tl].reverse();function Vu(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ga(e,t,n))),n=Uu(),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(Bu.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?el(g)||g===!1?g:void 0:h,v=el(_),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||$c(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Hu(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}=Oa(e,n,ka(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)?!zu(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=Oa(s,n)?.transition?.delayChildren;r.delay=sa(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Oa(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&&!Fa(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=Uu(),i=!0}}}function Hu(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!zu(t,e):!1}function Uu(){let e={};for(let t of tl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Wu(e){return typeof e==`object`&&!Array.isArray(e)}function Gu(e,t,n,r){return e==null?[]:typeof e==`string`&&Wu(t)?uo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ku(e,t,n){return e*(t+1)+n*t}function qu(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 Ju(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(De(e,i),r--)}}function Yu(e,t,n,r,i,a){Ju(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:un(i,a,r[o]),easing:it(n,o)})}function Xu(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Zu(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Qu=`easeInOut`,$u=20;function ed(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,qu(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=qu(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=rd(e),{delay:l=0,times:u=tr(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=bi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&od(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=ze(b));let r=Rn(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&&er(u,T),c.length===1&&c.unshift(null),m&&`${m}${$u}`,m&&m<$u){let e=b>0?_/b:0;b=Ku(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`?Ke(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`:it(f,e-1))}Xu(u,m,e)}let E=w+b;Yu(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Fa(p)){let e=td(p,s);_(m,h,nd(`default`,e))}else{let e=Gu(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=td(r,s);for(let e in m)_(m[e],id(h,e),nd(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Zu);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(Le(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Qu)),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 td(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function nd(e,t){return t[e]||(t[e]=[]),t[e]}function rd(e){return Array.isArray(e)?e:[e]}function id(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var ad=e=>typeof e==`number`,od=e=>e.every(ad);function sd(e,t){return Fa(e)||typeof e==`number`||typeof e==`string`&&!Wu(t)}function cd(e,t,n,r){let i=[];if(sd(e,t))i.push(cs(e,Wu(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Gu(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(...rs(r,t,s,Qc.get(r))):i.push(...oo(io(r)??is,r,t,s))}}return i}function ld(e,t,n){let r=[];return ed(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=fa(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:Xn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...cd(n,e,t))}),r}function ud(e){return Array.isArray(e)&&e.some(Array.isArray)}function dd(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),ud(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=ld(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=cd(e,i,{...c,...r},t)}let l=new oa(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{De(t.animations,l)})),l}return i}var fd=Object.assign(dd(),{addEffect:no,removeEffect:ro}),U=c(Te()),pd=.1,md=2/3,hd=1/3;function gd(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function _d(e,t,n=!1){return e.top>=t.scrollTop+t.height*pd&&e.bottom<=t.scrollTop+t.height*md&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*hd)))}function vd(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 yd=`(prefers-reduced-motion: reduce)`,bd=[.23,1,.32,1],xd=[.23,1.15,.32,1],Sd=[.77,0,.175,1],Cd=We(...bd),wd={micro:120,base:180,surface:240,askExit:150,ease:`cubic-bezier(${bd.join(`,`)})`,move:`cubic-bezier(${Sd.join(`,`)})`,soft:`cubic-bezier(${xd.join(`,`)})`,out:bd,softCurve:xd},Td={settleMs:280},Ed=()=>window.matchMedia(yd).matches?`auto`:`smooth`;function Dd(){let[e,t]=(0,U.useState)(()=>window.matchMedia(yd).matches);return(0,U.useEffect)(()=>{let e=window.matchMedia(yd),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function Od(e,t){let n=vd(e.scrollTop,wd.surface,Cd),r=e.scrollTop,i=0,a=o=>{i=0,Ed()===`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 kd(e,t=!0){let[n,r]=(0,U.useState)({value:e,animate:t});return(0,U.useLayoutEffect)(()=>{if(e){r({value:e,animate:t});return}if(!n.value)return;let i=setTimeout(()=>r({value:e,animate:!1}),wd.micro);return()=>clearTimeout(i)},[e,t]),{value:e||(n.animate?n.value:void 0),props:{"data-motion":(e?t:n.animate)?void 0:`instant`,"data-ending-style":e?void 0:``,inert:!e}}}var Ad=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})),W=o(((e,t)=>{t.exports=Ad()}))();function jd(e,t){return function({size:n=16,...r}){return(0,W.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 Md=jd(`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`}]]),Nd=jd(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),Pd=jd(`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`}]]),Fd=jd(`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`}]]),Id=jd(`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`}]]),Ld=jd(`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`}]]),Rd=jd(`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`}]]),zd=jd(`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`}]]),Bd=jd(`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`}]]),Vd=jd(`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`}]]),Hd=jd(`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`}]]),Ud=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Wd(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Ud(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Gd=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},Kd=e=>{let t=Gd(e);return t.charAt(0).toUpperCase()+t.slice(1)},qd=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Jd={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 Yd(e){return e!=null}function Xd(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Jd.width,a=e.size??e.height??Jd.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?qd(...c):qd(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Jd[`stroke-width`])*Number(e.size??e.width??Jd.width)/Number(t.size??t.width??Jd.width):t.strokeWidth??Jd[`stroke-width`];return[`svg`,{...Object.entries(Jd).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Yd(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Yd(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Yd(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 Zd(e,t={}){return Xd(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Qd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},$d=(0,U.createContext)({}),ef=()=>(0,U.useContext)($d),tf=(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=``}=ef()??{},y=!!c||Qd(d),[b,x,S=[]]=Zd(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:qd(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 nf(e,t=[],n=[]){let r=typeof e==`string`?Wd(e,t,n):e,i=(0,U.forwardRef)(({className:e,...t},n)=>(0,U.createElement)(tf,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Kd(r.name)),i}var rf={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};rf.node;var af=nf(rf),of={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};of.node;var sf=nf(of),cf={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};cf.node;var lf=nf(cf),uf={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`}]]};uf.node;var df=nf(uf),ff={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`}]]};ff.node;var pf=nf(ff),mf={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`}]]};mf.node;var hf=nf(mf),gf={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`}]]};gf.node;var _f=nf(gf),vf={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`}]]};vf.node;var yf=nf(vf),bf={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`}]]};bf.node;var xf=nf(bf),Sf={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Sf.node;var Cf=nf(Sf),wf={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};wf.node;var Tf=nf(wf),Ef={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Ef.node;var Df=nf(Ef),Of={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Of.node;var kf=nf(Of),Af={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Af.node;var jf=nf(Af),Mf={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`]};Mf.node;var Nf=nf(Mf),Pf={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Pf.node;var Ff=nf(Pf),If={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`}]]};If.node;var Lf=nf(If),Rf={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`}]]};Rf.node;var zf=nf(Rf),Bf={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`]};Bf.node;var Vf=nf(Bf),Hf={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`}]]};Hf.node;var Uf=nf(Hf),Wf={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`}]]};Wf.node;var Gf=nf(Wf),Kf={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`}]]};Kf.node;var qf=nf(Kf),Jf={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`}]]};Jf.node;var Yf=nf(Jf),Xf={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`}]]};Xf.node;var Zf=nf(Xf),Qf={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`}]]};Qf.node;var $f=nf(Qf),ep={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`}]]};ep.node;var tp=nf(ep),np={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`}]]};np.node;var rp=nf(np),ip={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};ip.node;var ap=nf(ip),op={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`}]]};op.node;var sp=nf(op),cp={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`]};cp.node;var lp=nf(cp),up={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`}]]};up.node;var dp=nf(up),fp={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`}]]};fp.node;var pp=nf(fp),mp={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`}]]};mp.node;var hp=nf(mp),gp={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`}]]};gp.node;var _p=nf(gp),vp={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`}]]};vp.node;var yp=nf(vp),bp={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`}]]};bp.node;var xp=nf(bp),Sp={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`}]]};Sp.node;var Cp=nf(Sp),wp={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`}]]};wp.node;var Tp=nf(wp),Ep={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`}]]};Ep.node;var Dp=nf(Ep),Op={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`}]]};Op.node;var kp=nf(Op),Ap={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`}]]};Ap.node;var jp=nf(Ap),Mp={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`}]]};Mp.node;var Np=nf(Mp),Pp={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Pp.node;var Fp=nf(Pp),Ip={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`}]]};Ip.node;var Lp=nf(Ip),Rp={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`}]]};Rp.node;var zp=nf(Rp),Bp={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`}]]};Bp.node;var Vp=nf(Bp),Hp={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Hp.node;var Up=nf(Hp),Wp={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`}]]};Wp.node;var Gp=nf(Wp),Kp={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`}]]};Kp.node;var qp=nf(Kp),Jp={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Jp.node;var Yp=nf(Jp),Xp={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Xp.node;var Zp=nf(Xp),Qp={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`}]]};Qp.node;var $p=nf(Qp),em={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`}]]};em.node;var tm=nf(em),nm={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`]};nm.node;var rm=nf(nm),im={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`]};im.node;var am=nf(im),om={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`]};om.node;var sm=nf(om),cm={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`]};cm.node;var lm=nf(cm),um={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`}]]};um.node;var dm=nf(um),fm={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`}]]};fm.node;var pm=nf(fm),mm={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};mm.node;var hm=nf(mm),gm={"Other people":`Other people`,"Reading the transcript…":`Reading the transcript…`,"No events":`No events`,"Go to {date}":`Go to {date}`,"Previous day":`Previous day`,"Next day":`Next day`,"Resume notes · {title}":`Resume notes · {title}`,"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`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"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`,"Better notes model":`Better notes model`,"Download ({size} GB)":`Download ({size} GB)`,"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.`,"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`,"New recording":`New recording`,"Hide events without a call link":`Hide events without a call link`,"Keep your agenda and reminders focused on calls.":`Keep your agenda and reminders focused on calls.`,"Show earlier lines":`Show earlier lines`,"{count} more results":{one:`{count} more result`,other:`{count} more results`},"Search meetings and folders":`Search meetings and folders`,"Search…":`Search…`,"All meetings":`All meetings`,"Choose meetings or folders":`Choose meetings or folders`,"In this chat":`In this chat`,"and {count} others":{one:`and {count} other`,other:`and {count} others`},"{count} more":{one:`{count} more`,other:`{count} more`},Clear:`Clear`,"Searched {name}":`Searched {name}`,"Searched all meetings":`Searched all meetings`,"A meeting can be in more than one folder.":`A meeting can be in more than one folder.`,"An AI app":`An AI app`,"Connected apps · {apps}":`Connected apps · {apps}`,"Custom words":`Custom words`,"Export Markdown":`Export Markdown`,"Export Markdown…":`Export Markdown…`,"Export backup":`Export backup`,"Now · {title}":`Now · {title}`,"Paused · {title}":`Paused · {title}`,"Recording is still paused after an interruption.":`Recording is still paused after an interruption.`,"Recording reminders":`Recording reminders`,"Recording resumed after an interruption.":`Recording resumed after an interruption.`,"Recording stopped when the call ended.":`Recording stopped when the call ended.`,"Recording · {title}":`Recording · {title}`,"Removing this model restores the smaller one.":`Removing this model restores the smaller one.`,Skip:`Skip`,"Still reading…":`Still reading…`,"Summaries and Ask are ready.":`Summaries and Ask are ready.`,"The attendee list has changed.":`The attendee list has changed.`,"The download needs {gb} GB more free space.":`The download needs {gb} GB more free space.`,"The downloaded file is damaged.":`The downloaded file is damaged.`,"The list is full.":`The list is full.`,"The selected microphone is unavailable, so recording is using your system microphone.":`The selected microphone is unavailable, so recording is using your system microphone.`,"There is no transcript or typed note to summarize.":`There is no transcript or typed note to summarize.`,"This changes the language of Yogurt's menus and buttons.":`This changes the language of Yogurt's menus and buttons.`,"Yogurt couldn't change the notes model.":`Yogurt couldn't change the notes model.`,"Yogurt couldn't copy.":`Yogurt couldn't copy.`,"Yogurt couldn't delete everything in the Trash.":`Yogurt couldn't delete everything in the Trash.`,"Yogurt couldn't delete the recording.":`Yogurt couldn't delete the recording.`,"Yogurt couldn't delete this folder.":`Yogurt couldn't delete this folder.`,"Yogurt couldn't finish deleting this note.":`Yogurt couldn't finish deleting this note.`,"Yogurt couldn't regenerate the summary, so your previous version is still shown.":`Yogurt couldn't regenerate the summary, so your previous version is still shown.`,"Yogurt couldn't restart the download.":`Yogurt couldn't restart the download.`,"Yogurt couldn't save this folder.":`Yogurt couldn't save this folder.`,"Yogurt is setting up transcription on your computer.":`Yogurt is setting up transcription on your computer.`,"Yogurt reads these calendars and never changes them.":`Yogurt reads these calendars and never changes them.`,"Yogurt records calls without joining them and writes summaries on your computer afterward.":`Yogurt records calls without joining them and writes summaries on your computer afterward.`,"Yogurt stores your meetings, notes and audio on this computer.":`Yogurt stores your meetings, notes and audio on this computer.`,"Yogurt transcribes the call audio without joining the call.":`Yogurt transcribes the call audio without joining the call.`,"Yogurt transcribes your voice.":`Yogurt transcribes your voice.`,"Yogurt uses names shown by supported call apps to label speakers in your transcript.":`Yogurt uses names shown by supported call apps to label speakers in your transcript.`,"Yogurt uses these words to spell names and terms in your transcripts and notes.":`Yogurt uses these words to spell names and terms in your transcripts and notes.`,"Yogurt uses your name to identify you in calls.":`Yogurt uses your name to identify you in calls.`,"Yogurt writes a summary after you finish recording.":`Yogurt writes a summary after you finish recording.`,"You can add notes here to guide the summary.":`You can add notes here to guide the summary.`,"You can back up meetings, notes, transcripts and saved audio in one file.":`You can back up meetings, notes, transcripts and saved audio in one file.`,"You can get a reminder when Yogurt detects a call.":`You can get a reminder when Yogurt detects a call.`,"You can record here or add existing meetings to this folder.":`You can record here or add existing meetings to this folder.`,"You can use calendar events to add meeting titles and attendees to your notes.":`You can use calendar events to add meeting titles and attendees to your notes.`,"Your calendar":`Your calendar`,"Your edits to the summary will be replaced.":`Your edits to the summary will be replaced.`,"Your next recording will use both the microphone and call audio.":`Your next recording will use both the microphone and call audio.`,"Your question is waiting for Yogurt's AI to download.":`Your question is waiting for Yogurt's AI to download.`,"Your summary is waiting for Yogurt's AI to download.":`Your summary is waiting for Yogurt's AI to download.`,"Show Yogurt in":`Show Yogurt in`,"Menu bar and Dock":`Menu bar and Dock`,"Menu bar only":`Menu bar only`,"Dock only":`Dock only`,"Summary language":`Summary language`,"Same as the meeting":`Same as the meeting`,"Used for new summaries and when you write them again.":`Used for new summaries and when you write them again.`,"Writing the summary":`Writing the summary`,Regenerate:`Regenerate`,"Available after recording":`Available after recording`,"Note for the summary":`Note for the summary`,"Add a note, like shorter or in Spanish":`Add a note, like shorter or in Spanish`,"Waiting for Yogurt AI to download":`Waiting for Yogurt AI to download`,"Stop summary":`Stop summary`,"Summary stopped.":`Summary stopped.`,"This window couldn't be displayed.":`This window couldn't be displayed.`,Close:`Close`,"{current} of {count}":{one:`{current} of {count}`,other:`{current} of {count}`},"No matches":`No matches`,"Previous match":`Previous match`,"Next match":`Next match`,"Update ready":`Update ready`,"Installs when you restart Yogurt":`Installs when you restart Yogurt`,"You can restart after recording":`You can restart after recording`,Later:`Later`,Restart:`Restart`,"Yogurt couldn't restart. Try again.":`Yogurt couldn't restart. Try again.`,"Yogurt {version}":`Yogurt {version}`},_m=[{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`}],vm=e=>_m.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,ym=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":gm})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function bm(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 xm=`en`,Sm=new Set,Cm=()=>xm;function wm(e){return Sm.add(e),()=>{Sm.delete(e)}}var G=(e,t)=>bm(ym,xm,e,t),Tm=e=>e,Em={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function Dm(e,t){if(t===`darwin`)return e;if(Em[e])return Em[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 Om=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function km(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var Am=()=>globalThis.window?.yogurt?.os??`darwin`,jm=e=>Dm(e,Am()),Mm=e=>Om(e,Am()),Nm=()=>Am()===`darwin`,Pm=e=>km(e,Am()),Fm=/^(#{1,3})\s+(.*)$/,Im=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,Lm=`\\*_[]<#-+.)`;function Rm(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 zm(e,t,n){if(t[0]!==`*`)return Rm(e,t,n);let r=!1;for(let i=Rm(e,`*`,n);i!==-1;i=Rm(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 Bm=(e,t)=>e.type===t.type&&(e.type!==`link`||t.type===`link`&&e.attrs.href===t.attrs.href),Vm=/<\/?(m(i(n(e)?)?)?)?$/;function Hm(e,t,n=[]){t.streaming&&(e=e.replace(Vm,``));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 Hm(e,{...t,streaming:!1},[...n,i]))Um(r,a)},s=(e,i)=>{a();for(let a of Hm(e,t,[...n,i]))Um(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&&Lm.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=Rm(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(`***`)?Rm(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=zm(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=zm(e,n,c+1);for(;n===`_`&&i!==-1&&/\w/.test(e[i+1]??``);)i=Rm(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 Um(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 Wm=(e,t)=>{let n=Hm(e,t);return n.length?{type:`paragraph`,content:n}:{type:`paragraph`}};function Gm(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`),ee=Number(R),z=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(ee)?33:ee)),te=!1,ne=C(z).transcript,re=JSON.stringify(ne),ie=``,B=``,V=0,ae,H,oe;O.mine=H=C(z).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+(z>=l.resume?0:z)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,capabilities:{calendar:!1,callNames:!1,permissionPrompts:!1,mediaPause:!1},setup:{state:F({}),onState:P},updates:{status:F({version:``,available:!1,on:!1,state:`idle`}),onStatus: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(ne),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 le=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>le(()=>{te&&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,z>=l.notes)),z>=l.ask&&z<l.close&&ue(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&de(ue(`chat-open`)),z>=l.close&&ue(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(de(ue(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),z>=l.resume&&!document.documentElement.dataset.resumeClicked&&de(ue(`note-resume`)),fe(e),document.documentElement.dataset.typing=String(z>=l.type&&z<l.typed);let n=ue(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&de(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&z<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),z>=l.send&&z<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=z){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<z;z=e;let r=C(z);fe(r),ve(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),z>=l.finish&&z<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()),ne=r.transcript,JSON.stringify(ne)!==re&&(re=JSON.stringify(ne),ne.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)!==ie&&(ie=JSON.stringify(O),I.notes.emit(O)),j.turns=z<l.send||z>=l.resume?[]:[{id:1,question:_,answer:r.answer+(z>=l.answered?`[1]`:``),status:z<l.answered?`answering`:`done`,step:z<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k,scope:A}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==B&&(B=JSON.stringify(j),I.chat.emit(j)),z<1.5&&R===null&&(t=[.45+.2*Math.sin(z*9),.55+.18*Math.sin(z*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(V);let s=6,c=()=>{pe(C(z)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(V=requestAnimationFrame(c))};V=requestAnimationFrame(c)}function be(){let e=()=>{ue(`note-transcript-toggle`)&&(z===0&&(pe(C(z)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),ye(z),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`&&(te=e.data.playing,document.documentElement.dataset.playing=String(te)))});function xe(e){j.turns=e?[{id:1,...e,sources:k,scope:A}]:[],j.firstChips=A,I.chat.emit(j)}function Se(e,t){ne=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 ee(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(ee.bind(null,e))}var z={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=z,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=ee,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()),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,`
`).split(`
-`)){let e=i.replace(/\s+$/,``);if(!e.trim()){r=[],n.push({type:`paragraph`});continue}let a=Im.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:[Wm(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=Fm.exec(e.trim());if(o){let e=Hm(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(Wm(i,t))}return t.streaming&&qm(n),{type:`doc`,content:n.length?n:[{type:`paragraph`}]}}var Km=e=>!!e.text?.trim()||!!e.content?.some(Km);function qm(e){for(;e.length&&!Km(e.at(-1));)e.pop();let t=e.at(-1);t?.content&&/List$|^listItem$/.test(t.type)&&qm(t.content)}var Jm={link:()=>`[`,mine:()=>`<mine>`,bold:()=>`**`,italic:()=>`*`},Ym={link:e=>`](${e.type===`link`?e.attrs.href:``})`,mine:()=>`</mine>`,bold:()=>`**`,italic:()=>`*`},Xm=[`mine`,`link`,`bold`,`italic`],Zm=e=>e.replace(/[\\*_[\]]/g,`\\$&`).replace(/<(?=\/?mine>)/g,`\\<`),Qm=e=>e.replace(/^(\s*)([#+-])/,`$1\\$2`).replace(/^(\s*\d+)([.)])(?=\s)/,`$1\\$2`);function $m(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=>Bm(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)||Xm.indexOf(e.type)-Xm.indexOf(t.type)),s=0;for(;s<n.length&&s<o.length&&Bm(n[s],o[s]);)s++;for(let e=n.length-1;e>=s;e--)t+=Ym[n[e].type](n[e]);for(let e=s;e<o.length;e++)t+=Jm[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+=Zm(c)}for(let e=n.length-1;e>=0;e--)t+=Ym[n[e].type](n[e]);return t}function eh(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`?$m(o.content):``}`);let c=t+` `.repeat(a.length);for(let e of o?.type===`paragraph`?s:i.content??[])e.type===`bulletList`||e.type===`orderedList`?eh(e,c,n):e.type===`paragraph`&&n.push(`${c}${Qm($m(e.content))}`)}}function th(e){let t=[];for(let n of e.content??[])n.type===`heading`?t.push(`${`#`.repeat(Number(n.attrs?.level??2))} ${$m(n.content)}`):n.type===`bulletList`||n.type===`orderedList`?eh(n,``,t):n.type===`paragraph`&&t.push(Qm($m(n.content)));return t.join(`
-`)}function nh(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 rh=3e4;function ih(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 ah(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)<rh?e.push(n):t.push([n])}return t}function oh(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 sh(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 ch(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 lh(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 uh(e,t,n){let r=e=>!(`live`in e),i=e.reduce((e,t)=>e+t.lines.filter(r).length,0),a=i<=t?0:Math.floor((i-t)/n)*n;if(!a)return{runs:e,earlier:0};let o=a,s=[];for(let t of e){if(!o){s.push(t);continue}let e=0;for(;e<t.lines.length&&o>0;)r(t.lines[e])&&o--,e++;e<t.lines.length&&s.push({...t,lines:t.lines.slice(e)})}return{runs:s,earlier:a}}function dh(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 fh({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,U.useState)(!1),s=kd(a),[c,l]=(0,U.useState)(),u=(0,U.useRef)(null),d=(0,U.useRef)(null),f=(0,U.useRef)([]),p=(0,U.useRef)(void 0),m=dh(t,n,r),h=(0,U.useCallback)((e,t=`notice`)=>{l({text:e,kind:t}),clearTimeout(p.current),p.current=setTimeout(()=>l(void 0),2e3)},[]);(0,U.useEffect)(()=>(l(void 0),o(!1),()=>clearTimeout(p.current)),[e]);let{side:g,writing:_,fellBack:v}=m,y=(0,U.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=dh(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,U.useEffect)(()=>{let e=e=>{!e.repeat&&Mm(e)&&e.shiftKey&&!e.altKey&&!(Nm()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),y(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,U.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,W.jsxs)(`div`,{ref:u,className:`relative flex items-center gap-1.5`,children:[(0,W.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,W.jsxs)(W.Fragment,{children:[(c.kind===`copied`||c.kind===`saved`)&&(0,W.jsx)(Cf,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),c.kind===`error`&&(0,W.jsx)(Nf,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),c.text]})}),(0,W.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:`ghost-btn`,children:[(0,W.jsx)(Vd,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),G(`Copy`),(0,W.jsx)(Tf,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),s.value&&(0,W.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,W.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,W.jsx)(Vd,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,W.jsx)(`span`,{className:`flex-1`,children:G(`Copy my notes`)})]}),(0,W.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,W.jsx)(Vd,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Copy summary`)]}),(0,W.jsxs)(`button`,{ref:e=>{f.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>x(()=>void y(`transcript`)),className:C,children:[(0,W.jsx)(Vd,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Copy transcript`)]}),(0,W.jsxs)(`button`,{ref:e=>{f.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>x(()=>void b()),className:C,children:[(0,W.jsx)(Gf,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Export Markdown…`)]})]})]})}function ph(){let e=(0,U.useRef)(null);return(0,U.useEffect)(()=>{let t=e.current?.querySelector(`button[aria-haspopup="menu"]`);t?.getAttribute(`aria-expanded`)===`false`&&t.click()},[]),(0,W.jsx)(`div`,{className:`copy-stage`,ref:e,children:(0,W.jsx)(fh,{id:E.id,shown:`enhanced`,status:`done`,hasEnhanced:!0,beforeUse:async()=>!0})})}var mh=o((e=>{var t=Te();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`})),hh=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=mh()})),gh=c(hh()),_h=/\[(\d+(?:\s*,\s*\d+)*)\]/g,vh=/\[\d+(?:\s*,\s*\d+)*\](?:\s*(?:,|;|&|and)?\s*\[\d+(?:\s*,\s*\d+)*\])*/g,yh=4,bh=e=>[...e.matchAll(_h)].flatMap(e=>e[1].split(`,`).map(e=>Number(e.trim())));function xh(e,t){let n=new Map(t.map(e=>[e.n,e.meetingId])),r=new Set(n.values()).size;return e.replace(vh,e=>{let t=new Set,i=bh(e).filter(e=>{let r=n.get(e);return r===void 0||t.has(r)?!1:(t.add(r),!0)});return r>=yh&&t.size>r/2?``:i.length?`[${i.join(`, `)}]`:``}).replace(/ +([.,;:!?])/g,`$1`).replace(/ +$/gm,``).replace(/ {2,}/g,` `)}var Sh=/[.!?…](?=$|[\s"'”’)\]]|\p{Lu})/u,Ch=/^[ \t]*([.!?…"'”’)\]]+)/u;function wh(e,t,n){let r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i.type!==`citation`){i.text&&r.push(i);continue}for(;r.at(-1)?.type===`text`;){let e=r.at(-1);if(e.text=e.text.trimEnd(),e.text)break;r.pop()}let a=r.map(e=>e.text??``).join(``),o=e.slice(n+1).map(e=>e.text??``).join(``),s=/[.!?…]["'”’)\]]*$/.test(a),c=Ch.exec(o),l=c?o.slice(c[0].length):o;if(c&&(s||Sh.test(c[1]+l)&&/[.!?…]/.test(c[1])||!t&&!l.trim())){let t=c[0].length,i=t-c[1].length;for(let a=n+1;t&&e[a]?.type===`text`;a++){let n=e[a],o=Math.min(t,n.text.length),s=n.text.slice(Math.min(i,o),o);s&&r.push({...n,text:s}),n.text=n.text.slice(o),i=Math.max(0,i-o),t-=o}}(!t||s||Sh.test(o)||/^\s+["“(]*\p{Lu}/u.test(o))&&(i.attrs.gap=/[\p{L}\p{N}\p{M}]$/u.test(r.at(-1)?.text??``),r.push(i))}let i=Ah(r.map(e=>e.text??``).join(``)),a=0;for(let e of r)e.type===`citation`&&(e.attrs.sentence=i.find(e=>a>e.index&&a<=e.end)?.text??``),a+=e.text?.length??0;if(n){let e=new Map;for(let t of r)if(t.type===`citation`)for(let r of t.attrs.marks)e.set(n.get(r.source),r);for(let t of r)t.type===`citation`&&(t.attrs.marks=t.attrs.marks.filter(t=>e.get(n.get(t.source))===t))}let o=[];for(let e of r){if(e.type!==`citation`){o.push(e);continue}let t=[e];for(;o.at(-1)?.type===`text`;){let e=o.at(-1),n=/\S+$/.exec(e.text??``);if(!n)break;if(o.pop(),t.unshift({...e,text:n[0]}),n.index){o.push({...e,text:e.text.slice(0,n.index)});break}}o.push(t.length>1?{type:`citationAnchor`,content:t}:e)}return o}function Th(e,t,n=!1){let r=Gm(xh(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`?wh(t,e===s,e.type===`paragraph`?i:void 0):t}]}let t=e.text??``,n=[],r=0;for(let o of t.matchAll(_h)){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 Eh(e){let t=Gm(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 Dh=e=>Eh(e).map(e=>e.map(e=>e.text??``).join(``)).join(`
-`),Oh=new Intl.Segmenter(void 0,{granularity:`word`}),kh=new Intl.Segmenter(void 0,{granularity:`sentence`});function Ah(e){let t=0;return e.split(`
-`).flatMap(e=>{let n=t;return t+=e.length+1,[...kh.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 jh=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(` `)),Mh=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!jh.has(e)));function Nh(e,t){let n=e=>e.type===`heading`?[]:e.type===`paragraph`?[(e.content??[]).map(e=>e.text??``).join(``)]:(e.content??[]).flatMap(n),r=Ah(n(Gm(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0})).join(`
-`)).map(e=>e.text).filter(e=>{let t=[...Oh.segment(e)].filter(e=>e.isWordLike).length;return!/[::…]$|\.{3}$/.test(e)&&(t>=3||t>=2&&/[.!?。!?]["'”’»))\]]*$/.test(e))}),i=Mh(t),a=0,o=-1;return r.forEach((e,t)=>{let n=[...Mh(e)].filter(e=>i.has(e)).length;n>o&&(a=t,o=n)}),{before:r[a-1]??``,match:r[a]??``,after:r[a+1]??``}}var Ph=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function Fh(e,t,n=0){let r=Ph(t);if(!r)return-1;let i=e.map(e=>Ph(Dh(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=Ph(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 Ih={folder:Tm(`Folder`),star:Tm(`Star`),heart:Tm(`Heart`),flag:Tm(`Flag`),bookmark:Tm(`Bookmark`),briefcase:Tm(`Briefcase`),users:Tm(`People`),handshake:Tm(`Handshake`),message:Tm(`Conversation`),video:Tm(`Video`),calendar:Tm(`Calendar`),clock:Tm(`Clock`),target:Tm(`Target`),lightbulb:Tm(`Idea`),rocket:Tm(`Rocket`),code:Tm(`Code`),palette:Tm(`Palette`),megaphone:Tm(`Megaphone`),graduation:Tm(`Graduation cap`),book:Tm(`Book`),flask:Tm(`Flask`),coffee:Tm(`Coffee`),house:Tm(`House`),plane:Tm(`Plane`)},Lh={default:Tm(`Default`),violet:Tm(`Purple`),blue:Tm(`Blue`),teal:Tm(`Teal`),green:Tm(`Green`),amber:Tm(`Amber`),orange:Tm(`Orange`),rose:Tm(`Pink`)},Rh={icon:`folder`,color:`default`},zh=Object.keys(Lh).filter(e=>e!=="default");function Bh(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%zh.length}var Vh=(0,U.createContext)({});function Hh(e){let t=(0,U.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Uh=typeof window<`u`?U.useLayoutEffect:U.useEffect,Wh=(0,U.createContext)(null),Gh=(0,U.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Kh(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function qh(...e){return t=>{let n=!1,r=e.map(e=>{let r=Kh(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():Kh(e[t],null)}}}}function Jh(...e){return U.useCallback(qh(...e),e)}var Yh=class extends U.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(co(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=co(e)&&e.offsetWidth||0,r=co(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 Xh({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)(Gh),d=Jh(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=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*(?:,|;|&|and)?\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,n){let r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i.type!==`citation`){i.text&&r.push(i);continue}for(;r.at(-1)?.type===`text`;){let e=r.at(-1);if(e.text=e.text.trimEnd(),e.text)break;r.pop()}let a=r.map(e=>e.text??``).join(``),o=e.slice(n+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=n+1;t&&e[a]?.type===`text`;a++){let n=e[a],o=Math.min(t,n.text.length),s=n.text.slice(Math.min(i,o),o);s&&r.push({...n,text:s}),n.text=n.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(r.at(-1)?.text??``),r.push(i))}let i=ct(r.map(e=>e.text??``).join(``)),a=0;for(let e of r)e.type===`citation`&&(e.attrs.sentence=i.find(e=>a>e.index&&a<=e.end)?.text??``),a+=e.text?.length??0;if(n){let e=new Map;for(let t of r)if(t.type===`citation`)for(let r of t.attrs.marks)e.set(n.get(r.source),r);for(let t of r)t.type===`citation`&&(t.attrs.marks=t.attrs.marks.filter(t=>e.get(n.get(t.source))===t))}let o=[];for(let e of r){if(e.type!==`citation`){o.push(e);continue}let t=[e];for(;o.at(-1)?.type===`text`;){let e=o.at(-1),n=/\S+$/.exec(e.text??``);if(!n)break;if(o.pop(),t.unshift({...e,text:n[0]}),n.index){o.push({...e,text:e.text.slice(0,n.index)});break}}o.push(t.length>1?{type:`citationAnchor`,content:t}:e)}return o}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,e.type===`paragraph`?i:void 0):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:`word`}),st=new Intl.Segmenter(void 0,{granularity:`sentence`});function ct(e){let t=0;return e.split(`
+`).flatMap(e=>{let n=t;return t+=e.length+1,[...st.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 lt=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(` `)),ut=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!lt.has(e)));function dt(e,t){let n=e=>e.type===`heading`?[]:e.type===`paragraph`?[(e.content??[]).map(e=>e.text??``).join(``)]:(e.content??[]).flatMap(n),r=ct(n(Re(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0})).join(`
+`)).map(e=>e.text).filter(e=>{let t=[...ot.segment(e)].filter(e=>e.isWordLike).length;return!/[::…]$|\.{3}$/.test(e)&&(t>=3||t>=2&&/[.!?。!?]["'”’»))\]]*$/.test(e))}),i=ut(t),a=0,o=-1;return r.forEach((e,t)=>{let n=[...ut(e)].filter(e=>i.has(e)).length;n>o&&(a=t,o=n)}),{before:r[a-1]??``,match:r[a]??``,after:r[a+1]??``}}var ft=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function pt(e,t,n=0){let r=ft(t);if(!r)return-1;let i=e.map(e=>ft(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=ft(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 mt={"Other people":`Other people`,"Reading the transcript…":`Reading the transcript…`,"No events":`No events`,"Go to {date}":`Go to {date}`,"Previous day":`Previous day`,"Next day":`Next day`,"Resume notes · {title}":`Resume notes · {title}`,"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`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"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`,"Better notes model":`Better notes model`,"Download ({size} GB)":`Download ({size} GB)`,"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.`,"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`,"New recording":`New recording`,"Hide events without a call link":`Hide events without a call link`,"Keep your agenda and reminders focused on calls.":`Keep your agenda and reminders focused on calls.`,"Show earlier lines":`Show earlier lines`,"{count} more results":{one:`{count} more result`,other:`{count} more results`},"Search meetings and folders":`Search meetings and folders`,"Search…":`Search…`,"All meetings":`All meetings`,"Choose meetings or folders":`Choose meetings or folders`,"In this chat":`In this chat`,"and {count} others":{one:`and {count} other`,other:`and {count} others`},"{count} more":{one:`{count} more`,other:`{count} more`},Clear:`Clear`,"Searched {name}":`Searched {name}`,"Searched all meetings":`Searched all meetings`,"A meeting can be in more than one folder.":`A meeting can be in more than one folder.`,"An AI app":`An AI app`,"Connected apps · {apps}":`Connected apps · {apps}`,"Custom words":`Custom words`,"Export Markdown":`Export Markdown`,"Export Markdown…":`Export Markdown…`,"Export backup":`Export backup`,"Now · {title}":`Now · {title}`,"Paused · {title}":`Paused · {title}`,"Recording is still paused after an interruption.":`Recording is still paused after an interruption.`,"Recording reminders":`Recording reminders`,"Recording resumed after an interruption.":`Recording resumed after an interruption.`,"Recording stopped when the call ended.":`Recording stopped when the call ended.`,"Recording · {title}":`Recording · {title}`,"Removing this model restores the smaller one.":`Removing this model restores the smaller one.`,Skip:`Skip`,"Still reading…":`Still reading…`,"Summaries and Ask are ready.":`Summaries and Ask are ready.`,"The attendee list has changed.":`The attendee list has changed.`,"The download needs {gb} GB more free space.":`The download needs {gb} GB more free space.`,"The downloaded file is damaged.":`The downloaded file is damaged.`,"The list is full.":`The list is full.`,"The selected microphone is unavailable, so recording is using your system microphone.":`The selected microphone is unavailable, so recording is using your system microphone.`,"There is no transcript or typed note to summarize.":`There is no transcript or typed note to summarize.`,"This changes the language of Yogurt's menus and buttons.":`This changes the language of Yogurt's menus and buttons.`,"Yogurt couldn't change the notes model.":`Yogurt couldn't change the notes model.`,"Yogurt couldn't copy.":`Yogurt couldn't copy.`,"Yogurt couldn't delete everything in the Trash.":`Yogurt couldn't delete everything in the Trash.`,"Yogurt couldn't delete the recording.":`Yogurt couldn't delete the recording.`,"Yogurt couldn't delete this folder.":`Yogurt couldn't delete this folder.`,"Yogurt couldn't finish deleting this note.":`Yogurt couldn't finish deleting this note.`,"Yogurt couldn't regenerate the summary, so your previous version is still shown.":`Yogurt couldn't regenerate the summary, so your previous version is still shown.`,"Yogurt couldn't restart the download.":`Yogurt couldn't restart the download.`,"Yogurt couldn't save this folder.":`Yogurt couldn't save this folder.`,"Yogurt is setting up transcription on your computer.":`Yogurt is setting up transcription on your computer.`,"Yogurt reads these calendars and never changes them.":`Yogurt reads these calendars and never changes them.`,"Yogurt records calls without joining them and writes summaries on your computer afterward.":`Yogurt records calls without joining them and writes summaries on your computer afterward.`,"Yogurt stores your meetings, notes and audio on this computer.":`Yogurt stores your meetings, notes and audio on this computer.`,"Yogurt transcribes the call audio without joining the call.":`Yogurt transcribes the call audio without joining the call.`,"Yogurt transcribes your voice.":`Yogurt transcribes your voice.`,"Yogurt uses names shown by supported call apps to label speakers in your transcript.":`Yogurt uses names shown by supported call apps to label speakers in your transcript.`,"Yogurt uses these words to spell names and terms in your transcripts and notes.":`Yogurt uses these words to spell names and terms in your transcripts and notes.`,"Yogurt uses your name to identify you in calls.":`Yogurt uses your name to identify you in calls.`,"Yogurt writes a summary after you finish recording.":`Yogurt writes a summary after you finish recording.`,"You can add notes here to guide the summary.":`You can add notes here to guide the summary.`,"You can back up meetings, notes, transcripts and saved audio in one file.":`You can back up meetings, notes, transcripts and saved audio in one file.`,"You can get a reminder when Yogurt detects a call.":`You can get a reminder when Yogurt detects a call.`,"You can record here or add existing meetings to this folder.":`You can record here or add existing meetings to this folder.`,"You can use calendar events to add meeting titles and attendees to your notes.":`You can use calendar events to add meeting titles and attendees to your notes.`,"Your calendar":`Your calendar`,"Your edits to the summary will be replaced.":`Your edits to the summary will be replaced.`,"Your next recording will use both the microphone and call audio.":`Your next recording will use both the microphone and call audio.`,"Your question is waiting for Yogurt's AI to download.":`Your question is waiting for Yogurt's AI to download.`,"Your summary is waiting for Yogurt's AI to download.":`Your summary is waiting for Yogurt's AI to download.`,"Show Yogurt in":`Show Yogurt in`,"Menu bar and Dock":`Menu bar and Dock`,"Menu bar only":`Menu bar only`,"Dock only":`Dock only`,"Summary language":`Summary language`,"Same as the meeting":`Same as the meeting`,"Used for new summaries and when you write them again.":`Used for new summaries and when you write them again.`,"Writing the summary":`Writing the summary`,Regenerate:`Regenerate`,"Available after recording":`Available after recording`,"Note for the summary":`Note for the summary`,"Add a note, like shorter or in Spanish":`Add a note, like shorter or in Spanish`,"Waiting for Yogurt AI to download":`Waiting for Yogurt AI to download`,"Stop summary":`Stop summary`,"Summary stopped.":`Summary stopped.`,"This window couldn't be displayed.":`This window couldn't be displayed.`,Close:`Close`,"{current} of {count}":{one:`{current} of {count}`,other:`{current} of {count}`},"No matches":`No matches`,"Previous match":`Previous match`,"Next match":`Next match`,"Update ready":`Update ready`,"Installs when you restart Yogurt":`Installs when you restart Yogurt`,"You can restart after recording":`You can restart after recording`,Later:`Later`,Restart:`Restart`,"Yogurt couldn't restart. Try again.":`Yogurt couldn't restart. Try again.`,"Yogurt {version}":`Yogurt {version}`},ht=[{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`}],gt=e=>ht.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,_t=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":mt})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function vt(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 yt=`en`,bt=new Set,xt=()=>yt;function St(e){return bt.add(e),()=>{bt.delete(e)}}var W=(e,t)=>vt(_t,yt,e,t),Ct=e=>e,wt={folder:Ct(`Folder`),star:Ct(`Star`),heart:Ct(`Heart`),flag:Ct(`Flag`),bookmark:Ct(`Bookmark`),briefcase:Ct(`Briefcase`),users:Ct(`People`),handshake:Ct(`Handshake`),message:Ct(`Conversation`),video:Ct(`Video`),calendar:Ct(`Calendar`),clock:Ct(`Clock`),target:Ct(`Target`),lightbulb:Ct(`Idea`),rocket:Ct(`Rocket`),code:Ct(`Code`),palette:Ct(`Palette`),megaphone:Ct(`Megaphone`),graduation:Ct(`Graduation cap`),book:Ct(`Book`),flask:Ct(`Flask`),coffee:Ct(`Coffee`),house:Ct(`House`),plane:Ct(`Plane`)},Tt={default:Ct(`Default`),violet:Ct(`Purple`),blue:Ct(`Blue`),teal:Ct(`Teal`),green:Ct(`Green`),amber:Ct(`Amber`),orange:Ct(`Orange`),rose:Ct(`Pink`)},Et={icon:`folder`,color:`default`},Dt=Object.keys(Tt).filter(e=>e!=="default");function Ot(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%Dt.length}function kt(e,t){e.indexOf(t)===-1&&e.push(t)}function At(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function jt([...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 Mt=(e,t,n)=>n>t?t:n<e?e:n,Nt={},Pt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ft=e=>typeof e==`object`&&!!e,It=e=>/^0[^.\s]+$/u.test(e);function Lt(e){let t;return()=>(t===void 0&&(t=e()),t)}var Rt=e=>e,zt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Bt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Vt=class{constructor(){this.subscriptions=[]}add(e){return kt(this.subscriptions,e),()=>this.remove(e)}remove(e){At(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}},Ht=e=>e*1e3,Ut=e=>e/1e3,Wt=(e,t)=>t?1e3/t*e:0,Gt=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Kt=(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?Rt:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Kt(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Kt(s+1e-7,e,n)-i-r)}return Kt(s,t,r)}}var Jt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yt=e=>t=>1-e(1-t),Xt=qt(.33,1.53,.69,.99),Zt=Yt(Xt),Qt=Jt(Zt),$t=e=>e>=1?1:(e*=2)<1?.5*Zt(e):.5*(2-2**(-10*(e-1))),en=e=>1-Math.sin(Math.acos(e)),tn=Yt(en),nn=Jt(en),rn=qt(.42,0,1,1),an=qt(0,0,.58,1),on=qt(.42,0,.58,1),sn=e=>Array.isArray(e)&&typeof e[0]!=`number`;function cn(e,t){return sn(e)?e[Gt(0,e.length,t)]:e}var ln=e=>Array.isArray(e)&&typeof e[0]==`number`,un={linear:Rt,easeIn:rn,easeInOut:on,easeOut:an,circIn:en,circInOut:nn,circOut:tn,backIn:Zt,backInOut:Qt,backOut:Xt,anticipate:$t},dn=e=>typeof e==`string`,fn=e=>{if(ln(e)){e.length;let[t,n,r,i]=e;return qt(t,n,r,i)}return dn(e)?(un[e],`${e}`,un[e]):e},pn={delta:0,timestamp:0,isProcessing:!1},mn;function hn(){mn=void 0}var gn={now:()=>(mn===void 0&&gn.set(pn.isProcessing||Nt.useManualTiming?pn.timestamp:performance.now()),mn),set:e=>{mn=e,queueMicrotask(hn)}},_n=e=>Math.round(e*1e5)/1e5,vn=e=>t=>typeof t==`string`&&t.startsWith(e),yn=vn(`--`),bn=vn(`var(--`),xn=e=>bn(e)?Sn.test(e.split(`/*`)[0].trim()):!1,Sn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Cn(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var wn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Tn={...wn,transform:e=>Mt(0,1,e)},En={...wn,default:1},Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function On(e){return e==null}var kn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,An=(e,t)=>n=>!!(typeof n==`string`&&kn.test(n)&&n.startsWith(e)||t&&!On(n)&&Object.prototype.hasOwnProperty.call(n,t)),jn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Dn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Mn=e=>Mt(0,255,e),Nn={...wn,transform:e=>Math.round(Mn(e))},Pn={test:An(`rgb`,`red`),parse:jn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Nn.transform(e)+`, `+Nn.transform(t)+`, `+Nn.transform(n)+`, `+_n(Tn.transform(r))+`)`};function Fn(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 In={test:An(`#`),parse:Fn,transform:Pn.transform},Ln=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rn=Ln(`deg`),zn=Ln(`%`),Bn=Ln(`px`),Vn=Ln(`vh`),Hn=Ln(`vw`),Un={...zn,parse:e=>zn.parse(e)/100,transform:e=>zn.transform(e*100)},Wn={test:An(`hsl`,`hue`),parse:jn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+zn.transform(_n(t))+`, `+zn.transform(_n(n))+`, `+_n(Tn.transform(r))+`)`},Gn={test:e=>Pn.test(e)||In.test(e)||Wn.test(e),parse:e=>Pn.test(e)?Pn.parse(e):Wn.test(e)?Wn.parse(e):In.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Pn.transform(e):Wn.transform(e),getAnimatableNone:e=>{let t=Gn.parse(e);return t.alpha=0,Gn.transform(t)}},Kn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,qn=new RegExp(Dn.source),Jn=new RegExp(Kn.source,`i`);function Yn(e){return isNaN(e)&&typeof e==`string`&&(qn.test(e)||Jn.test(e))}var Xn=`number`,Zn=`color`,Qn=`var`,$n=`var(`,er="${}",tr=/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 nr(e){let t=e.toString();return qn.test(t)||Jn.test(t)}function rr(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(tr,e=>(Gn.test(e)?(r.color.push(a),i.push(Zn),n.push(Gn.parse(e))):e.startsWith($n)?(r.var.push(a),i.push(Qn),n.push(e)):(r.number.push(a),i.push(Xn),n.push(parseFloat(e))),++a,er)).split(er),indexes:r,types:i}}function ir(e){return rr(e).values}function ar({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===Xn?_n(r[a]):e===Zn?Gn.transform(r[a]):r[a]}return i}}function or(e){return ar(rr(e))}var sr=e=>typeof e==`number`?0:Gn.test(e)?Gn.getAnimatableNone(e):e,cr=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:sr(e);function lr(e){let t=rr(e);return ar(t)(t.values.map((e,n)=>cr(e,t.split[n])))}var ur={test:Yn,parse:ir,createTransformer:or,getAnimatableNone:lr};function dr(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 fr({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=dr(s,r,e+1/3),a=dr(s,r,e),o=dr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function pr(e,t){return n=>n>0?t:e}var mr=(e,t,n)=>e+(t-e)*n,hr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},gr=[In,Pn,Wn],_r=e=>gr.find(t=>t.test(e));function vr(e){let t=_r(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Wn&&(n=fr(n)),n}var yr=(e,t)=>{let n=vr(e),r=vr(t);if(!n||!r)return pr(e,t);let i={...n};return e=>(i.red=hr(n.red,r.red,e),i.green=hr(n.green,r.green,e),i.blue=hr(n.blue,r.blue,e),i.alpha=mr(n.alpha,r.alpha,e),Pn.transform(i))},br=new Set([`none`,`hidden`]);function xr(e,t){return br.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sr(e,t){return n=>mr(e,t,n)}function Cr(e){return typeof e==`number`?Sr:typeof e==`string`?xn(e)?pr:Gn.test(e)?yr:Dr:Array.isArray(e)?wr:typeof e==`object`?Gn.test(e)?yr:Tr:pr}function wr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Cr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Tr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Er(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 Dr=(e,t)=>{let n=ur.createTransformer(t),r=rr(e),i=rr(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?br.has(e)&&!i.values.length||br.has(t)&&!r.values.length?xr(e,t):zt(wr(Er(r,i),i.values),n):(`${e}${t}`,pr(e,t))},Or=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function kr(e,t){let n=Or.exec(e);if(!n)return;let r=Or.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>_n(mr(a,o,e))+i}function Ar(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return mr(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=kr(e,t);if(n)return n}return Cr(e)(e,t)}var jr=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Mr(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 Nr=40;function Pr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=jr.reduce((e,t)=>(e[t]=Mr(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Nt.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Nr),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:jr.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<jr.length;t++)o[jr[t]].cancel(e)},state:n,steps:o}}var{schedule:Fr,cancel:Ir,steps:Lr}=Pr(typeof requestAnimationFrame<`u`?requestAnimationFrame:Rt,!0,pn),Rr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Fr.update(t,e),stop:()=>Ir(t),now:()=>pn.isProcessing?pn.timestamp:gn.now()}},zr=(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)})`},Br=2e4;function Vr(e,t=50,n=Br,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 Hr(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(Vr(o),Br);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Ut(s)}}var Ur={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},Wr=e=>e<0?1/Math.max(1+e,Ur.minDamping):Math.max(1-e,Ur.minDamping);function Gr(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 Jr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Kr(e,t){return e*Math.sqrt(1-t*t)}var qr=12;function Jr(e,t,n){let r=n;for(let n=1;n<qr;n++)r-=e(r)/t(r);return r}var Yr=.001;function Xr({duration:e=Ur.duration,bounce:t=Ur.bounce}){let n,r;Ur.maxDuration;let i=Wr(t);e=Mt(Ur.minDuration,Ur.maxDuration,Ut(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Kr(t,i),o=Math.exp(-r);return Yr-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Kr(t*t,i);return(-n(t)+Yr>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=Jr(n,r,a),s=o*Gr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Ht(e)}}var Zr=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Qr(e,t){if(Zr(e,t))return e}function $r(e){let t=Qr(e.stiffness),n=Qr(e.damping,!0),r=Qr(e.mass),i={...e,stiffness:t??Ur.stiffness,damping:n??Ur.damping,mass:r??Ur.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=Wr(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Gr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Xr(i)),i.isResolvedFromDuration=!0;Zr(i.stiffness)&&Zr(i.damping,!0)||(i.stiffness=Ur.stiffness,i.damping=Ur.damping)}return i}function ei(e=Ur.visualDuration,t=Ur.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}=$r({...n}),f=e=>d?0:-Ut(e),p=s/(2*Math.sqrt(o*c)),m=Ut(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?Ur.restSpeed.granular:Ur.restSpeed.default),g.restDelta=n.restDelta||(e?Ur.restDelta.granular:Ur.restDelta.default)};_();let v,y,b;if(p<1){let e=Kr(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=>Ht(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Ht(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(Vr(S),Br),t=zr(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}ei.applyToOptions=e=>{let t=Hr(e,100,ei);return e.ease=t.ease,e.duration=Ht(t.duration),e.type=`keyframes`,e};function ti({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=ei({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 ni(e,t,n){let r=[],i=n||Nt.mix||Ar,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=zt(Array.isArray(t)?t[n]||Rt:t,a)),r.push(a)}return r}function ri(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=ni(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=Bt(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Mt(e[0],e[a-1],t)):l}function ii(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Bt(0,t,r);e.push(mr(n,1,i))}}function ai(e){let t=[0];return ii(t,e.length-1),t}function oi(e,t){return e.map(e=>e*t)}function si(e,t){return e.map(()=>t||on).splice(0,e.length-1)}function ci({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=sn(r)?r.map(fn):fn(r)||on,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:(Nt.mix||Ar)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Mt(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=ri(oi(n&&n.length===t.length?n:ai(t),e),t,{ease:Array.isArray(i)?i:si(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var li=5;function ui(e,t,n){let r=Math.max(t-li,0);return Wt(n-e(r),t-r)}function di(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):ui(t=>e.next(t).value,t,e.next(t).value)}var fi=e=>e!==null;function pi(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(fi),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var mi={decay:ti,inertia:ti,tween:ci,keyframes:ci,spring:ei};function hi(e){typeof e.type==`string`&&(e.type=mi[e.type])}var gi=40,_i=(e,t)=>t-e>gi&&!Nt.useManualTiming?t:e;function vi(e,t){return{kind:e,animation:t,timestamp:gn.now(),frameTimestamp:pn.timestamp,frameIsProcessing:pn.isProcessing}}function yi(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...vi(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function bi(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...vi(`layout-animation-start`,e),node:t})}catch{}}var xi=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)}},Si=e=>e/100,Ci=e=>Math.round(e*1e4)/1e4,wi=class extends xi{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!==gn.now()&&this.tick(gn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),yi(this,this.options)}initAnimation(){let{options:e}=this;hi(e);let{type:t=ci,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ci;s!==ci&&typeof o[0]!=`number`&&(this.mixKeyframes=zt(Si,Ar(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=Vr(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=_i(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!==ti&&(f.value=pi(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Ci((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!==ti?pi(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=Mt(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 Ut(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(this.currentTime)}set time(e){e=Ht(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 di(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(gn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ut(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Rr,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(gn.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)}},Ti=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ei(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Dn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ti.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Di=/\b([a-z-]*)\(.*?\)/gu,Oi={...ur,getAnimatableNone:e=>{let t=e.match(Di);return t?t.map(Ei).join(` `):e}},ki={...ur,getAnimatableNone:e=>{let t=ur.parse(e);return ur.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ai={...wn,transform:Math.round},ji={rotate:Rn,pathRotation:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:En,scaleX:En,scaleY:En,scaleZ:En,skew:Rn,skewX:Rn,skewY:Rn,distance:Bn,translateX:Bn,translateY:Bn,translateZ:Bn,x:Bn,y:Bn,z:Bn,perspective:Bn,transformPerspective:Bn,opacity:Tn,originX:Un,originY:Un,originZ:Bn},Mi={borderWidth:Bn,borderTopWidth:Bn,borderRightWidth:Bn,borderBottomWidth:Bn,borderLeftWidth:Bn,borderRadius:Bn,borderTopLeftRadius:Bn,borderTopRightRadius:Bn,borderBottomRightRadius:Bn,borderBottomLeftRadius:Bn,width:Bn,maxWidth:Bn,height:Bn,maxHeight:Bn,top:Bn,right:Bn,bottom:Bn,left:Bn,inset:Bn,insetBlock:Bn,insetBlockStart:Bn,insetBlockEnd:Bn,insetInline:Bn,insetInlineStart:Bn,insetInlineEnd:Bn,padding:Bn,paddingTop:Bn,paddingRight:Bn,paddingBottom:Bn,paddingLeft:Bn,paddingBlock:Bn,paddingBlockStart:Bn,paddingBlockEnd:Bn,paddingInline:Bn,paddingInlineStart:Bn,paddingInlineEnd:Bn,margin:Bn,marginTop:Bn,marginRight:Bn,marginBottom:Bn,marginLeft:Bn,marginBlock:Bn,marginBlockStart:Bn,marginBlockEnd:Bn,marginInline:Bn,marginInlineStart:Bn,marginInlineEnd:Bn,fontSize:Bn,backgroundPositionX:Bn,backgroundPositionY:Bn,...ji,zIndex:Ai,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:Ai},Ni={...Mi,color:Gn,backgroundColor:Gn,outlineColor:Gn,fill:Gn,stroke:Gn,borderColor:Gn,borderTopColor:Gn,borderRightColor:Gn,borderBottomColor:Gn,borderLeftColor:Gn,filter:Oi,WebkitFilter:Oi,mask:ki,WebkitMask:ki},Pi=e=>Ni[e],Fi=new Set([Oi,ki]);function Ii(e,t){let n=Pi(e);return Fi.has(n)||(n=ur),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Li(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ri=e=>e*180/Math.PI,zi=e=>Vi(Ri(Math.atan2(e[1],e[0]))),Bi={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:zi,rotateZ:zi,skewX:e=>Ri(Math.atan(e[1])),skewY:e=>Ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Vi=e=>(e%=360,e<0&&(e+=360),e),Hi=zi,Ui=e=>Math.hypot(e[0],e[1]),Wi=e=>Math.hypot(e[4],e[5]),Gi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ui,scaleY:Wi,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Ui(e)+Wi(e))/2,rotateX:e=>Vi(Ri(Math.atan2(e[6],e[5]))),rotateY:e=>Vi(Ri(Math.atan2(-e[2],e[0]))),rotateZ:Hi,rotate:Hi,skewX:e=>Ri(Math.atan(e[4])),skewY:e=>Ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ki(e){return+!!e.includes(`scale`)}function qi(e,t){if(!e||e===`none`)return Ki(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Gi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Bi,i=t}if(!i)return Ki(t);let a=r[t],o=i[1].split(`,`).map(Yi);return typeof a==`function`?a(o):o[a]}var Ji=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return qi(n,t)};function Yi(e){return parseFloat(e.trim())}var Xi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Zi=new Set([...Xi,`pathRotation`]),Qi=e=>e===wn||e===Bn,$i=new Set([`x`,`y`,`z`]),ea=Xi.filter(e=>!$i.has(e));function ta(e){let t=[];return ea.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 na=new Set([`bottom`,`right`]);function ra(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 ia={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>ra(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>ra(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})=>qi(e,`x`),y:({transform:e})=>qi(e,`y`)};ia.translateX=ia.x,ia.translateY=ia.y;var aa=new Set,oa=!1,sa=!1,ca=!1;function la(){if(sa){let e=[],t=new Set,n=new Set;aa.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),na.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ta(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)})}sa=!1,oa=!1,aa.forEach(e=>e.complete(ca)),aa.clear()}function ua(){aa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sa=!0)})}function da(){ca=!0,ua(),la(),ca=!1}function fa(e,t,n){if(typeof e==`string`){if(Pt(e)||It(e))return parseFloat(e);if(!ur.test(e)&&ur.test(n))return Ii(t,n)}return e??void 0}var pa=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?(aa.add(this),oa||(oa=!0,Fr.read(ua),Fr.resolveKeyframes(la))):(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=fa(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])}Li(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),aa.delete(this)}cancel(){this.state===`scheduled`&&(aa.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ma=e=>e.startsWith(`--`);function ha(e,t,n){ma(t)?e.style.setProperty(t,n):e.style[t]=n}var ga={};function _a(e,t){let n=Lt(e);return()=>ga[t]??n()}var va=_a(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ya=_a(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ba=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,xa={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ba([0,.65,.55,1]),circOut:ba([.55,0,1,.45]),backIn:ba([.31,.01,.66,-.59]),backOut:ba([.33,1.53,.69,.99])};function Sa(e,t){if(e)return typeof e==`function`?ya()?zr(e,t):`ease-out`:ln(e)?ba(e):Array.isArray(e)?e.map(e=>Sa(e,t)||xa.easeOut):xa[e]}function Ca(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=Sa(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 wa(e){return typeof e==`function`&&`applyToOptions`in e}function Ta({type:e,...t}){return wa(e)&&ya()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Ea=class extends xi{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=Ta(e);this.animation=Ca(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=pi(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ha(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},yi(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 Ut(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ht(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&&va()?(this.animation.timeline=e,t?.(this.animation),Rt):n(this)}},Da={anticipate:$t,backInOut:Qt,circInOut:nn};function Oa(e){return e in Da}function ka(e){typeof e.ease==`string`&&Oa(e.ease)&&(e.ease=Da[e.ease])}var Aa=class extends Ea{constructor(e){ka(e),hi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(gn.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 wi({...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?Mt(0,10,a):0,s=this.sample(a);n&&r&&ha(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},ja=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(ur.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ma(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 Na(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=ja(i,t),s=ja(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Ma(e)||(n===`spring`||wa(n))&&r}function Pa(e){e.duration=0,e.type=`keyframes`}var Fa=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ia=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function La(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ia.test(e[t]))return!0;return!1}var Ra=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),za=Lt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ba(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Fa.has(n)||Ra.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 za()&&(Fa.has(n)||Ra.has(n)&&La(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Va=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ha={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ua=Xi.length;function Wa(e,t,n){let r=``,i=!0;for(let a=0;a<Ua;a++){let o=Xi[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=Va(s,Mi[o]);if(!c){i=!1;let t=Ha[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Va(a,Mi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Ga=new WeakMap,Ka=200,qa=.001,Ja=.1,Ya=.001,Xa=100,Za=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Qa=(e,t)=>e-t,$a=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(mr(e,t,i/n));return r},eo=e=>e.motionValue.owner,to=e=>Ga.get(e),no=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ro=({name:e,motionValue:t})=>e&&Xi.includes(e)&&t?.owner?.current instanceof HTMLElement&&za()&&ya();function io(e){let t=eo(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(no(t,`transform`)||`none`)===`none`&&!no(t,`pathRotation`)&&!t.projection?.isProjecting()}var ao=class extends wi{constructor(e){let t=eo(e).current,{driver:n=Rr}=e,r,i=io(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=to(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=to(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 to(eo(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(gn.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ln(n)?ba(n):Za(n)&&xa[n];if(o&&!i&&!r&&e.length===2&&t===ci&&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||ci)===ci?u||ai(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=gn.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||oo(eo(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(gn.now())}get time(){return this.isAccelerated()?Ut(Mt(0,this.totalDuration,this.at(gn.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 oo(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?Xi:a){let a=r.get(s),c=t===void 0?no(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+=(Ha[e]||e)+`(`+Va(r[e],Mi[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Wa(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=gn.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(Ka,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=$a(t,n,i).concat(r).sort(Qa),o=e=>Bt(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)*qa>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=qa)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=qa)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=qa))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Ci(t)+` `+Ci(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`)?Ya:Ja))),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=$a(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(Qa))e>c&&o(c,e,0),c=e;return i.sort(Qa)},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=>Bt(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=Xi.filter(t=>{if(r.has(t))return!0;let n=i[t]=no(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,to(t)===O&&Ga.delete(t),O.isJS||_(),!0),D=()=>{let t=gn.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]=no(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<Xa)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,pn.isProcessing?Fr.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(no(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 Ga.set(t,O),O}var so=class extends xi{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gn.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||pa;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=gn.now();let u=!0;Na(e,i,a,o)||(u=!1,(Nt.instantAnimations||!s)&&l?.(pi(e,n,t)),e[0]=e[e.length-1],Pa(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Ba(n),p=!f&&ro(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=_i(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Aa(n)}catch{m=new wi(n)}}else m=p?new ao(n):new wi(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(),da()),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()}},co=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 lo(this.animations,`duration`)}get iterationDuration(){return lo(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 lo(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 uo=class extends co{then(e,t){return this.finished.finally(e).then(()=>{})}};function fo(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 po=30,mo=e=>!isNaN(parseFloat(e)),ho={current:void 0},go=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=gn.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=gn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=mo(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 Vt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Vt,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(){Fr.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(){ho.current&&ho.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=gn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>po)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,po);return Wt(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 _o(e,t){return new go(e,t)}function vo(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function yo(e,t){let n=e?.[t]??e?.default??e;return n===e?n:vo(n,e)}var bo={type:`spring`,stiffness:500,damping:25,restSpeed:10},xo=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),So={type:`keyframes`,duration:.8},Co={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},wo=(e,{keyframes:t})=>t.length>2?So:Zi.has(e)?e.startsWith(`scale`)?xo(t[1]):bo:Co,To=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Eo(e){for(let t in e)if(!To.has(t))return!0;return!1}var Do=(e,t,n,r={},i,a)=>o=>{let s=yo(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ht(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};Eo(s)||Object.assign(u,wo(e,u)),u.duration&&=Ht(u.duration),u.repeatDelay&&=Ht(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pa(u),u.delay===0&&(d=!0)),(Nt.instantAnimations||Nt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Pa(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=pi(u.keyframes,s);if(e!==void 0){Fr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new wi(u):new so(u)},Oo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ko(e){let t=Oo.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ao(e,t,n=1){`${e}`;let[r,i]=ko(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Pt(e)?parseFloat(e):e}return xn(i)?Ao(i,t,n+1):i}function jo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Mo(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...jo(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function No(e,t,n){return Mo(e.getProps(),t,n,e)}var Po=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Fo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Xi]),Io=e=>Array.isArray(e);function Lo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_o(n))}function Ro(e){return Io(e)?e[e.length-1]||0:e}function zo(e,t){let{transitionEnd:n={},transition:r={},...i}=No(e,t)||{};i={...i,...n};for(let t in i)Lo(e,t,Ro(i[t]))}var Bo=e=>!!(e&&e.getVelocity);function Vo(e){return!!(Bo(e)&&e.add)}function Ho(e,t){let n=e.getValue(`willChange`);if(Vo(n))return n.add(t);if(!n&&Nt.WillChange){let n=new Nt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Uo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Wo=`data-`+Uo(`framerAppearId`);function Go(e){return e.props[Wo]}var Ko=typeof window<`u`;function qo({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Jo(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?vo(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&&qo(f,t))continue;let o={delay:n,...yo(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Fr.update(()=>r.set(i));continue}let p=!1;if(Ko&&window.MotionHandoffAnimation){let n=Go(e);if(n){let e=window.MotionHandoffAnimation(n,t,Fr);e!==null&&(o.startTime=e,p=!0)}}Ho(e,t);let m=l??e.shouldReduceMotion;r.start(Do(t,r,i,m&&Fo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Fr.update(()=>{o&&zo(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Yo(e,t,n={}){let r=No(e,t,Po(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Jo(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(Yo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+fo(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 Xo(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Yo(e,t,n))):typeof t==`string`?Yo(e,t,n):Promise.all(Jo(e,No(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Zo={test:e=>e===`auto`,parse:e=>e},Qo=e=>t=>t.test(e),$o=[wn,Bn,zn,Rn,Hn,Vn,Zo],es=e=>$o.find(Qo(e));function ts(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||It(e)}var ns=new Set([`auto`,`none`,`0`]);function rs(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ns.has(t)&&nr(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Ii(n,i))}var is=class extends pa{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(Cn(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(),xn(r))){let i=Ao(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Fo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=es(r),o=es(i);if(Cn(r)!==Cn(i)&&ia[n])this.needsMeasurement=!0;else if(a!==o){if(Qi(a)&&Qi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ia[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ts(e[t]))&&n.push(t);n.length&&rs(e,n,t)}measure(){let{element:e,name:t}=this;return ia[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()}},as=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],ss=[];function cs(e){typeof e.test==`function`&&e.read,ls(e),ss.unshift(e)}function ls(e){At(ss,e)}function us(e){return ss.find(t=>t.test(e))}function ds(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?Fr.update(()=>l.set(c)):(l.start(Do(o,l,c,s&&Fo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>Fr.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function fs(e,t,n,r,i){return ds(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=ps(i)??e.read(t,r,i),`${r}`}a=_o(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function ps(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function ms(e){return Ft(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function hs(e){return Ft(e)&&`ownerSVGElement`in e}function gs(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 _s=class{constructor(e=Fr.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 vs(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new _s(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 ys={};function bs(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&&` `)+(ys[i]||(ys[i]=(Ha[i]||i)+`(`))+Va(a,ji[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Va(i,ji.pathRotation)+`)`),t||`none`}var xs=new Set([`originX`,`originY`,`originZ`]),Ss=(e,t)=>Va(e.get(t)?.get(),Mi[t]),Cs=(e,t,n,r)=>{let i,a;if(Zi.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Xi.indexOf(e)-Xi.indexOf(t)))}t.get(`transform`)||(!ms(e)&&!t.get(`transformBox`)&&Cs(e,t,`transformBox`,new go(`fill-box`)),t.set(`transform`,new go(`none`),()=>{Ga.get(e)?.check(),e.style.transform=bs(t)})),a=t.get(`transform`)}else xs.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new go(``),()=>{let n=Ss(t,`originX`)??`50%`,r=Ss(t,`originY`)??`50%`,i=Ss(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ma(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Va(r.getCurrent(),Mi[n])};return t.set(n,r,i,a)},ws=e=>ms(e)||hs(e),Ts=(e,t)=>{if(Zi.has(t))return Ji(e,t);let n=getComputedStyle(e),r=ma(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Es=vs(Cs,{test:ws,read:Ts});function Ds(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(Zi.has(e))o=!0;else if(yn(e))i[e]=n;else{let t=Va(n,Mi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Wa(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 Os={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ks={offset:`strokeDashoffset`,array:`strokeDasharray`};function As(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Os:ks;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var js=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ms(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ds(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 js)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&&As(d,i,a,o,!1)}function Ns(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 Ps=(e,t,n,r,i=n)=>{let a=Ns(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Uo(i));let o=Mi[n]||Mi[i],s=a?()=>{e[i]=Va(r.get(),Mi[n])}:()=>{let t=Va(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Fs(e,t,n,r){return Fr.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 go(`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 Is=vs((e,t,n,r)=>n.startsWith(`path`)&&!Zi.has(n)?Fs(e,t,n,r):n.startsWith(`attr`)?Ps(e,t,n,r,Ls(n)):(Zi.has(n)||xs.has(n)||ma(n)||n in e.style?Cs:Ps)(e,t,n,r),{test:hs,read:(e,t)=>Zi.has(t)?Mi[t]?.default||0:ma(t)||js.includes(t)?Ts(e,t)||e.getAttribute(Uo(t))||0:(t=Ls(t),e.getAttribute(Uo(t))??e.getAttribute(t)??void 0)});function Ls(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Rs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Bs(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 Vs(e){return e===void 0||e===1}function Hs({scale:e,scaleX:t,scaleY:n}){return!Vs(e)||!Vs(t)||!Vs(n)}function Us(e){return Hs(e)||Ws(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ws(e){return Gs(e.x)||Gs(e.y)}function Gs(e){return e&&e!==`0%`}function Ks(e,t,n){return n+t*(e-n)}function qs(e,t,n,r,i){return i!==void 0&&(e=Ks(e,i,r)),Ks(e,n,r)+t}function Js(e,t=0,n=1,r,i){e.min=qs(e.min,t,n,r,i),e.max=qs(e.max,t,n,r,i)}function Ys(e,{x:t,y:n}){Js(e.x,t.translate,t.scale,t.originPoint),Js(e.y,n.translate,n.scale,n.originPoint)}var Xs=.999999999999,Zs=1.0000000000001;function Qs(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&&($s(e.x,-a.scroll.offset.x),$s(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ys(e,o)),r&&Us(a.latestValues)&&nc(e,a.latestValues,a.layout?.layoutBox))}t.x<Zs&&t.x>Xs&&(t.x=1),t.y<Zs&&t.y>Xs&&(t.y=1)}function $s(e,t){e.min+=t,e.max+=t}function ec(e,t,n,r,i=.5){Js(e,t,n,mr(e.min,e.max,i),r)}function tc(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function nc(e,t,n){let r=n??e;ec(e.x,tc(t.x,r.x),t.scaleX,t.scale,t.originX),ec(e.y,tc(t.y,r.y),t.scaleY,t.scale,t.originY)}function rc(e,t){return Rs(Bs(e.getBoundingClientRect(),t))}function ic(e,t,n){let r=rc(e,n),{scroll:i}=t;return i&&($s(r.x,i.offset.x),$s(r.y,i.offset.y)),r}var ac={},oc=e=>hs(e)?Is:Es,sc=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=is}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 rc(this.current)}getProps(){return ac}};function cc(e,t,n,r){if(r)return ds(e=>r.getValue(e,null),t,n,r);let i=oc(e);return fs(i,e,t,n,new sc(i,e))}var lc=vs((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ft(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:uc,cancel:dc}=Pr(queueMicrotask,!1);function fc(e,t,n){let r=Bo(e)?e:_o(e);return r.start(Do(``,r,t,n)),r.animation}var pc={},mc={value:null,addProjectionMetrics:null};function hc(e,t){let n=gn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ir(r),e(a-t))};return Fr.setup(r,!0),()=>Ir(r)}function gc(e){return hs(e)&&e.tagName===`svg`}function _c(e){return Bo(e)?e.get():e}var vc=e=>typeof e==`number`?e:parseFloat(e),yc=as.length,bc=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],xc=bc.length,Sc=e=>typeof e==`number`||Bn.test(e);function Cc(e,t,n,r,i,a){i?(e.opacity=mr(0,n.opacity??1,Tc(r)),e.opacityExit=mr(t.opacity??1,0,Ec(r))):a&&(e.opacity=mr(t.opacity??1,n.opacity??1,r));for(let i=0;i<yc;i++){let a=as[i],o=wc(t,a),s=wc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Sc(o)===Sc(s)?(e[a]=Math.max(mr(vc(o),vc(s),r),0),(zn.test(s)||zn.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<xc;i++){let a=bc[i];(t[a]||n[a])&&(e[a]=mr(t[a]||0,n[a]||0,r))}}function wc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Tc=Dc(0,.5,tn),Ec=Dc(.5,.95,Rt);function Dc(e,t,n){return r=>r<e?0:r>t?1:n(Bt(e,t,r))}function Oc(e,t){e.min=t.min,e.max=t.max}function kc(e,t){Oc(e.x,t.x),Oc(e.y,t.y)}function Ac(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var jc=.9999,Mc=1.0001,Nc=-.01,Pc=.01;function Fc(e){return e.max-e.min}function Ic(e,t,n){return Math.abs(e-t)<=n}function Lc(e,t,n,r=.5){e.origin=r,e.originPoint=mr(t.min,t.max,e.origin),e.scale=Fc(n)/Fc(t),e.translate=mr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jc&&e.scale<=Mc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Nc&&e.translate<=Pc||isNaN(e.translate))&&(e.translate=0)}function Rc(e,t,n,r){Lc(e.x,t.x,n.x,r?r.originX:void 0),Lc(e.y,t.y,n.y,r?r.originY:void 0)}function zc(e,t,n,r=0){e.min=(r?mr(n.min,n.max,r):n.min)+t.min,e.max=e.min+Fc(t)}function Bc(e,t,n,r){zc(e.x,t.x,n.x,r?.x),zc(e.y,t.y,n.y,r?.y)}function Vc(e,t,n,r=0){let i=r?mr(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Fc(t)}function Hc(e,t,n,r){Vc(e.x,t.x,n.x,r?.x),Vc(e.y,t.y,n.y,r?.y)}function Uc(e,t,n,r,i){return e-=t,e=Ks(e,1/n,r),i!==void 0&&(e=Ks(e,1/i,r)),e}function Wc(e,t=0,n=1,r=.5,i,a=e,o=e){if(zn.test(t)&&(t=parseFloat(t),t=mr(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=mr(a.min,a.max,r);e===a&&(s-=t),e.min=Uc(e.min,t,n,s,i),e.max=Uc(e.max,t,n,s,i)}function Gc(e,t,[n,r,i],a,o){Wc(e,t[n],t[r],t[i],t.scale,a,o)}var Kc=[`x`,`scaleX`,`originX`],qc=[`y`,`scaleY`,`originY`];function Jc(e,t,n,r){Gc(e.x,t,Kc,n?n.x:void 0,r?r.x:void 0),Gc(e.y,t,qc,n?n.y:void 0,r?r.y:void 0)}var Yc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xc=()=>({x:Yc(),y:Yc()}),Zc=()=>({min:0,max:0}),Qc=()=>({x:Zc(),y:Zc()});function $c(e){return e.translate===0&&e.scale===1}function el(e){return $c(e.x)&&$c(e.y)}function tl(e,t){return e.min===t.min&&e.max===t.max}function nl(e,t){return tl(e.x,t.x)&&tl(e.y,t.y)}function rl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function il(e,t){return rl(e.x,t.x)&&rl(e.y,t.y)}function al(e){return Fc(e.x)/Fc(e.y)}function ol(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var sl=class{constructor(){this.members=[]}add(e){kt(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||(At(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(At(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 cl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ll={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Bn.test(e))e=parseFloat(e);else return e}return`${cl(e,t.target.x)}% ${cl(e,t.target.y)}%`}},ul={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ur.parse(e);if(i.length>5)return r;let a=ur.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=mr(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},dl={borderRadius:{...ll,applyTo:[...as]},borderTopLeftRadius:ll,borderTopRightRadius:ll,borderBottomLeftRadius:ll,borderBottomRightRadius:ll,boxShadow:ul};function fl(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 pl(e){return[e(`x`),e(`y`)]}var ml=(e,t)=>e.depth-t.depth,hl=class{constructor(){this.children=[],this.isDirty=!1}add(e){kt(this.children,e),this.isDirty=!0}remove(e){At(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ml),this.isDirty=!1,this.children.forEach(e)}},gl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(pc,{...dl,...pc});var _l={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},vl=[``,`X`,`Y`,`Z`],yl=1e3,bl=0;function xl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Sl=({instance:e})=>e&&Ga.get(e)?.demote();function Cl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Go(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Fr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cl(r)}function wl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=bl++,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,mc.value&&(_l.nodes=_l.calculatedTargetDeltas=_l.calculatedProjections=0),this.nodes.forEach(Dl),this.nodes.forEach(Rl),this.nodes.forEach(zl),this.nodes.forEach(Ol),mc.addProjectionMetrics&&mc.addProjectionMetrics(_l)},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 hl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vt),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=hs(t)&&!gc(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;Fr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=hc(i,250),gl.hasAnimatedSinceResize&&(gl.hasAnimatedSinceResize=!1,this.nodes.forEach(Ll)))})}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()||Gl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!il(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={...yo(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||Ll(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,Ir(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(Bl),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&&Cl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Sl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Sl(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(jl),this.nodes.forEach(Al);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ml);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pl),this.nodes.forEach(Fl),this.nodes.forEach(Il),this.nodes.forEach(Tl),this.nodes.forEach(El)):this.nodes.forEach(Ml),this.clearAllSnapshots();let e=gn.now();pn.delta=Mt(0,1e3/60,e-pn.timestamp),pn.timestamp=e,pn.isProcessing=!0,Lr.update.process(pn),Lr.preRender.process(pn),Lr.render.process(pn),pn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kl),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Fc(this.snapshot.measuredBox.x)&&!Fc(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||=Qc(),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&&Sl(this);let t=this.projectionDelta&&!el(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Us(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)),Yl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Qc();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Zl))){let{scroll:e}=this.root;e&&($s(t.x,e.offset.x),$s(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Qc();if(kc(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&&kc(t,e),$s(t.x,i.offset.x),$s(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Qc();kc(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&&($s(r.x,-n.scroll.offset.x),$s(r.y,-n.scroll.offset.y)),Us(n.latestValues)&&nc(r,n.latestValues,n.layout?.layoutBox)}return Us(this.latestValues)&&nc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Qc();kc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Us(n.latestValues))continue;let r;n.instance&&(Hs(n.latestValues)&&n.updateSnapshot(),r=Qc(),kc(r,n.measurePageBox())),Jc(t,n.latestValues,n.snapshot?.layoutBox,r)}return Us(this.latestValues)&&Jc(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!==pn.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=pn.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=Qc(),this.targetWithTransforms=Qc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):kc(this.target,this.layout.layoutBox),Ys(this.target,this.targetDelta)):kc(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),mc.value&&_l.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Hs(this.parent.latestValues)||Ws(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=Qc(),this.relativeTargetOrigin=Qc(),Hc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),kc(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===pn.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;kc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Qs(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=Qc());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ac(this.prevProjectionDelta.x,this.projectionDelta.x),Ac(this.prevProjectionDelta.y,this.projectionDelta.y)),Rc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&ol(this.projectionDelta.x,this.prevProjectionDelta.x)&&ol(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),mc.value&&_l.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=Xc(),this.projectionDelta=Xc(),this.projectionDeltaWithTransform=Xc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Xc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Qc(),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(Wl));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=mr(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=mr(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Vl(o.x,e.x,n),Vl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ul(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&nl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Qc(),kc(f,this.relativeTarget)),c&&(this.animationValues=a,Cc(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&&=(Ir(this.pendingAnimation),void 0),this.pendingAnimation=Fr.update(()=>{gl.hasAnimatedSinceResize=!0,this.motionValue||=_o(0),this.motionValue.jump(0,!1),this.currentAnimation=fc(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()}}),bi(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(yl),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&&Xl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Qc();let t=Fc(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Fc(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}kc(t,i),nc(t,r),Rc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sl),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&&xl(`z`,e,r,this.animationValues);for(let t=0;t<vl.length;t++)xl(`rotate${vl[t]}`,e,r,this.animationValues),xl(`skew${vl[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=_c(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=_c(t?.pointerEvents)||``),this.hasProjected&&!Us(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=fl(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 pc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=pc[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?_c(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(Al),this.root.sharedNodes.clear()}}}function Tl(e){e.updateLayout(),Nl(e)}function El(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`)pl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Fc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Oc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Xl(i,t.layoutBox,n)&&pl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Fc(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=Xc();Rc(o,n,t.layoutBox);let s=Xc();a?Rc(s,e.applyTransform(r,!0),t.measuredBox):Rc(s,n,t.layoutBox);let c=!el(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=Qc();Hc(s,t.layoutBox,i.layoutBox,o);let c=Qc();Hc(c,n,a.layoutBox,o),il(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 Dl(e){mc.value&&_l.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 Ol(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kl(e){e.clearSnapshot()}function Al(e){e.clearMeasurements()}function jl(e){e.isLayoutDirty=!0,e.updateLayout()}function Ml(e){e.isLayoutDirty=!1}function Nl(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;pl(e=>$s(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Pl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Fl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Il(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ll(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rl(e){e.resolveTargetDelta()}function zl(e){e.calcProjection()}function Bl(e){e.resetSkewAndRotation()}function Vl(e,t,n){e.translate=mr(t.translate,0,n),e.scale=mr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hl(e,t,n,r){e.min=mr(t.min,n.min,r),e.max=mr(t.max,n.max,r)}function Ul(e,t,n,r){Hl(e.x,t.x,n.x,r),Hl(e.y,t.y,n.y,r)}function Wl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gl={duration:.45,ease:[.4,0,.1,1]},Kl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ql=Kl(`applewebkit/`)&&!Kl(`chrome/`)?Math.round:Rt;function Jl(e){e.min=ql(e.min),e.max=ql(e.max)}function Yl(e){Jl(e.x),Jl(e.y)}function Xl(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ic(al(t),al(n),.2)}function Zl(e){return e!==e.root&&e.scroll?.wasRoot}function Ql(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var $l=wl({attachResizeListener:(e,t)=>Ql(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eu={current:void 0},tu=wl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eu.current){let e=new $l({});e.mount(window),e.setOptions({layoutScroll:!0}),eu.current=e}return eu.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),nu=new WeakMap;function ru(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function iu(e){return typeof e==`string`||Array.isArray(e)}var au=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ou=[`initial`,...au];function su(e){if(ru(e.animate))return!0;for(let t=0;t<ou.length;t++)if(iu(e[ou[t]]))return!0;return!1}function cu(e){return!!(su(e)||e.variants)}function lu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Bo(i))e.addValue(r,i);else if(Bo(a))e.addValue(r,_o(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,_o(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var uu={current:null},du={current:!1},fu=typeof window<`u`;function pu(){if(du.current=!0,fu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>uu.current=e.matches;e.addEventListener(`change`,t),t()}else uu.current=!1}}var mu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],hu={};function gu(e){hu=e}function _u(){return hu}var vu=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=pa,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=gn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Fr.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=su(t),this.isVariantNode=cu(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&&Bo(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,nu.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:(du.current||pu(),this.shouldReduceMotion=uu.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(),Ir(this.notifyUpdate),Ir(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&&Fa.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Ea({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ht(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Zi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Fr.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Ga.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 hu){let t=hu[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):Qc()}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)&&Ga.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<mu.length;t++){let n=mu[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=lu(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=_o(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`&&(Pt(n)||It(n))?n=parseFloat(n):typeof n!=`number`&&!ur.test(n)&&ur.test(t)&&(n=Ii(e,t)),this.setBaseTarget(e,Bo(n)?n.get():n)),Bo(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Vt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){uc.render(this.render)}},yu=class extends vu{constructor(){super(...arguments),this.KeyframeResolver=is}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;Bo(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function bu(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 xu(e,{layout:t,layoutId:n}){return Zi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!pc[e]||e===`opacity`)}function Su(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Bo(r[t])||i&&Bo(i[t])||xu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Cu(e){return window.getComputedStyle(e)}var wu=class extends yu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=bu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Zi.has(t))return this.projection?.isProjecting?Ki(t):Ji(e,t);{let n=Cu(e),r=(yn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rc(e,t)}build(e,t,n){Ds(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Su(e,t,n)}},Tu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Eu(e){return{point:{x:e.pageX,y:e.pageY}}}var Du=e=>t=>Tu(t)&&e(t,Eu(t));function Ou(e,t,n,r){return Ql(e,t,Du(n),r)}var ku=new WeakMap,Au,ju=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:hs(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Mu=ju(`inline`,`width`,`offsetWidth`),Nu=ju(`block`,`height`,`offsetHeight`);function Pu({target:e,borderBoxSize:t}){ku.get(e)?.forEach(n=>{n(e,{get width(){return Mu(e,t)},get height(){return Nu(e,t)}})})}function Fu(e){e.forEach(Pu)}function Iu(){typeof ResizeObserver<`u`&&(Au=new ResizeObserver(Fu))}function Lu(e,t){Au||Iu();let n=gs(e);return n.forEach(e=>{let n=ku.get(e);n||(n=new Set,ku.set(e,n)),n.add(t),Au?.observe(e)}),()=>{n.forEach(e=>{let n=ku.get(e);n?.delete(t),n?.size||Au?.unobserve(e)})}}var Ru=new Set,zu;function Bu(){zu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ru.forEach(t=>t(e))},window.addEventListener(`resize`,zu)}function Vu(e){return Ru.add(e),zu||Bu(),()=>{Ru.delete(e),!Ru.size&&typeof zu==`function`&&(window.removeEventListener(`resize`,zu),zu=void 0)}}function Hu(e,t){return typeof e==`function`?Vu(e):Lu(e,t)}var Uu=(e,t)=>Math.abs(e-t);function Wu(e,t){let n=Uu(e.x,t.x),r=Uu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Gu=new Set([`auto`,`scroll`]),Ku=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=qu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Yu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Wu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:gn.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=qu(t,this.transformPagePoint),this.hasPendingMove=!0,Fr.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=Yu(e.type===`pointercancel`?this.lastMoveEventInfo:qu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Tu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=qu(Eu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=pn;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Yu(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=zt(Ou(this.contextWindow,`pointermove`,this.handlePointerMove,d),Ou(this.contextWindow,`pointerup`,this.handlePointerUp,d),Ou(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Gu.has(e.overflowX)||Gu.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),Fr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ir(this.updatePoint)}};function qu(e,t){return t?{point:t(e.point)}:e}function Ju(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yu({point:e},t){return{point:e,delta:Ju(e,Zu(t)),offset:Ju(e,Xu(t)),velocity:Qu(t,.1)}}function Xu(e){return e[0]}function Zu(e){return e[e.length-1]}function Qu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Zu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ht(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ht(t)*2&&(r=e[1]);let a=Ut(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 $u=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ed(e){return $u.has(e.tagName)||e.isContentEditable===!0}var td=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function nd(e){return td.has(e.tagName)||e.isContentEditable===!0}var rd={x:!1,y:!1};function id(){return rd.x||rd.y}function ad(e){return e===`x`||e===`y`?rd[e]?null:(rd[e]=!0,()=>{rd[e]=!1}):rd.x||rd.y?null:(rd.x=rd.y=!0,()=>{rd.x=rd.y=!1})}function od(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?mr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?mr(n,e,r.max):Math.min(e,n)),e}function sd(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 cd(e,{top:t,left:n,bottom:r,right:i}){return{x:sd(e.x,n,i),y:sd(e.y,t,r)}}function ld(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 ud(e,t){return{x:ld(e.x,t.x),y:ld(e.y,t.y)}}function dd(e,t){let n=.5,r=Fc(e),i=Fc(t);return i>r?n=Bt(t.min,t.max-r,e.min):r>i&&(n=Bt(e.min,e.max-i,t.min)),Mt(0,1,n)}function fd(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 pd=.35;function md(e=pd){return e===!1?e=0:e===!0&&(e=pd),{x:hd(e,`left`,`right`),y:hd(e,`top`,`bottom`)}}function hd(e,t,n){return{min:gd(e,t),max:gd(e,n)}}function gd(e,t){return typeof e==`number`?e:e[t]||0}var _d=new WeakMap,vd=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=Qc(),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=ad(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),pl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xn(t)&&(t=Ao(t,this.visualElement.current)||0),Bn.test(t))t=parseFloat(t);else if(zn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Fc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Fr.update(()=>i(e,t),!1,!0),Ho(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=wd(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&&Fr.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 Ku(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&&Fr.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||!Cd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=od(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;yd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?cd(n.layoutBox,e):!1,this.elastic=md(t),r!==this.constraints&&!yd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&pl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=fd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!yd(e))return!1;let n=bd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=ic(n,r.root,this.visualElement.getTransformPagePoint()),a=ud(r.layout.layoutBox,i);if(t){let e=t(zs(a));this.hasMutatedConstraints=!!e,e&&(a=Rs(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=pl(o=>{if(!Cd(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 Ho(this.visualElement,e),n.start(Do(e,n,0,t,this.visualElement,!1))}stopAnimation(){pl(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();pl(e=>{if(!Cd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-mr(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!yd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};pl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=dd({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(),pl(t=>{let n=this.getAxisMotionValue(t);if(!Cd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(mr(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_d.set(this.visualElement,this);let e=this.visualElement.current,t=Ou(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&nd(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=yd(t)&&bd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Sd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fr.read(r);let o=Ql(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pl(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=pd,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function yd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var bd=e=>`current`in e?e.current:e;function xd(e){let t=!0;return()=>{t?t=!1:e()}}function Sd(e,t,n){let r=Hu(e,xd(n)),i=Hu(t,xd(n));return()=>{r(),i()}}function Cd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Td(e,t){let n=gs(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ed(e){return!(e.pointerType===`touch`||id())}function Dd(e,t,n={}){let[r,i,a]=Td(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(!Ed(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 Od=(e,t)=>t?e===t||Od(e,t.parentElement):!1,kd=new WeakSet;function Ad(e){return t=>{t.key===`Enter`&&e(t)}}function jd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Md=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ad(()=>{if(kd.has(n))return;jd(n,`down`);let e=Ad(()=>{jd(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>jd(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Nd(e){return Tu(e)&&!id()}var Pd=new WeakSet;function Fd(e,t,n={}){let[r,i,a]=Td(e,n),o=e=>{let r=e.currentTarget;if(!Nd(e)||Pd.has(e))return;kd.add(r),n.stopPropagation&&Pd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),kd.has(r)&&kd.delete(r),Nd(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Od(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),ms(e)&&(e.addEventListener(`focus`,e=>Md(e,i)),!ed(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Id(...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=ri(i,a,o);return t?s(r):s}var Ld=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Rd=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`]),zd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Bd(e,t,n,r){bu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Rd.has(n)?n:Uo(n),t.attrs[n])}function Vd(e,t,n){let r=Su(e,t,n);for(let n in e)if(n!==`children`&&(Bo(e[n])||Bo(t[n]))){let t=Xi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Hd=class extends yu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Qc}getBaseTargetFromProps(e,t){return Zi.has(t)?super.getBaseTargetFromProps(e,t)??Ki(t):e[t]}getDefaultValue(e){return Zi.has(e)?this.latestValues[e]??Ki(e):void 0}readValueFromInstance(e,t){if(Zi.has(t)){let e=Pi(t);return e&&e.default||0}if(js.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Rd.has(t)?t:Uo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vd(e,t,n)}build(e,t,n){Ms(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Bd(e,t,n,r)}mount(e){this.isSVGTag=zd(e.tagName),super.mount(e)}};function Ud(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 Wd=[...au].reverse();function Gd(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Xo(e,t,n))),n=qd(),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(Wd.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?iu(g)||g===!1?g:void 0:h,v=iu(_),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||ru(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Kd(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}=No(e,n,Po(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)?!Ud(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=No(s,n)?.transition?.delayChildren;r.delay=fo(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&No(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&&!Bo(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=qd(),i=!0}}}function Kd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ud(t,e):!1}function qd(){let e={};for(let t of au)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Jd(e){return typeof e==`object`&&!Array.isArray(e)}function Yd(e,t,n,r){return e==null?[]:typeof e==`string`&&Jd(t)?gs(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Xd(e,t,n){return e*(t+1)+n*t}function Zd(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 Qd(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(At(e,i),r--)}}function $d(e,t,n,r,i,a){Qd(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:mr(i,a,r[o]),easing:cn(n,o)})}function ef(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function tf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var nf=`easeInOut`,rf=20;function af(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,Zd(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Zd(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=cf(e),{delay:l=0,times:u=ai(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=wa(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&df(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=Ht(b));let r=Hr(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&&ii(u,T),c.length===1&&c.unshift(null),m&&`${m}${rf}`,m&&m<rf){let e=b>0?_/b:0;b=Xd(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`?Yt(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`:cn(f,e-1))}ef(u,m,e)}let E=w+b;$d(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Bo(p)){let e=of(p,s);_(m,h,sf(`default`,e))}else{let e=Yd(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=of(r,s);for(let e in m)_(m[e],lf(h,e),sf(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(tf);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(Bt(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(nf)),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 of(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function sf(e,t){return t[e]||(t[e]=[]),t[e]}function cf(e){return Array.isArray(e)?e:[e]}function lf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var uf=e=>typeof e==`number`,df=e=>e.every(uf);function ff(e,t){return Bo(e)||typeof e==`number`||typeof e==`string`&&!Jd(t)}function pf(e,t,n,r){let i=[];if(ff(e,t))i.push(fc(e,Jd(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Yd(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(...cc(r,t,s,nu.get(r))):i.push(...fs(us(r)??lc,r,t,s))}}return i}function mf(e,t,n){let r=[];return af(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=_o(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:ei}).forEach(({keyframes:e,transition:t},n)=>{r.push(...pf(n,e,t))}),r}function hf(e){return Array.isArray(e)&&e.some(Array.isArray)}function gf(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),hf(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=mf(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=pf(e,i,{...c,...r},t)}let l=new uo(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{At(t.animations,l)})),l}return i}var _f=Object.assign(gf(),{addEffect:cs,removeEffect:ls}),vf=.1,yf=2/3,bf=1/3;function xf(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function Sf(e,t,n=!1){return e.top>=t.scrollTop+t.height*vf&&e.bottom<=t.scrollTop+t.height*yf&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*bf)))}function Cf(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 wf=`(prefers-reduced-motion: reduce)`,Tf=[.23,1,.32,1],Ef=[.23,1.15,.32,1],Df=[.77,0,.175,1],Of=qt(...Tf),kf={micro:120,base:180,surface:240,askExit:150,ease:`cubic-bezier(${Tf.join(`,`)})`,move:`cubic-bezier(${Df.join(`,`)})`,soft:`cubic-bezier(${Ef.join(`,`)})`,out:Tf,softCurve:Ef},Af={settleMs:280},jf=()=>window.matchMedia(wf).matches?`auto`:`smooth`;function Mf(){let[e,t]=(0,U.useState)(()=>window.matchMedia(wf).matches);return(0,U.useEffect)(()=>{let e=window.matchMedia(wf),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function Nf(e,t){let n=Cf(e.scrollTop,kf.surface,Of),r=e.scrollTop,i=0,a=o=>{i=0,jf()===`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 Pf(e,t=!0){let[n,r]=(0,U.useState)({value:e,animate:t});return(0,U.useLayoutEffect)(()=>{if(e){r({value:e,animate:t});return}if(!n.value)return;let i=setTimeout(()=>r({value:e,animate:!1}),kf.micro);return()=>clearTimeout(i)},[e,t]),{value:e||(n.animate?n.value:void 0),props:{"data-motion":(e?t:n.animate)?void 0:`instant`,"data-ending-style":e?void 0:``,inert:!e}}}var Ff=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})),If=o(((e,t)=>{t.exports=Ff()})),Lf=(0,U.createContext)({});function Rf(e){let t=(0,U.useRef)(null);return t.current===null&&(t.current=e()),t.current}var zf=typeof window<`u`?U.useLayoutEffect:U.useEffect,Bf=(0,U.createContext)(null),Vf=(0,U.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Hf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Uf(...e){return t=>{let n=!1,r=e.map(e=>{let r=Hf(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():Hf(e[t],null)}}}}function Wf(...e){return U.useCallback(Uf(...e),e)}var G=If(),Gf=class extends U.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(ms(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=ms(e)&&e.offsetWidth||0,r=ms(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 Kf({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)(Vf),d=Wf(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(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${e}px !important;
@@ -25,25 +25,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,W.jsx)(Yh,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:U.cloneElement(e,{ref:d})})}var Zh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Hh(Qh),d=(0,U.useId)(),f=(0,U.useRef)(),p=(0,U.useRef)(n),m=(0,U.useRef)(r);Uh(()=>{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,W.jsx)(Xh,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,W.jsx)(Wh.Provider,{value:g,children:e})};function Qh(){return new Map}function $h(e=!0){let t=(0,U.useContext)(Wh);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 eg(){return tg((0,U.useContext)(Wh))}function tg(e){return e===null||e.isPresent}var ng=e=>e.key||``;function rg(e){let t=[];return U.Children.forEach(e,e=>{(0,U.isValidElement)(e)&&t.push(e)}),t}var ig=({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]=$h(o),f=(0,U.useMemo)(()=>rg(e),[e]),p=o&&!u?[]:f.map(ng),m=(0,U.useRef)(!0),h=Hh(()=>new Map),g=(0,U.useRef)(new Set),[_,v]=(0,U.useState)(f),[y,b]=(0,U.useState)(f);Uh(()=>{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]),Uh(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=ng(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(ng(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(ng(e)))?e=f:a===`wait`&&(e=S),b(rg(e)),v(f),null}let{forceRender:C}=(0,U.useContext)(Vh);return(0,W.jsx)(W.Fragment,{children:y.map(e=>{let _=ng(e),b=o&&!u?!1:f===y||p.includes(_);return(0,W.jsx)(Zh,{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},_)})})},ag=(0,U.createContext)({strict:!1}),og={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`]},sg=!1;function cg(){if(sg)return;let e={};for(let t in og)e[t]={isEnabled:e=>og[t].some(t=>!!e[t])};fl(e),sg=!0}function lg(){return cg(),pl()}function ug(e){let t=lg();for(let n in e)t[n]={...t[n],...e[n]};fl(t)}function dg({children:e,...t}){let n=(0,U.useContext)(Gh);t={...n,...t},t.transition=pa(t.transition,n.transition),t.isStatic=Hh(()=>t.isStatic);let r=(0,U.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,W.jsx)(Gh.Provider,{value:r,children:e})}var fg=(0,U.createContext)({});function pg(e,t){if(rl(e)){let{initial:t,animate:n}=e;return{initial:t===!1||el(t)?t:void 0,animate:el(n)?n:void 0}}return e.inherit===!1?{}:t}function mg(e){let{initial:t,animate:n}=pg(e,(0,U.useContext)(fg));return(0,U.useMemo)(()=>({initial:t,animate:n}),[hg(t),hg(n)])}function hg(e){return Array.isArray(e)?e.join(` `):e}var gg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _g(e,t,n){for(let r in t)!Fa(t[r])&&!_l(r,n)&&(e[r]=t[r])}function vg({transformTemplate:e},t){return(0,U.useMemo)(()=>{let n=gg();return So(n,t,e),Object.assign({},n.vars,n.style)},[t])}function yg(e,t){let n=e.style||{},r={};return _g(r,n,e),Object.assign(r,vg(e,t)),r}function bg(e,t){let n={},r=yg(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 xg=()=>({...gg(),attrs:{}});function Sg(e,t,n,r){let i=(0,U.useMemo)(()=>{let n=xg();return Do(n,t,Fu(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};_g(t,e.style,e),i.style={...t,...i.style}}return i}var Cg=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 wg(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Cg.has(e)}function Tg(e,t){return e.startsWith(`on`)?!wg(e):t?.(e)??!wg(e)}function Eg(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Fa(e[a])||(Tg(a,r)||n===!0&&wg(a)||!t&&!wg(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Dg=[`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 Og(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Dg.indexOf(e)>-1||/[A-Z]/u.test(e))}function kg(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Og(e)?Sg:bg)(t,r,i,e),l=Eg(t,typeof e==`string`,a,s),u=e===U.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,U.useMemo)(()=>Fa(d)?d.get():d,[d]);return(0,U.createElement)(e,{...u,children:f})}function Ag({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:jg(n,r,i,e),renderState:t()}}function jg(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ps(a[e]);let{initial:o,animate:s}=e,c=rl(e),l=il(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`&&!$c(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Da(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 Mg=e=>(t,n)=>{let r=(0,U.useContext)(fg),i=(0,U.useContext)(Wh),a=()=>Ag(e,t,r,i);return n?a():Hh(a)},Ng=Mg({scrapeMotionValuesFromProps:vl,createRenderState:gg}),Pg=Mg({scrapeMotionValuesFromProps:Lu,createRenderState:xg}),Fg=Symbol.for(`motionComponentSymbol`);function Ig(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 Lg=(0,U.createContext)({});function eee(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function tee(e,t,n,r,i,a){let{visualElement:o}=(0,U.useContext)(fg),s=(0,U.useContext)(ag),c=(0,U.useContext)(Wh),l=(0,U.useContext)(Gh),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)(Lg);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&nee(f.current,n,i,h);let g=(0,U.useRef)(!1);(0,U.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[za],v=(0,U.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Uh(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Uh(()=>{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 nee(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:Rg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&eee(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Rg(e){if(e)return e.options.allowProjection===!1?Rg(e.parent):e.projection}function zg(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ug(r);let a=n?n===`svg`:Og(e),o=a?Pg:Ng;function s(n,s){let c,l={...(0,U.useContext)(Gh),...n,layoutId:ree(n)},{isStatic:u,isValidProp:d}=l,f=mg(n),p=o(n,u);if(!u&&typeof window<`u`){iee(l,r);let t=aee(l);c=t.MeasureLayout,f.visualElement=tee(e,p,l,i,t.ProjectionNode,a)}return(0,W.jsxs)(fg.Provider,{value:f,children:[c&&f.visualElement?(0,W.jsx)(c,{visualElement:f.visualElement,...l}):null,kg(e,n,Ig(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[Fg]=e,c}function ree({layoutId:e}){let t=(0,U.useContext)(Vh).id;return t&&e!==void 0?t+`-`+e:e}function iee(e,t){(0,U.useContext)(ag).strict}function aee(e){let{drag:t,layout:n}=lg();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function oee(e,t){if(typeof Proxy>`u`)return zg;let n=new Map,r=(n,r)=>zg(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,zg(a,void 0,e,t)),n.get(a))})}var see=(e,t)=>t.isSVG??Og(e)?new Ru(t):new bl(t,{allowProjection:e!==U.Fragment}),cee=class extends Nu{constructor(e){super(e),e.animationState||=Vu(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();$c(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?.()}},lee=0,uee={animation:{Feature:cee},exit:{Feature:class extends Nu{constructor(){super(...arguments),this.id=lee++}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}=Oa(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(){}}}},dee=class extends Nu{constructor(e){super(e),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new mu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}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()}},fee=({current:e})=>e?e.ownerDocument.defaultView:null,Bg=e=>(t,n)=>{e&&jn.update(()=>e(t,n),!1,!0)},pee=class extends Nu{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(e){this.session=new Hl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fee(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Bg(e),onStart:Bg(t),onMove:Bg(n),onEnd:(e,t)=>{delete this.session,r&&jn.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=wl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Vg=!1,Hg=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),mee=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),Vg&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Hg(this.props),onExitComplete:()=>this.safeToRemove()})),fc.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,...Hg(this.props)}),Vg=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||jn.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(),as.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Vg=!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 Ug(e){let[t,n]=$h(),r=(0,U.useContext)(Vh);return(0,W.jsx)(mee,{...e,layoutGroup:r,switchLayoutGroup:(0,U.useContext)(Lg),isPresent:t,safeToRemove:n})}var hee={pan:{Feature:pee},drag:{Feature:dee,ProjectionNode:Zc,MeasureLayout:Ug}};function Wg(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&jn.postRender(()=>i(t,Sl(t)))}var Gg=class extends Nu{mount(){let{current:e}=this.node;e&&(this.unmount=Cu(e,(e,t)=>(Wg(this.node,t,`Start`),e=>Wg(this.node,e,`End`))))}unmount(){}},Kg=class extends Nu{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=Ie(Jc(this.node.current,`focus`,()=>this.onFocus()),Jc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function qg(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&&jn.postRender(()=>i(t,Sl(t)))}var Jg=class extends Nu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ju(e,(e,t)=>(qg(this.node,t,`Start`),(e,{success:t})=>qg(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Yg=new WeakMap,Xg=new WeakMap,Zg=e=>{let t=Yg.get(e.target);t&&t(e)},Qg=e=>{e.forEach(Zg)};function $g({root:e,...t}){let n=e||document;Xg.has(n)||Xg.set(n,{});let r=Xg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Qg,{root:e,...t})),r[i]}function e_(e,t,n){let r=$g(t);return Yg.set(e,n),r.observe(e),()=>{Yg.delete(e),r.unobserve(e)}}var t_={some:0,all:1},n_=class extends Nu{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:t_[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=e_(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(r_(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function r_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var i_={inView:{Feature:n_},tap:{Feature:Jg},focus:{Feature:Kg},hover:{Feature:Gg}},a_={layout:{ProjectionNode:Zc,MeasureLayout:Ug}},o_=oee({...uee,...i_,...hee,...a_},see);function s_(e){let t=Hh(()=>fa(e)),{isStatic:n}=(0,U.useContext)(Gh);if(n){let[,n]=(0,U.useState)(e);(0,U.useEffect)(()=>t.on(`change`,n),[])}return t}function c_(e,t){let n=s_(t()),r=()=>n.set(t());return r(),Uh(()=>{let t=()=>jn.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Mn(r)}}),n}function l_(e){ua.current=[],e();let t=c_(ua.current,e);return ua.current=void 0,t}function u_(e,t,n,r){if(typeof e==`function`)return l_(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return f_(e,t,n,r);let i=typeof t==`function`?t:Mu(t,n,r),a=Array.isArray(e)?d_(e,i):d_([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 d_(e,t){let n=Hh(()=>[]);return c_(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function f_(e,t,n,r){let i=Hh(()=>Object.keys(n)),a=Hh(()=>({}));for(let o of i)a[o]=u_(e,t,n[o],r);return a}var p_=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()})}},m_=()=>new p_;function h_(){return Hh(m_)}var g_=(0,U.createContext)(null);function __(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:un(t.x.min,t.x.max,.5)+n.x,y:un(t.y.min,t.y.max,.5)+n.y},i=v_(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>y_(r.y,t)<y_(r.y,e)?t:e);if(c!==s)return b_(e,o,r.x,c,a);let l=x_(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=x_(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:Oe(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=un(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?Oe(e,o,o+s):e}function v_(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 y_(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function b_(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=un(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 x_(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 S_=(e,t)=>e.max<=t.min||t.max<=e.min;function C_(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||=S_(e[r].x,e[i].x),n||=S_(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function w_({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=Hh(()=>o_[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=C_(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=__(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,W.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,W.jsx)(g_.Provider,{value:v,children:e})})}var T_=(0,U.forwardRef)(w_),E_=50,D_=25,O_=new Set([`auto`,`scroll`]),k_=new WeakMap,A_=new WeakMap,j_=null;function M_(){if(j_){let e=P_(j_,`y`);e&&(A_.delete(e),k_.delete(e));let t=P_(j_,`x`);t&&t!==e&&(A_.delete(t),k_.delete(t)),j_=null}}function N_(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return O_.has(r)||i}function P_(e,t){let n=e?.parentElement;for(;n;){if(N_(n,t))return n;n=n.parentElement}return null}function F_(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<E_){let e=1-o/E_;return{amount:-25*e*e,edge:`start`}}if(s<E_){let e=1-s/E_;return{amount:D_*e*e,edge:`end`}}return{amount:0,edge:null}}function I_(e,t,n,r){if(!e)return;j_=e;let i=P_(e,n);if(!i)return;let{amount:a,edge:o}=F_(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){A_.delete(i),k_.delete(i);return}let s=A_.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;A_.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);k_.set(i,e)}if(a>0){let e=k_.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 L_(e,t=0){return Fa(e)?e:s_(t)}function R_({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Hh(()=>o_[r]),u=(0,U.useContext)(g_),d={x:L_(t.x),y:L_(t.y)},f=u_([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,W.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;I_(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,M_(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var z_=(0,U.forwardRef)(R_),B_=o_,V_={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]},H_={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}},U_={menu:{duration:.22,ease:V_.soft},overlay:{duration:.4,ease:V_.soft},dialogFade:{duration:.4,ease:V_.soft},fade:{duration:.2,ease:V_.out},color:{duration:.2,ease:V_.color},reveal:{duration:.3,ease:V_.out},disclosure:{duration:.35,ease:V_.soft},panelOut:{duration:.15,ease:V_.leave},panelIn:{duration:.3,ease:V_.enter},tooltipIn:{duration:.34,ease:V_.enter},tooltipOut:{duration:.13,ease:V_.leave},panelHeight:{duration:.45,ease:V_.resize},check:{duration:.3,delay:.2,ease:V_.draw},uncheck:{duration:.3,ease:V_.draw},fill:{duration:.3,ease:V_.fill},popOut:{duration:.15,ease:V_.out},swap:{duration:.15,ease:V_.out},spin:{duration:.3,ease:V_.out},handoffOut:{duration:.22,ease:V_.soft},handoffIn:{duration:.26,ease:V_.arrive},dismiss:{duration:.2,ease:V_.away},shake:{duration:.4,ease:V_.inOut},drawerOut:{duration:.16,ease:V_.in},drawer:{duration:.4,ease:V_.drawer},sheet:{duration:.4,ease:V_.soft},collapse:{duration:.28,ease:V_.inOut},collapseLabel:{duration:.14,ease:V_.out},instant:{duration:0}},W_={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},G_={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},K_={icon:90},q_={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},J_={stack:.03};function Y_(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,$_(n,e)]));return{tempo:e,ease:V_,scale:W_,blur:G_,rotate:K_,shift:q_,stagger:e===1?J_:Object.fromEntries(Object.entries(J_).map(([t,n])=>[t,n*e])),spring:t(H_),transition:t(U_)}}var X_=Y_(),Z_=U.createContext(X_),Q_=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function $_(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`&&Q_.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)?$_(i,t):i;return n}function ev(e){let{tempo:t}=U.use(Z_);return $_(e,t)}function tv(){return U.use(Z_)}U.createContext(`draw`);var nv={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)`},rv=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function iv(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?nv[e]??`ease`:nv.easeInOut}function av(e){let t=e;if(t.type===`spring`||rv.some(e=>e in t)){let{duration:e,ease:n}=Rn(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,Xn),r=Math.round(e*1e3);return{duration:r,easing:Fn(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:iv(t.ease)}}var ov=U.createContext(`user`);function sv(){let e=U.use(ov),{reducedMotion:t}=U.use(Gh);return t===`always`?`always`:e}function cv({children:e,remount:t}){let n=sv();return(0,W.jsx)(dg,{reducedMotion:n,children:t?(0,W.jsx)(lv,{children:e}):e})}function lv({children:e}){let t=dv();return(0,W.jsx)(U.Fragment,{children:e},t?`reduce`:`full`)}var uv=`(prefers-reduced-motion: reduce)`;function gee(e){let t=window.matchMedia(uv);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function dv(){let e=sv(),t=U.useSyncExternalStore(gee,()=>window.matchMedia(uv).matches,()=>!1);return e===`never`?!1:e===`always`||t}var fv=X_.spring.pop;X_.transition.menu,X_.spring.morph;var _ee={tooltip:X_.scale.tooltip,popover:X_.scale.popover,menu:X_.scale.menu};function vee(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function yee(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 bee=X_.transition.fade,pv=[`top`,`bottom`,`left`,`right`],mv={top:`--scroll-fade-top`,bottom:`--scroll-fade-bottom`,left:`--scroll-fade-left`,right:`--scroll-fade-right`,size:`--scroll-fade-size`},hv=e=>`rgb(0 0 0 / calc(1 - var(${mv[e]}, 0)))`,gv=e=>`calc(var(${mv.size}) * min(1, var(${mv[e]}, 0) * 1000))`,_v=`linear-gradient(to bottom, ${hv(`top`)} 0, #000 ${gv(`top`)}, #000 calc(100% - ${gv(`bottom`)}), ${hv(`bottom`)} 100%)`,vv=`linear-gradient(to right, ${hv(`left`)} 0, #000 ${gv(`left`)}, #000 calc(100% - ${gv(`right`)}), ${hv(`right`)} 100%)`,xee={vertical:_v,horizontal:vv,both:`${_v}, ${vv}`},yv=e=>Math.min(1,Math.max(0,e)),See=e=>e*e*(3-2*e),Cee=1.75,wee=150,bv=`ul, ol, [role="list"], [role="group"]`;function xv(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(bv)||Array.from(n.children).some(e=>e.matches(bv))?xv(n,t):t.push(n));return t}function Tee(e){let t=e;for(;t.children.length===1;)t=t.children[0];return xv(t,[])}function Sv(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 Eee(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=dv(),c=ev(a??bee),l=U.useRef(c);U.useEffect(()=>{l.current=c});let u=s_(0),d=s_(0),f=s_(0),p=s_(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=xee[t],d=!1;a.style.setProperty(mv.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]=yee(a);v=a.clientWidth,y=a.clientHeight,_=Tee(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*Cee,S=e=>x>0?See(yv(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,jn.render(E))},O=()=>{let e=!1;for(let t of pv){let n=yv(m[t].get());n>.001&&(e=!0),a.style.setProperty(mv[t],n.toFixed(4))}e!==d&&(d=e,Sv(a,e?u:null)),D()},k=pv.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?yv(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 pv)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&fd(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>wee&&(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),Mn(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Sv(a,null),g();for(let e of Object.values(mv))a.style.removeProperty(e);for(let e of pv)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Cv={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function Dee({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(()=>vee(d,f),[f]);U.useImperativeHandle(e,()=>d.current),Eee(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:{...Cv[n],...e.props.style,...c},ref:p})}return(0,W.jsx)(`div`,{ref:d,style:{...Cv[n],...c},...m,children:l})}function wv({children:e,enabled:t=!0,size:n=20}){let r=Dd();return(0,W.jsx)(Dee,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:(r?wd.micro:wd.base)/1e3,ease:wd.out},children:e})}var Tv=({width:e=`60%`})=>(0,W.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function Ev({layout:e,testId:t=`${e}-loading`}){return(0,W.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":G(`Loading…`),"aria-busy":`true`,children:(0,W.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,W.jsx)(`div`,{className:`note-title-type`,children:(0,W.jsx)(Tv,{width:`52%`})}),(0,W.jsx)(`div`,{className:`note-meta-row`,children:(0,W.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,W.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,W.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,W.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,W.jsx)(df,{size:14}),G(`Transcript`)]}),(0,W.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,W.jsx)(rm,{size:14}),G(`My notes`)]})]})]}),(0,W.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,W.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,W.jsx)(Tv,{width:e},e))})})]}):e===`history`?(0,W.jsxs)(`section`,{children:[(0,W.jsx)(`h2`,{children:(0,W.jsx)(Tv,{width:`48px`})}),(0,W.jsx)(`ul`,{children:[0,1,2].map(e=>(0,W.jsx)(`li`,{className:`ask-history-row`,children:(0,W.jsxs)(`div`,{className:`ask-history-link`,children:[(0,W.jsx)(`strong`,{children:(0,W.jsx)(Tv,{width:`${130+e*14}px`})}),(0,W.jsx)(`time`,{children:(0,W.jsx)(Tv,{width:`56px`})})]})},e))})]}):e===`folders`?(0,W.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,W.jsxs)(`div`,{className:`workspace-nav`,children:[(0,W.jsx)(`span`,{className:`loading-folder-icon`}),(0,W.jsx)(Tv,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,W.jsx)(W.Fragment,{children:[0,1].map(e=>(0,W.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,W.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,W.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,W.jsx)(`span`,{className:`settings-label`,children:(0,W.jsx)(Tv,{width:`120px`})}),(0,W.jsx)(`span`,{className:`settings-description block`,children:(0,W.jsx)(Tv,{width:`90px`})})]}),(0,W.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,W.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,W.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,W.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,W.jsx)(Tv,{width:`42px`})}),(0,W.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,W.jsx)(Tv,{width:`${160+e*25}px`})})]},e))}):(0,W.jsxs)(`div`,{className:`ask-turn`,children:[(0,W.jsx)(`p`,{className:`ask-question`,children:(0,W.jsx)(Tv,{width:`160px`})}),(0,W.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,W.jsx)(Tv,{width:e},e))})]})})})}function Dv(e){let t=Dd(),[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(`revealing`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(a=setTimeout(()=>r(`ready`),wd.micro)),()=>clearTimeout(a)},[e,n,t]),n}var Ov=()=>(0,U.useSyncExternalStore)(wm,Cm);function Oee(e,t){return G(e,Object.fromEntries(Object.keys(t).map(e=>[e,`\u0000${e}\u0000`]))).split(`\0`).map((e,n)=>n%2?(0,W.jsx)(U.Fragment,{children:t[e]},n):e)}function kee(e,t){let n=t.trim();if(!n)return[];let r=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`giu`),i=[];for(let t of e)for(let e of t.text.matchAll(r))i.push({key:`${t.track}:${t.startMs}`,start:e.index,end:e.index+e[0].length});return i}function kv(e,t){return t?Math.max(0,e.findIndex(e=>e.key===t.key&&e.start===t.start)):0}function Av(e,t,n){return n?((e+t)%n+n)%n:0}function Aee(e,t){return e.top>=t.top&&e.bottom<=t.bottom?null:t.scrollTop+(e.top+e.bottom-t.top-t.bottom)/2}function jee(e,t,n){let r=new Map;for(let t of e.querySelectorAll(`[data-key]`)){let e=t.querySelector(`[data-testid="transcript-text"]`);if(!e)continue;let n=[],i=[],a=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),o,s=0;for(;o=a.nextNode();){let e=o;e.length&&(n.push({node:e,start:s,end:s+e.length}),i.push(e.data),s+=e.length)}r.set(t.dataset.key,{root:e,text:i.join(``),spans:n})}let i=t.map(e=>({...e,text:r.get(`${e.track}:${e.startMs}`)?.text??``})),a=[],o=[];for(let e of kee(i,n)){let t=r.get(e.key);try{let n=jv(t.spans,e.start),r=jv(t.spans,e.end);if(!t.root.isConnected||!n||!r||!t.root.contains(n.node)||!t.root.contains(r.node))continue;let i=t.root.ownerDocument.createRange();if(i.setStart(n.node,e.start-n.start),i.setEnd(r.node,e.end-r.start),i.toString()!==t.text.slice(e.start,e.end))continue;a.push(e),o.push(i)}catch{}}return{query:n,matches:a,ranges:o}}function jv(e,t){let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;e[i].end<t?n=i+1:r=i}return e[n]}function Mv({lines:e,list:t,active:n,playbackInset:r,beforeScroll:i,onFinding:a,toolbar:o,onClose:s}){Ov();let c=(0,U.useId)(),l=(0,U.useId)(),[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(``),[m,h]=(0,U.useState)(0),[g,_]=(0,U.useState)(null),v=(0,U.useRef)(null),y=(0,U.useRef)(null),[b,x]=(0,U.useState)({query:``,matches:[],ranges:[]}),{matches:S,ranges:C}=b,w=kv(S,g),T=S[w],E=(0,U.useRef)(null),D=(0,U.useRef)(!1),O=!!f.trim(),k=()=>{d(!0),a(!0),u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},A=()=>{p(``),_(null),d(!1),a(!1),y.current?.focus({preventScroll:!0})},j=e=>{S.length&&(D.current=!0,_(S[Av(w,e,S.length)]),h(e=>e+1))};(0,U.useLayoutEffect)(()=>{u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},[u]),(0,U.useLayoutEffect)(()=>{let e=E.current,t=e?.querySelector(`.transcript-find-controls`);if(!n||!o||!e||!t)return;let r=()=>{let n=Math.max(240,t.getBoundingClientRect().width+76);e.dataset.findBelow=String(o.getBoundingClientRect().width<n)};r();let i=new ResizeObserver(r);return i.observe(o),i.observe(t),()=>i.disconnect()},[n,o]),(0,U.useLayoutEffect)(()=>{b.query===f&&T&&(T.key!==g?.key||T.start!==g.start)&&_(T)},[T,g,b.query,f]),(0,U.useLayoutEffect)(()=>{let r=t.current;if(!n||!u||!f.trim()||!r){x({query:f,matches:[],ranges:[]});return}let i=()=>x(jee(r,e,f));i();let a=new MutationObserver(i);return a.observe(r,{childList:!0,characterData:!0,subtree:!0}),()=>a.disconnect()},[e,f,u,n,t]),(0,U.useLayoutEffect)(()=>{if(!n)return;let e=new Highlight;for(let t of C)e.add(t);return CSS.highlights.set(`transcript-find`,e),()=>{CSS.highlights.get(`transcript-find`)===e&&CSS.highlights.delete(`transcript-find`)}},[C,n]),(0,U.useLayoutEffect)(()=>{if(!n||b.query!==f)return;let e=C[w],a=new Highlight(...e?[e]:[]);a.priority=1,CSS.highlights.set(`transcript-find-current`,a);let o=t.current;if(D.current&&e&&o){let t=e.getBoundingClientRect(),n=o.getBoundingClientRect(),a=v.current?.getBoundingClientRect(),s=Aee(t,{top:a&&a.bottom>n.top&&t.right>a.left&&t.left<a.right?a.bottom+8:n.top,bottom:n.bottom-r,scrollTop:o.scrollTop});t.height&&s!==null&&(i?.(),o.scrollTo({top:s,behavior:Ed()}))}return D.current=!1,()=>{CSS.highlights.get(`transcript-find-current`)===a&&CSS.highlights.delete(`transcript-find-current`)}},[C,w,g,m,n,r,t,b.query,f]),(0,U.useEffect)(()=>{if(!n)return;let e=e=>{e.defaultPrevented||e.isComposing||e.altKey||document.querySelector(`dialog:modal, [aria-modal="true"]`)||(Mm(e)&&(e.code===`KeyF`||e.code===`KeyG`)?(e.preventDefault(),e.stopPropagation(),e.code===`KeyF`?k():O&&j(e.shiftKey?-1:1)):e.key===`Escape`&&u&&(E.current?.contains(e.target)||t.current?.contains(e.target))&&(e.preventDefault(),e.stopPropagation(),A()))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)});let M=(0,W.jsxs)(`div`,{ref:E,className:`transcript-toolbar`,children:[(0,W.jsxs)(`div`,{className:`transcript-find`,"data-open":u,onBlur:e=>{u&&!e.currentTarget.contains(e.relatedTarget)&&!O&&(d(!1),a(!1))},children:[(0,W.jsx)(`button`,{ref:y,type:`button`,"data-testid":`transcript-find-open`,className:`ghost-btn transcript-find-trigger`,"aria-label":G(`Search the transcript`),title:`${G(`Search the transcript`)} (${jm(`⌘F`)})`,"aria-expanded":u,"aria-hidden":u,"aria-controls":l,tabIndex:u?-1:0,onClick:k,children:(0,W.jsx)(Yp,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,W.jsx)(`div`,{id:l,className:`transcript-find-clip`,inert:!u,"aria-hidden":!u,children:(0,W.jsxs)(`div`,{className:`transcript-search-field`,children:[(0,W.jsx)(Yp,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,W.jsx)(`input`,{ref:v,"data-testid":`transcript-search`,value:f,onChange:e=>{D.current=!0,_(null),p(e.target.value)},onKeyDown:e=>{e.nativeEvent.isComposing||e.key===`Enter`&&(e.preventDefault(),j(e.shiftKey?-1:1))},placeholder:G(`Search`),"aria-label":G(`Search the transcript`),"aria-describedby":c,spellCheck:!1}),(0,W.jsxs)(`span`,{className:`transcript-find-controls`,children:[(0,W.jsxs)(`span`,{className:`transcript-find-results`,"data-visible":O,inert:!O,"aria-hidden":!O,children:[(0,W.jsxs)(`span`,{className:`transcript-find-count`,children:[(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:G(`{current} of {count}`,{current:99999,count:99999})}),(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:G(`No matches`)}),(0,W.jsx)(`span`,{id:c,"data-testid":`transcript-find-count`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:O?S.length?G(`{current} of {count}`,{current:w+1,count:S.length}):G(`No matches`):``})]}),(0,W.jsxs)(`span`,{className:`transcript-find-arrows`,children:[(0,W.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-previous`,className:`ghost-btn workspace-icon`,disabled:!S.length,"aria-label":G(`Previous match`),title:`${G(`Previous match`)} (⇧Enter · ${jm(`⇧⌘G`)})`,"aria-keyshortcuts":`Shift+Enter ${Nm()?`Meta`:`Control`}+Shift+G`,onClick:()=>j(-1),children:(0,W.jsx)(jf,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,W.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-next`,className:`ghost-btn workspace-icon`,disabled:!S.length,"aria-label":G(`Next match`),title:`${G(`Next match`)} (Enter · ${jm(`⌘G`)})`,"aria-keyshortcuts":`Enter ${Nm()?`Meta`:`Control`}+G`,onClick:()=>j(1),children:(0,W.jsx)(Tf,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]}),(0,W.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-close`,className:`ghost-btn workspace-icon transcript-find-close`,"aria-label":G(`Close`),title:`${G(`Close`)} (Esc)`,"aria-keyshortcuts":`Escape`,onClick:A,children:(0,W.jsx)(hm,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]})})]}),s&&(0,W.jsx)(`div`,{className:`transcript-actions`,children:(0,W.jsx)(`button`,{"data-testid":`transcript-close`,onClick:s,"aria-label":G(`Hide transcript`),title:G(`Hide transcript`),className:`ghost-btn workspace-icon`,children:(0,W.jsx)(Tf,{size:15,"aria-hidden":`true`})})})]});return n?o?(0,gh.createPortal)(M,o):M:null}function Nv(){return null}var Pv=900,Fv=24,Mee=8,Nee=24;function Iv(e,t){let n=!1,r=!1,i=!1,a=!1,o=e.scrollTop,s=0,c=0,l=!1,u,d=()=>i||a||t.contains(document.activeElement)||!e.clientHeight||e.scrollHeight-e.clientHeight-e.scrollTop<=Nee,f=e=>{let n=e&&!d();l!==n&&(l=n,t.dataset.hidden=String(l))},p=()=>{n=!1,s=0,c=0,o=e.scrollTop,clearTimeout(u),u=void 0,f(!1)},m=()=>{clearTimeout(u),u=setTimeout(p,Pv)},h=()=>{n||(s=0,c=0),n=!0,m()},g=()=>{let t=e.scrollTop-o;if(o=e.scrollTop,d()){p();return}if(!n||!t)return;let r=Math.sign(t);c=r===s?c+Math.abs(t):Math.abs(t),s=r,r>0&&c>=Fv&&f(!0),r<0&&c>=Mee&&f(!1),m()},_=e=>{e.isTrusted&&!e.ctrlKey&&Math.abs(e.deltaY)>Math.abs(e.deltaX)&&h()},v=e=>{!e.isTrusted||e.defaultPrevented||e.ctrlKey||e.metaKey||e.altKey||![`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)||e.target.closest(`input, textarea, button, [contenteditable="true"]`)||h()},y=e=>{e.isTrusted&&h()},b=t=>{if(!t.isTrusted||t.button!==0||t.target!==e)return;let n=e.getBoundingClientRect(),i=t.clientX-n.left;(i<=Math.max(e.clientLeft,12)||i>=Math.min(e.clientLeft+e.clientWidth,n.width-12))&&(r=!0,h())},x=e=>{r&&e.isTrusted&&h()},S=()=>{r=!1},C=e=>{e.pointerType!==`touch`&&(a=!0,p())},w=()=>{a=!1},T=()=>{d()&&p()},E=new ResizeObserver(T);E.observe(e);let D=new MutationObserver(T);return D.observe(e,{childList:!0,subtree:!0}),e.addEventListener(`scroll`,g,{passive:!0}),e.addEventListener(`wheel`,_,{passive:!0}),e.addEventListener(`touchmove`,y,{passive:!0}),e.addEventListener(`keydown`,v),e.addEventListener(`pointerdown`,b),document.addEventListener(`pointermove`,x,{passive:!0}),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S),t.addEventListener(`pointerenter`,C),t.addEventListener(`pointerleave`,w),t.addEventListener(`focusin`,p),t.dataset.hidden=`false`,{programmatic:p,pin(e){i=e,p()},dispose(){clearTimeout(u),E.disconnect(),D.disconnect(),e.removeEventListener(`scroll`,g),e.removeEventListener(`wheel`,_),e.removeEventListener(`touchmove`,y),e.removeEventListener(`keydown`,v),e.removeEventListener(`pointerdown`,b),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S),t.removeEventListener(`pointerenter`,C),t.removeEventListener(`pointerleave`,w),t.removeEventListener(`focusin`,p),delete t.dataset.hidden}}}var Lv=new Map,Rv=new Map,zv=e=>Lv.get(e);function Bv(){for(let[e,t]of Rv)t.clientHeight&&Lv.set(e,t.scrollTop)}function Vv(e,t=!0){let n=(0,U.useRef)(null);return(0,U.useLayoutEffect)(()=>{let r=n.current;if(!r)return;Rv.set(e,r),t&&Lv.has(e)&&(r.scrollTop=Lv.get(e));let i=()=>{r.clientHeight&&Lv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{Rv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var Hv=e=>(e.startMs+e.endMs)/2,Uv=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),Wv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),Pee=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Gv=500;function Kv(e,t){let n=t.split(/\s+/).map(Wv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>Wv(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]+ +!Pee(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 qv(e,t){let n=e.filter(e=>!e.rough&&Hv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Kv(r,t.text),a=r.filter(e=>Hv(e)<t.endMs-Gv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Jv=e=>`${e.track}:${e.startMs}`,Yv=24,Xv=400,Zv=e=>e.track===`me`?G(`You`):e.speaker||G(`Them`);function Qv(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(Jv)),o=t.filter(t=>t.meetingId===e&&!i.has(Jv(t)));if(r)for(let e of o)a.current.add(Jv(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=>[Jv(e),e])),r=new Set(t.map(Jv));return[...t.map(e=>n.get(Jv(e))??e),...e.filter(e=>!r.has(Jv(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}var $v=300,ey=50;function ty(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=qv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:Uv(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 ny({said:e}){let t=(0,U.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=lh(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,W.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,W.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,W.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{})]})]})}var ry=(0,U.memo)(function({line:e,focused:t,name:n,playing:r,playable:i,focusable:a,arrived:o,onPlay:s,onFocusLine:c}){Ov(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let l=Jv(e),u=ih(e.startMs);return(0,W.jsxs)(`span`,{"data-key":l,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":r||void 0,role:i?`button`:void 0,"aria-label":i?G(`Play from {time}, {name}: {text}`,{time:u,name:n,text:e.text}):void 0,tabIndex:i?a?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&c(l)},onClick:t=>s(e,t),title:u,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${o===`fade`?`line-in`:o===`settle`?`line-settle`:``} ${i?`line-playable cursor-pointer`:``}`,children:[(0,W.jsx)(`span`,{"data-testid":`transcript-text`,children:e.text}),(0,W.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:u})]})});function iy({id:e,recording:t,inline:n=!1,active:r=!0,onClose:i,focus:a,toolbar:o}){let{lines:s,live:c,loaded:l}=Qv(e),u=Dv(!l),{live:d,previewed:f}=ty(e,t),p=(0,U.useMemo)(()=>nh(ch(s,d)).filter(e=>!e.echo),[s,d]),m=(0,U.useMemo)(()=>nh(s).filter(e=>!e.echo).flatMap(e=>e.lines),[s]),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1);(0,U.useEffect)(()=>{g(!1),v(!1)},[e]);let[y,b]=(0,U.useState)([]);(0,U.useEffect)(()=>{if(b([]),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"]`)&&(F.current?.setAttribute(`tabindex`,`-1`),F.current?.focus({preventScroll:!0})),r=!0,b([]),re(!1),N(null))});return window.yogurt.audio.tracks(e).then(e=>{n&&!r&&b(e)}),()=>{n=!1,i()}},[e,t]);let x=(0,U.useRef)(null),S=y.length>0,C=(0,U.useRef)(null),[w,T]=(0,U.useState)(0),E=(0,U.useRef)(null);(0,U.useLayoutEffect)(()=>{let e=C.current;if(!e){T(0);return}let t=()=>T(e.getBoundingClientRect().height+28);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[S,r]);let[D,O]=(0,U.useState)(),[k,A]=(0,U.useState)(0),j=(0,U.useRef)(0),M=(0,U.useRef)(m);M.current=m;let N=(0,U.useCallback)((e,t=!1)=>{let n=e==null?-1:oh(M.current,e),r=n<0?void 0:Jv(M.current[n]);O(e=>e===r?e:r),t&&A(e=>e+1)},[]),P=`transcript/${e}`,F=Vv(P,r&&l);(0,U.useLayoutEffect)(()=>{let e=F.current,t=C.current;if(!r||!S||!e||!t)return;let n=Iv(e,t);return E.current=n,()=>{n.dispose(),E.current=null}},[e,r,S]);let I=(0,U.useRef)(zv(P)===void 0),[L,R]=(0,U.useState)(!1),ee=()=>{let e=F.current;e&&(oe.current===null&&(V.current=performance.now(),fe()),I.current=e.scrollHeight-e.scrollTop-e.clientHeight<Yv,R(!I.current))};(0,U.useLayoutEffect)(()=>{let e=F.current;r&&t&&!h&&e&&I.current&&(E.current?.programmatic(),e.scrollTop=e.scrollHeight)},[m,d,t,r,h]);let z=()=>{let e=F.current;e&&(E.current?.programmatic(),I.current=!0,R(!1),e.scrollTo({top:e.scrollHeight,behavior:Ed()}))},te=e=>e?F.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null,[ne,re]=(0,U.useState)(!1),ie=(0,U.useRef)(!0),[B,ae]=(0,U.useState)(null),oe=(0,U.useRef)(null),V=(0,U.useRef)(0),se=(0,U.useRef)(D);se.current=D,(0,U.useEffect)(()=>{ie.current=!0,ae(null)},[e]);let ce=e=>{let t=F.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-w),scrollHeight:t.scrollHeight}}},le=e=>{let t=F.current,n=te(se.current);if(h||!t||!n||!e&&performance.now()-V.current<Xv)return;let{row:r,view:i}=ce(n),a=_d(r,i,e);if(!(a===null||!oe.current&&Math.abs(a-t.scrollTop)<2)){if(!oe.current){let e=Od(t,()=>requestAnimationFrame(()=>{oe.current===e&&!e.active&&(oe.current=null)}));oe.current=e}E.current?.programmatic(),oe.current.to(a)}};(0,U.useEffect)(()=>{k===j.current?ne&&ie.current&&le(!1):(j.current=k,ie.current=!0,ae(null),le(!0))},[D,ne,k]);let ue=(0,U.useCallback)(()=>{ie.current=!0,ae(null)},[]),de=()=>{ue(),le(!0)},fe=()=>{let e=F.current,n=te(se.current);if(t||!e||!n)return;let{row:r,view:i}=ce(n);ie.current=gd(r,i),ae(ie.current?null:r.top<i.scrollTop?`up`:`down`)},pe=()=>{V.current=performance.now(),oe.current?.stop(),oe.current=null};(0,U.useEffect)(()=>()=>{oe.current?.stop(),oe.current=null},[e,r]);let me=(0,U.useRef)(S);me.current=S;let he=(0,U.useCallback)((e,t)=>{!me.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(ue(),x.current?.playFrom(e.startMs))},[ue]),[ge,_e]=(0,U.useState)(),ve=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(!r||!a||ve.current===a.seq||!m.length)return;let e=m.filter(e=>!e.hidden),t=(a.match?e[Fh(e.map(e=>e.text),a.match,Math.max(0,oh(e,a.ms)))]:void 0)??m[Math.max(0,oh(m,a.ms))];t&&(ve.current=a.seq,I.current=!1,v(!0),_e(Jv(t)),be(Jv(t)),requestAnimationFrame(()=>{E.current?.programmatic(),te(Jv(t))?.scrollIntoView({block:`center`})}))},[a?.seq,m,r]),(0,U.useEffect)(()=>{if(!ge)return;let e=window.setTimeout(()=>_e(void 0),2400);return()=>clearTimeout(e)},[ge,a?.seq]);let[ye,be]=(0,U.useState)(),xe=ye??D??(m[0]&&Jv(m[0])),Se=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!S||!t||t!==e.target)return;let n=m.findIndex(e=>Jv(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=te(Jv(m[Math.max(0,Math.min(m.length-1,e))]));E.current?.programmatic(),t?.focus({preventScroll:!0}),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(m.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ue(),x.current?.playFrom(m[n].startMs))},Ce=(0,U.useMemo)(()=>p.map(e=>({...e,k:Jv(e.lines[0])})),[p]),we=(0,U.useMemo)(()=>t&&!_?uh(Ce,$v,ey):{runs:Ce,earlier:0},[Ce,t,_]),Te=(0,U.useCallback)(e=>{g(e),e&&(v(!0),I.current=!1,oe.current?.stop(),oe.current=null)},[]);return(0,W.jsxs)(n?`section`:`aside`,{style:{"--playback-inset":`${w}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:[(0,W.jsx)(Mv,{lines:m,list:F,active:r,playbackInset:w,beforeScroll:()=>E.current?.programmatic(),onFinding:Te,toolbar:o,onClose:n?void 0:i},e),(0,W.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,W.jsx)(wv,{enabled:r&&l,children:(0,W.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:F,onScroll:ee,onWheel:pe,onTouchStart:pe,onPointerDown:pe,onKeyDownCapture:pe,onKeyDown:Se,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,W.jsx)(`li`,{className:`loading-placeholder`,children:(0,W.jsx)(Ev,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,W.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,W.jsxs)(`div`,{className:`empty-state-content`,children:[(0,W.jsx)(`div`,{className:`empty-tile`,children:(0,W.jsx)(df,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),G(`Nothing heard yet.`)]})}),we.earlier>0&&(0,W.jsx)(`li`,{className:`flex justify-center`,children:(0,W.jsx)(`button`,{"data-testid":`transcript-earlier`,onClick:()=>{E.current?.programmatic(),I.current=!1,v(!0)},className:`ghost-btn`,children:G(`Show earlier lines`)})}),we.runs.map(e=>(0,W.jsx)(U.Fragment,{children:ah(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,W.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,W.jsxs)(`p`,{className:t?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,W.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":r,"data-folder-color":r===void 0?void 0:zh[r],className:`line-who font-medium ${t?``:`text-muted`} ${i?`name-in`:`invisible`}`,children:Zv(n)}),(0,W.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:ih(n.startMs)})]}),sh(e).map(e=>(0,W.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,W.jsxs)(U.Fragment,{children:[t>0&&` `,(0,W.jsx)(ny,{said:e.live})]},`live`);let n=Jv(e);return(0,W.jsxs)(U.Fragment,{children:[t>0&&` `,(0,W.jsx)(ry,{line:e,focused:n===ge,name:Zv(e),playing:n===D,playable:S,focusable:n===xe,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:he,onFocusLine:be})]},n)})},Jv(e[0])))]},Jv(n))})},e.k))]})}),t&&L&&!h&&(0,W.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:z,className:`workspace-button absolute bottom-3 start-1/2 -translate-x-1/2 rtl:translate-x-1/2`,children:[(0,W.jsx)(af,{size:12,"aria-hidden":`true`}),G(`Latest`)]}),!t&&ne&&B&&D&&!h&&(0,W.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:de,className:`workspace-button absolute bottom-3 start-1/2 -translate-x-1/2 rtl:translate-x-1/2`,children:[(0,W.jsx)(af,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":B===`up`}),G(`Back to playing`)]})]}),r&&S&&(0,W.jsx)(`div`,{ref:C,className:`transcript-player-dock`,children:(0,W.jsx)(Nv,{ref:x,id:e,tracks:y,onTime:N,onPlaying:re,onBusy:e=>E.current?.pin(e)})})]})}function ay({part:e,outline:t=!0}){return(0,W.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[t&&(0,W.jsx)(`div`,{className:`summary-outline`,"aria-hidden":`true`,children:[0,1].map(e=>(0,W.jsxs)(`div`,{className:`summary-outline-block`,children:[(0,W.jsx)(`div`,{className:`summary-outline-bar summary-outline-heading`}),[0,1].map(e=>(0,W.jsx)(`div`,{className:`summary-outline-bullet`,children:(0,W.jsx)(`div`,{className:`summary-outline-bar`})},e))]},e))}),(0,W.jsx)(`span`,{className:`sr-only`,children:e?G(`Reading a long meeting, part {part} of {of}…`,{part:e.part,of:e.of}):G(`Reading the transcript…`)})]})}function oy(e){this.content=e}oy.prototype={constructor:oy,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 oy(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 oy(n)},addToStart:function(e,t){return new oy([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new oy(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 oy(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=oy.from(e),e.size?new oy(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=oy.from(e),e.size?new oy(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=oy.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}},oy.from=function(e){if(e instanceof oy)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new oy(t)};function sy(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&&uy(e.charCodeAt(r-1))&&ly(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=sy(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function cy(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&&uy(e.charCodeAt(i-1))&&ly(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=cy(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ly(e){return e>=56320&&e<57344}function uy(e){return e>=55296&&e<56320}var K=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 sy(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return cy(this,e,t,n)}findIndex(e){if(e==0)return fy(0,e);if(e==this.size)return fy(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?fy(t+1,i):fy(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)`:``))}};K.empty=new K([],0);var dy={index:0,offset:0};function fy(e,t){return dy.index=e,dy.offset=t,dy}function py(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(!py(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!py(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var my=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&&py(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}};my.none=[];var hy=class extends Error{},q=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=_y(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(gy(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(K.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)}};q.empty=new q(K.empty,0,0);function gy(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(gy(a.content,t-i-1,n-i-1)))}function _y(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=_y(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 Fee(e,t,n){if(n.openStart>e.depth)throw new hy(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new hy(`Inconsistent open depths`);return vy(e,t,n,0)}function vy(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=vy(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Cy(a,Ty(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Cy(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Ey(n,e);return Cy(a,wy(e,i,o,t,r))}}function yy(e,t){if(!t.type.compatibleContent(e.type))throw new hy(`Cannot join `+t.type.name+` onto `+e.type.name)}function by(e,t,n){let r=e.node(n);return yy(r,t.node(n)),r}function xy(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 Sy(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&&(xy(e.nodeAfter,r),a++));for(let e=a;e<o;e++)xy(i.child(e),r);t&&t.depth==n&&t.textOffset&&xy(t.nodeBefore,r)}function Cy(e,t){if(!e.type.validContent(t))throw new hy(`Invalid content for node `+e.type.name);return e.copy(t)}function wy(e,t,n,r,i){let a=e.depth>i&&by(e,t,i+1),o=r.depth>i&&by(n,r,i+1),s=[];return Sy(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(yy(a,o),xy(Cy(a,wy(e,t,n,r,i+1)),s)):(a&&xy(Cy(a,Ty(e,t,i+1)),s),Sy(t,n,i,s),o&&xy(Cy(o,Ty(n,r,i+1)),s)),Sy(r,null,i,s),new K(s)}function Ty(e,t,n){let r=[];return Sy(null,e,n,r),e.depth>n&&xy(Cy(by(e,t,n+1),Ty(e,t,n+1)),r),Sy(t,null,n,r),new K(r)}function Ey(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(K.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Dy=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 my.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 jy(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=Ay.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 Ay.set(t,r=new Oy);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%ky,i}},Oy=class{constructor(){this.elts=[],this.i=0}},ky=12,Ay=new WeakMap,jy=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)}},My=Object.create(null),Ny=class e{constructor(e,t,n,r=my.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||K.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&&py(this.attrs,t||e.defaultAttrs||My)&&my.sameSet(this.marks,n||my.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 q.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new q(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Fee(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 Dy.resolveCached(this,e)}resolveNoCache(e){return Dy.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()+`)`),Fy(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=K.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),Iy(this.type.attrs,this.attrs,`node`,this.type.name);let e=my.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];Iy(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!my.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=K.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Ny.prototype.text=void 0;var Py=class e extends Ny{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):Fy(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 Fy(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Iy(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 Ly=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ry(t,n);if(r.next==null)return e.empty;let i=zy(r);r.next&&r.err(`Unexpected trailing text`);let a=Yy(Ky(i));return Xy(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 K.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(`
-`)}};Ly.empty=new Ly(!0);var Ry=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 zy(e){let t=[];do t.push(By(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function By(e){let t=[];do t.push(Vy(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Vy(e){let t=Gy(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=Uy(e,t);else break;return t}function Hy(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Uy(e,t){let n=Hy(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Hy(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Wy(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 Gy(e){if(e.eat(`(`)){let t=zy(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Wy(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 Ky(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 qy(e,t){return t-e}function Jy(e,t){let n=[];return r(t),n.sort(qy);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 Yy(e){let t=Object.create(null);return n(Jy(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]);Jy(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ly(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(qy);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Xy(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 Zy(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 $y(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new nb(e,r,t[r]);return n}var eb=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=$y(e,n.attrs),this.defaultAttrs=Zy(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==Ly.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 Ny(this,this.computeAttrs(e),K.from(t),my.setFrom(n))}createChecked(e=null,t,n){return t=K.from(t),this.checkContent(t),new Ny(this,this.computeAttrs(e),t,my.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=K.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(K.empty,!0);return i?new Ny(this,e,t.append(i),my.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:my.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 tb(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 nb=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?tb(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},rb=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=$y(e,r.attrs),this.excluded=null;let i=Zy(this.attrs);this.instance=i?new my(this,i):null}create(e=null){return!e&&this.instance?this.instance:new my(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}},ib=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=oy.from(e.nodes),t.marks=oy.from(e.marks||{}),this.nodes=eb.compile(this.spec.nodes,this),this.marks=rb.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]=Ly.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?ab(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==``?[]:ab(this,n.split(` `))}this.nodeFromJSON=e=>Ny.fromJSON(this,e),this.markFromJSON=e=>my.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 eb))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 Py(n,n.defaultAttrs,e,my.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 ab(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 ob(e){return e.tag!=null}function sb(e){return e.style!=null}var cb=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(ob(e))this.tags.push(e);else if(sb(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 _b(this,t,!1);return n.addAll(e,my.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new _b(this,t,!0);return n.addAll(e,my.none,t.from,t.to),q.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(yb(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=bb(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=bb(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)))}},lb={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},ub={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},db={ol:!0,ul:!0},fb=1,pb=2,mb=4;function hb(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?fb:0)|(t===`full`?pb:0)}var gb=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=my.none,this.match=i||(a&mb?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(K.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&fb)){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=K.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(K.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&&!lb.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},_b=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=hb(null,t.preserveWhitespace,0)|(n?mb:0);i=r?new gb(r.type,r.attrs,my.none,!0,t.topMatch||r.type.contentMatch,a):n?new gb(null,null,my.none,!0,null,a):new gb(e.schema.topNodeType,null,my.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&pb?`full`:this.localPreserveWS||(r.options&fb)>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;db.hasOwnProperty(a)&&this.parser.normalizeLists&&vb(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:ub.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(lb.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=my.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):xb(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=hb(e,i,a.options);a.options&mb&&a.content.length==0&&(o|=mb);let s=my.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):xb(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new gb(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|=fb);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 vb(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&db.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function yb(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function bb(e){let t={};for(let n in e)t[n]=e[n];return t}function xb(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 Sb=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=wb(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 wb(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Ob(wb(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&&Ob(wb(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Ob(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=Cb(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Cb(e.marks)}};function Cb(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function wb(e){return e.document||window.document}var Tb=new WeakMap;function Eb(e){let t=Tb.get(e);return t===void 0&&Tb.set(e,t=Db(e)),t}function Db(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 Ob(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=Eb(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}=Ob(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var kb=65535,Ab=2**16;function jb(e,t){return e+t*Ab}function Mb(e){return e&kb}function Nb(e){return(e-(e&kb))/Ab}var Pb=1,Fb=2,Ib=4,Lb=8,Rb=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Lb)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Ib)>0}},zb=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=Mb(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+Nb(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:jb(o/3,e-s),f=0;return c&&(f|=e==s?Fb:e==u?Pb:Ib,(t<0?e!=s:e!=u)&&(f|=Lb)),new Rb(a,f,d)}r+=l-c}return n?e+r:new Rb(e+r,0,null)}touches(e,t){let n=0,r=Mb(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])}};zb.empty=new zb([]);var Bb=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 Rb(e,r,null)}},Vb=Object.create(null),Hb=class{getMap(){return zb.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Vb[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Vb)throw RangeError(`Duplicate use of step JSON ID `+e);return Vb[e]=t,t.prototype.jsonID=e,t}},Ub=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 hy)return e.fail(t.message);throw t}}};function Wb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Wb(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return K.fromArray(r)}var Gb=class e extends Hb{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 q(Wb(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 Ub.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(!my.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);qb(Kb,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||qb(e,a,o,r,n)}}}),n.length==1?n[0]:new Jb(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))}};Hb.jsonID(`addMark`,Gb);var Kb=class e extends Hb{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 q(Wb(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Ub.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)&&qb(Gb,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new Jb(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))}};Hb.jsonID(`removeMark`,Kb);function qb(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 Jb=class e extends Hb{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 Ub(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=>Hb.fromJSON(t,e)))}};Hb.jsonID(`markSet`,Jb);var Yb=class e extends Hb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ub.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Ub.fromReplace(e,this.pos,this.pos+1,new q(K.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 Xb(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))}};Hb.jsonID(`addNodeMark`,Yb);var Xb=class e extends Hb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ub.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Ub.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Yb(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))}};Hb.jsonID(`removeNodeMark`,Xb);var Zb=class e extends Hb{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&$b(e,this.from,this.to)?Ub.fail(`Structure replace would overwrite content`):Ub.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new zb([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?q.empty:new q(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?q.empty:new q(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,q.fromJSON(t,n.slice),!!n.structure)}};Zb.MAP_BIAS=1,Hb.jsonID(`replace`,Zb);var Qb=class e extends Hb{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&&($b(e,this.from,this.gapFrom)||$b(e,this.gapTo,this.to)))return Ub.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ub.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Ub.fromReplace(e,this.from,this.to,n):Ub.fail(`Content does not fit in gap`)}getMap(){return new zb([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,q.fromJSON(t,n.slice),n.insert,!!n.structure)}};Hb.jsonID(`replaceAround`,Qb);function $b(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 ex(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)&&qb(Gb,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function tx(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 rb){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 Kb(t.from,t.to,t.style)))}function nx(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 Zb(s,l,q.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Kb(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 q(K.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Zb(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(K.empty,!0);e.replace(s,s,new q(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function rx(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ix(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||!rx(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function ax(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=K.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=K.from(r.node(e).copy(u)),d++):c--;let f=K.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=K.from(i.node(e).copy(f)),p++):l++;e.step(new Qb(c,l,o,s,new q(u.append(f),d,p),u.size-d,!0))}function ox(e,t,n=null,r=e){let i=cx(e,t),a=i&&lx(r,t);return a?i.map(sx).concat({type:t,attrs:n}).concat(a.map(sx)):null}function sx(e){return{type:e,attrs:null}}function cx(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 lx(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 ux(e,t,n){let r=K.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=K.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 q(r,0,0),n.length,!0))}function dx(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)&&mx(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&&px(e,t,n,a),nx(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 q(K.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&fx(e,t,n,a),!1}})}function fx(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 px(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 mx(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function hx(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 q(K.from(o),0,0),1,!0))}function gx(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 _x(e,t,n=1,r){let i=e.doc.resolve(t),a=K.empty,o=K.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=K.from(i.node(e).copy(a));let t=r&&r[s];o=K.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new Zb(t,t,new q(a.append(o),n,n),!0))}function vx(e,t){let n=e.resolve(t),r=n.index();return bx(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function yx(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 bx(e,t){return!!(e&&t&&!e.isLeaf&&yx(e,t))}function xx(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&&bx(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 Sx(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);px(e,r.node(),r.before(),s)}o.inlineContent&&nx(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 Zb(l,c.map(t+n,-1),q.empty,!0)),r===!0){let t=e.doc.resolve(l);fx(e,t.node(),t.before(),e.steps.length)}return e}function Cx(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 wx(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 Tx(e,t,n=t,r=q.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Ex(i,a,r)?new Zb(t,n,r):new Dx(i,a,r).fit()}function Ex(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Dx=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=K.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=K.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 q(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 Zb(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=Ax(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(K.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 Fx(e,-1)<=t?!1:(this.unplaced.size>1&&Fx(e,1)>n&&n++,this.unplaced=new q(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ax(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new q(Ox(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new q(Ox(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(jx(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=kx(this.placed,t,K.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?q.empty:new q(Ox(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new q(Ox(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||!Mx(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=Mx(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Mx(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=kx(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=kx(this.placed,this.depth,K.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(K.empty,!0);e.childCount&&(this.placed=kx(this.placed,this.frontier.length,e))}};function Ox(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Ox(e.firstChild.content,t-1,n)))}function kx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(kx(e.lastChild.content,t-1,n)))}function Ax(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function jx(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,jx(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(K.empty,!0)))),e.copy(r)}function Mx(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&&!Nx(n,a.content,o)?s:null}function Nx(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Px(e){return e.spec.defining||e.spec.definingForContent}function Fx(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 Ix(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Ex(i,a,r))return e.step(new Zb(t,n,r));let o=Bx(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=Px(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 q(Lx(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 Lx(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Lx(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(K.empty,!0))}return e}function Rx(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=Cx(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new q(K.from(r),0,0))}function zx(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=Bx(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 Bx(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 Vx=class e extends Hb{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 Ub.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 Ub.fromReplace(e,this.pos,this.pos+1,new q(K.from(r),0,+!t.isLeaf))}getMap(){return zb.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)}};Hb.jsonID(`attr`,Vx);var Hx=class e extends Hb{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 Ub.ok(n)}getMap(){return zb.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)}};Hb.jsonID(`docAttr`,Hx);var Ux=class extends Error{};Ux=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Ux.prototype=Object.create(Error.prototype),Ux.prototype.constructor=Ux,Ux.prototype.name=`TransformError`;var Wx=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Bb}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Ux(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=q.empty){let r=Tx(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new q(K.from(n),0,0))}delete(e,t){return this.replace(e,t,q.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Ix(this,e,t,n),this}replaceRangeWith(e,t,n){return Rx(this,e,t,n),this}deleteRange(e,t){return zx(this,e,t),this}lift(e,t){return ax(this,e,t),this}join(e,t=1){return Sx(this,e,t),this}wrap(e,t){return ux(this,e,t),this}setBlockType(e,t=e,n,r=null){return dx(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return hx(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Vx(e,t,n)),this}setDocAttribute(e,t){return this.step(new Hx(e,t)),this}addNodeMark(e,t){return this.step(new Yb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof my)t.isInSet(n.marks)&&this.step(new Xb(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new Xb(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 _x(this,e,t,n),this}addMark(e,t,n){return ex(this,e,t,n),this}removeMark(e,t,n){return tx(this,e,t,n),this}clearIncompatible(e,t,n){return nx(this,e,t,n),this}},Gx=Object.create(null),Kx=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new qx(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=q.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?q.empty:t),o==0&&tS(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),tS(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Xx(e):eS(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?eS(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):eS(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 $x(e.node(0))}static atStart(e){return eS(e,e,0,0,1)||new $x(e)}static atEnd(e){return eS(e,e,e.content.size,e.childCount,-1)||new $x(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Gx[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Gx)throw RangeError(`Duplicate use of selection JSON ID `+e);return Gx[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Xx.between(this.$anchor,this.$head).getBookmark()}};Kx.prototype.visible=!0;var qx=class{constructor(e,t){this.$from=e,this.$to=t}},Jx=!1;function Yx(e){!Jx&&!e.parent.inlineContent&&(Jx=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var Xx=class e extends Kx{constructor(e,t=e){Yx(e),Yx(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 Kx.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=q.empty){if(super.replace(e,t),t==q.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 Zx(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=Kx.findFrom(n,r,!0)||Kx.findFrom(n,-r,!0);if(e)n=e.$head;else return Kx.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Kx.findFrom(t,-r,!0)||Kx.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};Kx.jsonID(`text`,Xx);var Zx=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 Xx.between(e.resolve(this.anchor),e.resolve(this.head))}},Qx=class e extends Kx{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?Kx.near(a):new e(a)}content(){return new q(K.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 Iee(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,Kx.jsonID(`node`,Qx);var Iee=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Zx(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Qx.isSelectable(n)?new Qx(t):Kx.near(t)}},$x=class e extends Kx{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=q.empty){if(t==q.empty){e.delete(0,e.doc.content.size);let t=Kx.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 Lee}};Kx.jsonID(`all`,$x);var Lee={map(){return this},resolve(e){return new $x(e)}};function eS(e,t,n,r,i,a=!1){if(t.inlineContent)return Xx.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=eS(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 tS(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Zb||i instanceof Qb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(Kx.near(e.doc.resolve(o),n))}var nS=1,rS=2,iS=4,Ree=class extends Wx{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|nS)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&nS)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=rS,this}ensureMarks(e){return my.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&rS)>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)||my.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(Kx.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|=iS,this}get scrolledIntoView(){return(this.updated&iS)>0}};function aS(e,t){return!t||!e?e:e.bind(t)}var oS=class{constructor(e,t,n){this.name=e,this.init=aS(t.init,n),this.apply=aS(t.apply,n)}},zee=[new oS(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new oS(`selection`,{init(e,t){return e.selection||Kx.atStart(t.doc)},apply(e){return e.selection}}),new oS(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new oS(`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=zee.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 oS(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 Ree(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=Ny.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=Kx.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]}},Bee=o((e=>{var t=Te();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=Bee()})),hS=mS(),gS=Object.defineProperty,Vee=(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},_S=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function vS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var yS=(e,t,n)=>{let r=vS(e,n);if(!r)return!1;let i=CS(r);if(!i){let n=r.blockRange(),i=n&&ix(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(NS(e,i,t,-1))return!0;if(r.parent.content.size==0&&(xS(a,`end`)||Qx.isSelectable(a)))for(let n=r.depth;;n--){let o=Tx(e.doc,r.before(n),r.after(n),q.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(xS(a,`end`)?Kx.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},Hee=(e,t,n)=>{let r=vS(e,n);if(!r)return!1;let i=CS(r);return i?bS(e,i,t):!1},Uee=(e,t,n)=>{let r=wS(e,n);if(!r)return!1;let i=DS(r);return i?bS(e,i,t):!1};function bS(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=Tx(e.doc,i,o,q.empty);if(!s||s.from!=i||s instanceof Zb&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(Xx.create(t.doc,i)),n(t.scrollIntoView())}return!0}function xS(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 SS=(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=CS(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 CS(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 wS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var TS=(e,t,n)=>{let r=wS(e,n);if(!r)return!1;let i=DS(r);if(!i)return!1;let a=i.nodeAfter;if(NS(e,i,t,1))return!0;if(r.parent.content.size==0&&(xS(a,`start`)||Qx.isSelectable(a))){let n=Tx(e.doc,r.before(),r.after(),q.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(xS(a,`start`)?Kx.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},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(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=DS(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 DS(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 Wee=(e,t)=>{let n=e.selection,r=n instanceof Qx,i;if(r){if(n.node.isTextblock||!vx(e.doc,n.from))return!1;i=n.from}else if(i=xx(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},Gee=(e,t)=>{let n=e.selection,r;if(n instanceof Qx){if(n.node.isTextblock||!vx(e.doc,n.to))return!1;r=n.to}else if(r=xx(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Kee=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&ix(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},OS=(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 kS(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 AS=(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=kS(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(Kx.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},jS=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof $x||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=kS(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(Xx.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},MS=(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(gx(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&ix(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function qee(e){return(t,n)=>{if(t.selection instanceof Qx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!gx(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 Xx||t.selection instanceof $x)&&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=kS(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=gx(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,gx(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 Jee=qee(),Yee=(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)},Xee=(e,t)=>(t&&t(e.tr.setSelection(new $x(e.doc))),!0);function Zee(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||vx(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function NS(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&Zee(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=K.empty;for(let e=o.length-1;e>=0;e--)s=K.from(o[e].create(null,s));s=K.from(i.copy(s));let c=e.tr.step(new Qb(t.pos-1,r,t.pos,r,new q(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&vx(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:Kx.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&ix(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&xS(a,`start`,!0)&&xS(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=K.empty;for(let e=o.length-1;e>=0;e--)r=K.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 q(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function PS(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(Xx.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var FS=PS(-1),IS=PS(1);function Qee(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&ox(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function LS(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 RS(...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=RS(_S,yS,SS),BS=RS(_S,TS,ES),VS={Enter:RS(OS,jS,MS,Jee),"Mod-Enter":AS,Backspace:zS,"Mod-Backspace":zS,"Shift-Backspace":zS,Delete:BS,"Mod-Delete":BS,"Mod-a":Xee},$ee={"Ctrl-h":VS.Backspace,"Alt-Backspace":VS[`Mod-Backspace`],"Ctrl-d":VS.Delete,"Ctrl-Alt-Backspace":VS[`Mod-Delete`],"Alt-Delete":VS[`Mod-Delete`],"Alt-d":VS[`Mod-Delete`],"Ctrl-a":FS,"Ctrl-e":IS};for(let e in VS)$ee[e]=VS[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function ete(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 tte(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function tte(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 jy(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new jy(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=ox(a,n,r,t);return s?(e&&nte(e,t,s,i,n),!0):!1}function nte(e,t,n,r,i){let a=K.empty;for(let e=n.length-1;e>=0;e--)a=K.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 q(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&&gx(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function rte(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?ite(t,n,e,a):ate(t,n,a):!0:!1}}function ite(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 q(K.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new jy(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=ix(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return vx(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function ate(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?K.empty:K.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 q((s?K.empty:K.from(i.copy(K.empty))).append(c?K.empty:K.from(i.copy(K.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function ote(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=K.from(r?e.create():null),o=new q(K.from(e.create(null,K.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 HS=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},US=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},WS=null,GS=function(e,t,n){let r=WS||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},ste=function(){WS=null},KS=function(e,t,n,r){return n&&(qS(e,t,n,r,-1)||qS(e,t,n,r,1))},cte=/^(img|br|input|textarea|hr)$/i;function qS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:JS(e))){let n=e.parentNode;if(!n||!YS(n)||tC(e)||cte.test(e.nodeName)||e.contentEditable==`false`)return!1;t=HS(e)+(i<0?0:1),e=n}else if(YS(e)){let n=e.childNodes[t+(i<0?-1:0)];if(YS(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?JS(e):0}else return!1}}function JS(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function YS(e){return e.nodeType==1}function XS(e){return e.nodeType==3}function ZS(e,t){return t?e.contains(YS(t)?t:t.parentNode):!1}function QS(e,t){for(;;){if(XS(e)&&t)return e;if(YS(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=JS(e)}else if(e.parentNode&&!tC(e))t=HS(e),e=e.parentNode;else return null}}function $S(e,t){for(;;){if(XS(e)&&t<e.nodeValue.length)return e;if(YS(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!tC(e))t=HS(e)+1,e=e.parentNode;else return null}}function eC(e,t,n){for(let r=t==0,i=t==JS(e);r||i;){if(e==n)return!0;let t=HS(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==JS(e)}}function tC(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 nC=function(e){return e.focusNode&&KS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function rC(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function iC(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function aC(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(JS(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(JS(r.startContainer),r.startOffset)}}}var oC=typeof navigator<`u`?navigator:null,sC=typeof document<`u`?document:null,cC=oC&&oC.userAgent||``,lC=/Edge\/(\d+)/.exec(cC),uC=/MSIE \d/.exec(cC),dC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(cC),fC=!!(uC||dC||lC),pC=uC?document.documentMode:dC?+dC[1]:lC?+lC[1]:0,mC=!fC&&/gecko\/(\d+)/i.test(cC);mC&&+(/Firefox\/(\d+)/.exec(cC)||[0,0])[1];var hC=!fC&&/Chrome\/(\d+)/.exec(cC),gC=!!hC,_C=hC?+hC[1]:0,vC=!fC&&!!oC&&/Apple Computer/.test(oC.vendor),yC=vC&&(/Mobile\/\w+/.test(cC)||!!oC&&oC.maxTouchPoints>2),bC=yC||(oC?/Mac/.test(oC.platform):!1),xC=oC?/Win/.test(oC.platform):!1,SC=/Android \d/.test(cC),CC=!!sC&&`webkitFontSmoothing`in sC.documentElement.style,wC=CC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function TC(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 EC(e,t){return typeof e==`number`?e:e[t]}function DC(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 OC(e,t,n){if(!UC(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(!YS(o)){o=US(o);continue}let e=o==a.body,n=e?TC(a):DC(o),s=0,c=0;if(t.top<n.top+EC(r,`top`)?c=-(n.top-t.top+EC(i,`top`)):t.bottom>n.bottom-EC(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+EC(i,`top`)-n.top:t.bottom-n.bottom+EC(i,`bottom`)),t.left<n.left+EC(r,`left`)?s=-(n.left-t.left+EC(i,`left`)):t.right>n.right-EC(r,`right`)&&(s=t.right-n.right+EC(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:US(o)}}function kC(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:AC(e.dom)}}function AC(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=US(r));return t}function jC({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;MC(n,r==0?0:r-t)}function MC(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 NC=null;function PC(e){if(e.setActive)return e.setActive();if(NC)return e.focus(NC);let t=AC(e);e.focus(NC==null?{get preventScroll(){return NC={preventScroll:!0},!0}}:void 0),NC||(NC=!1,MC(t,0))}function FC(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(YS(u))e=u.getClientRects();else if(XS(u))e=GS(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&&XS(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,YS(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&&XS(n)?IC(n,i):!n||r?{node:e,offset:a}:FC(n,i)}function IC(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=WC(r,1);if(n.top!=n.bottom&&LC(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function LC(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function RC(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function zC(e,t,n){let{node:r,offset:i}=FC(t,n),a=-1;if(YS(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 BC(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(YS(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 VC(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(YS(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(LC(t,i))return VC(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function HC(e,t){let n=e.dom.ownerDocument,r,i=0,a=aC(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(!LC(t,n)||(o=VC(e.dom,t,n),!o))return null}if(vC)for(let e=o;r&&e;e=US(e))e.draggable&&(r=void 0);if(o=RC(o,t),r){if(mC&&YS(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;CC&&i&&YS(r)&&YS(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&YS(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&YS(r)&&r.childNodes[i-1].nodeName==`BR`||(s=BC(e,r,i,t))}s??=zC(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function UC(e){return e.top<e.bottom||e.left<e.right}function WC(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(UC(e))return e}return Array.prototype.find.call(n,UC)||e.getBoundingClientRect()}var GC=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function KC(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=CC||mC;if(XS(r)){if(o&&(GC.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=WC(GS(r,i,i),n);if(mC&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=WC(GS(r,i-1,i-1),-1);if(t.top==e.top){let n=WC(GS(r,i,i+1),-1);if(n.top!=e.top)return qC(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++,qC(WC(GS(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==JS(r))){let e=r.childNodes[i-1];if(YS(e))return JC(e.getBoundingClientRect(),!1)}if(a==null&&i<JS(r)){let e=r.childNodes[i];if(YS(e))return JC(e.getBoundingClientRect(),!0)}return JC(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==JS(r))){let e=r.childNodes[i-1],t=XS(e)?GS(e,JS(e)-+!o):YS(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return qC(WC(t,1),!1)}if(a==null&&i<JS(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?XS(e)?GS(e,0,+!o):YS(e)?e:null:null;if(t)return qC(WC(t,-1),!0)}return qC(WC(XS(r)?GS(r):r,-n),n>=0)}function qC(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 JC(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 YC(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 XC(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return YC(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=KC(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(YS(e))t=e.getClientRects();else if(XS(e))t=GS(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 ZC=/[\u0590-\u08ac]/;function QC(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?!ZC.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:YC(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&&!ZS(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 $C=null,ew=null,tw=!1;function nw(e,t,n){return $C==t&&ew==n?tw:($C=t,ew=n,tw=n==`up`||n==`down`?XC(e,t,n):QC(e,t,n))}var rw=0,iw=1,aw=2,ow=3,sw=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=rw,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&&ZS(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>HS(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)&&!(YS(a)?ZS(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 mw||e instanceof cw&&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?HS(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?HS(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=HS(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=HS(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(!YS(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((mC||vC)&&e==t){let{node:e,offset:t}=o;if(XS(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:HS(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(mC&&l.focusNode&&l.focusNode!=s.node&&YS(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&vC)&&KS(o.node,o.offset,l.anchorNode,l.anchorOffset)&&KS(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&mC)){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?aw:iw,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?aw:ow}n=a}this.dirty=aw}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?aw:iw;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},cw=class extends sw{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=YS(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==rw&&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}},lw=class extends sw{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}},uw=class e extends sw{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=Sb.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!=rw){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=rw}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=jw(a,n,o,r)),t>0&&(a=jw(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()}},dw=class e extends sw{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(!XS(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=Sb.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=Sw(u,r,n),l?c=new hw(t,n,r,i,u,d||null,f,l):n.isText?new pw(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=>YS(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>K.empty}}return t}matchesNode(e,t,n){return this.dirty==rw&&e.eq(this.node)&&Cw(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 Tw(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;Ow(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?my.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==aw)&&(a&&this.protectLocalComposition(e,a),gw(this.contentDOM,this.children,e),yC&&kw(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Xx)||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=Aw(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 lw(this,i,t,r);e.input.compositionNodes.push(a),this.children=jw(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=rw}updateOuterDeco(e){if(Cw(e,this.outerDeco))return;let t=!YS(this.nodeDOM),n=this.dom;this.dom=bw(this.dom,this.nodeDOM,yw(this.outerDeco,this.node,t),yw(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){YS(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){YS(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){Sw(r,t,e);let a=new dw(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var pw=class e extends dw{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!=rw&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=rw||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=rw,!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}},mw=class extends sw{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==rw&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},hw=class extends dw{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 gw(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=ww(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof uw){let t=r?r.previousSibling:e.lastChild;gw(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ww(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var _w=function(e){e&&(this.nodeName=e)};_w.prototype=Object.create(null);var vw=[new _w];function yw(e,t,n){if(e.length==0)return vw;let r=n?vw[0]:new _w,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new _w(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new _w(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 bw(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}xw(i,o||vw[0],a)}return i}function xw(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 Sw(e,t,n){return bw(e,e,vw,yw(t,n,!YS(e)))}function Cw(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 ww(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Tw=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Ew(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=rw,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 uw&&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=uw.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=aw),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 dw){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&&Cw(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=aw,u.updateChildren(r,a+1),u.dirty=rw),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)||!Cw(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=dw.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=dw.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 cw(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 uw;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof pw)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((vC||gC)&&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 mw(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||YS(e)&&e.contains(this.lock.parentNode))}};function Ew(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 uw)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 Dw(e,t){return e.type.side-t.type.side}function Ow(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(Dw);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 kw(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 Aw(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 jw(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 Mw(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(nC(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Qx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&eC(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Qx(o==e?s:r.resolve(e))}else if(mC&&t==`key`&&o>e.state.selection.to&&YS(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=Kx.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!YS(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=Uw(e,u,s,n)}return l}function Nw(e){return e.editable?e.hasFocus():Gw(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Pw(e,t=!1){let n=e.state.selection;if(Vw(e,n),!Nw(e))return;let r=e.input.mouseDown;if(!t&&gC&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&KS(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Bw(e);else{let{anchor:r,head:i}=n,a,o;Fw&&!(n instanceof Xx)&&(n.$from.parent.inlineContent||(a=Iw(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=Iw(e,n.to))),e.docView.setSelection(r,i,e,t),Fw&&(a&&Rw(a),o&&Rw(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&zw(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var Fw=vC||gC&&_C<63;function Iw(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 Lw(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return Lw(i);if(a)return Lw(a)}}function Lw(e){return e.contentEditable=`true`,vC&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Rw(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function zw(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(()=>{(!Nw(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function Bw(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,HS(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&fC&&pC<=11&&(n.disabled=!0,n.disabled=!1)}function Vw(e,t){if(t instanceof Qx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Hw(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Hw(e)}function Hw(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function Uw(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||Xx.between(t,n,r)}function Ww(e){return e.editable&&!e.hasFocus()?!1:Gw(e)}function Gw(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return ZS(e.dom,t.anchorNode)&&(e.editable||ZS(e.dom,t.focusNode))}catch{return!1}}function Kw(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return KS(t.node,t.offset,n.anchorNode,n.anchorOffset)}function qw(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&&Kx.findFrom(a,t)}function Jw(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Yw(e,t,n){let r=e.state.selection;if(r instanceof Xx){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 Jw(e,new Xx(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=qw(e.state,t);return n&&n instanceof Qx?Jw(e,n):!1}if(!bC||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)?Jw(e,new Qx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):Jw(e,new Xx(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof Qx&&r.node.isInline)return Jw(e,new Xx(t>0?r.$to:r.$from));else{let n=qw(e.state,t);return n?Jw(e,n):!1}}function Xw(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):YS(e)&&e.contentEditable==`false`}function Zw(e,t){return t<0?Qw(e):$w(e)}function Qw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(mC&&YS(n)&&r<JS(n)&&Xw(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!YS(n))break;let e=n.childNodes[r-1];if(Xw(e,-1))i=n,a=--r;else if(XS(e))n=e,r=n.nodeValue.length;else break}else if(eT(n))break;else{let t=n.previousSibling;for(;t&&Xw(t,-1);)i=n.parentNode,a=HS(t),t=t.previousSibling;if(t)n=t,r=JS(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?rT(e,n,r):i&&rT(e,i,a)}function $w(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=JS(n),a,o;for(;;)if(r<i){if(!YS(n))break;let e=n.childNodes[r];if(Xw(e,1))a=n,o=++r;else break}else if(eT(n))break;else{let t=n.nextSibling;for(;t&&Xw(t,1);)a=t.parentNode,o=HS(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=JS(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&rT(e,a,o)}function eT(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function tT(e,t){for(;e&&t==e.childNodes.length&&!tC(e);)t=HS(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(XS(n))return n;if(YS(n)&&n.contentEditable==`false`)break;e=n,t=0}}function nT(e,t){for(;e&&!t&&!tC(e);)t=HS(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(XS(n))return n;if(YS(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function rT(e,t,n){if(!XS(t)){let e,r;(r=tT(t,n))?(t=r,n=0):(e=nT(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;nC(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&&Pw(e)},50)}function iT(e,t){let n=e.state.doc.resolve(t);if(!(gC||xC)&&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 aT(e,t,n){let r=e.state.selection;if(r instanceof Xx&&!r.empty||n.indexOf(`s`)>-1||bC&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=qw(e.state,t);if(n&&n instanceof Qx)return Jw(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof $x?Kx.near(n,t):Kx.findFrom(n,t);return o?Jw(e,o):!1}return!1}function oT(e,t){if(!(e.state.selection instanceof Xx))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 sT(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function cT(e){if(!vC||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&YS(t)&&n==0&&t.firstChild&&YS(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;sT(e,n,`true`),setTimeout(()=>sT(e,n,`false`),20)}return!1}function lT(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function uT(e,t){let n=t.keyCode,r=lT(t);if(n==8||bC&&n==72&&r==`c`)return oT(e,-1)||Zw(e,-1);if(n==46&&!t.shiftKey||bC&&n==68&&r==`c`)return oT(e,1)||Zw(e,1);if(n==13||n==27)return!0;if(n==37||bC&&n==66&&r==`c`){let t=n==37?iT(e,e.state.selection.from)==`ltr`?-1:1:-1;return Yw(e,t,r)||Zw(e,t)}if(n==39||bC&&n==70&&r==`c`){let t=n==39?iT(e,e.state.selection.from)==`ltr`?1:-1:1;return Yw(e,t,r)||Zw(e,t)}return n==38||bC&&n==80&&r==`c`?aT(e,-1,r)||Zw(e,-1):n==40||bC&&n==78&&r==`c`?cT(e)||aT(e,1,r)||Zw(e,1):!(r!=(bC?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function dT(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`)||Sb.fromSchema(e.state.schema),s=xT(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&YS(l)&&(u=bT[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&&YS(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 q(K.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=Sb.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=wT(n),CC&&TT(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&&!YS(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||cb.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!pT.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=ET(yT(s,+u[1],+u[2]),u[4]);else if(s=q.maxOpen(mT(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=yT(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var pT=/^(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 mT(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&&gT(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=_T(a[a.length-1],i.length));let n=hT(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return K.from(a)}return e}function hT(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,K.from(e));return e}function gT(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=gT(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(K.from(hT(n,e,i+1))))}}function _T(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,_T(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(K.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(K.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function yT(e,t,n){return t<e.openStart&&(e=new q(vT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new q(vT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var bT={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 xT(){return document.implementation.createHTMLDocument(`title`)}var ST=null;function CT(e){let t=window.trustedTypes;if(!t)return e;if(!ST){if(ST=t.defaultPolicy)try{return ST.createHTML(e)}catch{}ST=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return ST.createHTML(e)}function wT(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=xT(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&bT[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=CT(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 TT(e){let t=e.querySelectorAll(gC?`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 ET(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=K.from(t.create(r[e+1],i))}catch{break}a++,o++}return new q(i,a,o)}var DT={},OT={},kT={touchstart:!0,touchmove:!0},AT=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 jT(e){for(let t in DT){let n=DT[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{IT(e,t)&&!FT(e,t)&&(e.editable||!(t.type in OT))&&n(e,t)},kT[t]?{passive:!0}:void 0)}vC&&e.dom.addEventListener(`input`,()=>null),PT(e)}function MT(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function NT(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 PT(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>FT(e,t))})}function FT(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function IT(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 LT(e,t){!FT(e,t)&&DT[t.type]&&(e.editable||!(t.type in OT))&&DT[t.type](e,t)}OT.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!eE(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(SC&&gC&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),yC&&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,rC(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||uT(e,n)?n.preventDefault():MT(e,`key`)}},OT.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},OT.keypress=(e,t)=>{let n=t;if(eE(e)||!n.charCode||n.ctrlKey&&!n.altKey||bC&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Xx)||!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 RT(e){return{left:e.clientX,top:e.clientY}}function zT(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function BT(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 VT(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 HT(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Qx.isSelectable(r)?(VT(e,new Qx(n)),!0):!1}function UT(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&&(VT(e,Qx.create(e.state.doc,i)),!0)}function WT(e,t,n,r,i){return BT(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?UT(e,n):HT(e,n))}function GT(e,t,n,r){return BT(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function KT(e,t,n,r){return BT(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||qT(e,n,r)}function qT(e,t,n){if(n.button!=0)return!1;let r=JT(e,t,!0),i=e.state.doc;return r?(VT(e,r),r instanceof Xx&&i.eq(e.state.doc)&&(e.input.mouseDown=new $T(e,r)),!0):!1}function JT(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?Xx.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 Xx.create(r,a+1,a+1+t.content.size);if(n&&Qx.isSelectable(t))return Qx.create(r,a)}return null}function YT(e){return oE(e)}var XT=bC?`metaKey`:`ctrlKey`;DT.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=YT(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&zT(n,e.input.lastClick)&&!n[XT]&&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(RT(n));o&&(a==`singleClick`?e.input.mouseDown=new QT(e,o,n,!!r):(a==`doubleClick`?GT:KT)(e,o.pos,o.inside,n)?n.preventDefault():MT(e,`pointer`))};var ZT=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}},QT=class extends ZT{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[XT],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&&YS(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&&mC&&!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()),MT(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||Pw(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(RT(e))),this.updateAllowDefault(e),this.allowDefault||!t?MT(this.view,`pointer`):WT(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||vC&&this.mightDrag&&!this.mightDrag.node.isAtom||gC&&!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)?(VT(this.view,Kx.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):MT(this.view,`pointer`)}move(e){this.updateAllowDefault(e),MT(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}},$T=class extends ZT{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(),MT(this.view,`pointer`);let t=this.view.posAtCoords(RT(e)),n=t&&JT(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];VT(this.view,Xx.create(r,a,o))}};DT.touchstart=e=>{e.input.lastTouch=Date.now(),YT(e),MT(e,`pointer`)},DT.touchmove=e=>{e.input.lastTouch=Date.now(),MT(e,`pointer`)},DT.contextmenu=e=>YT(e);function eE(e,t){return e.composing?!0:vC&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var tE=SC?5e3:-1;OT.compositionstart=OT.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Xx&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||gC&&xC&&nE(e)))e.markCursor=e.state.storedMarks||n.marks(),oE(e,!0),e.markCursor=null;else if(oE(e,!t.selection.empty),mC&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&YS(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(XS(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}rE(e,tE)};function nE(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!YS(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return YS(r)&&r.contentEditable==`false`}OT.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++,rE(e,20))};function rE(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>oE(e),t))}function iE(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function aE(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=QS(t.focusNode,t.focusOffset),r=$S(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(!(SC&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),iE(e),t||e.docView&&e.docView.dirty){let n=Mw(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 sE(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 cE=fC&&pC<15||yC&&wC<604;DT.copy=OT.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=cE?null:n.clipboardData,{dom:o,text:s}=dT(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):sE(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function lE(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function uE(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?dE(e,r.value,null,i,t):dE(e,r.textContent,r.innerHTML,i,t)},50)}function dE(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||q.empty)))return!0;if(!a)return!1;let o=lE(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,` `):``}OT.paste=(e,t)=>{let n=t;if(e.composing&&!SC)return;let r=cE?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&dE(e,fE(r),r.getData(`text/html`),i,n)?n.preventDefault():uE(e,n)};var pE=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},mE=bC?`altKey`:`ctrlKey`;function hE(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[mE]:!n}DT.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(RT(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&&YS(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}=dT(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!gC||_C>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(cE?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,cE||n.dataTransfer.setData(`text/plain`,c),e.dragging=new pE(l,hE(e,n),o)},DT.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},OT.dragover=OT.dragenter=(e,t)=>t.preventDefault(),OT.drop=(e,t)=>{try{gE(e,t,e.dragging)}finally{e.dragging=null}};function gE(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(RT(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),cE?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&hE(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||q.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?wx(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(Uw(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}DT.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())&&Pw(e)},20))},DT.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)},DT.beforeinput=(e,t)=>{if(SC&&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,rC(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 OT)DT[e]=OT[e];function _E(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}},yE=class e{constructor(e,t){this.toDOM=e,this.spec=t||wE,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 SE(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&&_E(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},bE=class e{constructor(e,t){this.attrs=e,this.spec=t||wE}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 SE(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&_E(this.attrs,t.attrs)&&_E(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},xE=class e{constructor(e,t){this.attrs=e,this.spec=t||wE}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 SE(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&&_E(this.attrs,t.attrs)&&_E(this.spec,t.spec)}destroy(){}},SE=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 yE(n,r))}static inline(t,n,r,i){return new e(t,n,new bE(r,i))}static node(t,n,r,i){return new e(t,n,new xE(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof bE}get widget(){return this.type instanceof yE}},CE=[],wE={},TE=class e{constructor(e,t){this.local=e.length?e:CE,this.children=t.length?t:CE}static create(e,t){return t.length?NE(t,e,0,wE):EE}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==EE||e.maps.length==0?this:this.mapInner(e,t,0,0,n||wE)}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?OE(this.children,o||[],t,n,r,i,a):o?new e(o.sort(PE),CE):EE}add(t,n){return n.length?this==EE?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=jE(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,NE(s,e,o+1,wE)),a+=3}});let o=kE(a?ME(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(PE):this.local,i||this.children)}remove(e){return e.length==0||this==EE?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==EE?(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):EE}forChild(t,n){if(this==EE)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 bE){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(PE),CE);return r?new DE([t,r]):t}return r||EE}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 FE(this.localsInner(e))}localsInner(e){if(this==EE)return CE;if(e.inlineContent||!this.local.some(bE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof bE||t.push(this.local[e]);return t}forEachSet(e){e(this)}};TE.empty=new TE([],[]),TE.removeOverlap=FE;var EE=TE.empty,DE=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,wE));return e.from(r)}forChild(t,n){if(n.isLeaf)return TE.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=EE&&(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?FE(n?t:t.sort(PE)):CE}static from(t){switch(t.length){case 0:return EE;case 1:return t[0];default:return new e(t.every(e=>e instanceof TE)?t:t.reduce((e,t)=>e.concat(t instanceof TE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function OE(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==EE?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=NE(AE(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 TE(t.sort(PE),s)}function kE(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 SE(i.from+t,i.to+t,i.type))}return n}function AE(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 jE(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 ME(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function NE(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=jE(e,t,o+n);if(s){a=!0;let e=NE(s,t,n+o+1,r);e!=EE&&i.push(o,o+t.nodeSize,e)}});let o=kE(a?ME(e):e,-n).sort(PE);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 TE(o,i):EE}function PE(e,t){return e.from-t.from||e.to-t.to}function FE(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),IE(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),IE(t,i,r.copy(a.from,r.to)));break}}}return t}function IE(e,t,n){for(;t<e.length&&PE(n,e[t])>0;)t++;e.splice(t,0,n)}function LE(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=EE&&t.push(r)}),e.cursorWrapper&&t.push(TE.create(e.state.doc,[e.cursorWrapper.deco])),DE.from(t)}var RE={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},zE=fC&&pC<=11,BE=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}},VE=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new BE,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&&pC<=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()}),zE&&(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,RE)),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(Ww(this.view)){if(this.suppressingSelectionUpdates)return Pw(this.view);if(fC&&pC<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&KS(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=US(n))t.add(n);for(let r=e.anchorNode;r;r=US(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:XS(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&&Ww(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||gC&&(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&&YS(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(mC&&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||qE(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&&nC(n)&&(c=Mw(e))&&c.eq(Kx.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Pw(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),WE(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,JE(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&Pw(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),XS(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&&pC<=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?HS(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?HS(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})}},HE=new WeakMap,UE=!1;function WE(e){if(!HE.has(e)&&(HE.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=mC,UE)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.`),UE=!0}}function GE(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return KS(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function KE(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return GE(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?GE(e,n):null}function qE(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 JE(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||!YS(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 YE(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&&ZS(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],nC(l)||u.push({node:l.focusNode,offset:l.focusOffset})),gC&&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`)||cb.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:XE(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 XE=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},ZE=/^(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 QE(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=Mw(e,t);if(n&&!e.state.selection.eq(n)){if(gC&&SC&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,rC(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=YE(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=ute(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(yC&&e.input.lastIOSEnter>Date.now()-225||SC)&&i.some(e=>YS(e)&&!ZE.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,rC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof Xx&&!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=$E(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 Xx&&(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&&pC<=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((yC&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&lte(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,rC(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:tD(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,rC(8,`Backspace`)))){SC&&gC&&e.domObserver.suppressSelectionUpdates();return}gC&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),SC&&!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,rC(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=$E(e,n.doc,l.sel);t&&!(gC&&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&&pC<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Pw(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=eD(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 $E(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Uw(e,t.resolve(n.anchor),t.resolve(n.head))}function eD(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(K.from(l).eq(e))return{mark:s,type:o}}function tD(e,t,n,r,i){if(n-t<=i.pos-r.pos||nD(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(nD(a,!0,!0));return!o.parent.isTextblock||o.pos>n||nD(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function lte(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 nD(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 ute(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 rD=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 AT,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(cD),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=oD(this),aD(this),this.nodeViews=sD(this),this.docView=fw(this.state.doc,iD(this),LE(this),this.dom,this),this.domObserver=new VE(this,(e,t,n,r)=>QE(this,e,t,n,r)),this.domObserver.start(),jT(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&&PT(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(cD),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&&(iE(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=sD(this);fte(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&PT(this),this.editable=oD(this),aD(this);let o=LE(this),s=iD(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&&kC(this);if(i){this.domObserver.stop();let t=l&&(fC||gC)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&dte(n.selection,e.selection);if(l){let n=gC?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=aE(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())&&Kw(this)&&i.delaySelUpdate())?Pw(this,t):(Vw(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&&jC(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&ZS(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof Qx){let t=this.docView.domAfterPos(this.state.selection.from);YS(t)&&OC(this,t.getBoundingClientRect(),e)}else OC(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 pE(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(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&&PC(this.dom),Pw(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 HC(this,e)}coordsAtPos(e,t=1){return KC(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 nw(this,t||this.state,e)}pasteHTML(e,t){return dE(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return dE(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return dT(this,e)}destroy(){this.docView&&(NT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],LE(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ste())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return LT(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?vC&&this.root.nodeType===11&&iC(this.dom.ownerDocument)==this.dom&&KE(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};rD.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function iD(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`,[SE.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:SE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function oD(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function dte(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 sD(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 fte(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 cD(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 lD={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:`'`},uD={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},pte=typeof navigator<`u`&&/Mac/.test(navigator.platform),mte=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),dD=0;dD<10;dD++)lD[48+dD]=lD[96+dD]=String(dD);for(var dD=1;dD<=24;dD++)lD[dD+111]=`F`+dD;for(var dD=65;dD<=90;dD++)lD[dD]=String.fromCharCode(dD+32),uD[dD]=String.fromCharCode(dD);for(var fD in lD)uD.hasOwnProperty(fD)||(uD[fD]=lD[fD]);function hte(e){var t=!(pte&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||mte&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?uD:lD)[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 gte=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),_te=typeof navigator<`u`&&/Win/.test(navigator.platform);function vte(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))gte?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 yte(e){let t=Object.create(null);for(let n in e)t[vte(n)]=e[n];return t}function pD(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 bte(e){return new uS({props:{handleKeyDown:mD(e)}})}function mD(e){let t=yte(e);return function(e,n){let r=hte(n),i,a=t[pD(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[pD(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(_te&&n.ctrlKey&&n.altKey)&&(i=lD[n.keyCode])&&i!=r){let r=t[pD(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var hD=200,gD=function(){};gD.prototype.append=function(e){return e.length?(e=gD.from(e),!this.length&&e||e.length<hD&&this.leafAppend(e)||this.length<hD&&e.leafPrepend(this)||this.appendInner(e)):this},gD.prototype.prepend=function(e){return e.length?gD.from(e).append(this):this},gD.prototype.appendInner=function(e){return new xte(this,e)},gD.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?gD.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},gD.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},gD.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)},gD.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},gD.from=function(e){return e instanceof gD?e:e&&e.length?new _D(e):gD.empty};var _D=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<=hD)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=hD)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}(gD);gD.empty=new _D([]);var xte=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}(gD),Ste=500,vD=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 yD(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 yD(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 yD(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>wte&&(s=Cte(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new Bb;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 yD(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 yD(i,o,l))}else r.push(new yD(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new yD(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>Ste&&(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 yD(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(gD.from(i.reverse()),a)}};vD.empty=new vD(gD.empty,0);function Cte(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var yD=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)}}},bD=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},wte=20;function Tte(e,t,n,r){let i=n.getMeta(DD),a;if(i)return i.historyState;n.getMeta(OD)&&(e=new bD(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(DD))return o.getMeta(DD).redo?new bD(e.done.addTransform(n,void 0,r,TD(t)),e.undone,xD(n.mapping.maps),e.prevTime,e.prevComposition):new bD(e.done,e.undone.addTransform(n,void 0,r,TD(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||!Ete(n,e.prevRanges)),s=o?SD(e.prevRanges,n.mapping):xD(n.mapping.maps);return new bD(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,TD(t)),vD.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new bD(e.done.rebased(n,a),e.undone.rebased(n,a),SD(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new bD(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),SD(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Ete(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 xD(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 SD(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 Dte(e,t,n){let r=TD(t),i=DD.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 bD(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(DD,{redo:n,historyState:c})}var CD=!1,wD=null;function TD(e){let t=e.plugins;if(wD!=t){CD=!1,wD=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){CD=!0;break}}return CD}function ED(e){return e.setMeta(OD,!0)}var DD=new pS(`history`),OD=new pS(`closeHistory`);function Ote(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new uS({key:DD,state:{init(){return new bD(vD.empty,vD.empty,null,0,-1)},apply(t,n,r){return Tte(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?AD:n==`historyRedo`?jD:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function kD(e,t){return(n,r)=>{let i=DD.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=Dte(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var AD=kD(!1,!0),jD=kD(!0,!0);function kte(e){return e.getMeta(DD)!=null}function MD(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 ND=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:MD({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}},Ate=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),jte=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),Mte=()=>({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=ix(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},Nte=e=>t=>e(t),Pte=()=>({state:e,dispatch:t})=>jS(e,t),Fte=(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 Xx(r.doc.resolve(Math.max(o-1,0)))),!0},Ite=()=>({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 PD(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 Lte=e=>({tr:t,state:n,dispatch:r})=>{let i=PD(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},Rte=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},zte=e=>e.content?/^text(\*|\+)/.test(e.content):!1,FD=(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 zte(r)?n===`left`?e.start()-1:e.end()+1:e.pos},Bte=(e,t,n)=>({from:FD(e,n,`left`),to:FD(t,n,`right`)}),Vte=()=>({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}=Bte(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(Xx.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},Hte=()=>({commands:e})=>e.keyboardShortcut(`Enter`),Ute=()=>({state:e,dispatch:t})=>AS(e,t);function ID(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function LD(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:ID(t[r])?t[r].test(e[r]):t[r]===e[r])}function RD(e,t,n={}){return e.find(e=>e.type===t&&LD(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function zD(e,t,n={}){return!!RD(e,t,n)}function BD(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(!RD([...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&&zD([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&zD([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function VD(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 Wte=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=VD(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=BD(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=Xx.create(o,e.from,e.to);n.setSelection(t)}}return!0},Gte=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 HD(e){return e instanceof Xx}function UD(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function WD(e,t=null){if(!t)return null;let n=Kx.atStart(e),r=Kx.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?Xx.create(e,UD(0,i,a),UD(e.content.size,i,a)):Xx.create(e,UD(t,i,a),UD(t,i,a))}function GD(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function KD(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function Kte(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var qte=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(KD()||GD())&&r.dom.focus(),Kte()&&!KD()&&!GD()&&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&&!HD(n.state.selection))return o(),!0;let s=WD(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},Jte=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),Yte=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),qD=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&&qD(r)}return e};function JD(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 qD(n)}function YD(e){return typeof e?.nodesBetween==`function`}function XD(e,t,n){if(YD(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 K.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),XD(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new ib({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?cb.fromSchema(a).parseSlice(JD(e),n.parseOptions):cb.fromSchema(a).parse(JD(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=cb.fromSchema(t);return n.slice?r.parseSlice(JD(e),n.parseOptions).content:r.parse(JD(e),n.parseOptions)}return XD(``,t,n)}function ZD(e){return!(`type`in e)}function QD(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Zb||i instanceof Qb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Kx.near(e.doc.resolve(o),n))}var Xte=(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{XD(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=XD(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=ZD(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(``):YD(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=K.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&&QD(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 $D(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 Zte=(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=$D(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=XD(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&QD(t,t.steps.length-1,-1)),!0):!1},Qte=()=>({state:e,dispatch:t})=>Wee(e,t),$te=()=>({state:e,dispatch:t})=>Gee(e,t),ene=()=>({state:e,dispatch:t})=>yS(e,t),tne=()=>({state:e,dispatch:t})=>TS(e,t),eO=(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},nne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=xx(e.doc,e.selection.$from.pos,-1);return r==null||!eO(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},rne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=xx(e.doc,e.selection.$from.pos,1);return r==null||!eO(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},ine=()=>({state:e,dispatch:t})=>Hee(e,t),ane=()=>({state:e,dispatch:t})=>Uee(e,t);function tO(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function one(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))KD()||tO()?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 sne=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=one(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 nO(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?PD(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=>LD(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var cne=(e,t={})=>({state:n,dispatch:r})=>nO(n,PD(e,n.schema),t)?Kee(n,r):!1,lne=()=>({state:e,dispatch:t})=>MS(e,t),une=e=>({state:t,dispatch:n})=>rte(PD(e,t.schema))(t,n),dne=()=>({state:e,dispatch:t})=>OS(e,t);function rO(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function iO(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 fne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=rO(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=PD(e,r.schema)),s===`mark`&&(o=VD(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,iO(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(iO(a.attrs,t))))})})}),c},pne=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),mne=()=>({tr:e,dispatch:t})=>{if(t){let t=new $x(e.doc);e.setSelection(t)}return!0},hne=()=>({state:e,dispatch:t})=>SS(e,t),gne=()=>({state:e,dispatch:t})=>ES(e,t),aO=()=>({state:e,dispatch:t})=>Yee(e,t),_ne=()=>({state:e,dispatch:t})=>IS(e,t),oO=()=>({state:e,dispatch:t})=>FS(e,t);function sO(e,t,n={},r={}){return XD(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var cO=(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=sO(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=ZD(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 lO(e,t){let n=VD(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 uO(e,t){let n=new Wx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function dO(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function fO(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 pO(e){return t=>fO(t.$from,e)}function mO(e,t,n){return e.config[t]===void 0&&e.parent?mO(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?mO(e.parent,t,n):null}):e.config[t]}function hO(e){return e.map(e=>{let t=mO(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...hO(t())]:e}).flat(10)}function gO(e,t){let n=Sb.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function _O(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 vO={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`},yO={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function bO(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 xO(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...bO(n,r,e),attrs:n.attrs}}function SO(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 CO(e,t){SO(e.nodes,t.nodes,`node`),SO(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,xO(t,e.nodes[t],r,vO))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,xO(t,e.marks[t],n,yO))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function wO(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function TO(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function EO(e){let t=[],{nodeExtensions:n,markExtensions:r}=TO(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=mO(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=mO(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 DO(e){return typeof e==`function`}function OO(e,t=void 0,...n){return DO(e)?t?e.bind(t)(...n):e(...n):e}function kO(e={}){return Object.keys(e).length===0&&e.constructor===Object}function AO(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 jO(e){let t=[],n=AO(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 MO(...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([...jO(n[e]),...jO(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function NO(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)=>MO(e,t),{})}function vne(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function PO(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):vne(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function FO(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&kO(t)?!1:t!=null))}function IO(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 LO(e,t,n=EO(e)){let{nodeExtensions:r,markExtensions:i}=TO(e);return{topNode:r.find(e=>mO(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=FO({...e.reduce((e,t)=>{let n=mO(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:OO(mO(r,`content`,a)),marks:OO(mO(r,`marks`,a)),group:OO(mO(r,`group`,a)),inline:OO(mO(r,`inline`,a)),atom:OO(mO(r,`atom`,a)),selectable:OO(mO(r,`selectable`,a)),draggable:OO(mO(r,`draggable`,a)),code:OO(mO(r,`code`,a)),whitespace:OO(mO(r,`whitespace`,a)),linebreakReplacement:OO(mO(r,`linebreakReplacement`,a)),defining:OO(mO(r,`defining`,a)),isolating:OO(mO(r,`isolating`,a)),attrs:Object.fromEntries(i.map(IO))}),s=OO(mO(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>PO(e,i)));let c=mO(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:NO(e,i)}));let l=mO(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=FO({...e.reduce((e,t)=>{let n=mO(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:OO(mO(r,`inclusive`,a)),excludes:OO(mO(r,`excludes`,a)),group:OO(mO(r,`group`,a)),spanning:OO(mO(r,`spanning`,a)),code:OO(mO(r,`code`,a)),attrs:Object.fromEntries(i.map(IO))}),s=OO(mO(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>PO(e,i)));let c=mO(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:NO(e,i)})),[r.name,o]}))}}function RO(e,t,n){if(n===void 0)return new ib(LO(e,t));let r=wO(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new ib(n);return new ib(CO(LO(e,t,_O(EO(e),i)),i))}function zO(e){return e.sort((e,t)=>{let n=mO(e,`priority`)||100,r=mO(t,`priority`)||100;return n>r?-1:+(n<r)})}function BO(e){let t=zO(hO(e)),n=wO(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 VO(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 HO(e,t){return VO(e,{from:0,to:e.content.size},t)}function UO(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function WO(e,t){let n=PD(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 GO(e,t){let n=rO(typeof t==`string`?t:t.name,e.schema);return n===`node`?WO(e,t):n===`mark`?lO(e,t):{}}function KO(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 qO(e){let t=KO(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 JO(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}})})}),qO(r)}function YO(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=BD(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 XO=(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]},ZO=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 QO(e,t){return t.nodes[e]||t.marks[e]||null}function $O(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 ek=(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 tk(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?VD(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>LD(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=>LD(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 nk(e,t,n={}){if(!t)return nO(e,null,n)||tk(e,null,n);let r=rO(t,e.schema);return r===`node`?nO(e,t,n):r===`mark`&&tk(e,t,n)}var rk=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=pO(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)},ik=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function ak(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function ok(e,t){let{nodeExtensions:n}=TO(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=OO(mO(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function sk(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&&(sk(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function ck(e){return e instanceof Qx}function lk(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 uk(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!lk(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var dk=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function fk(e,t){let n=t.mapping.mapResult(e.position);return{position:new dk(n.pos),mapResult:n}}function pk(e){return new dk(e)}function mk(e,t,n){let r=e.state.doc.content.size,i=UD(t,0,r),a=UD(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 hk(e,t,n){let{selection:r}=t,i=null;if(HD(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 gk=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=VD(e,r.schema);if(i){if(o){let e=lO(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 hk(r,n,c)},yne=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),bne=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=PD(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>LS(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>LS(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},xne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=UD(e,0,n.content.size),i=Qx.create(n,r);t.setSelection(i)}return!0},Sne=(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},Cne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=Xx.atStart(n).from,o=Xx.atEnd(n).to,s=UD(r,a,o),c=UD(i,a,o),l=Xx.create(n,s,c);t.setSelection(l)}return!0},wne=e=>({state:t,dispatch:n})=>ote(PD(e,t.schema))(t,n);function _k(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 Tne=({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=$O(l,s.node().type.name,s.node().attrs);if(a instanceof Qx&&a.node.isBlock)return!s.parentOffset||!gx(o,s.pos)?!1:(r&&(e&&_k(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:$D(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof Xx&&!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,_=gx(h,g,1,p);if(!p&&!_&&gx(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 Xx&&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&&_k(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},Ene=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=PD(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=K.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=K.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={...$O(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(K.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new q(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(Xx.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...$O(d,u.type.name,u.attrs),...t},m={...$O(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(!gx(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 vk(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function yk(e,t){if(e.pendingContent.length===0)return!0;let n=vk(t,K.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function Dne(e,t,n){return n.validContent(K.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!yk(t,n)||!n.validContent(K.from(e))?!1:(t.pendingContent.push(e),!0)}function One(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=vk(n.listType,K.from(i),e.attrs);return a?n.itemType.validContent(K.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):yk(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function kne(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)?One(a,r,t,n):Dne(a,r,t.itemType)))return null}return yk(r,t.itemType)?r.items:null}function bk(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=kne(e.child(r),t,bk);if(!i)return null;n.push(...i)}return n}function xk(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function Sk(e){return!e||e===`1`?null:e}function Ck(e,t){return Sk(e)===Sk(t)}var wk=(e,t)=>{let n=pO(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&&vx(e.doc,n.pos))||!Ck(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},Tk=(e,t)=>{let n=pO(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&&vx(e.doc,r))||!Ck(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function Ek(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return Xx.between(r,i)}var Dk=(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=PD(e,o.schema),m=PD(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=pO(e=>ok(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&&ok(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=Ek(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(ok(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>wk(a,p)).command(()=>Tk(a,p)).run();if(ok(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=bk(E.node,{listType:p,itemType:m,isListNode:e=>ok(e.type.name,d)}),t=e?K.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=xk(l,i),t=xk(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(Xx.create(a.doc,n,r))}}return!0}).command(()=>wk(a,p)).command(()=>Tk(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>wk(a,p)).command(()=>Tk(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(()=>wk(a,p)).command(()=>Tk(a,p)).run()},Ok=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=VD(e,r.schema);return tk(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},kk=(e,t,n={})=>({state:r,commands:i})=>{let a=PD(e,r.schema),o=PD(t,r.schema),s=nO(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})},Ak=(e,t={})=>({state:n,commands:r})=>{let i=PD(e,n.schema);return nO(n,i,t)?r.lift(i):r.wrapIn(i,t)},jk=()=>({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},Mk=(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},Nk=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=VD(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=BD(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},Pk=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},Fk=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=rO(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=PD(e,r.schema)),s===`mark`&&(o=VD(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},Ik=new pS(`__tiptap_decorations__`),Lk=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(Ik,{type:`force`,name:e}),!0),Rk=(e,t={})=>({state:n,dispatch:r})=>Qee(PD(e,n.schema),t)(n,r),zk=(e,t={})=>({state:n,dispatch:r})=>ete(PD(e,n.schema),t)(n,r),Bk=Vee({blur:()=>Ate,clearContent:()=>jte,clearNodes:()=>Mte,command:()=>Nte,createParagraphNear:()=>Pte,cut:()=>Fte,deleteCurrentNode:()=>Ite,deleteNode:()=>Lte,deleteRange:()=>Rte,deleteSelection:()=>Vte,enter:()=>Hte,exitCode:()=>Ute,extendMarkRange:()=>Wte,first:()=>Gte,focus:()=>qte,forEach:()=>Jte,insertContent:()=>Yte,insertContentAt:()=>Xte,insertDefaultBlock:()=>Zte,joinBackward:()=>ene,joinDown:()=>$te,joinForward:()=>tne,joinItemBackward:()=>nne,joinItemForward:()=>rne,joinTextblockBackward:()=>ine,joinTextblockForward:()=>ane,joinUp:()=>Qte,keyboardShortcut:()=>sne,lift:()=>cne,liftEmptyBlock:()=>lne,liftListItem:()=>une,newlineInCode:()=>dne,resetAttributes:()=>fne,scrollIntoView:()=>pne,selectAll:()=>mne,selectNodeBackward:()=>hne,selectNodeForward:()=>gne,selectParentNode:()=>aO,selectTextblockEnd:()=>_ne,selectTextblockStart:()=>oO,setContent:()=>cO,setMark:()=>gk,setMeta:()=>yne,setNode:()=>bne,setNodeSelection:()=>xne,setTextDirection:()=>Sne,setTextSelection:()=>Cne,sinkListItem:()=>wne,splitBlock:()=>Tne,splitListItem:()=>Ene,toggleList:()=>Dk,toggleMark:()=>Ok,toggleNode:()=>kk,toggleWrap:()=>Ak,undoInputRule:()=>jk,unsetAllMarks:()=>Mk,unsetMark:()=>Nk,unsetTextDirection:()=>Pk,updateAttributes:()=>Fk,updateDecorations:()=>Lk,wrapIn:()=>Rk,wrapInList:()=>zk}),Vk=new WeakMap;function Hk(e,t){Vk.set(e,(Vk.get(e)??0)+1);try{return t()}finally{let t=(Vk.get(e)??1)-1;t>0?Vk.set(e,t):Vk.delete(e)}}function Uk(e){return Vk.has(e)}var Wk=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={}}},Gk=typeof process<`u`&&!1;function Kk(e){return e.kind===`widget`}function qk(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&Kk(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function Jk(e,t,n){let{decorations:r,widgetKeys:i}=qk(t,n);return{set:TE.create(e,r),widgetKeys:i}}function Yk({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function Xk({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>Yk({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 Zk(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function Qk(e){let t=new Map,n=new Map;for(let r of e.find()){let e=Zk(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 $k(e){return e.jsonID===`attr`}function eA(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||$k(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function tA(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 nA(e,t){if(e.steps.some(e=>!eA(e)))return{type:`full`};let n=JO(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!$k(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=tA(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 rA(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function iA(e,t,n){let r=t.decorationSetsByExtension[e]??TE.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:rA(r,n.mapping,n.doc,i),widgetKeys:i}}function aA(e,t){let n=Object.values(t).flatMap(e=>e.find());return TE.create(e,n)}function oA(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function sA(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 cA(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var lA=new Set,uA=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=Ik.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>sA(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 Ik.getState(this.editor.state)?.widgetKeys??lA}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:Ik,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:oA(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(Ik),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return Hk(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!cA(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=iA(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:oA(u)}}},props:{decorations(e){return Ik.getState(e)?.mergedDecorationSet??TE.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=nA(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]??TE.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=rA(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=>Yk({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=Zk(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=qk(Xk({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 Jk(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(!Gk)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=Qk(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]]:aA(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):aA(n.doc,r)}};function dA(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 fA(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 pA(e){return typeof e==`number`}function mA(e){return Object.prototype.toString.call(e).slice(8,-1)}function hA(e){return mA(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function gA(e,t,n){let r=e.split(`
+ `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,G.jsx)(Gf,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:U.cloneElement(e,{ref:d})})}var qf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Rf(Jf),d=(0,U.useId)(),f=(0,U.useRef)(),p=(0,U.useRef)(n),m=(0,U.useRef)(r);zf(()=>{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,G.jsx)(Kf,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,G.jsx)(Bf.Provider,{value:g,children:e})};function Jf(){return new Map}function Yf(e=!0){let t=(0,U.useContext)(Bf);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 Xf(){return Zf((0,U.useContext)(Bf))}function Zf(e){return e===null||e.isPresent}var Qf=e=>e.key||``;function $f(e){let t=[];return U.Children.forEach(e,e=>{(0,U.isValidElement)(e)&&t.push(e)}),t}var ep=({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]=Yf(o),f=(0,U.useMemo)(()=>$f(e),[e]),p=o&&!u?[]:f.map(Qf),m=(0,U.useRef)(!0),h=Rf(()=>new Map),g=(0,U.useRef)(new Set),[_,v]=(0,U.useState)(f),[y,b]=(0,U.useState)(f);zf(()=>{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]),zf(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Qf(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(Qf(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Qf(e)))?e=f:a===`wait`&&(e=S),b($f(e)),v(f),null}let{forceRender:C}=(0,U.useContext)(Lf);return(0,G.jsx)(G.Fragment,{children:y.map(e=>{let _=Qf(e),b=o&&!u?!1:f===y||p.includes(_);return(0,G.jsx)(qf,{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},_)})})},tp=(0,U.createContext)({strict:!1}),np={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`]},rp=!1;function ip(){if(rp)return;let e={};for(let t in np)e[t]={isEnabled:e=>np[t].some(t=>!!e[t])};gu(e),rp=!0}function ap(){return ip(),_u()}function op(e){let t=ap();for(let n in e)t[n]={...t[n],...e[n]};gu(t)}function sp({children:e,...t}){let n=(0,U.useContext)(Vf);t={...n,...t},t.transition=vo(t.transition,n.transition),t.isStatic=Rf(()=>t.isStatic);let r=(0,U.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,G.jsx)(Vf.Provider,{value:r,children:e})}var cp=(0,U.createContext)({});function lp(e,t){if(su(e)){let{initial:t,animate:n}=e;return{initial:t===!1||iu(t)?t:void 0,animate:iu(n)?n:void 0}}return e.inherit===!1?{}:t}function up(e){let{initial:t,animate:n}=lp(e,(0,U.useContext)(cp));return(0,U.useMemo)(()=>({initial:t,animate:n}),[dp(t),dp(n)])}function dp(e){return Array.isArray(e)?e.join(` `):e}var fp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pp(e,t,n){for(let r in t)!Bo(t[r])&&!xu(r,n)&&(e[r]=t[r])}function mp({transformTemplate:e},t){return(0,U.useMemo)(()=>{let n=fp();return Ds(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hp(e,t){let n=e.style||{},r={};return pp(r,n,e),Object.assign(r,mp(e,t)),r}function gp(e,t){let n={},r=hp(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 _p=()=>({...fp(),attrs:{}});function vp(e,t,n,r){let i=(0,U.useMemo)(()=>{let n=_p();return Ms(n,t,zd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};pp(t,e.style,e),i.style={...t,...i.style}}return i}var yp=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 bp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||yp.has(e)}function xp(e,t){return e.startsWith(`on`)?!bp(e):t?.(e)??!bp(e)}function Sp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Bo(e[a])||(xp(a,r)||n===!0&&bp(a)||!t&&!bp(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Cp=[`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 wp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Cp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Tp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??wp(e)?vp:gp)(t,r,i,e),l=Sp(t,typeof e==`string`,a,s),u=e===U.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,U.useMemo)(()=>Bo(d)?d.get():d,[d]);return(0,U.createElement)(e,{...u,children:f})}function Ep({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Dp(n,r,i,e),renderState:t()}}function Dp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=_c(a[e]);let{initial:o,animate:s}=e,c=su(e),l=cu(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`&&!ru(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Mo(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 Op=e=>(t,n)=>{let r=(0,U.useContext)(cp),i=(0,U.useContext)(Bf),a=()=>Ep(e,t,r,i);return n?a():Rf(a)},kp=Op({scrapeMotionValuesFromProps:Su,createRenderState:fp}),Ap=Op({scrapeMotionValuesFromProps:Vd,createRenderState:_p}),jp=Symbol.for(`motionComponentSymbol`);function Mp(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 Np=(0,U.createContext)({});function Pp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Fp(e,t,n,r,i,a){let{visualElement:o}=(0,U.useContext)(cp),s=(0,U.useContext)(tp),c=(0,U.useContext)(Bf),l=(0,U.useContext)(Vf),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)(Np);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Ip(f.current,n,i,h);let g=(0,U.useRef)(!1);(0,U.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Wo],v=(0,U.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return zf(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),zf(()=>{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 Ip(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:Lp(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Pp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Lp(e){if(e)return e.options.allowProjection===!1?Lp(e.parent):e.projection}function Rp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&op(r);let a=n?n===`svg`:wp(e),o=a?Ap:kp;function s(n,s){let c,l={...(0,U.useContext)(Vf),...n,layoutId:zp(n)},{isStatic:u,isValidProp:d}=l,f=up(n),p=o(n,u);if(!u&&typeof window<`u`){Bp(l,r);let t=Vp(l);c=t.MeasureLayout,f.visualElement=Fp(e,p,l,i,t.ProjectionNode,a)}return(0,G.jsxs)(cp.Provider,{value:f,children:[c&&f.visualElement?(0,G.jsx)(c,{visualElement:f.visualElement,...l}):null,Tp(e,n,Mp(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[jp]=e,c}function zp({layoutId:e}){let t=(0,U.useContext)(Lf).id;return t&&e!==void 0?t+`-`+e:e}function Bp(e,t){(0,U.useContext)(tp).strict}function Vp(e){let{drag:t,layout:n}=ap();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Hp(e,t){if(typeof Proxy>`u`)return Rp;let n=new Map,r=(n,r)=>Rp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Rp(a,void 0,e,t)),n.get(a))})}var Up=(e,t)=>t.isSVG??wp(e)?new Hd(t):new wu(t,{allowProjection:e!==U.Fragment}),Wp=class extends Ld{constructor(e){super(e),e.animationState||=Gd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ru(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?.()}},Gp=0,Kp={animation:{Feature:Wp},exit:{Feature:class extends Ld{constructor(){super(...arguments),this.id=Gp++}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}=No(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(){}}}},qp=class extends Ld{constructor(e){super(e),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new vd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}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()}},Jp=({current:e})=>e?e.ownerDocument.defaultView:null,Yp=e=>(t,n)=>{e&&Fr.update(()=>e(t,n),!1,!0)},Xp=class extends Ld{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(e){this.session=new Ku(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yp(e),onStart:Yp(t),onMove:Yp(n),onEnd:(e,t)=>{delete this.session,r&&Fr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Ou(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Zp=!1,Qp=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),$p=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),Zp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Qp(this.props),onExitComplete:()=>this.safeToRemove()})),gl.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,...Qp(this.props)}),Zp=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Fr.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(),uc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Zp=!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 em(e){let[t,n]=Yf(),r=(0,U.useContext)(Lf);return(0,G.jsx)($p,{...e,layoutGroup:r,switchLayoutGroup:(0,U.useContext)(Np),isPresent:t,safeToRemove:n})}var tm={pan:{Feature:Xp},drag:{Feature:qp,ProjectionNode:tu,MeasureLayout:em}};function nm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Fr.postRender(()=>i(t,Eu(t)))}var rm=class extends Ld{mount(){let{current:e}=this.node;e&&(this.unmount=Dd(e,(e,t)=>(nm(this.node,t,`Start`),e=>nm(this.node,e,`End`))))}unmount(){}},im=class extends Ld{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=zt(Ql(this.node.current,`focus`,()=>this.onFocus()),Ql(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function am(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&&Fr.postRender(()=>i(t,Eu(t)))}var om=class extends Ld{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Fd(e,(e,t)=>(am(this.node,t,`Start`),(e,{success:t})=>am(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},sm=new WeakMap,cm=new WeakMap,lm=e=>{let t=sm.get(e.target);t&&t(e)},um=e=>{e.forEach(lm)};function dm({root:e,...t}){let n=e||document;cm.has(n)||cm.set(n,{});let r=cm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(um,{root:e,...t})),r[i]}function fm(e,t,n){let r=dm(t);return sm.set(e,n),r.observe(e),()=>{sm.delete(e),r.unobserve(e)}}var pm={some:0,all:1},mm=class extends Ld{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:pm[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=fm(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(hm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function hm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var gm={inView:{Feature:mm},tap:{Feature:om},focus:{Feature:im},hover:{Feature:rm}},_m={layout:{ProjectionNode:tu,MeasureLayout:em}},vm=Hp({...Kp,...gm,...tm,..._m},Up);function ym(e){let t=Rf(()=>_o(e)),{isStatic:n}=(0,U.useContext)(Vf);if(n){let[,n]=(0,U.useState)(e);(0,U.useEffect)(()=>t.on(`change`,n),[])}return t}function bm(e,t){let n=ym(t()),r=()=>n.set(t());return r(),zf(()=>{let t=()=>Fr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Ir(r)}}),n}function xm(e){ho.current=[],e();let t=bm(ho.current,e);return ho.current=void 0,t}function Sm(e,t,n,r){if(typeof e==`function`)return xm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return wm(e,t,n,r);let i=typeof t==`function`?t:Id(t,n,r),a=Array.isArray(e)?Cm(e,i):Cm([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 Cm(e,t){let n=Rf(()=>[]);return bm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function wm(e,t,n,r){let i=Rf(()=>Object.keys(n)),a=Rf(()=>({}));for(let o of i)a[o]=Sm(e,t,n[o],r);return a}var Tm=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()})}},Em=()=>new Tm;function Dm(){return Rf(Em)}var Om=(0,U.createContext)(null);function km(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:mr(t.x.min,t.x.max,.5)+n.x,y:mr(t.y.min,t.y.max,.5)+n.y},i=Am(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>jm(r.y,t)<jm(r.y,e)?t:e);if(c!==s)return Mm(e,o,r.x,c,a);let l=Nm(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Nm(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:jt(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=mr(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?jt(e,o,o+s):e}function Am(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 jm(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=mr(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 Nm(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 Pm=(e,t)=>e.max<=t.min||t.max<=e.min;function Fm(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||=Pm(e[r].x,e[i].x),n||=Pm(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Im({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=Rf(()=>vm[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=Fm(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=km(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,G.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,G.jsx)(Om.Provider,{value:v,children:e})})}var Lm=(0,U.forwardRef)(Im),Rm=50,zm=25,Bm=new Set([`auto`,`scroll`]),Vm=new WeakMap,Hm=new WeakMap,Um=null;function Wm(){if(Um){let e=Km(Um,`y`);e&&(Hm.delete(e),Vm.delete(e));let t=Km(Um,`x`);t&&t!==e&&(Hm.delete(t),Vm.delete(t)),Um=null}}function Gm(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return Bm.has(r)||i}function Km(e,t){let n=e?.parentElement;for(;n;){if(Gm(n,t))return n;n=n.parentElement}return null}function qm(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<Rm){let e=1-o/Rm;return{amount:-25*e*e,edge:`start`}}if(s<Rm){let e=1-s/Rm;return{amount:zm*e*e,edge:`end`}}return{amount:0,edge:null}}function Jm(e,t,n,r){if(!e)return;Um=e;let i=Km(e,n);if(!i)return;let{amount:a,edge:o}=qm(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Hm.delete(i),Vm.delete(i);return}let s=Hm.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Hm.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Vm.set(i,e)}if(a>0){let e=Vm.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 Ym(e,t=0){return Bo(e)?e:ym(t)}function Xm({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Rf(()=>vm[r]),u=(0,U.useContext)(Om),d={x:Ym(t.x),y:Ym(t.y)},f=Sm([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,G.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;Jm(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,Wm(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var Zm=(0,U.forwardRef)(Xm),Qm=vm,$m={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]},eh={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}},th={menu:{duration:.22,ease:$m.soft},overlay:{duration:.4,ease:$m.soft},dialogFade:{duration:.4,ease:$m.soft},fade:{duration:.2,ease:$m.out},color:{duration:.2,ease:$m.color},reveal:{duration:.3,ease:$m.out},disclosure:{duration:.35,ease:$m.soft},panelOut:{duration:.15,ease:$m.leave},panelIn:{duration:.3,ease:$m.enter},tooltipIn:{duration:.34,ease:$m.enter},tooltipOut:{duration:.13,ease:$m.leave},panelHeight:{duration:.45,ease:$m.resize},check:{duration:.3,delay:.2,ease:$m.draw},uncheck:{duration:.3,ease:$m.draw},fill:{duration:.3,ease:$m.fill},popOut:{duration:.15,ease:$m.out},swap:{duration:.15,ease:$m.out},spin:{duration:.3,ease:$m.out},handoffOut:{duration:.22,ease:$m.soft},handoffIn:{duration:.26,ease:$m.arrive},dismiss:{duration:.2,ease:$m.away},shake:{duration:.4,ease:$m.inOut},drawerOut:{duration:.16,ease:$m.in},drawer:{duration:.4,ease:$m.drawer},sheet:{duration:.4,ease:$m.soft},collapse:{duration:.28,ease:$m.inOut},collapseLabel:{duration:.14,ease:$m.out},instant:{duration:0}},nh={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},rh={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},ih={icon:90},ah={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},oh={stack:.03};function sh(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,dh(n,e)]));return{tempo:e,ease:$m,scale:nh,blur:rh,rotate:ih,shift:ah,stagger:e===1?oh:Object.fromEntries(Object.entries(oh).map(([t,n])=>[t,n*e])),spring:t(eh),transition:t(th)}}var ch=sh(),lh=U.createContext(ch),uh=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function dh(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`&&uh.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)?dh(i,t):i;return n}function fh(e){let{tempo:t}=U.use(lh);return dh(e,t)}function ph(){return U.use(lh)}U.createContext(`draw`);var mh={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)`},hh=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function gh(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?mh[e]??`ease`:mh.easeInOut}function _h(e){let t=e;if(t.type===`spring`||hh.some(e=>e in t)){let{duration:e,ease:n}=Hr(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,ei),r=Math.round(e*1e3);return{duration:r,easing:zr(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:gh(t.ease)}}var vh=U.createContext(`user`);function yh(){let e=U.use(vh),{reducedMotion:t}=U.use(Vf);return t===`always`?`always`:e}function bh({children:e,remount:t}){let n=yh();return(0,G.jsx)(sp,{reducedMotion:n,children:t?(0,G.jsx)(xh,{children:e}):e})}function xh({children:e}){let t=wh();return(0,G.jsx)(U.Fragment,{children:e},t?`reduce`:`full`)}var Sh=`(prefers-reduced-motion: reduce)`;function Ch(e){let t=window.matchMedia(Sh);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function wh(){let e=yh(),t=U.useSyncExternalStore(Ch,()=>window.matchMedia(Sh).matches,()=>!1);return e===`never`?!1:e===`always`||t}var Th=ch.spring.pop;ch.transition.menu,ch.spring.morph;var Eh={tooltip:ch.scale.tooltip,popover:ch.scale.popover,menu:ch.scale.menu};function Dh(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Oh(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 kh=ch.transition.fade,Ah=[`top`,`bottom`,`left`,`right`],jh={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(${jh[e]}, 0)))`,Nh=e=>`calc(var(${jh.size}) * min(1, var(${jh[e]}, 0) * 1000))`,Ph=`linear-gradient(to bottom, ${Mh(`top`)} 0, #000 ${Nh(`top`)}, #000 calc(100% - ${Nh(`bottom`)}), ${Mh(`bottom`)} 100%)`,Fh=`linear-gradient(to right, ${Mh(`left`)} 0, #000 ${Nh(`left`)}, #000 calc(100% - ${Nh(`right`)}), ${Mh(`right`)} 100%)`,Ih={vertical:Ph,horizontal:Fh,both:`${Ph}, ${Fh}`},Lh=e=>Math.min(1,Math.max(0,e)),Rh=e=>e*e*(3-2*e),zh=1.75,Bh=150,Vh=`ul, ol, [role="list"], [role="group"]`;function Hh(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(Vh)||Array.from(n.children).some(e=>e.matches(Vh))?Hh(n,t):t.push(n));return t}function Uh(e){let t=e;for(;t.children.length===1;)t=t.children[0];return Hh(t,[])}function Wh(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 Gh(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=wh(),c=fh(a??kh),l=U.useRef(c);U.useEffect(()=>{l.current=c});let u=ym(0),d=ym(0),f=ym(0),p=ym(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=Ih[t],d=!1;a.style.setProperty(jh.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]=Oh(a);v=a.clientWidth,y=a.clientHeight,_=Uh(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*zh,S=e=>x>0?Rh(Lh(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,Fr.render(E))},O=()=>{let e=!1;for(let t of Ah){let n=Lh(m[t].get());n>.001&&(e=!0),a.style.setProperty(jh[t],n.toFixed(4))}e!==d&&(d=e,Wh(a,e?u:null)),D()},k=Ah.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?Lh(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 Ah)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&_f(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>Bh&&(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),Ir(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Wh(a,null),g();for(let e of Object.values(jh))a.style.removeProperty(e);for(let e of Ah)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Kh={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function qh({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(()=>Dh(d,f),[f]);U.useImperativeHandle(e,()=>d.current),Gh(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:{...Kh[n],...e.props.style,...c},ref:p})}return(0,G.jsx)(`div`,{ref:d,style:{...Kh[n],...c},...m,children:l})}function Jh({children:e,enabled:t=!0,size:n=20}){let r=Mf();return(0,G.jsx)(qh,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:(r?kf.micro:kf.base)/1e3,ease:kf.out},children:e})}var Yh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Xh(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Yh(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Zh=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},Qh=e=>{let t=Zh(e);return t.charAt(0).toUpperCase()+t.slice(1)},$h=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),eg={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 tg(e){return e!=null}function ng(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??eg.width,a=e.size??e.height??eg.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?$h(...c):$h(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??eg[`stroke-width`])*Number(e.size??e.width??eg.width)/Number(t.size??t.width??eg.width):t.strokeWidth??eg[`stroke-width`];return[`svg`,{...Object.entries(eg).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&tg(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&tg(t.width)&&{[r(`width`)]:t.width},...`height`in t&&tg(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 rg(e,t={}){return ng(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var eee=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},tee=(0,U.createContext)({}),nee=()=>(0,U.useContext)(tee),ree=(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=``}=nee()??{},y=!!c||eee(d),[b,x,S=[]]=rg(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:$h(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 ig(e,t=[],n=[]){let r=typeof e==`string`?Xh(e,t,n):e,i=(0,U.forwardRef)(({className:e,...t},n)=>(0,U.createElement)(ree,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Qh(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=ig(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 iee=ig(sg),cg={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};cg.node;var lg=ig(cg),ug={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`}]]};ug.node;var dg=ig(ug),fg={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`}]]};fg.node;var aee=ig(fg),pg={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`}]]};pg.node;var oee=ig(pg),mg={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`}]]};mg.node;var see=ig(mg),hg={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`}]]};hg.node;var cee=ig(hg),gg={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`}]]};gg.node;var _g=ig(gg),vg={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};vg.node;var yg=ig(vg),bg={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};bg.node;var xg=ig(bg),Sg={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Sg.node;var Cg=ig(Sg),wg={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};wg.node;var Tg=ig(wg),Eg={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Eg.node;var Dg=ig(Eg),Og={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`]};Og.node;var kg=ig(Og),Ag={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ag.node;var jg=ig(Ag),Mg={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`}]]};Mg.node;var Ng=ig(Mg),Pg={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`}]]};Pg.node;var Fg=ig(Pg),Ig={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`]};Ig.node;var Lg=ig(Ig),Rg={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`}]]};Rg.node;var zg=ig(Rg),Bg={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`}]]};Bg.node;var Vg=ig(Bg),Hg={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`}]]};Hg.node;var Ug=ig(Hg),Wg={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`}]]};Wg.node;var Gg=ig(Wg),Kg={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`}]]};Kg.node;var qg=ig(Kg),Jg={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`}]]};Jg.node;var Yg=ig(Jg),Xg={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`}]]};Xg.node;var Zg=ig(Xg),Qg={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`}]]};Qg.node;var $g=ig(Qg),e_={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};e_.node;var t_=ig(e_),n_={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`}]]};n_.node;var r_=ig(n_),i_={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`]};i_.node;var a_=ig(i_),o_={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`}]]};o_.node;var s_=ig(o_),c_={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`}]]};c_.node;var l_=ig(c_),u_={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`}]]};u_.node;var d_=ig(u_),f_={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`}]]};f_.node;var p_=ig(f_),m_={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`}]]};m_.node;var h_=ig(m_),g_={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`}]]};g_.node;var __=ig(g_),v_={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`}]]};v_.node;var y_=ig(v_),b_={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`}]]};b_.node;var x_=ig(b_),S_={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`}]]};S_.node;var C_=ig(S_),w_={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`}]]};w_.node;var T_=ig(w_),E_={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`}]]};E_.node;var D_=ig(E_),O_={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`}]]};O_.node;var k_=ig(O_),A_={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};A_.node;var j_=ig(A_),M_={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`}]]};M_.node;var N_=ig(M_),P_={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`}]]};P_.node;var F_=ig(P_),I_={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`}]]};I_.node;var L_=ig(I_),R_={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};R_.node;var z_=ig(R_),B_={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`}]]};B_.node;var lee=ig(B_),V_={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`}]]};V_.node;var H_=ig(V_),U_={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};U_.node;var W_=ig(U_),G_={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};G_.node;var uee=ig(G_),K_={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`}]]};K_.node;var dee=ig(K_),q_={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`}]]};q_.node;var fee=ig(q_),J_={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`]};J_.node;var Y_=ig(J_),X_={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`]};X_.node;var Z_=ig(X_),Q_={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`]};Q_.node;var $_=ig(Q_),ev={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`]};ev.node;var pee=ig(ev),tv={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`}]]};tv.node;var nv=ig(tv),rv={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`}]]};rv.node;var mee=ig(rv),iv={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};iv.node;var av=ig(iv),ov=({width:e=`60%`})=>(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function sv({layout:e,testId:t=`${e}-loading`}){return(0,G.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":W(`Loading…`),"aria-busy":`true`,children:(0,G.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(`div`,{className:`note-title-type`,children:(0,G.jsx)(ov,{width:`52%`})}),(0,G.jsx)(`div`,{className:`note-meta-row`,children:(0,G.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,G.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,G.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(dg,{size:14}),W(`Transcript`)]}),(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(Y_,{size:14}),W(`My notes`)]})]})]}),(0,G.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(ov,{width:e},e))})})]}):e===`history`?(0,G.jsxs)(`section`,{children:[(0,G.jsx)(`h2`,{children:(0,G.jsx)(ov,{width:`48px`})}),(0,G.jsx)(`ul`,{children:[0,1,2].map(e=>(0,G.jsx)(`li`,{className:`ask-history-row`,children:(0,G.jsxs)(`div`,{className:`ask-history-link`,children:[(0,G.jsx)(`strong`,{children:(0,G.jsx)(ov,{width:`${130+e*14}px`})}),(0,G.jsx)(`time`,{children:(0,G.jsx)(ov,{width:`56px`})})]})},e))})]}):e===`folders`?(0,G.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`workspace-nav`,children:[(0,G.jsx)(`span`,{className:`loading-folder-icon`}),(0,G.jsx)(ov,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,G.jsx)(G.Fragment,{children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,G.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,G.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,G.jsx)(`span`,{className:`settings-label`,children:(0,G.jsx)(ov,{width:`120px`})}),(0,G.jsx)(`span`,{className:`settings-description block`,children:(0,G.jsx)(ov,{width:`90px`})})]}),(0,G.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,G.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,G.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,G.jsx)(ov,{width:`42px`})}),(0,G.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,G.jsx)(ov,{width:`${160+e*25}px`})})]},e))}):(0,G.jsxs)(`div`,{className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,children:(0,G.jsx)(ov,{width:`160px`})}),(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(ov,{width:e},e))})]})})})}function cv(e){let t=Mf(),[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(`revealing`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(a=setTimeout(()=>r(`ready`),kf.micro)),()=>clearTimeout(a)},[e,n,t]),n}var lv=()=>(0,U.useSyncExternalStore)(St,xt);function hee(e,t){return W(e,Object.fromEntries(Object.keys(t).map(e=>[e,`\u0000${e}\u0000`]))).split(`\0`).map((e,n)=>n%2?(0,G.jsx)(U.Fragment,{children:t[e]},n):e)}function uv(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 gee=3e4;function dv(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 _ee(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)<gee?e.push(n):t.push([n])}return t}function fv(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 vee(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 yee(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 bee(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 xee(e,t,n){let r=e=>!(`live`in e),i=e.reduce((e,t)=>e+t.lines.filter(r).length,0),a=i<=t?0:Math.floor((i-t)/n)*n;if(!a)return{runs:e,earlier:0};let o=a,s=[];for(let t of e){if(!o){s.push(t);continue}let e=0;for(;e<t.lines.length&&o>0;)r(t.lines[e])&&o--,e++;e<t.lines.length&&s.push({...t,lines:t.lines.slice(e)})}return{runs:s,earlier:a}}function pv(e,t){let n=t.trim();if(!n)return[];let r=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`giu`),i=[];for(let t of e)for(let e of t.text.matchAll(r))i.push({key:`${t.track}:${t.startMs}`,start:e.index,end:e.index+e[0].length});return i}function mv(e,t){return t?Math.max(0,e.findIndex(e=>e.key===t.key&&e.start===t.start)):0}function hv(e,t,n){return n?((e+t)%n+n)%n:0}function gv(e,t){return e.top>=t.top&&e.bottom<=t.bottom?null:t.scrollTop+(e.top+e.bottom-t.top-t.bottom)/2}var _v={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function vv(e,t){if(t===`darwin`)return e;if(_v[e])return _v[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 yv=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function bv(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var xv=()=>globalThis.window?.yogurt?.os??`darwin`,Sv=e=>vv(e,xv()),Cv=e=>yv(e,xv()),wv=()=>xv()===`darwin`,Tv=e=>bv(e,xv());function See(e,t,n){let r=new Map;for(let t of e.querySelectorAll(`[data-key]`)){let e=t.querySelector(`[data-testid="transcript-text"]`);if(!e)continue;let n=[],i=[],a=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),o,s=0;for(;o=a.nextNode();){let e=o;e.length&&(n.push({node:e,start:s,end:s+e.length}),i.push(e.data),s+=e.length)}r.set(t.dataset.key,{root:e,text:i.join(``),spans:n})}let i=t.map(e=>({...e,text:r.get(`${e.track}:${e.startMs}`)?.text??``})),a=[],o=[];for(let e of pv(i,n)){let t=r.get(e.key);try{let n=Ev(t.spans,e.start),r=Ev(t.spans,e.end);if(!t.root.isConnected||!n||!r||!t.root.contains(n.node)||!t.root.contains(r.node))continue;let i=t.root.ownerDocument.createRange();if(i.setStart(n.node,e.start-n.start),i.setEnd(r.node,e.end-r.start),i.toString()!==t.text.slice(e.start,e.end))continue;a.push(e),o.push(i)}catch{}}return{query:n,matches:a,ranges:o}}function Ev(e,t){let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;e[i].end<t?n=i+1:r=i}return e[n]}function Cee({lines:e,list:t,active:n,playbackInset:r,beforeScroll:i,onFinding:a,toolbar:o,onClose:s}){lv();let c=(0,U.useId)(),l=(0,U.useId)(),[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(``),[m,h]=(0,U.useState)(0),[g,_]=(0,U.useState)(null),v=(0,U.useRef)(null),y=(0,U.useRef)(null),[b,x]=(0,U.useState)({query:``,matches:[],ranges:[]}),{matches:S,ranges:C}=b,w=mv(S,g),T=S[w],E=(0,U.useRef)(null),D=(0,U.useRef)(!1),O=!!f.trim(),k=()=>{d(!0),a(!0),u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},A=()=>{p(``),_(null),d(!1),a(!1),y.current?.focus({preventScroll:!0})},j=e=>{S.length&&(D.current=!0,_(S[hv(w,e,S.length)]),h(e=>e+1))};(0,U.useLayoutEffect)(()=>{u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},[u]),(0,U.useLayoutEffect)(()=>{let e=E.current,t=e?.querySelector(`.transcript-find-controls`);if(!n||!o||!e||!t)return;let r=()=>{let n=Math.max(240,t.getBoundingClientRect().width+76);e.dataset.findBelow=String(o.getBoundingClientRect().width<n)};r();let i=new ResizeObserver(r);return i.observe(o),i.observe(t),()=>i.disconnect()},[n,o]),(0,U.useLayoutEffect)(()=>{b.query===f&&T&&(T.key!==g?.key||T.start!==g.start)&&_(T)},[T,g,b.query,f]),(0,U.useLayoutEffect)(()=>{let r=t.current;if(!n||!u||!f.trim()||!r){x({query:f,matches:[],ranges:[]});return}let i=()=>x(See(r,e,f));i();let a=new MutationObserver(i);return a.observe(r,{childList:!0,characterData:!0,subtree:!0}),()=>a.disconnect()},[e,f,u,n,t]),(0,U.useLayoutEffect)(()=>{if(!n)return;let e=new Highlight;for(let t of C)e.add(t);return CSS.highlights.set(`transcript-find`,e),()=>{CSS.highlights.get(`transcript-find`)===e&&CSS.highlights.delete(`transcript-find`)}},[C,n]),(0,U.useLayoutEffect)(()=>{if(!n||b.query!==f)return;let e=C[w],a=new Highlight(...e?[e]:[]);a.priority=1,CSS.highlights.set(`transcript-find-current`,a);let o=t.current;if(D.current&&e&&o){let t=e.getBoundingClientRect(),n=o.getBoundingClientRect(),a=v.current?.getBoundingClientRect(),s=gv(t,{top:a&&a.bottom>n.top&&t.right>a.left&&t.left<a.right?a.bottom+8:n.top,bottom:n.bottom-r,scrollTop:o.scrollTop});t.height&&s!==null&&(i?.(),o.scrollTo({top:s,behavior:jf()}))}return D.current=!1,()=>{CSS.highlights.get(`transcript-find-current`)===a&&CSS.highlights.delete(`transcript-find-current`)}},[C,w,g,m,n,r,t,b.query,f]),(0,U.useEffect)(()=>{if(!n)return;let e=e=>{e.defaultPrevented||e.isComposing||e.altKey||document.querySelector(`dialog:modal, [aria-modal="true"]`)||(Cv(e)&&(e.code===`KeyF`||e.code===`KeyG`)?(e.preventDefault(),e.stopPropagation(),e.code===`KeyF`?k():O&&j(e.shiftKey?-1:1)):e.key===`Escape`&&u&&(E.current?.contains(e.target)||t.current?.contains(e.target))&&(e.preventDefault(),e.stopPropagation(),A()))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)});let M=(0,G.jsxs)(`div`,{ref:E,className:`transcript-toolbar`,children:[(0,G.jsxs)(`div`,{className:`transcript-find`,"data-open":u,onBlur:e=>{u&&!e.currentTarget.contains(e.relatedTarget)&&!O&&(d(!1),a(!1))},children:[(0,G.jsx)(`button`,{ref:y,type:`button`,"data-testid":`transcript-find-open`,className:`ghost-btn transcript-find-trigger`,"aria-label":W(`Search the transcript`),title:`${W(`Search the transcript`)} (${Sv(`⌘F`)})`,"aria-expanded":u,"aria-hidden":u,"aria-controls":l,tabIndex:u?-1:0,onClick:k,children:(0,G.jsx)(W_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,G.jsx)(`div`,{id:l,className:`transcript-find-clip`,inert:!u,"aria-hidden":!u,children:(0,G.jsxs)(`div`,{className:`transcript-search-field`,children:[(0,G.jsx)(W_,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`input`,{ref:v,"data-testid":`transcript-search`,value:f,onChange:e=>{D.current=!0,_(null),p(e.target.value)},onKeyDown:e=>{e.nativeEvent.isComposing||e.key===`Enter`&&(e.preventDefault(),j(e.shiftKey?-1:1))},placeholder:W(`Search`),"aria-label":W(`Search the transcript`),"aria-describedby":c,spellCheck:!1}),(0,G.jsxs)(`span`,{className:`transcript-find-controls`,children:[(0,G.jsxs)(`span`,{className:`transcript-find-results`,"data-visible":O,inert:!O,"aria-hidden":!O,children:[(0,G.jsxs)(`span`,{className:`transcript-find-count`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:W(`{current} of {count}`,{current:99999,count:99999})}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:W(`No matches`)}),(0,G.jsx)(`span`,{id:c,"data-testid":`transcript-find-count`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:O?S.length?W(`{current} of {count}`,{current:w+1,count:S.length}):W(`No matches`):``})]}),(0,G.jsxs)(`span`,{className:`transcript-find-arrows`,children:[(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-previous`,className:`ghost-btn workspace-icon`,disabled:!S.length,"aria-label":W(`Previous match`),title:`${W(`Previous match`)} (⇧Enter · ${Sv(`⇧⌘G`)})`,"aria-keyshortcuts":`Shift+Enter ${wv()?`Meta`:`Control`}+Shift+G`,onClick:()=>j(-1),children:(0,G.jsx)(Dg,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-next`,className:`ghost-btn workspace-icon`,disabled:!S.length,"aria-label":W(`Next match`),title:`${W(`Next match`)} (Enter · ${Sv(`⌘G`)})`,"aria-keyshortcuts":`Enter ${wv()?`Meta`:`Control`}+G`,onClick:()=>j(1),children:(0,G.jsx)(xg,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]}),(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-close`,className:`ghost-btn workspace-icon transcript-find-close`,"aria-label":W(`Close`),title:`${W(`Close`)} (Esc)`,"aria-keyshortcuts":`Escape`,onClick:A,children:(0,G.jsx)(av,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]})})]}),s&&(0,G.jsx)(`div`,{className:`transcript-actions`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-close`,onClick:s,"aria-label":W(`Hide transcript`),title:W(`Hide transcript`),className:`ghost-btn workspace-icon`,children:(0,G.jsx)(xg,{size:15,"aria-hidden":`true`})})})]});return n?o?(0,De.createPortal)(M,o):M:null}function Dv(){return null}var Ov=900,kv=24,Av=8,jv=24;function Mv(e,t){let n=!1,r=!1,i=!1,a=!1,o=e.scrollTop,s=0,c=0,l=!1,u,d=()=>i||a||t.contains(document.activeElement)||!e.clientHeight||e.scrollHeight-e.clientHeight-e.scrollTop<=jv,f=e=>{let n=e&&!d();l!==n&&(l=n,t.dataset.hidden=String(l))},p=()=>{n=!1,s=0,c=0,o=e.scrollTop,clearTimeout(u),u=void 0,f(!1)},m=()=>{clearTimeout(u),u=setTimeout(p,Ov)},h=()=>{n||(s=0,c=0),n=!0,m()},g=()=>{let t=e.scrollTop-o;if(o=e.scrollTop,d()){p();return}if(!n||!t)return;let r=Math.sign(t);c=r===s?c+Math.abs(t):Math.abs(t),s=r,r>0&&c>=kv&&f(!0),r<0&&c>=Av&&f(!1),m()},_=e=>{e.isTrusted&&!e.ctrlKey&&Math.abs(e.deltaY)>Math.abs(e.deltaX)&&h()},v=e=>{!e.isTrusted||e.defaultPrevented||e.ctrlKey||e.metaKey||e.altKey||![`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)||e.target.closest(`input, textarea, button, [contenteditable="true"]`)||h()},y=e=>{e.isTrusted&&h()},b=t=>{if(!t.isTrusted||t.button!==0||t.target!==e)return;let n=e.getBoundingClientRect(),i=t.clientX-n.left;(i<=Math.max(e.clientLeft,12)||i>=Math.min(e.clientLeft+e.clientWidth,n.width-12))&&(r=!0,h())},x=e=>{r&&e.isTrusted&&h()},S=()=>{r=!1},C=e=>{e.pointerType!==`touch`&&(a=!0,p())},w=()=>{a=!1},T=()=>{d()&&p()},E=new ResizeObserver(T);E.observe(e);let D=new MutationObserver(T);return D.observe(e,{childList:!0,subtree:!0}),e.addEventListener(`scroll`,g,{passive:!0}),e.addEventListener(`wheel`,_,{passive:!0}),e.addEventListener(`touchmove`,y,{passive:!0}),e.addEventListener(`keydown`,v),e.addEventListener(`pointerdown`,b),document.addEventListener(`pointermove`,x,{passive:!0}),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S),t.addEventListener(`pointerenter`,C),t.addEventListener(`pointerleave`,w),t.addEventListener(`focusin`,p),t.dataset.hidden=`false`,{programmatic:p,pin(e){i=e,p()},dispose(){clearTimeout(u),E.disconnect(),D.disconnect(),e.removeEventListener(`scroll`,g),e.removeEventListener(`wheel`,_),e.removeEventListener(`touchmove`,y),e.removeEventListener(`keydown`,v),e.removeEventListener(`pointerdown`,b),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S),t.removeEventListener(`pointerenter`,C),t.removeEventListener(`pointerleave`,w),t.removeEventListener(`focusin`,p),delete t.dataset.hidden}}}var Nv=new Map,Pv=new Map,Fv=e=>Nv.get(e);function Iv(){for(let[e,t]of Pv)t.clientHeight&&Nv.set(e,t.scrollTop)}function Lv(e,t=!0){let n=(0,U.useRef)(null);return(0,U.useLayoutEffect)(()=>{let r=n.current;if(!r)return;Pv.set(e,r),t&&Nv.has(e)&&(r.scrollTop=Nv.get(e));let i=()=>{r.clientHeight&&Nv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{Pv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var Rv=e=>(e.startMs+e.endMs)/2,zv=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),Bv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),Vv=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Hv=500;function Uv(e,t){let n=t.split(/\s+/).map(Bv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>Bv(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]+ +!Vv(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 Wv(e,t){let n=e.filter(e=>!e.rough&&Rv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Uv(r,t.text),a=r.filter(e=>Rv(e)<t.endMs-Hv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Gv=e=>`${e.track}:${e.startMs}`,Kv=24,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(Gv)),o=t.filter(t=>t.meetingId===e&&!i.has(Gv(t)));if(r)for(let e of o)a.current.add(Gv(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=>[Gv(e),e])),r=new Set(t.map(Gv));return[...t.map(e=>n.get(Gv(e))??e),...e.filter(e=>!r.has(Gv(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}var Xv=300,wee=50;function Tee(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=Wv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:zv(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 Eee({said:e}){let t=(0,U.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=bee(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,G.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,G.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,G.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]})}var Dee=(0,U.memo)(function({line:e,focused:t,name:n,playing:r,playable:i,focusable:a,arrived:o,onPlay:s,onFocusLine:c}){lv(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let l=Gv(e),u=dv(e.startMs);return(0,G.jsxs)(`span`,{"data-key":l,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":r||void 0,role:i?`button`:void 0,"aria-label":i?W(`Play from {time}, {name}: {text}`,{time:u,name:n,text:e.text}):void 0,tabIndex:i?a?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&c(l)},onClick:t=>s(e,t),title:u,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${o===`fade`?`line-in`:o===`settle`?`line-settle`:``} ${i?`line-playable cursor-pointer`:``}`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-text`,children:e.text}),(0,G.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:u})]})});function Zv({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=cv(!l),{live:d,previewed:f}=Tee(e,t),p=(0,U.useMemo)(()=>uv(yee(s,d)).filter(e=>!e.echo),[s,d]),m=(0,U.useMemo)(()=>uv(s).filter(e=>!e.echo).flatMap(e=>e.lines),[s]),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1);(0,U.useEffect)(()=>{g(!1),v(!1)},[e]);let[y,b]=(0,U.useState)([]);(0,U.useEffect)(()=>{if(b([]),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"]`)&&(F.current?.setAttribute(`tabindex`,`-1`),F.current?.focus({preventScroll:!0})),r=!0,b([]),re(!1),N(null))});return window.yogurt.audio.tracks(e).then(e=>{n&&!r&&b(e)}),()=>{n=!1,i()}},[e,t]);let x=(0,U.useRef)(null),S=y.length>0,C=(0,U.useRef)(null),[w,T]=(0,U.useState)(0),E=(0,U.useRef)(null);(0,U.useLayoutEffect)(()=>{let e=C.current;if(!e){T(0);return}let t=()=>T(e.getBoundingClientRect().height+28);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[S,r]);let[D,O]=(0,U.useState)(),[k,A]=(0,U.useState)(0),j=(0,U.useRef)(0),M=(0,U.useRef)(m);M.current=m;let N=(0,U.useCallback)((e,t=!1)=>{let n=e==null?-1:fv(M.current,e),r=n<0?void 0:Gv(M.current[n]);O(e=>e===r?e:r),t&&A(e=>e+1)},[]),P=`transcript/${e}`,F=Lv(P,r&&l);(0,U.useLayoutEffect)(()=>{let e=F.current,t=C.current;if(!r||!S||!e||!t)return;let n=Mv(e,t);return E.current=n,()=>{n.dispose(),E.current=null}},[e,r,S]);let I=(0,U.useRef)(Fv(P)===void 0),[L,R]=(0,U.useState)(!1),ee=()=>{let e=F.current;e&&(ae.current===null&&(H.current=performance.now(),de()),I.current=e.scrollHeight-e.scrollTop-e.clientHeight<Kv,R(!I.current))};(0,U.useLayoutEffect)(()=>{let e=F.current;r&&t&&!h&&e&&I.current&&(E.current?.programmatic(),e.scrollTop=e.scrollHeight)},[m,d,t,r,h]);let z=()=>{let e=F.current;e&&(E.current?.programmatic(),I.current=!0,R(!1),e.scrollTo({top:e.scrollHeight,behavior:jf()}))},te=e=>e?F.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null,[ne,re]=(0,U.useState)(!1),ie=(0,U.useRef)(!0),[B,V]=(0,U.useState)(null),ae=(0,U.useRef)(null),H=(0,U.useRef)(0),oe=(0,U.useRef)(D);oe.current=D,(0,U.useEffect)(()=>{ie.current=!0,V(null)},[e]);let se=e=>{let t=F.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-w),scrollHeight:t.scrollHeight}}},ce=e=>{let t=F.current,n=te(oe.current);if(h||!t||!n||!e&&performance.now()-H.current<qv)return;let{row:r,view:i}=se(n),a=Sf(r,i,e);if(!(a===null||!ae.current&&Math.abs(a-t.scrollTop)<2)){if(!ae.current){let e=Nf(t,()=>requestAnimationFrame(()=>{ae.current===e&&!e.active&&(ae.current=null)}));ae.current=e}E.current?.programmatic(),ae.current.to(a)}};(0,U.useEffect)(()=>{k===j.current?ne&&ie.current&&ce(!1):(j.current=k,ie.current=!0,V(null),ce(!0))},[D,ne,k]);let le=(0,U.useCallback)(()=>{ie.current=!0,V(null)},[]),ue=()=>{le(),ce(!0)},de=()=>{let e=F.current,n=te(oe.current);if(t||!e||!n)return;let{row:r,view:i}=se(n);ie.current=xf(r,i),V(ie.current?null:r.top<i.scrollTop?`up`:`down`)},fe=()=>{H.current=performance.now(),ae.current?.stop(),ae.current=null};(0,U.useEffect)(()=>()=>{ae.current?.stop(),ae.current=null},[e,r]);let pe=(0,U.useRef)(S);pe.current=S;let me=(0,U.useCallback)((e,t)=>{!pe.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(le(),x.current?.playFrom(e.startMs))},[le]),[he,ge]=(0,U.useState)(),_e=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(!r||!a||_e.current===a.seq||!m.length)return;let e=m.filter(e=>!e.hidden),t=(a.match?e[pt(e.map(e=>e.text),a.match,Math.max(0,fv(e,a.ms)))]:void 0)??m[Math.max(0,fv(m,a.ms))];t&&(_e.current=a.seq,I.current=!1,v(!0),ge(Gv(t)),ye(Gv(t)),requestAnimationFrame(()=>{E.current?.programmatic(),te(Gv(t))?.scrollIntoView({block:`center`})}))},[a?.seq,m,r]),(0,U.useEffect)(()=>{if(!he)return;let e=window.setTimeout(()=>ge(void 0),2400);return()=>clearTimeout(e)},[he,a?.seq]);let[ve,ye]=(0,U.useState)(),be=ve??D??(m[0]&&Gv(m[0])),xe=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!S||!t||t!==e.target)return;let n=m.findIndex(e=>Gv(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=te(Gv(m[Math.max(0,Math.min(m.length-1,e))]));E.current?.programmatic(),t?.focus({preventScroll:!0}),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(m.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),le(),x.current?.playFrom(m[n].startMs))},Se=(0,U.useMemo)(()=>p.map(e=>({...e,k:Gv(e.lines[0])})),[p]),Ce=(0,U.useMemo)(()=>t&&!_?xee(Se,Xv,wee):{runs:Se,earlier:0},[Se,t,_]),we=(0,U.useCallback)(e=>{g(e),e&&(v(!0),I.current=!1,ae.current?.stop(),ae.current=null)},[]);return(0,G.jsxs)(n?`section`:`aside`,{style:{"--playback-inset":`${w}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:[(0,G.jsx)(Cee,{lines:m,list:F,active:r,playbackInset:w,beforeScroll:()=>E.current?.programmatic(),onFinding:we,toolbar:o,onClose:n?void 0:i},e),(0,G.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,G.jsx)(Jh,{enabled:r&&l,children:(0,G.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:F,onScroll:ee,onWheel:fe,onTouchStart:fe,onPointerDown:fe,onKeyDownCapture:fe,onKeyDown:xe,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,G.jsx)(`li`,{className:`loading-placeholder`,children:(0,G.jsx)(sv,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,G.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,G.jsxs)(`div`,{className:`empty-state-content`,children:[(0,G.jsx)(`div`,{className:`empty-tile`,children:(0,G.jsx)(dg,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),W(`Nothing heard yet.`)]})}),Ce.earlier>0&&(0,G.jsx)(`li`,{className:`flex justify-center`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-earlier`,onClick:()=>{E.current?.programmatic(),I.current=!1,v(!0)},className:`ghost-btn`,children:W(`Show earlier lines`)})}),Ce.runs.map(e=>(0,G.jsx)(U.Fragment,{children:_ee(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,G.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,G.jsxs)(`p`,{className:t?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":r,"data-folder-color":r===void 0?void 0:Dt[r],className:`line-who font-medium ${t?``:`text-muted`} ${i?`name-in`:`invisible`}`,children:Jv(n)}),(0,G.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:dv(n.startMs)})]}),vee(e).map(e=>(0,G.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,G.jsxs)(U.Fragment,{children:[t>0&&` `,(0,G.jsx)(Eee,{said:e.live})]},`live`);let n=Gv(e);return(0,G.jsxs)(U.Fragment,{children:[t>0&&` `,(0,G.jsx)(Dee,{line:e,focused:n===he,name:Jv(e),playing:n===D,playable:S,focusable:n===be,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:me,onFocusLine:ye})]},n)})},Gv(e[0])))]},Gv(n))})},e.k))]})}),t&&L&&!h&&(0,G.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:z,className:`workspace-button absolute bottom-3 start-1/2 -translate-x-1/2 rtl:translate-x-1/2`,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`}),W(`Latest`)]}),!t&&ne&&B&&D&&!h&&(0,G.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:ue,className:`workspace-button absolute bottom-3 start-1/2 -translate-x-1/2 rtl:translate-x-1/2`,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":B===`up`}),W(`Back to playing`)]})]}),r&&S&&(0,G.jsx)(`div`,{ref:C,className:`transcript-player-dock`,children:(0,G.jsx)(Dv,{ref:x,id:e,tracks:y,onTime:N,onPlaying:re,onBusy:e=>E.current?.pin(e)})})]})}function Qv({part:e,outline:t=!0}){return(0,G.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[t&&(0,G.jsx)(`div`,{className:`summary-outline`,"aria-hidden":`true`,children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`summary-outline-block`,children:[(0,G.jsx)(`div`,{className:`summary-outline-bar summary-outline-heading`}),[0,1].map(e=>(0,G.jsx)(`div`,{className:`summary-outline-bullet`,children:(0,G.jsx)(`div`,{className:`summary-outline-bar`})},e))]},e))}),(0,G.jsx)(`span`,{className:`sr-only`,children:e?W(`Reading a long meeting, part {part} of {of}…`,{part:e.part,of:e.of}):W(`Reading the transcript…`)})]})}function $v(e){this.content=e}$v.prototype={constructor:$v,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 $v(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 $v(n)},addToStart:function(e,t){return new $v([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new $v(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 $v(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=$v.from(e),e.size?new $v(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=$v.from(e),e.size?new $v(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=$v.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}},$v.from=function(e){if(e instanceof $v)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new $v(t)};function ey(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&&ry(e.charCodeAt(r-1))&&ny(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ey(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function ty(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&&ry(e.charCodeAt(i-1))&&ny(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=ty(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ny(e){return e>=56320&&e<57344}function ry(e){return e>=55296&&e<56320}var K=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 ey(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ty(this,e,t,n)}findIndex(e){if(e==0)return ay(0,e);if(e==this.size)return ay(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?ay(t+1,i):ay(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)`:``))}};K.empty=new K([],0);var iy={index:0,offset:0};function ay(e,t){return iy.index=e,iy.offset=t,iy}function oy(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(!oy(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!oy(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var sy=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&&oy(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}};sy.none=[];var cy=class extends Error{},q=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=uy(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(ly(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(K.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)}};q.empty=new q(K.empty,0,0);function ly(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(ly(a.content,t-i-1,n-i-1)))}function uy(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=uy(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 Oee(e,t,n){if(n.openStart>e.depth)throw new cy(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new cy(`Inconsistent open depths`);return dy(e,t,n,0)}function dy(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=dy(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return gy(a,vy(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return gy(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=kee(n,e);return gy(a,_y(e,i,o,t,r))}}function fy(e,t){if(!t.type.compatibleContent(e.type))throw new cy(`Cannot join `+t.type.name+` onto `+e.type.name)}function py(e,t,n){let r=e.node(n);return fy(r,t.node(n)),r}function my(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 hy(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&&(my(e.nodeAfter,r),a++));for(let e=a;e<o;e++)my(i.child(e),r);t&&t.depth==n&&t.textOffset&&my(t.nodeBefore,r)}function gy(e,t){if(!e.type.validContent(t))throw new cy(`Invalid content for node `+e.type.name);return e.copy(t)}function _y(e,t,n,r,i){let a=e.depth>i&&py(e,t,i+1),o=r.depth>i&&py(n,r,i+1),s=[];return hy(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(fy(a,o),my(gy(a,_y(e,t,n,r,i+1)),s)):(a&&my(gy(a,vy(e,t,i+1)),s),hy(t,n,i,s),o&&my(gy(o,vy(n,r,i+1)),s)),hy(r,null,i,s),new K(s)}function vy(e,t,n){let r=[];return hy(null,e,n,r),e.depth>n&&my(gy(py(e,t,n+1),vy(e,t,n+1)),r),hy(t,null,n,r),new K(r)}function kee(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(K.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var yy=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 sy.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 xy(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=by.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 by.set(t,r=new Aee);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%jee,i}},Aee=class{constructor(){this.elts=[],this.i=0}},jee=12,by=new WeakMap,xy=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)}},Mee=Object.create(null),Sy=class e{constructor(e,t,n,r=sy.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||K.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&&oy(this.attrs,t||e.defaultAttrs||Mee)&&sy.sameSet(this.marks,n||sy.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 q.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new q(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Oee(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 yy.resolveCached(this,e)}resolveNoCache(e){return yy.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()+`)`),wy(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=K.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),Ty(this.type.attrs,this.attrs,`node`,this.type.name);let e=sy.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];Ty(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!sy.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=K.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Sy.prototype.text=void 0;var Cy=class e extends Sy{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):wy(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 wy(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Ty(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 Ey=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Dy(t,n);if(r.next==null)return e.empty;let i=Oy(r);r.next&&r.err(`Unexpected trailing text`);let a=Ry(Fy(i));return zy(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 K.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(`
+`)}};Ey.empty=new Ey(!0);var Dy=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 Oy(e){let t=[];do t.push(ky(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function ky(e){let t=[];do t.push(Ay(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ay(e){let t=Py(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=My(e,t);else break;return t}function jy(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function My(e,t){let n=jy(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:jy(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Ny(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 Py(e){if(e.eat(`(`)){let t=Oy(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Ny(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 Fy(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 Iy(e,t){return t-e}function Ly(e,t){let n=[];return r(t),n.sort(Iy);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 Ry(e){let t=Object.create(null);return n(Ly(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]);Ly(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ey(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Iy);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function zy(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 By(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 Vy(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 Hy(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Gy(e,r,t[r]);return n}var Uy=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=Hy(e,n.attrs),this.defaultAttrs=By(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==Ey.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:Vy(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Sy(this,this.computeAttrs(e),K.from(t),sy.setFrom(n))}createChecked(e=null,t,n){return t=K.from(t),this.checkContent(t),new Sy(this,this.computeAttrs(e),t,sy.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=K.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(K.empty,!0);return i?new Sy(this,e,t.append(i),sy.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:sy.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 Wy(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 Gy=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Wy(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},Ky=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Hy(e,r.attrs),this.excluded=null;let i=By(this.attrs);this.instance=i?new sy(this,i):null}create(e=null){return!e&&this.instance?this.instance:new sy(this,Vy(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}},qy=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=$v.from(e.nodes),t.marks=$v.from(e.marks||{}),this.nodes=Uy.compile(this.spec.nodes,this),this.marks=Ky.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]=Ey.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?Jy(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==``?[]:Jy(this,n.split(` `))}this.nodeFromJSON=e=>Sy.fromJSON(this,e),this.markFromJSON=e=>sy.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 Uy))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 Cy(n,n.defaultAttrs,e,sy.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 Jy(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 Yy(e){return e.tag!=null}function Xy(e){return e.style!=null}var Zy=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(Yy(e))this.tags.push(e);else if(Xy(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 ob(this,t,!1);return n.addAll(e,sy.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new ob(this,t,!0);return n.addAll(e,sy.none,t.from,t.to),q.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(cb(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=lb(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=lb(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)))}},Qy={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},$y={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},eb={ol:!0,ul:!0},tb=1,nb=2,rb=4;function ib(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?tb:0)|(t===`full`?nb:0)}var ab=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=sy.none,this.match=i||(a&rb?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(K.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&tb)){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=K.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(K.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&&!Qy.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},ob=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=ib(null,t.preserveWhitespace,0)|(n?rb:0);i=r?new ab(r.type,r.attrs,sy.none,!0,t.topMatch||r.type.contentMatch,a):n?new ab(null,null,sy.none,!0,null,a):new ab(e.schema.topNodeType,null,sy.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&nb?`full`:this.localPreserveWS||(r.options&tb)>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;eb.hasOwnProperty(a)&&this.parser.normalizeLists&&sb(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:$y.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(Qy.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=sy.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):ub(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=ib(e,i,a.options);a.options&rb&&a.content.length==0&&(o|=rb);let s=sy.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):ub(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new ab(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|=tb);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 sb(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&eb.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function cb(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function lb(e){let t={};for(let n in e)t[n]=e[n];return t}function ub(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 db=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=pb(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 pb(t).createTextNode(e.text);let{dom:n,contentDOM:r}=_b(pb(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&&_b(pb(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:_b(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=fb(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return fb(e.marks)}};function fb(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function pb(e){return e.document||window.document}var mb=new WeakMap;function hb(e){let t=mb.get(e);return t===void 0&&mb.set(e,t=gb(e)),t}function gb(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 _b(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=hb(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}=_b(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var vb=65535,yb=2**16;function bb(e,t){return e+t*yb}function xb(e){return e&vb}function Sb(e){return(e-(e&vb))/yb}var Cb=1,wb=2,Tb=4,Eb=8,Db=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Eb)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Tb)>0}},Ob=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=xb(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+Sb(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:bb(o/3,e-s),f=0;return c&&(f|=e==s?wb:e==u?Cb:Tb,(t<0?e!=s:e!=u)&&(f|=Eb)),new Db(a,f,d)}r+=l-c}return n?e+r:new Db(e+r,0,null)}touches(e,t){let n=0,r=xb(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])}};Ob.empty=new Ob([]);var kb=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 Db(e,r,null)}},Ab=Object.create(null),jb=class{getMap(){return Ob.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Ab[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ab)throw RangeError(`Duplicate use of step JSON ID `+e);return Ab[e]=t,t.prototype.jsonID=e,t}},Mb=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 cy)return e.fail(t.message);throw t}}};function Nb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Nb(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return K.fromArray(r)}var Pb=class e extends jb{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 q(Nb(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 Mb.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(!sy.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);Ib(Fb,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||Ib(e,a,o,r,n)}}}),n.length==1?n[0]:new Lb(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))}};jb.jsonID(`addMark`,Pb);var Fb=class e extends jb{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 q(Nb(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Mb.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)&&Ib(Pb,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new Lb(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))}};jb.jsonID(`removeMark`,Fb);function Ib(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 Lb=class e extends jb{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 Mb(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=>jb.fromJSON(t,e)))}};jb.jsonID(`markSet`,Lb);var Rb=class e extends jb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Mb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Mb.fromReplace(e,this.pos,this.pos+1,new q(K.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 zb(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))}};jb.jsonID(`addNodeMark`,Rb);var zb=class e extends jb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Mb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Mb.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Rb(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))}};jb.jsonID(`removeNodeMark`,zb);var Bb=class e extends jb{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Hb(e,this.from,this.to)?Mb.fail(`Structure replace would overwrite content`):Mb.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ob([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?q.empty:new q(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?q.empty:new q(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,q.fromJSON(t,n.slice),!!n.structure)}};Bb.MAP_BIAS=1,jb.jsonID(`replace`,Bb);var Vb=class e extends jb{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&&(Hb(e,this.from,this.gapFrom)||Hb(e,this.gapTo,this.to)))return Mb.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Mb.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Mb.fromReplace(e,this.from,this.to,n):Mb.fail(`Content does not fit in gap`)}getMap(){return new Ob([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,q.fromJSON(t,n.slice),n.insert,!!n.structure)}};jb.jsonID(`replaceAround`,Vb);function Hb(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 Ub(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)&&Ib(Pb,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function Wb(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 Ky){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 Fb(t.from,t.to,t.style)))}function Gb(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 Bb(s,l,q.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Fb(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 q(K.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Bb(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(K.empty,!0);e.replace(s,s,new q(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Kb(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function qb(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||!Kb(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function Jb(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=K.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=K.from(r.node(e).copy(u)),d++):c--;let f=K.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=K.from(i.node(e).copy(f)),p++):l++;e.step(new Vb(c,l,o,s,new q(u.append(f),d,p),u.size-d,!0))}function Yb(e,t,n=null,r=e){let i=Zb(e,t),a=i&&Qb(r,t);return a?i.map(Xb).concat({type:t,attrs:n}).concat(a.map(Xb)):null}function Xb(e){return{type:e,attrs:null}}function Zb(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 Qb(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 $b(e,t,n){let r=K.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=K.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new Vb(i,a,i,a,new q(r,0,0),n.length,!0))}function ex(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)&&rx(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&&nx(e,t,n,a),Gb(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 Vb(c,l,c+1,l-1,new q(K.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&tx(e,t,n,a),!1}})}function tx(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 nx(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 rx(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function ix(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 Vb(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new q(K.from(o),0,0),1,!0))}function ax(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 ox(e,t,n=1,r){let i=e.doc.resolve(t),a=K.empty,o=K.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=K.from(i.node(e).copy(a));let t=r&&r[s];o=K.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new Bb(t,t,new q(a.append(o),n,n),!0))}function sx(e,t){let n=e.resolve(t),r=n.index();return lx(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function cx(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 lx(e,t){return!!(e&&t&&!e.isLeaf&&cx(e,t))}function ux(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&&lx(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 dx(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);nx(e,r.node(),r.before(),s)}o.inlineContent&&Gb(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 Bb(l,c.map(t+n,-1),q.empty,!0)),r===!0){let t=e.doc.resolve(l);tx(e,t.node(),t.before(),e.steps.length)}return e}function fx(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 px(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 mx(e,t,n=t,r=q.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return hx(i,a,r)?new Bb(t,n,r):new gx(i,a,r).fit()}function hx(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var gx=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=K.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=K.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 q(i,a,o);return e>-1?new Vb(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Bb(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=yx(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(K.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 wx(e,-1)<=t?!1:(this.unplaced.size>1&&wx(e,1)>n&&n++,this.unplaced=new q(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=yx(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new q(_x(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new q(_x(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(bx(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=vx(this.placed,t,K.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?q.empty:new q(_x(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new q(_x(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||!xx(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=xx(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=xx(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=vx(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=vx(this.placed,this.depth,K.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(K.empty,!0);e.childCount&&(this.placed=vx(this.placed,this.frontier.length,e))}};function _x(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(_x(e.firstChild.content,t-1,n)))}function vx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(vx(e.lastChild.content,t-1,n)))}function yx(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function bx(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,bx(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(K.empty,!0)))),e.copy(r)}function xx(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&&!Sx(n,a.content,o)?s:null}function Sx(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Cx(e){return e.spec.defining||e.spec.definingForContent}function wx(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 Tx(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(hx(i,a,r))return e.step(new Bb(t,n,r));let o=kx(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=Cx(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 q(Ex(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 Ex(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Ex(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(K.empty,!0))}return e}function Dx(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=fx(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new q(K.from(r),0,0))}function Ox(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=kx(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 kx(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 Ax=class e extends jb{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 Mb.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 Mb.fromReplace(e,this.pos,this.pos+1,new q(K.from(r),0,+!t.isLeaf))}getMap(){return Ob.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)}};jb.jsonID(`attr`,Ax);var jx=class e extends jb{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 Mb.ok(n)}getMap(){return Ob.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)}};jb.jsonID(`docAttr`,jx);var Mx=class extends Error{};Mx=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Mx.prototype=Object.create(Error.prototype),Mx.prototype.constructor=Mx,Mx.prototype.name=`TransformError`;var Nx=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new kb}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Mx(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=q.empty){let r=mx(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new q(K.from(n),0,0))}delete(e,t){return this.replace(e,t,q.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Tx(this,e,t,n),this}replaceRangeWith(e,t,n){return Dx(this,e,t,n),this}deleteRange(e,t){return Ox(this,e,t),this}lift(e,t){return Jb(this,e,t),this}join(e,t=1){return dx(this,e,t),this}wrap(e,t){return $b(this,e,t),this}setBlockType(e,t=e,n,r=null){return ex(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return ix(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Ax(e,t,n)),this}setDocAttribute(e,t){return this.step(new jx(e,t)),this}addNodeMark(e,t){return this.step(new Rb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof sy)t.isInSet(n.marks)&&this.step(new zb(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new zb(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 ox(this,e,t,n),this}addMark(e,t,n){return Ub(this,e,t,n),this}removeMark(e,t,n){return Wb(this,e,t,n),this}clearIncompatible(e,t,n){return Gb(this,e,t,n),this}},Px=Object.create(null),Fx=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ix(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=q.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?q.empty:t),o==0&&Wx(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),Wx(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new zx(e):Ux(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?Ux(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Ux(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 Hx(e.node(0))}static atStart(e){return Ux(e,e,0,0,1)||new Hx(e)}static atEnd(e){return Ux(e,e,e.content.size,e.childCount,-1)||new Hx(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Px[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Px)throw RangeError(`Duplicate use of selection JSON ID `+e);return Px[e]=t,t.prototype.jsonID=e,t}getBookmark(){return zx.between(this.$anchor,this.$head).getBookmark()}};Fx.prototype.visible=!0;var Ix=class{constructor(e,t){this.$from=e,this.$to=t}},Lx=!1;function Rx(e){!Lx&&!e.parent.inlineContent&&(Lx=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var zx=class e extends Fx{constructor(e,t=e){Rx(e),Rx(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 Fx.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=q.empty){if(super.replace(e,t),t==q.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 Bx(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=Fx.findFrom(n,r,!0)||Fx.findFrom(n,-r,!0);if(e)n=e.$head;else return Fx.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Fx.findFrom(t,-r,!0)||Fx.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};Fx.jsonID(`text`,zx);var Bx=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 zx.between(e.resolve(this.anchor),e.resolve(this.head))}},Vx=class e extends Fx{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?Fx.near(a):new e(a)}content(){return new q(K.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 Nee(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}};Vx.prototype.visible=!1,Fx.jsonID(`node`,Vx);var Nee=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Bx(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Vx.isSelectable(n)?new Vx(t):Fx.near(t)}},Hx=class e extends Fx{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=q.empty){if(t==q.empty){e.delete(0,e.doc.content.size);let t=Fx.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 Pee}};Fx.jsonID(`all`,Hx);var Pee={map(){return this},resolve(e){return new Hx(e)}};function Ux(e,t,n,r,i,a=!1){if(t.inlineContent)return zx.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=Ux(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Vx.isSelectable(r))return Vx.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Wx(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Bb||i instanceof Vb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(Fx.near(e.doc.resolve(o),n))}var Gx=1,Kx=2,qx=4,Fee=class extends Nx{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|Gx)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&Gx)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Kx,this}ensureMarks(e){return sy.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&Kx)>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)||sy.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(Fx.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|=qx,this}get scrolledIntoView(){return(this.updated&qx)>0}};function Jx(e,t){return!t||!e?e:e.bind(t)}var Yx=class{constructor(e,t,n){this.name=e,this.init=Jx(t.init,n),this.apply=Jx(t.apply,n)}},Iee=[new Yx(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Yx(`selection`,{init(e,t){return e.selection||Fx.atStart(t.doc)},apply(e){return e.selection}}),new Yx(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Yx(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],Xx=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Iee.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 Yx(e.key,e.spec.state,e))})}},Zx=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 Fee(this)}static create(t){let n=new Xx(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 Xx(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 Xx(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=Sy.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=Fx.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 Qx(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=Qx(i,t,{})),n[r]=i}return n}var $x=class{constructor(e){this.spec=e,this.props={},e.props&&Qx(e.props,this,this.props),this.key=e.key?e.key.key:tS(`plugin`)}getState(e){return e[this.key]}},eS=Object.create(null);function tS(e){return e in eS?e+`$`+ ++eS[e]:(eS[e]=0,e+`$`)}var nS=class{constructor(e=`key`){this.key=tS(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Lee=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})),rS=o(((e,t)=>{t.exports=Lee()})),iS=rS(),aS=Object.defineProperty,Ree=(e,t)=>{let n={};for(var r in e)aS(n,r,{get:e[r],enumerable:!0});return t||aS(n,Symbol.toStringTag,{value:`Module`}),n},oS=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function sS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var cS=(e,t,n)=>{let r=sS(e,n);if(!r)return!1;let i=fS(r);if(!i){let n=r.blockRange(),i=n&&qb(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(SS(e,i,t,-1))return!0;if(r.parent.content.size==0&&(uS(a,`end`)||Vx.isSelectable(a)))for(let n=r.depth;;n--){let o=mx(e.doc,r.before(n),r.after(n),q.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(uS(a,`end`)?Fx.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):Vx.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},zee=(e,t,n)=>{let r=sS(e,n);if(!r)return!1;let i=fS(r);return i?lS(e,i,t):!1},Bee=(e,t,n)=>{let r=pS(e,n);if(!r)return!1;let i=gS(r);return i?lS(e,i,t):!1};function lS(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=mx(e.doc,i,o,q.empty);if(!s||s.from!=i||s instanceof Bb&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(zx.create(t.doc,i)),n(t.scrollIntoView())}return!0}function uS(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 dS=(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=fS(r)}let o=a&&a.nodeBefore;return!o||!Vx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Vx.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function fS(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 pS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var mS=(e,t,n)=>{let r=pS(e,n);if(!r)return!1;let i=gS(r);if(!i)return!1;let a=i.nodeAfter;if(SS(e,i,t,1))return!0;if(r.parent.content.size==0&&(uS(a,`start`)||Vx.isSelectable(a))){let n=mx(e.doc,r.before(),r.after(),q.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(uS(a,`start`)?Fx.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Vx.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},hS=(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=gS(r)}let o=a&&a.nodeAfter;return!o||!Vx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Vx.create(e.doc,a.pos)).scrollIntoView()),!0)};function gS(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 Vee=(e,t)=>{let n=e.selection,r=n instanceof Vx,i;if(r){if(n.node.isTextblock||!sx(e.doc,n.from))return!1;i=n.from}else if(i=ux(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(Vx.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},Hee=(e,t)=>{let n=e.selection,r;if(n instanceof Vx){if(n.node.isTextblock||!sx(e.doc,n.to))return!1;r=n.to}else if(r=ux(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Uee=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&qb(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},_S=(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 vS(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 yS=(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=vS(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(Fx.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},bS=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Hx||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=vS(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(zx.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},xS=(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(ax(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&qb(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function Wee(e){return(t,n)=>{if(t.selection instanceof Vx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!ax(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 zx||t.selection instanceof Hx)&&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=vS(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=ax(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,ax(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 Gee=Wee(),Kee=(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(Vx.create(e.doc,i))),!0)},qee=(e,t)=>(t&&t(e.tr.setSelection(new Hx(e.doc))),!0);function Jee(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||sx(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function SS(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&Jee(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=K.empty;for(let e=o.length-1;e>=0;e--)s=K.from(o[e].create(null,s));s=K.from(i.copy(s));let c=e.tr.step(new Vb(t.pos-1,r,t.pos,r,new q(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&sx(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:Fx.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&qb(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&uS(a,`start`,!0)&&uS(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=K.empty;for(let e=o.length-1;e>=0;e--)r=K.from(o[e].copy(r));n(e.tr.step(new Vb(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new q(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function CS(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(zx.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var wS=CS(-1),TS=CS(1);function Yee(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&Yb(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function ES(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 DS(...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 OS=DS(oS,cS,dS),kS=DS(oS,mS,hS),AS={Enter:DS(_S,bS,xS,Gee),"Mod-Enter":yS,Backspace:OS,"Mod-Backspace":OS,"Shift-Backspace":OS,Delete:kS,"Mod-Delete":kS,"Mod-a":qee},Xee={"Ctrl-h":AS.Backspace,"Alt-Backspace":AS[`Mod-Backspace`],"Ctrl-d":AS.Delete,"Ctrl-Alt-Backspace":AS[`Mod-Delete`],"Alt-Delete":AS[`Mod-Delete`],"Alt-d":AS[`Mod-Delete`],"Ctrl-a":wS,"Ctrl-e":TS};for(let e in AS)Xee[e]=AS[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function Zee(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 Qee(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function Qee(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 xy(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new xy(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=Yb(a,n,r,t);return s?(e&&$ee(e,t,s,i,n),!0):!1}function $ee(e,t,n,r,i){let a=K.empty;for(let e=n.length-1;e>=0;e--)a=K.from(n[e].type.create(n[e].attrs,a));e.step(new Vb(t.start-(r?2:0),t.end,t.start,t.end,new q(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&&ax(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function ete(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?tte(t,n,e,a):nte(t,n,a):!0:!1}}function tte(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Vb(a-1,o,a,o,new q(K.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new xy(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=qb(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return sx(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function nte(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?K.empty:K.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new Vb(d-+!!s,f+ +!!c,d+1,f-1,new q((s?K.empty:K.from(i.copy(K.empty))).append(c?K.empty:K.from(i.copy(K.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function rte(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=K.from(r?e.create():null),o=new q(K.from(e.create(null,K.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new Vb(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var jS=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},MS=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},NS=null,PS=function(e,t,n){let r=NS||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},ite=function(){NS=null},FS=function(e,t,n,r){return n&&(IS(e,t,n,r,-1)||IS(e,t,n,r,1))},ate=/^(img|br|input|textarea|hr)$/i;function IS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:LS(e))){let n=e.parentNode;if(!n||!RS(n)||VS(e)||ate.test(e.nodeName)||e.contentEditable==`false`)return!1;t=jS(e)+(i<0?0:1),e=n}else if(RS(e)){let n=e.childNodes[t+(i<0?-1:0)];if(RS(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?LS(e):0}else return!1}}function LS(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function RS(e){return e.nodeType==1}function zS(e){return e.nodeType==3}function BS(e,t){return t?e.contains(RS(t)?t:t.parentNode):!1}function ote(e,t){for(;;){if(zS(e)&&t)return e;if(RS(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=LS(e)}else if(e.parentNode&&!VS(e))t=jS(e),e=e.parentNode;else return null}}function ste(e,t){for(;;){if(zS(e)&&t<e.nodeValue.length)return e;if(RS(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!VS(e))t=jS(e)+1,e=e.parentNode;else return null}}function cte(e,t,n){for(let r=t==0,i=t==LS(e);r||i;){if(e==n)return!0;let t=jS(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==LS(e)}}function VS(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 HS=function(e){return e.focusNode&&FS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function US(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function WS(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function GS(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(LS(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(LS(r.startContainer),r.startOffset)}}}var KS=typeof navigator<`u`?navigator:null,qS=typeof document<`u`?document:null,JS=KS&&KS.userAgent||``,YS=/Edge\/(\d+)/.exec(JS),XS=/MSIE \d/.exec(JS),ZS=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(JS),QS=!!(XS||ZS||YS),$S=XS?document.documentMode:ZS?+ZS[1]:YS?+YS[1]:0,eC=!QS&&/gecko\/(\d+)/i.test(JS);eC&&+(/Firefox\/(\d+)/.exec(JS)||[0,0])[1];var tC=!QS&&/Chrome\/(\d+)/.exec(JS),nC=!!tC,rC=tC?+tC[1]:0,iC=!QS&&!!KS&&/Apple Computer/.test(KS.vendor),aC=iC&&(/Mobile\/\w+/.test(JS)||!!KS&&KS.maxTouchPoints>2),oC=aC||(KS?/Mac/.test(KS.platform):!1),sC=KS?/Win/.test(KS.platform):!1,cC=/Android \d/.test(JS),lC=!!qS&&`webkitFontSmoothing`in qS.documentElement.style,uC=lC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function dC(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 fC(e,t){return typeof e==`number`?e:e[t]}function pC(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 mC(e,t,n){if(!kC(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(!RS(o)){o=MS(o);continue}let e=o==a.body,n=e?dC(a):pC(o),s=0,c=0;if(t.top<n.top+fC(r,`top`)?c=-(n.top-t.top+fC(i,`top`)):t.bottom>n.bottom-fC(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+fC(i,`top`)-n.top:t.bottom-n.bottom+fC(i,`bottom`)),t.left<n.left+fC(r,`left`)?s=-(n.left-t.left+fC(i,`left`)):t.right>n.right-fC(r,`right`)&&(s=t.right-n.right+fC(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:MS(o)}}function hC(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:gC(e.dom)}}function gC(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=MS(r));return t}function _C({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;vC(n,r==0?0:r-t)}function vC(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 yC=null;function bC(e){if(e.setActive)return e.setActive();if(yC)return e.focus(yC);let t=gC(e);e.focus(yC==null?{get preventScroll(){return yC={preventScroll:!0},!0}}:void 0),yC||(yC=!1,vC(t,0))}function xC(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(RS(u))e=u.getClientRects();else if(zS(u))e=PS(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&&zS(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,RS(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&&zS(n)?SC(n,i):!n||r?{node:e,offset:a}:xC(n,i)}function SC(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=AC(r,1);if(n.top!=n.bottom&&CC(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function CC(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function wC(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function TC(e,t,n){let{node:r,offset:i}=xC(t,n),a=-1;if(RS(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 EC(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(RS(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 DC(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(RS(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(CC(t,i))return DC(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function OC(e,t){let n=e.dom.ownerDocument,r,i=0,a=GS(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(!CC(t,n)||(o=DC(e.dom,t,n),!o))return null}if(iC)for(let e=o;r&&e;e=MS(e))e.draggable&&(r=void 0);if(o=wC(o,t),r){if(eC&&RS(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;lC&&i&&RS(r)&&RS(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&RS(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&RS(r)&&r.childNodes[i-1].nodeName==`BR`||(s=EC(e,r,i,t))}s??=TC(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function kC(e){return e.top<e.bottom||e.left<e.right}function AC(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(kC(e))return e}return Array.prototype.find.call(n,kC)||e.getBoundingClientRect()}var jC=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function MC(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=lC||eC;if(zS(r)){if(o&&(jC.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=AC(PS(r,i,i),n);if(eC&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=AC(PS(r,i-1,i-1),-1);if(t.top==e.top){let n=AC(PS(r,i,i+1),-1);if(n.top!=e.top)return NC(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++,NC(AC(PS(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==LS(r))){let e=r.childNodes[i-1];if(RS(e))return PC(e.getBoundingClientRect(),!1)}if(a==null&&i<LS(r)){let e=r.childNodes[i];if(RS(e))return PC(e.getBoundingClientRect(),!0)}return PC(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==LS(r))){let e=r.childNodes[i-1],t=zS(e)?PS(e,LS(e)-+!o):RS(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return NC(AC(t,1),!1)}if(a==null&&i<LS(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?zS(e)?PS(e,0,+!o):RS(e)?e:null:null;if(t)return NC(AC(t,-1),!0)}return NC(AC(zS(r)?PS(r):r,-n),n>=0)}function NC(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 PC(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 FC(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 IC(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return FC(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=MC(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(RS(e))t=e.getClientRects();else if(zS(e))t=PS(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 LC=/[\u0590-\u08ac]/;function RC(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?!LC.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:FC(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&&!BS(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 zC=null,BC=null,VC=!1;function HC(e,t,n){return zC==t&&BC==n?VC:(zC=t,BC=n,VC=n==`up`||n==`down`?IC(e,t,n):RC(e,t,n))}var UC=0,WC=1,GC=2,KC=3,qC=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=UC,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&&BS(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>jS(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)&&!(RS(a)?BS(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 ew||e instanceof JC&&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?jS(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?jS(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=jS(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=jS(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(!RS(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((eC||iC)&&e==t){let{node:e,offset:t}=o;if(zS(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:jS(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(eC&&l.focusNode&&l.focusNode!=s.node&&RS(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&iC)&&FS(o.node,o.offset,l.anchorNode,l.anchorOffset)&&FS(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&eC)){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?GC:WC,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=KC:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?GC:KC}n=a}this.dirty=GC}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?GC:WC;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},JC=class extends qC{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=RS(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==UC&&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}},YC=class extends qC{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}},XC=class e extends qC{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=db.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&KC||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=KC&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=UC){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=UC}}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()}},ZC=class e extends qC{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(!zS(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=db.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=cw(u,r,n),l?c=new tw(t,n,r,i,u,d||null,f,l):n.isText?new $C(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=>RS(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>K.empty}}return t}matchesNode(e,t,n){return this.dirty==UC&&e.eq(this.node)&&lw(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 dw(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;mw(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?sy.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==GC)&&(a&&this.protectLocalComposition(e,a),nw(this.contentDOM,this.children,e),aC&&hw(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof zx)||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=gw(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 YC(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==KC||!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=UC}updateOuterDeco(e){if(lw(e,this.outerDeco))return;let t=!RS(this.nodeDOM),n=this.dom;this.dom=ow(this.dom,this.nodeDOM,aw(this.outerDeco,this.node,t),aw(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){RS(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){RS(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 QC(e,t,n,r,i){cw(r,t,e);let a=new ZC(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var $C=class e extends ZC{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==KC||this.dirty!=UC&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=UC||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=UC,!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=KC)}get domAtom(){return!1}isText(e){return this.node.text==e}},ew=class extends qC{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==UC&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},tw=class extends ZC{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==KC)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 nw(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=uw(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof XC){let t=r?r.previousSibling:e.lastChild;nw(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=uw(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var rw=function(e){e&&(this.nodeName=e)};rw.prototype=Object.create(null);var iw=[new rw];function aw(e,t,n){if(e.length==0)return iw;let r=n?iw[0]:new rw,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new rw(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new rw(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 ow(e,t,n,r){if(n==iw&&r==iw)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=iw[0]),i=t}sw(i,o||iw[0],a)}return i}function sw(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 cw(e,t,n){return ow(e,e,iw,aw(t,n,!RS(e)))}function lw(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 uw(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var dw=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=fw(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=UC,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 XC&&t.dirty!=KC&&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=XC.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==KC&&a.dom==a.contentDOM&&(a.dirty=GC),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 ZC){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!=KC&&lw(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=GC,u.updateChildren(r,a+1),u.dirty=UC),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)||!lw(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=ZC.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=ZC.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 JC(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 XC;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof $C)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((iC||nC)&&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 ew(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||RS(e)&&e.contains(this.lock.parentNode))}};function fw(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 XC)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 pw(e,t){return e.type.side-t.type.side}function mw(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(pw);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 hw(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 gw(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 vw(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(HS(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Vx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&cte(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Vx(o==e?s:r.resolve(e))}else if(eC&&t==`key`&&o>e.state.selection.to&&RS(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=Fx.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!RS(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=kw(e,u,s,n)}return l}function yw(e){return e.editable?e.hasFocus():jw(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function bw(e,t=!1){let n=e.state.selection;if(Dw(e,n),!yw(e))return;let r=e.input.mouseDown;if(!t&&nC&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&FS(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Ew(e);else{let{anchor:r,head:i}=n,a,o;xw&&!(n instanceof zx)&&(n.$from.parent.inlineContent||(a=Sw(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=Sw(e,n.to))),e.docView.setSelection(r,i,e,t),xw&&(a&&ww(a),o&&ww(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&Tw(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var xw=iC||nC&&rC<63;function Sw(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(iC&&i&&i.contentEditable==`false`)return Cw(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return Cw(i);if(a)return Cw(a)}}function Cw(e){return e.contentEditable=`true`,iC&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ww(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function Tw(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(()=>{(!yw(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function Ew(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,jS(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&QS&&$S<=11&&(n.disabled=!0,n.disabled=!1)}function Dw(e,t){if(t instanceof Vx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ow(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ow(e)}function Ow(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function kw(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||zx.between(t,n,r)}function Aw(e){return e.editable&&!e.hasFocus()?!1:jw(e)}function jw(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return BS(e.dom,t.anchorNode)&&(e.editable||BS(e.dom,t.focusNode))}catch{return!1}}function Mw(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return FS(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Nw(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&&Fx.findFrom(a,t)}function Pw(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Fw(e,t,n){let r=e.state.selection;if(r instanceof zx){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 Pw(e,new zx(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=Nw(e.state,t);return n&&n instanceof Vx?Pw(e,n):!1}if(!oC||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?Vx.isSelectable(i)?Pw(e,new Vx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):Pw(e,new zx(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof Vx&&r.node.isInline)return Pw(e,new zx(t>0?r.$to:r.$from));else{let n=Nw(e.state,t);return n?Pw(e,n):!1}}function Iw(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):RS(e)&&e.contentEditable==`false`}function Lw(e,t){return t<0?Rw(e):zw(e)}function Rw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(eC&&RS(n)&&r<LS(n)&&Iw(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!RS(n))break;let e=n.childNodes[r-1];if(Iw(e,-1))i=n,a=--r;else if(zS(e))n=e,r=n.nodeValue.length;else break}else if(Bw(n))break;else{let t=n.previousSibling;for(;t&&Iw(t,-1);)i=n.parentNode,a=jS(t),t=t.previousSibling;if(t)n=t,r=LS(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?Uw(e,n,r):i&&Uw(e,i,a)}function zw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=LS(n),a,o;for(;;)if(r<i){if(!RS(n))break;let e=n.childNodes[r];if(Iw(e,1))a=n,o=++r;else break}else if(Bw(n))break;else{let t=n.nextSibling;for(;t&&Iw(t,1);)a=t.parentNode,o=jS(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=LS(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&Uw(e,a,o)}function Bw(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Vw(e,t){for(;e&&t==e.childNodes.length&&!VS(e);)t=jS(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(zS(n))return n;if(RS(n)&&n.contentEditable==`false`)break;e=n,t=0}}function Hw(e,t){for(;e&&!t&&!VS(e);)t=jS(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(zS(n))return n;if(RS(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function Uw(e,t,n){if(!zS(t)){let e,r;(r=Vw(t,n))?(t=r,n=0):(e=Hw(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;HS(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&&bw(e)},50)}function Ww(e,t){let n=e.state.doc.resolve(t);if(!(nC||sC)&&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 Gw(e,t,n){let r=e.state.selection;if(r instanceof zx&&!r.empty||n.indexOf(`s`)>-1||oC&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=Nw(e.state,t);if(n&&n instanceof Vx)return Pw(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof Hx?Fx.near(n,t):Fx.findFrom(n,t);return o?Pw(e,o):!1}return!1}function Kw(e,t){if(!(e.state.selection instanceof zx))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 qw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Jw(e){if(!iC||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&RS(t)&&n==0&&t.firstChild&&RS(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;qw(e,n,`true`),setTimeout(()=>qw(e,n,`false`),20)}return!1}function Yw(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function Xw(e,t){let n=t.keyCode,r=Yw(t);if(n==8||oC&&n==72&&r==`c`)return Kw(e,-1)||Lw(e,-1);if(n==46&&!t.shiftKey||oC&&n==68&&r==`c`)return Kw(e,1)||Lw(e,1);if(n==13||n==27)return!0;if(n==37||oC&&n==66&&r==`c`){let t=n==37?Ww(e,e.state.selection.from)==`ltr`?-1:1:-1;return Fw(e,t,r)||Lw(e,t)}if(n==39||oC&&n==70&&r==`c`){let t=n==39?Ww(e,e.state.selection.from)==`ltr`?1:-1:1;return Fw(e,t,r)||Lw(e,t)}return n==38||oC&&n==80&&r==`c`?Gw(e,-1,r)||Lw(e,-1):n==40||oC&&n==78&&r==`c`?Jw(e)||Gw(e,1,r)||Lw(e,1):!(r!=(oC?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function Zw(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`)||db.fromSchema(e.state.schema),s=sT(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&RS(l)&&(u=oT[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&&RS(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 Qw(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 q(K.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=db.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=uT(n),lC&&dT(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&&!RS(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||Zy.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!$w.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=fT(aT(s,+u[1],+u[2]),u[4]);else if(s=q.maxOpen(eT(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=aT(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var $w=/^(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 eT(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&&nT(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=rT(a[a.length-1],i.length));let n=tT(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return K.from(a)}return e}function tT(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,K.from(e));return e}function nT(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=nT(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(K.from(tT(n,e,i+1))))}}function rT(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,rT(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(K.empty,!0);return e.copy(n.append(r))}function iT(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=iT(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(K.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function aT(e,t,n){return t<e.openStart&&(e=new q(iT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new q(iT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var oT={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 sT(){return document.implementation.createHTMLDocument(`title`)}var cT=null;function lT(e){let t=window.trustedTypes;if(!t)return e;if(!cT){if(cT=t.defaultPolicy)try{return cT.createHTML(e)}catch{}cT=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return cT.createHTML(e)}function uT(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=sT(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&oT[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=lT(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 dT(e){let t=e.querySelectorAll(nC?`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 fT(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=K.from(t.create(r[e+1],i))}catch{break}a++,o++}return new q(i,a,o)}var pT={},mT={},hT={touchstart:!0,touchmove:!0},gT=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 pT){let n=pT[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{ST(e,t)&&!xT(e,t)&&(e.editable||!(t.type in mT))&&n(e,t)},hT[t]?{passive:!0}:void 0)}iC&&e.dom.addEventListener(`input`,()=>null),bT(e)}function vT(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function yT(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 bT(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>xT(e,t))})}function xT(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function ST(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 CT(e,t){!xT(e,t)&&pT[t.type]&&(e.editable||!(t.type in mT))&&pT[t.type](e,t)}mT.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!BT(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(cC&&nC&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),aC&&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,US(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||Xw(e,n)?n.preventDefault():vT(e,`key`)}},mT.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},mT.keypress=(e,t)=>{let n=t;if(BT(e)||!n.charCode||n.ctrlKey&&!n.altKey||oC&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof zx)||!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 wT(e){return{left:e.clientX,top:e.clientY}}function TT(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function ET(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 DT(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 OT(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Vx.isSelectable(r)?(DT(e,new Vx(n)),!0):!1}function kT(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Vx&&(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(Vx.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&&(DT(e,Vx.create(e.state.doc,i)),!0)}function AT(e,t,n,r,i){return ET(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?kT(e,n):OT(e,n))}function jT(e,t,n,r){return ET(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function MT(e,t,n,r){return ET(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||NT(e,n,r)}function NT(e,t,n){if(n.button!=0)return!1;let r=PT(e,t,!0),i=e.state.doc;return r?(DT(e,r),r instanceof zx&&i.eq(e.state.doc)&&(e.input.mouseDown=new zT(e,r)),!0):!1}function PT(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?zx.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 zx.create(r,a+1,a+1+t.content.size);if(n&&Vx.isSelectable(t))return Vx.create(r,a)}return null}function FT(e){return KT(e)}var IT=oC?`metaKey`:`ctrlKey`;pT.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=FT(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&TT(n,e.input.lastClick)&&!n[IT]&&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(wT(n));o&&(a==`singleClick`?e.input.mouseDown=new RT(e,o,n,!!r):(a==`doubleClick`?jT:MT)(e,o.pos,o.inside,n)?n.preventDefault():vT(e,`pointer`))};var LT=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}},RT=class extends LT{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[IT],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&&RS(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Vx&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&eC&&!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()),vT(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||bw(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(wT(e))),this.updateAllowDefault(e),this.allowDefault||!t?vT(this.view,`pointer`):AT(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||iC&&this.mightDrag&&!this.mightDrag.node.isAtom||nC&&!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)?(DT(this.view,Fx.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):vT(this.view,`pointer`)}move(e){this.updateAllowDefault(e),vT(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}},zT=class extends LT{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(),vT(this.view,`pointer`);let t=this.view.posAtCoords(wT(e)),n=t&&PT(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];DT(this.view,zx.create(r,a,o))}};pT.touchstart=e=>{e.input.lastTouch=Date.now(),FT(e),vT(e,`pointer`)},pT.touchmove=e=>{e.input.lastTouch=Date.now(),vT(e,`pointer`)},pT.contextmenu=e=>FT(e);function BT(e,t){return e.composing?!0:iC&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var VT=cC?5e3:-1;mT.compositionstart=mT.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof zx&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||nC&&sC&&HT(e)))e.markCursor=e.state.storedMarks||n.marks(),KT(e,!0),e.markCursor=null;else if(KT(e,!t.selection.empty),eC&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&RS(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(zS(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}UT(e,VT)};function HT(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!RS(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return RS(r)&&r.contentEditable==`false`}mT.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++,UT(e,20))};function UT(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>KT(e),t))}function WT(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function GT(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=ote(t.focusNode,t.focusOffset),r=ste(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 KT(e,t=!1){if(!(cC&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),WT(e),t||e.docView&&e.docView.dirty){let n=vw(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 qT(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 JT=QS&&$S<15||aC&&uC<604;pT.copy=mT.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=JT?null:n.clipboardData,{dom:o,text:s}=Zw(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):qT(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function YT(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function XT(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?ZT(e,r.value,null,i,t):ZT(e,r.textContent,r.innerHTML,i,t)},50)}function ZT(e,t,n,r,i){let a=Qw(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||q.empty)))return!0;if(!a)return!1;let o=YT(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 QT(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,` `):``}mT.paste=(e,t)=>{let n=t;if(e.composing&&!cC)return;let r=JT?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ZT(e,QT(r),r.getData(`text/html`),i,n)?n.preventDefault():XT(e,n)};var $T=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},eE=oC?`altKey`:`ctrlKey`;function tE(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[eE]:!n}pT.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(wT(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Vx?i.to-1:i.to))){if(r&&r.mightDrag)o=Vx.create(e.state.doc,r.mightDrag.pos);else if(n.target&&RS(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Vx.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=Zw(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!nC||rC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(JT?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,JT||n.dataTransfer.setData(`text/plain`,c),e.dragging=new $T(l,tE(e,n),o)},pT.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},mT.dragover=mT.dragenter=(e,t)=>t.preventDefault(),mT.drop=(e,t)=>{try{nE(e,t,e.dragging)}finally{e.dragging=null}};function nE(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(wT(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=Qw(e,QT(t.dataTransfer),JT?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&tE(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||q.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?px(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&&Vx.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Vx(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(kw(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}pT.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())&&bw(e)},20))},pT.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)},pT.beforeinput=(e,t)=>{if(cC&&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,US(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 mT)pT[e]=mT[e];function rE(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 iE=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}},aE=class e{constructor(e,t){this.toDOM=e,this.spec=t||uE,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 cE(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&&rE(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},oE=class e{constructor(e,t){this.attrs=e,this.spec=t||uE}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 cE(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&rE(this.attrs,t.attrs)&&rE(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},sE=class e{constructor(e,t){this.attrs=e,this.spec=t||uE}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 cE(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&&rE(this.attrs,t.attrs)&&rE(this.spec,t.spec)}destroy(){}},cE=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 aE(n,r))}static inline(t,n,r,i){return new e(t,n,new oE(r,i))}static node(t,n,r,i){return new e(t,n,new sE(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof oE}get widget(){return this.type instanceof aE}},lE=[],uE={},dE=class e{constructor(e,t){this.local=e.length?e:lE,this.children=t.length?t:lE}static create(e,t){return t.length?yE(t,e,0,uE):fE}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==fE||e.maps.length==0?this:this.mapInner(e,t,0,0,n||uE)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new iE(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?mE(this.children,o||[],t,n,r,i,a):o?new e(o.sort(bE),lE):fE}add(t,n){return n.length?this==fE?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,yE(s,e,o+1,uE)),a+=3}});let o=hE(a?vE(n):n,-r);if(o.length){let e=new iE(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(bE):this.local,i||this.children)}remove(e){return e.length==0||this==fE?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==fE?(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):fE}forChild(t,n){if(this==fE)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 oE){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(bE),lE);return r?new pE([t,r]):t}return r||fE}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 xE(this.localsInner(e))}localsInner(e){if(this==fE)return lE;if(e.inlineContent||!this.local.some(oE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof oE||t.push(this.local[e]);return t}forEachSet(e){e(this)}};dE.empty=new dE([],[]),dE.removeOverlap=xE;var fE=dE.empty,pE=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,uE));return e.from(r)}forChild(t,n){if(n.isLeaf)return dE.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=fE&&(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?xE(n?t:t.sort(bE)):lE}static from(t){switch(t.length){case 0:return fE;case 1:return t[0];default:return new e(t.every(e=>e instanceof dE)?t:t.reduce((e,t)=>e.concat(t instanceof dE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function mE(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==fE?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=yE(gE(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 dE(t.sort(bE),s)}function hE(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 cE(i.from+t,i.to+t,i.type))}return n}function gE(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 vE(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function yE(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=yE(s,t,n+o+1,r);e!=fE&&i.push(o,o+t.nodeSize,e)}});let o=hE(a?vE(e):e,-n).sort(bE);if(o.length){let e=new iE(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 dE(o,i):fE}function bE(e,t){return e.from-t.from||e.to-t.to}function xE(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),SE(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),SE(t,i,r.copy(a.from,r.to)));break}}}return t}function SE(e,t,n){for(;t<e.length&&bE(n,e[t])>0;)t++;e.splice(t,0,n)}function CE(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=fE&&t.push(r)}),e.cursorWrapper&&t.push(dE.create(e.state.doc,[e.cursorWrapper.deco])),pE.from(t)}var wE={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},TE=QS&&$S<=11,EE=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}},lte=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new EE,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]);QS&&$S<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():iC&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),TE&&(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,wE)),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(Aw(this.view)){if(this.suppressingSelectionUpdates)return bw(this.view);if(QS&&$S<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&FS(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=MS(n))t.add(n);for(let r=e.anchorNode;r;r=MS(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:zS(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&&Aw(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||nC&&(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&&RS(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(eC&&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||fte(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&&HS(n)&&(c=vw(e))&&c.eq(Fx.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,bw(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),ute(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,pte(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&bw(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),zS(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(QS&&$S<=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?jS(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?jS(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})}},DE=new WeakMap,OE=!1;function ute(e){if(!DE.has(e)&&(DE.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=eC,OE)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.`),OE=!0}}function kE(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return FS(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function dte(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return kE(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?kE(e,n):null}function fte(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 pte(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||!RS(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 mte(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&&BS(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],HS(l)||u.push({node:l.focusNode,offset:l.focusOffset})),nC&&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`)||Zy.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:hte(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 hte=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(iC&&/^(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||iC&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},gte=/^(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 _te(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=vw(e,t);if(n&&!e.state.selection.eq(n)){if(nC&&cC&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,US(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=mte(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=xte(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(aC&&e.input.lastIOSEnter>Date.now()-225||cC)&&i.some(e=>RS(e)&&!gte.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,US(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof zx&&!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=AE(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 zx&&(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)),QS&&$S<=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((aC&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&bte(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,US(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:yte(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,US(8,`Backspace`)))){cC&&nC&&e.domObserver.suppressSelectionUpdates();return}nC&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),cC&&!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,US(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=AE(e,n.doc,l.sel);t&&!(nC&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||QS&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){QS&&$S<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>bw(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=vte(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 AE(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:kw(e,t.resolve(n.anchor),t.resolve(n.head))}function vte(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(K.from(l).eq(e))return{mark:s,type:o}}function yte(e,t,n,r,i){if(n-t<=i.pos-r.pos||jE(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(jE(a,!0,!0));return!o.parent.isTextblock||o.pos>n||jE(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function bte(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 jE(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 xte(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 ME=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 gT,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(LE),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=FE(this),PE(this),this.nodeViews=IE(this),this.docView=QC(this.state.doc,NE(this),CE(this),this.dom,this),this.domObserver=new lte(this,(e,t,n,r)=>_te(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&&bT(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(LE),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&&(WT(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=IE(this);Cte(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&bT(this),this.editable=FE(this),PE(this);let o=CE(this),s=NE(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&&hC(this);if(i){this.domObserver.stop();let t=l&&(QS||nC)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Ste(n.selection,e.selection);if(l){let n=nC?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=GT(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=QC(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())&&Mw(this)&&i.delaySelUpdate())?bw(this,t):(Dw(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&&BS(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof Vx){let t=this.docView.domAfterPos(this.state.selection.from);RS(t)&&mC(this,t.getBoundingClientRect(),e)}else mC(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 $T(e.slice,e.move,r<0?void 0:Vx.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(QS){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&&bC(this.dom),bw(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 OC(this,e)}coordsAtPos(e,t=1){return MC(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 HC(this,t||this.state,e)}pasteHTML(e,t){return ZT(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return ZT(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return Zw(this,e)}destroy(){this.docView&&(yT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],CE(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ite())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return CT(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?iC&&this.root.nodeType===11&&WS(this.dom.ownerDocument)==this.dom&&dte(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};ME.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function NE(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`,[cE.node(0,e.state.doc.content.size,t)]}function PE(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:cE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function FE(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function Ste(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 IE(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 Cte(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 LE(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 RE={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:`'`},zE={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},wte=typeof navigator<`u`&&/Mac/.test(navigator.platform),Tte=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),BE=0;BE<10;BE++)RE[48+BE]=RE[96+BE]=String(BE);for(var BE=1;BE<=24;BE++)RE[BE+111]=`F`+BE;for(var BE=65;BE<=90;BE++)RE[BE]=String.fromCharCode(BE+32),zE[BE]=String.fromCharCode(BE);for(var VE in RE)zE.hasOwnProperty(VE)||(zE[VE]=RE[VE]);function Ete(e){var t=!(wte&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Tte&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?zE:RE)[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 Dte=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Ote=typeof navigator<`u`&&/Win/.test(navigator.platform);function kte(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))Dte?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 Ate(e){let t=Object.create(null);for(let n in e)t[kte(n)]=e[n];return t}function HE(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 jte(e){return new $x({props:{handleKeyDown:UE(e)}})}function UE(e){let t=Ate(e);return function(e,n){let r=Ete(n),i,a=t[HE(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[HE(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Ote&&n.ctrlKey&&n.altKey)&&(i=RE[n.keyCode])&&i!=r){let r=t[HE(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var WE=200,GE=function(){};GE.prototype.append=function(e){return e.length?(e=GE.from(e),!this.length&&e||e.length<WE&&this.leafAppend(e)||this.length<WE&&e.leafPrepend(this)||this.appendInner(e)):this},GE.prototype.prepend=function(e){return e.length?GE.from(e).append(this):this},GE.prototype.appendInner=function(e){return new Mte(this,e)},GE.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?GE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},GE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},GE.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)},GE.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},GE.from=function(e){return e instanceof GE?e:e&&e.length?new KE(e):GE.empty};var KE=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<=WE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=WE)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}(GE);GE.empty=new KE([]);var Mte=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}(GE),Nte=500,qE=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 JE(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 JE(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 JE(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>Fte&&(s=Pte(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new kb;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 JE(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 JE(i,o,l))}else r.push(new JE(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new JE(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>Nte&&(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 JE(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(GE.from(i.reverse()),a)}};qE.empty=new qE(GE.empty,0);function Pte(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var JE=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)}}},YE=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},Fte=20;function Ite(e,t,n,r){let i=n.getMeta(nD),a;if(i)return i.historyState;n.getMeta(rD)&&(e=new YE(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(nD))return o.getMeta(nD).redo?new YE(e.done.addTransform(n,void 0,r,eD(t)),e.undone,XE(n.mapping.maps),e.prevTime,e.prevComposition):new YE(e.done,e.undone.addTransform(n,void 0,r,eD(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||!Lte(n,e.prevRanges)),s=o?ZE(e.prevRanges,n.mapping):XE(n.mapping.maps);return new YE(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,eD(t)),qE.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new YE(e.done.rebased(n,a),e.undone.rebased(n,a),ZE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new YE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),ZE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Lte(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 XE(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 ZE(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 Rte(e,t,n){let r=eD(t),i=nD.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 YE(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(nD,{redo:n,historyState:c})}var QE=!1,$E=null;function eD(e){let t=e.plugins;if($E!=t){QE=!1,$E=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){QE=!0;break}}return QE}function tD(e){return e.setMeta(rD,!0)}var nD=new nS(`history`),rD=new nS(`closeHistory`);function zte(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new $x({key:nD,state:{init(){return new YE(qE.empty,qE.empty,null,0,-1)},apply(t,n,r){return Ite(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?aD:n==`historyRedo`?oD:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function iD(e,t){return(n,r)=>{let i=nD.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=Rte(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var aD=iD(!1,!0),oD=iD(!0,!0);function Bte(e){return e.getMeta(nD)!=null}function sD(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 cD=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:sD({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}},Vte=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),Hte=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),Ute=()=>({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=qb(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},Wte=e=>t=>e(t),Gte=()=>({state:e,dispatch:t})=>bS(e,t),Kte=(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 zx(r.doc.resolve(Math.max(o-1,0)))),!0},qte=()=>({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 lD(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 Jte=e=>({tr:t,state:n,dispatch:r})=>{let i=lD(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},Yte=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Xte=e=>e.content?/^text(\*|\+)/.test(e.content):!1,uD=(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 Xte(r)?n===`left`?e.start()-1:e.end()+1:e.pos},Zte=(e,t,n)=>({from:uD(e,n,`left`),to:uD(t,n,`right`)}),Qte=()=>({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}=Zte(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(zx.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},$te=()=>({commands:e})=>e.keyboardShortcut(`Enter`),ene=()=>({state:e,dispatch:t})=>yS(e,t);function dD(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function fD(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:dD(t[r])?t[r].test(e[r]):t[r]===e[r])}function pD(e,t,n={}){return e.find(e=>e.type===t&&fD(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function mD(e,t,n={}){return!!pD(e,t,n)}function hD(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(!pD([...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&&mD([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&mD([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function gD(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 tne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=gD(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=hD(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=zx.create(o,e.from,e.to);n.setSelection(t)}}return!0},nne=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 _D(e){return e instanceof zx}function vD(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function yD(e,t=null){if(!t)return null;let n=Fx.atStart(e),r=Fx.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?zx.create(e,vD(0,i,a),vD(e.content.size,i,a)):zx.create(e,vD(t,i,a),vD(t,i,a))}function bD(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function xD(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function rne(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var ine=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(xD()||bD())&&r.dom.focus(),rne()&&!xD()&&!bD()&&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&&!_D(n.state.selection))return o(),!0;let s=yD(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},ane=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),one=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),SD=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&&SD(r)}return e};function CD(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 SD(n)}function wD(e){return typeof e?.nodesBetween==`function`}function TD(e,t,n){if(wD(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 K.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),TD(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new qy({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?Zy.fromSchema(a).parseSlice(CD(e),n.parseOptions):Zy.fromSchema(a).parse(CD(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=Zy.fromSchema(t);return n.slice?r.parseSlice(CD(e),n.parseOptions).content:r.parse(CD(e),n.parseOptions)}return TD(``,t,n)}function ED(e){return!(`type`in e)}function DD(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Bb||i instanceof Vb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Fx.near(e.doc.resolve(o),n))}var sne=(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{TD(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=TD(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=ED(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(``):wD(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=K.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&&DD(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 OD(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 cne=(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=OD(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=TD(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&DD(t,t.steps.length-1,-1)),!0):!1},lne=()=>({state:e,dispatch:t})=>Vee(e,t),une=()=>({state:e,dispatch:t})=>Hee(e,t),dne=()=>({state:e,dispatch:t})=>cS(e,t),fne=()=>({state:e,dispatch:t})=>mS(e,t),kD=(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},pne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=ux(e.doc,e.selection.$from.pos,-1);return r==null||!kD(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},mne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=ux(e.doc,e.selection.$from.pos,1);return r==null||!kD(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},hne=()=>({state:e,dispatch:t})=>zee(e,t),gne=()=>({state:e,dispatch:t})=>Bee(e,t);function AD(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function _ne(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))xD()||AD()?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 vne=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=_ne(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 jD(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?lD(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=>fD(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var MD=(e,t={})=>({state:n,dispatch:r})=>jD(n,lD(e,n.schema),t)?Uee(n,r):!1,ND=()=>({state:e,dispatch:t})=>xS(e,t),PD=e=>({state:t,dispatch:n})=>ete(lD(e,t.schema))(t,n),yne=()=>({state:e,dispatch:t})=>_S(e,t);function FD(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function ID(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 bne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=FD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=lD(e,r.schema)),s===`mark`&&(o=gD(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,ID(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(ID(a.attrs,t))))})})}),c},xne=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),LD=()=>({tr:e,dispatch:t})=>{if(t){let t=new Hx(e.doc);e.setSelection(t)}return!0},RD=()=>({state:e,dispatch:t})=>dS(e,t),zD=()=>({state:e,dispatch:t})=>hS(e,t),BD=()=>({state:e,dispatch:t})=>Kee(e,t),VD=()=>({state:e,dispatch:t})=>TS(e,t),HD=()=>({state:e,dispatch:t})=>wS(e,t);function UD(e,t,n={},r={}){return TD(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var WD=(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=UD(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=ED(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 GD(e,t){let n=gD(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 KD(e,t){let n=new Nx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function qD(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function JD(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 YD(e){return t=>JD(t.$from,e)}function XD(e,t,n){return e.config[t]===void 0&&e.parent?XD(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?XD(e.parent,t,n):null}):e.config[t]}function ZD(e){return e.map(e=>{let t=XD(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...ZD(t())]:e}).flat(10)}function QD(e,t){let n=db.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function $D(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 Sne={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`},Cne={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function wne(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 eO(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...wne(n,r,e),attrs:n.attrs}}function tO(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 Tne(e,t){tO(e.nodes,t.nodes,`node`),tO(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,eO(t,e.nodes[t],r,Sne))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,eO(t,e.marks[t],n,Cne))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function nO(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function rO(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function iO(e){let t=[],{nodeExtensions:n,markExtensions:r}=rO(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=XD(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=XD(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 aO(e){return typeof e==`function`}function oO(e,t=void 0,...n){return aO(e)?t?e.bind(t)(...n):e(...n):e}function sO(e={}){return Object.keys(e).length===0&&e.constructor===Object}function cO(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 lO(e){let t=[],n=cO(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 uO(...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([...lO(n[e]),...lO(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function dO(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)=>uO(e,t),{})}function fO(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function pO(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):fO(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function mO(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&sO(t)?!1:t!=null))}function hO(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 gO(e,t,n=iO(e)){let{nodeExtensions:r,markExtensions:i}=rO(e);return{topNode:r.find(e=>XD(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=mO({...e.reduce((e,t)=>{let n=XD(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:oO(XD(r,`content`,a)),marks:oO(XD(r,`marks`,a)),group:oO(XD(r,`group`,a)),inline:oO(XD(r,`inline`,a)),atom:oO(XD(r,`atom`,a)),selectable:oO(XD(r,`selectable`,a)),draggable:oO(XD(r,`draggable`,a)),code:oO(XD(r,`code`,a)),whitespace:oO(XD(r,`whitespace`,a)),linebreakReplacement:oO(XD(r,`linebreakReplacement`,a)),defining:oO(XD(r,`defining`,a)),isolating:oO(XD(r,`isolating`,a)),attrs:Object.fromEntries(i.map(hO))}),s=oO(XD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>pO(e,i)));let c=XD(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:dO(e,i)}));let l=XD(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=mO({...e.reduce((e,t)=>{let n=XD(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:oO(XD(r,`inclusive`,a)),excludes:oO(XD(r,`excludes`,a)),group:oO(XD(r,`group`,a)),spanning:oO(XD(r,`spanning`,a)),code:oO(XD(r,`code`,a)),attrs:Object.fromEntries(i.map(hO))}),s=oO(XD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>pO(e,i)));let c=XD(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:dO(e,i)})),[r.name,o]}))}}function _O(e,t,n){if(n===void 0)return new qy(gO(e,t));let r=nO(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new qy(n);return new qy(Tne(gO(e,t,$D(iO(e),i)),i))}function vO(e){return e.sort((e,t)=>{let n=XD(e,`priority`)||100,r=XD(t,`priority`)||100;return n>r?-1:+(n<r)})}function yO(e){let t=vO(ZD(e)),n=nO(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 bO(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 xO(e,t){return bO(e,{from:0,to:e.content.size},t)}function SO(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function CO(e,t){let n=lD(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 wO(e,t){let n=FD(typeof t==`string`?t:t.name,e.schema);return n===`node`?CO(e,t):n===`mark`?GD(e,t):{}}function TO(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 EO(e){let t=TO(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 DO(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}})})}),EO(r)}function OO(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=hD(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 kO=(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]},AO=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 jO(e,t){return t.nodes[e]||t.marks[e]||null}function MO(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 Ene=(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 NO(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?gD(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>fD(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=>fD(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 Dne(e,t,n={}){if(!t)return jD(e,null,n)||NO(e,null,n);let r=FD(t,e.schema);return r===`node`?jD(e,t,n):r===`mark`&&NO(e,t,n)}var One=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=YD(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)},kne=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function PO(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function FO(e,t){let{nodeExtensions:n}=rO(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=oO(XD(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function IO(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&&(IO(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function LO(e){return e instanceof Vx}function Ane(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 jne(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!Ane(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var RO=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function Mne(e,t){let n=t.mapping.mapResult(e.position);return{position:new RO(n.pos),mapResult:n}}function Nne(e){return new RO(e)}function zO(e,t,n){let r=e.state.doc.content.size,i=vD(t,0,r),a=vD(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 Pne(e,t,n){let{selection:r}=t,i=null;if(_D(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 Fne=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=gD(e,r.schema);if(i){if(o){let e=GD(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 Pne(r,n,c)},Ine=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Lne=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=lD(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>ES(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>ES(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},Rne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=vD(e,0,n.content.size),i=Vx.create(n,r);t.setSelection(i)}return!0},zne=(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},Bne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=zx.atStart(n).from,o=zx.atEnd(n).to,s=vD(r,a,o),c=vD(i,a,o),l=zx.create(n,s,c);t.setSelection(l)}return!0},Vne=e=>({state:t,dispatch:n})=>rte(lD(e,t.schema))(t,n);function BO(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 Hne=({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=MO(l,s.node().type.name,s.node().attrs);if(a instanceof Vx&&a.node.isBlock)return!s.parentOffset||!ax(o,s.pos)?!1:(r&&(e&&BO(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:OD(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof zx&&!a.empty?Zx.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=ax(h,g,1,p);if(!p&&!_&&ax(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 zx&&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&&BO(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},Une=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=lD(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=K.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=K.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={...MO(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(K.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new q(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(zx.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...MO(d,u.type.name,u.attrs),...t},m={...MO(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(!ax(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 VO(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function HO(e,t){if(e.pendingContent.length===0)return!0;let n=VO(t,K.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function Wne(e,t,n){return n.validContent(K.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!HO(t,n)||!n.validContent(K.from(e))?!1:(t.pendingContent.push(e),!0)}function Gne(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=VO(n.listType,K.from(i),e.attrs);return a?n.itemType.validContent(K.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):HO(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function Kne(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)?Gne(a,r,t,n):Wne(a,r,t.itemType)))return null}return HO(r,t.itemType)?r.items:null}function UO(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=Kne(e.child(r),t,UO);if(!i)return null;n.push(...i)}return n}function WO(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function GO(e){return!e||e===`1`?null:e}function KO(e,t){return GO(e)===GO(t)}var qO=(e,t)=>{let n=YD(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&&sx(e.doc,n.pos))||!KO(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},JO=(e,t)=>{let n=YD(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&&sx(e.doc,r))||!KO(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function qne(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return zx.between(r,i)}var Jne=(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=lD(e,o.schema),m=lD(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=YD(e=>FO(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&&FO(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=qne(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(FO(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>qO(a,p)).command(()=>JO(a,p)).run();if(FO(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=UO(E.node,{listType:p,itemType:m,isListNode:e=>FO(e.type.name,d)}),t=e?K.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=WO(l,i),t=WO(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(zx.create(a.doc,n,r))}}return!0}).command(()=>qO(a,p)).command(()=>JO(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>qO(a,p)).command(()=>JO(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(()=>qO(a,p)).command(()=>JO(a,p)).run()},Yne=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=gD(e,r.schema);return NO(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},Xne=(e,t,n={})=>({state:r,commands:i})=>{let a=lD(e,r.schema),o=lD(t,r.schema),s=jD(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})},Zne=(e,t={})=>({state:n,commands:r})=>{let i=lD(e,n.schema);return jD(n,i,t)?r.lift(i):r.wrapIn(i,t)},YO=()=>({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},XO=(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},ZO=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=gD(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=hD(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},QO=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},$O=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=FD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=lD(e,r.schema)),s===`mark`&&(o=gD(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},ek=new nS(`__tiptap_decorations__`),tk=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(ek,{type:`force`,name:e}),!0),nk=(e,t={})=>({state:n,dispatch:r})=>Yee(lD(e,n.schema),t)(n,r),rk=(e,t={})=>({state:n,dispatch:r})=>Zee(lD(e,n.schema),t)(n,r),ik=Ree({blur:()=>Vte,clearContent:()=>Hte,clearNodes:()=>Ute,command:()=>Wte,createParagraphNear:()=>Gte,cut:()=>Kte,deleteCurrentNode:()=>qte,deleteNode:()=>Jte,deleteRange:()=>Yte,deleteSelection:()=>Qte,enter:()=>$te,exitCode:()=>ene,extendMarkRange:()=>tne,first:()=>nne,focus:()=>ine,forEach:()=>ane,insertContent:()=>one,insertContentAt:()=>sne,insertDefaultBlock:()=>cne,joinBackward:()=>dne,joinDown:()=>une,joinForward:()=>fne,joinItemBackward:()=>pne,joinItemForward:()=>mne,joinTextblockBackward:()=>hne,joinTextblockForward:()=>gne,joinUp:()=>lne,keyboardShortcut:()=>vne,lift:()=>MD,liftEmptyBlock:()=>ND,liftListItem:()=>PD,newlineInCode:()=>yne,resetAttributes:()=>bne,scrollIntoView:()=>xne,selectAll:()=>LD,selectNodeBackward:()=>RD,selectNodeForward:()=>zD,selectParentNode:()=>BD,selectTextblockEnd:()=>VD,selectTextblockStart:()=>HD,setContent:()=>WD,setMark:()=>Fne,setMeta:()=>Ine,setNode:()=>Lne,setNodeSelection:()=>Rne,setTextDirection:()=>zne,setTextSelection:()=>Bne,sinkListItem:()=>Vne,splitBlock:()=>Hne,splitListItem:()=>Une,toggleList:()=>Jne,toggleMark:()=>Yne,toggleNode:()=>Xne,toggleWrap:()=>Zne,undoInputRule:()=>YO,unsetAllMarks:()=>XO,unsetMark:()=>ZO,unsetTextDirection:()=>QO,updateAttributes:()=>$O,updateDecorations:()=>tk,wrapIn:()=>nk,wrapInList:()=>rk}),ak=new WeakMap;function ok(e,t){ak.set(e,(ak.get(e)??0)+1);try{return t()}finally{let t=(ak.get(e)??1)-1;t>0?ak.set(e,t):ak.delete(e)}}function sk(e){return ak.has(e)}var ck=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={}}},lk=typeof process<`u`&&!1;function uk(e){return e.kind===`widget`}function dk(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&uk(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function fk(e,t,n){let{decorations:r,widgetKeys:i}=dk(t,n);return{set:dE.create(e,r),widgetKeys:i}}function pk({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function mk({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>pk({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 hk(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function gk(e){let t=new Map,n=new Map;for(let r of e.find()){let e=hk(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 _k(e){return e.jsonID===`attr`}function vk(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||_k(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function yk(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 bk(e,t){if(e.steps.some(e=>!vk(e)))return{type:`full`};let n=DO(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!_k(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=yk(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 xk(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function Sk(e,t,n){let r=t.decorationSetsByExtension[e]??dE.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:xk(r,n.mapping,n.doc,i),widgetKeys:i}}function Ck(e,t){let n=Object.values(t).flatMap(e=>e.find());return dE.create(e,n)}function wk(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function Tk(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 Ek(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var Dk=new Set,Ok=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=ek.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>Tk(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 ek.getState(this.editor.state)?.widgetKeys??Dk}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 $x({key:ek,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:wk(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(ek),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return ok(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!Ek(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=Sk(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:wk(u)}}},props:{decorations(e){return ek.getState(e)?.mergedDecorationSet??dE.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=bk(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]??dE.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=xk(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=>pk({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=hk(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=dk(mk({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 fk(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(!lk)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=gk(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]]:Ck(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):Ck(n.doc,r)}};function kk(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof Vx){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 Ak(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 jk(e){return typeof e==`number`}function Mk(e){return Object.prototype.toString.call(e).slice(8,-1)}function Nk(e){return Mk(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Pk(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 _A=4;function vA(e){let t=0;for(let n of e)t=n===` `?t+_A-t%_A:t+1;return t}function yA(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=vA(a);return(vA(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 Fk=4;function Ik(e){let t=0;for(let n of e)t=n===` `?t+Fk-t%Fk:t+1;return t}function Lk(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=Ik(a);return(Ik(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 bA(e,t){let n={...e};return hA(e)&&hA(t)&&Object.keys(t).forEach(r=>{hA(t[r])&&hA(e[r])?n[r]=bA(e[r],t[r]):n[r]=t[r]}),n}function xA(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 SA=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},CA=(e,t)=>{if(ID(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 wA(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 TA(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}=wA({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=MD({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new ND({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))||(ED(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function EA(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 DA(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=ek(l)+i;for(let e of a){let a=CA(u,e.find);if(a&&EA(l,a,i)&&TA({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function OA(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:gO(K.from(e),a.schema);let{from:i}=s,o=i+e.length;DA({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 DA({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&&DA({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?DA({editor:t,from:a.pos,to:a.pos,text:`
-`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var kA=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{...OO(mO(this,`addOptions`,{name:this.name}))}}get storage(){return{...OO(mO(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>bA(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}},AA=class e extends kA{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)}},jA=class{constructor(e){this.find=e.find,this.handler=e.handler}},MA=(e,t,n)=>{if(ID(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 NA(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new ND({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||MA(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 PA=null,FA=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function IA(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=MD({state:e,transaction:c});if(NA({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`,()=>{PA===t&&(PA=null)}),n.map(e=>new uS({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(PA=t)},i=()=>{PA&&=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=PA;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:gO(K.from(t),r.schema);let{from:n}=d,i=n+t.length,a=FA(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(pA(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var LA=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=BO(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=RO(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=mO(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:QO(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=zO([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:QO(t.name,this.schema)},r=[],i=mO(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&mO(t,`exitable`,n)&&(a.ArrowRight=()=>AA.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=bte(a);r.push(o);let s=mO(t,`addInputRules`,n);if(ak(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=OA({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=mO(t,`addPasteRules`,n);if(ak(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=IA({editor:e,rules:t});r.push(...n)}}let l=mO(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=mO(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:QO(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new uA({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=EO(this.extensions);return this.hasSchemaSpec?_O(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=TO(this.extensions);return Object.fromEntries(t.filter(e=>!!mO(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=mO(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:PD(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=NO(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 zO([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:QO(n.name,this.schema)},i=mO(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return zO([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:QO(n.name,this.schema)},i=mO(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}=TO(this.extensions);return Object.fromEntries(t.filter(e=>!!mO(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=mO(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:VD(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=NO(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{xA(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:QO(e.name,this.schema)};e.type===`mark`&&((OO(mO(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(OO(mO(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=mO(e,`onBeforeCreate`,t),r=mO(e,`onCreate`,t),i=mO(e,`onUpdate`,t),a=mO(e,`onSelectionUpdate`,t),o=mO(e,`onTransaction`,t),s=mO(e,`onFocus`,t),c=mO(e,`onBlur`,t),l=mO(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)})}};LA.resolve=BO,LA.sort=zO,LA.flatten=hO;var RA=class e extends kA{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)}},zA=RA.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=UO(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})=>VO(r,{from:e.pos,to:t.pos},s)).join(o??`
+`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function Rk(e,t){let n={...e};return Nk(e)&&Nk(t)&&Object.keys(t).forEach(r=>{Nk(t[r])&&Nk(e[r])?n[r]=Rk(e[r],t[r]):n[r]=t[r]}),n}function zk(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 Bk=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},Vk=(e,t)=>{if(dD(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 Hk(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:Zx.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function Uk(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}=Hk({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=sD({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new cD({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))||(tD(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function Wk(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 Gk(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=Ene(l)+i;for(let e of a){let a=Vk(u,e.find);if(a&&Wk(l,a,i)&&Uk({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function Kk(e){let{editor:t,rules:n}=e,r=new $x({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:QD(K.from(e),a.schema);let{from:i}=s,o=i+e.length;Gk({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 Gk({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&&Gk({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?Gk({editor:t,from:a.pos,to:a.pos,text:`
+`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var qk=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{...oO(XD(this,`addOptions`,{name:this.name}))}}get storage(){return{...oO(XD(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>Rk(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}},Jk=class e extends qk{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)}},Yk=class{constructor(e){this.find=e.find,this.handler=e.handler}},Xk=(e,t,n)=>{if(dD(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 Zk(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new cD({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||Xk(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 Qk=null,$k=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function eA(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=sD({state:e,transaction:c});if(Zk({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`,()=>{Qk===t&&(Qk=null)}),n.map(e=>new $x({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(Qk=t)},i=()=>{Qk&&=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=Qk;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:QD(K.from(t),r.schema);let{from:n}=d,i=n+t.length,a=$k(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(jk(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var tA=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=yO(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=_O(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=XD(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:jO(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=vO([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:jO(t.name,this.schema)},r=[],i=XD(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&XD(t,`exitable`,n)&&(a.ArrowRight=()=>Jk.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=jte(a);r.push(o);let s=XD(t,`addInputRules`,n);if(PO(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=Kk({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=XD(t,`addPasteRules`,n);if(PO(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=eA({editor:e,rules:t});r.push(...n)}}let l=XD(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=XD(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:jO(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new Ok({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=iO(this.extensions);return this.hasSchemaSpec?$D(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=rO(this.extensions);return Object.fromEntries(t.filter(e=>!!XD(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=XD(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:lD(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=dO(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 vO([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:jO(n.name,this.schema)},i=XD(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return vO([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:jO(n.name,this.schema)},i=XD(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}=rO(this.extensions);return Object.fromEntries(t.filter(e=>!!XD(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=XD(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:gD(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=dO(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{zk(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:jO(e.name,this.schema)};e.type===`mark`&&((oO(XD(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(oO(XD(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=XD(e,`onBeforeCreate`,t),r=XD(e,`onCreate`,t),i=XD(e,`onUpdate`,t),a=XD(e,`onSelectionUpdate`,t),o=XD(e,`onTransaction`,t),s=XD(e,`onFocus`,t),c=XD(e,`onBlur`,t),l=XD(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)})}};tA.resolve=yO,tA.sort=vO,tA.flatten=ZD;var nA=class e extends qk{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)}},rA=nA.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new $x({key:new nS(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=SO(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})=>bO(r,{from:e.pos,to:t.pos},s)).join(o??`
-`)}}})]}}),BA=RA.create({name:`commands`,addCommands(){return{...Bk}}}),VA=RA.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=uO(e.before,[e,...t]);JO(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 Kb){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()}}),HA=RA.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})}}})]}}),UA=RA.create({name:`editable`,addProseMirrorPlugins(){return[new uS({key:new pS(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),WA=new pS(`focusEvents`),GA=RA.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new uS({key:WA,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}}}})]}}),KA=RA.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:Kx.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 KD()||tO()?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=Kx.atStart(t.doc).from,l=Kx.atEnd(t.doc).to;if(a||o!==c||s!==l||!sk(n.doc))return;let u=n.tr,d=MD({state:n,transaction:u}),{commands:f}=new ND({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),qA=RA.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})}}})]}}),JA=RA.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`}}})]}}),YA=RA.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=TO(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}:{}}}})]}}),XA=!1;function ZA(e){if(XA)return;XA=!0;let t;try{let n=Zb.fromJSON(e,{from:0,to:0});if(!uk(n))return;t=n.slice.content}catch{return}t instanceof K||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 QA=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)}},$A=`.ProseMirror {
+`)}}})]}}),iA=nA.create({name:`commands`,addCommands(){return{...ik}}}),aA=nA.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=KD(e.before,[e,...t]);DO(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 Fb){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()}}),oA=nA.create({name:`drop`,addProseMirrorPlugins(){return[new $x({key:new nS(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),sA=nA.create({name:`editable`,addProseMirrorPlugins(){return[new $x({key:new nS(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),cA=new nS(`focusEvents`),lA=nA.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new $x({key:cA,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}}}})]}}),uA=nA.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:Fx.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 xD()||AD()?i:r},addProseMirrorPlugins(){return[new $x({key:new nS(`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=Fx.atStart(t.doc).from,l=Fx.atEnd(t.doc).to;if(a||o!==c||s!==l||!IO(n.doc))return;let u=n.tr,d=sD({state:n,transaction:u}),{commands:f}=new cD({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),dA=nA.create({name:`paste`,addProseMirrorPlugins(){return[new $x({key:new nS(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),fA=nA.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new $x({key:new nS(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),pA=nA.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=rO(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 $x({key:new nS(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),mA=!1;function hA(e){if(mA)return;mA=!0;let t;try{let n=Bb.fromJSON(e,{from:0,to:0});if(!jne(n))return;t=n.slice.content}catch{return}t instanceof K||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 gA=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)}},_A=`.ProseMirror {
position: relative;
}
@@ -113,66 +113,66 @@ img.ProseMirror-separator {
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
-}`,ej=class extends Wk{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:fk,createMappablePosition:pk},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=WD(t,this.options.autofocus);this.editorState=cS.create({doc:t,schema:this.schema,selection:e||void 0})}ZA(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():ND.createFakeChain()}can(){return this.commandManager?this.commandManager.can():ND.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=fA($A,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 Gk&&!this.hasWarnedStaleDecorationRead&&Uk(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=DO(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?[UA,zA.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),BA,GA,KA,JA.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),HA,qA,VA,YA.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 LA(n,this)}createCommandManager(){this.commandManager=new ND({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=sO(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=sO(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=cS.create({doc:t,schema:this.schema,selection:WD(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 DO(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 rD(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 GO(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return nk(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return gO(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
+}`,vA=class extends ck{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:Mne,createMappablePosition:Nne},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=yD(t,this.options.autofocus);this.editorState=Zx.create({doc:t,schema:this.schema,selection:e||void 0})}hA(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():cD.createFakeChain()}can(){return this.commandManager?this.commandManager.can():cD.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=Ak(_A,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 lk&&!this.hasWarnedStaleDecorationRead&&sk(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=aO(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?[sA,rA.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),iA,lA,uA,fA.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),oA,dA,aA,pA.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 tA(n,this)}createCommandManager(){this.commandManager=new cD({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=UD(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=UD(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=Zx.create({doc:t,schema:this.schema,selection:yD(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 aO(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 ME(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 wO(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return Dne(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return QD(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
-`,textSerializers:n={}}=e||{};return HO(this.state.doc,{blockSeparator:t,textSerializers:{...UO(this.schema),...n}})}get isEmpty(){return sk(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 QA(t,this,!1,n)}get $doc(){return this.$pos(0)}};function tj(e){return new SA({find:e.find,handler:({state:t,range:n,match:r})=>{let i=OO(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(YO(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 nj(e){return new SA({find:e.find,handler:({state:t,range:n,match:r})=>{let i=OO(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 rj(e){return new SA({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=OO(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 ij(e){return new SA({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=OO(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&ox(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&&vx(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var aj=class e extends kA{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 oj(e){return new jA({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=OO(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(YO(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:sj,getOwnPropertySymbols:cj}=Object,{hasOwnProperty:lj}=Object.prototype;function uj(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function dj(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 fj(e){return e?.[Symbol.toStringTag]}function pj(e){return sj(e).concat(cj(e))}var mj=Object.hasOwn||((e,t)=>lj.call(e,t));function hj(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var gj=`__v`,_j=`__o`,vj=`_owner`,yj=64,{getOwnPropertyDescriptor:bj,keys:xj}=Object,{propertyIsEnumerable:Sj}=Object.prototype,Cj=bj(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function wj(e,t){return e.byteLength===t.byteLength&&Rj(new Uint8Array(e),new Uint8Array(t))}function Tj(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 Ej(e,t){return e.byteLength===t.byteLength&&Rj(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Dj(e,t){return hj(e.getTime(),t.getTime())}function Oj(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=xj(e),c=xj(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]&&!Sj.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===+!!Sj.call(t,`cause`)+ +!!Sj.call(t,`errors`)}function kj(e,t){return e===t}function Aj(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&Pj(e,t,n)}function jj(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 Mj=hj;function Nj(e,t,n){let r=xj(e),i=xj(t),a=r.length;if(i.length!==a)return!1;let o=a<=yj,s;for(;a-->0;)if(s=r[a],!Hj(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):Sj.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function Pj(e,t,n){let r=pj(e),i=r.length;if(pj(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!Hj(e,t,a)&&(!mj(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=bj(e,a),s=bj(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function Fj(e,t){return hj(e.valueOf(),t.valueOf())}function Ij(e,t){return e.source===t.source&&e.flags===t.flags}function Lj(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 Rj(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=Cj.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 zj(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&&Bj(e.searchParams,t.searchParams)}function Bj(e,t){let n=e.toString(),r=t.toString();return n===r||Vj(n)===Vj(r)}function Vj(e){return e.split(`&`).sort().join(`&`)}function Hj(e,t,n){return(n===vj||n===_j||n===gj)&&!!(e.$$typeof||t.$$typeof)}var Uj=`[object ArrayBuffer]`,Ane=`[object Arguments]`,jne=`[object Boolean]`,Mne=`[object DataView]`,Nne=`[object Date]`,Pne=`[object Error]`,Fne=`[object Map]`,Ine=`[object Number]`,Lne=`[object Object]`,Rne=`[object RegExp]`,zne=`[object Set]`,Bne=`[object String]`,Vne={"[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},Hne=`[object URL]`,Une=Object.prototype.toString;function Wne({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=Une.call(h);if(b===Nne)return r(h,g,_);if(b===Rne)return u(h,g,_);if(b===Fne)return o(h,g,_);if(b===zne)return d(h,g,_);if(b===Lne)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===Hne)return p(h,g,_);if(b===Pne)return i(h,g,_);if(b===Ane)return c(h,g,_);if(Vne[b])return f(h,g,_);if(b===Uj)return e(h,g,_);if(b===Mne)return n(h,g,_);if(b===jne||b===Ine||b===Bne)return l(h,g,_);if(m){let e=m[b];if(!e){let t=fj(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function Gne({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:wj,areArraysEqual:n?Pj:Tj,areDataViewsEqual:Ej,areDatesEqual:Dj,areErrorsEqual:n?Aj:Oj,areFunctionsEqual:kj,areMapsEqual:n?uj(jj,Pj):jj,areNumbersEqual:Mj,areObjectsEqual:n?Pj:Nj,arePrimitiveWrappersEqual:Fj,areRegExpsEqual:Ij,areSetsEqual:n?uj(Lj,Pj):Lj,areTypedArraysEqual:n?uj(Rj,Pj):Rj,areUrlsEqual:zj,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=dj(r.areArraysEqual),t=dj(r.areErrorsEqual),n=dj(r.areMapsEqual),i=dj(r.areObjectsEqual),a=dj(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function Kne(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function qne({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)}}Wj(),Wj({strict:!0});var Jne=Wj({circular:!0});Wj({circular:!0,strict:!0}),Wj({createInternalComparator:()=>hj}),Wj({strict:!0,createInternalComparator:()=>hj}),Wj({circular:!0,createInternalComparator:()=>hj}),Wj({circular:!0,createInternalComparator:()=>hj,strict:!0});function Wj(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=Wne(Gne(e));return qne({circular:t,comparator:a,createState:r,equals:n?n(a):Kne(a),strict:i})}var Yne=o((e=>{var t=Te(),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}})),Gj=o(((e,t)=>{t.exports=Yne()}))();function Xne(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!KD()&&!GD())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 Kj=new pS(`reactMobileEnter`),Zne=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},Qne=({contentComponent:e})=>{let t=(0,hS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,W.jsx)(W.Fragment,{children:Object.values(t)})};function $ne(){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]:gh.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var ere=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=$ne(),e.createNodeViews(),e.registerPlugin(new uS({key:Kj,props:{handleDOMEvents:{beforeinput:(t,n)=>Xne(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(Kj),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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{ref:Zne(t,this.editorContentRef),...n}),e?.contentComponent&&(0,W.jsx)(Qne,{contentComponent:e.contentComponent})]})}},tre=(0,U.forwardRef)((e,t)=>{let n=U.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return U.createElement(ere,{key:n,innerRef:t,...e})}),qj=U.memo(tre),nre=typeof window<`u`?U.useLayoutEffect:U.useEffect,rre=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 Jj(e){let[t]=(0,U.useState)(()=>new rre(e.editor)),n=(0,Gj.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??Jne);return nre(()=>t.watch(e.editor),[e.editor,t]),(0,U.useDebugValue)(n),n}var Yj=typeof window>`u`,ire=Yj||!!(typeof window<`u`&&window.next),are=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(Yj||ire&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new ej({...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 ore(e={},t=[]){let n=(0,U.useRef)(e);n.current=e;let[r]=(0,U.useState)(()=>new are(n)),i=(0,hS.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,U.useDebugValue)(i),(0,U.useEffect)(r.onRender(t)),Jj({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var Xj=(0,U.createContext)({editor:null});Xj.Consumer;var Zj=()=>(0,U.useContext)(Xj),sre=(0,U.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),cre=()=>(0,U.useContext)(sre);U.forwardRef((e,t)=>{let{onDragStart:n}=cre(),r=e.as||`div`;return(0,W.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),U.createContext({markViewContentRef:()=>{}});var Qj=(0,U.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});Qj.displayName=`TiptapContext`;var lre=()=>(0,U.useContext)(Qj);function $j({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,W.jsx)(Xj.Provider,{value:i,children:(0,W.jsx)(Qj.Provider,{value:r,children:e})})}$j.displayName=`Tiptap`;function eM({...e}){let{editor:t}=lre();return(0,W.jsx)(qj,{editor:t,...e})}eM.displayName=`Tiptap.Content`,Object.assign($j,{Content:eM});var tM=new WeakSet,nM=new WeakSet;function rM(e){let t=e;return tM.add(t),t}function iM(e){return Array.isArray(e)&&tM.has(e)}function aM(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&nM.has(e)&&!iM(e)?aM(e):[e])}function ure(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!iM(n)&&!nM.has(n)?rM(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(iM(n))return rM([e,r,n]);if(n.length===0)return rM([e,r]);let t=aM(n);return t.length===0?rM([e,r]):rM([e,r,...t])}return rM(n==null?[e,r]:[e,r,n])}var oM=(e,t)=>ure(e,t),dre=(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 q(n,0,0);return e.replace(l,i.after(),r),e.setSelection(Xx.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},fre=/^\s*>\s$/,pre=aj.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return oM(`blockquote`,{...MO(this.options.HTMLAttributes,e),children:oM(`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 xO(this.state.doc,{blockSeparator:t,textSerializers:{...SO(this.schema),...n}})}get isEmpty(){return IO(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 gA(t,this,!1,n)}get $doc(){return this.$pos(0)}};function yA(e){return new Bk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=oO(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(OO(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 bA(e){return new Bk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=oO(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 xA(e){return new Bk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=oO(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 SA(e){return new Bk({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=oO(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&Yb(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&&sx(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var CA=class e extends qk{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 wA(e){return new Yk({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=oO(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(OO(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:TA,getOwnPropertySymbols:EA}=Object,{hasOwnProperty:DA}=Object.prototype;function OA(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function kA(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 AA(e){return e?.[Symbol.toStringTag]}function jA(e){return TA(e).concat(EA(e))}var MA=Object.hasOwn||((e,t)=>DA.call(e,t));function NA(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var PA=`__v`,FA=`__o`,IA=`_owner`,LA=64,{getOwnPropertyDescriptor:RA,keys:zA}=Object,{propertyIsEnumerable:BA}=Object.prototype,VA=RA(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function HA(e,t){return e.byteLength===t.byteLength&&nj(new Uint8Array(e),new Uint8Array(t))}function UA(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 WA(e,t){return e.byteLength===t.byteLength&&nj(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function GA(e,t){return NA(e.getTime(),t.getTime())}function KA(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=zA(e),c=zA(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]&&!BA.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===+!!BA.call(t,`cause`)+ +!!BA.call(t,`errors`)}function qA(e,t){return e===t}function JA(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&QA(e,t,n)}function YA(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 XA=NA;function ZA(e,t,n){let r=zA(e),i=zA(t),a=r.length;if(i.length!==a)return!1;let o=a<=LA,s;for(;a-->0;)if(s=r[a],!oj(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):BA.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function QA(e,t,n){let r=jA(e),i=r.length;if(jA(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!oj(e,t,a)&&(!MA(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=RA(e,a),s=RA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function $A(e,t){return NA(e.valueOf(),t.valueOf())}function ej(e,t){return e.source===t.source&&e.flags===t.flags}function tj(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 nj(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=VA.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 rj(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&&ij(e.searchParams,t.searchParams)}function ij(e,t){let n=e.toString(),r=t.toString();return n===r||aj(n)===aj(r)}function aj(e){return e.split(`&`).sort().join(`&`)}function oj(e,t,n){return(n===IA||n===FA||n===PA)&&!!(e.$$typeof||t.$$typeof)}var sj=`[object ArrayBuffer]`,cj=`[object Arguments]`,lj=`[object Boolean]`,uj=`[object DataView]`,dj=`[object Date]`,fj=`[object Error]`,pj=`[object Map]`,mj=`[object Number]`,hj=`[object Object]`,gj=`[object RegExp]`,_j=`[object Set]`,vj=`[object String]`,yj={"[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},bj=`[object URL]`,xj=Object.prototype.toString;function Sj({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=xj.call(h);if(b===dj)return r(h,g,_);if(b===gj)return u(h,g,_);if(b===pj)return o(h,g,_);if(b===_j)return d(h,g,_);if(b===hj)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===bj)return p(h,g,_);if(b===fj)return i(h,g,_);if(b===cj)return c(h,g,_);if(yj[b])return f(h,g,_);if(b===sj)return e(h,g,_);if(b===uj)return n(h,g,_);if(b===lj||b===mj||b===vj)return l(h,g,_);if(m){let e=m[b];if(!e){let t=AA(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function Cj({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:HA,areArraysEqual:n?QA:UA,areDataViewsEqual:WA,areDatesEqual:GA,areErrorsEqual:n?JA:KA,areFunctionsEqual:qA,areMapsEqual:n?OA(YA,QA):YA,areNumbersEqual:XA,areObjectsEqual:n?QA:ZA,arePrimitiveWrappersEqual:$A,areRegExpsEqual:ej,areSetsEqual:n?OA(tj,QA):tj,areTypedArraysEqual:n?OA(nj,QA):nj,areUrlsEqual:rj,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=kA(r.areArraysEqual),t=kA(r.areErrorsEqual),n=kA(r.areMapsEqual),i=kA(r.areObjectsEqual),a=kA(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function wj(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Tj({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)}}Dj(),Dj({strict:!0});var Ej=Dj({circular:!0});Dj({circular:!0,strict:!0}),Dj({createInternalComparator:()=>NA}),Dj({strict:!0,createInternalComparator:()=>NA}),Dj({circular:!0,createInternalComparator:()=>NA}),Dj({circular:!0,createInternalComparator:()=>NA,strict:!0});function Dj(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=Sj(Cj(e));return Tj({circular:t,comparator:a,createState:r,equals:n?n(a):wj(a),strict:i})}var Qne=o((e=>{var t=we(),n=rS();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}})),Oj=o(((e,t)=>{t.exports=Qne()}))();function $ne(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!xD()&&!bD())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 kj=new nS(`reactMobileEnter`),ere=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},tre=({contentComponent:e})=>{let t=(0,iS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,G.jsx)(G.Fragment,{children:Object.values(t)})};function nre(){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 rre=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=nre(),e.createNodeViews(),e.registerPlugin(new $x({key:kj,props:{handleDOMEvents:{beforeinput:(t,n)=>$ne(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(kj),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,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:ere(t,this.editorContentRef),...n}),e?.contentComponent&&(0,G.jsx)(tre,{contentComponent:e.contentComponent})]})}},ire=(0,U.forwardRef)((e,t)=>{let n=U.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return U.createElement(rre,{key:n,innerRef:t,...e})}),Aj=U.memo(ire),are=typeof window<`u`?U.useLayoutEffect:U.useEffect,ore=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 jj(e){let[t]=(0,U.useState)(()=>new ore(e.editor)),n=(0,Oj.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??Ej);return are(()=>t.watch(e.editor),[e.editor,t]),(0,U.useDebugValue)(n),n}var Mj=typeof window>`u`,sre=Mj||!!(typeof window<`u`&&window.next),cre=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(Mj||sre&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new vA({...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 lre(e={},t=[]){let n=(0,U.useRef)(e);n.current=e;let[r]=(0,U.useState)(()=>new cre(n)),i=(0,iS.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,U.useDebugValue)(i),(0,U.useEffect)(r.onRender(t)),jj({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var Nj=(0,U.createContext)({editor:null});Nj.Consumer;var Pj=()=>(0,U.useContext)(Nj),ure=(0,U.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),dre=()=>(0,U.useContext)(ure);U.forwardRef((e,t)=>{let{onDragStart:n}=dre(),r=e.as||`div`;return(0,G.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),U.createContext({markViewContentRef:()=>{}});var Fj=(0,U.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});Fj.displayName=`TiptapContext`;var fre=()=>(0,U.useContext)(Fj);function Ij({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,G.jsx)(Nj.Provider,{value:i,children:(0,G.jsx)(Fj.Provider,{value:r,children:e})})}Ij.displayName=`Tiptap`;function Lj({...e}){let{editor:t}=fre();return(0,G.jsx)(Aj,{editor:t,...e})}Lj.displayName=`Tiptap.Content`,Object.assign(Ij,{Content:Lj});var Rj=new WeakSet,zj=new WeakSet;function Bj(e){let t=e;return Rj.add(t),t}function Vj(e){return Array.isArray(e)&&Rj.has(e)}function Hj(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&zj.has(e)&&!Vj(e)?Hj(e):[e])}function pre(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!Vj(n)&&!zj.has(n)?Bj(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(Vj(n))return Bj([e,r,n]);if(n.length===0)return Bj([e,r]);let t=Hj(n);return t.length===0?Bj([e,r]):Bj([e,r,...t])}return Bj(n==null?[e,r]:[e,r,n])}var Uj=(e,t)=>pre(e,t),mre=(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 q(n,0,0);return e.replace(l,i.after(),r),e.setSelection(zx.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},hre=/^\s*>\s$/,gre=CA.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return Uj(`blockquote`,{...uO(this.options.HTMLAttributes,e),children:Uj(`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:()=>dre(this.editor,this.type)}},addInputRules(){return[ij({find:fre,type:this.type})]}}),mre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,hre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,gre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,_re=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,vre=AA.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 oM(`strong`,{...MO(this.options.HTMLAttributes,e),children:oM(`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[tj({find:mre,type:this.type}),tj({find:gre,type:this.type})]},addPasteRules(){return[oj({find:hre,type:this.type}),oj({find:_re,type:this.type})]}}),yre=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},bre=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 xre(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var Sre=AA.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,MO(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(xre(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[tj({find:yre,type:this.type})]},addPasteRules(){return[oj({find:bre,type:this.type})]}}),sM=4,Cre=/^```([a-z]+)?[\s\n]$/,wre=/^~~~([a-z]+)?[\s\n]$/,Tre=aj.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:sM,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`,MO(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??sM,{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:()=>mre(this.editor,this.type)}},addInputRules(){return[SA({find:hre,type:this.type})]}}),_re=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,vre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,yre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,bre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,xre=Jk.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 Uj(`strong`,{...uO(this.options.HTMLAttributes,e),children:Uj(`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[yA({find:_re,type:this.type}),yA({find:yre,type:this.type})]},addPasteRules(){return[wA({find:vre,type:this.type}),wA({find:bre,type:this.type})]}}),Sre=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},Cre=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 wre(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var Tre=Jk.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,uO(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(wre(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[yA({find:Sre,type:this.type})]},addPasteRules(){return[wA({find:Cre,type:this.type})]}}),Wj=4,Ere=/^```([a-z]+)?[\s\n]$/,Dre=/^~~~([a-z]+)?[\s\n]$/,Ore=CA.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Wj,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`,uO(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??Wj,{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??sM,{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??Wj,{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(Xx.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(zx.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(Kx.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[rj({find:Cre,type:this.type,getAttributes:e=>({language:e[1]})}),rj({find:wre,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(Xx.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),Ere=aj.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(Fx.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[xA({find:Ere,type:this.type,getAttributes:e=>({language:e[1]})}),xA({find:Dre,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new $x({key:new nS(`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(zx.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),kre=CA.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``}),Dre=aj.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`,MO(this.options.HTMLAttributes,e)]},renderText(){return`
+`):``}),Are=CA.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`,uO(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()}}}),Ore=aj.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]}`,MO(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=>rj({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),kre=aj.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,MO(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!dA(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return ck(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(Xx.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Qx.create(t.doc,n.pos)):t.setSelection(Xx.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(Xx.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[nj({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Are=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,jre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Mre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,cM=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,lM=AA.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`,MO(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[tj({find:Are,type:this.type}),tj({find:Mre,type:this.type})]},addPasteRules(){return[oj({find:jre,type:this.type}),oj({find:cM,type:this.type})]}}),uM=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,dM=`ελ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`,fM=`numeric`,pM=`ascii`,mM=`alpha`,hM=`asciinumeric`,gM=`alphanumeric`,_M=`domain`,vM=`emoji`,yM=`scheme`,bM=`slashscheme`,xM=`whitespace`;function SM(e,t){return e in t||(t[e]=[]),t[e]}function CM(e,t,n){t[fM]&&(t[hM]=!0,t[gM]=!0),t[pM]&&(t[hM]=!0,t[mM]=!0),t[hM]&&(t[gM]=!0),t[mM]&&(t[gM]=!0),t[gM]&&(t[_M]=!0),t[vM]&&(t[_M]=!0);for(let r in t){let t=SM(r,n);t.indexOf(e)<0&&t.push(e)}}function wM(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function TM(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}TM.groups={},TM.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||=TM.groups;let i;return t&&t.j?i=t:(i=new TM(t),n&&r&&CM(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||=TM.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 TM,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new TM,a&&(r&&(o.t&&typeof o.t==`string`?CM(a,Object.assign(wM(o.t,r),n),r):n&&CM(a,n,r)),o.t=a),i.j[e]=o,o}};var EM=(e,t,n,r,i)=>e.ta(t,n,r,i),DM=(e,t,n,r,i)=>e.tr(t,n,r,i),OM=(e,t,n,r,i)=>e.ts(t,n,r,i),J=(e,t,n,r,i)=>e.tt(t,n,r,i),kM=`WORD`,AM=`UWORD`,jM=`ASCIINUMERICAL`,MM=`ALPHANUMERICAL`,NM=`LOCALHOST`,PM=`TLD`,FM=`UTLD`,IM=`SCHEME`,LM=`SLASH_SCHEME`,RM=`NUM`,zM=`WS`,BM=`NL`,VM=`OPENBRACE`,HM=`CLOSEBRACE`,UM=`OPENBRACKET`,WM=`CLOSEBRACKET`,GM=`OPENPAREN`,KM=`CLOSEPAREN`,qM=`OPENANGLEBRACKET`,JM=`CLOSEANGLEBRACKET`,YM=`FULLWIDTHLEFTPAREN`,XM=`FULLWIDTHRIGHTPAREN`,ZM=`LEFTCORNERBRACKET`,QM=`RIGHTCORNERBRACKET`,$M=`LEFTWHITECORNERBRACKET`,eN=`RIGHTWHITECORNERBRACKET`,tN=`FULLWIDTHLESSTHAN`,nN=`FULLWIDTHGREATERTHAN`,rN=`AMPERSAND`,iN=`APOSTROPHE`,aN=`ASTERISK`,oN=`AT`,sN=`BACKSLASH`,cN=`BACKTICK`,lN=`CARET`,uN=`COLON`,dN=`COMMA`,fN=`DOLLAR`,pN=`DOT`,mN=`EQUALS`,hN=`EXCLAMATION`,gN=`HYPHEN`,_N=`PERCENT`,vN=`PIPE`,yN=`PLUS`,bN=`POUND`,xN=`QUERY`,SN=`QUOTE`,CN=`FULLWIDTHMIDDLEDOT`,wN=`SEMI`,TN=`SLASH`,EN=`TILDE`,DN=`UNDERSCORE`,ON=`EMOJI`,kN=`SYM`,AN=Object.freeze({__proto__:null,ALPHANUMERICAL:MM,AMPERSAND:rN,APOSTROPHE:iN,ASCIINUMERICAL:jM,ASTERISK:aN,AT:oN,BACKSLASH:sN,BACKTICK:cN,CARET:lN,CLOSEANGLEBRACKET:JM,CLOSEBRACE:HM,CLOSEBRACKET:WM,CLOSEPAREN:KM,COLON:uN,COMMA:dN,DOLLAR:fN,DOT:pN,EMOJI:ON,EQUALS:mN,EXCLAMATION:hN,FULLWIDTHGREATERTHAN:nN,FULLWIDTHLEFTPAREN:YM,FULLWIDTHLESSTHAN:tN,FULLWIDTHMIDDLEDOT:CN,FULLWIDTHRIGHTPAREN:XM,HYPHEN:gN,LEFTCORNERBRACKET:ZM,LEFTWHITECORNERBRACKET:$M,LOCALHOST:NM,NL:BM,NUM:RM,OPENANGLEBRACKET:qM,OPENBRACE:VM,OPENBRACKET:UM,OPENPAREN:GM,PERCENT:_N,PIPE:vN,PLUS:yN,POUND:bN,QUERY:xN,QUOTE:SN,RIGHTCORNERBRACKET:QM,RIGHTWHITECORNERBRACKET:eN,SCHEME:IM,SEMI:wN,SLASH:TN,SLASH_SCHEME:LM,SYM:kN,TILDE:EN,TLD:PM,UNDERSCORE:DN,UTLD:FM,UWORD:AM,WORD:kM,WS:zM}),jN=/[a-z]/,MN=/[a-z]/i,NN=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{MN=RegExp(`\\p{L}`,`u`),NN=RegExp(`\\p{Emoji}`,`u`)}catch{}var PN=/\d/,FN=/\s/,IN=`\r`,LN=`
-`,RN=`️`,zN=`‍`,BN=``,VN=null,HN=null;function UN(e=[]){let t={};TM.groups=t;let n=new TM;VN??=qN(uM),HN??=qN(dM),J(n,`'`,iN),J(n,`{`,VM),J(n,`}`,HM),J(n,`[`,UM),J(n,`]`,WM),J(n,`(`,GM),J(n,`)`,KM),J(n,`<`,qM),J(n,`>`,JM),J(n,`(`,YM),J(n,`)`,XM),J(n,`「`,ZM),J(n,`」`,QM),J(n,`『`,$M),J(n,`』`,eN),J(n,`<`,tN),J(n,`>`,nN),J(n,`&`,rN),J(n,`*`,aN),J(n,`@`,oN),J(n,"`",cN),J(n,`^`,lN),J(n,`:`,uN),J(n,`,`,dN),J(n,`$`,fN),J(n,`.`,pN),J(n,`=`,mN),J(n,`!`,hN),J(n,`-`,gN),J(n,`%`,_N),J(n,`|`,vN),J(n,`+`,yN),J(n,`#`,bN),J(n,`?`,xN),J(n,`"`,SN),J(n,`/`,TN),J(n,`;`,wN),J(n,`~`,EN),J(n,`_`,DN),J(n,`\\`,sN),J(n,`・`,CN);let r=DM(n,PN,RM,{[fM]:!0});DM(r,PN,r);let i=DM(r,jN,jM,{[hM]:!0}),a=DM(r,MN,MM,{[gM]:!0}),o=DM(n,jN,kM,{[pM]:!0});DM(o,PN,i),DM(o,jN,o),DM(i,PN,i),DM(i,jN,i);let s=DM(n,MN,AM,{[mM]:!0});DM(s,jN),DM(s,PN,a),DM(s,MN,s),DM(a,PN,a),DM(a,jN),DM(a,MN,a);let c=J(n,LN,BM,{[xM]:!0}),l=J(n,IN,zM,{[xM]:!0}),u=DM(n,FN,zM,{[xM]:!0});J(n,BN,u),J(l,LN,c),J(l,BN,u),DM(l,FN,u),J(u,IN),J(u,LN),DM(u,FN,u),J(u,BN,u);let d=DM(n,NN,ON,{[vM]:!0});J(d,`#`),DM(d,NN,d),J(d,RN,d);let f=J(d,zN);J(f,`#`),DM(f,NN,d);let p=[[jN,o],[PN,i]],m=[[jN,null],[MN,s],[PN,a]];for(let e=0;e<VN.length;e++)KN(n,VN[e],PM,kM,p);for(let e=0;e<HN.length;e++)KN(n,HN[e],FM,AM,m);CM(PM,{tld:!0,ascii:!0},t),CM(FM,{utld:!0,alpha:!0},t),KN(n,`file`,IM,kM,p),KN(n,`mailto`,IM,kM,p),KN(n,`http`,LM,kM,p),KN(n,`https`,LM,kM,p),KN(n,`ftp`,LM,kM,p),KN(n,`ftps`,LM,kM,p),CM(IM,{scheme:!0,ascii:!0},t),CM(LM,{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]?{[yM]:!0}:{[bM]:!0};r.indexOf(`-`)>=0?i[_M]=!0:jN.test(r)?PN.test(r)?i[hM]=!0:i[pM]=!0:i[fM]=!0,OM(n,r,r,i)}return OM(n,`localhost`,NM,{ascii:!0}),n.jd=new TM(kN),{start:n,tokens:Object.assign({groups:t},AN)}}function WN(e,t){let n=GN(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 GN(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 KN(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 TM(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new TM(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function qN(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 JN={defaultProtocol:`http`,events:null,format:XN,formatHref:XN,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function YN(e,t=null){let n=Object.assign({},JN);e&&(n=Object.assign(n,e instanceof YN?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()}YN.prototype={o:JN,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]:JN[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 XN(e){return e}function ZN(e,t){this.t=`token`,this.v=e,this.tk=t}ZN.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=JN.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 QN(e,t){class n extends ZN{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 $N=QN(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),eP=QN(`text`),tP=QN(`nl`),nP=QN(`url`,{isLink:!0,toHref(e=JN.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==NM&&e[1].t===uN}}),rP=e=>new TM(e);function iP({groups:e}){let t=e.domain.concat([rN,aN,oN,sN,cN,lN,fN,mN,gN,RM,_N,vN,yN,bN,TN,kN,EN,DN]),n=[iN,uN,dN,pN,hN,_N,xN,SN,wN,qM,JM,VM,HM,WM,UM,GM,KM,YM,XM,ZM,QM,$M,eN,tN,nN],r=[rN,iN,aN,sN,cN,lN,fN,mN,gN,VM,HM,_N,vN,yN,bN,xN,TN,kN,EN,DN],i=rP(),a=J(i,EN);EM(a,r,a),EM(a,e.domain,a);let o=rP(),s=rP(),c=rP();EM(i,e.domain,o),EM(i,e.scheme,s),EM(i,e.slashscheme,c),EM(o,r,a),EM(o,e.domain,o);let l=J(o,oN);J(a,oN,l),J(s,oN,l),J(c,oN,l);let u=J(a,pN);EM(u,r,a),EM(u,e.domain,a);let d=rP();EM(l,e.domain,d),EM(d,e.domain,d);let f=J(d,pN);EM(f,e.domain,d);let p=rP($N);EM(f,e.tld,p),EM(f,e.utld,p),J(l,NM,p);let m=J(d,gN);J(m,gN,m),EM(m,e.domain,d),EM(p,e.domain,d),J(p,pN,f),J(p,gN,m);let h=J(o,gN),g=J(o,pN);J(h,gN,h),EM(h,e.domain,o),EM(g,r,a),EM(g,e.domain,o);let _=rP(nP);EM(g,e.tld,_),EM(g,e.utld,_),EM(_,e.domain,o),EM(_,r,a),J(_,pN,g),J(_,gN,h),J(_,oN,l);let v=J(_,uN),y=rP(nP);EM(v,e.numeric,y);let b=rP(nP),x=rP();EM(b,t,b),EM(b,n,x),EM(x,t,b),EM(x,n,x),J(_,TN,b),J(y,TN,b),J(_,xN,x),J(_,bN,b),J(y,xN,x),J(y,bN,b);let S=J(s,uN),C=J(J(J(c,uN),TN),TN);EM(s,e.domain,o),J(s,pN,g),J(s,gN,h),EM(c,e.domain,o),J(c,pN,g),J(c,gN,h),EM(S,e.domain,b),J(S,TN,b),J(S,xN,b),EM(C,e.domain,b),EM(C,t,b),J(C,TN,b);let w=[[VM,HM],[UM,WM],[GM,KM],[qM,JM],[YM,XM],[ZM,QM],[$M,eN],[tN,nN]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=J(b,r);J(x,r,a);let o=rP(nP);EM(a,t,o);let s=rP();EM(a,n,s),J(a,i,b),EM(o,t,o),EM(o,n,s),EM(s,t,o),EM(s,n,s),J(o,i,b),J(s,i,b)}return J(i,NM,_),J(i,BM,tP),{start:i,tokens:AN}}function aP(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(oP(eP,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push(oP(e,t,r))}}return o.length>0&&a.push(oP(eP,t,o)),a}function oP(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var sP=typeof console<`u`&&console&&console.warn||(()=>{}),cP=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,lP={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function uP(){return TM.groups={},lP.scanner=null,lP.parser=null,lP.tokenQueue=[],lP.pluginQueue=[],lP.customSchemes=[],lP.initialized=!1,lP}function dP(e,t=!1){if(lP.initialized&&sP(`linkifyjs: already initialized - will not register custom scheme "${e}" ${cP}`),!/^[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()}}}),jre=CA.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]}`,uO(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=>xA({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),Mre=CA.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,uO(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!kk(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return LO(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(zx.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Vx.create(t.doc,n.pos)):t.setSelection(zx.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(zx.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[bA({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Nre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Pre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Fre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Ire=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Lre=Jk.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`,uO(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[yA({find:Nre,type:this.type}),yA({find:Fre,type:this.type})]},addPasteRules(){return[wA({find:Pre,type:this.type}),wA({find:Ire,type:this.type})]}}),Rre=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,zre=`ελ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`,Gj=`numeric`,Kj=`ascii`,qj=`alpha`,Jj=`asciinumeric`,Yj=`alphanumeric`,Xj=`domain`,Zj=`emoji`,Bre=`scheme`,Vre=`slashscheme`,Qj=`whitespace`;function Hre(e,t){return e in t||(t[e]=[]),t[e]}function $j(e,t,n){t[Gj]&&(t[Jj]=!0,t[Yj]=!0),t[Kj]&&(t[Jj]=!0,t[qj]=!0),t[Jj]&&(t[Yj]=!0),t[qj]&&(t[Yj]=!0),t[Yj]&&(t[Xj]=!0),t[Zj]&&(t[Xj]=!0);for(let r in t){let t=Hre(r,n);t.indexOf(e)<0&&t.push(e)}}function Ure(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function eM(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}eM.groups={},eM.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||=eM.groups;let i;return t&&t.j?i=t:(i=new eM(t),n&&r&&$j(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||=eM.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 eM,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new eM,a&&(r&&(o.t&&typeof o.t==`string`?$j(a,Object.assign(Ure(o.t,r),n),r):n&&$j(a,n,r)),o.t=a),i.j[e]=o,o}};var tM=(e,t,n,r,i)=>e.ta(t,n,r,i),nM=(e,t,n,r,i)=>e.tr(t,n,r,i),rM=(e,t,n,r,i)=>e.ts(t,n,r,i),J=(e,t,n,r,i)=>e.tt(t,n,r,i),iM=`WORD`,aM=`UWORD`,oM=`ASCIINUMERICAL`,sM=`ALPHANUMERICAL`,cM=`LOCALHOST`,lM=`TLD`,uM=`UTLD`,dM=`SCHEME`,fM=`SLASH_SCHEME`,pM=`NUM`,mM=`WS`,hM=`NL`,gM=`OPENBRACE`,_M=`CLOSEBRACE`,vM=`OPENBRACKET`,yM=`CLOSEBRACKET`,bM=`OPENPAREN`,xM=`CLOSEPAREN`,SM=`OPENANGLEBRACKET`,CM=`CLOSEANGLEBRACKET`,wM=`FULLWIDTHLEFTPAREN`,TM=`FULLWIDTHRIGHTPAREN`,EM=`LEFTCORNERBRACKET`,DM=`RIGHTCORNERBRACKET`,OM=`LEFTWHITECORNERBRACKET`,kM=`RIGHTWHITECORNERBRACKET`,AM=`FULLWIDTHLESSTHAN`,jM=`FULLWIDTHGREATERTHAN`,MM=`AMPERSAND`,NM=`APOSTROPHE`,PM=`ASTERISK`,FM=`AT`,IM=`BACKSLASH`,LM=`BACKTICK`,RM=`CARET`,zM=`COLON`,BM=`COMMA`,VM=`DOLLAR`,HM=`DOT`,UM=`EQUALS`,WM=`EXCLAMATION`,GM=`HYPHEN`,KM=`PERCENT`,qM=`PIPE`,JM=`PLUS`,YM=`POUND`,XM=`QUERY`,ZM=`QUOTE`,QM=`FULLWIDTHMIDDLEDOT`,$M=`SEMI`,eN=`SLASH`,tN=`TILDE`,nN=`UNDERSCORE`,rN=`EMOJI`,iN=`SYM`,aN=Object.freeze({__proto__:null,ALPHANUMERICAL:sM,AMPERSAND:MM,APOSTROPHE:NM,ASCIINUMERICAL:oM,ASTERISK:PM,AT:FM,BACKSLASH:IM,BACKTICK:LM,CARET:RM,CLOSEANGLEBRACKET:CM,CLOSEBRACE:_M,CLOSEBRACKET:yM,CLOSEPAREN:xM,COLON:zM,COMMA:BM,DOLLAR:VM,DOT:HM,EMOJI:rN,EQUALS:UM,EXCLAMATION:WM,FULLWIDTHGREATERTHAN:jM,FULLWIDTHLEFTPAREN:wM,FULLWIDTHLESSTHAN:AM,FULLWIDTHMIDDLEDOT:QM,FULLWIDTHRIGHTPAREN:TM,HYPHEN:GM,LEFTCORNERBRACKET:EM,LEFTWHITECORNERBRACKET:OM,LOCALHOST:cM,NL:hM,NUM:pM,OPENANGLEBRACKET:SM,OPENBRACE:gM,OPENBRACKET:vM,OPENPAREN:bM,PERCENT:KM,PIPE:qM,PLUS:JM,POUND:YM,QUERY:XM,QUOTE:ZM,RIGHTCORNERBRACKET:DM,RIGHTWHITECORNERBRACKET:kM,SCHEME:dM,SEMI:$M,SLASH:eN,SLASH_SCHEME:fM,SYM:iN,TILDE:tN,TLD:lM,UNDERSCORE:nN,UTLD:uM,UWORD:aM,WORD:iM,WS:mM}),oN=/[a-z]/,sN=/[a-z]/i,cN=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{sN=RegExp(`\\p{L}`,`u`),cN=RegExp(`\\p{Emoji}`,`u`)}catch{}var lN=/\d/,uN=/\s/,dN=`\r`,fN=`
+`,pN=`️`,mN=`‍`,hN=``,gN=null,_N=null;function vN(e=[]){let t={};eM.groups=t;let n=new eM;gN??=SN(Rre),_N??=SN(zre),J(n,`'`,NM),J(n,`{`,gM),J(n,`}`,_M),J(n,`[`,vM),J(n,`]`,yM),J(n,`(`,bM),J(n,`)`,xM),J(n,`<`,SM),J(n,`>`,CM),J(n,`(`,wM),J(n,`)`,TM),J(n,`「`,EM),J(n,`」`,DM),J(n,`『`,OM),J(n,`』`,kM),J(n,`<`,AM),J(n,`>`,jM),J(n,`&`,MM),J(n,`*`,PM),J(n,`@`,FM),J(n,"`",LM),J(n,`^`,RM),J(n,`:`,zM),J(n,`,`,BM),J(n,`$`,VM),J(n,`.`,HM),J(n,`=`,UM),J(n,`!`,WM),J(n,`-`,GM),J(n,`%`,KM),J(n,`|`,qM),J(n,`+`,JM),J(n,`#`,YM),J(n,`?`,XM),J(n,`"`,ZM),J(n,`/`,eN),J(n,`;`,$M),J(n,`~`,tN),J(n,`_`,nN),J(n,`\\`,IM),J(n,`・`,QM);let r=nM(n,lN,pM,{[Gj]:!0});nM(r,lN,r);let i=nM(r,oN,oM,{[Jj]:!0}),a=nM(r,sN,sM,{[Yj]:!0}),o=nM(n,oN,iM,{[Kj]:!0});nM(o,lN,i),nM(o,oN,o),nM(i,lN,i),nM(i,oN,i);let s=nM(n,sN,aM,{[qj]:!0});nM(s,oN),nM(s,lN,a),nM(s,sN,s),nM(a,lN,a),nM(a,oN),nM(a,sN,a);let c=J(n,fN,hM,{[Qj]:!0}),l=J(n,dN,mM,{[Qj]:!0}),u=nM(n,uN,mM,{[Qj]:!0});J(n,hN,u),J(l,fN,c),J(l,hN,u),nM(l,uN,u),J(u,dN),J(u,fN),nM(u,uN,u),J(u,hN,u);let d=nM(n,cN,rN,{[Zj]:!0});J(d,`#`),nM(d,cN,d),J(d,pN,d);let f=J(d,mN);J(f,`#`),nM(f,cN,d);let p=[[oN,o],[lN,i]],m=[[oN,null],[sN,s],[lN,a]];for(let e=0;e<gN.length;e++)xN(n,gN[e],lM,iM,p);for(let e=0;e<_N.length;e++)xN(n,_N[e],uM,aM,m);$j(lM,{tld:!0,ascii:!0},t),$j(uM,{utld:!0,alpha:!0},t),xN(n,`file`,dM,iM,p),xN(n,`mailto`,dM,iM,p),xN(n,`http`,fM,iM,p),xN(n,`https`,fM,iM,p),xN(n,`ftp`,fM,iM,p),xN(n,`ftps`,fM,iM,p),$j(dM,{scheme:!0,ascii:!0},t),$j(fM,{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]?{[Bre]:!0}:{[Vre]:!0};r.indexOf(`-`)>=0?i[Xj]=!0:oN.test(r)?lN.test(r)?i[Jj]=!0:i[Kj]=!0:i[Gj]=!0,rM(n,r,r,i)}return rM(n,`localhost`,cM,{ascii:!0}),n.jd=new eM(iN),{start:n,tokens:Object.assign({groups:t},aN)}}function yN(e,t){let n=bN(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 bN(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 xN(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 eM(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new eM(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function SN(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 CN={defaultProtocol:`http`,events:null,format:TN,formatHref:TN,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function wN(e,t=null){let n=Object.assign({},CN);e&&(n=Object.assign(n,e instanceof wN?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()}wN.prototype={o:CN,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]:CN[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 TN(e){return e}function EN(e,t){this.t=`token`,this.v=e,this.tk=t}EN.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=CN.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 DN(e,t){class n extends EN{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 ON=DN(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),kN=DN(`text`),AN=DN(`nl`),jN=DN(`url`,{isLink:!0,toHref(e=CN.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==cM&&e[1].t===zM}}),MN=e=>new eM(e);function NN({groups:e}){let t=e.domain.concat([MM,PM,FM,IM,LM,RM,VM,UM,GM,pM,KM,qM,JM,YM,eN,iN,tN,nN]),n=[NM,zM,BM,HM,WM,KM,XM,ZM,$M,SM,CM,gM,_M,yM,vM,bM,xM,wM,TM,EM,DM,OM,kM,AM,jM],r=[MM,NM,PM,IM,LM,RM,VM,UM,GM,gM,_M,KM,qM,JM,YM,XM,eN,iN,tN,nN],i=MN(),a=J(i,tN);tM(a,r,a),tM(a,e.domain,a);let o=MN(),s=MN(),c=MN();tM(i,e.domain,o),tM(i,e.scheme,s),tM(i,e.slashscheme,c),tM(o,r,a),tM(o,e.domain,o);let l=J(o,FM);J(a,FM,l),J(s,FM,l),J(c,FM,l);let u=J(a,HM);tM(u,r,a),tM(u,e.domain,a);let d=MN();tM(l,e.domain,d),tM(d,e.domain,d);let f=J(d,HM);tM(f,e.domain,d);let p=MN(ON);tM(f,e.tld,p),tM(f,e.utld,p),J(l,cM,p);let m=J(d,GM);J(m,GM,m),tM(m,e.domain,d),tM(p,e.domain,d),J(p,HM,f),J(p,GM,m);let h=J(o,GM),g=J(o,HM);J(h,GM,h),tM(h,e.domain,o),tM(g,r,a),tM(g,e.domain,o);let _=MN(jN);tM(g,e.tld,_),tM(g,e.utld,_),tM(_,e.domain,o),tM(_,r,a),J(_,HM,g),J(_,GM,h),J(_,FM,l);let v=J(_,zM),y=MN(jN);tM(v,e.numeric,y);let b=MN(jN),x=MN();tM(b,t,b),tM(b,n,x),tM(x,t,b),tM(x,n,x),J(_,eN,b),J(y,eN,b),J(_,XM,x),J(_,YM,b),J(y,XM,x),J(y,YM,b);let S=J(s,zM),C=J(J(J(c,zM),eN),eN);tM(s,e.domain,o),J(s,HM,g),J(s,GM,h),tM(c,e.domain,o),J(c,HM,g),J(c,GM,h),tM(S,e.domain,b),J(S,eN,b),J(S,XM,b),tM(C,e.domain,b),tM(C,t,b),J(C,eN,b);let w=[[gM,_M],[vM,yM],[bM,xM],[SM,CM],[wM,TM],[EM,DM],[OM,kM],[AM,jM]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=J(b,r);J(x,r,a);let o=MN(jN);tM(a,t,o);let s=MN();tM(a,n,s),J(a,i,b),tM(o,t,o),tM(o,n,s),tM(s,t,o),tM(s,n,s),J(o,i,b),J(s,i,b)}return J(i,cM,_),J(i,hM,AN),{start:i,tokens:aN}}function PN(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(FN(kN,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push(FN(e,t,r))}}return o.length>0&&a.push(FN(kN,t,o)),a}function FN(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var IN=typeof console<`u`&&console&&console.warn||(()=>{}),LN=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,RN={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function zN(){return eM.groups={},RN.scanner=null,RN.parser=null,RN.tokenQueue=[],RN.pluginQueue=[],RN.customSchemes=[],RN.initialized=!1,RN}function BN(e,t=!1){if(RN.initialized&&IN(`linkifyjs: already initialized - will not register custom scheme "${e}" ${LN}`),!/^[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`);lP.customSchemes.push([e,t])}function fP(){lP.scanner=UN(lP.customSchemes);for(let e=0;e<lP.tokenQueue.length;e++)lP.tokenQueue[e][1]({scanner:lP.scanner});lP.parser=iP(lP.scanner.tokens);for(let e=0;e<lP.pluginQueue.length;e++)lP.pluginQueue[e][1]({scanner:lP.scanner,parser:lP.parser});return lP.initialized=!0,lP}function pP(e){return lP.initialized||fP(),aP(lP.parser.start,e,WN(lP.scanner.start,e))}pP.scan=WN;function mP(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 YN(n),i=pP(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 hP=`[\0- \xA0 ᠎ -\u2029  ]`,gP=new RegExp(hP),_P=RegExp(`${hP}$`),vP=RegExp(`${hP}+$`),yP=new RegExp(hP,`g`);function bP(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(vP)?.[0];if(!i)return;let a=t.to-i.length,o=YO(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 xP(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function SP(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=uO(n.doc,[...t]);if(!t.some(kte)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof Zb)||!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=>bP(o,t,e.type))}if(JO(s).forEach(({newRange:t})=>{let n=dO(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(!_P.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(gP).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=pP(n).map(t=>t.toObject(e.defaultProtocol));if(!xP(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=>{YO(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 CP(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=GO(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 wP=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,TP=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function EP(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function DP(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&EP(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 OP(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||EP(e,t.index??0)||DP(e,t.index??0)?!1:!!r.trim()&&n(i)}function kP(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 AP(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function jP(e){return{href:e.data?.href,title:e.data?.title??null}}function MP(e){let t=tj({find:t=>{let n=wP.exec(t);return!n||!OP(t,n,e.isAllowedHref)?null:kP(n)},type:e.type,getAttributes:jP});return new SA({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 NP(e){let t=oj({find:t=>{let n=[];for(let r of t.matchAll(TP))OP(t,r,e.isAllowedHref)&&n.push(kP(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>AP(t,e)));return[...n,...r]},type:e.type,getAttributes:jP});return new jA({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 PP(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=mP(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 FP(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(yP,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var IP=AA.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`?dP(e):dP(e.scheme,e.optionalSlashes)})},onDestroy(){uP()},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)=>!!FP(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=>!!FP(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=>!!FP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,MO(this.options.HTMLAttributes,e),0]:[`a`,MO(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=>!!FP(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=>!!FP(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?[MP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!FP(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;mP(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!FP(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?[NP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!FP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[oj({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(SP({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!FP(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(CP({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(PP({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),LP=`listItem`,RP=`textStyle`,zP=/^\s*([-+*])\s$/,BP=aj.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`,MO(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(LP,this.editor.getAttributes(RP)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=ij({find:zP,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=ij({find:zP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(RP),editor:this.editor})),[e]}}),VP=(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}},HP=(e,t,n,r)=>{let i=VP(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,K.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},UP=(e,t,n)=>HP(e.state,e.view.dispatch,t,n),WP=(e,t)=>RA.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>UP(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),GP=[[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`]],KP=`abcdefghijklmnopqrstuvwxyz`,qP=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function JP(e){let t=e,n=``;for(let[e,r]of GP)for(;t>=e;)n+=r,t-=e;return n}function YP(e){return JP(e).toUpperCase()}function XP(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of GP)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function ZP(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=XP(e);return t<=0?!1:(e===e.toLowerCase()?JP(t):YP(t))===e}function QP(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 $P(e){if(e<=26)return KP[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?KP[n]:KP[t]+KP[n]}function eF(e){if(e&&!/^\d+$/.test(e)){if(ZP(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 tF(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=eF(e);if(t===`i`||t===`I`)return XP(e);if(t===`a`||t===`A`){let t=QP(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function nF(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return $P(t);case`A`:return $P(t).toUpperCase();case`i`:return JP(t);case`I`:return YP(t);default:return String(t)}}function rF(e){if(e.length===0)return!1;let t=eF(e[0])??`numeric`,n=tF(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=nF(t,n+r);if(e[r]!==i)return!1}return!0}function iF(e){return{type:eF(e),start:tF(e)}}function aF(e){let{type:t,start:n}=iF(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function oF(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${$P(r)}${n}`;case`A`:return`${$P(r).toUpperCase()}${n}`;case`i`:return`${JP(r)}${n}`;case`I`:return`${YP(r)}${n}`;default:return`${r}${n}`}}function sF(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function cF(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var lF=aj.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,MO(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(sF(e))return{type:`listItem`,content:[{type:`paragraph`,content:cF(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)=>yA(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 oF((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[WP(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)}}}),uF=(e,t)=>{let{$from:n}=t.selection,r=PD(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}},dF=(e,t)=>{let n=uF(e,t);if(!n)return!1;let[,r]=XO(t,e,n.$pos.pos+4);return r},fF=(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))},pF=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!nO(e.state,t)&&fF(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(!nO(e.state,t)||!ik(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()},mF=(e,t)=>{let n=dF(e,t),r=uF(e,t);return!r||!n?!1:n>r.depth},hF=(e,t)=>{let n=dF(e,t),r=uF(e,t);return!r||!n?!1:n<r.depth},gF=(e,t)=>{if(!nO(e.state,t)||!rk(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:mF(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():hF(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},_F=(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||nO(r,t))return!1;let o=ZO(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,K.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,K.from(c)),e.setSelection(Xx.create(e.doc,d+1)),e.scrollIntoView()),!0))},vF=RA.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&&gF(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&&gF(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&&pF(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&&pF(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&&_F(e,t,n))return!0;return!1}}}}),yF=RegExp(`^(\\s*)(${qP})([.)])\\s+(.*)$`),bF=/^\s/,xF={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function SF(e){return yF.test(e.trimStart())}function CF(e){let t=e.trimStart();return xF.bulletItem.test(t)||SF(t)||xF.heading.test(t)||xF.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||xF.codeFence.test(t)||xF.blockMath.test(t)}function wF(e){return Object.values(xF).some(t=>t.test(e))}function TF(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&CF(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function EF(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(yF);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?eF(s):void 0,p=isNaN(d)?tF(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(yF))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(bF)){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(_||wF(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
+3. "-" cannot repeat`);RN.customSchemes.push([e,t])}function VN(){RN.scanner=vN(RN.customSchemes);for(let e=0;e<RN.tokenQueue.length;e++)RN.tokenQueue[e][1]({scanner:RN.scanner});RN.parser=NN(RN.scanner.tokens);for(let e=0;e<RN.pluginQueue.length;e++)RN.pluginQueue[e][1]({scanner:RN.scanner,parser:RN.parser});return RN.initialized=!0,RN}function HN(e){return RN.initialized||VN(),PN(RN.parser.start,e,yN(RN.scanner.start,e))}HN.scan=yN;function UN(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 wN(n),i=HN(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 WN=`[\0- \xA0 ᠎ -\u2029  ]`,GN=new RegExp(WN),KN=RegExp(`${WN}$`),qN=RegExp(`${WN}+$`),JN=new RegExp(WN,`g`);function YN(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(qN)?.[0];if(!i)return;let a=t.to-i.length,o=OO(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 XN(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function ZN(e){return new $x({key:new nS(`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=KD(n.doc,[...t]);if(!t.some(Bte)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof Bb)||!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=>YN(o,t,e.type))}if(DO(s).forEach(({newRange:t})=>{let n=qD(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(!KN.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(GN).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=HN(n).map(t=>t.toObject(e.defaultProtocol));if(!XN(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=>{OO(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 QN(e){return new $x({key:new nS(`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=wO(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 $N=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,eP=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function tP(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function nP(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&tP(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 rP(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||tP(e,t.index??0)||nP(e,t.index??0)?!1:!!r.trim()&&n(i)}function iP(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 aP(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function oP(e){return{href:e.data?.href,title:e.data?.title??null}}function sP(e){let t=yA({find:t=>{let n=$N.exec(t);return!n||!rP(t,n,e.isAllowedHref)?null:iP(n)},type:e.type,getAttributes:oP});return new Bk({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 cP(e){let t=wA({find:t=>{let n=[];for(let r of t.matchAll(eP))rP(t,r,e.isAllowedHref)&&n.push(iP(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>aP(t,e)));return[...n,...r]},type:e.type,getAttributes:oP});return new Yk({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 lP(e){return new $x({key:new nS(`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=UN(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 uP(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(JN,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var dP=Jk.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`?BN(e):BN(e.scheme,e.optionalSlashes)})},onDestroy(){zN()},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)=>!!uP(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=>!!uP(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=>!!uP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,uO(this.options.HTMLAttributes,e),0]:[`a`,uO(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=>!!uP(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=>!!uP(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?[sP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!uP(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;UN(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!uP(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?[cP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!uP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[wA({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(ZN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!uP(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(QN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(lP({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),fP=`listItem`,pP=`textStyle`,mP=/^\s*([-+*])\s$/,hP=CA.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`,uO(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(fP,this.editor.getAttributes(pP)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=SA({find:mP,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=SA({find:mP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(pP),editor:this.editor})),[e]}}),gP=(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}},_P=(e,t,n,r)=>{let i=gP(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,K.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},vP=(e,t,n)=>_P(e.state,e.view.dispatch,t,n),yP=(e,t)=>nA.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>vP(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),bP=[[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`]],xP=`abcdefghijklmnopqrstuvwxyz`,SP=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function CP(e){let t=e,n=``;for(let[e,r]of bP)for(;t>=e;)n+=r,t-=e;return n}function wP(e){return CP(e).toUpperCase()}function TP(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of bP)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function EP(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=TP(e);return t<=0?!1:(e===e.toLowerCase()?CP(t):wP(t))===e}function DP(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 OP(e){if(e<=26)return xP[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?xP[n]:xP[t]+xP[n]}function kP(e){if(e&&!/^\d+$/.test(e)){if(EP(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 AP(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=kP(e);if(t===`i`||t===`I`)return TP(e);if(t===`a`||t===`A`){let t=DP(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function jP(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return OP(t);case`A`:return OP(t).toUpperCase();case`i`:return CP(t);case`I`:return wP(t);default:return String(t)}}function MP(e){if(e.length===0)return!1;let t=kP(e[0])??`numeric`,n=AP(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=jP(t,n+r);if(e[r]!==i)return!1}return!0}function NP(e){return{type:kP(e),start:AP(e)}}function PP(e){let{type:t,start:n}=NP(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function FP(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${OP(r)}${n}`;case`A`:return`${OP(r).toUpperCase()}${n}`;case`i`:return`${CP(r)}${n}`;case`I`:return`${wP(r)}${n}`;default:return`${r}${n}`}}function IP(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function LP(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var RP=CA.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,uO(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(IP(e))return{type:`listItem`,content:[{type:`paragraph`,content:LP(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)=>Lk(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 FP((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[yP(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)}}}),zP=(e,t)=>{let{$from:n}=t.selection,r=lD(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}},BP=(e,t)=>{let n=zP(e,t);if(!n)return!1;let[,r]=kO(t,e,n.$pos.pos+4);return r},VP=(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))},HP=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!jD(e.state,t)&&VP(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(!jD(e.state,t)||!kne(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()},UP=(e,t)=>{let n=BP(e,t),r=zP(e,t);return!r||!n?!1:n>r.depth},WP=(e,t)=>{let n=BP(e,t),r=zP(e,t);return!r||!n?!1:n<r.depth},GP=(e,t)=>{if(!jD(e.state,t)||!One(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:UP(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():WP(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},KP=(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||jD(r,t))return!1;let o=AO(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,K.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,K.from(c)),e.setSelection(zx.create(e.doc,d+1)),e.scrollIntoView()),!0))},qP=nA.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&&GP(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&&GP(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&&HP(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&&HP(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&&KP(e,t,n))return!0;return!1}}}}),JP=RegExp(`^(\\s*)(${SP})([.)])\\s+(.*)$`),YP=/^\s/,XP={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function ZP(e){return JP.test(e.trimStart())}function QP(e){let t=e.trimStart();return XP.bulletItem.test(t)||ZP(t)||XP.heading.test(t)||XP.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||XP.codeFence.test(t)||XP.blockMath.test(t)}function $P(e){return Object.values(XP).some(t=>t.test(e))}function eF(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&QP(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function tF(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(JP);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?kP(s):void 0,p=isNaN(d)?AP(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(JP))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(YP)){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(_||$P(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 DF=RegExp(`^(${qP})([.)])\\s+(.+)$`);function OF(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(DF);if(!t)return null;n.push({marker:t[1],content:t[3]})}return rF(n.map(e=>e.marker))?{type:`orderedList`,attrs:aF(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function kF(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=TF(a.contentLines),c=o.join(`
+`)}),r=h,n=h}return[t,r]}var nF=RegExp(`^(${SP})([.)])\\s+(.+)$`);function rF(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(nF);if(!t)return null;n.push({marker:t[1],content:t[3]})}return MP(n.map(e=>e.marker))?{type:`orderedList`,attrs:PP(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function iF(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=eF(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=kF(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 AF(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 jF=64;function MF(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 NF(e){let t=e.indexOf(`
-`),n=t===-1?e:e.slice(0,t);if(!yF.test(n))return[[],0,[]];let r=jF,i=MF(e,r),a=EF(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=MF(e,r),a=EF(i);return[a[0],a[1],i]}var PF=`listItem`,FF=`textStyle`,IF=/^(\d+)\.\s$/;function LF(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 RF=aj.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=LF(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=LF(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=MO(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?AF(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]=NF(e);if(r.length===0)return;let o=kF(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(PF,this.editor.getAttributes(FF)).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=OF(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=ij({find:IF,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=ij({find:IF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(FF)}),joinPredicate:e,editor:this.editor})),[t]}}),zF=/^\s*(\[([( |x])?\])\s$/,BF=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,VF=(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`}`},HF=aj.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`,MO(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)=>yA(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[WP(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=BF;let l=e=>{let t=VF(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=NO(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[ij({find:zF,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),UF=aj.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`,MO(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=gA(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=gA(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()}}});RA.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(BP.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(lF.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(vF.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(RF.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(HF.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(UF.configure(this.options.taskList)),e}});var WF=`&nbsp;`,GF=`\xA0`,KF=aj.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,MO(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===WF||n[0].text===WF||n[0].raw===GF||n[0].text===GF)&&r.length===1&&r[0].type===`text`&&(r[0].text===WF||r[0].text===GF)?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?WF:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),qF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,JF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,YF=AA.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`,MO(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[tj({find:qF,type:this.type})]},addPasteRules(){return[oj({find:JF,type:this.type})]}}),XF=aj.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),ZF=AA.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`,MO(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 QF(e={}){return new uS({view(t){return new $F(t,e)}})}var $F=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=wx(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)}},eI=class e extends Kx{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Kx.near(r)}content(){return q.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 tI(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!rI(e)||!iI(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}}};eI.prototype.visible=!1,eI.findFrom=eI.findGapCursorFrom,Kx.jsonID(`gapcursor`,eI);var tI=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 eI.valid(t)?new eI(t):Kx.near(t)}};function nI(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function rI(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||nI(e.type))return!0;if(e.inlineContent)return!1}}return!0}function iI(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||nI(e.type))return!0;if(e.inlineContent)return!1}}return!0}function aI(){return new uS({props:{decorations:uI,createSelectionBetween(e,t,n){return t.pos==n.pos&&eI.valid(n)?new eI(n):null},handleClick:cI,handleKeyDown:oI,handleDOMEvents:{beforeinput:lI}}})}var oI=mD({ArrowLeft:sI(`horiz`,-1),ArrowRight:sI(`horiz`,1),ArrowUp:sI(`vert`,-1),ArrowDown:sI(`vert`,1)});function sI(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 Xx){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=eI.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new eI(c))),!0):!1}}function cI(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!eI.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 eI(r))),!0)}function lI(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof eI))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=K.empty;for(let e=r.length-1;e>=0;e--)i=K.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new q(i,0,0));return a.setSelection(Xx.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function uI(e){if(!(e.selection instanceof eI))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,TE.create(e.doc,[SE.widget(e.selection.head,t,{key:`gapcursor`})])}RA.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 dI=RA.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[QF(this.options)]}});RA.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 TE.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(SE.node(t,t+e.nodeSize,{class:this.options.className}))}),TE.create(e,a)}}})]}});var fI=RA.create({name:`gapCursor`,addProseMirrorPlugins(){return[aI()]},extendNodeSchema(e){return{allowGapCursor:OO(mO(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),pI=`placeholder`,mI=new pS(`tiptap__placeholder`);function hI(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),SE.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function gI(e,t){return typeof e==`function`?e(t):e}function _I({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&&sk(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(hI({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:gI(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function vI({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&&sk(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(hI({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:gI(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(..._I({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return TE.create(r,o)}function yI(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 bI(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function xI(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 SI(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 CI(e,t){let n=xI(e,t.from,t.to);return n.push(bI(e,yI(e,t.from))),t.to>t.from?n.push(bI(e,yI(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(bI(e,yI(e,Math.min(t.from+1,e.content.size)))),n}function wI(e,t,n){let r=[];if(e.docChanged){let t=JO(e);for(let e of t)r.push(...CI(n.doc,e.newRange))}return e.selectionSet&&(r.push(bI(n.doc,yI(n.doc,e.mapping.map(t.selection.anchor)))),r.push(bI(n.doc,yI(n.doc,n.selection.anchor)))),SI(r)}function TI(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 EI({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}=TI(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=_I({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function DI({editor:e,options:t,dataAttribute:n}){return{init(r,i){return vI({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??TE.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:EI({decorations:i.map(r.mapping,r.doc),ranges:wI(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function OI(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function kI({editor:e,options:t}){let n=t.dataAttribute?`data-${OI(t.dataAttribute)}`:`data-${pI}`,r=t.showOnlyCurrent&&!t.includeChildren;return new uS({key:mI,...r?{}:{state:DI({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>vI({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?TE.empty:mI.getState(n)??TE.empty}})}var AI=RA.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:pI,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[kI({editor:this.editor,options:this.options})]}});function jI(e,t){return!e.selection.empty&&!ck(e.selection)&&t.isEditable}function MI(e,t){return jI(e,t)&&!t.isFocused&&!t.view.dragging}function NI(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function PI(e){e.focus()}RA.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 MI(n,e)?TE.create(n.doc,[SE.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return jI(t.state,e)&&NI(),!1},focus(t){return jI(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&PI(t)}),!1}}}})]}});function FI({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var II=RA.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!FI({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!FI({node:r,types:n})}}})]}}),LI=RA.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>AD(e,t),redo:()=>({state:e,dispatch:t})=>jD(e,t)}},addProseMirrorPlugins(){return[Ote(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()}}}),RI=RA.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(vre.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(pre.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(BP.configure(this.options.bulletList)),this.options.code!==!1&&e.push(Sre.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(Tre.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(Ere.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(dI.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(fI.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Dre.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(Ore.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(LI.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(kre.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(lM.configure(this.options.italic)),this.options.listItem!==!1&&e.push(lF.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(vF.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(IP.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(RF.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(KF.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(YF.configure(this.options.strike)),this.options.text!==!1&&e.push(XF.configure(this.options.text)),this.options.underline!==!1&&e.push(ZF.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(II.configure(this.options?.trailingNode)),e}}),zI=AI,BI=[`top`,`right`,`bottom`,`left`],VI=[`start`,`end`],HI=BI.reduce((e,t)=>e.concat(t,t+`-`+VI[0],t+`-`+VI[1]),[]),UI=Math.min,WI=Math.max,GI=Math.round,KI=Math.floor,qI=e=>({x:e,y:e}),JI={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function YI(e,t,n){return WI(e,UI(t,n))}function XI(e,t){return typeof e==`function`?e(t):e}function ZI(e){return e.split(`-`)[0]}function QI(e){return e.split(`-`)[1]}function $I(e){return e===`x`?`y`:`x`}function eL(e){return e===`y`?`height`:`width`}function tL(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function nL(e){return $I(tL(e))}function rL(e,t,n){n===void 0&&(n=!1);let r=QI(e),i=nL(e),a=eL(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=fL(o)),[o,fL(o)]}function iL(e){let t=fL(e);return[aL(e),t,aL(t)]}function aL(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var oL=[`left`,`right`],sL=[`right`,`left`],cL=[`top`,`bottom`],lL=[`bottom`,`top`];function uL(e,t,n){switch(e){case`top`:case`bottom`:return n?t?sL:oL:t?oL:sL;case`left`:case`right`:return t?cL:lL;default:return[]}}function dL(e,t,n,r){let i=QI(e),a=uL(ZI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(aL)))),a}function fL(e){let t=ZI(e);return JI[t]+e.slice(t.length)}function pL(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function mL(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:pL(e)}function hL(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 gL(e,t,n){let{reference:r,floating:i}=e,a=tL(t),o=nL(t),s=eL(o),c=ZI(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=QI(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function _L(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}=XI(t,e),p=mL(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=hL(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=hL(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 vL=50,yL=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:_L},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=gL(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<vL&&(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}=gL(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},bL=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}=XI(e,t)||{};if(l==null)return{};let d=mL(u),f={x:n,y:r},p=nL(i),m=eL(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=UI(d[_],T),D=UI(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=YI(E,k,O),j=!c.arrow&&QI(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 xL(e,t,n){return(e?[...n.filter(t=>QI(t)===e),...n.filter(t=>QI(t)!==e)]:n.filter(e=>ZI(e)===e)).filter(n=>!e||QI(n)===e||(t?aL(n)!==n:!1))}var SL=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=HI,autoAlignment:u=!0,...d}=XI(e,t),f=c!==void 0||l===HI?xL(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=rL(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[ZI(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=QI(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,QI(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}}}}},CL=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}=XI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ZI(r),_=tL(o),v=ZI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[fL(o)]:iL(o)),x=p!==`none`;!d&&x&&b.push(...dL(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=rL(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`||_===tL(t)||T.every(e=>tL(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=tL(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 wL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function TL(e){return BI.some(t=>e[t]>=0)}var EL=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=XI(e,t);switch(i){case`referenceHidden`:{let e=wL(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:TL(e)}}}case`escaped`:{let e=wL(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:TL(e)}}}default:return{}}}}};function DL(e){let t=UI(...e.map(e=>e.left)),n=UI(...e.map(e=>e.top)),r=WI(...e.map(e=>e.right)),i=WI(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function OL(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=>hL(DL(e)))}var kL=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}=XI(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=OL(u),f=hL(DL(u)),p=mL(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(tL(n)===`y`){let e=d[0],t=d[d.length-1],r=ZI(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return hL({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=ZI(n)===`left`,t=WI(...d.map(e=>e.right)),r=UI(...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 hL({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}}:{}}}},AL=new Set([`left`,`top`]);async function jL(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ZI(n),s=QI(n),c=tL(n)===`y`,l=AL.has(o)?-1:1,u=a&&c?-1:1,d=XI(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 ML=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 jL(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}}}}},NL=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}=XI(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=tL(i),p=$I(f),m=u[p],h=u[f],g=(e,t)=>YI(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}}}}}},PL=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}=XI(e,t),u={x:n,y:r},d=tL(i),f=$I(d),p=u[f],m=u[d],h=XI(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=AL.has(ZI(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}}}},FL=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}=XI(e,t),c=await i.detectOverflow(t,s),l=ZI(n),u=QI(n),d=tL(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=UI(p-c[m],g),y=UI(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*WI(c.left,c.right):S=p-2*WI(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 IL(){return typeof window<`u`}function LL(e){return BL(e)?(e.nodeName||``).toLowerCase():`#document`}function RL(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zL(e){return((BL(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function BL(e){return IL()?e instanceof Node||e instanceof RL(e).Node:!1}function VL(e){return IL()?e instanceof Element||e instanceof RL(e).Element:!1}function HL(e){return IL()?e instanceof HTMLElement||e instanceof RL(e).HTMLElement:!1}function UL(e){return!IL()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof RL(e).ShadowRoot}function WL(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=tR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function GL(e){return/^(table|td|th)$/.test(LL(e))}function KL(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var qL=/transform|translate|scale|rotate|perspective|filter/,JL=/paint|layout|strict|content/,YL=e=>!!e&&e!==`none`,XL;function ZL(e){let t=VL(e)?tR(e):e;return YL(t.transform)||YL(t.translate)||YL(t.scale)||YL(t.rotate)||YL(t.perspective)||!$L()&&(YL(t.backdropFilter)||YL(t.filter))||qL.test(t.willChange||``)||JL.test(t.contain||``)}function QL(e){let t=rR(e);for(;HL(t)&&!eR(t);){if(ZL(t))return t;if(KL(t))return null;t=rR(t)}return null}function $L(){return XL??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),XL}function eR(e){return/^(html|body|#document)$/.test(LL(e))}function tR(e){return RL(e).getComputedStyle(e)}function nR(e){return VL(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rR(e){if(LL(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||UL(e)&&e.host||zL(e);return UL(t)?t.host:t}function iR(e){let t=rR(e);return eR(t)?(e.ownerDocument||e).body:HL(t)&&WL(t)?t:iR(t)}function aR(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=iR(e),i=r===e.ownerDocument?.body,a=RL(r);if(i){let e=oR(a);return t.concat(a,a.visualViewport||[],WL(r)?r:[],e&&n?aR(e):[])}return t.concat(r,aR(r,[],n))}function oR(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sR(e){let t=tR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=HL(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=GI(n)!==a||GI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function cR(e){return VL(e)?e:e.contextElement}function lR(e){let t=cR(e);if(!HL(t))return qI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=sR(t),o=(a?GI(n.width):n.width)/r,s=(a?GI(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var uR=qI(0);function dR(e){let t=RL(e);return!$L()||!t.visualViewport?uR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nre(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===RL(e)}function fR(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=cR(e),o=qI(1);t&&(r?VL(r)&&(o=lR(r)):o=lR(e));let s=Nre(a,n,r)?dR(a):qI(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=RL(a),t=VL(r)?RL(r):r,n=e,i=oR(n);for(;i&&t!==n;){let e=lR(i),t=i.getBoundingClientRect(),r=tR(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=RL(i),i=oR(n)}}return hL({width:u,height:d,x:c,y:l})}function pR(e,t){let n=nR(e).scrollLeft;return t?t.left+n:fR(zL(e)).left+n}function mR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pR(e,n),y:n.top+t.scrollTop}}function Pre(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=zL(r),s=t?KL(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=qI(1),u=qI(0),d=HL(r);if((d||!a)&&((LL(r)!==`body`||WL(o))&&(c=nR(r)),d)){let e=fR(r);l=lR(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mR(o,c):qI(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 Fre(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ire(e){let t=nR(e),n=e.ownerDocument.body,r=WI(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=WI(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+pR(e),o=-t.scrollTop;return tR(n).direction===`rtl`&&(a+=WI(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Lre=25;function Rre(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=RL(e),a=zL(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!$L()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(pR(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<=Lre&&(s-=o)}return{width:s,height:c,x:l,y:u}}function zre(e,t){let n=fR(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=lR(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function hR(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Rre(e,n,t);else if(t===`document`)r=Ire(zL(e));else if(VL(t))r=zre(t,n);else{let n=dR(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return hL(r)}function Bre(e,t){let n=t.get(e);if(n)return n;let r=aR(e,[],!1).filter(e=>VL(e)&&LL(e)!==`body`),i=null,a=tR(e).position===`fixed`,o=a?rR(e):e;for(;VL(o)&&!eR(o);){let e=tR(o),t=ZL(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=rR(o)}return t.set(e,r),r}function Vre(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?KL(t)?[]:Bre(t,this._c):[].concat(n),r],o=hR(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=hR(t,a[e],i);s=WI(n.top,s),c=UI(n.right,c),l=UI(n.bottom,l),u=WI(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Hre(e){let{width:t,height:n}=sR(e);return{width:t,height:n}}function Ure(e,t,n){let r=HL(t),i=zL(t),a=n===`fixed`,o=fR(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=qI(0);if((r||!a)&&((LL(t)!==`body`||WL(i))&&(s=nR(t)),r)){let e=fR(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=pR(i));let l=i&&!r&&!a?mR(i,s):qI(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 gR(e){return tR(e).position===`static`}function _R(e,t){if(!HL(e)||tR(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return zL(e)===n&&(n=n.ownerDocument.body),n}function vR(e,t){let n=RL(e);if(KL(e))return n;if(!HL(e)){let t=rR(e);for(;t&&!eR(t);){if(VL(t)&&!gR(t))return t;t=rR(t)}return n}let r=_R(e,t);for(;r&&GL(r)&&gR(r);)r=_R(r,t);return r&&eR(r)&&gR(r)&&!ZL(r)?n:r||QL(e)||n}var Wre=async function(e){let t=this.getOffsetParent||vR,n=this.getDimensions,r=await n(e.floating);return{reference:Ure(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gre(e){return tR(e).direction===`rtl`}var Kre={convertOffsetParentRelativeRectToViewportRelativeRect:Pre,getDocumentElement:zL,getClippingRect:Vre,getOffsetParent:vR,getElementRects:Wre,getClientRects:Fre,getDimensions:Hre,getScale:lR,isElement:VL,isRTL:Gre};function yR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qre(e,t,n){let r=null,i,a=zL(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=KI(d),h=KI(a.clientWidth-(u+f)),g=KI(a.clientHeight-(d+p)),_=KI(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:WI(0,UI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!yR(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=RL(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function bR(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=cR(e),u=i||a?[...l?aR(l):[],...t?aR(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?qre(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?fR(e):null;c&&g();function g(){let t=fR(e);h&&!yR(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 xR=ML,SR=SL,CR=NL,wR=CL,TR=FL,ER=EL,DR=bL,OR=kL,Jre=PL,kR=(e,t,n)=>{let r=new Map,i=n??{},a={...Kre,...i.platform,_c:r};return yL(e,t,{...i,platform:a})},AR,jR;if(typeof WeakMap<`u`){let e=new WeakMap;AR=t=>e.get(t),jR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;AR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},jR=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var MR=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 AR(e)||jR(e,Yre(e))}};function Yre(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=Xre(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 MR(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&&Zre(s,o,e),s}function Xre(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 Zre(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||=Qre(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function Qre(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function NR(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 $re(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 PR(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 eie(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=$re(t.$head)||tie(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function tie(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 FR(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function IR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function LR(e,t,n){let r=e.node(-1),i=MR.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 RR(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 zR=class e extends Kx{constructor(e,t=e){let n=e.node(-1),r=MR.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 qx(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(FR(r)&&FR(i)&&IR(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 Xx.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=MR.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=RR(e,0,l)),u>0&&(e=RR(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(K.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new q(K.from(o),1,1)}replace(e,t=q.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?q.empty:t)}let i=Kx.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new q(K.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=MR.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=MR.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=MR.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=MR.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 nie(this.$anchorCell.pos,this.$headCell.pos)}};zR.prototype.visible=!1,Kx.jsonID(`cell`,zR);var nie=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&&IR(t,n)?new zR(t,n):Kx.near(n,1)}};new pS(`fix-tables`);function BR(e){let t=e.selection,n=eie(e),r=n.node(-1),i=n.start(-1),a=MR.get(r);return{...t instanceof zR?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function rie(e){return function(t,n){if(!PR(t))return!1;if(n){let r=NR(t.schema),i=BR(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 VR(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 HR(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?rie(e):function(t,n){if(!PR(t))return!1;if(n){let r=NR(t.schema),i=BR(t),a=t.tr,o=VR(`row`,i,r),s=VR(`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}}HR(`row`,{useDeprecatedLogic:!0}),HR(`column`,{useDeprecatedLogic:!0}),HR(`cell`,{useDeprecatedLogic:!0});function UR(e,t){let n=e.selection;if(!(n instanceof zR))return!1;if(t){let r=e.tr,i=NR(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 q(i,0,0))}),r.docChanged&&t(r)}return!0}mD({ArrowLeft:GR(`horiz`,-1),ArrowRight:GR(`horiz`,1),ArrowUp:GR(`vert`,-1),ArrowDown:GR(`vert`,1),"Shift-ArrowLeft":KR(`horiz`,-1),"Shift-ArrowRight":KR(`horiz`,1),"Shift-ArrowUp":KR(`vert`,-1),"Shift-ArrowDown":KR(`vert`,1),Backspace:UR,"Mod-Backspace":UR,Delete:UR,"Mod-Delete":UR});function WR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function GR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof zR)return WR(n,r,Kx.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=qR(i,e,t);if(o==null)return!1;if(e==`horiz`)return WR(n,r,Kx.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=LR(i,e,t),s;return s=a?Kx.near(a,1):t<0?Kx.near(n.doc.resolve(i.before(-1)),-1):Kx.near(n.doc.resolve(i.after(-1)),1),WR(n,r,s)}}}function KR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof zR)o=a;else{let r=qR(i,e,t);if(r==null)return!1;o=new zR(n.doc.resolve(r))}let s=LR(o.$headCell,e,t);return s?WR(n,r,new zR(o.$anchorCell,s)):!1}}function qR(e,t,n){if(!(e.state.selection instanceof Xx))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 iie(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 aie=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(wR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(CR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(xR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(DR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(TR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(SR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(ER(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(OR(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=mk(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 zR){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():iie(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&&HD(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&&kR(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()}},JR=e=>new uS({key:typeof e.pluginKey==`string`?new pS(e.pluginKey):e.pluginKey,view:t=>new aie({view:t,...e})});RA.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[JR({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 oie=class{getTextContent(e){return HO(e,{textSerializers:UO(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(wR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(CR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(xR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(DR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(TR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(SR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(ER(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(OR(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=mk(this.view,t.from,t.to);kR({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()}},YR=e=>new uS({key:typeof e.pluginKey==`string`?new pS(e.pluginKey):e.pluginKey,view:t=>new oie({view:t,...e})});RA.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?[YR({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 XR(e,t){return e??new pS(t)}var sie=typeof window<`u`?U.useLayoutEffect:U.useEffect,ZR=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),cie=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(`.`)),lie=new Set([`children`,`className`,`style`]),uie=new Set([`tabIndex`]),die=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),fie={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function QR(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function pie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function mie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||die.has(e)}function $R(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function hie(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:fie[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function gie(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 ez(e){return uie.has(e)}function tz(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function _ie(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function vie(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||cie.has(e)?String(t):`${t}px`}function yie(e,t){ZR.has(t)||e.style.removeProperty($R(t))}function bie(e,t,n){ZR.has(t)||e.style.setProperty($R(t),vie(t,n))}function xie(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(lie.has(r)||!mie(r)||QR(r,t[r])||QR(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=pie(r);a==null||a===!1?(ez(r)&&_ie(e,r),e.removeAttribute(o)):a===!0?(ez(r)&&tz(e,r,!0),e.setAttribute(o,``)):ez(r)?tz(e,r,a):e.setAttribute(o,String(a))})}function Sie(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function Cie(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?yie(e,t):bie(e,t,a))})}function wie(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(!QR(t,n))return;let{eventName:i,options:a}=hie(t),o=t=>{n(gie(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function nz(e,t){let n=(0,U.useRef)({}),r=(0,U.useRef)([]);sie(()=>{let i=n.current;return Sie(e,i.className,t.className),Cie(e,i.style,t.style),xie(e,i,t),r.current=wie(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 Tie=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)(XR(e,`bubbleMenu`)).current;nz(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=Zj(),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=JR({...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,gh.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)(XR(e,`floatingMenu`)).current;nz(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=Zj(),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=YR({...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,gh.createPortal)(s,u.current)});function Eie({editor:e}){let t=Ov(),n=(0,U.useRef)(null),r=(0,U.useRef)(null),[i]=(0,U.useState)(()=>document.createElement(`div`)),[a,o]=(0,U.useState)(),s=Jj({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:G(`Bold`),icon:pf,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:G(`Italic`),icon:pp,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:G(`Heading`),icon:ap,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:G(`Bulleted list`),icon:Cp,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:G(`Numbered list`),icon:xp,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,W.jsx)(Tie,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,W.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":G(`Text formatting`),dir:vm(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)*(vm(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,W.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(ED(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,W.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var Die=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]}))}},rz=new pS(`streamingInk`),iz=e=>Math.max(0,Math.min(1,e)),az=We(.18,.8,.25,1),Oie=RA.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new Die;return[new uS({key:rz,state:{init:()=>({live:!1,reduced:!1,decorations:TE.empty}),apply(t,n){let r=t.getMeta(rz)??n;if(!r.live)return e.update(``,0),{...r,decorations:TE.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(SE.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:TE.create(t.doc,s)}}},props:{decorations:e=>rz.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}=rz.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:iz((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)*az(f)}px`,c.style.transform=`scaleY(${1-.72*az(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-iz(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=az(iz(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-iz((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)}}})]}}),kie=AA.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function oz(e){let t=(0,U.useId)(),n=Dd(),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=ore({extensions:[RI.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`}}),zI.configure({placeholder:e.placeholder??``}),kie,Oie],content:Gm(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=th(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(rz,{live:!!e.streaming,reduced:n});(th(o.getJSON())!==e.markdown||e.streaming)&&t.setContent(Gm(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[Fh(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,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,W.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,W.jsx)(`defs`,{children:(0,W.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,W.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,W.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,W.jsx)(`g`,{className:`summary-wash`})]}),(0,W.jsx)(qj,{editor:o}),(0,W.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,W.jsx)(Eie,{editor:o})]})}var sz={};function cz(e,t){let n=U.useRef(sz);return n.current===sz&&(n.current=e(t)),n}var lz=[],uz=void 0;function Aie(){return uz}function jie(e){lz.push(e)}function dz(e){let t=(t,n)=>{let r=cz(Mie).current,i;try{uz=r;for(let e of lz)e.before(r);i=e(t,n);for(let e of lz)e.after(r);r.didInitialize=!0}finally{uz=void 0}return i};return t.displayName=e.displayName||e.name,t}function fz(e){return U.forwardRef(dz(e))}function Mie(){return{didInitialize:!1}}function pz(){}var mz=Object.freeze([]),hz=Object.freeze({});function gz(e){U.useEffect(e,mz)}var _z=0,vz=class e{static create(){return new e}currentId=_z;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=_z,t()},e)}isStarted(){return this.currentId!==_z}clear=()=>{this.currentId!==_z&&(clearTimeout(this.currentId),this.currentId=_z)};disposeEffect=()=>this.clear};function yz(){let e=cz(vz.create).current;return gz(e.disposeEffect),e}var Y=typeof document<`u`?U.useLayoutEffect:()=>{};function Nie(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Pie,platform:Fie,maxTouchPoints:Iie}=Nie(),bz=Pie.toLowerCase(),xz=Fie.toLowerCase(),Sz=/^i(os$|p)/.test(xz)||xz===`macintel`&&Iie>1,Cz=`android`,wz=xz===Cz||bz.includes(Cz),Tz=!Sz&&xz.startsWith(`mac`);xz.startsWith(`win`),!wz&&/^(linux|chrome os)/.test(xz);var Lie=Tz||Sz,Ez=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Ez&&bz.includes(`firefox`),!Ez&&bz.includes(`chrom`);var Rie=Lie,Dz=/jsdom|happydom/.test(bz);function Oz(e){e.preventDefault(),e.stopPropagation()}function zie(e){return`nativeEvent`in e}function kz(e){return e.pointerType===``&&e.isTrusted?!0:wz&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Az(e){return Dz?!1:!wz&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(wz||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function jz(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Bie(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Mz(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Nz(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&UL(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Pz(e,t){let n=e;for(;n;){if(VL(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(UL(n)?n.host:null)}return null}function Fz(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Vie=`data-base-ui-focusable`,Hie=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Iz=`ArrowLeft`,Lz=`ArrowRight`,Uie=`ArrowUp`,Wie=`ArrowDown`,Rz=`data-starting-style`,Gie=`data-ending-style`,Kie={[Rz]:``},qie={[Gie]:``},zz={transitionStatus(e){return e===`starting`?Kie:e===`ending`?qie:null}},Jie=`data-open`,Yie=`data-closed`,Xie=`data-anchor-hidden`,Bz=`data-popup-open`,Zie=`data-pressed`,Qie={[Bz]:``},$ie={[Bz]:``,[Zie]:``},eae={[Jie]:``},tae={[Yie]:``},nae={[Xie]:``},Vz={open(e){return e?Qie:null}},Hz={open(e){return e?$ie:null}},Uz={open(e){return e?eae:tae},anchorHidden(e){return e?nae:null}},Wz={...Uz,...zz},Gz=`data-trigger-disabled`;function Kz(e,t){if(!VL(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Gz);for(let[,e]of t.entries())if(Nz(e,n))return!e.hasAttribute(Gz);return!1}function qz(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 rae(e){return e.matches(`html,body`)}function Jz(e){return HL(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function iae(e){return Pz(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Hie}`)!=null}function Yz(e){return e?e.getAttribute(`role`)===`combobox`&&Jz(e):!1}function Xz(e){if(!e||Dz)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Zz(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function aae(e,t){return t!=null&&!jz(t)?0:typeof e==`function`?e():e}function Qz(e,t,n){let r=aae(e,n);return typeof r==`number`?r:r?.[t]}function $z(e){return typeof e==`function`?e():e}function eB(e,t){return t||e===`click`||e===`mousedown`}function oae(e){return e?.includes(`mouse`)&&e!==`mousedown`}function tB(e,t,n,r){let i=!1,a=!1,o=r??hz;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 sae(e,t,n){let r=n??hz;return{reason:e,event:t??new Event(`base-ui`),...r}}var nB=`none`,rB=`trigger-press`,iB=`trigger-hover`,aB=`trigger-focus`,cae=`outside-press`,lae=`item-press`,uae=`close-press`,oB=`focus-out`,dae=`escape-key`,sB=`list-navigation`,cB=`keyboard`,fae=`pointer`,pae=`cancel-open`,lB=`sibling-open`,mae=`disabled`,uB=`imperative-action`,hae=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new vz,currentIdRef:{current:null},currentContextRef:{current:null}});function gae(e,t){e.current=t.current}function _ae(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=U.useContext(hae),[d,f]=U.useState(!1),p=U.useRef(n);return Y(()=>{p.current=n},[n]),Y(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Y(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:Qz(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,tB(nB))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Y(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,gae(a,s),u.clear()}},[c,i,a,r,s,u]),U.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function dB(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function fB(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function pB(e,t,n,r){let i=cz(mB).current;return yae(i,e,t,n,r)&&hB(i,[e,t,n,r]),i.callback}function vae(e){let t=cz(mB).current;return bae(t,e)&&hB(t,e),t.callback}function mB(){return{callback:null,cleanup:null,refs:[]}}function yae(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function bae(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function hB(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 gB(e){let t=cz(xae,e).current;return t.next=e,Y(t.effect),t}function xae(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var _B={...U},vB=_B.useInsertionEffect,Sae=vB&&vB!==_B.useLayoutEffect?vB:e=>e();function yB(e){let t=cz(Cae).current;return t.next=e,Sae(t.effect),t.trampoline}function Cae(){let e={next:void 0,callback:wae,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function wae(){}var bB=null;globalThis.requestAnimationFrame;var xB=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)}},SB=class e{static create(){return new e}static request(e){return xB.request(e)}static cancel(e){return xB.cancel(e)}currentId=bB;request(e){this.cancel(),this.currentId=xB.request(()=>{this.currentId=bB,e()})}cancel=()=>{this.currentId!==bB&&(xB.cancel(this.currentId),this.currentId=bB)};disposeEffect=()=>this.cancel};function CB(){let e=cz(SB.create).current;return gz(e.disposeEffect),e}function wB(e){return e?.ownerDocument||document}var TB={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},EB={...TB,position:`fixed`,margin:0,top:0,left:0};({...TB});var DB=U.forwardRef(function(e,t){let[n,r]=U.useState();Y(()=>{Rie&&Ez&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,W.jsx)(`span`,{...e,ref:t,style:EB,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function OB(e,t){return t<0||t>=e.length}function kB(e,t){return MB(e.current,{disabledIndices:t})}function AB(e,t){return MB(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function jB(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>MB(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:OB(e,u)?-1:u,wrapped:d}}function MB(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&&NB(e,a,r));return a}function NB(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!FB(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function PB(e){return e.visibility===`hidden`||e.visibility===`collapse`}function FB(e,t=e?tR(e):null){return!e||!e.isConnected||!t||PB(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var IB=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function LB(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return UL(n)?n.host:null}function RB(e){for(let t of Array.from(e.children))if(LL(t)===`summary`)return t;return null}function zB(e,t){let n=RB(t);return!!n&&(e===n||Nz(n,e))}function BB(e){let t=e?LL(e):``;return e!=null&&e.matches(IB)&&(t!==`summary`||e.parentElement!=null&&LL(e.parentElement)===`details`&&RB(e.parentElement)===e)&&(t!==`details`||RB(e)==null)&&(t!==`input`||e.type!==`hidden`)}function VB(e){if(!BB(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=LB(t)){let n=t!==e,r=LL(t)===`slot`;if(t.hasAttribute(`inert`)||n&&LL(t)===`details`&&!t.open&&!zB(e,t)||t.hasAttribute(`hidden`)||!r&&!HB(t,n))return!1}return!0}function HB(e,t){let n=tR(e);return t?n.display!==`none`:FB(e,n)}function UB(e){let t=e.tabIndex;if(t<0){let t=LL(e);if(t===`details`||t===`audio`||t===`video`||HL(e)&&e.isContentEditable)return 0}return t}function WB(e){if(LL(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function GB(e,t){let n=WB(e);if(!n)return!0;let r=t.find(e=>{let t=WB(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=WB(e);return t?.name===n.name&&t.form===n.form})===n}function KB(e){if(HL(e)&&LL(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return HL(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function qB(e,t){KB(e).forEach(e=>{BB(e)&&t.push(e),qB(e,t)})}function JB(e,t,n){KB(e).forEach(e=>{HL(e)&&e.matches(t)&&n.push(e),JB(e,t,n)})}function YB(e){return VB(e)&&UB(e)>=0}function XB(e){let t=[];return qB(e,t),t.filter(VB)}function ZB(e){let t=XB(e);return t.filter(e=>UB(e)>=0&&GB(e,t))}function QB(e,t){let n=ZB(e),r=n.length;if(r===0)return;let i=Mz(wB(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $B(e){return QB(wB(e).body,1)||e}function eV(e){return QB(wB(e).body,-1)||e}function tV(e,t,n){if(!e)return null;let r=[];qB(wB(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(VB);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Nz(n,o)&&YB(o)&&GB(o,a))return o}return r[i]}function nV(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Nz(n,r)}function rV(e){ZB(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function iV(e){let t=[];JB(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 aV(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...aV(e,t.id,n)])}function oV(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 sV(e){return`data-base-ui-${e}`}var cV=0;function lV(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(cV);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),pz;let o=requestAnimationFrame(a);return cV=o,()=>{cV===o&&(cancelAnimationFrame(o),cV=0)}}var uV=`data-base-ui-inert`,dV=new WeakMap,fV=new WeakSet,pV=new WeakMap,mV=0;function hV(e){return e?UL(e)?e.host:hV(e.parentNode):null}var gV=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=hV(t);return e.contains(n)?n:null}).filter(e=>e!=null),_V=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},vV=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{LL(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function yV(e,t,n,{mark:r=!0}){let i=gV(t,e),a=r?vV(t,_V(i),new Set(i)):[],o=[],s=[];if(n){let e=gV(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);vV(t,_V(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(dV.get(e)||0)+1;dV.set(e,r),o.push(e),r===1&&n&&fV.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(pV.get(e)||0)+1;pV.set(e,t),s.push(e),t===1&&e.setAttribute(uV,``)}),mV+=1,()=>{o.forEach(e=>{let t=(dV.get(e)||0)-1;dV.set(e,t),t||(fV.has(e)||e.removeAttribute(`aria-hidden`),fV.delete(e))}),r&&s.forEach(e=>{let t=(pV.get(e)||0)-1;pV.set(e,t),t||e.removeAttribute(uV)}),--mV,mV||(dV=new WeakMap,fV=new WeakSet,pV=new WeakMap)}}function bV(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=wB(e[0]).body;return yV(e,i,n,{mark:r})}function xV(){let[,e]=U.useState({});return U.useCallback(()=>{e({})},[])}var SV=0;function CV(e,t=`mui`){let n=U.useRef(void 0),r=xV(),i=e??n.current;return U.useEffect(()=>{n.current??(SV+=1,n.current=`${t}-${SV}`,e??r())},[e,t,r]),i}var wV=_B.useId;function TV(e,t){if(wV!==void 0){let n=wV();return e??(t?`${t}-${n}`:n)}return CV(e,t)}var EV=19;function DV(e){return EV>=e}function OV(e){if(!U.isValidElement(e))return null;let t=e,n=t.props;return(DV(19)?n?.ref:t.ref)??null}function kV(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function AV(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 jV(e,t){return typeof e==`function`?e(t):e}function MV(e,t){return typeof e==`function`?e(t):e}var NV={};function PV(e,t,n,r,i){if(!n&&!r&&!i&&!e)return IV(t);let a=IV(e);return t&&(a=LV(a,t)),n&&(a=LV(a,n)),r&&(a=LV(a,r)),i&&(a=LV(a,i)),a}function FV(e){if(e.length===0)return NV;if(e.length===1)return IV(e[0]);let t=IV(e[0]);for(let n=1;n<e.length;n+=1)t=LV(t,e[n]);return t}function IV(e){return VV(e)?{...e(NV)}:RV(e)}function LV(e,t){return VV(t)?t(e):zV(e,t)}function RV(e){let t={...e};for(let e in t){let n=t[e];BV(e,n)&&(t[e]=UV(n))}return t}function zV(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=kV(e.style,r);break;case`className`:e[n]=GV(e.className,r);break;default:e[n]=BV(n,r)?HV(e[n],r):r}}return e}function BV(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 VV(e){return typeof e==`function`}function HV(e,t){return t?e?(...n)=>{let r=n[0];if(KV(r)){let i=r;WV(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:UV(t):e}function UV(e){return e&&((...t)=>{let n=t[0];return KV(n)&&WV(n),e(...t)})}function WV(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function GV(e,t){return t?e?t+` `+e:t:e}function KV(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function qV(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=ZV(r));let i=JV(t,n,r);if(n.enabled===!1)return null;let a=n.state??hz;return QV(e,r,i,a)}function JV(e,t,n){let{className:r,style:i}=e,{state:a=hz,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?jV(r,a):void 0,d=l?MV(i,a):void 0,f=l?AV(a,c):hz,p=l&&s?YV(s):void 0,m=l?kV(f,p)??{}:hz;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?vae([m.ref,OV(n),...o]):pB(m.ref,OV(n),o):pB(null,null)),l?(u!==void 0&&(m.className=GV(m.className,u)),d!==void 0&&(m.style=kV(m.style,d)),m):hz}function YV(e){return Array.isArray(e)?FV(e):PV(void 0,e)}var XV=Symbol.for(`react.lazy`);function ZV(e){if(e?.$$typeof!==XV)return e;let t=U.Children.toArray(e)[0];return U.isValidElement(t)?t:e}function QV(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=PV(n,t.props);return e.ref=n.ref,U.cloneElement(t,e)}return $V(e,n)}function $V(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 eH={style:{transition:`none`}},tH=`data-base-ui-click-trigger`,nH=`data-base-ui-swipe-ignore`,rH=`data-swipe-ignore`,iH=`[${nH}]`,aH=`[${rH}]`,oH={fallbackAxisSide:`none`},sH={fallbackAxisSide:`end`},cH={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},lH=U.createContext(null),uH=()=>U.useContext(lH),dH=sV(`portal`);function fH(e={}){let{ref:t,container:n,componentProps:r=hz,elementProps:i}=e,a=TV(),o=uH()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=yB(e=>{e!==null&&u(e)}),f=U.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(BL(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=qV(`div`,r,{ref:[t,d],props:[{id:a,[dH]:``},i]}),m=s&&p?gh.createPortal(p,s):null;return{node:l,nodeId:U.isValidElement(p)?p.props.id:void 0,subtree:m}}var pH=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}=fH({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&&nV(e)&&(e.type===`focusin`?v.current&&=(iV(l),!1):(rV(l),v.current=!0))}return fB(dB(l,`focusin`,e,!0),dB(l,`focusout`,e,!0))},[l,y]),Y(()=>{l&&b===!0&&v.current&&(iV(l),v.current=!1)},[b,l]);let S=U.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,W.jsxs)(U.Fragment,{children:[d,(0,W.jsxs)(lH.Provider,{value:S,children:[x&&l&&(0,W.jsx)(DB,{"data-type":`outside`,ref:f,onFocus:e=>{nV(e,l)?m.current?.focus():eV(g?g.domReference:null)?.focus()}}),x&&l&&(0,W.jsx)(`span`,{role:s,"aria-owns":u,style:cH}),l&&gh.createPortal(a,l),x&&l&&(0,W.jsx)(DB,{"data-type":`outside`,ref:p,onFocus:e=>{nV(e,l)?h.current?.focus():($B(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,tB(`focus-out`,e.nativeEvent)))}})]})]})});function mH(){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 hH=class{nodesRef={current:[]};events=mH();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)}},gH=U.createContext(null),_H=U.createContext(null),vH=()=>U.useContext(gH)?.id||null,yH=e=>{let t=U.useContext(_H);return e??t};function bH(e){let t=TV(),n=yH(e),r=vH();return Y(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function xH(e){let{children:t,id:n}=e,r=vH();return(0,W.jsx)(gH.Provider,{value:U.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function SH(e){let{children:t,externalTree:n}=e,r=cz(()=>n??new hH).current;return(0,W.jsx)(_H.Provider,{value:r,children:t})}function CH(e){return e==null?e:`current`in e?e.current:e}function wH(e,t){let n=RL(Fz(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(kz(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var TH=20,EH=[];function DH(){EH=EH.filter(e=>e.deref()?.isConnected)}function OH(e){DH(),e&&LL(e)!==`body`&&(EH.push(new WeakRef(e)),EH.length>TH&&(EH=EH.slice(-20)))}function kH(){return DH(),EH[EH.length-1]?.deref()}function AH(e){return e?YB(e)?e:ZB(e)[0]||e:null}function jH(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=XB(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return YB(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 MH(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=yB(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Yz(_)&&S,w=gB(i),T=gB(a),E=gB(o),D=gB(u),O=gB(g),k=yH(m),A=uH(),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),ee=pB(L,p,A?.beforeInsideRef),z=pB(R,A?.afterInsideRef),te=yz(),ne=yz(),re=CB(),ie=A!=null,B=Zz(v),ae=yB((e=B)=>e?ZB(e):[]),oe=yB(()=>h?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Nz(B,Mz(wB(B)))&&ae().length===0&&!C&&Oz(e)}return dB(wB(B),`keydown`,e)},[r,B,c,C,ae]),U.useEffect(()=>{if(r||!g)return;let e=wB(B);function t(){N.current=!1}function n(e){let t=Fz(e),n=oe(),r=Nz(v,t)||Nz(_,t)||Nz(A?.portalNode,t)||n.some(e=>e===t||Nz(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,Pz(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,ne.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return fB(dB(e,`pointerdown`,n,!0),dB(e,`pointerup`,t,!0),dB(e,`pointercancel`,t,!0),dB(e,`keydown`,i,!0),t)},[r,v,_,B,g,A,ne,oe]),U.useEffect(()=>{if(r||!l)return;let e=wB(B);function n(){M.current=!0,ne.start(0,()=>{M.current=!1})}function i(e){let t=Fz(e);YB(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Fz(n);c&&r==null&&a!=null&&Nz(v,a)&&OH(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=oe(),p=r?.hasAttribute(sV(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,CH(f),CH(d)].includes(r),m=!(Nz(_,r)||Nz(v,r)||Nz(r,v)||Nz(A?.portalNode,r)||u.some(e=>e===r||Nz(e,r))||l.hasMatchingElement(e=>Nz(e,r))||p||k&&(aV(k.nodesRef.current,o).find(e=>Nz(e.context?.elements.floating,r)||Nz(e.context?.elements.domReference,r))||oV(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Zz(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&B&&jH(B),s&&i!==_&&!FB(a)&&Mz(e)===e.body){if(HL(B)&&(B.focus(),s===`popup`)){re.request(()=>{B.focus()});return}let e=ae(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;HL(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==kH())&&(j.current=!0,t.setOpen(!1,tB(oB,n)))})}function o(){N.current||(b.current.insideReactTree=!0,te.start(0,()=>{b.current.insideReactTree=!1}))}let u=HL(_)?_:null;if(v||u)return fB(u&&dB(u,`focusout`,a),u&&dB(u,`pointerdown`,n),v&&dB(v,`focusin`,i),v&&dB(v,`focusout`,a),v&&A&&dB(v,`focusout`,o,!0))},[r,_,v,B,c,k,A,t,l,s,ae,C,x,b,te,ne,re,d,f,oe]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${sV(`portal`)}]`)||[]),t=(k?oV(k.nodesRef.current,x()):[]).find(e=>Yz(e.context?.elements.domReference||null))?.context?.elements.domReference,n=bV([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...oe(),t,CH(f),CH(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=bV([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,oe]),Y(()=>{if(!g||r||!HL(B))return;F.current=``,I.current=``;let e=wB(B),t=Mz(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Nz(B,t))return;let i=null,a=()=>(i??=ae(B),i[0]||B),o;o=r===!0||r===null?a():CH(r),o||=a();let s=Nz(B,Mz(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&kz(c);lV(o,{sync:l,preventScroll:o===B,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=Mz(e);return!(t!==o&&Nz(B,t))}})})},[r,g,B,ae,w,D,O,b]);let V=U.useRef(null);Y(()=>{if(r||!B){V.current=null;return}V.current&&=(V.current.cancelled=!0,null);let e=wB(B),t=Mz(e),n=D.current==null;OH(t);function i(e){if(e.open||(F.current=wH(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(sV(`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(kz(e.nativeEvent)||Az(e.nativeEvent))j.current=!1;else{let e=!1;wB(B).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&&LL(t)!==`body`?t:null,s=n?o||a:a||o;return s||=kH()||null,typeof i==`boolean`?s:CH(i)||s||null}return()=>{y.off(`openchange`,i);let t=Mz(e),n=oe(),r=Nz(v,t)||n.some(e=>e===t||Nz(e,t))||k&&aV(k.nodesRef.current,x(),!1).some(e=>Nz(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};V.current=l,queueMicrotask(()=>{V.current===l&&(V.current=null);let n=AH(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&HL(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,B,T,E,D,y,k,_,x,oe]),Y(()=>{if(!Ez||g||!v)return;let e=Mz(wB(v));HL(e)&&Jz(e)&&Nz(v,e)&&e.blur()},[g,v]),Y(()=>{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,_]),Y(()=>{if(!r&&B)return jH(B),()=>{queueMicrotask(DH)}},[r,B]);let se=!r&&(!c||!C)&&(ie||c);return(0,W.jsxs)(U.Fragment,{children:[se&&(0,W.jsx)(DB,{"data-type":`inside`,ref:ee,onFocus:e=>{if(c){let e=ae();lV(e[e.length-1])}else A?.portalNode&&(j.current=!1,nV(e,A.portalNode)?$B(_)?.focus():CH(f??A.beforeOutsideRef)?.focus())}}),n,se&&(0,W.jsx)(DB,{"data-type":`inside`,ref:z,onFocus:e=>{c?lV(ae()[0]):A?.portalNode&&(l&&(j.current=!0),nV(e,A.portalNode)?eV(_)?.focus():CH(d??A.afterOutsideRef)?.focus())}})]})}function NH(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=rB}=t,l=e.context.dataRef,u=U.useRef(void 0),d=CB(),f=yz(),p=U.useMemo(()=>{function t(t,n,r,i){let a=tB(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=jz(e.pointerType,!0)&&Az(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||jz(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Fz(s),p=Jz(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:jz(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}:hz,[n,p])}function PH(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function FH(e){return e!=null&&e.clientX!=null}function IH(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=U.useRef(!1),l=U.useRef(null),[u,d]=U.useState(),[f,p]=U.useState([]),m=yB(t=>{e.set(`positionReference`,t)}),h=yB((t,n,i)=>{c.current||(!s.current.openEvent||FH(s.current.openEvent))&&e.set(`positionReference`,PH(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=yB(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=jz(u)?a:i;U.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=RL(a);function r(t){let n=Fz(t);Nz(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||FH(s.current.openEvent)?l.current=dB(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),U.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),U.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),U.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let v=U.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return U.useMemo(()=>n?{reference:v,trigger:v}:{},[n,v])}function LH(){return!1}function RH(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function zH(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=LH,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=yH(c),m=yB(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=yB(()=>a),{escapeKey:v,outsidePress:y}=RH(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=yz(),O=yz(),k=yz(),A=yB(()=>{O.clear(),d.current.insideReactTree=!1}),j=yB(e=>{let t=d.current.floatingContext?.nodeId;return(p?aV(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=yB(t=>qz(t,e.select(`floatingElement`))||qz(t,e.select(`domReferenceElement`))),N=yB(t=>{o()&&e.setOpen(!1,tB(rB,t.nativeEvent))}),P=yB(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=zie(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=tB(dae,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=yB(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=yB(t=>{if(!l||!n||t.button!==0)return;let r=Fz(t.nativeEvent);Nz(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=yB(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 vz,i=wB(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(Ez?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&&aV(p.nodesRef.current,t).some(t=>qz(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=Fz(n),i=`[${sV(`inert`)}]`,a=VL(r)?r.getRootNode():null,o=Array.from((UL(a)?a:wB(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Nz(e,r))))return;let c=VL(r)?r:null;for(;c&&!eR(c);){let e=rR(c);if(eR(e)||!VL(e))break;c=e}if(!(o.length&&VL(r)&&!rae(r)&&!Nz(r,e.select(`floatingElement`))&&o.every(e=>!Nz(c,e)))){if(HL(r)&&!(`touches`in n)){let e=eR(r),t=tR(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&&!kz(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,tB(cae,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=Fz(e);if(!n)return;let r=dB(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function ee(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 z(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 te(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 ne(e){L(e,te)}function re(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ie(e){L(e,re)}let B=fB(r&&fB(dB(i,`keydown`,P),dB(i,`compositionstart`,a),dB(i,`compositionend`,o)),g&&fB(dB(i,`click`,ee,!0),dB(i,`pointerdown`,ee,!0),dB(i,`pointerup`,z,!0),dB(i,`pointercancel`,z,!0),dB(i,`mousedown`,ee,!0),dB(i,`mouseup`,z,!0),dB(i,`touchstart`,R,{capture:!0,passive:!0}),dB(i,`touchmove`,ne,{capture:!0,passive:!0}),dB(i,`touchend`,ie,{capture:!0,passive:!0})));return()=>{B(),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]),ee=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:ee,trigger:R}:{},[n,R,ee])}function BH(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 VH=BH(`https://base-ui.com/production-error`,`Base UI`),HH=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(VH(99,this.componentName,e,this.componentName));t.setOpen(!0,tB(uB,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,tB(uB))}};function UH(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),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};VL(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 WH(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),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=SB.request(()=>{a(`ending`)});return()=>{SB.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=SB.request(()=>{a(void 0)});return()=>{SB.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=SB.request(()=>{a(`idle`)});return()=>{SB.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function GH(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var KH=null;function qH(e){if(!KH){let e=[];KH=e,queueMicrotask(()=>{KH=null,gh.flushSync(()=>{for(let t of e)t()})})}KH.push(e)}function JH(e,t=!1,n=!1){let r=CB();return yB((i,a=null)=>{r.cancel();let o=CH(e);if(o==null)return;let s=o,c=()=>{n?qH(()=>{a?.aborted||i()}):gh.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(GH(s).map(e=>e.finished.then(pz))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(GH(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Rz;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 YH(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=yB(a),s=JH(r,n,i);U.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function XH(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=yB(i),{mounted:c,setMounted:l,transitionStatus:u}=WH(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=U.useRef(c),p=U.useRef(!1),m=xV(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=yB(()=>{f.current&&(t?(p.current=!0,m()):h())});return YH({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var ZH={tabIndex:-1,[Vie]:``};function QH(e){return t=>t!==`touch`||e.current}function $H(e,t=!1){let n=TV(),r=vH()!=null,i=cz(()=>e(n,r)).current;return UH({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function eU({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function tU(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function nU(e,t){let n=U.useRef(null);return yB(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),tU(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),tU(t))})}function rU(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 iU(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function aU(e,t,n,r={}){let i=n.reason,a=i===iB,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=iU(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=rU(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?gh.flushSync(l):l()}function oU(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=nU(e,n),o=yB(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=yB(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function sU(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=U.useRef(null),i=e.useState(`open`);Y(()=>{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=tB(nB);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 cU(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=XH({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 cz(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function lU(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:hz,inactiveTriggerProps:hz,popupProps:hz})},[e])}function uU(e,t){Y(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Y(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var dU=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}},fU=DV(19)?hU:gU;function pU(e,t,n,r,i){return fU(e,t,n,r,i)}function mU(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)}jie({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 hU(e,t,n,r,i){let a=Aie();if(!a)return mU(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 gU(e,t,n,r,i){return(0,Gj.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var _U=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 pU(this,e,t,n,r)}},vU=class extends _U{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{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),pU(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=yB(t??pz);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)}})}},yU={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},bU=class extends vU{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:mH(),nested:n,triggerElements:i},yU),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Bie(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 xU(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new bU({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:hz,inactiveTriggerProps:hz,popupProps:hz}}var SU=e=>e.triggerIdProp??e.activeTriggerId,CU=e=>e.openProp??e.open,wU=e=>(e.popupElement?.id??e.floatingId)||void 0;function TU(e,t){return t!==void 0&&CU(e)&&SU(e)===t}function EU(e,t){return TU(e,t)?!0:t!==void 0&&CU(e)&&SU(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var DU={open:CU,mounted:e=>e.mounted,transitionStatus:e=>CU(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:SU,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:wU,isTriggerActive:(e,t)=>t!==void 0&&SU(e)===t,isOpenedByTrigger:(e,t)=>TU(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&SU(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>EU(e,t)?wU(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function OU(e){let t=U.useCallback(t=>e===void 0?pz:e.subscribeStore(t),[e]),n=U.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,hS.useSyncExternalStore)(t,n,()=>e?.serverStore)}function kU(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=TV(),a=vH()!=null,o=cz(()=>new bU({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new dU,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=VL(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 AU=Tz&&Ez;function jU(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=yz();U.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=RL(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&HL(t)&&t===Mz(wB(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return fB(dB(r,`blur`,i),AU&&dB(r,`keydown`,a,!0),AU&&dB(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`);VL(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=Fz(n.nativeEvent);if(VL(a)){if(AU&&!n.relatedTarget){if(!c.current&&!Jz(a))return}else if(!Xz(a))return}let u=Kz(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,tB(aB,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,tB(aB,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=VL(r)&&r.hasAttribute(sV(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=Mz(wB(t));!r&&n===t||Nz(a.current.floatingContext?.refs.floating.current,n)||Nz(t,n)||o||Kz(r??n,e.context.triggerElements)||e.setOpen(!1,tB(aB,i))})}}},[a,r,e,l]);return U.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var MU=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new vz;restTimeout=new vz;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},NU=new WeakMap;function PU(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&NU.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),NU.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function FU(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=NU.get(n);a&&a!==e&&PU(a),PU(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,NU.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function IU(e){let t=e.context.dataRef.current,n=cz(()=>t.hoverInteractionState??MU.create()).current;return t.hoverInteractionState||=n,gz(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function LU(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=yH(),u=vH(),d=IU(e),f=yz(),p=yB(()=>eB(c.current.openEvent?.type,d.interactedInside)),m=yB(()=>oae(c.current.openEvent?.type)),h=yB(()=>{PU(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),U.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&VL(s)&&o){let e=s,t=o,n=wB(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??Pz(e,`[data-rootownerid]`)??n.body;return FU(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&&aV(l.nodesRef.current,u).length>0)}function a(t){let n=Qz(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,tB(iB,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Fz(e);iae(t)?d.interactedInside=Pz(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(Kz(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&VL(o)&&aV(l.nodesRef.current,r,!1).some(e=>Nz(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,tB(iB,n)),l.events.emit(`floating.closed`,n)})}let y=o;return fB(y&&dB(y,`mouseenter`,g),y&&dB(y,`mouseleave`,_),y&&dB(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var RU={current:null};function zU(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=RU,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=yH(l),v=IU(e),y=U.useRef(!1),b=gB(i),x=gB(r),S=gB(o),C=gB(n),w=gB(p),T=gB(f),E=yB(()=>eB(h.current.openEvent?.type,v.interactedInside)),D=yB(()=>w.current?.()!==!1),O=yB((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!Nz(t,n);if(!VL(r))return!1;let a=r;return i.hasMatchingElement(e=>Nz(e,a))&&(!t||!Nz(t,a))}),k=yB(()=>{v.handler&&=(wB(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=yB(()=>{PU(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===iB,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=Qz(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,tB(iB,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,tB(iB,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!VL(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!jz(v.pointerType))return;let n=$z(S.current),r=Qz(x.current,`open`,v.pointerType),i=Fz(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(VL(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(Nz(t,i)){c=t;break}}VL(o)&&VL(s)&&!e.context.triggerElements.hasElement(o)&&Nz(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&&VL(c)&&VL(s)&&Nz(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,tB(iB,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,tB(iB,t,c))}):g&&D()&&e.setOpen(!0,tB(iB,t,c)))}function o(n){if(E()){A();return}k();let r=wB(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Kz(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`&&Nz(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){Nz(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?dB(r,`mouseout`,l):void 0;return s?fB(dB(r,`mousemove`,i,{once:!0}),dB(r,`mouseenter`,i),dB(r,`mouseleave`,o),f):fB(dB(r,`mouseenter`,i),dB(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&&!jz(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;FU(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=$z(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,tB(iB,n,r))}v.pointerType===`touch`?gh.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function BU(e){return Ez&&e.movementX===0&&e.movementY===0}function VU(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function HU(e,t){return VU(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function UU(e,t,n){return VU(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function WU(e,t,n){return VU(t,n?e===Iz:e===Lz,e===Wie)}function GU(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:VU(t,n?e===Lz:e===Iz,e===Uie)}function KU(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=Zz(E),A=Yz(D),j=gB(k),M=vH(),N=yH(x),P=U.useRef(f),F=U.useRef(o??-1),I=U.useRef(null),L=U.useRef(!0),R=yB(e=>{i(F.current===-1?null:F.current,e)}),ee=U.useRef(!!E),z=U.useRef(T),te=U.useRef(!1),ne=U.useRef(!1),re=U.useRef(null),ie=gB(h),B=gB(T),ae=gB(o),oe=gB(b),V=CB(),se=CB(),ce=yB(()=>{V.cancel();function e(e){d||(re.current=lV(e,{sync:te.current,preventScroll:!0}))}let t=n.current[F.current],r=ne.current;t&&e(t),(te.current?e=>e():e=>V.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),me&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Y(()=>{O.current.orientation=g},[O,g]),Y(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Y(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ne.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),Y(()=>{if(a){if(!T)te.current=!1;else if(E){if(r==null){if(te.current=!1,ae.current!=null)return;if(ee.current&&(F.current=-1,ce()),(!z.current||!ee.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>se.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||UU(I.current,_,u)||l?kB(n):AB(n),I.current=null,R())};t()}}else OB(n.current,r)||(F.current=r,ce(),ne.current=!1)}}},[a,T,E,r,ae,l,n,_,u,R,ce,se]),Y(()=>{if(!a||E||!N||d||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=Mz(wB(D??t??null)),r=e.some(e=>e.context&&Nz(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Y(()=>{z.current=T,ee.current=!!E});let le=r!=null,ue=yB(e=>{if(!B.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),de=yB(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),fe=yB(()=>kB(n,ie.current)),pe=yB(t=>{if(L.current=!1,te.current=!0,t.which===229||!B.current&&t.currentTarget===j.current)return;if(l&&GU(t.key,g,u,w)){HU(t.key,de())||Oz(t),e.setOpen(!1,tB(sB,t.nativeEvent));let n=S?.current??D;HL(n)&&n.focus();return}r!=null&&r!==F.current&&!OB(n.current,r)&&(F.current=r);let i=F.current,a=kB(n,h),o=AB(n,h);if(A||(t.key===`Home`&&(Oz(t),F.current=a,R(t)),t.key===`End`&&(Oz(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(HU(t.key,g)){Oz(t);let e=Mz(t.currentTarget.ownerDocument);if(T&&!d&&Nz(t.currentTarget,e)&&!n.current.some(t=>t!=null&&Nz(t,e))){F.current=UU(t.key,g,u)?a:o,R(t),r===F.current&&ce();return}let{index:l,wrapped:f}=jB(n.current,i,{decrement:!UU(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(te.current=!1),F.current=l,R(t)}}),me=U.useMemo(()=>({onFocus(e){te.current=!0,ue(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){BU(e)||(te.current=!0,ne.current=!1,p&&ue(e))},onPointerLeave(e){if(!B.current||!L.current||e.pointerType===`touch`)return;te.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&oe.current&&(re.current?.(),re.current=null,F.current=-1,R(e),!d)){let e=j.current,t=Mz(wB(e));e&&Nz(e,t)&&e.focus({preventScroll:!0})}}}),[ue,B,j,p,n,R,oe,d]),he=U.useMemo(()=>d&&T&&le&&{"aria-activedescendant":`${y}-${r}`},[d,T,le,y,r]),ge=U.useMemo(()=>({...A?{}:he,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=Fz(t.nativeEvent);if(n&&!Nz(j.current,n))return;Oz(t);let r=tB(oB,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&HL(i)&&i.focus()}else pe(t)},onPointerMove(e){BU(e)||(L.current=!0)}}),[he,pe,j,A,e,T,d,D,S]),_e=U.useMemo(()=>{function t(t){e.setOpen(!0,tB(sB,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&kz(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&Az(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=WU(n.key,de(),u),o=HU(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Jz(n.currentTarget)))return pe(n);if(r||m||!i){if(s){let e=HU(n.key,de());I.current=l&&e?null:n.key}l?a&&(Oz(n),r?(F.current=fe(),R(n),d&&j.current?.focus()):t(n)):o&&(ae.current!=null&&(F.current=ae.current),Oz(n),!r&&m?t(n):pe(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}},[pe,f,fe,l,R,e,m,g,_,de,u,ae,d,j]),ve=U.useMemo(()=>({...he,..._e}),[he,_e]);return U.useMemo(()=>a?{reference:ve,floating:ge,item:me,trigger:_e}:{},[a,ve,ge,_e,me])}function qU(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=yB(s),f=e.useState(`open`),p=yz(),m=U.useRef(``),h=U.useRef(u??i??-1),g=U.useRef(null),_=yB(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!FB(n)||n?.matches(`:disabled`)?!1:o==null||!NB(mz,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===` `&&(Oz(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!==` `&&(Oz(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=yB(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);Nz(r,n)||Nz(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(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 JU=.1,YU=JU*JU,XU=.5;function ZU(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function QU(e,t,n,r,i,a,o,s,c,l){let u=!1;return ZU(e,t,n,r,i,a)&&(u=!u),ZU(e,t,i,a,o,s)&&(u=!u),ZU(e,t,o,s,c,l)&&(u=!u),ZU(e,t,c,l,n,r)&&(u=!u),u}function $U(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function eW(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 tW(e={}){let{blockPointerEvents:t=!1}=e,n=new vz,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*YU;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=Fz(r),g=r.type===`mouseleave`,_=Nz(u,h),v=Nz(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&VL(r.relatedTarget)&&Nz(u,r.relatedTarget))return;function y(){return!!(s&&aV(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=eW(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=eW(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=eW(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=eW(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!$U(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?XU/2:XU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+XU+1,o=C||T?S.bottom-XU:S.top,s=C?T?S.bottom-XU:S.top:S.bottom-XU;M=QU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?XU/2:XU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-XU,o=C||T?S.top+XU:S.bottom,s=C?T?S.top+XU:S.bottom:S.top+XU;M=QU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?XU/2:XU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+XU+1,o=w||E?S.right-XU:S.left,s=w?E?S.right-XU:S.left:S.right-XU;M=QU(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?XU/2:XU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-XU,o=w||E?S.left+XU:S.right,s=w?E?S.left+XU:S.right:S.left+XU;M=QU(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 nW=typeof document<`u`?U.useLayoutEffect:function(){};function rW(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(!rW(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)&&!rW(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function iW(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aW(e,t){let n=iW(e);return Math.round(t*n)/n}function oW(e){let t=U.useRef(e);return nW(()=>{t.current=e}),t}function sW(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);rW(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=oW(c),D=oW(i),O=oW(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),kR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!rW(w.current,t)&&(w.current=t,gh.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);nW(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);nW(()=>(A.current=!0,()=>{A.current=!1}),[]),nW(()=>{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=aW(M.floating,u.x),r=aW(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...iW(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 cW=(e,t)=>{let n=xR(e);return{name:n.name,fn:n.fn,options:[e,t]}},lW=(e,t)=>{let n=CR(e);return{name:n.name,fn:n.fn,options:[e,t]}},uW=(e,t)=>({fn:Jre(e).fn,options:[e,t]}),dW=(e,t)=>{let n=wR(e);return{name:n.name,fn:n.fn,options:[e,t]}},fW=(e,t)=>{let n=TR(e);return{name:n.name,fn:n.fn,options:[e,t]}},pW=U.createContext(void 0);function mW(e){let t=U.useContext(pW);if(t===void 0&&!e)throw Error(VH(47));return t}var hW=class extends vU{setState(e){}update(e){}set(e,t){}notifyAll(){}},gW={...DU,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!DU.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&DU.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>DU.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},_W=class extends vU{constructor(e,t,n){let r=new dU;super(vW(e,r,t,n),yW(r),gW)}setOpen=(e,t)=>{let n=t.reason===iB,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=iU(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=rU(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}),gh.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function vW(e,t,n,r=!1){let i={...xU(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 yW(e){return{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:U.createRef(),beforeTriggerFocusGuardRef:U.createRef(),beforeContentFocusGuardRef:U.createRef(),stickIfOpenTimeout:new vz,stickIfOpen:!0,triggerElements:e}}var bW=dz(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=SW(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),uU(u,d),sU(u);let{forceUnmount:m}=cU(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,tB(uB))}),[m,u]);let h=d||f||s!=null;return(0,W.jsxs)(pW.Provider,{value:u,children:[s&&(0,W.jsx)(eU,{handle:s,store:u}),h&&(0,W.jsx)(CW,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function xW(e){return mW(!0)?(0,W.jsx)(bW,{props:e}):(0,W.jsx)(SH,{children:(0,W.jsx)(bW,{props:e})})}function SW(e,t){let n=$H((e,n)=>new _W(t,e,n));return U.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function CW({store:e,modal:t}){let n=zH(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return lU(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var wW=U.createContext(void 0);function TW(e=!1){let t=U.useContext(wW);if(t===void 0&&!e)throw Error(VH(16));return t}function EW(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 DW(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(RL(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 OW(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=U.useRef(null),s=TW(!0),c=a??s!==void 0,{props:l}=EW({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=U.useCallback(()=>{let e=o.current;kW(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:U.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return PV({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(WV(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=kW(r),s=!i&&AW(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(),DW(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),DW(r,e)))},onKeyUp(e){t||(WV(e),a?.(e),e.target===e.currentTarget&&i&&c&&kW(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),DW(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:yB(e=>{o.current=e,u()})}}function kW(e){return HL(e)&&e.tagName===`BUTTON`}function AW(e){return HL(e)&&e.tagName===`A`&&!!e.href}function jW(e){return TV(e,`base-ui`)}function MW(e,t){function n(n,r,i){let a=n.currentTarget;gh.flushSync(()=>{e.setOpen(!1,tB(oB,n.nativeEvent,a))}),tV(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&&nV(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function NW(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 PW(e,t){let n=U.useRef(e),r=yB(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function FW(e,t){let{onClick:n,onPointerDown:r}=NW(yB((n,r)=>{(typeof e==`function`?e():e)||t(r||(Sz?`touch`:``))}));return U.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function IW(e){let[t,n]=U.useState(null),r=FW(e,n);return PW(e,t=>{t&&!e&&n(null)}),U.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var LW=fz(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=mW(!0),h=OU(s)??m;if(!h)throw Error(VH(74));let g=jW(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}=oU(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=zU(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:tW(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=NH(v,{stickIfOpen:yB(()=>h.context.stickIfOpen)}),k=FW(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=OW({disabled:a,native:o}),N={open(e){return w?Hz.open(e):Vz.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=MW(h,x),I=qV(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[tH]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,W.jsx)(U.Fragment,{children:I},g);return E?(0,W.jsxs)(U.Fragment,{children:[(0,W.jsx)(DB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,W.jsx)(DB,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),RW=U.createContext(void 0);function zW(){let e=U.useContext(RW);if(e===void 0)throw Error(VH(45));return e}var BW=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return mW().useState(`mounted`)||n?(0,W.jsx)(RW.Provider,{value:n,children:(0,W.jsx)(pH,{ref:t,...r})}):null});function VW(e){return DV(19)?e:e?`true`:void 0}var HW=U.createContext(void 0);function UW(){let e=U.useContext(HW);if(!e)throw Error(VH(46));return e}function WW(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=yH(n),p=U.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=sW({...e,elements:{...p,...l&&{reference:l}}}),h=U.useCallback(e=>{let t=VL(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 Y(()=>{o&&(d.current=o)},[o]),Y(()=>{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 GW=U.createContext(void 0);function KW(){return U.useContext(GW)?.direction??`ltr`}var qW=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}=XI(e,t)||{};if(l==null)return{};let d=mL(u),f={x:n,y:r},p=nL(i),m=eL(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=YI(D,k,O),j=!c.arrow&&QI(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}}}),JW=(e,t)=>{let{name:n,fn:r}=qW(e);return{name:n,fn:r,options:[e,t]}},YW={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}}}},XW={sideX:`left`,sideY:`top`},ZW=`--available-width`,QW=`--available-height`,$W=`--anchor-width`,eG=`--anchor-height`,tG=`--transform-origin`,nG=ZW,rG=QW;function iG(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 aG(e,t,n){let{rects:r,placement:i}=e;return{side:iG(t,ZI(i),n),align:QI(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function oG(e){return sG(e,WW)}function sG(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=yB(O),A=O?k:n,j=gB(n),M=gB(g),N=KW()===`rtl`,[P,F]=U.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?ZI(P):null,R=P&&I?QI(P)||`center`:null,ee=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],z=R||o,te=z===`center`?ee:`${ee}-${z}`,ne=l;typeof ne==`number`?ne={top:ne,right:ne,bottom:ne,left:ne}:ne&&={top:ne.top||0,right:ne.right||0,bottom:ne.bottom||0,left:ne.left||0};let re=+(i===`bottom`),ie=+(i===`top`),B=+(i===`right`),ae=+(i===`left`),oe={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:ne},V=U.useRef(null),se=gB(a),ce=gB(s),le=typeof a==`function`?0:a,ue=typeof s==`function`?0:s,de=[];p&&de.push(p),de.push(cW(e=>{let t=aG(e,i,N),n=typeof se.current==`function`?se.current(t):se.current,r=typeof ce.current==`function`?ce.current(t):ce.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[le,ue,N,i]));let fe=w===`none`&&C!==`shift`,pe=!fe&&(u||E||C===`shift`),me=C===`none`?null:dW({...oe,padding:{top:ne.top+1+re,right:ne.right+1+ae,bottom:ne.bottom+1+ie,left:ne.left+1+B},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),he=fe?null:lW({...oe,rootBoundary:D,mainAxis:w!==`none`,crossAxis:pe,limiter:u||E?void 0:uW(e=>{if(!V.current)return{};let{width:t,height:n}=V.current.getBoundingClientRect(),r=tL(ZI(e.placement)),i=r===`y`?t:n,a=r===`y`?ne.left+ne.right:ne.top+ne.bottom;return{offset:i/2+a/2}})},[oe,u,E,D,ne,w]);C===`shift`||w===`shift`||z===`center`?de.push(he,me):de.push(me,he),de.push(fW({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(nG,`${t}px`),i.setProperty(rG,`${n}px`);let a=RL(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($W,`${u}px`),i.setProperty(eG,`${d}px`)}}),JW(e=>({element:V.current||wB(e.elements.floating).createElement(`div`),padding:V.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=ZI(r),u=QI(r),d=tL(l)===`y`,f=V.current,p=typeof a==`function`?a(aG(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 pe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(tG,d?`${m} ${h}`:`${h} ${m}`),{}}},YW,b),Y(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ge=U.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:_e,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:h,open:m?g:void 0,placement:te,middleware:de,strategy:r,whileElementsMounted:m?void 0:(...e)=>bR(...e,ge),nodeId:y,externalTree:S}),{sideX:De,sideY:Oe}=xe.adaptiveOrigin||XW,ke=Te?r:`fixed`,Ae=U.useMemo(()=>{let e;return e=Te?b?{position:ke,[De]:ye,[Oe]:be}:{...Ee,position:ke}:{position:ke,top:0,left:0},e[nG]=`100vw`,e[rG]=`100vh`,Te||(e.opacity=0),e},[b,ke,De,ye,Oe,be,Ee,Te]),je=U.useRef(null);Y(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(cG(t)?t.current:t)||null;n!==je.current&&(_e.setPositionReference(n),je.current=n)},[g,_e,A,j]),U.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&cG(e)&&e.current!==je.current&&(_e.setPositionReference(e.current),je.current=e.current)},[g,_e,A,j]),U.useEffect(()=>{if(m&&g&&ve.reference&&ve.floating)return bR(ve.reference,ve.floating,Se,ge)},[m,g,ve,Se,ge]);let Me=ZI(Ce),Ne=iG(i,Me,N),Pe=QI(Ce)||`center`,Fe=!!xe.hide?.referenceHidden;Y(()=>{x&&g&&Te&&(Me!==ee||I&&Pe!==z)&&F(Ce)},[x,I,g,Te,Ce,Me,Pe,ee,z]);let Ie=U.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Le=xe.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Ae,arrowStyles:Ie,arrowRef:V,arrowUncentered:Le,side:Ne,align:Pe,physicalSide:Me,anchorHidden:Fe,refs:_e,context:we,isPositioned:Te,update:Se}),[Ae,Ie,V,Le,Ne,Pe,Me,Fe,_e,we,Te,Se])}function cG(e){return e!=null&&`current`in e}var lG=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,W.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function uG(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=U.useRef(null),o=U.useRef(null),s=JH(r);Y(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Y(()=>{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 dG(e){return e===`starting`?eH:hz}function fG(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),qV(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},dG(r),i],stateAttributesMapping:Uz})}var pG={},mG={},hG=``;function gG(e,t){return WL(e)?e:t}function _G(e,t,n){return/hidden|clip/.test(e.getComputedStyle(gG(t,n)).overflowY)}function vG(e){if(typeof document>`u`)return!1;let t=wB(e);return RL(t).innerWidth-t.documentElement.clientWidth>0}function yG(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=wB(e),n=t.documentElement,r=t.body,i=gG(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 bG(e){let t=wB(e),n=t.documentElement,r=t.body,i=gG(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 xG(e){let t=wB(e),n=t.documentElement,r=t.body,i=RL(n),a=0,o=0,s=!1,c=SB.create();if(Ez&&(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,pG={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},hG=n.style.scrollBehavior,mG={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=gG(n,r);s=yG(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,pG),Object.assign(r.style,mG),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=hG)}function d(){u(),c.request(l)}l();let f=dB(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var SG=new class{lockCount=0;restore=null;timeoutLock=vz.create();timeoutUnlock=vz.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=wB(e),n=t.documentElement,r=t.body,i=RL(n);if(_G(i,n,r)){let t=new i.MutationObserver(()=>{_G(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=Sz||!vG(e);this.restore=a?bG(e):xG(e)}};function CG(e=!0,t=null){Y(()=>{if(e)return SG.acquire(t)},[e,t])}var wG=20;function TG(e,t,n,r){let[i,a]=U.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=wB(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-wG)},[e,t,n]),CG(e&&(!t||i),r)}var EG=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=sH,..._}=e,v=mW(),y=zW(),b=bH(),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=oG({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`)});uG({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;TG(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=fG(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,W.jsxs)(HW.Provider,{value:j,children:[S&&M&&(0,W.jsx)(lG,{inert:VW(!C),cutout:T}),(0,W.jsx)(xH,{id:b,children:P})]})}),DG=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),OG=U.createContext(void 0);function kG(e){let t=U.useContext(OG);if(t===void 0&&!e)throw Error(VH(69));return t}var AG=U.createContext(void 0);function jG(){let[e,t]=U.useState(0),n=yB(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:U.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var MG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=mW(),l=UW(),u=kG(!0)!=null,{context:d,hasClosePart:f}=jG(),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`);YH({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),LU(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?QH(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=qV(`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`,...ZH,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&DG.has(e.key)&&e.stopPropagation()}},dG(g),s],stateAttributesMapping:Wz});return(0,W.jsx)(MH,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:HL(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,W.jsx)(AG.Provider,{value:d,children:M})})}),NG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=mW(),s=jW(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),qV(`h2`,e,{ref:t,props:[{id:s},a]})}),PG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=mW(),s=jW(a.id);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),qV(`p`,e,{ref:t,props:[{id:s},a]})}),FG=function(e){let{direction:t=`ltr`}=e,n=U.useMemo(()=>({direction:t}),[t]);return(0,W.jsx)(GW.Provider,{value:n,children:e.children})};function IG(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 LG(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 RG(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 zG=4e3;function BG(e,t){let n=VG(e);return n[Math.min(Math.max(0,t),n.length-1)]}function VG(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…`),n=e.title?.trim()||G(`Untitled meeting`);return e.meetings&&e.meetings>1?[G(`Reading {title} {others}…`,{title:n,others:G(`and {count} others`,{count:e.meetings-1})}),t]:[G(`Reading {title}…`,{title:n}),G(`Still reading {title}…`,{title:n}),t]}var HG=864e5,UG=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/HG);function WG(e,t={}){let n=new Date(e),r=UG(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(Cm(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(Cm(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function GG(e){let t=UG(e);if(t===0||t===1)return WG(e);let n=new Date(e);return n.toLocaleDateString(Cm(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var KG=e=>new Date(e).toLocaleTimeString(Cm(),{hour:`numeric`,minute:`2-digit`});function qG(e,t,n=Cm()){let r=new Intl.DateTimeFormat(n,{hour:`numeric`,minute:`2-digit`});if(t==null)return r.format(e);let i=e=>r.formatToParts(e).find(e=>e.type===`dayPeriod`)?.value,a=i(e);return t>=e&&a&&a===i(t)&&new Date(e).toDateString()===new Date(t).toDateString()?r.formatRange(e,t):`${r.format(e)} – ${r.format(t)}`}var JG=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},YG=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},XG=(e,t)=>t.startsWith(e)?e:t.slice(0,YG(t,JG(e,t))),ZG=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=XG(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,YG(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function QG(e,t,n={}){let r=Dd(),i=t&&!r,[a]=(0,U.useState)(()=>new ZG(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?XG(o,e):e}function $G(e,t){for(let n of Eh(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 eK(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:$G(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(Gm(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}))[0]?.content??[]}function tK(e,t){let n=e.atMs===null?`notes`:`transcript`,r=e.transcript?.lines??[],i=e.excerpt??``;n===`transcript`&&(i=Dh(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(Dh(t.text))||Dh(t.text).startsWith(e.slice(n.length))))return e.slice(n.length)}return e}).join(`
-`));let a=Nh(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[Fh(r.map(e=>e.text),t,o)]:void 0,s=Bh(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?$G(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:zh[s],atMs:a?.startMs}},c=s(a.match),l=n===`transcript`?r.flatMap(e=>{let t=Dh(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=iF(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 aF(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 oF=64;function sF(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 cF(e){let t=e.indexOf(`
+`),n=t===-1?e:e.slice(0,t);if(!JP.test(n))return[[],0,[]];let r=oF,i=sF(e,r),a=tF(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=sF(e,r),a=tF(i);return[a[0],a[1],i]}var lF=`listItem`,uF=`textStyle`,dF=/^(\d+)\.\s$/;function fF(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 pF=CA.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=fF(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=fF(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=uO(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?aF(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]=cF(e);if(r.length===0)return;let o=iF(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(lF,this.editor.getAttributes(uF)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new $x({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=rF(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=SA({find:dF,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=SA({find:dF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(uF)}),joinPredicate:e,editor:this.editor})),[t]}}),mF=/^\s*(\[([( |x])?\])\s$/,hF=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,gF=(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`}`},_F=CA.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`,uO(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)=>Lk(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[yP(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=hF;let l=e=>{let t=gF(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=dO(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[SA({find:mF,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),vF=CA.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`,uO(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=Pk(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=Pk(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()}}});nA.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(hP.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(RP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(qP.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(pF.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(_F.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(vF.configure(this.options.taskList)),e}});var yF=`&nbsp;`,bF=`\xA0`,xF=CA.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,uO(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===yF||n[0].text===yF||n[0].raw===bF||n[0].text===bF)&&r.length===1&&r[0].type===`text`&&(r[0].text===yF||r[0].text===bF)?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?yF:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),SF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,CF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,wF=Jk.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`,uO(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[yA({find:SF,type:this.type})]},addPasteRules(){return[wA({find:CF,type:this.type})]}}),TF=CA.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),EF=Jk.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`,uO(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 DF(e={}){return new $x({view(t){return new OF(t,e)}})}var OF=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=px(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)}},kF=class e extends Fx{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Fx.near(r)}content(){return q.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 AF(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!MF(e)||!NF(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&&!Vx.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}}};kF.prototype.visible=!1,kF.findFrom=kF.findGapCursorFrom,Fx.jsonID(`gapcursor`,kF);var AF=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 kF.valid(t)?new kF(t):Fx.near(t)}};function jF(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function MF(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||jF(e.type))return!0;if(e.inlineContent)return!1}}return!0}function NF(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||jF(e.type))return!0;if(e.inlineContent)return!1}}return!0}function PF(){return new $x({props:{decorations:zF,createSelectionBetween(e,t,n){return t.pos==n.pos&&kF.valid(n)?new kF(n):null},handleClick:LF,handleKeyDown:FF,handleDOMEvents:{beforeinput:RF}}})}var FF=UE({ArrowLeft:IF(`horiz`,-1),ArrowRight:IF(`horiz`,1),ArrowUp:IF(`vert`,-1),ArrowDown:IF(`vert`,1)});function IF(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 zx){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=kF.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new kF(c))),!0):!1}}function LF(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!kF.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Vx.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new kF(r))),!0)}function RF(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof kF))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=K.empty;for(let e=r.length-1;e>=0;e--)i=K.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new q(i,0,0));return a.setSelection(zx.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function zF(e){if(!(e.selection instanceof kF))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,dE.create(e.doc,[cE.widget(e.selection.head,t,{key:`gapcursor`})])}nA.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 $x({key:new nS(`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 BF=nA.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[DF(this.options)]}});nA.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new $x({key:new nS(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return dE.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(cE.node(t,t+e.nodeSize,{class:this.options.className}))}),dE.create(e,a)}}})]}});var VF=nA.create({name:`gapCursor`,addProseMirrorPlugins(){return[PF()]},extendNodeSchema(e){return{allowGapCursor:oO(XD(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),HF=`placeholder`,UF=new nS(`tiptap__placeholder`);function WF(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),cE.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function GF(e,t){return typeof e==`function`?e(t):e}function KF({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&&IO(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(WF({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:GF(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function qF({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&&IO(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(WF({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:GF(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...KF({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return dE.create(r,o)}function JF(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 YF(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function XF(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 ZF(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 QF(e,t){let n=XF(e,t.from,t.to);return n.push(YF(e,JF(e,t.from))),t.to>t.from?n.push(YF(e,JF(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(YF(e,JF(e,Math.min(t.from+1,e.content.size)))),n}function $F(e,t,n){let r=[];if(e.docChanged){let t=DO(e);for(let e of t)r.push(...QF(n.doc,e.newRange))}return e.selectionSet&&(r.push(YF(n.doc,JF(n.doc,e.mapping.map(t.selection.anchor)))),r.push(YF(n.doc,JF(n.doc,n.selection.anchor)))),ZF(r)}function eI(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 tI({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}=eI(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=KF({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function nI({editor:e,options:t,dataAttribute:n}){return{init(r,i){return qF({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??dE.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:tI({decorations:i.map(r.mapping,r.doc),ranges:$F(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function rI(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function iI({editor:e,options:t}){let n=t.dataAttribute?`data-${rI(t.dataAttribute)}`:`data-${HF}`,r=t.showOnlyCurrent&&!t.includeChildren;return new $x({key:UF,...r?{}:{state:nI({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>qF({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?dE.empty:UF.getState(n)??dE.empty}})}var aI=nA.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:HF,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[iI({editor:this.editor,options:this.options})]}});function oI(e,t){return!e.selection.empty&&!LO(e.selection)&&t.isEditable}function sI(e,t){return oI(e,t)&&!t.isFocused&&!t.view.dragging}function cI(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function lI(e){e.focus()}nA.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new $x({key:new nS(`selection`),props:{decorations(n){return sI(n,e)?dE.create(n.doc,[cE.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return oI(t.state,e)&&cI(),!1},focus(t){return oI(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&lI(t)}),!1}}}})]}});function uI({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var dI=nA.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new nS(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 $x({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!uI({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!uI({node:r,types:n})}}})]}}),fI=nA.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>aD(e,t),redo:()=>({state:e,dispatch:t})=>oD(e,t)}},addProseMirrorPlugins(){return[zte(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()}}}),pI=nA.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(xre.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(gre.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(hP.configure(this.options.bulletList)),this.options.code!==!1&&e.push(Tre.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(Ore.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(kre.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(BF.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(VF.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Are.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(jre.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(fI.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(Mre.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(Lre.configure(this.options.italic)),this.options.listItem!==!1&&e.push(RP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(qP.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(dP.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(pF.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(xF.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(wF.configure(this.options.strike)),this.options.text!==!1&&e.push(TF.configure(this.options.text)),this.options.underline!==!1&&e.push(EF.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(dI.configure(this.options?.trailingNode)),e}}),mI=aI,hI=[`top`,`right`,`bottom`,`left`],gI=[`start`,`end`],_I=hI.reduce((e,t)=>e.concat(t,t+`-`+gI[0],t+`-`+gI[1]),[]),vI=Math.min,yI=Math.max,bI=Math.round,xI=Math.floor,SI=e=>({x:e,y:e}),CI={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function wI(e,t,n){return yI(e,vI(t,n))}function TI(e,t){return typeof e==`function`?e(t):e}function EI(e){return e.split(`-`)[0]}function DI(e){return e.split(`-`)[1]}function OI(e){return e===`x`?`y`:`x`}function kI(e){return e===`y`?`height`:`width`}function AI(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function jI(e){return OI(AI(e))}function MI(e,t,n){n===void 0&&(n=!1);let r=DI(e),i=jI(e),a=kI(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=VI(o)),[o,VI(o)]}function NI(e){let t=VI(e);return[PI(e),t,PI(t)]}function PI(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var FI=[`left`,`right`],II=[`right`,`left`],LI=[`top`,`bottom`],RI=[`bottom`,`top`];function zI(e,t,n){switch(e){case`top`:case`bottom`:return n?t?II:FI:t?FI:II;case`left`:case`right`:return t?LI:RI;default:return[]}}function BI(e,t,n,r){let i=DI(e),a=zI(EI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(PI)))),a}function VI(e){let t=EI(e);return CI[t]+e.slice(t.length)}function HI(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function UI(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:HI(e)}function WI(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 GI(e,t,n){let{reference:r,floating:i}=e,a=AI(t),o=jI(t),s=kI(o),c=EI(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=DI(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function KI(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}=TI(t,e),p=UI(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=WI(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=WI(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 qI=50,JI=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:KI},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=GI(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<qI&&(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}=GI(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},YI=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}=TI(e,t)||{};if(l==null)return{};let d=UI(u),f={x:n,y:r},p=jI(i),m=kI(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=vI(d[_],T),D=vI(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=wI(E,k,O),j=!c.arrow&&DI(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 XI(e,t,n){return(e?[...n.filter(t=>DI(t)===e),...n.filter(t=>DI(t)!==e)]:n.filter(e=>EI(e)===e)).filter(n=>!e||DI(n)===e||(t?PI(n)!==n:!1))}var ZI=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=_I,autoAlignment:u=!0,...d}=TI(e,t),f=c!==void 0||l===_I?XI(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=MI(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[EI(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=DI(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,DI(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}}}}},QI=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}=TI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=EI(r),_=AI(o),v=EI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[VI(o)]:NI(o)),x=p!==`none`;!d&&x&&b.push(...BI(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=MI(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`||_===AI(t)||T.every(e=>AI(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=AI(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 $I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return hI.some(t=>e[t]>=0)}var tL=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=TI(e,t);switch(i){case`referenceHidden`:{let e=$I(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:eL(e)}}}case`escaped`:{let e=$I(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:eL(e)}}}default:return{}}}}};function nL(e){let t=vI(...e.map(e=>e.left)),n=vI(...e.map(e=>e.top)),r=yI(...e.map(e=>e.right)),i=yI(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function rL(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=>WI(nL(e)))}var iL=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}=TI(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=rL(u),f=WI(nL(u)),p=UI(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(AI(n)===`y`){let e=d[0],t=d[d.length-1],r=EI(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return WI({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=EI(n)===`left`,t=yI(...d.map(e=>e.right)),r=vI(...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 WI({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}}:{}}}},aL=new Set([`left`,`top`]);async function oL(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=EI(n),s=DI(n),c=AI(n)===`y`,l=aL.has(o)?-1:1,u=a&&c?-1:1,d=TI(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 sL=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 oL(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}}}}},cL=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}=TI(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=AI(i),p=OI(f),m=u[p],h=u[f],g=(e,t)=>wI(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}}}}}},lL=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}=TI(e,t),u={x:n,y:r},d=AI(i),f=OI(d),p=u[f],m=u[d],h=TI(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=aL.has(EI(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}}}},uL=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}=TI(e,t),c=await i.detectOverflow(t,s),l=EI(n),u=DI(n),d=AI(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=vI(p-c[m],g),y=vI(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*yI(c.left,c.right):S=p-2*yI(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 dL(){return typeof window<`u`}function fL(e){return hL(e)?(e.nodeName||``).toLowerCase():`#document`}function pL(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mL(e){return((hL(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function hL(e){return dL()?e instanceof Node||e instanceof pL(e).Node:!1}function gL(e){return dL()?e instanceof Element||e instanceof pL(e).Element:!1}function _L(e){return dL()?e instanceof HTMLElement||e instanceof pL(e).HTMLElement:!1}function vL(e){return!dL()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof pL(e).ShadowRoot}function yL(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=AL(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function bL(e){return/^(table|td|th)$/.test(fL(e))}function xL(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var SL=/transform|translate|scale|rotate|perspective|filter/,CL=/paint|layout|strict|content/,wL=e=>!!e&&e!==`none`,TL;function EL(e){let t=gL(e)?AL(e):e;return wL(t.transform)||wL(t.translate)||wL(t.scale)||wL(t.rotate)||wL(t.perspective)||!OL()&&(wL(t.backdropFilter)||wL(t.filter))||SL.test(t.willChange||``)||CL.test(t.contain||``)}function DL(e){let t=ML(e);for(;_L(t)&&!kL(t);){if(EL(t))return t;if(xL(t))return null;t=ML(t)}return null}function OL(){return TL??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),TL}function kL(e){return/^(html|body|#document)$/.test(fL(e))}function AL(e){return pL(e).getComputedStyle(e)}function jL(e){return gL(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ML(e){if(fL(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||vL(e)&&e.host||mL(e);return vL(t)?t.host:t}function NL(e){let t=ML(e);return kL(t)?(e.ownerDocument||e).body:_L(t)&&yL(t)?t:NL(t)}function PL(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=NL(e),i=r===e.ownerDocument?.body,a=pL(r);if(i){let e=FL(a);return t.concat(a,a.visualViewport||[],yL(r)?r:[],e&&n?PL(e):[])}return t.concat(r,PL(r,[],n))}function FL(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function IL(e){let t=AL(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=_L(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=bI(n)!==a||bI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function LL(e){return gL(e)?e:e.contextElement}function RL(e){let t=LL(e);if(!_L(t))return SI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=IL(t),o=(a?bI(n.width):n.width)/r,s=(a?bI(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var zL=SI(0);function BL(e){let t=pL(e);return!OL()||!t.visualViewport?zL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VL(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===pL(e)}function HL(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=LL(e),o=SI(1);t&&(r?gL(r)&&(o=RL(r)):o=RL(e));let s=VL(a,n,r)?BL(a):SI(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=pL(a),t=gL(r)?pL(r):r,n=e,i=FL(n);for(;i&&t!==n;){let e=RL(i),t=i.getBoundingClientRect(),r=AL(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=pL(i),i=FL(n)}}return WI({width:u,height:d,x:c,y:l})}function UL(e,t){let n=jL(e).scrollLeft;return t?t.left+n:HL(mL(e)).left+n}function WL(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-UL(e,n),y:n.top+t.scrollTop}}function GL(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=mL(r),s=t?xL(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=SI(1),u=SI(0),d=_L(r);if((d||!a)&&((fL(r)!==`body`||yL(o))&&(c=jL(r)),d)){let e=HL(r);l=RL(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?WL(o,c):SI(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 KL(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function qL(e){let t=jL(e),n=e.ownerDocument.body,r=yI(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=yI(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+UL(e),o=-t.scrollTop;return AL(n).direction===`rtl`&&(a+=yI(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var JL=25;function YL(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=pL(e),a=mL(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!OL()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(UL(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<=JL&&(s-=o)}return{width:s,height:c,x:l,y:u}}function XL(e,t){let n=HL(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=RL(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ZL(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=YL(e,n,t);else if(t===`document`)r=qL(mL(e));else if(gL(t))r=XL(t,n);else{let n=BL(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return WI(r)}function QL(e,t){let n=t.get(e);if(n)return n;let r=PL(e,[],!1).filter(e=>gL(e)&&fL(e)!==`body`),i=null,a=AL(e).position===`fixed`,o=a?ML(e):e;for(;gL(o)&&!kL(o);){let e=AL(o),t=EL(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ML(o)}return t.set(e,r),r}function $L(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?xL(t)?[]:QL(t,this._c):[].concat(n),r],o=ZL(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=ZL(t,a[e],i);s=yI(n.top,s),c=vI(n.right,c),l=vI(n.bottom,l),u=yI(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function eR(e){let{width:t,height:n}=IL(e);return{width:t,height:n}}function tR(e,t,n){let r=_L(t),i=mL(t),a=n===`fixed`,o=HL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=SI(0);if((r||!a)&&((fL(t)!==`body`||yL(i))&&(s=jL(t)),r)){let e=HL(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=UL(i));let l=i&&!r&&!a?WL(i,s):SI(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 nR(e){return AL(e).position===`static`}function rR(e,t){if(!_L(e)||AL(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return mL(e)===n&&(n=n.ownerDocument.body),n}function iR(e,t){let n=pL(e);if(xL(e))return n;if(!_L(e)){let t=ML(e);for(;t&&!kL(t);){if(gL(t)&&!nR(t))return t;t=ML(t)}return n}let r=rR(e,t);for(;r&&bL(r)&&nR(r);)r=rR(r,t);return r&&kL(r)&&nR(r)&&!EL(r)?n:r||DL(e)||n}var aR=async function(e){let t=this.getOffsetParent||iR,n=this.getDimensions,r=await n(e.floating);return{reference:tR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oR(e){return AL(e).direction===`rtl`}var sR={convertOffsetParentRelativeRectToViewportRelativeRect:GL,getDocumentElement:mL,getClippingRect:$L,getOffsetParent:iR,getElementRects:aR,getClientRects:KL,getDimensions:eR,getScale:RL,isElement:gL,isRTL:oR};function cR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lR(e,t,n){let r=null,i,a=mL(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=xI(d),h=xI(a.clientWidth-(u+f)),g=xI(a.clientHeight-(d+p)),_=xI(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:yI(0,vI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!cR(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=pL(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function uR(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=LL(e),u=i||a?[...l?PL(l):[],...t?PL(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?lR(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?HL(e):null;c&&g();function g(){let t=HL(e);h&&!cR(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 dR=sL,fR=ZI,pR=cL,mR=QI,hR=uL,gR=tL,_R=YI,vR=iL,yR=lL,bR=(e,t,n)=>{let r=new Map,i=n??{},a={...sR,...i.platform,_c:r};return JI(e,t,{...i,platform:a})},xR,SR;if(typeof WeakMap<`u`){let e=new WeakMap;xR=t=>e.get(t),SR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;xR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},SR=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var CR=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 xR(e)||SR(e,wR(e))}};function wR(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=TR(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 CR(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&&ER(s,o,e),s}function TR(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 ER(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||=Wre(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function Wre(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function DR(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 nS(`selectingCells`);function Gre(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 OR(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 Kre(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=Gre(t.$head)||qre(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function qre(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 kR(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function AR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function jR(e,t,n){let r=e.node(-1),i=CR.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 MR(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 NR=class e extends Fx{constructor(e,t=e){let n=e.node(-1),r=CR.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 Ix(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(kR(r)&&kR(i)&&AR(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 zx.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=CR.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=MR(e,0,l)),u>0&&(e=MR(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(K.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new q(K.from(o),1,1)}replace(e,t=q.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?q.empty:t)}let i=Fx.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new q(K.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=CR.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=CR.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=CR.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=CR.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 Jre(this.$anchorCell.pos,this.$headCell.pos)}};NR.prototype.visible=!1,Fx.jsonID(`cell`,NR);var Jre=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&&AR(t,n)?new NR(t,n):Fx.near(n,1)}};new nS(`fix-tables`);function PR(e){let t=e.selection,n=Kre(e),r=n.node(-1),i=n.start(-1),a=CR.get(r);return{...t instanceof NR?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function Yre(e){return function(t,n){if(!OR(t))return!1;if(n){let r=DR(t.schema),i=PR(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 FR(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 IR(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?Yre(e):function(t,n){if(!OR(t))return!1;if(n){let r=DR(t.schema),i=PR(t),a=t.tr,o=FR(`row`,i,r),s=FR(`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}}IR(`row`,{useDeprecatedLogic:!0}),IR(`column`,{useDeprecatedLogic:!0}),IR(`cell`,{useDeprecatedLogic:!0});function LR(e,t){let n=e.selection;if(!(n instanceof NR))return!1;if(t){let r=e.tr,i=DR(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 q(i,0,0))}),r.docChanged&&t(r)}return!0}UE({ArrowLeft:zR(`horiz`,-1),ArrowRight:zR(`horiz`,1),ArrowUp:zR(`vert`,-1),ArrowDown:zR(`vert`,1),"Shift-ArrowLeft":BR(`horiz`,-1),"Shift-ArrowRight":BR(`horiz`,1),"Shift-ArrowUp":BR(`vert`,-1),"Shift-ArrowDown":BR(`vert`,1),Backspace:LR,"Mod-Backspace":LR,Delete:LR,"Mod-Delete":LR});function RR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function zR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof NR)return RR(n,r,Fx.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=VR(i,e,t);if(o==null)return!1;if(e==`horiz`)return RR(n,r,Fx.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=jR(i,e,t),s;return s=a?Fx.near(a,1):t<0?Fx.near(n.doc.resolve(i.before(-1)),-1):Fx.near(n.doc.resolve(i.after(-1)),1),RR(n,r,s)}}}function BR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof NR)o=a;else{let r=VR(i,e,t);if(r==null)return!1;o=new NR(n.doc.resolve(r))}let s=jR(o.$headCell,e,t);return s?RR(n,r,new NR(o.$anchorCell,s)):!1}}function VR(e,t,n){if(!(e.state.selection instanceof zx))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 nS(`tableColumnResizing`);function Xre(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 Zre=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(mR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(pR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(dR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(_R(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(hR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(fR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(gR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(vR(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=zO(this.view,t.from,t.to),i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(t instanceof Vx){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 NR){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():Xre(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&&_D(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&&bR(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()}},HR=e=>new $x({key:typeof e.pluginKey==`string`?new nS(e.pluginKey):e.pluginKey,view:t=>new Zre({view:t,...e})});nA.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[HR({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 Qre=class{getTextContent(e){return xO(e,{textSerializers:SO(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(mR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(pR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(dR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(_R(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(hR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(fR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(gR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(vR(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=zO(this.view,t.from,t.to);bR({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()}},UR=e=>new $x({key:typeof e.pluginKey==`string`?new nS(e.pluginKey):e.pluginKey,view:t=>new Qre({view:t,...e})});nA.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?[UR({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 WR(e,t){return e??new nS(t)}var $re=typeof window<`u`?U.useLayoutEffect:U.useEffect,GR=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),eie=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(`.`)),tie=new Set([`children`,`className`,`style`]),nie=new Set([`tabIndex`]),rie=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),iie={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function KR(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function aie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function oie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||rie.has(e)}function qR(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function sie(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:iie[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function cie(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 JR(e){return nie.has(e)}function YR(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function lie(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function uie(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||eie.has(e)?String(t):`${t}px`}function die(e,t){GR.has(t)||e.style.removeProperty(qR(t))}function fie(e,t,n){GR.has(t)||e.style.setProperty(qR(t),uie(t,n))}function pie(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(tie.has(r)||!oie(r)||KR(r,t[r])||KR(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=aie(r);a==null||a===!1?(JR(r)&&lie(e,r),e.removeAttribute(o)):a===!0?(JR(r)&&YR(e,r,!0),e.setAttribute(o,``)):JR(r)?YR(e,r,a):e.setAttribute(o,String(a))})}function mie(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function hie(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?die(e,t):fie(e,t,a))})}function gie(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(!KR(t,n))return;let{eventName:i,options:a}=sie(t),o=t=>{n(cie(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function XR(e,t){let n=(0,U.useRef)({}),r=(0,U.useRef)([]);$re(()=>{let i=n.current;return mie(e,i.className,t.className),hie(e,i.style,t.style),pie(e,i,t),r.current=gie(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 _ie=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)(WR(e,`bubbleMenu`)).current;XR(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=Pj(),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=HR({...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)(WR(e,`floatingMenu`)).current;XR(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=Pj(),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=UR({...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 vie({editor:e}){let t=lv(),n=(0,U.useRef)(null),r=(0,U.useRef)(null),[i]=(0,U.useState)(()=>document.createElement(`div`)),[a,o]=(0,U.useState)(),s=jj({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:aee,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:W(`Italic`),icon:l_,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:W(`Heading`),icon:t_,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:W(`Bulleted list`),icon:y_,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:W(`Numbered list`),icon:__,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,G.jsx)(_ie,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,G.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":W(`Text formatting`),dir:gt(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)*(gt(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,G.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(tD(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,G.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var yie=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]}))}},ZR=new nS(`streamingInk`),QR=e=>Math.max(0,Math.min(1,e)),$R=qt(.18,.8,.25,1),bie=nA.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new yie;return[new $x({key:ZR,state:{init:()=>({live:!1,reduced:!1,decorations:dE.empty}),apply(t,n){let r=t.getMeta(ZR)??n;if(!r.live)return e.update(``,0),{...r,decorations:dE.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(cE.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:dE.create(t.doc,s)}}},props:{decorations:e=>ZR.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}=ZR.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:QR((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)*$R(f)}px`,c.style.transform=`scaleY(${1-.72*$R(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-QR(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=$R(QR(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-QR((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)}}})]}}),xie=Jk.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function ez(e){let t=(0,U.useId)(),n=Mf(),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=lre({extensions:[pI.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`}}),mI.configure({placeholder:e.placeholder??``}),xie,bie],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(ZR,{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[pt(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,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,G.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,G.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,G.jsx)(`g`,{className:`summary-wash`})]}),(0,G.jsx)(Aj,{editor:o}),(0,G.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,G.jsx)(vie,{editor:o})]})}var tz={};function nz(e,t){let n=U.useRef(tz);return n.current===tz&&(n.current=e(t)),n}var rz=[],iz=void 0;function Sie(){return iz}function Cie(e){rz.push(e)}function az(e){let t=(t,n)=>{let r=nz(wie).current,i;try{iz=r;for(let e of rz)e.before(r);i=e(t,n);for(let e of rz)e.after(r);r.didInitialize=!0}finally{iz=void 0}return i};return t.displayName=e.displayName||e.name,t}function oz(e){return U.forwardRef(az(e))}function wie(){return{didInitialize:!1}}function sz(){}var cz=Object.freeze([]),lz=Object.freeze({});function uz(e){U.useEffect(e,cz)}var dz=0,fz=class e{static create(){return new e}currentId=dz;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=dz,t()},e)}isStarted(){return this.currentId!==dz}clear=()=>{this.currentId!==dz&&(clearTimeout(this.currentId),this.currentId=dz)};disposeEffect=()=>this.clear};function pz(){let e=nz(fz.create).current;return uz(e.disposeEffect),e}var Y=typeof document<`u`?U.useLayoutEffect:()=>{};function Tie(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Eie,platform:Die,maxTouchPoints:Oie}=Tie(),mz=Eie.toLowerCase(),hz=Die.toLowerCase(),gz=/^i(os$|p)/.test(hz)||hz===`macintel`&&Oie>1,_z=`android`,vz=hz===_z||mz.includes(_z),yz=!gz&&hz.startsWith(`mac`);hz.startsWith(`win`),!vz&&/^(linux|chrome os)/.test(hz);var kie=yz||gz,bz=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!bz&&mz.includes(`firefox`),!bz&&mz.includes(`chrom`);var Aie=kie,xz=/jsdom|happydom/.test(mz);function Sz(e){e.preventDefault(),e.stopPropagation()}function jie(e){return`nativeEvent`in e}function Cz(e){return e.pointerType===``&&e.isTrusted?!0:vz&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function wz(e){return xz?!1:!vz&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(vz||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Tz(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Mie(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Ez(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Dz(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&vL(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Oz(e,t){let n=e;for(;n;){if(gL(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(vL(n)?n.host:null)}return null}function kz(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Nie=`data-base-ui-focusable`,Pie=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Az=`ArrowLeft`,jz=`ArrowRight`,Fie=`ArrowUp`,Iie=`ArrowDown`,Mz=`data-starting-style`,Lie=`data-ending-style`,Rie={[Mz]:``},zie={[Lie]:``},Nz={transitionStatus(e){return e===`starting`?Rie:e===`ending`?zie:null}},Bie=`data-open`,Vie=`data-closed`,Hie=`data-anchor-hidden`,Pz=`data-popup-open`,Uie=`data-pressed`,Wie={[Pz]:``},Gie={[Pz]:``,[Uie]:``},Kie={[Bie]:``},qie={[Vie]:``},Jie={[Hie]:``},Fz={open(e){return e?Wie:null}},Iz={open(e){return e?Gie:null}},Lz={open(e){return e?Kie:qie},anchorHidden(e){return e?Jie:null}},Rz={...Lz,...Nz},zz=`data-trigger-disabled`;function Bz(e,t){if(!gL(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(zz);for(let[,e]of t.entries())if(Dz(e,n))return!e.hasAttribute(zz);return!1}function Vz(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 Yie(e){return e.matches(`html,body`)}function Hz(e){return _L(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Xie(e){return Oz(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Pie}`)!=null}function Uz(e){return e?e.getAttribute(`role`)===`combobox`&&Hz(e):!1}function Wz(e){if(!e||xz)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Gz(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Zie(e,t){return t!=null&&!Tz(t)?0:typeof e==`function`?e():e}function Kz(e,t,n){let r=Zie(e,n);return typeof r==`number`?r:r?.[t]}function qz(e){return typeof e==`function`?e():e}function Jz(e,t){return t||e===`click`||e===`mousedown`}function Qie(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Yz(e,t,n,r){let i=!1,a=!1,o=r??lz;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 $ie(e,t,n){let r=n??lz;return{reason:e,event:t??new Event(`base-ui`),...r}}var Xz=`none`,Zz=`trigger-press`,Qz=`trigger-hover`,$z=`trigger-focus`,eae=`outside-press`,tae=`item-press`,nae=`close-press`,eB=`focus-out`,rae=`escape-key`,tB=`list-navigation`,nB=`keyboard`,iae=`pointer`,aae=`cancel-open`,rB=`sibling-open`,oae=`disabled`,iB=`imperative-action`,sae=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new fz,currentIdRef:{current:null},currentContextRef:{current:null}});function cae(e,t){e.current=t.current}function lae(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=U.useContext(sae),[d,f]=U.useState(!1),p=U.useRef(n);return Y(()=>{p.current=n},[n]),Y(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Y(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:Kz(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,Yz(Xz))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Y(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,cae(a,s),u.clear()}},[c,i,a,r,s,u]),U.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function aB(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function oB(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function sB(e,t,n,r){let i=nz(cB).current;return dae(i,e,t,n,r)&&lB(i,[e,t,n,r]),i.callback}function uae(e){let t=nz(cB).current;return fae(t,e)&&lB(t,e),t.callback}function cB(){return{callback:null,cleanup:null,refs:[]}}function dae(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function fae(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function lB(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 uB(e){let t=nz(pae,e).current;return t.next=e,Y(t.effect),t}function pae(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var dB={...U},fB=dB.useInsertionEffect,mae=fB&&fB!==dB.useLayoutEffect?fB:e=>e();function pB(e){let t=nz(hae).current;return t.next=e,mae(t.effect),t.trampoline}function hae(){let e={next:void 0,callback:gae,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function gae(){}var mB=null;globalThis.requestAnimationFrame;var hB=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)}},gB=class e{static create(){return new e}static request(e){return hB.request(e)}static cancel(e){return hB.cancel(e)}currentId=mB;request(e){this.cancel(),this.currentId=hB.request(()=>{this.currentId=mB,e()})}cancel=()=>{this.currentId!==mB&&(hB.cancel(this.currentId),this.currentId=mB)};disposeEffect=()=>this.cancel};function _B(){let e=nz(gB.create).current;return uz(e.disposeEffect),e}function vB(e){return e?.ownerDocument||document}var yB={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},bB={...yB,position:`fixed`,margin:0,top:0,left:0};({...yB});var xB=U.forwardRef(function(e,t){let[n,r]=U.useState();Y(()=>{Aie&&bz&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:bB,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function SB(e,t){return t<0||t>=e.length}function CB(e,t){return TB(e.current,{disabledIndices:t})}function wB(e,t){return TB(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function _ae(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>TB(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:SB(e,u)?-1:u,wrapped:d}}function TB(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&&EB(e,a,r));return a}function EB(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!DB(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function vae(e){return e.visibility===`hidden`||e.visibility===`collapse`}function DB(e,t=e?AL(e):null){return!e||!e.isConnected||!t||vae(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var yae=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function bae(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return vL(n)?n.host:null}function OB(e){for(let t of Array.from(e.children))if(fL(t)===`summary`)return t;return null}function xae(e,t){let n=OB(t);return!!n&&(e===n||Dz(n,e))}function kB(e){let t=e?fL(e):``;return e!=null&&e.matches(yae)&&(t!==`summary`||e.parentElement!=null&&fL(e.parentElement)===`details`&&OB(e.parentElement)===e)&&(t!==`details`||OB(e)==null)&&(t!==`input`||e.type!==`hidden`)}function AB(e){if(!kB(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=bae(t)){let n=t!==e,r=fL(t)===`slot`;if(t.hasAttribute(`inert`)||n&&fL(t)===`details`&&!t.open&&!xae(e,t)||t.hasAttribute(`hidden`)||!r&&!Sae(t,n))return!1}return!0}function Sae(e,t){let n=AL(e);return t?n.display!==`none`:DB(e,n)}function jB(e){let t=e.tabIndex;if(t<0){let t=fL(e);if(t===`details`||t===`audio`||t===`video`||_L(e)&&e.isContentEditable)return 0}return t}function MB(e){if(fL(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function NB(e,t){let n=MB(e);if(!n)return!0;let r=t.find(e=>{let t=MB(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=MB(e);return t?.name===n.name&&t.form===n.form})===n}function PB(e){if(_L(e)&&fL(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return _L(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function FB(e,t){PB(e).forEach(e=>{kB(e)&&t.push(e),FB(e,t)})}function IB(e,t,n){PB(e).forEach(e=>{_L(e)&&e.matches(t)&&n.push(e),IB(e,t,n)})}function LB(e){return AB(e)&&jB(e)>=0}function RB(e){let t=[];return FB(e,t),t.filter(AB)}function zB(e){let t=RB(e);return t.filter(e=>jB(e)>=0&&NB(e,t))}function BB(e,t){let n=zB(e),r=n.length;if(r===0)return;let i=Ez(vB(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function VB(e){return BB(vB(e).body,1)||e}function HB(e){return BB(vB(e).body,-1)||e}function Cae(e,t,n){if(!e)return null;let r=[];FB(vB(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(AB);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Dz(n,o)&&LB(o)&&NB(o,a))return o}return r[i]}function UB(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Dz(n,r)}function wae(e){zB(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function WB(e){let t=[];IB(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 GB(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...GB(e,t.id,n)])}function KB(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 qB(e){return`data-base-ui-${e}`}var JB=0;function YB(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(JB);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),sz;let o=requestAnimationFrame(a);return JB=o,()=>{JB===o&&(cancelAnimationFrame(o),JB=0)}}var XB=`data-base-ui-inert`,ZB=new WeakMap,QB=new WeakSet,$B=new WeakMap,eV=0;function tV(e){return e?vL(e)?e.host:tV(e.parentNode):null}var nV=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=tV(t);return e.contains(n)?n:null}).filter(e=>e!=null),rV=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},iV=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{fL(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function aV(e,t,n,{mark:r=!0}){let i=nV(t,e),a=r?iV(t,rV(i),new Set(i)):[],o=[],s=[];if(n){let e=nV(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);iV(t,rV(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(ZB.get(e)||0)+1;ZB.set(e,r),o.push(e),r===1&&n&&QB.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=($B.get(e)||0)+1;$B.set(e,t),s.push(e),t===1&&e.setAttribute(XB,``)}),eV+=1,()=>{o.forEach(e=>{let t=(ZB.get(e)||0)-1;ZB.set(e,t),t||(QB.has(e)||e.removeAttribute(`aria-hidden`),QB.delete(e))}),r&&s.forEach(e=>{let t=($B.get(e)||0)-1;$B.set(e,t),t||e.removeAttribute(XB)}),--eV,eV||(ZB=new WeakMap,QB=new WeakSet,$B=new WeakMap)}}function oV(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=vB(e[0]).body;return aV(e,i,n,{mark:r})}function sV(){let[,e]=U.useState({});return U.useCallback(()=>{e({})},[])}var cV=0;function lV(e,t=`mui`){let n=U.useRef(void 0),r=sV(),i=e??n.current;return U.useEffect(()=>{n.current??(cV+=1,n.current=`${t}-${cV}`,e??r())},[e,t,r]),i}var uV=dB.useId;function dV(e,t){if(uV!==void 0){let n=uV();return e??(t?`${t}-${n}`:n)}return lV(e,t)}var fV=19;function pV(e){return fV>=e}function mV(e){if(!U.isValidElement(e))return null;let t=e,n=t.props;return(pV(19)?n?.ref:t.ref)??null}function hV(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function gV(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 _V(e,t){return typeof e==`function`?e(t):e}function vV(e,t){return typeof e==`function`?e(t):e}var yV={};function bV(e,t,n,r,i){if(!n&&!r&&!i&&!e)return SV(t);let a=SV(e);return t&&(a=CV(a,t)),n&&(a=CV(a,n)),r&&(a=CV(a,r)),i&&(a=CV(a,i)),a}function xV(e){if(e.length===0)return yV;if(e.length===1)return SV(e[0]);let t=SV(e[0]);for(let n=1;n<e.length;n+=1)t=CV(t,e[n]);return t}function SV(e){return DV(e)?{...e(yV)}:wV(e)}function CV(e,t){return DV(t)?t(e):TV(e,t)}function wV(e){let t={...e};for(let e in t){let n=t[e];EV(e,n)&&(t[e]=kV(n))}return t}function TV(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=hV(e.style,r);break;case`className`:e[n]=jV(e.className,r);break;default:e[n]=EV(n,r)?OV(e[n],r):r}}return e}function EV(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 DV(e){return typeof e==`function`}function OV(e,t){return t?e?(...n)=>{let r=n[0];if(MV(r)){let i=r;AV(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:kV(t):e}function kV(e){return e&&((...t)=>{let n=t[0];return MV(n)&&AV(n),e(...t)})}function AV(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function jV(e,t){return t?e?t+` `+e:t:e}function MV(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function NV(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=LV(r));let i=PV(t,n,r);if(n.enabled===!1)return null;let a=n.state??lz;return RV(e,r,i,a)}function PV(e,t,n){let{className:r,style:i}=e,{state:a=lz,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?_V(r,a):void 0,d=l?vV(i,a):void 0,f=l?gV(a,c):lz,p=l&&s?FV(s):void 0,m=l?hV(f,p)??{}:lz;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?uae([m.ref,mV(n),...o]):sB(m.ref,mV(n),o):sB(null,null)),l?(u!==void 0&&(m.className=jV(m.className,u)),d!==void 0&&(m.style=hV(m.style,d)),m):lz}function FV(e){return Array.isArray(e)?xV(e):bV(void 0,e)}var IV=Symbol.for(`react.lazy`);function LV(e){if(e?.$$typeof!==IV)return e;let t=U.Children.toArray(e)[0];return U.isValidElement(t)?t:e}function RV(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=bV(n,t.props);return e.ref=n.ref,U.cloneElement(t,e)}return zV(e,n)}function zV(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 BV={style:{transition:`none`}},VV=`data-base-ui-click-trigger`,HV=`data-base-ui-swipe-ignore`,UV=`data-swipe-ignore`,WV=`[${HV}]`,GV=`[${UV}]`,KV={fallbackAxisSide:`none`},qV={fallbackAxisSide:`end`},JV={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},YV=U.createContext(null),XV=()=>U.useContext(YV),ZV=qB(`portal`);function QV(e={}){let{ref:t,container:n,componentProps:r=lz,elementProps:i}=e,a=dV(),o=XV()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=pB(e=>{e!==null&&u(e)}),f=U.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(hL(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=NV(`div`,r,{ref:[t,d],props:[{id:a,[ZV]:``},i]}),m=s&&p?De.createPortal(p,s):null;return{node:l,nodeId:U.isValidElement(p)?p.props.id:void 0,subtree:m}}var $V=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}=QV({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&&UB(e)&&(e.type===`focusin`?v.current&&=(WB(l),!1):(wae(l),v.current=!0))}return oB(aB(l,`focusin`,e,!0),aB(l,`focusout`,e,!0))},[l,y]),Y(()=>{l&&b===!0&&v.current&&(WB(l),v.current=!1)},[b,l]);let S=U.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,G.jsxs)(U.Fragment,{children:[d,(0,G.jsxs)(YV.Provider,{value:S,children:[x&&l&&(0,G.jsx)(xB,{"data-type":`outside`,ref:f,onFocus:e=>{UB(e,l)?m.current?.focus():HB(g?g.domReference:null)?.focus()}}),x&&l&&(0,G.jsx)(`span`,{role:s,"aria-owns":u,style:JV}),l&&De.createPortal(a,l),x&&l&&(0,G.jsx)(xB,{"data-type":`outside`,ref:p,onFocus:e=>{UB(e,l)?h.current?.focus():(VB(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Yz(`focus-out`,e.nativeEvent)))}})]})]})});function eH(){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 tH=class{nodesRef={current:[]};events=eH();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)}},nH=U.createContext(null),rH=U.createContext(null),iH=()=>U.useContext(nH)?.id||null,aH=e=>{let t=U.useContext(rH);return e??t};function oH(e){let t=dV(),n=aH(e),r=iH();return Y(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function sH(e){let{children:t,id:n}=e,r=iH();return(0,G.jsx)(nH.Provider,{value:U.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function cH(e){let{children:t,externalTree:n}=e,r=nz(()=>n??new tH).current;return(0,G.jsx)(rH.Provider,{value:r,children:t})}function lH(e){return e==null?e:`current`in e?e.current:e}function uH(e,t){let n=pL(kz(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(Cz(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var dH=20,fH=[];function pH(){fH=fH.filter(e=>e.deref()?.isConnected)}function mH(e){pH(),e&&fL(e)!==`body`&&(fH.push(new WeakRef(e)),fH.length>dH&&(fH=fH.slice(-20)))}function hH(){return pH(),fH[fH.length-1]?.deref()}function gH(e){return e?LB(e)?e:zB(e)[0]||e:null}function _H(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=RB(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return LB(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 vH(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=pB(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Uz(_)&&S,w=uB(i),T=uB(a),E=uB(o),D=uB(u),O=uB(g),k=aH(m),A=XV(),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),ee=sB(L,p,A?.beforeInsideRef),z=sB(R,A?.afterInsideRef),te=pz(),ne=pz(),re=_B(),ie=A!=null,B=Gz(v),V=pB((e=B)=>e?zB(e):[]),ae=pB(()=>h?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Dz(B,Ez(vB(B)))&&V().length===0&&!C&&Sz(e)}return aB(vB(B),`keydown`,e)},[r,B,c,C,V]),U.useEffect(()=>{if(r||!g)return;let e=vB(B);function t(){N.current=!1}function n(e){let t=kz(e),n=ae(),r=Dz(v,t)||Dz(_,t)||Dz(A?.portalNode,t)||n.some(e=>e===t||Dz(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,Oz(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,ne.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return oB(aB(e,`pointerdown`,n,!0),aB(e,`pointerup`,t,!0),aB(e,`pointercancel`,t,!0),aB(e,`keydown`,i,!0),t)},[r,v,_,B,g,A,ne,ae]),U.useEffect(()=>{if(r||!l)return;let e=vB(B);function n(){M.current=!0,ne.start(0,()=>{M.current=!1})}function i(e){let t=kz(e);LB(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=kz(n);c&&r==null&&a!=null&&Dz(v,a)&&mH(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=ae(),p=r?.hasAttribute(qB(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,lH(f),lH(d)].includes(r),m=!(Dz(_,r)||Dz(v,r)||Dz(r,v)||Dz(A?.portalNode,r)||u.some(e=>e===r||Dz(e,r))||l.hasMatchingElement(e=>Dz(e,r))||p||k&&(GB(k.nodesRef.current,o).find(e=>Dz(e.context?.elements.floating,r)||Dz(e.context?.elements.domReference,r))||KB(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Gz(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&B&&_H(B),s&&i!==_&&!DB(a)&&Ez(e)===e.body){if(_L(B)&&(B.focus(),s===`popup`)){re.request(()=>{B.focus()});return}let e=V(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;_L(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==hH())&&(j.current=!0,t.setOpen(!1,Yz(eB,n)))})}function o(){N.current||(b.current.insideReactTree=!0,te.start(0,()=>{b.current.insideReactTree=!1}))}let u=_L(_)?_:null;if(v||u)return oB(u&&aB(u,`focusout`,a),u&&aB(u,`pointerdown`,n),v&&aB(v,`focusin`,i),v&&aB(v,`focusout`,a),v&&A&&aB(v,`focusout`,o,!0))},[r,_,v,B,c,k,A,t,l,s,V,C,x,b,te,ne,re,d,f,ae]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${qB(`portal`)}]`)||[]),t=(k?KB(k.nodesRef.current,x()):[]).find(e=>Uz(e.context?.elements.domReference||null))?.context?.elements.domReference,n=oV([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ae(),t,lH(f),lH(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=oV([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,ae]),Y(()=>{if(!g||r||!_L(B))return;F.current=``,I.current=``;let e=vB(B),t=Ez(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Dz(B,t))return;let i=null,a=()=>(i??=V(B),i[0]||B),o;o=r===!0||r===null?a():lH(r),o||=a();let s=Dz(B,Ez(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&Cz(c);YB(o,{sync:l,preventScroll:o===B,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=Ez(e);return!(t!==o&&Dz(B,t))}})})},[r,g,B,V,w,D,O,b]);let H=U.useRef(null);Y(()=>{if(r||!B){H.current=null;return}H.current&&=(H.current.cancelled=!0,null);let e=vB(B),t=Ez(e),n=D.current==null;mH(t);function i(e){if(e.open||(F.current=uH(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(qB(`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(Cz(e.nativeEvent)||wz(e.nativeEvent))j.current=!1;else{let e=!1;vB(B).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&&fL(t)!==`body`?t:null,s=n?o||a:a||o;return s||=hH()||null,typeof i==`boolean`?s:lH(i)||s||null}return()=>{y.off(`openchange`,i);let t=Ez(e),n=ae(),r=Dz(v,t)||n.some(e=>e===t||Dz(e,t))||k&&GB(k.nodesRef.current,x(),!1).some(e=>Dz(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=gH(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&_L(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,B,T,E,D,y,k,_,x,ae]),Y(()=>{if(!bz||g||!v)return;let e=Ez(vB(v));_L(e)&&Hz(e)&&Dz(v,e)&&e.blur()},[g,v]),Y(()=>{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,_]),Y(()=>{if(!r&&B)return _H(B),()=>{queueMicrotask(pH)}},[r,B]);let oe=!r&&(!c||!C)&&(ie||c);return(0,G.jsxs)(U.Fragment,{children:[oe&&(0,G.jsx)(xB,{"data-type":`inside`,ref:ee,onFocus:e=>{if(c){let e=V();YB(e[e.length-1])}else A?.portalNode&&(j.current=!1,UB(e,A.portalNode)?VB(_)?.focus():lH(f??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,G.jsx)(xB,{"data-type":`inside`,ref:z,onFocus:e=>{c?YB(V()[0]):A?.portalNode&&(l&&(j.current=!0),UB(e,A.portalNode)?HB(_)?.focus():lH(d??A.afterOutsideRef)?.focus())}})]})}function yH(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Zz}=t,l=e.context.dataRef,u=U.useRef(void 0),d=_B(),f=pz(),p=U.useMemo(()=>{function t(t,n,r,i){let a=Yz(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=Tz(e.pointerType,!0)&&wz(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||Tz(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=kz(s),p=Hz(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:Tz(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}:lz,[n,p])}function bH(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function xH(e){return e!=null&&e.clientX!=null}function SH(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=U.useRef(!1),l=U.useRef(null),[u,d]=U.useState(),[f,p]=U.useState([]),m=pB(t=>{e.set(`positionReference`,t)}),h=pB((t,n,i)=>{c.current||(!s.current.openEvent||xH(s.current.openEvent))&&e.set(`positionReference`,bH(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=pB(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=Tz(u)?a:i;U.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=pL(a);function r(t){let n=kz(t);Dz(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||xH(s.current.openEvent)?l.current=aB(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),U.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),U.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),U.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let v=U.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return U.useMemo(()=>n?{reference:v,trigger:v}:{},[n,v])}function CH(){return!1}function wH(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function TH(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=CH,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=aH(c),m=pB(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=pB(()=>a),{escapeKey:v,outsidePress:y}=wH(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=pz(),O=pz(),k=pz(),A=pB(()=>{O.clear(),d.current.insideReactTree=!1}),j=pB(e=>{let t=d.current.floatingContext?.nodeId;return(p?GB(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=pB(t=>Vz(t,e.select(`floatingElement`))||Vz(t,e.select(`domReferenceElement`))),N=pB(t=>{o()&&e.setOpen(!1,Yz(Zz,t.nativeEvent))}),P=pB(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=jie(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=Yz(rae,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=pB(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=pB(t=>{if(!l||!n||t.button!==0)return;let r=kz(t.nativeEvent);Dz(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=pB(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 fz,i=vB(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(bz?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&&GB(p.nodesRef.current,t).some(t=>Vz(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=kz(n),i=`[${qB(`inert`)}]`,a=gL(r)?r.getRootNode():null,o=Array.from((vL(a)?a:vB(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Dz(e,r))))return;let c=gL(r)?r:null;for(;c&&!kL(c);){let e=ML(c);if(kL(e)||!gL(e))break;c=e}if(!(o.length&&gL(r)&&!Yie(r)&&!Dz(r,e.select(`floatingElement`))&&o.every(e=>!Dz(c,e)))){if(_L(r)&&!(`touches`in n)){let e=kL(r),t=AL(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&&!Cz(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,Yz(eae,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=kz(e);if(!n)return;let r=aB(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function ee(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 z(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 te(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 ne(e){L(e,te)}function re(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ie(e){L(e,re)}let B=oB(r&&oB(aB(i,`keydown`,P),aB(i,`compositionstart`,a),aB(i,`compositionend`,o)),g&&oB(aB(i,`click`,ee,!0),aB(i,`pointerdown`,ee,!0),aB(i,`pointerup`,z,!0),aB(i,`pointercancel`,z,!0),aB(i,`mousedown`,ee,!0),aB(i,`mouseup`,z,!0),aB(i,`touchstart`,R,{capture:!0,passive:!0}),aB(i,`touchmove`,ne,{capture:!0,passive:!0}),aB(i,`touchend`,ie,{capture:!0,passive:!0})));return()=>{B(),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]),ee=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:ee,trigger:R}:{},[n,R,ee])}function EH(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 DH=EH(`https://base-ui.com/production-error`,`Base UI`),OH=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(DH(99,this.componentName,e,this.componentName));t.setOpen(!0,Yz(iB,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,Yz(iB))}};function kH(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),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};gL(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 AH(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),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=gB.request(()=>{a(`ending`)});return()=>{gB.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=gB.request(()=>{a(void 0)});return()=>{gB.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=gB.request(()=>{a(`idle`)});return()=>{gB.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function jH(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var MH=null;function NH(e){if(!MH){let e=[];MH=e,queueMicrotask(()=>{MH=null,De.flushSync(()=>{for(let t of e)t()})})}MH.push(e)}function PH(e,t=!1,n=!1){let r=_B();return pB((i,a=null)=>{r.cancel();let o=lH(e);if(o==null)return;let s=o,c=()=>{n?NH(()=>{a?.aborted||i()}):De.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(jH(s).map(e=>e.finished.then(sz))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(jH(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Mz;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 FH(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=pB(a),s=PH(r,n,i);U.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function IH(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=pB(i),{mounted:c,setMounted:l,transitionStatus:u}=AH(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=U.useRef(c),p=U.useRef(!1),m=sV(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=pB(()=>{f.current&&(t?(p.current=!0,m()):h())});return FH({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var LH={tabIndex:-1,[Nie]:``};function RH(e){return t=>t!==`touch`||e.current}function zH(e,t=!1){let n=dV(),r=iH()!=null,i=nz(()=>e(n,r)).current;return kH({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function BH({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function VH(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function HH(e,t){let n=U.useRef(null);return pB(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),VH(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),VH(t))})}function UH(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 WH(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function GH(e,t,n,r={}){let i=n.reason,a=i===Qz,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=WH(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=UH(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?De.flushSync(l):l()}function KH(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=HH(e,n),o=pB(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=pB(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function qH(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=U.useRef(null),i=e.useState(`open`);Y(()=>{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=Yz(Xz);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 JH(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=IH({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 nz(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function YH(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:lz,inactiveTriggerProps:lz,popupProps:lz})},[e])}function XH(e,t){Y(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Y(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var ZH=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}},QH=pV(19)?tU:nU;function $H(e,t,n,r,i){return QH(e,t,n,r,i)}function eU(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,iS.useSyncExternalStore)(e.subscribe,a,a)}Cie({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,iS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function tU(e,t,n,r,i){let a=Sie();if(!a)return eU(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 nU(e,t,n,r,i){return(0,Oj.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var rU=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 $H(this,e,t,n,r)}},iU=class extends rU{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{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),$H(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=pB(t??sz);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)}})}},aU={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},oU=class extends iU{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:eH(),nested:n,triggerElements:i},aU),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Mie(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 sU(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new oU({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:lz,inactiveTriggerProps:lz,popupProps:lz}}var cU=e=>e.triggerIdProp??e.activeTriggerId,lU=e=>e.openProp??e.open,uU=e=>(e.popupElement?.id??e.floatingId)||void 0;function dU(e,t){return t!==void 0&&lU(e)&&cU(e)===t}function fU(e,t){return dU(e,t)?!0:t!==void 0&&lU(e)&&cU(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var pU={open:lU,mounted:e=>e.mounted,transitionStatus:e=>lU(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:cU,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:uU,isTriggerActive:(e,t)=>t!==void 0&&cU(e)===t,isOpenedByTrigger:(e,t)=>dU(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&cU(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>fU(e,t)?uU(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function mU(e){let t=U.useCallback(t=>e===void 0?sz:e.subscribeStore(t),[e]),n=U.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,iS.useSyncExternalStore)(t,n,()=>e?.serverStore)}function hU(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=dV(),a=iH()!=null,o=nz(()=>new oU({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new ZH,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=gL(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 gU=yz&&bz;function _U(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=pz();U.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=pL(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&_L(t)&&t===Ez(vB(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return oB(aB(r,`blur`,i),gU&&aB(r,`keydown`,a,!0),gU&&aB(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`);gL(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=kz(n.nativeEvent);if(gL(a)){if(gU&&!n.relatedTarget){if(!c.current&&!Hz(a))return}else if(!Wz(a))return}let u=Bz(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,Yz($z,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,Yz($z,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=gL(r)&&r.hasAttribute(qB(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=Ez(vB(t));!r&&n===t||Dz(a.current.floatingContext?.refs.floating.current,n)||Dz(t,n)||o||Bz(r??n,e.context.triggerElements)||e.setOpen(!1,Yz($z,i))})}}},[a,r,e,l]);return U.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var vU=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new fz;restTimeout=new fz;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},yU=new WeakMap;function bU(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&yU.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),yU.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function xU(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=yU.get(n);a&&a!==e&&bU(a),bU(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,yU.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function SU(e){let t=e.context.dataRef.current,n=nz(()=>t.hoverInteractionState??vU.create()).current;return t.hoverInteractionState||=n,uz(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function CU(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=aH(),u=iH(),d=SU(e),f=pz(),p=pB(()=>Jz(c.current.openEvent?.type,d.interactedInside)),m=pB(()=>Qie(c.current.openEvent?.type)),h=pB(()=>{bU(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),U.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&gL(s)&&o){let e=s,t=o,n=vB(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??Oz(e,`[data-rootownerid]`)??n.body;return xU(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&&GB(l.nodesRef.current,u).length>0)}function a(t){let n=Kz(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,Yz(Qz,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=kz(e);Xie(t)?d.interactedInside=Oz(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(Bz(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&gL(o)&&GB(l.nodesRef.current,r,!1).some(e=>Dz(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,Yz(Qz,n)),l.events.emit(`floating.closed`,n)})}let y=o;return oB(y&&aB(y,`mouseenter`,g),y&&aB(y,`mouseleave`,_),y&&aB(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var wU={current:null};function TU(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=wU,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=aH(l),v=SU(e),y=U.useRef(!1),b=uB(i),x=uB(r),S=uB(o),C=uB(n),w=uB(p),T=uB(f),E=pB(()=>Jz(h.current.openEvent?.type,v.interactedInside)),D=pB(()=>w.current?.()!==!1),O=pB((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!Dz(t,n);if(!gL(r))return!1;let a=r;return i.hasMatchingElement(e=>Dz(e,a))&&(!t||!Dz(t,a))}),k=pB(()=>{v.handler&&=(vB(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=pB(()=>{bU(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===Qz,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=Kz(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,Yz(Qz,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,Yz(Qz,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!gL(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Tz(v.pointerType))return;let n=qz(S.current),r=Kz(x.current,`open`,v.pointerType),i=kz(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(gL(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(Dz(t,i)){c=t;break}}gL(o)&&gL(s)&&!e.context.triggerElements.hasElement(o)&&Dz(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&&gL(c)&&gL(s)&&Dz(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,Yz(Qz,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,Yz(Qz,t,c))}):g&&D()&&e.setOpen(!0,Yz(Qz,t,c)))}function o(n){if(E()){A();return}k();let r=vB(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Bz(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`&&Dz(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){Dz(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?aB(r,`mouseout`,l):void 0;return s?oB(aB(r,`mousemove`,i,{once:!0}),aB(r,`mouseenter`,i),aB(r,`mouseleave`,o),f):oB(aB(r,`mouseenter`,i),aB(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&&!Tz(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;xU(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=qz(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,Yz(Qz,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 EU(e){return bz&&e.movementX===0&&e.movementY===0}function DU(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function OU(e,t){return DU(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function kU(e,t,n){return DU(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function AU(e,t,n){return DU(t,n?e===Az:e===jz,e===Iie)}function jU(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:DU(t,n?e===jz:e===Az,e===Fie)}function MU(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=Gz(E),A=Uz(D),j=uB(k),M=iH(),N=aH(x),P=U.useRef(f),F=U.useRef(o??-1),I=U.useRef(null),L=U.useRef(!0),R=pB(e=>{i(F.current===-1?null:F.current,e)}),ee=U.useRef(!!E),z=U.useRef(T),te=U.useRef(!1),ne=U.useRef(!1),re=U.useRef(null),ie=uB(h),B=uB(T),V=uB(o),ae=uB(b),H=_B(),oe=_B(),se=pB(()=>{H.cancel();function e(e){d||(re.current=YB(e,{sync:te.current,preventScroll:!0}))}let t=n.current[F.current],r=ne.current;t&&e(t),(te.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`}))})});Y(()=>{O.current.orientation=g},[O,g]),Y(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Y(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ne.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),Y(()=>{if(a){if(!T)te.current=!1;else if(E){if(r==null){if(te.current=!1,V.current!=null)return;if(ee.current&&(F.current=-1,se()),(!z.current||!ee.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||kU(I.current,_,u)||l?CB(n):wB(n),I.current=null,R())};t()}}else SB(n.current,r)||(F.current=r,se(),ne.current=!1)}}},[a,T,E,r,V,l,n,_,u,R,se,oe]),Y(()=>{if(!a||E||!N||d||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=Ez(vB(D??t??null)),r=e.some(e=>e.context&&Dz(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Y(()=>{z.current=T,ee.current=!!E});let ce=r!=null,le=pB(e=>{if(!B.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),ue=pB(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),de=pB(()=>CB(n,ie.current)),fe=pB(t=>{if(L.current=!1,te.current=!0,t.which===229||!B.current&&t.currentTarget===j.current)return;if(l&&jU(t.key,g,u,w)){OU(t.key,ue())||Sz(t),e.setOpen(!1,Yz(tB,t.nativeEvent));let n=S?.current??D;_L(n)&&n.focus();return}r!=null&&r!==F.current&&!SB(n.current,r)&&(F.current=r);let i=F.current,a=CB(n,h),o=wB(n,h);if(A||(t.key===`Home`&&(Sz(t),F.current=a,R(t)),t.key===`End`&&(Sz(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(OU(t.key,g)){Sz(t);let e=Ez(t.currentTarget.ownerDocument);if(T&&!d&&Dz(t.currentTarget,e)&&!n.current.some(t=>t!=null&&Dz(t,e))){F.current=kU(t.key,g,u)?a:o,R(t),r===F.current&&se();return}let{index:l,wrapped:f}=_ae(n.current,i,{decrement:!kU(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(te.current=!1),F.current=l,R(t)}}),pe=U.useMemo(()=>({onFocus(e){te.current=!0,le(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){EU(e)||(te.current=!0,ne.current=!1,p&&le(e))},onPointerLeave(e){if(!B.current||!L.current||e.pointerType===`touch`)return;te.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ae.current&&(re.current?.(),re.current=null,F.current=-1,R(e),!d)){let e=j.current,t=Ez(vB(e));e&&Dz(e,t)&&e.focus({preventScroll:!0})}}}),[le,B,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=kz(t.nativeEvent);if(n&&!Dz(j.current,n))return;Sz(t);let r=Yz(eB,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&_L(i)&&i.focus()}else fe(t)},onPointerMove(e){EU(e)||(L.current=!0)}}),[me,fe,j,A,e,T,d,D,S]),ge=U.useMemo(()=>{function t(t){e.setOpen(!0,Yz(tB,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&Cz(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&wz(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=AU(n.key,ue(),u),o=OU(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Hz(n.currentTarget)))return fe(n);if(r||m||!i){if(s){let e=OU(n.key,ue());I.current=l&&e?null:n.key}l?a&&(Sz(n),r?(F.current=de(),R(n),d&&j.current?.focus()):t(n)):o&&(V.current!=null&&(F.current=V.current),Sz(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,V,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 NU(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=pB(s),f=e.useState(`open`),p=pz(),m=U.useRef(``),h=U.useRef(u??i??-1),g=U.useRef(null),_=pB(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!DB(n)||n?.matches(`:disabled`)?!1:o==null||!EB(cz,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===` `&&(Sz(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!==` `&&(Sz(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=pB(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);Dz(r,n)||Dz(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(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 PU=.1,FU=PU*PU,IU=.5;function LU(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function RU(e,t,n,r,i,a,o,s,c,l){let u=!1;return LU(e,t,n,r,i,a)&&(u=!u),LU(e,t,i,a,o,s)&&(u=!u),LU(e,t,o,s,c,l)&&(u=!u),LU(e,t,c,l,n,r)&&(u=!u),u}function zU(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function BU(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 VU(e={}){let{blockPointerEvents:t=!1}=e,n=new fz,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*FU;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=kz(r),g=r.type===`mouseleave`,_=Dz(u,h),v=Dz(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&gL(r.relatedTarget)&&Dz(u,r.relatedTarget))return;function y(){return!!(s&&GB(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=BU(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=BU(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=BU(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=BU(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!zU(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?IU/2:IU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+IU+1,o=C||T?S.bottom-IU:S.top,s=C?T?S.bottom-IU:S.top:S.bottom-IU;M=RU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?IU/2:IU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-IU,o=C||T?S.top+IU:S.bottom,s=C?T?S.top+IU:S.bottom:S.top+IU;M=RU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?IU/2:IU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+IU+1,o=w||E?S.right-IU:S.left,s=w?E?S.right-IU:S.left:S.right-IU;M=RU(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?IU/2:IU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-IU,o=w||E?S.left+IU:S.right,s=w?E?S.left+IU:S.right:S.left+IU;M=RU(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 HU=typeof document<`u`?U.useLayoutEffect:function(){};function UU(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(!UU(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)&&!UU(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function WU(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function GU(e,t){let n=WU(e);return Math.round(t*n)/n}function KU(e){let t=U.useRef(e);return HU(()=>{t.current=e}),t}function qU(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);UU(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=KU(c),D=KU(i),O=KU(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),bR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!UU(w.current,t)&&(w.current=t,De.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);HU(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);HU(()=>(A.current=!0,()=>{A.current=!1}),[]),HU(()=>{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=GU(M.floating,u.x),r=GU(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...WU(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 JU=(e,t)=>{let n=dR(e);return{name:n.name,fn:n.fn,options:[e,t]}},YU=(e,t)=>{let n=pR(e);return{name:n.name,fn:n.fn,options:[e,t]}},XU=(e,t)=>({fn:yR(e).fn,options:[e,t]}),ZU=(e,t)=>{let n=mR(e);return{name:n.name,fn:n.fn,options:[e,t]}},QU=(e,t)=>{let n=hR(e);return{name:n.name,fn:n.fn,options:[e,t]}},$U=U.createContext(void 0);function eW(e){let t=U.useContext($U);if(t===void 0&&!e)throw Error(DH(47));return t}var tW=class extends iU{setState(e){}update(e){}set(e,t){}notifyAll(){}},nW={...pU,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!pU.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&pU.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>pU.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},rW=class extends iU{constructor(e,t,n){let r=new ZH;super(iW(e,r,t,n),aW(r),nW)}setOpen=(e,t)=>{let n=t.reason===Qz,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=WH(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=UH(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 iW(e,t,n,r=!1){let i={...sU(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 aW(e){return{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:U.createRef(),beforeTriggerFocusGuardRef:U.createRef(),beforeContentFocusGuardRef:U.createRef(),stickIfOpenTimeout:new fz,stickIfOpen:!0,triggerElements:e}}var oW=az(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=cW(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),XH(u,d),qH(u);let{forceUnmount:m}=JH(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,Yz(iB))}),[m,u]);let h=d||f||s!=null;return(0,G.jsxs)($U.Provider,{value:u,children:[s&&(0,G.jsx)(BH,{handle:s,store:u}),h&&(0,G.jsx)(lW,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function sW(e){return eW(!0)?(0,G.jsx)(oW,{props:e}):(0,G.jsx)(cH,{children:(0,G.jsx)(oW,{props:e})})}function cW(e,t){let n=zH((e,n)=>new rW(t,e,n));return U.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function lW({store:e,modal:t}){let n=TH(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return YH(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var uW=U.createContext(void 0);function dW(e=!1){let t=U.useContext(uW);if(t===void 0&&!e)throw Error(DH(16));return t}function fW(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 pW(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(pL(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 mW(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=U.useRef(null),s=dW(!0),c=a??s!==void 0,{props:l}=fW({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=U.useCallback(()=>{let e=o.current;hW(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:U.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return bV({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(AV(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=hW(r),s=!i&&gW(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(),pW(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),pW(r,e)))},onKeyUp(e){t||(AV(e),a?.(e),e.target===e.currentTarget&&i&&c&&hW(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),pW(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:pB(e=>{o.current=e,u()})}}function hW(e){return _L(e)&&e.tagName===`BUTTON`}function gW(e){return _L(e)&&e.tagName===`A`&&!!e.href}function _W(e){return dV(e,`base-ui`)}function vW(e,t){function n(n,r,i){let a=n.currentTarget;De.flushSync(()=>{e.setOpen(!1,Yz(eB,n.nativeEvent,a))}),Cae(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&&UB(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function yW(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 bW(e,t){let n=U.useRef(e),r=pB(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function xW(e,t){let{onClick:n,onPointerDown:r}=yW(pB((n,r)=>{(typeof e==`function`?e():e)||t(r||(gz?`touch`:``))}));return U.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function SW(e){let[t,n]=U.useState(null),r=xW(e,n);return bW(e,t=>{t&&!e&&n(null)}),U.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var CW=oz(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=eW(!0),h=mU(s)??m;if(!h)throw Error(DH(74));let g=_W(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}=KH(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=TU(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:VU(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=yH(v,{stickIfOpen:pB(()=>h.context.stickIfOpen)}),k=xW(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=mW({disabled:a,native:o}),N={open(e){return w?Iz.open(e):Fz.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=vW(h,x),I=NV(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[VV]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,G.jsx)(U.Fragment,{children:I},g);return E?(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)(xB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,G.jsx)(xB,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),wW=U.createContext(void 0);function TW(){let e=U.useContext(wW);if(e===void 0)throw Error(DH(45));return e}var EW=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return eW().useState(`mounted`)||n?(0,G.jsx)(wW.Provider,{value:n,children:(0,G.jsx)($V,{ref:t,...r})}):null});function DW(e){return pV(19)?e:e?`true`:void 0}var OW=U.createContext(void 0);function kW(){let e=U.useContext(OW);if(!e)throw Error(DH(46));return e}function AW(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=aH(n),p=U.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=qU({...e,elements:{...p,...l&&{reference:l}}}),h=U.useCallback(e=>{let t=gL(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 Y(()=>{o&&(d.current=o)},[o]),Y(()=>{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 jW=U.createContext(void 0);function MW(){return U.useContext(jW)?.direction??`ltr`}var NW=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}=TI(e,t)||{};if(l==null)return{};let d=UI(u),f={x:n,y:r},p=jI(i),m=kI(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=wI(D,k,O),j=!c.arrow&&DI(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}}}),PW=(e,t)=>{let{name:n,fn:r}=NW(e);return{name:n,fn:r,options:[e,t]}},FW={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}}}},IW={sideX:`left`,sideY:`top`},LW=`--available-width`,RW=`--available-height`,zW=`--anchor-width`,BW=`--anchor-height`,VW=`--transform-origin`,HW=LW,UW=RW;function WW(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 GW(e,t,n){let{rects:r,placement:i}=e;return{side:WW(t,EI(i),n),align:DI(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function KW(e){return qW(e,AW)}function qW(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=pB(O),A=O?k:n,j=uB(n),M=uB(g),N=MW()===`rtl`,[P,F]=U.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?EI(P):null,R=P&&I?DI(P)||`center`:null,ee=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],z=R||o,te=z===`center`?ee:`${ee}-${z}`,ne=l;typeof ne==`number`?ne={top:ne,right:ne,bottom:ne,left:ne}:ne&&={top:ne.top||0,right:ne.right||0,bottom:ne.bottom||0,left:ne.left||0};let re=+(i===`bottom`),ie=+(i===`top`),B=+(i===`right`),V=+(i===`left`),ae={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:ne},H=U.useRef(null),oe=uB(a),se=uB(s),ce=typeof a==`function`?0:a,le=typeof s==`function`?0:s,ue=[];p&&ue.push(p),ue.push(JU(e=>{let t=GW(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:ZU({...ae,padding:{top:ne.top+1+re,right:ne.right+1+V,bottom:ne.bottom+1+ie,left:ne.left+1+B},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),me=de?null:YU({...ae,rootBoundary:D,mainAxis:w!==`none`,crossAxis:fe,limiter:u||E?void 0:XU(e=>{if(!H.current)return{};let{width:t,height:n}=H.current.getBoundingClientRect(),r=AI(EI(e.placement)),i=r===`y`?t:n,a=r===`y`?ne.left+ne.right:ne.top+ne.bottom;return{offset:i/2+a/2}})},[ae,u,E,D,ne,w]);C===`shift`||w===`shift`||z===`center`?ue.push(me,pe):ue.push(pe,me),ue.push(QU({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(HW,`${t}px`),i.setProperty(UW,`${n}px`);let a=pL(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(zW,`${u}px`),i.setProperty(BW,`${d}px`)}}),PW(e=>({element:H.current||vB(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=EI(r),u=DI(r),d=AI(l)===`y`,f=H.current,p=typeof a==`function`?a(GW(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(VW,d?`${m} ${h}`:`${h} ${m}`),{}}},FW,b),Y(()=>{!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:te,middleware:ue,strategy:r,whileElementsMounted:m?void 0:(...e)=>uR(...e,he),nodeId:y,externalTree:S}),{sideX:Ee,sideY:De}=be.adaptiveOrigin||IW,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[HW]=`100vw`,e[UW]=`100vh`,we||(e.opacity=0),e},[b,Oe,Ee,ve,De,ye,Te,we]),Ae=U.useRef(null);Y(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(JW(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`&&JW(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 uR(_e.reference,_e.floating,xe,he)},[m,g,_e,xe,he]);let je=EI(Se),Me=WW(i,je,N),Ne=DI(Se)||`center`,Pe=!!be.hide?.referenceHidden;Y(()=>{x&&g&&we&&(je!==ee||I&&Ne!==z)&&F(Se)},[x,I,g,we,Se,je,Ne,ee,z]);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 JW(e){return e!=null&&`current`in e}var YW=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,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function XW(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=U.useRef(null),o=U.useRef(null),s=PH(r);Y(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Y(()=>{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 ZW(e){return e===`starting`?BV:lz}function QW(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),NV(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},ZW(r),i],stateAttributesMapping:Lz})}var $W={},eG={},tG=``;function nG(e,t){return yL(e)?e:t}function rG(e,t,n){return/hidden|clip/.test(e.getComputedStyle(nG(t,n)).overflowY)}function iG(e){if(typeof document>`u`)return!1;let t=vB(e);return pL(t).innerWidth-t.documentElement.clientWidth>0}function aG(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=vB(e),n=t.documentElement,r=t.body,i=nG(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 oG(e){let t=vB(e),n=t.documentElement,r=t.body,i=nG(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 sG(e){let t=vB(e),n=t.documentElement,r=t.body,i=pL(n),a=0,o=0,s=!1,c=gB.create();if(bz&&(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,$W={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},tG=n.style.scrollBehavior,eG={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=nG(n,r);s=aG(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,$W),Object.assign(r.style,eG),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=tG)}function d(){u(),c.request(l)}l();let f=aB(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var cG=new class{lockCount=0;restore=null;timeoutLock=fz.create();timeoutUnlock=fz.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=vB(e),n=t.documentElement,r=t.body,i=pL(n);if(rG(i,n,r)){let t=new i.MutationObserver(()=>{rG(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=gz||!iG(e);this.restore=a?oG(e):sG(e)}};function lG(e=!0,t=null){Y(()=>{if(e)return cG.acquire(t)},[e,t])}var uG=20;function dG(e,t,n,r){let[i,a]=U.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=vB(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-uG)},[e,t,n]),lG(e&&(!t||i),r)}var fG=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=qV,..._}=e,v=eW(),y=TW(),b=oH(),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=KW({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`)});XW({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;dG(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=QW(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,G.jsxs)(OW.Provider,{value:j,children:[S&&M&&(0,G.jsx)(YW,{inert:DW(!C),cutout:T}),(0,G.jsx)(sH,{id:b,children:P})]})}),pG=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),mG=U.createContext(void 0);function hG(e){let t=U.useContext(mG);if(t===void 0&&!e)throw Error(DH(69));return t}var gG=U.createContext(void 0);function _G(){let[e,t]=U.useState(0),n=pB(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:U.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var vG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=eW(),l=kW(),u=hG(!0)!=null,{context:d,hasClosePart:f}=_G(),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`);FH({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),CU(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?RH(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=NV(`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`,...LH,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&pG.has(e.key)&&e.stopPropagation()}},ZW(g),s],stateAttributesMapping:Rz});return(0,G.jsx)(vH,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:_L(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,G.jsx)(gG.Provider,{value:d,children:M})})}),yG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=eW(),s=_W(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),NV(`h2`,e,{ref:t,props:[{id:s},a]})}),bG=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=eW(),s=_W(a.id);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),NV(`p`,e,{ref:t,props:[{id:s},a]})}),xG=function(e){let{direction:t=`ltr`}=e,n=U.useMemo(()=>({direction:t}),[t]);return(0,G.jsx)(jW.Provider,{value:n,children:e.children})};function SG(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 CG(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 wG(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 TG=4e3;function EG(e,t){let n=DG(e);return n[Math.min(Math.max(0,t),n.length-1)]}function DG(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…`),n=e.title?.trim()||W(`Untitled meeting`);return e.meetings&&e.meetings>1?[W(`Reading {title} {others}…`,{title:n,others:W(`and {count} others`,{count:e.meetings-1})}),t]:[W(`Reading {title}…`,{title:n}),W(`Still reading {title}…`,{title:n}),t]}var OG=864e5,kG=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/OG);function AG(e,t={}){let n=new Date(e),r=kG(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(xt(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(xt(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function jG(e){let t=kG(e);if(t===0||t===1)return AG(e);let n=new Date(e);return n.toLocaleDateString(xt(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var MG=e=>new Date(e).toLocaleTimeString(xt(),{hour:`numeric`,minute:`2-digit`});function NG(e,t,n=xt()){let r=new Intl.DateTimeFormat(n,{hour:`numeric`,minute:`2-digit`});if(t==null)return r.format(e);let i=e=>r.formatToParts(e).find(e=>e.type===`dayPeriod`)?.value,a=i(e);return t>=e&&a&&a===i(t)&&new Date(e).toDateString()===new Date(t).toDateString()?r.formatRange(e,t):`${r.format(e)} – ${r.format(t)}`}var PG=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},FG=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},IG=(e,t)=>t.startsWith(e)?e:t.slice(0,FG(t,PG(e,t))),LG=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=IG(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,FG(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function RG(e,t,n={}){let r=Mf(),i=t&&!r,[a]=(0,U.useState)(()=>new LG(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?IG(o,e):e}function zG(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 BG(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:zG(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 VG(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=dt(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[pt(r.map(e=>e.text),t,o)]:void 0,s=Ot(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?zG(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:Dt[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(`
…`)){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,Fh(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`?eK(i,a):[],lines:u.map((t,n)=>{let r=Bh(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:zh[r]}}),matchedLine:d}}function nK({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,U.useId)().replace(/:/g,``),o=(0,U.useRef)(null),s=tK(e,t),c=Dd(),l=n?document.getElementById(n):null,u=e.title||G(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(Cm(),{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},Td.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,W.jsx)(BW,{container:l?.closest(`dialog`)??void 0,children:(0,W.jsx)(EG,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,W.jsxs)(MG,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,W.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,W.jsx)(`defs`,{children:(0,W.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,W.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,W.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,W.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,W.jsx)(`div`,{className:`citation-mass`})}),(0,W.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,W.jsxs)(`div`,{className:`citation-content`,children:[(0,W.jsxs)(`div`,{className:`citation-heading`,children:[(0,W.jsx)(NG,{className:`citation-title`,title:u,children:u}),(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,W.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(Cm(),{month:`short`,day:`numeric`})})]}),s.match.text&&(0,W.jsx)(`blockquote`,{className:`citation-quote`,"data-testid":`citation-excerpt`,dir:`auto`,children:(0,W.jsxs)(`q`,{children:[s.before.text&&(0,W.jsxs)(`span`,{className:`citation-context`,children:[s.before.text,` `]}),(0,W.jsx)(`span`,{className:`citation-match`,children:s.match.text}),s.after.text&&(0,W.jsxs)(`span`,{className:`citation-context`,children:[` `,s.after.text]})]})}),(0,W.jsx)(`div`,{className:`citation-footer`,children:(0,W.jsxs)(`button`,{className:`ghost-btn`,"data-testid":`citation-open`,"aria-label":G(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[G(`Open`),(0,W.jsx)(sf,{size:12,"aria-hidden":`true`})]})})]})]})})})}function rK({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,W.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,W.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,W.jsx)(`code`,{children:n}));return n}function iK({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)(null),d=(0,U.useRef)(null),f=(0,U.useRef)(null),p=(0,U.useMemo)(()=>{let r=Th(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]);(0,U.useLayoutEffect)(()=>{s&&!document.getElementById(s)&&(u(null),a?f.current?.close():(f.current?.unmount(),c(null)))},[p,a,s]);let m={live:t,at:{n:0},id:i,sources:n,pinned:l,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(null),c(e.id),o(!0)))},blur:()=>{d.current=null},dismiss:e=>!a||s!==e.id?!1:(u(null),o(!1),!0)};return(0,W.jsx)(xW,{actionsRef:f,open:a,triggerId:s,onOpenChange:(e,t)=>{let n=s?document.getElementById(s):null,r=document.getElementById(n?.getAttribute(`aria-controls`)??``),i=a&&(n===document.activeElement||!!r?.contains(document.activeElement));if(t.reason===`trigger-hover`&&(l||i&&(!e||t.trigger?.id!==s)))t.cancel();else if(!e&&t.reason===`focus-out`&&(l||n?.matches(`:hover`)||r?.matches(`:hover`)))t.cancel();else{if(t.reason===`trigger-press`){let n=l!==t.trigger?.id;e!==n&&t.cancel(),u(n?t.trigger?.id??s:null),e=n}else e||u(null);t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&c(t.trigger?.id??s),o(e)}},children:({payload:e})=>(m.at.n=0,(0,W.jsxs)(W.Fragment,{children:[(p.content??[]).map(e=>aK(e,m)),e&&(0,W.jsx)(nK,{source:e.source,sentence:e.sentence,triggerId:s,animate:!0,onOpen:t=>{u(null),o(!1),r(e.source,t)}},s)]}))})}function aK(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),e.attrs.marks.length?(0,W.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`),s=`${t.id}-${n}-${r.source}`;return(0,W.jsx)(LW,{id:s,payload:e.attrs.payloads[i],openOnHover:!0,delay:120,closeDelay:180,"aria-pressed":t.pinned===s,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${o} · ${WG(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:(0,W.jsx)(`span`,{className:`source-name`,children:o})},r.source)})},n):null;if(e.type===`citationAnchor`)return(0,W.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>aK(e,t))},n);if(e.type===`text`){let r=e.text??``,i=oK(r,t.at.n,t.live);return t.at.n+=r.length,(0,W.jsx)(rK,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>aK(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,W.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,W.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,W.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,W.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,W.jsx)(`p`,{children:r},n):null;default:return(0,W.jsx)(U.Fragment,{children:r},n)}}function oK(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,W.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function sK(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:sK(t.props.children))})}function cK({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=Dv(e),s=(0,U.useRef)(void 0);e&&(s.current=n??sK(t));let c=o===`waiting`||o===`skeleton`,l=(0,U.useRef)(a);return l.current=a,(0,U.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,W.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,W.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,W.jsx)(`span`,{className:`sr-only`,role:`status`,children:G(`Loading…`)}),(0,W.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,W.jsx)(`div`,{className:`loading-result`,children:t})]})}var lK=e=>new Intl.NumberFormat(Cm(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100),uK=e=>!e.notesDownloading&&!e.notesError&&!!(e.notesUpgradePending||e.notesUpgradeDownloading||e.notesUpgradeError),dK=e=>!!e&&!!(e.notesDownloading||e.notesError||uK(e));function fK(e){let t=e.notesRestoreFraction!==void 0,n=uK(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(Cm(),{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(Cm()).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 pK({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,W.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,W.jsx)(`p`,{className:`font-medium text-ink`,children:G(`The notes model couldn't download.`)}),(0,W.jsx)(`p`,{children:n.notesError}),(0,W.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`text-action`,children:G(i?`Retrying…`:`Retry download`)}),o&&(0,W.jsx)(`p`,{className:`text-danger`,children:G(`Yogurt couldn't restart the download.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(lK(n.notesFraction??0)):e}function mK(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 hK(){let e=(0,U.useRef)(null),t=Dd();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]=mK((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,W.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{})]}):(0,W.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var gK=U.createContext(void 0);function _K(e){let t=U.useContext(gK);if(t===void 0&&!e)throw Error(VH(33));return t}var vK=U.createContext(void 0);function yK(e){let t=U.useContext(vK);if(t===void 0&&!e)throw Error(VH(36));return t}var bK=U.createContext(void 0);function xK(e=!0){let t=U.useContext(bK);if(t===void 0&&!e)throw Error(VH(25));return t}var SK=U.createContext(null);function CK(e=`root`){let t=U.useContext(SK),n=U.useContext(vK);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var wK={visible:!0,ref:null};function TK(){return wK}function EK(e,t,n=`root`){let r=CK(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??TK)({label:e.label,children:e.children,render:e.render}),a=pB(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function DK(e){e.preventDefault()}function OK(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=yK(),u=xK(!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?DK: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:lae})},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&&!Tz&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&DW(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var kK={type:`regular-item`};function AK(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}=OW({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=OK({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=U.useCallback(e=>PV(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=pB(u,f);return U.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var jK=U.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function MK(){return U.useContext(jK)}function NK(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=MK(),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 Y(()=>{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 PK=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}=yK(),f=NK({guess:!0,label:a}),p=jW(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}=AK({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:kK});return qV(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),FK=U.forwardRef(function(e,t){let n=EK(e,t);return n.visible?(0,W.jsx)(PK,{...e,ref:n.ref}):null}),IK=U.createContext(void 0);function LK(){return U.useContext(IK)}function RK(e,t){let n=ZV(e.render);if(U.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function zK(e,t,n){let r=RK(e,t),i=r===t?void 0:r;return[r,U.useCallback(e=>n?.(e?i:void 0),[i,n])]}function BK(e,t,n){let r=ZV(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 VK=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}=yK(),m=LK(),{side:h,align:g}=_K(),_=kG(!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]=zK(e,u,d),L=BK(e,C,N),R=w.type===`menu`?m:void 0,ee=w.type===`context-menu`,z=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(z=()=>l.state.activeIndex===null&&P),YH({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),U.useEffect(()=>{function e(e){l.setOpen(!1,tB(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),LU(D,{enabled:A&&!j&&!ee&&w.type!==`menubar`,closeDelay:k});let te=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:ne,handleFocus:re}=(U.useContext(SK)?.useParentHandoff??UK)(l,w,v,f),ie=qV(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,te,I],stateAttributesMapping:Wz,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&DG.has(e.key)&&e.stopPropagation()},onFocus:re},dG(y),c,{"data-rootownerid":E}]}),B=w.type===void 0||ee;(C||w.type===`menubar`&&T!==`outside-press`)&&(B=!0);let ae=R?.getReturnElement??ne;return(0,W.jsx)(MH,{context:D,openInteractionType:M,modal:ee,disabled:!x,returnFocus:a??ae??B,explicitReturnFocus:a===void 0&&ae?!1:void 0,initialFocus:z,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:ie})}),HK={parentVirtualFocusRef:void 0,handleFocus:void 0};function UK(){return HK}var WK=U.forwardRef(function(e,t){let n=CK()?.Popup??VK;return(0,W.jsx)(n,{...e,ref:t})}),GK=U.createContext(void 0);function KK(){let e=U.useContext(GK);if(e===void 0)throw Error(VH(32));return e}var qK=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=yK();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,W.jsx)(GK.Provider,{value:n,children:(0,W.jsx)(pH,{ref:t,...r,portalOwnerRole:o})})});function JK(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=yB(i),[,o]=U.useState(0),s=cz(XK).current,c=cz(YK).current,l=U.useRef(0),u=U.useRef(!0),d=U.useRef(null),f=U.useRef(null),p=yB(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=yB((e,t)=>{c.set(e,t),p()}),h=yB(e=>{c.delete(e),p()}),g=yB(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(!$K(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&eq(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=QK(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=yB(()=>{let[e,t]=ZK(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))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&v()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=yB(e=>(s.add(e),()=>{s.delete(e)})),b=U.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,W.jsx)(jK.Provider,{value:b,children:t})}function YK(){return new Map}function XK(){return new Set}function ZK(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)=>eq(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 QK(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function $K(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 eq(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var tq=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=oH,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=yK(),x=KK(),S=xK(!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`),ee=n,z=c,te=l,ne=s,re=h;C.type===`context-menu`&&(ee=n??C.context?.anchor,ne??=`start`,!o&&ne!==`center`&&(te=e.alignOffset??2,z=e.sideOffset??-5));let ie=o,B=ne;C.type===`menu`?(ie??=`inline-end`,B??=`start`,re=e.collisionAvoidance??sH):C.type===`menubar`&&(ie??=C.context.orientation===`vertical`?`inline-end`:`bottom`,B??=`start`);let ae=C.type===`context-menu`,oe=oG({anchor:ee,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:ie,sideOffset:z,align:B,alignOffset:te,arrowPadding:ae?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:re,shift:ae?{crossAxis:!(`side`in re&&re.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,tB(lB)))}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,tB(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let V=yz();U.useEffect(()=>{D||V.clear()},[D,V]),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?V.isStarted()||V.start(e,()=>{v.setOpen(!1,tB(lB))}):v.setOpen(!1,tB(lB))}else V.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,V]),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]),uG({store:v,domReference:R,positionerElement:M,open:D});let se={open:D,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,nested:C.type===`menu`,instant:N},ce=C.type===`menubar`&&C.context.modal;TG(D&&(ce||O&&F!==`trigger-hover`),k===`touch`,M,A);let le=fG(e,se,{styles:oe.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ue=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),de=null;return C.type===`menubar`?de=C.context.contentElement:C.type===void 0&&(de=A),(0,W.jsxs)(gK.Provider,{value:oe,children:[ue&&(0,W.jsx)(lG,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:VW(!D),cutout:de}),(0,W.jsx)(xH,{id:I,children:(0,W.jsx)(JK,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:le})})]})}),nq=U.createContext(null);function rq(e){let t=U.useContext(nq);if(t===null&&!e)throw Error(VH(5));return t}function iq(e){return e==null?nB:e.type.startsWith(`key`)?cB:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?fae:nB}var aq={...DU,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=DU.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>Ez&&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`&&!DU.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`)}},oq=class extends vU{constructor(e,t,n=!1){let r=new dU,i=cq(r,t,n,e);super(i,sq(r),aq),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 sq(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 cq(e,t,n=!1,r){return{...xU(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:hz,inputProps:hz,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new hH,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:hz,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var lq=U.createContext(null);function uq(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function dq(e,t){return e===`list-navigation`||uq(e,t)}var fq=dz(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=xK(!0),C=yK(!0),w=rq(!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=jW(),k=jW(),[A,j]=U.useState(void 0),M=(A??k)||void 0,N=vH(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=cz(()=>F?P?.state.instantType:void 0).current,L=cz(()=>{let e=new oq({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`),ee=bH(R),z=L.useState(`open`),te=L.useState(`activeTriggerElement`),ne=L.useState(`positionerElement`),re=L.useState(`hoverEnabled`),ie=L.useState(`disabled`),B=L.useState(`lastOpenChangeReason`),ae=L.useState(`parent`),oe=L.useState(`activeIndex`),V=L.useState(`keyboardOpen`),se=L.useState(`payload`),ce=L.useState(`floatingParentNodeId`),le=U.useRef(null),ue=U.useRef(ae.type!==`context-menu`),de=yz(),fe=U.useRef(!0),pe=yz(),me=ce!=null,{openMethod:he,triggerProps:ge}=IW(z);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:ae.type===void 0?c:void 0,openMethod:he,rootId:O}),sU(L);let{forceUnmount:_e,transitionStatus:ve}=cU(z,L,()=>{L.set(`allowMouseEnter`,!1)},F),ye=JH(L.context.popupRef);U.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!z){e();return}if(ve!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return ye(e,t.signal),()=>{t.abort()}},[I,z,ve,ye,L]),Y(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:ee,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:ee,floatingParentNodeId:N})},[S,C,ee,N,te,L]),U.useEffect(()=>{z||(le.current=null),ae.type===`context-menu`&&(z?de.start(500,()=>{ue.current=!0}):(de.clear(),ue.current=!1))},[de,z,ae.type]),Y(()=>{!z&&!re&&L.set(`hoverEnabled`,!0)},[z,re,L]);let be=yB((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||z===e&&t.trigger===te&&B===n)return;let i=iU(t);if(!e&&t.trigger==null&&(t.trigger=te??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`&&!fe.current)return;e&&n===`trigger-focus`?(fe.current=!1,pe.start(300,()=>{fe.current=!0})):(fe.current=!0,pe.clear());let o=!e&&(n===`escape-key`||n==null);le.current=t.event;let s=rU(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&dq(n,a),s.instantType=ae.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:uq(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),xe=UH({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:be}),Se=xe.context.events;Y(()=>{let e=({open:e,eventDetails:t})=>be(e,t);return Se.on(`setOpen`,e),()=>{Se?.off(`setOpen`,e)}},[Se,be]),Y(()=>L.subscribeToParentMenu(),[L]);let Ce=U.useCallback(()=>{L.setOpen(!1,tB(uB))},[L]);U.useImperativeHandle(d,()=>({unmount:_e,close:Ce}),[_e,Ce]);let we;ae.type===`context-menu`&&(we=ae.context),U.useImperativeHandle(we?.positionerRef,()=>ne,[ne]),U.useImperativeHandle(we?.actionsRef,()=>({setOpen:be}),[be]);let Te=zH(xe,{enabled:!ie,bubbles:{escapeKey:f&&ae.type===`menu`},outsidePress(){return ae.type!==`context-menu`||le.current?.type===`contextmenu`||ue.current},externalTree:me?R:void 0}),Ee=KW(),De=KU(xe,{enabled:!ie,listRef:L.context.itemDomElements,activeIndex:oe,virtual:v,nested:ae.type===`menubar`||!v&&ae.type!==void 0,parentOrientation:ae.type===`menubar`?ae.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?V:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:Ee===`rtl`,disabledIndices:mz,onNavigate(e,t){L.setActiveIndex(e,iq(t),t?.nativeEvent)},openOnArrowKeyDown:ae.type!==`context-menu`&&!(v&&_),externalTree:!v&&me?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Oe=U.useCallback(e=>{L.context.typingRef.current=e},[L]),ke=qU(xe,{enabled:!ie&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:oe,resetMs:500,onMatch:(e,t)=>{z&&e!==oe&&L.setActiveIndex(e,cB,t.nativeEvent)},onTyping:Oe}),Ae=yB(a),je=U.useRef(-1),Me=yB(()=>{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(je.current===n&&L.context.reportedItem===t)return;je.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=nB,L.context.highlightEvent=void 0,a&&Ae(t,sae(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Y(()=>{Me()},[oe,Me]);let Ne=U.useMemo(()=>{if(!v)return De.reference;if(!De.trigger)return hz;let{onFocus:e,...t}=De.trigger;return t},[v,De.reference,De.trigger]);L.useSyncedValue(`inputProps`,v?De.reference??hz:hz);let Pe=U.useMemo(()=>{let e=PV(ke.reference,Ne,Te.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=z,e},[L,ke.reference,Ne,Te.reference,ge,z]),Fe=U.useMemo(()=>{let e=PV(De.trigger,Te.trigger,ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[De.trigger,Te.trigger,ge]);cz(()=>(L.update({inactiveTriggerProps:Fe}),null)),lU(L,{floatingRootContext:xe,activeTriggerProps:Pe,inactiveTriggerProps:Fe,popupProps:U.useMemo(()=>PV(ZH,{onMouseMove(){L.set(`allowMouseEnter`,!0),ae.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)}},ke.floating,De.floating,Te.floating),[ae.type,L,ke.floating,De.floating,Te.floating]),itemProps:De.item??hz});let Ie=U.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Me}),[L,D,u,l,b,k,v,E,Me]),Le=typeof t==`function`?t({payload:se}):t,Re=(0,W.jsxs)(vK.Provider,{value:Ie,children:[p&&(0,W.jsx)(eU,{handle:p,store:L}),Le]});return(ae.type===void 0||ae.type===`context-menu`)&&(Re=(0,W.jsx)(SH,{externalTree:R,children:Re})),Re});function pq(e){let t=U.useContext(lq);if(t===null)return(0,W.jsx)(fq,{...e});let n=t.Root;return(0,W.jsx)(lq.Provider,{value:null,children:(0,W.jsx)(n,{...t.options,...e})})}var mq=5;function hq(e,t){let n=gq(t);return e.clientX>=n.left-mq&&e.clientX<=n.right+mq&&e.clientY>=n.top-mq&&e.clientY<=n.bottom+mq}function gq(e){let t=e.getBoundingClientRect(),n=RL(e);if(Dz)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 _q(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=TW(),{ref:i,index:a}=NK(e),o=n===a,s=U.useRef(null),c=pB(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 vq(e){let{render:t,className:n,style:r,state:i=hz,props:a=mz,refs:o=mz,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=_q({metadata:s});return qV(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function yq(e){if(HL(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!eR(e))return yq(rR(e))}function bq(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,wB(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:hz,[t,n,r])}var xq=fz(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=yK(!0),h=OU(d)??m?.store;if(!h)throw Error(VH(85));let g=jW(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=U.useRef(null),S=Cq(),C=TW(!0),w=yH(),T=U.useMemo(()=>w??new hH,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=oU(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:bH(T),floatingParentNodeId:vH(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=OW({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=yz(),F=yB(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;Nz(N.current,t)||Nz(h.select(`positionerElement`),t)||t===N.current||t!=null&&yq(t)===h.select(`rootId`)||hq(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:pae})});U.useEffect(()=>{let e=wB(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=zU(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:tW({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=Sq(y,h.select(`lastOpenChangeReason`)),ee=NH(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),z=jU(v,{enabled:!A&&I}),te=bq({open:y,enabled:O,mouseDownAction:`open`}),ne=U.useMemo(()=>PV(z.reference,ee.reference),[z.reference,ee.reference]),re=h.useState(`triggerProps`,D),ie=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:B,handleFocusTargetFocus:ae}=MW(h,x),oe={disabled:A,open:y},V=[N,t,M,E,x],se=[ne,L??hz,re,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),wB(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},ie,O?{role:`menuitem`}:{},te,p,j],ce=qV(`button`,e,{enabled:!O,stateAttributesMapping:Hz,state:oe,ref:V,props:se});return O?(0,W.jsx)(vq,{tag:`button`,render:n,className:r,style:i,state:oe,refs:V,props:se,stateAttributesMapping:Hz}):y?(0,W.jsxs)(U.Fragment,{children:[(0,W.jsx)(DB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:B},`${g}-pre-focus-guard`),(0,W.jsx)(U.Fragment,{children:ce},g),(0,W.jsx)(DB,{ref:h.context.triggerFocusTargetRef,onFocus:ae},`${g}-post-focus-guard`)]}):(0,W.jsx)(U.Fragment,{children:ce},g)});function Sq(e,t){let n=yz(),[r,i]=U.useState(!1);return Y(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Cq(){let e=rq(!0);return U.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var wq=Object.defineProperty,Tq=(e,t)=>{let n={};for(var r in e)wq(n,r,{get:e[r],enumerable:!0});return t||wq(n,Symbol.toStringTag,{value:`Module`}),n};function Eq(e){let t=U.createContext(void 0);return[({value:e,children:n})=>(0,W.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 Dq=X_.transition.overlay,Oq=X_.spring.dialog,kq=X_.transition.dismiss;X_.transition.drawerOut;var Aq=X_.transition.dialogFade,jq=X_.spring.toast;X_.transition.drawer;var Mq=X_.transition.sheet;function Nq(e,t,n,r){return{enter:ev(e??n),exit:ev(t??r??e??n)}}function Pq(e,t){return Nq(e,t,Dq)}function Fq(e,t,n){let{enter:r,exit:i}=Nq(t,n,e?Mq:Oq,kq),a=ev(Aq);return{enter:e||t?r:{...r,opacity:a},exit:i}}var Iq=[`top`,`right`,`bottom`,`left`];function Lq(e){return typeof e==`string`&&Iq.includes(e)?e:void 0}var Rq={top:`translateY(-100%)`,right:`translateX(100%)`,bottom:`translateY(100%)`,left:`translateX(-100%)`};function zq(e){let t=e===`top`||e===`bottom`?`rotateX`:`rotateY`;return{tipped:`perspective(500px) ${t}(${e===`bottom`||e===`left`?`20deg`:`-20deg`}) scale(${X_.scale.dialog})`,upright:`perspective(500px) ${t}(0deg) scale(1)`}}function Bq({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:Rq[e]};return{initial:a,animate:{opacity:1,transform:t,transition:r},exit:{...a,transition:i}}}let{tipped:a,upright:o}=zq(t),s={opacity:0,filter:X_.blur.surface,transform:n?o:a};return{initial:s,animate:{opacity:1,filter:`blur(0px)`,transform:o,transition:r},exit:{...s,transition:i}}}function Vq(){let[e,t]=U.useState(!1);return U.useLayoutEffect(()=>{let e=requestAnimationFrame(()=>t(!0));return()=>cancelAnimationFrame(e)},[]),e}function Hq(e,t,n){return n&&!t?e.exit:e.animate}function Uq(e,t){let[n,r]=U.useState(!e);return e&&n&&r(!1),{hidden:t&&!e&&n,onAnimationComplete:()=>{e||r(!0)}}}var Wq={backgroundColor:`transparent`,backdropFilter:`none`,opacity:`0`};function Gq(e){let t=getComputedStyle(e);return{backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,opacity:t.opacity,hasImage:t.backgroundImage!==`none`}}function Kq(e,t,n){let r=t=>({backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,...e.hasImage?{opacity:t.opacity}:{}});return[r(t),r(n)]}function qq(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?Gq(l):null;d?.cancel();let p=Gq(l),{duration:m,easing:h}=av(t?o:s),g=l.animate(Kq(p,f??(t?Wq:p),t?p:Wq),{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 Jq=new WeakMap;function Yq(e){if(typeof e==`string`)return B_[e];let t=Jq.get(e);return t||(t=B_.create(e),Jq.set(e,t)),t}function Xq(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Zq(e,t){let n=e.props;return U.createElement(Yq(e.type),{...n,...t,ref:Xq(n.ref,t.ref),style:{...n.style,...t.style}})}function Qq(e,t){return typeof e==`function`?((n,r)=>Zq(e(n,r),t)):e?Zq(e,t):U.createElement(Yq(`div`),t)}var $q=U.createContext(void 0);function eJ(e){let t=U.useContext($q);if(!e&&t===void 0)throw Error(VH(27));return t}var tJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=eJ(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return qV(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Wz,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),nJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=eJ(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=OW({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,tB(uae,e.nativeEvent))}return qV(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),rJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=eJ(),c=jW(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),qV(`p`,e,{ref:t,props:[{id:c},o]})}),iJ=U.createContext(void 0);function aJ(){let e=U.useContext(iJ);if(e===void 0)throw Error(VH(26));return e}var oJ=`--nested-dialogs`,sJ=`data-nested-dialog-open`,cJ={...Uz,...zz,nestedDialogOpen(e){return e?{[sJ]:``}:null}},lJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=eJ(),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`);aJ(),YH({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?QH(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=qV(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...ZH,hidden:!m,onKeyDown(e){DG.has(e.key)&&e.stopPropagation()},style:{[oJ]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:cJ});return(0,W.jsx)(MH,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),uJ=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=eJ(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,W.jsx)(iJ.Provider,{value:n,children:(0,W.jsxs)(pH,{ref:t,...r,children:[a&&o===!0&&(0,W.jsx)(lG,{ref:i.context.internalBackdropRef,inert:VW(!s)}),e.children]})}):null});function dJ({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=zH(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=Fz(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Nz(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return CG(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Y(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Y(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),lU(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var fJ={...DU,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},pJ=class extends vU{constructor(e,t,n){let r=new dU,i=hJ(e,r,t,n);super(i,gJ(r),fJ)}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(rU(this.state,e,t.trigger)))}};function mJ(){let e=new dU;return new hW(Object.freeze(hJ(void 0,e)),Object.freeze(gJ(e)),fJ)}function hJ(e,t,n,r=!1){return{...xU(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 gJ(e){return{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function _J(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=eJ(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=$H((e,t)=>new pJ({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`);uU(b,x),sU(b);let{forceUnmount:w}=cU(x,b);U.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,tB(uB))}),[w,b]);let T=x||S||u!=null;return(0,W.jsxs)($q.Provider,{value:b,children:[u&&(0,W.jsx)(eU,{handle:u,store:b}),T&&(0,W.jsx)(dJ,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var vJ=dz(function(e){return _J(`dialog`,e)}),yJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=aJ(),c=eJ(),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 qV(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:cJ,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),bJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=eJ(),c=jW(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),qV(`h2`,e,{ref:t,props:[{id:c},o]})}),xJ=fz(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=eJ(!0),f=OU(l)??d;if(!f)throw Error(VH(79));let p=jW(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=U.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=oU(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=OW({disabled:a,native:o}),S=NH(m),C=FW(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return qV(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[tH]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:Vz})}),SJ=class extends HH{constructor(){super(mJ(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,tB(uB)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function CJ(){return new SJ}var[wJ,TJ]=Eq(`Dialog.Root`),EJ=U.createContext({keepMounted:!1});function DJ(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,W.jsx)(wJ,{value:{open:o},children:(0,W.jsx)(e,{...n,open:o,onOpenChange:s})})}}function OJ({keepMounted:e,children:t,...n}){let{open:r}=TJ();return(0,W.jsx)(ig,{children:(r||e)&&(0,W.jsx)(uJ,{...n,keepMounted:!0,children:(0,W.jsx)(EJ,{value:{keepMounted:!!e},children:(0,W.jsx)(cv,{children:t})})},`portal`)})}function kJ(e){let{open:t}=TJ(),{keepMounted:n}=U.use(EJ),r=eg(),{hidden:i,onAnimationComplete:a}=Uq(t,n),o=!r||n&&!t&&!i,s=Vq();return{initial:e.initial,animate:s?Hq(e,t,n):e.initial,exit:e.exit,onAnimationComplete:a,...o?{hidden:!1}:{},...t?{}:{style:{pointerEvents:`none`}}}}function AJ({transition:e,exitTransition:t,render:n,...r}){let{open:i}=TJ(),{keepMounted:a}=U.use(EJ),[o,s]=$h(),{hidden:c,onAnimationComplete:l}=Uq(i,a),u=qq({visible:i&&o,...Pq(e,t),onFadedOut:()=>{l(),s?.()}}),d=!o||a&&!i&&!c;return(0,W.jsx)(tJ,{...r,render:Qq(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function jJ({from:e,transition:t,exitTransition:n,render:r,...i}){let a=dv(),o=Lq(i[`data-side`]),{enter:s,exit:c}=Fq(o,t,n),l=kJ(Bq({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,W.jsx)(lJ,{...i,render:Qq(r,l)})}var MJ=Tq({Backdrop:()=>IJ,Close:()=>zJ,Description:()=>VJ,Handle:()=>UJ,Popup:()=>LJ,Portal:()=>FJ,Root:()=>PJ,Title:()=>BJ,Trigger:()=>RJ,Viewport:()=>HJ,createHandle:()=>WJ}),NJ=DJ(vJ);function PJ(e){return(0,W.jsx)(NJ,{...e})}function FJ(e){return(0,W.jsx)(OJ,{...e})}function IJ(e){return(0,W.jsx)(AJ,{...e})}function LJ(e){return(0,W.jsx)(jJ,{...e})}var RJ=xJ,zJ=nJ,BJ=bJ,VJ=rJ,HJ=yJ,UJ=SJ,WJ=CJ,GJ=(0,U.forwardRef)(function({className:e,...t},n){return(0,W.jsx)(lJ,{...t,ref:n,className:t=>`${typeof e==`function`?e(t):e??``} dialog-motion`})}),KJ=MJ.Close;function qJ({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,container:s}){let[c,l]=(0,U.useState)(!0),u=Dd(),d=(0,U.useRef)(null),f=(0,U.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),p=(0,U.useRef)(r);return p.current=r,(0,U.useEffect)(()=>{if(c)return;let e=setTimeout(()=>p.current(),u?wd.micro:wd.base);return()=>clearTimeout(e)},[c,u]),(0,W.jsx)(MJ.Root,{open:c,onOpenChange:(e,t)=>{!e&&i?t.cancel():l(e)},children:(0,W.jsxs)(MJ.Portal,{keepMounted:!0,container:s,children:[(0,W.jsx)(MJ.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{ease:wd.out,duration:(u?wd.micro:wd.surface)/1e3},exitTransition:{ease:wd.out,duration:(u?wd.micro:wd.base)/1e3}}),(0,W.jsxs)(GJ,{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,W.jsxs)(`div`,{className:`modal-copy`,children:[(0,W.jsx)(MJ.Title,{children:e}),t&&(0,W.jsx)(MJ.Description,{children:t})]}),n]})]})})}function JJ({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(),u(e),i?.(e)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(pq,{modal:!1,children:[(0,W.jsx)(xq,{ref:c,"data-testid":`chat-menu`,className:`ghost-btn workspace-icon ask-menu-trigger ${a}`,"aria-label":G(`More`),title:G(`More`),children:(0,W.jsx)(Vf,{size:17,"aria-hidden":`true`})}),(0,W.jsx)(qK,{container:s,children:(0,W.jsx)(tq,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,W.jsxs)(WK,{className:`menu-entry ask-actions-menu`,"aria-label":G(`More`),finalFocus:!l&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,W.jsxs)(FK,{"data-testid":`chat-rename`,onClick:()=>d(`rename`),children:[(0,W.jsx)(zp,{size:14,"aria-hidden":`true`}),G(`Rename`)]}),n&&(0,W.jsxs)(FK,{"data-testid":`chat-new`,onClick:n,children:[(0,W.jsx)(Up,{size:14,"aria-hidden":`true`}),G(`New chat`)]}),(0,W.jsxs)(FK,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>d(`delete`),children:[(0,W.jsx)(am,{size:14,"aria-hidden":`true`}),G(`Delete`)]})]})})})]}),l&&!i&&(0,W.jsx)(YJ,{id:e,title:t,kind:l,container:s.current??void 0,onClose:()=>{u(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function YJ({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,W.jsx)(qJ,{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`?Pm({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,W.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,W.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,W.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,W.jsx)(`p`,{className:`chat-error`,role:`alert`,children:G(`Couldn't save your changes`)}),(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.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,W.jsx)(KJ,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`workspace-button`,disabled:c,children:G(`Cancel`)})]})]})})}var XJ=e=>e.title.trim()||(e.kind===`meeting`?G(`Untitled meeting`):G(`Folder`)),ZJ=e=>({name:e.length?XJ(e[0]):G(`All meetings`),others:e.length>1?G(`and {count} others`,{count:e.length-1}):``});function QJ({chips:e}){let t=ZJ(e),n=e[0]?.kind===`folder`?$f:qf;return(0,W.jsxs)(W.Fragment,{children:[!!e.length&&(0,W.jsx)(n,{size:14,"aria-hidden":`true`}),(0,W.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,W.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,W.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]}),(0,W.jsx)(Tf,{size:12,"aria-hidden":`true`})]})}function $J({chips:e}){let t=ZJ(e);return(0,W.jsx)(`span`,{className:`chat-answer-scope`,title:e.length?e.map(XJ).join(`
-`):t.name,children:e.length?Oee(`Searched {name}`,{name:(0,W.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,W.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,W.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]})}):G(`Searched all meetings`)})}function eY(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||e.scrollHeight<=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||e.scrollHeight<=e.clientHeight||(o(),i=Od(e,()=>{a=e.scrollTop,s()}),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 tY(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=eY(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 nY({show:e,options:t,className:n}){return(0,W.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,W.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function rY({text:e,widest:t}){let n=(0,U.useRef)(!1),r=(0,U.useRef)(null),[i,a]=(0,U.useState)();return(0,U.useEffect)(()=>{n.current=!0},[]),(0,U.useLayoutEffect)(()=>{let e=r.current;if(t!=null||!e)return;let n=()=>a(e.getBoundingClientRect().width);n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[e,t]),(0,W.jsx)(`span`,{className:`swap-text`,"data-widest":t,"data-resize":t==null||void 0,style:t==null&&i!=null?{width:i}:void 0,children:(0,W.jsx)(`span`,{ref:r,className:n.current?`swap-in`:void 0,children:e},e)})}var iY=1200,aY=8e3;function oY(e,t,n){let r=e,i=!0,a=!1,o=!1,s,c=()=>!r.hasText&&!r.reduced&&!r.hidden&&(i||!r.focused&&!r.hovered),l=()=>{clearTimeout(s),s=void 0,a=!1,n()},u=e=>{s=setTimeout(()=>{a=!0,t(),s=setTimeout(()=>{n(),s=void 0,a=!1,i=!1,c()&&u(6800)},iY)},e)},d=e=>{o||(r=e,(!a||r.reduced||r.hidden)&&(c()?s===void 0&&u(i?300:aY):(i=!1,l())))};return d(e),{update:d,dispose(){o=!0,l()}}}var sY=`cubic-bezier(.37,0,.63,1)`;function cY(e){let t=e.querySelector(`textarea`),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.setAttribute(`class`,`ask-tracer`),r.setAttribute(`aria-hidden`,`true`);let i=Array.from({length:20},(e,t)=>{let n=document.createElementNS(r.namespaceURI,`rect`);for(let[e,t]of Object.entries({x:1,y:1,rx:11,pathLength:100}))n.setAttribute(e,String(t));return n.style.strokeDashoffset=String(-t),n.style.opacity=String(Math.sin(Math.PI*(t+.5)/20)**2),r.append(n),n});e.append(r);let a=()=>{let{width:t,height:n}=e.getBoundingClientRect();r.setAttribute(`viewBox`,`0 0 ${t} ${n}`);for(let e of i)e.setAttribute(`width`,String(Math.max(0,t-2))),e.setAttribute(`height`,String(Math.max(0,n-2)))};a();let o=new ResizeObserver(a);o.observe(e);let s=[],c=()=>{s.forEach(e=>e.cancel()),s=[]},l=()=>{c();let e={duration:iY,easing:`linear`};s=[r.animate([{opacity:0},{opacity:1,offset:.2},{opacity:1,offset:.8},{opacity:0}],e),...i.map((t,n)=>t.animate([{strokeDashoffset:String(-n),easing:sY},{strokeDashoffset:String(-n-100)}],e))]},u=!1,d=()=>({focused:e.contains(document.activeElement),hovered:u,hasText:!!t.value,reduced:n.matches,hidden:document.hidden}),f=oY(d(),l,c),p=()=>f.update(d()),m=()=>queueMicrotask(p),h=()=>{u||(u=!0,p())},g=()=>{u=!1,p()};for(let t of[`input`,`focusin`])e.addEventListener(t,p);return e.addEventListener(`pointermove`,h),e.addEventListener(`pointerleave`,g),e.addEventListener(`focusout`,m),document.addEventListener(`visibilitychange`,p),n.addEventListener(`change`,p),{update:p,dispose(){f.dispose(),o.disconnect(),r.remove();for(let t of[`input`,`focusin`])e.removeEventListener(t,p);e.removeEventListener(`pointermove`,h),e.removeEventListener(`pointerleave`,g),e.removeEventListener(`focusout`,m),document.removeEventListener(`visibilitychange`,p),n.removeEventListener(`change`,p)}}}function lY(e,t,n){let r=Math.max(0,n.height-16-e.bottom-4),i=Math.max(0,e.top-4-16),a=t.height>r&&i>r,o=Math.min(t.height,a?i:r);return{left:Math.max(16,Math.min(e.left,n.width-16-t.width)),top:Math.max(16,Math.min(a?e.top-4-o:e.bottom+4,n.height-16-o)),maxHeight:o}}function uY(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=document.createElement(`div`),a=document.createElement(`span`);for(let e of`font-family.font-size.font-weight.font-style.font-variant.font-stretch.line-height.letter-spacing.word-spacing.text-indent.text-align.text-transform.direction.tab-size.padding-top.padding-right.padding-bottom.padding-left.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.white-space.overflow-wrap.word-break`.split(`.`))i.style.setProperty(e,n.getPropertyValue(e));Object.assign(i.style,{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`0`,top:`0`,boxSizing:`border-box`,width:`${e.clientWidth+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}px`}),i.setAttribute(`aria-hidden`,`true`),i.textContent=e.value.slice(0,t),a.textContent=e.value.slice(t,t+1),i.append(a,document.createTextNode(e.value.slice(t+1))),document.body.append(i);try{let t=a.getBoundingClientRect(),i=parseFloat(n.lineHeight),o=r.top+t.top-(i-t.height)/2-e.scrollTop;return{left:r.left+t.left-e.scrollLeft,top:o,bottom:o+i}}finally{i.remove()}}var dY=new Map,fY=(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 pY({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,U.useState)(n),[m,h]=(0,U.useState)((t?dY.get(t):void 0)??dY.get(e)??n?.draft??``),g=(0,U.useRef)(!1),[_,v]=(0,U.useState)(!1),[y,b]=(0,U.useState)(!1),x=(0,U.useRef)(void 0),[S,C]=(0,U.useState)(!1),[w,T]=(0,U.useState)(),[E,D]=(0,U.useState)(),O=(0,U.useRef)(!1),k=E?.query??w?.query,[A,j]=(0,U.useState)(),M=(0,U.useRef)(void 0),N=()=>{M.current||window.yogurt.conversations.targets(``).then(e=>{M.current=e}).catch(()=>{})},[P,F]=(0,U.useState)(!1),[I,L]=(0,U.useState)(!1),R=f?IG(f.chips,f.draftChips):[],ee=e=>R.some(t=>t.kind===e.kind&&t.id===e.id),z=(A?.items??[]).filter(e=>k?!0:!ee(e)),te=z.filter(e=>e.kind===`meeting`),ne=z.filter(e=>e.kind===`folder`),re=ne.slice(0,A?.query?4:2),ie=te.slice(0,A?.query?10-re.length:ne.length?3:5),B=[...te,...ne],ae=P?B:[...ie,...re],oe=B.length-ae.length,V=E&&!k?R.slice(0,I?void 0:3):[],se=E&&!k?R.length-V.length:0,ce=E&&!k?V.length+ +!!se:0,le=ce+ae.length+ +!!oe,[ue,de]=(0,U.useState)(0),fe=(0,U.useRef)(null),pe=(0,U.useRef)(null),me=(0,U.useRef)(void 0),he=a||!!f||!!_;(0,U.useEffect)(()=>{if(he&&pe.current)return me.current=cY(pe.current),()=>{me.current?.dispose(),me.current=void 0}},[he]),(0,U.useEffect)(()=>{me.current?.update()},[m]);let ge=(0,U.useRef)(null),_e=(0,U.useRef)(null),ve=(0,U.useRef)({start:0,end:0}),ye=`conversation/${e}`,be=Vv(ye,!!f),xe=(0,U.useRef)(null),Se=tY(be,xe,!!f,zv(ye)===void 0),Ce=a?`chat`:`chat-page`;(0,U.useEffect)(()=>{if(!e)return;let r=!0,i=0;v(!1);let a=t?dY.get(t):void 0;a!==void 0&&(g.current=!0,dY.set(e,a),dY.delete(t),window.yogurt.conversations.draft(e,a).then(()=>{dY.get(e)===a&&dY.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(dY.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,U.useEffect)(()=>{let e=!0;if(k===void 0)j(void 0),de(0),F(!1);else return window.yogurt.conversations.targets(k).then(t=>{e&&(k||(M.current=t),j({query:k,items:t}),de(0),F(!1))}).catch(()=>{e&&v(!0)}),()=>{e=!1}},[k,!!E,f?.chips,f?.draftChips]);let we=R.length===1&&R[0].kind===`meeting`?R[0].id:void 0,Te=()=>{we&&window.yogurt.conversations.warm(e)};(0,U.useEffect)(Te,[e,we]),(0,U.useEffect)(()=>{document.getElementById(`${Ce}-context-${ue}`)?.scrollIntoView({block:`nearest`})},[ue,ae]),(0,U.useLayoutEffect)(()=>{let e=fe.current,t=_e.current;if(!w||!e||!t)return;let n=()=>{let n=lY(uY(e,w.start),{width:t.offsetWidth,height:Math.min(340,innerHeight/2,t.scrollHeight+t.offsetHeight-t.clientHeight)},{width:innerWidth,height:innerHeight});Object.assign(t.style,{left:`${n.left}px`,top:`${n.top}px`,maxHeight:`${n.maxHeight}px`})};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),pe.current&&r.observe(pe.current),window.addEventListener(`resize`,n),document.addEventListener(`scroll`,n,!0),()=>{r.disconnect(),window.removeEventListener(`resize`,n),document.removeEventListener(`scroll`,n,!0)}},[w,m,A,P,f]);let Ee=f?.turns??[],De=Ee.at(-1),Oe=De?.status===`waiting`||De?.status===`answering`,ke=!f||y||S||Oe,Ae=(f?f.firstChips===null:i||a)&&!Ee.length,je=i||!a&&Ae,Me=n=>{g.current=!0,h(n),(e||t)&&dY.set(e||t,n),e&&window.yogurt.conversations.draft(e,n).then(()=>{dY.get(e)===n&&dY.delete(e)}).catch(()=>v(!0))},Ne=(e,t)=>{let n=e.slice(0,t)!==m.slice(0,t);n&&e[t-1]===`@`&&(O.current=!1),n&&e[t-1]===` `&&w&&A?.query===w.query&&!ae.length&&(O.current=!0),T(O.current?void 0:RG(e,t))},Pe=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)}},Fe=e=>{(w||E)&&!ke&&f&&(ee(e)?Promise.resolve():Pe(IG(f.firstChips===null?R:f.draftChips,[e]))).then(()=>{w&&Me(m.slice(0,w.start)+m.slice(w.end)),w&&(T(void 0),requestAnimationFrame(()=>{fe.current?.focus(),fe.current?.setSelectionRange(w.start,w.start)}))}).catch(()=>{})},Ie=async t=>{if(!ke){C(!0),v(!1);try{for(let n of t)await window.yogurt.conversations.removeContext(e,n)}catch{v(!0)}finally{C(!1)}}},Le=e=>{E&&ee(e)?Ie([e]):Fe(e)},Re=()=>(fe.current?.focus({preventScroll:!0}),fe.current?.setSelectionRange(ve.current.start,ve.current.end),!1),ze=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&fe.current?.focus({preventScroll:!0})},Be=t=>{window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);h(``),dY.delete(e),i&&s(t)}).catch(()=>{Me(t),v(!0)}).finally(()=>b(!1))},Ve=e=>{!e.trim()||y||S||Oe||r||!f&&(!a||_)||(ze(),Se.resume(),b(!0),v(!1),T(void 0),D(void 0),f?Be(e):x.current=e)};(0,U.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,Be(e)},[f,r]);let He=()=>{de(ce+B.findIndex(e=>!ae.includes(e))),F(!0)},Ue=e=>{if(!e.nativeEvent.isComposing){if((w||E)&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`)O.current=!0,T(void 0),D(void 0);else if(e.key===`Enter`){let e=ue<V.length?V[ue]:se&&ue===ce-1?`scope-more`:oe&&ue===ce+ae.length?`more`:ae[ue-ce];e===`scope-more`?L(!0):e===`more`?He():e&&(Le(e),E&&D(void 0))}else de(t=>(t+(e.key===`ArrowDown`?1:-1)+le)%(le||1))}else e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),Ve(m))}},We=()=>{f&&!S&&window.yogurt.conversations.current(IG(f.chips,f.draftChips),!0).then(s).catch(()=>v(!0))},Ge=!a&&(!!m||!!E),Ke=Ae&&(je||a)&&(!a||!m)&&(0,W.jsx)(`div`,{"data-testid":a?`chat-suggestions`:`chat-starters`,"aria-hidden":Ge||void 0,"data-instant":!!E||void 0,inert:Ge,className:`ask-starters${a?``:` ask-home-starters`}`,children:fY(R,o).map(e=>(0,W.jsx)(`button`,{type:`button`,title:e,"data-testid":a?`chat-suggestion`:`chat-starter`,disabled:ke||Ge,onClick:()=>Ve(e),children:e},e))}),qe=(e,t)=>(0,W.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:ke,"aria-selected":E?ee(e):ue===t,"data-active":ue===t||void 0,id:`${Ce}-context-${t}`,onMouseDown:e=>e.preventDefault(),onClick:()=>Le(e),children:[e.kind===`meeting`?(0,W.jsx)(qf,{size:14,"aria-hidden":`true`}):(0,W.jsx)($f,{size:14,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:XJ(e)}),ee(e)?(0,W.jsx)(Cf,{size:14,"aria-hidden":`true`}):e.startedAt&&(0,W.jsx)(`small`,{children:WG(e.startedAt)})]},`${e.kind}:${e.id}`),Je=(0,W.jsxs)(W.Fragment,{children:[!!ce&&(0,W.jsx)(W.Fragment,{children:!!V.length&&(0,W.jsxs)(`div`,{role:`group`,"aria-label":G(`In this chat`),children:[(0,W.jsxs)(`h3`,{children:[G(`In this chat`),(0,W.jsx)(`button`,{type:`button`,className:`text-action ask-picker-clear`,disabled:ke,onMouseDown:e=>e.preventDefault(),onClick:()=>void Ie(R),children:G(`Clear`)})]}),V.map((e,t)=>qe(e,t)),!!se&&(0,W.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,"aria-selected":!1,"data-active":ue===ce-1||void 0,id:`${Ce}-context-${ce-1}`,onMouseDown:e=>e.preventDefault(),onClick:()=>L(!0),children:[(0,W.jsx)(Vf,{size:14,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:G(`{count} more`,{count:se})})]})]})}),[`meeting`,`folder`].map(e=>ae.some(t=>t.kind===e)&&(0,W.jsxs)(`div`,{role:`group`,"aria-label":G(e===`meeting`?`Meetings`:`Folders`),children:[(0,W.jsx)(`h3`,{children:G(e===`meeting`?`Meetings`:`Folders`)}),ae.map((t,n)=>t.kind===e&&qe(t,ce+n))]},e)),!!oe&&(0,W.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:ke,className:`text-muted`,"aria-selected":!E&&ue===ce+ae.length,"data-active":ue===ce+ae.length||void 0,id:`${Ce}-context-${ce+ae.length}`,onMouseDown:e=>e.preventDefault(),onClick:He,children:[(0,W.jsx)(Vf,{size:14,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:G(`{count} more results`,{count:oe})})]}),!A&&!_&&(0,W.jsx)(`p`,{role:`status`,children:G(`Loading…`)}),A&&!ae.length&&!ce&&(0,W.jsx)(`p`,{children:G(`Nothing found for “{query}”.`,{query:A.query})})]});return(0,W.jsxs)(`div`,{"data-testid":je?`chat-empty`:void 0,"aria-busy":De?.status===`answering`,className:`ask-conversation${je?` ask-landing`:``}`,children:[je?(0,W.jsx)(`h1`,{className:`ask-home-title`,children:G(`Ask about your meetings`)}):(0,W.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,W.jsx)(`h2`,{id:a?`meeting-chat-title`:void 0,title:[f?.title||G(`New chat`),...f?.chips.map(XJ)??[]].join(`
-`),children:f?.title||G(`New chat`)}),(0,W.jsxs)(`div`,{className:`ask-header-actions`,children:[f&&(0,W.jsx)(JJ,{id:e,title:f.title,onNew:We,onDeleted:l}),d&&(0,W.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`ghost-btn workspace-icon`,onClick:d,"aria-label":G(`Open in Ask`),title:G(`Open in Ask`),children:(0,W.jsx)(Dp,{size:15,"aria-hidden":`true`})}),u&&(0,W.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`ghost-btn workspace-icon`,onClick:u,"aria-label":G(`Close`),title:G(`Close`),children:(0,W.jsx)(hm,{size:16,"aria-hidden":`true`})})]})]}),(0,W.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,W.jsx)(wv,{children:(0,W.jsx)(`div`,{className:`ask-thread${a?` chat-history`:``}${Ae?` ask-thread-empty`:``}`,ref:be,children:(0,W.jsx)(`div`,{ref:xe,className:`ask-thread-content`,children:(0,W.jsxs)(cK,{pending:!f&&!_,skeleton:(0,W.jsx)(Ev,{layout:`chat`,testId:`chat-thread-loading`}),children:[!je&&Ee.map(e=>(0,W.jsx)(mY,{showCopy:e===De,turn:e,chat:f,panel:a,onSource:c,onRetry:()=>Ve(e.question)},e.id)),a&&Ke]})})})}),Se.behind&&(0,W.jsx)(`button`,{className:`workspace-button workspace-icon chat-latest`,"data-testid":`chat-latest`,"aria-label":G(`Back to latest`),onClick:Se.latest,children:(0,W.jsx)(af,{size:15})})]}),(0,W.jsxs)(`div`,{className:`ask-composer${a?` chat-composer`:``}`,children:[_&&(0,W.jsx)(`p`,{"data-testid":a?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:G(`Couldn't save your changes`)}),(0,W.jsx)(cK,{pending:!a&&!f&&!_,onReady:()=>{f&&fe.current?.focus({preventScroll:!0})},testId:je?`chat-loading`:void 0,children:(0,W.jsxs)(`form`,{ref:pe,className:`ask-box`,"data-busy":ke||void 0,"data-testid":`${Ce}-box`,onSubmit:e=>{e.preventDefault(),Ve(m)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(void 0)},children:[(0,W.jsxs)(`div`,{className:`ask-field`,children:[(0,W.jsx)(`textarea`,{autoFocus:a,ref:fe,id:a?`meeting-question`:`library-question`,"data-testid":`${Ce}-input`,rows:1,maxLength:4e3,placeholder:je?void 0: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?`${Ce}-contexts`:void 0,"aria-activedescendant":w&&ue<le?`${Ce}-context-${ue}`:void 0,onChange:e=>{Me(e.target.value),Ne(e.target.value,e.target.selectionStart)},onClick:e=>Ne(e.currentTarget.value,e.currentTarget.selectionStart),onSelect:e=>Ne(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:Te,onKeyDown:Ue}),(0,W.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,W.jsxs)(xW,{open:!!E,onOpenChange:e=>{T(void 0),j(e&&M.current?{query:``,items:M.current}:void 0),de(0),F(!1),L(!1),e||requestAnimationFrame(()=>{let e=document.activeElement;(!e||e===document.body||e.closest(`.ask-scope, .ask-selector`))&&fe.current?.focus({preventScroll:!0})}),e&&(ve.current={start:fe.current?.selectionStart??m.length,end:fe.current?.selectionEnd??m.length}),D(e?{query:``}:void 0)},children:[(0,W.jsxs)(`span`,{className:`ask-scope-group`,children:[(0,W.jsx)(LW,{type:`button`,className:`ask-scope`,"data-testid":`ask-scope`,onPointerEnter:N,onFocus:N,disabled:ke,"aria-label":G(`Choose meetings or folders`),title:G(`Choose meetings or folders`),children:(0,W.jsx)(QJ,{chips:R})}),!!R.length&&(0,W.jsx)(`button`,{type:`button`,className:`ask-scope-clear`,"data-testid":`ask-scope-clear`,disabled:ke,"aria-label":G(`Clear`),title:G(`Clear`),onClick:()=>{Ie(R),fe.current?.focus({preventScroll:!0})},children:(0,W.jsx)(hm,{size:12,"aria-hidden":`true`})})]}),(0,W.jsx)(BW,{container:fe.current?.closest(`dialog`)??void 0,children:(0,W.jsx)(EG,{anchor:pe,side:je?`bottom`:`top`,align:`start`,collisionAvoidance:{fallbackAxisSide:`none`},sideOffset:6,collisionPadding:16,positionMethod:`fixed`,className:`ask-selector-positioner`,children:(0,W.jsxs)(MG,{className:`ask-picker ask-selector`,"aria-label":G(`Choose meetings or folders`),initialFocus:ge,finalFocus:Re,children:[(0,W.jsx)(`input`,{ref:ge,className:`ask-picker-search`,placeholder:G(`Search…`),"aria-label":G(`Search meetings and folders`),role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!E,"aria-controls":`${Ce}-contexts`,"aria-activedescendant":ue<le?`${Ce}-context-${ue}`:void 0,value:E?.query??``,maxLength:200,readOnly:S,onChange:e=>D(t=>t&&{...t,query:e.target.value}),onKeyDown:Ue}),(0,W.jsx)(`div`,{className:`ask-picker-results`,id:`${Ce}-contexts`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":G(`Add context`),children:Je})]})})})]}),Oe?(0,W.jsx)(`button`,{type:`button`,"data-testid":`${Ce}-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:()=>{ze(),window.yogurt.conversations.stop(e)},children:(0,W.jsx)(Zp,{size:10,fill:`currentColor`})}):(0,W.jsxs)(`button`,{type:`submit`,"data-testid":`${Ce}-send`,className:`ask-toolbar-button ask-send`,disabled:ke||!m.trim(),"aria-label":G(`Ask`),children:[(0,W.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,W.jsx)(lf,{size:16})]})]})]}),w&&(0,gh.createPortal)((0,W.jsx)(`div`,{ref:_e,className:`ask-picker ask-mention`,id:`${Ce}-contexts`,role:`listbox`,"aria-label":G(`Add context`),children:Je}),fe.current?.closest(`dialog`)??document.body)]})})]}),!a&&Ke,(0,W.jsx)(`p`,{"data-testid":`${Ce}-announce`,className:`sr-only`,"aria-live":`polite`,children:De?.status===`done`?De.answer:``})]})}function mY({turn:e,chat:t,panel:n,showCopy:r,onSource:i,onRetry:a}){let o=e.status===`answering`,s=QG(e.answer,o),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=n?`chat`:`chat-page`;return(0,U.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),1800);return()=>clearTimeout(e)},[c]),(0,W.jsxs)(`div`,{"data-testid":`${f}-turn`,"data-status":e.status,"data-show-copy":r||void 0,className:`ask-turn`,children:[(0,W.jsx)(`p`,{className:`ask-question`,"data-testid":`${f}-question`,children:e.question}),(e.status===`waiting`||o&&!s)&&(t.waitsForModel&&e.status===`waiting`?(0,W.jsx)(pK,{downloading:e=>(0,W.jsxs)(`p`,{role:`status`,className:`text-sm text-muted`,children:[G(`Your question is waiting for Yogurt's AI to download.`),` `,(0,W.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,W.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:G(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,W.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?G(`Yogurt will answer once the meeting ends.`):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(hK,{}),(0,W.jsx)(hY,{step:e.status===`waiting`?void 0:e.step})]})})),s&&(0,W.jsx)(`div`,{"data-testid":`${f}-answer`,dir:`auto`,"data-streaming":o||void 0,className:`note-prose chat-answer${o?` stream-caret`:``}`,children:(0,W.jsx)(iK,{md:s,live:o,sources:e.sources,onSource:i})}),s&&!o&&(0,W.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,W.jsxs)(`button`,{className:`ghost-btn chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":G(c?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{l(!0),d(!1)}).catch(()=>d(!0))},children:[(0,W.jsx)(nY,{show:c?`done`:`copy`,options:{copy:(0,W.jsx)(Vd,{size:13}),done:(0,W.jsx)(Cf,{size:13})}}),(0,W.jsx)(rY,{text:G(c?`Copied`:`Copy`),widest:G(`Copied`)})]}),e.scope&&(0,W.jsx)($J,{chips:e.scope}),(0,W.jsx)(`span`,{role:`status`,className:u?`text-danger`:`sr-only`,children:u?G(`Yogurt couldn't copy.`):c?G(`Copied`):``})]}),e.status===`stopped`&&(0,W.jsx)(`p`,{className:`text-xs text-muted`,children:G(s?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,W.jsxs)(`p`,{role:`alert`,children:[G(`Yogurt couldn't answer that.`),` `,(0,W.jsx)(`button`,{className:`ghost-btn`,onClick:a,children:G(`Try again`)})]})]})}function hY({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),zG);return()=>clearInterval(e)},[r]);let i=BG(e,t);return(0,W.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var gY=`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`,_Y=`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 vY({size:e=28,className:t=`text-accent`}){return(0,W.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,W.jsx)(`path`,{fill:`currentColor`,d:gY})})}function yY({height:e=32}){return(0,W.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,W.jsx)(`path`,{style:{fill:`color-mix(in srgb, var(--primary), var(--accent))`},transform:`translate(0 5) scale(.65)`,d:gY}),(0,W.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:_Y})]})}var bY=[{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})),xY=[.8,2.65,4.05],SY=[2.35,3.8,5.95];function CY(e){let t=bY.map((t,n)=>({...t,hidden:e<SY[n]})),n=xY.findIndex((t,n)=>e>=t&&e<SY[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=bY[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-xY[n])/(SY[n]-xY[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 wY=[`## 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.`],TY=wY.join(`
-`),EY=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function DY(e){return wY.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-EY[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
-`)}var OY=()=>{},kY=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&Ce(bY,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&Se({question:_,answer:v+`[1]`,status:kY?`waiting`:`done`});function AY(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 jY(){let[e,t]=(0,U.useState)(kY?0:99),n=M===`summary`&&e<1.5,[r,i]=(0,U.useState)(null),[a,o]=(0,U.useState)(0);return(0,U.useEffect)(()=>{let e=!1,n=[],r=``,a=null,s=e=>{if(e.source!==parent||e.origin!==location.origin)return;if(e.data?.type===`yogurt-fragment-playing`){document.documentElement.dataset.paused=String(!e.data.playing);return}if(e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let i=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(i),M===`ask`&&document.documentElement.style.setProperty(`--reply-opacity`,i>=2.05?`1`:`0`),M===`transcript`){let e=CY(i),t=JSON.stringify(e);t!==r&&(r=t,Ce(e.lines,e.partial))}for(let{element:e,start:t,duration:r}of n){let n=Math.max(0,Math.min(1,(i-t)/r));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=i>=2.05&&i<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(i<20)};window.addEventListener(`message`,s);let c=()=>{if(e||a?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&i(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`&&kY&&!a){a=document.querySelector(`[data-testid=transcript]`);let t=[...a.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${a.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),Ce([],{track:`them`,startMs:0,text:``,words:[]}),e=!1,o(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=AY(document.querySelector(`.marketing-fragment`)),kY)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,W.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,W.jsx)(iy,{id:E.id,recording:!0,inline:!0},a),M===`summary`&&(0,W.jsxs)(`div`,{className:`fragment-plan`,"data-waiting":n,children:[n&&(0,W.jsxs)(`div`,{className:`summary-cue`,children:[(0,W.jsx)(`span`,{children:`Summarizing…`}),(0,W.jsx)(ay,{})]}),(0,W.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,W.jsx)(oz,{markdown:TY,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,W.jsx)(`div`,{className:`fragment-plan-live`,children:(0,W.jsx)(oz,{markdown:DY(Math.max(0,e-.75)),streaming:kY&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(pY,{id:j.id,initial:j,panel:!0,onSelect:OY,onSource:OY,onDeleted:OY}),r&&(0,gh.createPortal)((0,W.jsxs)(`div`,{className:`fragment-byline`,children:[(0,W.jsx)(vY,{size:20}),(0,W.jsx)(`span`,{children:`Yogurt`})]}),r)]})]})}var MY=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}}}})),NY=o(((e,t)=>{t.exports=MY()})),PY=o((e=>{var t=NY(),n=Te(),r=hh();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`),ee=Symbol.for(`react.legacy_hidden`),z=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.for(`react.view_transition`),ne=Symbol.for(`react.recoverable`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var B=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===B?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 te: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?ae(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,V=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function fe(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function pe(e,t){ue++,le[ue]=e.current,e.current=t}var me=de(null),he=de(null),ge=de(null),_e=de(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=yp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){var t=e.memoizedState;t!==null&&(mh._currentValue=t.memoizedState,pe(_e,e)),t=me.current;var n=yp(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(he)),_e.current===e&&(fe(_e),mh._currentValue=ce)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
+`).filter(e=>e.trim()).map(t=>({text:t,track:`them`,speaker:null,startMs:e.atMs})):[],d=Math.max(0,pt(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`?BG(i,a):[],lines:u.map((t,n)=>{let r=Ot(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:Dt[r]}}),matchedLine:d}}function HG({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,U.useId)().replace(/:/g,``),o=(0,U.useRef)(null),s=VG(e,t),c=Mf(),l=n?document.getElementById(n):null,u=e.title||W(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(xt(),{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},Af.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,G.jsx)(EW,{container:l?.closest(`dialog`)??void 0,children:(0,G.jsx)(fG,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,G.jsxs)(vG,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,G.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,G.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,G.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,G.jsx)(`div`,{className:`citation-mass`})}),(0,G.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{className:`citation-content`,children:[(0,G.jsxs)(`div`,{className:`citation-heading`,children:[(0,G.jsx)(yG,{className:`citation-title`,title:u,children:u}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,G.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(xt(),{month:`short`,day:`numeric`})})]}),s.match.text&&(0,G.jsx)(`blockquote`,{className:`citation-quote`,"data-testid":`citation-excerpt`,dir:`auto`,children:(0,G.jsxs)(`q`,{children:[s.before.text&&(0,G.jsxs)(`span`,{className:`citation-context`,children:[s.before.text,` `]}),(0,G.jsx)(`span`,{className:`citation-match`,children:s.match.text}),s.after.text&&(0,G.jsxs)(`span`,{className:`citation-context`,children:[` `,s.after.text]})]})}),(0,G.jsx)(`div`,{className:`citation-footer`,children:(0,G.jsxs)(`button`,{className:`ghost-btn`,"data-testid":`citation-open`,"aria-label":W(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[W(`Open`),(0,G.jsx)(iee,{size:12,"aria-hidden":`true`})]})})]})]})})})}function UG({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,G.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,G.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,G.jsx)(`code`,{children:n}));return n}function WG({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)(null),d=(0,U.useRef)(null),f=(0,U.useRef)(null),p=(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]);(0,U.useLayoutEffect)(()=>{s&&!document.getElementById(s)&&(u(null),a?f.current?.close():(f.current?.unmount(),c(null)))},[p,a,s]);let m={live:t,at:{n:0},id:i,sources:n,pinned:l,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(null),c(e.id),o(!0)))},blur:()=>{d.current=null},dismiss:e=>!a||s!==e.id?!1:(u(null),o(!1),!0)};return(0,G.jsx)(sW,{actionsRef:f,open:a,triggerId:s,onOpenChange:(e,t)=>{let n=s?document.getElementById(s):null,r=document.getElementById(n?.getAttribute(`aria-controls`)??``),i=a&&(n===document.activeElement||!!r?.contains(document.activeElement));if(t.reason===`trigger-hover`&&(l||i&&(!e||t.trigger?.id!==s)))t.cancel();else if(!e&&t.reason===`focus-out`&&(l||n?.matches(`:hover`)||r?.matches(`:hover`)))t.cancel();else{if(t.reason===`trigger-press`){let n=l!==t.trigger?.id;e!==n&&t.cancel(),u(n?t.trigger?.id??s:null),e=n}else e||u(null);t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&c(t.trigger?.id??s),o(e)}},children:({payload:e})=>(m.at.n=0,(0,G.jsxs)(G.Fragment,{children:[(p.content??[]).map(e=>GG(e,m)),e&&(0,G.jsx)(HG,{source:e.source,sentence:e.sentence,triggerId:s,animate:!0,onOpen:t=>{u(null),o(!1),r(e.source,t)}},s)]}))})}function GG(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),e.attrs.marks.length?(0,G.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`),s=`${t.id}-${n}-${r.source}`;return(0,G.jsx)(CW,{id:s,payload:e.attrs.payloads[i],openOnHover:!0,delay:120,closeDelay:180,"aria-pressed":t.pinned===s,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${o} · ${AG(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:(0,G.jsx)(`span`,{className:`source-name`,children:o})},r.source)})},n):null;if(e.type===`citationAnchor`)return(0,G.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>GG(e,t))},n);if(e.type===`text`){let r=e.text??``,i=KG(r,t.at.n,t.live);return t.at.n+=r.length,(0,G.jsx)(UG,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>GG(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,G.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,G.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,G.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,G.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,G.jsx)(`p`,{children:r},n):null;default:return(0,G.jsx)(U.Fragment,{children:r},n)}}function KG(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,G.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function qG(e,t){return function({size:n=16,...r}){return(0,G.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 JG=qG(`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`}]]),YG=qG(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),XG=qG(`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`}]]),ZG=qG(`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`}]]),QG=qG(`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`}]]),$G=qG(`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`}]]),eK=qG(`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`}]]),tK=qG(`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`}]]),nK=qG(`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`}]]),rK=qG(`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`}]]),iK=qG(`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 aK(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:aK(t.props.children))})}function oK({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=cv(e),s=(0,U.useRef)(void 0);e&&(s.current=n??aK(t));let c=o===`waiting`||o===`skeleton`,l=(0,U.useRef)(a);return l.current=a,(0,U.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,G.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,G.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,children:W(`Loading…`)}),(0,G.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,G.jsx)(`div`,{className:`loading-result`,children:t})]})}var sK=e=>new Intl.NumberFormat(xt(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100),cK=e=>!e.notesDownloading&&!e.notesError&&!!(e.notesUpgradePending||e.notesUpgradeDownloading||e.notesUpgradeError),lK=e=>!!e&&!!(e.notesDownloading||e.notesError||cK(e));function uK(e){let t=e.notesRestoreFraction!==void 0,n=cK(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=W(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(xt(),{minimumFractionDigits:1,maximumFractionDigits:1}),c=W(`{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(xt()).format(Math.max(1,Math.round(a/60))):void 0;return{progress:c,eta:l?W(`about {minutes} min left`,{minutes:l}):``,detail:l?W(`{progress} · about {minutes} min left`,{progress:c,minutes:l}):c}}function dK({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,G.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,G.jsx)(`p`,{className:`font-medium text-ink`,children:W(`The notes model couldn't download.`)}),(0,G.jsx)(`p`,{children:n.notesError}),(0,G.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`text-action`,children:W(i?`Retrying…`:`Retry download`)}),o&&(0,G.jsx)(`p`,{className:`text-danger`,children:W(`Yogurt couldn't restart the download.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(sK(n.notesFraction??0)):e}function fK(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 pK(){let e=(0,U.useRef)(null),t=Mf();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]=fK((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,G.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}):(0,G.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var mK=U.createContext(void 0);function hK(e){let t=U.useContext(mK);if(t===void 0&&!e)throw Error(DH(33));return t}var gK=U.createContext(void 0);function _K(e){let t=U.useContext(gK);if(t===void 0&&!e)throw Error(DH(36));return t}var vK=U.createContext(void 0);function yK(e=!0){let t=U.useContext(vK);if(t===void 0&&!e)throw Error(DH(25));return t}var bK=U.createContext(null);function xK(e=`root`){let t=U.useContext(bK),n=U.useContext(gK);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var SK={visible:!0,ref:null};function CK(){return SK}function wK(e,t,n=`root`){let r=xK(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??CK)({label:e.label,children:e.children,render:e.render}),a=sB(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function TK(e){e.preventDefault()}function EK(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=_K(),u=yK(!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?TK: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:tae})},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&&!yz&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&pW(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var DK={type:`regular-item`};function OK(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}=mW({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=EK({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=U.useCallback(e=>bV(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=sB(u,f);return U.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var kK=U.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function AK(){return U.useContext(kK)}function jK(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=AK(),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 Y(()=>{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 MK=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}=_K(),f=jK({guess:!0,label:a}),p=_W(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}=OK({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:DK});return NV(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),NK=U.forwardRef(function(e,t){let n=wK(e,t);return n.visible?(0,G.jsx)(MK,{...e,ref:n.ref}):null}),PK=U.createContext(void 0);function FK(){return U.useContext(PK)}function IK(e,t){let n=LV(e.render);if(U.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function LK(e,t,n){let r=IK(e,t),i=r===t?void 0:r;return[r,U.useCallback(e=>n?.(e?i:void 0),[i,n])]}function RK(e,t,n){let r=LV(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 zK=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}=_K(),m=FK(),{side:h,align:g}=hK(),_=hG(!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]=LK(e,u,d),L=RK(e,C,N),R=w.type===`menu`?m:void 0,ee=w.type===`context-menu`,z=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(z=()=>l.state.activeIndex===null&&P),FH({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),U.useEffect(()=>{function e(e){l.setOpen(!1,Yz(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),CU(D,{enabled:A&&!j&&!ee&&w.type!==`menubar`,closeDelay:k});let te=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:ne,handleFocus:re}=(U.useContext(bK)?.useParentHandoff??VK)(l,w,v,f),ie=NV(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,te,I],stateAttributesMapping:Rz,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&pG.has(e.key)&&e.stopPropagation()},onFocus:re},ZW(y),c,{"data-rootownerid":E}]}),B=w.type===void 0||ee;(C||w.type===`menubar`&&T!==`outside-press`)&&(B=!0);let V=R?.getReturnElement??ne;return(0,G.jsx)(vH,{context:D,openInteractionType:M,modal:ee,disabled:!x,returnFocus:a??V??B,explicitReturnFocus:a===void 0&&V?!1:void 0,initialFocus:z,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:ie})}),BK={parentVirtualFocusRef:void 0,handleFocus:void 0};function VK(){return BK}var HK=U.forwardRef(function(e,t){let n=xK()?.Popup??zK;return(0,G.jsx)(n,{...e,ref:t})}),UK=U.createContext(void 0);function WK(){let e=U.useContext(UK);if(e===void 0)throw Error(DH(32));return e}var GK=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=_K();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,G.jsx)(UK.Provider,{value:n,children:(0,G.jsx)($V,{ref:t,...r,portalOwnerRole:o})})});function KK(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=pB(i),[,o]=U.useState(0),s=nz(JK).current,c=nz(qK).current,l=U.useRef(0),u=U.useRef(!0),d=U.useRef(null),f=U.useRef(null),p=pB(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=pB((e,t)=>{c.set(e,t),p()}),h=pB(e=>{c.delete(e),p()}),g=pB(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(!ZK(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&QK(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=XK(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=pB(()=>{let[e,t]=YK(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))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&v()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=pB(e=>(s.add(e),()=>{s.delete(e)})),b=U.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,G.jsx)(kK.Provider,{value:b,children:t})}function qK(){return new Map}function JK(){return new Set}function YK(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)=>QK(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 XK(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function ZK(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 QK(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var $K=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=KV,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=_K(),x=WK(),S=yK(!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`),ee=n,z=c,te=l,ne=s,re=h;C.type===`context-menu`&&(ee=n??C.context?.anchor,ne??=`start`,!o&&ne!==`center`&&(te=e.alignOffset??2,z=e.sideOffset??-5));let ie=o,B=ne;C.type===`menu`?(ie??=`inline-end`,B??=`start`,re=e.collisionAvoidance??qV):C.type===`menubar`&&(ie??=C.context.orientation===`vertical`?`inline-end`:`bottom`,B??=`start`);let V=C.type===`context-menu`,ae=KW({anchor:ee,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:ie,sideOffset:z,align:B,alignOffset:te,arrowPadding:V?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:re,shift:V?{crossAxis:!(`side`in re&&re.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,Yz(rB)))}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,Yz(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let H=pz();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,Yz(rB))}):v.setOpen(!1,Yz(rB))}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]),XW({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;dG(D&&(se||O&&F!==`trigger-hover`),k===`touch`,M,A);let ce=QW(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,G.jsxs)(mK.Provider,{value:ae,children:[le&&(0,G.jsx)(YW,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:DW(!D),cutout:ue}),(0,G.jsx)(sH,{id:I,children:(0,G.jsx)(KK,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:ce})})]})}),eq=U.createContext(null);function tq(e){let t=U.useContext(eq);if(t===null&&!e)throw Error(DH(5));return t}function nq(e){return e==null?Xz:e.type.startsWith(`key`)?nB:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?iae:Xz}var rq={...pU,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=pU.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>bz&&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`&&!pU.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`)}},iq=class extends iU{constructor(e,t,n=!1){let r=new ZH,i=oq(r,t,n,e);super(i,aq(r),rq),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 aq(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 oq(e,t,n=!1,r){return{...sU(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:lz,inputProps:lz,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new tH,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:lz,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var sq=U.createContext(null);function cq(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function lq(e,t){return e===`list-navigation`||cq(e,t)}var uq=az(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=yK(!0),C=_K(!0),w=tq(!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=_W(),k=_W(),[A,j]=U.useState(void 0),M=(A??k)||void 0,N=iH(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=nz(()=>F?P?.state.instantType:void 0).current,L=nz(()=>{let e=new iq({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`),ee=oH(R),z=L.useState(`open`),te=L.useState(`activeTriggerElement`),ne=L.useState(`positionerElement`),re=L.useState(`hoverEnabled`),ie=L.useState(`disabled`),B=L.useState(`lastOpenChangeReason`),V=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(V.type!==`context-menu`),ue=pz(),de=U.useRef(!0),fe=pz(),pe=se!=null,{openMethod:me,triggerProps:he}=SW(z);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:V.type===void 0?c:void 0,openMethod:me,rootId:O}),qH(L);let{forceUnmount:ge,transitionStatus:_e}=JH(z,L,()=>{L.set(`allowMouseEnter`,!1)},F),ve=PH(L.context.popupRef);U.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!z){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,z,_e,ve,L]),Y(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:ee,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:ee,floatingParentNodeId:N})},[S,C,ee,N,te,L]),U.useEffect(()=>{z||(ce.current=null),V.type===`context-menu`&&(z?ue.start(500,()=>{le.current=!0}):(ue.clear(),le.current=!1))},[ue,z,V.type]),Y(()=>{!z&&!re&&L.set(`hoverEnabled`,!0)},[z,re,L]);let ye=pB((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||z===e&&t.trigger===te&&B===n)return;let i=WH(t);if(!e&&t.trigger==null&&(t.trigger=te??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=UH(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&lq(n,a),s.instantType=V.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:cq(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),be=kH({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:ye}),xe=be.context.events;Y(()=>{let e=({open:e,eventDetails:t})=>ye(e,t);return xe.on(`setOpen`,e),()=>{xe?.off(`setOpen`,e)}},[xe,ye]),Y(()=>L.subscribeToParentMenu(),[L]);let Se=U.useCallback(()=>{L.setOpen(!1,Yz(iB))},[L]);U.useImperativeHandle(d,()=>({unmount:ge,close:Se}),[ge,Se]);let Ce;V.type===`context-menu`&&(Ce=V.context),U.useImperativeHandle(Ce?.positionerRef,()=>ne,[ne]),U.useImperativeHandle(Ce?.actionsRef,()=>({setOpen:ye}),[ye]);let we=TH(be,{enabled:!ie,bubbles:{escapeKey:f&&V.type===`menu`},outsidePress(){return V.type!==`context-menu`||ce.current?.type===`contextmenu`||le.current},externalTree:pe?R:void 0}),Te=MW(),Ee=MU(be,{enabled:!ie,listRef:L.context.itemDomElements,activeIndex:ae,virtual:v,nested:V.type===`menubar`||!v&&V.type!==void 0,parentOrientation:V.type===`menubar`?V.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:cz,onNavigate(e,t){L.setActiveIndex(e,nq(t),t?.nativeEvent)},openOnArrowKeyDown:V.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=NU(be,{enabled:!ie&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:ae,resetMs:500,onMatch:(e,t)=>{z&&e!==ae&&L.setActiveIndex(e,nB,t.nativeEvent)},onTyping:De}),ke=pB(a),Ae=U.useRef(-1),je=pB(()=>{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=Xz,L.context.highlightEvent=void 0,a&&ke(t,$ie(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Y(()=>{je()},[ae,je]);let Me=U.useMemo(()=>{if(!v)return Ee.reference;if(!Ee.trigger)return lz;let{onFocus:e,...t}=Ee.trigger;return t},[v,Ee.reference,Ee.trigger]);L.useSyncedValue(`inputProps`,v?Ee.reference??lz:lz);let Ne=U.useMemo(()=>{let e=bV(Oe.reference,Me,we.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},he);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=z,e},[L,Oe.reference,Me,we.reference,he,z]),Pe=U.useMemo(()=>{let e=bV(Ee.trigger,we.trigger,he);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Ee.trigger,we.trigger,he]);nz(()=>(L.update({inactiveTriggerProps:Pe}),null)),YH(L,{floatingRootContext:be,activeTriggerProps:Ne,inactiveTriggerProps:Pe,popupProps:U.useMemo(()=>bV(LH,{onMouseMove(){L.set(`allowMouseEnter`,!0),V.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),[V.type,L,Oe.floating,Ee.floating,we.floating]),itemProps:Ee.item??lz});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,G.jsxs)(gK.Provider,{value:Fe,children:[p&&(0,G.jsx)(BH,{handle:p,store:L}),Ie]});return(V.type===void 0||V.type===`context-menu`)&&(Le=(0,G.jsx)(cH,{externalTree:R,children:Le})),Le});function dq(e){let t=U.useContext(sq);if(t===null)return(0,G.jsx)(uq,{...e});let n=t.Root;return(0,G.jsx)(sq.Provider,{value:null,children:(0,G.jsx)(n,{...t.options,...e})})}var fq=5;function pq(e,t){let n=mq(t);return e.clientX>=n.left-fq&&e.clientX<=n.right+fq&&e.clientY>=n.top-fq&&e.clientY<=n.bottom+fq}function mq(e){let t=e.getBoundingClientRect(),n=pL(e);if(xz)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 hq(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=dW(),{ref:i,index:a}=jK(e),o=n===a,s=U.useRef(null),c=sB(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 gq(e){let{render:t,className:n,style:r,state:i=lz,props:a=cz,refs:o=cz,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=hq({metadata:s});return NV(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function _q(e){if(_L(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!kL(e))return _q(ML(e))}function vq(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,vB(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:lz,[t,n,r])}var yq=oz(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=_K(!0),h=mU(d)??m?.store;if(!h)throw Error(DH(85));let g=_W(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=U.useRef(null),S=xq(),C=dW(!0),w=aH(),T=U.useMemo(()=>w??new tH,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=KH(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:oH(T),floatingParentNodeId:iH(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=mW({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=pz(),F=pB(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;Dz(N.current,t)||Dz(h.select(`positionerElement`),t)||t===N.current||t!=null&&_q(t)===h.select(`rootId`)||pq(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:aae})});U.useEffect(()=>{let e=vB(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=TU(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:VU({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=bq(y,h.select(`lastOpenChangeReason`)),ee=yH(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),z=_U(v,{enabled:!A&&I}),te=vq({open:y,enabled:O,mouseDownAction:`open`}),ne=U.useMemo(()=>bV(z.reference,ee.reference),[z.reference,ee.reference]),re=h.useState(`triggerProps`,D),ie=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:B,handleFocusTargetFocus:V}=vW(h,x),ae={disabled:A,open:y},H=[N,t,M,E,x],oe=[ne,L??lz,re,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),vB(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},ie,O?{role:`menuitem`}:{},te,p,j],se=NV(`button`,e,{enabled:!O,stateAttributesMapping:Iz,state:ae,ref:H,props:oe});return O?(0,G.jsx)(gq,{tag:`button`,render:n,className:r,style:i,state:ae,refs:H,props:oe,stateAttributesMapping:Iz}):y?(0,G.jsxs)(U.Fragment,{children:[(0,G.jsx)(xB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:B},`${g}-pre-focus-guard`),(0,G.jsx)(U.Fragment,{children:se},g),(0,G.jsx)(xB,{ref:h.context.triggerFocusTargetRef,onFocus:V},`${g}-post-focus-guard`)]}):(0,G.jsx)(U.Fragment,{children:se},g)});function bq(e,t){let n=pz(),[r,i]=U.useState(!1);return Y(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function xq(){let e=tq(!0);return U.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var 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=U.createContext(void 0);return[({value:e,children:n})=>(0,G.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 Tq=ch.transition.overlay,Eq=ch.spring.dialog,Dq=ch.transition.dismiss;ch.transition.drawerOut;var Oq=ch.transition.dialogFade,kq=ch.spring.toast;ch.transition.drawer;var Aq=ch.transition.sheet;function jq(e,t,n,r){return{enter:fh(e??n),exit:fh(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=fh(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(${ch.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:ch.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]=U.useState(!1);return U.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]=U.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=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?Uq(l):null;d?.cancel();let p=Uq(l),{duration:m,easing:h}=_h(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]),U.useCallback(e=>{n.current=e},[])}var Kq=new WeakMap;function qq(e){if(typeof e==`string`)return Qm[e];let t=Kq.get(e);return t||(t=Qm.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 U.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):U.createElement(qq(`div`),t)}var Zq=U.createContext(void 0);function Qq(e){let t=U.useContext(Zq);if(!e&&t===void 0)throw Error(DH(27));return t}var $q=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 NV(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Rz,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),eJ=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}=mW({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Yz(nae,e.nativeEvent))}return NV(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),tJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Qq(),c=_W(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),NV(`p`,e,{ref:t,props:[{id:c},o]})}),nJ=U.createContext(void 0);function rJ(){let e=U.useContext(nJ);if(e===void 0)throw Error(DH(26));return e}var iJ=`--nested-dialogs`,aJ=`data-nested-dialog-open`,oJ={...Lz,...Nz,nestedDialogOpen(e){return e?{[aJ]:``}:null}},sJ=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`);rJ(),FH({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?RH(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=NV(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...LH,hidden:!m,onKeyDown(e){pG.has(e.key)&&e.stopPropagation()},style:{[iJ]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:oJ});return(0,G.jsx)(vH,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),cJ=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,G.jsx)(nJ.Provider,{value:n,children:(0,G.jsxs)($V,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(YW,{ref:i.context.internalBackdropRef,inert:DW(!s)}),e.children]})}):null});function lJ({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=TH(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=kz(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Dz(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return lG(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Y(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Y(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),YH(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var uJ={...pU,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},dJ=class extends iU{constructor(e,t,n){let r=new ZH,i=pJ(e,r,t,n);super(i,mJ(r),uJ)}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(UH(this.state,e,t.trigger)))}};function fJ(){let e=new ZH;return new tW(Object.freeze(pJ(void 0,e)),Object.freeze(mJ(e)),uJ)}function pJ(e,t,n,r=!1){return{...sU(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 mJ(e){return{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function hJ(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=zH((e,t)=>new dJ({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`);XH(b,x),qH(b);let{forceUnmount:w}=JH(x,b);U.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Yz(iB))}),[w,b]);let T=x||S||u!=null;return(0,G.jsxs)(Zq.Provider,{value:b,children:[u&&(0,G.jsx)(BH,{handle:u,store:b}),T&&(0,G.jsx)(lJ,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var gJ=az(function(e){return hJ(`dialog`,e)}),_J=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=rJ(),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 NV(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:oJ,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),vJ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Qq(),c=_W(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),NV(`h2`,e,{ref:t,props:[{id:c},o]})}),yJ=oz(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=mU(l)??d;if(!f)throw Error(DH(79));let p=_W(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=U.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=KH(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=mW({disabled:a,native:o}),S=yH(m),C=xW(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return NV(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[VV]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:Fz})}),bJ=class extends OH{constructor(){super(fJ(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,Yz(iB)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function xJ(){return new bJ}var[SJ,CJ]=wq(`Dialog.Root`),wJ=U.createContext({keepMounted:!1});function TJ(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,G.jsx)(SJ,{value:{open:o},children:(0,G.jsx)(e,{...n,open:o,onOpenChange:s})})}}function EJ({keepMounted:e,children:t,...n}){let{open:r}=CJ();return(0,G.jsx)(ep,{children:(r||e)&&(0,G.jsx)(cJ,{...n,keepMounted:!0,children:(0,G.jsx)(wJ,{value:{keepMounted:!!e},children:(0,G.jsx)(bh,{children:t})})},`portal`)})}function DJ(e){let{open:t}=CJ(),{keepMounted:n}=U.use(wJ),r=Xf(),{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 OJ({transition:e,exitTransition:t,render:n,...r}){let{open:i}=CJ(),{keepMounted:a}=U.use(wJ),[o,s]=Yf(),{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,G.jsx)($q,{...r,render:Xq(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function kJ({from:e,transition:t,exitTransition:n,render:r,...i}){let a=wh(),o=Fq(i[`data-side`]),{enter:s,exit:c}=Nq(o,t,n),l=DJ(Rq({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,G.jsx)(sJ,{...i,render:Xq(r,l)})}var AJ=Cq({Backdrop:()=>PJ,Close:()=>LJ,Description:()=>zJ,Handle:()=>VJ,Popup:()=>FJ,Portal:()=>NJ,Root:()=>MJ,Title:()=>RJ,Trigger:()=>IJ,Viewport:()=>BJ,createHandle:()=>HJ}),jJ=TJ(gJ);function MJ(e){return(0,G.jsx)(jJ,{...e})}function NJ(e){return(0,G.jsx)(EJ,{...e})}function PJ(e){return(0,G.jsx)(OJ,{...e})}function FJ(e){return(0,G.jsx)(kJ,{...e})}var IJ=yJ,LJ=eJ,RJ=vJ,zJ=tJ,BJ=_J,VJ=bJ,HJ=xJ,UJ=(0,U.forwardRef)(function({className:e,...t},n){return(0,G.jsx)(sJ,{...t,ref:n,className:t=>`${typeof e==`function`?e(t):e??``} dialog-motion`})}),WJ=AJ.Close;function GJ({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,container:s}){let[c,l]=(0,U.useState)(!0),u=Mf(),d=(0,U.useRef)(null),f=(0,U.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),p=(0,U.useRef)(r);return p.current=r,(0,U.useEffect)(()=>{if(c)return;let e=setTimeout(()=>p.current(),u?kf.micro:kf.base);return()=>clearTimeout(e)},[c,u]),(0,G.jsx)(AJ.Root,{open:c,onOpenChange:(e,t)=>{!e&&i?t.cancel():l(e)},children:(0,G.jsxs)(AJ.Portal,{keepMounted:!0,container:s,children:[(0,G.jsx)(AJ.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{ease:kf.out,duration:(u?kf.micro:kf.surface)/1e3},exitTransition:{ease:kf.out,duration:(u?kf.micro:kf.base)/1e3}}),(0,G.jsxs)(UJ,{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,G.jsxs)(`div`,{className:`modal-copy`,children:[(0,G.jsx)(AJ.Title,{children:e}),t&&(0,G.jsx)(AJ.Description,{children:t})]}),n]})]})})}function KJ({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(),u(e),i?.(e)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(dq,{modal:!1,children:[(0,G.jsx)(yq,{ref:c,"data-testid":`chat-menu`,className:`ghost-btn workspace-icon ask-menu-trigger ${a}`,"aria-label":W(`More`),title:W(`More`),children:(0,G.jsx)(Lg,{size:17,"aria-hidden":`true`})}),(0,G.jsx)(GK,{container:s,children:(0,G.jsx)($K,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,G.jsxs)(HK,{className:`menu-entry ask-actions-menu`,"aria-label":W(`More`),finalFocus:!l&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,G.jsxs)(NK,{"data-testid":`chat-rename`,onClick:()=>d(`rename`),children:[(0,G.jsx)(F_,{size:14,"aria-hidden":`true`}),W(`Rename`)]}),n&&(0,G.jsxs)(NK,{"data-testid":`chat-new`,onClick:n,children:[(0,G.jsx)(z_,{size:14,"aria-hidden":`true`}),W(`New chat`)]}),(0,G.jsxs)(NK,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>d(`delete`),children:[(0,G.jsx)(Z_,{size:14,"aria-hidden":`true`}),W(`Delete`)]})]})})})]}),l&&!i&&(0,G.jsx)(qJ,{id:e,title:t,kind:l,container:s.current??void 0,onClose:()=>{u(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function qJ({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,G.jsx)(GJ,{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`?Tv({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,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,G.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,G.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`chat-rename-input`,"aria-label":W(`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,G.jsx)(`p`,{className:`chat-error`,role:`alert`,children:W(`Couldn't save your changes`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.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:W(n===`delete`?`Delete`:`Save`)}),(0,G.jsx)(WJ,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`workspace-button`,disabled:c,children:W(`Cancel`)})]})]})})}var JJ=e=>e.title.trim()||(e.kind===`meeting`?W(`Untitled meeting`):W(`Folder`)),YJ=e=>({name:e.length?JJ(e[0]):W(`All meetings`),others:e.length>1?W(`and {count} others`,{count:e.length-1}):``});function XJ({chips:e}){let t=YJ(e),n=e[0]?.kind===`folder`?Yg:Ug;return(0,G.jsxs)(G.Fragment,{children:[!!e.length&&(0,G.jsx)(n,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]}),(0,G.jsx)(xg,{size:12,"aria-hidden":`true`})]})}function ZJ({chips:e}){let t=YJ(e);return(0,G.jsx)(`span`,{className:`chat-answer-scope`,title:e.length?e.map(JJ).join(`
+`):t.name,children:e.length?hee(`Searched {name}`,{name:(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]})}):W(`Searched all meetings`)})}function QJ(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||e.scrollHeight<=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||e.scrollHeight<=e.clientHeight||(o(),i=Nf(e,()=>{a=e.scrollTop,s()}),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 $J(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=QJ(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 eY({show:e,options:t,className:n}){return(0,G.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,G.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function tY({text:e,widest:t}){let n=(0,U.useRef)(!1),r=(0,U.useRef)(null),[i,a]=(0,U.useState)();return(0,U.useEffect)(()=>{n.current=!0},[]),(0,U.useLayoutEffect)(()=>{let e=r.current;if(t!=null||!e)return;let n=()=>a(e.getBoundingClientRect().width);n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[e,t]),(0,G.jsx)(`span`,{className:`swap-text`,"data-widest":t,"data-resize":t==null||void 0,style:t==null&&i!=null?{width:i}:void 0,children:(0,G.jsx)(`span`,{ref:r,className:n.current?`swap-in`:void 0,children:e},e)})}var nY=1200,rY=8e3;function iY(e,t,n){let r=e,i=!0,a=!1,o=!1,s,c=()=>!r.hasText&&!r.reduced&&!r.hidden&&(i||!r.focused&&!r.hovered),l=()=>{clearTimeout(s),s=void 0,a=!1,n()},u=e=>{s=setTimeout(()=>{a=!0,t(),s=setTimeout(()=>{n(),s=void 0,a=!1,i=!1,c()&&u(6800)},nY)},e)},d=e=>{o||(r=e,(!a||r.reduced||r.hidden)&&(c()?s===void 0&&u(i?300:rY):(i=!1,l())))};return d(e),{update:d,dispose(){o=!0,l()}}}var aY=`cubic-bezier(.37,0,.63,1)`;function oY(e){let t=e.querySelector(`textarea`),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.setAttribute(`class`,`ask-tracer`),r.setAttribute(`aria-hidden`,`true`);let i=Array.from({length:20},(e,t)=>{let n=document.createElementNS(r.namespaceURI,`rect`);for(let[e,t]of Object.entries({x:1,y:1,rx:11,pathLength:100}))n.setAttribute(e,String(t));return n.style.strokeDashoffset=String(-t),n.style.opacity=String(Math.sin(Math.PI*(t+.5)/20)**2),r.append(n),n});e.append(r);let a=()=>{let{width:t,height:n}=e.getBoundingClientRect();r.setAttribute(`viewBox`,`0 0 ${t} ${n}`);for(let e of i)e.setAttribute(`width`,String(Math.max(0,t-2))),e.setAttribute(`height`,String(Math.max(0,n-2)))};a();let o=new ResizeObserver(a);o.observe(e);let s=[],c=()=>{s.forEach(e=>e.cancel()),s=[]},l=()=>{c();let e={duration:nY,easing:`linear`};s=[r.animate([{opacity:0},{opacity:1,offset:.2},{opacity:1,offset:.8},{opacity:0}],e),...i.map((t,n)=>t.animate([{strokeDashoffset:String(-n),easing:aY},{strokeDashoffset:String(-n-100)}],e))]},u=!1,d=()=>({focused:e.contains(document.activeElement),hovered:u,hasText:!!t.value,reduced:n.matches,hidden:document.hidden}),f=iY(d(),l,c),p=()=>f.update(d()),m=()=>queueMicrotask(p),h=()=>{u||(u=!0,p())},g=()=>{u=!1,p()};for(let t of[`input`,`focusin`])e.addEventListener(t,p);return e.addEventListener(`pointermove`,h),e.addEventListener(`pointerleave`,g),e.addEventListener(`focusout`,m),document.addEventListener(`visibilitychange`,p),n.addEventListener(`change`,p),{update:p,dispose(){f.dispose(),o.disconnect(),r.remove();for(let t of[`input`,`focusin`])e.removeEventListener(t,p);e.removeEventListener(`pointermove`,h),e.removeEventListener(`pointerleave`,g),e.removeEventListener(`focusout`,m),document.removeEventListener(`visibilitychange`,p),n.removeEventListener(`change`,p)}}}function sY(e,t,n){let r=Math.max(0,n.height-16-e.bottom-4),i=Math.max(0,e.top-4-16),a=t.height>r&&i>r,o=Math.min(t.height,a?i:r);return{left:Math.max(16,Math.min(e.left,n.width-16-t.width)),top:Math.max(16,Math.min(a?e.top-4-o:e.bottom+4,n.height-16-o)),maxHeight:o}}function cY(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=document.createElement(`div`),a=document.createElement(`span`);for(let e of`font-family.font-size.font-weight.font-style.font-variant.font-stretch.line-height.letter-spacing.word-spacing.text-indent.text-align.text-transform.direction.tab-size.padding-top.padding-right.padding-bottom.padding-left.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.white-space.overflow-wrap.word-break`.split(`.`))i.style.setProperty(e,n.getPropertyValue(e));Object.assign(i.style,{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`0`,top:`0`,boxSizing:`border-box`,width:`${e.clientWidth+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}px`}),i.setAttribute(`aria-hidden`,`true`),i.textContent=e.value.slice(0,t),a.textContent=e.value.slice(t,t+1),i.append(a,document.createTextNode(e.value.slice(t+1))),document.body.append(i);try{let t=a.getBoundingClientRect(),i=parseFloat(n.lineHeight),o=r.top+t.top-(i-t.height)/2-e.scrollTop;return{left:r.left+t.left-e.scrollLeft,top:o,bottom:o+i}}finally{i.remove()}}var lY=new Map,uY=(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 dY({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,U.useState)(n),[m,h]=(0,U.useState)((t?lY.get(t):void 0)??lY.get(e)??n?.draft??``),g=(0,U.useRef)(!1),[_,v]=(0,U.useState)(!1),[y,b]=(0,U.useState)(!1),x=(0,U.useRef)(void 0),[S,C]=(0,U.useState)(!1),[w,T]=(0,U.useState)(),[E,D]=(0,U.useState)(),O=(0,U.useRef)(!1),k=E?.query??w?.query,[A,j]=(0,U.useState)(),M=(0,U.useRef)(void 0),N=()=>{M.current||window.yogurt.conversations.targets(``).then(e=>{M.current=e}).catch(()=>{})},[P,F]=(0,U.useState)(!1),[I,L]=(0,U.useState)(!1),R=f?SG(f.chips,f.draftChips):[],ee=e=>R.some(t=>t.kind===e.kind&&t.id===e.id),z=(A?.items??[]).filter(e=>k?!0:!ee(e)),te=z.filter(e=>e.kind===`meeting`),ne=z.filter(e=>e.kind===`folder`),re=ne.slice(0,A?.query?4:2),ie=te.slice(0,A?.query?10-re.length:ne.length?3:5),B=[...te,...ne],V=P?B:[...ie,...re],ae=B.length-V.length,H=E&&!k?R.slice(0,I?void 0:3):[],oe=E&&!k?R.length-H.length:0,se=E&&!k?H.length+ +!!oe:0,ce=se+V.length+ +!!ae,[le,ue]=(0,U.useState)(0),de=(0,U.useRef)(null),fe=(0,U.useRef)(null),pe=(0,U.useRef)(void 0),me=a||!!f||!!_;(0,U.useEffect)(()=>{if(me&&fe.current)return pe.current=oY(fe.current),()=>{pe.current?.dispose(),pe.current=void 0}},[me]),(0,U.useEffect)(()=>{pe.current?.update()},[m]);let he=(0,U.useRef)(null),ge=(0,U.useRef)(null),_e=(0,U.useRef)({start:0,end:0}),ve=`conversation/${e}`,ye=Lv(ve,!!f),be=(0,U.useRef)(null),xe=$J(ye,be,!!f,Fv(ve)===void 0),Se=a?`chat`:`chat-page`;(0,U.useEffect)(()=>{if(!e)return;let r=!0,i=0;v(!1);let a=t?lY.get(t):void 0;a!==void 0&&(g.current=!0,lY.set(e,a),lY.delete(t),window.yogurt.conversations.draft(e,a).then(()=>{lY.get(e)===a&&lY.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(lY.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,U.useEffect)(()=>{let e=!0;if(k===void 0)j(void 0),ue(0),F(!1);else return window.yogurt.conversations.targets(k).then(t=>{e&&(k||(M.current=t),j({query:k,items:t}),ue(0),F(!1))}).catch(()=>{e&&v(!0)}),()=>{e=!1}},[k,!!E,f?.chips,f?.draftChips]);let Ce=R.length===1&&R[0].kind===`meeting`?R[0].id:void 0,we=()=>{Ce&&window.yogurt.conversations.warm(e)};(0,U.useEffect)(we,[e,Ce]),(0,U.useEffect)(()=>{document.getElementById(`${Se}-context-${le}`)?.scrollIntoView({block:`nearest`})},[le,V]),(0,U.useLayoutEffect)(()=>{let e=de.current,t=ge.current;if(!w||!e||!t)return;let n=()=>{let n=sY(cY(e,w.start),{width:t.offsetWidth,height:Math.min(340,innerHeight/2,t.scrollHeight+t.offsetHeight-t.clientHeight)},{width:innerWidth,height:innerHeight});Object.assign(t.style,{left:`${n.left}px`,top:`${n.top}px`,maxHeight:`${n.maxHeight}px`})};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),fe.current&&r.observe(fe.current),window.addEventListener(`resize`,n),document.addEventListener(`scroll`,n,!0),()=>{r.disconnect(),window.removeEventListener(`resize`,n),document.removeEventListener(`scroll`,n,!0)}},[w,m,A,P,f]);let Te=f?.turns??[],Ee=Te.at(-1),Oe=Ee?.status===`waiting`||Ee?.status===`answering`,ke=!f||y||S||Oe,Ae=(f?f.firstChips===null:i||a)&&!Te.length,je=i||!a&&Ae,Me=n=>{g.current=!0,h(n),(e||t)&&lY.set(e||t,n),e&&window.yogurt.conversations.draft(e,n).then(()=>{lY.get(e)===n&&lY.delete(e)}).catch(()=>v(!0))},Ne=(e,t)=>{let n=e.slice(0,t)!==m.slice(0,t);n&&e[t-1]===`@`&&(O.current=!1),n&&e[t-1]===` `&&w&&A?.query===w.query&&!V.length&&(O.current=!0),T(O.current?void 0:wG(e,t))},Pe=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)}},Fe=e=>{(w||E)&&!ke&&f&&(ee(e)?Promise.resolve():Pe(SG(f.firstChips===null?R:f.draftChips,[e]))).then(()=>{w&&Me(m.slice(0,w.start)+m.slice(w.end)),w&&(T(void 0),requestAnimationFrame(()=>{de.current?.focus(),de.current?.setSelectionRange(w.start,w.start)}))}).catch(()=>{})},Ie=async t=>{if(!ke){C(!0),v(!1);try{for(let n of t)await window.yogurt.conversations.removeContext(e,n)}catch{v(!0)}finally{C(!1)}}},Le=e=>{E&&ee(e)?Ie([e]):Fe(e)},Re=()=>(de.current?.focus({preventScroll:!0}),de.current?.setSelectionRange(_e.current.start,_e.current.end),!1),ze=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&de.current?.focus({preventScroll:!0})},Be=t=>{window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);h(``),lY.delete(e),i&&s(t)}).catch(()=>{Me(t),v(!0)}).finally(()=>b(!1))},Ve=e=>{!e.trim()||y||S||Oe||r||!f&&(!a||_)||(ze(),xe.resume(),b(!0),v(!1),T(void 0),D(void 0),f?Be(e):x.current=e)};(0,U.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,Be(e)},[f,r]);let He=()=>{ue(se+B.findIndex(e=>!V.includes(e))),F(!0)},Ue=e=>{if(!e.nativeEvent.isComposing){if((w||E)&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`)O.current=!0,T(void 0),D(void 0);else if(e.key===`Enter`){let e=le<H.length?H[le]:oe&&le===se-1?`scope-more`:ae&&le===se+V.length?`more`:V[le-se];e===`scope-more`?L(!0):e===`more`?He():e&&(Le(e),E&&D(void 0))}else ue(t=>(t+(e.key===`ArrowDown`?1:-1)+ce)%(ce||1))}else e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),Ve(m))}},We=()=>{f&&!S&&window.yogurt.conversations.current(SG(f.chips,f.draftChips),!0).then(s).catch(()=>v(!0))},Ge=!a&&(!!m||!!E),Ke=Ae&&(je||a)&&(!a||!m)&&(0,G.jsx)(`div`,{"data-testid":a?`chat-suggestions`:`chat-starters`,"aria-hidden":Ge||void 0,"data-instant":!!E||void 0,inert:Ge,className:`ask-starters${a?``:` ask-home-starters`}`,children:uY(R,o).map(e=>(0,G.jsx)(`button`,{type:`button`,title:e,"data-testid":a?`chat-suggestion`:`chat-starter`,disabled:ke||Ge,onClick:()=>Ve(e),children:e},e))}),qe=(e,t)=>(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:ke,"aria-selected":E?ee(e):le===t,"data-active":le===t||void 0,id:`${Se}-context-${t}`,onMouseDown:e=>e.preventDefault(),onClick:()=>Le(e),children:[e.kind===`meeting`?(0,G.jsx)(Ug,{size:14,"aria-hidden":`true`}):(0,G.jsx)(Yg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:JJ(e)}),ee(e)?(0,G.jsx)(yg,{size:14,"aria-hidden":`true`}):e.startedAt&&(0,G.jsx)(`small`,{children:AG(e.startedAt)})]},`${e.kind}:${e.id}`),Je=(0,G.jsxs)(G.Fragment,{children:[!!se&&(0,G.jsx)(G.Fragment,{children:!!H.length&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":W(`In this chat`),children:[(0,G.jsxs)(`h3`,{children:[W(`In this chat`),(0,G.jsx)(`button`,{type:`button`,className:`text-action ask-picker-clear`,disabled:ke,onMouseDown:e=>e.preventDefault(),onClick:()=>void Ie(R),children:W(`Clear`)})]}),H.map((e,t)=>qe(e,t)),!!oe&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,"aria-selected":!1,"data-active":le===se-1||void 0,id:`${Se}-context-${se-1}`,onMouseDown:e=>e.preventDefault(),onClick:()=>L(!0),children:[(0,G.jsx)(Lg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:W(`{count} more`,{count:oe})})]})]})}),[`meeting`,`folder`].map(e=>V.some(t=>t.kind===e)&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":W(e===`meeting`?`Meetings`:`Folders`),children:[(0,G.jsx)(`h3`,{children:W(e===`meeting`?`Meetings`:`Folders`)}),V.map((t,n)=>t.kind===e&&qe(t,se+n))]},e)),!!ae&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:ke,className:`text-muted`,"aria-selected":!E&&le===se+V.length,"data-active":le===se+V.length||void 0,id:`${Se}-context-${se+V.length}`,onMouseDown:e=>e.preventDefault(),onClick:He,children:[(0,G.jsx)(Lg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:W(`{count} more results`,{count:ae})})]}),!A&&!_&&(0,G.jsx)(`p`,{role:`status`,children:W(`Loading…`)}),A&&!V.length&&!se&&(0,G.jsx)(`p`,{children:W(`Nothing found for “{query}”.`,{query:A.query})})]});return(0,G.jsxs)(`div`,{"data-testid":je?`chat-empty`:void 0,"aria-busy":Ee?.status===`answering`,className:`ask-conversation${je?` ask-landing`:``}`,children:[je?(0,G.jsx)(`h1`,{className:`ask-home-title`,children:W(`Ask about your meetings`)}):(0,G.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,G.jsx)(`h2`,{id:a?`meeting-chat-title`:void 0,title:[f?.title||W(`New chat`),...f?.chips.map(JJ)??[]].join(`
+`),children:f?.title||W(`New chat`)}),(0,G.jsxs)(`div`,{className:`ask-header-actions`,children:[f&&(0,G.jsx)(KJ,{id:e,title:f.title,onNew:We,onDeleted:l}),d&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`ghost-btn workspace-icon`,onClick:d,"aria-label":W(`Open in Ask`),title:W(`Open in Ask`),children:(0,G.jsx)(C_,{size:15,"aria-hidden":`true`})}),u&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`ghost-btn workspace-icon`,onClick:u,"aria-label":W(`Close`),title:W(`Close`),children:(0,G.jsx)(av,{size:16,"aria-hidden":`true`})})]})]}),(0,G.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,G.jsx)(Jh,{children:(0,G.jsx)(`div`,{className:`ask-thread${a?` chat-history`:``}${Ae?` ask-thread-empty`:``}`,ref:ye,children:(0,G.jsx)(`div`,{ref:be,className:`ask-thread-content`,children:(0,G.jsxs)(oK,{pending:!f&&!_,skeleton:(0,G.jsx)(sv,{layout:`chat`,testId:`chat-thread-loading`}),children:[!je&&Te.map(e=>(0,G.jsx)(fY,{showCopy:e===Ee,turn:e,chat:f,panel:a,onSource:c,onRetry:()=>Ve(e.question)},e.id)),a&&Ke]})})})}),xe.behind&&(0,G.jsx)(`button`,{className:`workspace-button workspace-icon chat-latest`,"data-testid":`chat-latest`,"aria-label":W(`Back to latest`),onClick:xe.latest,children:(0,G.jsx)(og,{size:15})})]}),(0,G.jsxs)(`div`,{className:`ask-composer${a?` chat-composer`:``}`,children:[_&&(0,G.jsx)(`p`,{"data-testid":a?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:W(`Couldn't save your changes`)}),(0,G.jsx)(oK,{pending:!a&&!f&&!_,onReady:()=>{f&&de.current?.focus({preventScroll:!0})},testId:je?`chat-loading`:void 0,children:(0,G.jsxs)(`form`,{ref:fe,className:`ask-box`,"data-busy":ke||void 0,"data-testid":`${Se}-box`,onSubmit:e=>{e.preventDefault(),Ve(m)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(void 0)},children:[(0,G.jsxs)(`div`,{className:`ask-field`,children:[(0,G.jsx)(`textarea`,{autoFocus:a,ref:de,id:a?`meeting-question`:`library-question`,"data-testid":`${Se}-input`,rows:1,maxLength:4e3,placeholder:je?void 0:W(a?`Ask anything`:`Ask about your meetings`),"aria-label":W(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?`${Se}-contexts`:void 0,"aria-activedescendant":w&&le<ce?`${Se}-context-${le}`:void 0,onChange:e=>{Me(e.target.value),Ne(e.target.value,e.target.selectionStart)},onClick:e=>Ne(e.currentTarget.value,e.currentTarget.selectionStart),onSelect:e=>Ne(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:we,onKeyDown:Ue}),(0,G.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,G.jsxs)(sW,{open:!!E,onOpenChange:e=>{T(void 0),j(e&&M.current?{query:``,items:M.current}:void 0),ue(0),F(!1),L(!1),e||requestAnimationFrame(()=>{let e=document.activeElement;(!e||e===document.body||e.closest(`.ask-scope, .ask-selector`))&&de.current?.focus({preventScroll:!0})}),e&&(_e.current={start:de.current?.selectionStart??m.length,end:de.current?.selectionEnd??m.length}),D(e?{query:``}:void 0)},children:[(0,G.jsxs)(`span`,{className:`ask-scope-group`,children:[(0,G.jsx)(CW,{type:`button`,className:`ask-scope`,"data-testid":`ask-scope`,onPointerEnter:N,onFocus:N,disabled:ke,"aria-label":W(`Choose meetings or folders`),title:W(`Choose meetings or folders`),children:(0,G.jsx)(XJ,{chips:R})}),!!R.length&&(0,G.jsx)(`button`,{type:`button`,className:`ask-scope-clear`,"data-testid":`ask-scope-clear`,disabled:ke,"aria-label":W(`Clear`),title:W(`Clear`),onClick:()=>{Ie(R),de.current?.focus({preventScroll:!0})},children:(0,G.jsx)(av,{size:12,"aria-hidden":`true`})})]}),(0,G.jsx)(EW,{container:de.current?.closest(`dialog`)??void 0,children:(0,G.jsx)(fG,{anchor:fe,side:je?`bottom`:`top`,align:`start`,collisionAvoidance:{fallbackAxisSide:`none`},sideOffset:6,collisionPadding:16,positionMethod:`fixed`,className:`ask-selector-positioner`,children:(0,G.jsxs)(vG,{className:`ask-picker ask-selector`,"aria-label":W(`Choose meetings or folders`),initialFocus:he,finalFocus:Re,children:[(0,G.jsx)(`input`,{ref:he,className:`ask-picker-search`,placeholder:W(`Search…`),"aria-label":W(`Search meetings and folders`),role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!E,"aria-controls":`${Se}-contexts`,"aria-activedescendant":le<ce?`${Se}-context-${le}`:void 0,value:E?.query??``,maxLength:200,readOnly:S,onChange:e=>D(t=>t&&{...t,query:e.target.value}),onKeyDown:Ue}),(0,G.jsx)(`div`,{className:`ask-picker-results`,id:`${Se}-contexts`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":W(`Add context`),children:Je})]})})})]}),Oe?(0,G.jsx)(`button`,{type:`button`,"data-testid":`${Se}-stop`,className:`ask-toolbar-button ask-stop`,"aria-label":f?.waitsForModel?W(`Cancel question`):W(`Stop`),title:f?.waitsForModel?W(`Cancel question`):W(`Stop`),onClick:()=>{ze(),window.yogurt.conversations.stop(e)},children:(0,G.jsx)(uee,{size:10,fill:`currentColor`})}):(0,G.jsxs)(`button`,{type:`submit`,"data-testid":`${Se}-send`,className:`ask-toolbar-button ask-send`,disabled:ke||!m.trim(),"aria-label":W(`Ask`),children:[(0,G.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,G.jsx)(lg,{size:16})]})]})]}),w&&(0,De.createPortal)((0,G.jsx)(`div`,{ref:ge,className:`ask-picker ask-mention`,id:`${Se}-contexts`,role:`listbox`,"aria-label":W(`Add context`),children:Je}),de.current?.closest(`dialog`)??document.body)]})})]}),!a&&Ke,(0,G.jsx)(`p`,{"data-testid":`${Se}-announce`,className:`sr-only`,"aria-live":`polite`,children:Ee?.status===`done`?Ee.answer:``})]})}function fY({turn:e,chat:t,panel:n,showCopy:r,onSource:i,onRetry:a}){let o=e.status===`answering`,s=RG(e.answer,o),[c,l]=(0,U.useState)(!1),[u,d]=(0,U.useState)(!1),f=n?`chat`:`chat-page`;return(0,U.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),1800);return()=>clearTimeout(e)},[c]),(0,G.jsxs)(`div`,{"data-testid":`${f}-turn`,"data-status":e.status,"data-show-copy":r||void 0,className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,"data-testid":`${f}-question`,children:e.question}),(e.status===`waiting`||o&&!s)&&(t.waitsForModel&&e.status===`waiting`?(0,G.jsx)(dK,{downloading:e=>(0,G.jsxs)(`p`,{role:`status`,className:`text-sm text-muted`,children:[W(`Your question is waiting for Yogurt's AI to download.`),` `,(0,G.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,G.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:W(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,G.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?W(`Yogurt will answer once the meeting ends.`):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(pK,{}),(0,G.jsx)(pY,{step:e.status===`waiting`?void 0:e.step})]})})),s&&(0,G.jsx)(`div`,{"data-testid":`${f}-answer`,dir:`auto`,"data-streaming":o||void 0,className:`note-prose chat-answer${o?` stream-caret`:``}`,children:(0,G.jsx)(WG,{md:s,live:o,sources:e.sources,onSource:i})}),s&&!o&&(0,G.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,G.jsxs)(`button`,{className:`ghost-btn chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":W(c?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{l(!0),d(!1)}).catch(()=>d(!0))},children:[(0,G.jsx)(eY,{show:c?`done`:`copy`,options:{copy:(0,G.jsx)(rK,{size:13}),done:(0,G.jsx)(yg,{size:13})}}),(0,G.jsx)(tY,{text:W(c?`Copied`:`Copy`),widest:W(`Copied`)})]}),e.scope&&(0,G.jsx)(ZJ,{chips:e.scope}),(0,G.jsx)(`span`,{role:`status`,className:u?`text-danger`:`sr-only`,children:u?W(`Yogurt couldn't copy.`):c?W(`Copied`):``})]}),e.status===`stopped`&&(0,G.jsx)(`p`,{className:`text-xs text-muted`,children:W(s?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,G.jsxs)(`p`,{role:`alert`,children:[W(`Yogurt couldn't answer that.`),` `,(0,G.jsx)(`button`,{className:`ghost-btn`,onClick:a,children:W(`Try again`)})]})]})}function pY({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),TG);return()=>clearInterval(e)},[r]);let i=EG(e,t);return(0,G.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var mY=`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`,hY=`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 gY({size:e=28,className:t=`text-accent`}){return(0,G.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,G.jsx)(`path`,{fill:`currentColor`,d:mY})})}function _Y({height:e=32}){return(0,G.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,G.jsx)(`path`,{style:{fill:`color-mix(in srgb, var(--primary), var(--accent))`},transform:`translate(0 5) scale(.65)`,d:mY}),(0,G.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:hY})]})}var vY=[{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})),yY=[.8,2.65,4.05],bY=[2.35,3.8,5.95];function xY(e){let t=vY.map((t,n)=>({...t,hidden:e<bY[n]})),n=yY.findIndex((t,n)=>e>=t&&e<bY[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=vY[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-yY[n])/(bY[n]-yY[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 SY=[`## 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.`],CY=SY.join(`
+`),wY=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function TY(e){return SY.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-wY[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
+`)}var EY=()=>{},DY=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&Se(vY,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&xe({question:_,answer:v+`[1]`,status:DY?`waiting`:`done`});function OY(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 kY(){let[e,t]=(0,U.useState)(DY?0:99),n=M===`summary`&&e<1.5,[r,i]=(0,U.useState)(null),[a,o]=(0,U.useState)(0);return(0,U.useEffect)(()=>{let e=!1,n=[],r=``,a=null,s=e=>{if(e.source!==parent||e.origin!==location.origin)return;if(e.data?.type===`yogurt-fragment-playing`){document.documentElement.dataset.paused=String(!e.data.playing);return}if(e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let i=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(i),M===`ask`&&document.documentElement.style.setProperty(`--reply-opacity`,i>=2.05?`1`:`0`),M===`transcript`){let e=xY(i),t=JSON.stringify(e);t!==r&&(r=t,Se(e.lines,e.partial))}for(let{element:e,start:t,duration:r}of n){let n=Math.max(0,Math.min(1,(i-t)/r));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=i>=2.05&&i<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(i<20)};window.addEventListener(`message`,s);let c=()=>{if(e||a?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&i(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`&&DY&&!a){a=document.querySelector(`[data-testid=transcript]`);let t=[...a.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${a.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,o(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=OY(document.querySelector(`.marketing-fragment`)),DY)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,G.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,G.jsx)(Zv,{id:E.id,recording:!0,inline:!0},a),M===`summary`&&(0,G.jsxs)(`div`,{className:`fragment-plan`,"data-waiting":n,children:[n&&(0,G.jsxs)(`div`,{className:`summary-cue`,children:[(0,G.jsx)(`span`,{children:`Summarizing…`}),(0,G.jsx)(Qv,{})]}),(0,G.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,G.jsx)(ez,{markdown:CY,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,G.jsx)(`div`,{className:`fragment-plan-live`,children:(0,G.jsx)(ez,{markdown:TY(Math.max(0,e-.75)),streaming:DY&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(dY,{id:j.id,initial:j,panel:!0,onSelect:EY,onSource:EY,onDeleted:EY}),r&&(0,De.createPortal)((0,G.jsxs)(`div`,{className:`fragment-byline`,children:[(0,G.jsx)(gY,{size:20}),(0,G.jsx)(`span`,{children:`Yogurt`})]}),r)]})]})}var AY=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}}}})),jY=o(((e,t)=>{t.exports=AY()})),MY=o((e=>{var t=jY(),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`),ee=Symbol.for(`react.legacy_hidden`),z=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.for(`react.view_transition`),ne=Symbol.for(`react.recoverable`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var B=Symbol.for(`react.client.reference`);function V(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===B?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 te: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?V(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return V(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)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=yp(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&&(hh._currentValue=t.memoizedState,fe(ge,e)),t=pe.current;var n=yp(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),hh._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(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
-`+Se+e+Ce}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!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(`
+`+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(`
`),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{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return we(`Activity`);case 30:return we(`ViewTransition`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(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{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`
Error generating stack: `+e.message+`
-`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(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 tt(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=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(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 nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(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-qe(n),i=1<<r;t|=e[r],n&=~i}return t}function it(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 at(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ct(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-qe(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&&lt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(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 pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=se.p;return e===0?(e=window.event,e===void 0?32:jh(e.type)):e}function ht(e,t){var n=se.p;try{return se.p=e,t()}finally{se.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,Ct=`__reactResources$`+gt,wt=`__reactMarker$`+gt,Tt=`__reactLoad$`+gt;function Et(e){delete e[_t],delete e[vt],delete e[xt],delete e[St]}function Dt(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[_t])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function Ot(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function At(e){var t=e[Ct];return t||=e[Ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function jt(e){e[wt]=!0}function Mt(e){e[Tt]=void 0}var Nt=new Set,Pt={};function Ft(e,t){H(e,t),H(e+`Capture`,t)}function H(e,t){for(Pt[e]=t,e=0;e<t.length;e++)Nt.add(t[e])}var It=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]*$`),Lt={},Rt={};function zt(e){return Ae.call(Rt,e)?!0:Ae.call(Lt,e)?!1:It.test(e)?Rt[e]=!0:(Lt[e]=!0,!1)}var Bt=!1;function Vt(){var e=Bt;return Bt=!1,e}function Ht(e,t,n){if(zt(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 Ut(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 Wt(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 Gt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function qt(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 Jt(e){if(!e._valueTracker){var t=Kt(e)?`checked`:`value`;e._valueTracker=qt(e,t,``+e[t])}}function Yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Xt=/[\n"\\]/g;function Zt(e){return e.replace(Xt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Qt(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=``+Gt(t)):e.value!==``+Gt(t)&&(e.value=``+Gt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):en(e,Gt(n)):o===`number`&&e.value==t?en(e,Gt(e.value)):en(e,Gt(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=``+Gt(s):e.removeAttribute(`name`)}function $t(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)){Jt(e);return}n=n==null?``:``+Gt(n),t=t==null?n:``+Gt(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),Jt(e)}function en(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function tn(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=``+Gt(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 nn(e,t,n){t!=null&&(t=``+Gt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Gt(n)}function rn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Gt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Jt(e)}function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var on=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 sn(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||on.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function cn(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]=``,Bt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(sn(e,a,r),Bt=!0)}else for(var o in t)t.hasOwnProperty(o)&&sn(e,o,t[o])}function ln(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 un=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`]]),dn=/^[\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 fn(e){return dn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function pn(){}var mn=null;function hn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gn=null,_n=null;function vn(e){var t=Ot(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Qt(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="`+Zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[vt]||null;if(!a)throw Error(i(90));Qt(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&&Yt(r)}break a;case`textarea`:nn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var yn=!1;function bn(e,t,n){if(yn)return e(t,n);yn=!0;try{return e(t)}finally{if(yn=!1,(gn!==null||_n!==null)&&(Wd(),gn&&(t=gn,e=_n,_n=gn=null,vn(t),e)))for(t=0;t<e.length;t++)vn(e[t])}}function xn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||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 Sn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Cn=!1;if(Sn)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){Cn=!0}}),window.addEventListener(`test`,wn,wn),window.removeEventListener(`test`,wn,wn)}catch{Cn=!1}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.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 Dn=i.slice(e,1<r?1-r:void 0)}function kn(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 An(){return!0}function jn(){return!1}function Mn(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)?An:jn,this.isPropagationStopped=jn,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=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=w({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,Bn=w({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,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!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Mn(Bn),Hn=Mn(w({},Bn,{dataTransfer:0})),Un=Mn(w({},Fn,{relatedTarget:0})),Wn=Mn(w({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Mn(w({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Mn(w({},Nn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={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`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Mn(w({},Fn,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Mn(w({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Mn(w({},Nn,{submitter:0})),tr=Mn(w({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),nr=Mn(w({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),rr=Mn(w({},Bn,{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})),ir=Mn(w({},Nn,{newState:0,oldState:0,source:0})),ar=[9,13,27,32],or=Sn&&`CompositionEvent`in window,sr=null;Sn&&`documentMode`in document&&(sr=document.documentMode);var cr=Sn&&`TextEvent`in window&&!sr,lr=Sn&&(!or||sr&&8<sr&&11>=sr),ur=` `,dr=!1;function fr(e,t){switch(e){case`keyup`:return ar.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function pr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var mr=!1;function hr(e,t){switch(e){case`compositionend`:return pr(t);case`keypress`:return t.which===32?(dr=!0,ur):null;case`textInput`:return e=t.data,e===ur&&dr?null:e;default:return null}}function gr(e,t){if(mr)return e===`compositionend`||!or&&fr(e,t)?(e=On(),Dn=En=Tn=null,mr=!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 lr&&t.locale!==`ko`?null:t.data;default:return null}}var _r={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 vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!_r[e.type]:t===`textarea`}function yr(e,t,n,r){gn?_n?_n.push(r):_n=[r]:gn=r,t=tp(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var br=null,xr=null;function Sr(e){qf(e,0)}function Cr(e){if(Yt(kt(e)))return e}function wr(e,t){if(e===`change`)return t}var Tr=!1;if(Sn){var Er;if(Sn){var Dr=`oninput`in document;if(!Dr){var Or=document.createElement(`div`);Or.setAttribute(`oninput`,`return;`),Dr=typeof Or.oninput==`function`}Er=Dr}else Er=!1;Tr=Er&&(!document.documentMode||9<document.documentMode)}function kr(){br&&(br.detachEvent(`onpropertychange`,Ar),xr=br=null)}function Ar(e){if(e.propertyName===`value`&&Cr(xr)){var t=[];yr(t,xr,e,hn(e)),bn(Sr,t)}}function jr(e,t,n){e===`focusin`?(kr(),br=t,xr=n,br.attachEvent(`onpropertychange`,Ar)):e===`focusout`&&kr()}function Mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Cr(xr)}function Nr(e,t){if(e===`click`)return Cr(t)}function Pr(e,t){if(e===`input`||e===`change`)return Cr(t)}function Fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ir=typeof Object.is==`function`?Object.is:Fr;function Lr(e,t){if(Ir(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(!Ae.call(t,i)||!Ir(e[i],t[i]))return!1}return!0}function Rr(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 zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Br(e,t){var n=zr(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=zr(n)}}function Vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(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=Rr(e.document)}return t}function Ur(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 Wr=Sn&&`documentMode`in document&&11>=document.documentMode,Gr=null,Kr=null,qr=null,Jr=!1;function Yr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Gr==null||Gr!==Rr(r)||(r=Gr,`selectionStart`in r&&Ur(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}),qr&&Lr(qr,r)||(qr=r,r=tp(Kr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Gr)))}function Xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Zr={animationend:Xr(`Animation`,`AnimationEnd`),animationiteration:Xr(`Animation`,`AnimationIteration`),animationstart:Xr(`Animation`,`AnimationStart`),transitionrun:Xr(`Transition`,`TransitionRun`),transitionstart:Xr(`Transition`,`TransitionStart`),transitioncancel:Xr(`Transition`,`TransitionCancel`),transitionend:Xr(`Transition`,`TransitionEnd`)},Qr={},$r={};Sn&&($r=document.createElement(`div`).style,`AnimationEvent`in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),`TransitionEvent`in window||delete Zr.transitionend.transition);function ei(e){if(Qr[e])return Qr[e];if(!Zr[e])return e;var t=Zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $r)return Qr[e]=t[n];return e}var ti=ei(`animationend`),ni=ei(`animationiteration`),ri=ei(`animationstart`),ii=ei(`transitionrun`),ai=ei(`transitionstart`),oi=ei(`transitioncancel`),si=ei(`transitionend`),ci=new Map,li=`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(` `);li.push(`scrollEnd`);function ui(e,t){ci.set(e,t),Ft(t,[e])}var di=0;function fi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=di++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function pi(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 mi(e,t){return e=pi(e),t=pi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var hi=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)},gi=[],_i=0,vi=0;function yi(){for(var e=_i,t=vi=_i=0;t<e;){var n=gi[t];gi[t++]=null;var r=gi[t];gi[t++]=null;var i=gi[t];gi[t++]=null;var a=gi[t];if(gi[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&&Ci(n,i,a)}}function bi(e,t,n,r){gi[_i++]=e,gi[_i++]=t,gi[_i++]=n,gi[_i++]=r,vi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function xi(e,t,n,r){return bi(e,t,n,r),wi(e)}function Si(e,t){return bi(e,null,null,t),wi(e)}function Ci(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-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function wi(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 Ti={};function Ei(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 Di(e,t,n,r){return new Ei(e,t,n,r)}function Oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ki(e,t){var n=e.alternate;return n===null?(n=Di(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 Ai(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 ji(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Oi(r)&&(s=1);else if(typeof r==`string`)s=eh(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Di(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return Mi(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Di(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Di(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Di(19,n,t,a),e.elementType=F,e.lanes=o,e;case ee:case te:return e=a|32,e=Di(30,n,t,e),e.elementType=te,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=Di(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=Di(7,e,r,t),e.lanes=n,e}function Ni(e,t,n){return e=Di(6,e,null,t),e.lanes=n,e}function Pi(e){var t=Di(18,null,null,0);return t.stateNode=e,t}function Fi(e,t,n){return t=Di(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ii=new WeakMap;function Li(e,t){if(typeof e==`object`&&e){var n=Ii.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Ii.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Ri=[],zi=0,Bi=null,Vi=0,Hi=[],Ui=0,Wi=null,Gi=1,Ki=``;function qi(e,t){Ri[zi++]=Vi,Ri[zi++]=Bi,Bi=e,Vi=t}function Ji(e,t,n){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Wi=e;var r=Gi;e=Ki;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Gi=1<<32-qe(t)+i|n<<i|r,Ki=a+e}else Gi=1<<a|n<<i|r,Ki=e}function Yi(e){e.return!==null&&(qi(e,1),Ji(e,1,0))}function Xi(e){for(;e===Bi;)Bi=Ri[--zi],Ri[zi]=null,Vi=Ri[--zi],Ri[zi]=null;for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Ki=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null}function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Ki,Hi[Ui++]=Wi,Gi=t.id,Ki=t.overflow,Wi=e}var Qi=null,$i=null,ea=!1,ta=null,na=!1,ra=Error(i(519));function ia(e){throw ua(Li(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ra}function aa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Jf(`cancel`,t),Jf(`close`,t);break;case`iframe`:case`object`:case`embed`:Jf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)Jf(Gf[n],t);break;case`source`:Jf(`error`,t);break;case`img`:case`image`:case`link`:Jf(`error`,t),Jf(`load`,t);break;case`details`:Jf(`toggle`,t);break;case`input`:Jf(`invalid`,t),$t(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Jf(`invalid`,t);break;case`textarea`:Jf(`invalid`,t),rn(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||sp(t.textContent,n)?(r.popover!=null&&(Jf(`beforetoggle`,t),Jf(`toggle`,t)),r.onScroll!=null&&Jf(`scroll`,t),r.onScrollEnd!=null&&Jf(`scrollend`,t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||ia(e,!0)}function oa(e){for(Qi=e.return;Qi;)switch(Qi.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:Qi=Qi.return}}function sa(e){if(e!==Qi)return!1;if(!ea)return oa(e),ea=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||xp(e.type,e.memoizedProps)),n=!n),n&&$i&&ia(e),oa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=ym(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));$i=ym(e)}else t===27?(t=$i,Ap(e.type)?(e=vm,vm=null,$i=e):$i=t):$i=Qi?_m(e.stateNode.nextSibling):null;return!0}function ca(){$i=Qi=null,ea=!1}function la(){var e=ta;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ta=null),e}function ua(e){ta===null?ta=[e]:ta.push(e)}var da=de(null),fa=null,pa=null;function ma(e,t,n){pe(da,t._currentValue),t._currentValue=n}function ha(e){e._currentValue=da.current,fe(da)}function ga(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 _a(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),ga(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),ga(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),ga(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 va(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;Ir(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.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&&_a(t,e,n,r),t.flags|=262144,e!==null}function ya(e){for(e=e.firstContext;e!==null;){if(!Ir(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ba(e){fa=e,pa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xa(e){return Ca(fa,e)}function Sa(e,t){return fa===null&&ba(e),Ca(e,t)}function Ca(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},pa===null){if(e===null)throw Error(i(308));pa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pa=pa.next=t;return n}var wa=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()})}},Ta=t.unstable_scheduleCallback,Ea=t.unstable_NormalPriority,Da={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oa(){return{controller:new wa,data:new Map,refCount:0}}function ka(e){e.refCount--,e.refCount===0&&Ta(Ea,function(){e.controller.abort()})}function Aa(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 ja=null;function Ma(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Na=null,Pa=0,Fa=0,Ia=null;function La(e,t){if(Na===null){var n=Na=[];Pa=0,Fa=Bf(),Ia={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Pa++,t.then(Ra,Ra),t}function Ra(){if(--Pa===0&&(ja=null,Na!==null)){Ia!==null&&(Ia.status=`fulfilled`);var e=Na;Na=null,Fa=0,Ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function za(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 Ba=V.S;V.S=function(e,t){if(xd=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&La(e,t),ja!==null)for(var n=Ef;n!==null;)Aa(n,ja),n=n.next;if(n=e.types,n!==null){for(var r=Ef;r!==null;)Aa(r,n),r=r.next;if(Fa!==0){r=ja,r===null&&(r=ja=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ba!==null&&Ba(e,t)};var Va=de(null);function Ha(){var e=Va.current;return e===null?rd.pooledCache:e}function Ua(e,t){t===null?pe(Va,Va.current):pe(Va,t.pool)}function Wa(){var e=Ha();return e===null?null:{parent:Da._currentValue,pool:e}}var Ga=Error(i(460)),Ka=Error(i(474)),qa=Error(i(542)),Ja={then:function(){}};function Ya(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(pn,pn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,eo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(pn,pn);else{if(e=rd,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,eo(e),e}throw Qa=t,Ga}}function Za(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Qa=e,Ga):e}}var Qa=null;function $a(){if(Qa===null)throw Error(i(459));var e=Qa;return Qa=null,e}function eo(e){if(e===Ga||e===qa)throw Error(i(483))}var to=null,no=0;function ro(e){var t=no;return no+=1,to===null&&(to=[]),Xa(to,e,t)}function io(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ao(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 oo(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=ki(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=Ni(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),io(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Za(i)===t.type)?(t=a(t,n.props),io(t,n),t.return=e,t):(t=ji(n.type,n.key,n.props,null,e.mode,r),io(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=Fi(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=Mi(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=Ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=ji(t.type,t.key,t.props,null,e.mode,n),io(n,t),n.return=e,n;case D:return t=Fi(t,e.mode,n),t.return=e,t;case L:return t=Za(t),f(e,t,n)}if(oe(t)||ie(t))return t=Mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ro(t),n);if(t.$$typeof===M)return f(e,Sa(e,t),n);ao(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=Za(n),p(e,t,n,r)}if(oe(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ro(n),r);if(n.$$typeof===M)return p(e,t,Sa(e,n),r);ao(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=Za(r),m(e,t,n,r,i)}if(oe(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ro(r),i);if(r.$$typeof===M)return m(e,t,n,Sa(t,r),i);ao(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),ea&&qi(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 ea&&qi(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)}),ea&&qi(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),io(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Za(l)===r.type){n(e,r.sibling),c=a(r,o.props),io(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Mi(o.props.children,e.mode,c,o.key),io(c,o),c.return=e,e=c):(c=ji(o.type,o.key,o.props,null,e.mode,c),io(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=Fi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Za(o),_(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(ie(o)){if(l=ie(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,ro(o),c);if(o.$$typeof===M)return _(e,r,Sa(e,o),c);ao(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=Ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{no=0;var i=_(e,t,n,r);return to=null,i}catch(t){if(t===Ga||t===qa)throw t;var a=Di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var so=oo(!0),co=oo(!1),lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fo(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 po(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,nd&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=wi(e),Ci(e,null,n),t}return bi(e,r,t,n),wi(e)}function ho(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,ut(e,n)}}function go(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 _o=!1;function vo(){if(_o){var e=Ia;if(e!==null)throw e}}function yo(e,t,n,r){_o=!1;var i=e.updateQueue;lo=!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?(ad&f)===f:(r&f)===f){f!==0&&f===Fa&&(_o=!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:lo=!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),U|=o,e.lanes=o,e.memoizedState=d}}function bo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function xo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)bo(n[e],t)}var So=de(null),Co=de(0);function wo(e,t){e=dd,pe(Co,e),pe(So,t),dd=e|t.baseLanes}function To(){pe(Co,dd),pe(So,So.current)}function Eo(){dd=Co.current,fe(So),fe(Co)}var Do=de(null),Oo=null;function ko(e){var t=e.alternate;pe(Po,Po.current&1),pe(Do,e),Oo===null&&(t===null||So.current!==null||t.memoizedState!==null)&&(Oo=e)}function Ao(e){pe(Po,Po.current),pe(Do,e),Oo===null&&(Oo=e)}function jo(e){e.tag===22?(pe(Po,Po.current),pe(Do,e),Oo===null&&(Oo=e)):Mo()}function Mo(){pe(Po,Po.current),pe(Do,Do.current)}function No(e){fe(Do),Oo===e&&(Oo=null),fe(Po)}var Po=de(0);function Fo(e,t){pe(Do,Do.current),pe(Po,t)}function Io(e){fe(Po),fe(Do),Oo===e&&(Oo=null)}function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mm(n)||hm(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 Ro=0,zo=null,Bo=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return Ro=a,zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?hc:gc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){V.H=mc;var t=Bo!==null&&Bo.next!==null;if(Ro=0,Vo=Bo=zo=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||Nc||(e=e.dependencies,e!==null&&ya(e)&&(Nc=!0))}function $o(e,t,n,r){zo=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=Bo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=_c,o=t(n,r)}while(Uo);return o}function es(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?cs(t):t,e=e.useState()[0],(Bo===null?null:Bo.memoizedState)!==e&&(zo.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}Ro=0,Vo=Bo=zo=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?zo.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(Bo===null){var e=zo.alternate;e=e===null?null:e.memoizedState}else e=Bo.next;var t=Vo===null?zo.memoizedState:Vo.next;if(t!==null)Vo=t,Bo=e;else{if(e===null)throw zo.alternate===null?Error(i(467)):Error(i(310));Bo=e,e={memoizedState:Bo.memoizedState,baseState:Bo.baseState,baseQueue:Bo.baseQueue,queue:Bo.queue,next:null},Vo===null?zo.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Xa(qo,e,t),t=zo,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?hc:gc),e}function ls(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return cs(e);if(e.$$typeof===ne)return;if(e.$$typeof===M)return xa(e)}throw Error(i(438,String(e)))}function us(e){var t=null,n=zo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=zo.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=ss(),zo.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]=z;return t.index++,n}function ds(e,t){return typeof t==`function`?t(e):t}function fs(e){return ps(as(),Bo,e)}function ps(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?(Ro&f)===f:(ad&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===Fa&&(d=!0);else if((Ro&p)===p){u=u.next,p===Fa&&(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,zo.lanes|=p,U|=p;f=u.action,Wo&&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,zo.lanes|=f,U|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Ir(o,e.memoizedState)&&(Nc=!0,d&&(n=Ia,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 ms(e){var t=as(),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);Ir(o,t.memoizedState)||(Nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hs(e,t,n){var r=zo,a=as(),o=ea;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Ir((Bo||a).memoizedState,n);if(s&&(a.memoizedState=n,Nc=!0),a=a.queue,Bs(vs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Fs(e?9:8,{destroy:void 0},_s.bind(null,r,a,n,t),null),e){if(r.flags|=2048,rd===null)throw Error(i(349));o||Ro&127||gs(r,t,n)}return n}function gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zo.updateQueue,t===null?(t=ss(),zo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _s(e,t,n,r){t.value=n,t.getSnapshot=r,ys(t)&&bs(e)}function vs(e,t,n){return n(function(){ys(t)&&bs(e)})}function ys(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function bs(e){var t=Si(e,2);t!==null&&zd(t,e,2)}function xs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ps(e,Bo,typeof r==`function`?r:ds)}function Cs(e,t,n,r,a){if(dc(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)}};V.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ws(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ws(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};o.types=a===null?null:a.types,V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ws(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(ea){var n=rd.formState;if(n!==null){a:{var r=zo;if(ea){if($i){b:{for(var i=$i,a=na;i.nodeType!==8;)if(!a||(i=_m(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){$i=_m(i.nextSibling),r=i.data===`F!`;break a}}ia(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=cc.bind(null,zo,r),r.dispatch=n,r=xs(!1),a=uc.bind(null,zo,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Cs.bind(null,zo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(as(),Bo,e)}function Ms(e,t,n){if(t=ps(e,t,ks)[0],e=fs(ds)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=cs(t)}catch(e){throw e===Ga?qa:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(zo.flags|=2048,Fs(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=as(),n=Bo;if(n!==null)return Ms(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=zo.updateQueue,t===null&&(t=ss(),zo.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 Is(){return as().memoizedState}function Ls(e,t,n,r){var i=is();zo.flags|=e,i.memoizedState=Fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Rs(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;Bo!==null&&r!==null&&Xo(r,Bo.memoizedState.deps)?i.memoizedState=Fs(t,a,n,r):(zo.flags|=e,i.memoizedState=Fs(1|t,a,n,r))}function zs(e,t){Ls(8390656,8,e,t)}function Bs(e,t){Rs(2048,8,e,t)}function Vs(e){zo.flags|=4;var t=zo.updateQueue;if(t===null)t=ss(),zo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hs(e){var t=as().memoizedState;return Vs({ref:t,nextImpl:e}),function(){if(nd&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Us(e,t){return Rs(4,2,e,t)}function Ws(e,t){return Rs(4,4,e,t)}function Gs(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 Ks(e,t,n){n=n==null?null:n.concat([e]),Rs(4,4,Gs.bind(null,t,e),n)}function qs(){}function Js(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return n===void 0||Ro&1073741824&&!(ad&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ld(),zo.lanes|=e,U|=e,n)}function Zs(e,t,n,r){return Ir(n,t)?n:So.current===null?!(Ro&106)||Ro&1073741824&&!(ad&261930)?(Nc=!0,e.memoizedState=n):(e=Ld(),zo.lanes|=e,U|=e,t):(e=Xs(e,n,r),Ir(e,t)||(Nc=!0),e)}function Qs(e,t,n,r,i){var a=se.p;se.p=a!==0&&8>a?a:8;var o=V.T,s={};s.types=o===null?null:o.types,V.T=s,uc(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,za(c,r),Id(e)):lc(e,t,r,Id(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},Id())}finally{se.p=a,o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=tc(e).queue;Qs(e,a,t,ce,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Id())}function rc(){return xa(mh)}function ic(){return as().memoizedState}function ac(){return as().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Id();e=po(n);var r=mo(t,e,n);r!==null&&(zd(r,t,n),ho(r,t,n)),t={cache:Oa()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=Id();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=xi(e,t,n,r),n!==null&&(zd(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,Id())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(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,Ir(s,o))return bi(e,t,i,0),rd===null&&yi(),!1}catch{}if(n=xi(e,t,i,r),n!==null)return zd(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:Bf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(i(479))}else t=xi(e,n,r,2),t!==null&&zd(t,e,2)}function dc(e){var t=e.alternate;return e===zo||t!==null&&t===zo}function fc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var mc={readContext:xa,use:ls,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},hc={readContext:xa,use:ls,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:xa,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){Ke(!0);try{n(t)}finally{Ke(!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=sc.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,zo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(is(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,zo,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=zo,a=is();if(ea){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),rd===null)throw Error(i(349));ad&127||gs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=rd.identifierPrefix;if(ea){var n=Ki,r=Gi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:rc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uc.bind(null,zo,!0,n),n.dispatch=t,[e,t]},useMemoCache:us,useCacheRefresh:function(){return is().memoizedState=oc.bind(null,zo)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(nd&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},gc={readContext:xa,use:ls,useCallback:Js,useContext:xa,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:fs,useRef:Is,useState:function(){return fs(ds)},useDebugValue:qs,useDeferredValue:function(e,t){return Zs(as(),Bo.memoizedState,e,t)},useTransition:function(){var e=fs(ds)[0],t=as().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Ss(as(),Bo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs},_c={readContext:xa,use:ls,useCallback:Js,useContext:xa,useEffect:Bs,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Ys,useReducer:ms,useRef:Is,useState:function(){return ms(ds)},useDebugValue:qs,useDeferredValue:function(e,t){var n=as();return Bo===null?Xs(n,e,t):Zs(n,Bo.memoizedState,e,t)},useTransition:function(){var e=ms(ds)[0],t=as().memoizedState;return[typeof e==`boolean`?e:cs(e),t]},useSyncExternalStore:hs,useId:ic,useHostTransitionStatus:rc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=as();return Bo===null?(n.baseState=e,[e,n.queue.dispatch]):Ss(n,Bo,e,t)},useMemoCache:us,useCacheRefresh:ac,useEffectEvent:Hs};function vc(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 yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Id(),i=po(r);i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(zd(t,e,r),ho(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Id(),i=po(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(zd(t,e,r),ho(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Id(),r=po(n);r.tag=2,t!=null&&(r.callback=t),t=mo(e,r,n),t!==null&&(zd(t,e,n),ho(t,e,n))}};function bc(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?!Lr(n,r)||!Lr(i,a):!0}function xc(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&&yc.enqueueReplaceState(t,t.state,null)}function Sc(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 Cc(e){hi(e)}function wc(e){console.error(e)}function Tc(e){hi(e)}function Ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Dc(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 Oc(e,t,n){return n=po(n),n.tag=3,n.payload={element:null},n.callback=function(){Ec(e,t)},n}function kc(e){return e=po(e),e.tag=3,e}function Ac(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(){Dc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Dc(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function jc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&va(t,n,a,!0),n=Do.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Oo===null?Zd():n.alternate===null&&fd===0&&(fd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ja?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),bf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ja?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)),bf(e,r,a)),!1}throw Error(i(435,n.tag))}return bf(e,r,a),Zd(),!1}if(ea)return t=Do.current,t===null?(r!==ra&&(t=Error(i(423),{cause:r}),ua(Li(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Li(r,n),a=Oc(e.stateNode,r,a),go(e,a),fd!==4&&(fd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ra&&(e=Error(i(422),{cause:r}),ua(Li(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Li(o,n),_d===null?_d=[o]:_d.push(o),fd!==4&&(fd=2),t===null)return!0;r=Li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Oc(n.stateNode,r,e),go(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`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=kc(a),Ac(a,e,n,r),go(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mc=Error(i(461)),Nc=!1;function Pc(e,t,n,r){t.child=e===null?co(t,null,n,r):so(t,e.child,n,r)}function Fc(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 ba(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!Nc?(ns(e,t,i),ll(e,t,i)):(ea&&s&&Yi(t),t.flags|=1,Pc(e,t,r,i),t.child)}function Ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Lc(e,t,a,r,i)):(e=ji(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ul(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return ll(e,t,i)}return t.flags|=1,e=ki(a,r),e.ref=t.ref,e.return=t,t.child=e}function Lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,ul(e,i))e.flags&131072&&(Nc=!0);else return t.lanes=e.lanes,ll(e,t,i)}}return Gc(e,t,n,r,i)}function Rc(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 Bc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ua(t,a===null?null:a.cachePool),a===null?To():wo(t,a),jo(t);else return r=t.lanes=536870912,Bc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ua(t,null),To(),Mo()):(Ua(t,a.cachePool),wo(t,a),Mo(),t.memoizedState=null);return Pc(e,t,i,n),t.child}function zc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bc(e,t,n,r,i){var a=Ha();return a=a===null?null:{parent:Da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ua(t,null),To(),jo(t),e!==null&&va(e,t,r,!0),t.childLanes=i,null}function Vc(e,t){return t=el({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hc(e,t,n){return so(t,e.child,null,n),e=Vc(t,t.pendingProps),e.flags|=2,No(t),t.memoizedState=null,e}function Uc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(ea){if(r.mode===`hidden`)return e=Vc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zc(null,e);if(Ao(t),(e=$i)?(e=pm(e,na),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw ia(t);return t.lanes=536870912,null}return Vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ao(t),a){if(t.flags&256)t.flags&=-257,t=Hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Nc||va(e,t,n,!1),a=(n&e.childLanes)!==0,Nc||a){if(So.current===null){if(r=rd,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Si(e,s),zd(r,e,s),Mc;Zd()}t=Hc(e,t,n)}else e=o.treeContext,$i=_m(s.nextSibling),Qi=t,ea=!0,ta=null,na=!1,e!==null&&Zi(t,e),t=Vc(t,r),t.flags|=134221824;return t}return e=ki(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wc(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 Gc(e,t,n,r,i){return ba(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!Nc?(ns(e,t,i),ll(e,t,i)):(ea&&r&&Yi(t),t.flags|=1,Pc(e,t,n,i),t.child)}function Kc(e,t,n,r,i,a){return ba(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!Nc?(ns(e,t,a),ll(e,t,a)):(ea&&r&&Yi(t),t.flags|=1,Pc(e,t,n,a),t.child)}function qc(e,t,n,r,i){if(ba(t),t.stateNode===null){var a=Ti,o=n.contextType;typeof o==`object`&&o&&(a=xa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=yc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},uo(t),o=n.contextType,a.context=typeof o==`object`&&o?xa(o):Ti,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(vc(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&&yc.enqueueReplaceState(a,a.state,null),yo(t,r,a,i),vo(),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=Sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ti,typeof u==`object`&&u&&(o=xa(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)&&xc(t,a,r,o),lo=!1;var f=t.memoizedState;a.state=f,yo(t,r,a,i),vo(),l=t.memoizedState,s||f!==l||lo?(typeof d==`function`&&(vc(t,n,d,r),l=t.memoizedState),(c=lo||bc(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,fo(e,t),o=t.memoizedProps,u=Sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ti,typeof l==`object`&&l&&(c=xa(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)&&xc(t,a,r,c),lo=!1,f=t.memoizedState,a.state=f,yo(t,r,a,i),vo();var p=t.memoizedState;o!==d||f!==p||lo||e!==null&&e.dependencies!==null&&ya(e.dependencies)?(typeof s==`function`&&(vc(t,n,s,r),p=t.memoizedState),(u=lo||bc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ya(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,Wc(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=so(t,e.child,null,i),t.child=so(t,null,n,i)):Pc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ll(e,t,i),e}function Jc(e,t,n,r){return ca(),t.flags|=256,Pc(e,t,n,r),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Wa()}}function Zc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function Qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Po.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(ea){if(i?ko(t):Mo(),(e=$i)?(e=pm(e,na),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wi===null?null:{id:Gi,overflow:Ki},retryLane:536870912,hydrationErrors:null},n=Pi(e),n.return=t,t.child=n,Qi=t,$i=null)):e=null,e===null)throw ia(t);return t.lanes=hm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Mo(),i=t.mode,a=el({mode:`hidden`,children:a},i),r=Mi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Xc(n),r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(null,r)):(ko(t),$c(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return nl(e,t,a,o,r,c,s,n)}return i?(Mo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ki(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Mi(i,a,n,null),i.flags|=2):i=ki(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,zc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Xc(n):(a=i.cachePool,a===null?a=Wa():(s=Da._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Zc(e,o,n),t.memoizedState=Yc,zc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=ki(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 $c(e,t){return t=el({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function el(e,t){return e=Di(22,e,null,t),e.lanes=0,e}function tl(e,t,n){return so(t,e.child,null,n),e=$c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(ko(t),t.flags&=-257,tl(e,t,c)):t.memoizedState===null?(Mo(),o=a.fallback,s=t.mode,a=el({mode:`visible`,children:a.children},s),o=Mi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,so(t,e.child,null,c),a=t.child,a.memoizedState=Xc(c),a.childLanes=Zc(e,r,c),t.memoizedState=Yc,zc(null,a)):(Mo(),t.child=e.child,t.flags|=128,null);if(ko(t),hm(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,ua({value:a,source:null,stack:null})),tl(e,t,c)}if(Nc||va(e,t,c,!1),r=(c&e.childLanes)!==0,Nc||r){if(So.current!==null)return tl(e,t,c);if(r=rd,r!==null&&(a=dt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Si(e,a),zd(r,e,a),Mc;return mm(o)||Zd(),tl(e,t,c)}return mm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,$i=_m(o.nextSibling),Qi=t,ea=!0,ta=null,na=!1,e!==null&&Zi(t,e),t=$c(t,a.children),t.flags|=134221824,t)}function rl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ga(e.return,t,n)}function il(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Lo(n)===null&&(t=e),e=e.sibling}return t}function al(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 ol(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 sl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Po.current;if(t.flags&128)return Fo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Fo(t,o),i===`backwards`&&e!==null?(ol(e),Pc(e,t,r,n),ol(e)):Pc(e,t,r,n),r=ea?Vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rl(e,n,t);else if(e.tag===19)rl(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=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ol(t)),al(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&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,a,r);break;case`together`:al(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,a,r)}return t.child}function cl(e,t,n){var r=t.pendingProps;return ma(t,t.type,r.value),Pc(e,t,r.children,n),t.child}function ll(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),U|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(va(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=ki(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ki(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ul(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ya(e)))}function dl(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),ma(t,Da,e.memoizedState.cache),ca();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=va(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Qc(e,t,n):(ko(t),e=ll(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return sl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(va(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return sl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fo(t,Po.current),r)break;return null;case 22:return t.lanes=0,Rc(e,t,n,t.pendingProps);case 24:ma(t,Da,e.memoizedState.cache)}return ll(e,t,n)}function fl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Nc=!0;else{if(!ul(e,n)&&!(t.flags&128))return Nc=!1,dl(e,t,n);Nc=!!(e.flags&131072)}}else Nc=!1,ea&&t.flags&1048576&&Ji(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Za(t.elementType),t.type=e,typeof e==`function`)Oi(e)?(r=Sc(e,r),t.tag=1,t=qc(null,t,e,r,n)):(t.tag=0,t=Gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Fc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Ic(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=cl(null,t,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Sc(r,t.pendingProps),qc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,fo(e,t),yo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ma(t,Da,r),r!==o.cache&&_a(t,[Da],n,!0),vo(),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=Jc(e,t,r,n);break a}if(r!==a){a=Li(Error(i(424)),t),ua(a),t=Jc(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($i=_m(e.firstChild),Qi=t,ea=!0,ta=null,na=!0,n=co(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ca(),r===a){t=ll(e,t,n);break a}Pc(e,t,r,n)}t=t.child}return t;case 26:return Wc(e,t),e===null?(n=Bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ea||(t.stateNode=bp(t.type,t.pendingProps,ge.current,t)):t.memoizedState=Bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&ea&&(r=t.stateNode=Cm(t.type,t.pendingProps,ge.current),Qi=t,na=!0,a=$i,Ap(t.type)?(vm=a,$i=_m(r.firstChild)):$i=a),Pc(e,t,t.pendingProps.children,n),Wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ea&&((a=r=$i)&&(r=dm(r,t.type,t.pendingProps,na),r===null?a=!1:(t.stateNode=r,Qi=t,$i=_m(r.firstChild),na=!1,a=!0)),a||ia(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,xp(a,o)?r=null:s!==null&&xp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),mh._currentValue=a),Wc(e,t),Pc(e,t,r,n),t.child;case 6:return e===null&&ea&&((e=n=$i)&&(n=fm(n,t.pendingProps,na),n===null?e=!1:(t.stateNode=n,Qi=t,$i=null,e=!0)),e||ia(t)),null;case 13:return Qc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=so(t,null,r,n):Pc(e,t,r,n),t.child;case 11:return Fc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Wc(e,t),Pc(e,t,r,n),t.child;case 8:return Pc(e,t,t.pendingProps.children,n),t.child;case 12:return Pc(e,t,t.pendingProps.children,n),t.child;case 10:return cl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ba(t),a=xa(a),r=r(a),t.flags|=1,Pc(e,t,r,n),t.child;case 14:return Ic(e,t,t.type,t.pendingProps,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 19:return sl(e,t,n);case 31:return Uc(e,t,n);case 22:return Rc(e,t,n,t.pendingProps);case 24:return ba(t),r=xa(Da),e===null?(a=Ha(),a===null&&(a=rd,o=Oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},uo(t),ma(t,Da,a)):((e.lanes&n)!==0&&(fo(e,t),yo(t,null,null,n),vo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ma(t,Da,r),r!==a.cache&&_a(t,[Da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ma(t,Da,r))),Pc(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:ea&&Yi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Wc(e,t),Pc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function pl(e){e.flags|=4}function ml(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 Qa=Ja,Ka}}else e.flags&=-16777217}function hl(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 Qa=Ja,Ka}}function gl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:at(),e.lanes|=t,gd|=t)}function _l(e,t){if(!ea)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 vl(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 yl(e,t,n){var r=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vl(t),null;case 1:return vl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(Da),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(sa(t)?pl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,la())),vl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(pl(t),o===null?(vl(t),ml(t,a,null,r,n)):(vl(t),hl(t,o))):o?o===e.memoizedState?(vl(t),t.flags&=-16777217):(pl(t),vl(t),hl(t,o)):(e=e.memoizedProps,e!==r&&pl(t),vl(t),ml(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}e=me.current,sa(t)?aa(t,e):(e=Cm(a,r,n),t.stateNode=e,pl(t))}return vl(t),t.subtreeFlags&=-33554433,null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return vl(t),t.subtreeFlags&=-33554433,null}if(o=me.current,sa(t))aa(t,o);else{var s=_p(ge.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[_t]=t,o[vt]=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(up(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&&pl(t)}}return vl(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,sa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Qi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||sp(e.nodeValue,n)),e||ia(t,!0)}else e=_p(e).createTextNode(r),e[_t]=t,t.stateNode=e}return vl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=sa(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[_t]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),e=!1}else n=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(No(t),t):(No(t),null);if(t.flags&128)throw Error(i(558))}return vl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=sa(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[_t]=t}else ca(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vl(t),a=!1}else a=la(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(No(t),t):(No(t),null)}return No(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),gl(t,t.updateQueue),vl(t),null);case 4:return ye(),e===null&&Zf(t.stateNode.containerInfo),t.flags|=67108864,vl(t),null;case 10:return ha(t.type),vl(t),null;case 19:if(Io(t),r=t.memoizedState,r===null)return vl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)_l(r,!1);else{if(fd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ai(n,e),n=n.sibling;return Fo(t,Po.current&1|2),ea&&qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>Sd&&(t.flags|=128,a=!0,_l(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!ea)return vl(t),null}else 2*Fe()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,_l(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=Fe(),e.sibling=null,o=Po.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||ea?Fo(t,o):(n=o,pe(Do,t),pe(Po,n),Oo===null&&(Oo=t)),ea&&qi(t,r.treeForkCount),e}return vl(t),null;case 22:case 23:return No(t),Eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vl(t),t.subtreeFlags&6&&(t.flags|=8192)):vl(t),n=t.updateQueue,n!==null&&gl(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&&fe(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ha(Da),vl(t),null;case 25:return null;case 30:return t.flags|=33554432,vl(t),null}throw Error(i(156,t.tag))}function bl(e,t){switch(Xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Da),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(No(t),t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(No(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ca()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Io(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 ye(),null;case 10:return ha(t.type),null;case 22:case 23:return No(t),Eo(),e!==null&&fe(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Da),null;case 25:return null;default:return null}}function xl(e,t){switch(Xi(t),t.tag){case 3:ha(Da),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&No(t);break;case 13:No(t);break;case 19:Io(t);break;case 10:ha(t.type);break;case 22:case 23:No(t),Eo(),e!==null&&fe(Va);break;case 24:ha(Da)}}function Sl(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){yf(t,t.return,e)}}function Cl(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){yf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){yf(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{xo(t,n)}catch(t){yf(e,e.return,t)}}}function Tl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){yf(e,t,n)}}function El(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=fi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Hp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Up(e);f(e.child,!1,om,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){yf(e,t,n)}}function Dl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){yf(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){yf(e,t,n)}else n.current=null}}function Ol(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++)cm(e.stateNode,t[n])}function kl(e){for(var t=e.return;t!==null&&(Ml(t)&&cm(e.stateNode,t.stateNode),!jl(t));)t=t.return}function Al(e){for(var t=e.return;t!==null&&(Ml(t)&&lm(e.stateNode,t.stateNode),!jl(t));)t=t.return}function jl(e){return e.tag===5||e.tag===3||e.tag===27}function Ml(e){return e&&e.tag===7&&e.stateNode!==null}function Nl(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){yf(e,e.return,t)}}function Pl(e,t,n){try{var r=e.stateNode;fp(r,e.type,n,t),r[vt]=t}catch(t){yf(e,e.return,t)}}function Fl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ap(e.type)||e.tag===4}function Il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Fl(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&&Ap(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 Ll(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=pn)),Ol(e,r),Bt=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Ap(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ol(e,r),Bt=!0;else if(i!==4&&(i===27&&(Ol(e,r),r=null,Ap(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);up(t,r,n),t[_t]=e,t[vt]=n}catch(t){yf(e,e.return,t)}}var Bl=!1,Vl=null;function Hl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Bl=!0)}var Ul=null;function Wl(){var e=Ul;return Ul=null,e}var Gl=0;function Kl(e,t,n,r,i){return Gl=0,ql(e.child,t,n,r,i)}function ql(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ip(o);r.push(s),s.view&&(a=!0)}else a||Ip(o).view&&(a=!0);Bl=!0,Np(o,Gl===0?t:t+`_`+Gl,n),Gl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||ql(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Jl(e,t){for(;e!==null;)e.tag===5?Pp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Jl(e.child,t),e=e.sibling}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Yl(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=mi(t.default,t.share),t!==`none`&&(Kl(e,n,t,null,!1)||Jl(e.child,!1))}e=e.sibling}}function Xl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=fi(r,n),a=mi(r.default,n.paired?r.share:r.enter);a===`none`?Yl(e):Kl(e,i,a,null,!1)?(Yl(e),n.paired||t||Rd(e,r.onEnter)):Jl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e,t),e=e.sibling;else Yl(e)}function Zl(e){if(Vl!==null&&Vl.size!==0){var t=Vl;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=mi(n.default,n.share);if(a!==`none`&&(Kl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Rd(e,n.onShare)):Jl(e.child,!1)),t.delete(r),t.size===0)break}}}Zl(e)}e=e.sibling}}}function Ql(e){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode),r=Vl===null?void 0:Vl.get(n),i=mi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Kl(e,n,i,null,!1)?r===void 0?Rd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Vl.delete(n),Rd(e,t.onShare)):Jl(e.child,!1)),Vl!==null&&Zl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Vl!==null&&Zl(e)}function $l(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=fi(t,e.stateNode);t=mi(t.default,t.update),e.flags&=-5,t!==`none`&&Kl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&$l(e);e=e.sibling}}function eu(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,Jl(e.child,!1))}eu(e)}e=e.sibling}}function tu(e){if(e.tag===30)e.stateNode.paired=null,Jl(e.child,!1),eu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)tu(e),e=e.sibling;else eu(e)}function nu(e){for(e=e.child;e!==null;)e.tag===30?Jl(e.child,!1):e.subtreeFlags&33554432&&nu(e),e=e.sibling}function ru(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Gl<a.length){var l=a[Gl],u=Ip(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&&Np(c,Gl===0?n:n+`_`+Gl,i),s&&e.flags&4||(Ul===null&&(Ul=[]),Ul.push(c,Gl===0?r:r+`_`+Gl,t.memoizedProps)),Gl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ru(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function iu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=fi(n,r),a=mi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Lp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Gl=0,i=ru(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Rd(e,n.onUpdate))}else e.subtreeFlags&33554432&&iu(e,t);e=e.sibling}}var au=!1,ou=!1,su=!1,cu=!1,lu=typeof WeakSet==`function`?WeakSet:Set,uu=null,du=!1,fu=!1,pu=!1,mu=!1;function hu(e,t,n){if(e=e.containerInfo,hp=wh,e=Hr(e),Ur(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(gp={focusedElem:e,selectionRange:r},wh=!1,n=(n&335544064)===n,uu=t,t=n?9270:1024;uu!==null;){if(e=uu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Hl(e),gu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Ql(r),gu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Hl(e),gu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,uu=r):(n&&$l(e),gu(n))}}Vl=null}function gu(e){for(;uu!==null;){var t=uu,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=Sc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){yf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)um(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:um(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=fi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=mi(a.default,a.update),a!==`none`&&Kl(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,uu=r;break}uu=t.return}}function _u(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lu(e,n),r&4&&Sl(5,n);break;case 1:if(Lu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){yf(n,n.return,e)}else{var i=Sc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){yf(n,n.return,e)}}}r&64&&wl(n),r&512&&El(n,n.return);break;case 3:if(Lu(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{xo(e,t)}catch(e){yf(n,n.return,e)}}break;case 27:t===null&&r&4&&zl(n);case 26:case 5:Lu(e,n),t===null&&r&4&&Nl(n),r&512&&El(n,n.return);break;case 12:Lu(e,n);break;case 31:Lu(e,n),r&4&&Eu(e,n);break;case 13:Lu(e,n),r&4&&Du(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cf.bind(null,n),gm(e,n))));break;case 22:if(r=n.memoizedState!==null||au,!r){var a=t!==null&&t.memoizedState!==null||ou;t=au,i=ou,au=r,(ou=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),zu(e,n,r)):Lu(e,n),au=t,ou=i}break;case 30:Lu(e,n),r&512&&El(n,n.return);break;case 7:r&512&&El(n,n.return);default:Lu(e,n)}}function vu(e,t){for(e=e.child;e!==null;)yu(e,t),e=e.sibling}function yu(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){yf(e,e.return,t)}bu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Bt=!0}catch(t){yf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Mp(s,!0):Mp(e.stateNode,!1)}catch(t){yf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&vu(e,t);break;default:vu(e,t)}}function bu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:yu(n,r);break a;case 22:n.memoizedState===null&&bu(n,r);break a;default:bu(n,r)}}e=e.sibling}}function xu(e){var t=e.alternate;t!==null&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Et(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 Su=null,Cu=!1;function wu(e,t,n){for(n=n.child;n!==null;)Tu(e,t,n),n=n.sibling}function Tu(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:ou||Dl(n,t),wu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ou&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ou||Dl(n,t),Al(n);var r=Su,i=Cu;Ap(n.type)&&(Su=n.stateNode,Cu=!1),wu(e,t,n),wm(n.stateNode,n.type,n.memoizedProps),Su=r,Cu=i;break;case 5:ou||Dl(n,t),Al(n);case 6:if(n.tag===6&&Al(n),r=Su,i=Cu,Su=null,wu(e,t,n),Su=r,Cu=i,Su!==null){if(Cu)try{(Su.nodeType===9?Su.body:Su.nodeName===`HTML`?Su.ownerDocument.body:Su).removeChild(n.stateNode),Bt=!0}catch(e){yf(n,t,e)}else try{Su.removeChild(n.stateNode),Bt=!0}catch(e){yf(n,t,e)}}break;case 18:Su!==null&&(Cu?(e=Su,jp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Xh(e)):jp(Su,n.stateNode));break;case 4:r=Su,i=Cu,Su=n.stateNode.containerInfo,Cu=!0,wu(e,t,n),Su=r,Cu=i;break;case 0:case 11:case 14:case 15:Cl(2,n,t),ou||Cl(4,n,t),wu(e,t,n);break;case 1:ou||(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Tl(n,t,r)),wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:ou=(r=ou)||n.memoizedState!==null,wu(e,t,n),ou=r;break;case 30:Dl(n,t),wu(e,t,n);break;case 7:ou||Dl(n,t),wu(e,t,n);break;default:wu(e,t,n)}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xh(e)}catch(e){yf(t,t.return,e)}}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xh(e)}catch(e){yf(t,t.return,e)}}function Ou(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lu),t;default:throw Error(i(435,e.tag))}}function ku(e,t){var n=Ou(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=wf.bind(null,e,t);t.then(r,r)}})}function Au(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(Ap(l.type)){Su=l.stateNode,Cu=!1;break a}break;case 5:Su=l.stateNode,Cu=!1;break a;case 3:case 4:Su=l.stateNode.containerInfo,Cu=!0;break a}l=l.return}if(Su===null)throw Error(i(160));Tu(s,c,o),Su=null,Cu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mu(t,e,n),t=t.sibling}var ju=null;function Mu(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}Au(t,e,n),Nu(e),a&4&&(Cl(3,e,e.return),Sl(3,e),Cl(5,e,e.return));break;case 1:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),a&64&&au&&(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=ju,Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(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(au)e.stateNode=bp(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[wt]||r[_t]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),up(r,t,n),r[_t]=e,jt(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),up(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),up(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[_t]=e,jt(r),t=r}e.stateNode=t}}else au||$m(o,e.type,e.stateNode)}else e.stateNode=qm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Pl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ou||t.parentNode.removeChild(t)):a.count--,n===null?au||$m(o,e.type,e.stateNode):qm(o,n,e.memoizedProps))}break;case 27:Au(t,e,n),Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),r!==null&&a&4&&Pl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=su,su=!1,Au(t,e,n),su=o,Nu(e),a&512&&(ou||r===null||Dl(r,r.return)),e.flags&32){t=e.stateNode;try{an(t,``),Bt=!0}catch(t){yf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Pl(e,t,r===null?t:r.memoizedProps)),a&1024&&(cu=!0);break;case 6:if(Au(t,e,n),Nu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Bt=!0}catch(t){yf(e,e.return,t)}}break;case 3:if(Bt=!1,Zm=null,o=ju,ju=Dm(t.containerInfo),Au(t,e,n),ju=o,Nu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(t){yf(e,e.return,t)}cu&&(cu=!1,Pu(e)),Bt=!1;break;case 4:a=su,su=au,r=Vt(),o=ju,ju=Dm(e.stateNode.containerInfo),Au(t,e,n),Nu(e),ju=o,Bt&&fu&&(pu=!0),Bt=r,su=a;break;case 12:Au(t,e,n),Nu(e);break;case 31:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 13:Au(t,e,n),Nu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=Fe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=au,l=ou,u=su;au=c||o,su=u||o,ou=l||s,Au(t,e,n),ou=l,su=u,au=c,Nu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||au||ou||(t=s||ou,n=au,r=ou,au=o||au,ou=t,Ru(e,2),au=n,ou=r),!o&&su||vu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ku(e,n))));break;case 19:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 30:a&512&&(ou||r===null||Dl(r,r.return)),a=Vt(),o=fu,s=(n&335544064)===n,c=e.memoizedProps,fu=s&&mi(c.default,c.update)!==`none`,Au(t,e,n),Nu(e),s&&r!==null&&Bt&&(e.flags|=4),fu=o,Bt=a;break;case 21:break;case 7:a&512&&(ou||r===null||Dl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Au(t,e,n),Nu(e)}}function Nu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Fl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Ml(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(jl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Rl(e,Il(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(an(l,``),n.flags&=-33),Rl(e,Il(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ll(e,Il(e),u,s);break;default:throw Error(i(161))}}catch(t){yf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wh=!0,t.reset(),wh=!1),e=e.sibling}}function Fu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Iu(t,e),t=t.sibling;else iu(t,!1)}function Iu(e,t){var n=e.alternate;if(n===null)Xl(e,!1);else switch(e.tag){case 3:if(mu=du=!1,Wl(),Fu(t,e),!du&&!pu){if(e=Ul,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Pp(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`})),mu=!0}Ul=null;break;case 5:Fu(t,e);break;case 4:r=du,du=!1,Fu(t,e),du&&(pu=!0),du=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Fu(t,e):Xl(e,!1));break;case 30:r=du,i=Wl(),du=!1,Fu(t,e),du&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=fi(a,o),o=fi(n.memoizedProps,o);var s=mi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Gl=0,t=ru(e,n,t,o,s,a,!0),Gl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Rd(e,e.memoizedProps.onUpdate),Ul=i):i!==null&&(i.push.apply(i,Ul),Ul=i),du=e.flags&32?!0:r;break;default:Fu(t,e)}}function Lu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_u(e,t.alternate,t),t=t.sibling}function Ru(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Cl(4,n,n.return),Ru(n,r);break;case 1:Dl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Tl(n,n.return,i),Ru(n,r);break;case 27:r&2&&wm(n.stateNode,n.type,n.memoizedProps);case 5:Dl(n,n.return),n.tag!==5&&n.tag!==27||Al(n),Ru(n,r);break;case 6:Al(n);break;case 26:Dl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ou||i.parentNode.removeChild(i),Ru(n,r);break;case 22:n.memoizedState===null&&Ru(n,r);break;case 30:Dl(n,n.return),Ru(n,r);break;case 7:Dl(n,n.return);default:Ru(n,r)}e=e.sibling}}function zu(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:zu(i,a,n),Sl(4,a);break;case 1:if(zu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){yf(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++)bo(l[i],c)}catch(e){yf(r,r.return,e)}}s&&o&64&&wl(a),El(a,a.return);break;case 27:n&2&&zl(a);case 5:a.tag!==5&&a.tag!==27||kl(a),zu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 6:kl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||au||$m(Dm(c.ownerDocument),a.type,c),zu(i,a,n),s&&r===null&&o&4&&Nl(a),El(a,a.return);break;case 12:zu(i,a,n);break;case 31:zu(i,a,n),s&&o&4&&Eu(i,a);break;case 13:zu(i,a,n),s&&o&4&&Du(i,a);break;case 22:a.memoizedState===null&&zu(i,a,n),El(a,a.return);break;case 30:zu(i,a,n),El(a,a.return);break;case 7:El(a,a.return);default:zu(i,a,n)}t=t.sibling}}function Bu(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&&ka(n))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ka(e))}function Hu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Uu(e,t,n,r),t=t.sibling;else i&&nu(t)}function Uu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&tu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Hu(e,t,n,r),a&2048&&Sl(9,t);break;case 1:Hu(e,t,n,r);break;case 3:Hu(e,t,n,r),i&&mu&&(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&&ka(a)));break;case 12:if(a&2048){Hu(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){yf(t,t.return,e)}}else Hu(e,t,n,r);break;case 31:Hu(e,t,n,r);break;case 13:Hu(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&&tu(t),o._visibility&2?Hu(e,t,n,r):(o._visibility|=2,Wu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&tu(s),o._visibility&2?Hu(e,t,n,r):Gu(e,t)),a&2048&&Bu(s,t);break;case 24:Hu(e,t,n,r),a&2048&&Vu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Jl(a.child,!0),Jl(t.child,!0))),Hu(e,t,n,r);break;default:Hu(e,t,n,r)}}function Wu(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:Wu(a,o,s,c,i),Sl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wu(a,o,s,c,i)):u._visibility&2?Wu(a,o,s,c,i):Gu(a,o),i&&l&2048&&Bu(o.alternate,o);break;case 24:Wu(a,o,s,c,i),i&&l&2048&&Vu(o.alternate,o);break;default:Wu(a,o,s,c,i)}t=t.sibling}}function Gu(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:Gu(n,r),i&2048&&Bu(r.alternate,r);break;case 24:Gu(n,r),i&2048&&Vu(r.alternate,r);break;default:Gu(n,r)}t=t.sibling}}var Ku=8192;function qu(e,t,n){if(e.subtreeFlags&Ku)for(e=e.child;e!==null;)Ju(e,t,n),e=e.sibling}function Ju(e,t,n){switch(e.tag){case 26:qu(e,t,n),e.flags&Ku&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ih(n,e)):ah(n,ju,e.memoizedState,e.memoizedProps));break;case 5:qu(e,t,n),e.flags&Ku&&(e=e.stateNode,(t&335544128)===t&&ih(n,e));break;case 3:case 4:var r=ju;ju=Dm(e.stateNode.containerInfo),qu(e,t,n),ju=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ku,Ku=16777216,qu(e,t,n),Ku=r):qu(e,t,n));break;case 30:if((e.flags&Ku)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Vl===null&&(Vl=new Map),Vl.set(r,i)}qu(e,t,n);break;default:qu(e,t,n)}}function Yu(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 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];uu=r,$u(r,e)}Yu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zu(e),e=e.sibling}function Zu(e){switch(e.tag){case 0:case 11:case 15:Xu(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Xu(e);break;case 12:Xu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qu(e)):Xu(e);break;default:Xu(e)}}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];uu=r,$u(r,e)}Yu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),Qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Qu(t));break;default:Qu(t)}e=e.sibling}}function $u(e,t){for(;uu!==null;){var n=uu;switch(n.tag){case 0:case 11:case 15:Cl(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:ka(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,uu=r;else a:for(n=e;uu!==null;){r=uu;var i=r.sibling,a=r.return;if(xu(r),r===n){uu=null;break a}if(i!==null){i.return=a,uu=i;break a}uu=a}}}var ed={getCacheForType:function(e){var t=xa(Da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return xa(Da).controller.signal}},td=typeof WeakMap==`function`?WeakMap:Map,nd=0,rd=null,id=null,ad=0,od=0,sd=null,cd=!1,ld=!1,ud=!1,dd=0,fd=0,U=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,yd=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,W=null,jd=null,Md=null,Nd=null,Pd=0,Fd=null;function Id(){return nd&2&&ad!==0?ad&-ad:V.T===null?mt():Bf()}function Ld(){if(hd===0){if(!(ad&536870912)||ea){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),hd=e}else hd=536870912}return e=Do.current,e!==null&&(e.flags|=32),hd}function Rd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Hp(fi(e.memoizedProps,n))),Md===null&&(Md=[]),Md.push(t.bind(null,r))}}function zd(e,t,n){(e===rd&&(od===2||od===9)||e.cancelPendingCommit!==null)&&(Kd(e,0),Ud(e,ad,hd,!1)),st(e,n),nd&2&&e===rd||(e===rd&&(!(nd&2)&&(pd|=n),fd===4&&Ud(e,ad,hd,!1)),Mf(e))}function Bd(e,t,n){if(nd&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||nt(e,t),a=r?ef(e,t):Qd(e,t,!0),o=r;do{if(a===0){ld&&!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=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(Kd(c,s).flags|=256),s=Qd(c,s,!1),s!==2&&s!==6){if(ud&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,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,hd,!cd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-Fe(),10<a)){if(Ud(r,t,hd,!cd),tt(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=wp(Vd.bind(null,r,n,vd,Cd,yd,t,hd,pd,gd,cd,o,`Throttled`,-0,0),a);break a}Vd(r,n,vd,Cd,yd,t,hd,pd,gd,cd,o,null,-0,0)}break}}while(1);Mf(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:pn},Vl=null,Ju(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?bd-Fe():(a&4194048)===a?xd-Fe():0,m=sh(d,m),m!==null)?(Od=a,e.cancelPendingCommit=m(cf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ud(e,a,o,!l)):cf(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(!Ir(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=rt(e,t),t&=~md,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&lt(e,n,t)}function Wd(){return nd&6?!0:(Nf(0,!1),!1)}function Gd(){if(id!==null){if(od===0)var e=id.return;else e=id,pa=fa=null,rs(e),to=null,no=0,e=id;for(;e!==null;)xl(e.alternate,e),e=e.return;id=null}}function Kd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Tp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Gd(),rd=e,id=n=ki(e.current,null),ad=t,od=0,sd=null,cd=!1,ld=nt(e,t),ud=!1,gd=hd=md=pd=U=fd=0,vd=_d=null,yd=!1,dd=rt(e,t),yi(),n}function qd(e,t){zo=null,V.H=mc,t===Ga||t===qa?(t=$a(),od=3):t===Ka?(t=$a(),od=4):od=t===Mc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,sd=t,id===null&&(fd=1,Ec(e,Li(t,e.current)))}function Jd(){var e=Do.current;return e===null?!0:(ad&4194048)===ad?Oo===null:(ad&62914560)===ad||ad&536870912?e===Oo:!1}function Yd(){var e=V.H;return V.H=mc,e===null?mc:e}function Xd(){var e=V.A;return V.A=ed,e}function Zd(){fd=4,cd||(ad&4194048)!==ad&&Do.current!==null||(ld=!0),!(U&134217727)&&!(pd&134217727)||rd===null||Ud(rd,ad,hd,!1)}function Qd(e,t,n){var r=nd;nd|=2;var i=Yd(),a=Xd();(rd!==e||ad!==t)&&(Cd=null,Kd(e,t)),t=!1;var o=fd;a:do try{if(od!==0&&id!==null){var s=id,c=sd;switch(od){case 8:Gd(),o=6;break a;case 3:case 2:case 9:case 6:Do.current===null&&(t=!0);var l=od;if(od=0,sd=null,af(e,s,c,l),n&&ld){o=0;break a}break;default:l=od,od=0,sd=null,af(e,s,c,l)}}$d(),o=fd;break}catch(t){qd(e,t)}while(1);return t&&e.shellSuspendCounter++,pa=fa=null,nd=r,V.H=i,V.A=a,id===null&&(rd=null,ad=0,yi()),o}function $d(){for(;id!==null;)nf(id)}function ef(e,t){var n=nd;nd|=2;var r=Yd(),a=Xd();rd!==e||ad!==t?(Cd=null,Sd=Fe()+500,Kd(e,t)):ld=nt(e,t);a:do try{if(od!==0&&id!==null){t=id;var o=sd;b:switch(od){case 1:od=0,sd=null,af(e,t,o,1);break;case 2:case 9:if(Ya(o)){od=0,sd=null,rf(t);break}t=function(){od!==2&&od!==9||rd!==e||(od=7),Mf(e)},o.then(t,t);break a;case 3:od=7;break a;case 4:od=5;break a;case 7:Ya(o)?(od=0,sd=null,rf(t)):(od=0,sd=null,af(e,t,o,7));break;case 5:var s=null;switch(id.tag){case 26:s=id.memoizedState;case 5:case 27:var c=id;if(s?nh(s):c.stateNode.complete){od=0,sd=null;var l=c.sibling;if(l!==null)id=l;else{var u=c.return;u===null?id=null:(id=u,of(u))}break b}}od=0,sd=null,af(e,t,o,5);break;case 6:od=0,sd=null,af(e,t,o,6);break;case 8:Gd(),fd=6;break a;default:throw Error(i(462))}}tf();break}catch(t){qd(e,t)}while(1);return pa=fa=null,V.H=r,V.A=a,nd=n,id===null?(rd=null,ad=0,yi(),fd):0}function tf(){for(;id!==null&&!Ne();)nf(id)}function nf(e){var t=fl(e.alternate,e,dd);e.memoizedProps=e.pendingProps,t===null?of(e):id=t}function rf(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kc(n,t,t.pendingProps,t.type,void 0,ad);break;case 11:t=Kc(n,t,t.pendingProps,t.type.render,t.ref,ad);break;case 5:rs(t);var r=t;r===Qi&&(ea?(oa(r),r.tag===5&&r.stateNode!=null&&($i=r.stateNode)):(oa(r),ea=!0));default:xl(n,t),t=id=Ai(t,dd),t=fl(n,t,dd)}e.memoizedProps=e.pendingProps,t===null?of(e):id=t}function af(e,t,n,r){pa=fa=null,rs(t),to=null,no=0;var i=t.return;try{if(jc(e,i,t,n,ad)){fd=1,Ec(e,Li(n,e.current)),id=null;return}}catch(t){if(i!==null)throw id=i,t;fd=1,Ec(e,Li(n,e.current)),id=null;return}t.flags&32768?(ea||r===1?e=!0:ld||ad&536870912?e=!1:(cd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Do.current,r!==null&&r.tag===13&&(r.flags|=16384))),sf(t,e)):of(t)}function of(e){var t=e;do{if(t.flags&32768){sf(t,cd);return}e=t.return;var n=yl(t.alternate,t,dd);if(n!==null){id=n;return}if(t=t.sibling,t!==null){id=t;return}id=t=e}while(t!==null);fd===0&&(fd=5)}function sf(e,t){do{var n=bl(e.alternate,e);if(n!==null){n.flags&=32767,id=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){id=e;return}id=e=n}while(e!==null);fd=6,id=null}function cf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do gf();while(Td!==0);if(nd&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===rd&&(id=rd=null,ad=0),Dd=t,Ed=e,Od=n,Ad=a,W=r,lf(e,t,n,s,c,l,f)}}function lf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=vi,ct(e,n,s,r,i,a),Md=null,(n&335544064)===n?(Nd=Ma(e),r=10262):(Nd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Tf(ze,function(){return _f(),null})):(e.callbackNode=null,e.callbackPriority=0),Bl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=V.T,V.T=null,i=se.p,se.p=2,a=nd,nd|=4;try{hu(e,t,n)}finally{nd=a,se.p=i,V.T=r}}Td=1,Bl?jd=Bp(o,e.containerInfo,Nd,ff,pf,df,mf,_f,uf,null,null):(ff(),pf(),mf())}function uf(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function df(){Td===3&&(Td=0,Iu(Dd,Ed),Td=4)}function ff(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=V.T,V.T=null;var i=se.p;se.p=2;var a=nd;nd|=4;try{fu=pu=!1,Mu(t,e,n),n=gp;var o=Hr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Vr(s.ownerDocument.documentElement,s)){if(c!==null&&Ur(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 _=Br(s,h),v=Br(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}}wh=!!hp,gp=hp=null}finally{nd=a,se.p=i,V.T=r}}e.current=t,Td=2}}function pf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=se.p;se.p=2;var i=nd;nd|=4;try{_u(e,t.alternate,t)}finally{nd=i,se.p=r,V.T=n}}Td=3}}function mf(){if(Td===4||Td===3){Td=0;var e=jd;jd=null,Pe();var t=Ed,n=Dd,r=Od,i=W,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,hf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=null),pt(r),n=n.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=V.T,a=se.p,se.p=2,V.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{V.T=n,se.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);Od&3&&gf(),Mf(t),a=t.pendingLanes,r&261930&&a&42?t===Fd?Pd++:(Pd=0,Fd=t):(Pd=0,Fd=null),Nf(0,!1)}}function hf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ka(t)))}function gf(){return jd!==null&&(jd.skipTransition(),jd=null),ff(),pf(),mf(),_f()}function _f(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=pt(Od),r=V.T,a=se.p;try{se.p=32>n?32:n,V.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,nd&6)throw Error(i(331));var c=nd;if(nd|=4,Zu(o.current),Uu(o,o.current,s,n),nd=c,Nf(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{se.p=a,V.T=r,hf(e,t)}}function vf(e,t,n){t=Li(n,t),t=Oc(e.stateNode,t,2),e=mo(e,t,2),e!==null&&(st(e,2),Mf(e))}function yf(e,t,n){if(e.tag===3)vf(e,e,n);else for(;t!==null;){if(t.tag===3){vf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=Li(n,e),n=kc(2),r=mo(t,n,2),r!==null&&(Ac(n,r,t,e),st(r,2),Mf(r));break}}t=t.return}}function bf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;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)||(ud=!0,i.add(n),e=xf.bind(null,e,t,n),t.then(e,e))}function xf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,rd===e&&(ad&n)===n&&(fd===4||fd===3&&(ad&62914560)===ad&&300>Fe()-bd?nd&2?md|=n:Kd(e,0):md|=n,gd===ad&&(gd=0)),Mf(e)}function Sf(e,t){t===0&&(t=at()),e=Si(e,t),e!==null&&(st(e,t),Mf(e))}function Cf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sf(e,n)}function wf(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),Sf(e,n)}function Tf(e,t){return je(e,t)}var Ef=null,Df=null,Of=!1,kf=!1,Af=!1,jf=0;function Mf(e){e!==Df&&e.next===null&&(Df===null?Ef=Df=e:Df=Df.next=e),kf=!0,Of||(Of=!0,zf())}function Nf(e,t){if(!Af&&kf){Af=!0;do for(var n=!1,r=Ef;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-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Rf(r,a))}else a=ad,a=tt(r,r===rd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,Rf(r,a))}r=r.next}while(n);Af=!1}}function Pf(){Ff()}function Ff(){kf=Of=!1;var e=0;jf!==0&&Cp()&&(e=jf);for(var t=Fe(),n=null,r=Ef;r!==null;){var i=r.next,a=If(r,t);a===0?(r.next=null,n===null?Ef=i:n.next=i,i===null&&(Df=n)):(n=r,(e!==0||a&3)&&(kf=!0)),r=i}Td!==0&&Td!==5||Nf(e,!1),jf!==0&&(jf=0)}function If(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=it(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=rd,n=ad,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(od===2||od===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),pt(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=Lf.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(gf()&&e.callbackNode!==n)return null;var r=ad;return r=tt(e,e===rd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Bd(e,r,t),If(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Lf.bind(null,e):null)}function Rf(e,t){if(gf())return null;Bd(e,t,!0)}function zf(){Op(function(){nd&6?je(Le,Pf):Ff()})}function Bf(){if(jf===0){var e=Fa;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),jf=e}return jf}function Vf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:fn(e)}function Hf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Vf((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?Vf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(jf!==0){var e=new FormData(i,o);ec(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ec(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Uf=0;Uf<li.length;Uf++){var Wf=li[Uf];ui(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}ui(ti,`onAnimationEnd`),ui(ni,`onAnimationIteration`),ui(ri,`onAnimationStart`),ui(`dblclick`,`onDoubleClick`),ui(`focusin`,`onFocus`),ui(`focusout`,`onBlur`),ui(ii,`onTransitionRun`),ui(ai,`onTransitionStart`),ui(oi,`onTransitionCancel`),ui(si,`onTransitionEnd`),H(`onMouseEnter`,[`mouseout`,`mouseover`]),H(`onMouseLeave`,[`mouseout`,`mouseover`]),H(`onPointerEnter`,[`pointerout`,`pointerover`]),H(`onPointerLeave`,[`pointerout`,`pointerover`]),Ft(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ft(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ft(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ft(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ft(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ft(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`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(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(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){hi(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){hi(e)}i.currentTarget=null,a=c}}}}function Jf(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(Qf(t,e,2,!1),n.add(r))}function Yf(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var Xf=`_reactListening`+Math.random().toString(36).slice(2);function Zf(e){if(!e[Xf]){e[Xf]=!0,Nt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Yf(t,!1,e),Yf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xf]||(t[Xf]=!0,Yf(`selectionchange`,!1,t))}}function Qf(e,t,n,r){switch(jh(t)){case 2:var i=Th;break;case 8:i=Eh;break;default:i=Dh}n=i.bind(null,t,n,e),i=void 0,!Cn||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 $f(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=Dt(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}bn(function(){var r=a,i=hn(n),s=[];a:{var c=ci.get(e);if(c!==void 0){var l=Pn,u=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:l=Qn;break;case`focusin`:u=`focus`,l=Un;break;case`focusout`:u=`blur`,l=Un;break;case`beforeblur`:case`afterblur`:l=Un;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=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=tr;break;case ti:case ni:case ri:l=Wn;break;case si:l=nr;break;case`scroll`:case`scrollend`:l=In;break;case`wheel`:l=rr;break;case`copy`:case`cut`:case`paste`:l=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=$n;break;case`submit`:l=er;break;case`toggle`:case`beforetoggle`:l=ir}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=xn(m,p),g!=null&&d.push(ep(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!==mn&&(u=n.relatedTarget||n.fromElement)&&(Dt(u)||u[yt]))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?Dt(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=Vn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=$n,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:kt(c),h=l==null?u:kt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Dt(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,np):null,c!==null&&rp(s,u,c,d,!1),l!==null&&f!==null&&rp(s,f,l,d,!0)))}a:{if(c=r?kt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=wr;else if(vr(c)){if(Tr)_=Pr;else{_=Mr;var v=jr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&ln(r.elementType)&&(_=wr):_=Nr;if(_&&=_(e,r)){yr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?kt(r):window,e){case`focusin`:(vr(v)||v.contentEditable===`true`)&&(Gr=v,Kr=r,qr=null);break;case`focusout`:qr=Kr=Gr=null;break;case`mousedown`:Jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Jr=!1,Yr(s,n,i);break;case`selectionchange`:if(Wr)break;case`keydown`:case`keyup`:Yr(s,n,i)}var y;if(or)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 mr?fr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(lr&&n.locale!==`ko`&&(mr||b!==`onCompositionStart`?b===`onCompositionEnd`&&mr&&(y=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,mr=!0)),v=tp(r,b),0<v.length&&(b=new Kn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=pr(n),y!==null&&(b.data=y)))),(y=cr?hr(e,n):gr(e,n))&&(b=tp(r,`onBeforeInput`),0<b.length&&(v=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Hf(s,e,r,n,i)}qf(s,t)})}function ep(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tp(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=xn(e,n),i!=null&&r.unshift(ep(e,i,a)),i=xn(e,t),i!=null&&r.push(ep(e,i,a))),e.tag===3)return r;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(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=xn(n,a),l!=null&&o.unshift(ep(n,l,c))):i||(l=xn(n,a),l!=null&&o.push(ep(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,ap=/\u0000|\uFFFD/g;function op(e){return(typeof e==`string`?e:``+e).replace(ip,`
-`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||an(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&an(e,``+r);else return;break;case`className`:Ut(e,`class`,r);break;case`tabIndex`:Ut(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ut(e,n,r);break;case`style`:cn(e,r,o);return;case`data`:if(t!==`object`){Ut(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=fn(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`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=pn);return;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`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=fn(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`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Ht(e,`popover`,r);break;case`xlinkActuate`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ht(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=un.get(n)||n,Ht(e,n,r);else return}Bt=!0}function lp(e,t,n,r,a,o){switch(n){case`style`:cn(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`)an(e,r);else if(typeof r==`number`||typeof r==`bigint`)an(e,``+r);else return;break;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=pn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Pt.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[vt]||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}Bt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ht(e,n,r)}return}Bt=!0}function up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`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:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`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:cp(e,t,r,d,n,null)}}$t(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`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:cp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&tn(e,!!r,n,!0):tn(e,!!r,t,!1);return;case`textarea`:for(s in Jf(`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:cp(e,t,s,c,n,null)}rn(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:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`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:cp(e,t,u,r,n,null)}return;default:if(ln(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(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)||cp(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&&(Bt=!0),o=m;break;case`name`:m!==f&&(Bt=!0),a=m;break;case`checked`:m!==f&&(Bt=!0),u=m;break;case`defaultChecked`:m!==f&&(Bt=!0),d=m;break;case`value`:m!==f&&(Bt=!0),s=m;break;case`defaultValue`:m!==f&&(Bt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&cp(e,t,p,m,r,f)}}Qt(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)||cp(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&&(Bt=!0),p=o;break;case`defaultValue`:o!==l&&(Bt=!0),c=o;break;case`multiple`:o!==l&&(Bt=!0),s=o;default:o!==l&&cp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?tn(e,!!n,n?[]:``,!1):tn(e,!!n,t,!0)):tn(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:cp(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&&(Bt=!0),p=a;break;case`defaultValue`:a!==o&&(Bt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&cp(e,t,s,a,r,o)}nn(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:cp(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&&(Bt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:cp(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)&&cp(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:cp(e,t,u,p,r,m)}return;default:if(ln(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(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||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(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||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){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&&pp(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&&pp(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 hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(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 yp(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 bp(e,t,n,r){return n=_p(n).createElement(e),n[_t]=r,n[vt]=t,up(n,e,t),jt(n),n}function xp(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 Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(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),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)G(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,G(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[wt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&G(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(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 Np(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 Pp(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 Fp(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 Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(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`&&(Rp(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(zp.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 Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.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},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.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(Jp(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=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.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,Kp(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,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=_(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=_p(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(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}Up.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Xp,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||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(e,t,n,r,i){var a=Dt(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 am(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)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Xp,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),am(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),am(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=_(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(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.addEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(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`:um(n),Et(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(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[wt])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=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(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 _m(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 vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(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 xm(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 Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(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 wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===pn&&(e.onclick=null),Et(e)}function G(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Et(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=se.d;se.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=Ot(e);t!==null&&t.tag===5&&t.type===`form`?nc(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=Zt(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`),up(t,`link`,e),jt(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="`+Zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Zt(n.imageSizes)+`"]`)):i+=`[href="`+Zt(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`);up(o,`link`,e),t===`style`&&(o[Tt]=!0,o.onload=o.onerror=function(){Mt(o)}),jt(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="`+Zt(r)+`"][href="`+Zt(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`),up(r,`link`,e),jt(r),n.head.appendChild(r)}}}function Lm(e,t,n){Om.S(e,t,n);var r=jm;if(r&&e){var i=At(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`);jt(c),up(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=At(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`),jt(a),up(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=At(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`),jt(a),up(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=ge.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=At(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=At(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=At(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="`+Zt(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[Tt]){r.loading=1;return}}else t=e.createElement(`link`),t[Tt]=!0,t.onload=t.onerror=Mt.bind(null,t),up(t,`link`,n),jt(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="`+Zt(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~="`+Zt(n.href)+`"]`);if(r)return t.instance=r,jt(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`),jt(r),up(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,jt(o),o;r=Um(n),(a=Tm.get(a))&&Ym(r,a),o=(e.ownerDocument||e).createElement(`link`),jt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),up(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,jt(a),a):(r=n,(a=Tm.get(o))&&(r=w({},n),Xm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),jt(a),up(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[wt]||a[_t]||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,jt(a);return}a=t.ownerDocument||t,r=Um(r),(i=Tm.get(i))&&Ym(r,i),a=a.createElement(`link`),jt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(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*mp());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:ce,_currentValue2:ce,_threadCount:0};function gh(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=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(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 _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Di(3,null,null,t),e.current=a,a.stateNode=e,t=Oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},uo(a),e}function vh(e){return e?(e=Ti,e):Ti}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=po(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=mo(e,r,t),n!==null&&(zd(n,e,t),ho(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=Si(e,67108864);t!==null&&zd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Id();t=ft(t);var n=Si(e,t);n!==null&&zd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=2,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Eh(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=8,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.indexOf(e)){for(;i!==null;){var a=Ot(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Mf(a),!(nd&6)&&(Sd=Fe()+500,Nf(0,!1))}}break;case 31:case 13:s=Si(a,2),s!==null&&zd(s,a,2),Wd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=hn(e),Ah(e)}var kh=null;function Ah(e){if(kh=null,e=Dt(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 kh=e,null}function jh(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(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`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 Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(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=Ot(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(e){var t=Dt(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,ht(e.priority,function(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ch(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 Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mn=r,n.target.dispatchEvent(r),mn=null}else return t=Ot(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=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(Ah(r||n)===null)continue;break}var a=Ot(n);a!==null&&(e.splice(t,3),t-=3,ec(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.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[vt]||null;if(typeof a==`function`)o||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){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 Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Id(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Wd(),t[yt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`19.3.0`));se.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 tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:V,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{We=ng.inject(tg),Ge=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;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=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[yt]=t.current,Zf(e),new Qh(t)}})),FY=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=PY()}))();function IY({active:e,summary:t,generating:n,writing:r,resetting:i=!1,scroll:a,children:o}){let s=(0,U.useRef)(null),c=(0,U.useRef)(null),[l,u]=(0,U.useState)(!1);(0,U.useEffect)(()=>{if(!e||!n||!s.current){u(!1);return}let t=!1,r=()=>u(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,r()});return i.observe(s.current),document.addEventListener(`visibilitychange`,r),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,r)}},[e,n]);let d=tY(a,c,e&&r&&l);return(0,U.useLayoutEffect)(()=>{r&&d.resume()},[r]),(0,U.useLayoutEffect)(()=>{i&&a.current&&(a.current.scrollTop=0)},[i,a]),(0,W.jsxs)(`div`,{ref:s,className:`note-reading-frame`,hidden:!e,"data-resetting":i,"data-generating":n,"data-active":e&&n&&l,children:[(0,W.jsx)(`div`,{className:`note-reading-clip`,children:(0,W.jsx)(wv,{enabled:e,children:(0,W.jsx)(`section`,{ref:a,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,W.jsx)(`div`,{ref:c,className:`note-page-width note-notes-body`,children:o})})})}),d.behind&&(0,W.jsxs)(`button`,{type:`button`,className:`workspace-button note-latest`,"data-testid":`note-summary-latest`,onClick:d.latest,children:[(0,W.jsx)(af,{size:12,"aria-hidden":`true`}),G(`Latest`)]})]})}function LY(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`&&e.status!==`stopped`||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}}X_.transition.check,X_.transition.uncheck,{...X_.spring.checkPop},X_.transition.check.delay,X_.transition.popOut,X_.spring.bounce;var RY=X_.scale.icon,zY=2,BY=`path, line, polyline, polygon, circle, ellipse, rect`,VY=new WeakMap,HY=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function UY(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?HY.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 WY=({kind:e,animation:t})=>e===`dot`||t===`pop`;function GY(e,t){return WY(t)?e:e.flatMap(e=>{let t=e.matches(BY)?[e]:Array.from(e.querySelectorAll(BY));return t.length>0?t:[e]})}function KY(e,t,n){let r=VY.get(e);if(!r){let i=WY(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:RY,blur:t.kind===`dot`?0:zY,progress:fa(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:HY.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>UY(e,a,t)),VY.set(e,r)}return r.reduce=n,r}function qY(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(BY))]){let t=VY.get(e);t&&(t.controls?.stop(),t.unsubscribe(),UY(e,t,1),VY.delete(e))}}function JY(e,t,n,r,i){let a=e.map(e=>{let a=!VY.has(e),o=KY(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=fd(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function YY(...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 XY=`[data-slot="toast-icon"]`;function ZY(e){return e.querySelector(XY)?.firstElementChild??null}function QY(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var $Y=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function eX(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 $Y)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 tX(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:eX(ZY(e)),title:eX(QY(e,`aria-labelledby`)),description:eX(QY(e,`aria-describedby`))}}var nX=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}},rX=[`success`,`error`];function iX(e,t,n,r,i){qY([e]);let a=rX.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(JY(GY([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;aX(e,(n+t.duration/2)*1e3,r)}}function aX(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 oX(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 sX=e=>av(e);function cX(e,t,n,r){let{duration:i,easing:a}=sX(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 lX(e,t){let{duration:n,easing:r}=sX(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function uX(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 dX(e,t,n,r,i,a,o){if(!e)return;o||uX(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,QY(e,`aria-labelledby`)],[t.description,QY(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&cX(oX(e,n,t),!1,i,o),r&&a&&lX(r,i))}if(!n)return;t.icon&&s&&cX(oX(e,t.icon,t),!0,i,o);let l=ZY(e);l&&iX(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var fX=.5,pX=48,mX=360,hX=80,gX=100;function _X(e){let t=fX*Math.abs(e);return Math.sign(e)*(t*pX/(pX+t))}function vX(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function yX(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 bX(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 xX(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:_X(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function SX(e,t){let{x:n,y:r}=xX(e,t),i=Math.max(0,...t.map(t=>vX(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 CX(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=gX),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?vX(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(mX,Math.max(hX,s/o)):mX;return{duration:Math.round(c),easing:`linear`}}var wX=`data-animate-ui-toast-progress`,TX=`data-animate-ui-toast-progress-bar`,EX=`
-:where([${wX}]) {
+`+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:jh(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,St=`__reactResources$`+ht,W=`__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=bm(e);e!==null;){if(n=e[gt])return n;e=bm(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[St];return t||=e[St]={hoistableStyles:new Map,hoistableScripts:new Map},t}function kt(e){e[W]=!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)&&(Gd(),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:Xn,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}})),Gn=jn(w({},Mn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={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`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=jn(w({},Pn,{key:function(e){if(e.key){var t=Kn[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`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,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}})),Qn=jn(w({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=jn(w({},Mn,{submitter:0})),er=jn(w({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=jn(w({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=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})),rr=jn(w({},Mn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=xn&&`CompositionEvent`in window,or=null;xn&&`documentMode`in document&&(or=document.documentMode);var sr=xn&&`TextEvent`in window&&!or,cr=xn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=Dn(),En=Tn=wn=null,pr=!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 cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){hn?gn?gn.push(r):gn=[r]:hn=r,t=tp(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){qf(e,0)}function Sr(e){if(Jt(Dt(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(xn){var Tr;if(xn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,mn(e)),yn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(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)||!Fr(e[i],t[i]))return!1}return!0}function Lr(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 Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(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=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(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=Lr(e.document)}return t}function Hr(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 Ur=xn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(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}),Kr&&Ir(Kr,r)||(Kr=r,r=tp(Gr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};xn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`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(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Nt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Pd;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 pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=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)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[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&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(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 Ci(e){if(50<Fd)throw Fd=0,Id=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(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 Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(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 ki(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 Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=th(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ei(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return ji(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Ei(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Ei(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Ei(19,n,t,a),e.elementType=F,e.lanes=o,e;case ee:case te:return e=a|32,e=Ei(30,n,t,e),e.elementType=te,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=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:Oe(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:Oe(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;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,Wi=1<<32-Ke(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[gt]=e,t[_t]=r,n){case`dialog`:Jf(`cancel`,t),Jf(`close`,t);break;case`iframe`:case`object`:case`embed`:Jf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)Jf(Gf[n],t);break;case`source`:Jf(`error`,t);break;case`img`:case`image`:case`link`:Jf(`error`,t),Jf(`load`,t);break;case`details`:Jf(`toggle`,t);break;case`input`:Jf(`invalid`,t),Qt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Jf(`invalid`,t);break;case`textarea`:Jf(`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||sp(t.textContent,n)?(r.popover!=null&&(Jf(`beforetoggle`,t),Jf(`toggle`,t)),r.onScroll!=null&&Jf(`scroll`,t),r.onScrollEnd!=null&&Jf(`scrollend`,t),r.onClick!=null&&(t.onclick=fn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||xp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else t===27?(t=Qi,Ap(e.type)?(e=vm,vm=null,Qi=e):Qi=t):Qi=Zi?_m(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=ue(null),da=null,fa=null;function pa(e,t,n){fe(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,de(ua)}function ha(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 ga(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),ha(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),ha(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),ha(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 _a(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;Fr(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=[hh]:e.push(hh))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=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()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(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 Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=Vf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(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 za=H.S;H.S=function(e,t){if(xd=Pe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=Df;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=Df;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=ue(null);function Va(){var e=Ba.current;return e===null?nd.pooledCache:e}function Ha(e,t){t===null?fe(Ba,Ba.current):fe(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ya(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,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(fn,fn);else{if(e=nd,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,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(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 ao(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=Oi(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=Mi(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),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(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=Pi(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=ji(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=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case D:return t=Pi(t,e.mode,n),t.return=e,t;case L:return t=Xa(t),f(e,t,n)}if(ae(t)||ie(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===M)return f(e,xa(e,t),n);io(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=Xa(n),p(e,t,n,r)}if(ae(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===M)return p(e,t,xa(e,n),r);io(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=Xa(r),m(e,t,n,r,i)}if(ae(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===M)return m(e,t,n,xa(t,r),i);io(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),$i&&Ki(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 $i&&Ki(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)}),$i&&Ki(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),$i&&Ki(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 $i&&Ki(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)}),$i&&Ki(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),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(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=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Xa(o),_(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(ie(o)){if(l=ie(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,no(o),c);if(o.$$typeof===M)return _(e,r,xa(e,o),c);io(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=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(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 fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(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 ho(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 go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!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?(id&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!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:co=!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),fd|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=ue(null),So=ue(0);function Co(e,t){e=ud,fe(So,e),fe(xo,t),ud=e|t.baseLanes}function wo(){fe(So,ud),fe(xo,xo.current)}function To(){ud=So.current,de(xo),de(So)}var Eo=ue(null),Do=null;function Oo(e){var t=e.alternate;fe(No,No.current&1),fe(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){fe(No,No.current),fe(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(fe(No,No.current),fe(Eo,e),Do===null&&(Do=e)):jo()}function jo(){fe(No,No.current),fe(Eo,Eo.current)}function Mo(e){de(Eo),Do===e&&(Do=null),de(No)}var No=ue(0);function Po(e,t){fe(Eo,Eo.current),fe(No,t)}function Fo(e){de(No),de(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mm(n)||hm(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 Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?mc:hc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){H.H=pc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&va(e)&&(Mc=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=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=gc,o=t(n,r)}while(Ho);return o}function $o(){var e=H.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?mc:hc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===ne)return;if(e.$$typeof===M)return ba(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.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=as(),Ro.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]=z;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(is(),zo,e)}function fs(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?(Lo&f)===f:(id&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===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(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,Ro.lanes|=p,fd|=p;f=u.action,Uo&&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,Ro.lanes|=f,fd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(Mc=!0,d&&(n=Fa,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 ps(e){var t=is(),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);Fr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Lo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function ys(e){var t=xi(e,2);t!==null&&Bd(t,e,2)}function bs(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ge(!0);try{n()}finally{Ge(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,zo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(uc(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,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(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),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),H.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if($i){var n=nd.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;)if(!a||(i=_m(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=_m(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=sc.bind(null,Ro,r),r.dispatch=n,r=bs(!1),a=lc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(is(),zo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=is(),n=zo;if(n!==null)return js(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.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 Fs(){return is().memoizedState}function Is(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=is().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(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 Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Lo&1073741824&&!(id&261930)?e.memoizedState=t:(e.memoizedState=n,e=Rd(),Ro.lanes|=e,fd|=e,n)}function Xs(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(id&261930)?(Mc=!0,e.memoizedState=n):(e=Rd(),Ro.lanes|=e,fd|=e,t):(e=Ys(e,n,r),Fr(e,t)||(Mc=!0),e)}function Zs(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,lc(e,!1,t,n);try{var c=i(),l=H.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Ra(c,r),Ld(e)):cc(e,t,r,Ld(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Ld())}finally{oe.p=a,o!==null&&s.types!==null&&(o.types=s.types),H.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,se,n===null?Qs:function(){return tc(e),n(r)})}function ec(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:us,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Ld())}function nc(){return ba(hh)}function rc(){return is().memoizedState}function ic(){return is().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ld();e=fo(n);var r=po(t,e,n);r!==null&&(Bd(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=bi(e,t,n,r),n!==null&&(Bd(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Ld())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(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,Fr(s,o))return yi(e,t,i,0),nd===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Bd(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Vf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Bd(t,e,2)}function uc(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function dc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var pc={readContext:ba,use:cs,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},mc={readContext:ba,use:cs,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){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=oc.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=sc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(rs(),e,t)},useTransition:function(){var e=bs(!1);return e=Zs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));id&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=nd.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return rs().memoizedState=ac.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(is(),zo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(is(),zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=is();return zo===null?Ys(n,e,t):Xs(n,zo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs};function _c(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 vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ld(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Bd(t,e,n),mo(t,e,n))}};function yc(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?!Ir(n,r)||!Ir(i,a):!0}function bc(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&&vc.enqueueReplaceState(t,t.state,null)}function xc(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 Sc(e){mi(e)}function Cc(e){console.error(e)}function wc(e){mi(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(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 Dc(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=fo(e),e.tag=3,e}function kc(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(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Qd():n.alternate===null&&dd===0&&(dd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),xf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?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)),xf(e,r,a)),!1}throw Error(i(435,n.tag))}return xf(e,r,a),Qd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Dc(e.stateNode,r,a),ho(e,a),dd!==4&&(dd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),_d===null?_d=[o]:_d.push(o),dd!==4&&(dd=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),ho(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`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Pc(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 ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(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 zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return oo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(ko(t),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||_a(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(xo.current===null){if(r=nd,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Bd(r,e,s),jc;Qd()}t=Vc(e,t,n)}else e=o.treeContext,Qi=_m(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(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 Wc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!Mc?(ts(e,t,a),cl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(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&&vc.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),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=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(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)&&bc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=co||yc(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,uo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(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)&&bc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=co||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(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,Uc(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=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return sa(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ua()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=hm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Oo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(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 Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function el(e,t,n){return oo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),hm(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,la({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||_a(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(xo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=ut(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Bd(r,e,a),jc;return mm(o)||Qd(),el(e,t,c)}return mm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=_m(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function il(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 al(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 ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(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=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(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&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(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=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function ul(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:ye(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Oo(t),e=cl(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=V(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(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,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),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=qc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=qc(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(Qi=_m(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Vm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=bp(t.type,t.pendingProps,he.current,t)):t.memoizedState=Vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&$i&&(r=t.stateNode=Cm(t.type,t.pendingProps,he.current),Zi=t,ta=!0,a=Qi,Ap(t.type)?(vm=a,Qi=_m(r.firstChild)):Qi=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=dm(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=_m(r.firstChild),ta=!1,a=!0)),a||ra(t)),ye(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,xp(a,o)?r=null:s!==null&&xp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),hh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=fm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Zc(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=nd,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),Nc(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:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?nh(t,r):nh(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(Yd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rh(t)){if(Yd())e.flags|=8192;else throw Za=qa,Ga}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,gd|=t)}function gl(e,t){if(!$i)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 _l(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 vl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(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&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=pe.current,oa(t)?ia(t,e):(e=Cm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(be(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=pe.current,oa(t))ia(t,o);else{var s=_p(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(up(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&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=he.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||sp(e.nodeValue,n)),e||ra(t,!0)}else e=_p(e).createTextNode(r),e[gt]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(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 sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(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 sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(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),hl(t,t.updateQueue),_l(t),null);case 4:return ve(),e===null&&Zf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ma(t.type),_l(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(dd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Pe()>Sd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return _l(t),null}else 2*Pe()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,gl(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=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,fe(Eo,t),fe(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(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(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),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(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(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 ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&de(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function bl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),ve();break;case 26:case 27:case 5:be(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&de(Ba);break;case 24:ma(Ea)}}function xl(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){bf(t,t.return,e)}}function Sl(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){bf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){bf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){bf(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){bf(e,t,n)}}function Tl(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=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Hp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Up(e);f(e.child,!1,om,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){bf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){bf(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){bf(e,t,n)}else n.current=null}}function Dl(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++)cm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&cm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&lm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(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){bf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;fp(r,e.type,n,t),r[_t]=t}catch(t){bf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ap(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(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&&Ap(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 Il(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)),Dl(e,r),zt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode,t=null)),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,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),zt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);up(t,r,n),t[gt]=e,t[_t]=n}catch(t){bf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ip(o);r.push(s),s.view&&(a=!0)}else a||Ip(o).view&&(a=!0);zl=!0,Np(o,Wl===0?t:t+`_`+Wl,n),Wl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Pp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||ql(e.child,t),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(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=pi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||zd(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;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=pi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,zd(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?zd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),zd(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(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,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Ip(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&&Np(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Lp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||zd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,hp=wh,e=Vr(e),Hr(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(gp={focusedElem:e,selectionRange:r},wh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,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=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){bf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)um(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:um(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=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Gl(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,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){bf(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(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{bo(e,t)}catch(e){bf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wf.bind(null,n),gm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(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){bf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,zt=!0}catch(t){bf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Mp(s,!0):Mp(e.stateNode,!1)}catch(t){bf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(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 xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(We&&typeof We.onCommitFiberUnmount==`function`)try{We.onCommitFiberUnmount(Ue,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Ap(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),wm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),zt=!0}catch(e){bf(n,t,e)}else try{xu.removeChild(n.stateNode),zt=!0}catch(e){bf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,jp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Xh(e)):jp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xh(e)}catch(e){bf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xh(e)}catch(e){bf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Tf.bind(null,e,t);t.then(r,r)}})}function ku(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(Ap(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(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}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(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=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(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(iu)e.stateNode=bp(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[W]||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`))),up(r,t,n),r[gt]=e,kt(r),t=r;break a;case`link`:if(o=$m(`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),up(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=$m(`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),up(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 iu||eh(o,e.type,e.stateNode)}else e.stateNode=Jm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||eh(o,e.type,e.stateNode):Jm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{rn(t,``),zt=!0}catch(t){bf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(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){bf(e,e.return,t)}}break;case 3:if(zt=!1,Qm=null,o=Au,Au=Om(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(t){bf(e,e.return,t)}su&&(su=!1,Nu(e)),zt=!1;break;case 4:a=ou,ou=iu,r=Bt(),o=Au,Au=Om(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,zt&&du&&(fu=!0),zt=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=Pe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Bt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&pi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&zt&&(e.flags|=4),du=o,zt=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(rn(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){bf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wh=!0,t.reset(),wh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Pp(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`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(zd(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&wm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(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:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){bf(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++)yo(l[i],c)}catch(e){bf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||eh(Om(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(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&&Oa(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(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&&Oa(a)));break;case 12:if(a&2048){Vu(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){bf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(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&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(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:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(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:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ah(n,e)):oh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&ah(n,e));break;case 3:case 4:var r=Au;Au=Om(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(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 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];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(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:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,rd=null,id=0,ad=0,od=null,sd=!1,cd=!1,ld=!1,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,yd=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,jd=null,Md=null,Nd=null,Pd=null,Fd=0,Id=null;function Ld(){return td&2&&id!==0?id&-id:H.T===null?pt():Vf()}function Rd(){if(hd===0){if(!(id&536870912)||$i){var e=Ze;Ze<<=1,!(Ze&3932160)&&(Ze=262144),hd=e}else hd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),hd}function zd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Hp(di(e.memoizedProps,n))),Nd===null&&(Nd=[]),Nd.push(t.bind(null,r))}}function Bd(e,t,n){(e===nd&&(ad===2||ad===9)||e.cancelPendingCommit!==null)&&(qd(e,0),Wd(e,id,hd,!1)),ot(e,n),td&2&&e===nd||(e===nd&&(!(td&2)&&(pd|=n),dd===4&&Wd(e,id,hd,!1)),Nf(e))}function Vd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||tt(e,t),a=r?tf(e,t):$d(e,t,!0),o=r;do{if(a===0){cd&&!r&&Wd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ud(n))a=$d(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=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(qd(c,s).flags|=256),s=$d(c,s,!1),s!==2&&s!==6){if(ld&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){qd(e,0),Wd(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:Wd(r,t,hd,!sd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-Pe(),10<a)){if(Wd(r,t,hd,!sd),et(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=wp(Hd.bind(null,r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,`Throttled`,-0,0),a);break a}Hd(r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,null,-0,0)}break}}while(1);Nf(e)}function Hd(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},Bl=null,qu(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=uh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?bd-Pe():(a&4194048)===a?xd-Pe():0,m=ch(d,m),m!==null)?(Od=a,e.cancelPendingCommit=m(lf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Wd(e,a,o,!l)):lf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ud(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(!Fr(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 Wd(e,t,n,r){t=nt(e,t),t&=~md,t&=~pd,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 Gd(){return td&6?!0:(Pf(0,!1),!1)}function Kd(){if(rd!==null){if(ad===0)var e=rd.return;else e=rd,fa=da=null,ns(e),eo=null,to=0,e=rd;for(;e!==null;)bl(e.alternate,e),e=e.return;rd=null}}function qd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Tp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Kd(),nd=e,rd=n=Oi(e.current,null),id=t,ad=0,od=null,sd=!1,cd=tt(e,t),ld=!1,gd=hd=md=pd=fd=dd=0,vd=_d=null,yd=!1,ud=nt(e,t),vi(),n}function Jd(e,t){Ro=null,H.H=pc,t===Wa||t===Ka?(t=Qa(),ad=3):t===Ga?(t=Qa(),ad=4):ad=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,od=t,rd===null&&(dd=1,Tc(e,Ii(t,e.current)))}function Yd(){var e=Eo.current;return e===null?!0:(id&4194048)===id?Do===null:(id&62914560)===id||id&536870912?e===Do:!1}function Xd(){var e=H.H;return H.H=pc,e===null?pc:e}function Zd(){var e=H.A;return H.A=$u,e}function Qd(){dd=4,sd||(id&4194048)!==id&&Eo.current!==null||(cd=!0),!(fd&134217727)&&!(pd&134217727)||nd===null||Wd(nd,id,hd,!1)}function $d(e,t,n){var r=td;td|=2;var i=Xd(),a=Zd();(nd!==e||id!==t)&&(Cd=null,qd(e,t)),t=!1;var o=dd;a:do try{if(ad!==0&&rd!==null){var s=rd,c=od;switch(ad){case 8:Kd(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=ad;if(ad=0,od=null,of(e,s,c,l),n&&cd){o=0;break a}break;default:l=ad,ad=0,od=null,of(e,s,c,l)}}ef(),o=dd;break}catch(t){Jd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,td=r,H.H=i,H.A=a,rd===null&&(nd=null,id=0,vi()),o}function ef(){for(;rd!==null;)rf(rd)}function tf(e,t){var n=td;td|=2;var r=Xd(),a=Zd();nd!==e||id!==t?(Cd=null,Sd=Pe()+500,qd(e,t)):cd=tt(e,t);a:do try{if(ad!==0&&rd!==null){t=rd;var o=od;b:switch(ad){case 1:ad=0,od=null,of(e,t,o,1);break;case 2:case 9:if(Ja(o)){ad=0,od=null,af(t);break}t=function(){ad!==2&&ad!==9||nd!==e||(ad=7),Nf(e)},o.then(t,t);break a;case 3:ad=7;break a;case 4:ad=5;break a;case 7:Ja(o)?(ad=0,od=null,af(t)):(ad=0,od=null,of(e,t,o,7));break;case 5:var s=null;switch(rd.tag){case 26:s=rd.memoizedState;case 5:case 27:var c=rd;if(s?rh(s):c.stateNode.complete){ad=0,od=null;var l=c.sibling;if(l!==null)rd=l;else{var u=c.return;u===null?rd=null:(rd=u,sf(u))}break b}}ad=0,od=null,of(e,t,o,5);break;case 6:ad=0,od=null,of(e,t,o,6);break;case 8:Kd(),dd=6;break a;default:throw Error(i(462))}}nf();break}catch(t){Jd(e,t)}while(1);return fa=da=null,H.H=r,H.A=a,td=n,rd===null?(nd=null,id=0,vi(),dd):0}function nf(){for(;rd!==null&&!Me();)rf(rd)}function rf(e){var t=dl(e.alternate,e,ud);e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,id);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,id);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:bl(n,t),t=rd=ki(t,ud),t=dl(n,t,ud)}e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function of(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(Ac(e,i,t,n,id)){dd=1,Tc(e,Ii(n,e.current)),rd=null;return}}catch(t){if(i!==null)throw rd=i,t;dd=1,Tc(e,Ii(n,e.current)),rd=null;return}t.flags&32768?($i||r===1?e=!0:cd||id&536870912?e=!1:(sd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),cf(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){cf(t,sd);return}e=t.return;var n=vl(t.alternate,t,ud);if(n!==null){rd=n;return}if(t=t.sibling,t!==null){rd=t;return}rd=t=e}while(t!==null);dd===0&&(dd=5)}function cf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,rd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){rd=e;return}rd=e=n}while(e!==null);dd=6,rd=null}function lf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do _f();while(Td!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(rd=nd=null,id=0),Dd=t,Ed=e,Od=n,Ad=a,jd=r,uf(e,t,n,s,c,l,f)}}function uf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=_i,st(e,n,s,r,i,a),Nd=null,(n&335544064)===n?(Pd=ja(e),r=10262):(Pd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Ef(Re,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=H.T,H.T=null,i=oe.p,oe.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,oe.p=i,H.T=r}}Td=1,zl?Md=Bp(o,e.containerInfo,Pd,pf,mf,ff,hf,vf,df,null,null):(pf(),mf(),hf())}function df(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function ff(){Td===3&&(Td=0,Fu(Dd,Ed),Td=4)}function pf(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=H.T,H.T=null;var i=oe.p;oe.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=gp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(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 _=zr(s,h),v=zr(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}}wh=!!hp,gp=hp=null}finally{td=a,oe.p=i,H.T=r}}e.current=t,Td=2}}function mf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=H.T,H.T=null;var r=oe.p;oe.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,oe.p=r,H.T=n}}Td=3}}function hf(){if(Td===4||Td===3){Td=0;var e=Md;Md=null,Ne();var t=Ed,n=Dd,r=Od,i=jd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,gf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=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=Nd,o=Pd,Pd=null,i!==null&&(Nd=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);Od&3&&_f(),Nf(t),a=t.pendingLanes,r&261930&&a&42?t===Id?Fd++:(Fd=0,Id=t):(Fd=0,Id=null),Pf(0,!1)}}function gf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function _f(){return Md!==null&&(Md.skipTransition(),Md=null),pf(),mf(),hf(),vf()}function vf(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=ft(Od),r=H.T,a=oe.p;try{oe.p=32>n?32:n,H.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Pf(0,!1),We&&typeof We.onPostCommitFiberRoot==`function`)try{We.onPostCommitFiberRoot(Ue,o)}catch{}return!0}finally{oe.p=a,H.T=r,gf(e,t)}}function yf(e,t,n){t=Ii(n,t),t=Dc(e.stateNode,t,2),e=po(e,t,2),e!==null&&(ot(e,2),Nf(e))}function bf(e,t,n){if(e.tag===3)yf(e,e,n);else for(;t!==null;){if(t.tag===3){yf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=Ii(n,e),n=Oc(2),r=po(t,n,2),r!==null&&(kc(n,r,t,e),ot(r,2),Nf(r));break}}t=t.return}}function xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;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)||(ld=!0,i.add(n),e=Sf.bind(null,e,t,n),t.then(e,e))}function Sf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(id&n)===n&&(dd===4||dd===3&&(id&62914560)===id&&300>Pe()-bd?td&2?md|=n:qd(e,0):md|=n,gd===id&&(gd=0)),Nf(e)}function Cf(e,t){t===0&&(t=it()),e=xi(e,t),e!==null&&(ot(e,t),Nf(e))}function wf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cf(e,n)}function Tf(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),Cf(e,n)}function Ef(e,t){return Ae(e,t)}var Df=null,Of=null,kf=!1,Af=!1,jf=!1,Mf=0;function Nf(e){e!==Of&&e.next===null&&(Of===null?Df=Of=e:Of=Of.next=e),Af=!0,kf||(kf=!0,Bf())}function Pf(e,t){if(!jf&&Af){jf=!0;do for(var n=!1,r=Df;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,zf(r,a))}else a=id,a=et(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,zf(r,a))}r=r.next}while(n);jf=!1}}function Ff(){If()}function If(){Af=kf=!1;var e=0;Mf!==0&&Cp()&&(e=Mf);for(var t=Pe(),n=null,r=Df;r!==null;){var i=r.next,a=Lf(r,t);a===0?(r.next=null,n===null?Df=i:n.next=i,i===null&&(Of=n)):(n=r,(e!==0||a&3)&&(Af=!0)),r=i}Td!==0&&Td!==5||Pf(e,!1),Mf!==0&&(Mf=0)}function Lf(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=nd,n=id,n=et(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ad===2||ad===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=Rf.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 Rf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=id;return r=et(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vd(e,r,t),Lf(e,Pe()),e.callbackNode!=null&&e.callbackNode===n?Rf.bind(null,e):null)}function zf(e,t){if(_f())return null;Vd(e,t,!0)}function Bf(){Op(function(){td&6?Ae(Ie,Ff):If()})}function Vf(){if(Mf===0){var e=Pa;e===0&&(e=Xe,Xe<<=1,!(Xe&261888)&&(Xe=256)),Mf=e}return Mf}function Hf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:dn(e)}function Uf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Hf((i[_t]||null).action),o=r.submitter;o&&(t=(t=o[_t]||null)?Hf(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(Mf!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Wf=0;Wf<ci.length;Wf++){var G=ci[Wf];li(G.toLowerCase(),`on`+(G[0].toUpperCase()+G.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`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 Gf=`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(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(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){mi(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){mi(e)}i.currentTarget=null,a=c}}}}function Jf(e,t){var n=t[yt];n===void 0&&(n=t[yt]=new Set);var r=e+`__bubble`;n.has(r)||(Qf(t,e,2,!1),n.add(r))}function Yf(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var Xf=`_reactListening`+Math.random().toString(36).slice(2);function Zf(e){if(!e[Xf]){e[Xf]=!0,jt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Yf(t,!1,e),Yf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xf]||(t[Xf]=!0,Yf(`selectionchange`,!1,t))}}function Qf(e,t,n,r){switch(jh(t)){case 2:var i=Th;break;case 8:i=Eh;break;default:i=Dh}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 $f(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=si.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=Zn;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=er;break;case ei:case ti:case ni:l=Un;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=Fn;break;case`wheel`:l=nr;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=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}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(ep(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=Qn,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,np):null,c!==null&&rp(s,u,c,d,!1),l!==null&&f!==null&&rp(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 _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&cn(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Dt(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)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 pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=Dn()):(wn=i,Tn=`value`in wn?wn.value:wn.textContent,pr=!0)),v=tp(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=tp(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Uf(s,e,r,n,i)}qf(s,t)})}function ep(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tp(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(ep(e,i,a)),i=bn(e,t),i!=null&&r.push(ep(e,i,a))),e.tag===3)return r;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(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(ep(n,l,c))):i||(l=bn(n,a),l!=null&&o.push(ep(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,ap=/\u0000|\uFFFD/g;function op(e){return(typeof e==`string`?e:``+e).replace(ip,`
+`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(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`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(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&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`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`:Jf(`beforetoggle`,e),Jf(`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 lp(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&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`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 up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`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:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`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:cp(e,t,r,d,n,null)}}Qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`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:cp(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 Jf(`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:cp(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:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`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:cp(e,t,u,r,n,null)}return;default:if(cn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(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)||cp(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&&cp(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)||cp(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&&cp(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:cp(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&&cp(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:cp(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:cp(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)&&cp(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:cp(e,t,u,p,r,m)}return;default:if(cn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(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||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(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||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){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&&pp(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&&pp(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 hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(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 yp(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 bp(e,t,n,r){return n=_p(n).createElement(e),n[gt]=r,n[_t]=t,up(n,e,t),kt(n),n}function xp(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 Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(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),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[W]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tm(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(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 Np(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 Pp(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 Fp(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 Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(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`&&(Rp(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+=ih(f),u>sh){s.length=o;break}f=new Promise(zp.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 Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.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},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.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(Jp(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=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.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,Kp(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,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=_(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=_p(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(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}Up.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Xp,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||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(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 am(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)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Xp,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),am(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),am(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=_(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(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.addEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(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`:um(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(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[W])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=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(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 _m(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 vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(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 xm(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 Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(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 wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===fn&&(e.onclick=null),wt(e)}function Tm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var Em=new Map,Dm=new Set;function Om(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 km=oe.d;oe.d={f:Am,r:jm,D:Pm,C:Fm,L:Im,m:Lm,X:zm,S:Rm,M:Bm};function Am(){var e=km.f(),t=Gd();return e||t}function jm(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):km.r(e)}var Mm=typeof document>`u`?null:document;function Nm(e,t,n){var r=Mm;if(r&&typeof t==`string`&&t){var i=Xt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Dm.has(i)||(Dm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),up(t,`link`,e),kt(t),r.head.appendChild(t)))}}function Pm(e){km.D(e),Nm(`dns-prefetch`,e,null)}function Fm(e,t){km.C(e,t),Nm(`preconnect`,e,t)}function Im(e,t,n){km.L(e,t,n);var r=Mm;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=Hm(e);break;case`script`:a=Km(e)}if(!(Em.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Em.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Um(a))||t===`script`&&r.querySelector(qm(a))))){var o=r.createElement(`link`);up(o,`link`,e),t===`style`&&(o[Ct]=!0,o.onload=o.onerror=function(){At(o)}),kt(o),r.head.appendChild(o)}}}function Lm(e,t){km.m(e,t);var n=Mm;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=Km(e)}if(!Em.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Em.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qm(a)))return}r=n.createElement(`link`),up(r,`link`,e),kt(r),n.head.appendChild(r)}}}function Rm(e,t,n){km.S(e,t,n);var r=Mm;if(r&&e){var i=Ot(r).hoistableStyles,a=Hm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Um(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Em.get(a))&&Xm(e,n);var c=o=r.createElement(`link`);kt(c),up(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,Ym(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zm(e,t){km.X(e,t);var n=Mm;if(n&&e){var r=Ot(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),kt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t){km.M(e,t);var n=Mm;if(n&&e){var r=Ot(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),kt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t,n,r){var a=(a=he.current)?Om(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=Hm(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=Hm(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(Um(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Em.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},Em.set(e,o)),Gm(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=Km(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 Hm(e){return`href="`+Xt(e)+`"`}function Um(e){return`link[rel="stylesheet"][`+e+`]`}function Wm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Gm(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),up(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 Km(e){return`[src="`+Xt(e)+`"]`}function qm(e){return`script[async]`+e}function Jm(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),up(r,`style`,a),Ym(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hm(n.href);var o=e.querySelector(Um(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=Wm(n),(a=Em.get(a))&&Xm(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}),up(o,`link`,r),t.state.loading|=4,Ym(o,n.precedence,e),t.instance=o;case`script`:return o=Km(n.src),(a=e.querySelector(qm(o)))?(t.instance=a,kt(a),a):(r=n,(a=Em.get(o))&&(r=w({},n),Zm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),up(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,Ym(r,n.precedence,e));return t.instance}function Ym(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 Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qm=null;function $m(e,t,n){if(Qm===null){var r=new Map,i=Qm=new Map;i.set(n,r)}else i=Qm,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[W]||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 eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function th(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 nh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function rh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ih(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ah(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ih(t),e.suspenseyImages.push(t)),e=dh.bind(e),t.decode().then(e,e))}function oh(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=Hm(r.href),a=t.querySelector(Um(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=uh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=Wm(r),(i=Em.get(i))&&Xm(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(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=uh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sh=0;function ch(e,t){return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sh===0&&(sh=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ph(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function uh(){this.count--,lh(this)}function dh(){this.imgCount--,lh(this)}var fh=null;function ph(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fh=new Map,t.forEach(mh,e),fh=null,uh.call(e))}function mh(e,t){if(!(t.state.loading&4)){var n=fh.get(e);if(n)var r=n.get(null);else{n=new Map,fh.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=uh.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 hh={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function gh(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 _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},lo(a),e}function vh(e){return e?(e=wi,e):wi}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=fo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=po(e,r,t),n!==null&&(Bd(n,e,t),mo(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Bd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Ld();t=dt(t);var n=xi(e,t);n!==null&&Bd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=2,Dh(e,t,n,r)}finally{oe.p=a,H.T=i}}function Eh(e,t,n,r){var i=H.T;H.T=null;var a=oe.p;try{oe.p=8,Dh(e,t,n,r)}finally{oe.p=a,H.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.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}Nf(a),!(td&6)&&(Sd=Pe()+500,Pf(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Bd(s,a,2),Gd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=mn(e),Ah(e)}var kh=null;function Ah(e){if(kh=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 kh=e,null}function jh(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 Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`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 Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(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&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(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(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){Ch(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 Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(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&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=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(Ah(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.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||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[_t]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){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 Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Ld(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Gd(),t[vt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`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 tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:H,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{Ue=ng.inject(tg),We=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;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=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[vt]=t.current,Zf(e),new Qh(t)}})),NY=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=MY()}))();function PY({active:e,summary:t,generating:n,writing:r,resetting:i=!1,scroll:a,children:o}){let s=(0,U.useRef)(null),c=(0,U.useRef)(null),[l,u]=(0,U.useState)(!1);(0,U.useEffect)(()=>{if(!e||!n||!s.current){u(!1);return}let t=!1,r=()=>u(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,r()});return i.observe(s.current),document.addEventListener(`visibilitychange`,r),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,r)}},[e,n]);let d=$J(a,c,e&&r&&l);return(0,U.useLayoutEffect)(()=>{r&&d.resume()},[r]),(0,U.useLayoutEffect)(()=>{i&&a.current&&(a.current.scrollTop=0)},[i,a]),(0,G.jsxs)(`div`,{ref:s,className:`note-reading-frame`,hidden:!e,"data-resetting":i,"data-generating":n,"data-active":e&&n&&l,children:[(0,G.jsx)(`div`,{className:`note-reading-clip`,children:(0,G.jsx)(Jh,{enabled:e,children:(0,G.jsx)(`section`,{ref:a,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,G.jsx)(`div`,{ref:c,className:`note-page-width note-notes-body`,children:o})})})}),d.behind&&(0,G.jsxs)(`button`,{type:`button`,className:`workspace-button note-latest`,"data-testid":`note-summary-latest`,onClick:d.latest,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`}),W(`Latest`)]})]})}function FY(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`&&e.status!==`stopped`||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}}ch.transition.check,ch.transition.uncheck,{...ch.spring.checkPop},ch.transition.check.delay,ch.transition.popOut,ch.spring.bounce;var IY=ch.scale.icon,LY=2,RY=`path, line, polyline, polygon, circle, ellipse, rect`,zY=new WeakMap,BY=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function VY(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?BY.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 HY=({kind:e,animation:t})=>e===`dot`||t===`pop`;function UY(e,t){return HY(t)?e:e.flatMap(e=>{let t=e.matches(RY)?[e]:Array.from(e.querySelectorAll(RY));return t.length>0?t:[e]})}function WY(e,t,n){let r=zY.get(e);if(!r){let i=HY(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:IY,blur:t.kind===`dot`?0:LY,progress:_o(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:BY.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>VY(e,a,t)),zY.set(e,r)}return r.reduce=n,r}function GY(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(RY))]){let t=zY.get(e);t&&(t.controls?.stop(),t.unsubscribe(),VY(e,t,1),zY.delete(e))}}function KY(e,t,n,r,i){let a=e.map(e=>{let a=!zY.has(e),o=WY(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=_f(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function qY(...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 JY=`[data-slot="toast-icon"]`;function YY(e){return e.querySelector(JY)?.firstElementChild??null}function XY(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var ZY=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function QY(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 ZY)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 $Y(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:QY(YY(e)),title:QY(XY(e,`aria-labelledby`)),description:QY(XY(e,`aria-describedby`))}}var eX=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}},tX=[`success`,`error`];function nX(e,t,n,r,i){GY([e]);let a=tX.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(KY(UY([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;rX(e,(n+t.duration/2)*1e3,r)}}function rX(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 iX(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 aX=e=>_h(e);function oX(e,t,n,r){let{duration:i,easing:a}=aX(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 sX(e,t){let{duration:n,easing:r}=aX(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function cX(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 lX(e,t,n,r,i,a,o){if(!e)return;o||cX(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,XY(e,`aria-labelledby`)],[t.description,XY(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&oX(iX(e,n,t),!1,i,o),r&&a&&sX(r,i))}if(!n)return;t.icon&&s&&oX(iX(e,t.icon,t),!0,i,o);let l=YY(e);l&&nX(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var uX=.5,dX=48,fX=360,pX=80,mX=100;function hX(e){let t=uX*Math.abs(e);return Math.sign(e)*(t*dX/(dX+t))}function gX(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function _X(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 vX(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 yX(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:hX(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function bX(e,t){let{x:n,y:r}=yX(e,t),i=Math.max(0,...t.map(t=>gX(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 xX(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=mX),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?gX(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(fX,Math.max(pX,s/o)):fX;return{duration:Math.round(c),easing:`linear`}}var SX=`data-animate-ui-toast-progress`,CX=`data-animate-ui-toast-progress-bar`,wX=`
+:where([${SX}]) {
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] > [${wX}]) { opacity: 1; }
-:where([${TX}]) {
+:where([data-expanded] > [${SX}]) { opacity: 1; }
+:where([${CX}]) {
position: absolute;
inset-inline: 0;
bottom: 0;
@@ -194,10 +194,10 @@ Error generating stack: `+e.message+`
opacity: 0.25;
transform-origin: left;
}
-:where([${TX}][data-tinted]) { opacity: 0.8; }
-:where([${TX}]:dir(rtl)) { transform-origin: right; }
-`,DX=U.createContext(void 0);function OX(){let e=U.useContext(DX);if(!e)throw Error(VH(73));return e}var kX=0;function AX(e){return kX+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${kX}`}function jX(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 MX(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 NX(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 PX={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},FX=class extends vU{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:MX(e.toasts)},{},PX)}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=NX(this.state.toasts,t);r.toasts=e,r.toastMetadata=MX(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=PX.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||AX(`toast`);if(e.id){let t=PX.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(NX(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),PX.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=PX.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=PX.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)),PX.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=PX.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=NX(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=jX(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=jX(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=jX(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??=vz.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=Fz(e);Nz(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=PX.expandedOrOutOfFocus(this.state)?void 0:vz.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:MX(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=Mz(wB(this.state.viewport));if(!this.state.viewport||!Nz(this.state.viewport,t)||!Xz(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=PX.toasts(this.state),r=PX.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()}},IX=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=cz(()=>new FX({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return gz(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,W.jsxs)(DX.Provider,{value:a,children:[(0,W.jsx)(LX,{store:a,timeout:n,limit:r}),t]})};function LX(e){let{store:t,timeout:n,limit:r}=e;return Y(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var RX=`--toast-frontmost-height`,zX=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=OX(),c=yz(),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=RL(e),n=wB(e);function r(t){t.key===`F6`&&Fz(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,Mz(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){Fz(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=Fz(n),i=Mz(wB(e));r!==t&&Nz(e,r)&&Xz(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return fB(dB(t,`keydown`,r),dB(t,`blur`,i,!0),dB(t,`focus`,a,!0),dB(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&&Fz(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||Xz(Mz(wB(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!Nz(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:{[RX]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,W.jsx)(DB,{onFocus:b}),M=qV(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,W.jsxs)(U.Fragment,{children:[j,a,j]})}]});return(0,W.jsxs)(U.Fragment,{children:[j,M,!m&&y.length>0&&(0,W.jsx)(`div`,{style:EB,children:y.map(e=>(0,W.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,W.jsx)(`div`,{children:e.title}),(0,W.jsx)(`div`,{children:e.description})]},e.id))})]})}),BX=U.createContext(void 0);function VX(){let e=U.useContext(BX);if(!e)throw Error(VH(66));return e}function HX(e,t){let n=(t??RL(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 UX(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 WX=`--toast-index`,GX=`--toast-offset-y`,KX=`--toast-height`,qX=`--toast-swipe-movement-x`,JX=`--toast-swipe-movement-y`,YX=`data-swipe-direction`,XX={...zz,swipeDirection(e){return e?{[YX]:e}:null}},ZX=40,QX=10,$X=.5,eZ=1,tZ=`${iH},${aH}`,nZ=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=OX(),[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),ee=U.useRef(null),z=d.useState(`toastIndex`,n.id),te=d.useState(`toastVisibleIndex`,n.id),ne=d.useState(`toastOffsetY`,n.id),re=d.useState(`focused`),ie=d.useState(`expanded`);YH({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let B=yB((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?gh.flushSync(a):a()});Y(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),ae({x:0,y:0})),k.current=n.id,B())},[B,n.id,n.transitionStatus]);function ae(e){L.current=e,y(e)}Y(()=>()=>{ee.current?.abort()},[]);function oe(e,t){let n=e=>e>0?e**$X:-(Math.abs(e)**$X),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 V=yB(e=>{if(e.pointerId!==R.current)return;R.current=null,ee.current?.abort(),ee.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){ae({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(UX(e,i,a)>ZX){o=e;break}o?(p(o),d.closeToast(n.id)):(ae({x:t.x,y:t.y}),p(void 0))});function se(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),Pz(Fz(e.nativeEvent),`button,a,input,textarea,[role="button"],${tZ}`)))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=HX(t);j.current=n,x(n),ae({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,ee.current?.abort();let r=new AbortController;ee.current=r;let i=wB(t);i.addEventListener(`pointerup`,V,{signal:r.signal}),i.addEventListener(`pointercancel`,V,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function ce(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)>=eZ){_(!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=UX(d,a,o),p(d));else{let e=M.current,t=UX(e,c,s);t>ZX?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=QX&&(P.current=!0)}let f=oe(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),ae({x:m,y:h})}function le(e){if(e.key===`Escape`){if(!O.current||!Nz(O.current,Mz(wB(O.current))))return;d.closeToast(n.id)}}U.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&Nz(e,Fz(t))&&t.preventDefault()}return dB(e,`touchmove`,t,{passive:!1})},[u]);function ue(){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,[qX]:`${e}px`,[JX]:`${t}px`}}let de=n.priority===`high`,fe={role:de?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":de&&!re?!0:void 0,onPointerDown:u?se:void 0,onPointerMove:u?ce:void 0,onPointerUp:u?V:void 0,onPointerCancel:u?V:void 0,onKeyDown:le,inert:VW(n.limited),style:{...ue(),[WX]:n.transitionStatus===`ending`?z:te,[GX]:`${ne}px`,[KX]:n.height?`${n.height}px`:void 0}},pe=U.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:B,visibleIndex:te,expanded:ie}),[n,C,T,B,te,ie]),me={transitionStatus:n.transitionStatus,expanded:ie,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},he=qV(`div`,e,{ref:[t,O],state:me,stateAttributesMapping:XX,props:[fe,s]});return(0,W.jsx)(BX.Provider,{value:pe,children:he})}),rZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=VX(),l=U.useRef(null);return Y(()=>{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]),qV(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function iZ(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(iZ)}function aZ(e){return U.isValidElement(e)&&iZ(e.props.children)}function oZ(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=VX(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:TV(e),children:s,type:r.type,setId:o}}function sZ(e,t,n){let r=aZ(e);return Y(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var cZ=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}=oZ(a,o,`description`);return sZ(qV(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),lZ=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}=oZ(a,o,`title`);return sZ(qV(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),uZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=OX(),{toast:l,expanded:u}=VX(),[d,f]=U.useState(!1),{getButtonProps:p,buttonRef:m}=OW({disabled:a,native:o}),h={type:l.type};return qV(`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]})}),dZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=VX(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=OW({disabled:a,native:o}),f={type:c.type},p=qV(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return aZ(p)?p:null}),fZ=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=fH({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,W.jsxs)(U.Fragment,{children:[l,c&&gh.createPortal(n,c)]})}),pZ=U.forwardRef(function(e,t){return(0,W.jsx)(fZ,{ref:t,...e})}),mZ=U.createContext(void 0);function hZ(){let e=U.useContext(mZ);if(e===void 0)throw Error(VH(84));return e}var gZ=U.forwardRef(function(e,t){let{toast:n,...r}=e,i=OX(),a=n.positionerProps??hz,{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??sH,style:b,...x}=r,[S,C]=U.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=VL(c)?c:null,D=oG({anchor:E,positionMethod:l,floatingRootContext:kU({open:!0,onOpenChange:pz,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=fG(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[WX]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,W.jsx)(mZ.Provider,{value:D,children:O})}),_Z=U.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=hZ();return qV(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function vZ(){let e=OX(),t=e.useState(`toasts`);return U.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function yZ(){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||AX(`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 bZ=Tq({Action:()=>YZ,Arrow:()=>QZ,Close:()=>JZ,Content:()=>GZ,Description:()=>KZ,Portal:()=>XZ,Positioner:()=>ZZ,Provider:()=>LZ,Root:()=>zZ,Title:()=>qZ,Viewport:()=>RZ,createToastManager:()=>eQ,useToastManager:()=>$Z}),xZ=`0.75rem`,SZ=`0.75rem`,CZ=_ee.tooltip,wZ=X_.scale.toast,TZ=X_.blur.surface,EZ=X_.transition.fade,DZ=5e3,OZ=150,kZ=`animate-ui-base-ui-toast`,AZ=U.createContext({timeout:DZ,progressBar:!0});function jZ(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function MZ(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function NZ(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function PZ(){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<OZ}}function FZ(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,...jZ(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?CZ:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...jZ(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) * ${xZ}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${SZ} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=TZ,n||(y=`${m*100}%`,b=`calc(${g} * ${wZ})`)),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 IZ(e,t){return typeof e==`function`?e(t):e}function LZ({progressBar:e=!0,...t}){let n=t.timeout??DZ,r=U.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,W.jsx)(AZ,{value:r,children:(0,W.jsx)(IX,{...t})})}var RZ=zX;function zZ(e){return(0,W.jsx)(cv,{children:(0,W.jsx)(BZ,{...e})})}function BZ({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=dv(),p=tv(),m=U.use(AZ),h=d.positionerProps!=null,g=av(ev(n??(h?fv:jq))),_=av(ev(r??(h?n??fv:kq))),v=av(ev(EZ)),y=MZ(u.swipeDirection),b=NZ(y),x=PZ(),S=p.stagger.stack*1e3,C=U.useRef(null),w=U.useRef(null);U.useLayoutEffect(()=>{let e=C.current,t=e&&ZY(e);t&&iX(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,dX(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,W.jsx)(nX,{watch:[d.type,d.title,d.description],take:()=>tX(C.current),onUpdate:E,children:(0,W.jsxs)(nZ,{...u,ref:YY(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=yX(e))},onPointerMove:e=>{s?.(e),w.current&&bX(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{...FZ(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?SX(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?CX(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`},...IZ(t,e)}},children:[a,D&&!h&&(0,W.jsx)(WZ,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function VZ(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var HZ=`--animate-ui-toast-progress-color`,UZ=`data-tinted`;function WZ({duration:e,running:t,ending:n}){let r=U.useRef(null),i=U.useRef(null),a=U.useSyncExternalStore(VZ,()=>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(HZ,u),n.setAttribute(UZ,``)):(n.style.removeProperty(HZ),n.removeAttribute(UZ)),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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`style`,{href:kZ,precedence:`animate-ui`,children:EX}),(0,W.jsx)(`div`,{[wX]:``,"aria-hidden":`true`,children:(0,W.jsx)(`div`,{ref:r,[TX]:``})})]}):null}function GZ({style:e,transition:t,...n}){let r=dv(),i=PZ(),a=tv().stagger.stack*1e3,o=av(ev(t??EZ));return(0,W.jsx)(rZ,{...n,style:t=>({...jZ([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...IZ(e,t)})})}var KZ=cZ,qZ=lZ,JZ=uZ,YZ=dZ,XZ=pZ,ZZ=gZ,QZ=_Z,$Z=vZ,eQ=yZ,tQ=new Set,nQ=new Set,rQ=0;async function iQ(e,t,n,r=()=>t){rQ++;let i=Promise.resolve().then(n);nQ.add(i);try{let t=await i,n=r(t);if(n.length)for(let t of tQ)t({kind:e,ids:n});return t}finally{nQ.delete(i)}}async function aQ(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 oQ;function sQ(e){oQ&&(e??document.body).append(oQ)}var cQ,lQ=bZ.createToastManager();async function uQ(e,t){return(await dQ([e],t,!1)).includes(e)}async function dQ(e,t,n=!0){let r=await iQ(`trash`,e,()=>aQ(e,e=>window.yogurt.meetings.trash(e)),e=>e.done),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)&&cQ?.({ids:r.trashed,from:t,bulk:n,error:i}),r.done}function fQ({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)(0),[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),m=(0,U.useRef)(null),h=(0,U.useRef)(null),g=(0,U.useRef)(null),_=(0,U.useRef)(null),v=(0,U.useRef)([]),y=(0,U.useRef)(!1),b=(0,U.useRef)(!1);(0,U.useEffect)(()=>{a(!1),s(void 0),d(!1),b.current=!1},[e]),(0,U.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>p(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&&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:wd.micro,easing:wd.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?wd.base:wd.askExit,C=wd.ease,w=wd.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:wd.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,U.useEffect)(()=>()=>v.current.forEach(e=>e.cancel()),[]),(0,U.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(),sQ(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),sQ(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,W.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,W.jsx)(`div`,{ref:g,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,W.jsxs)(`div`,{ref:_,className:`chat-panel-contents`,children:[u&&(0,W.jsx)(`p`,{role:`alert`,children:G(`Yogurt couldn't answer that.`)}),(0,W.jsx)(pY,{id:o??``,pendingDraftKey:`meeting/${e}`,loadError:u,panel:!0,recording:t,onSelect:e=>{s(e),l(e=>e+1)},onClose:()=>S(),onExpand:o?()=>{Bv(),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,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`button`,{id:`meeting-ask`,ref:m,"data-testid":`chat-open`,className:`workspace-button chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:Nm()?G(`Ask Yogurt (⌘J)`):`${G(`Ask Yogurt`)} (${jm(`⌘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,W.jsx)(Md,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:G(`Ask Yogurt`)}),(0,W.jsx)(`kbd`,{"aria-hidden":`true`,children:jm(`⌘J`)})]}),n&&(0,gh.createPortal)(C,n)]})}function pQ(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 mQ=60,hQ=220,gQ=class{target=0;level=0;step(e){let t=this.target>this.level?mQ:hQ;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 _Q(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 vQ=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),yQ=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,bQ=3,xQ=3,SQ=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function CQ({height:e,className:t,testId:n,paused:r=!1,bars:i=5,stillBars:a=!1}){let o=(0,U.useRef)(null),s=i*bQ+(i-1)*xQ;return(0,U.useEffect)(()=>{let t=o.current;if(!t)return;let n=new gQ,c=SQ(),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=_Q({reduced:u,paused:r,level:n.level,bars:i,stillBars:a}),m=vQ(p,e-bQ);(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=bQ+Math.round(t*(e-bQ));c.globalAlpha=p.alpha[n],c.beginPath();let i=(s-p.heights.length*bQ-(p.heights.length-1)*xQ)/2;c.roundRect(i+n*6,(e-r)/2,bQ,r,bQ/2),c.fill()}),c.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},m=performance.now(),h=window.yogurt.widget.onLevel(e=>{n.target=yQ(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,W.jsx)(`canvas`,{ref:o,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:s,height:e}})}function wQ({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(pQ(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,W.jsx)(`time`,{"data-testid":t,className:n,"aria-label":G(`Recorded time`),children:r})}var TQ=U.createContext(void 0);function EQ(e){let t=U.useContext(TQ);if(t===void 0&&!e)throw Error(VH(72));return t}var DQ={...DU,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},OQ=class extends vU{constructor(e,t,n){let r=new dU;super(kQ(e,r,t,n),AQ(r),DQ)}setOpen=(e,t)=>{aU(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,tB(rB,e))}};function kQ(e,t,n,r=!1){return{...xU(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function AQ(e){return{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jQ=dz(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=$H((e,t)=>new OQ({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),sU(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=cU(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,tB(mae))},[m,t,p]),Y(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),U.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,tB(uB))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,W.jsxs)(TQ.Provider,{value:p,children:[l&&(0,W.jsx)(eU,{handle:l,store:p}),T&&(0,W.jsx)(MQ,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function MQ({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=zH(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=IH(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=U.useMemo(()=>PV(a.reference,i.reference),[a.reference,i.reference]);return lU(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??hz}),null}var NQ=U.createContext(void 0);function PQ(){return U.useContext(NQ)}var FQ=`data-base-ui-tooltip-trigger`;function IQ(e){let t=Fz(e);return VL(t)?t:null}var LQ=fz(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=EQ(!0),m=OU(a)??p;if(!m)throw Error(VH(82));let h=jW(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=U.useRef(null),b=u??0,{registerTrigger:x,isMountedByThisTrigger:S}=oU(h,y,m,{payload:o,closeOnClick:l,closeDelay:b}),C=PQ(),{activeIdRef:w,delayRef:T,isInstantPhase:E,hasProvider:D}=_ae(v,{open:_}),O=IU(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=gB(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=U.useRef(!1),F=yz(),I=U.useRef(void 0);function L(){return D&&w.current!=null?0:c??C??600}function R(e){let t=y.current;if(!t||!e)return!1;let n=Pz(e,`[${FQ}]`);return n!==null&&n!==t&&Nz(t,n)}function ee(e){let t=R(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let z=zU(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?tW():null,restMs:L,delay(){return u==null&&D?{close:Qz(T.current,`close`)}:{close:b}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),te=jU(v,{enabled:!A}).reference,ne=e=>{let t=P.current,n=IQ(e),r=ee(n),i=y.current,a=i&&n&&Nz(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,tB(iB,e));else if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&jz(I.current)){let t=()=>{P.current||j.current||m.select(`open`)||m.setOpen(!0,tB(iB,e,i))},n=L();n===0?(F.clear(),t()):F.start(n,t)}},re=m.useState(`appliedTriggerProps`,S||M!==`none`);return qV(`button`,e,{state:{open:_},ref:[t,x,y],props:[z,te,re,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(IQ(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Gz]:A?``:void 0,[FQ]:A?void 0:``},f],stateAttributesMapping:Vz})}),RQ=U.createContext(void 0);function zQ(){let e=U.useContext(RQ);if(e===void 0)throw Error(VH(70));return e}var BQ=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return EQ().useState(`mounted`)||n?(0,W.jsx)(RQ.Provider,{value:n,children:(0,W.jsx)(fZ,{ref:t,...r})}):null}),VQ=U.createContext(void 0);function HQ(){let e=U.useContext(VQ);if(e===void 0)throw Error(VH(71));return e}var UQ=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=sH,style:g,..._}=e,v=EQ(),y=zQ(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=oG({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=fG(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,W.jsx)(VQ.Provider,{value:D,children:O})}),WQ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=EQ(),{side:s,align:c}=HQ(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);YH({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),LU(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return qV(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[ZH,f,dG(d),a],stateAttributesMapping:Wz})});function GQ({active:e,edited:t,disabled:n,hasSummary:r,onClose:i,onSubmit:a}){let[o,s]=(0,U.useState)(``);(0,U.useLayoutEffect)(()=>{e&&s(``)},[e]);let c=G(r?`Regenerate summary`:`Generate summary`);return(0,W.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),n||a(o.trim())},children:[(0,W.jsxs)(`div`,{className:`summary-regenerate-heading`,children:[(0,W.jsx)(`span`,{children:c}),(0,W.jsx)(`button`,{type:`button`,className:`ghost-btn workspace-icon`,"aria-label":G(`Close`),onClick:i,children:(0,W.jsx)(hm,{size:14,"aria-hidden":`true`})})]}),(0,W.jsx)(`input`,{autoFocus:!0,"data-testid":`note-regenerate-input`,className:`summary-regenerate-input`,"aria-label":G(`Note for the summary`),placeholder:G(`Add a note, like shorter or in Spanish`),maxLength:240,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.key===`Enter`&&e.nativeEvent.isComposing&&e.preventDefault()}}),t&&(0,W.jsx)(`p`,{id:`note-rewrite-description`,"data-testid":`note-confirm`,className:`summary-regenerate-warning`,children:G(`Your edits to the summary will be replaced.`)}),(0,W.jsx)(`div`,{className:`summary-regenerate-actions`,children:(0,W.jsx)(`button`,{"data-testid":`note-write-again-confirm`,type:`submit`,disabled:n,className:`workspace-button primary`,children:G(r?`Regenerate`:`Generate summary`)})})]})}function KQ({hasSummary:e,hasContent:t,recording:n,busy:r,downloading:i,trashed:a}){if(!(a||!e&&!t))return{label:G(e?`Regenerate summary`:`Generate summary`),reason:n?G(`Available after recording`):i?G(`Waiting for Yogurt AI to download`):r?G(`Writing the summary`):void 0}}function qQ({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a,generation:o,hasSummary:s,edited:c,rewriteOpen:l,setRewriteOpen:u,onWriteAgain:d}){let[f,p]=(0,U.useState)(!1),m=kd(l&&o?`rewrite`:f),[h,g]=(0,U.useState)(!1),_=(0,U.useRef)(null),v=(0,U.useRef)(null),y=(0,U.useRef)(null),b=(e=!0)=>{p(!1),u(!1),e&&v.current?.focus({preventScroll:!0})};(0,U.useEffect)(()=>{o||u(!1)},[!!o]),(0,U.useEffect)(()=>{if(l&&_.current?.querySelector(`input`)?.focus({preventScroll:!0}),!f&&!l){m.value||g(!1);return}l||y.current?.focus();let e=e=>{_.current?.contains(e.target)||b(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[f,l,m.value]);let x=e=>{let t=Array.from(_.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),p(!1),v.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`&&p(!1)},S=e=>{p(!1),e()},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 disabled:opacity-50 disabled:hover:bg-transparent`;return(0,W.jsxs)(`div`,{ref:_,className:`relative`,children:[(0,W.jsx)(`button`,{ref:v,"data-testid":`note-menu-button`,"aria-haspopup":l?`dialog`:`menu`,"aria-expanded":!!f||l,"aria-label":G(`More`),title:G(`More`),onClick:e=>{l?b():p(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},className:`ghost-btn workspace-icon`,children:(0,W.jsx)(Vf,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),m.value===`rewrite`?(0,W.jsx)(`div`,{role:`dialog`,"data-testid":`note-regenerate`,"aria-label":G(s?`Regenerate summary`:`Generate summary`),"aria-describedby":c?`note-rewrite-description`:void 0,...m.props,"data-anchor":`end`,className:`menu-entry summary-regenerate`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),b())},children:(0,W.jsx)(GQ,{active:l,hasSummary:s,edited:c,disabled:!o||!!o.reason,onClose:b,onSubmit:e=>{o&&!o.reason&&(b(),d(e))}})},`rewrite`):m.value&&(0,W.jsx)(`div`,{"data-testid":`note-menu`,...m.props,role:`menu`,"data-anchor":`end`,"aria-label":G(`More`),onKeyDown:x,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-max min-w-60 max-w-[calc(100vw-32px)] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:h&&i?i(()=>{p(!1),v.current?.focus()}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`button`,{ref:y,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>S(n),className:C,children:[(0,W.jsx)(zp,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Rename`)]}),i&&(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{g(!0),requestAnimationFrame(()=>_.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:C,children:[(0,W.jsx)($f,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,W.jsx)(`span`,{className:`flex-1`,children:G(`Add to folder`)}),(0,W.jsx)(kf,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),o&&(0,W.jsxs)(jQ,{disabled:!o.reason,children:[(0,W.jsxs)(LQ,{delay:180,closeOnClick:!1,role:`menuitem`,"data-testid":`note-write-again`,"aria-disabled":!!o.reason,"aria-description":o.reason,onClick:()=>{o.reason||(p(!1),u(!0))},className:`${C} whitespace-nowrap aria-disabled:opacity-50 aria-disabled:hover:bg-transparent`,children:[(0,W.jsx)(qp,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),o.label]}),(0,W.jsx)(BQ,{children:(0,W.jsx)(UQ,{side:`left`,align:`center`,sideOffset:6,collisionPadding:12,className:`z-[80]`,children:(0,W.jsx)(WQ,{role:`tooltip`,className:`rounded-md border border-line bg-float px-2 py-1 text-xs whitespace-nowrap text-ink shadow-[var(--shadow)]`,children:o.reason})})})]}),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>S(()=>{v.current?.focus(),r()}),className:`${C} text-danger`,children:[(0,W.jsx)(am,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,W.jsxs)(`span`,{className:`flex flex-col`,children:[G(a?`Delete forever`:`Delete note`),e&&(0,W.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Stop the recording first`)}),t&&(0,W.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Finish saving first`)})]})]})]})},`menu`)]})}function JQ({testId:e,warningTestId:t,className:n=``,children:r}){return(0,W.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,W.jsx)(sm,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function YQ({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 iQ(`delete`,[e],()=>window.yogurt.meetings.delete(e),t=>t===`deleted`||t===`missing`?[e]:[]).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,W.jsxs)(qJ,{testId:`delete-confirm`,role:`alertdialog`,title:G(`Delete “{title}” forever?`,{title:t}),description:Pm({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,W.jsx)(JQ,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,W.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.`)})}),(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:G(`Delete forever`)}),(0,W.jsx)(KJ,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`workspace-button`,children:G(`Cancel`)})]})]})}function XQ(e){return e.status===`waiting`||e.status===`writing`?e.enhanced!=null&&!/[\p{L}\p{N}]/u.test(e.draft)?`rewriting`:e.draft?`streaming`:`waiting`:e.enhanced==null?e.status===`failed`?`failed`:e.status===`empty`?`empty`:e.status===`stopped`?`stopped`:`saved`:`saved`}function ZQ(e,t){let n=e?XQ(e):`saved`,r=e?.meetingId,[i,a]=(0,U.useState)({id:r,presentation:n,fading:!1,resetting:!1});return(i.id!==r||i.presentation!==n)&&a({id:r,presentation:n,resetting:t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`,fading:!t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`}),(0,U.useEffect)(()=>{if(i.resetting){let e=requestAnimationFrame(()=>a(e=>({...e,resetting:!1})));return()=>cancelAnimationFrame(e)}if(!i.fading)return;if(t){a(e=>({...e,fading:!1,resetting:!0}));return}let e=setTimeout(()=>a(e=>({...e,fading:!1,resetting:!0})),wd.micro);return()=>clearTimeout(e)},[i.fading,i.resetting,t,r]),i.resetting||i.fading&&t?`reset`:i.fading?`handoff`:n}var QQ=1e3,$Q=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()},QQ)}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()}},e$=new Set,t$=e=>(e$.add(e),()=>{e.dispose()&&e$.delete(e)}),n$=e=>e.trim().toLowerCase(),r$=(e,t)=>e||t.includes(`@`);function i$(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function a$(e){let t=new Map,n=new Set([`gmail.com`,`outlook.com`,`hotmail.com`,`icloud.com`,`yahoo.com`,`proton.me`,`protonmail.com`,`mail.example`]);for(let r of e){let e=r.p.email?.trim().toLowerCase()??``,i=/^[^\s@]+@([^\s@]+\.[^\s@]+)$/.exec(e),a=i&&!n.has(i[1])?i[1]:``,o=a?a.split(`.`)[0].replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase()):``;t.has(a)||t.set(a,{domain:a,label:o,people:[]}),t.get(a).people.push(r)}return[...t.values()].sort((e,t)=>e.domain?t.domain?e.label.localeCompare(t.label):-1:1)}function o$(e){return e.trim().split(/\s+/).filter(Boolean).filter((e,t,n)=>t===0||t===n.length-1).map(e=>Array.from(e)[0]).join(``).toLocaleUpperCase()}var X;(function(e){e[e.AM=0]=`AM`,e[e.PM=1]=`PM`})(X||={});var s$;(function(e){e[e.SUNDAY=0]=`SUNDAY`,e[e.MONDAY=1]=`MONDAY`,e[e.TUESDAY=2]=`TUESDAY`,e[e.WEDNESDAY=3]=`WEDNESDAY`,e[e.THURSDAY=4]=`THURSDAY`,e[e.FRIDAY=5]=`FRIDAY`,e[e.SATURDAY=6]=`SATURDAY`})(s$||={});var c$;(function(e){e[e.JANUARY=1]=`JANUARY`,e[e.FEBRUARY=2]=`FEBRUARY`,e[e.MARCH=3]=`MARCH`,e[e.APRIL=4]=`APRIL`,e[e.MAY=5]=`MAY`,e[e.JUNE=6]=`JUNE`,e[e.JULY=7]=`JULY`,e[e.AUGUST=8]=`AUGUST`,e[e.SEPTEMBER=9]=`SEPTEMBER`,e[e.OCTOBER=10]=`OCTOBER`,e[e.NOVEMBER=11]=`NOVEMBER`,e[e.DECEMBER=12]=`DECEMBER`})(c$||={});function l$(e,t){e.assign(`day`,t.getDate()),e.assign(`month`,t.getMonth()+1),e.assign(`year`,t.getFullYear())}function u$(e,t){e.assign(`hour`,t.getHours()),e.assign(`minute`,t.getMinutes()),e.assign(`second`,t.getSeconds()),e.assign(`millisecond`,t.getMilliseconds()),e.assign(`meridiem`,t.getHours()<12?X.AM:X.PM)}function d$(e,t){e.imply(`day`,t.getDate()),e.imply(`month`,t.getMonth()+1),e.imply(`year`,t.getFullYear())}function f$(e,t){e.imply(`hour`,t.getHours()),e.imply(`minute`,t.getMinutes()),e.imply(`second`,t.getSeconds()),e.imply(`millisecond`,t.getMilliseconds()),e.imply(`meridiem`,t.getHours()<12?X.AM:X.PM)}var p$={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>h$(e,c$.MARCH,s$.SUNDAY,2),dstEnd:e=>h$(e,c$.OCTOBER,s$.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function m$(e,t,n,r,i=0){let a=0,o=0;for(;o<r;)a++,new Date(e,t-1,a).getDay()===n&&o++;return new Date(e,t-1,a,i)}function h$(e,t,n,r=0){let i=n===0?7:n,a=new Date(e,t-1+1,1,12),o=a.getDay()===0?7:a.getDay(),s;return s=o===i?7:o<i?7+o-i:o-i,a.setDate(a.getDate()-s),new Date(e,t-1,a.getDate(),r)}function g$(e,t,n={}){if(e==null)return null;if(typeof e==`number`)return e;let r=n[e]??p$[e];return r==null?null:typeof r==`number`?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}var _$={day:0,second:0,millisecond:0};function v$(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),`year`in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=r*12)}if(`quarter`in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+e*3);let r=t.quarter-e;r>0&&(t.month=t?.month??0,t.month+=r*3)}if(`month`in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=r*4)}if(`week`in t){let e=Math.floor(t.week);n.setDate(n.getDate()+e*7);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(r*7))}if(`day`in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(r*24))}if(`hour`in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(r*60))}if(`minute`in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(r*60))}if(`second`in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(r*1e3))}if(`millisecond`in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function y$(e){let t={};for(let n in e)t[n]=-e[n];return t}var b$=class e{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(t){return new e(t)}static fromInput(t,n){if(t instanceof Date)return e.fromDate(t);let r=t?.instant??new Date,i=g$(t?.timezone,r,n);return new e(r,i)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){e||=new Date;let n=-e.getTimezoneOffset();return n-(t??this.timezoneOffset??n)}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}},Z=class e{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply(`day`,n.getDate()),this.imply(`month`,n.getMonth()+1),this.imply(`year`,n.getFullYear()),this.imply(`hour`,12),this.imply(`minute`,0),this.imply(`second`,0),this.imply(`millisecond`,0)}static createRelativeFromReference(t,n=_$){let r=v$(t.getDateWithAdjustedTimezone(),n),i=new e(t);return i.addTag(`result/relativeDate`),`hour`in n||`minute`in n||`second`in n||`millisecond`in n?(i.addTag(`result/relativeDateAndTime`),u$(i,r),l$(i,r),i.assign(`timezoneOffset`,t.getTimezoneOffset())):(f$(i,r),i.imply(`timezoneOffset`,t.getTimezoneOffset()),`day`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.assign(`weekday`,r.getDay())):`week`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.imply(`weekday`,r.getDay())):(i.imply(`day`,r.getDate()),`month`in n?(i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear())):(i.imply(`month`,r.getMonth()+1),`year`in n?i.assign(`year`,r.getFullYear()):i.imply(`year`,r.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=v$(this.dateWithoutTimezoneAdjustment(),e);return(`day`in e||`week`in e||`month`in e||`year`in e)&&(this.delete([`day`,`weekday`,`month`,`year`]),this.imply(`day`,t.getDate()),this.imply(`weekday`,t.getDay()),this.imply(`month`,t.getMonth()+1),this.imply(`year`,t.getFullYear())),(`second`in e||`minute`in e||`hour`in e)&&(this.delete([`second`,`minute`,`hour`]),this.imply(`second`,t.getSeconds()),this.imply(`minute`,t.getMinutes()),this.imply(`hour`,t.getHours())),this}delete(e){typeof e==`string`&&(e=[e]);for(let t of e)delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new e(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain(`hour`)&&!this.isCertain(`minute`)&&!this.isCertain(`second`)}isOnlyTime(){return!this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)&&!this.isCertain(`year`)}isOnlyWeekdayComponent(){return this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)}isDateWithUnknownYear(){return this.isCertain(`month`)&&!this.isCertain(`year`)}isValidDate(){let e=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return e.setUTCFullYear(this.get(`year`)),!(e.getUTCFullYear()!==this.get(`year`)||e.getUTCMonth()!==this.get(`month`)-1||e.getUTCDate()!==this.get(`day`)||this.get(`hour`)!=null&&e.getUTCHours()!=this.get(`hour`)||this.get(`minute`)!=null&&e.getUTCMinutes()!=this.get(`minute`))}toString(){return`[ParsingComponents {
+:where([${CX}][data-tinted]) { opacity: 0.8; }
+:where([${CX}]:dir(rtl)) { transform-origin: right; }
+`,TX=U.createContext(void 0);function EX(){let e=U.useContext(TX);if(!e)throw Error(DH(73));return e}var DX=0;function OX(e){return DX+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${DX}`}function kX(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 AX(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 jX(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 MX={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},NX=class extends iU{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:AX(e.toasts)},{},MX)}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=jX(this.state.toasts,t);r.toasts=e,r.toastMetadata=AX(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=MX.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||OX(`toast`);if(e.id){let t=MX.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(jX(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),MX.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=MX.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=MX.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)),MX.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=MX.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=jX(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=kX(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=kX(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=kX(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??=fz.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=kz(e);Dz(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=MX.expandedOrOutOfFocus(this.state)?void 0:fz.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:AX(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=Ez(vB(this.state.viewport));if(!this.state.viewport||!Dz(this.state.viewport,t)||!Wz(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=MX.toasts(this.state),r=MX.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()}},PX=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=nz(()=>new NX({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return uz(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,G.jsxs)(TX.Provider,{value:a,children:[(0,G.jsx)(FX,{store:a,timeout:n,limit:r}),t]})};function FX(e){let{store:t,timeout:n,limit:r}=e;return Y(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var IX=`--toast-frontmost-height`,LX=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=EX(),c=pz(),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=pL(e),n=vB(e);function r(t){t.key===`F6`&&kz(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,Ez(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){kz(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=kz(n),i=Ez(vB(e));r!==t&&Dz(e,r)&&Wz(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return oB(aB(t,`keydown`,r),aB(t,`blur`,i,!0),aB(t,`focus`,a,!0),aB(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&&kz(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||Wz(Ez(vB(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!Dz(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:{[IX]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,G.jsx)(xB,{onFocus:b}),M=NV(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,G.jsxs)(U.Fragment,{children:[j,a,j]})}]});return(0,G.jsxs)(U.Fragment,{children:[j,M,!m&&y.length>0&&(0,G.jsx)(`div`,{style:bB,children:y.map(e=>(0,G.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,G.jsx)(`div`,{children:e.title}),(0,G.jsx)(`div`,{children:e.description})]},e.id))})]})}),RX=U.createContext(void 0);function zX(){let e=U.useContext(RX);if(!e)throw Error(DH(66));return e}function BX(e,t){let n=(t??pL(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 VX(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 HX=`--toast-index`,UX=`--toast-offset-y`,WX=`--toast-height`,GX=`--toast-swipe-movement-x`,KX=`--toast-swipe-movement-y`,qX=`data-swipe-direction`,JX={...Nz,swipeDirection(e){return e?{[qX]:e}:null}},YX=40,XX=10,ZX=.5,QX=1,$X=`${WV},${GV}`,eZ=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=EX(),[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),ee=U.useRef(null),z=d.useState(`toastIndex`,n.id),te=d.useState(`toastVisibleIndex`,n.id),ne=d.useState(`toastOffsetY`,n.id),re=d.useState(`focused`),ie=d.useState(`expanded`);FH({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let B=pB((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()});Y(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),V({x:0,y:0})),k.current=n.id,B())},[B,n.id,n.transitionStatus]);function V(e){L.current=e,y(e)}Y(()=>()=>{ee.current?.abort()},[]);function ae(e,t){let n=e=>e>0?e**ZX:-(Math.abs(e)**ZX),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=pB(e=>{if(e.pointerId!==R.current)return;R.current=null,ee.current?.abort(),ee.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){V({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(VX(e,i,a)>YX){o=e;break}o?(p(o),d.closeToast(n.id)):(V({x:t.x,y:t.y}),p(void 0))});function oe(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),Oz(kz(e.nativeEvent),`button,a,input,textarea,[role="button"],${$X}`)))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=BX(t);j.current=n,x(n),V({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,ee.current?.abort();let r=new AbortController;ee.current=r;let i=vB(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)>=QX){_(!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=VX(d,a,o),p(d));else{let e=M.current,t=VX(e,c,s);t>YX?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=XX&&(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),V({x:m,y:h})}function ce(e){if(e.key===`Escape`){if(!O.current||!Dz(O.current,Ez(vB(O.current))))return;d.closeToast(n.id)}}U.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&Dz(e,kz(t))&&t.preventDefault()}return aB(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,[GX]:`${e}px`,[KX]:`${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&&!re?!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:DW(n.limited),style:{...le(),[HX]:n.transitionStatus===`ending`?z:te,[UX]:`${ne}px`,[WX]:n.height?`${n.height}px`:void 0}},fe=U.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:B,visibleIndex:te,expanded:ie}),[n,C,T,B,te,ie]),pe={transitionStatus:n.transitionStatus,expanded:ie,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},me=NV(`div`,e,{ref:[t,O],state:pe,stateAttributesMapping:JX,props:[de,s]});return(0,G.jsx)(RX.Provider,{value:fe,children:me})}),tZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=zX(),l=U.useRef(null);return Y(()=>{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]),NV(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function nZ(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(nZ)}function rZ(e){return U.isValidElement(e)&&nZ(e.props.children)}function iZ(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=zX(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:dV(e),children:s,type:r.type,setId:o}}function aZ(e,t,n){let r=rZ(e);return Y(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var oZ=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}=iZ(a,o,`description`);return aZ(NV(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),sZ=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}=iZ(a,o,`title`);return aZ(NV(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),cZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=EX(),{toast:l,expanded:u}=zX(),[d,f]=U.useState(!1),{getButtonProps:p,buttonRef:m}=mW({disabled:a,native:o}),h={type:l.type};return NV(`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]})}),lZ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=zX(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=mW({disabled:a,native:o}),f={type:c.type},p=NV(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return rZ(p)?p:null}),uZ=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=QV({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(U.Fragment,{children:[l,c&&De.createPortal(n,c)]})}),dZ=U.forwardRef(function(e,t){return(0,G.jsx)(uZ,{ref:t,...e})}),fZ=U.createContext(void 0);function pZ(){let e=U.useContext(fZ);if(e===void 0)throw Error(DH(84));return e}var mZ=U.forwardRef(function(e,t){let{toast:n,...r}=e,i=EX(),a=n.positionerProps??lz,{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??qV,style:b,...x}=r,[S,C]=U.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=gL(c)?c:null,D=KW({anchor:E,positionMethod:l,floatingRootContext:hU({open:!0,onOpenChange:sz,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=QW(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[HX]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,G.jsx)(fZ.Provider,{value:D,children:O})}),hZ=U.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=pZ();return NV(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function gZ(){let e=EX(),t=e.useState(`toasts`);return U.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function _Z(){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||OX(`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 vZ=Cq({Action:()=>qZ,Arrow:()=>XZ,Close:()=>KZ,Content:()=>UZ,Description:()=>WZ,Portal:()=>JZ,Positioner:()=>YZ,Provider:()=>FZ,Root:()=>LZ,Title:()=>GZ,Viewport:()=>IZ,createToastManager:()=>QZ,useToastManager:()=>ZZ}),yZ=`0.75rem`,bZ=`0.75rem`,xZ=Eh.tooltip,SZ=ch.scale.toast,CZ=ch.blur.surface,wZ=ch.transition.fade,TZ=5e3,EZ=150,DZ=`animate-ui-base-ui-toast`,OZ=U.createContext({timeout:TZ,progressBar:!0});function kZ(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function AZ(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function jZ(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function MZ(){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<EZ}}function NZ(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,...kZ(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?xZ:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...kZ(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) * ${yZ}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${bZ} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=CZ,n||(y=`${m*100}%`,b=`calc(${g} * ${SZ})`)),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 PZ(e,t){return typeof e==`function`?e(t):e}function FZ({progressBar:e=!0,...t}){let n=t.timeout??TZ,r=U.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,G.jsx)(OZ,{value:r,children:(0,G.jsx)(PX,{...t})})}var IZ=LX;function LZ(e){return(0,G.jsx)(bh,{children:(0,G.jsx)(RZ,{...e})})}function RZ({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=wh(),p=ph(),m=U.use(OZ),h=d.positionerProps!=null,g=_h(fh(n??(h?Th:kq))),_=_h(fh(r??(h?n??Th:Dq))),v=_h(fh(wZ)),y=AZ(u.swipeDirection),b=jZ(y),x=MZ(),S=p.stagger.stack*1e3,C=U.useRef(null),w=U.useRef(null);U.useLayoutEffect(()=>{let e=C.current,t=e&&YY(e);t&&nX(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,lX(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,G.jsx)(eX,{watch:[d.type,d.title,d.description],take:()=>$Y(C.current),onUpdate:E,children:(0,G.jsxs)(eZ,{...u,ref:qY(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=_X(e))},onPointerMove:e=>{s?.(e),w.current&&vX(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{...NZ(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?bX(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?xX(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`},...PZ(t,e)}},children:[a,D&&!h&&(0,G.jsx)(HZ,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function zZ(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var BZ=`--animate-ui-toast-progress-color`,VZ=`data-tinted`;function HZ({duration:e,running:t,ending:n}){let r=U.useRef(null),i=U.useRef(null),a=U.useSyncExternalStore(zZ,()=>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(BZ,u),n.setAttribute(VZ,``)):(n.style.removeProperty(BZ),n.removeAttribute(VZ)),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,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`style`,{href:DZ,precedence:`animate-ui`,children:wX}),(0,G.jsx)(`div`,{[SX]:``,"aria-hidden":`true`,children:(0,G.jsx)(`div`,{ref:r,[CX]:``})})]}):null}function UZ({style:e,transition:t,...n}){let r=wh(),i=MZ(),a=ph().stagger.stack*1e3,o=_h(fh(t??wZ));return(0,G.jsx)(tZ,{...n,style:t=>({...kZ([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...PZ(e,t)})})}var WZ=oZ,GZ=sZ,KZ=cZ,qZ=lZ,JZ=dZ,YZ=mZ,XZ=hZ,ZZ=gZ,QZ=_Z,$Z=new Set,eQ=new Set,tQ=0;async function nQ(e,t,n,r=()=>t){tQ++;let i=Promise.resolve().then(n);eQ.add(i);try{let t=await i,n=r(t);if(n.length)for(let t of $Z)t({kind:e,ids:n});return t}finally{eQ.delete(i)}}async function rQ(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 iQ;function aQ(e){iQ&&(e??document.body).append(iQ)}var oQ,sQ=vZ.createToastManager();async function cQ(e,t){return(await lQ([e],t,!1)).includes(e)}async function lQ(e,t,n=!0){let r=await nQ(`trash`,e,()=>rQ(e,e=>window.yogurt.meetings.trash(e)),e=>e.done),i=r.error===`recording`?W(`Stop the recording first, then try again.`):r.error===`save-pending`?W(`Open this note and finish saving before deleting it.`):r.error?W(`Yogurt couldn't move this note to the Trash. Try again.`):void 0;return(r.trashed.length||i)&&oQ?.({ids:r.trashed,from:t,bulk:n,error:i}),r.done}function uQ({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)(0),[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),m=(0,U.useRef)(null),h=(0,U.useRef)(null),g=(0,U.useRef)(null),_=(0,U.useRef)(null),v=(0,U.useRef)([]),y=(0,U.useRef)(!1),b=(0,U.useRef)(!1);(0,U.useEffect)(()=>{a(!1),s(void 0),d(!1),b.current=!1},[e]),(0,U.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>p(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&&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:kf.micro,easing:kf.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?kf.base:kf.askExit,C=kf.ease,w=kf.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:kf.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,U.useEffect)(()=>()=>v.current.forEach(e=>e.cancel()),[]),(0,U.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(),aQ(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),aQ(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,G.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,G.jsx)(`div`,{ref:g,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{ref:_,className:`chat-panel-contents`,children:[u&&(0,G.jsx)(`p`,{role:`alert`,children:W(`Yogurt couldn't answer that.`)}),(0,G.jsx)(dY,{id:o??``,pendingDraftKey:`meeting/${e}`,loadError:u,panel:!0,recording:t,onSelect:e=>{s(e),l(e=>e+1)},onClose:()=>S(),onExpand:o?()=>{Iv(),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,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{id:`meeting-ask`,ref:m,"data-testid":`chat-open`,className:`workspace-button chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:wv()?W(`Ask Yogurt (⌘J)`):`${W(`Ask Yogurt`)} (${Sv(`⌘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,G.jsx)(JG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:W(`Ask Yogurt`)}),(0,G.jsx)(`kbd`,{"aria-hidden":`true`,children:Sv(`⌘J`)})]}),n&&(0,De.createPortal)(C,n)]})}function dQ(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 fQ=60,pQ=220,mQ=class{target=0;level=0;step(e){let t=this.target>this.level?fQ:pQ;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 hQ(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 gQ=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),_Q=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,vQ=3,yQ=3,bQ=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function xQ({height:e,className:t,testId:n,paused:r=!1,bars:i=5,stillBars:a=!1}){let o=(0,U.useRef)(null),s=i*vQ+(i-1)*yQ;return(0,U.useEffect)(()=>{let t=o.current;if(!t)return;let n=new mQ,c=bQ(),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=hQ({reduced:u,paused:r,level:n.level,bars:i,stillBars:a}),m=gQ(p,e-vQ);(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=vQ+Math.round(t*(e-vQ));c.globalAlpha=p.alpha[n],c.beginPath();let i=(s-p.heights.length*vQ-(p.heights.length-1)*yQ)/2;c.roundRect(i+n*6,(e-r)/2,vQ,r,vQ/2),c.fill()}),c.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},m=performance.now(),h=window.yogurt.widget.onLevel(e=>{n.target=_Q(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,G.jsx)(`canvas`,{ref:o,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:s,height:e}})}function SQ({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(dQ(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,G.jsx)(`time`,{"data-testid":t,className:n,"aria-label":W(`Recorded time`),children:r})}function CQ(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 wQ({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,U.useState)(!1),s=Pf(a),[c,l]=(0,U.useState)(),u=(0,U.useRef)(null),d=(0,U.useRef)(null),f=(0,U.useRef)([]),p=(0,U.useRef)(void 0),m=CQ(t,n,r),h=(0,U.useCallback)((e,t=`notice`)=>{l({text:e,kind:t}),clearTimeout(p.current),p.current=setTimeout(()=>l(void 0),2e3)},[]);(0,U.useEffect)(()=>(l(void 0),o(!1),()=>clearTimeout(p.current)),[e]);let{side:g,writing:_,fellBack:v}=m,y=(0,U.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=CQ(o,n,r);if(a===`notes`&&c){h(W(`Still generating your summary`));return}if(a===`notes`&&!await i()){h(W(`Couldn't save your latest changes. Try again before copying.`),`error`);return}let u=await window.yogurt.share.copy(e,a,s);h(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,h]),b=async()=>{if(_){h(W(`Still generating your summary`));return}if(!await i()){h(W(`Couldn't save your latest changes. Try again before exporting.`),`error`);return}let t=await window.yogurt.share.save(e,g);t===`saved`?h(W(v?`Saved your notes`:`Saved`),`saved`):t===`failed`&&h(W(`Couldn't save the file`),`error`)},x=e=>{o(!1),d.current?.focus(),e()};(0,U.useEffect)(()=>{let e=e=>{!e.repeat&&Cv(e)&&e.shiftKey&&!e.altKey&&!(wv()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),y(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,U.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,G.jsxs)(`div`,{ref:u,className:`relative flex items-center gap-1.5`,children:[(0,G.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,G.jsxs)(G.Fragment,{children:[(c.kind===`copied`||c.kind===`saved`)&&(0,G.jsx)(yg,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),c.kind===`error`&&(0,G.jsx)(kg,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),c.text]})}),(0,G.jsxs)(`button`,{ref:d,"data-testid":`share-button`,"data-state":w?`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:`ghost-btn`,children:[(0,G.jsx)(rK,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),W(`Copy`),(0,G.jsx)(xg,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),s.value&&(0,G.jsxs)(`div`,{"data-testid":`share-menu`,...s.props,role:`menu`,"aria-label":W(`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,G.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,G.jsx)(rK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:W(`Copy my notes`)})]}),(0,G.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,G.jsx)(rK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Copy summary`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>x(()=>void y(`transcript`)),className:C,children:[(0,G.jsx)(rK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Copy transcript`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>x(()=>void b()),className:C,children:[(0,G.jsx)(Vg,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Export Markdown…`)]})]})]})}var TQ=U.createContext(void 0);function EQ(e){let t=U.useContext(TQ);if(t===void 0&&!e)throw Error(DH(72));return t}var DQ={...pU,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},OQ=class extends iU{constructor(e,t,n){let r=new ZH;super(kQ(e,r,t,n),AQ(r),DQ)}setOpen=(e,t)=>{GH(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Yz(Zz,e))}};function kQ(e,t,n,r=!1){return{...sU(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function AQ(e){return{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jQ=az(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=zH((e,t)=>new OQ({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),qH(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=JH(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,Yz(oae))},[m,t,p]),Y(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),U.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Yz(iB))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,G.jsxs)(TQ.Provider,{value:p,children:[l&&(0,G.jsx)(BH,{handle:l,store:p}),T&&(0,G.jsx)(MQ,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function MQ({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=TH(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=SH(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=U.useMemo(()=>bV(a.reference,i.reference),[a.reference,i.reference]);return YH(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??lz}),null}var NQ=U.createContext(void 0);function PQ(){return U.useContext(NQ)}var FQ=`data-base-ui-tooltip-trigger`;function IQ(e){let t=kz(e);return gL(t)?t:null}var LQ=oz(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=EQ(!0),m=mU(a)??p;if(!m)throw Error(DH(82));let h=_W(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=U.useRef(null),b=u??0,{registerTrigger:x,isMountedByThisTrigger:S}=KH(h,y,m,{payload:o,closeOnClick:l,closeDelay:b}),C=PQ(),{activeIdRef:w,delayRef:T,isInstantPhase:E,hasProvider:D}=lae(v,{open:_}),O=SU(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=uB(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=U.useRef(!1),F=pz(),I=U.useRef(void 0);function L(){return D&&w.current!=null?0:c??C??600}function R(e){let t=y.current;if(!t||!e)return!1;let n=Oz(e,`[${FQ}]`);return n!==null&&n!==t&&Dz(t,n)}function ee(e){let t=R(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let z=TU(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?VU():null,restMs:L,delay(){return u==null&&D?{close:Kz(T.current,`close`)}:{close:b}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),te=_U(v,{enabled:!A}).reference,ne=e=>{let t=P.current,n=IQ(e),r=ee(n),i=y.current,a=i&&n&&Dz(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,Yz(Qz,e));else if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Tz(I.current)){let t=()=>{P.current||j.current||m.select(`open`)||m.setOpen(!0,Yz(Qz,e,i))},n=L();n===0?(F.clear(),t()):F.start(n,t)}},re=m.useState(`appliedTriggerProps`,S||M!==`none`);return NV(`button`,e,{state:{open:_},ref:[t,x,y],props:[z,te,re,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(IQ(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[zz]:A?``:void 0,[FQ]:A?void 0:``},f],stateAttributesMapping:Fz})}),RQ=U.createContext(void 0);function zQ(){let e=U.useContext(RQ);if(e===void 0)throw Error(DH(70));return e}var BQ=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return EQ().useState(`mounted`)||n?(0,G.jsx)(RQ.Provider,{value:n,children:(0,G.jsx)(uZ,{ref:t,...r})}):null}),VQ=U.createContext(void 0);function HQ(){let e=U.useContext(VQ);if(e===void 0)throw Error(DH(71));return e}var UQ=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=qV,style:g,..._}=e,v=EQ(),y=zQ(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=KW({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=QW(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,G.jsx)(VQ.Provider,{value:D,children:O})}),WQ=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=EQ(),{side:s,align:c}=HQ(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);FH({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),CU(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return NV(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[LH,f,ZW(d),a],stateAttributesMapping:Rz})});function GQ({active:e,edited:t,disabled:n,hasSummary:r,onClose:i,onSubmit:a}){let[o,s]=(0,U.useState)(``);(0,U.useLayoutEffect)(()=>{e&&s(``)},[e]);let c=W(r?`Regenerate summary`:`Generate summary`);return(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),n||a(o.trim())},children:[(0,G.jsxs)(`div`,{className:`summary-regenerate-heading`,children:[(0,G.jsx)(`span`,{children:c}),(0,G.jsx)(`button`,{type:`button`,className:`ghost-btn workspace-icon`,"aria-label":W(`Close`),onClick:i,children:(0,G.jsx)(av,{size:14,"aria-hidden":`true`})})]}),(0,G.jsx)(`input`,{autoFocus:!0,"data-testid":`note-regenerate-input`,className:`summary-regenerate-input`,"aria-label":W(`Note for the summary`),placeholder:W(`Add a note, like shorter or in Spanish`),maxLength:240,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.key===`Enter`&&e.nativeEvent.isComposing&&e.preventDefault()}}),t&&(0,G.jsx)(`p`,{id:`note-rewrite-description`,"data-testid":`note-confirm`,className:`summary-regenerate-warning`,children:W(`Your edits to the summary will be replaced.`)}),(0,G.jsx)(`div`,{className:`summary-regenerate-actions`,children:(0,G.jsx)(`button`,{"data-testid":`note-write-again-confirm`,type:`submit`,disabled:n,className:`workspace-button primary`,children:W(r?`Regenerate`:`Generate summary`)})})]})}function KQ({hasSummary:e,hasContent:t,recording:n,busy:r,downloading:i,trashed:a}){if(!(a||!e&&!t))return{label:W(e?`Regenerate summary`:`Generate summary`),reason:n?W(`Available after recording`):i?W(`Waiting for Yogurt AI to download`):r?W(`Writing the summary`):void 0}}function qQ({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a,generation:o,hasSummary:s,edited:c,rewriteOpen:l,setRewriteOpen:u,onWriteAgain:d}){let[f,p]=(0,U.useState)(!1),m=Pf(l&&o?`rewrite`:f),[h,g]=(0,U.useState)(!1),_=(0,U.useRef)(null),v=(0,U.useRef)(null),y=(0,U.useRef)(null),b=(e=!0)=>{p(!1),u(!1),e&&v.current?.focus({preventScroll:!0})};(0,U.useEffect)(()=>{o||u(!1)},[!!o]),(0,U.useEffect)(()=>{if(l&&_.current?.querySelector(`input`)?.focus({preventScroll:!0}),!f&&!l){m.value||g(!1);return}l||y.current?.focus();let e=e=>{_.current?.contains(e.target)||b(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[f,l,m.value]);let x=e=>{let t=Array.from(_.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),p(!1),v.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`&&p(!1)},S=e=>{p(!1),e()},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 disabled:opacity-50 disabled:hover:bg-transparent`;return(0,G.jsxs)(`div`,{ref:_,className:`relative`,children:[(0,G.jsx)(`button`,{ref:v,"data-testid":`note-menu-button`,"aria-haspopup":l?`dialog`:`menu`,"aria-expanded":!!f||l,"aria-label":W(`More`),title:W(`More`),onClick:e=>{l?b():p(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},className:`ghost-btn workspace-icon`,children:(0,G.jsx)(Lg,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),m.value===`rewrite`?(0,G.jsx)(`div`,{role:`dialog`,"data-testid":`note-regenerate`,"aria-label":W(s?`Regenerate summary`:`Generate summary`),"aria-describedby":c?`note-rewrite-description`:void 0,...m.props,"data-anchor":`end`,className:`menu-entry summary-regenerate`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),b())},children:(0,G.jsx)(GQ,{active:l,hasSummary:s,edited:c,disabled:!o||!!o.reason,onClose:b,onSubmit:e=>{o&&!o.reason&&(b(),d(e))}})},`rewrite`):m.value&&(0,G.jsx)(`div`,{"data-testid":`note-menu`,...m.props,role:`menu`,"data-anchor":`end`,"aria-label":W(`More`),onKeyDown:x,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-max min-w-60 max-w-[calc(100vw-32px)] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:h&&i?i(()=>{p(!1),v.current?.focus()}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{ref:y,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>S(n),className:C,children:[(0,G.jsx)(F_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Rename`)]}),i&&(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{g(!0),requestAnimationFrame(()=>_.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:C,children:[(0,G.jsx)(Yg,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:W(`Add to folder`)}),(0,G.jsx)(Tg,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),o&&(0,G.jsxs)(jQ,{disabled:!o.reason,children:[(0,G.jsxs)(LQ,{delay:180,closeOnClick:!1,role:`menuitem`,"data-testid":`note-write-again`,"aria-disabled":!!o.reason,"aria-description":o.reason,onClick:()=>{o.reason||(p(!1),u(!0))},className:`${C} whitespace-nowrap aria-disabled:opacity-50 aria-disabled:hover:bg-transparent`,children:[(0,G.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),o.label]}),(0,G.jsx)(BQ,{children:(0,G.jsx)(UQ,{side:`left`,align:`center`,sideOffset:6,collisionPadding:12,className:`z-[80]`,children:(0,G.jsx)(WQ,{role:`tooltip`,className:`rounded-md border border-line bg-float px-2 py-1 text-xs whitespace-nowrap text-ink shadow-[var(--shadow)]`,children:o.reason})})})]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>S(()=>{v.current?.focus(),r()}),className:`${C} text-danger`,children:[(0,G.jsx)(Z_,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`flex flex-col`,children:[W(a?`Delete forever`:`Delete note`),e&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Stop the recording first`)}),t&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Finish saving first`)})]})]})]})},`menu`)]})}function JQ({testId:e,warningTestId:t,className:n=``,children:r}){return(0,G.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,G.jsx)($_,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function YQ({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 nQ(`delete`,[e],()=>window.yogurt.meetings.delete(e),t=>t===`deleted`||t===`missing`?[e]:[]).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,G.jsxs)(GJ,{testId:`delete-confirm`,role:`alertdialog`,title:W(`Delete “{title}” forever?`,{title:t}),description:Tv({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,G.jsx)(JQ,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,G.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.`)})}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:W(`Delete forever`)}),(0,G.jsx)(WJ,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`workspace-button`,children:W(`Cancel`)})]})]})}function XQ(e){return e.status===`waiting`||e.status===`writing`?e.enhanced!=null&&!/[\p{L}\p{N}]/u.test(e.draft)?`rewriting`:e.draft?`streaming`:`waiting`:e.enhanced==null?e.status===`failed`?`failed`:e.status===`empty`?`empty`:e.status===`stopped`?`stopped`:`saved`:`saved`}function ZQ(e,t){let n=e?XQ(e):`saved`,r=e?.meetingId,[i,a]=(0,U.useState)({id:r,presentation:n,fading:!1,resetting:!1});return(i.id!==r||i.presentation!==n)&&a({id:r,presentation:n,resetting:t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`,fading:!t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`}),(0,U.useEffect)(()=>{if(i.resetting){let e=requestAnimationFrame(()=>a(e=>({...e,resetting:!1})));return()=>cancelAnimationFrame(e)}if(!i.fading)return;if(t){a(e=>({...e,fading:!1,resetting:!0}));return}let e=setTimeout(()=>a(e=>({...e,fading:!1,resetting:!0})),kf.micro);return()=>clearTimeout(e)},[i.fading,i.resetting,t,r]),i.resetting||i.fading&&t?`reset`:i.fading?`handoff`:n}var QQ=1e3,$Q=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()},QQ)}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()}},e$=new Set,t$=e=>(e$.add(e),()=>{e.dispose()&&e$.delete(e)}),n$=e=>e.trim().toLowerCase(),r$=(e,t)=>e||t.includes(`@`);function i$(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function a$(e){let t=new Map,n=new Set([`gmail.com`,`outlook.com`,`hotmail.com`,`icloud.com`,`yahoo.com`,`proton.me`,`protonmail.com`,`mail.example`]);for(let r of e){let e=r.p.email?.trim().toLowerCase()??``,i=/^[^\s@]+@([^\s@]+\.[^\s@]+)$/.exec(e),a=i&&!n.has(i[1])?i[1]:``,o=a?a.split(`.`)[0].replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase()):``;t.has(a)||t.set(a,{domain:a,label:o,people:[]}),t.get(a).people.push(r)}return[...t.values()].sort((e,t)=>e.domain?t.domain?e.label.localeCompare(t.label):-1:1)}function o$(e){return e.trim().split(/\s+/).filter(Boolean).filter((e,t,n)=>t===0||t===n.length-1).map(e=>Array.from(e)[0]).join(``).toLocaleUpperCase()}var X;(function(e){e[e.AM=0]=`AM`,e[e.PM=1]=`PM`})(X||={});var s$;(function(e){e[e.SUNDAY=0]=`SUNDAY`,e[e.MONDAY=1]=`MONDAY`,e[e.TUESDAY=2]=`TUESDAY`,e[e.WEDNESDAY=3]=`WEDNESDAY`,e[e.THURSDAY=4]=`THURSDAY`,e[e.FRIDAY=5]=`FRIDAY`,e[e.SATURDAY=6]=`SATURDAY`})(s$||={});var c$;(function(e){e[e.JANUARY=1]=`JANUARY`,e[e.FEBRUARY=2]=`FEBRUARY`,e[e.MARCH=3]=`MARCH`,e[e.APRIL=4]=`APRIL`,e[e.MAY=5]=`MAY`,e[e.JUNE=6]=`JUNE`,e[e.JULY=7]=`JULY`,e[e.AUGUST=8]=`AUGUST`,e[e.SEPTEMBER=9]=`SEPTEMBER`,e[e.OCTOBER=10]=`OCTOBER`,e[e.NOVEMBER=11]=`NOVEMBER`,e[e.DECEMBER=12]=`DECEMBER`})(c$||={});function l$(e,t){e.assign(`day`,t.getDate()),e.assign(`month`,t.getMonth()+1),e.assign(`year`,t.getFullYear())}function u$(e,t){e.assign(`hour`,t.getHours()),e.assign(`minute`,t.getMinutes()),e.assign(`second`,t.getSeconds()),e.assign(`millisecond`,t.getMilliseconds()),e.assign(`meridiem`,t.getHours()<12?X.AM:X.PM)}function d$(e,t){e.imply(`day`,t.getDate()),e.imply(`month`,t.getMonth()+1),e.imply(`year`,t.getFullYear())}function f$(e,t){e.imply(`hour`,t.getHours()),e.imply(`minute`,t.getMinutes()),e.imply(`second`,t.getSeconds()),e.imply(`millisecond`,t.getMilliseconds()),e.imply(`meridiem`,t.getHours()<12?X.AM:X.PM)}var p$={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>h$(e,c$.MARCH,s$.SUNDAY,2),dstEnd:e=>h$(e,c$.OCTOBER,s$.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>m$(e,c$.MARCH,s$.SUNDAY,2,2),dstEnd:e=>m$(e,c$.NOVEMBER,s$.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function m$(e,t,n,r,i=0){let a=0,o=0;for(;o<r;)a++,new Date(e,t-1,a).getDay()===n&&o++;return new Date(e,t-1,a,i)}function h$(e,t,n,r=0){let i=n===0?7:n,a=new Date(e,t-1+1,1,12),o=a.getDay()===0?7:a.getDay(),s;return s=o===i?7:o<i?7+o-i:o-i,a.setDate(a.getDate()-s),new Date(e,t-1,a.getDate(),r)}function g$(e,t,n={}){if(e==null)return null;if(typeof e==`number`)return e;let r=n[e]??p$[e];return r==null?null:typeof r==`number`?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}var _$={day:0,second:0,millisecond:0};function v$(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),`year`in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=r*12)}if(`quarter`in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+e*3);let r=t.quarter-e;r>0&&(t.month=t?.month??0,t.month+=r*3)}if(`month`in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=r*4)}if(`week`in t){let e=Math.floor(t.week);n.setDate(n.getDate()+e*7);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(r*7))}if(`day`in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(r*24))}if(`hour`in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(r*60))}if(`minute`in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(r*60))}if(`second`in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(r*1e3))}if(`millisecond`in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function y$(e){let t={};for(let n in e)t[n]=-e[n];return t}var b$=class e{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(t){return new e(t)}static fromInput(t,n){if(t instanceof Date)return e.fromDate(t);let r=t?.instant??new Date,i=g$(t?.timezone,r,n);return new e(r,i)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){e||=new Date;let n=-e.getTimezoneOffset();return n-(t??this.timezoneOffset??n)}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}},Z=class e{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply(`day`,n.getDate()),this.imply(`month`,n.getMonth()+1),this.imply(`year`,n.getFullYear()),this.imply(`hour`,12),this.imply(`minute`,0),this.imply(`second`,0),this.imply(`millisecond`,0)}static createRelativeFromReference(t,n=_$){let r=v$(t.getDateWithAdjustedTimezone(),n),i=new e(t);return i.addTag(`result/relativeDate`),`hour`in n||`minute`in n||`second`in n||`millisecond`in n?(i.addTag(`result/relativeDateAndTime`),u$(i,r),l$(i,r),i.assign(`timezoneOffset`,t.getTimezoneOffset())):(f$(i,r),i.imply(`timezoneOffset`,t.getTimezoneOffset()),`day`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.assign(`weekday`,r.getDay())):`week`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.imply(`weekday`,r.getDay())):(i.imply(`day`,r.getDate()),`month`in n?(i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear())):(i.imply(`month`,r.getMonth()+1),`year`in n?i.assign(`year`,r.getFullYear()):i.imply(`year`,r.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=v$(this.dateWithoutTimezoneAdjustment(),e);return(`day`in e||`week`in e||`month`in e||`year`in e)&&(this.delete([`day`,`weekday`,`month`,`year`]),this.imply(`day`,t.getDate()),this.imply(`weekday`,t.getDay()),this.imply(`month`,t.getMonth()+1),this.imply(`year`,t.getFullYear())),(`second`in e||`minute`in e||`hour`in e)&&(this.delete([`second`,`minute`,`hour`]),this.imply(`second`,t.getSeconds()),this.imply(`minute`,t.getMinutes()),this.imply(`hour`,t.getHours())),this}delete(e){typeof e==`string`&&(e=[e]);for(let t of e)delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new e(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain(`hour`)&&!this.isCertain(`minute`)&&!this.isCertain(`second`)}isOnlyTime(){return!this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)&&!this.isCertain(`year`)}isOnlyWeekdayComponent(){return this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)}isDateWithUnknownYear(){return this.isCertain(`month`)&&!this.isCertain(`year`)}isValidDate(){let e=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return e.setUTCFullYear(this.get(`year`)),!(e.getUTCFullYear()!==this.get(`year`)||e.getUTCMonth()!==this.get(`month`)-1||e.getUTCDate()!==this.get(`day`)||this.get(`hour`)!=null&&e.getUTCHours()!=this.get(`hour`)||this.get(`minute`)!=null&&e.getUTCMinutes()!=this.get(`minute`))}toString(){return`[ParsingComponents {
tags: ${JSON.stringify(Array.from(this._tags).sort())},
knownValues: ${JSON.stringify(this.knownValues)},
impliedValues: ${JSON.stringify(this.impliedValues)}},
- reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.get(`timezoneOffset`)??this.reference.timezoneOffset;if(e==null)return this.dateWithoutTimezoneAdjustment();let t=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return t.setUTCFullYear(this.get(`year`)),new Date(t.getTime()-e*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`));return e.setFullYear(this.get(`year`)),e}},x$=class e{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new Z(e),this.end=i}clone(){let t=new e(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}};function S$(e,t,n=`\\s{0,5},?\\s{0,5}`){let r=t.replace(/\((?!\?)/g,`(?:`);return`${e}${r}(?:${n}${r}){0,10}`}function C$(e){let t;return t=e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e),t}function Q(e){return`(?:${C$(e).sort((e,t)=>t.length-e.length).join(`|`).replace(/\./g,`\\.`)})`}function w$(e){return e<100&&(e+=e>50?1900:2e3),e}function T$(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);let i=v$(r,{year:1}),a=v$(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(a.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=a),r.getFullYear()}var E$={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},D$={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},O$={...D$,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},k$={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},A$={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},j$={second:`second`,seconds:`second`,minute:`minute`,minutes:`minute`,hour:`hour`,hours:`hour`,day:`day`,days:`day`,week:`week`,weeks:`week`,month:`month`,months:`month`,quarter:`quarter`,quarters:`quarter`,year:`year`,years:`year`},M$={s:`second`,sec:`second`,second:`second`,seconds:`second`,m:`minute`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hour:`hour`,hours:`hour`,d:`day`,day:`day`,days:`day`,w:`week`,week:`week`,weeks:`week`,mo:`month`,mon:`month`,mos:`month`,month:`month`,months:`month`,qtr:`quarter`,quarter:`quarter`,quarters:`quarter`,y:`year`,yr:`year`,year:`year`,years:`year`,...j$},N$=`(?:${Q(k$)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function P$(e){let t=e.toLowerCase();return k$[t]===void 0?t===`a`||t===`an`||t==`the`?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t):k$[t]}var F$=`(?:${Q(A$)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function I$(e){let t=e.toLowerCase();return A$[t]===void 0?(t=t.replace(/(?:st|nd|rd|th)$/i,``),parseInt(t)):A$[t]}var L$=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[0-9]{2}(?!\\w|:\\d|\\s+(?:am|pm|o\\s*clock|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))`;function R$(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):w$(parseInt(e))}var z$=`(${N$})\\s{0,3}(${Q(M$)})`,B$=new RegExp(z$,`i`),V$=`(${N$})\\s{0,3}(${Q(j$)})`,H$=`\\s{0,5},?(?:\\s*and)?\\s{0,5}`,U$=S$(`(?:(?:about|around)\\s{0,3})?`,z$,H$),W$=S$(`(?:(?:about|around)\\s{0,3})?`,V$,H$);function G$(e){let t={},n=e,r=B$.exec(n);for(;r;)K$(t,r),n=n.substring(r[0].length).trim(),r=B$.exec(n);return Object.keys(t).length==0?null:t}function K$(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=P$(t[1]),r=M$[t[2].toLowerCase()];e[r]=n}var $=class{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return`(\\W|^)`}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)||(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags)),this.cachedPattern}extract(e,t){let n=t[1]??``;t.index+=n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}},q$=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${U$})(?=\\W|$)`,`i`),J$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${U$})(?=\\W|$)`,`i`),Y$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${W$})(?=\\W|$)`,`i`),X$=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?Y$:e.option.forwardDate?q$:J$}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/i))return null;let n=G$(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Z$=RegExp(`(?:on\\s{0,3})?(${F$})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)\\s{0,3}(${F$}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Q(O$)})(?:(?:-|/|,?\\s{0,3})(${L$}(?!\\w)))?(?=\\W|$)`,`i`),Q$=1,$$=2,e1=3,t1=4,n1=class extends ${innerPattern(){return Z$}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=O$[t[e1].toLowerCase()],i=I$(t[Q$]);if(i>31)return t.index+=t[Q$].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[t1]){let e=R$(t[t1]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[$$]){let e=I$(t[$$]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},r1=RegExp(`(${Q(O$)})(?:-|/|\\s*,?\\s*)(${F$})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${F$})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${L$}))?(?=\\W|$)(?!\\:\\d)`,`i`),i1=1,a1=2,o1=3,s1=4,c1=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return r1}innerExtract(e,t){let n=O$[t[i1].toLowerCase()],r=I$(t[a1]);if(r>31||this.shouldSkipYearLikeDate&&!t[o1]&&!t[s1]&&t[a1].match(/^\d{2}$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ENMonthNameMiddleEndianParser`);if(t[s1]){let e=R$(t[s1]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[o1])return i;let a=I$(t[o1]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},l1=RegExp(`((?:in)\\s*)?(${Q(O$)})\\s*(?:(?:,|-|of)?\\s*(${L$})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),u1=1,d1=2,f1=3,p1=class extends ${innerPattern(){return l1}innerExtract(e,t){let n=t[d1].toLowerCase();if(t[0].length<=3&&!D$[n])return null;let r=e.createParsingResult(t.index+(t[u1]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ENMonthNameParser`);let i=O$[n];if(r.start.assign(`month`,i),t[f1]){let e=R$(t[f1]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},m1=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(O$)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),h1=1,g1=2,_1=3,v1=4,y1=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return m1}innerExtract(e,t){let n=parseInt(t[h1]),r=parseInt(t[v1]),i=t[_1]?parseInt(t[_1]):O$[t[g1].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},b1=RegExp(`((?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}))(?:\\s*[-.\\/,]?\\s*|\\s+of\\s+)(${Q(O$)})(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),x1=1,S1=2,C1=class extends ${innerPattern(){return b1}innerExtract(e,t){let n=R$(t[x1]),r=O$[t[S1].toLowerCase()],i=e.createParsingResult(t.index,t[0]);return i.start.imply(`day`,1),i.start.assign(`month`,r),i.start.assign(`year`,n),i.start.addTag(`parser/ENYearMonthNameParser`),i}},w1=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),T1=1,E1=2,D1=class extends ${innerPattern(){return w1}innerExtract(e,t){if(/\d\/?$/.test(e.text.substring(0,t.index)))return null;let n=parseInt(t[E1]),r=parseInt(t[T1]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}};function O1(e,t,n,r){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function k1(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,`i`)}var A1=2,j1=3,M1=4,N1=5,P1=6,F1=class{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return`i`}primaryPatternLeftBoundary(){return`(^|\\s|T|\\b)`}primarySuffix(){return`(?!/)(?=\\W|$)`}followingSuffix(){return`(?!/)(?=\\W|$)`}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?(t.index+=4,null):(t.index+=t[0].length,null);let r=t.index+t[1].length,i=t[0].substring(t[1].length),a=e.createParsingResult(r,i,n);t.index+=t[0].length;let o=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(o);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,s,a),a.end&&(a.text+=s[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,t,n=!1){let r=e.createParsingComponents(),i=0,a=null,o=parseInt(t[A1]);if(o>100){if(t[A1].length==4&&t[j1]==null&&!t[P1]||this.strictMode||t[j1]!=null)return null;i=o%100,o=Math.floor(o/100)}if(o>24)return null;if(t[j1]!=null){if(t[j1].length==1&&!t[P1])return null;i=parseInt(t[j1])}if(i>=60)return null;if(o>12&&(a=X.PM),t[P1]!=null){if(o>12)return null;let e=t[P1][0].toLowerCase();e==`a`&&(a=X.AM,o==12&&(o=0)),e==`p`&&(a=X.PM,o!=12&&(o+=12))}if(r.assign(`hour`,o),r.assign(`minute`,i),a===null?o<12?r.imply(`meridiem`,X.AM):r.imply(`meridiem`,X.PM):r.assign(`meridiem`,a),t[N1]!=null){let e=parseInt(t[N1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[M1]!=null){let e=parseInt(t[M1]);if(e>=60)return null;r.assign(`second`,e)}return r}extractFollowingTimeComponents(e,t,n){let r=e.createParsingComponents();if(t[N1]!=null){let e=parseInt(t[N1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[M1]!=null){let e=parseInt(t[M1]);if(e>=60)return null;r.assign(`second`,e)}let i=parseInt(t[A1]),a=0,o=-1;if(t[j1]==null?i>100&&(a=i%100,i=Math.floor(i/100)):a=parseInt(t[j1]),a>=60||i>24)return null;if(i>=12&&(o=X.PM),t[P1]!=null){if(i>12)return null;let e=t[P1][0].toLowerCase();e==`a`&&(o=X.AM,i==12&&(i=0,r.isCertain(`day`)||r.addDurationAsImplied({day:1}))),e==`p`&&(o=X.PM,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==X.AM?(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}return r.assign(`hour`,i),r.assign(`minute`,a),o>=0?r.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`hour`)>12?n.start.get(`hour`)-12>i?r.imply(`meridiem`,X.AM):i<=12&&(r.assign(`hour`,i+12),r.assign(`meridiem`,X.PM)):i>12?r.imply(`meridiem`,X.PM):i<=12&&r.imply(`meridiem`,X.AM),r.date().getTime()<n.start.date().getTime()&&r.addDurationAsImplied({day:1}),r}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(`.`)&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(`.`)&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24||parseInt(e)>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=O1(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=k1(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}},I1=class extends F1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*`}primaryPrefix(){return`(?:(?:at|from)\\s*)??`}primarySuffix(){return`(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith(`night`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`afternoon`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].endsWith(`morning`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ENTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ENTimeExpressionParser`),r}},L1=RegExp(`(${U$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),R1=RegExp(`(${W$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),z1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?R1:L1}innerExtract(e,t){let n=G$(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},B1=RegExp(`(${U$})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,`i`),V1=RegExp(`(${W$})\\s{0,5}(later|after|from now)(?=\\W|$)`,`i`),H1=1,U1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?V1:B1}innerExtract(e,t){let n=G$(t[H1]);return n?Z.createRelativeFromReference(e.reference,n):null}},W1=class{refine(e,t){return t.filter(t=>this.isValid(e,t))}},G1=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let a=1;a<t.length;a++){i=t[a];let o=e.text.substring(r.index+r.text.length,i.index);if(!this.shouldMergeResults(o,r,i,e))n.push(r),r=i;else{let t=r,n=i,a=this.mergeResults(o,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${a}`)}),r=a}}return r!=null&&n.push(r),n}},K1=class extends G1{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&v$(r,{day:7})>e?(r=v$(r,{day:7}),n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear())):t.start.isOnlyWeekdayComponent()&&v$(e,{day:-7})<r?(e=v$(e,{day:-7}),t.start.imply(`day`,e.getDate()),t.start.imply(`month`,e.getMonth()+1),t.start.imply(`year`,e.getFullYear())):n.start.isDateWithUnknownYear()&&v$(r,{year:1})>e?(r=v$(r,{year:1}),n.start.imply(`year`,r.getFullYear())):t.start.isDateWithUnknownYear()&&v$(e,{year:-1})<r?(e=v$(e,{year:-1}),t.start.imply(`year`,e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),r.text=t.index<n.index?t.text+e+n.text:n.text+e+t.text,r}},q1=class extends K1{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}};function J1(e,t){let n=e.clone(),r=e.start,i=t.start;if(n.start=Y1(r,i),e.end!=null||t.end!=null){let r=Y1(e.end==null?e.start:e.end,t.end==null?t.start:t.end);if(e.end==null&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain(`day`)?l$(r,e):d$(r,e)}n.end=r}return n}function Y1(e,t){let n=e.clone();t.isCertain(`hour`)?(n.assign(`hour`,t.get(`hour`)),n.assign(`minute`,t.get(`minute`)),t.isCertain(`second`)?(n.assign(`second`,t.get(`second`)),t.isCertain(`millisecond`)?n.assign(`millisecond`,t.get(`millisecond`)):n.imply(`millisecond`,t.get(`millisecond`))):(n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`)))):(n.imply(`hour`,t.get(`hour`)),n.imply(`minute`,t.get(`minute`)),n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`))),t.isCertain(`timezoneOffset`)&&n.assign(`timezoneOffset`,t.get(`timezoneOffset`));let r=e.get(`meridiem`)!=null&&(e.isCertain(`meridiem`)||Array.from(e.tags()).some(e=>e.startsWith(`casualReference/`)));return t.isCertain(`meridiem`)?n.assign(`meridiem`,t.get(`meridiem`)):t.get(`meridiem`)!=null&&!r&&n.imply(`meridiem`,t.get(`meridiem`)),n.get(`meridiem`)==X.PM&&n.get(`hour`)<12&&(t.isCertain(`hour`)?n.assign(`hour`,n.get(`hour`)+12):n.imply(`hour`,n.get(`hour`)+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}var X1=class extends G1{shouldMergeResults(e,t,n){let r=t.start.isOnlyDate()&&n.start.isOnlyTime(),i=t.start.isOnlyTime()&&n.start.isOnlyDate();return i&&e.trim()===`:`?!1:(r||i)&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let r=t.start.isOnlyDate()?J1(t,n):J1(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}},Z1=class extends X1{patternBetween(){return RegExp(`^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$`)}},Q1=RegExp(`^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)`,`i`),$1=class{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let r=e.text.substring(t.index+t.text.length),i=Q1.exec(r);if(!i)return;let a=i[1].toUpperCase(),o=g$(a,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...n});if(o==null)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${o} for: ${t.start}`)});let s=t.start.get(`timezoneOffset`);s!==null&&o!=s&&(t.start.isCertain(`timezoneOffset`)||a!=i[1])||t.start.isOnlyDate()&&a!=i[1]||(t.text+=i[0],t.start.isCertain(`timezoneOffset`)||t.start.assign(`timezoneOffset`,o),t.end!=null&&!t.end.isCertain(`timezoneOffset`)&&t.end.assign(`timezoneOffset`,o))}),t}},e0=RegExp(`^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?`,`i`),t0=1,n0=2,r0=3,i0=class{refine(e,t){return t.forEach(function(t){if(t.start.isCertain(`timezoneOffset`))return;let n=e.text.substring(t.index+t.text.length),r=e0.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=parseInt(r[n0]),a=parseInt(r[r0]||`0`),o=i*60+a;o>840||(r[t0]===`-`&&(o=-o),t.end!=null&&t.end.assign(`timezoneOffset`,o),t.start.assign(`timezoneOffset`,o),t.text+=r[0])}),t}},a0=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let a=t[i];if(a.index>=r.index+r.text.length){n.push(r),r=a;continue}let o=null,s=null;a.text.length>r.text.length?(o=a,s=r):(o=r,s=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${o}`)}),r=o}return r!=null&&n.push(r),n}};function o0(e,t,n){let r=s0(e.getDateWithAdjustedTimezone(),t,n),i=new Z(e);return i=i.addDurationAsImplied({day:r}),i.assign(`weekday`,t),i}function s0(e,t,n){let r=e.getDay();switch(n){case`this`:return l0(e,t);case`last`:return u0(e,t);case`next`:return r==s$.SUNDAY?t==s$.SUNDAY?7:t:r==s$.SATURDAY?t==s$.SATURDAY?7:t==s$.SUNDAY?8:1+t:t<r&&t!=s$.SUNDAY?l0(e,t):l0(e,t)+7}return c0(e,t)}function c0(e,t){let n=u0(e,t),r=l0(e,t);return r<-n?r:n}function l0(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function u0(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}var d0=class{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),d$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(d$(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),d$(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=v$(n,{day:l0(n,t.start.get(`weekday`))||7});if(d$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.start.date()>t.end.date()){let r=v$(n,{day:l0(n,t.start.get(`weekday`))||7});d$(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply(`year`,t.start.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain(`year`)&&(t.end.imply(`year`,t.end.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}},f0=class extends W1{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(` `,``).match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}},p0=RegExp(`([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)`,`i`),m0=1,h0=2,g0=3,_0=4,v0=5,y0=6,b0=7,x0=8,S0=9,C0=10,w0=class extends ${innerPattern(){return p0}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[m0]),month:parseInt(t[h0]),day:parseInt(t[g0])});if(t[_0]!=null&&(n.assign(`hour`,parseInt(t[_0])),n.assign(`minute`,parseInt(t[v0])),t[y0]!=null&&n.assign(`second`,parseInt(t[y0])),t[b0]!=null&&n.assign(`millisecond`,parseInt(t[b0])),t[x0]!=null)){let e=0;if(t[S0]){let n=parseInt(t[S0]),r=0;t[C0]!=null&&(r=parseInt(t[C0])),e=n*60,e<0?e-=r:e+=r}n.assign(`timezoneOffset`,e)}return n.addTag(`parser/ISOFormatParser`)}},T0=class extends G1{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign(`weekday`,t.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,t.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain(`hour`)&&n.start.isCertain(`day`)&&!n.start.tags().has(`result/relativeDate`)&&e.match(/^,?\s*$/)!=null}};function E0(e,t=!1){return e.parsers.unshift(new w0),e.refiners.unshift(new T0),e.refiners.unshift(new i0),e.refiners.unshift(new a0),e.refiners.push(new $1),e.refiners.push(new a0),e.refiners.push(new d0),e.refiners.push(new f0(t)),e}function D0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return l$(n,t),u$(n,t),n.assign(`timezoneOffset`,e.getTimezoneOffset()),n.addTag(`casualReference/now`),n}function O0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return l$(n,t),f$(n,t),n.delete(`meridiem`),n.addTag(`casualReference/today`),n}function k0(e){return j0(e,1).addTag(`casualReference/yesterday`)}function A0(e){return M0(e,1).addTag(`casualReference/tomorrow`)}function j0(e,t){return M0(e,-t)}function M0(e,t){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),l$(r,i),f$(r,i),r.delete(`meridiem`),r}function N0(e,t=22){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return l$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/tonight`),r}function P0(e,t=0){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n.getHours()<6&&(n=new Date(n.getTime()-864e5)),l$(r,n),r.imply(`hour`,t),r}function F0(e,t=20){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.addTag(`casualReference/evening`),n}function I0(e,t=20){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n=new Date(n.getTime()-864e5),l$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/yesterday`),r.addTag(`casualReference/evening`),r}function L0(e){let t=new Z(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign(`hour`,0),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/midnight`),t}function R0(e,t=6){let n=new Z(e,{});return n.imply(`meridiem`,X.AM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/morning`),n}function z0(e,t=15){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/afternoon`),n}function B0(e){let t=new Z(e,{});return t.imply(`meridiem`,X.AM),t.assign(`hour`,12),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/noon`),t}var V0=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,H0=class extends ${innerPattern(e){return V0}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`now`:i=D0(e.reference);break;case`today`:i=O0(e.reference);break;case`yesterday`:i=k0(e.reference);break;case`tomorrow`:case`tmr`:case`tmrw`:i=A0(e.reference);break;case`tonight`:i=N0(e.reference);break;case`overmorrow`:i=M0(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}l$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ENCasualDateParser`),i}},U0=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i,W0=class extends ${innerPattern(){return U0}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case`afternoon`:n=z0(e.reference);break;case`evening`:case`night`:n=F0(e.reference);break;case`midnight`:n=L0(e.reference);break;case`morning`:n=R0(e.reference);break;case`noon`:case`midday`:n=B0(e.reference)}return n&&n.addTag(`parser/ENCasualTimeParser`),n}},G0=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Q(E$)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,`i`),K0=1,q0=2,J0=3,Y0=class extends ${innerPattern(){return G0}innerExtract(e,t){let n=t[K0],r=t[J0],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`last`||i==`past`?a=`last`:i==`next`?a=`next`:i==`this`&&(a=`this`);let o=t[q0].toLowerCase(),s;if(E$[o]!==void 0)s=E$[o];else if(o==`weekend`)s=a==`last`?s$.SUNDAY:s$.SATURDAY;else if(o==`weekday`){let t=e.reference.getDateWithAdjustedTimezone().getDay();t==s$.SUNDAY||t==s$.SATURDAY?s=a==`last`?s$.FRIDAY:s$.MONDAY:(s=t-1,s=a==`last`?s-1:s+1,s=s%5+1)}else return null;return o0(e.reference,s,a)}},X0=RegExp(`(this|last|past|next|after\\s*this)\\s*(${Q(M$)})(?=\\s*)(?=\\W|$)`,`i`),Z0=1,Q0=2,$0=class extends ${innerPattern(){return X0}innerExtract(e,t){let n=t[Z0].toLowerCase(),r=t[Q0].toLowerCase(),i=M$[r];if(n==`next`||n.startsWith(`after`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`last`||n==`past`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/month/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},e2=RegExp(`([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)`,`i`),t2=1,n2=5,r2=2,i2=3,a2=4,o2=class{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?i2:r2,this.groupNumberDay=e?r2:i2}pattern(){return e2}extract(e,t){let n=t.index+t[t2].length,r=t.index+t[0].length-t[n2].length;if(n>0&&e.text.substring(0,n).match(`\\d/?$`)||r<e.text.length&&e.text.substring(r).match(`^/?\\d`))return;let i=e.text.substring(n,r);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[a2]&&i.indexOf(`/`)<0)return;let a=e.createParsingResult(n,i),o=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12){if(s>=1&&s<=12&&o<=31)[s,o]=[o,s];else return null}if(s<1||s>31)return null;if(a.start.assign(`day`,s),a.start.assign(`month`,o),t[a2]){let e=w$(parseInt(t[a2]));a.start.assign(`year`,e)}else{let t=T$(e.refDate,s,o);a.start.imply(`year`,t)}return a.addTag(`parser/SlashDateFormatParser`)}},s2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${U$})(?=\\W|$)`,`i`),c2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${W$})(?=\\W|$)`,`i`),l2=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?s2:c2}innerExtract(e,t){let n=t[1].toLowerCase(),r=G$(t[2]);if(!r)return null;switch(n){case`last`:case`past`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}};function u2(e){return e.text.match(/^[+-]/i)!=null}function d2(e){return e.text.match(/^-/i)!=null}var f2=class extends G1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?u2(n)||d2(n):!1}mergeResults(e,t,n,r){let i=G$(n.text);d2(n)&&(i=y$(i));let a=Z.createRelativeFromReference(b$.fromDate(t.start.date()),i);return new x$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function p2(e){return e.text.match(/\s+(before|from)$/i)!=null}function m2(e){return e.text.match(/\s+(after|since)$/i)!=null}var h2=class extends G1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!p2(t)&&!m2(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=G$(t.text);p2(t)&&(r=y$(r));let i=Z.createRelativeFromReference(b$.fromDate(n.start.date()),r);return new x$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},g2=RegExp(`^\\s*(${L$})`,`i`),_2=1,v2=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=g2.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=R$(r[_2]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},y2=class extends W1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase()===`may`&&!e.text.substring(0,t.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!n.toLowerCase().endsWith(`the second`)||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1)}},b2=/\b(?:last\s+day|end)\s+of\s+(?:the\s+)?$/i,x2=/^(this|last|past|next)\s*(week|month|year)$/i,S2=/^\s+(this|last|past|next)\s+year(?=\W|$)/i;function C2(e){return e===`next`?1:e===`last`||e===`past`?-1:0}var w2=class{refine(e,t){return t.forEach(t=>{let n=e.text.substring(0,t.index).match(b2);if(!n)return;let r=t.text.match(x2);if(r){let n=r[1].toLowerCase();this.moveToEndOfRelativePeriod(e,t,n,r[2].toLowerCase())}else if(t.start.isCertain(`month`)&&!t.start.isCertain(`day`))this.moveToEndOfMonth(e,t);else return;t.start.imply(`hour`,12),t.start.imply(`minute`,0),t.start.imply(`second`,0),t.start.imply(`millisecond`,0),t.start.isCertain(`timezoneOffset`)||t.start.delete(`timezoneOffset`),t.index-=n[0].length,t.text=n[0]+t.text,t.addTag(`refiner/ENEndOfPeriodRefiner`)}),t}moveToEndOfRelativePeriod(e,t,n,r){let i=C2(n),a=e.reference.getDateWithAdjustedTimezone(),o;r===`week`?(o=new Date(a.getTime()),o.setDate(a.getDate()+(6-a.getDay())+i*7)):o=r===`month`?new Date(a.getFullYear(),a.getMonth()+i+1,0):new Date(a.getFullYear()+i,11,31),t.start.assign(`day`,o.getDate()),t.start.assign(`month`,o.getMonth()+1),t.start.assign(`year`,o.getFullYear()),t.start.delete(`weekday`),t.start.imply(`weekday`,o.getDay())}moveToEndOfMonth(e,t){let n=t.start.get(`year`),r=t.start.get(`month`),i=e.text.substring(t.index+t.text.length).match(S2);if(i){let r=i[1].toLowerCase();n=e.reference.getDateWithAdjustedTimezone().getFullYear()+C2(r),t.start.assign(`year`,n),t.text+=i[0]}if(!t.start.isCertain(`year`)){let i=new Date(n,r,0).getDate();n=T$(e.reference.getDateWithAdjustedTimezone(),i,r),t.start.imply(`year`,n)}t.start.assign(`day`,new Date(n,r,0).getDate())}},T2=/(?:last\s+day|end)\s+of\s+(?:the\s+)?month(?=\W|$)/i,E2=class extends ${innerPattern(){return T2}innerExtract(e){let t=e.reference.getDateWithAdjustedTimezone(),n=t.getFullYear(),r=t.getMonth()+1,i=new Date(n,r,0).getDate(),a=e.createParsingComponents();return a.assign(`day`,i),a.assign(`month`,r),a.assign(`year`,n),a.addTag(`parser/ENEndOfCurrentMonthParser`),a}},D2=class{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new H0),t.parsers.push(new W0),t.parsers.push(new E2),t.parsers.push(new p1),t.parsers.push(new $0),t.parsers.push(new l2),t.refiners.unshift(new w2),t.refiners.push(new y2),t}createConfiguration(e=!0,t=!1){let n=E0({parsers:[new o2(t),new X$(e),new n1,new c1(t),new Y0,new D1,new I1(e),new z1(e),new U1(e),new C1],refiners:[new Z1]},e);return n.parsers.unshift(new y1(e)),n.refiners.unshift(new h2),n.refiners.unshift(new f2),n.refiners.unshift(new a0),n.refiners.push(new Z1),n.refiners.push(new v2),n.refiners.push(new q1),n}},O2=class e{parsers;refiners;defaultConfig=new D2;constructor(e){e||=this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new e({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(t,n,r){let i=new k2(t,n,r),a=[];return this.parsers.forEach(t=>{let n=e.executeParser(i,t);a=a.concat(n)}),a.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){a=e.refine(i,a)}),a}static executeParser(e,t){let n=[],r=t.pattern(e),i=e.text,a=e.text,o=r.exec(a);for(;o;){let s=o.index+i.length-a.length;o.index=s;let c=t.extract(e,o);if(!c){a=i.substring(o.index+1),o=r.exec(a);continue}let l=null;c instanceof x$?l=c:c instanceof Z?(l=e.createParsingResult(o.index,o[0]),l.start=c):l=e.createParsingResult(o.index,o[0],c);let u=l.index,d=l.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)),n.push(l),a=i.substring(u+d.length),o=r.exec(a)}return n}},k2=class{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=b$.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Z?e:new Z(this.reference,e)}createParsingResult(e,t,n,r){let i=typeof t==`string`?t:this.text.substring(e,t),a=n?this.createParsingComponents(n):null,o=r?this.createParsingComponents(r):null;return new x$(this.reference,e,i,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}},A2=new D2,j2=new O2(A2.createCasualConfiguration(!1));new O2(A2.createConfiguration(!0,!1));var M2=new O2(A2.createCasualConfiguration(!0)),N2=class extends F1{primaryPrefix(){return`(?:(?:um|von)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|bis)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},P2={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},F2={januar:1,jänner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,märz:3,maerz:3,mär:3,"mär.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12},I2={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,fünf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zwölf:12,zwoelf:12},L2={sek:`second`,sekunde:`second`,sekunden:`second`,min:`minute`,minute:`minute`,minuten:`minute`,h:`hour`,std:`hour`,stunde:`hour`,stunden:`hour`,tag:`day`,tage:`day`,tagen:`day`,woche:`week`,wochen:`week`,monat:`month`,monate:`month`,monaten:`month`,monats:`month`,quartal:`quarter`,quartals:`quarter`,quartale:`quarter`,quartalen:`quarter`,a:`year`,j:`year`,jr:`year`,jahr:`year`,jahre:`year`,jahren:`year`,jahres:`year`},R2=`(?:${Q(I2)}|[0-9]+|[0-9]+\\.[0-9]+|halb?|halbe?|einigen?|wenigen?|mehreren?)`;function z2(e){let t=e.toLowerCase();return I2[t]===void 0?t===`ein`||t===`einer`||t===`einem`||t===`einen`||t===`eine`?1:t.match(/wenigen/)?2:t.match(/halb/)||t.match(/halben/)?.5:t.match(/einigen/)?3:t.match(/mehreren/)?7:parseFloat(t):I2[t]}var B2=`(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)`;function V2(e){return/v/i.test(e)?-parseInt(e.replace(/[^0-9]+/gi,``)):/n/i.test(e)||/z/i.test(e)?parseInt(e.replace(/[^0-9]+/gi,``)):w$(parseInt(e))}var H2=`(${R2})\\s{0,5}(${Q(L2)})\\s{0,5}`,U2=new RegExp(H2,`i`),W2=S$(``,H2);function G2(e){let t={},n=e,r=U2.exec(n);for(;r;)K2(t,r),n=n.substring(r[0].length),r=U2.exec(n);return t}function K2(e,t){let n=z2(t[1]),r=L2[t[2].toLowerCase()];e[r]=n}var q2=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?(${Q(P2)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?(?=\\W|$)`,`i`),J2=1,Y2=3,X2=2,Z2=class extends ${innerPattern(){return q2}innerExtract(e,t){let n=P2[t[X2].toLowerCase()],r=t[J2],i=t[Y2],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/letzte/)?o=`last`:a.match(/chste/)?o=`next`:a.match(/diese/)&&(o=`this`),o0(e.reference,n,o)}},Q2=RegExp(`(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),$2=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),e4=2,t4=3,n4=4,r4=5,i4=class e{pattern(e){return Q2}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=$2.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[e4]),t[t4]!=null&&(r=parseInt(t[t4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[r4]!=null){if(n>12)return null;let e=t[r4].toLowerCase();e.match(/morgen|vormittag/)&&(i=X.AM,n==12&&(n=0)),e.match(/nachmittag|abend/)&&(i=X.PM,n!=12&&(n+=12)),e.match(/nacht/)&&(n==12?(i=X.AM,n=0):n<6?i=X.AM:(i=X.PM,n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[n4]!=null){let n=parseInt(t[n4]);if(n>=60)return null;e.assign(`second`,n)}return e}},a4=class extends K1{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}},o4=class extends X1{patternBetween(){return RegExp(`^\\s*(T|um|am|,|-)?\\s*$`)}},s4=class e extends ${innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return f$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`morgen`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`vormittag`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`mittag`:case`mittags`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`nachmittag`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`abend`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`nacht`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`mitternacht`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},c4=RegExp(`(jetzt|heute|morgen|übermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)`,`i`),l4=1,u4=2,d4=class extends ${innerPattern(e){return c4}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[l4]||``).toLowerCase(),i=(t[u4]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`jetzt`:a=D0(e.reference);break;case`heute`:a=O0(e.reference);break;case`morgen`:n=v$(n,{day:1}),l$(a,n),f$(a,n);break;case`übermorgen`:case`uebermorgen`:n=v$(n,{day:2}),l$(a,n),f$(a,n);break;case`gestern`:n=v$(n,{day:-1}),l$(a,n),f$(a,n);break;case`vorgestern`:n=v$(n,{day:-2}),l$(a,n),f$(a,n);break;default:r.match(/letzte\s*nacht/)&&(n.getHours()>6&&(n=v$(n,{day:-1})),l$(a,n),a.imply(`hour`,0))}return i&&(a=s4.extractTimeComponents(a,i)),a}},f4=RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(F2)})(?:(?:-|/|,?\\s*)(${B2}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),p4=1,m4=2,h4=3,g4=4,_4=class extends ${innerPattern(){return f4}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=F2[t[h4].toLowerCase()],i=parseInt(t[p4]);if(i>31)return t.index+=t[p4].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[g4]){let e=V2(t[g4]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[m4]){let e=parseInt(t[m4]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},v4=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:\\s*((?:nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${R2})?(?:\\s*(nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${Q(L2)})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[2]?z2(t[2]):1,r=L2[t[4].toLowerCase()],i={};i[r]=n;let a=t[1]||t[3]||``;if(a=a.toLowerCase(),a)return(/vor/.test(a)||/letzte/.test(a)||/vergangen/.test(a))&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},y4=class extends ${innerPattern(){return RegExp(`(?:in|für|während)\\s*(${W2})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=G2(t[1]);return Z.createRelativeFromReference(e.reference,n)}},b4=new O2(x4());new O2(S4(!0));function x4(e=!0){let t=S4(!1,e);return t.parsers.unshift(new s4),t.parsers.unshift(new d4),t.parsers.unshift(new v4),t}function S4(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new N2,new i4,new _4,new Z2,new y4],refiners:[new a4,new o4]},e)}var C4=class extends ${innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`maintenant`:return D0(e.reference);case`aujourd'hui`:return O0(e.reference);case`hier`:return k0(e.reference);case`demain`:return A0(e.reference);default:if(r.match(/cette\s*nuit/))l$(i,n),i.imply(`hour`,22),i.imply(`meridiem`,X.PM);else if(r.match(/la\s*veille/)){let e=new Date(n.getTime());e.setDate(e.getDate()-1),l$(i,e),i.imply(`hour`,0)}}return i}},w4=class extends ${innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),r=e.createParsingComponents();switch(n){case`après-midi`:case`aprem`:r.imply(`hour`,14),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/afternoon`);break;case`soir`:r.imply(`hour`,18),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/evening`);break;case`matin`:r.imply(`hour`,8),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/morning`);break;case`a midi`:r.imply(`hour`,12),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/noon`);break;case`à minuit`:r.imply(`hour`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/midnight`)}return r}},T4=class extends F1{primaryPrefix(){return`(?:(?:[àa])\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},E4=class extends X1{patternBetween(){return RegExp(`^\\s*(T|à|a|au|vers|de|,|-)?\\s*$`)}},D4=class extends K1{patternBetween(){return/^\s*(à|a|au|-)\s*$/i}},O4={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6},k4={janvier:1,jan:1,"jan.":1,janv:1,"janv.":1,février:2,fév:2,"fév.":2,févr:2,"févr.":2,fevrier:2,fev:2,"fev.":2,fevr:2,"fevr.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,"juin.":6,jun:6,"jun.":6,juillet:7,juil:7,"juil.":7,jul:7,"jul.":7,août:8,"août.":8,aout:8,"aout.":8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,décembre:12,decembre:12,dec:12,"dec.":12,déc:12,"déc.":12},A4={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13},j4={sec:`second`,seconde:`second`,secondes:`second`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,heure:`hour`,heures:`hour`,jour:`day`,jours:`day`,semaine:`week`,semaines:`week`,mois:`month`,trimestre:`quarter`,trimestres:`quarter`,ans:`year`,année:`year`,années:`year`},M4=`(?:${Q(A4)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function N4(e){let t=e.toLowerCase();return A4[t]===void 0?t===`une`||t===`un`?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t):A4[t]}var P4=`(?:[0-9]{1,2}(?:er)?)`;function F4(e){let t=e.toLowerCase();return t=t.replace(/(?:er)$/i,``),parseInt(t)}var I4=`(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])`;function L4(e){if(/AC/i.test(e))return e=e.replace(/BC/i,``),-parseInt(e);if(/AD/i.test(e)||/C/i.test(e))return e=e.replace(/[^\d]+/i,``),parseInt(e);let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}var R4=`(${M4})\\s{0,5}(${Q(j4)})\\s{0,5}`,z4=new RegExp(R4,`i`),B4=S$(``,R4);function V4(e){let t={},n=e,r=z4.exec(n);for(;r;)H4(t,r),n=n.substring(r[0].length),r=z4.exec(n);return t}function H4(e,t){let n=N4(t[1]),r=j4[t[2].toLowerCase()];e[r]=n}var U4=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(?:ce)\\s*)?(${Q(O4)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,`i`),W4=1,G4=2,K4=class extends ${innerPattern(){return U4}innerExtract(e,t){let n=O4[t[W4].toLowerCase()];if(n===void 0)return null;let r=t[G4];r||=``,r=r.toLowerCase();let i=null;return r==`dernier`?i=`last`:r==`prochain`&&(i=`next`),o0(e.reference,n,i)}},q4=RegExp(`(^|\\s|T)(?:(?:[àa])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),J4=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),Y4=2,X4=3,Z4=4,Q4=5,$4=class e{pattern(e){return q4}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=J4.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[Y4]),t[X4]!=null&&(r=parseInt(t[X4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[Q4]!=null){if(n>12)return null;let e=t[Q4][0].toLowerCase();e==`a`&&(i=X.AM,n==12&&(n=0)),e==`p`&&(i=X.PM,n!=12&&(n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[Z4]!=null){let n=parseInt(t[Z4]);if(n>=60)return null;e.assign(`second`,n)}return e}},e3=RegExp(`(?:on\\s*?)?(${P4})(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${P4}))?(?:-|/|\\s*(?:de)?\\s*)(${Q(k4)})(?:(?:-|/|,?\\s*)(${I4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),t3=1,n3=2,r3=3,i3=4,a3=class extends ${innerPattern(){return e3}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=k4[t[r3].toLowerCase()],i=F4(t[t3]);if(i>31)return t.index+=t[t3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[i3]){let e=L4(t[i3]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[n3]){let e=F4(t[n3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},o3=class extends ${constructor(){super()}innerPattern(){return RegExp(`il y a\\s*(${B4})(?=(?:\\W|$))`,`i`)}innerExtract(e,t){let n=y$(V4(t[1]));return Z.createRelativeFromReference(e.reference,n)}},s3=class extends ${innerPattern(){return RegExp(`(?:dans|en|pour|pendant|de)\\s*(${B4})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=V4(t[1]);return Z.createRelativeFromReference(e.reference,n)}},c3=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:les?|la|l'|du|des?)\\s*(${M4})?(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?\\s*(${Q(j4)})(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[1]?N4(t[1]):1,r=j4[t[3].toLowerCase()],i={};i[r]=n;let a=t[2]||t[4]||``;if(a=a.toLowerCase(),a)return(/derni[eè]re?s?/.test(a)||/pass[ée]e?s?/.test(a)||/pr[ée]c[ée]dents?/.test(a))&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},l3=new O2(u3());new O2(d3(!0));function u3(e=!0){let t=d3(!1,e);return t.parsers.unshift(new C4),t.parsers.unshift(new w4),t.parsers.unshift(new c3),t}function d3(e=!0,t=!0){return E0({parsers:[new o2(t),new a3,new T4,new $4,new o3,new s3,new K4],refiners:[new E4,new D4]},e)}var f3={零:0,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},p3={日:0,月:1,火:2,水:3,木:4,金:5,土:6};function m3(e){return String(e).replace(/\u2019/g,`'`).replace(/\u201D/g,`"`).replace(/\u3000/g,` `).replace(/\uFFE5/g,`¥`).replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,h3)}function h3(e){return String.fromCharCode(e.charCodeAt(0)-65248)}function g3(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?f3[r]:t*f3[r]:t+=f3[r]}return t}var _3=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,v3=1,y3=2,b3=3,x3=4,S3=5,C3=6,w3=class{pattern(){return _3}extract(e,t){let n=parseInt(m3(t[S3])),r=parseInt(m3(t[C3])),i=e.createParsingComponents({day:r,month:n});if(t[v3]&&t[v3].match(`同|今|本`)&&i.assign(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),t[y3]){let e=t[x3],n=e==`元`?1:parseInt(m3(e));t[b3]==`令和`?n+=2018:t[b3]==`平成`?n+=1988:t[b3]==`昭和`&&(n+=1925),i.assign(`year`,n)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}return i}},T3=class extends K1{patternBetween(){return/^\s*(から|-|ー|-|~|~)\s*$/i}},E3=/今日|きょう|本日|ほんじつ|昨日|きのう|明日|あした|今夜|こんや|今夕|こんゆう|今晩|こんばん|今朝|けさ/i;function D3(e){switch(e){case`きょう`:return`今日`;case`ほんじつ`:return`本日`;case`きのう`:return`昨日`;case`あした`:return`明日`;case`こんや`:return`今夜`;case`こんゆう`:return`今夕`;case`こんばん`:return`今晩`;case`けさ`:return`今朝`;default:return e}}var O3=class{pattern(){return E3}extract(e,t){let n=D3(t[0]),r=e.createParsingComponents();switch(n){case`昨日`:return k0(e.reference);case`明日`:return A0(e.reference);case`本日`:case`今日`:return O0(e.reference)}n==`今夜`||n==`今夕`||n==`今晩`?(r.imply(`hour`,22),r.assign(`meridiem`,X.PM)):n.match(`今朝`)&&(r.imply(`hour`,6),r.assign(`meridiem`,X.AM));let i=e.refDate;return r.assign(`day`,i.getDate()),r.assign(`month`,i.getMonth()+1),r.assign(`year`,i.getFullYear()),r}},k3=RegExp(`((?<prefix>前の|次の|今週))?(?<weekday>`+Object.keys(p3).join(`|`)+`)(?:曜日|曜)`,`i`),Tae=class{pattern(){return k3}extract(e,t){let n=p3[t.groups.weekday];if(n===void 0)return null;let r=t.groups.prefix||``,i=null;return r.match(/前の/)?i=`last`:r.match(/次の/)?i=`next`:r.match(/今週/)&&(i=`this`),o0(e.reference,n,i)}},Eae=RegExp(`([0-90-9]{4}[\\/|\\/])?([0-10-1]{0,1}[0-90-9]{1})(?:[\\/|\\/]([0-30-3]{0,1}[0-90-9]{1}))`,`i`),A3=1,Dae=2,Oae=3,kae=class{pattern(){return Eae}extract(e,t){let n=e.createParsingComponents(),r=parseInt(m3(t[Dae])),i=parseInt(m3(t[Oae]));if(r<1||r>12||i<1||i>31)return null;if(n.assign(`day`,i),n.assign(`month`,r),t[A3]){let e=w$(parseInt(m3(t[A3])));n.assign(`year`,e)}else{let t=T$(e.reference.instant,i,r);n.imply(`year`,t)}return n}},Aae=RegExp(`(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)(?:\\s*)(?:時(?!間)|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),jae=RegExp(`(?:^\\s*(?:から|\\-|\\–|\\-|\\~|\\〜)\\s*)(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)(?:\\s*)(?:時|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),j3=1,M3=2,N3=3,P3=4,F3=5,Mae=class extends ${innerPattern(){return Aae}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]);return n.start=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.start?(t=jae.exec(e.text.substring(n.index+n.text.length)),t?(n.text+=t[0],n.end=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.end?(!n.end.isCertain(`meridiem`)&&n.start.isCertain(`meridiem`)&&(n.end.imply(`meridiem`,n.start.get(`meridiem`)),n.start.get(`meridiem`)===X.PM&&(n.start.get(`hour`)-12>n.end.get(`hour`)?n.end.imply(`meridiem`,X.AM):n.end.get(`hour`)<12&&n.end.assign(`hour`,n.end.get(`hour`)+12))),n.end.date().getTime()<n.start.date().getTime()&&n.end.addDurationAsImplied({day:1}),n):null):n):(t.index+=t[0].length,null)}};function I3(e,t,n,r,i){let a=0,o=-1,s=e.createParsingComponents();if(a=parseInt(m3(t)),isNaN(a)&&(a=g3(t)),a>24)return null;if(n){let e;if(n===`半`?e=30:(e=parseInt(m3(n)),isNaN(e)&&(e=g3(n))),e>=60)return null;s.assign(`minute`,e)}if(r){let e=parseInt(m3(r));if(isNaN(e)&&(e=g3(r)),e>=60)return null;s.assign(`second`,e)}if(i){if(a>12)return null;let e=i;e===`午前`||e[0].toLowerCase()===`a`?(o=X.AM,a===12&&(a=0)):(e===`午後`||e[0].toLowerCase()===`p`)&&(o=X.PM,a!=12&&(a+=12))}return s.assign(`hour`,a),o>=0?s.assign(`meridiem`,o):a<12?s.imply(`meridiem`,X.AM):s.imply(`meridiem`,X.PM),s}var Nae=class extends X1{patternBetween(){return/^\s*(の)?\s*$/i}},Pae=class extends G1{mergeResults(e,t,n){let r=t.clone();return r.text=t.text+e+n.text,r.start.assign(`weekday`,n.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,n.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isCertain(`day`)&&n.start.isOnlyWeekdayComponent()&&!n.start.isCertain(`hour`)&&e.match(/^[,、の]?\s*$/)!==null}},Fae=RegExp(`(?:\\(|\\()(?<weekday>`+Object.keys(p3).join(`|`)+`)(?:\\)|\\))`,`i`),Iae=class{pattern(){return Fae}extract(e,t){let n=p3[t.groups.weekday];return n===void 0?null:o0(e.reference,n)}},Lae=new O2(Rae());new O2(L3(!0));function Rae(){let e=L3(!1);return e.parsers.unshift(new O3),e}function L3(e=!0){let t=E0({parsers:[new w3,new Tae,new Iae,new kae,new Mae],refiners:[new Pae,new Nae,new T3]},e);return t.refiners=t.refiners.filter(e=>!(e instanceof T0)),t}var R3={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,terça:2,"terça-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,sábado:6,sabado:6,sab:6},z3={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,março:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12},zae=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function Bae(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var Vae=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|passado|pr[oó]ximo)\\s*)?(${Q(R3)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|passado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Hae=1,Uae=2,Wae=3,Gae=class extends ${innerPattern(){return Vae}innerExtract(e,t){let n=R3[t[Uae].toLowerCase()];if(n===void 0)return null;let r=t[Hae],i=t[Wae],a=r||i||``;a=a.toLowerCase();let o=null;return a==`passado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),o0(e.reference,n,o)}},Kae=class extends F1{primaryPrefix(){return`(?:(?:ao?|às?|das|da|de|do)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:o)?|\\?)\\s*`}},qae=class extends X1{patternBetween(){return RegExp(`^\\s*(?:,|à)?\\s*$`)}},Jae=class extends K1{patternBetween(){return/^\s*(?:-)\s*$/i}},Yae=RegExp(`([0-9]{1,2})(?:º|ª|°)?(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(z3)})(?:\\s*(?:de|,)?\\s*(${zae}))?(?=\\W|$)`,`i`),B3=1,V3=2,Xae=3,H3=4,Zae=class extends ${innerPattern(){return Yae}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=z3[t[Xae].toLowerCase()],i=parseInt(t[B3]);if(i>31)return t.index+=t[B3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H3]){let e=Bae(t[H3]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V3]){let e=parseInt(t[V3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Qae=class extends ${innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`agora`:return D0(e.reference);case`hoje`:return O0(e.reference);case`amanha`:case`amanhã`:return A0(e.reference);case`ontem`:return k0(e.reference)}return r}},$ae=class extends ${innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noite`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`manha`:case`manhã`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`meia-noite`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`meio-dia`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},eoe=new O2(toe());new O2(U3(!0));function toe(e=!0){let t=U3(!1,e);return t.parsers.push(new Qae),t.parsers.push(new $ae),t}function U3(e=!0,t=!0){return E0({parsers:[new o2(t),new Gae,new Kae,new Zae],refiners:[new qae,new Jae]},e)}var noe=class extends K1{patternBetween(){return/^\s*(tot|-)\s*$/i}},roe=class extends X1{patternBetween(){return RegExp(`^\\s*(om|na|voor|in de|,|-)?\\s*$`)}},ioe=class extends ${innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`nu`:return D0(e.reference);case`vandaag`:return O0(e.reference);case`morgen`:case`morgend`:return A0(e.reference);case`gisteren`:return k0(e.reference)}return r}},aoe=1,ooe=2,soe=class extends ${innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[aoe]===`deze`&&(r.assign(`day`,e.refDate.getDate()),r.assign(`month`,e.refDate.getMonth()+1),r.assign(`year`,e.refDate.getFullYear())),t[ooe].toLowerCase()){case`namiddag`:case`'s namiddags`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`avond`:case`'s avonds'`:r.imply(`meridiem`,X.PM),r.imply(`hour`,20),r.addTag(`casualReference/evening`);break;case`middernacht`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`ochtend`:case`'s ochtends`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`middag`:case`'s middags`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},W3={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6},G3={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,mrt:3,"mrt.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},K3={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12},q3={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,tweeëntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31},J3={sec:`second`,second:`second`,seconden:`second`,min:`minute`,mins:`minute`,minute:`minute`,minuut:`minute`,minuten:`minute`,minuutje:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,uur:`hour`,u:`hour`,uren:`hour`,dag:`day`,dagen:`day`,week:`week`,weken:`week`,maand:`month`,maanden:`month`,jaar:`year`,jr:`year`,jaren:`year`},coe=`(?:${Q(K3)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function loe(e){let t=e.toLowerCase();return K3[t]===void 0?t===`paar`?2:t===`half`||t.match(/halve?/)?.5:parseFloat(t.replace(`,`,`.`)):K3[t]}var Y3=`(?:${Q(q3)}|[0-9]{1,2}(?:ste|de)?)`;function X3(e){let t=e.toLowerCase();return q3[t]===void 0?(t=t.replace(/(?:ste|de)$/i,``),parseInt(t)):q3[t]}var Z3=`(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])`;function Q3(e){return/voor Christus/i.test(e)?(e=e.replace(/voor Christus/i,``),-parseInt(e)):/na Christus/i.test(e)?(e=e.replace(/na Christus/i,``),parseInt(e)):w$(parseInt(e))}var $3=`(${coe})\\s{0,5}(${Q(J3)})\\s{0,5}`,e6=new RegExp($3,`i`),t6=S$(`(?:(?:binnen|in)\\s*)?`,$3);function n6(e){let t={},n=e,r=e6.exec(n);for(;r;)uoe(t,r),n=n.substring(r[0].length),r=e6.exec(n);return t}function uoe(e,t){let n=loe(t[1]),r=J3[t[2].toLowerCase()];e[r]=n}var doe=class extends ${innerPattern(){return RegExp(`(?:binnen|in|binnen de|voor)\\s*(`+t6+`)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=n6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},foe=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${Q(W3)})(?=\\W|$)`,`i`),poe=1,moe=2,hoe=3,goe=class extends ${innerPattern(){return foe}innerExtract(e,t){let n=W3[t[moe].toLowerCase()],r=t[poe],i=t[hoe],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`vorige`?o=`last`:a==`volgende`?o=`next`:a==`deze`&&(o=`this`),o0(e.reference,n,o)}},_oe=RegExp(`(?:on\\s*?)?(${Y3})(?:\\s*(?:tot|\\-|\\–|until|through|till|\\s)\\s*(${Y3}))?(?:-|/|\\s*(?:of)?\\s*)(`+Q(G3)+`)(?:(?:-|/|,?\\s*)(${Z3}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),voe=3,r6=1,i6=2,a6=4,yoe=class extends ${innerPattern(){return _oe}innerExtract(e,t){let n=G3[t[voe].toLowerCase()],r=X3(t[r6]);if(r>31)return t.index+=t[r6].length,null;let i=e.createParsingComponents({day:r,month:n});if(t[a6]){let e=Q3(t[a6]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[i6])return i;let a=X3(t[i6]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},boe=RegExp(`(${Q(G3)})\\s*(?:[,-]?\\s*(${Z3})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),xoe=1,o6=2,s6=class extends ${innerPattern(){return boe}innerExtract(e,t){let n=e.createParsingComponents();n.imply(`day`,1);let r=G3[t[xoe].toLowerCase()];if(n.assign(`month`,r),t[o6]){let e=Q3(t[o6]);n.assign(`year`,e)}else{let t=T$(e.refDate,1,r);n.imply(`year`,t)}return n}},Soe=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Coe=1,woe=2,Toe=class extends ${innerPattern(){return Soe}innerExtract(e,t){let n=parseInt(t[woe]),r=parseInt(t[Coe]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Eoe=class extends F1{primaryPrefix(){return`(?:(?:om)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*`}primarySuffix(){return`(?:\\s*(?:uur))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},Doe=RegExp(`([0-9]{4})[\\.\\/\\s](?:(${Q(G3)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Ooe=1,koe=2,c6=3,Aoe=4,joe=class extends ${innerPattern(){return Doe}innerExtract(e,t){let n=t[c6]?parseInt(t[c6]):G3[t[koe].toLowerCase()];if(n<1||n>12)return null;let r=parseInt(t[Ooe]);return{day:parseInt(t[Aoe]),month:n,year:r}}},Moe=1,Noe=2,Poe=class extends ${innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[Moe].toLowerCase(),r=t[Noe].toLowerCase(),i=e.createParsingComponents(),a=e.refDate;switch(n){case`gisteren`:let e=new Date(a.getTime());e.setDate(e.getDate()-1),l$(i,e);break;case`van`:l$(i,a);break;case`morgen`:let t=new Date(a.getTime());t.setDate(t.getDate()+1),l$(i,t),f$(i,t)}switch(r){case`ochtend`:i.imply(`meridiem`,X.AM),i.imply(`hour`,6);break;case`middag`:i.imply(`meridiem`,X.AM),i.imply(`hour`,12);break;case`namiddag`:i.imply(`meridiem`,X.PM),i.imply(`hour`,15);break;case`avond`:i.imply(`meridiem`,X.PM),i.imply(`hour`,20)}return i}},Foe=RegExp(`(dit|deze|vorig|afgelopen|(?:aan)?komend|over|\\+|-)e?\\s*(${t6})(?=\\W|$)`,`i`),Ioe=1,Loe=2,Roe=class extends ${innerPattern(){return Foe}innerExtract(e,t){let n=t[Ioe].toLowerCase(),r=n6(t[Loe]);switch(n){case`vorig`:case`afgelopen`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},zoe=RegExp(`(dit|deze|(?:aan)?komend|volgend|afgelopen|vorig)e?\\s*(${Q(J3)})(?=\\s*)(?=\\W|$)`,`i`),Boe=1,Voe=2,Hoe=class extends ${innerPattern(){return zoe}innerExtract(e,t){let n=t[Boe].toLowerCase(),r=t[Voe].toLowerCase(),i=J3[r];if(n==`volgend`||n==`komend`||n==`aankomend`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`afgelopen`||n==`vorig`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/maand/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/jaar/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Uoe=RegExp(`(`+t6+`)(?:geleden|voor|eerder)(?=(?:\\W|$))`,`i`),Woe=RegExp(`(`+t6+`)geleden(?=(?:\\W|$))`,`i`),Goe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Woe:Uoe}innerExtract(e,t){let n=y$(n6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},Koe=RegExp(`(`+t6+`)(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))`,`i`),qoe=RegExp(`(`+t6+`)(later|vanaf nu)(?=(?:\\W|$))`,`i`),Joe=1,Yoe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?qoe:Koe}innerExtract(e,t){let n=n6(t[Joe]);return Z.createRelativeFromReference(e.reference,n)}},Xoe=new O2(Zoe());new O2(l6(!0));function Zoe(e=!0){let t=l6(!1,e);return t.parsers.unshift(new ioe),t.parsers.unshift(new soe),t.parsers.unshift(new Poe),t.parsers.unshift(new s6),t.parsers.unshift(new Hoe),t.parsers.unshift(new Roe),t}function l6(e=!0,t=!0){return E0({parsers:[new o2(t),new doe,new yoe,new s6,new goe,new joe,new Toe,new Eoe(e),new Goe(e),new Yoe(e)],refiners:[new roe,new noe]},e)}var u6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},d6={воскресенье:0,воскресенья:0,вск:0,"вск.":0,понедельник:1,понедельника:1,пн:1,"пн.":1,вторник:2,вторника:2,вт:2,"вт.":2,среда:3,среды:3,среду:3,ср:3,"ср.":3,четверг:4,четверга:4,чт:4,"чт.":4,пятница:5,пятницу:5,пятницы:5,пт:5,"пт.":5,суббота:6,субботу:6,субботы:6,сб:6,"сб.":6},f6={январь:1,января:1,январе:1,февраль:2,февраля:2,феврале:2,март:3,марта:3,марте:3,апрель:4,апреля:4,апреле:4,май:5,мая:5,мае:5,июнь:6,июня:6,июне:6,июль:7,июля:7,июле:7,август:8,августа:8,августе:8,сентябрь:9,сентября:9,сентябре:9,октябрь:10,октября:10,октябре:10,ноябрь:11,ноября:11,ноябре:11,декабрь:12,декабря:12,декабре:12},p6={...f6,янв:1,"янв.":1,фев:2,"фев.":2,мар:3,"мар.":3,апр:4,"апр.":4,авг:8,"авг.":8,сен:9,"сен.":9,окт:10,"окт.":10,ноя:11,"ноя.":11,дек:12,"дек.":12},m6={один:1,одна:1,одной:1,одну:1,две:2,два:2,двух:2,три:3,трех:3,трёх:3,четыре:4,четырех:4,четырёх:4,пять:5,пяти:5,шесть:6,шести:6,семь:7,семи:7,восемь:8,восьми:8,девять:9,девяти:9,десять:10,десяти:10,одиннадцать:11,одиннадцати:11,двенадцать:12,двенадцати:12},h6={первое:1,первого:1,второе:2,второго:2,третье:3,третьего:3,четвертое:4,четвертого:4,пятое:5,пятого:5,шестое:6,шестого:6,седьмое:7,седьмого:7,восьмое:8,восьмого:8,девятое:9,девятого:9,десятое:10,десятого:10,одиннадцатое:11,одиннадцатого:11,двенадцатое:12,двенадцатого:12,тринадцатое:13,тринадцатого:13,четырнадцатое:14,четырнадцатого:14,пятнадцатое:15,пятнадцатого:15,шестнадцатое:16,шестнадцатого:16,семнадцатое:17,семнадцатого:17,восемнадцатое:18,восемнадцатого:18,девятнадцатое:19,девятнадцатого:19,двадцатое:20,двадцатого:20,"двадцать первое":21,"двадцать первого":21,"двадцать второе":22,"двадцать второго":22,"двадцать третье":23,"двадцать третьего":23,"двадцать четвертое":24,"двадцать четвертого":24,"двадцать пятое":25,"двадцать пятого":25,"двадцать шестое":26,"двадцать шестого":26,"двадцать седьмое":27,"двадцать седьмого":27,"двадцать восьмое":28,"двадцать восьмого":28,"двадцать девятое":29,"двадцать девятого":29,тридцатое:30,тридцатого:30,"тридцать первое":31,"тридцать первого":31},g6={сек:`second`,секунда:`second`,секунд:`second`,секунды:`second`,секунду:`second`,секундочка:`second`,секундочки:`second`,секундочек:`second`,секундочку:`second`,мин:`minute`,минута:`minute`,минут:`minute`,минуты:`minute`,минуту:`minute`,минуток:`minute`,минутки:`minute`,минутку:`minute`,минуточек:`minute`,минуточки:`minute`,минуточку:`minute`,час:`hour`,часов:`hour`,часа:`hour`,часу:`hour`,часиков:`hour`,часика:`hour`,часике:`hour`,часик:`hour`,день:`day`,дня:`day`,дней:`day`,суток:`day`,сутки:`day`,неделя:`week`,неделе:`week`,недели:`week`,неделю:`week`,недель:`week`,недельке:`week`,недельки:`week`,неделек:`week`,месяц:`month`,месяце:`month`,месяцев:`month`,месяца:`month`,квартал:`quarter`,квартале:`quarter`,кварталов:`quarter`,год:`year`,года:`year`,году:`year`,годов:`year`,лет:`year`,годик:`year`,годика:`year`,годиков:`year`},Qoe=`(?:${Q(m6)}|[0-9]+|[0-9]+\\.[0-9]+|пол|несколько|пар(?:ы|у)|\\s{0,3})`;function $oe(e){let t=e.toLowerCase();return m6[t]===void 0?t.match(/несколько/)?3:t.match(/пол/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):m6[t]}var _6=`(?:${Q(h6)}|[0-9]{1,2}(?:го|ого|е|ое)?)`;function v6(e){let t=e.toLowerCase();return h6[t]===void 0?parseInt(t):h6[t]}var y6=`(?:\\s+(?:году|года|год|г|г.))?`,b6=`(?:[1-9][0-9]{0,3}${y6}\\s*(?:н.э.|до н.э.|н. э.|до н. э.)|[1-2][0-9]{3}${y6}|[5-9][0-9]${y6})`;function x6(e){return/(год|года|г|г.)/i.test(e)&&(e=e.replace(/(год|года|г|г.)/i,``)),/(до н.э.|до н. э.)/i.test(e)?(e=e.replace(/(до н.э.|до н. э.)/i,``),-parseInt(e)):/(н. э.|н.э.)/i.test(e)?(e=e.replace(/(н. э.|н.э.)/i,``),parseInt(e)):w$(parseInt(e))}var S6=`(${Qoe})\\s{0,3}(${Q(g6)})`,C6=new RegExp(S6,`i`),w6=S$(`(?:(?:около|примерно)\\s{0,3})?`,S6);function T6(e){let t={},n=e,r=C6.exec(n);for(;r;)ese(t,r),n=n.substring(r[0].length).trim(),r=C6.exec(n);return t}function ese(e,t){let n=$oe(t[1]),r=g6[t[2].toLowerCase()];e[r]=n}var E6=`(?:(?:около|примерно)\\s*(?:~\\s*)?)?(${w6})${u6.rightBoundary}`,tse=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(E6,u6.flags):RegExp(`(?:в течение|в течении)\\s*${E6}`,u6.flags)}innerExtract(e,t){let n=T6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},D6=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),u6.flags)}innerPatternHasChange(e,t){return!1}},O6=class extends D6{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${u6.rightBoundary}`,u6.flags)}},k6=1,A6=2,nse=3,j6=4,rse=class extends O6{innerPatternString(e){return`(?:с)?\\s*(${_6})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${_6}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(p6)})(?:(?:-|\\/|,?\\s{0,3})(${b6}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=p6[t[nse].toLowerCase()],i=v6(t[k6]);if(i>31)return t.index+=t[k6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[j6]){let e=x6(t[j6]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[A6]){let e=v6(t[A6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},ise=2,M6=3,ase=class extends D6{innerPatternString(e){return`((?:в)\\s*)?(${Q(p6)})\\s*(?:[,-]?\\s*(${b6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[ise].toLowerCase();if(t[0].length<=3&&!f6[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=p6[n];if(r.start.assign(`month`,i),t[M6]){let e=x6(t[M6]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},ose=class extends F1{constructor(e){super(e)}patternFlags(){return u6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|и|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|с)\\s*)??`}primarySuffix(){return`(?:\\s*(?:утра|вечера|после полудня))?(?!\\/)${u6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечера`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`после полудня`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`утра`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},sse=class extends D6{innerPatternString(e){return`(${w6})\\s{0,5}назад(?=(?:\\W|$))`}innerExtract(e,t){let n=y$(T6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},cse=class extends K1{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}},lse=class extends X1{patternBetween(){return RegExp(`^\\s*(T|в|,|-)?\\s*$`)}},use=class extends O6{innerPatternString(e){return`(?:с|со)?\\s*(сегодня|вчера|завтра|послезавтра|послепослезавтра|позапозавчера|позавчера)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сегодня`:return O0(e.reference);case`вчера`:return k0(e.reference);case`завтра`:return A0(e.reference);case`послезавтра`:return M0(e.reference,2);case`послепослезавтра`:return M0(e.reference,3);case`позавчера`:return j0(e.reference,2);case`позапозавчера`:return j0(e.reference,3)}return r}},dse=class extends O6{innerPatternString(e){return`(сейчас|прошлым\\s*вечером|прошлой\\s*ночью|следующей\\s*ночью|сегодня\\s*ночью|этой\\s*ночью|ночью|этим утром|утром|утра|в\\s*полдень|вечером|вечера|в\\s*полночь)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`сейчас`)return D0(e.reference);if(r===`вечером`||r===`вечера`)return F0(e.reference);if(r.endsWith(`утром`)||r.endsWith(`утра`))return R0(e.reference);if(r.match(/в\s*полдень/))return B0(e.reference);if(r.match(/прошлой\s*ночью/))return P0(e.reference);if(r.match(/прошлым\s*вечером/))return I0(e.reference);if(r.match(/следующей\s*ночью/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),l$(i,t),i.imply(`hour`,0)}return r.match(/в\s*полночь/)||r.endsWith(`ночью`)?L0(e.reference):i}},fse=1,pse=2,mse=3,hse=class extends O6{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:(эту|этот|прошлый|прошлую|следующий|следующую|следующего)\\s*)?(${Q(d6)})(?:\\s*(?:,|\\)|)))?(?:\\s*на\\s*(этой|прошлой|следующей)\\s*неделе)?`}innerExtract(e,t){let n=d6[t[pse].toLowerCase()],r=t[fse],i=t[mse],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`прошлый`||a==`прошлую`||a==`прошлой`?o=`last`:a==`следующий`||a==`следующую`||a==`следующей`||a==`следующего`?o=`next`:(a==`этот`||a==`эту`||a==`этой`)&&(o=`this`),o0(e.reference,n,o)}},gse=1,_se=2,vse=class extends O6{innerPatternString(e){return`(в прошлом|на прошлой|на следующей|в следующем|на этой|в этом)\\s*(${Q(g6)})`}innerExtract(e,t){let n=t[gse].toLowerCase(),r=g6[t[_se].toLowerCase()];if(n==`на следующей`||n==`в следующем`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`в прошлом`||n==`на прошлой`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},yse=class extends O6{innerPatternString(e){return`(эти|последние|прошлые|следующие|после|спустя|через|\\+|-)\\s*(${w6})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=T6(t[2]);switch(n){case`последние`:case`прошлые`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},bse=new O2(xse());new O2(N6(!0));function xse(){let e=N6(!1);return e.parsers.unshift(new use),e.parsers.unshift(new dse),e.parsers.unshift(new ase),e.parsers.unshift(new vse),e.parsers.unshift(new yse),e}function N6(e=!0){return E0({parsers:[new o2(!0),new tse,new rse,new hse,new ose(e),new sse],refiners:[new lse,new cse]},e)}var P6={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miércoles:3,miercoles:3,mié:3,mie:3,jueves:4,jue:4,viernes:5,vie:5,sábado:6,sabado:6,sáb:6,sab:6},F6={enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,setiembre:9,octubre:10,noviembre:11,diciembre:12},I6={...F6,ene:1,"ene.":1,feb:2,"feb.":2,mar:3,"mar.":3,abr:4,"abr.":4,may:5,"may.":5,jun:6,"jun.":6,jul:7,"jul.":7,ago:8,"ago.":8,sep:9,"sep.":9,oct:10,"oct.":10,nov:11,"nov.":11,dic:12,"dic.":12},L6={uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13},R6={primero:1,primera:1,segundo:2,segunda:2,tercero:3,tercera:3,cuarto:4,cuarta:4,quinto:5,quinta:5,sexto:6,sexta:6,séptimo:7,septimo:7,séptima:7,septima:7,octavo:8,octava:8,noveno:9,novena:9,décimo:10,decimo:10,décima:10,decima:10,undécimo:11,undecimo:11,duodécimo:12,duodecimo:12,decimotercero:13,decimocuarto:14,decimoquinto:15,decimosexto:16,decimoséptimo:17,decimoseptimo:17,decimoctavo:18,decimonoveno:19,vigésimo:20,vigesimo:20,"vigésimo primero":21,"vigesimo primero":21,"vigésimo segundo":22,"vigesimo segundo":22,"vigésimo tercero":23,"vigesimo tercero":23,"vigésimo cuarto":24,"vigesimo cuarto":24,"vigésimo quinto":25,"vigesimo quinto":25,"vigésimo sexto":26,"vigesimo sexto":26,"vigésimo séptimo":27,"vigesimo septimo":27,"vigésimo octavo":28,"vigesimo octavo":28,"vigésimo noveno":29,"vigesimo noveno":29,trigésimo:30,trigesimo:30,"trigésimo primero":31,"trigesimo primero":31},z6={sec:`second`,segundo:`second`,segundos:`second`,min:`minute`,mins:`minute`,minuto:`minute`,minutos:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hora:`hour`,horas:`hour`,día:`day`,días:`day`,dia:`day`,dias:`day`,semana:`week`,semanas:`week`,mes:`month`,meses:`month`,cuarto:`quarter`,cuartos:`quarter`,año:`year`,años:`year`,ano:`year`,anos:`year`},Sse=`(?:${Q(L6)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`;function Cse(e){let t=e.toLowerCase();return L6[t]===void 0?t===`un`||t===`una`||t===`uno`?1:t.match(/algunos?/)||t.match(/unos?/)?3:t.match(/media?/)?.5:parseFloat(t):L6[t]}var B6=`(?:${Q(R6)}|[0-9]{1,2}(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)?)`;function V6(e){let t=e.toLowerCase();return R6[t]===void 0?(t=t.replace(/(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)$/i,``),parseInt(t)):R6[t]}var H6=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function U6(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var W6=`(${Sse})\\s{0,5}(${Q(z6)})\\s{0,5}`,G6=new RegExp(W6,`i`),K6=S$(``,W6);function wse(e){let t={},n=e,r=G6.exec(n);for(;r;)Tse(t,r),n=n.substring(r[0].length),r=G6.exec(n);return t}function Tse(e,t){let n=Cse(t[1]),r=z6[t[2].toLowerCase()];e[r]=n}var Ese=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|pasado|pr[oó]ximo)\\s*)?(${Q(P6)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|pasado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Dse=1,Ose=2,kse=3,Ase=class extends ${innerPattern(){return Ese}innerExtract(e,t){let n=P6[t[Ose].toLowerCase()];if(n===void 0)return null;let r=t[Dse],i=t[kse],a=r||i||``;a=a.toLowerCase();let o=null;return a==`pasado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),o0(e.reference,n,o)}},jse=class extends F1{primaryPrefix(){return`(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*`}},Mse=class extends X1{patternBetween(){return RegExp(`^\\s*(?:,|de|aslas|a|a\\s+la|en\\s+la)?\\s*$`,`i`)}},Nse=class extends K1{patternBetween(){return/^\s*(?:-)\s*$/i}},Pse=RegExp(`(${B6})(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*(${B6}))?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(I6)})(?:\\s*(?:de|,)?\\s*(${H6}))?(?=\\W|$)`,`i`),q6=1,J6=2,Fse=3,Y6=4,Ise=class extends ${innerPattern(){return Pse}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=I6[t[Fse].toLowerCase()],i=V6(t[q6]);if(i>31)return t.index+=t[q6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[Y6]){let e=U6(t[Y6]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[J6]){let e=V6(t[J6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Lse=class extends ${innerPattern(e){return/(ahora|hoy|mañana|manana|ayer)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();if((n===`mañana`||n===`manana`)&&e.text.substring(0,t.index).match(/(?:^|[^\p{L}\p{N}\p{M}_])(?:a|en)\s+la\s*$/iu))return null;switch(n){case`ahora`:return D0(e.reference);case`hoy`:return O0(e.reference);case`mañana`:case`manana`:return A0(e.reference);case`ayer`:return k0(e.reference)}return r}},Rse=class extends ${innerPattern(){return/(?:esta\s*)?(mañana|manana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noche`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`mañana`:case`manana`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`medianoche`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`mediodia`:case`mediodía`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},zse=RegExp(`(?:(?:en|por|durante|de|dentro de)\\s*)?(${K6})(?=\\W|$)`,`i`),Bse=RegExp(`(?:en|por|durante|de|dentro de)\\s*(${K6})(?=\\W|$)`,`i`),Vse=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return!this.strictMode&&e.option.forwardDate?zse:Bse}innerExtract(e,t){let n=wse(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Hse=RegExp(`((?:en)\\s*)?(${Q(I6)})\\s*(?:(?:,|-|de)?\\s*(${H6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Use=1,Wse=2,X6=3,Gse=RegExp(`(?:^|[^\\p{L}\\p{N}\\p{M}_])${B6}(?:\\s*(?:desde|de|-|–|ao?|\\s)\\s*${B6})?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)$`,`iu`),Kse=class extends ${innerPattern(){return Hse}innerExtract(e,t){let n=t[Wse].toLowerCase();if(e.text.substring(0,t.index).match(Gse)||t[0].length<=3&&!F6[n])return null;let r=e.createParsingResult(t.index+(t[Use]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ESMonthNameParser`);let i=I6[n];if(r.start.assign(`month`,i),t[X6]){let e=U6(t[X6]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},qse=new O2(Jse());new O2(Z6(!0));function Jse(e=!0){let t=Z6(!1,e);return t.parsers.push(new Lse),t.parsers.push(new Rse),t.parsers.push(new Kse),t}function Z6(e=!0,t=!0){return E0({parsers:[new o2(t),new Ase,new jse,new Ise,new Vse(e)],refiners:[new Mse,new Nse]},e)}var Q6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},$6={неділя:0,неділі:0,неділю:0,нд:0,"нд.":0,понеділок:1,понеділка:1,пн:1,"пн.":1,вівторок:2,вівторка:2,вт:2,"вт.":2,середа:3,середи:3,середу:3,ср:3,"ср.":3,четвер:4,четверга:4,четвергу:4,чт:4,"чт.":4,"п'ятниця":5,"п'ятниці":5,"п'ятницю":5,пт:5,"пт.":5,субота:6,суботи:6,суботу:6,сб:6,"сб.":6},e8={січень:1,січня:1,січні:1,лютий:2,лютого:2,лютому:2,березень:3,березня:3,березні:3,квітень:4,квітня:4,квітні:4,травень:5,травня:5,травні:5,червень:6,червня:6,червні:6,липень:7,липня:7,липні:7,серпень:8,серпня:8,серпні:8,вересень:9,вересня:9,вересні:9,жовтень:10,жовтня:10,жовтні:10,листопад:11,листопада:11,листопаду:11,грудень:12,грудня:12,грудні:12},t8={...e8,січ:1,"січ.":1,лют:2,"лют.":2,бер:3,"бер.":3,квіт:4,"квіт.":4,трав:5,"трав.":5,черв:6,"черв.":6,лип:7,"лип.":7,серп:8,"серп.":8,сер:8,"cер.":8,вер:9,"вер.":9,верес:9,"верес.":9,жовт:10,"жовт.":10,листоп:11,"листоп.":11,груд:12,"груд.":12},n8={один:1,одна:1,одної:1,одну:1,дві:2,два:2,двох:2,три:3,трьох:3,чотири:4,чотирьох:4,"п'ять":5,"п'яти":5,шість:6,шести:6,сім:7,семи:7,вісім:8,восьми:8,"дев'ять":9,"дев'яти":9,десять:10,десяти:10,одинадцять:11,одинадцяти:11,дванадцять:12,дванадцяти:12},r8={перше:1,першого:1,друге:2,другого:2,третє:3,третього:3,четверте:4,четвертого:4,"п'яте":5,"п'ятого":5,шосте:6,шостого:6,сьоме:7,сьомого:7,восьме:8,восьмого:8,"дев'яте":9,"дев'ятого":9,десяте:10,десятого:10,одинадцяте:11,одинадцятого:11,дванадцяте:12,дванадцятого:12,тринадцяте:13,тринадцятого:13,чотирнадцяте:14,чотинрнадцятого:14,"п'ятнадцяте":15,"п'ятнадцятого":15,шістнадцяте:16,шістнадцятого:16,сімнадцяте:17,сімнадцятого:17,вісімнадцяте:18,вісімнадцятого:18,"дев'ятнадцяте":19,"дев'ятнадцятого":19,двадцяте:20,двадцятого:20,"двадцять перше":21,"двадцять першого":21,"двадцять друге":22,"двадцять другого":22,"двадцять третє":23,"двадцять третього":23,"двадцять четверте":24,"двадцять четвертого":24,"двадцять п'яте":25,"двадцять п'ятого":25,"двадцять шосте":26,"двадцять шостого":26,"двадцять сьоме":27,"двадцять сьомого":27,"двадцять восьме":28,"двадцять восьмого":28,"двадцять дев'яте":29,"двадцять дев'ятого":29,тридцяте:30,тридцятого:30,"тридцять перше":31,"тридцять першого":31},i8={сек:`second`,секунда:`second`,секунд:`second`,секунди:`second`,секунду:`second`,секундочок:`second`,секундочки:`second`,секундочку:`second`,хв:`minute`,хвилина:`minute`,хвилин:`minute`,хвилини:`minute`,хвилину:`minute`,хвилинок:`minute`,хвилинки:`minute`,хвилинку:`minute`,хвилиночок:`minute`,хвилиночки:`minute`,хвилиночку:`minute`,год:`hour`,година:`hour`,годин:`hour`,години:`hour`,годину:`hour`,годинка:`hour`,годинок:`hour`,годинки:`hour`,годинку:`hour`,день:`day`,дня:`day`,днів:`day`,дні:`day`,доба:`day`,добу:`day`,тиждень:`week`,тижню:`week`,тижня:`week`,тижні:`week`,тижнів:`week`,місяць:`month`,місяців:`month`,місяці:`month`,місяця:`month`,квартал:`quarter`,кварталу:`quarter`,квартала:`quarter`,кварталів:`quarter`,кварталі:`quarter`,рік:`year`,року:`year`,році:`year`,років:`year`,роки:`year`},Yse=`(?:${Q(n8)}|[0-9]+|[0-9]+\\.[0-9]+|пів|декілька|пар(?:у)|\\s{0,3})`;function Xse(e){let t=e.toLowerCase();return n8[t]===void 0?t.match(/декілька/)?2:t.match(/пів/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):n8[t]}var a8=`(?:${Q(r8)}|[0-9]{1,2}(?:го|ого|е)?)`;function o8(e){let t=e.toLowerCase();return r8[t]===void 0?parseInt(t):r8[t]}var s8=`(?:\\s+(?:року|рік|р|р.))?`,c8=`(?:[1-9][0-9]{0,3}${s8}\\s*(?:н.е.|до н.е.|н. е.|до н. е.)|[1-2][0-9]{3}${s8}|[5-9][0-9]${s8})`;function l8(e){return/(рік|року|р|р.)/i.test(e)&&(e=e.replace(/(рік|року|р|р.)/i,``)),/(до н.е.|до н. е.)/i.test(e)?(e=e.replace(/(до н.е.|до н. е.)/i,``),-parseInt(e)):/(н. е.|н.е.)/i.test(e)?(e=e.replace(/(н. е.|н.е.)/i,``),parseInt(e)):w$(parseInt(e))}var u8=`(${Yse})\\s{0,3}(${Q(i8)})`,d8=new RegExp(u8,`i`),f8=S$(`(?:(?:близько|приблизно)\\s{0,3})?`,u8);function p8(e){let t={},n=e,r=d8.exec(n);for(;r;)Zse(t,r),n=n.substring(r[0].length).trim(),r=d8.exec(n);return t}function Zse(e,t){let n=Xse(t[1]),r=i8[t[2].toLowerCase()];e[r]=n}var m8=`(?:(?:приблизно|орієнтовно)\\s*(?:~\\s*)?)?(${f8})${Q6.rightBoundary}`,Qse=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(m8,Q6.flags):RegExp(`(?:протягом|на протязі|протягом|упродовж|впродовж)\\s*${m8}`,Q6.flags)}innerExtract(e,t){let n=p8(t[1]);return Z.createRelativeFromReference(e.reference,n)}},h8=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),Q6.flags)}innerPatternHasChange(e,t){return!1}},g8=class extends h8{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${Q6.rightBoundary}`,Q6.flags)}},_8=1,v8=2,$se=3,y8=4,ece=class extends g8{innerPatternString(e){return`(?:з|із)?\\s*(${a8})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${a8}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(t8)})(?:(?:-|\\/|,?\\s{0,3})(${c8}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=t8[t[$se].toLowerCase()],i=o8(t[_8]);if(i>31)return t.index+=t[_8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[y8]){let e=l8(t[y8]);n.start.assign(`year`,e)}else{let t=T$(e.reference.instant,i,r);n.start.imply(`year`,t)}if(t[v8]){let e=o8(t[v8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},tce=2,b8=3,nce=class extends h8{innerPatternString(e){return`((?:в|у)\\s*)?(${Q(t8)})\\s*(?:[,-]?\\s*(${c8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[tce].toLowerCase();if(t[0].length<=3&&!e8[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=t8[n];if(r.start.assign(`month`,i),t[b8]){let e=l8(t[b8]);r.start.assign(`year`,e)}else{let t=T$(e.reference.instant,1,i);r.start.imply(`year`,t)}return r}},rce=class extends F1{constructor(e){super(e)}patternFlags(){return Q6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|і|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|у|о|об|з|із|від)\\s*)??`}primarySuffix(){return`(?:\\s*(?:ранку|вечора|по обіді|після обіду))?(?!\\/)${Q6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечора`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`по обіді`)||t[0].endsWith(`після обіду`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`ранку`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},ice=class extends h8{innerPatternString(e){return`(${f8})\\s{0,5}тому(?=(?:\\W|$))`}innerExtract(e,t){let n=y$(p8(t[1]));return Z.createRelativeFromReference(e.reference,n)}},ace=class extends K1{patternBetween(){return/^\s*(і до|і по|до|по|-)\s*$/i}},oce=class extends X1{patternBetween(){return RegExp(`^\\s*(T|в|у|о|,|-)?\\s*$`)}},sce=class extends g8{innerPatternString(e){return`(?:з|із|від)?\\s*(сьогодні|вчора|завтра|післязавтра|післяпіслязавтра|позапозавчора|позавчора)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сьогодні`:return O0(e.reference);case`вчора`:return k0(e.reference);case`завтра`:return A0(e.reference);case`післязавтра`:return M0(e.reference,2);case`післяпіслязавтра`:return M0(e.reference,3);case`позавчора`:return j0(e.reference,2);case`позапозавчора`:return j0(e.reference,3)}return r}},cce=class extends g8{innerPatternString(e){return`(зараз|минулого\\s*вечора|минулої\\s*ночі|наступної\\s*ночі|сьогодні\\s*вночі|цієї\\s*ночі|цього ранку|вранці|ранку|зранку|опівдні|ввечері|вечора|опівночі|вночі)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`зараз`)return D0(e.reference);if(r===`ввечері`||r===`вечора`)return F0(e.reference);if(r.endsWith(`вранці`)||r.endsWith(`ранку`)||r.endsWith(`зранку`))return R0(e.reference);if(r.endsWith(`опівдні`))return B0(e.reference);if(r.match(/минулої\s*ночі/))return P0(e.reference);if(r.match(/минулого\s*вечора/))return I0(e.reference);if(r.match(/наступної\s*ночі/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),l$(i,t),i.imply(`hour`,1)}return r.match(/цієї\s*ночі/)||r.endsWith(`опівночі`)||r.endsWith(`вночі`)?L0(e.reference):i}},lce=1,uce=2,dce=3,fce=class extends g8{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:у\\s*?)?(?:(цей|минулого|минулий|попередній|попереднього|наступного|наступний|наступному)\\s*)?(${Q($6)})(?:\\s*(?:,|\\)|)))?(?:\\s*(на|у|в)\\s*(цьому|минулому|наступному)\\s*тижні)?`}innerExtract(e,t){let n=$6[t[uce].toLocaleLowerCase()],r=t[lce],i=t[dce],a=r||i;a||=``,a=a.toLocaleLowerCase();let o=null;return a==`минулого`||a==`минулий`||a==`попередній`||a==`попереднього`?o=`last`:a==`наступного`||a==`наступний`?o=`next`:(a==`цей`||a==`цього`||a==`цьому`)&&(o=`this`),o0(e.reference,n,o)}},pce=1,mce=2,hce=class extends g8{innerPatternString(e){return`(в минулому|у минулому|на минулому|минулого|на наступному|в наступному|у наступному|наступного|на цьому|в цьому|у цьому|цього)\\s*(${Q(i8)})(?=\\s*)`}innerExtract(e,t){let n=t[pce].toLowerCase(),r=i8[t[mce].toLowerCase()];if(n==`на наступному`||n==`в наступному`||n==`у наступному`||n==`наступного`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`на минулому`||n==`в минулому`||n==`у минулому`||n==`минулого`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},gce=class extends g8{innerPatternString(e){return`(ці|останні|минулі|майбутні|наступні|після|через|\\+|-)\\s*(${f8})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=p8(t[3]);switch(n){case`останні`:case`минулі`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},_ce=new O2(vce());new O2(x8(!0));function vce(){let e=x8(!1);return e.parsers.unshift(new sce),e.parsers.unshift(new cce),e.parsers.unshift(new nce),e.parsers.unshift(new hce),e.parsers.unshift(new gce),e}function x8(e){return E0({parsers:[new w0,new o2(!0),new Qse,new ece,new fce,new rce(e),new ice],refiners:[new oce,new ace]},e)}var S8={domenica:0,dom:0,"dom.":0,lunedì:1,lunedi:1,lun:1,"lun.":1,martedì:2,martedi:2,mar:2,"mar.":2,mercoledì:3,mercoledi:3,mer:3,"mer.":3,giovedì:4,giovedi:4,gio:4,"gio.":4,venerdì:5,venerdi:5,ven:5,"ven.":5,sabato:6,sab:6,"sab.":6},C8={gennaio:1,febbraio:2,marzo:3,aprile:4,maggio:5,giugno:6,luglio:7,agosto:8,settembre:9,ottobre:10,novembre:11,dicembre:12},w8={...C8,gen:1,"gen.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,mag:5,"mag.":5,giu:6,"giu.":6,lug:7,"lug.":7,ago:8,"ago.":8,set:9,"set.":9,sett:9,"sett.":9,ott:10,"ott.":10,nov:11,"nov.":11,dic:12,"dic.":12},T8={uno:1,una:1,un:1,due:2,tre:3,quattro:4,cinque:5,sei:6,sette:7,otto:8,nove:9,dieci:10,undici:11,dodici:12},E8={primo:1,prima:1,"1°":1,"1ª":1,secondo:2,seconda:2,"2°":2,"2ª":2,terzo:3,terza:3,"3°":3,"3ª":3,quarto:4,quarta:4,"4°":4,"4ª":4,quinto:5,quinta:5,"5°":5,"5ª":5,sesto:6,sesta:6,"6°":6,"6ª":6,settimo:7,settima:7,"7°":7,"7ª":7,ottavo:8,ottava:8,"8°":8,"8ª":8,nono:9,nona:9,"9°":9,"9ª":9,decimo:10,decima:10,"10°":10,"10ª":10,undicesimo:11,undicesima:11,"11°":11,"11ª":11,dodicesimo:12,dodicesima:12,"12°":12,"12ª":12,tredicesimo:13,tredicesima:13,"13°":13,"13ª":13,quattordicesimo:14,quattordicesima:14,"14°":14,"14ª":14,quindicesimo:15,quindicesima:15,"15°":15,"15ª":15,sedicesimo:16,sedicesima:16,"16°":16,"16ª":16,diciassettesimo:17,diciassettesima:17,"17°":17,"17ª":17,diciottesimo:18,diciottesima:18,"18°":18,"18ª":18,diciannovesimo:19,diciannovesima:19,"19°":19,"19ª":19,ventesimo:20,ventesima:20,"20°":20,"20ª":20,ventunesimo:21,ventunesima:21,"21°":21,"21ª":21,ventiduesimo:22,ventiduesima:22,"22°":22,"22ª":22,ventitreesimo:23,ventitreesima:23,"23°":23,"23ª":23,ventiquattresimo:24,ventiquattresima:24,"24°":24,"24ª":24,venticinquesimo:25,venticinquesima:25,"25°":25,"25ª":25,ventiseiesimo:26,ventiseiesima:26,"26°":26,"26ª":26,ventisettesimo:27,ventisettesima:27,"27°":27,"27ª":27,ventottesimo:28,ventottesima:28,"28°":28,"28ª":28,ventinovesimo:29,ventinovesima:29,"29°":29,"29ª":29,trentesimo:30,trentesima:30,"30°":30,"30ª":30,trentunesimo:31,trentunesima:31,"31°":31,"31ª":31},D8={secondo:`second`,secondi:`second`,minuto:`minute`,minuti:`minute`,ora:`hour`,ore:`hour`,giorno:`day`,giorni:`day`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`},O8={s:`second`,sec:`second`,secondo:`second`,secondi:`second`,m:`minute`,min:`minute`,minuto:`minute`,minuti:`minute`,h:`hour`,ora:`hour`,ore:`hour`,g:`day`,gg:`day`,giorno:`day`,giorni:`day`,sett:`week`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trim:`quarter`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`,...D8},k8=`(?:${Q(T8)}|[0-9]+|[0-9]+\\.[0-9]+|mezz[oa]?(?:\\s{0,2})?|un(?:'|\\s{0,2})?|qualche|alcuni|paio\\s{0,2}(?:di)?)`;function yce(e){let t=e.toLowerCase();return T8[t]===void 0?t===`un`||t===`un'`||t===`una`||t===`uno`?1:t.match(/qualche/)?3:t.match(/mezz/)?.5:t.match(/paio/)?2:t.match(/alcuni/)?7:parseFloat(t):T8[t]}var A8=`(?:${Q(E8)}|[0-9]{1,2}(?:°|ª|º)?)`;function j8(e){let t=e.toLowerCase();return E8[t]===void 0?(t=t.replace(/(?:°|ª|º)$/i,``),parseInt(t)):E8[t]}var M8=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])`;function N8(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):w$(parseInt(e))}var P8=`(${k8})\\s{0,3}(${Q(O8)})`,F8=new RegExp(P8,`i`),bce=`(${k8})\\s{0,3}(${Q(D8)})`,I8=`\\s{0,5},?(?:\\s*e)?\\s{0,5}`,L8=S$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,P8,I8),R8=S$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,bce,I8);function z8(e){let t={},n=e,r=F8.exec(n);for(;r;)xce(t,r),n=n.substring(r[0].length).trim(),r=F8.exec(n);return Object.keys(t).length==0?null:t}function xce(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=yce(t[1]),r=O8[t[2].toLowerCase()];e[r]=n}var Sce=RegExp(`(?:(?:entro|tra|fra|in|per)\\s*)?(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),Cce=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),wce=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${R8})(?=\\W|$)`,`i`),Tce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?wce:e.option.forwardDate?Sce:Cce}innerExtract(e,t){if(t[0].match(/^per\s*(il|la|l')\s*\w+/))return null;let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Ece=RegExp(`(?:il\\s{0,3})?(${A8})(?:\\s{0,3}(?:al|\\-|\\–|fino\\s*al?)?\\s{0,3}(${A8}))?(?:-|/|\\s{0,3}(?:di)?\\s{0,3})(${Q(w8)})(?:(?:-|/|,?\\s{0,3})(${M8}(?!\\w)))?(?=\\W|$)`,`i`),B8=1,V8=2,Dce=3,H8=4,Oce=class extends ${innerPattern(){return Ece}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=w8[t[Dce].toLowerCase()],i=j8(t[B8]);if(i>31)return t.index+=t[B8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H8]){let e=N8(t[H8]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V8]){let e=j8(t[V8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},kce=RegExp(`(${Q(w8)})(?:-|/|\\s*,?\\s*)(${A8})(?!\\s*(?:am|pm))\\s*(?:(?:al|\\-)\\s*(${A8})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${M8}))?(?=\\W|$)(?!\\:\\d)`,`i`),Ace=1,U8=2,W8=3,G8=4,jce=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return kce}innerExtract(e,t){let n=w8[t[Ace].toLowerCase()],r=j8(t[U8]);if(r>31||this.shouldSkipYearLikeDate&&!t[W8]&&!t[G8]&&t[U8].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ITMonthNameMiddleEndianParser`);if(t[G8]){let e=N8(t[G8]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[W8])return i;let a=j8(t[W8]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Mce=RegExp(`((?:a|in|di|del)\\s*)?(${Q(w8)})\\s*(?:(?:,|-|del)?\\s*(${M8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Nce=1,Pce=2,K8=3,Fce=class extends ${innerPattern(){return Mce}innerExtract(e,t){let n=t[Pce].toLowerCase();if(t[0].length<=3&&!C8[n])return null;let r=e.createParsingResult(t.index+(t[Nce]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ITMonthNameParser`);let i=w8[n];if(r.start.assign(`month`,i),t[K8]){let e=N8(t[K8]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},Ice=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(w8)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Lce=1,Rce=2,q8=3,zce=4,Bce=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return Ice}innerExtract(e,t){let n=parseInt(t[Lce]),r=parseInt(t[zce]),i=t[q8]?parseInt(t[q8]):w8[t[Rce].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},Vce=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Hce=1,Uce=2,Wce=class extends ${innerPattern(){return Vce}innerExtract(e,t){let n=parseInt(t[Uce]),r=parseInt(t[Hce]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Gce=class extends F1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a|fino\\s*a|alle?|\\?)\\s*`}primaryPrefix(){return`(?:(?:alle?|dalle?)\\s*)??`}primarySuffix(){return`(?:\\s*(?:di\\s*(?:sera|notte|mattina|pomeriggio)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].match(/di\s*(?:sera|notte)/i)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].match(/di\s*pomeriggio/i)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].match(/di\s*mattina/i)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ITTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ITTimeExpressionParser`),r}},Kce=RegExp(`(${L8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),qce=RegExp(`(${R8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),Jce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?qce:Kce}innerExtract(e,t){let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},Yce=RegExp(`(${L8})\\s{0,5}(?:dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=(?:\\W|$))`,`i`),Xce=RegExp(`(${R8})\\s{0,5}(dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=\\W|$)`,`i`),Zce=1,Qce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Xce:Yce}innerExtract(e,t){let n=z8(t[Zce]);return n?Z.createRelativeFromReference(e.reference,n):null}},$ce=class extends K1{patternBetween(){return/^\s*(a|al|-|–|fino\s*a|fino\s*al)\s*$/i}},J8=class extends X1{patternBetween(){return RegExp(`^\\s*(T|alle?|dopo\\s*le|prima\\s*delle?|,|-|\\.|∙|:)?\\s*$`)}},ele=/(adesso|ora|oggi|stasera|stanotte|domani|dopodomani|ieri|ieri\s*sera|ieri\s*notte)(?=\W|$)/i,tle=class extends ${innerPattern(e){return ele}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`adesso`:case`ora`:i=D0(e.reference);break;case`oggi`:i=O0(e.reference);break;case`ieri`:i=k0(e.reference);break;case`domani`:i=A0(e.reference);break;case`stasera`:case`stanotte`:i=N0(e.reference);break;case`dopodomani`:i=M0(e.reference,2);break;default:if(r.match(/ieri\s*sera/)||r.match(/ieri\s*notte/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}l$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ITCasualDateParser`),i}},nle=/(stamattina|stasera|stanotte|stamani)|(questa\s*)?(mattina|pomeriggio|sera|notte|mezzanotte|mezzogiorno)(?=\W|$)/i,rle=class extends ${innerPattern(){return nle}innerExtract(e,t){let n=null;if(t[1])switch(t[1].toLowerCase()){case`stamattina`:case`stamani`:n=R0(e.reference);break;case`stasera`:case`stanotte`:n=F0(e.reference)}else if(t[3])switch(t[3].toLowerCase()){case`pomeriggio`:n=z0(e.reference);break;case`sera`:case`notte`:n=F0(e.reference);break;case`mezzanotte`:n=L0(e.reference);break;case`mattina`:n=R0(e.reference);break;case`mezzogiorno`:n=B0(e.reference)}return n&&n.addTag(`parser/ITCasualTimeParser`),n}},ile=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(questo|questa|quest'|scorso|scorsa|prossimo|prossima)\\s*)?(${Q(S8)}|weekend|fine\\s*settimana)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(scorso|scorsa|prossimo|prossima)(?:\\s*settimana)?)?(?=\\W|$)`,`i`),ale=1,ole=2,sle=3,cle=class extends ${innerPattern(){return ile}innerExtract(e,t){let n=t[ale],r=t[sle],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`scorso`||i==`scorsa`?a=`last`:i==`prossimo`||i==`prossima`?a=`next`:(i==`questo`||i==`questa`||i==`quest'`)&&(a=`this`);let o=t[ole].toLowerCase(),s;if(S8[o]!==void 0)s=S8[o];else if(o==`weekend`||o.match(/fine\s*settimana/))s=a==`last`?s$.SUNDAY:s$.SATURDAY;else return null;return o0(e.reference,s,a)}},lle=RegExp(`(?:(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo\\s*questo|dopo\\s*questa)\\s*(${Q(O8)})|(?:il\\s*|la\\s*|l'\\s*)(${Q(O8)})\\s*(scorso|scorsa|prossimo|prossima))(?=\\W|$)`,`i`),Y8=1,ule=2,dle=3,fle=4,ple=class extends ${innerPattern(){return lle}innerExtract(e,t){let n,r;t[Y8]?(n=t[Y8].toLowerCase(),r=t[ule].toLowerCase()):(n=t[fle].toLowerCase(),r=t[dle].toLowerCase());let i=O8[r];if(n==`prossimo`||n==`prossima`||n.startsWith(`dopo`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`scorso`||n==`scorsa`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/settimana/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/mese/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/anno/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},mle=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${L8})(?=\\W|$)`,`i`),hle=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${R8})(?=\\W|$)`,`i`),gle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?mle:hle}innerExtract(e,t){let n=t[1].toLowerCase(),r=z8(t[2]);if(!r)return null;switch(n){case`scorso`:case`scorsa`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}};function _le(e){return e.text.match(/^[+-]/i)!=null}function X8(e){return e.text.match(/^-/i)!=null}var vle=class extends G1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?_le(n)||X8(n):!1}mergeResults(e,t,n,r){let i=z8(n.text);X8(n)&&(i=y$(i));let a=Z.createRelativeFromReference(b$.fromDate(t.start.date()),i);return new x$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function Z8(e){return e.text.match(/\s+(prima|da)$/i)!=null}function yle(e){return e.text.match(/\s+(dopo|dal?)$/i)!=null}var ble=class extends G1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!Z8(t)&&!yle(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=z8(t.text);Z8(t)&&(r=y$(r));let i=Z.createRelativeFromReference(b$.fromDate(n.start.date()),r);return new x$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},xle=RegExp(`^\\s*(${M8})`,`i`),Sle=1,Cle=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=xle.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=N8(r[Sle]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},wle=class extends W1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase().endsWith(`il secondo`)||n.toLowerCase()===`secondo`?(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!0}},Q8=new class{createCasualConfiguration(){let e=this.createConfiguration(!1);return e.parsers.push(new tle),e.parsers.push(new rle),e.parsers.push(new Fce),e.parsers.push(new ple),e.parsers.push(new gle),e.refiners.push(new wle),e}createConfiguration(e=!0){let t=E0({parsers:[new o2(!0),new Tce(e),new Oce,new jce(!0),new cle,new Wce,new Gce(e),new Jce(e),new Qce(e)],refiners:[new J8]},e);return t.parsers.unshift(new Bce(e)),t.refiners.unshift(new ble),t.refiners.unshift(new vle),t.refiners.unshift(new a0),t.refiners.push(new J8),t.refiners.push(new Cle),t.refiners.push(new $ce),t}},Tle=new O2(Q8.createCasualConfiguration());new O2(Q8.createConfiguration(!0));var $8={söndag:0,sön:0,so:0,måndag:1,mån:1,må:1,tisdag:2,tis:2,ti:2,onsdag:3,ons:3,on:3,torsdag:4,tors:4,to:4,fredag:5,fre:5,fr:5,lördag:6,lör:6,lö:6},e5={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,mars:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,maj:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augusti:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},Ele={första:1,andra:2,tredje:3,fjärde:4,femte:5,sjätte:6,sjunde:7,åttonde:8,nionde:9,tionde:10,elfte:11,tolfte:12,trettonde:13,fjortonde:14,femtonde:15,sextonde:16,sjuttonde:17,artonde:18,nittonde:19,tjugonde:20,tjugoförsta:21,tjugoandra:22,tjugotredje:23,tjugofjärde:24,tjugofemte:25,tjugosjätte:26,tjugosjunde:27,tjugoåttonde:28,tjugonionde:29,trettionde:30,trettioförsta:31},t5={en:1,ett:1,två:2,tre:3,fyra:4,fem:5,sex:6,sju:7,åtta:8,nio:9,tio:10,elva:11,tolv:12,tretton:13,fjorton:14,femton:15,sexton:16,sjutton:17,arton:18,nitton:19,tjugo:20,trettiо:30,fyrtio:40,femtio:50,sextio:60,sjuttio:70,åttio:80,nittio:90,hundra:100,tusen:1e3},n5={sek:`second`,sekund:`second`,sekunder:`second`,min:`minute`,minut:`minute`,minuter:`minute`,tim:`hour`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,mån:`month`,månad:`month`,månader:`month`,år:`year`,kvartаl:`quarter`,kvartal:`quarter`},Dle={sekund:`second`,sekunder:`second`,minut:`minute`,minuter:`minute`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,månad:`month`,månader:`month`,år:`year`,kvartal:`quarter`};function Ole(e){let t={},n=e,r=a5.exec(n);for(;r;)kle(t,r),n=n.substring(r[0].length),r=a5.exec(n);return t}function kle(e,t){let n=Nle(t[1]),r=n5[t[2].toLowerCase()];e[r]=n}var r5=`(?:${Q(t5)}|\\d+)`;`${Q(Ele)}`,`${Q(n5)}`;var i5=`(${r5})\\s{0,5}(${Q(n5)})\\s{0,5}`,a5=new RegExp(i5,`i`),Ale=`(${r5})\\s{0,5}(${Q(Dle)})\\s{0,5}`,jle=S$(``,i5),Mle=S$(``,Ale);function Nle(e){let t=e.toLowerCase();return t5[t]===void 0?parseInt(t):t5[t]}function Ple(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=w$(t)),t}let t=e.toLowerCase();return t5[t]===void 0?parseInt(e):t5[t]}var Fle=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:på\\s*?)?(?:(förra|senaste|nästa|kommande)\\s*)?(${Q($8)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(förra|senaste|nästa|kommande)\\s*vecka)?(?=\\W|$)`,`i`),Ile=1,Lle=3,Rle=2,zle=class extends ${innerPattern(){return Fle}innerExtract(e,t){let n=$8[t[Rle].toLowerCase()],r=t[Ile],i=t[Lle],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/förra|senaste/)?o=`last`:a.match(/nästa|kommande/)&&(o=`next`),o0(e.reference,n,o)}},Ble=RegExp(`(?:den\\s*?)?([0-9]{1,2})(?:\\s*(?:till|\\-|\\–|\\s)\\s*([0-9]{1,2}))?\\s*(${Q(e5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),o5=1,s5=2,Vle=3,c5=4,Hle=class extends ${innerPattern(){return Ble}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=e5[t[Vle].toLowerCase()],i=parseInt(t[o5]);if(i>31)return t.index+=t[o5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[c5]){let e=Ple(t[c5]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[s5]){let e=parseInt(t[s5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Ule=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${jle})(?=\\W|$)`,`i`),Wle=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${Mle})(?=\\W|$)`,`i`),Gle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?Ule:Wle}innerExtract(e,t){let n=t[1].toLowerCase(),r=Ole(t[2]);if(!r)return null;switch(n){case`förra`:case`passerade`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},Kle=RegExp(`(nu|idag|imorgon|övermorgon|igår|förrgår|i\\s*förrgår)(?:\\s*(?:på\\s*)?(morgonen?|förmiddagen?|middagen?|eftermiddagen?|kvällen?|natten?|midnatt))?(?=\\W|$)`,`i`),qle=1,Jle=2,Yle=class extends ${innerPattern(e){return Kle}innerExtract(e,t){let n=e.refDate,r=(t[qle]||``).toLowerCase(),i=(t[Jle]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nu`:a=D0(e.reference);break;case`idag`:a=O0(e.reference);break;case`imorgon`:case`imorn`:let t=new Date(n.getTime());t.setDate(t.getDate()+1),l$(a,t),f$(a,t);break;case`igår`:let r=new Date(n.getTime());r.setDate(r.getDate()-1),l$(a,r),f$(a,r);break;case`förrgår`:case`i förrgår`:let i=new Date(n.getTime());i.setDate(i.getDate()-2),l$(a,i),f$(a,i)}switch(i){case`morgon`:case`morgonen`:a.imply(`hour`,6),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`förmiddag`:case`förmiddagen`:a.imply(`hour`,9),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`middag`:case`middagen`:a.imply(`hour`,12),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`eftermiddag`:case`eftermiddagen`:a.imply(`hour`,15),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`kväll`:case`kvällen`:a.imply(`hour`,20),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`natt`:case`natten`:case`midnatt`:i===`midnatt`?a.imply(`hour`,0):a.imply(`hour`,2),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0)}return a}},Xle=new O2(Zle());new O2(l5(!0));function Zle(e=!0){let t=l5(!1,e);return t.parsers.unshift(new Yle),t}function l5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Hle,new zle,new Gle],refiners:[]},e)}var Qle=class extends F1{primaryPrefix(){return`(?:(?:klo|kello)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},u5={sunnuntai:0,sunnuntaina:0,su:0,maanantai:1,maanantaina:1,ma:1,tiistai:2,tiistaina:2,ti:2,keskiviikko:3,keskiviikkona:3,ke:3,torstai:4,torstaina:4,to:4,perjantai:5,perjantaina:5,pe:5,lauantai:6,lauantaina:6,la:6},d5={tammikuu:1,tammikuuta:1,tammikuun:1,tammi:1,helmikuu:2,helmikuuta:2,helmikuun:2,helmi:2,maaliskuu:3,maaliskuuta:3,maaliskuun:3,maalis:3,huhtikuu:4,huhtikuuta:4,huhtikuun:4,huhti:4,toukokuu:5,toukokuuta:5,toukokuun:5,touko:5,kesäkuu:6,kesäkuuta:6,kesäkuun:6,kesä:6,heinäkuu:7,heinäkuuta:7,heinäkuun:7,heinä:7,elokuu:8,elokuuta:8,elokuun:8,elo:8,syyskuu:9,syyskuuta:9,syyskuun:9,syys:9,lokakuu:10,lokakuuta:10,lokakuun:10,loka:10,marraskuu:11,marraskuuta:11,marraskuun:11,marras:11,joulukuu:12,joulukuuta:12,joulukuun:12,joulu:12},f5={yksi:1,yhden:1,kaksi:2,kahden:2,kolme:3,kolmen:3,neljä:4,neljän:4,viisi:5,viiden:5,kuusi:6,kuuden:6,seitsemän:7,kahdeksan:8,yhdeksän:9,kymmenen:10},p5={s:`second`,sek:`second`,sekunti:`second`,sekuntia:`second`,sekunnin:`second`,min:`minute`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,t:`hour`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,pv:`day`,päivä:`day`,päivää:`day`,päivän:`day`,vk:`week`,viikko:`week`,viikkoa:`week`,viikon:`week`,kk:`month`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`},$le={sekunti:`second`,sekuntia:`second`,sekunnin:`second`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,päivä:`day`,päivää:`day`,päivän:`day`,viikko:`week`,viikkoa:`week`,viikon:`week`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`};function m5(e){let t={},n=e,r=_5.exec(n);for(;r;)eue(t,r),n=n.substring(r[0].length),r=_5.exec(n);return t}function eue(e,t){let n=rue(t[1]),r=p5[t[2].toLowerCase()];e[r]=n}var h5=`(?:${Q(f5)}|\\d+)`;`${Q(p5)}`;var g5=`(${h5})\\s{0,5}(${Q(p5)})\\s{0,5}`,_5=new RegExp(g5,`i`),tue=`(${h5})\\s{0,5}(${Q($le)})\\s{0,5}`,v5=S$(``,g5),nue=S$(``,tue);function rue(e){let t=e.toLowerCase();return f5[t]===void 0?parseInt(t):f5[t]}function iue(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=w$(t)),t}let t=e.toLowerCase();return f5[t]===void 0?parseInt(e):f5[t]}var aue=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(viime|edellinen|edellisenä|ensi|seuraava|seuraavana|tämä|tänä)\\s*)?(${Q(u5)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(viime|ensi|seuraava)\\s*viikolla)?(?=\\W|$)`,`i`),oue=1,sue=2,cue=3,lue=class extends ${innerPattern(){return aue}innerExtract(e,t){let n=u5[t[sue].toLowerCase()],r=t[oue],i=t[cue],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/viime|edellinen|edellisenä/)?o=`last`:a.match(/ensi|seuraava|seuraavana/)&&(o=`next`),o0(e.reference,n,o)}},uue=RegExp(`([0-9]{1,2})\\.?(?:\\s*(?:\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(d5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),y5=1,b5=2,due=3,x5=4,fue=class extends ${innerPattern(){return uue}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=d5[t[due].toLowerCase()],i=parseInt(t[y5]);if(i>31)return t.index+=t[y5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[x5]){let e=iue(t[x5]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[b5]){let e=parseInt(t[b5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},pue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${v5})(?=\\W|$)`,`i`),mue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${nue})(?=\\W|$)`,`i`),hue=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?pue:mue}innerExtract(e,t){let n=t[1].toLowerCase(),r=m5(t[2]);if(!r)return null;switch(n){case`edellinen`:case`edelliset`:case`edellisten`:case`viimeiset`:case`viimeisten`:case`kuluneet`:case`kuluneiden`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},gue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*sitten(?=\\W|$)`,`i`)}innerExtract(e,t){let n=y$(m5(t[1]));return Z.createRelativeFromReference(e.reference,n)}},_ue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*(?:sisällä|kuluessa|päästä)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=m5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},S5=class e extends ${innerPattern(e){return/(tänä\s*)?(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return f$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`aamulla`:case`aamuna`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`aamupäivällä`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`päivällä`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`iltapäivällä`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`illalla`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`yöllä`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`keskiyöllä`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},vue=RegExp(`(nyt|tänään|huomenna|ylihuomenna|eilen|toissapäivänä|viime\\s*yönä)(?:\\s*(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä))?(?=\\W|$)`,`i`),yue=1,bue=2,xue=class extends ${innerPattern(e){return vue}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[yue]||``).toLowerCase(),i=(t[bue]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nyt`:a=D0(e.reference);break;case`tänään`:a=O0(e.reference);break;case`huomenna`:n=v$(n,{day:1}),l$(a,n),f$(a,n);break;case`ylihuomenna`:n=v$(n,{day:2}),l$(a,n),f$(a,n);break;case`eilen`:n=v$(n,{day:-1}),l$(a,n),f$(a,n);break;case`toissapäivänä`:n=v$(n,{day:-2}),l$(a,n),f$(a,n);break;default:r.match(/viime\s*yönä/)&&(n.getHours()>6&&(n=v$(n,{day:-1})),l$(a,n),a.imply(`hour`,0))}return i&&(a=S5.extractTimeComponents(a,i)),a}},Sue=class extends K1{patternBetween(){return/^\s*(-|–)\s*$/i}},Cue=class extends X1{patternBetween(){return RegExp(`^\\s*(T|klo|kello|,|-)?\\s*$`)}},wue=new O2(Tue());new O2(C5(!0));function Tue(e=!0){let t=C5(!1,e);return t.parsers.unshift(new S5),t.parsers.unshift(new xue),t.parsers.unshift(new hue),t}function C5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Qle,new fue,new lue,new _ue,new gue],refiners:[new Sue,new Cue]},e)}var w5={"chủ nhật":0,cn:0,"thứ hai":1,t2:1,"thứ ba":2,t3:2,"thứ tư":3,t4:3,"thứ năm":4,t5:4,"thứ sáu":5,t6:5,"thứ bảy":6,t7:6},T5={"tháng 1":1,"tháng một":1,"tháng giêng":1,"tháng 2":2,"tháng hai":2,"tháng 3":3,"tháng ba":3,"tháng 4":4,"tháng tư":4,"tháng 5":5,"tháng năm":5,"tháng 6":6,"tháng sáu":6,"tháng 7":7,"tháng bảy":7,"tháng 8":8,"tháng tám":8,"tháng 9":9,"tháng chín":9,"tháng 10":10,"tháng mười":10,"tháng 11":11,"tháng mười một":11,"tháng 12":12,"tháng mười hai":12,"tháng chạp":12},E5={một:1,hai:2,ba:3,bốn:4,năm:5,sáu:6,bảy:7,tám:8,chín:9,mười:10,"mười một":11,"mười hai":12},D5={giây:`second`,phút:`minute`,giờ:`hour`,ngày:`day`,tuần:`week`,tháng:`month`,năm:`year`},O5=`(?:`+Q(E5)+`|[0-9]+|[0-9]+\\.[0-9]+)`;function Eue(e){let t=e.toLowerCase();return E5[t]===void 0?parseFloat(t):E5[t]}var k5=`(?:[0-9]{1,4}(?:\\s*TCN)?)`;function A5(e){let t=e.toUpperCase(),n=parseInt(e.replace(/[^0-9]+/g,``));return/TCN/.test(t)?-n:w$(n)}var j5=`(`+O5+`)\\s{0,5}(`+Q(D5)+`)\\s{0,5}`,M5=new RegExp(j5,`i`),N5=S$(``,j5);function P5(e){let t={},n=e,r=M5.exec(n);for(;r;){let e=Eue(r[1]),i=D5[r[2].toLowerCase()];t[i]=e,n=n.substring(r[0].length),r=M5.exec(n)}return t}var Due=RegExp(`(?:ngày\\s*)?([0-9]{1,2})\\s*tháng\\s*([0-9]{1,2})(?:\\s*năm\\s*(`+k5+`))?(?=\\W|$)`,`i`),Oue=1,kue=2,F5=3,Aue=class extends ${innerPattern(){return Due}innerExtract(e,t){let n=parseInt(t[Oue]),r=parseInt(t[kue]);if(n>31||r>12)return null;let i=e.createParsingResult(t.index,t[0]);return i.start.assign(`day`,n),i.start.assign(`month`,r),t[F5]?i.start.assign(`year`,A5(t[F5])):i.start.imply(`year`,T$(e.refDate,n,r)),i}},jue=RegExp(`(`+Q(T5)+`)(?:\\s*(?:năm|/)\\s*(`+k5+`))?(?=\\W|$)`,`i`),Mue=1,I5=2,Nue=class extends ${innerPattern(){return jue}innerExtract(e,t){let n=T5[t[Mue].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`month`,n),r.start.imply(`day`,1),t[I5]?r.start.assign(`year`,A5(t[I5])):r.start.imply(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),r}},Pue=RegExp(`(?:\\bnăm\\s*(`+k5+`)|\\b([0-9]{1,4})\\s*(TCN))(?=\\W|$)`,`i`),L5=1,Fue=2,Iue=3,Lue=class extends ${innerPattern(){return Pue}innerExtract(e,t){let n;n=t[L5]?t[L5]:t[Fue]+` `+t[Iue];let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`year`,A5(n)),r.start.imply(`month`,1),r.start.imply(`day`,1),r}},Rue=/\b(hôm nay|hôm qua|hôm kia|ngày mai|ngày kia|bây giờ|lúc này)(?=\W|$)/i,zue=class extends ${innerPattern(){return Rue}innerExtract(e,t){switch(t[1].toLowerCase()){case`bây giờ`:case`lúc này`:return D0(e.reference);case`hôm nay`:return O0(e.reference);case`hôm qua`:return k0(e.reference);case`hôm kia`:return j0(e.reference,2);case`ngày mai`:return A0(e.reference);case`ngày kia`:return M0(e.reference,2)}return e.createParsingComponents()}},Bue=/(buổi\s*)?(sáng sớm|sáng|trưa|chiều|tối|đêm|nửa đêm|bình minh)(?=\W|$)/i,Vue=class e extends ${innerPattern(){return Bue}innerExtract(t,n){let r=t.createParsingComponents();return f$(r,t.refDate),e.extractTimeComponents(r,n[2].toLowerCase())}static extractTimeComponents(e,t){switch(t){case`bình minh`:case`sáng sớm`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`sáng`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`trưa`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`chiều`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`tối`:e.imply(`hour`,19),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`đêm`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`nửa đêm`:e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`meridiem`,X.AM)}return e}},Hue=RegExp(`(`+Q(w5)+`)(?:\\s*(này|tới|sau(?!\\s*khi)|qua))?(?=\\W|$)`,`i`),Uue=1,Wue=2,Gue=class extends ${innerPattern(){return Hue}innerExtract(e,t){let n=w5[t[Uue].toLowerCase()];if(n===void 0)return null;let r=t[Wue],i=null;if(r){let e=r.toLowerCase();e.includes(`tới`)||e.includes(`sau`)?i=`next`:e.includes(`qua`)&&(i=`last`)}return o0(e.reference,n,i)}},Kue=RegExp(`(?:lúc\\s*|vào\\s*)?([0-9]{1,2})(?:\\s*giờ\\s*([0-9]{1,2})?\\s*(?:phút\\s*)?(sáng|trưa|chiều|tối|đêm)?|:([0-9]{2}))(?=\\W|$)`,`i`),que=1,R5=2,Jue=3,z5=4,Yue=class extends ${innerPattern(){return Kue}innerExtract(e,t){let n=parseInt(t[que]);if(n>23)return null;let r=e.createParsingResult(t.index,t[0]);r.start.assign(`hour`,n);let i=t[z5]?parseInt(t[z5]):t[R5]?parseInt(t[R5]):0;if(i>=60)return null;r.start.assign(`minute`,i);let a=t[Jue]?.toLowerCase();return a===`sáng`?(r.start.assign(`meridiem`,X.AM),n===12&&r.start.assign(`hour`,0)):a===`trưa`?n<10?(r.start.assign(`meridiem`,X.PM),r.start.assign(`hour`,n+12)):r.start.assign(`meridiem`,n>=12?X.PM:X.AM):(a===`chiều`||a===`tối`||a===`đêm`)&&(r.start.assign(`meridiem`,X.PM),n<12&&r.start.assign(`hour`,n+12)),r.start.imply(`second`,0),r.start.imply(`millisecond`,0),r}},Xue=RegExp(`(`+N5+`)\\s{0,5}(?:trước|qua)(?=\\W|$)`,`i`),Zue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return Xue}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},Que=RegExp(`(`+N5+`)\\s{0,5}(?:sau|nữa|tới|tiếp)(?=\\W|$)`,`i`),$ue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return Que}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},ede=RegExp(`(?:trong\\s*(?:vòng\\s*)?)(`+N5+`)(?=\\W|$)`,`i`),tde=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return ede}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},B5=`(?:`+O5+`\\s{0,5})?(?:`+Q(D5)+`)`,nde=RegExp(`(này|trước|qua|sau|tới|tiếp)\\s*(`+B5+`)|(`+B5+`)\\s*(này|trước|qua|sau|tới|tiếp)(?=\\W|$)`,`i`),rde=class extends ${innerPattern(){return nde}innerExtract(e,t){let n=(t[1]||t[4]||``).toLowerCase(),r=(t[2]||t[3]||``).toLowerCase(),i=P5(r);if(Object.keys(i).length===0){let e=D5[r];if(!e)return null;i={[e]:1}}return(n===`trước`||n===`qua`)&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},ide=class extends K1{patternBetween(){return/^\s*(?:–|-|đến|tới|và)\s*$/}},ade=class extends X1{patternBetween(){return/^\s*(?:lúc|vào|,|T|-)?\s*$/}},ode=class extends T0{},sde=new O2(cde());new O2(V5(!0));function cde(e=!0){let t=V5(!1,e);return t.parsers.unshift(new Vue),t.parsers.unshift(new zue),t.parsers.unshift(new rde),t}function V5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Aue,new Nue,new Lue,new Gue,new Yue,new Zue(e),new $ue(e),new tde(e)],refiners:[new ode,new ide,new ade]},e)}var lde=/(sekarang|saat\s+ini|hari\s+ini|kemarin\s+lusa|kemarin|besok\s+lusa|besok|lusa|nanti\s+malam|malam\s+ini|tadi\s+malam|semalam)(?=\W|$)/i,ude=class extends ${innerPattern(){return lde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`sekarang`:case`saat ini`:return D0(e.reference);case`hari ini`:return O0(e.reference);case`kemarin`:return k0(e.reference);case`kemarin lusa`:return j0(e.reference,2);case`besok`:return A0(e.reference);case`lusa`:case`besok lusa`:return M0(e.reference,2);case`nanti malam`:case`malam ini`:return N0(e.reference);case`tadi malam`:case`semalam`:return P0(e.reference)}return e.createParsingComponents()}},dde=/(?:(?:pada|di)\s+)?(tengah\s+malam|tengah\s+hari|pagi|siang|sore|petang|malam(?!\s+ini))(?:\s+ini)?(?=\W|$)/i,fde=class extends ${innerPattern(){return dde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`pagi`:return R0(e.reference);case`siang`:case`tengah hari`:return B0(e.reference);case`sore`:case`petang`:return z0(e.reference);case`malam`:return F0(e.reference);case`tengah malam`:return L0(e.reference)}return null}},H5={minggu:0,ahad:0,senin:1,selasa:2,rabu:3,kamis:4,jumat:5,"jum'at":5,sabtu:6},U5={januari:1,jan:1,"jan.":1,februari:2,pebruari:2,feb:2,"feb.":2,peb:2,"peb.":2,maret:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,agustus:8,agu:8,"agu.":8,agt:8,"agt.":8,ags:8,"ags.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nopember:11,nov:11,"nov.":11,nop:11,"nop.":11,desember:12,des:12,"des.":12},W5={satu:1,dua:2,tiga:3,empat:4,lima:5,enam:6,tujuh:7,delapan:8,sembilan:9,sepuluh:10,sebelas:11,"dua belas":12},G5={detik:`second`,menit:`minute`,jam:`hour`,hari:`day`,minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},pde=`(?:${Q(W5)}|[0-9]+|[0-9]+[\\.,][0-9]+|setengah)`;function mde(e){let t=e.toLowerCase();return W5[t]===void 0?t===`setengah`?.5:parseFloat(t.replace(`,`,`.`)):W5[t]}var K5=`(?:[1-9][0-9]{0,3}\\s*(?:SM|M)(?=\\W|$)|[1-2][0-9]{3}|[5-9][0-9])`;function q5(e){return/SM/i.test(e)?-parseInt(e.replace(/SM/i,``)):/M/i.test(e)?parseInt(e.replace(/M/i,``)):w$(parseInt(e))}var J5=`(?:(${pde})\\s{0,5}|se)(${Q(G5)})\\s{0,5}`,Y5=new RegExp(J5,`i`),X5=S$(``,J5,`\\s{0,5}(?:,|dan)?\\s{0,5}`);function Z5(e){let t={},n=e,r=Y5.exec(n);for(;r;){let e=r[1]?mde(r[1]):1,i=G5[r[2].toLowerCase()];t[i]=e,n=n.substring(r.index+r[0].length),r=Y5.exec(n)}return t}var hde=RegExp(`(?:(?:pada\\s+)?(?:tanggal|tgl\\.?)\\s*)?([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:\\s*|-|/)(${Q(U5)})(?:(?:\\s*|-|/|,\\s*)(?:tahun\\s+)?(${K5}))?(?=\\W|$)`,`i`),Q5=1,$5=2,gde=3,e7=4,_de=class extends ${innerPattern(){return hde}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=U5[t[gde].toLowerCase()],i=parseInt(t[Q5]);if(i>31)return t.index+=t[Q5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[e7]?n.start.assign(`year`,q5(t[e7])):n.start.imply(`year`,T$(e.refDate,i,r)),t[$5]){let e=parseInt(t[$5]);if(e>31)return null;n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},vde=RegExp(`(?:(?:pada\\s+)?bulan\\s+)?(${Q(U5)})(?:\\s*[,-]?\\s*(?:tahun\\s+)?(${K5}))?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),yde=1,t7=2,bde=class extends ${innerPattern(){return vde}innerExtract(e,t){let n=t[yde].toLowerCase();if(n.length<=3&&n!==`mei`&&!t[t7])return null;let r=e.createParsingComponents(),i=U5[n];return r.imply(`day`,1),r.assign(`month`,i),t[t7]?r.assign(`year`,q5(t[t7])):r.imply(`year`,T$(e.refDate,1,i)),r}},xde=RegExp(`(${Q(U5)})(?:-|/|\\s*,?\\s*)([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:(?:-|/|\\s*,\\s*|\\s+)(?:tahun\\s+)?(${K5}))?(?=\\W|$)(?![.:]\\d)`,`i`),Sde=1,Cde=2,n7=3,r7=4,wde=class extends ${innerPattern(){return xde}innerExtract(e,t){let n=U5[t[Sde].toLowerCase()],r=parseInt(t[Cde]);if(r>31)return null;let i=e.createParsingComponents({day:r,month:n});if(t[r7]?i.assign(`year`,q5(t[r7])):i.imply(`year`,T$(e.refDate,r,n)),!t[n7])return i;let a=parseInt(t[n7]);if(a>31)return null;let o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Tde=RegExp(`(?:pada\\s+)?(hari\\s+)?(${Q(H5)})(?:\\s+(?:(?:minggu|pekan)\\s+)?(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin))?(?=\\W|$)`,`i`),Ede=1,Dde=2,Ode=3,kde=class extends ${innerPattern(){return Tde}innerExtract(e,t){let n=t[Dde].toLowerCase();if(n===`minggu`&&!t[Ede])return null;let r=H5[n],i=(t[Ode]||``).toLowerCase().replace(/\s+/g,` `),a=null;return i===`ini`?a=`this`:i===`depan`||i===`berikutnya`||i===`mendatang`?a=`next`:(i===`lalu`||i===`yang lalu`||i===`kemarin`)&&(a=`last`),o0(e.reference,r,a)}},i7=7,Ade=class extends F1{primaryPrefix(){return`(?:(?:pada\\s+)?(?:pukul|pkl\\.?|jam)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*(?:(?:pukul|pkl\\.?|jam)\\s*)?`}primarySuffix(){return`(?:\\s*(pagi|siang|sore|petang|malam))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){if(t[0].match(/^\s*\d{4}\s*$/))return null;let n=super.extractPrimaryTimeComponents(e,t);if(!n||!t[i7]||n.isCertain(`meridiem`))return n;let r=n.get(`hour`);if(r>12)return n;switch(t[i7].toLowerCase()){case`pagi`:r==12&&(r=0);break;case`siang`:r<10&&(r+=12);break;case`sore`:case`petang`:r<12&&(r+=12);break;case`malam`:r==12?r=0:r>=5&&(r+=12)}return n.assign(`hour`,r),n.assign(`meridiem`,r>=12?X.PM:X.AM),n}},jde=RegExp(`(${X5})\\s{0,5}(?:yang\\s+)?(?:lalu|silam|sebelumnya)(?=\\W|$)`,`i`),Mde=class extends ${innerPattern(){return jde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,y$(n))}},Nde=RegExp(`(${X5})\\s{0,5}(?:lagi|kemudian|setelahnya|sesudahnya|mendatang|ke\\s*depan)(?=\\W|$)`,`i`),Pde=class extends ${innerPattern(){return Nde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Fde=RegExp(`(?:dalam\\s+(?:waktu\\s+)?)(${X5})(?=\\W|$)`,`i`),Ide=class extends ${innerPattern(){return Fde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Lde=RegExp(`(minggu|pekan|bulan|tahun)\\s+(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin)(?=\\W|$)`,`i`),Rde=1,zde=2,Bde={minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},Vde=class extends ${innerPattern(){return Lde}innerExtract(e,t){let n=t[Rde].toLowerCase(),r=t[zde].toLowerCase().replace(/\s+/g,` `),i=Bde[n];if(r==`depan`||r==`berikutnya`||r==`mendatang`)return Z.createRelativeFromReference(e.reference,{[i]:1});if(r==`lalu`||r==`yang lalu`||r==`kemarin`)return Z.createRelativeFromReference(e.reference,{[i]:-1});let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i==`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i==`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i==`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Hde=class extends K1{patternBetween(){return/^\s*(?:-|–|s\.d\.?|s\/d|sampai(?:\s+dengan)?|hingga)\s*$/i}},Ude=class extends X1{patternBetween(){return/^\s*(?:pada|,|-|T)?\s*$/i}},Wde=new O2(Gde());new O2(a7(!0));function Gde(e=!0){let t=a7(!1,e);return t.parsers.unshift(new ude),t.parsers.unshift(new fde),t.parsers.unshift(new bde),t.parsers.unshift(new Vde),t}function a7(e=!0,t=!0){return E0({parsers:[new o2(t),new _de,new wde,new kde,new Ade(e),new Ide,new Mde,new Pde],refiners:[new Ude,new Hde]},e)}var o7={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`};function s7(e){return e.replace(/[٠-٩]/g,e=>(e.charCodeAt(0)-1632).toString())}var c7={الأحد:0,الاحد:0,أحد:0,احد:0,الإثنين:1,الاثنين:1,إثنين:1,اثنين:1,الثلاثاء:2,ثلاثاء:2,الأربعاء:3,الاربعاء:3,أربعاء:3,اربعاء:3,الخميس:4,خميس:4,الجمعة:5,جمعة:5,السبت:6,سبت:6},l7={يناير:1,فبراير:2,مارس:3,أبريل:4,ابريل:4,مايو:5,يونيو:6,يوليو:7,أغسطس:8,اغسطس:8,سبتمبر:9,أكتوبر:10,اكتوبر:10,نوفمبر:11,ديسمبر:12,"كانون الثاني":1,شباط:2,آذار:3,اذار:3,نيسان:4,أيار:5,ايار:5,حزيران:6,تموز:7,آب:8,اب:8,أيلول:9,ايلول:9,"تشرين الأول":10,"تشرين الاول":10,"تشرين الثاني":11,"كانون الأول":12,"كانون الاول":12},u7={واحد:1,واحدة:1,اثنان:2,اثنين:2,اثنتان:2,اثنتين:2,ثلاثة:3,ثلاث:3,أربعة:4,اربعة:4,أربع:4,اربع:4,خمسة:5,خمس:5,ستة:6,ست:6,سبعة:7,سبع:7,ثمانية:8,ثماني:8,ثمان:8,تسعة:9,تسع:9,عشرة:10,عشر:10,"أحد عشر":11,"احد عشر":11,"إحدى عشرة":11,"احدى عشرة":11,"اثنا عشر":12,"اثني عشر":12,"اثنتا عشرة":12,"اثنتي عشرة":12,نصف:.5,نص:.5,ربع:.25},d7={الأول:1,الاول:1,الأولى:1,الاولى:1,أول:1,اول:1,حادي:1,الحادي:1,الثاني:2,الثانية:2,ثاني:2,الثالث:3,الثالثة:3,ثالث:3,الرابع:4,الرابعة:4,رابع:4,الخامس:5,الخامسة:5,خامس:5,السادس:6,السادسة:6,سادس:6,السابع:7,السابعة:7,سابع:7,الثامن:8,الثامنة:8,ثامن:8,التاسع:9,التاسعة:9,تاسع:9,العاشر:10,العاشرة:10,عاشر:10,"الحادي عشر":11,"الحادية عشرة":11,"الثاني عشر":12,"الثانية عشرة":12,"الثالث عشر":13,"الثالثة عشرة":13,"الرابع عشر":14,"الرابعة عشرة":14,"الخامس عشر":15,"الخامسة عشرة":15,"السادس عشر":16,"السادسة عشرة":16,"السابع عشر":17,"السابعة عشرة":17,"الثامن عشر":18,"الثامنة عشرة":18,"التاسع عشر":19,"التاسعة عشرة":19,العشرون:20,العشرين:20,"الحادي والعشرون":21,"الحادية والعشرون":21,"الواحد والعشرون":21,"الثاني والعشرون":22,"الثانية والعشرون":22,"الثالث والعشرون":23,"الثالثة والعشرون":23,"الرابع والعشرون":24,"الرابعة والعشرون":24,"الخامس والعشرون":25,"الخامسة والعشرون":25,"السادس والعشرون":26,"السادسة والعشرون":26,"السابع والعشرون":27,"السابعة والعشرون":27,"الثامن والعشرون":28,"الثامنة والعشرون":28,"التاسع والعشرون":29,"التاسعة والعشرون":29,الثلاثون:30,الثلاثين:30,"الحادي والثلاثون":31,"الحادية والثلاثون":31,"الواحد والثلاثون":31},f7={ثانية:`second`,ثانيةً:`second`,ثواني:`second`,ثوان:`second`,ثوانٍ:`second`,دقيقة:`minute`,دقيقةً:`minute`,دقائق:`minute`,ساعة:`hour`,ساعةً:`hour`,ساعات:`hour`,يوم:`day`,يوماً:`day`,يوما:`day`,أيام:`day`,ايام:`day`,أسبوع:`week`,اسبوع:`week`,أسبوعاً:`week`,أسبوعا:`week`,اسبوعاً:`week`,اسبوعا:`week`,أسابيع:`week`,اسابيع:`week`,شهر:`month`,شهراً:`month`,شهرا:`month`,أشهر:`month`,اشهر:`month`,شهور:`month`,سنة:`year`,سنةً:`year`,سنوات:`year`,سنين:`year`,عام:`year`,عاماً:`year`,عاما:`year`,أعوام:`year`,اعوام:`year`},p7={ثانيتان:`second`,ثانيتين:`second`,دقيقتان:`minute`,دقيقتين:`minute`,ساعتان:`hour`,ساعتين:`hour`,يومان:`day`,يومين:`day`,أسبوعان:`week`,اسبوعان:`week`,أسبوعين:`week`,اسبوعين:`week`,شهران:`month`,شهرين:`month`,سنتان:`year`,سنتين:`year`,عامان:`year`,عامين:`year`},Kde=`(?:${Q(u7)}|[0-9٠-٩]+|[0-9٠-٩]+[\\.,][0-9٠-٩]+|\\s{0,3})`;function qde(e){let t=e.trim();if(u7[t]!==void 0)return u7[t];if(t===``)return 1;let n=s7(t).replace(`,`,`.`);return parseFloat(n)}var m7=`(?:${Q(d7)}|[0-9٠-٩]{1,2})`;function h7(e){let t=e.trim();if(d7[t]!==void 0)return d7[t];let n=s7(t);return parseInt(n,10)}var g7=`(?:\\s*(?:ميلادية|ميلادي|م))?`,_7=`(?:[1-9١-٩][0-9٠-٩]{0,3}${g7}(?:\\s*(?:قبل الميلاد|ق\\.م))|[1-2١-٢][0-9٠-٩]{3}${g7}|[5-9٥-٩][0-9٠-٩]${g7})`;function v7(e){let t=e.trim(),n=/(قبل الميلاد|ق\.م)/i.test(t);t=t.replace(/(قبل الميلاد|ق\.م|ميلادية|ميلادي|م)/gi,``).trim();let r=s7(t),i=parseInt(r,10);return n?-i:w$(i)}var y7=`(?:${`(${Q(p7)})`}|${`(?:(${Kde})\\s{0,3})?(${Q(f7)})`}|(?:و\\s*)?(نصف|نص|ربع))`,b7=new RegExp(y7,o7.flags),x7=S$(`(?:(?:خلال|في غضون|في خلال|حوالي|تقريباً|تقريبا)\\s{0,3})?`,y7,`\\s{0,5},?(?:\\s*و)?\\s{0,5}`);function S7(e){let t={},n=e,r=b7.exec(n),i;for(;r&&(i=Jde(t,r,i),n=n.substring(r.index+r[0].length).trim(),n);)r=b7.exec(n);return t}function Jde(e,t,n){if(t[1]){let n=p7[t[1].trim()];if(n)return e[n]=(e[n]||0)+2,n}else if(t[3]){let n=qde(t[2]?t[2].trim():``),r=f7[t[3].trim()];if(r)return e[r]=(e[r]||0)+n,r}else if(t[4]){let r=t[4].trim()===`ربع`?.25:.5;if(n)return e[n]=(e[n]||0)+r,n}return n}var Yde=class extends ${patternLeftBoundary(){return o7.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),o7.flags)}innerPatternHasChange(e,t){return!1}},C7=class extends Yde{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${o7.rightBoundary}`,o7.flags)}},Xde=class extends C7{innerPatternString(e){return`(الآن|الان|حالياً|حاليا|اليوم|أول\\s*(?:من\\s*)?أمس|اول\\s*(?:من\\s*)?امس|أول\\s*(?:من\\s*)?البارحة|اول\\s*(?:من\\s*)?البارحة|قبل\\s*(?:من\\s*)?أمس|قبل\\s*(?:من\\s*)?امس|أمس|امس|البارحة|بعد\\s*غد(?:اً|ا)?|بعد\\s*بكر[ةا]|غداً|غدا|بكر[ةا])`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n===`الآن`||n===`الان`||n===`حالياً`||n===`حاليا`?D0(e.reference):n===`اليوم`?O0(e.reference):n.match(/أول\s*(?:من\s*)?أمس/)||n.match(/اول\s*(?:من\s*)?امس/)||n.match(/أول\s*(?:من\s*)?البارحة/)||n.match(/اول\s*(?:من\s*)?البارحة/)||n.match(/قبل\s*(?:من\s*)?أمس/)||n.match(/قبل\s*(?:من\s*)?امس/)?j0(e.reference,2):n===`أمس`||n===`امس`||n===`البارحة`?k0(e.reference):n.match(/بعد\s*غد/)||n.match(/بعد\s*بكر/)?M0(e.reference,2):n===`غداً`||n===`غدا`||n.match(/^بكر[ةا]$/)?A0(e.reference):r}},Zde=class extends C7{innerPatternString(e){return`(مساء\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*مساءً?|ليلة\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*ليلاً?|الليلة\\s*الماضية|منتصف\\s*النهار|منتصف\\s*الليل|هذا\\s*الصباح|هذا\\s*المساء|هذه\\s*الليلة|بعد\\s*الظهر|ظهر\\s*اليوم|الصباح|صباحاً|صباحا|الظهر|ظهراً|ظهرا|العصر|عصراً|عصرا|المساء|مساءً|مساء|الليلة|الليل|ليلاً|ليلا)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n.match(/مساء\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*مساء/)?I0(e.reference):n.match(/ليلة\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*ليلاً?/)||n===`الليلة الماضية`?P0(e.reference):n===`هذه الليلة`||n===`الليلة`?N0(e.reference):n===`منتصف الليل`?L0(e.reference):n===`منتصف النهار`||n===`ظهر اليوم`||n===`الظهر`||n===`ظهراً`||n===`ظهرا`?B0(e.reference):n===`بعد الظهر`||n===`العصر`||n===`عصراً`||n===`عصرا`?z0(e.reference):n===`هذا الصباح`||n===`الصباح`||n===`صباحاً`||n===`صباحا`?R0(e.reference):n===`هذا المساء`||n===`المساء`||n===`مساءً`||n===`مساء`?F0(e.reference):n===`الليل`||n===`ليلاً`||n===`ليلا`?F0(e.reference,22):r}},Qde=1,$de=2,efe=3,tfe=class extends C7{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:يوم\\s*)?(?:(هذا|هذه|الماضي|الماضية|السابق|السابقة|القادم|القادمة|المقبل|المقبلة)\\s+)?(${Q(c7)})(?:\\s+(هذا|هذه|الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة))?(?:\\s*(?:,|\\)|)))?`}innerExtract(e,t){let n=c7[t[$de].toLowerCase()],r=t[Qde],i=t[efe],a=(r||i||``).toLowerCase(),o=null;return a===`الماضي`||a===`الماضية`||a===`السابق`||a===`السابقة`||a===`المنصرم`||a===`المنصرمة`?o=`last`:a===`القادم`||a===`القادمة`||a===`المقبل`||a===`المقبلة`?o=`next`:(a===`هذا`||a===`هذه`)&&(o=`this`),o0(e.reference,n,o)}},w7=1,T7=2,nfe=3,E7=4,rfe=class extends C7{innerPatternString(e){return`(?:(?:في|من)\\s*)?(${m7})(?:\\s*(?:إلى|وحتى|حتى|-|–)\\s*(${m7}))?(?:\\s*(?:من)?\\s*)(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=l7[t[nfe].toLowerCase()],r=h7(t[w7]);if(r>31||r<1)return t.index+=t[w7].length,null;let i=e.createParsingResult(t.index,t[0]);if(i.start.assign(`month`,n),i.start.assign(`day`,r),t[E7]){let e=v7(t[E7]);i.start.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.start.imply(`year`,t)}if(t[T7]){let e=h7(t[T7]);i.end=i.start.clone(),i.end.assign(`day`,e)}return i}},ife=1,D7=2,afe=class extends C7{innerPatternString(e){return`(?:(?:في|خلال)\\s*)?(?:شهر\\s*)?(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}))?`}innerExtract(e,t){if(e.text.substring(0,t.index).match(/[0-9٠-٩]+\s*$/))return null;let n=l7[t[ife].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);if(r.start.imply(`day`,1),r.start.assign(`month`,n),t[D7]){let e=v7(t[D7]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,n);r.start.imply(`year`,t)}return r}},O7=2,k7=3,A7=4,j7=5,M7=6;function ofe(e,t,n,r){return RegExp(`${e}${t}([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${n}`,r)}function sfe(e,t){return RegExp(`^(${e})([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{1,2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${t}`,`iu`)}var cfe=class extends F1{constructor(e=!1){super(e)}patternFlags(){return o7.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:-|–|~|إلى|وحتى|حتى)\\s*`}primaryPrefix(){return`(?:(?:في\\s*تمام|في|الساعة|ساعة|من)\\s*)??`}primarySuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}followingSuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}getPrimaryTimePatternThroughCache(){return ofe(this.primaryPatternLeftBoundary(),this.primaryPrefix(),this.primarySuffix(),this.patternFlags())}getFollowingTimePatternThroughCache(){return sfe(this.followingPhase(),this.followingSuffix())}extractPrimaryTimeComponents(e,t){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let n=super.extractPrimaryTimeComponents(e,t);if(n){let e=(t[M7]||``).toLowerCase(),r=t[0].toLowerCase(),i=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(r),a=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(r),o=/(?:ظهراً|ظهرا)/.test(r);if(i){let e=n.get(`hour`);e<12&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}else if(a)n.get(`hour`)===12&&n.assign(`hour`,0),n.assign(`meridiem`,X.AM);else if(o){let e=n.get(`hour`);e<12&&e!==0&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}}return n}extractFollowingTimeComponents(e,t,n){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let r=super.extractFollowingTimeComponents(e,t,n);if(r){let e=(t[M7]||``).toLowerCase(),i=t[0].toLowerCase(),a=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(i),o=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(i),s=/(?:ظهراً|ظهرا)/.test(i);if(a){let e=r.get(`hour`);e<12&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}else if(o)r.get(`hour`)===12&&r.assign(`hour`,0),r.assign(`meridiem`,X.AM);else if(s){let e=r.get(`hour`);e<12&&e!==0&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}n.start.isCertain(`meridiem`)||(a?(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)<12&&n.start.assign(`hour`,n.start.get(`hour`)+12)):o&&(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)===12&&n.start.assign(`hour`,0)))}return r}},lfe=class extends C7{innerPatternString(e){return`(?:(?:منذ|قبل)\\s*(${x7})|(${x7})\\s*(?:مضت|سابقاً))`}innerExtract(e,t){let n=y$(S7(t[1]||t[2]));return Z.createRelativeFromReference(e.reference,n)}},ufe=class extends C7{innerPatternString(e){return`(?:(?:بعد)\\s*(${x7})(?:\\s*من\\s*الآن)?|(${x7})\\s*(?:من\\s*الآن|لاحقاً|لاحقا))`}innerExtract(e,t){let n=S7(t[1]||t[2]);return Z.createRelativeFromReference(e.reference,n)}},dfe=class extends C7{innerPatternString(e){return`(?:في\\s*خلال|في\\s*غضون|في\\s*ظرف|خلال)\\s*(${x7})`}innerExtract(e,t){let n=S7(t[1]);return Z.createRelativeFromReference(e.reference,n)}},ffe=1,pfe=2,mfe=3,hfe=class extends C7{innerPatternString(e){return`(?:في\\s+)?(?:(هذا|هذه)\\s+)?(الشهر|الاسبوع|الأسبوع|العام|السنة)(?:\\s+(الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة|التالي|التالية))?`}innerExtract(e,t){(t[ffe]||``).toLowerCase();let n=t[pfe].toLowerCase(),r=(t[mfe]||``).toLowerCase(),i=`month`;if(n===`الاسبوع`||n===`الأسبوع`?i=`week`:(n===`العام`||n===`السنة`)&&(i=`year`),r===`القادم`||r===`القادمة`||r===`المقبل`||r===`المقبلة`||r===`التالي`||r===`التالية`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(r===`الماضي`||r===`الماضية`||r===`السابق`||r===`السابقة`||r===`المنصرم`||r===`المنصرمة`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i===`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i===`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i===`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},gfe=class extends X1{patternBetween(){return RegExp(`^\\s*(T|في\\s*تمام|في|الساعة|ساعة|,|-)?\\s*$`,`iu`)}},_fe=class extends K1{patternBetween(){return/^\s*(إلى|وحتى|حتى|-|–)\s*$/iu}},vfe=new O2(yfe());new O2(N7(!0));function yfe(e=!0){let t=N7(!1,e);return t.parsers.unshift(new Xde),t.parsers.unshift(new Zde),t.parsers.unshift(new afe),t.parsers.unshift(new hfe),t}function N7(e=!0,t=!0){return E0({parsers:[new o2(t),new dfe,new rfe,new tfe,new cfe(e),new lfe,new ufe],refiners:[new gfe,new _fe]},e)}var bfe=1,P7=2,xfe=3,F7=4,I7=5,Sfe=6,Cfe=class extends ${innerPattern(e){return RegExp(`(现在|立(?:刻|即)|即刻)|(今|明|前|大前|后|大后|昨)(早|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[bfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[P7]){let e=t[P7],n=t[xfe];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3),n==`早`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[F7]){let e=t[F7][0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[I7]){let e=t[I7];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3);let n=t[Sfe];if(n){let e=n[0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},L7={零:0,〇:0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},R7={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function z7(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?L7[r]:t*L7[r]:t+=L7[r]}return t}function wfe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=L7[r]}return parseInt(t)}var B7=1,V7=2,H7=3,Tfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(L7).join(``)+`]{4}|[`+Object.keys(L7).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})?(?:\\s*)(?:日|号)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[V7]);if(isNaN(r)&&(r=z7(t[V7])),n.start.assign(`month`,r),t[H7]){let e=parseInt(t[H7]);isNaN(e)&&(e=z7(t[H7])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[B7]){let e=parseInt(t[B7]);isNaN(e)&&(e=wfe(t[B7])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Efe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)`,`i`),U7=1,Dfe=2,Ofe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Efe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[U7]);if(isNaN(r)&&(r=z7(t[U7])),isNaN(r)){let e=t[U7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Dfe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},kfe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:之)?前`,`i`),W7=1,Afe=2,jfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return kfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[W7]);if(isNaN(r)&&(r=z7(t[W7])),isNaN(r)){let e=t[W7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Afe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=y$(i);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r),i=y$(i);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Mfe=RegExp(`(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Nfe=class extends ${innerPattern(){return Mfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:a==`这`&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},Pfe=RegExp(`(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),Ffe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),G7=1,K7=2,q7=3,J7=4,Y7=5,X7=6,Z7=7,Q7=8,$7=9,Ife=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Pfe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[G7]){let i=t[G7];i==`明`?e.reference.instant.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`后`?r.setDate(r.getDate()+2):i==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[J7]){let e=t[J7];e==`明`?r.setDate(r.getDate()+1):e==`昨`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`后`?r.setDate(r.getDate()+2):e==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[Q7]){let e=parseInt(t[Q7]);if(isNaN(e)&&(e=z7(t[Q7])),e>=60)return null;n.start.assign(`second`,e)}if(i=parseInt(t[X7]),isNaN(i)&&(i=z7(t[X7])),t[Z7]?t[Z7]==`半`?a=30:t[Z7]==`正`||t[Z7]==`整`?a=0:(a=parseInt(t[Z7]),isNaN(a)&&(a=z7(t[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[$7]){if(i>12)return null;let e=t[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12))}else if(t[K7]){let e=t[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[q7]){let e=t[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[Y7]){let e=t[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let s=Ffe.exec(e.text.substring(n.index+n.text.length));if(!s)return n.text.match(/^\d+$/)?null:n;let c=new Date(r.getTime());if((s[G7]||s[J7])&&(c=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),s[G7]){let t=s[G7];t==`明`?e.reference.instant.getHours()>1&&c.setDate(c.getDate()+1):t==`昨`?c.setDate(c.getDate()-1):t==`前`?c.setDate(c.getDate()-2):t==`大前`?c.setDate(c.getDate()-3):t==`后`?c.setDate(c.getDate()+2):t==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else if(s[J7]){let e=s[J7];e==`明`?c.setDate(c.getDate()+1):e==`昨`?c.setDate(c.getDate()-1):e==`前`?c.setDate(c.getDate()-2):e==`大前`?c.setDate(c.getDate()-3):e==`后`?c.setDate(c.getDate()+2):e==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else n.end.imply(`day`,c.getDate()),n.end.imply(`month`,c.getMonth()+1),n.end.imply(`year`,c.getFullYear());if(i=0,a=0,o=-1,s[Q7]){let e=parseInt(s[Q7]);if(isNaN(e)&&(e=z7(s[Q7])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(s[X7]),isNaN(i)&&(i=z7(s[X7])),s[Z7]?s[Z7]==`半`?a=30:s[Z7]==`正`||s[Z7]==`整`?a=0:(a=parseInt(s[Z7]),isNaN(a)&&(a=z7(s[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),s[$7]){if(i>12)return null;let e=s[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(s[K7]){let e=s[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(s[q7]){let e=s[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(s[Y7]){let e=s[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=s[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},Lfe=RegExp(`(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Rfe=class extends ${innerPattern(){return Lfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},zfe=class extends K1{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}},Bfe=class extends X1{patternBetween(){return/^\s*$/i}};new O2(e9());var Vfe=new O2(e9());new O2(t9());function e9(){let e=t9();return e.parsers.unshift(new Cfe),e}function t9(){let e=E0({parsers:[new Tfe,new Nfe,new Rfe,new Ife,new Ofe,new jfe],refiners:[new zfe,new Bfe]});return e.refiners=e.refiners.filter(e=>!(e instanceof i0)),e}var Hfe=1,n9=2,Ufe=3,r9=4,i9=5,Wfe=6,Gfe=class extends ${innerPattern(e){return RegExp(`(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Hfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[n9]){let e=t[n9],n=t[Ufe];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3),n==`早`||n==`朝`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[r9]){let e=t[r9][0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[i9]){let e=t[i9];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3);let n=t[Wfe];if(n){let e=n[0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},a9={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},o9={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function s9(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?a9[r]:t*a9[r]:t+=a9[r]}return t}function Kfe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=a9[r]}return parseInt(t)}var c9=1,l9=2,u9=3,qfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(a9).join(``)+`]{4}|[`+Object.keys(a9).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})?(?:\\s*)(?:日|號)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[l9]);if(isNaN(r)&&(r=s9(t[l9])),n.start.assign(`month`,r),t[u9]){let e=parseInt(t[u9]);isNaN(e)&&(e=s9(t[u9])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[c9]){let e=parseInt(t[c9]);isNaN(e)&&(e=Kfe(t[c9])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Jfe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)`,`i`),d9=1,Yfe=2,Xfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Jfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[d9]);if(isNaN(r)&&(r=s9(t[d9])),isNaN(r)){let e=t[d9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Yfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Zfe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:之)?前`,`i`),f9=1,Qfe=2,$fe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Zfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[f9]);if(isNaN(r)&&(r=s9(t[f9])),isNaN(r)){let e=t[f9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Qfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=y$(i);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r),i=y$(i);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},epe=RegExp(`(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),tpe=class extends ${innerPattern(){return epe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:(a==`今`||a==`這`||a==`呢`)&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},npe=RegExp(`(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),rpe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),p9=1,m9=2,h9=3,g9=4,_9=5,v9=6,y9=7,b9=8,x9=9,ipe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return npe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[p9]){let i=t[p9];i==`明`||i==`聽`?e.refDate.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`||i==`尋`||i==`琴`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`後`?r.setDate(r.getDate()+2):i==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[g9]){let e=t[g9];e==`明`||e==`聽`?r.setDate(r.getDate()+1):e==`昨`||e==`尋`||e==`琴`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`後`?r.setDate(r.getDate()+2):e==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[b9]){var s=parseInt(t[b9]);if(isNaN(s)&&(s=s9(t[b9])),s>=60)return null;n.start.assign(`second`,s)}if(i=parseInt(t[v9]),isNaN(i)&&(i=s9(t[v9])),t[y9]?t[y9]==`半`?a=30:t[y9]==`正`||t[y9]==`整`?a=0:(a=parseInt(t[y9]),isNaN(a)&&(a=s9(t[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[x9]){if(i>12)return null;var c=t[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12))}else if(t[m9]){var l=t[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[h9]){var u=t[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[_9]){var d=t[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let f=rpe.exec(e.text.substring(n.index+n.text.length));if(!f)return n.text.match(/^\d+$/)?null:n;let p=new Date(r.getTime());if((f[p9]||f[g9])&&(p=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),f[p9]){let t=f[p9];t==`明`||t==`聽`?e.refDate.getHours()>1&&p.setDate(p.getDate()+1):t==`昨`||t==`尋`||t==`琴`?p.setDate(p.getDate()-1):t==`前`?p.setDate(p.getDate()-2):t==`大前`?p.setDate(p.getDate()-3):t==`後`?p.setDate(p.getDate()+2):t==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else if(f[g9]){let e=f[g9];e==`明`||e==`聽`?p.setDate(p.getDate()+1):e==`昨`||e==`尋`||e==`琴`?p.setDate(p.getDate()-1):e==`前`?p.setDate(p.getDate()-2):e==`大前`?p.setDate(p.getDate()-3):e==`後`?p.setDate(p.getDate()+2):e==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else n.end.imply(`day`,p.getDate()),n.end.imply(`month`,p.getMonth()+1),n.end.imply(`year`,p.getFullYear());if(i=0,a=0,o=-1,f[b9]){let e=parseInt(f[b9]);if(isNaN(e)&&(e=s9(f[b9])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(f[v9]),isNaN(i)&&(i=s9(f[v9])),f[y9]?f[y9]==`半`?a=30:f[y9]==`正`||f[y9]==`整`?a=0:(a=parseInt(f[y9]),isNaN(a)&&(a=s9(f[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),f[x9]){if(i>12)return null;var c=f[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(f[m9]){var l=f[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(f[h9]){var u=f[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(f[_9]){var d=f[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=f[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},ape=RegExp(`(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),ope=class extends ${innerPattern(){return ape}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},spe=class extends K1{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}},cpe=class extends X1{patternBetween(){return/^\s*$/i}};new O2(S9());var lpe=new O2(S9());new O2(C9());function S9(){let e=C9();return e.parsers.unshift(new Gfe),e}function C9(){let e=E0({parsers:[new qfe,new tpe,new ope,new ipe,new Xfe,new $fe],refiners:[new spe,new cpe]});return e.refiners=e.refiners.filter(e=>!(e instanceof i0)),e}var upe=new Set([`with`,`about`,`from`,`on`,`the`,`a`,`and`,`meeting`]),w9=e=>e.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(e=>e&&!upe.has(e)),T9={en:j2,de:b4,fr:l3,ja:Lae,pt:eoe,nl:Xoe,ru:bse,es:qse,uk:_ce,it:Tle,sv:Xle,fi:wue,vi:sde,id:Wde,ar:vfe,"zh-cn":Vfe,"zh-tw":lpe};function dpe(e,{now:t=new Date,locale:n=new Intl.DateTimeFormat().resolvedOptions().locale,language:r=n}={}){let i,a,o=e,s=(e=0)=>new Date(t.getFullYear(),t.getMonth(),t.getDate()+e),c=(t,n,r)=>{!Number.isFinite(n.getTime())||!Number.isFinite(r.getTime())||r<=n||(i={start:n.getTime(),end:r.getTime()},a=t,o=(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim())},l=/\b(?:(this|last) (week|month)|(past|last) (\d+) (days?|weeks?))\b/i.exec(e);if(l){let e,r;if(l[4])e=s(1-Number(l[4])*(l[5].toLowerCase().startsWith(`week`)?7:1)),r=s(1);else if(l[2].toLowerCase()===`month`){let n=l[1].toLowerCase()===`last`?-1:0;e=new Date(t.getFullYear(),t.getMonth()+n,1),r=new Date(t.getFullYear(),t.getMonth()+n+1,1)}else{let i=new Intl.Locale(n),a=i.getWeekInfo?.().firstDay??i.weekInfo?.firstDay??1,o=-((t.getDay()-a+7)%7)-(l[1].toLowerCase()===`last`?7:0);e=s(o),r=s(o+7)}c({start:l.index,end:l.index+l[0].length},e,r)}else{let a=new Intl.DateTimeFormat(n).formatToParts(new Date(2001,10,22)).map(e=>e.type),o=a.indexOf(`day`)<a.indexOf(`month`),l=r.toLowerCase(),u=T9[l]??T9[l.split(`-`)[0]]??j2;u===j2&&o&&(u=M2);let d=e=>new Date(e.get(`year`),e.get(`month`)-1,e.get(`day`));for(let n of u.parse(e,t)){let t=d(n.start),r=d(n.end??n.start),a={start:n.index,end:n.index+n.text.trimEnd().length},l=e.slice(0,a.start),f=n.start.isCertain(`month`)&&!n.start.isCertain(`day`),p=n.start.isCertain(`weekday`)&&!n.start.isCertain(`day`),m=/\bin\s+$/i.exec(l);if(f){if(!m||n.end)continue;a.start=m.index}else if(p){if(/^\p{L}+\.?$/u.test(n.text.trim())&&e.trim()!==n.text.trim())continue;t>s()&&!/\b(next|this)\b/i.test(n.text)&&(t.setDate(t.getDate()-7),r.setDate(r.getDate()-7))}else if(!n.start.isCertain(`day`))continue;if(u!==j2&&u!==M2||![...n.text.matchAll(/\b(\d{1,2})\/(\d{1,2})(?:\/\d{4})?\b/g)].some(e=>Number(e[o?2:1])>12)){if(n.start.isCertain(`month`)&&!n.start.isCertain(`year`)&&!n.end?.isCertain(`year`)&&t>s()){let e=t.getMonth(),n=r.getMonth();if(t.setFullYear(t.getFullYear()-1),r.setFullYear(r.getFullYear()-1),t.getMonth()!==e||r.getMonth()!==n)continue}if(n.end){let e=/\bfrom\s+$/i.exec(l);e&&(a.start=e.index)}if(c(a,t,f?new Date(t.getFullYear(),t.getMonth()+1,1):new Date(r.getFullYear(),r.getMonth(),r.getDate()+1)),i)break}}}return{text:o,words:w9(o),date:i,...a?{dateSpan:a}:{}}}var E9=e=>e.trim().toLocaleLowerCase().replace(/\s+/g,` `),D9=e=>e.email?.trim()?`email:${n$(e.email)}`:`name:${E9(e.name)}`,O9=e=>[...new Map(e.map(e=>[D9(e),e])).values()],fpe=(e,t)=>(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim(),ppe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function mpe(e,t,n=[],r={}){let i=O9(t),a=new Set(n.map(D9)),o=[];for(let t of i){let n=a.has(D9(t)),r=[t.email?.trim(),...n||t.name.trim().split(/\s+/).length>1?[t.name.trim()]:[]].filter(e=>!!e);for(let n of r){let r=RegExp(`(?<![\\p{L}\\p{N}@._+-])${ppe(n).replace(/\s+/g,`\\s+`)}(?![\\p{L}\\p{N}@._+-])`,`iu`).exec(e);if(r){o.push({person:t,start:r.index,end:r.index+r[0].length});break}}}let s=o.filter(e=>!o.some(t=>t!==e&&t.start===e.start&&t.end===e.end&&a.has(D9(t.person))&&!a.has(D9(e.person)))),c=s.filter(e=>!s.some(t=>t.start<=e.start&&t.end>=e.end&&t.end-t.start>e.end-e.start)),l=c.filter(e=>!c.some(t=>t!==e&&t.start<e.end&&t.end>e.start)),u=e;for(let e of l)u=u.slice(0,e.start)+` `.repeat(e.end-e.start)+u.slice(e.end);let d=dpe(u,r).dateSpan,f=[...u.matchAll(/[\p{L}\p{N}][\p{L}\p{N}@._+'’-]*/gu)],p=[];for(let t of i){if(l.some(e=>D9(e.person)===D9(t)))continue;let n=c.find(e=>D9(e.person)===D9(t));if(n){p.push(n);continue}let r=E9(t.name).split(/\s+/),i;f.forEach((n,a)=>{if(d&&n.index>=d.start&&n.index<d.end)return;let o=n[0].toLocaleLowerCase();if(!w9(o).length||o.length<3&&o!==r[0])return;let s=e=>{(!i||e-n.index>i.end-i.start)&&(i={person:t,start:n.index,end:e})};t.email&&n$(t.email).startsWith(o)&&s(n.index+n[0].length),r.forEach((t,n)=>{for(let t=0;a+t<f.length&&n+t<r.length;t++){let i=f[a+t];if(d&&i.index>=d.start&&i.index<d.end||t&&!/^\s+$/.test(e.slice(f[a+t-1].index+f[a+t-1][0].length,i.index))||!r[n+t].startsWith(i[0].toLocaleLowerCase()))break;s(i.index+i[0].length)}})}),i&&p.push(i)}return{text:u,matches:l,suggestions:p}}function hpe(e,t,n,r,i=[],a){let o=i.find(e=>e.id===a||e.aliases?.includes(a)),s=[...o?.attendees??[],...t,...i.filter(e=>e!==o).flatMap(e=>e.attendees)],c=new Set(s.filter(e=>e.email?.trim()).map(e=>E9(e.name))),l=[...n,{name:r,email:null},...s.filter(e=>E9(e.name)===E9(r))],u=O9(s).filter(e=>(e.email?.trim()||!c.has(E9(e.name)))&&!l.some(t=>t.email?.trim()&&e.email?.trim()?n$(t.email)===n$(e.email):E9(t.name)===E9(e.name))),{matches:d,suggestions:f}=mpe(e,u),p=new Set([...d,...f].filter(t=>!fpe(e,t)).map(e=>D9(e.person)));return u.filter(e=>p.has(D9(e))).slice(0,5)}function k9(e,t,n,r=!0){(0,U.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 A9=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),gpe=e=>j9(e).split(/\s+/)[0]??e;function j9(e){let t=M9(e);return!t?.email||t.name!==t.email?t?.name??e:i$(t.email)}function M9(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 N9(e,t,n=3){let r=e.filter(e=>!A9(e.name,t));if(!r.length)return G(`Me`);let i=r.slice(0,n).map(e=>gpe(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 _pe(e,t){return e.some(e=>!A9(e.name,t))?N9(e,t,2):G(`Add attendees`)}function P9(){let[e,t]=(0,U.useState)(``);return(0,U.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function vpe({m:e}){let[t,n]=(0,U.useState)(!1),r=kd(t),i=P9(),a=(0,U.useRef)(null),o=(0,U.useCallback)((e=!0)=>{n(!1),e&&a.current?.focus({preventScroll:!0})},[]);return(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.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,W.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,W.jsx)(dm,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),_pe(e.attendees,i)]})}),r.value&&(0,W.jsx)(ype,{m:e,me:i,motionProps:r.props,chip:a,onClose:o})]})}function ype({m:e,me:t,motionProps:n,chip:r,onClose:i}){let[a,o]=(0,U.useState)(``),[s,c]=(0,U.useState)(()=>!e.attendees.some(e=>!A9(e.name,t))),[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)([]),[p,m]=(0,U.useState)([]),[h,g]=(0,U.useState)(null),_=(0,U.useId)(),v=hpe(a,d,e.attendees,t,p,e.eventId),y=v.findIndex(e=>D9(e)===h);(0,U.useEffect)(()=>{let t=0,n=()=>{let n=++t;window.yogurt.search.people().then(e=>{n===t&&f(e)},()=>{}),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(e=>{n===t&&m(e.status===`granted`?e.events:[])},()=>{n===t&&m([])})};n();let r=window.yogurt.meetings.onChange(n),i=window.yogurt.calendar.onChange(n);return()=>{t++,r(),i()}},[e.id,e.startedAt,e.eventStartedAt,e.eventId]);let b=(0,U.useRef)(null),x=(0,U.useRef)(null);k9(x,r,i,!n.inert),(0,U.useEffect)(()=>{x.current?.querySelector(`[role="option"][aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[h]),(0,U.useEffect)(()=>{s&&b.current?.focus({preventScroll:!0})},[s]);let S=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return lQ.add({title:G(`Yogurt couldn't make that change. Try again.`)}),!1}},C=async(t=M9(a))=>{t&&(e.attendees.some(e=>t.email?.trim()&&e.email?.trim()?A9(e.email,t.email):A9(e.name,t.name))||await S([...e.attendees,t])&&(o(``),g(null),b.current?.focus()))},w=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},T=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:n})=>e.ownEmail&&n.email?n$(n.email)!==n$(e.ownEmail):!A9(n.name,t)),E=a$([{p:{name:t||G(`Me`),email:e.ownEmail??null},i:-1,mine:!0},...T]);return(0,W.jsxs)(`div`,{ref:x,"data-testid":`people-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":G(`People`),onKeyDown:w,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,W.jsx)(`div`,{"data-testid":`people-list`,className:`people-list grouped-people overflow-y-auto p-1.5`,children:E.map(t=>(0,W.jsxs)(`section`,{"aria-label":t.label||G(`Other people`),children:[(0,W.jsx)(`h4`,{className:`company-heading`,title:t.domain||void 0,children:t.label||G(`Other people`)}),(0,W.jsx)(`ul`,{children:t.people.map(({p:t,i:n,mine:r})=>(0,W.jsx)(bpe,{name:j9(t.name),email:t.email,mine:r,onRename:r?void 0:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:r?void 0:()=>void S(e.attendees.filter((e,t)=>t!==n))},t.email||n))})]},t.domain))}),(0,W.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,W.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),b.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,W.jsx)(Up,{size:14,"aria-hidden":`true`}),G(`Add an attendee`)]}),s&&(0,W.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,W.jsx)(`input`,{ref:b,"data-testid":`people-add`,value:a,onChange:e=>{o(e.target.value),g(null)},maxLength:200,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":l&&v.length>0,"aria-controls":l&&v.length>0?_:void 0,"aria-activedescendant":l&&y>=0?`${_}-${y}`:void 0,onKeyDown:e=>{if(!e.nativeEvent.isComposing){if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&v.length){e.preventDefault();let t=y<0?e.key===`ArrowDown`?0:v.length-1:(y+(e.key===`ArrowDown`?1:-1)+v.length)%v.length;g(D9(v[t]))}else e.key===`Enter`&&(e.preventDefault(),C(v[y]??M9(a)))}},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`})}),s&&l&&v.length>0&&(0,W.jsx)(`ul`,{id:_,role:`listbox`,"aria-label":G(`People`),className:`mt-1`,children:v.map((e,t)=>(0,W.jsxs)(`li`,{id:`${_}-${t}`,role:`option`,"aria-selected":t===y,onMouseDown:e=>e.preventDefault(),onMouseMove:()=>g(D9(e)),onClick:()=>void C(e),className:`person-row flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-[13px] hover:bg-[var(--line)] ${t===y?`bg-[var(--line)]`:``}`,children:[(0,W.jsx)(dm,{size:14,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,W.jsxs)(`span`,{className:`min-w-0`,children:[(0,W.jsx)(`span`,{className:`block truncate`,children:j9(e.name)}),e.email&&(0,W.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:e.email})]})]},D9(e)))}),r$(l,a)&&(0,W.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,W.jsx)(Tp,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,W.jsx)(`span`,{children:G(`Nothing is sent. This is only for your notes.`)})]})]})]})}function bpe({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{lQ.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,W.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,W.jsx)(`span`,{className:`person-initials`,"aria-hidden":`true`,children:o$(e)}),(0,W.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,W.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,W.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,W.jsxs)(`span`,{className:`block truncate`,children:[e,n&&(0,W.jsxs)(`span`,{className:`text-muted`,children:[` `,G(`(me)`)]})]}),t&&(0,W.jsx)(`span`,{"data-testid":`people-email`,className:`block truncate text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,W.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":G(`Rename`),title:G(`Rename`),onClick:()=>{u(e),c(!0)},className:`ghost-btn workspace-icon person-remove`,children:(0,W.jsx)(zp,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,W.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":G(`Remove {name}`,{name:e}),title:G(`Remove`),className:`ghost-btn workspace-icon person-remove`,children:(0,W.jsx)(hm,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}var xpe=6e5,Spe=(e,t,n)=>t!=null&&n>=e-6e5&&n<t;function Cpe(e,t){let[n,r]=(0,U.useState)(Date.now);return(0,U.useEffect)(()=>{let n,i=()=>{clearTimeout(n);let a=Date.now();r(a);let o=a<e-6e5?e-xpe:t!=null&&a<t?t:void 0;o!==void 0&&(n=setTimeout(i,Math.min(o-a,2147483647)))};return i(),window.addEventListener(`focus`,i),()=>{clearTimeout(n),window.removeEventListener(`focus`,i)}},[e,t]),Spe(e,t,n)}var F9,I9=!1;function wpe(){if(!I9){I9=!0;let e=()=>{F9=void 0};window.yogurt.calendar.onChange(e),window.addEventListener(`focus`,e)}if(!F9){let e=window.yogurt.calendar.list();F9=e,e.then(t=>{t.status!==`granted`&&F9===e&&(F9=void 0)},()=>{F9===e&&(F9=void 0)})}return F9}function Tpe(e){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(0),a=(0,U.useCallback)(()=>i(e=>e+1),[]),o=e.eventStartedAt??e.startedAt,s=`${e.id}/${e.eventId}/${o}`,c=window.yogurt.capabilities.calendar&&!!e.eventId;return(0,U.useEffect)(()=>{if(!c)return;let e=!0;Promise.all([window.yogurt.calendar.day(o).catch(()=>({status:`error`,events:[]})),wpe().catch(()=>null)]).then(([t,r])=>{e&&n({key:s,result:t,colors:Object.fromEntries((r?.calendars??[]).filter(e=>/^#[0-9a-f]{6}$/i.test(e.color??``)).map(e=>[e.id,e.color]))})});let t=window.yogurt.calendar.onChange(a);return window.addEventListener(`focus`,a),()=>{e=!1,t(),window.removeEventListener(`focus`,a)}},[c,s,o,r,a]),{details:c&&t?.key===s?t:void 0,refresh:a}}function L9(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function Epe(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function Dpe({m:e}){let[t,n]=(0,U.useState)(!1),r=kd(t),i=(0,U.useRef)(null),{details:a,refresh:o}=Tpe(e),s=(0,U.useCallback)(()=>{n(!1),i.current?.focus({preventScroll:!0})},[]);return(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.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,W.jsx)(xf,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),GG(e.startedAt)]}),r.value&&(0,W.jsx)(Ope,{m:e,details:a,refreshLinked:o,chip:i,motionProps:r.props,onClose:s},e.id)]})}function Ope({m:e,details:t,refreshLinked:n,chip:r,motionProps:i,onClose:a}){let o=(0,U.useRef)(null),s=window.yogurt.capabilities.calendar,c=s&&!!e.eventId,[l,u]=(0,U.useState)(0),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(e.eventStartedAt??e.startedAt),[h,g]=(0,U.useState)(t?.result),_=c?t?.result:h,v=(0,U.useRef)(c&&!t),[y,b]=(0,U.useState)(!1),x=(0,U.useRef)(null),[S,C]=(0,U.useState)(!1),w=Dv(s&&!c&&!_),T=(0,U.useRef)(!1),E=(0,U.useRef)(null),D=(0,U.useRef)(null),O=(0,U.useRef)(null);k9(o,r,a,!i.inert);let k=(0,U.useRef)(new Map);t&&(t.result.status!==`granted`&&k.current.clear(),k.current.set(new Date(e.eventStartedAt??e.startedAt).toDateString(),t.result));let[A,j]=(0,U.useState)(e.eventId);if(A!==e.eventId){let n=e.eventStartedAt??e.startedAt;v.current=c&&!t,j(e.eventId),f(!1),m(n),g(k.current.get(new Date(n).toDateString()))}(0,U.useEffect)(()=>{if(!s||c)return;let e=!0;return window.yogurt.calendar.day(p).catch(()=>({status:`error`,events:[]})).then(t=>{e&&(t.status!==`granted`&&k.current.clear(),k.current.set(new Date(p).toDateString(),t),g(t))}),()=>{e=!1}},[s,c,p,l]);let M=e=>{g(k.current.get(new Date(e).toDateString())),m(e)};(0,U.useEffect)(()=>{d||M(e.eventStartedAt??e.startedAt)},[d,e.eventStartedAt,e.startedAt]);let N=new Date(e.eventStartedAt??e.startedAt).toDateString(),P=new Date(p).toDateString()===N?_:k.current.get(N),F=c?P?.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??(P?null:void 0):null;(0,U.useEffect)(()=>{if(!s||c)return;let e=()=>u(e=>e+1),t=window.yogurt.calendar.onChange(e);return window.addEventListener(`focus`,e),()=>{t(),window.removeEventListener(`focus`,e)}},[s,c]);let I=()=>c?n():u(e=>e+1),L=()=>void window.yogurt.calendar.connect().then(I,()=>c?n():g({status:`error`,events:[]})),R=_?.status===`granted`,ee=s&&!c&&(!_||R);(0,U.useEffect)(()=>{d&&T.current&&!c&&_&&!R&&O.current?.focus({preventScroll:!0})},[d,c,_,R]);let z=F?.start??(c?e.eventStartedAt:null)??e.startedAt,te=F?.end??(c?e.eventEndedAt:null),ne=F?.calendar??(c&&e.eventCalendarName?{name:e.eventCalendarName,source:e.eventCalendarSource}:null),re=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),ie=Cpe(z,te),B=ie?F?.url?.trim():void 0,ae=F?.calendar?.id?t?.colors[F.calendar.id]:void 0,oe=new Date(ee?p:z),V={month:`short`,day:`numeric`,...oe.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}},se=oe.toLocaleDateString(Cm(),{...V,weekday:`long`}),ce=oe.toLocaleDateString(Cm(),{...V,weekday:`short`});(0,U.useLayoutEffect)(()=>{let e=x.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`),n=()=>{t.font=getComputedStyle(e).font,C(t.measureText(se).width>e.clientWidth)};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[se,c]);let le=w===`skeleton`?(0,W.jsx)(`div`,{className:`loading-content`,"data-loading-phase":w,"aria-busy":`true`,children:(0,W.jsxs)(`div`,{className:`loading-placeholder`,children:[(0,W.jsx)(`span`,{role:`status`,className:`sr-only`,children:G(`Looking at your calendar…`)}),(0,W.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,children:(0,W.jsx)(`span`,{className:`loading-bar`,style:{width:`65%`}})})]})}):null,ue=_&&!R?(0,W.jsxs)(`div`,{className:`note-date-access flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,W.jsx)(`p`,{role:`status`,className:`text-xs text-muted`,children:_.status===`error`?G(`Yogurt couldn't read your calendar`):G(`Calendar access is off`)}),(0,W.jsx)(`div`,{className:`ms-auto flex shrink-0`,children:(0,W.jsx)(`button`,{ref:O,className:`workspace-button`,onClick:_.status===`error`?I:L,children:_.status===`error`?G(`Try again`):_.status===`denied`?G(`Open System Settings`):G(`Connect calendar`)})})]}):null;return(0,W.jsx)(`div`,{ref:o,"data-testid":`note-date-card`,...i,"data-anchor":`start`,"data-picking":ee||d,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(),c&&d?(f(!1),D.current?.focus({preventScroll:!0})):a())},children:(0,W.jsxs)(kpe,{view:`${e.eventId??`unlinked`}/${ee?`picker`:`details`}/${c?`linked`:_?.status??(w===`skeleton`?`skeleton`:`waiting`)}`,children:[!c&&(0,W.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,W.jsx)(`h3`,{ref:x,"data-testid":`note-date-heading`,tabIndex:-1,"aria-live":`polite`,"aria-label":se,title:se,children:S?ce:se}),(0,W.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:(R||d&&ee)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,ref:E,className:`ghost-btn workspace-icon`,"data-testid":`note-date-previous`,"aria-label":G(`Previous day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,-1))},children:(0,W.jsx)(Df,{size:15,"aria-hidden":`true`})}),(0,W.jsx)(`button`,{type:`button`,className:`ghost-btn workspace-icon`,"data-testid":`note-date-next`,"aria-label":G(`Next day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,1))},children:(0,W.jsx)(kf,{size:15,"aria-hidden":`true`})})]})})]}),c&&(0,W.jsxs)(`div`,{className:`note-date-linked`,children:[(0,W.jsxs)(`button`,{type:`button`,ref:D,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle`,"aria-expanded":d,disabled:y,onClick:e=>{T.current=e.detail===0,f(e=>!e)},children:[(0,W.jsx)(`span`,{className:`note-date-color note-date-reveal`,"data-ready":!!ae,"aria-hidden":`true`,style:{backgroundColor:ae}}),(0,W.jsxs)(`span`,{className:`note-date-identity`,children:[(0,W.jsx)(`strong`,{title:F?.title||e.eventTitle||e.title,children:F?.title||e.eventTitle||e.title}),(0,W.jsx)(`span`,{className:`note-date-time`,children:te==null?`${KG(z)} · ${G(`{count} min`,{count:re})}`:qG(z,te)}),(ne?.name||v.current)&&(0,W.jsx)(`span`,{className:`note-date-calendar note-date-reveal`,"data-ready":!!ne?.name,title:ne?.name,children:ne?.name})]}),(0,W.jsx)(Tf,{size:15,"aria-hidden":`true`})]}),(0,W.jsx)(`div`,{className:`accordion note-date-motion note-date-picker-motion`,"data-open":d,"aria-hidden":!d,inert:!d,children:(0,W.jsx)(`div`,{children:(0,W.jsx)(`div`,{className:`note-date-picker-space`,children:(0,W.jsx)(R9,{keyboard:T.current,open:d,m:e,day:p,result:_,loading:le,previous:D,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})})})})]}),!c&&!ee&&(0,W.jsx)(`div`,{className:`accordion note-date-motion note-date-details-motion`,"data-open":!0,children:(0,W.jsx)(`div`,{children:(0,W.jsx)(`div`,{className:`note-date-details`,children:(0,W.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,W.jsx)(Ff,{size:15,"aria-hidden":`true`}),(0,W.jsx)(`div`,{children:(0,W.jsxs)(`p`,{children:[KG(z),te==null?` · ${G(`{count} min`,{count:re})}`:` – ${KG(te)}`]})})]})})})}),c&&(ie&&!_||B||_&&(!R||F===null))&&(0,W.jsx)(`div`,{className:`note-date-actions`,"aria-busy":!_,children:(0,W.jsxs)(`div`,{className:`note-date-reveal`,"data-ready":!!_,children:[R&&F===null&&(0,W.jsxs)(`div`,{className:`note-date-access flex items-center gap-3 text-xs text-muted`,children:[(0,W.jsx)(`p`,{role:`status`,children:G(`Calendar event unavailable`)}),(0,W.jsx)(`button`,{className:`text-action ms-auto`,onClick:I,children:G(`Try again`)})]}),B&&(0,W.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,W.jsxs)(`a`,{className:`workspace-button`,title:G(`Join meeting`),href:B,target:`_blank`,rel:`noreferrer`,children:[(0,W.jsx)(`span`,{children:G(`Join meeting`)}),(0,W.jsx)(Uf,{size:12,"aria-hidden":`true`})]})}),_?.status!==`unsupported`&&ue]})}),s&&!c&&_?.status!==`unsupported`&&!ee&&ue,ee&&(0,W.jsx)(R9,{keyboard:T.current,m:e,day:p,result:_,loading:le,previous:E,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})]})})}function R9({open:e=!0,keyboard:t,m:n,day:r,result:i,loading:a,previous:o,linking:s,onLinking:c,onLinked:l}){let[u,d]=(0,U.useState)(!1),f=(0,U.useRef)(null),p=(0,U.useRef)(null),m=P9();(0,U.useEffect)(()=>{e&&(f.current&&(f.current.scrollTop=0),t&&(f.current?.querySelector(`[data-event-id]`)??p.current??o.current)?.focus({preventScroll:!0}))},[e,t,i,o]),(0,U.useEffect)(()=>{e&&d(!1)},[e]);let h=async e=>{if(!s){c(!0),d(!1);try{await window.yogurt.meetings.linkEvent(n.id,e,r),l()}catch{d(!0)}finally{c(!1)}}},g=i?.events;return(0,W.jsxs)(`div`,{className:`note-date-picker`,children:[!n.eventId&&(!i||i.status===`granted`)&&(0,W.jsx)(wv,{enabled:!!g?.length,children:(0,W.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.events.length?Epe(g,n.startedAt).map(e=>(0,W.jsx)(`button`,{"data-event-id":e.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:s,onClick:()=>void h(e.id),children:(0,W.jsxs)(`span`,{children:[(0,W.jsx)(`strong`,{children:e.title||G(`Meeting`)}),(0,W.jsxs)(`small`,{children:[KG(e.start),` – `,KG(e.end)]}),!!e.attendees.length&&(0,W.jsx)(`small`,{children:N9(e.attendees,m)})]})},e.id)):(0,W.jsx)(`p`,{"data-testid":`note-date-events-none`,title:G(`No events`),children:G(`No events`)}):a})}),n.eventId&&(0,W.jsxs)(`button`,{ref:p,"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:s,onClick:()=>void h(null),children:[(0,W.jsx)(yp,{size:14,"aria-hidden":`true`}),(0,W.jsxs)(`span`,{children:[G(`Unlink calendar event`),(0,W.jsx)(`small`,{children:G(`Keep the title, attendees and notes.`)})]})]}),u&&(0,W.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:G(`Yogurt couldn't update the calendar link. Try again.`)})]})}var kpe=class extends U.Component{shell=(0,U.createRef)();body=(0,U.createRef)();animations=[];copy=null;stop=()=>{this.animations.forEach(e=>e.cancel()),this.animations=[],this.copy?.remove(),this.copy=null};getSnapshotBeforeUpdate(e){let t=this.shell.current,n=this.body.current;if(e.view===this.props.view||!t||!n||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!parseFloat(getComputedStyle(t).getPropertyValue(`--note-date-ms`)))return null;let r=n.cloneNode(!0);return r.inert=!0,r.setAttribute(`aria-hidden`,`true`),r.querySelectorAll(`[id],[data-testid],[autofocus]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`),e.removeAttribute(`autofocus`)}),r.classList.add(`note-date-retiring`),{height:t.getBoundingClientRect().height,copy:r}}componentDidUpdate(e,t,n){if(!n){window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&this.stop();return}this.stop();let r=this.shell.current,i=this.body.current;this.copy=n.copy,r.append(n.copy);let a=getComputedStyle(r),o={duration:parseFloat(a.getPropertyValue(`--note-date-ms`)),easing:a.getPropertyValue(`--note-date-ease`).trim()},s=[r.animate([{height:`${n.height}px`},{height:`${i.getBoundingClientRect().height}px`}],o),i.animate([{opacity:0},{opacity:1}],o),n.copy.animate([{opacity:1},{opacity:0}],o)];this.animations=s,Promise.all(s.map(e=>e.finished)).then(()=>{this.animations===s&&this.stop()},()=>{})}componentWillUnmount(){this.stop()}render(){return(0,W.jsx)(`div`,{ref:this.shell,className:`note-date-swap`,children:(0,W.jsx)(`div`,{ref:this.body,className:`agenda-inspector-content`,children:this.props.children})})}},z9=()=>Pm({mac:G(`Uses the microphone your Mac is set to`),other:G(`Uses the microphone your computer is set to`)}),Ape=1500,jpe=15e3,Mpe=8e3;function Npe({recording:e,paused:t}){let[n,r]=(0,U.useState)(),[i,a]=(0,U.useState)(!1),o=kd(i),[s,c]=(0,U.useState)(null),l=(0,U.useRef)(null),u=(0,U.useRef)(null),d=(0,U.useRef)(void 0),f=(0,U.useCallback)(()=>window.yogurt.audio.mics().then(e=>{d.current=e,r(e)}).catch(()=>{}),[]);(0,U.useEffect)(()=>{f(),window.addEventListener(`focus`,f);let t=e?setInterval(f,jpe):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,U.useEffect)(()=>{if(s===null)return;let e=setTimeout(()=>c(null),Mpe);return()=>clearTimeout(e)},[s]),(0,U.useEffect)(()=>{e||c(null)},[e]),(0,U.useEffect)(()=>{if(!i)return;f();let e=setInterval(f,Ape),t=e=>{l.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,f]),(0,U.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,W.jsx)(Cf,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,W.jsxs)(`div`,{ref:l,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,W.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,W.jsx)(nY,{show:t?`paused`:`mic`,options:{mic:(0,W.jsx)(Np,{size:11}),paused:(0,W.jsx)(Rd,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,W.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?G(`Recording paused`):h}),(0,W.jsx)(Tf,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),s!==null&&(0,W.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:G(`The selected microphone is unavailable, so recording is using your system microphone.`)}),o.value&&n&&(0,W.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,W.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void p(null),className:g,children:[(0,W.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[G(`Auto`),(0,W.jsx)(`span`,{"data-testid":`mic-auto-info`,title:z9(),"aria-label":z9(),className:`text-muted`,children:(0,W.jsx)(dp,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,W.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),_(n.choice===null)]}),n.devices.length>0&&(0,W.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,W.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,W.jsx)(`span`,{className:`truncate`,children:e.name}),_(n.choice===e.id)]},e.id))]})]})}var Ppe=e=>G(e===`en`?`English`:`Multi-language`);function Fpe(){let[e,t]=(0,U.useState)(),[n,r]=(0,U.useState)(!1),i=kd(n),a=(0,U.useRef)(null),o=(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=>{a.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=>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,W.jsx)(Cf,{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,W.jsxs)(`div`,{ref:a,className:`relative flex min-w-0 items-center`,children:[(0,W.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,W.jsx)(hp,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,W.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:Ppe(e)}),(0,W.jsx)(Tf,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),i.value&&(0,W.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,W.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>s(`en`),className:l,children:[(0,W.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,W.jsx)(`span`,{children:G(`English only`)}),(0,W.jsx)(`span`,{className:`text-xs text-muted`,children:G(`Highest quality`)})]}),u(e===`en`)]}),(0,W.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>s(`multi`),className:l,children:[(0,W.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,W.jsx)(`span`,{children:G(`Multi-language`)}),(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[G(`{count} languages supported`,{count:99}),(0,W.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:d,"aria-label":d,children:(0,W.jsx)(dp,{size:12,"aria-hidden":`true`})})]})]}),u(e===`multi`)]})]})]})}function Ipe(){return null}var Lpe={folder:$f,star:$p,heart:sp,flag:Yf,bookmark:_f,briefcase:yf,users:lm,handshake:rp,message:jp,video:pm,calendar:xf,clock:Ff,target:tm,lightbulb:_p,rocket:Gp,code:Lf,palette:Lp,megaphone:kp,graduation:tp,book:hf,flask:Zf,coffee:zf,house:lp,plane:Vp};function B9({appearance:e,size:t=16}){let n=Lpe[e.icon]??$f;return(0,W.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,W.jsx)(n,{size:t,strokeWidth:1.75})})}function V9(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 H9({value:e,onChange:t,disabled:n}){return(0,W.jsxs)(`div`,{className:`folder-choices`,children:[(0,W.jsx)(`div`,{className:`folder-choice-label`,children:G(`Icon`)}),(0,W.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":G(`Icon`),onKeyDown:e=>V9(e,6),children:Object.keys(Ih).map(r=>(0,W.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":G(Ih[r]),title:G(Ih[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,W.jsx)(B9,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,W.jsx)(`div`,{className:`folder-choice-label`,children:G(`Color`)}),(0,W.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":G(`Color`),onKeyDown:e=>V9(e,1),children:Object.keys(Lh).map(r=>(0,W.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":G(Lh[r]),title:G(Lh[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,W.jsx)(`span`,{})},r))})]})}var U9=`application/x-yogurt-meeting`;function W9(e){let[t,n]=(0,U.useState)();return(0,U.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 Rpe(e,t){return G9(e,t,!0)}async function G9(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 K9(e,t,n){let r=e.filter(e=>t[e]?.includes(n)).length;return r===0?!1:r===e.length||`mixed`}var zpe=e=>e!==!0;function Bpe(e,t,n){let r=Object.entries(e).filter(([e,r])=>r.saving||r.source===n||K9(t,n,e)!==r.checked);return r.length===Object.keys(e).length?e:Object.fromEntries(r)}function q9({meetingId:e,meetingIds:t,memberships:n,suggestedId:r,onNew:i,testId:a,autoFocus:o=!1}){let s=W9(),c=(0,U.useRef)(null),l=s!==void 0;(0,U.useEffect)(()=>{o&&l&&(c.current?.querySelector(`[data-suggested]`)??c.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`))?.focus()},[o,l]);let u=W9(n?null:e),d=(0,U.useMemo)(()=>t??(e?[e]:[]),[t,e]),f=(0,U.useMemo)(()=>n??{[e??``]:u?.map(e=>e.id)??[]},[n,e,u]),[p,m]=(0,U.useState)({}),h=(0,U.useRef)(!1),g=Object.values(p).some(e=>e.saving);(0,U.useEffect)(()=>{m(e=>Bpe(e,d,f))},[d,f,p]);let _=e=>e in p?p[e].checked:K9(d,f,e),v=async e=>{if(h.current||!d.length||!n&&!u)return;let t=zpe(_(e));h.current=!0,m(n=>({...n,[e]:{checked:t,saving:!0,source:f}}));try{await G9(e,d,t),m(t=>({...t,[e]:{...t[e],saving:!1}}))}catch{m(t=>{let n={...t};return delete n[e],n}),lQ.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`;return(0,W.jsxs)(`div`,{ref:c,"data-testid":a,role:`group`,"aria-label":G(`Folders`),children:[s?.map(e=>(0,W.jsxs)(`button`,{"data-suggested":e.id===r||void 0,role:`menuitemcheckbox`,"aria-checked":_(e.id),"aria-disabled":g||!n&&!u,"data-testid":`folder-option`,onClick:()=>void v(e.id),className:y,children:[(0,W.jsx)(B9,{appearance:e,size:15}),(0,W.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.id===r&&(0,W.jsx)(`span`,{className:`shrink-0 text-[10px] text-muted`,children:G(`Suggested`)}),_(e.id)===!0&&(0,W.jsx)(Cf,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`}),_(e.id)===`mixed`&&(0,W.jsx)(Fp,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,disabled:g,onClick:i,className:`${y} ${s?.length?`folder-picker-new`:``}`,children:[(0,W.jsx)(Up,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),G(`New folder…`)]})]})}function Vpe({meetingId:e,onNew:t,suggestion:n,row:r,rowFolders:i,children:a,onChoose:o}){let[s,c]=(0,U.useState)(null);(0,U.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=W9(r?null:e),d=r?i:u,f=Dd(),[p,m]=(0,U.useState)(null),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1),y=kd(_),b=(0,U.useRef)(null),x=(0,U.useRef)(null),S=(0,U.useRef)(null);(0,U.useLayoutEffect)(()=>{let e=S.current;S.current=null,e&&document.activeElement===document.body&&(r?e:x.current)?.focus({preventScroll:!0})}),(0,U.useEffect)(()=>{l&&d?.length&&l.dismiss(),p?.phase===`settled`&&d?.length&&m(null)},[d,l,p]),(0,U.useEffect)(()=>{if(!_)return;let e=e=>{b.current?.contains(e.target)||v(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[_]);let C=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)},w=p&&!(p.phase===`settled`&&d?.length)?p:null,T=w?.folder??(d?.length===0?l?.folder:void 0),E=w?.phase===`accepted`||w?.phase===`settled`,D=T?.name??(d?.length?d.length===1?d[0].name:G(`{name} + {more}`,{name:d[0].name,more:d.length-1}):G(`Add to folder`)),O=()=>r?b.current?.closest(`li`)?.querySelector(`.native-meeting-link`):x.current,k=t=>{S.current=t??null,lQ.close(`folder-suggestion-${e}`),l?.dismiss(),c(null),v(!1)},A=async()=>{if(!T||h||w)return;let t=O();g(!0),m({folder:T,phase:`saving`});try{await window.yogurt.folders.dismissSuggestion(e),m({folder:T,phase:`dismissed`}),k(t)}catch{m(null),lQ.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{g(!1)}},j=async()=>{if(!T||h||w)return;let t=O(),n=T.id;m({folder:T,phase:`saving`}),g(!0),lQ.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:T,phase:`accepted`}),k(t)}catch{m(null),lQ.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,U.useEffect)(()=>{if(!p||p.phase===`saving`||p.phase===`settled`)return;let e=O(),t=setTimeout(()=>{S.current=e??null,m(p.phase===`accepted`?{...p,phase:`settled`}:null)},f?wd.micro:wd.base);return()=>clearTimeout(t)},[p,f]);let M=T??(d?.length===1?d[0]:void 0);if(r&&!T)return a;let N=(0,W.jsxs)(`button`,{ref:x,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":o?void 0:!!_,onClick:e=>{o&&T?o(T.id):v(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},title:T?.name??(d?.map(e=>e.name).join(`, `)||void 0),className:T?`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&&T?(0,W.jsx)(`span`,{className:`meeting-folder-dot`,"data-folder-color":T.color,"aria-hidden":`true`}):M?(0,W.jsx)(B9,{appearance:M,size:14}):(0,W.jsx)($f,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,W.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:D})]});return(0,W.jsxs)(`div`,{ref:b,className:r?`meeting-folder-suggestion`:`relative`,onClick:r?e=>e.stopPropagation():void 0,children:[T?(0,W.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":G(E?`Folders`:`Suggested`),inert:w?.phase===`dismissed`,"data-phase":w?.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:[N,(0,W.jsxs)(`div`,{className:`note-folder-actions`,inert:E||w?.phase===`dismissed`,children:[(0,W.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`ghost-btn workspace-icon`,disabled:h||!!w,onClick:()=>void A(),"aria-label":G(`Dismiss suggestion`),title:G(`Dismiss suggestion`),children:(0,W.jsx)(hm,{size:r?12:15,"aria-hidden":`true`})}),(0,W.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`ghost-btn workspace-icon`,disabled:h||!!w,onClick:()=>void j(),"aria-label":G(`Add to folder`),title:G(`Add to folder`),children:(0,W.jsx)(Cf,{size:r?12:15,"aria-hidden":`true`})})]})]}):N,y.value&&(0,W.jsx)(`div`,{"data-testid":`folder-menu`,...y.props,"data-anchor":`start`,role:`menu`,"aria-label":G(`Add to folder`),onKeyDown:C,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,W.jsx)(q9,{autoFocus:!0,testId:`folder-chip-list`,meetingId:e,suggestedId:T?.id,onNew:()=>{v(!1),t?.()}})})]})}function J9({folder:e,onDone:t}){let[n,r]=(0,U.useState)(e??Rh),[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,W.jsx)(qJ,{testId:`folder-name`,title:G(e?`Rename folder`:`New folder`),description:e?void 0:G(`A meeting can be in more than one folder.`),onCancel:()=>t(),busy:o,children:(0,W.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,W.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,W.jsx)(B9,{appearance:n,size:15}),(0,W.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,W.jsx)(H9,{value:n,onChange:r,disabled:o}),c&&(0,W.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't save this folder.`)}),(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:G(e?`Rename`:`Create folder`)}),(0,W.jsx)(KJ,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`workspace-button`,children:G(`Cancel`)})]})]})})}function Hpe({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,W.jsxs)(qJ,{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,W.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't delete this folder.`)}),(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:G(`Delete folder`)}),(0,W.jsx)(KJ,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`workspace-button`,children:G(`Cancel`)})]})]})}function Upe({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,W.jsxs)(qJ,{testId:`folder-appearance`,title:G(`Change icon`),onCancel:t,busy:i,children:[(0,W.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,W.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,W.jsx)(B9,{appearance:n,size:23})}),(0,W.jsx)(`strong`,{children:e.name})]}),(0,W.jsx)(H9,{value:n,onChange:r,disabled:i}),o&&(0,W.jsx)(`p`,{className:`modal-error`,role:`alert`,children:G(`Yogurt couldn't save this folder.`)}),(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:G(`Save`)}),(0,W.jsx)(KJ,{"data-dialog-cancel":!0,disabled:i,className:`workspace-button`,children:G(`Cancel`)})]})]})}function Y9(e,t,n,r){let[,i]=(0,U.useState)(0),a=(0,U.useMemo)(()=>new $Q(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),t$(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var X9=new Map;function Wpe({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i,onResumeRequested:a}){let[o,s]=(0,U.useState)(),[c,l]=(0,U.useState)(null);(0,U.useLayoutEffect)(()=>{if(!c)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-c.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(c),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[c]),(0,U.useEffect)(()=>{o&&t({id:o.id,title:o.title})},[o?.id,o?.title,t]);let[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(!1),[m,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),[b,x]=(0,U.useState)(!1),[S,C]=(0,U.useState)(!1),[w,T]=(0,U.useState)(null),[E,D]=(0,U.useState)(),[O,k]=(0,U.useState)(!1),[A,j]=(0,U.useState)();(0,U.useEffect)(()=>{let t=!0,n=0;k(!1);let r=()=>{let r=++n;window.yogurt.transcript.get(e,{last:1}).then(e=>{t&&r===n&&k(e.some(e=>!!e.text.trim()))})},i=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&t.text.trim()&&(n++,k(!0))}),a=window.yogurt.transcript.onSpeakers(t=>{t===e&&r()});return r(),()=>{t=!1,i(),a()}},[e]),(0,U.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.setup.onState(e=>{t=!0,j(e)});return window.yogurt.setup.state().then(n=>{e&&!t&&j(n)}),()=>{e=!1,n()}},[]);let[M,N]=(0,U.useState)(()=>X9.get(e)?.view??`mine`),[P,F]=(0,U.useState)(!1),I=Dd(),L=ZQ(E,I),R=o?.id===e&&o.state!==`prepared`&&o.state!==`recording`&&!!E&&E.status!==`idle`,ee=P&&R&&I,z=ee?`enhanced`:M,te=(0,U.useRef)(X9.has(e)),ne=(0,U.useRef)(!1),[re,ie]=(0,U.useState)(()=>X9.get(e)?.primary??`notes`),B=ee?`notes`:re,ae=Vv(`note/${e}/${z}`,!!o&&!!E&&B===`notes`);(0,U.useEffect)(()=>{o&&E&&X9.set(e,{primary:B,view:z})},[e,o,E,B,z]);let[oe,V]=(0,U.useState)(B===`transcript`);(0,U.useEffect)(()=>{B===`transcript`&&V(!0)},[B]);let[se,ce]=(0,U.useState)(!1),le=(0,U.useRef)(null),ue=(0,U.useRef)(null),de=(0,U.useRef)(0);(0,U.useEffect)(()=>()=>{de.current++,ue.current?.skipTransition()},[e]);let fe=(0,U.useRef)(null),pe=(0,U.useRef)(null),me=(0,U.useRef)(null),he=(0,U.useRef)(null),[ge,_e]=(0,U.useState)(!1),[ve,ye]=(0,U.useState)(!1),[be,xe]=(0,U.useState)(!1),[Se,Ce]=(0,U.useState)(!1),[we,Te]=(0,U.useState)(!1),[Ee,De]=(0,U.useState)(null),[Oe,ke]=(0,U.useState)(null),Ae=(0,U.useRef)(void 0),[je,Me]=(0,U.useState)(null),Ne=je?.note,Pe=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(n&&E&&o&&Pe.current!==n.seq&&(Pe.current=n.seq,te.current=!0,ie(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&Fh([E.enhanced??``],n.match)>=0;N(R&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,E,o,R]);let Fe=o?.id===e&&o.state===`recording`,Ie=async()=>{let t=!o?.paused;C(!0),T(null);try{await window.yogurt.meetings.setPaused(e,t)?s(await window.yogurt.meetings.get(e)):T(t?`pause`:`resume`)}catch{T(t?`pause`:`resume`)}finally{C(!1)}};(0,U.useEffect)(()=>{if(!Fe){Me(null);return}let t=t=>Me(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,Fe]),(0,U.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(s);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,U.useEffect)(()=>{F(!1),ce(!1),D(void 0),Ae.current=void 0,N(X9.get(e)?.view??`mine`),te.current=X9.has(e),ne.current=!1,ye(!1),_e(!1),xe(!1),Ce(!1),y(!1),x(!1);let t=t=>{let n=!Ae.current,{view:r,keptEdits:i}=LY(Ae.current,t);i&&window.yogurt.notes.keptEdits(e),Ae.current=r,D(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(te.current=!0,N(a),ie(`notes`)),t.status!==`idle`&&!te.current&&!ne.current&&N(`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)(()=>{Ae.current=E},[E]),(0,U.useEffect)(()=>{o?.state!==`recording`&&(o?.stopSavePending||E?.status!==`idle`)&&h(!1)},[o?.state,o?.stopSavePending,E?.status]),(0,U.useEffect)(()=>{if(!P||!R)return;let e=()=>{qe(`notes`,`enhanced`,!0),he.current?.focus({preventScroll:!0})};if(I){e();return}let t=setTimeout(e,wd.micro);return()=>clearTimeout(t)},[e,P,R,I]);let Le=Y9(e,`mine`,E?.mine??``,E?.saves?.mine),Re=Y9(e,`enhanced`,E?.enhanced??``,E?.saves?.enhanced);(0,U.useLayoutEffect)(()=>{let e=fe.current;if(!e)return;let t=()=>{let t=(B===`transcript`?pe:z===`enhanced`&&he.current?he:me).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[pe.current,me.current,he.current])e&&n.observe(e);return()=>n.disconnect()},[B,z,o?.state,E?.status]);let ze=m||E?.status===`waiting`||E?.status===`writing`,Be=(0,U.useRef)(!1);if((0,U.useEffect)(()=>{a?Be.current||!o||!E||ze||f||o.stopSavePending||(Be.current=!0,a(),o.trashedAt!=null||o.stopSavePending||o.state!==`stopped`&&o.state!==`done`||Ze()):Be.current=!1},[a,o,E,ze,f]),!o||!E)return(0,W.jsx)(cK,{pending:!0,skeleton:(0,W.jsx)(Ev,{layout:`note`}),className:`loading-note-frame`});let Ve=o.state===`recording`,He=o.trashedAt!=null,Ue=o.endedAt?Math.max(1,Math.round((o.durationMs??o.endedAt-o.startedAt)/6e4)):null,We=R?z:`mine`,Ge=e=>{te.current=!0,N(e),Le.flush(),Re.flush()},Ke=(e,t=!1)=>{ce(t),e!==re&&(ie(e),e===`transcript`&&_e(!1),Le.flush(),Re.flush())},qe=(e,t,n=!1)=>{F(!1);let r=++de.current;ue.current?.skipTransition();let i=()=>{r===de.current&&(Ke(e,n),t&&Ge(t))},a=le.current;e===B&&(!t||t===We)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(ue.current=a.startViewTransition(()=>(0,gh.flushSync)(i)),ue.current.ready.catch(()=>{}))},Je=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[pe.current,me.current,...R?[he.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})},Ye=async()=>(await Promise.all([Le.flush(),Re.flush()])).every(Boolean),Xe=async()=>{if(!f){p(!0),_(!1);try{if(!await Ye())return;let t=await window.yogurt.meetings.startPrepared(e);_(`error`in t),`error`in t||(ie(`notes`),N(`mine`))}catch{_(!0)}finally{p(!1)}}},Ze=async(t=!1)=>{if(!(f||ze)){if((E.edited||ve)&&!t)y(!0);else{y(!1),p(!0),x(!1);try{if(!await Ye())return;`error`in await window.yogurt.meetings.resume(e)?x(!0):(te.current=!1,F(!1),ie(`notes`),N(`mine`),ye(!1))}catch{x(!0)}finally{p(!1)}}}},Qe=Le.status===`failed`||Re.status===`failed`?`failed`:Le.status===`saving`||Re.status===`saving`?`saving`:`saved`,$e=async t=>{await Ye()&&(ye(!1),window.yogurt.notes.writeAgain(e,t))},et=!!E.enhanced?.trim(),tt=KQ({hasSummary:et,hasContent:O||!!E.mine.trim(),recording:Ve,busy:ze,downloading:!!(A?.notesDownloading||A?.notesError),trashed:He}),nt=()=>{tt&&!tt.reason&&(et?_e(!0):$e())};return(0,W.jsx)(cK,{pending:!1,skeleton:(0,W.jsx)(Ev,{layout:`note`}),className:`loading-note-frame`,children:(0,W.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[v&&(0,W.jsx)(qJ,{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:()=>y(!1),children:(0,W.jsxs)(`div`,{className:`modal-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void Ze(!0),className:`modal-button primary`,children:G(`Resume recording`)}),(0,W.jsx)(KJ,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`workspace-button`,children:G(`Cancel`)})]})}),(0,W.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed end-4 top-[10px] z-[60]`,children:(0,W.jsx)(qQ,{generation:tt,hasSummary:et,edited:E.edited||ve,rewriteOpen:ge,setRewriteOpen:_e,onWriteAgain:e=>{tt&&!tt.reason&&(Ke(`notes`),Ge(`enhanced`),$e(e))},recording:Ve,savePending:o.stopSavePending,trashed:He,onRename:()=>xe(!0),onDelete:()=>{Ye().then(t=>{t&&(He?Ce(!0):uQ(e,`/note/${e}`))})},folders:t=>(0,W.jsx)(q9,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),Te(!0)}})},e)}),(0,W.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":se,children:[(0,W.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,W.jsx)(Gpe,{id:e,title:o.title,editing:be,onEdit:xe}),(0,W.jsxs)(`div`,{className:`note-meta-row`,children:[(0,W.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,W.jsx)(Dpe,{m:o}),(0,W.jsx)(vpe,{m:o}),(0,W.jsx)(Vpe,{meetingId:e,onNew:()=>Te(!0),suggestion:r})]}),(0,W.jsxs)(`div`,{"data-testid":Ve?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,W.jsxs)(`div`,{"data-testid":`note-state`,"data-state":o.state,"data-paused":!!o.paused,className:`note-recording-group`,"data-recording":Ve&&!m,role:`group`,"aria-label":Ve?o.paused?G(`Paused`):G(`Recording`):G(`Meeting controls`),children:[Ve&&!m&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`span`,{className:`note-recording-status`,children:[(0,W.jsx)(CQ,{height:14,bars:3,testId:`note-wave`,paused:!!o.paused,className:`text-muted`}),(0,W.jsx)(wQ,{view:je})]}),(0,W.jsx)(`button`,{"data-testid":`note-pause`,disabled:S,onClick:()=>{Ie()},"aria-label":o.paused?G(`Resume recording`):G(`Pause recording`),title:o.paused?G(`Resume recording`):G(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,W.jsx)(nY,{show:o.paused?`play`:`pause`,options:{pause:(0,W.jsx)(Rd,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,W.jsx)(zd,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,W.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{F(!0),te.current=!0,N(`mine`),h(!0),ce(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`)})]}),m&&(0,W.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:G(`Finishing…`)}),!m&&(o.state===`stopped`||o.state===`done`)&&!o.stopSavePending&&!He&&(0,W.jsxs)(`button`,{"data-testid":`note-resume`,disabled:f,"aria-busy":ze,"data-processing":ze,onClick:()=>{ze?window.yogurt.notes.stop(e).catch(console.error):Ze()},"aria-label":G(ze?`Stop summary`:`Resume recording`),className:`workspace-button note-resume-action`,title:G(ze?`Stop summary`:`Resume recording in this note`),children:[(0,W.jsx)(nY,{show:ze?`busy`:`mic`,options:{mic:(0,W.jsx)(Ld,{size:14}),busy:(0,W.jsxs)(`span`,{className:`summary-stop-icon`,children:[(0,W.jsx)(Hd,{size:14}),(0,W.jsx)(`span`,{className:`summary-stop-square`})]})}}),(0,W.jsx)(rY,{text:G(ze?`Summarizing…`:f?`Preparing…`:`Resume recording`)})]}),o.state===`prepared`&&!He&&(0,W.jsxs)(`button`,{"data-testid":`note-start`,disabled:f,onClick:()=>{Xe()},className:`note-record-action primary`,children:[(0,W.jsx)(Ld,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(f?`Starting…`:`Start recording`)]})]}),(0,W.jsx)(fh,{id:e,shown:We,status:E.status,hasEnhanced:E.enhanced!=null,beforeUse:Ye})]})]}),He&&(0,W.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,W.jsx)(am,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,W.jsx)(`p`,{className:`min-w-48 flex-1`,children:G(`This note is in the Trash.`)}),(0,W.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,W.jsx)(qp,{size:13,"aria-hidden":`true`}),G(`Restore`)]})]}),(0,W.jsxs)(`div`,{ref:fe,className:`note-primary-tabs`,"data-summary-arriving":P&&R&&!I,children:[(0,W.jsxs)(`div`,{role:`tablist`,"aria-label":G(`Meeting view`),className:`contents`,children:[(0,W.jsxs)(`button`,{ref:pe,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":B===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:B===`transcript`?0:-1,onKeyDown:Je,onClick:e=>qe(`transcript`,void 0,e.detail>0),children:[(0,W.jsx)(df,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`Transcript`)]}),(0,W.jsxs)(`button`,{ref:me,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":B===`notes`&&We===`mine`,"aria-controls":`note-notes-panel`,"data-version":We,tabIndex:B===`notes`&&We===`mine`?0:-1,onKeyDown:Je,onClick:e=>qe(`notes`,`mine`,e.detail>0),children:[(0,W.jsx)(rm,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`My notes`)]}),R&&(0,W.jsxs)(`button`,{ref:he,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":B===`notes`&&We===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:B===`notes`&&We===`enhanced`?0:-1,onKeyDown:Je,onClick:e=>qe(`notes`,`enhanced`,e.detail>0),children:[(0,W.jsx)(Bd,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),G(`Summary`)]})]}),B===`transcript`&&(0,W.jsx)(`div`,{ref:De,className:`note-primary-tools`}),(0,W.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`})]})]}),(0,W.jsx)(`div`,{ref:ke,className:`note-reading-area`,children:(0,W.jsxs)(`div`,{ref:le,className:`note-panels`,children:[(0,W.jsx)(IY,{active:B===`notes`,summary:We===`enhanced`,generating:We===`enhanced`&&[`waiting`,`rewriting`,`handoff`,`reset`,`streaming`].includes(L),resetting:We===`enhanced`&&L===`reset`,writing:We===`enhanced`&&L===`streaming`,scroll:ae,children:We===`mine`?(0,W.jsx)(oz,{focus:B===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:G(`My notes`),className:`min-h-[40vh]`,markdown:E.mine,placeholder:G(`You can add notes here to guide the summary.`),onChange:e=>{ne.current=!0;let t={...Ae.current,mine:e};Ae.current=t,D(t),Le.change(e)},onBlur:()=>{ne.current=!1,Le.flush()}}):(0,W.jsx)(Kpe,{presentation:L,focus:B===`notes`&&n?.ms===null?n:void 0,notes:E,disabled:f,onChange:e=>{ye(!0);let t={...Ae.current,enhanced:e};Ae.current=t,D(t),Re.change(e)},onBlur:Re.flush,onRetry:nt},e)}),(B===`transcript`||oe)&&(0,W.jsx)(`section`,{hidden:B!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,W.jsx)(iy,{id:e,recording:Ve,active:B===`transcript`,inline:!0,toolbar:Ee,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,W.jsxs)(`footer`,{ref:l,className:`note-footer`,children:[o.stopSavePending&&(0,W.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,W.jsx)(sm,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,W.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,W.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:u,className:`workspace-button`,onClick:()=>{d(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&pe.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>d(!1))},children:G(u?`Saving…`:`Try again`)})]}),B===`notes`&&We===`enhanced`&&E.status===`done`&&E.peopleChanged&&!ge&&(0,W.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,W.jsx)(`span`,{children:G(`The attendee list has changed.`)}),(0,W.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:nt,className:`workspace-button primary`,children:G(`Regenerate summary`)})]}),Qe===`failed`&&(0,W.jsxs)(JQ,{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,W.jsx)(`span`,{children:Le.reason===`too-long`||Re.reason===`too-long`?G(`This note is too long to save. Shorten it and try again.`):G(`Couldn't save your changes`)}),(0,W.jsx)(`button`,{"data-testid":`note-save-retry`,className:`text-action`,onClick:()=>{Ye()},children:G(`Try again`)})]}),g&&(0,W.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.`)}),b&&(0,W.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.`)}),w&&Ve&&(0,W.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:G(w===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),Ve&&Ne&&(0,W.jsx)(Ipe,{hint:Ne}),(0,W.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,W.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(Ve||o.state===`prepared`)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Npe,{recording:Ve,paused:Ve&&o.paused}),(0,W.jsx)(Fpe,{}),(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Qe!==`failed`&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":Qe,role:`status`,className:`flex items-center gap-1.5`,children:[(0,W.jsx)(Tp,{size:10,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:Qe===`saving`?G(`Saving…`):Pm({mac:G(`Saved on this Mac`),other:G(`Saved on this computer`)})})]}),(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ue!=null&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{"data-testid":`note-duration`,children:G(`{count} min`,{count:Ue})}),(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),G(`Yogurt can make mistakes.`)]}),(0,W.jsx)(fQ,{id:e,recording:Ve,anchor:Oe,onSource:i})]})]})]}),Se&&(0,W.jsx)(YQ,{id:e,title:o.title,onDone:()=>Ce(!1)}),we&&(0,W.jsx)(J9,{onDone:t=>{Te(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function Gpe({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,W.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,W.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,W.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 Kpe({notes:e,presentation:t,disabled:n,onChange:r,onBlur:i,onRetry:a,focus:o}){let{status:s}=e,c=t===`handoff`||t===`reset`,l=t===`waiting`||t===`streaming`||c,u=t===`rewriting`,d=(0,U.useRef)(null),f=(0,U.useRef)(0),p=(0,U.useRef)(t);(0,U.useLayoutEffect)(()=>{let e=d.current?.closest(`.note-notes-pane`);s===`failed`&&p.current===`streaming`&&e&&(e.scrollTop=0),p.current=t},[t,s]),(0,U.useLayoutEffect)(()=>{c||(f.current=d.current?.offsetHeight??0)},[c,u,e.enhanced]);let m=QG(l?e.draft:``,l,{minCommitMs:32});return t===`failed`?(0,W.jsxs)(JQ,{testId:`note-enhanced-failed`,children:[(0,W.jsx)(`span`,{children:G(`Yogurt couldn't generate this summary.`)}),(0,W.jsx)(`button`,{onClick:a,className:`text-action`,children:G(`Try again`)})]}):t===`stopped`?(0,W.jsxs)(`div`,{className:`summary-stopped`,children:[(0,W.jsx)(`p`,{role:`status`,children:G(`Summary stopped.`)}),(0,W.jsxs)(`button`,{type:`button`,onClick:a,className:`summary-generate flex items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm whitespace-nowrap text-ink hover:bg-[var(--line)] focus-visible:bg-[var(--line)]`,children:[(0,W.jsx)(qp,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),G(`Generate summary`)]})]}):t===`empty`?(0,W.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:G(`There is no transcript or typed note to summarize.`)}):t===`waiting`?(0,W.jsx)(pK,{downloading:e=>(0,W.jsxs)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:[G(`Your summary is waiting for Yogurt's AI to download.`),` `,e&&(0,W.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,W.jsx)(ay,{part:s===`writing`?e.part:void 0})}):(0,W.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":s,className:t===`streaming`?`streaming`:``,children:[s===`failed`&&(0,W.jsxs)(JQ,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,W.jsx)(`span`,{children:G(`Yogurt couldn't regenerate the summary, so your previous version is still shown.`)}),(0,W.jsx)(`button`,{onClick:a,className:`text-action`,children:G(`Try again`)})]}),u&&(0,W.jsx)(ay,{outline:!1,part:s===`writing`?e.part:void 0}),(0,W.jsx)(`div`,{ref:d,className:`summary-rewrite`,"data-rewriting":u,"data-handoff":c,"data-resetting":t===`reset`,style:c?{minHeight:f.current}:void 0,children:(0,W.jsx)(`div`,{className:`summary-result`,children:(0,W.jsx)(oz,{focus:o,testId:`note-enhanced-editor`,label:G(`Summary`),className:`enhanced`,markdown:c?e.enhanced??``:l?m:e.enhanced??``,streaming:l&&!c,editable:!l&&!u&&!n,onChange:r,onBlur:i})})}),l&&(0,W.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:G(`Generating notes…`)})]})}var Z9=X_.transition.collapse;X_.transition.collapseLabel,X_.transition.color,U.createContext(null),U.createContext(!0);function Q9(e,t){let n=dv(),{duration:r,easing:i}=av(ev(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function qpe({transition:e=Z9,style:t,...n}){let r=Q9(e,`width`);return(0,W.jsx)(`div`,{...n,style:{...r,...t}})}function Jpe({transition:e=Z9,style:t,...n}){let r=Q9(e,`left, right, width`);return(0,W.jsx)(`div`,{...n,style:{...r,...t}})}U.Component;function Ype(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 Xpe({folders:e,route:t,go:n,collapsed:r=!1,sidebarMotion:i}){let[a,o]=(0,U.useState)(),[s,c]=(0,U.useState)(),[l,u]=(0,U.useState)(),[d,f]=(0,U.useState)(),[p,m]=(0,U.useState)(!1),h=(0,U.useRef)(!1),g=(0,U.useRef)(null),_=d?[...d.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!d.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),v=(0,U.useRef)(_);v.current=_,(0,U.useEffect)(()=>{!h.current&&!p&&f(void 0)},[e]);let y=async t=>{if(h.current=!1,t.every((t,n)=>t===e?.[n]?.id))f(void 0);else{f(t),m(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{f(void 0),lQ.add({title:G(`Yogurt couldn't make that change. Try again.`)})}finally{m(!1)}}},b=(e,t)=>{let n=_.indexOf(e),r=[..._];p||n+t<0||n+t>=_.length||(r.splice(n,1),r.splice(n+t,0,e),y(r))};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`nav`,{"aria-label":G(`Folders`),"data-testid":`sidebar-folders`,children:[(0,W.jsx)(cK,{pending:!e,skeleton:(0,W.jsx)(Ev,{layout:`folders`,testId:`folders-loading`}),children:(0,W.jsx)(T_,{as:`div`,ref:g,axis:`y`,values:_,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{v.current=e,f(e)},children:_.map((a,s)=>{let l=e.find(e=>e.id===a);return(0,W.jsx)(Zpe,{folder:l,collapsed:r,sidebarMotion:i,current:t===`/folder/${l.id}`,go:n,constraints:g,reorderable:!p&&_.length>1,onDragStart:()=>{h.current=!0},onDragEnd:()=>void y(v.current),moveUp:!p&&s>0?()=>b(a,-1):void 0,moveDown:!p&&s<_.length-1?()=>b(a,1):void 0,onAppearance:()=>c(l),onRename:()=>o({folder:l}),onDelete:()=>u(l)},l.id)})})}),(0,W.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:()=>o({}),children:[(0,W.jsx)(Up,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:G(`New folder`)})]})]}),s&&(0,W.jsx)(Upe,{folder:s,onDone:()=>c(void 0)}),a&&(0,W.jsx)(J9,{folder:a.folder,onDone:e=>{o(void 0),e&&n(`/folder/${e.id}`)}}),l&&(0,W.jsx)(Hpe,{folder:l,onDone:e=>{u(void 0),e&&t===`/folder/${l.id}`&&n(``)}})]})}function Zpe({folder:e,collapsed:t,sidebarMotion:n,current:r,go:i,onRename:a,onDelete:o,onAppearance:s,constraints:c,reorderable:l,onDragStart:u,onDragEnd:d,moveUp:f,moveDown:p}){let m=h_(),h=Dd(),g=(0,U.useRef)(t),_=h||g.current!==t&&!n;(0,U.useEffect)(()=>{g.current=t},[t]);let v=(0,U.useRef)(!1),[y,b]=(0,U.useState)(!1),[x,S]=(0,U.useState)(!1),[C,w]=(0,U.useState)(),T=kd(C,C?.animate??!0),E=(0,U.useRef)(null),D=(0,U.useRef)(null),O=(0,U.useRef)(null),k=(0,U.useRef)(null);(0,U.useEffect)(()=>{if(!C)return;k.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{E.current?.contains(e.target)||w(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[C]);let A=e=>{let t=E.current.getBoundingClientRect(),n=getComputedStyle(E.current).direction===`rtl`;w({animate:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},j=e=>{let n=Array.from(k.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),w(void 0),(t?O:D).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`&&w(void 0)},M=e=>{w(void 0),(t?O:D).current?.focus(),e()},N=e=>e.dataTransfer.types.includes(U9);return(0,W.jsxs)(z_,{as:`div`,ref:E,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":y,dragListener:!1,dragControls:m,dragConstraints:c,dragElastic:0,dragMomentum:!1,transition:_?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{v.current=!0,b(!0),w(void 0),u()},onDragEnd:()=>{b(!1),d()},children:[(0,W.jsxs)(`button`,{ref:O,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":x,"aria-current":r?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{v.current=!1,l&&e.button===0&&m.start(e,{distanceThreshold:4})},onClick:t=>{v.current&&t.detail?v.current=!1:i(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),A(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),A(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?f:p)?.())},onDragEnter:e=>{N(e)&&(e.preventDefault(),S(!0))},onDragOver:e=>{N(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>S(!1),onDrop:t=>{S(!1);let n=Ype(t.dataTransfer.getData(U9));n.length&&(t.preventDefault(),Rpe(e.id,n).catch(()=>lQ.add({title:G(`Yogurt couldn't add this note to the folder. Try again.`)})))},children:[(0,W.jsx)(B9,{appearance:e}),(0,W.jsx)(`span`,{children:e.name}),(0,W.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":G(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,W.jsx)(`button`,{ref:D,"data-testid":`sidebar-folder-more`,className:`ghost-btn workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!C,"aria-label":G(`More for “{name}”`,{name:e.name}),title:G(`More`),onClick:()=>C?w(void 0):A(!0),children:(0,W.jsx)(Vf,{size:15,"aria-hidden":`true`})}),T.value&&(0,W.jsxs)(`div`,{ref:k,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,...T.props,"data-anchor":`start`,onKeyDown:j,style:T.value.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>M(s),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,W.jsx)(Lp,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Change icon`)]}),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>M(a),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,W.jsx)(zp,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Rename`)]}),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!f,onClick:()=>f&&M(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,W.jsx)(lf,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Move up`)]}),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!p,onClick:()=>p&&M(p),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,W.jsx)(af,{size:15,"aria-hidden":`true`,className:`text-muted`}),G(`Move down`)]}),(0,W.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>M(o),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,W.jsx)(am,{size:15,"aria-hidden":`true`}),G(`Delete folder`)]})]})]})}function Qpe(){return null}function $pe({go:e}){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1);(0,U.useEffect)(()=>{let e,t=!0,r=t=>{e=t,n(t),!t.notesError&&!t.notesUpgradeError&&c(!1),dK(t)||(i(!1),u(!1))},a=window.yogurt.setup.onState(r);return window.yogurt.setup.state().then(n=>{t&&!e&&r(n)}),()=>{t=!1,a()}},[]);let d=async()=>{o(!0),c(!1);try{await window.yogurt.setup.retry()}catch{c(!0)}finally{o(!1)}},f=async()=>{u(!1);try{await window.yogurt.setup.skipUpgrade();let t=lQ.add({title:G(`AI upgrade skipped`),timeout:8e3,data:{testId:`notes-skipped-toast`},actionProps:{children:G(`Settings`),onClick:()=>{lQ.close(t),e(`/settings/notes-model`)}}})}catch{u(!0)}};if(!t||!dK(t))return null;let p=uK(t),m=p?t.notesUpgradeError:t.notesError,h=!!m,g=G(p?`AI upgrade paused`:`AI download stopped`),_=h?g:t.notesUpgradePending&&p?G(`Upgrading AI`):p?G(`Upgrading AI · {percent}`,{percent:lK(t.notesUpgradeFraction??0)}):G(`Downloading AI · {percent}`,{percent:lK(t.notesFraction??0)}),v=fK(t),y=p?t.notesUpgradeFraction:t.notesFraction,b=y!==void 0&&Number.isFinite(y)?Math.floor(Math.max(0,Math.min(1,y))*100):void 0;return(0,W.jsx)(FG,{direction:vm(Cm()),children:(0,W.jsx)(`span`,{className:`notes-download-status`,children:(0,W.jsxs)(xW,{open:r,onOpenChange:i,children:[(0,W.jsxs)(LW,{"data-testid":`notes-setup-open`,"aria-label":_,title:_,className:`bar-btn notes-download-trigger no-drag`,children:[(0,W.jsx)(`span`,{"aria-hidden":`true`,"data-failed":h,"data-upgrade":p,className:`notes-download-dot`}),(0,W.jsx)(`span`,{className:`truncate`,children:_})]}),(0,W.jsx)(BW,{children:(0,W.jsx)(EG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,W.jsxs)(MG,{"data-testid":`notes-setup`,"data-failed":h,"data-anchor":`end`,"aria-label":h?g:G(p?`Upgrading AI`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:[(0,W.jsxs)(`div`,{className:`notes-download-readout`,children:[(0,W.jsx)(`strong`,{role:h?`status`:void 0,children:h?G(p?`Upgrade paused`:`Download stopped`):v.progress||G(p?`Upgrading AI`:`Downloading AI`)}),(0,W.jsx)(`span`,{children:h?v.progress:p?b!==void 0&&lK(y):v.eta})]}),(0,W.jsx)(`div`,{className:`notes-download-progress`,role:`progressbar`,"aria-label":_,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":b,children:(0,W.jsx)(`span`,{style:{width:`${b??0}%`}})}),(0,W.jsxs)(`div`,{className:`notes-download-footer`,children:[(0,W.jsx)(`p`,{className:`notes-download-support`,children:h?m:G(p?`Once this model is ready, we'll remove the old one.`:`You can record meetings. AI summaries and Ask work when this finishes.`)}),(h||p)&&(0,W.jsxs)(`div`,{className:`notes-download-actions`,children:[h&&(0,W.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`workspace-button`,disabled:a,onClick:()=>void d(),children:G(a?`Retrying…`:`Try again`)}),p&&(0,W.jsx)(`button`,{"data-testid":`notes-setup-skip`,className:`text-action`,disabled:t.notesUpgradeChanging,onClick:()=>void f(),children:G(`Skip`)})]})]}),s&&(0,W.jsx)(`p`,{role:`alert`,children:G(`Yogurt couldn't restart the download.`)}),l&&(0,W.jsx)(`p`,{role:`alert`,children:G(`Yogurt couldn't change the notes model.`)})]})})})]})})})}function eme({recording:e}){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)();(0,U.useEffect)(()=>{let e=!0,t=!1,r=r=>{e&&(t=!0,n(r),(r.state!==`ready`||r.dismissed)&&(i(!1),c(void 0)))},a=window.yogurt.updates.onStatus(r);return window.yogurt.updates.status().then(e=>{t||r(e)}).catch(()=>{}),()=>{e=!1,a()}},[]);let l=async()=>{if(!(e||a||t?.state!==`ready`)){o(!0),c(void 0);try{await window.yogurt.updates.restart()?i(!1):c(`restart`)}catch{c(`restart`)}finally{o(!1)}}},u=async()=>{c(void 0);try{await window.yogurt.updates.later(),i(!1)}catch{c(`later`)}};return t?.state!==`ready`||t.dismissed?null:(0,W.jsx)(FG,{direction:vm(Cm()),children:(0,W.jsx)(`span`,{className:`notes-download-status update-ready-status`,children:(0,W.jsxs)(xW,{open:r,onOpenChange:i,children:[(0,W.jsx)(LW,{"data-testid":`update-ready`,className:`bar-btn notes-download-trigger no-drag`,title:G(`Update ready`),children:(0,W.jsx)(`span`,{className:`truncate`,children:G(`Update ready`)})}),(0,W.jsx)(BW,{children:(0,W.jsx)(EG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,W.jsxs)(MG,{"data-testid":`update-popover`,"data-anchor":`end`,"data-pointer":`true`,className:`menu-entry notes-download-menu update-ready-menu`,children:[(0,W.jsx)(NG,{children:G(`Yogurt {version}`,{version:t.next??``})}),(0,W.jsx)(PG,{className:`update-ready-description`,children:G(e?`You can restart after recording`:`Installs when you restart Yogurt`)}),(0,W.jsxs)(`div`,{className:`update-ready-actions`,children:[(0,W.jsx)(`button`,{"data-testid":`update-later`,className:`text-action`,onClick:()=>void u(),children:G(`Later`)}),(0,W.jsx)(`button`,{"data-testid":`update-restart`,className:`workspace-button primary`,disabled:e||a,onClick:()=>void l(),children:G(`Restart`)})]}),s&&(s===`later`||!e)&&(0,W.jsx)(`p`,{role:`alert`,children:G(s===`later`?`Yogurt couldn't make that change. Try again.`:`Yogurt couldn't restart. Try again.`)})]})})})]})})})}function tme({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(`/settings/`)?`/settings`: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=LG(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),lQ.add({title:G(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!Mm(e)||Nm()&&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:Fd},{route:`/chat`,label:G(`Ask`),Icon:Md},{route:`/trash`,label:G(`Trash`),Icon:am},{route:`/settings`,label:G(`Settings`),Icon:Id}],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,W.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,W.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:t.label})]},t.route);return(0,W.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,W.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,W.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,W.jsx)(`button`,{className:`ghost-btn 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":Nm()?`Control+Meta+S`:`Control+Shift+S`,title:`${G(s?`Expand sidebar`:`Collapse sidebar`)} (${jm(`⌃⌘S`)})`,"aria-label":G(s?`Expand sidebar`:`Collapse sidebar`),children:(0,W.jsx)(Pd,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,W.jsx)(qpe,{className:`workspace-sidebar-gap`,transition:p}),(0,W.jsx)(Jpe,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":G(`Main navigation`),transition:p,children:(0,W.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,W.jsx)(`div`,{className:`sidebar-titlebar`}),(0,W.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,W.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":G(`Search`),title:`${G(`Search`)} (${jm(`⌘K`)})`,onClick:o,children:[(0,W.jsx)(Nd,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:G(`Search`)}),(0,W.jsx)(`kbd`,{children:jm(`⌘K`)})]}),(0,W.jsx)(`nav`,{"aria-label":G(`Workspace`),children:_.slice(0,2).map(x)}),(0,W.jsx)(`div`,{className:`workspace-folder-label`,children:G(`Your workspace`)}),(0,W.jsx)(Xpe,{collapsed:s,sidebarMotion:c,folders:n,route:e,go:r})]}),(0,W.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,W.jsx)(Qpe,{collapsed:s}),x(_[2]),x(_[3]),(0,W.jsx)(`div`,{className:`workspace-brand`,children:(0,W.jsx)(`span`,{className:`workspace-wordmark`,children:(0,W.jsx)(yY,{height:25})})})]})]})}),(0,W.jsxs)(`div`,{className:`workspace-content`,children:[(0,W.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,W.jsxs)(`div`,{className:`workspace-breadcrumb drag`,children:[(0,W.jsxs)(`span`,{className:`workspace-history`,children:[(0,W.jsx)(`button`,{"data-testid":`nav-back`,className:`ghost-btn workspace-icon no-drag`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":G(`Back`),title:`${G(`Back`)} (${jm(`⌘[`)})`,children:(0,W.jsx)(Df,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,W.jsx)(`button`,{"data-testid":`nav-forward`,className:`ghost-btn workspace-icon no-drag`,disabled:!a,onClick:a,"aria-label":G(`Forward`),title:`${G(`Forward`)} (${jm(`⌘]`)})`,children:(0,W.jsx)(kf,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),(0,W.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),(0,W.jsx)(eme,{recording:d?.kind===`recording`}),(0,W.jsx)($pe,{go:r}),g&&(0,W.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,W.jsx)(CQ,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,W.jsx)(wQ,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,W.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var $9=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?new URLSearchParams(location.search).get(`theme`)===`dark`?`dark`:`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function nme(){let[e,t]=(0,U.useState)(0);return(0,U.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,U.useEffect)(()=>xe(),[e]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:`marketing-window`,children:[(0,W.jsx)(tme,{route:`/note/${E.id}`,meeting:E,folders:D,go:$9,search:$9,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:$9,children:(0,W.jsx)(Wpe,{id:E.id,onTitleChange:$9},e)}),(0,W.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{}),(0,W.jsx)(`i`,{})]})]}),(0,W.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,W.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,W.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,FY.createRoot)(document.getElementById(`root`)).render(M===`copy`?(0,W.jsx)(ph,{}):M?(0,W.jsx)(jY,{}):(0,W.jsx)(nme,{}))})();
\ No newline at end of file
+ reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.get(`timezoneOffset`)??this.reference.timezoneOffset;if(e==null)return this.dateWithoutTimezoneAdjustment();let t=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return t.setUTCFullYear(this.get(`year`)),new Date(t.getTime()-e*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`));return e.setFullYear(this.get(`year`)),e}},x$=class e{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new Z(e),this.end=i}clone(){let t=new e(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}};function S$(e,t,n=`\\s{0,5},?\\s{0,5}`){let r=t.replace(/\((?!\?)/g,`(?:`);return`${e}${r}(?:${n}${r}){0,10}`}function C$(e){let t;return t=e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e),t}function Q(e){return`(?:${C$(e).sort((e,t)=>t.length-e.length).join(`|`).replace(/\./g,`\\.`)})`}function w$(e){return e<100&&(e+=e>50?1900:2e3),e}function T$(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);let i=v$(r,{year:1}),a=v$(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(a.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=a),r.getFullYear()}var E$={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},D$={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},O$={...D$,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},k$={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},A$={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},j$={second:`second`,seconds:`second`,minute:`minute`,minutes:`minute`,hour:`hour`,hours:`hour`,day:`day`,days:`day`,week:`week`,weeks:`week`,month:`month`,months:`month`,quarter:`quarter`,quarters:`quarter`,year:`year`,years:`year`},M$={s:`second`,sec:`second`,second:`second`,seconds:`second`,m:`minute`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hour:`hour`,hours:`hour`,d:`day`,day:`day`,days:`day`,w:`week`,week:`week`,weeks:`week`,mo:`month`,mon:`month`,mos:`month`,month:`month`,months:`month`,qtr:`quarter`,quarter:`quarter`,quarters:`quarter`,y:`year`,yr:`year`,year:`year`,years:`year`,...j$},N$=`(?:${Q(k$)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function P$(e){let t=e.toLowerCase();return k$[t]===void 0?t===`a`||t===`an`||t==`the`?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t):k$[t]}var F$=`(?:${Q(A$)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function I$(e){let t=e.toLowerCase();return A$[t]===void 0?(t=t.replace(/(?:st|nd|rd|th)$/i,``),parseInt(t)):A$[t]}var L$=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[0-9]{2}(?!\\w|:\\d|\\s+(?:am|pm|o\\s*clock|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))`;function R$(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):w$(parseInt(e))}var z$=`(${N$})\\s{0,3}(${Q(M$)})`,B$=new RegExp(z$,`i`),V$=`(${N$})\\s{0,3}(${Q(j$)})`,H$=`\\s{0,5},?(?:\\s*and)?\\s{0,5}`,U$=S$(`(?:(?:about|around)\\s{0,3})?`,z$,H$),W$=S$(`(?:(?:about|around)\\s{0,3})?`,V$,H$);function G$(e){let t={},n=e,r=B$.exec(n);for(;r;)K$(t,r),n=n.substring(r[0].length).trim(),r=B$.exec(n);return Object.keys(t).length==0?null:t}function K$(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=P$(t[1]),r=M$[t[2].toLowerCase()];e[r]=n}var $=class{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return`(\\W|^)`}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)||(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags)),this.cachedPattern}extract(e,t){let n=t[1]??``;t.index+=n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}},q$=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${U$})(?=\\W|$)`,`i`),J$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${U$})(?=\\W|$)`,`i`),Y$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${W$})(?=\\W|$)`,`i`),X$=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?Y$:e.option.forwardDate?q$:J$}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/i))return null;let n=G$(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Z$=RegExp(`(?:on\\s{0,3})?(${F$})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)\\s{0,3}(${F$}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Q(O$)})(?:(?:-|/|,?\\s{0,3})(${L$}(?!\\w)))?(?=\\W|$)`,`i`),Q$=1,$$=2,e1=3,t1=4,n1=class extends ${innerPattern(){return Z$}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=O$[t[e1].toLowerCase()],i=I$(t[Q$]);if(i>31)return t.index+=t[Q$].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[t1]){let e=R$(t[t1]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[$$]){let e=I$(t[$$]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},r1=RegExp(`(${Q(O$)})(?:-|/|\\s*,?\\s*)(${F$})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${F$})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${L$}))?(?=\\W|$)(?!\\:\\d)`,`i`),i1=1,a1=2,o1=3,s1=4,c1=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return r1}innerExtract(e,t){let n=O$[t[i1].toLowerCase()],r=I$(t[a1]);if(r>31||this.shouldSkipYearLikeDate&&!t[o1]&&!t[s1]&&t[a1].match(/^\d{2}$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ENMonthNameMiddleEndianParser`);if(t[s1]){let e=R$(t[s1]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[o1])return i;let a=I$(t[o1]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},l1=RegExp(`((?:in)\\s*)?(${Q(O$)})\\s*(?:(?:,|-|of)?\\s*(${L$})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),u1=1,d1=2,f1=3,p1=class extends ${innerPattern(){return l1}innerExtract(e,t){let n=t[d1].toLowerCase();if(t[0].length<=3&&!D$[n])return null;let r=e.createParsingResult(t.index+(t[u1]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ENMonthNameParser`);let i=O$[n];if(r.start.assign(`month`,i),t[f1]){let e=R$(t[f1]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},m1=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(O$)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),h1=1,g1=2,_1=3,v1=4,y1=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return m1}innerExtract(e,t){let n=parseInt(t[h1]),r=parseInt(t[v1]),i=t[_1]?parseInt(t[_1]):O$[t[g1].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},b1=RegExp(`((?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}))(?:\\s*[-.\\/,]?\\s*|\\s+of\\s+)(${Q(O$)})(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),x1=1,S1=2,C1=class extends ${innerPattern(){return b1}innerExtract(e,t){let n=R$(t[x1]),r=O$[t[S1].toLowerCase()],i=e.createParsingResult(t.index,t[0]);return i.start.imply(`day`,1),i.start.assign(`month`,r),i.start.assign(`year`,n),i.start.addTag(`parser/ENYearMonthNameParser`),i}},w1=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),T1=1,E1=2,D1=class extends ${innerPattern(){return w1}innerExtract(e,t){if(/\d\/?$/.test(e.text.substring(0,t.index)))return null;let n=parseInt(t[E1]),r=parseInt(t[T1]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}};function O1(e,t,n,r){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function k1(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,`i`)}var A1=2,j1=3,M1=4,N1=5,P1=6,F1=class{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return`i`}primaryPatternLeftBoundary(){return`(^|\\s|T|\\b)`}primarySuffix(){return`(?!/)(?=\\W|$)`}followingSuffix(){return`(?!/)(?=\\W|$)`}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?(t.index+=4,null):(t.index+=t[0].length,null);let r=t.index+t[1].length,i=t[0].substring(t[1].length),a=e.createParsingResult(r,i,n);t.index+=t[0].length;let o=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(o);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,s,a),a.end&&(a.text+=s[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,t,n=!1){let r=e.createParsingComponents(),i=0,a=null,o=parseInt(t[A1]);if(o>100){if(t[A1].length==4&&t[j1]==null&&!t[P1]||this.strictMode||t[j1]!=null)return null;i=o%100,o=Math.floor(o/100)}if(o>24)return null;if(t[j1]!=null){if(t[j1].length==1&&!t[P1])return null;i=parseInt(t[j1])}if(i>=60)return null;if(o>12&&(a=X.PM),t[P1]!=null){if(o>12)return null;let e=t[P1][0].toLowerCase();e==`a`&&(a=X.AM,o==12&&(o=0)),e==`p`&&(a=X.PM,o!=12&&(o+=12))}if(r.assign(`hour`,o),r.assign(`minute`,i),a===null?o<12?r.imply(`meridiem`,X.AM):r.imply(`meridiem`,X.PM):r.assign(`meridiem`,a),t[N1]!=null){let e=parseInt(t[N1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[M1]!=null){let e=parseInt(t[M1]);if(e>=60)return null;r.assign(`second`,e)}return r}extractFollowingTimeComponents(e,t,n){let r=e.createParsingComponents();if(t[N1]!=null){let e=parseInt(t[N1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[M1]!=null){let e=parseInt(t[M1]);if(e>=60)return null;r.assign(`second`,e)}let i=parseInt(t[A1]),a=0,o=-1;if(t[j1]==null?i>100&&(a=i%100,i=Math.floor(i/100)):a=parseInt(t[j1]),a>=60||i>24)return null;if(i>=12&&(o=X.PM),t[P1]!=null){if(i>12)return null;let e=t[P1][0].toLowerCase();e==`a`&&(o=X.AM,i==12&&(i=0,r.isCertain(`day`)||r.addDurationAsImplied({day:1}))),e==`p`&&(o=X.PM,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==X.AM?(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}return r.assign(`hour`,i),r.assign(`minute`,a),o>=0?r.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`hour`)>12?n.start.get(`hour`)-12>i?r.imply(`meridiem`,X.AM):i<=12&&(r.assign(`hour`,i+12),r.assign(`meridiem`,X.PM)):i>12?r.imply(`meridiem`,X.PM):i<=12&&r.imply(`meridiem`,X.AM),r.date().getTime()<n.start.date().getTime()&&r.addDurationAsImplied({day:1}),r}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(`.`)&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(`.`)&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24||parseInt(e)>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=O1(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=k1(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}},I1=class extends F1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*`}primaryPrefix(){return`(?:(?:at|from)\\s*)??`}primarySuffix(){return`(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith(`night`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`afternoon`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].endsWith(`morning`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ENTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ENTimeExpressionParser`),r}},L1=RegExp(`(${U$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),R1=RegExp(`(${W$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),z1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?R1:L1}innerExtract(e,t){let n=G$(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},B1=RegExp(`(${U$})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,`i`),V1=RegExp(`(${W$})\\s{0,5}(later|after|from now)(?=\\W|$)`,`i`),H1=1,U1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?V1:B1}innerExtract(e,t){let n=G$(t[H1]);return n?Z.createRelativeFromReference(e.reference,n):null}},W1=class{refine(e,t){return t.filter(t=>this.isValid(e,t))}},G1=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let a=1;a<t.length;a++){i=t[a];let o=e.text.substring(r.index+r.text.length,i.index);if(!this.shouldMergeResults(o,r,i,e))n.push(r),r=i;else{let t=r,n=i,a=this.mergeResults(o,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${a}`)}),r=a}}return r!=null&&n.push(r),n}},K1=class extends G1{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&v$(r,{day:7})>e?(r=v$(r,{day:7}),n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear())):t.start.isOnlyWeekdayComponent()&&v$(e,{day:-7})<r?(e=v$(e,{day:-7}),t.start.imply(`day`,e.getDate()),t.start.imply(`month`,e.getMonth()+1),t.start.imply(`year`,e.getFullYear())):n.start.isDateWithUnknownYear()&&v$(r,{year:1})>e?(r=v$(r,{year:1}),n.start.imply(`year`,r.getFullYear())):t.start.isDateWithUnknownYear()&&v$(e,{year:-1})<r?(e=v$(e,{year:-1}),t.start.imply(`year`,e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),r.text=t.index<n.index?t.text+e+n.text:n.text+e+t.text,r}},q1=class extends K1{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}};function J1(e,t){let n=e.clone(),r=e.start,i=t.start;if(n.start=Y1(r,i),e.end!=null||t.end!=null){let r=Y1(e.end==null?e.start:e.end,t.end==null?t.start:t.end);if(e.end==null&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain(`day`)?l$(r,e):d$(r,e)}n.end=r}return n}function Y1(e,t){let n=e.clone();t.isCertain(`hour`)?(n.assign(`hour`,t.get(`hour`)),n.assign(`minute`,t.get(`minute`)),t.isCertain(`second`)?(n.assign(`second`,t.get(`second`)),t.isCertain(`millisecond`)?n.assign(`millisecond`,t.get(`millisecond`)):n.imply(`millisecond`,t.get(`millisecond`))):(n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`)))):(n.imply(`hour`,t.get(`hour`)),n.imply(`minute`,t.get(`minute`)),n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`))),t.isCertain(`timezoneOffset`)&&n.assign(`timezoneOffset`,t.get(`timezoneOffset`));let r=e.get(`meridiem`)!=null&&(e.isCertain(`meridiem`)||Array.from(e.tags()).some(e=>e.startsWith(`casualReference/`)));return t.isCertain(`meridiem`)?n.assign(`meridiem`,t.get(`meridiem`)):t.get(`meridiem`)!=null&&!r&&n.imply(`meridiem`,t.get(`meridiem`)),n.get(`meridiem`)==X.PM&&n.get(`hour`)<12&&(t.isCertain(`hour`)?n.assign(`hour`,n.get(`hour`)+12):n.imply(`hour`,n.get(`hour`)+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}var X1=class extends G1{shouldMergeResults(e,t,n){let r=t.start.isOnlyDate()&&n.start.isOnlyTime(),i=t.start.isOnlyTime()&&n.start.isOnlyDate();return i&&e.trim()===`:`?!1:(r||i)&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let r=t.start.isOnlyDate()?J1(t,n):J1(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}},Z1=class extends X1{patternBetween(){return RegExp(`^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$`)}},Q1=RegExp(`^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)`,`i`),$1=class{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let r=e.text.substring(t.index+t.text.length),i=Q1.exec(r);if(!i)return;let a=i[1].toUpperCase(),o=g$(a,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...n});if(o==null)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${o} for: ${t.start}`)});let s=t.start.get(`timezoneOffset`);s!==null&&o!=s&&(t.start.isCertain(`timezoneOffset`)||a!=i[1])||t.start.isOnlyDate()&&a!=i[1]||(t.text+=i[0],t.start.isCertain(`timezoneOffset`)||t.start.assign(`timezoneOffset`,o),t.end!=null&&!t.end.isCertain(`timezoneOffset`)&&t.end.assign(`timezoneOffset`,o))}),t}},e0=RegExp(`^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?`,`i`),t0=1,n0=2,r0=3,i0=class{refine(e,t){return t.forEach(function(t){if(t.start.isCertain(`timezoneOffset`))return;let n=e.text.substring(t.index+t.text.length),r=e0.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=parseInt(r[n0]),a=parseInt(r[r0]||`0`),o=i*60+a;o>840||(r[t0]===`-`&&(o=-o),t.end!=null&&t.end.assign(`timezoneOffset`,o),t.start.assign(`timezoneOffset`,o),t.text+=r[0])}),t}},a0=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let a=t[i];if(a.index>=r.index+r.text.length){n.push(r),r=a;continue}let o=null,s=null;a.text.length>r.text.length?(o=a,s=r):(o=r,s=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${o}`)}),r=o}return r!=null&&n.push(r),n}};function o0(e,t,n){let r=s0(e.getDateWithAdjustedTimezone(),t,n),i=new Z(e);return i=i.addDurationAsImplied({day:r}),i.assign(`weekday`,t),i}function s0(e,t,n){let r=e.getDay();switch(n){case`this`:return l0(e,t);case`last`:return u0(e,t);case`next`:return r==s$.SUNDAY?t==s$.SUNDAY?7:t:r==s$.SATURDAY?t==s$.SATURDAY?7:t==s$.SUNDAY?8:1+t:t<r&&t!=s$.SUNDAY?l0(e,t):l0(e,t)+7}return c0(e,t)}function c0(e,t){let n=u0(e,t),r=l0(e,t);return r<-n?r:n}function l0(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function u0(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}var d0=class{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),d$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(d$(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),d$(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=v$(n,{day:l0(n,t.start.get(`weekday`))||7});if(d$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.start.date()>t.end.date()){let r=v$(n,{day:l0(n,t.start.get(`weekday`))||7});d$(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply(`year`,t.start.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain(`year`)&&(t.end.imply(`year`,t.end.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}},f0=class extends W1{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(` `,``).match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}},p0=RegExp(`([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)`,`i`),m0=1,h0=2,g0=3,_0=4,v0=5,y0=6,b0=7,x0=8,S0=9,C0=10,w0=class extends ${innerPattern(){return p0}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[m0]),month:parseInt(t[h0]),day:parseInt(t[g0])});if(t[_0]!=null&&(n.assign(`hour`,parseInt(t[_0])),n.assign(`minute`,parseInt(t[v0])),t[y0]!=null&&n.assign(`second`,parseInt(t[y0])),t[b0]!=null&&n.assign(`millisecond`,parseInt(t[b0])),t[x0]!=null)){let e=0;if(t[S0]){let n=parseInt(t[S0]),r=0;t[C0]!=null&&(r=parseInt(t[C0])),e=n*60,e<0?e-=r:e+=r}n.assign(`timezoneOffset`,e)}return n.addTag(`parser/ISOFormatParser`)}},T0=class extends G1{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign(`weekday`,t.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,t.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain(`hour`)&&n.start.isCertain(`day`)&&!n.start.tags().has(`result/relativeDate`)&&e.match(/^,?\s*$/)!=null}};function E0(e,t=!1){return e.parsers.unshift(new w0),e.refiners.unshift(new T0),e.refiners.unshift(new i0),e.refiners.unshift(new a0),e.refiners.push(new $1),e.refiners.push(new a0),e.refiners.push(new d0),e.refiners.push(new f0(t)),e}function D0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return l$(n,t),u$(n,t),n.assign(`timezoneOffset`,e.getTimezoneOffset()),n.addTag(`casualReference/now`),n}function O0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return l$(n,t),f$(n,t),n.delete(`meridiem`),n.addTag(`casualReference/today`),n}function k0(e){return j0(e,1).addTag(`casualReference/yesterday`)}function A0(e){return M0(e,1).addTag(`casualReference/tomorrow`)}function j0(e,t){return M0(e,-t)}function M0(e,t){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),l$(r,i),f$(r,i),r.delete(`meridiem`),r}function N0(e,t=22){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return l$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/tonight`),r}function P0(e,t=0){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n.getHours()<6&&(n=new Date(n.getTime()-864e5)),l$(r,n),r.imply(`hour`,t),r}function F0(e,t=20){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.addTag(`casualReference/evening`),n}function I0(e,t=20){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n=new Date(n.getTime()-864e5),l$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/yesterday`),r.addTag(`casualReference/evening`),r}function L0(e){let t=new Z(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign(`hour`,0),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/midnight`),t}function R0(e,t=6){let n=new Z(e,{});return n.imply(`meridiem`,X.AM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/morning`),n}function z0(e,t=15){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/afternoon`),n}function B0(e){let t=new Z(e,{});return t.imply(`meridiem`,X.AM),t.assign(`hour`,12),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/noon`),t}var V0=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,H0=class extends ${innerPattern(e){return V0}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`now`:i=D0(e.reference);break;case`today`:i=O0(e.reference);break;case`yesterday`:i=k0(e.reference);break;case`tomorrow`:case`tmr`:case`tmrw`:i=A0(e.reference);break;case`tonight`:i=N0(e.reference);break;case`overmorrow`:i=M0(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}l$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ENCasualDateParser`),i}},U0=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i,W0=class extends ${innerPattern(){return U0}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case`afternoon`:n=z0(e.reference);break;case`evening`:case`night`:n=F0(e.reference);break;case`midnight`:n=L0(e.reference);break;case`morning`:n=R0(e.reference);break;case`noon`:case`midday`:n=B0(e.reference)}return n&&n.addTag(`parser/ENCasualTimeParser`),n}},G0=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Q(E$)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,`i`),K0=1,q0=2,J0=3,Y0=class extends ${innerPattern(){return G0}innerExtract(e,t){let n=t[K0],r=t[J0],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`last`||i==`past`?a=`last`:i==`next`?a=`next`:i==`this`&&(a=`this`);let o=t[q0].toLowerCase(),s;if(E$[o]!==void 0)s=E$[o];else if(o==`weekend`)s=a==`last`?s$.SUNDAY:s$.SATURDAY;else if(o==`weekday`){let t=e.reference.getDateWithAdjustedTimezone().getDay();t==s$.SUNDAY||t==s$.SATURDAY?s=a==`last`?s$.FRIDAY:s$.MONDAY:(s=t-1,s=a==`last`?s-1:s+1,s=s%5+1)}else return null;return o0(e.reference,s,a)}},X0=RegExp(`(this|last|past|next|after\\s*this)\\s*(${Q(M$)})(?=\\s*)(?=\\W|$)`,`i`),Z0=1,Q0=2,$0=class extends ${innerPattern(){return X0}innerExtract(e,t){let n=t[Z0].toLowerCase(),r=t[Q0].toLowerCase(),i=M$[r];if(n==`next`||n.startsWith(`after`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`last`||n==`past`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/month/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},e2=RegExp(`([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)`,`i`),t2=1,n2=5,r2=2,i2=3,a2=4,o2=class{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?i2:r2,this.groupNumberDay=e?r2:i2}pattern(){return e2}extract(e,t){let n=t.index+t[t2].length,r=t.index+t[0].length-t[n2].length;if(n>0&&e.text.substring(0,n).match(`\\d/?$`)||r<e.text.length&&e.text.substring(r).match(`^/?\\d`))return;let i=e.text.substring(n,r);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[a2]&&i.indexOf(`/`)<0)return;let a=e.createParsingResult(n,i),o=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12){if(s>=1&&s<=12&&o<=31)[s,o]=[o,s];else return null}if(s<1||s>31)return null;if(a.start.assign(`day`,s),a.start.assign(`month`,o),t[a2]){let e=w$(parseInt(t[a2]));a.start.assign(`year`,e)}else{let t=T$(e.refDate,s,o);a.start.imply(`year`,t)}return a.addTag(`parser/SlashDateFormatParser`)}},s2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${U$})(?=\\W|$)`,`i`),c2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${W$})(?=\\W|$)`,`i`),l2=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?s2:c2}innerExtract(e,t){let n=t[1].toLowerCase(),r=G$(t[2]);if(!r)return null;switch(n){case`last`:case`past`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}};function u2(e){return e.text.match(/^[+-]/i)!=null}function d2(e){return e.text.match(/^-/i)!=null}var f2=class extends G1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?u2(n)||d2(n):!1}mergeResults(e,t,n,r){let i=G$(n.text);d2(n)&&(i=y$(i));let a=Z.createRelativeFromReference(b$.fromDate(t.start.date()),i);return new x$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function p2(e){return e.text.match(/\s+(before|from)$/i)!=null}function m2(e){return e.text.match(/\s+(after|since)$/i)!=null}var h2=class extends G1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!p2(t)&&!m2(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=G$(t.text);p2(t)&&(r=y$(r));let i=Z.createRelativeFromReference(b$.fromDate(n.start.date()),r);return new x$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},g2=RegExp(`^\\s*(${L$})`,`i`),_2=1,v2=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=g2.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=R$(r[_2]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},y2=class extends W1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase()===`may`&&!e.text.substring(0,t.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!n.toLowerCase().endsWith(`the second`)||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1)}},b2=/\b(?:last\s+day|end)\s+of\s+(?:the\s+)?$/i,x2=/^(this|last|past|next)\s*(week|month|year)$/i,S2=/^\s+(this|last|past|next)\s+year(?=\W|$)/i;function C2(e){return e===`next`?1:e===`last`||e===`past`?-1:0}var w2=class{refine(e,t){return t.forEach(t=>{let n=e.text.substring(0,t.index).match(b2);if(!n)return;let r=t.text.match(x2);if(r){let n=r[1].toLowerCase();this.moveToEndOfRelativePeriod(e,t,n,r[2].toLowerCase())}else if(t.start.isCertain(`month`)&&!t.start.isCertain(`day`))this.moveToEndOfMonth(e,t);else return;t.start.imply(`hour`,12),t.start.imply(`minute`,0),t.start.imply(`second`,0),t.start.imply(`millisecond`,0),t.start.isCertain(`timezoneOffset`)||t.start.delete(`timezoneOffset`),t.index-=n[0].length,t.text=n[0]+t.text,t.addTag(`refiner/ENEndOfPeriodRefiner`)}),t}moveToEndOfRelativePeriod(e,t,n,r){let i=C2(n),a=e.reference.getDateWithAdjustedTimezone(),o;r===`week`?(o=new Date(a.getTime()),o.setDate(a.getDate()+(6-a.getDay())+i*7)):o=r===`month`?new Date(a.getFullYear(),a.getMonth()+i+1,0):new Date(a.getFullYear()+i,11,31),t.start.assign(`day`,o.getDate()),t.start.assign(`month`,o.getMonth()+1),t.start.assign(`year`,o.getFullYear()),t.start.delete(`weekday`),t.start.imply(`weekday`,o.getDay())}moveToEndOfMonth(e,t){let n=t.start.get(`year`),r=t.start.get(`month`),i=e.text.substring(t.index+t.text.length).match(S2);if(i){let r=i[1].toLowerCase();n=e.reference.getDateWithAdjustedTimezone().getFullYear()+C2(r),t.start.assign(`year`,n),t.text+=i[0]}if(!t.start.isCertain(`year`)){let i=new Date(n,r,0).getDate();n=T$(e.reference.getDateWithAdjustedTimezone(),i,r),t.start.imply(`year`,n)}t.start.assign(`day`,new Date(n,r,0).getDate())}},T2=/(?:last\s+day|end)\s+of\s+(?:the\s+)?month(?=\W|$)/i,E2=class extends ${innerPattern(){return T2}innerExtract(e){let t=e.reference.getDateWithAdjustedTimezone(),n=t.getFullYear(),r=t.getMonth()+1,i=new Date(n,r,0).getDate(),a=e.createParsingComponents();return a.assign(`day`,i),a.assign(`month`,r),a.assign(`year`,n),a.addTag(`parser/ENEndOfCurrentMonthParser`),a}},D2=class{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new H0),t.parsers.push(new W0),t.parsers.push(new E2),t.parsers.push(new p1),t.parsers.push(new $0),t.parsers.push(new l2),t.refiners.unshift(new w2),t.refiners.push(new y2),t}createConfiguration(e=!0,t=!1){let n=E0({parsers:[new o2(t),new X$(e),new n1,new c1(t),new Y0,new D1,new I1(e),new z1(e),new U1(e),new C1],refiners:[new Z1]},e);return n.parsers.unshift(new y1(e)),n.refiners.unshift(new h2),n.refiners.unshift(new f2),n.refiners.unshift(new a0),n.refiners.push(new Z1),n.refiners.push(new v2),n.refiners.push(new q1),n}},O2=class e{parsers;refiners;defaultConfig=new D2;constructor(e){e||=this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new e({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(t,n,r){let i=new k2(t,n,r),a=[];return this.parsers.forEach(t=>{let n=e.executeParser(i,t);a=a.concat(n)}),a.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){a=e.refine(i,a)}),a}static executeParser(e,t){let n=[],r=t.pattern(e),i=e.text,a=e.text,o=r.exec(a);for(;o;){let s=o.index+i.length-a.length;o.index=s;let c=t.extract(e,o);if(!c){a=i.substring(o.index+1),o=r.exec(a);continue}let l=null;c instanceof x$?l=c:c instanceof Z?(l=e.createParsingResult(o.index,o[0]),l.start=c):l=e.createParsingResult(o.index,o[0],c);let u=l.index,d=l.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)),n.push(l),a=i.substring(u+d.length),o=r.exec(a)}return n}},k2=class{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=b$.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Z?e:new Z(this.reference,e)}createParsingResult(e,t,n,r){let i=typeof t==`string`?t:this.text.substring(e,t),a=n?this.createParsingComponents(n):null,o=r?this.createParsingComponents(r):null;return new x$(this.reference,e,i,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}},A2=new D2,j2=new O2(A2.createCasualConfiguration(!1));new O2(A2.createConfiguration(!0,!1));var M2=new O2(A2.createCasualConfiguration(!0)),N2=class extends F1{primaryPrefix(){return`(?:(?:um|von)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|bis)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},P2={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},F2={januar:1,jänner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,märz:3,maerz:3,mär:3,"mär.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12},I2={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,fünf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zwölf:12,zwoelf:12},L2={sek:`second`,sekunde:`second`,sekunden:`second`,min:`minute`,minute:`minute`,minuten:`minute`,h:`hour`,std:`hour`,stunde:`hour`,stunden:`hour`,tag:`day`,tage:`day`,tagen:`day`,woche:`week`,wochen:`week`,monat:`month`,monate:`month`,monaten:`month`,monats:`month`,quartal:`quarter`,quartals:`quarter`,quartale:`quarter`,quartalen:`quarter`,a:`year`,j:`year`,jr:`year`,jahr:`year`,jahre:`year`,jahren:`year`,jahres:`year`},R2=`(?:${Q(I2)}|[0-9]+|[0-9]+\\.[0-9]+|halb?|halbe?|einigen?|wenigen?|mehreren?)`;function z2(e){let t=e.toLowerCase();return I2[t]===void 0?t===`ein`||t===`einer`||t===`einem`||t===`einen`||t===`eine`?1:t.match(/wenigen/)?2:t.match(/halb/)||t.match(/halben/)?.5:t.match(/einigen/)?3:t.match(/mehreren/)?7:parseFloat(t):I2[t]}var B2=`(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)`;function V2(e){return/v/i.test(e)?-parseInt(e.replace(/[^0-9]+/gi,``)):/n/i.test(e)||/z/i.test(e)?parseInt(e.replace(/[^0-9]+/gi,``)):w$(parseInt(e))}var H2=`(${R2})\\s{0,5}(${Q(L2)})\\s{0,5}`,U2=new RegExp(H2,`i`),W2=S$(``,H2);function G2(e){let t={},n=e,r=U2.exec(n);for(;r;)K2(t,r),n=n.substring(r[0].length),r=U2.exec(n);return t}function K2(e,t){let n=z2(t[1]),r=L2[t[2].toLowerCase()];e[r]=n}var q2=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?(${Q(P2)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?(?=\\W|$)`,`i`),J2=1,Y2=3,X2=2,Z2=class extends ${innerPattern(){return q2}innerExtract(e,t){let n=P2[t[X2].toLowerCase()],r=t[J2],i=t[Y2],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/letzte/)?o=`last`:a.match(/chste/)?o=`next`:a.match(/diese/)&&(o=`this`),o0(e.reference,n,o)}},Q2=RegExp(`(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),$2=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),e4=2,t4=3,n4=4,r4=5,i4=class e{pattern(e){return Q2}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=$2.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[e4]),t[t4]!=null&&(r=parseInt(t[t4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[r4]!=null){if(n>12)return null;let e=t[r4].toLowerCase();e.match(/morgen|vormittag/)&&(i=X.AM,n==12&&(n=0)),e.match(/nachmittag|abend/)&&(i=X.PM,n!=12&&(n+=12)),e.match(/nacht/)&&(n==12?(i=X.AM,n=0):n<6?i=X.AM:(i=X.PM,n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[n4]!=null){let n=parseInt(t[n4]);if(n>=60)return null;e.assign(`second`,n)}return e}},a4=class extends K1{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}},o4=class extends X1{patternBetween(){return RegExp(`^\\s*(T|um|am|,|-)?\\s*$`)}},s4=class e extends ${innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return f$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`morgen`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`vormittag`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`mittag`:case`mittags`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`nachmittag`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`abend`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`nacht`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`mitternacht`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},c4=RegExp(`(jetzt|heute|morgen|übermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)`,`i`),l4=1,u4=2,d4=class extends ${innerPattern(e){return c4}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[l4]||``).toLowerCase(),i=(t[u4]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`jetzt`:a=D0(e.reference);break;case`heute`:a=O0(e.reference);break;case`morgen`:n=v$(n,{day:1}),l$(a,n),f$(a,n);break;case`übermorgen`:case`uebermorgen`:n=v$(n,{day:2}),l$(a,n),f$(a,n);break;case`gestern`:n=v$(n,{day:-1}),l$(a,n),f$(a,n);break;case`vorgestern`:n=v$(n,{day:-2}),l$(a,n),f$(a,n);break;default:r.match(/letzte\s*nacht/)&&(n.getHours()>6&&(n=v$(n,{day:-1})),l$(a,n),a.imply(`hour`,0))}return i&&(a=s4.extractTimeComponents(a,i)),a}},f4=RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(F2)})(?:(?:-|/|,?\\s*)(${B2}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),p4=1,m4=2,h4=3,g4=4,_4=class extends ${innerPattern(){return f4}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=F2[t[h4].toLowerCase()],i=parseInt(t[p4]);if(i>31)return t.index+=t[p4].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[g4]){let e=V2(t[g4]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[m4]){let e=parseInt(t[m4]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},v4=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:\\s*((?:nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${R2})?(?:\\s*(nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${Q(L2)})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[2]?z2(t[2]):1,r=L2[t[4].toLowerCase()],i={};i[r]=n;let a=t[1]||t[3]||``;if(a=a.toLowerCase(),a)return(/vor/.test(a)||/letzte/.test(a)||/vergangen/.test(a))&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},y4=class extends ${innerPattern(){return RegExp(`(?:in|für|während)\\s*(${W2})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=G2(t[1]);return Z.createRelativeFromReference(e.reference,n)}},b4=new O2(x4());new O2(S4(!0));function x4(e=!0){let t=S4(!1,e);return t.parsers.unshift(new s4),t.parsers.unshift(new d4),t.parsers.unshift(new v4),t}function S4(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new N2,new i4,new _4,new Z2,new y4],refiners:[new a4,new o4]},e)}var C4=class extends ${innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`maintenant`:return D0(e.reference);case`aujourd'hui`:return O0(e.reference);case`hier`:return k0(e.reference);case`demain`:return A0(e.reference);default:if(r.match(/cette\s*nuit/))l$(i,n),i.imply(`hour`,22),i.imply(`meridiem`,X.PM);else if(r.match(/la\s*veille/)){let e=new Date(n.getTime());e.setDate(e.getDate()-1),l$(i,e),i.imply(`hour`,0)}}return i}},w4=class extends ${innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),r=e.createParsingComponents();switch(n){case`après-midi`:case`aprem`:r.imply(`hour`,14),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/afternoon`);break;case`soir`:r.imply(`hour`,18),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/evening`);break;case`matin`:r.imply(`hour`,8),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/morning`);break;case`a midi`:r.imply(`hour`,12),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/noon`);break;case`à minuit`:r.imply(`hour`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/midnight`)}return r}},T4=class extends F1{primaryPrefix(){return`(?:(?:[àa])\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},E4=class extends X1{patternBetween(){return RegExp(`^\\s*(T|à|a|au|vers|de|,|-)?\\s*$`)}},D4=class extends K1{patternBetween(){return/^\s*(à|a|au|-)\s*$/i}},O4={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6},k4={janvier:1,jan:1,"jan.":1,janv:1,"janv.":1,février:2,fév:2,"fév.":2,févr:2,"févr.":2,fevrier:2,fev:2,"fev.":2,fevr:2,"fevr.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,"juin.":6,jun:6,"jun.":6,juillet:7,juil:7,"juil.":7,jul:7,"jul.":7,août:8,"août.":8,aout:8,"aout.":8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,décembre:12,decembre:12,dec:12,"dec.":12,déc:12,"déc.":12},A4={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13},j4={sec:`second`,seconde:`second`,secondes:`second`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,heure:`hour`,heures:`hour`,jour:`day`,jours:`day`,semaine:`week`,semaines:`week`,mois:`month`,trimestre:`quarter`,trimestres:`quarter`,ans:`year`,année:`year`,années:`year`},M4=`(?:${Q(A4)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function N4(e){let t=e.toLowerCase();return A4[t]===void 0?t===`une`||t===`un`?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t):A4[t]}var P4=`(?:[0-9]{1,2}(?:er)?)`;function F4(e){let t=e.toLowerCase();return t=t.replace(/(?:er)$/i,``),parseInt(t)}var I4=`(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])`;function L4(e){if(/AC/i.test(e))return e=e.replace(/BC/i,``),-parseInt(e);if(/AD/i.test(e)||/C/i.test(e))return e=e.replace(/[^\d]+/i,``),parseInt(e);let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}var R4=`(${M4})\\s{0,5}(${Q(j4)})\\s{0,5}`,z4=new RegExp(R4,`i`),B4=S$(``,R4);function V4(e){let t={},n=e,r=z4.exec(n);for(;r;)H4(t,r),n=n.substring(r[0].length),r=z4.exec(n);return t}function H4(e,t){let n=N4(t[1]),r=j4[t[2].toLowerCase()];e[r]=n}var U4=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(?:ce)\\s*)?(${Q(O4)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,`i`),W4=1,G4=2,K4=class extends ${innerPattern(){return U4}innerExtract(e,t){let n=O4[t[W4].toLowerCase()];if(n===void 0)return null;let r=t[G4];r||=``,r=r.toLowerCase();let i=null;return r==`dernier`?i=`last`:r==`prochain`&&(i=`next`),o0(e.reference,n,i)}},q4=RegExp(`(^|\\s|T)(?:(?:[àa])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),J4=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),Y4=2,X4=3,Z4=4,Q4=5,$4=class e{pattern(e){return q4}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=J4.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[Y4]),t[X4]!=null&&(r=parseInt(t[X4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[Q4]!=null){if(n>12)return null;let e=t[Q4][0].toLowerCase();e==`a`&&(i=X.AM,n==12&&(n=0)),e==`p`&&(i=X.PM,n!=12&&(n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[Z4]!=null){let n=parseInt(t[Z4]);if(n>=60)return null;e.assign(`second`,n)}return e}},e3=RegExp(`(?:on\\s*?)?(${P4})(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${P4}))?(?:-|/|\\s*(?:de)?\\s*)(${Q(k4)})(?:(?:-|/|,?\\s*)(${I4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),t3=1,n3=2,r3=3,i3=4,a3=class extends ${innerPattern(){return e3}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=k4[t[r3].toLowerCase()],i=F4(t[t3]);if(i>31)return t.index+=t[t3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[i3]){let e=L4(t[i3]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[n3]){let e=F4(t[n3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},o3=class extends ${constructor(){super()}innerPattern(){return RegExp(`il y a\\s*(${B4})(?=(?:\\W|$))`,`i`)}innerExtract(e,t){let n=y$(V4(t[1]));return Z.createRelativeFromReference(e.reference,n)}},s3=class extends ${innerPattern(){return RegExp(`(?:dans|en|pour|pendant|de)\\s*(${B4})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=V4(t[1]);return Z.createRelativeFromReference(e.reference,n)}},c3=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:les?|la|l'|du|des?)\\s*(${M4})?(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?\\s*(${Q(j4)})(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[1]?N4(t[1]):1,r=j4[t[3].toLowerCase()],i={};i[r]=n;let a=t[2]||t[4]||``;if(a=a.toLowerCase(),a)return(/derni[eè]re?s?/.test(a)||/pass[ée]e?s?/.test(a)||/pr[ée]c[ée]dents?/.test(a))&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},l3=new O2(u3());new O2(d3(!0));function u3(e=!0){let t=d3(!1,e);return t.parsers.unshift(new C4),t.parsers.unshift(new w4),t.parsers.unshift(new c3),t}function d3(e=!0,t=!0){return E0({parsers:[new o2(t),new a3,new T4,new $4,new o3,new s3,new K4],refiners:[new E4,new D4]},e)}var f3={零:0,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},p3={日:0,月:1,火:2,水:3,木:4,金:5,土:6};function m3(e){return String(e).replace(/\u2019/g,`'`).replace(/\u201D/g,`"`).replace(/\u3000/g,` `).replace(/\uFFE5/g,`¥`).replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,h3)}function h3(e){return String.fromCharCode(e.charCodeAt(0)-65248)}function g3(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?f3[r]:t*f3[r]:t+=f3[r]}return t}var _3=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,v3=1,y3=2,b3=3,x3=4,S3=5,C3=6,w3=class{pattern(){return _3}extract(e,t){let n=parseInt(m3(t[S3])),r=parseInt(m3(t[C3])),i=e.createParsingComponents({day:r,month:n});if(t[v3]&&t[v3].match(`同|今|本`)&&i.assign(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),t[y3]){let e=t[x3],n=e==`元`?1:parseInt(m3(e));t[b3]==`令和`?n+=2018:t[b3]==`平成`?n+=1988:t[b3]==`昭和`&&(n+=1925),i.assign(`year`,n)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}return i}},T3=class extends K1{patternBetween(){return/^\s*(から|-|ー|-|~|~)\s*$/i}},E3=/今日|きょう|本日|ほんじつ|昨日|きのう|明日|あした|今夜|こんや|今夕|こんゆう|今晩|こんばん|今朝|けさ/i;function D3(e){switch(e){case`きょう`:return`今日`;case`ほんじつ`:return`本日`;case`きのう`:return`昨日`;case`あした`:return`明日`;case`こんや`:return`今夜`;case`こんゆう`:return`今夕`;case`こんばん`:return`今晩`;case`けさ`:return`今朝`;default:return e}}var O3=class{pattern(){return E3}extract(e,t){let n=D3(t[0]),r=e.createParsingComponents();switch(n){case`昨日`:return k0(e.reference);case`明日`:return A0(e.reference);case`本日`:case`今日`:return O0(e.reference)}n==`今夜`||n==`今夕`||n==`今晩`?(r.imply(`hour`,22),r.assign(`meridiem`,X.PM)):n.match(`今朝`)&&(r.imply(`hour`,6),r.assign(`meridiem`,X.AM));let i=e.refDate;return r.assign(`day`,i.getDate()),r.assign(`month`,i.getMonth()+1),r.assign(`year`,i.getFullYear()),r}},k3=RegExp(`((?<prefix>前の|次の|今週))?(?<weekday>`+Object.keys(p3).join(`|`)+`)(?:曜日|曜)`,`i`),Tae=class{pattern(){return k3}extract(e,t){let n=p3[t.groups.weekday];if(n===void 0)return null;let r=t.groups.prefix||``,i=null;return r.match(/前の/)?i=`last`:r.match(/次の/)?i=`next`:r.match(/今週/)&&(i=`this`),o0(e.reference,n,i)}},Eae=RegExp(`([0-90-9]{4}[\\/|\\/])?([0-10-1]{0,1}[0-90-9]{1})(?:[\\/|\\/]([0-30-3]{0,1}[0-90-9]{1}))`,`i`),A3=1,Dae=2,Oae=3,kae=class{pattern(){return Eae}extract(e,t){let n=e.createParsingComponents(),r=parseInt(m3(t[Dae])),i=parseInt(m3(t[Oae]));if(r<1||r>12||i<1||i>31)return null;if(n.assign(`day`,i),n.assign(`month`,r),t[A3]){let e=w$(parseInt(m3(t[A3])));n.assign(`year`,e)}else{let t=T$(e.reference.instant,i,r);n.imply(`year`,t)}return n}},Aae=RegExp(`(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)(?:\\s*)(?:時(?!間)|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),jae=RegExp(`(?:^\\s*(?:から|\\-|\\–|\\-|\\~|\\〜)\\s*)(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)(?:\\s*)(?:時|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(f3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),j3=1,M3=2,N3=3,P3=4,F3=5,Mae=class extends ${innerPattern(){return Aae}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]);return n.start=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.start?(t=jae.exec(e.text.substring(n.index+n.text.length)),t?(n.text+=t[0],n.end=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.end?(!n.end.isCertain(`meridiem`)&&n.start.isCertain(`meridiem`)&&(n.end.imply(`meridiem`,n.start.get(`meridiem`)),n.start.get(`meridiem`)===X.PM&&(n.start.get(`hour`)-12>n.end.get(`hour`)?n.end.imply(`meridiem`,X.AM):n.end.get(`hour`)<12&&n.end.assign(`hour`,n.end.get(`hour`)+12))),n.end.date().getTime()<n.start.date().getTime()&&n.end.addDurationAsImplied({day:1}),n):null):n):(t.index+=t[0].length,null)}};function I3(e,t,n,r,i){let a=0,o=-1,s=e.createParsingComponents();if(a=parseInt(m3(t)),isNaN(a)&&(a=g3(t)),a>24)return null;if(n){let e;if(n===`半`?e=30:(e=parseInt(m3(n)),isNaN(e)&&(e=g3(n))),e>=60)return null;s.assign(`minute`,e)}if(r){let e=parseInt(m3(r));if(isNaN(e)&&(e=g3(r)),e>=60)return null;s.assign(`second`,e)}if(i){if(a>12)return null;let e=i;e===`午前`||e[0].toLowerCase()===`a`?(o=X.AM,a===12&&(a=0)):(e===`午後`||e[0].toLowerCase()===`p`)&&(o=X.PM,a!=12&&(a+=12))}return s.assign(`hour`,a),o>=0?s.assign(`meridiem`,o):a<12?s.imply(`meridiem`,X.AM):s.imply(`meridiem`,X.PM),s}var Nae=class extends X1{patternBetween(){return/^\s*(の)?\s*$/i}},Pae=class extends G1{mergeResults(e,t,n){let r=t.clone();return r.text=t.text+e+n.text,r.start.assign(`weekday`,n.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,n.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isCertain(`day`)&&n.start.isOnlyWeekdayComponent()&&!n.start.isCertain(`hour`)&&e.match(/^[,、の]?\s*$/)!==null}},Fae=RegExp(`(?:\\(|\\()(?<weekday>`+Object.keys(p3).join(`|`)+`)(?:\\)|\\))`,`i`),Iae=class{pattern(){return Fae}extract(e,t){let n=p3[t.groups.weekday];return n===void 0?null:o0(e.reference,n)}},Lae=new O2(Rae());new O2(L3(!0));function Rae(){let e=L3(!1);return e.parsers.unshift(new O3),e}function L3(e=!0){let t=E0({parsers:[new w3,new Tae,new Iae,new kae,new Mae],refiners:[new Pae,new Nae,new T3]},e);return t.refiners=t.refiners.filter(e=>!(e instanceof T0)),t}var R3={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,terça:2,"terça-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,sábado:6,sabado:6,sab:6},z3={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,março:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12},zae=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function Bae(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var Vae=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|passado|pr[oó]ximo)\\s*)?(${Q(R3)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|passado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Hae=1,Uae=2,Wae=3,Gae=class extends ${innerPattern(){return Vae}innerExtract(e,t){let n=R3[t[Uae].toLowerCase()];if(n===void 0)return null;let r=t[Hae],i=t[Wae],a=r||i||``;a=a.toLowerCase();let o=null;return a==`passado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),o0(e.reference,n,o)}},Kae=class extends F1{primaryPrefix(){return`(?:(?:ao?|às?|das|da|de|do)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:o)?|\\?)\\s*`}},qae=class extends X1{patternBetween(){return RegExp(`^\\s*(?:,|à)?\\s*$`)}},Jae=class extends K1{patternBetween(){return/^\s*(?:-)\s*$/i}},Yae=RegExp(`([0-9]{1,2})(?:º|ª|°)?(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(z3)})(?:\\s*(?:de|,)?\\s*(${zae}))?(?=\\W|$)`,`i`),B3=1,V3=2,Xae=3,H3=4,Zae=class extends ${innerPattern(){return Yae}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=z3[t[Xae].toLowerCase()],i=parseInt(t[B3]);if(i>31)return t.index+=t[B3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H3]){let e=Bae(t[H3]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V3]){let e=parseInt(t[V3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Qae=class extends ${innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`agora`:return D0(e.reference);case`hoje`:return O0(e.reference);case`amanha`:case`amanhã`:return A0(e.reference);case`ontem`:return k0(e.reference)}return r}},$ae=class extends ${innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noite`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`manha`:case`manhã`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`meia-noite`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`meio-dia`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},eoe=new O2(toe());new O2(U3(!0));function toe(e=!0){let t=U3(!1,e);return t.parsers.push(new Qae),t.parsers.push(new $ae),t}function U3(e=!0,t=!0){return E0({parsers:[new o2(t),new Gae,new Kae,new Zae],refiners:[new qae,new Jae]},e)}var noe=class extends K1{patternBetween(){return/^\s*(tot|-)\s*$/i}},roe=class extends X1{patternBetween(){return RegExp(`^\\s*(om|na|voor|in de|,|-)?\\s*$`)}},ioe=class extends ${innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`nu`:return D0(e.reference);case`vandaag`:return O0(e.reference);case`morgen`:case`morgend`:return A0(e.reference);case`gisteren`:return k0(e.reference)}return r}},aoe=1,ooe=2,soe=class extends ${innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[aoe]===`deze`&&(r.assign(`day`,e.refDate.getDate()),r.assign(`month`,e.refDate.getMonth()+1),r.assign(`year`,e.refDate.getFullYear())),t[ooe].toLowerCase()){case`namiddag`:case`'s namiddags`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`avond`:case`'s avonds'`:r.imply(`meridiem`,X.PM),r.imply(`hour`,20),r.addTag(`casualReference/evening`);break;case`middernacht`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`ochtend`:case`'s ochtends`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`middag`:case`'s middags`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},W3={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6},G3={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,mrt:3,"mrt.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},K3={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12},q3={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,tweeëntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31},J3={sec:`second`,second:`second`,seconden:`second`,min:`minute`,mins:`minute`,minute:`minute`,minuut:`minute`,minuten:`minute`,minuutje:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,uur:`hour`,u:`hour`,uren:`hour`,dag:`day`,dagen:`day`,week:`week`,weken:`week`,maand:`month`,maanden:`month`,jaar:`year`,jr:`year`,jaren:`year`},coe=`(?:${Q(K3)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function loe(e){let t=e.toLowerCase();return K3[t]===void 0?t===`paar`?2:t===`half`||t.match(/halve?/)?.5:parseFloat(t.replace(`,`,`.`)):K3[t]}var Y3=`(?:${Q(q3)}|[0-9]{1,2}(?:ste|de)?)`;function X3(e){let t=e.toLowerCase();return q3[t]===void 0?(t=t.replace(/(?:ste|de)$/i,``),parseInt(t)):q3[t]}var Z3=`(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])`;function Q3(e){return/voor Christus/i.test(e)?(e=e.replace(/voor Christus/i,``),-parseInt(e)):/na Christus/i.test(e)?(e=e.replace(/na Christus/i,``),parseInt(e)):w$(parseInt(e))}var $3=`(${coe})\\s{0,5}(${Q(J3)})\\s{0,5}`,e6=new RegExp($3,`i`),t6=S$(`(?:(?:binnen|in)\\s*)?`,$3);function n6(e){let t={},n=e,r=e6.exec(n);for(;r;)uoe(t,r),n=n.substring(r[0].length),r=e6.exec(n);return t}function uoe(e,t){let n=loe(t[1]),r=J3[t[2].toLowerCase()];e[r]=n}var doe=class extends ${innerPattern(){return RegExp(`(?:binnen|in|binnen de|voor)\\s*(`+t6+`)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=n6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},foe=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${Q(W3)})(?=\\W|$)`,`i`),poe=1,moe=2,hoe=3,goe=class extends ${innerPattern(){return foe}innerExtract(e,t){let n=W3[t[moe].toLowerCase()],r=t[poe],i=t[hoe],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`vorige`?o=`last`:a==`volgende`?o=`next`:a==`deze`&&(o=`this`),o0(e.reference,n,o)}},_oe=RegExp(`(?:on\\s*?)?(${Y3})(?:\\s*(?:tot|\\-|\\–|until|through|till|\\s)\\s*(${Y3}))?(?:-|/|\\s*(?:of)?\\s*)(`+Q(G3)+`)(?:(?:-|/|,?\\s*)(${Z3}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),voe=3,r6=1,i6=2,a6=4,yoe=class extends ${innerPattern(){return _oe}innerExtract(e,t){let n=G3[t[voe].toLowerCase()],r=X3(t[r6]);if(r>31)return t.index+=t[r6].length,null;let i=e.createParsingComponents({day:r,month:n});if(t[a6]){let e=Q3(t[a6]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[i6])return i;let a=X3(t[i6]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},boe=RegExp(`(${Q(G3)})\\s*(?:[,-]?\\s*(${Z3})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),xoe=1,o6=2,s6=class extends ${innerPattern(){return boe}innerExtract(e,t){let n=e.createParsingComponents();n.imply(`day`,1);let r=G3[t[xoe].toLowerCase()];if(n.assign(`month`,r),t[o6]){let e=Q3(t[o6]);n.assign(`year`,e)}else{let t=T$(e.refDate,1,r);n.imply(`year`,t)}return n}},Soe=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Coe=1,woe=2,Toe=class extends ${innerPattern(){return Soe}innerExtract(e,t){let n=parseInt(t[woe]),r=parseInt(t[Coe]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Eoe=class extends F1{primaryPrefix(){return`(?:(?:om)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*`}primarySuffix(){return`(?:\\s*(?:uur))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},Doe=RegExp(`([0-9]{4})[\\.\\/\\s](?:(${Q(G3)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Ooe=1,koe=2,c6=3,Aoe=4,joe=class extends ${innerPattern(){return Doe}innerExtract(e,t){let n=t[c6]?parseInt(t[c6]):G3[t[koe].toLowerCase()];if(n<1||n>12)return null;let r=parseInt(t[Ooe]);return{day:parseInt(t[Aoe]),month:n,year:r}}},Moe=1,Noe=2,Poe=class extends ${innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[Moe].toLowerCase(),r=t[Noe].toLowerCase(),i=e.createParsingComponents(),a=e.refDate;switch(n){case`gisteren`:let e=new Date(a.getTime());e.setDate(e.getDate()-1),l$(i,e);break;case`van`:l$(i,a);break;case`morgen`:let t=new Date(a.getTime());t.setDate(t.getDate()+1),l$(i,t),f$(i,t)}switch(r){case`ochtend`:i.imply(`meridiem`,X.AM),i.imply(`hour`,6);break;case`middag`:i.imply(`meridiem`,X.AM),i.imply(`hour`,12);break;case`namiddag`:i.imply(`meridiem`,X.PM),i.imply(`hour`,15);break;case`avond`:i.imply(`meridiem`,X.PM),i.imply(`hour`,20)}return i}},Foe=RegExp(`(dit|deze|vorig|afgelopen|(?:aan)?komend|over|\\+|-)e?\\s*(${t6})(?=\\W|$)`,`i`),Ioe=1,Loe=2,Roe=class extends ${innerPattern(){return Foe}innerExtract(e,t){let n=t[Ioe].toLowerCase(),r=n6(t[Loe]);switch(n){case`vorig`:case`afgelopen`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},zoe=RegExp(`(dit|deze|(?:aan)?komend|volgend|afgelopen|vorig)e?\\s*(${Q(J3)})(?=\\s*)(?=\\W|$)`,`i`),Boe=1,Voe=2,Hoe=class extends ${innerPattern(){return zoe}innerExtract(e,t){let n=t[Boe].toLowerCase(),r=t[Voe].toLowerCase(),i=J3[r];if(n==`volgend`||n==`komend`||n==`aankomend`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`afgelopen`||n==`vorig`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/maand/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/jaar/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Uoe=RegExp(`(`+t6+`)(?:geleden|voor|eerder)(?=(?:\\W|$))`,`i`),Woe=RegExp(`(`+t6+`)geleden(?=(?:\\W|$))`,`i`),Goe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Woe:Uoe}innerExtract(e,t){let n=y$(n6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},Koe=RegExp(`(`+t6+`)(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))`,`i`),qoe=RegExp(`(`+t6+`)(later|vanaf nu)(?=(?:\\W|$))`,`i`),Joe=1,Yoe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?qoe:Koe}innerExtract(e,t){let n=n6(t[Joe]);return Z.createRelativeFromReference(e.reference,n)}},Xoe=new O2(Zoe());new O2(l6(!0));function Zoe(e=!0){let t=l6(!1,e);return t.parsers.unshift(new ioe),t.parsers.unshift(new soe),t.parsers.unshift(new Poe),t.parsers.unshift(new s6),t.parsers.unshift(new Hoe),t.parsers.unshift(new Roe),t}function l6(e=!0,t=!0){return E0({parsers:[new o2(t),new doe,new yoe,new s6,new goe,new joe,new Toe,new Eoe(e),new Goe(e),new Yoe(e)],refiners:[new roe,new noe]},e)}var u6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},d6={воскресенье:0,воскресенья:0,вск:0,"вск.":0,понедельник:1,понедельника:1,пн:1,"пн.":1,вторник:2,вторника:2,вт:2,"вт.":2,среда:3,среды:3,среду:3,ср:3,"ср.":3,четверг:4,четверга:4,чт:4,"чт.":4,пятница:5,пятницу:5,пятницы:5,пт:5,"пт.":5,суббота:6,субботу:6,субботы:6,сб:6,"сб.":6},f6={январь:1,января:1,январе:1,февраль:2,февраля:2,феврале:2,март:3,марта:3,марте:3,апрель:4,апреля:4,апреле:4,май:5,мая:5,мае:5,июнь:6,июня:6,июне:6,июль:7,июля:7,июле:7,август:8,августа:8,августе:8,сентябрь:9,сентября:9,сентябре:9,октябрь:10,октября:10,октябре:10,ноябрь:11,ноября:11,ноябре:11,декабрь:12,декабря:12,декабре:12},p6={...f6,янв:1,"янв.":1,фев:2,"фев.":2,мар:3,"мар.":3,апр:4,"апр.":4,авг:8,"авг.":8,сен:9,"сен.":9,окт:10,"окт.":10,ноя:11,"ноя.":11,дек:12,"дек.":12},m6={один:1,одна:1,одной:1,одну:1,две:2,два:2,двух:2,три:3,трех:3,трёх:3,четыре:4,четырех:4,четырёх:4,пять:5,пяти:5,шесть:6,шести:6,семь:7,семи:7,восемь:8,восьми:8,девять:9,девяти:9,десять:10,десяти:10,одиннадцать:11,одиннадцати:11,двенадцать:12,двенадцати:12},h6={первое:1,первого:1,второе:2,второго:2,третье:3,третьего:3,четвертое:4,четвертого:4,пятое:5,пятого:5,шестое:6,шестого:6,седьмое:7,седьмого:7,восьмое:8,восьмого:8,девятое:9,девятого:9,десятое:10,десятого:10,одиннадцатое:11,одиннадцатого:11,двенадцатое:12,двенадцатого:12,тринадцатое:13,тринадцатого:13,четырнадцатое:14,четырнадцатого:14,пятнадцатое:15,пятнадцатого:15,шестнадцатое:16,шестнадцатого:16,семнадцатое:17,семнадцатого:17,восемнадцатое:18,восемнадцатого:18,девятнадцатое:19,девятнадцатого:19,двадцатое:20,двадцатого:20,"двадцать первое":21,"двадцать первого":21,"двадцать второе":22,"двадцать второго":22,"двадцать третье":23,"двадцать третьего":23,"двадцать четвертое":24,"двадцать четвертого":24,"двадцать пятое":25,"двадцать пятого":25,"двадцать шестое":26,"двадцать шестого":26,"двадцать седьмое":27,"двадцать седьмого":27,"двадцать восьмое":28,"двадцать восьмого":28,"двадцать девятое":29,"двадцать девятого":29,тридцатое:30,тридцатого:30,"тридцать первое":31,"тридцать первого":31},g6={сек:`second`,секунда:`second`,секунд:`second`,секунды:`second`,секунду:`second`,секундочка:`second`,секундочки:`second`,секундочек:`second`,секундочку:`second`,мин:`minute`,минута:`minute`,минут:`minute`,минуты:`minute`,минуту:`minute`,минуток:`minute`,минутки:`minute`,минутку:`minute`,минуточек:`minute`,минуточки:`minute`,минуточку:`minute`,час:`hour`,часов:`hour`,часа:`hour`,часу:`hour`,часиков:`hour`,часика:`hour`,часике:`hour`,часик:`hour`,день:`day`,дня:`day`,дней:`day`,суток:`day`,сутки:`day`,неделя:`week`,неделе:`week`,недели:`week`,неделю:`week`,недель:`week`,недельке:`week`,недельки:`week`,неделек:`week`,месяц:`month`,месяце:`month`,месяцев:`month`,месяца:`month`,квартал:`quarter`,квартале:`quarter`,кварталов:`quarter`,год:`year`,года:`year`,году:`year`,годов:`year`,лет:`year`,годик:`year`,годика:`year`,годиков:`year`},Qoe=`(?:${Q(m6)}|[0-9]+|[0-9]+\\.[0-9]+|пол|несколько|пар(?:ы|у)|\\s{0,3})`;function $oe(e){let t=e.toLowerCase();return m6[t]===void 0?t.match(/несколько/)?3:t.match(/пол/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):m6[t]}var _6=`(?:${Q(h6)}|[0-9]{1,2}(?:го|ого|е|ое)?)`;function v6(e){let t=e.toLowerCase();return h6[t]===void 0?parseInt(t):h6[t]}var y6=`(?:\\s+(?:году|года|год|г|г.))?`,b6=`(?:[1-9][0-9]{0,3}${y6}\\s*(?:н.э.|до н.э.|н. э.|до н. э.)|[1-2][0-9]{3}${y6}|[5-9][0-9]${y6})`;function x6(e){return/(год|года|г|г.)/i.test(e)&&(e=e.replace(/(год|года|г|г.)/i,``)),/(до н.э.|до н. э.)/i.test(e)?(e=e.replace(/(до н.э.|до н. э.)/i,``),-parseInt(e)):/(н. э.|н.э.)/i.test(e)?(e=e.replace(/(н. э.|н.э.)/i,``),parseInt(e)):w$(parseInt(e))}var S6=`(${Qoe})\\s{0,3}(${Q(g6)})`,C6=new RegExp(S6,`i`),w6=S$(`(?:(?:около|примерно)\\s{0,3})?`,S6);function T6(e){let t={},n=e,r=C6.exec(n);for(;r;)ese(t,r),n=n.substring(r[0].length).trim(),r=C6.exec(n);return t}function ese(e,t){let n=$oe(t[1]),r=g6[t[2].toLowerCase()];e[r]=n}var E6=`(?:(?:около|примерно)\\s*(?:~\\s*)?)?(${w6})${u6.rightBoundary}`,tse=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(E6,u6.flags):RegExp(`(?:в течение|в течении)\\s*${E6}`,u6.flags)}innerExtract(e,t){let n=T6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},D6=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),u6.flags)}innerPatternHasChange(e,t){return!1}},O6=class extends D6{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${u6.rightBoundary}`,u6.flags)}},k6=1,A6=2,nse=3,j6=4,rse=class extends O6{innerPatternString(e){return`(?:с)?\\s*(${_6})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${_6}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(p6)})(?:(?:-|\\/|,?\\s{0,3})(${b6}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=p6[t[nse].toLowerCase()],i=v6(t[k6]);if(i>31)return t.index+=t[k6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[j6]){let e=x6(t[j6]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[A6]){let e=v6(t[A6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},ise=2,M6=3,ase=class extends D6{innerPatternString(e){return`((?:в)\\s*)?(${Q(p6)})\\s*(?:[,-]?\\s*(${b6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[ise].toLowerCase();if(t[0].length<=3&&!f6[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=p6[n];if(r.start.assign(`month`,i),t[M6]){let e=x6(t[M6]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},ose=class extends F1{constructor(e){super(e)}patternFlags(){return u6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|и|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|с)\\s*)??`}primarySuffix(){return`(?:\\s*(?:утра|вечера|после полудня))?(?!\\/)${u6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечера`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`после полудня`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`утра`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},sse=class extends D6{innerPatternString(e){return`(${w6})\\s{0,5}назад(?=(?:\\W|$))`}innerExtract(e,t){let n=y$(T6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},cse=class extends K1{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}},lse=class extends X1{patternBetween(){return RegExp(`^\\s*(T|в|,|-)?\\s*$`)}},use=class extends O6{innerPatternString(e){return`(?:с|со)?\\s*(сегодня|вчера|завтра|послезавтра|послепослезавтра|позапозавчера|позавчера)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сегодня`:return O0(e.reference);case`вчера`:return k0(e.reference);case`завтра`:return A0(e.reference);case`послезавтра`:return M0(e.reference,2);case`послепослезавтра`:return M0(e.reference,3);case`позавчера`:return j0(e.reference,2);case`позапозавчера`:return j0(e.reference,3)}return r}},dse=class extends O6{innerPatternString(e){return`(сейчас|прошлым\\s*вечером|прошлой\\s*ночью|следующей\\s*ночью|сегодня\\s*ночью|этой\\s*ночью|ночью|этим утром|утром|утра|в\\s*полдень|вечером|вечера|в\\s*полночь)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`сейчас`)return D0(e.reference);if(r===`вечером`||r===`вечера`)return F0(e.reference);if(r.endsWith(`утром`)||r.endsWith(`утра`))return R0(e.reference);if(r.match(/в\s*полдень/))return B0(e.reference);if(r.match(/прошлой\s*ночью/))return P0(e.reference);if(r.match(/прошлым\s*вечером/))return I0(e.reference);if(r.match(/следующей\s*ночью/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),l$(i,t),i.imply(`hour`,0)}return r.match(/в\s*полночь/)||r.endsWith(`ночью`)?L0(e.reference):i}},fse=1,pse=2,mse=3,hse=class extends O6{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:(эту|этот|прошлый|прошлую|следующий|следующую|следующего)\\s*)?(${Q(d6)})(?:\\s*(?:,|\\)|)))?(?:\\s*на\\s*(этой|прошлой|следующей)\\s*неделе)?`}innerExtract(e,t){let n=d6[t[pse].toLowerCase()],r=t[fse],i=t[mse],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`прошлый`||a==`прошлую`||a==`прошлой`?o=`last`:a==`следующий`||a==`следующую`||a==`следующей`||a==`следующего`?o=`next`:(a==`этот`||a==`эту`||a==`этой`)&&(o=`this`),o0(e.reference,n,o)}},gse=1,_se=2,vse=class extends O6{innerPatternString(e){return`(в прошлом|на прошлой|на следующей|в следующем|на этой|в этом)\\s*(${Q(g6)})`}innerExtract(e,t){let n=t[gse].toLowerCase(),r=g6[t[_se].toLowerCase()];if(n==`на следующей`||n==`в следующем`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`в прошлом`||n==`на прошлой`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},yse=class extends O6{innerPatternString(e){return`(эти|последние|прошлые|следующие|после|спустя|через|\\+|-)\\s*(${w6})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=T6(t[2]);switch(n){case`последние`:case`прошлые`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},bse=new O2(xse());new O2(N6(!0));function xse(){let e=N6(!1);return e.parsers.unshift(new use),e.parsers.unshift(new dse),e.parsers.unshift(new ase),e.parsers.unshift(new vse),e.parsers.unshift(new yse),e}function N6(e=!0){return E0({parsers:[new o2(!0),new tse,new rse,new hse,new ose(e),new sse],refiners:[new lse,new cse]},e)}var P6={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miércoles:3,miercoles:3,mié:3,mie:3,jueves:4,jue:4,viernes:5,vie:5,sábado:6,sabado:6,sáb:6,sab:6},F6={enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,setiembre:9,octubre:10,noviembre:11,diciembre:12},I6={...F6,ene:1,"ene.":1,feb:2,"feb.":2,mar:3,"mar.":3,abr:4,"abr.":4,may:5,"may.":5,jun:6,"jun.":6,jul:7,"jul.":7,ago:8,"ago.":8,sep:9,"sep.":9,oct:10,"oct.":10,nov:11,"nov.":11,dic:12,"dic.":12},L6={uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13},R6={primero:1,primera:1,segundo:2,segunda:2,tercero:3,tercera:3,cuarto:4,cuarta:4,quinto:5,quinta:5,sexto:6,sexta:6,séptimo:7,septimo:7,séptima:7,septima:7,octavo:8,octava:8,noveno:9,novena:9,décimo:10,decimo:10,décima:10,decima:10,undécimo:11,undecimo:11,duodécimo:12,duodecimo:12,decimotercero:13,decimocuarto:14,decimoquinto:15,decimosexto:16,decimoséptimo:17,decimoseptimo:17,decimoctavo:18,decimonoveno:19,vigésimo:20,vigesimo:20,"vigésimo primero":21,"vigesimo primero":21,"vigésimo segundo":22,"vigesimo segundo":22,"vigésimo tercero":23,"vigesimo tercero":23,"vigésimo cuarto":24,"vigesimo cuarto":24,"vigésimo quinto":25,"vigesimo quinto":25,"vigésimo sexto":26,"vigesimo sexto":26,"vigésimo séptimo":27,"vigesimo septimo":27,"vigésimo octavo":28,"vigesimo octavo":28,"vigésimo noveno":29,"vigesimo noveno":29,trigésimo:30,trigesimo:30,"trigésimo primero":31,"trigesimo primero":31},z6={sec:`second`,segundo:`second`,segundos:`second`,min:`minute`,mins:`minute`,minuto:`minute`,minutos:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hora:`hour`,horas:`hour`,día:`day`,días:`day`,dia:`day`,dias:`day`,semana:`week`,semanas:`week`,mes:`month`,meses:`month`,cuarto:`quarter`,cuartos:`quarter`,año:`year`,años:`year`,ano:`year`,anos:`year`},Sse=`(?:${Q(L6)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`;function Cse(e){let t=e.toLowerCase();return L6[t]===void 0?t===`un`||t===`una`||t===`uno`?1:t.match(/algunos?/)||t.match(/unos?/)?3:t.match(/media?/)?.5:parseFloat(t):L6[t]}var B6=`(?:${Q(R6)}|[0-9]{1,2}(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)?)`;function V6(e){let t=e.toLowerCase();return R6[t]===void 0?(t=t.replace(/(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)$/i,``),parseInt(t)):R6[t]}var H6=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function U6(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var W6=`(${Sse})\\s{0,5}(${Q(z6)})\\s{0,5}`,G6=new RegExp(W6,`i`),K6=S$(``,W6);function wse(e){let t={},n=e,r=G6.exec(n);for(;r;)Tse(t,r),n=n.substring(r[0].length),r=G6.exec(n);return t}function Tse(e,t){let n=Cse(t[1]),r=z6[t[2].toLowerCase()];e[r]=n}var Ese=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|pasado|pr[oó]ximo)\\s*)?(${Q(P6)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|pasado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Dse=1,Ose=2,kse=3,Ase=class extends ${innerPattern(){return Ese}innerExtract(e,t){let n=P6[t[Ose].toLowerCase()];if(n===void 0)return null;let r=t[Dse],i=t[kse],a=r||i||``;a=a.toLowerCase();let o=null;return a==`pasado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),o0(e.reference,n,o)}},jse=class extends F1{primaryPrefix(){return`(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*`}},Mse=class extends X1{patternBetween(){return RegExp(`^\\s*(?:,|de|aslas|a|a\\s+la|en\\s+la)?\\s*$`,`i`)}},Nse=class extends K1{patternBetween(){return/^\s*(?:-)\s*$/i}},Pse=RegExp(`(${B6})(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*(${B6}))?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(I6)})(?:\\s*(?:de|,)?\\s*(${H6}))?(?=\\W|$)`,`i`),q6=1,J6=2,Fse=3,Y6=4,Ise=class extends ${innerPattern(){return Pse}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=I6[t[Fse].toLowerCase()],i=V6(t[q6]);if(i>31)return t.index+=t[q6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[Y6]){let e=U6(t[Y6]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[J6]){let e=V6(t[J6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Lse=class extends ${innerPattern(e){return/(ahora|hoy|mañana|manana|ayer)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();if((n===`mañana`||n===`manana`)&&e.text.substring(0,t.index).match(/(?:^|[^\p{L}\p{N}\p{M}_])(?:a|en)\s+la\s*$/iu))return null;switch(n){case`ahora`:return D0(e.reference);case`hoy`:return O0(e.reference);case`mañana`:case`manana`:return A0(e.reference);case`ayer`:return k0(e.reference)}return r}},Rse=class extends ${innerPattern(){return/(?:esta\s*)?(mañana|manana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noche`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`mañana`:case`manana`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`medianoche`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),l$(r,e),f$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`mediodia`:case`mediodía`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},zse=RegExp(`(?:(?:en|por|durante|de|dentro de)\\s*)?(${K6})(?=\\W|$)`,`i`),Bse=RegExp(`(?:en|por|durante|de|dentro de)\\s*(${K6})(?=\\W|$)`,`i`),Vse=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return!this.strictMode&&e.option.forwardDate?zse:Bse}innerExtract(e,t){let n=wse(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Hse=RegExp(`((?:en)\\s*)?(${Q(I6)})\\s*(?:(?:,|-|de)?\\s*(${H6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Use=1,Wse=2,X6=3,Gse=RegExp(`(?:^|[^\\p{L}\\p{N}\\p{M}_])${B6}(?:\\s*(?:desde|de|-|–|ao?|\\s)\\s*${B6})?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)$`,`iu`),Kse=class extends ${innerPattern(){return Hse}innerExtract(e,t){let n=t[Wse].toLowerCase();if(e.text.substring(0,t.index).match(Gse)||t[0].length<=3&&!F6[n])return null;let r=e.createParsingResult(t.index+(t[Use]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ESMonthNameParser`);let i=I6[n];if(r.start.assign(`month`,i),t[X6]){let e=U6(t[X6]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},qse=new O2(Jse());new O2(Z6(!0));function Jse(e=!0){let t=Z6(!1,e);return t.parsers.push(new Lse),t.parsers.push(new Rse),t.parsers.push(new Kse),t}function Z6(e=!0,t=!0){return E0({parsers:[new o2(t),new Ase,new jse,new Ise,new Vse(e)],refiners:[new Mse,new Nse]},e)}var Q6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},$6={неділя:0,неділі:0,неділю:0,нд:0,"нд.":0,понеділок:1,понеділка:1,пн:1,"пн.":1,вівторок:2,вівторка:2,вт:2,"вт.":2,середа:3,середи:3,середу:3,ср:3,"ср.":3,четвер:4,четверга:4,четвергу:4,чт:4,"чт.":4,"п'ятниця":5,"п'ятниці":5,"п'ятницю":5,пт:5,"пт.":5,субота:6,суботи:6,суботу:6,сб:6,"сб.":6},e8={січень:1,січня:1,січні:1,лютий:2,лютого:2,лютому:2,березень:3,березня:3,березні:3,квітень:4,квітня:4,квітні:4,травень:5,травня:5,травні:5,червень:6,червня:6,червні:6,липень:7,липня:7,липні:7,серпень:8,серпня:8,серпні:8,вересень:9,вересня:9,вересні:9,жовтень:10,жовтня:10,жовтні:10,листопад:11,листопада:11,листопаду:11,грудень:12,грудня:12,грудні:12},t8={...e8,січ:1,"січ.":1,лют:2,"лют.":2,бер:3,"бер.":3,квіт:4,"квіт.":4,трав:5,"трав.":5,черв:6,"черв.":6,лип:7,"лип.":7,серп:8,"серп.":8,сер:8,"cер.":8,вер:9,"вер.":9,верес:9,"верес.":9,жовт:10,"жовт.":10,листоп:11,"листоп.":11,груд:12,"груд.":12},n8={один:1,одна:1,одної:1,одну:1,дві:2,два:2,двох:2,три:3,трьох:3,чотири:4,чотирьох:4,"п'ять":5,"п'яти":5,шість:6,шести:6,сім:7,семи:7,вісім:8,восьми:8,"дев'ять":9,"дев'яти":9,десять:10,десяти:10,одинадцять:11,одинадцяти:11,дванадцять:12,дванадцяти:12},r8={перше:1,першого:1,друге:2,другого:2,третє:3,третього:3,четверте:4,четвертого:4,"п'яте":5,"п'ятого":5,шосте:6,шостого:6,сьоме:7,сьомого:7,восьме:8,восьмого:8,"дев'яте":9,"дев'ятого":9,десяте:10,десятого:10,одинадцяте:11,одинадцятого:11,дванадцяте:12,дванадцятого:12,тринадцяте:13,тринадцятого:13,чотирнадцяте:14,чотинрнадцятого:14,"п'ятнадцяте":15,"п'ятнадцятого":15,шістнадцяте:16,шістнадцятого:16,сімнадцяте:17,сімнадцятого:17,вісімнадцяте:18,вісімнадцятого:18,"дев'ятнадцяте":19,"дев'ятнадцятого":19,двадцяте:20,двадцятого:20,"двадцять перше":21,"двадцять першого":21,"двадцять друге":22,"двадцять другого":22,"двадцять третє":23,"двадцять третього":23,"двадцять четверте":24,"двадцять четвертого":24,"двадцять п'яте":25,"двадцять п'ятого":25,"двадцять шосте":26,"двадцять шостого":26,"двадцять сьоме":27,"двадцять сьомого":27,"двадцять восьме":28,"двадцять восьмого":28,"двадцять дев'яте":29,"двадцять дев'ятого":29,тридцяте:30,тридцятого:30,"тридцять перше":31,"тридцять першого":31},i8={сек:`second`,секунда:`second`,секунд:`second`,секунди:`second`,секунду:`second`,секундочок:`second`,секундочки:`second`,секундочку:`second`,хв:`minute`,хвилина:`minute`,хвилин:`minute`,хвилини:`minute`,хвилину:`minute`,хвилинок:`minute`,хвилинки:`minute`,хвилинку:`minute`,хвилиночок:`minute`,хвилиночки:`minute`,хвилиночку:`minute`,год:`hour`,година:`hour`,годин:`hour`,години:`hour`,годину:`hour`,годинка:`hour`,годинок:`hour`,годинки:`hour`,годинку:`hour`,день:`day`,дня:`day`,днів:`day`,дні:`day`,доба:`day`,добу:`day`,тиждень:`week`,тижню:`week`,тижня:`week`,тижні:`week`,тижнів:`week`,місяць:`month`,місяців:`month`,місяці:`month`,місяця:`month`,квартал:`quarter`,кварталу:`quarter`,квартала:`quarter`,кварталів:`quarter`,кварталі:`quarter`,рік:`year`,року:`year`,році:`year`,років:`year`,роки:`year`},Yse=`(?:${Q(n8)}|[0-9]+|[0-9]+\\.[0-9]+|пів|декілька|пар(?:у)|\\s{0,3})`;function Xse(e){let t=e.toLowerCase();return n8[t]===void 0?t.match(/декілька/)?2:t.match(/пів/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):n8[t]}var a8=`(?:${Q(r8)}|[0-9]{1,2}(?:го|ого|е)?)`;function o8(e){let t=e.toLowerCase();return r8[t]===void 0?parseInt(t):r8[t]}var s8=`(?:\\s+(?:року|рік|р|р.))?`,c8=`(?:[1-9][0-9]{0,3}${s8}\\s*(?:н.е.|до н.е.|н. е.|до н. е.)|[1-2][0-9]{3}${s8}|[5-9][0-9]${s8})`;function l8(e){return/(рік|року|р|р.)/i.test(e)&&(e=e.replace(/(рік|року|р|р.)/i,``)),/(до н.е.|до н. е.)/i.test(e)?(e=e.replace(/(до н.е.|до н. е.)/i,``),-parseInt(e)):/(н. е.|н.е.)/i.test(e)?(e=e.replace(/(н. е.|н.е.)/i,``),parseInt(e)):w$(parseInt(e))}var u8=`(${Yse})\\s{0,3}(${Q(i8)})`,d8=new RegExp(u8,`i`),f8=S$(`(?:(?:близько|приблизно)\\s{0,3})?`,u8);function p8(e){let t={},n=e,r=d8.exec(n);for(;r;)Zse(t,r),n=n.substring(r[0].length).trim(),r=d8.exec(n);return t}function Zse(e,t){let n=Xse(t[1]),r=i8[t[2].toLowerCase()];e[r]=n}var m8=`(?:(?:приблизно|орієнтовно)\\s*(?:~\\s*)?)?(${f8})${Q6.rightBoundary}`,Qse=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(m8,Q6.flags):RegExp(`(?:протягом|на протязі|протягом|упродовж|впродовж)\\s*${m8}`,Q6.flags)}innerExtract(e,t){let n=p8(t[1]);return Z.createRelativeFromReference(e.reference,n)}},h8=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),Q6.flags)}innerPatternHasChange(e,t){return!1}},g8=class extends h8{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${Q6.rightBoundary}`,Q6.flags)}},_8=1,v8=2,$se=3,y8=4,ece=class extends g8{innerPatternString(e){return`(?:з|із)?\\s*(${a8})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${a8}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(t8)})(?:(?:-|\\/|,?\\s{0,3})(${c8}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=t8[t[$se].toLowerCase()],i=o8(t[_8]);if(i>31)return t.index+=t[_8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[y8]){let e=l8(t[y8]);n.start.assign(`year`,e)}else{let t=T$(e.reference.instant,i,r);n.start.imply(`year`,t)}if(t[v8]){let e=o8(t[v8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},tce=2,b8=3,nce=class extends h8{innerPatternString(e){return`((?:в|у)\\s*)?(${Q(t8)})\\s*(?:[,-]?\\s*(${c8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[tce].toLowerCase();if(t[0].length<=3&&!e8[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=t8[n];if(r.start.assign(`month`,i),t[b8]){let e=l8(t[b8]);r.start.assign(`year`,e)}else{let t=T$(e.reference.instant,1,i);r.start.imply(`year`,t)}return r}},rce=class extends F1{constructor(e){super(e)}patternFlags(){return Q6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|і|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|у|о|об|з|із|від)\\s*)??`}primarySuffix(){return`(?:\\s*(?:ранку|вечора|по обіді|після обіду))?(?!\\/)${Q6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечора`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`по обіді`)||t[0].endsWith(`після обіду`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`ранку`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},ice=class extends h8{innerPatternString(e){return`(${f8})\\s{0,5}тому(?=(?:\\W|$))`}innerExtract(e,t){let n=y$(p8(t[1]));return Z.createRelativeFromReference(e.reference,n)}},ace=class extends K1{patternBetween(){return/^\s*(і до|і по|до|по|-)\s*$/i}},oce=class extends X1{patternBetween(){return RegExp(`^\\s*(T|в|у|о|,|-)?\\s*$`)}},sce=class extends g8{innerPatternString(e){return`(?:з|із|від)?\\s*(сьогодні|вчора|завтра|післязавтра|післяпіслязавтра|позапозавчора|позавчора)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сьогодні`:return O0(e.reference);case`вчора`:return k0(e.reference);case`завтра`:return A0(e.reference);case`післязавтра`:return M0(e.reference,2);case`післяпіслязавтра`:return M0(e.reference,3);case`позавчора`:return j0(e.reference,2);case`позапозавчора`:return j0(e.reference,3)}return r}},cce=class extends g8{innerPatternString(e){return`(зараз|минулого\\s*вечора|минулої\\s*ночі|наступної\\s*ночі|сьогодні\\s*вночі|цієї\\s*ночі|цього ранку|вранці|ранку|зранку|опівдні|ввечері|вечора|опівночі|вночі)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`зараз`)return D0(e.reference);if(r===`ввечері`||r===`вечора`)return F0(e.reference);if(r.endsWith(`вранці`)||r.endsWith(`ранку`)||r.endsWith(`зранку`))return R0(e.reference);if(r.endsWith(`опівдні`))return B0(e.reference);if(r.match(/минулої\s*ночі/))return P0(e.reference);if(r.match(/минулого\s*вечора/))return I0(e.reference);if(r.match(/наступної\s*ночі/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),l$(i,t),i.imply(`hour`,1)}return r.match(/цієї\s*ночі/)||r.endsWith(`опівночі`)||r.endsWith(`вночі`)?L0(e.reference):i}},lce=1,uce=2,dce=3,fce=class extends g8{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:у\\s*?)?(?:(цей|минулого|минулий|попередній|попереднього|наступного|наступний|наступному)\\s*)?(${Q($6)})(?:\\s*(?:,|\\)|)))?(?:\\s*(на|у|в)\\s*(цьому|минулому|наступному)\\s*тижні)?`}innerExtract(e,t){let n=$6[t[uce].toLocaleLowerCase()],r=t[lce],i=t[dce],a=r||i;a||=``,a=a.toLocaleLowerCase();let o=null;return a==`минулого`||a==`минулий`||a==`попередній`||a==`попереднього`?o=`last`:a==`наступного`||a==`наступний`?o=`next`:(a==`цей`||a==`цього`||a==`цьому`)&&(o=`this`),o0(e.reference,n,o)}},pce=1,mce=2,hce=class extends g8{innerPatternString(e){return`(в минулому|у минулому|на минулому|минулого|на наступному|в наступному|у наступному|наступного|на цьому|в цьому|у цьому|цього)\\s*(${Q(i8)})(?=\\s*)`}innerExtract(e,t){let n=t[pce].toLowerCase(),r=i8[t[mce].toLowerCase()];if(n==`на наступному`||n==`в наступному`||n==`у наступному`||n==`наступного`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`на минулому`||n==`в минулому`||n==`у минулому`||n==`минулого`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},gce=class extends g8{innerPatternString(e){return`(ці|останні|минулі|майбутні|наступні|після|через|\\+|-)\\s*(${f8})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=p8(t[3]);switch(n){case`останні`:case`минулі`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},_ce=new O2(vce());new O2(x8(!0));function vce(){let e=x8(!1);return e.parsers.unshift(new sce),e.parsers.unshift(new cce),e.parsers.unshift(new nce),e.parsers.unshift(new hce),e.parsers.unshift(new gce),e}function x8(e){return E0({parsers:[new w0,new o2(!0),new Qse,new ece,new fce,new rce(e),new ice],refiners:[new oce,new ace]},e)}var S8={domenica:0,dom:0,"dom.":0,lunedì:1,lunedi:1,lun:1,"lun.":1,martedì:2,martedi:2,mar:2,"mar.":2,mercoledì:3,mercoledi:3,mer:3,"mer.":3,giovedì:4,giovedi:4,gio:4,"gio.":4,venerdì:5,venerdi:5,ven:5,"ven.":5,sabato:6,sab:6,"sab.":6},C8={gennaio:1,febbraio:2,marzo:3,aprile:4,maggio:5,giugno:6,luglio:7,agosto:8,settembre:9,ottobre:10,novembre:11,dicembre:12},w8={...C8,gen:1,"gen.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,mag:5,"mag.":5,giu:6,"giu.":6,lug:7,"lug.":7,ago:8,"ago.":8,set:9,"set.":9,sett:9,"sett.":9,ott:10,"ott.":10,nov:11,"nov.":11,dic:12,"dic.":12},T8={uno:1,una:1,un:1,due:2,tre:3,quattro:4,cinque:5,sei:6,sette:7,otto:8,nove:9,dieci:10,undici:11,dodici:12},E8={primo:1,prima:1,"1°":1,"1ª":1,secondo:2,seconda:2,"2°":2,"2ª":2,terzo:3,terza:3,"3°":3,"3ª":3,quarto:4,quarta:4,"4°":4,"4ª":4,quinto:5,quinta:5,"5°":5,"5ª":5,sesto:6,sesta:6,"6°":6,"6ª":6,settimo:7,settima:7,"7°":7,"7ª":7,ottavo:8,ottava:8,"8°":8,"8ª":8,nono:9,nona:9,"9°":9,"9ª":9,decimo:10,decima:10,"10°":10,"10ª":10,undicesimo:11,undicesima:11,"11°":11,"11ª":11,dodicesimo:12,dodicesima:12,"12°":12,"12ª":12,tredicesimo:13,tredicesima:13,"13°":13,"13ª":13,quattordicesimo:14,quattordicesima:14,"14°":14,"14ª":14,quindicesimo:15,quindicesima:15,"15°":15,"15ª":15,sedicesimo:16,sedicesima:16,"16°":16,"16ª":16,diciassettesimo:17,diciassettesima:17,"17°":17,"17ª":17,diciottesimo:18,diciottesima:18,"18°":18,"18ª":18,diciannovesimo:19,diciannovesima:19,"19°":19,"19ª":19,ventesimo:20,ventesima:20,"20°":20,"20ª":20,ventunesimo:21,ventunesima:21,"21°":21,"21ª":21,ventiduesimo:22,ventiduesima:22,"22°":22,"22ª":22,ventitreesimo:23,ventitreesima:23,"23°":23,"23ª":23,ventiquattresimo:24,ventiquattresima:24,"24°":24,"24ª":24,venticinquesimo:25,venticinquesima:25,"25°":25,"25ª":25,ventiseiesimo:26,ventiseiesima:26,"26°":26,"26ª":26,ventisettesimo:27,ventisettesima:27,"27°":27,"27ª":27,ventottesimo:28,ventottesima:28,"28°":28,"28ª":28,ventinovesimo:29,ventinovesima:29,"29°":29,"29ª":29,trentesimo:30,trentesima:30,"30°":30,"30ª":30,trentunesimo:31,trentunesima:31,"31°":31,"31ª":31},D8={secondo:`second`,secondi:`second`,minuto:`minute`,minuti:`minute`,ora:`hour`,ore:`hour`,giorno:`day`,giorni:`day`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`},O8={s:`second`,sec:`second`,secondo:`second`,secondi:`second`,m:`minute`,min:`minute`,minuto:`minute`,minuti:`minute`,h:`hour`,ora:`hour`,ore:`hour`,g:`day`,gg:`day`,giorno:`day`,giorni:`day`,sett:`week`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trim:`quarter`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`,...D8},k8=`(?:${Q(T8)}|[0-9]+|[0-9]+\\.[0-9]+|mezz[oa]?(?:\\s{0,2})?|un(?:'|\\s{0,2})?|qualche|alcuni|paio\\s{0,2}(?:di)?)`;function yce(e){let t=e.toLowerCase();return T8[t]===void 0?t===`un`||t===`un'`||t===`una`||t===`uno`?1:t.match(/qualche/)?3:t.match(/mezz/)?.5:t.match(/paio/)?2:t.match(/alcuni/)?7:parseFloat(t):T8[t]}var A8=`(?:${Q(E8)}|[0-9]{1,2}(?:°|ª|º)?)`;function j8(e){let t=e.toLowerCase();return E8[t]===void 0?(t=t.replace(/(?:°|ª|º)$/i,``),parseInt(t)):E8[t]}var M8=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])`;function N8(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):w$(parseInt(e))}var P8=`(${k8})\\s{0,3}(${Q(O8)})`,F8=new RegExp(P8,`i`),bce=`(${k8})\\s{0,3}(${Q(D8)})`,I8=`\\s{0,5},?(?:\\s*e)?\\s{0,5}`,L8=S$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,P8,I8),R8=S$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,bce,I8);function z8(e){let t={},n=e,r=F8.exec(n);for(;r;)xce(t,r),n=n.substring(r[0].length).trim(),r=F8.exec(n);return Object.keys(t).length==0?null:t}function xce(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=yce(t[1]),r=O8[t[2].toLowerCase()];e[r]=n}var Sce=RegExp(`(?:(?:entro|tra|fra|in|per)\\s*)?(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),Cce=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),wce=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${R8})(?=\\W|$)`,`i`),Tce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?wce:e.option.forwardDate?Sce:Cce}innerExtract(e,t){if(t[0].match(/^per\s*(il|la|l')\s*\w+/))return null;let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Ece=RegExp(`(?:il\\s{0,3})?(${A8})(?:\\s{0,3}(?:al|\\-|\\–|fino\\s*al?)?\\s{0,3}(${A8}))?(?:-|/|\\s{0,3}(?:di)?\\s{0,3})(${Q(w8)})(?:(?:-|/|,?\\s{0,3})(${M8}(?!\\w)))?(?=\\W|$)`,`i`),B8=1,V8=2,Dce=3,H8=4,Oce=class extends ${innerPattern(){return Ece}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=w8[t[Dce].toLowerCase()],i=j8(t[B8]);if(i>31)return t.index+=t[B8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H8]){let e=N8(t[H8]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V8]){let e=j8(t[V8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},kce=RegExp(`(${Q(w8)})(?:-|/|\\s*,?\\s*)(${A8})(?!\\s*(?:am|pm))\\s*(?:(?:al|\\-)\\s*(${A8})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${M8}))?(?=\\W|$)(?!\\:\\d)`,`i`),Ace=1,U8=2,W8=3,G8=4,jce=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return kce}innerExtract(e,t){let n=w8[t[Ace].toLowerCase()],r=j8(t[U8]);if(r>31||this.shouldSkipYearLikeDate&&!t[W8]&&!t[G8]&&t[U8].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ITMonthNameMiddleEndianParser`);if(t[G8]){let e=N8(t[G8]);i.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.imply(`year`,t)}if(!t[W8])return i;let a=j8(t[W8]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Mce=RegExp(`((?:a|in|di|del)\\s*)?(${Q(w8)})\\s*(?:(?:,|-|del)?\\s*(${M8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Nce=1,Pce=2,K8=3,Fce=class extends ${innerPattern(){return Mce}innerExtract(e,t){let n=t[Pce].toLowerCase();if(t[0].length<=3&&!C8[n])return null;let r=e.createParsingResult(t.index+(t[Nce]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ITMonthNameParser`);let i=w8[n];if(r.start.assign(`month`,i),t[K8]){let e=N8(t[K8]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},Ice=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(w8)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Lce=1,Rce=2,q8=3,zce=4,Bce=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return Ice}innerExtract(e,t){let n=parseInt(t[Lce]),r=parseInt(t[zce]),i=t[q8]?parseInt(t[q8]):w8[t[Rce].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},Vce=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Hce=1,Uce=2,Wce=class extends ${innerPattern(){return Vce}innerExtract(e,t){let n=parseInt(t[Uce]),r=parseInt(t[Hce]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Gce=class extends F1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a|fino\\s*a|alle?|\\?)\\s*`}primaryPrefix(){return`(?:(?:alle?|dalle?)\\s*)??`}primarySuffix(){return`(?:\\s*(?:di\\s*(?:sera|notte|mattina|pomeriggio)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].match(/di\s*(?:sera|notte)/i)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].match(/di\s*pomeriggio/i)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].match(/di\s*mattina/i)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ITTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ITTimeExpressionParser`),r}},Kce=RegExp(`(${L8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),qce=RegExp(`(${R8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),Jce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?qce:Kce}innerExtract(e,t){let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},Yce=RegExp(`(${L8})\\s{0,5}(?:dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=(?:\\W|$))`,`i`),Xce=RegExp(`(${R8})\\s{0,5}(dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=\\W|$)`,`i`),Zce=1,Qce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Xce:Yce}innerExtract(e,t){let n=z8(t[Zce]);return n?Z.createRelativeFromReference(e.reference,n):null}},$ce=class extends K1{patternBetween(){return/^\s*(a|al|-|–|fino\s*a|fino\s*al)\s*$/i}},J8=class extends X1{patternBetween(){return RegExp(`^\\s*(T|alle?|dopo\\s*le|prima\\s*delle?|,|-|\\.|∙|:)?\\s*$`)}},ele=/(adesso|ora|oggi|stasera|stanotte|domani|dopodomani|ieri|ieri\s*sera|ieri\s*notte)(?=\W|$)/i,tle=class extends ${innerPattern(e){return ele}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`adesso`:case`ora`:i=D0(e.reference);break;case`oggi`:i=O0(e.reference);break;case`ieri`:i=k0(e.reference);break;case`domani`:i=A0(e.reference);break;case`stasera`:case`stanotte`:i=N0(e.reference);break;case`dopodomani`:i=M0(e.reference,2);break;default:if(r.match(/ieri\s*sera/)||r.match(/ieri\s*notte/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}l$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ITCasualDateParser`),i}},nle=/(stamattina|stasera|stanotte|stamani)|(questa\s*)?(mattina|pomeriggio|sera|notte|mezzanotte|mezzogiorno)(?=\W|$)/i,rle=class extends ${innerPattern(){return nle}innerExtract(e,t){let n=null;if(t[1])switch(t[1].toLowerCase()){case`stamattina`:case`stamani`:n=R0(e.reference);break;case`stasera`:case`stanotte`:n=F0(e.reference)}else if(t[3])switch(t[3].toLowerCase()){case`pomeriggio`:n=z0(e.reference);break;case`sera`:case`notte`:n=F0(e.reference);break;case`mezzanotte`:n=L0(e.reference);break;case`mattina`:n=R0(e.reference);break;case`mezzogiorno`:n=B0(e.reference)}return n&&n.addTag(`parser/ITCasualTimeParser`),n}},ile=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(questo|questa|quest'|scorso|scorsa|prossimo|prossima)\\s*)?(${Q(S8)}|weekend|fine\\s*settimana)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(scorso|scorsa|prossimo|prossima)(?:\\s*settimana)?)?(?=\\W|$)`,`i`),ale=1,ole=2,sle=3,cle=class extends ${innerPattern(){return ile}innerExtract(e,t){let n=t[ale],r=t[sle],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`scorso`||i==`scorsa`?a=`last`:i==`prossimo`||i==`prossima`?a=`next`:(i==`questo`||i==`questa`||i==`quest'`)&&(a=`this`);let o=t[ole].toLowerCase(),s;if(S8[o]!==void 0)s=S8[o];else if(o==`weekend`||o.match(/fine\s*settimana/))s=a==`last`?s$.SUNDAY:s$.SATURDAY;else return null;return o0(e.reference,s,a)}},lle=RegExp(`(?:(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo\\s*questo|dopo\\s*questa)\\s*(${Q(O8)})|(?:il\\s*|la\\s*|l'\\s*)(${Q(O8)})\\s*(scorso|scorsa|prossimo|prossima))(?=\\W|$)`,`i`),Y8=1,ule=2,dle=3,fle=4,ple=class extends ${innerPattern(){return lle}innerExtract(e,t){let n,r;t[Y8]?(n=t[Y8].toLowerCase(),r=t[ule].toLowerCase()):(n=t[fle].toLowerCase(),r=t[dle].toLowerCase());let i=O8[r];if(n==`prossimo`||n==`prossima`||n.startsWith(`dopo`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`scorso`||n==`scorsa`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/settimana/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/mese/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/anno/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},mle=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${L8})(?=\\W|$)`,`i`),hle=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${R8})(?=\\W|$)`,`i`),gle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?mle:hle}innerExtract(e,t){let n=t[1].toLowerCase(),r=z8(t[2]);if(!r)return null;switch(n){case`scorso`:case`scorsa`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}};function _le(e){return e.text.match(/^[+-]/i)!=null}function X8(e){return e.text.match(/^-/i)!=null}var vle=class extends G1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?_le(n)||X8(n):!1}mergeResults(e,t,n,r){let i=z8(n.text);X8(n)&&(i=y$(i));let a=Z.createRelativeFromReference(b$.fromDate(t.start.date()),i);return new x$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function Z8(e){return e.text.match(/\s+(prima|da)$/i)!=null}function yle(e){return e.text.match(/\s+(dopo|dal?)$/i)!=null}var ble=class extends G1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!Z8(t)&&!yle(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=z8(t.text);Z8(t)&&(r=y$(r));let i=Z.createRelativeFromReference(b$.fromDate(n.start.date()),r);return new x$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},xle=RegExp(`^\\s*(${M8})`,`i`),Sle=1,Cle=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=xle.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=N8(r[Sle]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},wle=class extends W1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase().endsWith(`il secondo`)||n.toLowerCase()===`secondo`?(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!0}},Q8=new class{createCasualConfiguration(){let e=this.createConfiguration(!1);return e.parsers.push(new tle),e.parsers.push(new rle),e.parsers.push(new Fce),e.parsers.push(new ple),e.parsers.push(new gle),e.refiners.push(new wle),e}createConfiguration(e=!0){let t=E0({parsers:[new o2(!0),new Tce(e),new Oce,new jce(!0),new cle,new Wce,new Gce(e),new Jce(e),new Qce(e)],refiners:[new J8]},e);return t.parsers.unshift(new Bce(e)),t.refiners.unshift(new ble),t.refiners.unshift(new vle),t.refiners.unshift(new a0),t.refiners.push(new J8),t.refiners.push(new Cle),t.refiners.push(new $ce),t}},Tle=new O2(Q8.createCasualConfiguration());new O2(Q8.createConfiguration(!0));var $8={söndag:0,sön:0,so:0,måndag:1,mån:1,må:1,tisdag:2,tis:2,ti:2,onsdag:3,ons:3,on:3,torsdag:4,tors:4,to:4,fredag:5,fre:5,fr:5,lördag:6,lör:6,lö:6},e5={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,mars:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,maj:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augusti:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},Ele={första:1,andra:2,tredje:3,fjärde:4,femte:5,sjätte:6,sjunde:7,åttonde:8,nionde:9,tionde:10,elfte:11,tolfte:12,trettonde:13,fjortonde:14,femtonde:15,sextonde:16,sjuttonde:17,artonde:18,nittonde:19,tjugonde:20,tjugoförsta:21,tjugoandra:22,tjugotredje:23,tjugofjärde:24,tjugofemte:25,tjugosjätte:26,tjugosjunde:27,tjugoåttonde:28,tjugonionde:29,trettionde:30,trettioförsta:31},t5={en:1,ett:1,två:2,tre:3,fyra:4,fem:5,sex:6,sju:7,åtta:8,nio:9,tio:10,elva:11,tolv:12,tretton:13,fjorton:14,femton:15,sexton:16,sjutton:17,arton:18,nitton:19,tjugo:20,trettiо:30,fyrtio:40,femtio:50,sextio:60,sjuttio:70,åttio:80,nittio:90,hundra:100,tusen:1e3},n5={sek:`second`,sekund:`second`,sekunder:`second`,min:`minute`,minut:`minute`,minuter:`minute`,tim:`hour`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,mån:`month`,månad:`month`,månader:`month`,år:`year`,kvartаl:`quarter`,kvartal:`quarter`},Dle={sekund:`second`,sekunder:`second`,minut:`minute`,minuter:`minute`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,månad:`month`,månader:`month`,år:`year`,kvartal:`quarter`};function Ole(e){let t={},n=e,r=a5.exec(n);for(;r;)kle(t,r),n=n.substring(r[0].length),r=a5.exec(n);return t}function kle(e,t){let n=Nle(t[1]),r=n5[t[2].toLowerCase()];e[r]=n}var r5=`(?:${Q(t5)}|\\d+)`;`${Q(Ele)}`,`${Q(n5)}`;var i5=`(${r5})\\s{0,5}(${Q(n5)})\\s{0,5}`,a5=new RegExp(i5,`i`),Ale=`(${r5})\\s{0,5}(${Q(Dle)})\\s{0,5}`,jle=S$(``,i5),Mle=S$(``,Ale);function Nle(e){let t=e.toLowerCase();return t5[t]===void 0?parseInt(t):t5[t]}function Ple(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=w$(t)),t}let t=e.toLowerCase();return t5[t]===void 0?parseInt(e):t5[t]}var Fle=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:på\\s*?)?(?:(förra|senaste|nästa|kommande)\\s*)?(${Q($8)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(förra|senaste|nästa|kommande)\\s*vecka)?(?=\\W|$)`,`i`),Ile=1,Lle=3,Rle=2,zle=class extends ${innerPattern(){return Fle}innerExtract(e,t){let n=$8[t[Rle].toLowerCase()],r=t[Ile],i=t[Lle],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/förra|senaste/)?o=`last`:a.match(/nästa|kommande/)&&(o=`next`),o0(e.reference,n,o)}},Ble=RegExp(`(?:den\\s*?)?([0-9]{1,2})(?:\\s*(?:till|\\-|\\–|\\s)\\s*([0-9]{1,2}))?\\s*(${Q(e5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),o5=1,s5=2,Vle=3,c5=4,Hle=class extends ${innerPattern(){return Ble}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=e5[t[Vle].toLowerCase()],i=parseInt(t[o5]);if(i>31)return t.index+=t[o5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[c5]){let e=Ple(t[c5]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[s5]){let e=parseInt(t[s5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Ule=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${jle})(?=\\W|$)`,`i`),Wle=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${Mle})(?=\\W|$)`,`i`),Gle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?Ule:Wle}innerExtract(e,t){let n=t[1].toLowerCase(),r=Ole(t[2]);if(!r)return null;switch(n){case`förra`:case`passerade`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},Kle=RegExp(`(nu|idag|imorgon|övermorgon|igår|förrgår|i\\s*förrgår)(?:\\s*(?:på\\s*)?(morgonen?|förmiddagen?|middagen?|eftermiddagen?|kvällen?|natten?|midnatt))?(?=\\W|$)`,`i`),qle=1,Jle=2,Yle=class extends ${innerPattern(e){return Kle}innerExtract(e,t){let n=e.refDate,r=(t[qle]||``).toLowerCase(),i=(t[Jle]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nu`:a=D0(e.reference);break;case`idag`:a=O0(e.reference);break;case`imorgon`:case`imorn`:let t=new Date(n.getTime());t.setDate(t.getDate()+1),l$(a,t),f$(a,t);break;case`igår`:let r=new Date(n.getTime());r.setDate(r.getDate()-1),l$(a,r),f$(a,r);break;case`förrgår`:case`i förrgår`:let i=new Date(n.getTime());i.setDate(i.getDate()-2),l$(a,i),f$(a,i)}switch(i){case`morgon`:case`morgonen`:a.imply(`hour`,6),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`förmiddag`:case`förmiddagen`:a.imply(`hour`,9),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`middag`:case`middagen`:a.imply(`hour`,12),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`eftermiddag`:case`eftermiddagen`:a.imply(`hour`,15),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`kväll`:case`kvällen`:a.imply(`hour`,20),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`natt`:case`natten`:case`midnatt`:i===`midnatt`?a.imply(`hour`,0):a.imply(`hour`,2),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0)}return a}},Xle=new O2(Zle());new O2(l5(!0));function Zle(e=!0){let t=l5(!1,e);return t.parsers.unshift(new Yle),t}function l5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Hle,new zle,new Gle],refiners:[]},e)}var Qle=class extends F1{primaryPrefix(){return`(?:(?:klo|kello)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},u5={sunnuntai:0,sunnuntaina:0,su:0,maanantai:1,maanantaina:1,ma:1,tiistai:2,tiistaina:2,ti:2,keskiviikko:3,keskiviikkona:3,ke:3,torstai:4,torstaina:4,to:4,perjantai:5,perjantaina:5,pe:5,lauantai:6,lauantaina:6,la:6},d5={tammikuu:1,tammikuuta:1,tammikuun:1,tammi:1,helmikuu:2,helmikuuta:2,helmikuun:2,helmi:2,maaliskuu:3,maaliskuuta:3,maaliskuun:3,maalis:3,huhtikuu:4,huhtikuuta:4,huhtikuun:4,huhti:4,toukokuu:5,toukokuuta:5,toukokuun:5,touko:5,kesäkuu:6,kesäkuuta:6,kesäkuun:6,kesä:6,heinäkuu:7,heinäkuuta:7,heinäkuun:7,heinä:7,elokuu:8,elokuuta:8,elokuun:8,elo:8,syyskuu:9,syyskuuta:9,syyskuun:9,syys:9,lokakuu:10,lokakuuta:10,lokakuun:10,loka:10,marraskuu:11,marraskuuta:11,marraskuun:11,marras:11,joulukuu:12,joulukuuta:12,joulukuun:12,joulu:12},f5={yksi:1,yhden:1,kaksi:2,kahden:2,kolme:3,kolmen:3,neljä:4,neljän:4,viisi:5,viiden:5,kuusi:6,kuuden:6,seitsemän:7,kahdeksan:8,yhdeksän:9,kymmenen:10},p5={s:`second`,sek:`second`,sekunti:`second`,sekuntia:`second`,sekunnin:`second`,min:`minute`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,t:`hour`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,pv:`day`,päivä:`day`,päivää:`day`,päivän:`day`,vk:`week`,viikko:`week`,viikkoa:`week`,viikon:`week`,kk:`month`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`},$le={sekunti:`second`,sekuntia:`second`,sekunnin:`second`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,päivä:`day`,päivää:`day`,päivän:`day`,viikko:`week`,viikkoa:`week`,viikon:`week`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`};function m5(e){let t={},n=e,r=_5.exec(n);for(;r;)eue(t,r),n=n.substring(r[0].length),r=_5.exec(n);return t}function eue(e,t){let n=rue(t[1]),r=p5[t[2].toLowerCase()];e[r]=n}var h5=`(?:${Q(f5)}|\\d+)`;`${Q(p5)}`;var g5=`(${h5})\\s{0,5}(${Q(p5)})\\s{0,5}`,_5=new RegExp(g5,`i`),tue=`(${h5})\\s{0,5}(${Q($le)})\\s{0,5}`,v5=S$(``,g5),nue=S$(``,tue);function rue(e){let t=e.toLowerCase();return f5[t]===void 0?parseInt(t):f5[t]}function iue(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=w$(t)),t}let t=e.toLowerCase();return f5[t]===void 0?parseInt(e):f5[t]}var aue=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(viime|edellinen|edellisenä|ensi|seuraava|seuraavana|tämä|tänä)\\s*)?(${Q(u5)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(viime|ensi|seuraava)\\s*viikolla)?(?=\\W|$)`,`i`),oue=1,sue=2,cue=3,lue=class extends ${innerPattern(){return aue}innerExtract(e,t){let n=u5[t[sue].toLowerCase()],r=t[oue],i=t[cue],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/viime|edellinen|edellisenä/)?o=`last`:a.match(/ensi|seuraava|seuraavana/)&&(o=`next`),o0(e.reference,n,o)}},uue=RegExp(`([0-9]{1,2})\\.?(?:\\s*(?:\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(d5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),y5=1,b5=2,due=3,x5=4,fue=class extends ${innerPattern(){return uue}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=d5[t[due].toLowerCase()],i=parseInt(t[y5]);if(i>31)return t.index+=t[y5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[x5]){let e=iue(t[x5]);n.start.assign(`year`,e)}else{let t=T$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[b5]){let e=parseInt(t[b5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},pue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${v5})(?=\\W|$)`,`i`),mue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${nue})(?=\\W|$)`,`i`),hue=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?pue:mue}innerExtract(e,t){let n=t[1].toLowerCase(),r=m5(t[2]);if(!r)return null;switch(n){case`edellinen`:case`edelliset`:case`edellisten`:case`viimeiset`:case`viimeisten`:case`kuluneet`:case`kuluneiden`:case`-`:r=y$(r)}return Z.createRelativeFromReference(e.reference,r)}},gue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*sitten(?=\\W|$)`,`i`)}innerExtract(e,t){let n=y$(m5(t[1]));return Z.createRelativeFromReference(e.reference,n)}},_ue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*(?:sisällä|kuluessa|päästä)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=m5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},S5=class e extends ${innerPattern(e){return/(tänä\s*)?(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return f$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`aamulla`:case`aamuna`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`aamupäivällä`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`päivällä`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`iltapäivällä`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`illalla`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`yöllä`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`keskiyöllä`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},vue=RegExp(`(nyt|tänään|huomenna|ylihuomenna|eilen|toissapäivänä|viime\\s*yönä)(?:\\s*(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä))?(?=\\W|$)`,`i`),yue=1,bue=2,xue=class extends ${innerPattern(e){return vue}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[yue]||``).toLowerCase(),i=(t[bue]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nyt`:a=D0(e.reference);break;case`tänään`:a=O0(e.reference);break;case`huomenna`:n=v$(n,{day:1}),l$(a,n),f$(a,n);break;case`ylihuomenna`:n=v$(n,{day:2}),l$(a,n),f$(a,n);break;case`eilen`:n=v$(n,{day:-1}),l$(a,n),f$(a,n);break;case`toissapäivänä`:n=v$(n,{day:-2}),l$(a,n),f$(a,n);break;default:r.match(/viime\s*yönä/)&&(n.getHours()>6&&(n=v$(n,{day:-1})),l$(a,n),a.imply(`hour`,0))}return i&&(a=S5.extractTimeComponents(a,i)),a}},Sue=class extends K1{patternBetween(){return/^\s*(-|–)\s*$/i}},Cue=class extends X1{patternBetween(){return RegExp(`^\\s*(T|klo|kello|,|-)?\\s*$`)}},wue=new O2(Tue());new O2(C5(!0));function Tue(e=!0){let t=C5(!1,e);return t.parsers.unshift(new S5),t.parsers.unshift(new xue),t.parsers.unshift(new hue),t}function C5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Qle,new fue,new lue,new _ue,new gue],refiners:[new Sue,new Cue]},e)}var w5={"chủ nhật":0,cn:0,"thứ hai":1,t2:1,"thứ ba":2,t3:2,"thứ tư":3,t4:3,"thứ năm":4,t5:4,"thứ sáu":5,t6:5,"thứ bảy":6,t7:6},T5={"tháng 1":1,"tháng một":1,"tháng giêng":1,"tháng 2":2,"tháng hai":2,"tháng 3":3,"tháng ba":3,"tháng 4":4,"tháng tư":4,"tháng 5":5,"tháng năm":5,"tháng 6":6,"tháng sáu":6,"tháng 7":7,"tháng bảy":7,"tháng 8":8,"tháng tám":8,"tháng 9":9,"tháng chín":9,"tháng 10":10,"tháng mười":10,"tháng 11":11,"tháng mười một":11,"tháng 12":12,"tháng mười hai":12,"tháng chạp":12},E5={một:1,hai:2,ba:3,bốn:4,năm:5,sáu:6,bảy:7,tám:8,chín:9,mười:10,"mười một":11,"mười hai":12},D5={giây:`second`,phút:`minute`,giờ:`hour`,ngày:`day`,tuần:`week`,tháng:`month`,năm:`year`},O5=`(?:`+Q(E5)+`|[0-9]+|[0-9]+\\.[0-9]+)`;function Eue(e){let t=e.toLowerCase();return E5[t]===void 0?parseFloat(t):E5[t]}var k5=`(?:[0-9]{1,4}(?:\\s*TCN)?)`;function A5(e){let t=e.toUpperCase(),n=parseInt(e.replace(/[^0-9]+/g,``));return/TCN/.test(t)?-n:w$(n)}var j5=`(`+O5+`)\\s{0,5}(`+Q(D5)+`)\\s{0,5}`,M5=new RegExp(j5,`i`),N5=S$(``,j5);function P5(e){let t={},n=e,r=M5.exec(n);for(;r;){let e=Eue(r[1]),i=D5[r[2].toLowerCase()];t[i]=e,n=n.substring(r[0].length),r=M5.exec(n)}return t}var Due=RegExp(`(?:ngày\\s*)?([0-9]{1,2})\\s*tháng\\s*([0-9]{1,2})(?:\\s*năm\\s*(`+k5+`))?(?=\\W|$)`,`i`),Oue=1,kue=2,F5=3,Aue=class extends ${innerPattern(){return Due}innerExtract(e,t){let n=parseInt(t[Oue]),r=parseInt(t[kue]);if(n>31||r>12)return null;let i=e.createParsingResult(t.index,t[0]);return i.start.assign(`day`,n),i.start.assign(`month`,r),t[F5]?i.start.assign(`year`,A5(t[F5])):i.start.imply(`year`,T$(e.refDate,n,r)),i}},jue=RegExp(`(`+Q(T5)+`)(?:\\s*(?:năm|/)\\s*(`+k5+`))?(?=\\W|$)`,`i`),Mue=1,I5=2,Nue=class extends ${innerPattern(){return jue}innerExtract(e,t){let n=T5[t[Mue].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`month`,n),r.start.imply(`day`,1),t[I5]?r.start.assign(`year`,A5(t[I5])):r.start.imply(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),r}},Pue=RegExp(`(?:\\bnăm\\s*(`+k5+`)|\\b([0-9]{1,4})\\s*(TCN))(?=\\W|$)`,`i`),L5=1,Fue=2,Iue=3,Lue=class extends ${innerPattern(){return Pue}innerExtract(e,t){let n;n=t[L5]?t[L5]:t[Fue]+` `+t[Iue];let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`year`,A5(n)),r.start.imply(`month`,1),r.start.imply(`day`,1),r}},Rue=/\b(hôm nay|hôm qua|hôm kia|ngày mai|ngày kia|bây giờ|lúc này)(?=\W|$)/i,zue=class extends ${innerPattern(){return Rue}innerExtract(e,t){switch(t[1].toLowerCase()){case`bây giờ`:case`lúc này`:return D0(e.reference);case`hôm nay`:return O0(e.reference);case`hôm qua`:return k0(e.reference);case`hôm kia`:return j0(e.reference,2);case`ngày mai`:return A0(e.reference);case`ngày kia`:return M0(e.reference,2)}return e.createParsingComponents()}},Bue=/(buổi\s*)?(sáng sớm|sáng|trưa|chiều|tối|đêm|nửa đêm|bình minh)(?=\W|$)/i,Vue=class e extends ${innerPattern(){return Bue}innerExtract(t,n){let r=t.createParsingComponents();return f$(r,t.refDate),e.extractTimeComponents(r,n[2].toLowerCase())}static extractTimeComponents(e,t){switch(t){case`bình minh`:case`sáng sớm`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`sáng`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`trưa`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`chiều`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`tối`:e.imply(`hour`,19),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`đêm`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`nửa đêm`:e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`meridiem`,X.AM)}return e}},Hue=RegExp(`(`+Q(w5)+`)(?:\\s*(này|tới|sau(?!\\s*khi)|qua))?(?=\\W|$)`,`i`),Uue=1,Wue=2,Gue=class extends ${innerPattern(){return Hue}innerExtract(e,t){let n=w5[t[Uue].toLowerCase()];if(n===void 0)return null;let r=t[Wue],i=null;if(r){let e=r.toLowerCase();e.includes(`tới`)||e.includes(`sau`)?i=`next`:e.includes(`qua`)&&(i=`last`)}return o0(e.reference,n,i)}},Kue=RegExp(`(?:lúc\\s*|vào\\s*)?([0-9]{1,2})(?:\\s*giờ\\s*([0-9]{1,2})?\\s*(?:phút\\s*)?(sáng|trưa|chiều|tối|đêm)?|:([0-9]{2}))(?=\\W|$)`,`i`),que=1,R5=2,Jue=3,z5=4,Yue=class extends ${innerPattern(){return Kue}innerExtract(e,t){let n=parseInt(t[que]);if(n>23)return null;let r=e.createParsingResult(t.index,t[0]);r.start.assign(`hour`,n);let i=t[z5]?parseInt(t[z5]):t[R5]?parseInt(t[R5]):0;if(i>=60)return null;r.start.assign(`minute`,i);let a=t[Jue]?.toLowerCase();return a===`sáng`?(r.start.assign(`meridiem`,X.AM),n===12&&r.start.assign(`hour`,0)):a===`trưa`?n<10?(r.start.assign(`meridiem`,X.PM),r.start.assign(`hour`,n+12)):r.start.assign(`meridiem`,n>=12?X.PM:X.AM):(a===`chiều`||a===`tối`||a===`đêm`)&&(r.start.assign(`meridiem`,X.PM),n<12&&r.start.assign(`hour`,n+12)),r.start.imply(`second`,0),r.start.imply(`millisecond`,0),r}},Xue=RegExp(`(`+N5+`)\\s{0,5}(?:trước|qua)(?=\\W|$)`,`i`),Zue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return Xue}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,y$(n)):null}},Que=RegExp(`(`+N5+`)\\s{0,5}(?:sau|nữa|tới|tiếp)(?=\\W|$)`,`i`),$ue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return Que}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},ede=RegExp(`(?:trong\\s*(?:vòng\\s*)?)(`+N5+`)(?=\\W|$)`,`i`),tde=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return ede}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},B5=`(?:`+O5+`\\s{0,5})?(?:`+Q(D5)+`)`,nde=RegExp(`(này|trước|qua|sau|tới|tiếp)\\s*(`+B5+`)|(`+B5+`)\\s*(này|trước|qua|sau|tới|tiếp)(?=\\W|$)`,`i`),rde=class extends ${innerPattern(){return nde}innerExtract(e,t){let n=(t[1]||t[4]||``).toLowerCase(),r=(t[2]||t[3]||``).toLowerCase(),i=P5(r);if(Object.keys(i).length===0){let e=D5[r];if(!e)return null;i={[e]:1}}return(n===`trước`||n===`qua`)&&(i=y$(i)),Z.createRelativeFromReference(e.reference,i)}},ide=class extends K1{patternBetween(){return/^\s*(?:–|-|đến|tới|và)\s*$/}},ade=class extends X1{patternBetween(){return/^\s*(?:lúc|vào|,|T|-)?\s*$/}},ode=class extends T0{},sde=new O2(cde());new O2(V5(!0));function cde(e=!0){let t=V5(!1,e);return t.parsers.unshift(new Vue),t.parsers.unshift(new zue),t.parsers.unshift(new rde),t}function V5(e=!0,t=!0){return E0({parsers:[new w0,new o2(t),new Aue,new Nue,new Lue,new Gue,new Yue,new Zue(e),new $ue(e),new tde(e)],refiners:[new ode,new ide,new ade]},e)}var lde=/(sekarang|saat\s+ini|hari\s+ini|kemarin\s+lusa|kemarin|besok\s+lusa|besok|lusa|nanti\s+malam|malam\s+ini|tadi\s+malam|semalam)(?=\W|$)/i,ude=class extends ${innerPattern(){return lde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`sekarang`:case`saat ini`:return D0(e.reference);case`hari ini`:return O0(e.reference);case`kemarin`:return k0(e.reference);case`kemarin lusa`:return j0(e.reference,2);case`besok`:return A0(e.reference);case`lusa`:case`besok lusa`:return M0(e.reference,2);case`nanti malam`:case`malam ini`:return N0(e.reference);case`tadi malam`:case`semalam`:return P0(e.reference)}return e.createParsingComponents()}},dde=/(?:(?:pada|di)\s+)?(tengah\s+malam|tengah\s+hari|pagi|siang|sore|petang|malam(?!\s+ini))(?:\s+ini)?(?=\W|$)/i,fde=class extends ${innerPattern(){return dde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`pagi`:return R0(e.reference);case`siang`:case`tengah hari`:return B0(e.reference);case`sore`:case`petang`:return z0(e.reference);case`malam`:return F0(e.reference);case`tengah malam`:return L0(e.reference)}return null}},H5={minggu:0,ahad:0,senin:1,selasa:2,rabu:3,kamis:4,jumat:5,"jum'at":5,sabtu:6},U5={januari:1,jan:1,"jan.":1,februari:2,pebruari:2,feb:2,"feb.":2,peb:2,"peb.":2,maret:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,agustus:8,agu:8,"agu.":8,agt:8,"agt.":8,ags:8,"ags.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nopember:11,nov:11,"nov.":11,nop:11,"nop.":11,desember:12,des:12,"des.":12},W5={satu:1,dua:2,tiga:3,empat:4,lima:5,enam:6,tujuh:7,delapan:8,sembilan:9,sepuluh:10,sebelas:11,"dua belas":12},G5={detik:`second`,menit:`minute`,jam:`hour`,hari:`day`,minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},pde=`(?:${Q(W5)}|[0-9]+|[0-9]+[\\.,][0-9]+|setengah)`;function mde(e){let t=e.toLowerCase();return W5[t]===void 0?t===`setengah`?.5:parseFloat(t.replace(`,`,`.`)):W5[t]}var K5=`(?:[1-9][0-9]{0,3}\\s*(?:SM|M)(?=\\W|$)|[1-2][0-9]{3}|[5-9][0-9])`;function q5(e){return/SM/i.test(e)?-parseInt(e.replace(/SM/i,``)):/M/i.test(e)?parseInt(e.replace(/M/i,``)):w$(parseInt(e))}var J5=`(?:(${pde})\\s{0,5}|se)(${Q(G5)})\\s{0,5}`,Y5=new RegExp(J5,`i`),X5=S$(``,J5,`\\s{0,5}(?:,|dan)?\\s{0,5}`);function Z5(e){let t={},n=e,r=Y5.exec(n);for(;r;){let e=r[1]?mde(r[1]):1,i=G5[r[2].toLowerCase()];t[i]=e,n=n.substring(r.index+r[0].length),r=Y5.exec(n)}return t}var hde=RegExp(`(?:(?:pada\\s+)?(?:tanggal|tgl\\.?)\\s*)?([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:\\s*|-|/)(${Q(U5)})(?:(?:\\s*|-|/|,\\s*)(?:tahun\\s+)?(${K5}))?(?=\\W|$)`,`i`),Q5=1,$5=2,gde=3,e7=4,_de=class extends ${innerPattern(){return hde}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=U5[t[gde].toLowerCase()],i=parseInt(t[Q5]);if(i>31)return t.index+=t[Q5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[e7]?n.start.assign(`year`,q5(t[e7])):n.start.imply(`year`,T$(e.refDate,i,r)),t[$5]){let e=parseInt(t[$5]);if(e>31)return null;n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},vde=RegExp(`(?:(?:pada\\s+)?bulan\\s+)?(${Q(U5)})(?:\\s*[,-]?\\s*(?:tahun\\s+)?(${K5}))?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),yde=1,t7=2,bde=class extends ${innerPattern(){return vde}innerExtract(e,t){let n=t[yde].toLowerCase();if(n.length<=3&&n!==`mei`&&!t[t7])return null;let r=e.createParsingComponents(),i=U5[n];return r.imply(`day`,1),r.assign(`month`,i),t[t7]?r.assign(`year`,q5(t[t7])):r.imply(`year`,T$(e.refDate,1,i)),r}},xde=RegExp(`(${Q(U5)})(?:-|/|\\s*,?\\s*)([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:(?:-|/|\\s*,\\s*|\\s+)(?:tahun\\s+)?(${K5}))?(?=\\W|$)(?![.:]\\d)`,`i`),Sde=1,Cde=2,n7=3,r7=4,wde=class extends ${innerPattern(){return xde}innerExtract(e,t){let n=U5[t[Sde].toLowerCase()],r=parseInt(t[Cde]);if(r>31)return null;let i=e.createParsingComponents({day:r,month:n});if(t[r7]?i.assign(`year`,q5(t[r7])):i.imply(`year`,T$(e.refDate,r,n)),!t[n7])return i;let a=parseInt(t[n7]);if(a>31)return null;let o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Tde=RegExp(`(?:pada\\s+)?(hari\\s+)?(${Q(H5)})(?:\\s+(?:(?:minggu|pekan)\\s+)?(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin))?(?=\\W|$)`,`i`),Ede=1,Dde=2,Ode=3,kde=class extends ${innerPattern(){return Tde}innerExtract(e,t){let n=t[Dde].toLowerCase();if(n===`minggu`&&!t[Ede])return null;let r=H5[n],i=(t[Ode]||``).toLowerCase().replace(/\s+/g,` `),a=null;return i===`ini`?a=`this`:i===`depan`||i===`berikutnya`||i===`mendatang`?a=`next`:(i===`lalu`||i===`yang lalu`||i===`kemarin`)&&(a=`last`),o0(e.reference,r,a)}},i7=7,Ade=class extends F1{primaryPrefix(){return`(?:(?:pada\\s+)?(?:pukul|pkl\\.?|jam)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*(?:(?:pukul|pkl\\.?|jam)\\s*)?`}primarySuffix(){return`(?:\\s*(pagi|siang|sore|petang|malam))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){if(t[0].match(/^\s*\d{4}\s*$/))return null;let n=super.extractPrimaryTimeComponents(e,t);if(!n||!t[i7]||n.isCertain(`meridiem`))return n;let r=n.get(`hour`);if(r>12)return n;switch(t[i7].toLowerCase()){case`pagi`:r==12&&(r=0);break;case`siang`:r<10&&(r+=12);break;case`sore`:case`petang`:r<12&&(r+=12);break;case`malam`:r==12?r=0:r>=5&&(r+=12)}return n.assign(`hour`,r),n.assign(`meridiem`,r>=12?X.PM:X.AM),n}},jde=RegExp(`(${X5})\\s{0,5}(?:yang\\s+)?(?:lalu|silam|sebelumnya)(?=\\W|$)`,`i`),Mde=class extends ${innerPattern(){return jde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,y$(n))}},Nde=RegExp(`(${X5})\\s{0,5}(?:lagi|kemudian|setelahnya|sesudahnya|mendatang|ke\\s*depan)(?=\\W|$)`,`i`),Pde=class extends ${innerPattern(){return Nde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Fde=RegExp(`(?:dalam\\s+(?:waktu\\s+)?)(${X5})(?=\\W|$)`,`i`),Ide=class extends ${innerPattern(){return Fde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Lde=RegExp(`(minggu|pekan|bulan|tahun)\\s+(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin)(?=\\W|$)`,`i`),Rde=1,zde=2,Bde={minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},Vde=class extends ${innerPattern(){return Lde}innerExtract(e,t){let n=t[Rde].toLowerCase(),r=t[zde].toLowerCase().replace(/\s+/g,` `),i=Bde[n];if(r==`depan`||r==`berikutnya`||r==`mendatang`)return Z.createRelativeFromReference(e.reference,{[i]:1});if(r==`lalu`||r==`yang lalu`||r==`kemarin`)return Z.createRelativeFromReference(e.reference,{[i]:-1});let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i==`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i==`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i==`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Hde=class extends K1{patternBetween(){return/^\s*(?:-|–|s\.d\.?|s\/d|sampai(?:\s+dengan)?|hingga)\s*$/i}},Ude=class extends X1{patternBetween(){return/^\s*(?:pada|,|-|T)?\s*$/i}},Wde=new O2(Gde());new O2(a7(!0));function Gde(e=!0){let t=a7(!1,e);return t.parsers.unshift(new ude),t.parsers.unshift(new fde),t.parsers.unshift(new bde),t.parsers.unshift(new Vde),t}function a7(e=!0,t=!0){return E0({parsers:[new o2(t),new _de,new wde,new kde,new Ade(e),new Ide,new Mde,new Pde],refiners:[new Ude,new Hde]},e)}var o7={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`};function s7(e){return e.replace(/[٠-٩]/g,e=>(e.charCodeAt(0)-1632).toString())}var c7={الأحد:0,الاحد:0,أحد:0,احد:0,الإثنين:1,الاثنين:1,إثنين:1,اثنين:1,الثلاثاء:2,ثلاثاء:2,الأربعاء:3,الاربعاء:3,أربعاء:3,اربعاء:3,الخميس:4,خميس:4,الجمعة:5,جمعة:5,السبت:6,سبت:6},l7={يناير:1,فبراير:2,مارس:3,أبريل:4,ابريل:4,مايو:5,يونيو:6,يوليو:7,أغسطس:8,اغسطس:8,سبتمبر:9,أكتوبر:10,اكتوبر:10,نوفمبر:11,ديسمبر:12,"كانون الثاني":1,شباط:2,آذار:3,اذار:3,نيسان:4,أيار:5,ايار:5,حزيران:6,تموز:7,آب:8,اب:8,أيلول:9,ايلول:9,"تشرين الأول":10,"تشرين الاول":10,"تشرين الثاني":11,"كانون الأول":12,"كانون الاول":12},u7={واحد:1,واحدة:1,اثنان:2,اثنين:2,اثنتان:2,اثنتين:2,ثلاثة:3,ثلاث:3,أربعة:4,اربعة:4,أربع:4,اربع:4,خمسة:5,خمس:5,ستة:6,ست:6,سبعة:7,سبع:7,ثمانية:8,ثماني:8,ثمان:8,تسعة:9,تسع:9,عشرة:10,عشر:10,"أحد عشر":11,"احد عشر":11,"إحدى عشرة":11,"احدى عشرة":11,"اثنا عشر":12,"اثني عشر":12,"اثنتا عشرة":12,"اثنتي عشرة":12,نصف:.5,نص:.5,ربع:.25},d7={الأول:1,الاول:1,الأولى:1,الاولى:1,أول:1,اول:1,حادي:1,الحادي:1,الثاني:2,الثانية:2,ثاني:2,الثالث:3,الثالثة:3,ثالث:3,الرابع:4,الرابعة:4,رابع:4,الخامس:5,الخامسة:5,خامس:5,السادس:6,السادسة:6,سادس:6,السابع:7,السابعة:7,سابع:7,الثامن:8,الثامنة:8,ثامن:8,التاسع:9,التاسعة:9,تاسع:9,العاشر:10,العاشرة:10,عاشر:10,"الحادي عشر":11,"الحادية عشرة":11,"الثاني عشر":12,"الثانية عشرة":12,"الثالث عشر":13,"الثالثة عشرة":13,"الرابع عشر":14,"الرابعة عشرة":14,"الخامس عشر":15,"الخامسة عشرة":15,"السادس عشر":16,"السادسة عشرة":16,"السابع عشر":17,"السابعة عشرة":17,"الثامن عشر":18,"الثامنة عشرة":18,"التاسع عشر":19,"التاسعة عشرة":19,العشرون:20,العشرين:20,"الحادي والعشرون":21,"الحادية والعشرون":21,"الواحد والعشرون":21,"الثاني والعشرون":22,"الثانية والعشرون":22,"الثالث والعشرون":23,"الثالثة والعشرون":23,"الرابع والعشرون":24,"الرابعة والعشرون":24,"الخامس والعشرون":25,"الخامسة والعشرون":25,"السادس والعشرون":26,"السادسة والعشرون":26,"السابع والعشرون":27,"السابعة والعشرون":27,"الثامن والعشرون":28,"الثامنة والعشرون":28,"التاسع والعشرون":29,"التاسعة والعشرون":29,الثلاثون:30,الثلاثين:30,"الحادي والثلاثون":31,"الحادية والثلاثون":31,"الواحد والثلاثون":31},f7={ثانية:`second`,ثانيةً:`second`,ثواني:`second`,ثوان:`second`,ثوانٍ:`second`,دقيقة:`minute`,دقيقةً:`minute`,دقائق:`minute`,ساعة:`hour`,ساعةً:`hour`,ساعات:`hour`,يوم:`day`,يوماً:`day`,يوما:`day`,أيام:`day`,ايام:`day`,أسبوع:`week`,اسبوع:`week`,أسبوعاً:`week`,أسبوعا:`week`,اسبوعاً:`week`,اسبوعا:`week`,أسابيع:`week`,اسابيع:`week`,شهر:`month`,شهراً:`month`,شهرا:`month`,أشهر:`month`,اشهر:`month`,شهور:`month`,سنة:`year`,سنةً:`year`,سنوات:`year`,سنين:`year`,عام:`year`,عاماً:`year`,عاما:`year`,أعوام:`year`,اعوام:`year`},p7={ثانيتان:`second`,ثانيتين:`second`,دقيقتان:`minute`,دقيقتين:`minute`,ساعتان:`hour`,ساعتين:`hour`,يومان:`day`,يومين:`day`,أسبوعان:`week`,اسبوعان:`week`,أسبوعين:`week`,اسبوعين:`week`,شهران:`month`,شهرين:`month`,سنتان:`year`,سنتين:`year`,عامان:`year`,عامين:`year`},Kde=`(?:${Q(u7)}|[0-9٠-٩]+|[0-9٠-٩]+[\\.,][0-9٠-٩]+|\\s{0,3})`;function qde(e){let t=e.trim();if(u7[t]!==void 0)return u7[t];if(t===``)return 1;let n=s7(t).replace(`,`,`.`);return parseFloat(n)}var m7=`(?:${Q(d7)}|[0-9٠-٩]{1,2})`;function h7(e){let t=e.trim();if(d7[t]!==void 0)return d7[t];let n=s7(t);return parseInt(n,10)}var g7=`(?:\\s*(?:ميلادية|ميلادي|م))?`,_7=`(?:[1-9١-٩][0-9٠-٩]{0,3}${g7}(?:\\s*(?:قبل الميلاد|ق\\.م))|[1-2١-٢][0-9٠-٩]{3}${g7}|[5-9٥-٩][0-9٠-٩]${g7})`;function v7(e){let t=e.trim(),n=/(قبل الميلاد|ق\.م)/i.test(t);t=t.replace(/(قبل الميلاد|ق\.م|ميلادية|ميلادي|م)/gi,``).trim();let r=s7(t),i=parseInt(r,10);return n?-i:w$(i)}var y7=`(?:${`(${Q(p7)})`}|${`(?:(${Kde})\\s{0,3})?(${Q(f7)})`}|(?:و\\s*)?(نصف|نص|ربع))`,b7=new RegExp(y7,o7.flags),x7=S$(`(?:(?:خلال|في غضون|في خلال|حوالي|تقريباً|تقريبا)\\s{0,3})?`,y7,`\\s{0,5},?(?:\\s*و)?\\s{0,5}`);function S7(e){let t={},n=e,r=b7.exec(n),i;for(;r&&(i=Jde(t,r,i),n=n.substring(r.index+r[0].length).trim(),n);)r=b7.exec(n);return t}function Jde(e,t,n){if(t[1]){let n=p7[t[1].trim()];if(n)return e[n]=(e[n]||0)+2,n}else if(t[3]){let n=qde(t[2]?t[2].trim():``),r=f7[t[3].trim()];if(r)return e[r]=(e[r]||0)+n,r}else if(t[4]){let r=t[4].trim()===`ربع`?.25:.5;if(n)return e[n]=(e[n]||0)+r,n}return n}var Yde=class extends ${patternLeftBoundary(){return o7.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),o7.flags)}innerPatternHasChange(e,t){return!1}},C7=class extends Yde{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${o7.rightBoundary}`,o7.flags)}},Xde=class extends C7{innerPatternString(e){return`(الآن|الان|حالياً|حاليا|اليوم|أول\\s*(?:من\\s*)?أمس|اول\\s*(?:من\\s*)?امس|أول\\s*(?:من\\s*)?البارحة|اول\\s*(?:من\\s*)?البارحة|قبل\\s*(?:من\\s*)?أمس|قبل\\s*(?:من\\s*)?امس|أمس|امس|البارحة|بعد\\s*غد(?:اً|ا)?|بعد\\s*بكر[ةا]|غداً|غدا|بكر[ةا])`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n===`الآن`||n===`الان`||n===`حالياً`||n===`حاليا`?D0(e.reference):n===`اليوم`?O0(e.reference):n.match(/أول\s*(?:من\s*)?أمس/)||n.match(/اول\s*(?:من\s*)?امس/)||n.match(/أول\s*(?:من\s*)?البارحة/)||n.match(/اول\s*(?:من\s*)?البارحة/)||n.match(/قبل\s*(?:من\s*)?أمس/)||n.match(/قبل\s*(?:من\s*)?امس/)?j0(e.reference,2):n===`أمس`||n===`امس`||n===`البارحة`?k0(e.reference):n.match(/بعد\s*غد/)||n.match(/بعد\s*بكر/)?M0(e.reference,2):n===`غداً`||n===`غدا`||n.match(/^بكر[ةا]$/)?A0(e.reference):r}},Zde=class extends C7{innerPatternString(e){return`(مساء\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*مساءً?|ليلة\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*ليلاً?|الليلة\\s*الماضية|منتصف\\s*النهار|منتصف\\s*الليل|هذا\\s*الصباح|هذا\\s*المساء|هذه\\s*الليلة|بعد\\s*الظهر|ظهر\\s*اليوم|الصباح|صباحاً|صباحا|الظهر|ظهراً|ظهرا|العصر|عصراً|عصرا|المساء|مساءً|مساء|الليلة|الليل|ليلاً|ليلا)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n.match(/مساء\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*مساء/)?I0(e.reference):n.match(/ليلة\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*ليلاً?/)||n===`الليلة الماضية`?P0(e.reference):n===`هذه الليلة`||n===`الليلة`?N0(e.reference):n===`منتصف الليل`?L0(e.reference):n===`منتصف النهار`||n===`ظهر اليوم`||n===`الظهر`||n===`ظهراً`||n===`ظهرا`?B0(e.reference):n===`بعد الظهر`||n===`العصر`||n===`عصراً`||n===`عصرا`?z0(e.reference):n===`هذا الصباح`||n===`الصباح`||n===`صباحاً`||n===`صباحا`?R0(e.reference):n===`هذا المساء`||n===`المساء`||n===`مساءً`||n===`مساء`?F0(e.reference):n===`الليل`||n===`ليلاً`||n===`ليلا`?F0(e.reference,22):r}},Qde=1,$de=2,efe=3,tfe=class extends C7{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:يوم\\s*)?(?:(هذا|هذه|الماضي|الماضية|السابق|السابقة|القادم|القادمة|المقبل|المقبلة)\\s+)?(${Q(c7)})(?:\\s+(هذا|هذه|الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة))?(?:\\s*(?:,|\\)|)))?`}innerExtract(e,t){let n=c7[t[$de].toLowerCase()],r=t[Qde],i=t[efe],a=(r||i||``).toLowerCase(),o=null;return a===`الماضي`||a===`الماضية`||a===`السابق`||a===`السابقة`||a===`المنصرم`||a===`المنصرمة`?o=`last`:a===`القادم`||a===`القادمة`||a===`المقبل`||a===`المقبلة`?o=`next`:(a===`هذا`||a===`هذه`)&&(o=`this`),o0(e.reference,n,o)}},w7=1,T7=2,nfe=3,E7=4,rfe=class extends C7{innerPatternString(e){return`(?:(?:في|من)\\s*)?(${m7})(?:\\s*(?:إلى|وحتى|حتى|-|–)\\s*(${m7}))?(?:\\s*(?:من)?\\s*)(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=l7[t[nfe].toLowerCase()],r=h7(t[w7]);if(r>31||r<1)return t.index+=t[w7].length,null;let i=e.createParsingResult(t.index,t[0]);if(i.start.assign(`month`,n),i.start.assign(`day`,r),t[E7]){let e=v7(t[E7]);i.start.assign(`year`,e)}else{let t=T$(e.refDate,r,n);i.start.imply(`year`,t)}if(t[T7]){let e=h7(t[T7]);i.end=i.start.clone(),i.end.assign(`day`,e)}return i}},ife=1,D7=2,afe=class extends C7{innerPatternString(e){return`(?:(?:في|خلال)\\s*)?(?:شهر\\s*)?(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}))?`}innerExtract(e,t){if(e.text.substring(0,t.index).match(/[0-9٠-٩]+\s*$/))return null;let n=l7[t[ife].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);if(r.start.imply(`day`,1),r.start.assign(`month`,n),t[D7]){let e=v7(t[D7]);r.start.assign(`year`,e)}else{let t=T$(e.refDate,1,n);r.start.imply(`year`,t)}return r}},O7=2,k7=3,A7=4,j7=5,M7=6;function ofe(e,t,n,r){return RegExp(`${e}${t}([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${n}`,r)}function sfe(e,t){return RegExp(`^(${e})([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{1,2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${t}`,`iu`)}var cfe=class extends F1{constructor(e=!1){super(e)}patternFlags(){return o7.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:-|–|~|إلى|وحتى|حتى)\\s*`}primaryPrefix(){return`(?:(?:في\\s*تمام|في|الساعة|ساعة|من)\\s*)??`}primarySuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}followingSuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}getPrimaryTimePatternThroughCache(){return ofe(this.primaryPatternLeftBoundary(),this.primaryPrefix(),this.primarySuffix(),this.patternFlags())}getFollowingTimePatternThroughCache(){return sfe(this.followingPhase(),this.followingSuffix())}extractPrimaryTimeComponents(e,t){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let n=super.extractPrimaryTimeComponents(e,t);if(n){let e=(t[M7]||``).toLowerCase(),r=t[0].toLowerCase(),i=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(r),a=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(r),o=/(?:ظهراً|ظهرا)/.test(r);if(i){let e=n.get(`hour`);e<12&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}else if(a)n.get(`hour`)===12&&n.assign(`hour`,0),n.assign(`meridiem`,X.AM);else if(o){let e=n.get(`hour`);e<12&&e!==0&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}}return n}extractFollowingTimeComponents(e,t,n){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let r=super.extractFollowingTimeComponents(e,t,n);if(r){let e=(t[M7]||``).toLowerCase(),i=t[0].toLowerCase(),a=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(i),o=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(i),s=/(?:ظهراً|ظهرا)/.test(i);if(a){let e=r.get(`hour`);e<12&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}else if(o)r.get(`hour`)===12&&r.assign(`hour`,0),r.assign(`meridiem`,X.AM);else if(s){let e=r.get(`hour`);e<12&&e!==0&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}n.start.isCertain(`meridiem`)||(a?(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)<12&&n.start.assign(`hour`,n.start.get(`hour`)+12)):o&&(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)===12&&n.start.assign(`hour`,0)))}return r}},lfe=class extends C7{innerPatternString(e){return`(?:(?:منذ|قبل)\\s*(${x7})|(${x7})\\s*(?:مضت|سابقاً))`}innerExtract(e,t){let n=y$(S7(t[1]||t[2]));return Z.createRelativeFromReference(e.reference,n)}},ufe=class extends C7{innerPatternString(e){return`(?:(?:بعد)\\s*(${x7})(?:\\s*من\\s*الآن)?|(${x7})\\s*(?:من\\s*الآن|لاحقاً|لاحقا))`}innerExtract(e,t){let n=S7(t[1]||t[2]);return Z.createRelativeFromReference(e.reference,n)}},dfe=class extends C7{innerPatternString(e){return`(?:في\\s*خلال|في\\s*غضون|في\\s*ظرف|خلال)\\s*(${x7})`}innerExtract(e,t){let n=S7(t[1]);return Z.createRelativeFromReference(e.reference,n)}},ffe=1,pfe=2,mfe=3,hfe=class extends C7{innerPatternString(e){return`(?:في\\s+)?(?:(هذا|هذه)\\s+)?(الشهر|الاسبوع|الأسبوع|العام|السنة)(?:\\s+(الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة|التالي|التالية))?`}innerExtract(e,t){(t[ffe]||``).toLowerCase();let n=t[pfe].toLowerCase(),r=(t[mfe]||``).toLowerCase(),i=`month`;if(n===`الاسبوع`||n===`الأسبوع`?i=`week`:(n===`العام`||n===`السنة`)&&(i=`year`),r===`القادم`||r===`القادمة`||r===`المقبل`||r===`المقبلة`||r===`التالي`||r===`التالية`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(r===`الماضي`||r===`الماضية`||r===`السابق`||r===`السابقة`||r===`المنصرم`||r===`المنصرمة`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i===`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i===`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i===`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},gfe=class extends X1{patternBetween(){return RegExp(`^\\s*(T|في\\s*تمام|في|الساعة|ساعة|,|-)?\\s*$`,`iu`)}},_fe=class extends K1{patternBetween(){return/^\s*(إلى|وحتى|حتى|-|–)\s*$/iu}},vfe=new O2(yfe());new O2(N7(!0));function yfe(e=!0){let t=N7(!1,e);return t.parsers.unshift(new Xde),t.parsers.unshift(new Zde),t.parsers.unshift(new afe),t.parsers.unshift(new hfe),t}function N7(e=!0,t=!0){return E0({parsers:[new o2(t),new dfe,new rfe,new tfe,new cfe(e),new lfe,new ufe],refiners:[new gfe,new _fe]},e)}var bfe=1,P7=2,xfe=3,F7=4,I7=5,Sfe=6,Cfe=class extends ${innerPattern(e){return RegExp(`(现在|立(?:刻|即)|即刻)|(今|明|前|大前|后|大后|昨)(早|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[bfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[P7]){let e=t[P7],n=t[xfe];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3),n==`早`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[F7]){let e=t[F7][0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[I7]){let e=t[I7];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3);let n=t[Sfe];if(n){let e=n[0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},L7={零:0,〇:0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},R7={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function z7(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?L7[r]:t*L7[r]:t+=L7[r]}return t}function wfe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=L7[r]}return parseInt(t)}var B7=1,V7=2,H7=3,Tfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(L7).join(``)+`]{4}|[`+Object.keys(L7).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})?(?:\\s*)(?:日|号)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[V7]);if(isNaN(r)&&(r=z7(t[V7])),n.start.assign(`month`,r),t[H7]){let e=parseInt(t[H7]);isNaN(e)&&(e=z7(t[H7])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[B7]){let e=parseInt(t[B7]);isNaN(e)&&(e=wfe(t[B7])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Efe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)`,`i`),U7=1,Dfe=2,Ofe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Efe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[U7]);if(isNaN(r)&&(r=z7(t[U7])),isNaN(r)){let e=t[U7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Dfe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},kfe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:之)?前`,`i`),W7=1,Afe=2,jfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return kfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[W7]);if(isNaN(r)&&(r=z7(t[W7])),isNaN(r)){let e=t[W7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Afe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=y$(i);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r),i=y$(i);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Mfe=RegExp(`(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Nfe=class extends ${innerPattern(){return Mfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:a==`这`&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},Pfe=RegExp(`(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),Ffe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),G7=1,K7=2,q7=3,J7=4,Y7=5,X7=6,Z7=7,Q7=8,$7=9,Ife=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Pfe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[G7]){let i=t[G7];i==`明`?e.reference.instant.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`后`?r.setDate(r.getDate()+2):i==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[J7]){let e=t[J7];e==`明`?r.setDate(r.getDate()+1):e==`昨`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`后`?r.setDate(r.getDate()+2):e==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[Q7]){let e=parseInt(t[Q7]);if(isNaN(e)&&(e=z7(t[Q7])),e>=60)return null;n.start.assign(`second`,e)}if(i=parseInt(t[X7]),isNaN(i)&&(i=z7(t[X7])),t[Z7]?t[Z7]==`半`?a=30:t[Z7]==`正`||t[Z7]==`整`?a=0:(a=parseInt(t[Z7]),isNaN(a)&&(a=z7(t[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[$7]){if(i>12)return null;let e=t[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12))}else if(t[K7]){let e=t[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[q7]){let e=t[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[Y7]){let e=t[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let s=Ffe.exec(e.text.substring(n.index+n.text.length));if(!s)return n.text.match(/^\d+$/)?null:n;let c=new Date(r.getTime());if((s[G7]||s[J7])&&(c=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),s[G7]){let t=s[G7];t==`明`?e.reference.instant.getHours()>1&&c.setDate(c.getDate()+1):t==`昨`?c.setDate(c.getDate()-1):t==`前`?c.setDate(c.getDate()-2):t==`大前`?c.setDate(c.getDate()-3):t==`后`?c.setDate(c.getDate()+2):t==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else if(s[J7]){let e=s[J7];e==`明`?c.setDate(c.getDate()+1):e==`昨`?c.setDate(c.getDate()-1):e==`前`?c.setDate(c.getDate()-2):e==`大前`?c.setDate(c.getDate()-3):e==`后`?c.setDate(c.getDate()+2):e==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else n.end.imply(`day`,c.getDate()),n.end.imply(`month`,c.getMonth()+1),n.end.imply(`year`,c.getFullYear());if(i=0,a=0,o=-1,s[Q7]){let e=parseInt(s[Q7]);if(isNaN(e)&&(e=z7(s[Q7])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(s[X7]),isNaN(i)&&(i=z7(s[X7])),s[Z7]?s[Z7]==`半`?a=30:s[Z7]==`正`||s[Z7]==`整`?a=0:(a=parseInt(s[Z7]),isNaN(a)&&(a=z7(s[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),s[$7]){if(i>12)return null;let e=s[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(s[K7]){let e=s[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(s[q7]){let e=s[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(s[Y7]){let e=s[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=s[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},Lfe=RegExp(`(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Rfe=class extends ${innerPattern(){return Lfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},zfe=class extends K1{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}},Bfe=class extends X1{patternBetween(){return/^\s*$/i}};new O2(e9());var Vfe=new O2(e9());new O2(t9());function e9(){let e=t9();return e.parsers.unshift(new Cfe),e}function t9(){let e=E0({parsers:[new Tfe,new Nfe,new Rfe,new Ife,new Ofe,new jfe],refiners:[new zfe,new Bfe]});return e.refiners=e.refiners.filter(e=>!(e instanceof i0)),e}var Hfe=1,n9=2,Ufe=3,r9=4,i9=5,Wfe=6,Gfe=class extends ${innerPattern(e){return RegExp(`(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Hfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[n9]){let e=t[n9],n=t[Ufe];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3),n==`早`||n==`朝`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[r9]){let e=t[r9][0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[i9]){let e=t[i9];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3);let n=t[Wfe];if(n){let e=n[0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},a9={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},o9={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function s9(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?a9[r]:t*a9[r]:t+=a9[r]}return t}function Kfe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=a9[r]}return parseInt(t)}var c9=1,l9=2,u9=3,qfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(a9).join(``)+`]{4}|[`+Object.keys(a9).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})?(?:\\s*)(?:日|號)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[l9]);if(isNaN(r)&&(r=s9(t[l9])),n.start.assign(`month`,r),t[u9]){let e=parseInt(t[u9]);isNaN(e)&&(e=s9(t[u9])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[c9]){let e=parseInt(t[c9]);isNaN(e)&&(e=Kfe(t[c9])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Jfe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)`,`i`),d9=1,Yfe=2,Xfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Jfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[d9]);if(isNaN(r)&&(r=s9(t[d9])),isNaN(r)){let e=t[d9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Yfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Zfe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:之)?前`,`i`),f9=1,Qfe=2,$fe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Zfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[f9]);if(isNaN(r)&&(r=s9(t[f9])),isNaN(r)){let e=t[f9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Qfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=y$(i);let t=v$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r),i=y$(i);let o=v$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},epe=RegExp(`(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),tpe=class extends ${innerPattern(){return epe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:(a==`今`||a==`這`||a==`呢`)&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},npe=RegExp(`(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),rpe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),p9=1,m9=2,h9=3,g9=4,_9=5,v9=6,y9=7,b9=8,x9=9,ipe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return npe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[p9]){let i=t[p9];i==`明`||i==`聽`?e.refDate.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`||i==`尋`||i==`琴`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`後`?r.setDate(r.getDate()+2):i==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[g9]){let e=t[g9];e==`明`||e==`聽`?r.setDate(r.getDate()+1):e==`昨`||e==`尋`||e==`琴`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`後`?r.setDate(r.getDate()+2):e==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[b9]){var s=parseInt(t[b9]);if(isNaN(s)&&(s=s9(t[b9])),s>=60)return null;n.start.assign(`second`,s)}if(i=parseInt(t[v9]),isNaN(i)&&(i=s9(t[v9])),t[y9]?t[y9]==`半`?a=30:t[y9]==`正`||t[y9]==`整`?a=0:(a=parseInt(t[y9]),isNaN(a)&&(a=s9(t[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[x9]){if(i>12)return null;var c=t[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12))}else if(t[m9]){var l=t[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[h9]){var u=t[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[_9]){var d=t[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let f=rpe.exec(e.text.substring(n.index+n.text.length));if(!f)return n.text.match(/^\d+$/)?null:n;let p=new Date(r.getTime());if((f[p9]||f[g9])&&(p=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),f[p9]){let t=f[p9];t==`明`||t==`聽`?e.refDate.getHours()>1&&p.setDate(p.getDate()+1):t==`昨`||t==`尋`||t==`琴`?p.setDate(p.getDate()-1):t==`前`?p.setDate(p.getDate()-2):t==`大前`?p.setDate(p.getDate()-3):t==`後`?p.setDate(p.getDate()+2):t==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else if(f[g9]){let e=f[g9];e==`明`||e==`聽`?p.setDate(p.getDate()+1):e==`昨`||e==`尋`||e==`琴`?p.setDate(p.getDate()-1):e==`前`?p.setDate(p.getDate()-2):e==`大前`?p.setDate(p.getDate()-3):e==`後`?p.setDate(p.getDate()+2):e==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else n.end.imply(`day`,p.getDate()),n.end.imply(`month`,p.getMonth()+1),n.end.imply(`year`,p.getFullYear());if(i=0,a=0,o=-1,f[b9]){let e=parseInt(f[b9]);if(isNaN(e)&&(e=s9(f[b9])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(f[v9]),isNaN(i)&&(i=s9(f[v9])),f[y9]?f[y9]==`半`?a=30:f[y9]==`正`||f[y9]==`整`?a=0:(a=parseInt(f[y9]),isNaN(a)&&(a=s9(f[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),f[x9]){if(i>12)return null;var c=f[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(f[m9]){var l=f[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(f[h9]){var u=f[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(f[_9]){var d=f[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=f[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},ape=RegExp(`(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),ope=class extends ${innerPattern(){return ape}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},spe=class extends K1{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}},cpe=class extends X1{patternBetween(){return/^\s*$/i}};new O2(S9());var lpe=new O2(S9());new O2(C9());function S9(){let e=C9();return e.parsers.unshift(new Gfe),e}function C9(){let e=E0({parsers:[new qfe,new tpe,new ope,new ipe,new Xfe,new $fe],refiners:[new spe,new cpe]});return e.refiners=e.refiners.filter(e=>!(e instanceof i0)),e}var upe=new Set([`with`,`about`,`from`,`on`,`the`,`a`,`and`,`meeting`]),w9=e=>e.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(e=>e&&!upe.has(e)),T9={en:j2,de:b4,fr:l3,ja:Lae,pt:eoe,nl:Xoe,ru:bse,es:qse,uk:_ce,it:Tle,sv:Xle,fi:wue,vi:sde,id:Wde,ar:vfe,"zh-cn":Vfe,"zh-tw":lpe};function dpe(e,{now:t=new Date,locale:n=new Intl.DateTimeFormat().resolvedOptions().locale,language:r=n}={}){let i,a,o=e,s=(e=0)=>new Date(t.getFullYear(),t.getMonth(),t.getDate()+e),c=(t,n,r)=>{!Number.isFinite(n.getTime())||!Number.isFinite(r.getTime())||r<=n||(i={start:n.getTime(),end:r.getTime()},a=t,o=(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim())},l=/\b(?:(this|last) (week|month)|(past|last) (\d+) (days?|weeks?))\b/i.exec(e);if(l){let e,r;if(l[4])e=s(1-Number(l[4])*(l[5].toLowerCase().startsWith(`week`)?7:1)),r=s(1);else if(l[2].toLowerCase()===`month`){let n=l[1].toLowerCase()===`last`?-1:0;e=new Date(t.getFullYear(),t.getMonth()+n,1),r=new Date(t.getFullYear(),t.getMonth()+n+1,1)}else{let i=new Intl.Locale(n),a=i.getWeekInfo?.().firstDay??i.weekInfo?.firstDay??1,o=-((t.getDay()-a+7)%7)-(l[1].toLowerCase()===`last`?7:0);e=s(o),r=s(o+7)}c({start:l.index,end:l.index+l[0].length},e,r)}else{let a=new Intl.DateTimeFormat(n).formatToParts(new Date(2001,10,22)).map(e=>e.type),o=a.indexOf(`day`)<a.indexOf(`month`),l=r.toLowerCase(),u=T9[l]??T9[l.split(`-`)[0]]??j2;u===j2&&o&&(u=M2);let d=e=>new Date(e.get(`year`),e.get(`month`)-1,e.get(`day`));for(let n of u.parse(e,t)){let t=d(n.start),r=d(n.end??n.start),a={start:n.index,end:n.index+n.text.trimEnd().length},l=e.slice(0,a.start),f=n.start.isCertain(`month`)&&!n.start.isCertain(`day`),p=n.start.isCertain(`weekday`)&&!n.start.isCertain(`day`),m=/\bin\s+$/i.exec(l);if(f){if(!m||n.end)continue;a.start=m.index}else if(p){if(/^\p{L}+\.?$/u.test(n.text.trim())&&e.trim()!==n.text.trim())continue;t>s()&&!/\b(next|this)\b/i.test(n.text)&&(t.setDate(t.getDate()-7),r.setDate(r.getDate()-7))}else if(!n.start.isCertain(`day`))continue;if(u!==j2&&u!==M2||![...n.text.matchAll(/\b(\d{1,2})\/(\d{1,2})(?:\/\d{4})?\b/g)].some(e=>Number(e[o?2:1])>12)){if(n.start.isCertain(`month`)&&!n.start.isCertain(`year`)&&!n.end?.isCertain(`year`)&&t>s()){let e=t.getMonth(),n=r.getMonth();if(t.setFullYear(t.getFullYear()-1),r.setFullYear(r.getFullYear()-1),t.getMonth()!==e||r.getMonth()!==n)continue}if(n.end){let e=/\bfrom\s+$/i.exec(l);e&&(a.start=e.index)}if(c(a,t,f?new Date(t.getFullYear(),t.getMonth()+1,1):new Date(r.getFullYear(),r.getMonth(),r.getDate()+1)),i)break}}}return{text:o,words:w9(o),date:i,...a?{dateSpan:a}:{}}}var E9=e=>e.trim().toLocaleLowerCase().replace(/\s+/g,` `),D9=e=>e.email?.trim()?`email:${n$(e.email)}`:`name:${E9(e.name)}`,O9=e=>[...new Map(e.map(e=>[D9(e),e])).values()],fpe=(e,t)=>(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim(),ppe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function mpe(e,t,n=[],r={}){let i=O9(t),a=new Set(n.map(D9)),o=[];for(let t of i){let n=a.has(D9(t)),r=[t.email?.trim(),...n||t.name.trim().split(/\s+/).length>1?[t.name.trim()]:[]].filter(e=>!!e);for(let n of r){let r=RegExp(`(?<![\\p{L}\\p{N}@._+-])${ppe(n).replace(/\s+/g,`\\s+`)}(?![\\p{L}\\p{N}@._+-])`,`iu`).exec(e);if(r){o.push({person:t,start:r.index,end:r.index+r[0].length});break}}}let s=o.filter(e=>!o.some(t=>t!==e&&t.start===e.start&&t.end===e.end&&a.has(D9(t.person))&&!a.has(D9(e.person)))),c=s.filter(e=>!s.some(t=>t.start<=e.start&&t.end>=e.end&&t.end-t.start>e.end-e.start)),l=c.filter(e=>!c.some(t=>t!==e&&t.start<e.end&&t.end>e.start)),u=e;for(let e of l)u=u.slice(0,e.start)+` `.repeat(e.end-e.start)+u.slice(e.end);let d=dpe(u,r).dateSpan,f=[...u.matchAll(/[\p{L}\p{N}][\p{L}\p{N}@._+'’-]*/gu)],p=[];for(let t of i){if(l.some(e=>D9(e.person)===D9(t)))continue;let n=c.find(e=>D9(e.person)===D9(t));if(n){p.push(n);continue}let r=E9(t.name).split(/\s+/),i;f.forEach((n,a)=>{if(d&&n.index>=d.start&&n.index<d.end)return;let o=n[0].toLocaleLowerCase();if(!w9(o).length||o.length<3&&o!==r[0])return;let s=e=>{(!i||e-n.index>i.end-i.start)&&(i={person:t,start:n.index,end:e})};t.email&&n$(t.email).startsWith(o)&&s(n.index+n[0].length),r.forEach((t,n)=>{for(let t=0;a+t<f.length&&n+t<r.length;t++){let i=f[a+t];if(d&&i.index>=d.start&&i.index<d.end||t&&!/^\s+$/.test(e.slice(f[a+t-1].index+f[a+t-1][0].length,i.index))||!r[n+t].startsWith(i[0].toLocaleLowerCase()))break;s(i.index+i[0].length)}})}),i&&p.push(i)}return{text:u,matches:l,suggestions:p}}function hpe(e,t,n,r,i=[],a){let o=i.find(e=>e.id===a||e.aliases?.includes(a)),s=[...o?.attendees??[],...t,...i.filter(e=>e!==o).flatMap(e=>e.attendees)],c=new Set(s.filter(e=>e.email?.trim()).map(e=>E9(e.name))),l=[...n,{name:r,email:null},...s.filter(e=>E9(e.name)===E9(r))],u=O9(s).filter(e=>(e.email?.trim()||!c.has(E9(e.name)))&&!l.some(t=>t.email?.trim()&&e.email?.trim()?n$(t.email)===n$(e.email):E9(t.name)===E9(e.name))),{matches:d,suggestions:f}=mpe(e,u),p=new Set([...d,...f].filter(t=>!fpe(e,t)).map(e=>D9(e.person)));return u.filter(e=>p.has(D9(e))).slice(0,5)}function k9(e,t,n,r=!0){(0,U.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 A9=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),gpe=e=>j9(e).split(/\s+/)[0]??e;function j9(e){let t=M9(e);return!t?.email||t.name!==t.email?t?.name??e:i$(t.email)}function M9(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 N9(e,t,n=3){let r=e.filter(e=>!A9(e.name,t));if(!r.length)return W(`Me`);let i=r.slice(0,n).map(e=>gpe(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 _pe(e,t){return e.some(e=>!A9(e.name,t))?N9(e,t,2):W(`Add attendees`)}function P9(){let[e,t]=(0,U.useState)(``);return(0,U.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function vpe({m:e}){let[t,n]=(0,U.useState)(!1),r=Pf(t),i=P9(),a=(0,U.useRef)(null),o=(0,U.useCallback)((e=!0)=>{n(!1),e&&a.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.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,G.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(nv,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),_pe(e.attendees,i)]})}),r.value&&(0,G.jsx)(ype,{m:e,me:i,motionProps:r.props,chip:a,onClose:o})]})}function ype({m:e,me:t,motionProps:n,chip:r,onClose:i}){let[a,o]=(0,U.useState)(``),[s,c]=(0,U.useState)(()=>!e.attendees.some(e=>!A9(e.name,t))),[l,u]=(0,U.useState)(!1),[d,f]=(0,U.useState)([]),[p,m]=(0,U.useState)([]),[h,g]=(0,U.useState)(null),_=(0,U.useId)(),v=hpe(a,d,e.attendees,t,p,e.eventId),y=v.findIndex(e=>D9(e)===h);(0,U.useEffect)(()=>{let t=0,n=()=>{let n=++t;window.yogurt.search.people().then(e=>{n===t&&f(e)},()=>{}),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(e=>{n===t&&m(e.status===`granted`?e.events:[])},()=>{n===t&&m([])})};n();let r=window.yogurt.meetings.onChange(n),i=window.yogurt.calendar.onChange(n);return()=>{t++,r(),i()}},[e.id,e.startedAt,e.eventStartedAt,e.eventId]);let b=(0,U.useRef)(null),x=(0,U.useRef)(null);k9(x,r,i,!n.inert),(0,U.useEffect)(()=>{x.current?.querySelector(`[role="option"][aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[h]),(0,U.useEffect)(()=>{s&&b.current?.focus({preventScroll:!0})},[s]);let S=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return sQ.add({title:W(`Yogurt couldn't make that change. Try again.`)}),!1}},C=async(t=M9(a))=>{t&&(e.attendees.some(e=>t.email?.trim()&&e.email?.trim()?A9(e.email,t.email):A9(e.name,t.name))||await S([...e.attendees,t])&&(o(``),g(null),b.current?.focus()))},w=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},T=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:n})=>e.ownEmail&&n.email?n$(n.email)!==n$(e.ownEmail):!A9(n.name,t)),E=a$([{p:{name:t||W(`Me`),email:e.ownEmail??null},i:-1,mine:!0},...T]);return(0,G.jsxs)(`div`,{ref:x,"data-testid":`people-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":W(`People`),onKeyDown:w,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,G.jsx)(`div`,{"data-testid":`people-list`,className:`people-list grouped-people overflow-y-auto p-1.5`,children:E.map(t=>(0,G.jsxs)(`section`,{"aria-label":t.label||W(`Other people`),children:[(0,G.jsx)(`h4`,{className:`company-heading`,title:t.domain||void 0,children:t.label||W(`Other people`)}),(0,G.jsx)(`ul`,{children:t.people.map(({p:t,i:n,mine:r})=>(0,G.jsx)(bpe,{name:j9(t.name),email:t.email,mine:r,onRename:r?void 0:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:r?void 0:()=>void S(e.attendees.filter((e,t)=>t!==n))},t.email||n))})]},t.domain))}),(0,G.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,G.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),b.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,G.jsx)(z_,{size:14,"aria-hidden":`true`}),W(`Add an attendee`)]}),s&&(0,G.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,G.jsx)(`input`,{ref:b,"data-testid":`people-add`,value:a,onChange:e=>{o(e.target.value),g(null)},maxLength:200,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":l&&v.length>0,"aria-controls":l&&v.length>0?_:void 0,"aria-activedescendant":l&&y>=0?`${_}-${y}`:void 0,onKeyDown:e=>{if(!e.nativeEvent.isComposing){if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&v.length){e.preventDefault();let t=y<0?e.key===`ArrowDown`?0:v.length-1:(y+(e.key===`ArrowDown`?1:-1)+v.length)%v.length;g(D9(v[t]))}else e.key===`Enter`&&(e.preventDefault(),C(v[y]??M9(a)))}},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`})}),s&&l&&v.length>0&&(0,G.jsx)(`ul`,{id:_,role:`listbox`,"aria-label":W(`People`),className:`mt-1`,children:v.map((e,t)=>(0,G.jsxs)(`li`,{id:`${_}-${t}`,role:`option`,"aria-selected":t===y,onMouseDown:e=>e.preventDefault(),onMouseMove:()=>g(D9(e)),onClick:()=>void C(e),className:`person-row flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-[13px] hover:bg-[var(--line)] ${t===y?`bg-[var(--line)]`:``}`,children:[(0,G.jsx)(nv,{size:14,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsxs)(`span`,{className:`min-w-0`,children:[(0,G.jsx)(`span`,{className:`block truncate`,children:j9(e.name)}),e.email&&(0,G.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:e.email})]})]},D9(e)))}),r$(l,a)&&(0,G.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,G.jsx)(x_,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,G.jsx)(`span`,{children:W(`Nothing is sent. This is only for your notes.`)})]})]})]})}function bpe({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{sQ.add({title:W(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,G.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,G.jsx)(`span`,{className:`person-initials`,"aria-hidden":`true`,children:o$(e)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,G.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,G.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,G.jsxs)(`span`,{className:`block truncate`,children:[e,n&&(0,G.jsxs)(`span`,{className:`text-muted`,children:[` `,W(`(me)`)]})]}),t&&(0,G.jsx)(`span`,{"data-testid":`people-email`,className:`block truncate text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,G.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":W(`Rename`),title:W(`Rename`),onClick:()=>{u(e),c(!0)},className:`ghost-btn workspace-icon person-remove`,children:(0,G.jsx)(F_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,G.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":W(`Remove {name}`,{name:e}),title:W(`Remove`),className:`ghost-btn workspace-icon person-remove`,children:(0,G.jsx)(av,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}var xpe=6e5,Spe=(e,t,n)=>t!=null&&n>=e-6e5&&n<t;function Cpe(e,t){let[n,r]=(0,U.useState)(Date.now);return(0,U.useEffect)(()=>{let n,i=()=>{clearTimeout(n);let a=Date.now();r(a);let o=a<e-6e5?e-xpe:t!=null&&a<t?t:void 0;o!==void 0&&(n=setTimeout(i,Math.min(o-a,2147483647)))};return i(),window.addEventListener(`focus`,i),()=>{clearTimeout(n),window.removeEventListener(`focus`,i)}},[e,t]),Spe(e,t,n)}var F9,I9=!1;function wpe(){if(!I9){I9=!0;let e=()=>{F9=void 0};window.yogurt.calendar.onChange(e),window.addEventListener(`focus`,e)}if(!F9){let e=window.yogurt.calendar.list();F9=e,e.then(t=>{t.status!==`granted`&&F9===e&&(F9=void 0)},()=>{F9===e&&(F9=void 0)})}return F9}function Tpe(e){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(0),a=(0,U.useCallback)(()=>i(e=>e+1),[]),o=e.eventStartedAt??e.startedAt,s=`${e.id}/${e.eventId}/${o}`,c=window.yogurt.capabilities.calendar&&!!e.eventId;return(0,U.useEffect)(()=>{if(!c)return;let e=!0;Promise.all([window.yogurt.calendar.day(o).catch(()=>({status:`error`,events:[]})),wpe().catch(()=>null)]).then(([t,r])=>{e&&n({key:s,result:t,colors:Object.fromEntries((r?.calendars??[]).filter(e=>/^#[0-9a-f]{6}$/i.test(e.color??``)).map(e=>[e.id,e.color]))})});let t=window.yogurt.calendar.onChange(a);return window.addEventListener(`focus`,a),()=>{e=!1,t(),window.removeEventListener(`focus`,a)}},[c,s,o,r,a]),{details:c&&t?.key===s?t:void 0,refresh:a}}function L9(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function Epe(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function Dpe({m:e}){let[t,n]=(0,U.useState)(!1),r=Pf(t),i=(0,U.useRef)(null),{details:a,refresh:o}=Tpe(e),s=(0,U.useCallback)(()=>{n(!1),i.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.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,G.jsx)(_g,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),jG(e.startedAt)]}),r.value&&(0,G.jsx)(Ope,{m:e,details:a,refreshLinked:o,chip:i,motionProps:r.props,onClose:s},e.id)]})}function Ope({m:e,details:t,refreshLinked:n,chip:r,motionProps:i,onClose:a}){let o=(0,U.useRef)(null),s=window.yogurt.capabilities.calendar,c=s&&!!e.eventId,[l,u]=(0,U.useState)(0),[d,f]=(0,U.useState)(!1),[p,m]=(0,U.useState)(e.eventStartedAt??e.startedAt),[h,g]=(0,U.useState)(t?.result),_=c?t?.result:h,v=(0,U.useRef)(c&&!t),[y,b]=(0,U.useState)(!1),x=(0,U.useRef)(null),[S,C]=(0,U.useState)(!1),w=cv(s&&!c&&!_),T=(0,U.useRef)(!1),E=(0,U.useRef)(null),D=(0,U.useRef)(null),O=(0,U.useRef)(null);k9(o,r,a,!i.inert);let k=(0,U.useRef)(new Map);t&&(t.result.status!==`granted`&&k.current.clear(),k.current.set(new Date(e.eventStartedAt??e.startedAt).toDateString(),t.result));let[A,j]=(0,U.useState)(e.eventId);if(A!==e.eventId){let n=e.eventStartedAt??e.startedAt;v.current=c&&!t,j(e.eventId),f(!1),m(n),g(k.current.get(new Date(n).toDateString()))}(0,U.useEffect)(()=>{if(!s||c)return;let e=!0;return window.yogurt.calendar.day(p).catch(()=>({status:`error`,events:[]})).then(t=>{e&&(t.status!==`granted`&&k.current.clear(),k.current.set(new Date(p).toDateString(),t),g(t))}),()=>{e=!1}},[s,c,p,l]);let M=e=>{g(k.current.get(new Date(e).toDateString())),m(e)};(0,U.useEffect)(()=>{d||M(e.eventStartedAt??e.startedAt)},[d,e.eventStartedAt,e.startedAt]);let N=new Date(e.eventStartedAt??e.startedAt).toDateString(),P=new Date(p).toDateString()===N?_:k.current.get(N),F=c?P?.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??(P?null:void 0):null;(0,U.useEffect)(()=>{if(!s||c)return;let e=()=>u(e=>e+1),t=window.yogurt.calendar.onChange(e);return window.addEventListener(`focus`,e),()=>{t(),window.removeEventListener(`focus`,e)}},[s,c]);let I=()=>c?n():u(e=>e+1),L=()=>void window.yogurt.calendar.connect().then(I,()=>c?n():g({status:`error`,events:[]})),R=_?.status===`granted`,ee=s&&!c&&(!_||R);(0,U.useEffect)(()=>{d&&T.current&&!c&&_&&!R&&O.current?.focus({preventScroll:!0})},[d,c,_,R]);let z=F?.start??(c?e.eventStartedAt:null)??e.startedAt,te=F?.end??(c?e.eventEndedAt:null),ne=F?.calendar??(c&&e.eventCalendarName?{name:e.eventCalendarName,source:e.eventCalendarSource}:null),re=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),ie=Cpe(z,te),B=ie?F?.url?.trim():void 0,V=F?.calendar?.id?t?.colors[F.calendar.id]:void 0,ae=new Date(ee?p:z),H={month:`short`,day:`numeric`,...ae.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}},oe=ae.toLocaleDateString(xt(),{...H,weekday:`long`}),se=ae.toLocaleDateString(xt(),{...H,weekday:`short`});(0,U.useLayoutEffect)(()=>{let e=x.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`),n=()=>{t.font=getComputedStyle(e).font,C(t.measureText(oe).width>e.clientWidth)};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[oe,c]);let ce=w===`skeleton`?(0,G.jsx)(`div`,{className:`loading-content`,"data-loading-phase":w,"aria-busy":`true`,children:(0,G.jsxs)(`div`,{className:`loading-placeholder`,children:[(0,G.jsx)(`span`,{role:`status`,className:`sr-only`,children:W(`Looking at your calendar…`)}),(0,G.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,children:(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:`65%`}})})]})}):null,le=_&&!R?(0,G.jsxs)(`div`,{className:`note-date-access flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,G.jsx)(`p`,{role:`status`,className:`text-xs text-muted`,children:_.status===`error`?W(`Yogurt couldn't read your calendar`):W(`Calendar access is off`)}),(0,G.jsx)(`div`,{className:`ms-auto flex shrink-0`,children:(0,G.jsx)(`button`,{ref:O,className:`workspace-button`,onClick:_.status===`error`?I:L,children:_.status===`error`?W(`Try again`):_.status===`denied`?W(`Open System Settings`):W(`Connect calendar`)})})]}):null;return(0,G.jsx)(`div`,{ref:o,"data-testid":`note-date-card`,...i,"data-anchor":`start`,"data-picking":ee||d,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(),c&&d?(f(!1),D.current?.focus({preventScroll:!0})):a())},children:(0,G.jsxs)(kpe,{view:`${e.eventId??`unlinked`}/${ee?`picker`:`details`}/${c?`linked`:_?.status??(w===`skeleton`?`skeleton`:`waiting`)}`,children:[!c&&(0,G.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,G.jsx)(`h3`,{ref:x,"data-testid":`note-date-heading`,tabIndex:-1,"aria-live":`polite`,"aria-label":oe,title:oe,children:S?se:oe}),(0,G.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:(R||d&&ee)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,ref:E,className:`ghost-btn workspace-icon`,"data-testid":`note-date-previous`,"aria-label":W(`Previous day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,-1))},children:(0,G.jsx)(Cg,{size:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,className:`ghost-btn workspace-icon`,"data-testid":`note-date-next`,"aria-label":W(`Next day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,1))},children:(0,G.jsx)(Tg,{size:15,"aria-hidden":`true`})})]})})]}),c&&(0,G.jsxs)(`div`,{className:`note-date-linked`,children:[(0,G.jsxs)(`button`,{type:`button`,ref:D,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle`,"aria-expanded":d,disabled:y,onClick:e=>{T.current=e.detail===0,f(e=>!e)},children:[(0,G.jsx)(`span`,{className:`note-date-color note-date-reveal`,"data-ready":!!V,"aria-hidden":`true`,style:{backgroundColor:V}}),(0,G.jsxs)(`span`,{className:`note-date-identity`,children:[(0,G.jsx)(`strong`,{title:F?.title||e.eventTitle||e.title,children:F?.title||e.eventTitle||e.title}),(0,G.jsx)(`span`,{className:`note-date-time`,children:te==null?`${MG(z)} · ${W(`{count} min`,{count:re})}`:NG(z,te)}),(ne?.name||v.current)&&(0,G.jsx)(`span`,{className:`note-date-calendar note-date-reveal`,"data-ready":!!ne?.name,title:ne?.name,children:ne?.name})]}),(0,G.jsx)(xg,{size:15,"aria-hidden":`true`})]}),(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-picker-motion`,"data-open":d,"aria-hidden":!d,inert:!d,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`note-date-picker-space`,children:(0,G.jsx)(R9,{keyboard:T.current,open:d,m:e,day:p,result:_,loading:ce,previous:D,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})})})})]}),!c&&!ee&&(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-details-motion`,"data-open":!0,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`note-date-details`,children:(0,G.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,G.jsx)(jg,{size:15,"aria-hidden":`true`}),(0,G.jsx)(`div`,{children:(0,G.jsxs)(`p`,{children:[MG(z),te==null?` · ${W(`{count} min`,{count:re})}`:` – ${MG(te)}`]})})]})})})}),c&&(ie&&!_||B||_&&(!R||F===null))&&(0,G.jsx)(`div`,{className:`note-date-actions`,"aria-busy":!_,children:(0,G.jsxs)(`div`,{className:`note-date-reveal`,"data-ready":!!_,children:[R&&F===null&&(0,G.jsxs)(`div`,{className:`note-date-access flex items-center gap-3 text-xs text-muted`,children:[(0,G.jsx)(`p`,{role:`status`,children:W(`Calendar event unavailable`)}),(0,G.jsx)(`button`,{className:`text-action ms-auto`,onClick:I,children:W(`Try again`)})]}),B&&(0,G.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,G.jsxs)(`a`,{className:`workspace-button`,title:W(`Join meeting`),href:B,target:`_blank`,rel:`noreferrer`,children:[(0,G.jsx)(`span`,{children:W(`Join meeting`)}),(0,G.jsx)(zg,{size:12,"aria-hidden":`true`})]})}),_?.status!==`unsupported`&&le]})}),s&&!c&&_?.status!==`unsupported`&&!ee&&le,ee&&(0,G.jsx)(R9,{keyboard:T.current,m:e,day:p,result:_,loading:ce,previous:E,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})]})})}function R9({open:e=!0,keyboard:t,m:n,day:r,result:i,loading:a,previous:o,linking:s,onLinking:c,onLinked:l}){let[u,d]=(0,U.useState)(!1),f=(0,U.useRef)(null),p=(0,U.useRef)(null),m=P9();(0,U.useEffect)(()=>{e&&(f.current&&(f.current.scrollTop=0),t&&(f.current?.querySelector(`[data-event-id]`)??p.current??o.current)?.focus({preventScroll:!0}))},[e,t,i,o]),(0,U.useEffect)(()=>{e&&d(!1)},[e]);let h=async e=>{if(!s){c(!0),d(!1);try{await window.yogurt.meetings.linkEvent(n.id,e,r),l()}catch{d(!0)}finally{c(!1)}}},g=i?.events;return(0,G.jsxs)(`div`,{className:`note-date-picker`,children:[!n.eventId&&(!i||i.status===`granted`)&&(0,G.jsx)(Jh,{enabled:!!g?.length,children:(0,G.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.events.length?Epe(g,n.startedAt).map(e=>(0,G.jsx)(`button`,{"data-event-id":e.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:s,onClick:()=>void h(e.id),children:(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{children:e.title||W(`Meeting`)}),(0,G.jsxs)(`small`,{children:[MG(e.start),` – `,MG(e.end)]}),!!e.attendees.length&&(0,G.jsx)(`small`,{children:N9(e.attendees,m)})]})},e.id)):(0,G.jsx)(`p`,{"data-testid":`note-date-events-none`,title:W(`No events`),children:W(`No events`)}):a})}),n.eventId&&(0,G.jsxs)(`button`,{ref:p,"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:s,onClick:()=>void h(null),children:[(0,G.jsx)(h_,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{children:[W(`Unlink calendar event`),(0,G.jsx)(`small`,{children:W(`Keep the title, attendees and notes.`)})]})]}),u&&(0,G.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:W(`Yogurt couldn't update the calendar link. Try again.`)})]})}var kpe=class extends U.Component{shell=(0,U.createRef)();body=(0,U.createRef)();animations=[];copy=null;stop=()=>{this.animations.forEach(e=>e.cancel()),this.animations=[],this.copy?.remove(),this.copy=null};getSnapshotBeforeUpdate(e){let t=this.shell.current,n=this.body.current;if(e.view===this.props.view||!t||!n||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!parseFloat(getComputedStyle(t).getPropertyValue(`--note-date-ms`)))return null;let r=n.cloneNode(!0);return r.inert=!0,r.setAttribute(`aria-hidden`,`true`),r.querySelectorAll(`[id],[data-testid],[autofocus]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`),e.removeAttribute(`autofocus`)}),r.classList.add(`note-date-retiring`),{height:t.getBoundingClientRect().height,copy:r}}componentDidUpdate(e,t,n){if(!n){window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&this.stop();return}this.stop();let r=this.shell.current,i=this.body.current;this.copy=n.copy,r.append(n.copy);let a=getComputedStyle(r),o={duration:parseFloat(a.getPropertyValue(`--note-date-ms`)),easing:a.getPropertyValue(`--note-date-ease`).trim()},s=[r.animate([{height:`${n.height}px`},{height:`${i.getBoundingClientRect().height}px`}],o),i.animate([{opacity:0},{opacity:1}],o),n.copy.animate([{opacity:1},{opacity:0}],o)];this.animations=s,Promise.all(s.map(e=>e.finished)).then(()=>{this.animations===s&&this.stop()},()=>{})}componentWillUnmount(){this.stop()}render(){return(0,G.jsx)(`div`,{ref:this.shell,className:`note-date-swap`,children:(0,G.jsx)(`div`,{ref:this.body,className:`agenda-inspector-content`,children:this.props.children})})}},z9=()=>Tv({mac:W(`Uses the microphone your Mac is set to`),other:W(`Uses the microphone your computer is set to`)}),Ape=1500,jpe=15e3,Mpe=8e3;function Npe({recording:e,paused:t}){let[n,r]=(0,U.useState)(),[i,a]=(0,U.useState)(!1),o=Pf(i),[s,c]=(0,U.useState)(null),l=(0,U.useRef)(null),u=(0,U.useRef)(null),d=(0,U.useRef)(void 0),f=(0,U.useCallback)(()=>window.yogurt.audio.mics().then(e=>{d.current=e,r(e)}).catch(()=>{}),[]);(0,U.useEffect)(()=>{f(),window.addEventListener(`focus`,f);let t=e?setInterval(f,jpe):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,U.useEffect)(()=>{if(s===null)return;let e=setTimeout(()=>c(null),Mpe);return()=>clearTimeout(e)},[s]),(0,U.useEffect)(()=>{e||c(null)},[e]),(0,U.useEffect)(()=>{if(!i)return;f();let e=setInterval(f,Ape),t=e=>{l.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,f]),(0,U.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??W(`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,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,G.jsxs)(`div`,{ref:l,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,G.jsxs)(`button`,{ref:u,"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,G.jsx)(eY,{show:t?`paused`:`mic`,options:{mic:(0,G.jsx)(k_,{size:11}),paused:(0,G.jsx)(eK,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,G.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?W(`Recording paused`):h}),(0,G.jsx)(xg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),s!==null&&(0,G.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:W(`The selected microphone is unavailable, so recording is using your system microphone.`)}),o.value&&n&&(0,G.jsxs)(`div`,{"data-testid":`mic-menu`,...o.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":W(`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,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void p(null),className:g,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[W(`Auto`),(0,G.jsx)(`span`,{"data-testid":`mic-auto-info`,title:z9(),"aria-label":z9(),className:`text-muted`,children:(0,G.jsx)(s_,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,G.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),_(n.choice===null)]}),n.devices.length>0&&(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,G.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,G.jsx)(`span`,{className:`truncate`,children:e.name}),_(n.choice===e.id)]},e.id))]})]})}var Ppe=e=>W(e===`en`?`English`:`Multi-language`);function Fpe(){let[e,t]=(0,U.useState)(),[n,r]=(0,U.useState)(!1),i=Pf(n),a=(0,U.useRef)(null),o=(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=>{a.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=>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,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`}),d=W(`Yogurt listens for the language being spoken. Pick it for meetings that are not in English.`);return(0,G.jsxs)(`div`,{ref:a,className:`relative flex min-w-0 items-center`,children:[(0,G.jsxs)(`button`,{ref:o,"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,G.jsx)(d_,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:Ppe(e)}),(0,G.jsx)(xg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),i.value&&(0,G.jsxs)(`div`,{"data-testid":`spoken-menu`,...i.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":W(`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,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>s(`en`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:W(`English only`)}),(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:W(`Highest quality`)})]}),u(e===`en`)]}),(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>s(`multi`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:W(`Multi-language`)}),(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[W(`{count} languages supported`,{count:99}),(0,G.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:d,"aria-label":d,children:(0,G.jsx)(s_,{size:12,"aria-hidden":`true`})})]})]}),u(e===`multi`)]})]})]})}function Ipe(){return null}var Lpe={folder:Yg,star:dee,heart:r_,flag:Gg,bookmark:see,briefcase:cee,users:pee,handshake:$g,message:D_,video:mee,calendar:_g,clock:jg,target:fee,lightbulb:p_,rocket:lee,code:Ng,palette:N_,megaphone:T_,graduation:Zg,book:oee,flask:qg,coffee:Fg,house:a_,plane:L_};function B9({appearance:e,size:t=16}){let n=Lpe[e.icon]??Yg;return(0,G.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,G.jsx)(n,{size:t,strokeWidth:1.75})})}function V9(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 H9({value:e,onChange:t,disabled:n}){return(0,G.jsxs)(`div`,{className:`folder-choices`,children:[(0,G.jsx)(`div`,{className:`folder-choice-label`,children:W(`Icon`)}),(0,G.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":W(`Icon`),onKeyDown:e=>V9(e,6),children:Object.keys(wt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":W(wt[r]),title:W(wt[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,G.jsx)(B9,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,G.jsx)(`div`,{className:`folder-choice-label`,children:W(`Color`)}),(0,G.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":W(`Color`),onKeyDown:e=>V9(e,1),children:Object.keys(Tt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":W(Tt[r]),title:W(Tt[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,G.jsx)(`span`,{})},r))})]})}var U9=`application/x-yogurt-meeting`;function W9(e){let[t,n]=(0,U.useState)();return(0,U.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 Rpe(e,t){return G9(e,t,!0)}async function G9(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 K9(e,t,n){let r=e.filter(e=>t[e]?.includes(n)).length;return r===0?!1:r===e.length||`mixed`}var zpe=e=>e!==!0;function Bpe(e,t,n){let r=Object.entries(e).filter(([e,r])=>r.saving||r.source===n||K9(t,n,e)!==r.checked);return r.length===Object.keys(e).length?e:Object.fromEntries(r)}function q9({meetingId:e,meetingIds:t,memberships:n,suggestedId:r,onNew:i,testId:a,autoFocus:o=!1}){let s=W9(),c=(0,U.useRef)(null),l=s!==void 0;(0,U.useEffect)(()=>{o&&l&&(c.current?.querySelector(`[data-suggested]`)??c.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`))?.focus()},[o,l]);let u=W9(n?null:e),d=(0,U.useMemo)(()=>t??(e?[e]:[]),[t,e]),f=(0,U.useMemo)(()=>n??{[e??``]:u?.map(e=>e.id)??[]},[n,e,u]),[p,m]=(0,U.useState)({}),h=(0,U.useRef)(!1),g=Object.values(p).some(e=>e.saving);(0,U.useEffect)(()=>{m(e=>Bpe(e,d,f))},[d,f,p]);let _=e=>e in p?p[e].checked:K9(d,f,e),v=async e=>{if(h.current||!d.length||!n&&!u)return;let t=zpe(_(e));h.current=!0,m(n=>({...n,[e]:{checked:t,saving:!0,source:f}}));try{await G9(e,d,t),m(t=>({...t,[e]:{...t[e],saving:!1}}))}catch{m(t=>{let n={...t};return delete n[e],n}),sQ.add({title:W(`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`;return(0,G.jsxs)(`div`,{ref:c,"data-testid":a,role:`group`,"aria-label":W(`Folders`),children:[s?.map(e=>(0,G.jsxs)(`button`,{"data-suggested":e.id===r||void 0,role:`menuitemcheckbox`,"aria-checked":_(e.id),"aria-disabled":g||!n&&!u,"data-testid":`folder-option`,onClick:()=>void v(e.id),className:y,children:[(0,G.jsx)(B9,{appearance:e,size:15}),(0,G.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.id===r&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-muted`,children:W(`Suggested`)}),_(e.id)===!0&&(0,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`}),_(e.id)===`mixed`&&(0,G.jsx)(j_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,disabled:g,onClick:i,className:`${y} ${s?.length?`folder-picker-new`:``}`,children:[(0,G.jsx)(z_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),W(`New folder…`)]})]})}function Vpe({meetingId:e,onNew:t,suggestion:n,row:r,rowFolders:i,children:a,onChoose:o}){let[s,c]=(0,U.useState)(null);(0,U.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=W9(r?null:e),d=r?i:u,f=Mf(),[p,m]=(0,U.useState)(null),[h,g]=(0,U.useState)(!1),[_,v]=(0,U.useState)(!1),y=Pf(_),b=(0,U.useRef)(null),x=(0,U.useRef)(null),S=(0,U.useRef)(null);(0,U.useLayoutEffect)(()=>{let e=S.current;S.current=null,e&&document.activeElement===document.body&&(r?e:x.current)?.focus({preventScroll:!0})}),(0,U.useEffect)(()=>{l&&d?.length&&l.dismiss(),p?.phase===`settled`&&d?.length&&m(null)},[d,l,p]),(0,U.useEffect)(()=>{if(!_)return;let e=e=>{b.current?.contains(e.target)||v(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[_]);let C=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)},w=p&&!(p.phase===`settled`&&d?.length)?p:null,T=w?.folder??(d?.length===0?l?.folder:void 0),E=w?.phase===`accepted`||w?.phase===`settled`,D=T?.name??(d?.length?d.length===1?d[0].name:W(`{name} + {more}`,{name:d[0].name,more:d.length-1}):W(`Add to folder`)),O=()=>r?b.current?.closest(`li`)?.querySelector(`.native-meeting-link`):x.current,k=t=>{S.current=t??null,sQ.close(`folder-suggestion-${e}`),l?.dismiss(),c(null),v(!1)},A=async()=>{if(!T||h||w)return;let t=O();g(!0),m({folder:T,phase:`saving`});try{await window.yogurt.folders.dismissSuggestion(e),m({folder:T,phase:`dismissed`}),k(t)}catch{m(null),sQ.add({title:W(`Yogurt couldn't make that change. Try again.`)})}finally{g(!1)}},j=async()=>{if(!T||h||w)return;let t=O(),n=T.id;m({folder:T,phase:`saving`}),g(!0),sQ.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:T,phase:`accepted`}),k(t)}catch{m(null),sQ.add({id:`folder-suggestion-${e}`,data:{testId:`folder-suggestion-error`},title:W(`Yogurt couldn't add this note to the folder. Try again.`)})}finally{g(!1)}};(0,U.useEffect)(()=>{if(!p||p.phase===`saving`||p.phase===`settled`)return;let e=O(),t=setTimeout(()=>{S.current=e??null,m(p.phase===`accepted`?{...p,phase:`settled`}:null)},f?kf.micro:kf.base);return()=>clearTimeout(t)},[p,f]);let M=T??(d?.length===1?d[0]:void 0);if(r&&!T)return a;let N=(0,G.jsxs)(`button`,{ref:x,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":o?void 0:!!_,onClick:e=>{o&&T?o(T.id):v(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},title:T?.name??(d?.map(e=>e.name).join(`, `)||void 0),className:T?`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&&T?(0,G.jsx)(`span`,{className:`meeting-folder-dot`,"data-folder-color":T.color,"aria-hidden":`true`}):M?(0,G.jsx)(B9,{appearance:M,size:14}):(0,G.jsx)(Yg,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:D})]});return(0,G.jsxs)(`div`,{ref:b,className:r?`meeting-folder-suggestion`:`relative`,onClick:r?e=>e.stopPropagation():void 0,children:[T?(0,G.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":W(E?`Folders`:`Suggested`),inert:w?.phase===`dismissed`,"data-phase":w?.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:[N,(0,G.jsxs)(`div`,{className:`note-folder-actions`,inert:E||w?.phase===`dismissed`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`ghost-btn workspace-icon`,disabled:h||!!w,onClick:()=>void A(),"aria-label":W(`Dismiss suggestion`),title:W(`Dismiss suggestion`),children:(0,G.jsx)(av,{size:r?12:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`ghost-btn workspace-icon`,disabled:h||!!w,onClick:()=>void j(),"aria-label":W(`Add to folder`),title:W(`Add to folder`),children:(0,G.jsx)(yg,{size:r?12:15,"aria-hidden":`true`})})]})]}):N,y.value&&(0,G.jsx)(`div`,{"data-testid":`folder-menu`,...y.props,"data-anchor":`start`,role:`menu`,"aria-label":W(`Add to folder`),onKeyDown:C,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,G.jsx)(q9,{autoFocus:!0,testId:`folder-chip-list`,meetingId:e,suggestedId:T?.id,onNew:()=>{v(!1),t?.()}})})]})}function J9({folder:e,onDone:t}){let[n,r]=(0,U.useState)(e??Et),[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,G.jsx)(GJ,{testId:`folder-name`,title:W(e?`Rename folder`:`New folder`),description:e?void 0:W(`A meeting can be in more than one folder.`),onCancel:()=>t(),busy:o,children:(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,G.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,G.jsx)(B9,{appearance:n,size:15}),(0,G.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,G.jsx)(H9,{value:n,onChange:r,disabled:o}),c&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't save this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:W(e?`Rename`:`Create folder`)}),(0,G.jsx)(WJ,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`workspace-button`,children:W(`Cancel`)})]})]})})}function Hpe({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,G.jsxs)(GJ,{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,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't delete this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:W(`Delete folder`)}),(0,G.jsx)(WJ,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`workspace-button`,children:W(`Cancel`)})]})]})}function Upe({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,G.jsxs)(GJ,{testId:`folder-appearance`,title:W(`Change icon`),onCancel:t,busy:i,children:[(0,G.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,G.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,G.jsx)(B9,{appearance:n,size:23})}),(0,G.jsx)(`strong`,{children:e.name})]}),(0,G.jsx)(H9,{value:n,onChange:r,disabled:i}),o&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:W(`Yogurt couldn't save this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:W(`Save`)}),(0,G.jsx)(WJ,{"data-dialog-cancel":!0,disabled:i,className:`workspace-button`,children:W(`Cancel`)})]})]})}function Y9(e,t,n,r){let[,i]=(0,U.useState)(0),a=(0,U.useMemo)(()=>new $Q(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),t$(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var X9=new Map;function Wpe({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i,onResumeRequested:a}){let[o,s]=(0,U.useState)(),[c,l]=(0,U.useState)(null);(0,U.useLayoutEffect)(()=>{if(!c)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-c.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(c),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[c]),(0,U.useEffect)(()=>{o&&t({id:o.id,title:o.title})},[o?.id,o?.title,t]);let[u,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(!1),[m,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),[v,y]=(0,U.useState)(!1),[b,x]=(0,U.useState)(!1),[S,C]=(0,U.useState)(!1),[w,T]=(0,U.useState)(null),[E,D]=(0,U.useState)(),[O,k]=(0,U.useState)(!1),[A,j]=(0,U.useState)();(0,U.useEffect)(()=>{let t=!0,n=0;k(!1);let r=()=>{let r=++n;window.yogurt.transcript.get(e,{last:1}).then(e=>{t&&r===n&&k(e.some(e=>!!e.text.trim()))})},i=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&t.text.trim()&&(n++,k(!0))}),a=window.yogurt.transcript.onSpeakers(t=>{t===e&&r()});return r(),()=>{t=!1,i(),a()}},[e]),(0,U.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.setup.onState(e=>{t=!0,j(e)});return window.yogurt.setup.state().then(n=>{e&&!t&&j(n)}),()=>{e=!1,n()}},[]);let[M,N]=(0,U.useState)(()=>X9.get(e)?.view??`mine`),[P,F]=(0,U.useState)(!1),I=Mf(),L=ZQ(E,I),R=o?.id===e&&o.state!==`prepared`&&o.state!==`recording`&&!!E&&E.status!==`idle`,ee=P&&R&&I,z=ee?`enhanced`:M,te=(0,U.useRef)(X9.has(e)),ne=(0,U.useRef)(!1),[re,ie]=(0,U.useState)(()=>X9.get(e)?.primary??`notes`),B=ee?`notes`:re,V=Lv(`note/${e}/${z}`,!!o&&!!E&&B===`notes`);(0,U.useEffect)(()=>{o&&E&&X9.set(e,{primary:B,view:z})},[e,o,E,B,z]);let[ae,H]=(0,U.useState)(B===`transcript`);(0,U.useEffect)(()=>{B===`transcript`&&H(!0)},[B]);let[oe,se]=(0,U.useState)(!1),ce=(0,U.useRef)(null),le=(0,U.useRef)(null),ue=(0,U.useRef)(0);(0,U.useEffect)(()=>()=>{ue.current++,le.current?.skipTransition()},[e]);let de=(0,U.useRef)(null),fe=(0,U.useRef)(null),pe=(0,U.useRef)(null),me=(0,U.useRef)(null),[he,ge]=(0,U.useState)(!1),[_e,ve]=(0,U.useState)(!1),[ye,be]=(0,U.useState)(!1),[xe,Se]=(0,U.useState)(!1),[Ce,we]=(0,U.useState)(!1),[Te,Ee]=(0,U.useState)(null),[Oe,ke]=(0,U.useState)(null),Ae=(0,U.useRef)(void 0),[je,Me]=(0,U.useState)(null),Ne=je?.note,Pe=(0,U.useRef)(void 0);(0,U.useEffect)(()=>{if(n&&E&&o&&Pe.current!==n.seq&&(Pe.current=n.seq,te.current=!0,ie(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&pt([E.enhanced??``],n.match)>=0;N(R&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,E,o,R]);let Fe=o?.id===e&&o.state===`recording`,Ie=async()=>{let t=!o?.paused;C(!0),T(null);try{await window.yogurt.meetings.setPaused(e,t)?s(await window.yogurt.meetings.get(e)):T(t?`pause`:`resume`)}catch{T(t?`pause`:`resume`)}finally{C(!1)}};(0,U.useEffect)(()=>{if(!Fe){Me(null);return}let t=t=>Me(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,Fe]),(0,U.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(s);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,U.useEffect)(()=>{F(!1),se(!1),D(void 0),Ae.current=void 0,N(X9.get(e)?.view??`mine`),te.current=X9.has(e),ne.current=!1,ve(!1),ge(!1),be(!1),Se(!1),y(!1),x(!1);let t=t=>{let n=!Ae.current,{view:r,keptEdits:i}=FY(Ae.current,t);i&&window.yogurt.notes.keptEdits(e),Ae.current=r,D(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(te.current=!0,N(a),ie(`notes`)),t.status!==`idle`&&!te.current&&!ne.current&&N(`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)(()=>{Ae.current=E},[E]),(0,U.useEffect)(()=>{o?.state!==`recording`&&(o?.stopSavePending||E?.status!==`idle`)&&h(!1)},[o?.state,o?.stopSavePending,E?.status]),(0,U.useEffect)(()=>{if(!P||!R)return;let e=()=>{qe(`notes`,`enhanced`,!0),me.current?.focus({preventScroll:!0})};if(I){e();return}let t=setTimeout(e,kf.micro);return()=>clearTimeout(t)},[e,P,R,I]);let Le=Y9(e,`mine`,E?.mine??``,E?.saves?.mine),Re=Y9(e,`enhanced`,E?.enhanced??``,E?.saves?.enhanced);(0,U.useLayoutEffect)(()=>{let e=de.current;if(!e)return;let t=()=>{let t=(B===`transcript`?fe:z===`enhanced`&&me.current?me:pe).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[fe.current,pe.current,me.current])e&&n.observe(e);return()=>n.disconnect()},[B,z,o?.state,E?.status]);let ze=m||E?.status===`waiting`||E?.status===`writing`,Be=(0,U.useRef)(!1);if((0,U.useEffect)(()=>{a?Be.current||!o||!E||ze||f||o.stopSavePending||(Be.current=!0,a(),o.trashedAt!=null||o.stopSavePending||o.state!==`stopped`&&o.state!==`done`||Ze()):Be.current=!1},[a,o,E,ze,f]),!o||!E)return(0,G.jsx)(oK,{pending:!0,skeleton:(0,G.jsx)(sv,{layout:`note`}),className:`loading-note-frame`});let Ve=o.state===`recording`,He=o.trashedAt!=null,Ue=o.endedAt?Math.max(1,Math.round((o.durationMs??o.endedAt-o.startedAt)/6e4)):null,We=R?z:`mine`,Ge=e=>{te.current=!0,N(e),Le.flush(),Re.flush()},Ke=(e,t=!1)=>{se(t),e!==re&&(ie(e),e===`transcript`&&ge(!1),Le.flush(),Re.flush())},qe=(e,t,n=!1)=>{F(!1);let r=++ue.current;le.current?.skipTransition();let i=()=>{r===ue.current&&(Ke(e,n),t&&Ge(t))},a=ce.current;e===B&&(!t||t===We)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(le.current=a.startViewTransition(()=>(0,De.flushSync)(i)),le.current.ready.catch(()=>{}))},Je=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[fe.current,pe.current,...R?[me.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})},Ye=async()=>(await Promise.all([Le.flush(),Re.flush()])).every(Boolean),Xe=async()=>{if(!f){p(!0),_(!1);try{if(!await Ye())return;let t=await window.yogurt.meetings.startPrepared(e);_(`error`in t),`error`in t||(ie(`notes`),N(`mine`))}catch{_(!0)}finally{p(!1)}}},Ze=async(t=!1)=>{if(!(f||ze)){if((E.edited||_e)&&!t)y(!0);else{y(!1),p(!0),x(!1);try{if(!await Ye())return;`error`in await window.yogurt.meetings.resume(e)?x(!0):(te.current=!1,F(!1),ie(`notes`),N(`mine`),ve(!1))}catch{x(!0)}finally{p(!1)}}}},Qe=Le.status===`failed`||Re.status===`failed`?`failed`:Le.status===`saving`||Re.status===`saving`?`saving`:`saved`,$e=async t=>{await Ye()&&(ve(!1),window.yogurt.notes.writeAgain(e,t))},et=!!E.enhanced?.trim(),tt=KQ({hasSummary:et,hasContent:O||!!E.mine.trim(),recording:Ve,busy:ze,downloading:!!(A?.notesDownloading||A?.notesError),trashed:He}),nt=()=>{tt&&!tt.reason&&(et?ge(!0):$e())};return(0,G.jsx)(oK,{pending:!1,skeleton:(0,G.jsx)(sv,{layout:`note`}),className:`loading-note-frame`,children:(0,G.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[v&&(0,G.jsx)(GJ,{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:()=>y(!1),children:(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void Ze(!0),className:`modal-button primary`,children:W(`Resume recording`)}),(0,G.jsx)(WJ,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`workspace-button`,children:W(`Cancel`)})]})}),(0,G.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed end-4 top-[10px] z-[60]`,children:(0,G.jsx)(qQ,{generation:tt,hasSummary:et,edited:E.edited||_e,rewriteOpen:he,setRewriteOpen:ge,onWriteAgain:e=>{tt&&!tt.reason&&(Ke(`notes`),Ge(`enhanced`),$e(e))},recording:Ve,savePending:o.stopSavePending,trashed:He,onRename:()=>be(!0),onDelete:()=>{Ye().then(t=>{t&&(He?Se(!0):cQ(e,`/note/${e}`))})},folders:t=>(0,G.jsx)(q9,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),we(!0)}})},e)}),(0,G.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":oe,children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(Gpe,{id:e,title:o.title,editing:ye,onEdit:be}),(0,G.jsxs)(`div`,{className:`note-meta-row`,children:[(0,G.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,G.jsx)(Dpe,{m:o}),(0,G.jsx)(vpe,{m:o}),(0,G.jsx)(Vpe,{meetingId:e,onNew:()=>we(!0),suggestion:r})]}),(0,G.jsxs)(`div`,{"data-testid":Ve?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,G.jsxs)(`div`,{"data-testid":`note-state`,"data-state":o.state,"data-paused":!!o.paused,className:`note-recording-group`,"data-recording":Ve&&!m,role:`group`,"aria-label":Ve?o.paused?W(`Paused`):W(`Recording`):W(`Meeting controls`),children:[Ve&&!m&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`note-recording-status`,children:[(0,G.jsx)(xQ,{height:14,bars:3,testId:`note-wave`,paused:!!o.paused,className:`text-muted`}),(0,G.jsx)(SQ,{view:je})]}),(0,G.jsx)(`button`,{"data-testid":`note-pause`,disabled:S,onClick:()=>{Ie()},"aria-label":o.paused?W(`Resume recording`):W(`Pause recording`),title:o.paused?W(`Resume recording`):W(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,G.jsx)(eY,{show:o.paused?`play`:`pause`,options:{pause:(0,G.jsx)(eK,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,G.jsx)(tK,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,G.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{F(!0),te.current=!0,N(`mine`),h(!0),se(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`)})]}),m&&(0,G.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:W(`Finishing…`)}),!m&&(o.state===`stopped`||o.state===`done`)&&!o.stopSavePending&&!He&&(0,G.jsxs)(`button`,{"data-testid":`note-resume`,disabled:f,"aria-busy":ze,"data-processing":ze,onClick:()=>{ze?window.yogurt.notes.stop(e).catch(console.error):Ze()},"aria-label":W(ze?`Stop summary`:`Resume recording`),className:`workspace-button note-resume-action`,title:W(ze?`Stop summary`:`Resume recording in this note`),children:[(0,G.jsx)(eY,{show:ze?`busy`:`mic`,options:{mic:(0,G.jsx)($G,{size:14}),busy:(0,G.jsxs)(`span`,{className:`summary-stop-icon`,children:[(0,G.jsx)(iK,{size:14}),(0,G.jsx)(`span`,{className:`summary-stop-square`})]})}}),(0,G.jsx)(tY,{text:W(ze?`Summarizing…`:f?`Preparing…`:`Resume recording`)})]}),o.state===`prepared`&&!He&&(0,G.jsxs)(`button`,{"data-testid":`note-start`,disabled:f,onClick:()=>{Xe()},className:`note-record-action primary`,children:[(0,G.jsx)($G,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(f?`Starting…`:`Start recording`)]})]}),(0,G.jsx)(wQ,{id:e,shown:We,status:E.status,hasEnhanced:E.enhanced!=null,beforeUse:Ye})]})]}),He&&(0,G.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,G.jsx)(Z_,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`p`,{className:`min-w-48 flex-1`,children:W(`This note is in the Trash.`)}),(0,G.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,G.jsx)(H_,{size:13,"aria-hidden":`true`}),W(`Restore`)]})]}),(0,G.jsxs)(`div`,{ref:de,className:`note-primary-tabs`,"data-summary-arriving":P&&R&&!I,children:[(0,G.jsxs)(`div`,{role:`tablist`,"aria-label":W(`Meeting view`),className:`contents`,children:[(0,G.jsxs)(`button`,{ref:fe,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":B===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:B===`transcript`?0:-1,onKeyDown:Je,onClick:e=>qe(`transcript`,void 0,e.detail>0),children:[(0,G.jsx)(dg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`Transcript`)]}),(0,G.jsxs)(`button`,{ref:pe,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":B===`notes`&&We===`mine`,"aria-controls":`note-notes-panel`,"data-version":We,tabIndex:B===`notes`&&We===`mine`?0:-1,onKeyDown:Je,onClick:e=>qe(`notes`,`mine`,e.detail>0),children:[(0,G.jsx)(Y_,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`My notes`)]}),R&&(0,G.jsxs)(`button`,{ref:me,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":B===`notes`&&We===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:B===`notes`&&We===`enhanced`?0:-1,onKeyDown:Je,onClick:e=>qe(`notes`,`enhanced`,e.detail>0),children:[(0,G.jsx)(nK,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),W(`Summary`)]})]}),B===`transcript`&&(0,G.jsx)(`div`,{ref:Ee,className:`note-primary-tools`}),(0,G.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`})]})]}),(0,G.jsx)(`div`,{ref:ke,className:`note-reading-area`,children:(0,G.jsxs)(`div`,{ref:ce,className:`note-panels`,children:[(0,G.jsx)(PY,{active:B===`notes`,summary:We===`enhanced`,generating:We===`enhanced`&&[`waiting`,`rewriting`,`handoff`,`reset`,`streaming`].includes(L),resetting:We===`enhanced`&&L===`reset`,writing:We===`enhanced`&&L===`streaming`,scroll:V,children:We===`mine`?(0,G.jsx)(ez,{focus:B===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:W(`My notes`),className:`min-h-[40vh]`,markdown:E.mine,placeholder:W(`You can add notes here to guide the summary.`),onChange:e=>{ne.current=!0;let t={...Ae.current,mine:e};Ae.current=t,D(t),Le.change(e)},onBlur:()=>{ne.current=!1,Le.flush()}}):(0,G.jsx)(Kpe,{presentation:L,focus:B===`notes`&&n?.ms===null?n:void 0,notes:E,disabled:f,onChange:e=>{ve(!0);let t={...Ae.current,enhanced:e};Ae.current=t,D(t),Re.change(e)},onBlur:Re.flush,onRetry:nt},e)}),(B===`transcript`||ae)&&(0,G.jsx)(`section`,{hidden:B!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,G.jsx)(Zv,{id:e,recording:Ve,active:B===`transcript`,inline:!0,toolbar:Te,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,G.jsxs)(`footer`,{ref:l,className:`note-footer`,children:[o.stopSavePending&&(0,G.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,G.jsx)($_,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,G.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,G.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:u,className:`workspace-button`,onClick:()=>{d(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&fe.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>d(!1))},children:W(u?`Saving…`:`Try again`)})]}),B===`notes`&&We===`enhanced`&&E.status===`done`&&E.peopleChanged&&!he&&(0,G.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,G.jsx)(`span`,{children:W(`The attendee list has changed.`)}),(0,G.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:nt,className:`workspace-button primary`,children:W(`Regenerate summary`)})]}),Qe===`failed`&&(0,G.jsxs)(JQ,{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,G.jsx)(`span`,{children:Le.reason===`too-long`||Re.reason===`too-long`?W(`This note is too long to save. Shorten it and try again.`):W(`Couldn't save your changes`)}),(0,G.jsx)(`button`,{"data-testid":`note-save-retry`,className:`text-action`,onClick:()=>{Ye()},children:W(`Try again`)})]}),g&&(0,G.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.`)}),b&&(0,G.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.`)}),w&&Ve&&(0,G.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:W(w===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),Ve&&Ne&&(0,G.jsx)(Ipe,{hint:Ne}),(0,G.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,G.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(Ve||o.state===`prepared`)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Npe,{recording:Ve,paused:Ve&&o.paused}),(0,G.jsx)(Fpe,{}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Qe!==`failed`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":Qe,role:`status`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(x_,{size:10,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:Qe===`saving`?W(`Saving…`):Tv({mac:W(`Saved on this Mac`),other:W(`Saved on this computer`)})})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ue!=null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"data-testid":`note-duration`,children:W(`{count} min`,{count:Ue})}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),W(`Yogurt can make mistakes.`)]}),(0,G.jsx)(uQ,{id:e,recording:Ve,anchor:Oe,onSource:i})]})]})]}),xe&&(0,G.jsx)(YQ,{id:e,title:o.title,onDone:()=>Se(!1)}),Ce&&(0,G.jsx)(J9,{onDone:t=>{we(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function Gpe({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,G.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,G.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,G.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 Kpe({notes:e,presentation:t,disabled:n,onChange:r,onBlur:i,onRetry:a,focus:o}){let{status:s}=e,c=t===`handoff`||t===`reset`,l=t===`waiting`||t===`streaming`||c,u=t===`rewriting`,d=(0,U.useRef)(null),f=(0,U.useRef)(0),p=(0,U.useRef)(t);(0,U.useLayoutEffect)(()=>{let e=d.current?.closest(`.note-notes-pane`);s===`failed`&&p.current===`streaming`&&e&&(e.scrollTop=0),p.current=t},[t,s]),(0,U.useLayoutEffect)(()=>{c||(f.current=d.current?.offsetHeight??0)},[c,u,e.enhanced]);let m=RG(l?e.draft:``,l,{minCommitMs:32});return t===`failed`?(0,G.jsxs)(JQ,{testId:`note-enhanced-failed`,children:[(0,G.jsx)(`span`,{children:W(`Yogurt couldn't generate this summary.`)}),(0,G.jsx)(`button`,{onClick:a,className:`text-action`,children:W(`Try again`)})]}):t===`stopped`?(0,G.jsxs)(`div`,{className:`summary-stopped`,children:[(0,G.jsx)(`p`,{role:`status`,children:W(`Summary stopped.`)}),(0,G.jsxs)(`button`,{type:`button`,onClick:a,className:`summary-generate flex items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm whitespace-nowrap text-ink hover:bg-[var(--line)] focus-visible:bg-[var(--line)]`,children:[(0,G.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),W(`Generate summary`)]})]}):t===`empty`?(0,G.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:W(`There is no transcript or typed note to summarize.`)}):t===`waiting`?(0,G.jsx)(dK,{downloading:e=>(0,G.jsxs)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:[W(`Your summary is waiting for Yogurt's AI to download.`),` `,e&&(0,G.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,G.jsx)(Qv,{part:s===`writing`?e.part:void 0})}):(0,G.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":s,className:t===`streaming`?`streaming`:``,children:[s===`failed`&&(0,G.jsxs)(JQ,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,G.jsx)(`span`,{children:W(`Yogurt couldn't regenerate the summary, so your previous version is still shown.`)}),(0,G.jsx)(`button`,{onClick:a,className:`text-action`,children:W(`Try again`)})]}),u&&(0,G.jsx)(Qv,{outline:!1,part:s===`writing`?e.part:void 0}),(0,G.jsx)(`div`,{ref:d,className:`summary-rewrite`,"data-rewriting":u,"data-handoff":c,"data-resetting":t===`reset`,style:c?{minHeight:f.current}:void 0,children:(0,G.jsx)(`div`,{className:`summary-result`,children:(0,G.jsx)(ez,{focus:o,testId:`note-enhanced-editor`,label:W(`Summary`),className:`enhanced`,markdown:c?e.enhanced??``:l?m:e.enhanced??``,streaming:l&&!c,editable:!l&&!u&&!n,onChange:r,onBlur:i})})}),l&&(0,G.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:W(`Generating notes…`)})]})}var Z9=ch.transition.collapse;ch.transition.collapseLabel,ch.transition.color,U.createContext(null),U.createContext(!0);function Q9(e,t){let n=wh(),{duration:r,easing:i}=_h(fh(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function qpe({transition:e=Z9,style:t,...n}){let r=Q9(e,`width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}function Jpe({transition:e=Z9,style:t,...n}){let r=Q9(e,`left, right, width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}U.Component;function Ype(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 Xpe({folders:e,route:t,go:n,collapsed:r=!1,sidebarMotion:i}){let[a,o]=(0,U.useState)(),[s,c]=(0,U.useState)(),[l,u]=(0,U.useState)(),[d,f]=(0,U.useState)(),[p,m]=(0,U.useState)(!1),h=(0,U.useRef)(!1),g=(0,U.useRef)(null),_=d?[...d.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!d.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),v=(0,U.useRef)(_);v.current=_,(0,U.useEffect)(()=>{!h.current&&!p&&f(void 0)},[e]);let y=async t=>{if(h.current=!1,t.every((t,n)=>t===e?.[n]?.id))f(void 0);else{f(t),m(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{f(void 0),sQ.add({title:W(`Yogurt couldn't make that change. Try again.`)})}finally{m(!1)}}},b=(e,t)=>{let n=_.indexOf(e),r=[..._];p||n+t<0||n+t>=_.length||(r.splice(n,1),r.splice(n+t,0,e),y(r))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`nav`,{"aria-label":W(`Folders`),"data-testid":`sidebar-folders`,children:[(0,G.jsx)(oK,{pending:!e,skeleton:(0,G.jsx)(sv,{layout:`folders`,testId:`folders-loading`}),children:(0,G.jsx)(Lm,{as:`div`,ref:g,axis:`y`,values:_,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{v.current=e,f(e)},children:_.map((a,s)=>{let l=e.find(e=>e.id===a);return(0,G.jsx)(Zpe,{folder:l,collapsed:r,sidebarMotion:i,current:t===`/folder/${l.id}`,go:n,constraints:g,reorderable:!p&&_.length>1,onDragStart:()=>{h.current=!0},onDragEnd:()=>void y(v.current),moveUp:!p&&s>0?()=>b(a,-1):void 0,moveDown:!p&&s<_.length-1?()=>b(a,1):void 0,onAppearance:()=>c(l),onRename:()=>o({folder:l}),onDelete:()=>u(l)},l.id)})})}),(0,G.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:()=>o({}),children:[(0,G.jsx)(z_,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:W(`New folder`)})]})]}),s&&(0,G.jsx)(Upe,{folder:s,onDone:()=>c(void 0)}),a&&(0,G.jsx)(J9,{folder:a.folder,onDone:e=>{o(void 0),e&&n(`/folder/${e.id}`)}}),l&&(0,G.jsx)(Hpe,{folder:l,onDone:e=>{u(void 0),e&&t===`/folder/${l.id}`&&n(``)}})]})}function Zpe({folder:e,collapsed:t,sidebarMotion:n,current:r,go:i,onRename:a,onDelete:o,onAppearance:s,constraints:c,reorderable:l,onDragStart:u,onDragEnd:d,moveUp:f,moveDown:p}){let m=Dm(),h=Mf(),g=(0,U.useRef)(t),_=h||g.current!==t&&!n;(0,U.useEffect)(()=>{g.current=t},[t]);let v=(0,U.useRef)(!1),[y,b]=(0,U.useState)(!1),[x,S]=(0,U.useState)(!1),[C,w]=(0,U.useState)(),T=Pf(C,C?.animate??!0),E=(0,U.useRef)(null),D=(0,U.useRef)(null),O=(0,U.useRef)(null),k=(0,U.useRef)(null);(0,U.useEffect)(()=>{if(!C)return;k.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{E.current?.contains(e.target)||w(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[C]);let A=e=>{let t=E.current.getBoundingClientRect(),n=getComputedStyle(E.current).direction===`rtl`;w({animate:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},j=e=>{let n=Array.from(k.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),w(void 0),(t?O:D).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`&&w(void 0)},M=e=>{w(void 0),(t?O:D).current?.focus(),e()},N=e=>e.dataTransfer.types.includes(U9);return(0,G.jsxs)(Zm,{as:`div`,ref:E,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":y,dragListener:!1,dragControls:m,dragConstraints:c,dragElastic:0,dragMomentum:!1,transition:_?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{v.current=!0,b(!0),w(void 0),u()},onDragEnd:()=>{b(!1),d()},children:[(0,G.jsxs)(`button`,{ref:O,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":x,"aria-current":r?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{v.current=!1,l&&e.button===0&&m.start(e,{distanceThreshold:4})},onClick:t=>{v.current&&t.detail?v.current=!1:i(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),A(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),A(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?f:p)?.())},onDragEnter:e=>{N(e)&&(e.preventDefault(),S(!0))},onDragOver:e=>{N(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>S(!1),onDrop:t=>{S(!1);let n=Ype(t.dataTransfer.getData(U9));n.length&&(t.preventDefault(),Rpe(e.id,n).catch(()=>sQ.add({title:W(`Yogurt couldn't add this note to the folder. Try again.`)})))},children:[(0,G.jsx)(B9,{appearance:e}),(0,G.jsx)(`span`,{children:e.name}),(0,G.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":W(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,G.jsx)(`button`,{ref:D,"data-testid":`sidebar-folder-more`,className:`ghost-btn workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!C,"aria-label":W(`More for “{name}”`,{name:e.name}),title:W(`More`),onClick:()=>C?w(void 0):A(!0),children:(0,G.jsx)(Lg,{size:15,"aria-hidden":`true`})}),T.value&&(0,G.jsxs)(`div`,{ref:k,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,...T.props,"data-anchor":`start`,onKeyDown:j,style:T.value.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>M(s),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(N_,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Change icon`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>M(a),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(F_,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Rename`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!f,onClick:()=>f&&M(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(lg,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Move up`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!p,onClick:()=>p&&M(p),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(og,{size:15,"aria-hidden":`true`,className:`text-muted`}),W(`Move down`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>M(o),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,G.jsx)(Z_,{size:15,"aria-hidden":`true`}),W(`Delete folder`)]})]})]})}function Qpe(){return null}function $pe({go:e}){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)(!1),[l,u]=(0,U.useState)(!1);(0,U.useEffect)(()=>{let e,t=!0,r=t=>{e=t,n(t),!t.notesError&&!t.notesUpgradeError&&c(!1),lK(t)||(i(!1),u(!1))},a=window.yogurt.setup.onState(r);return window.yogurt.setup.state().then(n=>{t&&!e&&r(n)}),()=>{t=!1,a()}},[]);let d=async()=>{o(!0),c(!1);try{await window.yogurt.setup.retry()}catch{c(!0)}finally{o(!1)}},f=async()=>{u(!1);try{await window.yogurt.setup.skipUpgrade();let t=sQ.add({title:W(`AI upgrade skipped`),timeout:8e3,data:{testId:`notes-skipped-toast`},actionProps:{children:W(`Settings`),onClick:()=>{sQ.close(t),e(`/settings/notes-model`)}}})}catch{u(!0)}};if(!t||!lK(t))return null;let p=cK(t),m=p?t.notesUpgradeError:t.notesError,h=!!m,g=W(p?`AI upgrade paused`:`AI download stopped`),_=h?g:t.notesUpgradePending&&p?W(`Upgrading AI`):p?W(`Upgrading AI · {percent}`,{percent:sK(t.notesUpgradeFraction??0)}):W(`Downloading AI · {percent}`,{percent:sK(t.notesFraction??0)}),v=uK(t),y=p?t.notesUpgradeFraction:t.notesFraction,b=y!==void 0&&Number.isFinite(y)?Math.floor(Math.max(0,Math.min(1,y))*100):void 0;return(0,G.jsx)(xG,{direction:gt(xt()),children:(0,G.jsx)(`span`,{className:`notes-download-status`,children:(0,G.jsxs)(sW,{open:r,onOpenChange:i,children:[(0,G.jsxs)(CW,{"data-testid":`notes-setup-open`,"aria-label":_,title:_,className:`bar-btn notes-download-trigger no-drag`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,"data-failed":h,"data-upgrade":p,className:`notes-download-dot`}),(0,G.jsx)(`span`,{className:`truncate`,children:_})]}),(0,G.jsx)(EW,{children:(0,G.jsx)(fG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,G.jsxs)(vG,{"data-testid":`notes-setup`,"data-failed":h,"data-anchor":`end`,"aria-label":h?g:W(p?`Upgrading AI`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:[(0,G.jsxs)(`div`,{className:`notes-download-readout`,children:[(0,G.jsx)(`strong`,{role:h?`status`:void 0,children:h?W(p?`Upgrade paused`:`Download stopped`):v.progress||W(p?`Upgrading AI`:`Downloading AI`)}),(0,G.jsx)(`span`,{children:h?v.progress:p?b!==void 0&&sK(y):v.eta})]}),(0,G.jsx)(`div`,{className:`notes-download-progress`,role:`progressbar`,"aria-label":_,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":b,children:(0,G.jsx)(`span`,{style:{width:`${b??0}%`}})}),(0,G.jsxs)(`div`,{className:`notes-download-footer`,children:[(0,G.jsx)(`p`,{className:`notes-download-support`,children:h?m:W(p?`Once this model is ready, we'll remove the old one.`:`You can record meetings. AI summaries and Ask work when this finishes.`)}),(h||p)&&(0,G.jsxs)(`div`,{className:`notes-download-actions`,children:[h&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`workspace-button`,disabled:a,onClick:()=>void d(),children:W(a?`Retrying…`:`Try again`)}),p&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-skip`,className:`text-action`,disabled:t.notesUpgradeChanging,onClick:()=>void f(),children:W(`Skip`)})]})]}),s&&(0,G.jsx)(`p`,{role:`alert`,children:W(`Yogurt couldn't restart the download.`)}),l&&(0,G.jsx)(`p`,{role:`alert`,children:W(`Yogurt couldn't change the notes model.`)})]})})})]})})})}function eme({recording:e}){let[t,n]=(0,U.useState)(),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(!1),[s,c]=(0,U.useState)();(0,U.useEffect)(()=>{let e=!0,t=!1,r=r=>{e&&(t=!0,n(r),(r.state!==`ready`||r.dismissed)&&(i(!1),c(void 0)))},a=window.yogurt.updates.onStatus(r);return window.yogurt.updates.status().then(e=>{t||r(e)}).catch(()=>{}),()=>{e=!1,a()}},[]);let l=async()=>{if(!(e||a||t?.state!==`ready`)){o(!0),c(void 0);try{await window.yogurt.updates.restart()?i(!1):c(`restart`)}catch{c(`restart`)}finally{o(!1)}}},u=async()=>{c(void 0);try{await window.yogurt.updates.later(),i(!1)}catch{c(`later`)}};return t?.state!==`ready`||t.dismissed?null:(0,G.jsx)(xG,{direction:gt(xt()),children:(0,G.jsx)(`span`,{className:`notes-download-status update-ready-status`,children:(0,G.jsxs)(sW,{open:r,onOpenChange:i,children:[(0,G.jsx)(CW,{"data-testid":`update-ready`,className:`bar-btn notes-download-trigger no-drag`,title:W(`Update ready`),children:(0,G.jsx)(`span`,{className:`truncate`,children:W(`Update ready`)})}),(0,G.jsx)(EW,{children:(0,G.jsx)(fG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,G.jsxs)(vG,{"data-testid":`update-popover`,"data-anchor":`end`,"data-pointer":`true`,className:`menu-entry notes-download-menu update-ready-menu`,children:[(0,G.jsx)(yG,{children:W(`Yogurt {version}`,{version:t.next??``})}),(0,G.jsx)(bG,{className:`update-ready-description`,children:W(e?`You can restart after recording`:`Installs when you restart Yogurt`)}),(0,G.jsxs)(`div`,{className:`update-ready-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`update-later`,className:`text-action`,onClick:()=>void u(),children:W(`Later`)}),(0,G.jsx)(`button`,{"data-testid":`update-restart`,className:`workspace-button primary`,disabled:e||a,onClick:()=>void l(),children:W(`Restart`)})]}),s&&(s===`later`||!e)&&(0,G.jsx)(`p`,{role:`alert`,children:W(s===`later`?`Yogurt couldn't make that change. Try again.`:`Yogurt couldn't restart. Try again.`)})]})})})]})})})}function tme({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(`/settings/`)?`/settings`: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=CG(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),sQ.add({title:W(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!Cv(e)||wv()&&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:W(`Meetings`),Icon:ZG},{route:`/chat`,label:W(`Ask`),Icon:JG},{route:`/trash`,label:W(`Trash`),Icon:Z_},{route:`/settings`,label:W(`Settings`),Icon:QG}],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.startsWith(`/settings`)?W(`Settings`):y?.label??W(`Meetings`),x=t=>(0,G.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,G.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:t.label})]},t.route);return(0,G.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,G.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,G.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,G.jsx)(`button`,{className:`ghost-btn 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":wv()?`Control+Meta+S`:`Control+Shift+S`,title:`${W(s?`Expand sidebar`:`Collapse sidebar`)} (${Sv(`⌃⌘S`)})`,"aria-label":W(s?`Expand sidebar`:`Collapse sidebar`),children:(0,G.jsx)(XG,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,G.jsx)(qpe,{className:`workspace-sidebar-gap`,transition:p}),(0,G.jsx)(Jpe,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":W(`Main navigation`),transition:p,children:(0,G.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,G.jsx)(`div`,{className:`sidebar-titlebar`}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,G.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":W(`Search`),title:`${W(`Search`)} (${Sv(`⌘K`)})`,onClick:o,children:[(0,G.jsx)(YG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:W(`Search`)}),(0,G.jsx)(`kbd`,{children:Sv(`⌘K`)})]}),(0,G.jsx)(`nav`,{"aria-label":W(`Workspace`),children:_.slice(0,2).map(x)}),(0,G.jsx)(`div`,{className:`workspace-folder-label`,children:W(`Your workspace`)}),(0,G.jsx)(Xpe,{collapsed:s,sidebarMotion:c,folders:n,route:e,go:r})]}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,G.jsx)(Qpe,{collapsed:s}),x(_[2]),x(_[3]),(0,G.jsx)(`div`,{className:`workspace-brand`,children:(0,G.jsx)(`span`,{className:`workspace-wordmark`,children:(0,G.jsx)(_Y,{height:25})})})]})]})}),(0,G.jsxs)(`div`,{className:`workspace-content`,children:[(0,G.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,G.jsxs)(`div`,{className:`workspace-breadcrumb drag`,children:[(0,G.jsxs)(`span`,{className:`workspace-history`,children:[(0,G.jsx)(`button`,{"data-testid":`nav-back`,className:`ghost-btn workspace-icon no-drag`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":W(`Back`),title:`${W(`Back`)} (${Sv(`⌘[`)})`,children:(0,G.jsx)(Cg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`nav-forward`,className:`ghost-btn workspace-icon no-drag`,disabled:!a,onClick:a,"aria-label":W(`Forward`),title:`${W(`Forward`)} (${Sv(`⌘]`)})`,children:(0,G.jsx)(Tg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),(0,G.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),(0,G.jsx)(eme,{recording:d?.kind===`recording`}),(0,G.jsx)($pe,{go:r}),g&&(0,G.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,G.jsx)(xQ,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,G.jsx)(SQ,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,G.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var $9=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?new URLSearchParams(location.search).get(`theme`)===`dark`?`dark`:`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function nme(){let[e,t]=(0,U.useState)(0);return(0,U.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,U.useEffect)(()=>be(),[e]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`marketing-window`,children:[(0,G.jsx)(tme,{route:`/note/${E.id}`,meeting:E,folders:D,go:$9,search:$9,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:$9,children:(0,G.jsx)(Wpe,{id:E.id,onTitleChange:$9},e)}),(0,G.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]}),(0,G.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,G.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,NY.createRoot)(document.getElementById(`root`)).render(M?(0,G.jsx)(kY,{}):(0,G.jsx)(nme,{}))})();
\ No newline at end of file
diff --git a/site/public/marketing/site.css b/site/public/marketing/site.css
index 706a0b5b..96b66a6d 100644
--- a/site/public/marketing/site.css
+++ b/site/public/marketing/site.css
@@ -1794,10 +1794,6 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}
height: 154px;
overflow: visible;
}
-.native-copy {
- border: 0;
- display: block;
-}
.language-art svg {
display: block;
width: 100%;
@@ -1943,13 +1939,25 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}
justify-self: center;
transform: scale(clamp(0.36, tan(atan2(calc(100cqi - 8px), 200px)), 0.91));
}
-.feature-grid .native-copy {
- width:min(100%,190px);
- height:min(100%,184px);
- background: url('/marketing/stills/feature-copy-light.webp') center / contain no-repeat;
+.mcp-tiles {
+ --art-edge: #c4c3c9;
+ --art-rim: #fff;
+ --art-inner: #e4e2e7;
+ --art-glyph: #625f69;
+ --wire: var(--purple-base);
+ --pad-dot: #d2cfd4;
+ display: block;
+ width: min(100%, 224px);
+ height: auto;
+ overflow: visible;
}
-:root[data-theme=dark] .feature-grid .native-copy {
- background-image:url('/marketing/stills/feature-copy-dark.webp');
+:root[data-theme=dark] .mcp-tiles {
+ --art-edge: #57555d;
+ --art-rim: #66636b;
+ --art-inner: #49474f;
+ --art-glyph: #dedce2;
+ --wire: var(--link);
+ --pad-dot: #59575d;
}
.feature-grid .language-art {
width: min(100%, 182px);
diff --git a/site/public/marketing/stills/feature-copy-dark.webp b/site/public/marketing/stills/feature-copy-dark.webp
deleted file mode 100644
index 1a9cb610..00000000
Binary files a/site/public/marketing/stills/feature-copy-dark.webp and /dev/null differ
diff --git a/site/public/marketing/stills/feature-copy-light.webp b/site/public/marketing/stills/feature-copy-light.webp
deleted file mode 100644
index 7b3cc972..00000000
Binary files a/site/public/marketing/stills/feature-copy-light.webp and /dev/null differ
diff --git a/site/public/marketing/stills/manifest.json b/site/public/marketing/stills/manifest.json
index 2644dae8..e43aa5bf 100644
--- a/site/public/marketing/stills/manifest.json
+++ b/site/public/marketing/stills/manifest.json
@@ -1,8 +1,8 @@
{
"appCommit": "125473d0db59640acfc96261b66b79544ada4302",
- "bundleSha256": "526febdc140c297322752d42858d914e9e4c5ae87383b600f81b96752a13eb27",
- "bundleCssSha256": "473a2b82bcbc6d67e26032f54a38d5ec9a7aa7b9821f3f7e01e12fa6ff16990d",
- "generatedAt": "2026-11-18T19:07:08.323Z",
+ "bundleSha256": "7ea7d390704d873e34731997dc8236f53d51465ed1c28349321282a18f73060a",
+ "bundleCssSha256": "802f1ba3a9f1d0076d6f75a5206de0e55c0d8416f7d5d0bbf8b31106ffe430e6",
+ "generatedAt": "2026-11-18T19:16:45.187Z",
"images": {
"hero-desktop.webp": {
"bytes": 43268,
@@ -63,14 +63,6 @@
"fragment-ask-dark-phone.webp": {
"bytes": 12762,
"sha256": "dd7de3e3e92dc1bda8bf52fa9b77c6dba8a2d0e3ebe5aa7929671d8efba82b1e"
- },
- "feature-copy-light.webp": {
- "bytes": 9814,
- "sha256": "6217c71a6211a2172785c18dcccfaf7c961cd2f044a95d9f1a7af9c92fc9bc7f"
- },
- "feature-copy-dark.webp": {
- "bytes": 10186,
- "sha256": "e6dd9eb5ce166a501059a1a0260ad09c851dd04033bc054773626161b51447c1"
}
}
}
diff --git a/site/renderer/README.md b/site/renderer/README.md
index 699840d5..2abeca2e 100644
--- a/site/renderer/README.md
+++ b/site/renderer/README.md
@@ -17,7 +17,7 @@ pnpm --dir site build
The bundle defaults to `origin/main` without changing the checkout. Set `YOGURT_APP_REF` to another local commit when needed. There are no archived-source overrides. 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. Native capabilities are disabled and updates stay idle in the browser-only fixture. `fragments.tsx` renders the three How it works surfaces. The walkthrough mounts the selected scene when it enters view. Summary uses the app’s SummaryWaiting and editor, and Ask uses AskConversation. Reduced motion uses themed stills from those same components. The still exporter mounts ShareMenu through copy.tsx and captures the open menu in each theme. The page uses those two images so the illustration is present before scrolling. Rebundle and export the stills together when the app changes. `frame.css` styles only the isolated frames. Page layout stays in `public/marketing/site.css`.
+`timeline.mjs` owns the 39-second hero sequence. `bridge.mjs` provides the in-memory app bridge and drives the editor and cursor. Native capabilities are disabled and updates stay idle in the browser-only fixture. `fragments.tsx` renders the three How it works surfaces. The walkthrough mounts the selected scene when it enters view. Summary uses the app’s SummaryWaiting and editor, and Ask uses AskConversation. Reduced motion uses themed stills from those same components. Rebundle and export the stills together when the app changes. `frame.css` styles only the isolated frames. Page layout stays in `public/marketing/site.css`.
The Vite-only `renderer` directory is excluded from Next's typecheck: its `@app` imports are resolved from the archived app source by `bundle.mjs`.
diff --git a/site/renderer/copy.tsx b/site/renderer/copy.tsx
deleted file mode 100644
index 6ce009e3..00000000
--- a/site/renderer/copy.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import {useEffect, useRef} from 'react'
-import {ShareMenu} from '@app/components/ShareMenu'
-import {meeting} from './bridge.mjs'
-
-// The frame is inert. Open the real menu once so its labels follow the installed renderer.
-export function CopyScene() {
- const stage = useRef<HTMLDivElement>(null)
- useEffect(() => {
- const button = stage.current?.querySelector<HTMLButtonElement>('button[aria-haspopup="menu"]')
- if (button?.getAttribute('aria-expanded') === 'false') button.click()
- }, [])
- return <div className="copy-stage" ref={stage}>
- <ShareMenu id={meeting.id} shown="enhanced" status="done" hasEnhanced beforeUse={async () => true} />
- </div>
-}
diff --git a/site/renderer/entry.tsx b/site/renderer/entry.tsx
index 6fc61eae..37eb64ef 100644
--- a/site/renderer/entry.tsx
+++ b/site/renderer/entry.tsx
@@ -1,5 +1,4 @@
import './bridge.mjs'
-import { CopyScene } from './copy'
import { FragmentScene } from './fragments'
import { fragment } from './bridge.mjs'
import { createRoot } from 'react-dom/client'
@@ -23,4 +22,4 @@ function Scene() {
<Note key={revision} id={meeting.id} onTitleChange={noop} />
</Workspace><div className="marketing-traffic"><i/><i/><i/></div></div><svg className="marketing-cursor" viewBox="0 0 30 32" aria-hidden="true"><circle className="cursor-ring" cx="4" cy="3" r="12"/><path className="cursor-pointer" d="M4 3 24 13 15.1 15.7 11.3 25Z" strokeWidth="1.7" strokeLinejoin="round" strokeLinecap="round"/></svg></>
}
-createRoot(document.getElementById('root')!).render(fragment === 'copy' ? <CopyScene /> : fragment ? <FragmentScene /> : <Scene />)
+createRoot(document.getElementById('root')!).render(fragment ? <FragmentScene /> : <Scene />)
diff --git a/site/renderer/frame.css b/site/renderer/frame.css
index 818917cb..69e3148c 100644
--- a/site/renderer/frame.css
+++ b/site/renderer/frame.css
@@ -94,15 +94,5 @@ html[data-fragment=ask] .fragment-ask{inset:0;display:flex;align-items:center;ju
.summary-cue>span {display:block;color:var(--muted);font-size:14px;margin-bottom:8px}
.fragment-ask .ask-thread-wrap .ask-thread {width:100%;max-width:100%;min-width:0}
-html[data-fragment=copy] #root {display:flex;align-items:center;justify-content:center;container-type:size}
-.copy-stage {
- width:182px;height:178px;flex:none;
- transform:scale(clamp(.25,min(tan(atan2(calc(100cqw - 8px),182px)),tan(atan2(calc(100cqh - 6px),178px))),1));
-}
-.copy-stage>div {width:100%;justify-content:flex-end}
-.copy-stage [role=menu] {width:100%;animation:none;box-shadow:var(--shadow-soft)}
html[data-fragment][data-paused=true] *,html[data-fragment][data-paused=true] *::before,
html[data-fragment][data-paused=true] *::after {animation-play-state:paused!important}
-
-/* Keep the inert illustration in the resting bordered state while its real menu is open. */
-.copy-stage [aria-haspopup="menu"][aria-expanded="true"] {height:30px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:0 12px;gap:6px;box-shadow:none}
diff --git a/site/scripts/stars.test.mjs b/site/scripts/stars.test.mjs
index 28a56cde..a502b393 100644
--- a/site/scripts/stars.test.mjs
+++ b/site/scripts/stars.test.mjs
@@ -234,8 +234,6 @@ for(const tag of template.match(/<a\b[^>]*>/g)){
assert.match(tag,/rel="[^"]*\bnoopener\b[^"]*"/)
}
}
-const stills=JSON.parse(load('../public/marketing/stills/manifest.json')).images
-for(const theme of ['light','dark'])assert.ok(stills['feature-copy-'+theme+'.webp']?.bytes>0)
const { refreshSummary, hour } = await import('../public/marketing/stars-data.mjs')
const built = { capturedAt: times[1], count: 12, releases: 1, latest: {tag:'v1.1',published:times[1]} }
diff --git a/site/scripts/stills.mjs b/site/scripts/stills.mjs
index 3ed4afc4..81cd26e5 100644
--- a/site/scripts/stills.mjs
+++ b/site/scripts/stills.mjs
@@ -134,23 +134,6 @@ try {
}
}
- // Capture the static feature illustration from the actual menu in its resting button state.
- await call('Emulation.setDeviceMetricsOverride',{width:190,height:184,deviceScaleFactor:3,mobile:false})
- for(const theme of ['light','dark']){
- await call('Page.navigate',{url:origin+'/marketing/app/frame.html?fragment=copy&theme='+theme})
- for(let attempt=0;attempt<80;attempt++){
- if(await evaluate("document.querySelectorAll('.copy-stage [role=menuitem]').length===4"))break
- await pause(50)
- }
- assert.equal(await evaluate("document.querySelectorAll('.copy-stage [role=menuitem]').length"),4)
- const state=await evaluate("(()=>{const b=document.querySelector('.copy-stage [aria-haspopup=menu]'),c=getComputedStyle(b),r=document.querySelector('[role=menu]').getBoundingClientRect();return [document.documentElement.dataset.marketingTheme,c.backgroundColor,c.borderTopWidth,r.left>=0&&r.right<=innerWidth&&r.bottom<=innerHeight]})()")
- assert.deepEqual(state,[theme,'rgba(0, 0, 0, 0)','1px',true])
- const png=Buffer.from((await call('Page.captureScreenshot',{format:'png'})).data,'base64')
- const bytes=await sharp(png).webp({lossless:true}).toBuffer()
- const file='feature-copy-'+theme+'.webp'
- await fs.writeFile(path.join(site,'public/marketing/stills',file),bytes)
- images[file]={bytes:bytes.length,sha256:createHash('sha256').update(bytes).digest('hex')}
- }
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,bundleCssSha256:manifest.files['renderer.css'].sha256,generatedAt:new Date().toISOString(),images},null,2)+'\n')