@oyat/editor 1.7.5 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +64 -19
  2. package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
  3. package/dist/components/editor/editor-kit.d.ts.map +1 -1
  4. package/dist/components/editor/plugins/block-placeholder-kit.d.ts.map +1 -1
  5. package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -1
  6. package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
  7. package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -1
  8. package/dist/components/editor/transforms.d.ts.map +1 -1
  9. package/dist/components/ui/caption.d.ts.map +1 -1
  10. package/dist/components/ui/comment.d.ts.map +1 -1
  11. package/dist/components/ui/insert-image-url-toolbar-button.d.ts.map +1 -1
  12. package/dist/components/ui/media-picker-toolbar-trigger.d.ts.map +1 -1
  13. package/dist/components/ui/table-node.d.ts.map +1 -1
  14. package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
  15. package/dist/contexts/media-picker-context.d.ts.map +1 -1
  16. package/dist/contexts/media-picker-provider.d.ts.map +1 -1
  17. package/dist/index.js +835 -837
  18. package/dist/index.js.map +1 -1
  19. package/dist/lib/uploadthing.d.ts +4 -0
  20. package/dist/lib/uploadthing.d.ts.map +1 -0
  21. package/dist/lib/user-id.d.ts +10 -0
  22. package/dist/lib/user-id.d.ts.map +1 -0
  23. package/dist/lib/utils.d.ts +3 -0
  24. package/dist/lib/utils.d.ts.map +1 -0
  25. package/package.json +4 -11
  26. package/dist/demo/MockMediaPicker.d.ts +0 -6
  27. package/dist/demo/MockMediaPicker.d.ts.map +0 -1
  28. package/dist/demo/discussions.d.ts +0 -3
  29. package/dist/demo/discussions.d.ts.map +0 -1
  30. package/dist/demo/value.d.ts +0 -3
  31. package/dist/demo/value.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,838 +1,836 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@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-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking: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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-700:oklch(50.5% .213 27.518);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-700:oklch(50.8% .118 165.612);--color-slate-500:oklch(55.4% .046 257.417);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--radius-xs:.125rem;--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@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,ui-sans-serif, system-ui, 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;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{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}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-2{top:calc(var(--spacing) * -2)}.-top-px{top:-1px}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\\[5px\\]{top:5px}.top-\\[50\\%\\]{top:50%}.-right-1{right:calc(var(--spacing) * -1)}.-right-3{right:calc(var(--spacing) * -3)}.right-0{right:calc(var(--spacing) * 0)}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-\\[-1\\.5px\\]{right:-1.5px}.right-\\[-11px\\]{right:-11px}.-bottom-1{bottom:calc(var(--spacing) * -1)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-0\\.5{bottom:calc(var(--spacing) * .5)}.bottom-1{bottom:calc(var(--spacing) * 1)}.bottom-2{bottom:calc(var(--spacing) * 2)}.-left-0{left:calc(var(--spacing) * 0)}.-left-0\\.5{left:calc(var(--spacing) * -.5)}.-left-1{left:calc(var(--spacing) * -1)}.-left-3{left:calc(var(--spacing) * -3)}.-left-6{left:calc(var(--spacing) * -6)}.left-0{left:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-\\[-1\\.5px\\]{left:-1.5px}.left-\\[-10\\.5px\\]{left:-10.5px}.left-\\[50\\%\\]{left:50%}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-51{z-index:51}.z-100{z-index:100}.z-500{z-index:500}.z-1450{z-index:1450}.z-1500{z-index:1500}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.m-8{margin:calc(var(--spacing) * 8)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-1\\.5{margin-inline:calc(var(--spacing) * 1.5)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.mx-px{margin-inline:1px}.my-1{margin-block:calc(var(--spacing) * 1)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.my-auto{margin-block:auto}.my-px{margin-block:1px}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-\\[0\\.75em\\]{margin-top:.75em}.mt-\\[1\\.4em\\]{margin-top:1.4em}.mt-\\[1\\.6em\\]{margin-top:1.6em}.mt-\\[1em\\]{margin-top:1em}.-mr-3{margin-right:calc(var(--spacing) * -3)}.mr-0{margin-right:calc(var(--spacing) * 0)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mr-auto{margin-right:auto}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.block{display:block}.contents{display:contents}.flex{display:flex}.flex\\!{display:flex!important}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.\\!size-3{width:calc(var(--spacing) * 3)!important;height:calc(var(--spacing) * 3)!important}.\\!size-3\\.5{width:calc(var(--spacing) * 3.5)!important;height:calc(var(--spacing) * 3.5)!important}.size-\\(--cell-size\\){width:var(--cell-size);height:var(--cell-size)}.size-0{width:calc(var(--spacing) * 0);height:calc(var(--spacing) * 0)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-\\[28px\\]{width:28px;height:28px}.size-\\[130px\\]{width:130px;height:130px}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\\(--cell-size\\){height:var(--cell-size)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[1\\.5em\\]{height:1.5em}.h-\\[19px\\]{height:19px}.h-\\[23rem\\]{height:23rem}.h-\\[24px\\]{height:24px}.h-\\[28px\\]{height:28px}.h-\\[344px\\]{height:344px}.h-\\[650px\\]{height:650px}.h-\\[calc\\(100\\%_\\+_8px\\)\\]{height:calc(100% + 8px)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\(--radix-context-menu-content-available-height\\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\\(--radix-dropdown-menu-content-available-height\\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-14{max-height:calc(var(--spacing) * 14)}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[calc\\(100vh-4rem\\)\\]{max-height:calc(100vh - 4rem)}.max-h-\\[min\\(50dvh\\,calc\\(-24px\\+var\\(--radix-popper-available-height\\)\\)\\)\\]{max-height:min(50dvh,calc(-24px + var(--radix-popper-available-height)))}.max-h-\\[min\\(70vh\\,320px\\)\\]{max-height:min(70vh,320px)}.max-h-screen{max-height:100vh}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-\\[1lh\\]{min-height:1lh}.min-h-\\[25px\\]{min-height:25px}.min-h-\\[50\\%\\]{min-height:50%}.w-\\(--cell-size\\){width:var(--cell-size)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:calc(var(--spacing) * 1)}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\.5{width:calc(var(--spacing) * 4.5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\\[180px\\]{width:180px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[330px\\]{width:330px}.w-\\[380px\\]{width:380px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-\\[calc\\(100vw-24px\\)\\]{max-width:calc(100vw - 24px)}.max-w-full{max-width:100%}.min-w-\\(--cell-size\\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[92px\\]{min-width:92px}.min-w-\\[125px\\]{min-width:125px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[220px\\]{min-width:220px}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.origin-\\(--radix-context-menu-content-transform-origin\\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\\(--radix-dropdown-menu-content-transform-origin\\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\\(--radix-popover-content-transform-origin\\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\\[repeat\\(10\\,1fr\\)\\]{grid-template-columns:repeat(10,1fr)}.grid-rows-\\[auto_1fr\\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-evenly{justify-content:space-evenly}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-x-1{column-gap:calc(var(--spacing) * 1)}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-border{border-color:var(--border)}.border-current{border-color:currentColor}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.border-b-border{border-bottom-color:var(--border)}.border-b-brand\\/\\[\\.24\\]{border-bottom-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.border-b-brand\\/\\[\\.24\\]{border-bottom-color:color-mix(in oklab,var(--brand) 24%,transparent)}}.border-b-gray-300{border-bottom-color:var(--color-gray-300)}.border-b-highlight,.border-b-highlight\\/35{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/35{border-bottom-color:color-mix(in oklab,var(--highlight) 35%,transparent)}}.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:color-mix(in oklab,var(--highlight) 70%,transparent)}}.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:color-mix(in oklab,var(--highlight) 36%,transparent)}}.bg-\\(--cellBackground\\){background-color:var(--cellBackground)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:#00000080}.bg-accent{background-color:var(--accent)}.bg-background,.bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/95{background-color:color-mix(in oklab,var(--background) 95%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-border{background-color:var(--border)}.bg-brand,.bg-brand\\/25{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/25{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.bg-brand\\/50{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/50{background-color:color-mix(in oklab,var(--brand) 50%,transparent)}}.bg-brand\\/\\[\\.08\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.08\\]{background-color:color-mix(in oklab,var(--brand) 8%,transparent)}}.bg-brand\\/\\[\\.13\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--brand) 13%,transparent)}}.bg-current{background-color:currentColor}.bg-destructive{background-color:var(--destructive)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200\\/80{background-color:#a4f4cfcc}@supports (color:color-mix(in lab,red,red)){.bg-emerald-200\\/80{background-color:color-mix(in oklab,var(--color-emerald-200) 80%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-300\\/25{background-color:#d1d5dc40}@supports (color:color-mix(in lab,red,red)){.bg-gray-300\\/25{background-color:color-mix(in oklab,var(--color-gray-300) 25%,transparent)}}.bg-highlight,.bg-highlight\\/15{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/15{background-color:color-mix(in oklab,var(--highlight) 15%,transparent)}}.bg-highlight\\/25{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/25{background-color:color-mix(in oklab,var(--highlight) 25%,transparent)}}.bg-highlight\\/30{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/30{background-color:color-mix(in oklab,var(--highlight) 30%,transparent)}}.bg-highlight\\/45{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/45{background-color:color-mix(in oklab,var(--highlight) 45%,transparent)}}.bg-highlight\\/\\[\\.13\\]{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--highlight) 13%,transparent)}}.bg-inherit{background-color:inherit}.bg-muted,.bg-muted\\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover,.bg-popover\\/90{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.bg-popover\\/90{background-color:color-mix(in oklab,var(--popover) 90%,transparent)}}.bg-primary,.bg-primary\\/40{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/40{background-color:color-mix(in oklab,var(--primary) 40%,transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200\\/80{background-color:#ffcacacc}@supports (color:color-mix(in lab,red,red)){.bg-red-200\\/80{background-color:color-mix(in oklab,var(--color-red-200) 80%,transparent)}}.bg-ring{background-color:var(--ring)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-clip-content{background-clip:content-box}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.fill-primary{fill:var(--primary)}.stroke-\\[3px\\]{stroke-width:3px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-px{padding:1px}.\\!px-1{padding-inline:calc(var(--spacing) * 1)!important}.\\!px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)!important}.px-\\(--cell-size\\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-0\\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.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-6{padding-inline:calc(var(--spacing) * 6)}.px-10{padding-inline:calc(var(--spacing) * 10)}.px-16{padding-inline:calc(var(--spacing) * 16)}.px-\\[0\\.3em\\]{padding-inline:.3em}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-\\[0\\.2em\\]{padding-block:.2em}.py-\\[1\\.5px\\]{padding-block:1.5px}.py-\\[3px\\]{padding-block:3px}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-72{padding-bottom:calc(var(--spacing) * 72)}.pb-px{padding-bottom:1px}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-\\[26px\\]{padding-left:26px}.pl-\\[32px\\]{padding-left:32px}.pl-\\[50px\\]{padding-left:50px}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.align-baseline{vertical-align:baseline}.align-text-bottom{vertical-align:text-bottom}.font-\\[inherit\\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[18px\\]{font-size:18px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-background{color:var(--background)}.text-brand\\/80{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.text-brand\\/80{color:color-mix(in oklab,var(--brand) 80%,transparent)}}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-inherit{color:inherit}.text-muted-foreground,.text-muted-foreground\\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/70{color:color-mix(in oklab,var(--muted-foreground) 70%,transparent)}}.text-muted-foreground\\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/80{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-500{color:var(--color-slate-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-primary{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}.decoration-\\[0\\.5px\\]{text-decoration-thickness:.5px}.underline-offset-4{text-underline-offset:4px}.caret-primary{caret-color:var(--primary)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:color-mix(in oklab, #ffffff1a 0px .5px 0px 0px inset, #f8f9fa 0px 1px 5px 0px inset, #c1c8cd 0px 0px 0px .5px, #c1c8cd 0px 2px 1px -1px, #c1c8cd 0px 1px 0px 0px var(--tw-shadow-alpha), transparent)}}.ring-background{--tw-ring-color:var(--background)}.ring-ring{--tw-ring-color:var(--ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\\!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,)!important}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\\[--cell-size\\:--spacing\\(8\\)\\]{--cell-size:calc(var(--spacing) * 8)}.\\[tab-size\\:2\\]{tab-size:2}.fade-in{--tw-enter-opacity:0}:is(.\\*\\:m-0>*){margin:calc(var(--spacing) * 0)}.not-last\\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.group-first\\/column\\:-left-1:is(:where(.group\\/column):first-child *){left:calc(var(--spacing) * -1)}.group-first\\/column\\:pl-0:is(:where(.group\\/column):first-child *){padding-left:calc(var(--spacing) * 0)}.group-last\\/column\\:-right-1:is(:where(.group\\/column):last-child *){right:calc(var(--spacing) * -1)}.group-last\\/column\\:pr-0:is(:where(.group\\/column):last-child *){padding-right:calc(var(--spacing) * 0)}.group-last\\/toolbar-group\\:hidden\\!:is(:where(.group\\/toolbar-group):last-child *){display:none!important}.group-focus-within\\:pointer-events-none:is(:where(.group):focus-within *){pointer-events:none}.group-focus-within\\:top-0:is(:where(.group):focus-within *){top:calc(var(--spacing) * 0)}.group-focus-within\\:cursor-default:is(:where(.group):focus-within *){cursor:default}.group-focus-within\\:text-xs:is(:where(.group):focus-within *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-focus-within\\:font-medium:is(:where(.group):focus-within *){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.group-focus-within\\:text-foreground:is(:where(.group):focus-within *){color:var(--foreground)}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *),.group-hover\\/column\\:opacity-100:is(:where(.group\\/column):hover *),.group-hover\\/container\\:opacity-100:is(:where(.group\\/container):hover *),.group-hover\\/row\\:opacity-100:is(:where(.group\\/row):hover *){opacity:1}}.group-has-data-\\[resizing\\=\\"true\\"\\]\\/row\\:opacity-0:is(:where(.group\\/row):has([data-resizing=true]) *){opacity:0}.group-has-data-\\[size\\=lg\\]\\/avatar-group\\:size-10:is(:where(.group\\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\\[size\\=sm\\]\\/avatar-group\\:size-6:is(:where(.group\\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-\\[\\[data-col\\=\\"0\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"]:hover) *),.group-has-\\[\\[data-col\\=\\"0\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"]:hover) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"]:hover) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"]:hover) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"]:hover) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"]:hover) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"]:hover) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"]:hover) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"]:hover) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"]:hover) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"]:hover) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"][data-resizing=true]) *),.group-has-\\[\\[data-resizer-left\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left]:hover) *),.group-has-\\[\\[data-resizer-left\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left][data-resizing=true]) *){display:block}.group-data-\\[focused\\=true\\]\\/day\\:relative:is(:where(.group\\/day)[data-focused=true] *){position:relative}.group-data-\\[focused\\=true\\]\\/day\\:z-10:is(:where(.group\\/day)[data-focused=true] *){z-index:10}.group-data-\\[focused\\=true\\]\\/day\\:border-ring:is(:where(.group\\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\\[focused\\=true\\]\\/day\\:ring-\\[3px\\]:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.group-data-\\[pressed\\=true\\]\\:bg-accent:is(:where(.group)[data-pressed=true] *){background-color:var(--accent)}.group-data-\\[pressed\\=true\\]\\:text-accent-foreground:is(:where(.group)[data-pressed=true] *){color:var(--accent-foreground)}.group-data-\\[size\\=default\\]\\/avatar\\:size-2\\.5:is(:where(.group\\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\\[size\\=lg\\]\\/avatar\\:size-3:is(:where(.group\\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\\[size\\=sm\\]\\/alert-dialog-content\\:grid:is(:where(.group\\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\\[size\\=sm\\]\\/alert-dialog-content\\:grid-cols-2:is(:where(.group\\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\\[size\\=sm\\]\\/avatar\\:size-2:is(:where(.group\\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\\[size\\=sm\\]\\/avatar\\:text-xs:is(:where(.group\\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.peer-has-\\[\\[role\\=menuitem\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitem])~*),.peer-has-\\[\\[role\\=menuitemradio\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitemradio])~*),.peer-has-\\[\\[role\\=option\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=option])~*){display:block}.selection\\:bg-brand\\/25 ::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25 ::selection{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.selection\\:bg-brand\\/25::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25::selection{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:bg-transparent ::selection{background-color:#0000}.selection\\:bg-transparent::selection{background-color:#0000}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-muted-foreground::placeholder,.placeholder\\:text-muted-foreground\\/80::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-muted-foreground\\/80::placeholder{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:box-border:before{content:var(--tw-content);box-sizing:border-box}.before\\:size-full:before{content:var(--tw-content);width:100%;height:100%}.before\\:cursor-text:before{content:var(--tw-content);cursor:text}.before\\:border-t:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:1px}.before\\:border-r:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:1px}.before\\:border-b:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.before\\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\\:border-t-border:before{content:var(--tw-content);border-top-color:var(--border)}.before\\:border-r-border:before{content:var(--tw-content);border-right-color:var(--border)}.before\\:border-b-border:before{content:var(--tw-content);border-bottom-color:var(--border)}.before\\:border-l-border:before{content:var(--tw-content);border-left-color:var(--border)}.before\\:bg-brand\\/5:before{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.before\\:bg-brand\\/5:before{background-color:color-mix(in oklab,var(--brand) 5%,transparent)}}.before\\:text-muted-foreground\\/80:before{content:var(--tw-content);color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.before\\:text-muted-foreground\\/80:before{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.before\\:content-\\[\\\'\\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:content-\\[attr\\(placeholder\\)\\]:before{--tw-content:attr(placeholder);content:var(--tw-content)}.before\\:select-none:before{content:var(--tw-content);-webkit-user-select:none;user-select:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\\:-top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing) * -.5)}.after\\:-left-1:after{content:var(--tw-content);left:calc(var(--spacing) * -1)}.after\\:z-1:after{content:var(--tw-content);z-index:1}.after\\:flex:after{content:var(--tw-content);display:flex}.after\\:h-16:after{content:var(--tw-content);height:calc(var(--spacing) * 16)}.after\\:h-\\[calc\\(100\\%\\)\\+4px\\]:after{content:var(--tw-content);height:100% 4px}.after\\:w-\\[3px\\]:after{content:var(--tw-content);width:3px}.after\\:w-\\[calc\\(100\\%\\+8px\\)\\]:after{content:var(--tw-content);width:calc(100% + 8px)}.after\\:rounded-\\[6px\\]:after{content:var(--tw-content);border-radius:6px}.after\\:rounded-sm:after{content:var(--tw-content);border-radius:calc(var(--radius) - 4px)}.after\\:bg-brand\\/15:after{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.after\\:bg-brand\\/15:after{background-color:color-mix(in oklab,var(--brand) 15%,transparent)}}.after\\:bg-neutral-500\\/10:after{content:var(--tw-content);background-color:#7373731a}@supports (color:color-mix(in lab,red,red)){.after\\:bg-neutral-500\\/10:after{background-color:color-mix(in oklab,var(--color-neutral-500) 10%,transparent)}}.after\\:bg-ring:after{content:var(--tw-content);background-color:var(--ring)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:content-\\[\\"\\"\\]:after{--tw-content:"";content:var(--tw-content)}.after\\:content-\\[\\\'_\\\'\\]:after{--tw-content:" ";content:var(--tw-content)}@media(hover:hover){.group-hover\\:after\\:opacity-100:is(:where(.group):hover *):after{content:var(--tw-content);opacity:1}}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus-within\\:ring-ring:focus-within{--tw-ring-color:var(--ring)}.focus-within\\:ring-offset-2:focus-within{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}@media(hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\\:bg-muted:hover{background-color:var(--muted)}.hover\\:bg-muted-foreground\\/15:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-muted-foreground\\/15:hover{background-color:color-mix(in oklab,var(--muted-foreground) 15%,transparent)}}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-brand\\/80:hover{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-brand\\/80:hover{color:color-mix(in oklab,var(--brand) 80%,transparent)}}.hover\\:text-muted-foreground:hover,.hover\\:text-muted-foreground\\/80:hover{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-muted-foreground\\/80:hover{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + 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)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\\:ring-ring:focus-visible,.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-focus\\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\\:ring-\\[3px\\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.has-aria-disabled\\:border-input:has([aria-disabled=true]){border-color:var(--input)}.has-aria-disabled\\:bg-muted:has([aria-disabled=true]){background-color:var(--muted)}.has-data-readonly\\:w-fit:has([data-readonly]){width:fit-content}.has-data-readonly\\:cursor-default:has([data-readonly]){cursor:default}.has-data-readonly\\:border-transparent:has([data-readonly]){border-color:#0000}.has-data-readonly\\:focus-within\\:\\[box-shadow\\:none\\]:has([data-readonly]):focus-within{box-shadow:none}.has-data-\\[slot\\=alert-dialog-media\\]\\:grid-rows-\\[auto_auto_1fr\\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\\[slot\\=alert-dialog-media\\]\\:gap-x-6:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 6)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:color-mix(in oklab,var(--brand) 50%,transparent)}}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-2:has([data-slate-editor]:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:color-mix(in oklab, var(--brand) 30%, transparent)}}.has-\\[\\[role\\=menuitem\\]\\]\\:block:has([role=menuitem]),.has-\\[\\[role\\=menuitemradio\\]\\]\\:block:has([role=menuitemradio]),.has-\\[\\[role\\=option\\]\\]\\:block:has([role=option]){display:block}.has-\\[button\\]\\:flex:has(:is(button)){display:flex}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:pointer-events-none:has(+input:not(:placeholder-shown)){pointer-events:none}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:top-0:has(+input:not(:placeholder-shown)){top:calc(var(--spacing) * 0)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:cursor-default:has(+input:not(:placeholder-shown)){cursor:default}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-xs:has(+input:not(:placeholder-shown)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:font-medium:has(+input:not(:placeholder-shown)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-foreground:has(+input:not(:placeholder-shown)){color:var(--foreground)}.has-\\[\\>svg\\]\\:px-1\\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-checked\\:bg-accent[aria-checked=true]{background-color:var(--accent)}.aria-checked\\:text-accent-foreground[aria-checked=true]{color:var(--accent-foreground)}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.aria-selected\\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-readonly\\:w-fit[data-readonly]{width:fit-content}:is(.\\*\\*\\:data-slate-placeholder\\:\\!top-1\\/2 *)[data-slate-placeholder]{top:50%!important}:is(.\\*\\*\\:data-slate-placeholder\\:-translate-y-1\\/2 *)[data-slate-placeholder]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}:is(.\\*\\*\\:data-slate-placeholder\\:opacity-100\\! *)[data-slate-placeholder]{opacity:1!important}.data-\\[active-item\\=true\\]\\:bg-accent[data-active-item=true]{background-color:var(--accent)}.data-\\[active-item\\=true\\]\\:text-accent-foreground[data-active-item=true]{color:var(--accent-foreground)}.data-\\[active\\=true\\]\\:bg-muted[data-active=true]{background-color:var(--muted)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true]{opacity:.5}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[range-end\\=true\\]\\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\\[range-end\\=true\\]\\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\\[range-middle\\=true\\]\\:rounded-none[data-range-middle=true]{border-radius:0}.data-\\[range-middle\\=true\\]\\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\\[range-middle\\=true\\]\\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\\[range-start\\=true\\]\\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\\[range-start\\=true\\]\\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\\[selected-single\\=true\\]\\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\\[selected-single\\=true\\]\\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\\[selected\\=true\\]\\:rounded-none[data-selected=true]{border-radius:0}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[size\\=lg\\]\\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\\[size\\=sm\\]\\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\\[size\\=sm\\]\\:max-w-xs[data-size=sm]{max-width:var(--container-xs)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}:is(.\\*\\:data-\\[slot\\=block-selection\\]\\:left-2>*)[data-slot=block-selection]{left:calc(var(--spacing) * 2)}:is(.\\*\\*\\:data-\\[slot\\=command-input-wrapper\\]\\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing) * 12)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-accent[data-state=checked]{background-color:var(--accent)}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:opacity-0[data-state=closed]{opacity:0}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports (backdrop-blur:var(--tw)){.supports-backdrop-blur\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-blur\\:bg-background\\/60{background-color:color-mix(in oklab,var(--background) 60%,transparent)}}}@media(min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:px-24{padding-inline:calc(var(--spacing) * 24)}.sm\\:px-\\[max\\(64px\\,calc\\(50\\%-350px\\)\\)\\]{padding-inline:max(64px,50% - 350px)}.sm\\:text-left{text-align:left}.sm\\:opacity-0{opacity:0}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:row-span-2:is(:where(.group\\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:place-items-start:is(:where(.group\\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:text-left:is(:where(.group\\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:group-has-data-\\[slot\\=alert-dialog-media\\]\\/alert-dialog-content\\:col-start-2:is(:where(.group\\/alert-dialog-content)[data-size=default] *):is(:where(.group\\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:has-data-\\[slot\\=alert-dialog-media\\]\\:grid-rows-\\[auto_1fr\\]:is(:where(.group\\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\\[size\\=default\\]\\:sm\\:max-w-lg[data-size=default]{max-width:var(--container-lg)}}@media(min-width:48rem){.md\\:flex-row{flex-direction:row}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive) 60%,transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:color-mix(in oklab, #ffffff1a 0px .5px 0px 0px inset, #1a1d1e 0px 1px 5px 0px inset, #4c5155 0px 0px 0px .5px, #4c5155 0px 2px 1px -1px, #4c5155 0px 1px 0px 0px var(--tw-shadow-alpha), transparent)}}@media(hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent) 50%,transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\\:hover\\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\\:data-\\[state\\=checked\\]\\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}@media print{.print\\:hidden{display:none}.print\\:break-inside-avoid{break-inside:avoid}.print\\:placeholder\\:text-transparent::placeholder{color:#0000}}.\\[\\&_\\.katex-display\\]\\:my-0 .katex-display{margin-block:calc(var(--spacing) * 0)}.\\[\\&_\\.katex-display\\]\\:my-0\\! .katex-display{margin-block:calc(var(--spacing) * 0)!important}.\\[\\&_\\.slate-selection-area\\]\\:z-50 .slate-selection-area{z-index:50}.\\[\\&_\\.slate-selection-area\\]\\:border .slate-selection-area{border-style:var(--tw-border-style);border-width:1px}.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:color-mix(in oklab,var(--brand) 15%,transparent)}}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing) * 1.5)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing) * 0)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:calc(var(--spacing) * 12)}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-block:calc(var(--spacing) * 3)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:calc(var(--spacing) * 5)}.\\[\\&_strong\\]\\:font-bold strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\]\\:size-6 svg{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'text-\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-4::-webkit-scrollbar{width:calc(var(--spacing) * 4)}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:hidden::-webkit-scrollbar-button{display:none}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:size-0::-webkit-scrollbar-button{width:calc(var(--spacing) * 0);height:calc(var(--spacing) * 0)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:min-h-11::-webkit-scrollbar-thumb{min-height:calc(var(--spacing) * 11)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-4::-webkit-scrollbar-thumb{border-style:var(--tw-border-style);border-width:4px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-solid::-webkit-scrollbar-thumb{--tw-border-style:solid;border-style:solid}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-popover::-webkit-scrollbar-thumb{border-color:var(--popover)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-muted::-webkit-scrollbar-thumb{background-color:var(--muted)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-clip-padding::-webkit-scrollbar-thumb{background-clip:padding-box}@media(hover:hover){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground) 25%,transparent)}}}.focus\\:\\[\\&\\:\\:placeholder\\]\\:opacity-0:focus::placeholder{opacity:0}.\\[\\&\\:first-child\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[role\\=option\\]\\)\\]\\:block:has([role=option]){display:block}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#f0fff4\\] *).hljs-addition{background-color:#f0fff4}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#22863a\\] *).hljs-addition{color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#3c5743\\]:is(.dark *) *).hljs-addition{background-color:#3c5743}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#ceead5\\]:is(.dark *) *).hljs-addition{color:#ceead5}:is(.\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#005cc5\\] *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#6596cf\\]:is(.dark *) *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#6596cf}:is(.\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#e36209\\] *):is(.hljs-built\\\\_in,.hljs-symbol){color:#e36209}:is(.dark\\:\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#c3854e\\]:is(.dark *) *):is(.hljs-built\\\\_in,.hljs-symbol){color:#c3854e}:is(.\\*\\*\\:\\[\\.hljs-bullet\\]\\:text-\\[\\#735c0f\\] *).hljs-bullet{color:#735c0f}:is(.\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\] *):is(.hljs-comment,.hljs-code,.hljs-formula),:is(.dark\\:\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\]:is(.dark *) *):is(.hljs-comment,.hljs-code,.hljs-formula){color:#6a737d}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#ffeef0\\] *).hljs-deletion{background-color:#ffeef0}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#b31d28\\] *).hljs-deletion{color:#b31d28}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#473235\\]:is(.dark *) *).hljs-deletion{background-color:#473235}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#e7c7cb\\]:is(.dark *) *).hljs-deletion{color:#e7c7cb}:is(.\\*\\*\\:\\[\\.hljs-emphasis\\]\\:italic *).hljs-emphasis{font-style:italic}:is(.\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#d73a49\\] *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#d73a49}:is(.dark\\:\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#ee6960\\]:is(.dark *) *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#ee6960}:is(.\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#22863a\\] *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#36a84f\\]:is(.dark *) *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#36a84f}:is(.\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#032f62\\] *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#032f62}:is(.dark\\:\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#3593ff\\]:is(.dark *) *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#3593ff}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:font-bold *).hljs-section{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#005cc5\\] *).hljs-section{color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#61a5f2\\]:is(.dark *) *).hljs-section{color:#61a5f2}:is(.\\*\\*\\:\\[\\.hljs-strong\\]\\:font-bold *).hljs-strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#6f42c1\\] *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#6f42c1}:is(.dark\\:\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#a77bfa\\]:is(.dark *) *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#a77bfa}:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_next\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_previous\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\\*\\:first\\:\\[span\\]\\:hidden>*):first-child:is(span){display:none}:is(.data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}:is(.\\*\\:\\[svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-8>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.\\[\\&\\:last-child\\[data-selected\\=true\\]_button\\]\\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:nth-child\\(2\\)\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\>span\\]\\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&\\>span\\]\\:opacity-70>span{opacity:.7}.\\[\\&\\>svg\\]\\:size-3\\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>svg\\]\\:text-muted-foreground>svg{color:var(--muted-foreground)}.group-has-data-\\[size\\=lg\\]\\/avatar-group\\:\\[\\&\\>svg\\]\\:size-5:is(:where(.group\\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\\[size\\=sm\\]\\/avatar-group\\:\\[\\&\\>svg\\]\\:size-3:is(:where(.group\\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\\[size\\=default\\]\\/avatar\\:\\[\\&\\>svg\\]\\:size-2:is(:where(.group\\/avatar)[data-size=default] *)>svg,.group-data-\\[size\\=lg\\]\\/avatar\\:\\[\\&\\>svg\\]\\:size-2:is(:where(.group\\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\\[size\\=sm\\]\\/avatar\\:\\[\\&\\>svg\\]\\:hidden:is(:where(.group\\/avatar)[data-size=sm] *)>svg{display:none}[data-slot=card-content] .\\[\\[data-slot\\=card-content\\]_\\&\\]\\:bg-transparent,[data-slot=popover-content] .\\[\\[data-slot\\=popover-content\\]_\\&\\]\\:bg-transparent{background-color:#0000}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);--highlight:oklch(85.2% .199 91.936);--brand:oklch(62.3% .214 259.815)}@counter-style turkish-lower-alpha{system:alphabetic;symbols:a b c ç d e f g ğ h ı i j k l m n o ö p r s ş t u ü v y z;suffix:". "}@counter-style turkish-upper-alpha{system:alphabetic;symbols:A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V Y Z;suffix:". "}@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-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@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-tracking{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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@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)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}')),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
- import*as e from"react";import t from"react";import{KEYS as r,isHotkey as s,getPluginTypes as n,NodeApi as o,PathApi as a,isSlateString as i,RangeApi as l,isSlateEditor as c,nanoid as d,ElementApi as u,TextApi as m,isType as h,getPluginByType as x,ExitBreakPlugin as p,isUrl as f,IS_APPLE as g,TrailingBlockPlugin as j,BaseParagraphPlugin as b}from"platejs";import{createSlateEditor as v,createSlatePlugin as y,normalizeNodeId as w}from"platejs";import{PlateElement as k,useReadOnly as C,useSelected as N,useFocused as z,ParagraphPlugin as _,PlateLeaf as S,useEditorPlugin as E,usePlateState as B,usePluginOption as T,BlockPlaceholderPlugin as D,useEditorRef as I,useElement as O,withHOC as A,useRemoveNodeButton as F,useEditorSelector as M,useFocusedLast as R,toTPlatePlugin as L,PlateContainer as P,PlateContent as H,PlateView as V,Plate as U,usePlateEditor as q,createPlatePlugin as $,MemoizedChildren as W,useComposedRef as K,useSelectionFragmentProp as Z,useMarkToolbarButtonState as G,useMarkToolbarButton as Y,useEditorReadOnly as J,useEditorId as X,useEventEditorValue as Q,useFormInputProps as ee,useEditorSelection as te,createPrimitiveComponent as re,useElementSelector as se}from"platejs/react";import{Plate as ne,PlateLeaf as oe,PlateView as ae,toPlatePlugin as ie,usePlateEditor as le,usePlateViewEditor as ce}from"platejs/react";import{TextAlignPlugin as de,FontColorPlugin as ue,FontBackgroundColorPlugin as me,FontSizePlugin as he,FontFamilyPlugin as xe,LineHeightPlugin as pe}from"@platejs/basic-styles/react";import{AutoformatPlugin as fe,autoformatSmartQuotes as ge,autoformatPunctuation as je,autoformatLegal as be,autoformatLegalHtml as ve,autoformatArrow as ye,autoformatMath as we}from"@platejs/autoformat";import{insertEmptyCodeBlock as ke,isLangSupported as Ce,formatCodeBlock as Ne,insertCodeBlock as ze,toggleCodeBlock as _e,BaseCodeBlockPlugin as Se,BaseCodeLinePlugin as Ee,BaseCodeSyntaxPlugin as Be}from"@platejs/code-block";import{toggleList as Te,expandListItemsWithChildren as De,someList as Ie,ListStyleType as Oe,isOrderedList as Ae,BaseListPlugin as Fe}from"@platejs/list";import{H1Plugin as Me,H2Plugin as Re,H3Plugin as Le,H4Plugin as Pe,H5Plugin as He,H6Plugin as Ve,BlockquotePlugin as Ue,HorizontalRulePlugin as qe,BoldPlugin as $e,ItalicPlugin as We,UnderlinePlugin as Ke,CodePlugin as Ze,StrikethroughPlugin as Ge,SubscriptPlugin as Ye,SuperscriptPlugin as Je,HighlightPlugin as Xe,KbdPlugin as Qe}from"@platejs/basic-nodes/react";import{cva as et}from"class-variance-authority";import{clsx as tt}from"clsx";import{twMerge as rt}from"tailwind-merge";import{BlockMenuPlugin as st,BlockSelectionPlugin as nt,BLOCK_CONTEXT_MENU_ID as ot,useBlockSelected as at,useCursorOverlay as it,CursorOverlayPlugin as lt}from"@platejs/selection/react";import{AIChatPlugin as ct}from"@platejs/ai/react";import{ChevronRightIcon as dt,CircleIcon as ut,CheckIcon as mt,ChevronDown as ht,SearchIcon as xt,XIcon as pt,MusicIcon as ft,CompassIcon as gt,SmileIcon as jt,LightbulbIcon as bt,LeafIcon as vt,ClockIcon as yt,AppleIcon as wt,FlagIcon as kt,StarIcon as Ct,BracesIcon as Nt,Check as zt,CopyIcon as _t,GripHorizontal as St,Trash2Icon as Et,ChevronLeftIcon as Bt,ChevronDownIcon as Tt,CornerDownLeftIcon as Dt,ArrowUpIcon as It,MoreHorizontalIcon as Ot,PencilIcon as At,TrashIcon as Ft,PencilLineIcon as Mt,MessageSquareTextIcon as Rt,MessagesSquareIcon as Lt,GripVertical as Pt,AlignLeftIcon as Ht,AlignCenterIcon as Vt,AlignRightIcon as Ut,AlignJustifyIcon as qt,EraserIcon as $t,PlusIcon as Wt,Undo2Icon as Kt,Redo2Icon as Zt,OutdentIcon as Gt,IndentIcon as Yt,Link as Jt,ListOrdered as Xt,List as Qt,LinkIcon as er,FilmIcon as tr,ImageIcon as rr,FileUpIcon as sr,AudioLinesIcon as nr,Table as or,Grid3x3Icon as ar,Combine as ir,Ungroup as lr,ArrowUp as cr,ArrowDown as dr,ArrowLeft as ur,ArrowRight as mr,PilcrowIcon as hr,Heading1Icon as xr,Heading2Icon as pr,Heading3Icon as fr,Heading4Icon as gr,Heading5Icon as jr,Heading6Icon as br,ListIcon as vr,ListOrderedIcon as yr,TriangleAlert as wr,Minimize as kr,Maximize as Cr,Images as Nr,BoldIcon as zr,ItalicIcon as _r,UnderlineIcon as Sr,StrikethroughIcon as Er,SuperscriptIcon as Br,SubscriptIcon as Tr,BaselineIcon as Dr,PaintBucketIcon as Ir,Text as Or,Unlink as Ar,ExternalLink as Fr,RadicalIcon as Mr,FileUp as Rr,Loader2Icon as Lr,Film as Pr,AudioLines as Hr,Minus as Vr,Plus as Ur,Download as qr,X as $r,CombineIcon as Wr,SquareSplitHorizontalIcon as Kr,Grid2X2Icon as Zr,ChevronRight as Gr}from"lucide-react";import"@radix-ui/react-accessible-icon";import"@radix-ui/react-accordion";import*as Yr from"@radix-ui/react-alert-dialog";import"@radix-ui/react-aspect-ratio";import*as Jr from"@radix-ui/react-avatar";import*as Xr from"@radix-ui/react-checkbox";import"@radix-ui/react-collapsible";import*as Qr from"@radix-ui/react-context-menu";import"@radix-ui/react-dialog";import"@radix-ui/react-direction";import*as es from"@radix-ui/react-dropdown-menu";import{DropdownMenuItemIndicator as ts}from"@radix-ui/react-dropdown-menu";import"@radix-ui/react-form";import"@radix-ui/react-hover-card";import"@radix-ui/react-label";import"@radix-ui/react-menubar";import"@radix-ui/react-navigation-menu";import"@radix-ui/react-one-time-password-field";import"@radix-ui/react-password-toggle-field";import*as rs from"@radix-ui/react-popover";import{PopoverAnchor as ss}from"@radix-ui/react-popover";import"@radix-ui/react-portal";import"@radix-ui/react-progress";import"@radix-ui/react-radio-group";import"@radix-ui/react-scroll-area";import"@radix-ui/react-select";import*as ns from"@radix-ui/react-separator";import"@radix-ui/react-slider";import*as os from"@radix-ui/react-slot";import"@radix-ui/react-switch";import"@radix-ui/react-tabs";import"@radix-ui/react-toast";import"@radix-ui/react-toggle";import"@radix-ui/react-toggle-group";import*as as from"@radix-ui/react-toolbar";import*as is from"@radix-ui/react-tooltip";import"@radix-ui/react-visually-hidden";import{DndPlugin as ls,useDraggable as cs,useDropLine as ds}from"@platejs/dnd";import{useCalloutEmojiPicker as us,CalloutPlugin as ms}from"@platejs/callout/react";import{useEmojiDropdownMenuState as hs,EmojiPlugin as xs,EmojiInputPlugin as ps}from"@platejs/emoji/react";import{EmojiSettings as fs,EmojiInlineIndexSearch as gs,insertEmoji as js}from"@platejs/emoji";import{CodeBlockPlugin as bs,CodeLinePlugin as vs,CodeSyntaxPlugin as ys}from"@platejs/code-block/react";import{createLowlight as ws,all as ks}from"lowlight";import{Command as Cs}from"cmdk";import{ColumnPlugin as Ns,ColumnItemPlugin as zs}from"@platejs/layout/react";import{setColumns as _s,toggleColumnGroup as Ss,insertColumnGroup as Es,BaseColumnPlugin as Bs,BaseColumnItemPlugin as Ts}from"@platejs/layout";import{ResizableProvider as Ds,Resizable as Is,useResizeHandleState as Os,useResizeHandle as As,useResizableValue as Fs}from"@platejs/resizable";import{useComposedRef as Ms,createPrimitiveComponent as Rs}from"@udecode/cn";import{getCommentCount as Ls,BaseCommentPlugin as Ps,getDraftCommentKey as Hs,getCommentKey as Vs}from"@platejs/comment";import{getTableGridAbove as Us,setCellBackground as qs,BaseTablePlugin as $s,BaseTableRowPlugin as Ws,BaseTableCellPlugin as Ks,BaseTableCellHeaderPlugin as Zs}from"@platejs/table";import{DatePlugin as Gs}from"@platejs/date/react";import{getDefaultClassNames as Ys,DayPicker as Js}from"react-day-picker";import{useCommentId as Xs,CommentPlugin as Qs}from"@platejs/comment/react";import{BaseSuggestionPlugin as en,getSuggestionKey as tn,keyId2SuggestionId as rn,acceptSuggestion as sn,rejectSuggestion as nn,getTransientSuggestionKey as on}from"@platejs/suggestion";import{SuggestionPlugin as an}from"@platejs/suggestion/react";import{differenceInMinutes as ln,differenceInHours as cn,differenceInDays as dn,format as un}from"date-fns";import{DndProvider as mn}from"react-dnd";import{HTML5Backend as hn}from"react-dnd-html5-backend";import{PlaceholderPlugin as xn,useMediaState as pn,useImagePreviewValue as fn,useFloatingMediaValue as gn,FloatingMediaStore as jn,FloatingMedia as bn,ImagePlugin as vn,Image as yn,PlaceholderProvider as wn,updateUploadHistory as kn,useImagePreview as Cn,PreviewImage as Nn,useScaleInput as zn,UploadErrorCode as _n,AudioPlugin as Sn,FilePlugin as En}from"@platejs/media/react";import{DocxPlugin as Bn}from"@platejs/docx";import{JuicePlugin as Tn}from"@platejs/juice";import Dn from"@emoji-mart/data";import{useComboboxStore as In,ComboboxProvider as On,useComboboxContext as An,Combobox as Fn,Portal as Mn,ComboboxPopover as Rn,ComboboxGroup as Ln,ComboboxItem as Pn,ComboboxGroupLabel as Hn}from"@ariakit/react";import{filterWords as Vn}from"@platejs/combobox";import{useHTMLInputCursorState as Un,useComboboxInput as qn}from"@platejs/combobox/react";import{useOutdentButton as $n,useIndentButton as Wn,IndentPlugin as Kn}from"@platejs/indent/react";import{useLinkToolbarButtonState as Zn,useLinkToolbarButton as Gn,triggerFloatingLink as Yn,useFloatingLinkInsertState as Jn,useFloatingLinkInsert as Xn,useFloatingLinkEditState as Qn,useFloatingLinkEdit as eo,FloatingLinkUrlInput as to,LinkPlugin as ro}from"@platejs/link/react";import{useTodoListElementState as so,useTodoListElement as no,ListPlugin as oo}from"@platejs/list/react";import{toast as ao}from"sonner";import{useFilePicker as io}from"use-file-picker";import{TablePlugin as lo,useTableMergeState as co,TableProvider as uo,useTableElement as mo,useTableBordersDropdownMenuContentState as ho,useTableCellElement as xo,useTableCellElementResizable as po,TableRowPlugin as fo,TableCellPlugin as go,TableCellHeaderPlugin as jo}from"@platejs/table/react";import{insertCallout as bo,BaseCalloutPlugin as vo}from"@platejs/callout";import{insertDate as yo,BaseDatePlugin as wo}from"@platejs/date";import{insertExcalidraw as ko}from"@platejs/excalidraw";import{insertEquation as Co,insertInlineEquation as No,getEquationHtml as zo,BaseInlineEquationPlugin as _o,BaseEquationPlugin as So}from"@platejs/math";import{insertVideoPlaceholder as Eo,insertMedia as Bo,insertFilePlaceholder as To,insertAudioPlaceholder as Do,BaseImagePlugin as Io,BaseAudioPlugin as Oo,BaseFilePlugin as Ao,BasePlaceholderPlugin as Fo}from"@platejs/media";import{insertToc as Mo,BaseTocPlugin as Ro,isHeading as Lo}from"@platejs/toc";import{useFloatingToolbarState as Po,offset as Ho,flip as Vo,useFloatingToolbar as Uo}from"@platejs/floating";import{getLinkAttributes as qo,BaseLinkPlugin as $o}from"@platejs/link";import{useEquationInput as Wo,useEquationElement as Ko,InlineEquationPlugin as Zo,EquationPlugin as Go}from"@platejs/math/react";import Yo from"react-textarea-autosize";import{useCaptionButtonState as Jo,useCaptionButton as Xo,Caption as Qo,CaptionTextarea as ea,CaptionPlugin as ta}from"@platejs/caption/react";import{generateReactHelpers as ra}from"@uploadthing/react";import{z as sa}from"zod";import{MentionPlugin as na,MentionInputPlugin as oa}from"@platejs/mention/react";import{getMentionOnSelectItem as aa,BaseMentionPlugin as ia}from"@platejs/mention";import{SlashPlugin as la,SlashInputPlugin as ca}from"@platejs/slash-command/react";import{useTocElementState as da,useTocElement as ua,TocPlugin as ma}from"@platejs/toc/react";import{useToggleButtonState as ha,useToggleButton as xa,TogglePlugin as pa}from"@platejs/toggle/react";import{BaseTextAlignPlugin as fa,BaseFontColorPlugin as ga,BaseFontBackgroundColorPlugin as ja,BaseFontSizePlugin as ba,BaseFontFamilyPlugin as va,BaseLineHeightPlugin as ya}from"@platejs/basic-styles";import{BaseH1Plugin as wa,BaseH2Plugin as ka,BaseH3Plugin as Ca,BaseH4Plugin as Na,BaseH5Plugin as za,BaseH6Plugin as _a,BaseBlockquotePlugin as Sa,BaseHorizontalRulePlugin as Ea,BaseBoldPlugin as Ba,BaseItalicPlugin as Ta,BaseUnderlinePlugin as Da,BaseCodePlugin as Ia,BaseStrikethroughPlugin as Oa,BaseSubscriptPlugin as Aa,BaseSuperscriptPlugin as Fa,BaseHighlightPlugin as Ma,BaseKbdPlugin as Ra}from"@platejs/basic-nodes";import{SlateElement as La,SlateLeaf as Pa}from"platejs/static";import{PlateStatic as Ha,serializeHtml as Va}from"platejs/static";import{BaseIndentPlugin as Ua}from"@platejs/indent";import{BaseCaptionPlugin as qa}from"@platejs/caption";import{BaseTogglePlugin as $a}from"@platejs/toggle";import{computeDiff as Wa,withGetFragmentExcludeDiff as Ka}from"@platejs/diff";var Za="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya,Ja={exports:{}},Xa={};var Qa,ei,ti={};function ri(){return Qa||(Qa=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===N?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case x:return"Fragment";case f:return"Profiler";case p:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case j:return t.displayName||"Context";case g:return(t._context.displayName||"Context")+".Consumer";case b:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case k:r=t._payload,t=t._init;try{return e(t(r))}catch(s){}}return null}function r(e){return""+e}function s(e){try{r(e);var t=!1}catch(o){t=!0}if(t){var s=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),r(e)}}function n(t){if(t===x)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===k)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch(s){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return B[t]||(B[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,n,o,i,c){var u,h=r.children;if(void 0!==h)if(o)if(S(h)){for(o=0;o<h.length;o++)l(h[o]);Object.freeze&&Object.freeze(h)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(h);if(_.call(r,"key")){h=e(t);var x=Object.keys(r).filter(function(e){return"key"!==e});o=0<x.length?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}",I[h+o]||(x=0<x.length?"{"+x.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,h,x,h),I[h+o]=!0)}if(h=null,void 0!==n&&(s(n),h=""+n),function(e){if(_.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(s(r.key),h=""+r.key),"key"in r)for(var p in n={},r)"key"!==p&&(n[p]=r[p]);else n=r;return h&&function(e,t){function r(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,s,n,o){var i=r.ref;return e={$$typeof:m,type:e,key:t,props:r,_owner:s},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,h,n,null===(u=z.A)?null:u.getOwner(),i,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=t,m=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),x=/* @__PURE__ */Symbol.for("react.fragment"),p=/* @__PURE__ */Symbol.for("react.strict_mode"),f=/* @__PURE__ */Symbol.for("react.profiler"),g=/* @__PURE__ */Symbol.for("react.consumer"),j=/* @__PURE__ */Symbol.for("react.context"),b=/* @__PURE__ */Symbol.for("react.forward_ref"),v=/* @__PURE__ */Symbol.for("react.suspense"),y=/* @__PURE__ */Symbol.for("react.suspense_list"),w=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),C=/* @__PURE__ */Symbol.for("react.activity"),N=/* @__PURE__ */Symbol.for("react.client.reference"),z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,S=Array.isArray,E=console.createTask?console.createTask:function(){return null},B={},T=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),D=E(n(o)),I={};ti.Fragment=x,ti.jsx=function(e,t,r){var s=1e4>z.recentlyCreatedOwnerStacks++;return i(e,t,r,!1,s?Error("react-stack-top-frame"):T,s?E(n(e)):D)},ti.jsxs=function(e,t,r){var s=1e4>z.recentlyCreatedOwnerStacks++;return i(e,t,r,!0,s?Error("react-stack-top-frame"):T,s?E(n(e)):D)}}()),ti}var si=(ei||(ei=1,"production"===process.env.NODE_ENV?Ja.exports=function(){if(Ya)return Xa;Ya=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function r(t,r,s){var n=null;if(void 0!==s&&(n=""+s),void 0!==r.key&&(n=""+r.key),"key"in r)for(var o in s={},r)"key"!==o&&(s[o]=r[o]);else s=r;return r=s.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:s}}return Xa.Fragment=t,Xa.jsx=r,Xa.jsxs=r,Xa}():Ja.exports=ri()),Ja.exports);const ni=[de.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...r.heading,r.p,r.img,r.mediaEmbed]}})],oi=[{match:"***",mode:"mark",type:[r.bold,r.italic]},{match:"__*",mode:"mark",type:[r.underline,r.italic]},{match:"__**",mode:"mark",type:[r.underline,r.bold]},{match:"___***",mode:"mark",type:[r.underline,r.bold,r.italic]},{match:"**",mode:"mark",type:r.bold},{match:"__",mode:"mark",type:r.underline},{match:"*",mode:"mark",type:r.italic},{match:"_",mode:"mark",type:r.italic},{match:"~~",mode:"mark",type:r.strikethrough},{match:"^",mode:"mark",type:r.sup},{match:"~",mode:"mark",type:r.sub},{match:"==",mode:"mark",type:r.highlight},{match:"≡",mode:"mark",type:r.highlight},{match:"`",mode:"mark",type:r.code}],ai=[{match:"# ",mode:"block",type:r.h1},{match:"## ",mode:"block",type:r.h2},{match:"### ",mode:"block",type:r.h3},{match:"#### ",mode:"block",type:r.h4},{match:"##### ",mode:"block",type:r.h5},{match:"###### ",mode:"block",type:r.h6},{match:"> ",mode:"block",type:r.blockquote},{match:"```",mode:"block",type:r.codeBlock,format:e=>{ke(e,{defaultType:r.p,insertNodesOptions:{select:!0}})}},{match:["---","—-","___ "],mode:"block",type:r.hr,format:e=>{e.tf.setNodes({type:r.hr}),e.tf.insertNodes({children:[{text:""}],type:r.p})}}],ii=[{match:["* ","- "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.ul})}},{match:[String.raw`^\d+\.$ `,String.raw`^\d+\)$ `],matchByRegex:!0,mode:"block",type:"list",format:(e,{matchString:t})=>{Te(e,{listRestartPolite:Number(t)||1,listStyleType:r.ol})}},{match:["[] "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.listTodo}),e.tf.setNodes({checked:!1,listStyleType:r.listTodo})}},{match:["[x] "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.listTodo}),e.tf.setNodes({checked:!0,listStyleType:r.listTodo})}}],li=[fe.configure({options:{enableUndoOnDelete:!0,rules:[...ai,...oi,...ge,...je,...be,...ve,...ye,...we,...ii].map(e=>({...e,query:e=>!e.api.some({match:{type:e.getType(r.codeBlock)}})}))}})];const ci=et("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function di({variant:e="h1",...t}){/* @__PURE__ */
3
- return si.jsx(k,{as:e,className:ci({variant:e}),...t,children:t.children})}function ui(...e){return rt(tt(e))}const mi=[_.withComponent(function(e){/* @__PURE__ */
4
- return si.jsx(k,{...e,className:ui("m-0 px-0 py-1"),children:e.children})}),Me.configure({node:{component:function(e){/* @__PURE__ */
5
- return si.jsx(di,{variant:"h1",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+1"}}}),Re.configure({node:{component:function(e){/* @__PURE__ */
6
- return si.jsx(di,{variant:"h2",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+2"}}}),Le.configure({node:{component:function(e){/* @__PURE__ */
7
- return si.jsx(di,{variant:"h3",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+3"}}}),Pe.configure({node:{component:function(e){/* @__PURE__ */
8
- return si.jsx(di,{variant:"h4",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+4"}}}),He.configure({node:{component:function(e){/* @__PURE__ */
9
- return si.jsx(di,{variant:"h5",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+5"}}}),Ve.configure({node:{component:function(e){/* @__PURE__ */
10
- return si.jsx(di,{variant:"h6",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+6"}}}),Ue.configure({node:{component:function(e){/* @__PURE__ */
11
- return si.jsx(k,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}},shortcuts:{toggle:{keys:"mod+shift+period"}}}),qe.withComponent(function(e){const t=C(),r=N(),s=z();/* @__PURE__ */
12
- return si.jsxs(k,{...e,children:[
13
- /* @__PURE__ */si.jsx("div",{className:"py-6",contentEditable:!1,children:/* @__PURE__ */si.jsx("hr",{className:ui("h-0.5 rounded-sm border-none bg-muted bg-clip-content",r&&s&&"ring-2 ring-ring ring-offset-2",!t&&"cursor-pointer")})}),e.children]})})];const hi=[$e,We,Ke,Ze.configure({node:{component:function(e){/* @__PURE__ */
14
- return si.jsx(S,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}},shortcuts:{toggle:{keys:"mod+e"}}}),Ge.configure({shortcuts:{toggle:{keys:"mod+shift+x"}}}),Ye.configure({shortcuts:{toggle:{keys:"mod+comma"}}}),Je.configure({shortcuts:{toggle:{keys:"mod+period"}}}),Xe.configure({node:{component:function(e){/* @__PURE__ */
15
- return si.jsx(S,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}},shortcuts:{toggle:{keys:"mod+shift+h"}}}),Qe.withComponent(function(e){/* @__PURE__ */
16
- return si.jsx(S,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];function xi({...e}){/* @__PURE__ */
17
- return si.jsx(Qr.Root,{"data-slot":"context-menu",...e})}function pi({...e}){/* @__PURE__ */
18
- return si.jsx(Qr.Trigger,{"data-slot":"context-menu-trigger",...e})}function fi({...e}){/* @__PURE__ */
19
- return si.jsx(Qr.Group,{"data-slot":"context-menu-group",...e})}function gi({...e}){/* @__PURE__ */
20
- return si.jsx(Qr.Sub,{"data-slot":"context-menu-sub",...e})}function ji({className:e,inset:t,children:r,...s}){/* @__PURE__ */
21
- return si.jsxs(Qr.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:ui("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
22
- /* @__PURE__ */si.jsx(dt,{className:"ml-auto"})]})}function bi({className:e,...t}){/* @__PURE__ */
23
- return si.jsx(Qr.SubContent,{"data-slot":"context-menu-sub-content",className:ui("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function vi({className:e,...t}){/* @__PURE__ */
24
- return si.jsx(Qr.Portal,{children:/* @__PURE__ */si.jsx(Qr.Content,{"data-slot":"context-menu-content",className:ui("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...t})})}function yi({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
25
- return si.jsx(Qr.Item,{"data-slot":"context-menu-item","data-inset":t,"data-variant":r,className:ui("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}const wi=et("pointer-events-none absolute inset-0 z-1 bg-brand/[.13] transition-opacity",{defaultVariants:{active:!0},variants:{active:{false:"opacity-0",true:"opacity-100"}}});function ki(e){const t=at(),r=T(ls,"isDragging");return t&&"tr"!==e.plugin.key&&"table"!==e.plugin.key?/* @__PURE__ */si.jsx("div",{className:wi({active:t&&!r}),"data-slot":"block-selection"}):null}const Ci=[...[nt.configure(({editor:e})=>({options:{enableContextMenu:!0,isSelectable:t=>!n(e,[r.column,r.codeLine,r.td]).includes(t.type),onKeyDownSelecting:(e,t)=>{s("mod+j")(t)&&e.getApi(ct).aiChat.show()}},render:{belowRootNodes:e=>e.attributes.className?.includes("slate-selectable")?/* @__PURE__ */si.jsx(ki,{...e}):null}}))],st.configure({render:{aboveEditable:function({children:t}){const{api:s,editor:n}=E(st),[o,a]=e.useState(null),i=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{function e(){r("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),t}(),[l]=B("readOnly"),c=T(st,"openId")===ot,d=e.useCallback(e=>{n.getApi(nt).blockSelection.getNodes().forEach(([t,s])=>{t[r.listType]&&n.tf.unsetNodes([r.listType,"indent"],{at:s}),n.tf.toggleBlock(e,{at:s})})},[n]),u=e.useCallback(e=>{n.getTransforms(nt).blockSelection.setNodes({align:e})},[n]);return i?t:/* @__PURE__ */si.jsxs(xi,{onOpenChange:e=>{e||s.blockMenu.hide()},modal:!1,children:[
26
- /* @__PURE__ */si.jsx(pi,{asChild:!0,onContextMenu:e=>{const t=e.target.dataset;if("true"===t?.slateEditor||l||"false"===t?.plateOpenContextMenu)return e.preventDefault();setTimeout(()=>{s.blockMenu.show(ot,{x:e.clientX,y:e.clientY})},0)},children:/* @__PURE__ */si.jsx("div",{className:"w-full",children:t})}),c&&/* @__PURE__ */si.jsxs(vi,{className:"w-64",onCloseAutoFocus:e=>{e.preventDefault(),n.getApi(nt).blockSelection.focus(),"askAI"===o&&n.getApi(ct).aiChat.show(),a(null)},children:[
27
- /* @__PURE__ */si.jsxs(fi,{children:[
28
- /* @__PURE__ */si.jsx(yi,{onClick:()=>{n.getTransforms(nt).blockSelection.removeNodes(),n.tf.focus()},children:"Delete"}),
29
- /* @__PURE__ */si.jsx(yi,{onClick:()=>{n.getTransforms(nt).blockSelection.duplicate()},children:"Duplicate"}),
30
- /* @__PURE__ */si.jsxs(gi,{children:[
31
- /* @__PURE__ */si.jsx(ji,{children:"Turn into"}),
32
- /* @__PURE__ */si.jsxs(bi,{className:"w-48",children:[
33
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.p),children:"Paragraph"}),
34
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h1),children:"Heading 1"}),
35
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h2),children:"Heading 2"}),
36
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h3),children:"Heading 3"}),
37
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h4),children:"Heading 4"}),
38
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h5),children:"Heading 5"}),
39
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.h6),children:"Heading 6"}),
40
- /* @__PURE__ */si.jsx(yi,{onClick:()=>d(r.callout),children:"Callout"})]})]})]}),
41
- /* @__PURE__ */si.jsxs(fi,{children:[
42
- /* @__PURE__ */si.jsx(yi,{onClick:()=>n.getTransforms(nt).blockSelection.setIndent(1),children:"Indent"}),
43
- /* @__PURE__ */si.jsx(yi,{onClick:()=>n.getTransforms(nt).blockSelection.setIndent(-1),children:"Outdent"}),
44
- /* @__PURE__ */si.jsxs(gi,{children:[
45
- /* @__PURE__ */si.jsx(ji,{children:"Align"}),
46
- /* @__PURE__ */si.jsxs(bi,{className:"w-48",children:[
47
- /* @__PURE__ */si.jsx(yi,{onClick:()=>u("left"),children:"Left"}),
48
- /* @__PURE__ */si.jsx(yi,{onClick:()=>u("center"),children:"Center"}),
49
- /* @__PURE__ */si.jsx(yi,{onClick:()=>u("right"),children:"Right"})]})]})]})]})]})}}})],Ni=[D.configure({options:{className:"before:absolute before:cursor-text before:text-muted-foreground/80 before:content-[attr(placeholder)]",placeholders:{[r.p]:"Type something..."},query:({path:e})=>1===e.length}})],zi=et("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function _i({className:e,variant:t="default",size:r="default",asChild:s=!1,...n}){const o=s?os.Root:"button";/* @__PURE__ */
50
- return si.jsx(o,{"data-slot":"button","data-variant":t,"data-size":r,className:ui(zi({variant:t,size:r,className:e})),...n})}function Si({delayDuration:e=0,...t}){/* @__PURE__ */
51
- return si.jsx(is.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ei({...e}){/* @__PURE__ */
52
- return si.jsx(is.Root,{"data-slot":"tooltip",...e})}function Bi({...e}){/* @__PURE__ */
53
- return si.jsx(is.Trigger,{"data-slot":"tooltip-trigger",...e})}function Ti({className:e,sideOffset:t=0,children:r,...s}){/* @__PURE__ */
54
- return si.jsx(is.Portal,{children:/* @__PURE__ */si.jsxs(is.Content,{"data-slot":"tooltip-content",sideOffset:t,className:ui("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[r,
55
- /* @__PURE__ */si.jsx(is.Arrow,{className:"bg-foreground fill-foreground z-1500 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}function Di({...e}){/* @__PURE__ */
56
- return si.jsx(es.Root,{"data-slot":"dropdown-menu",...e})}function Ii({...e}){/* @__PURE__ */
57
- return si.jsx(es.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Oi({...e}){/* @__PURE__ */
58
- return si.jsx(es.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Ai({className:e,sideOffset:t=4,...r}){/* @__PURE__ */
59
- return si.jsx(es.Portal,{children:/* @__PURE__ */si.jsx(es.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:ui("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function Fi({...e}){/* @__PURE__ */
60
- return si.jsx(es.Group,{"data-slot":"dropdown-menu-group",...e})}function Mi({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
61
- return si.jsx(es.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:ui("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s})}function Ri({className:e,children:t,checked:r,...s}){/* @__PURE__ */
62
- return si.jsxs(es.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:ui("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...s,children:[
63
- /* @__PURE__ */si.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */si.jsx(es.ItemIndicator,{children:/* @__PURE__ */si.jsx(mt,{className:"size-4"})})}),t]})}function Li({...e}){/* @__PURE__ */
64
- return si.jsx(es.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function Pi({className:e,children:t,...r}){/* @__PURE__ */
65
- return si.jsxs(es.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:ui("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[
66
- /* @__PURE__ */si.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */si.jsx(es.ItemIndicator,{children:/* @__PURE__ */si.jsx(ut,{className:"size-2 fill-current"})})}),t]})}function Hi({className:e,inset:t,...r}){/* @__PURE__ */
67
- return si.jsx(es.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:ui("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function Vi({className:e,...t}){/* @__PURE__ */
68
- return si.jsx(es.Separator,{"data-slot":"dropdown-menu-separator",className:ui("bg-border -mx-1 my-1 h-px",e),...t})}function Ui({...e}){/* @__PURE__ */
69
- return si.jsx(es.Sub,{"data-slot":"dropdown-menu-sub",...e})}function qi({className:e,inset:t,children:r,...s}){/* @__PURE__ */
70
- return si.jsxs(es.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:ui("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[r,
71
- /* @__PURE__ */si.jsx(dt,{className:"ml-auto size-4"})]})}function $i({className:e,...t}){/* @__PURE__ */
72
- return si.jsx(es.SubContent,{"data-slot":"dropdown-menu-sub-content",className:ui("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}function Wi({className:e,orientation:t="horizontal",decorative:r=!0,...s}){/* @__PURE__ */
73
- return si.jsx(ns.Root,{"data-slot":"separator",decorative:r,orientation:t,className:ui("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}function Ki({className:e,...t}){/* @__PURE__ */
74
- return si.jsx(as.Root,{className:ui("relative flex select-none items-center",e),...t})}function Zi({className:e,...t}){/* @__PURE__ */
75
- return si.jsx(as.ToolbarToggleGroup,{className:ui("flex items-center",e),...t})}const Gi=et("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-checked:bg-accent aria-checked:text-accent-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 min-w-9 px-2",lg:"h-10 min-w-10 px-2.5",sm:"h-8 min-w-8 px-1.5"},variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"}}}),Yi=et(ui("inline-flex items-center justify-center rounded-r-md font-medium text-foreground text-sm transition-colors disabled:pointer-events-none disabled:opacity-50"),{defaultVariants:{size:"sm",variant:"default"},variants:{size:{default:"h-9 w-6",lg:"h-10 w-8",sm:"h-8 w-4"},variant:{default:"bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",outline:"border border-input border-l-0 bg-transparent hover:bg-accent hover:text-accent-foreground"}}}),Ji=(Xi=function({children:e,className:t,isDropdown:r,pressed:s,size:n="sm",variant:o,...a}){return"boolean"==typeof s?/* @__PURE__ */si.jsx(Zi,{disabled:a.disabled,value:"single",type:"single",children:/* @__PURE__ */si.jsx(rl,{className:ui(Gi({size:n,variant:o}),r&&"justify-between gap-1 pr-1",t),value:s?"single":"",...a,children:r?/* @__PURE__ */si.jsxs(si.Fragment,{children:[
76
- /* @__PURE__ */si.jsx("div",{className:"flex flex-1 items-center gap-2 whitespace-nowrap",children:e}),
77
- /* @__PURE__ */si.jsx("div",{children:/* @__PURE__ */si.jsx(ht,{className:"size-3.5 text-muted-foreground","data-icon":!0})})]}):e})}):/* @__PURE__ */si.jsx(as.Button,{className:ui(Gi({size:n,variant:o}),r&&"pr-1",t),...a,children:e})},function({tooltip:t,tooltipContentProps:r,tooltipProps:s,tooltipTriggerProps:n,...o}){const[a,i]=e.useState(!1);e.useEffect(()=>{i(!0)},[]);const l=/* @__PURE__ */si.jsx(Xi,{...o});return t&&a?/* @__PURE__ */si.jsxs(Ei,{...s,children:[
78
- /* @__PURE__ */si.jsx(Bi,{asChild:!0,...n,children:l}),
79
- /* @__PURE__ */si.jsx(nl,{...r,children:t})]}):l});var Xi;function Qi({className:e,...t}){/* @__PURE__ */
80
- return si.jsx(Ji,{className:ui("group flex gap-0 px-0 hover:bg-transparent",e),...t})}function el({children:e,className:t,size:r="sm",variant:s,...n}){/* @__PURE__ */
81
- return si.jsx("span",{className:ui(Gi({size:r,variant:s}),"rounded-r-none","group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",t),...n,children:e})}function tl({className:e,size:t,variant:r,...s}){/* @__PURE__ */
82
- return si.jsx("span",{className:ui(Yi({size:t,variant:r}),"group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",e),onClick:e=>e.stopPropagation(),role:"button",...s,children:/* @__PURE__ */si.jsx(ht,{className:"size-3.5 text-muted-foreground","data-icon":!0})})}function rl({className:e,size:t="sm",variant:r,...s}){/* @__PURE__ */
83
- return si.jsx(as.ToggleItem,{className:ui(Gi({size:t,variant:r}),e),...s})}function sl({children:e,className:t}){/* @__PURE__ */
84
- return si.jsxs("div",{className:ui("group/toolbar-group","relative hidden has-[button]:flex",t),children:[
85
- /* @__PURE__ */si.jsx("div",{className:"flex items-center",children:e}),
86
- /* @__PURE__ */si.jsx("div",{className:"group-last/toolbar-group:hidden! mx-1.5 py-0.5",children:/* @__PURE__ */si.jsx(Wi,{orientation:"vertical"})})]})}function nl({children:e,className:t,sideOffset:r=4,...s}){/* @__PURE__ */
87
- return si.jsx(is.Portal,{children:/* @__PURE__ */si.jsx(is.Content,{className:ui("z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs",t),"data-slot":"tooltip-content",sideOffset:r,...s,children:e})})}function ol({children:e,className:t,label:r,...s}){/* @__PURE__ */
88
- return si.jsxs(si.Fragment,{children:[
89
- /* @__PURE__ */si.jsx(Vi,{className:ui("hidden","mb-0 shrink-0 peer-has-[[role=menuitem]]/menu-group:block peer-has-[[role=menuitemradio]]/menu-group:block peer-has-[[role=option]]/menu-group:block")}),
90
- /* @__PURE__ */si.jsxs(Li,{...s,className:ui("hidden","peer/menu-group group/menu-group my-1.5 has-[[role=menuitem]]:block has-[[role=menuitemradio]]:block has-[[role=option]]:block",t),children:[r&&/* @__PURE__ */si.jsx(Hi,{className:"select-none font-semibold text-muted-foreground text-xs",children:r}),e]})]})}function al({children:e,control:t,isOpen:r,setIsOpen:s}){/* @__PURE__ */
91
- return si.jsxs(rs.Root,{open:r,onOpenChange:s,children:[
92
- /* @__PURE__ */si.jsx(rs.Trigger,{asChild:!0,children:t}),
93
- /* @__PURE__ */si.jsx(rs.Portal,{children:/* @__PURE__ */si.jsx(rs.Content,{className:"z-100",children:e})})]})}function il({clearSearch:e,emoji:t,emojiLibrary:r,focusedCategory:s,hasFound:n,i18n:o,icons:a={categories:jl,search:bl},isSearching:i,refs:l,searchResult:c,searchValue:d,setSearch:u,settings:m=fs,visibleCategories:h,handleCategoryClick:x,onMouseOver:p,onSelectEmoji:f}){/* @__PURE__ */
94
- return si.jsxs("div",{className:ui("flex flex-col rounded-xl bg-popover text-popover-foreground","h-[23rem] w-80 border shadow-md"),children:[
95
- /* @__PURE__ */si.jsx(gl,{onClick:x,emojiLibrary:r,focusedCategory:s,i18n:o,icons:a}),
96
- /* @__PURE__ */si.jsx(ul,{i18n:o,searchValue:d,setSearch:u,children:/* @__PURE__ */si.jsx(ml,{clearSearch:e,i18n:o,searchValue:d})}),
97
- /* @__PURE__ */si.jsx(dl,{onMouseOver:p,onSelectEmoji:f,emojiLibrary:r,i18n:o,isSearching:i,refs:l,searchResult:c,settings:m,visibleCategories:h}),
98
- /* @__PURE__ */si.jsx(fl,{emoji:t,hasFound:n,i18n:o,isSearching:i})]})}const ll=e.memo(function({emoji:e,index:t,onMouseOver:r,onSelect:s}){/* @__PURE__ */
99
- return si.jsxs("button",{className:"group relative flex size-9 cursor-pointer items-center justify-center border-none bg-transparent text-2xl leading-none",onClick:()=>s(e),onMouseEnter:()=>r(e),onMouseLeave:()=>r(),"aria-label":e.skins[0].native,"data-index":t,tabIndex:-1,type:"button",children:[
100
- /* @__PURE__ */si.jsx("div",{className:"absolute inset-0 rounded-full opacity-0 group-hover:opacity-100","aria-hidden":"true"}),
101
- /* @__PURE__ */si.jsx("span",{className:"relative",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},"data-emoji-set":"native",children:e.skins[0].native})]})}),cl=e.memo(function({emojiLibrary:e,row:t,onMouseOver:r,onSelectEmoji:s}){/* @__PURE__ */
102
- return si.jsx("div",{className:"flex","data-index":t.id,children:t.elements.map((t,n)=>/* @__PURE__ */si.jsx(ll,{onMouseOver:r,onSelect:s,emoji:e.getEmoji(t),index:n},t))},t.id)});function dl({emojiLibrary:t,i18n:r,isSearching:s=!1,refs:n,searchResult:o,settings:a=fs,visibleCategories:i,onMouseOver:l,onSelectEmoji:c}){const d=a.perLine.value*a.buttonSize.value,u=e.useCallback(e=>!!i.has(e)&&i.get(e),[i]),m=e.useCallback(()=>t.getGrid().sections().map(({id:e})=>{const s=t.getGrid().section(e),{buttonSize:n}=a;/* @__PURE__ */
103
- return si.jsxs("div",{ref:s.root,style:{width:d},"data-id":e,children:[
104
- /* @__PURE__ */si.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-sm backdrop-blur-xs",children:r.categories[e]}),
105
- /* @__PURE__ */si.jsx("div",{className:"relative flex flex-wrap",style:{height:s.getRows().length*n.value},children:u(e)&&s.getRows().map(e=>/* @__PURE__ */si.jsx(cl,{onMouseOver:l,onSelectEmoji:c,emojiLibrary:t,row:e},e.id))})]},e)}),[t,d,r.categories,u,c,l,a]),h=e.useCallback(()=>/* @__PURE__ */si.jsxs("div",{style:{width:d},"data-id":"search",children:[
106
- /* @__PURE__ */si.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-card-foreground text-sm backdrop-blur-xs",children:r.searchResult}),
107
- /* @__PURE__ */si.jsx("div",{className:"relative flex flex-wrap",children:o.map((e,r)=>/* @__PURE__ */si.jsx(ll,{onMouseOver:l,onSelect:c,emoji:t.getEmoji(e.id),index:r},e.id))})]}),[t,d,r.searchResult,o,c,l]);/* @__PURE__ */
108
- return si.jsx("div",{ref:n.current.contentRoot,className:ui("h-full min-h-[50%] overflow-y-auto overflow-x-hidden px-2","[&::-webkit-scrollbar]:w-4","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:size-0","[&::-webkit-scrollbar-thumb]:min-h-11 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted [&::-webkit-scrollbar-thumb]:hover:bg-muted-foreground/25","[&::-webkit-scrollbar-thumb]:border-4 [&::-webkit-scrollbar-thumb]:border-popover [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:bg-clip-padding"),"data-id":"scroll",children:/* @__PURE__ */si.jsx("div",{ref:n.current.content,className:"h-full",children:s?h():m()})})}function ul({children:e,i18n:t,searchValue:r,setSearch:s}){/* @__PURE__ */
109
- return si.jsx("div",{className:"flex items-center px-2",children:/* @__PURE__ */si.jsxs("div",{className:"relative flex grow items-center",children:[
110
- /* @__PURE__ */si.jsx("input",{className:"block w-full appearance-none rounded-full border-0 bg-muted px-10 py-2 text-sm outline-none placeholder:text-muted-foreground focus-visible:outline-none",value:r,onChange:e=>s(e.target.value),placeholder:t.search,"aria-label":"Search",autoComplete:"off",type:"text",autoFocus:!0}),e]})})}function ml({clearSearch:e,i18n:t,searchValue:r}){/* @__PURE__ */
111
- return si.jsxs("div",{className:"flex items-center text-foreground",children:[
112
- /* @__PURE__ */si.jsx("div",{className:ui("-translate-y-1/2 absolute top-1/2 left-2.5 z-10 flex size-5 items-center justify-center text-foreground"),children:bl.loupe}),r&&/* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",className:ui("-translate-y-1/2 absolute top-1/2 right-0.5 flex size-8 cursor-pointer items-center justify-center rounded-full border-none bg-transparent text-popover-foreground hover:bg-transparent"),onClick:e,title:t.clear,"aria-label":"Clear",type:"button",children:bl.delete})]})}function hl({emoji:e}){/* @__PURE__ */
113
- return si.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
114
- /* @__PURE__ */si.jsx("div",{className:"flex items-center justify-center text-2xl",children:e?.skins[0].native}),
115
- /* @__PURE__ */si.jsxs("div",{className:"overflow-hidden pl-2",children:[
116
- /* @__PURE__ */si.jsx("div",{className:"truncate font-semibold text-sm",children:e?.name}),
117
- /* @__PURE__ */si.jsx("div",{className:"truncate text-sm",children:`:${e?.id}:`})]})]})}function xl({i18n:e}){/* @__PURE__ */
118
- return si.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
119
- /* @__PURE__ */si.jsx("div",{className:"flex items-center justify-center text-2xl",children:"😢"}),
120
- /* @__PURE__ */si.jsxs("div",{className:"overflow-hidden pl-2",children:[
121
- /* @__PURE__ */si.jsx("div",{className:"truncate font-bold text-sm",children:e.searchNoResultsTitle}),
122
- /* @__PURE__ */si.jsx("div",{className:"truncate text-sm",children:e.searchNoResultsSubtitle})]})]})}function pl({i18n:e}){/* @__PURE__ */
123
- return si.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
124
- /* @__PURE__ */si.jsx("div",{className:"flex items-center justify-center text-2xl",children:"☝️"}),
125
- /* @__PURE__ */si.jsx("div",{className:"overflow-hidden pl-2",children:/* @__PURE__ */si.jsx("div",{className:"truncate font-semibold text-sm",children:e.pick})})]})}function fl({emoji:e,hasFound:t=!0,i18n:r,isSearching:s=!1,...n}){const o=!e&&(!s||t),a=s&&!t,i=e&&!a&&!a;/* @__PURE__ */
126
- return si.jsxs(si.Fragment,{children:[i&&/* @__PURE__ */si.jsx(hl,{emoji:e,...n}),o&&/* @__PURE__ */si.jsx(pl,{i18n:r,...n}),a&&/* @__PURE__ */si.jsx(xl,{i18n:r,...n})]})}function gl({emojiLibrary:e,focusedCategory:t,i18n:r,icons:s,onClick:n}){/* @__PURE__ */
127
- return si.jsx(Si,{delayDuration:500,children:/* @__PURE__ */si.jsx("nav",{id:"emoji-nav",className:"mb-2.5 border-0 border-b border-b-border border-solid p-1.5",children:/* @__PURE__ */si.jsx("div",{className:"relative flex items-center justify-evenly",children:e.getGrid().sections().map(({id:e})=>/* @__PURE__ */si.jsxs(Ei,{children:[
128
- /* @__PURE__ */si.jsx(Bi,{asChild:!0,children:/* @__PURE__ */si.jsx(_i,{size:"sm",variant:"ghost",className:ui("h-fit rounded-full fill-current p-1.5 text-muted-foreground hover:bg-muted hover:text-muted-foreground",e===t&&"pointer-events-none bg-accent fill-current text-accent-foreground"),onClick:()=>{n(e)},"aria-label":r.categories[e],type:"button",children:/* @__PURE__ */si.jsx("span",{className:"inline-flex size-5 items-center justify-center",children:s.categories[e].outline})})}),
129
- /* @__PURE__ */si.jsx(Ti,{side:"bottom",children:r.categories[e]})]},e))})})})}const jl={activity:{outline:/* @__PURE__ */si.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
130
- /* @__PURE__ */si.jsx("circle",{cx:"12",cy:"12",r:"10"}),
131
- /* @__PURE__ */si.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
132
- /* @__PURE__ */si.jsx("path",{d:"m5 4.9 14 14.2"}),
133
- /* @__PURE__ */si.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]}),solid:/* @__PURE__ */si.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
134
- /* @__PURE__ */si.jsx("circle",{cx:"12",cy:"12",r:"10"}),
135
- /* @__PURE__ */si.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
136
- /* @__PURE__ */si.jsx("path",{d:"m5 4.9 14 14.2"}),
137
- /* @__PURE__ */si.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]})},custom:{outline:/* @__PURE__ */si.jsx(Ct,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(Ct,{className:"size-full"})},flags:{outline:/* @__PURE__ */si.jsx(kt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(kt,{className:"size-full"})},foods:{outline:/* @__PURE__ */si.jsx(wt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(wt,{className:"size-full"})},frequent:{outline:/* @__PURE__ */si.jsx(yt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(yt,{className:"size-full"})},nature:{outline:/* @__PURE__ */si.jsx(vt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(vt,{className:"size-full"})},objects:{outline:/* @__PURE__ */si.jsx(bt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(bt,{className:"size-full"})},people:{outline:/* @__PURE__ */si.jsx(jt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(jt,{className:"size-full"})},places:{outline:/* @__PURE__ */si.jsx(gt,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(gt,{className:"size-full"})},symbols:{outline:/* @__PURE__ */si.jsx(ft,{className:"size-full"}),solid:/* @__PURE__ */si.jsx(ft,{className:"size-full"})}},bl={delete:/* @__PURE__ */si.jsx(pt,{className:"size-4 text-current"}),loupe:/* @__PURE__ */si.jsx(xt,{className:"size-4 text-current"})};const vl=[ms.withComponent(function({attributes:e,children:t,className:r,...s}){const{emojiPickerState:n,isOpen:o,setIsOpen:a}=hs({closeOnSelect:!0}),{emojiToolbarDropdownProps:i,props:l}=us({isOpen:o,setIsOpen:a});/* @__PURE__ */
138
- return si.jsx(k,{className:ui("my-1 flex rounded-sm bg-muted p-4 pl-3",r),style:{backgroundColor:s.element.backgroundColor},attributes:{...e,"data-plate-open-context-menu":!0},...s,children:/* @__PURE__ */si.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
139
- /* @__PURE__ */si.jsx(al,{...i,control:/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-6 select-none p-1 text-[18px] hover:bg-muted-foreground/15",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},contentEditable:!1,children:s.element.icon||"💡"}),children:/* @__PURE__ */si.jsx(il,{...n,...l})}),
140
- /* @__PURE__ */si.jsx("div",{className:"w-full",children:t})]})})})];function yl({className:e,...t}){/* @__PURE__ */
141
- return si.jsx(Cs,{"data-slot":"command",className:ui("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function wl({className:e,...t}){/* @__PURE__ */
142
- return si.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[
143
- /* @__PURE__ */si.jsx(xt,{className:"size-4 shrink-0 opacity-50"}),
144
- /* @__PURE__ */si.jsx(Cs.Input,{"data-slot":"command-input",className:ui("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function kl({className:e,...t}){/* @__PURE__ */
145
- return si.jsx(Cs.List,{"data-slot":"command-list",className:ui("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Cl({...e}){/* @__PURE__ */
146
- return si.jsx(Cs.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Nl({className:e,...t}){/* @__PURE__ */
147
- return si.jsx(Cs.Group,{"data-slot":"command-group",className:ui("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function zl({className:e,...t}){/* @__PURE__ */
148
- return si.jsx(Cs.Item,{"data-slot":"command-item",className:ui("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function _l({...e}){/* @__PURE__ */
149
- return si.jsx(rs.Root,{"data-slot":"popover",...e})}function Sl({...e}){/* @__PURE__ */
150
- return si.jsx(rs.Trigger,{"data-slot":"popover-trigger",...e})}function El({className:e,align:t="center",sideOffset:r=4,...s}){/* @__PURE__ */
151
- return si.jsx(rs.Portal,{children:/* @__PURE__ */si.jsx(rs.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:ui("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-1500 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...s})})}function Bl({...e}){/* @__PURE__ */
152
- return si.jsx(rs.Anchor,{"data-slot":"popover-anchor",...e})}function Tl(){const[t,r]=e.useState(!1),s=C(),n=I(),o=O(),a=o.lang||"plaintext",[i,l]=e.useState(""),c=e.useMemo(()=>Il.filter(e=>!i||e.label.toLowerCase().includes(i.toLowerCase())),[i]);return s?null:/* @__PURE__ */si.jsxs(_l,{open:t,onOpenChange:r,children:[
153
- /* @__PURE__ */si.jsx(Sl,{asChild:!0,children:/* @__PURE__ */si.jsx(_i,{size:"sm",variant:"ghost",className:"h-6 select-none justify-between gap-1 px-2 text-muted-foreground text-xs","aria-expanded":t,role:"combobox",children:Il.find(e=>e.value===a)?.label??"Plain Text"})}),
154
- /* @__PURE__ */si.jsx(El,{className:"w-[200px] p-0",onCloseAutoFocus:()=>l(""),children:/* @__PURE__ */si.jsxs(yl,{shouldFilter:!1,children:[
155
- /* @__PURE__ */si.jsx(wl,{className:"h-9",value:i,onValueChange:e=>l(e),placeholder:"Search language..."}),
156
- /* @__PURE__ */si.jsx(Cl,{children:"No language found."}),
157
- /* @__PURE__ */si.jsx(kl,{className:"h-[344px] overflow-y-auto",children:/* @__PURE__ */si.jsx(Nl,{children:c.map(e=>/* @__PURE__ */si.jsxs(zl,{className:"cursor-pointer",value:e.value,onSelect:e=>{n.tf.setNodes({lang:e},{at:o}),l(e),r(!1)},children:[
158
- /* @__PURE__ */si.jsx(zt,{className:ui(a===e.value?"opacity-100":"opacity-0")}),e.label]},e.label))})})]})})]})}function Dl({value:t,...r}){const[s,n]=e.useState(!1);return e.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[s]),/* @__PURE__ */si.jsxs(_i,{onClick:()=>{navigator.clipboard.writeText("function"==typeof t?t():t),n(!0)},...r,children:[
159
- /* @__PURE__ */si.jsx("span",{className:"sr-only",children:"Copy"}),s?/* @__PURE__ */si.jsx(mt,{className:"!size-3"}):/* @__PURE__ */si.jsx(_t,{className:"!size-3"})]})}const Il=[{label:"Auto",value:"auto"},{label:"Plain Text",value:"plaintext"},{label:"ABAP",value:"abap"},{label:"Agda",value:"agda"},{label:"Arduino",value:"arduino"},{label:"ASCII Art",value:"ascii"},{label:"Assembly",value:"x86asm"},{label:"Bash",value:"bash"},{label:"BASIC",value:"basic"},{label:"BNF",value:"bnf"},{label:"C",value:"c"},{label:"C#",value:"csharp"},{label:"C++",value:"cpp"},{label:"Clojure",value:"clojure"},{label:"CoffeeScript",value:"coffeescript"},{label:"Coq",value:"coq"},{label:"CSS",value:"css"},{label:"Dart",value:"dart"},{label:"Dhall",value:"dhall"},{label:"Diff",value:"diff"},{label:"Docker",value:"dockerfile"},{label:"EBNF",value:"ebnf"},{label:"Elixir",value:"elixir"},{label:"Elm",value:"elm"},{label:"Erlang",value:"erlang"},{label:"F#",value:"fsharp"},{label:"Flow",value:"flow"},{label:"Fortran",value:"fortran"},{label:"Gherkin",value:"gherkin"},{label:"GLSL",value:"glsl"},{label:"Go",value:"go"},{label:"GraphQL",value:"graphql"},{label:"Groovy",value:"groovy"},{label:"Haskell",value:"haskell"},{label:"HCL",value:"hcl"},{label:"HTML",value:"html"},{label:"Idris",value:"idris"},{label:"Java",value:"java"},{label:"JavaScript",value:"javascript"},{label:"JSON",value:"json"},{label:"Julia",value:"julia"},{label:"Kotlin",value:"kotlin"},{label:"LaTeX",value:"latex"},{label:"Less",value:"less"},{label:"Lisp",value:"lisp"},{label:"LiveScript",value:"livescript"},{label:"LLVM IR",value:"llvm"},{label:"Lua",value:"lua"},{label:"Makefile",value:"makefile"},{label:"Markdown",value:"markdown"},{label:"Markup",value:"markup"},{label:"MATLAB",value:"matlab"},{label:"Mathematica",value:"mathematica"},{label:"Mermaid",value:"mermaid"},{label:"Nix",value:"nix"},{label:"Notion Formula",value:"notion"},{label:"Objective-C",value:"objectivec"},{label:"OCaml",value:"ocaml"},{label:"Pascal",value:"pascal"},{label:"Perl",value:"perl"},{label:"PHP",value:"php"},{label:"PowerShell",value:"powershell"},{label:"Prolog",value:"prolog"},{label:"Protocol Buffers",value:"protobuf"},{label:"PureScript",value:"purescript"},{label:"Python",value:"python"},{label:"R",value:"r"},{label:"Racket",value:"racket"},{label:"Reason",value:"reasonml"},{label:"Ruby",value:"ruby"},{label:"Rust",value:"rust"},{label:"Sass",value:"scss"},{label:"Scala",value:"scala"},{label:"Scheme",value:"scheme"},{label:"SCSS",value:"scss"},{label:"Shell",value:"shell"},{label:"Smalltalk",value:"smalltalk"},{label:"Solidity",value:"solidity"},{label:"SQL",value:"sql"},{label:"Swift",value:"swift"},{label:"TOML",value:"toml"},{label:"TypeScript",value:"typescript"},{label:"VB.Net",value:"vbnet"},{label:"Verilog",value:"verilog"},{label:"VHDL",value:"vhdl"},{label:"Visual Basic",value:"vbnet"},{label:"WebAssembly",value:"wasm"},{label:"XML",value:"xml"},{label:"YAML",value:"yaml"}],Ol=ws(ks),Al=[bs.configure({node:{component:function(e){const{editor:t,element:r}=e;/* @__PURE__ */
160
- return si.jsx(k,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */si.jsxs("div",{className:"relative rounded-md bg-muted/50",children:[
161
- /* @__PURE__ */si.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */si.jsx("code",{children:e.children})}),
162
- /* @__PURE__ */si.jsxs("div",{className:"absolute top-1 right-1 z-10 flex select-none gap-0.5",contentEditable:!1,children:[Ce(r.lang)&&/* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",className:"size-6 text-xs",onClick:()=>Ne(t,{element:r}),title:"Format code",children:/* @__PURE__ */si.jsx(Nt,{className:"!size-3.5 text-muted-foreground"})}),
163
- /* @__PURE__ */si.jsx(Tl,{}),
164
- /* @__PURE__ */si.jsx(Dl,{size:"icon",variant:"ghost",className:"size-6 gap-1 text-muted-foreground text-xs",value:()=>o.string(r)})]})]})})}},options:{lowlight:Ol},shortcuts:{toggle:{keys:"mod+alt+8"}}}),vs.withComponent(function(e){/* @__PURE__ */
165
- return si.jsx(k,{...e})}),ys.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
166
- return si.jsx(S,{className:t,...e})})],Fl=A(Ds,function(e){const{width:t}=e.element,r=C(),s=T(nt,"isSelectionAreaVisible"),{isDragging:n,previewRef:o,handleRef:i}=cs({element:e.element,orientation:"horizontal",type:"column",canDropNode:({dragEntry:e,dropEntry:t})=>a.equals(a.parent(e[1]),a.parent(t[1]))});/* @__PURE__ */
167
- return si.jsxs("div",{className:"group/column relative",style:{width:t??"100%"},children:[!r&&!s&&/* @__PURE__ */si.jsx("div",{ref:i,className:ui("-translate-x-1/2 -translate-y-1/2 absolute top-2 left-1/2 z-50","pointer-events-auto flex items-center","opacity-0 transition-opacity group-hover/column:opacity-100"),children:/* @__PURE__ */si.jsx(Ml,{})}),
168
- /* @__PURE__ */si.jsx(k,{...e,ref:Ms(e.ref,o),className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",children:/* @__PURE__ */si.jsxs("div",{className:ui("relative h-full border border-transparent p-1.5",!r&&"rounded-lg border-border border-dashed",n&&"opacity-50"),children:[e.children,!r&&!s&&/* @__PURE__ */si.jsx(Rl,{})]})})]})}),Ml=e.memo(function(){/* @__PURE__ */
169
- return si.jsx(Si,{children:/* @__PURE__ */si.jsxs(Ei,{children:[
170
- /* @__PURE__ */si.jsx(Bi,{asChild:!0,children:/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"!px-1 h-5",children:/* @__PURE__ */si.jsx(St,{className:"text-muted-foreground",onClick:e=>{e.stopPropagation(),e.preventDefault()}})})}),
171
- /* @__PURE__ */si.jsx(Ti,{children:"Drag to move column"})]})})});function Rl(){const{dropLine:e}=ds({orientation:"horizontal"});return e?/* @__PURE__ */si.jsx("div",{className:ui("slate-dropLine","absolute bg-brand/50","left"===e&&"group-first/column:-left-1 inset-y-0 left-[-10.5px] w-1","right"===e&&"group-last/column:-right-1 inset-y-0 right-[-11px] w-1")}):null}function Ll({children:e}){const t=I(),r=C(),s=O(),{props:n}=F({element:s}),o=N(),a=M(e=>e.api.isCollapsed(),[]),i=R()&&!r&&o&&a,l=e=>{_s(t,{at:s,widths:e})};/* @__PURE__ */
172
- return si.jsxs(_l,{open:i,modal:!1,children:[
173
- /* @__PURE__ */si.jsx(Bl,{children:e}),
174
- /* @__PURE__ */si.jsx(El,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"top",sideOffset:10,children:/* @__PURE__ */si.jsxs("div",{className:"box-content flex h-8 items-center",children:[
175
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",onClick:()=>l(["50%","50%"]),children:/* @__PURE__ */si.jsx(Pl,{})}),
176
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",onClick:()=>l(["33%","33%","33%"]),children:/* @__PURE__ */si.jsx(Hl,{})}),
177
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",onClick:()=>l(["70%","30%"]),children:/* @__PURE__ */si.jsx(Vl,{})}),
178
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",onClick:()=>l(["30%","70%"]),children:/* @__PURE__ */si.jsx(Ul,{})}),
179
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",onClick:()=>l(["25%","50%","25%"]),children:/* @__PURE__ */si.jsx(ql,{})}),
180
- /* @__PURE__ */si.jsx(Wi,{orientation:"vertical",className:"mx-1 h-6"}),
181
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-8",...n,children:/* @__PURE__ */si.jsx(Et,{})})]})})]})}const Pl=e=>/* @__PURE__ */si.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M8.5 3H13V13H8.5V3ZM7.5 2H8.5H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H8.5H7.5H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H7.5ZM7.5 13H3L3 3H7.5V13Z",fill:"currentColor",fillRule:"evenodd"})}),Hl=e=>/* @__PURE__ */si.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M9.25 3H6.75V13H9.25V3ZM9.25 2H6.75H5.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H5.75H6.75H9.25H10.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H10.25H9.25ZM10.25 3V13H13V3H10.25ZM3 13H5.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),Vl=e=>/* @__PURE__ */si.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M11.25 3H13V13H11.25V3ZM10.25 2H11.25H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H11.25H10.25H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H10.25ZM10.25 13H3L3 3H10.25V13Z",fill:"currentColor",fillRule:"evenodd"})}),Ul=e=>/* @__PURE__ */si.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M5.75 3H13V13H5.75V3ZM4.75 2H5.75H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.75H4.75H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H4.75ZM4.75 13H3L3 3H4.75V13Z",fill:"currentColor",fillRule:"evenodd"})}),ql=e=>/* @__PURE__ */si.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M10.25 3H5.75V13H10.25V3ZM10.25 2H5.75H4.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H4.75H5.75H10.25H11.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H11.25H10.25ZM11.25 3V13H13V3H11.25ZM3 13H4.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),$l=[Ns.withComponent(function(e){/* @__PURE__ */
182
- return si.jsx(k,{className:"mb-2",...e,children:/* @__PURE__ */si.jsx(Ll,{children:/* @__PURE__ */si.jsx("div",{className:"flex size-full rounded",children:e.children})})})}),zs.withComponent(Fl)];const Wl=L(Ps,{handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a=()=>{r("activeId",null),o=!0};for(i(n)||a();n.parentElement;){if(n.classList.contains(`slate-${s}`)){const t=e.comment.node();if(!t){a();break}const s=e.comment.nodeId(t[0]);r("activeId",s??null),o=!0;break}n=n.parentElement}o||a()}},options:{activeId:null,commentingBlock:null,hoverId:null,uniquePathMap:/* @__PURE__ */new Map}}).extendTransforms(({editor:e,setOption:t,tf:{comment:{setDraft:r}}})=>({setDraft:()=>{e.api.isCollapsed()&&e.tf.select(e.api.block()[1]),r(),e.tf.collapse(),t("activeId",Hs()),t("commentingBlock",e.selection.focus.path.slice(0,1))}})).configure({node:{component:function(e){const{children:t,leaf:r}=e,{api:s,setOption:n}=E(Wl),o=T(Wl,"hoverId"),a=T(Wl,"activeId"),i=Ls(r)>1,l=s.comment.nodeId(r),c=a===l,d=o===l;/* @__PURE__ */
183
- return si.jsx(S,{...e,className:ui("border-b-2 border-b-highlight/[.36] bg-highlight/[.13] transition-colors duration-200",(d||c)&&"border-b-highlight bg-highlight/25",i&&"border-b-2 border-b-highlight/[.7] bg-highlight/25",(d||c)&&i&&"border-b-highlight bg-highlight/45"),attributes:{...e.attributes,onClick:()=>n("activeId",l??null),onMouseEnter:()=>n("hoverId",l??null),onMouseLeave:()=>n("hoverId",null)},children:t})}},shortcuts:{setDraft:{keys:"mod+shift+m"}}}),Kl=[Wl];function Zl(){const{cursors:e}=it();/* @__PURE__ */
184
- return si.jsx(si.Fragment,{children:e.map(e=>/* @__PURE__ */si.jsx(Gl,{...e},e.id))})}function Gl({id:e,caretPosition:t,data:r,selection:s,selectionRects:n}){const o=I(),a=T(ct,"streaming"),{style:i,selectionStyle:c=i}=r??{},d=l.isCollapsed(s);if(a)return null;if("selection"===e&&s){if(Us(o,{at:s,format:"cell"}).length>1)return null}/* @__PURE__ */
185
- return si.jsxs(si.Fragment,{children:[n.map((t,r)=>/* @__PURE__ */si.jsx("div",{className:ui("pointer-events-none absolute z-10","selection"===e&&"bg-brand/25","selection"===e&&d&&"bg-primary"),style:{...c,...t}},r)),t&&/* @__PURE__ */si.jsx("div",{className:ui("pointer-events-none absolute z-10 w-0.5","drag"===e&&"w-px bg-brand"),style:{...t,...i}})]})}const Yl=[lt.configure({render:{afterEditable:()=>/* @__PURE__ */si.jsx(Zl,{})}})];function Jl({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:s="label",buttonVariant:n="ghost",formatters:o,components:a,...i}){const l=Ys();/* @__PURE__ */
186
- return si.jsx(Js,{showOutsideDays:r,className:ui("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...o},classNames:{root:ui("w-fit",l.root),months:ui("flex gap-4 flex-col md:flex-row relative",l.months),month:ui("flex flex-col w-full gap-4",l.month),nav:ui("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",l.nav),button_previous:ui(zi({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_previous),button_next:ui(zi({variant:n}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_next),month_caption:ui("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",l.month_caption),dropdowns:ui("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",l.dropdowns),dropdown_root:ui("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",l.dropdown_root),dropdown:ui("absolute bg-popover inset-0 opacity-0",l.dropdown),caption_label:ui("select-none font-medium","label"===s?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:ui("flex",l.weekdays),weekday:ui("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",l.weekday),week:ui("flex w-full mt-2",l.week),week_number_header:ui("select-none w-(--cell-size)",l.week_number_header),week_number:ui("text-[0.8rem] select-none text-muted-foreground",l.week_number),day:ui("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",i.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",l.day),range_start:ui("rounded-l-md bg-accent",l.range_start),range_middle:ui("rounded-none",l.range_middle),range_end:ui("rounded-r-md bg-accent",l.range_end),today:ui("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:ui("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:ui("text-muted-foreground opacity-50",l.disabled),hidden:ui("invisible",l.hidden),...t},components:{Root:({className:e,rootRef:t,...r})=>/* @__PURE__ */si.jsx("div",{"data-slot":"calendar",ref:t,className:ui(e),...r}),Chevron:({className:e,orientation:t,...r})=>"left"===t?/* @__PURE__ */si.jsx(Bt,{className:ui("size-4",e),...r}):"right"===t?/* @__PURE__ */si.jsx(dt,{className:ui("size-4",e),...r}):/* @__PURE__ */si.jsx(Tt,{className:ui("size-4",e),...r}),DayButton:Xl,WeekNumber:({children:e,...t})=>/* @__PURE__ */si.jsx("td",{...t,children:/* @__PURE__ */si.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:e})}),...a},...i})}function Xl({className:t,day:r,modifiers:s,...n}){const o=Ys(),a=e.useRef(null);return e.useEffect(()=>{s.focused&&a.current?.focus()},[s.focused]),/* @__PURE__ */si.jsx(_i,{ref:a,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:ui("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,t),...n})}const Ql=[Gs.withComponent(function(e){const{editor:t,element:r}=e,s=C(),n=/* @__PURE__ */si.jsx("span",{className:ui("w-fit cursor-pointer rounded-sm bg-muted px-1 text-muted-foreground"),contentEditable:!1,draggable:!0,children:r.date?(()=>{const e=/* @__PURE__ */new Date,t=new Date(r.date),s=t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===t.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===t.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":t.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */si.jsx("span",{children:"Pick a date"})});return s?n:/* @__PURE__ */si.jsxs(k,{...e,className:"inline-block",attributes:{...e.attributes,contentEditable:!1},children:[
187
- /* @__PURE__ */si.jsxs(_l,{children:[
188
- /* @__PURE__ */si.jsx(Sl,{asChild:!0,children:n}),
189
- /* @__PURE__ */si.jsx(El,{className:"w-auto p-0",children:/* @__PURE__ */si.jsx(Jl,{selected:new Date(r.date),onSelect:e=>{e&&t.tf.setNodes({date:e.toDateString()},{at:r})},mode:"single",initialFocus:!0})})]}),e.children]})})],ec=et(ui("bg-emerald-100 text-emerald-700 no-underline transition-colors duration-200"),{defaultVariants:{insertActive:!1,remove:!1,removeActive:!1},variants:{insertActive:{false:"",true:"bg-emerald-200/80"},remove:{false:"",true:"bg-red-100 text-red-700"},removeActive:{false:"",true:"bg-red-200/80 no-underline"}}});function tc({children:t,suggestionData:r}){const{isLineBreak:s,type:n}=r,o="remove"===n,a="insert"===n,i=T(rc,"activeId"),l=T(rc,"hoverId"),c=i===r.id,d=l===r.id,u=e.useRef(null),{setOption:m}=E(rc);/* @__PURE__ */
190
- return si.jsx(si.Fragment,{children:s?/* @__PURE__ */si.jsxs(si.Fragment,{children:[t,
191
- /* @__PURE__ */si.jsx("span",{ref:u,className:ui("absolute text-justify",ec({insertActive:a&&(c||d),remove:o,removeActive:(c||d)&&o})),style:{bottom:3.5,height:21},contentEditable:!1,children:/* @__PURE__ */si.jsx(Dt,{className:"mt-0.5 size-4"})})]}):/* @__PURE__ */si.jsx("div",{className:ui(ec({insertActive:a&&(c||d),remove:o,removeActive:(c||d)&&o})),onMouseEnter:()=>m("hoverId",r.id),onMouseLeave:()=>m("hoverId",null),"data-block-suggestion":"true",children:t})})}const rc=L(en,({editor:e})=>({options:{activeId:null,currentUserId:e.getOption(kc,"currentUser")??"",hoverId:null,uniquePathMap:/* @__PURE__ */new Map}})).configure({handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a="true"===n.dataset.blockSuggestion,l=()=>{r("activeId",null),o=!0};for(i(n)||a||l();n.parentElement&&!c(n.parentElement);){const t="true"===n.dataset.blockSuggestion;if(n.classList.contains(`slate-${s}`)||t){const s=e.suggestion.node({isText:!t});if(!s){l();break}const n=e.suggestion.nodeId(s[0]);r("activeId",n??null),o=!0;break}n=n.parentElement}o||l()}},render:{belowNodes:({api:e,element:t})=>{if(!e.suggestion.isBlockSuggestion(t))return;const r=t.suggestion;return function({children:e}){/* @__PURE__ */
192
- return si.jsx(tc,{suggestionData:r,children:e})}},node:function(e){const{api:t,setOption:r}=E(rc),s=e.leaf,n=t.suggestion.nodeId(s)??"",o=T(rc,"activeId"),a=T(rc,"hoverId"),i=t.suggestion.dataList(s),l=i.some(e=>"remove"===e.type),c=i.some(e=>e.id===o),d=i.some(e=>e.id===a),u={delete:"del",insert:"ins",update:"span"}[l?"delete":"insert"];/* @__PURE__ */
193
- return si.jsx(S,{...e,as:u,className:ui(ec({insertActive:c||d,remove:l,removeActive:(c||d)&&l})),attributes:{...e.attributes,onMouseEnter:()=>r("hoverId",n),onMouseLeave:()=>r("hoverId",null)},children:e.children})}}}),sc=[rc];function nc({className:e,size:t="default",...r}){/* @__PURE__ */
194
- return si.jsx(Jr.Root,{"data-slot":"avatar","data-size":t,className:ui("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function oc({className:e,...t}){/* @__PURE__ */
195
- return si.jsx(Jr.Fallback,{"data-slot":"avatar-fallback",className:ui("bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",e),...t})}function ac(e){if(!e)return{id:"",name:""};const t=e.indexOf(":");return-1===t?{id:e,name:e}:{id:e.slice(0,t),name:e.slice(t+1).trim()}}const ic=et("relative w-full cursor-text select-text overflow-y-auto caret-primary selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15",{defaultVariants:{variant:"default"},variants:{variant:{comment:ui("flex flex-wrap justify-between gap-1 px-1 py-0.5 text-sm","rounded-md border-[1.5px] border-transparent bg-transparent","has-[[data-slate-editor]:focus]:border-brand/50 has-[[data-slate-editor]:focus]:ring-2 has-[[data-slate-editor]:focus]:ring-brand/30","has-aria-disabled:border-input has-aria-disabled:bg-muted"),default:"h-full",demo:"h-[650px]",select:ui("group rounded-md border border-input ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2","has-data-readonly:w-fit has-data-readonly:cursor-default has-data-readonly:border-transparent has-data-readonly:focus-within:[box-shadow:none]")}}});function lc({className:e,variant:t,...r}){/* @__PURE__ */
196
- return si.jsx(P,{className:ui("ignore-click-outside/toolbar",ic({variant:t}),e),...r})}const cc=et(ui("group/editor","relative w-full cursor-text select-text overflow-x-hidden whitespace-pre-wrap break-words","rounded-md ring-offset-background focus-visible:outline-none","**:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"default"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full overflow-y-auto px-3 py-2 text-base md:text-sm",comment:ui("rounded-none border-none bg-transparent text-sm"),default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}}),dc=({className:e,disabled:t,focused:r,variant:s,ref:n,...o})=>/* @__PURE__ */si.jsx(H,{ref:n,className:ui(cc({disabled:t,focused:r,variant:s}),e),disabled:t,disableDefaultStyles:!0,...o});function uc({className:e,variant:t,...r}){/* @__PURE__ */
197
- return si.jsx(V,{...r,className:ui(cc({variant:t}),e)})}function mc(t){const{comment:r,discussionLength:s,documentContent:n,editingId:o,index:a,setEditingId:i,showDocumentContent:l=!1,onEditorClick:c}=t,d=I(),u=T(kc,"user",r.userId),m=T(kc,"currentUser"),{tf:h}=E(Qs),x=m===r.userId,p=r.contentRich,f=xc({id:r.id,value:p},[p]),g=()=>{(async e=>{const t=d.getOption(kc,"discussions").map(t=>{if(t.id===e.discussionId){const r=t.comments.map(t=>t.id===e.id?{...t,contentRich:e.contentRich,isEdited:!0,updatedAt:/* @__PURE__ */new Date}:t);return{...t,comments:r}}return t});d.setOption(kc,"discussions",t)})({id:r.id,contentRich:f.children,discussionId:r.discussionId}),i(null)},j=0===a,b=a===s-1,v=o&&o===r.id,[y,w]=e.useState(!1),[k,C]=e.useState(!1);/* @__PURE__ */
198
- return si.jsxs("div",{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[
199
- /* @__PURE__ */si.jsxs("div",{className:"relative flex items-center",children:[
200
- /* @__PURE__ */si.jsx(nc,{className:"size-5",children:/* @__PURE__ */si.jsx(oc,{children:u?.name?.[0]})}),
201
- /* @__PURE__ */si.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:u?.name}),
202
- /* @__PURE__ */si.jsxs("div",{className:"text-muted-foreground/80 text-xs leading-none",children:[
203
- /* @__PURE__ */si.jsx("span",{className:"mr-1",children:fc(new Date(r.createdAt))}),r.isEdited&&/* @__PURE__ */si.jsx("span",{children:"(edited)"})]}),x&&(y||k)&&/* @__PURE__ */si.jsxs("div",{className:"absolute top-0 right-0 flex space-x-1",children:[0===a&&/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"h-6 p-1 text-muted-foreground",onClick:()=>{(async e=>{const t=d.getOption(kc,"discussions").map(t=>t.id===e?{...t,isResolved:!0}:t);d.setOption(kc,"discussions",t)})(r.discussionId),h.comment.unsetMark({id:r.discussionId})},type:"button",children:/* @__PURE__ */si.jsx(mt,{className:"size-4"})}),
204
- /* @__PURE__ */si.jsx(hc,{onCloseAutoFocus:()=>{setTimeout(()=>{f.tf.focus({edge:"endEditor"})},0)},onRemoveComment:()=>{1===s&&(h.comment.unsetMark({id:r.discussionId}),(async e=>{const t=d.getOption(kc,"discussions").filter(t=>t.id!==e);d.setOption(kc,"discussions",t)})(r.discussionId))},comment:r,dropdownOpen:k,setDropdownOpen:C,setEditingId:i})]})]}),j&&l&&/* @__PURE__ */si.jsxs("div",{className:"relative mt-1 flex pl-[32px] text-sm text-subtle-foreground",children:[s>1&&/* @__PURE__ */si.jsx("div",{className:"absolute top-[5px] left-3 h-full w-0.5 shrink-0 bg-muted"}),
205
- /* @__PURE__ */si.jsx("div",{className:"my-px w-0.5 shrink-0 bg-highlight"}),n&&/* @__PURE__ */si.jsx("div",{className:"ml-2",children:n})]}),
206
- /* @__PURE__ */si.jsxs("div",{className:"relative my-1 pl-[26px]",children:[!b&&/* @__PURE__ */si.jsx("div",{className:"absolute top-0 left-3 h-full w-0.5 shrink-0 bg-muted"}),
207
- /* @__PURE__ */si.jsx(U,{readOnly:!v,editor:f,children:/* @__PURE__ */si.jsxs(lc,{variant:"comment",children:[
208
- /* @__PURE__ */si.jsx(dc,{variant:"comment",className:"w-auto grow",onClick:()=>c?.()}),v&&/* @__PURE__ */si.jsxs("div",{className:"ml-auto flex shrink-0 gap-1",children:[
209
- /* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",className:"size-[28px]",onClick:e=>{e.stopPropagation(),i(null),f.tf.replaceNodes(p,{at:[],children:!0})},children:/* @__PURE__ */si.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-primary/40",children:/* @__PURE__ */si.jsx(pt,{className:"size-3 stroke-[3px] text-background"})})}),
210
- /* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",onClick:e=>{e.stopPropagation(),g()},children:/* @__PURE__ */si.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-brand",children:/* @__PURE__ */si.jsx(mt,{className:"size-3 stroke-[3px] text-background"})})})]})]})})]})]})}function hc(t){const{comment:r,dropdownOpen:s,setDropdownOpen:n,setEditingId:o,onCloseAutoFocus:a,onRemoveComment:i}=t,l=I(),c=e.useRef(!1),d=e.useCallback(()=>{if(!r.id)return alert("You are operating too quickly, please try again later.");const e=l.getOption(kc,"discussions").map(e=>{if(e.id!==r.discussionId)return e;const t=e.comments.findIndex(e=>e.id===r.id);return-1===t?e:{...e,comments:[...e.comments.slice(0,t),...e.comments.slice(t+1)]}});l.setOption(kc,"discussions",e),i?.()},[r.discussionId,r.id,l,i]),u=e.useCallback(()=>{if(c.current=!0,!r.id)return alert("You are operating too quickly, please try again later.");o(r.id)},[r.id,o]);/* @__PURE__ */
211
- return si.jsxs(Di,{open:s,onOpenChange:n,modal:!1,children:[
212
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,onClick:e=>e.stopPropagation(),children:/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:ui("h-6 p-1 text-muted-foreground"),children:/* @__PURE__ */si.jsx(Ot,{className:"size-4"})})}),
213
- /* @__PURE__ */si.jsx(Ai,{className:"w-48",onCloseAutoFocus:e=>(c.current&&(a?.(),c.current=!1),e.preventDefault()),children:/* @__PURE__ */si.jsxs(Fi,{children:[
214
- /* @__PURE__ */si.jsxs(Mi,{onClick:u,children:[
215
- /* @__PURE__ */si.jsx(At,{className:"size-4"}),"Edit comment"]}),
216
- /* @__PURE__ */si.jsxs(Mi,{onClick:d,children:[
217
- /* @__PURE__ */si.jsx(Ft,{className:"size-4"}),"Delete comment"]})]})})]})}dc.displayName="Editor",uc.displayName="EditorView";const xc=(e={},t=[])=>q({id:"comment",plugins:hi,value:[],...e},t);function pc({autoFocus:t=!1,className:s,discussionId:n,focusOnMount:a=!1}){const i=T(kc,"discussions"),l=I(),c=Xs(),u=n??c,m=ac(T(kc,"currentUser")??""),[h,x]=e.useState(),p=e.useMemo(()=>h?o.string({children:h,type:r.p}):"",[h]),f=xc();e.useEffect(()=>{f&&a&&f.tf.focus()},[f,a]);const g=e.useCallback(async()=>{if(!h)return;if(f.tf.reset(),u){const e=i.find(e=>e.id===u);if(!e){const e={id:u,comments:[{id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:u,isEdited:!1,userId:l.getOption(kc,"currentUser")??""}],createdAt:/* @__PURE__ */new Date,isResolved:!1,userId:l.getOption(kc,"currentUser")??""};return void l.setOption(kc,"discussions",[...i,e])}const t={id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:u,isEdited:!1,userId:l.getOption(kc,"currentUser")??""},r={...e,comments:[...e.comments,t]},s=i.filter(e=>e.id!==u).concat(r);return void l.setOption(kc,"discussions",s)}const e=l.getApi(Qs).comment.nodes({at:[],isDraft:!0});if(0===e.length)return;const t=e.map(([e])=>e.text).join(""),r=d(),s={id:r,comments:[{id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:r,isEdited:!1,userId:l.getOption(kc,"currentUser")??""}],createdAt:/* @__PURE__ */new Date,documentContent:t,isResolved:!1,userId:l.getOption(kc,"currentUser")??""};l.setOption(kc,"discussions",[...i,s]);const n=s.id;e.forEach(([,e])=>{l.tf.setNodes({[Vs(n)]:!0},{at:e,split:!0}),l.tf.unsetNodes([Hs()],{at:e})})},[h,f.tf,u,l,i]);/* @__PURE__ */
218
- return si.jsxs("div",{className:ui("flex w-full",s),children:[
219
- /* @__PURE__ */si.jsx("div",{className:"mt-2 mr-1 shrink-0",children:/* @__PURE__ */si.jsx(nc,{className:"size-5",children:/* @__PURE__ */si.jsx(oc,{children:m?.name?.[0]})})}),
220
- /* @__PURE__ */si.jsx("div",{className:"relative flex grow gap-2",children:/* @__PURE__ */si.jsx(U,{onChange:({value:e})=>{x(e)},editor:f,children:/* @__PURE__ */si.jsxs(lc,{variant:"comment",children:[
221
- /* @__PURE__ */si.jsx(dc,{variant:"comment",className:"min-h-[25px] grow pt-0.5 pr-8",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),g())},placeholder:"Reply...",autoComplete:"off",autoFocus:t}),
222
- /* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",className:"absolute right-0.5 bottom-0.5 ml-auto size-6 shrink-0",disabled:0===p.trim().length,onClick:e=>{e.stopPropagation(),g()},children:/* @__PURE__ */si.jsx("div",{className:"flex size-6 items-center justify-center rounded-full",children:/* @__PURE__ */si.jsx(It,{})})})]})})})]})}const fc=e=>{const t=/* @__PURE__ */new Date,r=ln(t,e),s=cn(t,e),n=dn(t,e);return r<60?`${r}m`:s<24?`${s}h`:n<2?`${n}d`:un(e,"MM/dd/yyyy")},gc="__block__",jc={[r.audio]:()=>"Audio",[r.blockquote]:()=>"Blockquote",[r.callout]:()=>"Callout",[r.codeBlock]:()=>"Code Block",[r.column]:()=>"Column",[r.equation]:()=>"Equation",[r.file]:()=>"File",[r.h1]:()=>"Heading 1",[r.h2]:()=>"Heading 2",[r.h3]:()=>"Heading 3",[r.h4]:()=>"Heading 4",[r.h5]:()=>"Heading 5",[r.h6]:()=>"Heading 6",[r.hr]:()=>"Horizontal Rule",[r.img]:()=>"Image",[r.mediaEmbed]:()=>"Media",[r.p]:e=>e?.[r.listType]===r.listTodo?"Todo List":e?.[r.listType]===r.ol?"Ordered List":e?.[r.listType]===r.ul?"List":"Paragraph",[r.table]:()=>"Table",[r.th]:()=>"Table Header",[r.tr]:()=>"Table Row",[r.td]:()=>"Table Cell",[r.toc]:()=>"Table of Contents",[r.toggle]:()=>"Toggle",[r.video]:()=>"Video"};function bc({idx:t,isLast:r,suggestion:s}){const{api:n,editor:o}=E(an),a=T(kc,"user",s.userId),[i,l]=e.useState(!1),c=e=>e===gc?["line breaks"]:e.split(gc).filter(Boolean),d=["Table","Table Header","Table Cell","Table Row"],[u,m]=e.useState(null);/* @__PURE__ */
223
- return si.jsxs("div",{className:"relative",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[
224
- /* @__PURE__ */si.jsxs("div",{className:"flex flex-col p-4",children:[
225
- /* @__PURE__ */si.jsxs("div",{className:"relative flex items-center",children:[
226
- /* @__PURE__ */si.jsx(nc,{className:"size-5",children:/* @__PURE__ */si.jsx(oc,{children:a?.name?.[0]})}),
227
- /* @__PURE__ */si.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:a?.name}),
228
- /* @__PURE__ */si.jsx("div",{className:"text-muted-foreground/80 text-xs leading-none",children:/* @__PURE__ */si.jsx("span",{className:"mr-1",children:fc(new Date(s.createdAt))})})]}),
229
- /* @__PURE__ */si.jsx("div",{className:"relative mt-1 mb-4 pl-[32px]",children:/* @__PURE__ */si.jsxs("div",{className:"flex flex-col gap-2",children:["remove"===s.type&&(h=s.text,c(h).some(e=>d.includes(e))?/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
230
- /* @__PURE__ */si.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
231
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:"Table Deleted"})]}):c(s.text).map((e,t)=>/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
232
- /* @__PURE__ */si.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
233
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:e},t)]},t))),"insert"===s.type&&c(s.newText).map((e,t)=>/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
234
- /* @__PURE__ */si.jsx("span",{className:"text-muted-foreground text-sm",children:"Add:"}),
235
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:e||"line breaks"},t)]},t)),"replace"===s.type&&/* @__PURE__ */si.jsxs("div",{className:"flex flex-col gap-2",children:[c(s.newText).map((t,r)=>/* @__PURE__ */si.jsx(e.Fragment,{children:/* @__PURE__ */si.jsxs("div",{className:"flex items-start gap-2 text-brand/80",children:[
236
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:"with:"}),
237
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r)),c(s.text).map((t,r)=>/* @__PURE__ */si.jsx(e.Fragment,{children:/* @__PURE__ */si.jsxs("div",{className:"flex items-start gap-2",children:[
238
- /* @__PURE__ */si.jsx("span",{className:"text-muted-foreground text-sm",children:0===r?"Replace:":"Delete:"}),
239
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r))]}),"update"===s.type&&/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
240
- /* @__PURE__ */si.jsxs("span",{className:"text-muted-foreground text-sm",children:[Object.keys(s.properties).map(e=>/* @__PURE__ */si.jsxs("span",{children:["Un",e]},e)),Object.keys(s.newProperties).map(e=>/* @__PURE__ */si.jsx("span",{children:e.charAt(0).toUpperCase()+e.slice(1)},e))]}),
241
- /* @__PURE__ */si.jsx("span",{className:"text-sm",children:s.newText})]})]})}),s.comments.map((e,t)=>/* @__PURE__ */si.jsx(mc,{comment:e,discussionLength:s.comments.length,documentContent:"__suggestion__",editingId:u,index:t,setEditingId:m},e.id??t)),i&&/* @__PURE__ */si.jsxs("div",{className:"absolute top-4 right-4 flex gap-2",children:[
242
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{sn(o,e)});var e},children:/* @__PURE__ */si.jsx(mt,{className:"size-4"})}),
243
- /* @__PURE__ */si.jsx(_i,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{nn(o,e)});var e},children:/* @__PURE__ */si.jsx(pt,{className:"size-4"})})]}),
244
- /* @__PURE__ */si.jsx(pc,{discussionId:s.suggestionId})]}),!r&&/* @__PURE__ */si.jsx("div",{className:"h-px w-full bg-muted"})]},`${s.suggestionId}-${t}`);var h}const vc=({blockPath:t,children:s,commentNodes:n,draftCommentNode:o,suggestionNodes:i})=>{const l=I(),c=((t,s)=>{const n=T(kc,"discussions"),{api:o,editor:i,getOption:l,setOption:c}=E(rc);return t.forEach(([e])=>{const t=o.suggestion.nodeId(e),r=l("uniquePathMap");if(!t)return;const n=r.get(t);if(a.isPath(n)){const e=o.suggestion.node({id:t,at:n,isText:!0}),a=o.node(n);let i=null;a&&u.isElement(a[0])&&(i=o.suggestion.nodeId(a[0])??null),e||i===t||c("uniquePathMap",new Map(r).set(t,s))}else c("uniquePathMap",new Map(r).set(t,s))}),e.useMemo(()=>{const e=l("uniquePathMap");if(0===t.length)return[];const c=new Set(t.flatMap(([e])=>{if(m.isText(e)){const t=o.suggestion.dataList(e);return t.some(e=>"update"===e.type)?t.filter(e=>"update"===e.type).map(e=>e.id):o.suggestion.nodeId(e)??[]}return u.isElement(e)?o.suggestion.nodeId(e)??[]:[]}).filter(Boolean)),d=[];return c.forEach(t=>{if(!t)return;const l=e.get(t);if(!l||!a.isPath(l))return;if(!a.equals(l,s))return;const c=[...i.api.nodes({at:[],mode:"all",match:e=>e[r.suggestion]&&e[tn(t)]||o.suggestion.nodeId(e)===t})];c.sort(([,e],[,t])=>a.isChild(e,t)?-1:1);let u="",h="",x={},p={};if(c.forEach(([e])=>{if(m.isText(e))o.suggestion.dataList(e).forEach(r=>{if(r.id===t)switch(r.type){case"insert":u+=e.text;break;case"remove":h+=e.text;break;case"update":x={...x,...r.properties},p={...p,...r.newProperties},u+=e.text}});else{const r=o.suggestion.isBlockSuggestion(e)?e.suggestion:void 0;r?.id===rn(t)&&("insert"===r.type?u+=r.isLineBreak?gc:gc+(jc[e.type]??(()=>"Block"))(e):"remove"===r.type&&(h+=r.isLineBreak?gc:gc+(jc[e.type]??(()=>"Block"))(e)))}}),0===c.length)return;const f=o.suggestion.suggestionData(c[0][0]);if(!f)return;const g=n.find(e=>e.id===t)?.comments||[],j=new Date(f.createdAt),b=tn(t);"update"===f.type?d.push({comments:g,createdAt:j,keyId:b,newProperties:p,newText:u,properties:x,suggestionId:rn(t),type:"update",userId:f.userId}):u.length>0&&h.length>0?d.push({comments:g,createdAt:j,keyId:b,newText:u,suggestionId:rn(t),text:h,type:"replace",userId:f.userId}):u.length>0?d.push({comments:g,createdAt:j,keyId:b,newText:u,suggestionId:rn(t),type:"insert",userId:f.userId}):h.length>0&&d.push({comments:g,createdAt:j,keyId:b,suggestionId:rn(t),text:h,type:"remove",userId:f.userId})}),d},[o.suggestion,s,n,i.api,l,t])})(i,t),d=wc(n,t),h=c.length,x=d.length,p=h+x,f=T(rc,"activeId"),g=f&&c.find(e=>e.suggestionId===f),j=T(Wl,"commentingBlock"),b=T(Wl,"activeId"),v=b===Hs(),y=b&&d.find(e=>e.id===b),w=!g&&!y,k=[...d,...c].sort((e,t)=>e.createdAt.getTime()-t.createdAt.getTime()),C=d.some(e=>e.id===b)||c.some(e=>e.suggestionId===f),[N,z]=e.useState(C),_=!!j&&a.equals(t,j),S=N||C||v&&!!o&&_,B=e.useMemo(()=>{let e;return g&&(e=i.find(([e])=>m.isText(e)&&l.getApi(an).suggestion.nodeId(e)===g.suggestionId)),b&&(e=b===Hs()?o:n.find(([e])=>l.getApi(Wl).comment.nodeId(e)===b)),e?l.api.toDOMNode(e[0]):null},[S,g,b,l.api,i,o,n]);return h+d.length!==0||o?/* @__PURE__ */si.jsx("div",{className:"flex w-full justify-between",children:/* @__PURE__ */si.jsxs(_l,{open:S,onOpenChange:e=>{!e&&v&&o&&l.tf.unsetNodes(Hs(),{at:[],mode:"lowest",match:e=>e[Hs()]}),z(e)},children:[
245
- /* @__PURE__ */si.jsx("div",{className:"w-full",children:s}),B&&/* @__PURE__ */si.jsx(Bl,{asChild:!0,className:"w-full",virtualRef:{current:B}}),
246
- /* @__PURE__ */si.jsx(El,{className:"max-h-[min(50dvh,calc(-24px+var(--radix-popper-available-height)))] w-[380px] min-w-[130px] max-w-[calc(100vw-24px)] overflow-y-auto p-0 data-[state=closed]:opacity-0",onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"bottom",children:v?/* @__PURE__ */si.jsx(pc,{className:"p-4",focusOnMount:!0}):w?k.map((e,t)=>"suggestionId"in e?/* @__PURE__ */si.jsx(bc,{idx:t,isLast:t===k.length-1,suggestion:e},e.suggestionId):/* @__PURE__ */si.jsx(yc,{discussion:e,isLast:t===k.length-1},e.id)):/* @__PURE__ */si.jsxs(si.Fragment,{children:[g&&/* @__PURE__ */si.jsx(bc,{idx:0,isLast:!0,suggestion:g},g.suggestionId),y&&/* @__PURE__ */si.jsx(yc,{discussion:y,isLast:!0})]})}),p>0&&/* @__PURE__ */si.jsx("div",{className:"relative left-0 size-0 select-none",children:/* @__PURE__ */si.jsx(Sl,{asChild:!0,children:/* @__PURE__ */si.jsxs(_i,{variant:"ghost",className:"!px-1.5 mt-1 ml-1 flex h-6 gap-1 py-0 text-muted-foreground/80 hover:text-muted-foreground/80 data-[active=true]:bg-muted","data-active":S,contentEditable:!1,children:[h>0&&0===x&&/* @__PURE__ */si.jsx(Mt,{className:"size-4 shrink-0"}),0===h&&x>0&&/* @__PURE__ */si.jsx(Rt,{className:"size-4 shrink-0"}),h>0&&x>0&&/* @__PURE__ */si.jsx(Lt,{className:"size-4 shrink-0"}),
247
- /* @__PURE__ */si.jsx("span",{className:"font-semibold text-xs",children:p})]})})})]})}):/* @__PURE__ */si.jsx("div",{className:"w-full",children:s})};function yc({discussion:t,isLast:r}){const[s,n]=e.useState(null);/* @__PURE__ */
248
- return si.jsxs(e.Fragment,{children:[
249
- /* @__PURE__ */si.jsxs("div",{className:"p-4",children:[t.comments.map((e,r)=>/* @__PURE__ */si.jsx(mc,{comment:e,discussionLength:t.comments.length,documentContent:t?.documentContent,editingId:s,index:r,setEditingId:n,showDocumentContent:!0},e.id??r)),
250
- /* @__PURE__ */si.jsx(pc,{discussionId:t.id})]}),!r&&/* @__PURE__ */si.jsx("div",{className:"h-px w-full bg-muted"})]},t.id)}const wc=(t,r)=>{const{api:s,getOption:n,setOption:o}=E(Wl),i=T(kc,"discussions");e.useEffect(()=>{let e=n("uniquePathMap"),i=!1;t.forEach(([t])=>{const n=s.comment.nodeId(t);if(!n)return;const o=e.get(n);if(a.isPath(o)){return s.comment.node({id:n,at:o})?void 0:(e=new Map(e).set(n,r),void(i=!0))}e=new Map(e).set(n,r),i=!0}),i&&o("uniquePathMap",e)},[s,t,r,n,o]);const l=new Set(t.map(([e])=>s.comment.nodeId(e)).filter(Boolean));return i.map(e=>({...e,createdAt:new Date(e.createdAt)})).filter(e=>{const t=n("uniquePathMap").get(e.id);return!!t&&(!!a.equals(t,r)&&(s.comment.has({id:e.id})&&l.has(e.id)&&!e.isResolved))})},kc=$({key:"discussion",options:{commenting:!1,currentUser:"admin",discussions:[]}}).configure({render:{aboveNodes:e=>{const{editor:t,element:r}=e,s=t.getApi(Qs).comment,n=t.api.findPath(r);if(!n||n.length>1)return;const o=s.node({at:n,isDraft:!0}),a=[...s.nodes({at:n})],i=[...t.getApi(an).suggestion.nodes({at:n})].filter(([e])=>!e[on()]);return 0!==a.length||0!==i.length||o?e=>/* @__PURE__ */si.jsx(vc,{blockPath:n,commentNodes:a,draftCommentNode:o,suggestionNodes:i,...e}):void 0}}}).extendSelectors(({getOption:e})=>({currentUserInfo:()=>ac(e("currentUser")??""),user:e=>ac(e)})),Cc=[kc],Nc=[r.column,r.tr,r.td];function zc(t){const{children:r,editor:s,element:n,path:o}=t,a=s.getApi(nt).blockSelection,{isAboutToDrag:i,isDragging:l,nodeRef:c,previewRef:d,handleRef:u}=cs({element:n,onDropHandler:(e,{dragItem:t})=>{const r=t.id;a&&a.add(r),g()}}),m=3===o.length,h=4===o.length,[p,f]=e.useState(0),g=()=>{d.current&&(d.current.replaceChildren(),d.current?.classList.add("hidden"))};e.useEffect(()=>{l||g()},[l]),e.useEffect(()=>{i&&d.current?.classList.remove("opacity-0")},[i]);const[j,b]=e.useState(0);/* @__PURE__ */
251
- return si.jsxs("div",{className:ui("relative",l&&"opacity-50",x(s,n.type)?.node.isContainer?"group/container":"group"),onMouseEnter:()=>{l||b(Dc(s,n))},children:[!h&&/* @__PURE__ */si.jsx(_c,{children:/* @__PURE__ */si.jsx("div",{className:ui("slate-blockToolbarWrapper","flex h-[1.5em]",m&&"h-4"),children:/* @__PURE__ */si.jsx("div",{className:ui("slate-blockToolbar relative w-4.5","pointer-events-auto mr-1 flex items-center",m&&"mr-1.5"),children:/* @__PURE__ */si.jsx(_i,{ref:u,variant:"ghost",className:"-left-0 absolute h-6 w-full p-0",style:{top:`${j+3}px`},"data-plate-prevent-deselect":!0,children:/* @__PURE__ */si.jsx(Sc,{isDragging:l,previewRef:d,resetPreview:g,setPreviewTop:f})})})})}),
252
- /* @__PURE__ */si.jsx("div",{ref:d,className:ui("-left-0 absolute hidden w-full"),style:{top:-p+"px"},contentEditable:!1}),
253
- /* @__PURE__ */si.jsxs("div",{ref:c,className:"slate-blockWrapper flow-root",onContextMenu:e=>s.getApi(nt).blockSelection.addOnContextMenu({element:n,event:e}),children:[
254
- /* @__PURE__ */si.jsx(W,{children:r}),
255
- /* @__PURE__ */si.jsx(Ec,{})]})]})}function _c({children:e,className:t,...r}){const s=I(),n=O(),o=T(nt,"isSelectionAreaVisible"),a=N();/* @__PURE__ */
256
- return si.jsx("div",{...r,className:ui("slate-gutterLeft","-translate-x-full absolute top-0 z-50 flex h-full cursor-text hover:opacity-100 sm:opacity-0",x(s,n.type)?.node.isContainer?"group-hover/container:opacity-100":"group-hover:opacity-100",o&&"hidden",!a&&"opacity-0",t),contentEditable:!1,children:e})}const Sc=e.memo(function({isDragging:e,previewRef:t,resetPreview:r,setPreviewTop:s}){const n=I(),o=O();/* @__PURE__ */
257
- return si.jsxs(Ei,{children:[
258
- /* @__PURE__ */si.jsx(Bi,{asChild:!0,children:/* @__PURE__ */si.jsx("div",{className:"flex size-full items-center justify-center",onClick:e=>{e.preventDefault(),n.getApi(nt).blockSelection.focus()},onMouseDown:e=>{if(r(),0!==e.button&&2!==e.button||e.shiftKey)return;const s=n.getApi(nt).blockSelection.getNodes({sort:!0});let a=s.length>0?s:n.api.blocks({mode:"highest"});a.some(([e])=>e.id===o.id)||(a=[[o,n.api.findPath(o)]]);const i=De(n,a).map(([e])=>e);0===s.length&&(n.tf.blur(),n.tf.collapse());const l=Bc(n,i);t.current?.append(...l),t.current?.classList.remove("hidden"),t.current?.classList.add("opacity-0"),n.setOption(ls,"multiplePreviewRef",t),n.getApi(nt).blockSelection.set(i.map(e=>e.id))},onMouseEnter:()=>{if(e)return;const t=n.getApi(nt).blockSelection.getNodes({sort:!0});let r=t.length>0?t:n.api.blocks({mode:"highest"});r.some(([e])=>e.id===o.id)||(r=[[o,n.api.findPath(o)]]);const a=De(n,r),i=a.map(e=>e[0].id);if(i.length>1&&i.includes(o.id)){const e=Tc(n,{blocks:a.map(e=>e[0]),element:o});s(e)}else s(0)},onMouseUp:()=>{r()},"data-plate-prevent-deselect":!0,role:"button",children:/* @__PURE__ */si.jsx(Pt,{className:"text-muted-foreground"})})}),
259
- /* @__PURE__ */si.jsx(Ti,{children:"Drag to move"})]})}),Ec=e.memo(function({className:e,...t}){const{dropLine:r}=ds();return r?/* @__PURE__ */si.jsx("div",{...t,className:ui("slate-dropLine","absolute inset-x-0 h-0.5 opacity-100 transition-opacity","bg-brand/50","top"===r&&"-top-px","bottom"===r&&"-bottom-px",e)}):null}),Bc=(e,t)=>{const r=[],s=[],n=e=>{Array.from(e.attributes).forEach(t=>{(t.name.startsWith("data-slate")||t.name.startsWith("data-block-id"))&&e.removeAttribute(t.name)}),Array.from(e.children).forEach(e=>{n(e)})};return t.forEach((o,a)=>{((o,a)=>{const i=e.api.toDOMNode(o),l=i.cloneNode(!0);((e,t)=>{const r=e.scrollLeft;if(r>0){const s=document.createElement("div");s.style.overflow="hidden",s.style.width=`${e.clientWidth}px`;const n=document.createElement("div");for(n.style.transform=`translateX(-${r}px)`,n.style.width=`${e.scrollWidth}px`;t.firstChild;)n.append(t.firstChild);const o=window.getComputedStyle(e);t.style.padding="0",n.style.padding=o.padding,s.append(n),t.append(s)}})(i,l),s.push(o.id);const c=document.createElement("div");c.append(l),c.style.display="flow-root";const d=t[a-1];if(d){const t=e.api.toDOMNode(d).parentElement.getBoundingClientRect(),r=i.parentElement.getBoundingClientRect().top-t.bottom;r>15&&(c.style.marginTop=`${r}px`)}n(l),r.push(c)})(o,a)}),e.setOption(ls,"draggingId",s),r},Tc=(e,{blocks:t,element:r})=>{const s=e.api.toDOMNode(r),n=e.api.toDOMNode(e),o=t[0],a=e.api.toDOMNode(o),i=Number(window.getComputedStyle(n).paddingTop.replace("px","")),l=a.getBoundingClientRect().top-n.getBoundingClientRect().top-i,c=window.getComputedStyle(a).marginTop,d=Number(c.replace("px","")),u=s.getBoundingClientRect().top-n.getBoundingClientRect().top-i,m=window.getComputedStyle(s).marginTop;return u-l+d-Number(m.replace("px",""))},Dc=(e,t)=>{const r=e.api.toDOMNode(t),s=window.getComputedStyle(r).marginTop;return Number(s.replace("px",""))},Ic=[ls.configure({options:{enableScroller:!0,onDropFiles:({dragItem:e,editor:t,target:r})=>{t.getTransforms(xn).insert.media(e.files,{at:r,nextBlock:!1})}},render:{aboveNodes:t=>{const{editor:s,element:n,path:o}=t;if(e.useMemo(()=>{if(s.dom.readOnly)return!1;if(1===o.length&&!h(s,n,Nc))return!0;if(3===o.length&&!h(s,n,Nc)){if(s.api.some({at:o,match:{type:s.getType(r.column)}}))return!0}if(4===o.length&&!h(s,n,Nc)){if(s.api.some({at:o,match:{type:s.getType(r.table)}}))return!0}return!1},[s,n,o]))return e=>/* @__PURE__ */si.jsx(zc,{...e})},aboveSlate:({children:e})=>/* @__PURE__ */si.jsx(mn,{backend:hn,children:e})}})],Oc=[Bn,Tn],Ac=e.createContext(null),Fc=({group:e,keywords:t=[],label:r,value:s},n)=>{const o=new Set([s,...t,e,r].filter(Boolean));return Array.from(o).some(e=>Vn(e,n))},Mc=({children:t,element:r,filter:s=Fc,hideWhenNoValue:n=!1,setValue:o,showTrigger:a=!0,trigger:i,value:l})=>{const c=I(),d=e.useRef(null),u=Un(d),[m,h]=e.useState(""),x=void 0!==l,p=x?l:m,f=e.useMemo(()=>{const e=r.userId,t=c.meta.userId;return!e||e===t},[c.meta.userId,r]),g=e.useCallback(e=>{o?.(e),x||h(e)},[o,x]),j=e.useRef(null);e.useEffect(()=>{const e=c.api.findPath(r);if(!e)return;const t=c.api.before(e);if(!t)return;const s=c.api.pointRef(t);return j.current=s.current,()=>{s.unref()}},[c,r]);const{props:b,removeInput:v}=qn({cancelInputOnBlur:!0,cursorState:u,autoFocus:f,ref:d,onCancelInput:e=>{"backspace"!==e&&c.tf.insertText(i+p,{at:j?.current??void 0}),"arrowLeft"!==e&&"arrowRight"!==e||c.tf.move({distance:1,reverse:"arrowLeft"===e})}}),[y,w]=e.useState(!1),k=e.useMemo(()=>({filter:s,inputProps:b,inputRef:d,removeInput:v,setHasEmpty:w,showTrigger:a,trigger:i}),[i,a,s,d,b,v,w]),C=In({setValue:t=>e.startTransition(()=>g(t))}),N=C.useState("items");return e.useEffect(()=>{C.getState().activeId||C.setActiveId(C.first())},[N,C]),/* @__PURE__ */si.jsx("span",{contentEditable:!1,children:/* @__PURE__ */si.jsx(On,{open:(N.length>0||y)&&(!n||p.length>0),store:C,children:/* @__PURE__ */si.jsx(Ac.Provider,{value:k,children:t})})})},Rc=({className:t,ref:r,...s})=>{const{inputProps:n,inputRef:o,showTrigger:a,trigger:i}=e.useContext(Ac),l=An().useState("value"),c=K(r,o);/* @__PURE__ */
260
- return si.jsxs(si.Fragment,{children:[a&&i,
261
- /* @__PURE__ */si.jsxs("span",{className:"relative min-h-[1lh]",children:[
262
- /* @__PURE__ */si.jsx("span",{className:"invisible overflow-hidden text-nowrap","aria-hidden":"true",children:l||"​"}),
263
- /* @__PURE__ */si.jsx(Fn,{ref:c,className:ui("absolute top-0 left-0 size-full bg-transparent outline-none",t),value:l,autoSelect:!0,...n,...s})]})]})};Rc.displayName="InlineComboboxInput";const Lc=({className:e,...t})=>{const r=An();/* @__PURE__ */
264
- return si.jsx(Mn,{children:/* @__PURE__ */si.jsx(Rn,{className:ui("z-500 max-h-[288px] w-[300px] overflow-y-auto rounded-md bg-popover shadow-md",e),onKeyDownCapture:function(e){if(!r)return;const t=r.getState(),{items:s,activeId:n}=t;if(!s.length)return;const o=s.findIndex(e=>e.id===n);"ArrowUp"===e.key&&o<=0?(e.preventDefault(),r.setActiveId(r.last())):"ArrowDown"===e.key&&o>=s.length-1&&(e.preventDefault(),r.setActiveId(r.first()))},...t})})},Pc=et("relative mx-1 flex h-[28px] select-none items-center rounded-sm px-2 text-foreground text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{defaultVariants:{interactive:!0},variants:{interactive:{false:"",true:"cursor-pointer transition-colors hover:bg-accent hover:text-accent-foreground data-[active-item=true]:bg-accent data-[active-item=true]:text-accent-foreground"}}}),Hc=({className:t,focusEditor:r=!0,group:s,keywords:n,label:o,onClick:a,...i})=>{const{value:l}=i,{filter:c,removeInput:d}=e.useContext(Ac),u=An(),m=c&&u.useState("value");return e.useMemo(()=>!c||c({group:s,keywords:n,label:o,value:l},m),[c,s,n,o,l,m])?/* @__PURE__ */si.jsx(Pn,{className:ui(Pc(),t),onClick:e=>{d(r),a?.(e)},...i}):null},Vc=({children:t,className:r})=>{const{setHasEmpty:s}=e.useContext(Ac),n=An().useState("items");return e.useEffect(()=>(s(!0),()=>{s(!1)}),[s]),n.length>0?null:/* @__PURE__ */si.jsx("div",{className:ui(Pc({interactive:!1}),r),children:t})};function Uc({className:e,...t}){/* @__PURE__ */
265
- return si.jsx(Ln,{...t,className:ui("hidden not-last:border-b py-1.5 [&:has([role=option])]:block",e)})}function qc({className:e,...t}){/* @__PURE__ */
266
- return si.jsx(Hn,{...t,className:ui("mt-1.5 mb-2 px-3 font-medium text-muted-foreground text-xs",e)})}const $c=/:$/;const Wc=[xs.configure({options:{data:Dn}}),ps.withComponent(function(t){const{children:r,editor:s,element:n}=t,o=T(xs,"data"),[a,i]=e.useState(""),l=((t,r=500)=>{const[s,n]=e.useState(t);return e.useEffect(()=>{const e=setTimeout(()=>{n(t)},r);return()=>{clearTimeout(e)}},[t,r]),s})(a,100),c=a!==l,d=e.useMemo(()=>0===l.trim().length?[]:gs.getInstance(o).search(l.replace($c,"")).get(),[o,l]);/* @__PURE__ */
267
- return si.jsxs(k,{as:"span",...t,children:[
268
- /* @__PURE__ */si.jsxs(Mc,{value:a,element:n,filter:!1,setValue:i,trigger:":",hideWhenNoValue:!0,children:[
269
- /* @__PURE__ */si.jsx(Rc,{}),
270
- /* @__PURE__ */si.jsxs(Lc,{children:[!c&&/* @__PURE__ */si.jsx(Vc,{children:"No results"}),
271
- /* @__PURE__ */si.jsx(Uc,{children:d.map(e=>/* @__PURE__ */si.jsxs(Hc,{value:e.name,onClick:()=>js(s,e),children:[e.skins[0].native," ",e.name]},e.id))})]})]}),r]})})],Kc=[p.configure({shortcuts:{insert:{keys:"mod+enter"},insertBefore:{keys:"mod+shift+enter"}}})];function Zc(e){/* @__PURE__ */
272
- return si.jsx(Ki,{...e,className:ui("scrollbar-hide sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}const Gc=[{icon:Ht,value:"left"},{icon:Vt,value:"center"},{icon:Ut,value:"right"},{icon:qt,value:"justify"}];function Yc(t){const{editor:r,tf:s}=E(de),n=Z({defaultValue:"start",getProp:e=>e.align})??"left",[o,a]=e.useState(!1),i=Gc.find(e=>e.value===n)?.icon??Ht;/* @__PURE__ */
273
- return si.jsxs(Di,{open:o,onOpenChange:a,modal:!1,...t,children:[
274
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{pressed:o,tooltip:"Align",isDropdown:!0,children:/* @__PURE__ */si.jsx(i,{})})}),
275
- /* @__PURE__ */si.jsx(Ai,{className:"min-w-0",align:"start",children:/* @__PURE__ */si.jsx(Li,{value:n,onValueChange:e=>{s.textAlign.setNodes(e),r.tf.focus()},children:Gc.map(({icon:e,value:t})=>/* @__PURE__ */si.jsx(Pi,{className:"pl-2 data-[state=checked]:bg-accent *:first:[span]:hidden",value:t,children:/* @__PURE__ */si.jsx(e,{})},t))})})]})}function Jc(){const e=I();/* @__PURE__ */
276
- return si.jsx(Ji,{onClick:()=>{e.getTransforms(Wl).comment.setDraft()},"data-plate-prevent-overlay":!0,tooltip:"Comment",children:/* @__PURE__ */si.jsx(Rt,{})})}var Xc,Qc,ed,td,rd,sd,nd,od,ad,id,ld,cd,dd,ud,md,hd,xd,pd,fd,gd,jd,bd,vd,yd,wd,kd,Cd,Nd;function zd(){if(Qc)return Xc;return Qc=1,Xc=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function _d(){if(sd)return rd;sd=1;var e=function(){if(td)return ed;td=1;var e="object"==typeof Za&&Za&&Za.Object===Object&&Za;return ed=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return rd=r}function Sd(){if(cd)return ld;cd=1;var e=function(){if(id)return ad;id=1;var e=/\s/;return ad=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}}(),t=/^\s+/;return ld=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r}}function Ed(){if(ud)return dd;ud=1;var e=_d().Symbol;return dd=e}function Bd(){if(gd)return fd;gd=1;var e=Ed(),t=function(){if(hd)return md;hd=1;var e=Ed(),t=Object.prototype,r=t.hasOwnProperty,s=t.toString,n=e?e.toStringTag:void 0;return md=function(e){var t=r.call(e,n),o=e[n];try{e[n]=void 0;var a=!0}catch(l){}var i=s.call(e);return a&&(t?e[n]=o:delete e[n]),i}}(),r=function(){if(pd)return xd;pd=1;var e=Object.prototype.toString;return xd=function(t){return e.call(t)}}(),s=e?e.toStringTag:void 0;return fd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?t(e):r(e)}}function Td(){if(yd)return vd;yd=1;var e=Bd(),t=bd?jd:(bd=1,jd=function(e){return null!=e&&"object"==typeof e});return vd=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}const Dd=/* @__PURE__ */Ga(function(){if(Nd)return Cd;Nd=1;var e=zd(),t=function(){if(od)return nd;od=1;var e=_d();return nd=function(){return e.Date.now()}}(),r=function(){if(kd)return wd;kd=1;var e=Sd(),t=zd(),r=Td(),s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return wd=function(i){if("number"==typeof i)return i;if(r(i))return NaN;if(t(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=t(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=e(i);var c=n.test(i);return c||o.test(i)?a(i.slice(2),c?2:8):s.test(i)?NaN:+i}}(),s=Math.max,n=Math.min;return Cd=function(o,a,i){var l,c,d,u,m,h,x=0,p=!1,f=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function j(e){var t=l,r=c;return l=c=void 0,x=e,u=o.apply(r,t)}function b(e){var t=e-h;return void 0===h||t>=a||t<0||f&&e-x>=d}function v(){var e=t();if(b(e))return y(e);m=setTimeout(v,function(e){var t=a-(e-h);return f?n(t,d-(e-x)):t}(e))}function y(e){return m=void 0,g&&l?j(e):(l=c=void 0,u)}function w(){var e=t(),r=b(e);if(l=arguments,c=this,h=e,r){if(void 0===m)return function(e){return x=e,m=setTimeout(v,a),p?j(e):u}(h);if(f)return clearTimeout(m),m=setTimeout(v,a),j(h)}return void 0===m&&(m=setTimeout(v,a)),u}return a=r(a)||0,e(i)&&(p=!!i.leading,d=(f="maxWait"in i)?s(r(i.maxWait)||0,a):d,g="trailing"in i?!!i.trailing:g),w.cancel=function(){void 0!==m&&clearTimeout(m),x=0,l=h=c=m=void 0},w.flush=function(){return void 0===m?u:y(t())},w}}());function Id({children:e,nodeType:r,tooltip:s}){const n=I(),o=M(e=>!!e.selection,[]),a=M(e=>e.api.mark(r),[r]),[i,l]=t.useState(),[c,d]=t.useState(!1),u=t.useCallback((e=!c)=>{d(e)},[c,d]),m=t.useCallback(e=>{n.selection&&(l(e),n.tf.select(n.selection),n.tf.focus(),n.tf.addMarks({[r]:e}))},[n,r]),h=t.useCallback(e=>{m(e),u()},[u,m]),x=t.useCallback(()=>{n.selection&&(n.tf.select(n.selection),n.tf.focus(),i&&n.tf.removeMarks(r),u())},[n,i,u,r]);return t.useEffect(()=>{o&&l(a)},[a,o]),/* @__PURE__ */si.jsxs(Di,{open:c,onOpenChange:e=>{d(e)},modal:!1,children:[
277
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{pressed:c,tooltip:s,children:e})}),
278
- /* @__PURE__ */si.jsx(Ai,{align:"start",children:/* @__PURE__ */si.jsx(Od,{color:i||a,clearColor:x,colors:Ld,customColors:Pd,updateColor:h,updateCustomColor:m})})]})}const Od=t.memo(function({className:e,clearColor:t,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...i}){/* @__PURE__ */
279
- return si.jsxs("div",{className:ui("flex flex-col",e),...i,children:[
280
- /* @__PURE__ */si.jsx(ol,{label:"Custom Colors",children:/* @__PURE__ */si.jsx(Ad,{color:r,className:"px-2",colors:s,customColors:n,updateColor:o,updateCustomColor:a})}),
281
- /* @__PURE__ */si.jsx(ol,{label:"Default Colors",children:/* @__PURE__ */si.jsx(Rd,{color:r,className:"px-2",colors:s,updateColor:o})}),r&&/* @__PURE__ */si.jsx(ol,{children:/* @__PURE__ */si.jsxs(Mi,{className:"p-2",onClick:t,children:[
282
- /* @__PURE__ */si.jsx($t,{}),
283
- /* @__PURE__ */si.jsx("span",{children:"Clear"})]})})]})},(e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors);function Ad({className:e,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...i}){const[l,c]=t.useState(),[d,u]=t.useState(r||"#000000");t.useEffect(()=>{!r||n.some(e=>e.value===r)||s.some(e=>e.value===r)||c(r)},[r,s,n]);const m=t.useMemo(()=>l?[...n,{isBrightColor:!1,name:"",value:l}]:n,[l,n]),h=t.useCallback(Dd(a,100),[a]);/* @__PURE__ */
284
- return si.jsx("div",{className:ui("relative flex flex-col gap-4",e),...i,children:/* @__PURE__ */si.jsx(Rd,{color:r,colors:m,updateColor:o,children:/* @__PURE__ */si.jsx(Fd,{value:d,onChange:e=>{u(e.target.value),h(e.target.value)},children:/* @__PURE__ */si.jsxs(Mi,{className:ui(zi({size:"icon",variant:"outline"}),"absolute top-1 right-2 bottom-2 flex size-8 items-center justify-center rounded-full"),onSelect:e=>{e.preventDefault()},children:[
285
- /* @__PURE__ */si.jsx("span",{className:"sr-only",children:"Custom"}),
286
- /* @__PURE__ */si.jsx(Wt,{})]})})})})}function Fd({children:e,className:r,value:s="#000000",...n}){const o=t.useRef(null);/* @__PURE__ */
287
- return si.jsxs("div",{className:"flex flex-col items-center",children:[t.Children.map(e,e=>e?t.cloneElement(e,{onClick:()=>o.current?.click()}):e),
288
- /* @__PURE__ */si.jsx("input",{...n,ref:Ms(n.ref,o),className:ui("size-0 overflow-hidden border-0 p-0",r),value:s,type:"color"})]})}function Md({className:e,isBrightColor:t,isSelected:r,name:s,updateColor:n,value:o,...a}){const i=/* @__PURE__ */si.jsx(Mi,{className:ui(zi({size:"icon",variant:"outline"}),"my-1 flex size-6 items-center justify-center rounded-full border border-muted border-solid p-0 transition-all hover:scale-125",!t&&"border-transparent",r&&"border-2 border-primary",e),style:{backgroundColor:o},onSelect:e=>{e.preventDefault(),n(o)},...a});return s?/* @__PURE__ */si.jsxs(Ei,{children:[
289
- /* @__PURE__ */si.jsx(Bi,{children:i}),
290
- /* @__PURE__ */si.jsx(Ti,{className:"mb-1 capitalize",children:s})]}):i}function Rd({className:e,color:t,colors:r,updateColor:s,...n}){/* @__PURE__ */
291
- return si.jsx("div",{className:ui("grid grid-cols-[repeat(10,1fr)] place-items-center gap-x-1",e),...n,children:/* @__PURE__ */si.jsxs(Si,{children:[r.map(({isBrightColor:e,name:r,value:n})=>/* @__PURE__ */si.jsx(Md,{name:r,value:n,isBrightColor:e,isSelected:t===n,updateColor:s},r??n)),n.children]})})}const Ld=[{isBrightColor:!1,name:"black",value:"#000000"},{isBrightColor:!1,name:"dark grey 4",value:"#434343"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"dark grey 1",value:"#B7B7B7"},{isBrightColor:!1,name:"grey",value:"#CCCCCC"},{isBrightColor:!1,name:"light grey 1",value:"#D9D9D9"},{isBrightColor:!0,name:"light grey 2",value:"#EFEFEF"},{isBrightColor:!0,name:"light grey 3",value:"#F3F3F3"},{isBrightColor:!0,name:"white",value:"#FFFFFF"},{isBrightColor:!1,name:"red berry",value:"#980100"},{isBrightColor:!1,name:"red",value:"#FE0000"},{isBrightColor:!1,name:"orange",value:"#FE9900"},{isBrightColor:!0,name:"yellow",value:"#FEFF00"},{isBrightColor:!1,name:"green",value:"#00FF00"},{isBrightColor:!1,name:"cyan",value:"#00FFFF"},{isBrightColor:!1,name:"cornflower blue",value:"#4B85E8"},{isBrightColor:!1,name:"blue",value:"#1300FF"},{isBrightColor:!1,name:"purple",value:"#9900FF"},{isBrightColor:!1,name:"magenta",value:"#FF00FF"},{isBrightColor:!1,name:"light red berry 3",value:"#E6B8AF"},{isBrightColor:!1,name:"light red 3",value:"#F4CCCC"},{isBrightColor:!0,name:"light orange 3",value:"#FCE4CD"},{isBrightColor:!0,name:"light yellow 3",value:"#FFF2CC"},{isBrightColor:!0,name:"light green 3",value:"#D9EAD3"},{isBrightColor:!1,name:"light cyan 3",value:"#D0DFE3"},{isBrightColor:!1,name:"light cornflower blue 3",value:"#C9DAF8"},{isBrightColor:!0,name:"light blue 3",value:"#CFE1F3"},{isBrightColor:!0,name:"light purple 3",value:"#D9D2E9"},{isBrightColor:!0,name:"light magenta 3",value:"#EAD1DB"},{isBrightColor:!1,name:"light red berry 2",value:"#DC7E6B"},{isBrightColor:!1,name:"light red 2",value:"#EA9999"},{isBrightColor:!1,name:"light orange 2",value:"#F9CB9C"},{isBrightColor:!0,name:"light yellow 2",value:"#FFE598"},{isBrightColor:!1,name:"light green 2",value:"#B7D6A8"},{isBrightColor:!1,name:"light cyan 2",value:"#A1C4C9"},{isBrightColor:!1,name:"light cornflower blue 2",value:"#A4C2F4"},{isBrightColor:!1,name:"light blue 2",value:"#9FC5E8"},{isBrightColor:!1,name:"light purple 2",value:"#B5A7D5"},{isBrightColor:!1,name:"light magenta 2",value:"#D5A6BD"},{isBrightColor:!1,name:"light red berry 1",value:"#CC4125"},{isBrightColor:!1,name:"light red 1",value:"#E06666"},{isBrightColor:!1,name:"light orange 1",value:"#F6B26B"},{isBrightColor:!1,name:"light yellow 1",value:"#FFD966"},{isBrightColor:!1,name:"light green 1",value:"#93C47D"},{isBrightColor:!1,name:"light cyan 1",value:"#76A5AE"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"light blue 1",value:"#6FA8DC"},{isBrightColor:!1,name:"light purple 1",value:"#8D7CC3"},{isBrightColor:!1,name:"light magenta 1",value:"#C27BA0"},{isBrightColor:!1,name:"dark red berry 1",value:"#A61B00"},{isBrightColor:!1,name:"dark red 1",value:"#CC0000"},{isBrightColor:!1,name:"dark orange 1",value:"#E59138"},{isBrightColor:!1,name:"dark yellow 1",value:"#F1C231"},{isBrightColor:!1,name:"dark green 1",value:"#6AA74F"},{isBrightColor:!1,name:"dark cyan 1",value:"#45818E"},{isBrightColor:!1,name:"dark cornflower blue 1",value:"#3B78D8"},{isBrightColor:!1,name:"dark blue 1",value:"#3E84C6"},{isBrightColor:!1,name:"dark purple 1",value:"#664EA6"},{isBrightColor:!1,name:"dark magenta 1",value:"#A64D78"},{isBrightColor:!1,name:"dark red berry 2",value:"#84200D"},{isBrightColor:!1,name:"dark red 2",value:"#990001"},{isBrightColor:!1,name:"dark orange 2",value:"#B45F05"},{isBrightColor:!1,name:"dark yellow 2",value:"#BF9002"},{isBrightColor:!1,name:"dark green 2",value:"#38761D"},{isBrightColor:!1,name:"dark cyan 2",value:"#124F5C"},{isBrightColor:!1,name:"dark cornflower blue 2",value:"#1155CB"},{isBrightColor:!1,name:"dark blue 2",value:"#0C5394"},{isBrightColor:!1,name:"dark purple 2",value:"#351C75"},{isBrightColor:!1,name:"dark magenta 2",value:"#741B47"},{isBrightColor:!1,name:"dark red berry 3",value:"#5B0F00"},{isBrightColor:!1,name:"dark red 3",value:"#660000"},{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark yellow 3",value:"#7E6000"},{isBrightColor:!1,name:"dark green 3",value:"#274E12"},{isBrightColor:!1,name:"dark cyan 3",value:"#0D343D"},{isBrightColor:!1,name:"dark cornflower blue 3",value:"#1B4487"},{isBrightColor:!1,name:"dark blue 3",value:"#083763"},{isBrightColor:!1,name:"dark purple 3",value:"#1F124D"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}],Pd=[{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}];function Hd(e){const t=I(),r=M(e=>0===e.history.redos.length,[]);/* @__PURE__ */
292
- return si.jsx(Ji,{...e,disabled:r,onClick:()=>t.redo(),onMouseDown:e=>e.preventDefault(),tooltip:"Redo",children:/* @__PURE__ */si.jsx(Zt,{})})}function Vd(e){const t=I(),r=M(e=>0===e.history.undos.length,[]);/* @__PURE__ */
293
- return si.jsx(Ji,{...e,disabled:r,onClick:()=>t.undo(),onMouseDown:e=>e.preventDefault(),tooltip:"Undo",children:/* @__PURE__ */si.jsx(Kt,{})})}function Ud(e){const{props:t}=Wn();/* @__PURE__ */
294
- return si.jsx(Ji,{...e,...t,tooltip:"Indent",children:/* @__PURE__ */si.jsx(Yt,{})})}function qd(e){const{props:t}=$n();/* @__PURE__ */
295
- return si.jsx(Ji,{...e,...t,tooltip:"Outdent",children:/* @__PURE__ */si.jsx(Gt,{})})}function $d(e){const t=Zn(),{props:r}=Gn(t);/* @__PURE__ */
296
- return si.jsx(Ji,{...e,...r,"data-plate-focus":!0,tooltip:"Link",children:/* @__PURE__ */si.jsx(Jt,{})})}function Wd(){const t=I(),[r,s]=e.useState(!1),n=M(e=>Ie(e,[Oe.Disc,Oe.Circle,Oe.Square]),[]);/* @__PURE__ */
297
- return si.jsxs(Qi,{pressed:r,children:[
298
- /* @__PURE__ */si.jsx(el,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>{Te(t,{listStyleType:Oe.Disc})},"data-state":n?"on":"off",children:/* @__PURE__ */si.jsx(Qt,{className:"size-4"})}),
299
- /* @__PURE__ */si.jsxs(Di,{open:r,onOpenChange:s,modal:!1,children:[
300
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(tl,{})}),
301
- /* @__PURE__ */si.jsx(Ai,{align:"start",alignOffset:-32,children:/* @__PURE__ */si.jsxs(Fi,{children:[
302
- /* @__PURE__ */si.jsx(Mi,{onClick:()=>Te(t,{listStyleType:Oe.Disc}),children:/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
303
- /* @__PURE__ */si.jsx("div",{className:"size-2 rounded-full border border-current bg-current"}),"Default"]})}),
304
- /* @__PURE__ */si.jsx(Mi,{onClick:()=>Te(t,{listStyleType:Oe.Circle}),children:/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
305
- /* @__PURE__ */si.jsx("div",{className:"size-2 rounded-full border border-current"}),"Circle"]})}),
306
- /* @__PURE__ */si.jsx(Mi,{onClick:()=>Te(t,{listStyleType:Oe.Square}),children:/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-2",children:[
307
- /* @__PURE__ */si.jsx("div",{className:"size-2 border border-current bg-current"}),"Square"]})})]})})]})]})}function Kd(){const t=I(),[r,s]=e.useState(!1),n=M(e=>Ie(e,[Oe.Decimal,Oe.LowerAlpha,Oe.UpperAlpha,Oe.LowerRoman,Oe.UpperRoman]),[]);/* @__PURE__ */
308
- return si.jsxs(Qi,{pressed:r,children:[
309
- /* @__PURE__ */si.jsx(el,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>Te(t,{listStyleType:Oe.Decimal}),"data-state":n?"on":"off",children:/* @__PURE__ */si.jsx(Xt,{className:"size-4"})}),
310
- /* @__PURE__ */si.jsxs(Di,{open:r,onOpenChange:s,modal:!1,children:[
311
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(tl,{})}),
312
- /* @__PURE__ */si.jsx(Ai,{align:"start",alignOffset:-32,children:/* @__PURE__ */si.jsxs(Fi,{children:[
313
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:Oe.Decimal}),children:"Decimal (1, 2, 3)"}),
314
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:Oe.LowerAlpha}),children:"Lower Alpha (a, b, c)"}),
315
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:"turkish-lower-alpha"}),children:"Lower Alpha - Turkish (a, b, c, ç)"}),
316
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:Oe.UpperAlpha}),children:"Upper Alpha (A, B, C)"}),
317
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:"turkish-upper-alpha"}),children:"Upper Alpha - Turkish (A, B, C, Ç)"}),
318
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:Oe.LowerRoman}),children:"Lower Roman (i, ii, iii)"}),
319
- /* @__PURE__ */si.jsx(Mi,{onSelect:()=>Te(t,{listStyleType:Oe.UpperRoman}),children:"Upper Roman (I, II, III)"})]})})]})]})}function Zd({clear:e,nodeType:t,...r}){const{api:s}=E(rc),n=T(rc,"isSuggesting"),o=G({clear:e,nodeType:t}),{props:a}=Y(o),i=e=>e?t=>{n?(t.preventDefault?.(),s.suggestion.withoutSuggestions(()=>e(t))):e(t)}:void 0;/* @__PURE__ */
320
- return si.jsx(Ji,{...r,...a,onClick:i(a.onClick),onMouseDown:i(a.onMouseDown)})}function Gd({...e}){/* @__PURE__ */
321
- return si.jsx(Yr.Root,{"data-slot":"alert-dialog",...e})}function Yd({...e}){/* @__PURE__ */
322
- return si.jsx(Yr.Portal,{"data-slot":"alert-dialog-portal",...e})}function Jd({className:e,...t}){/* @__PURE__ */
323
- return si.jsx(Yr.Overlay,{"data-slot":"alert-dialog-overlay",className:ui("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Xd({className:e,size:t="default",...r}){/* @__PURE__ */
324
- return si.jsxs(Yd,{children:[
325
- /* @__PURE__ */si.jsx(Jd,{}),
326
- /* @__PURE__ */si.jsx(Yr.Content,{"data-slot":"alert-dialog-content","data-size":t,className:ui("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg",e),...r})]})}function Qd({className:e,...t}){/* @__PURE__ */
327
- return si.jsx("div",{"data-slot":"alert-dialog-header",className:ui("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function eu({className:e,...t}){/* @__PURE__ */
328
- return si.jsx("div",{"data-slot":"alert-dialog-footer",className:ui("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function tu({className:e,...t}){/* @__PURE__ */
329
- return si.jsx(Yr.Title,{"data-slot":"alert-dialog-title",className:ui("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function ru({className:e,...t}){/* @__PURE__ */
330
- return si.jsx(Yr.Description,{"data-slot":"alert-dialog-description",className:ui("text-muted-foreground text-sm",e),...t})}function su({className:e,variant:t="default",size:r="default",...s}){/* @__PURE__ */
331
- return si.jsx(_i,{variant:t,size:r,asChild:!0,children:/* @__PURE__ */si.jsx(Yr.Action,{"data-slot":"alert-dialog-action",className:ui(e),...s})})}function nu({className:e,variant:t="outline",size:r="default",...s}){/* @__PURE__ */
332
- return si.jsx(_i,{variant:t,size:r,asChild:!0,children:/* @__PURE__ */si.jsx(Yr.Cancel,{"data-slot":"alert-dialog-cancel",className:ui(e),...s})})}function ou({className:e,type:t,...r}){/* @__PURE__ */
333
- return si.jsx("input",{type:t,"data-slot":"input",className:ui("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const au={[r.audio]:{accept:["audio/*"],icon:/* @__PURE__ */si.jsx(nr,{className:"size-4"}),title:"Insert Audio",tooltip:"Audio"},[r.file]:{accept:["*"],icon:/* @__PURE__ */si.jsx(sr,{className:"size-4"}),title:"Insert File",tooltip:"File"},[r.img]:{accept:["image/*"],icon:/* @__PURE__ */si.jsx(rr,{className:"size-4"}),title:"Insert Image",tooltip:"Image"},[r.video]:{accept:["video/*"],icon:/* @__PURE__ */si.jsx(tr,{className:"size-4"}),title:"Insert Video",tooltip:"Video"}};function iu({nodeType:t,...r}){const s=au[t],n=I(),[o,a]=e.useState(!1),[i,l]=e.useState(!1),{openFilePicker:c}=io({accept:s.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{n.getTransforms(xn).insert.media(e)}});/* @__PURE__ */
334
- return si.jsxs(si.Fragment,{children:[
335
- /* @__PURE__ */si.jsxs(Qi,{onClick:()=>{c()},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),a(!0))},pressed:o,children:[
336
- /* @__PURE__ */si.jsx(el,{children:s.icon}),
337
- /* @__PURE__ */si.jsxs(Di,{open:o,onOpenChange:a,modal:!1,...r,children:[
338
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(tl,{})}),
339
- /* @__PURE__ */si.jsx(Ai,{onClick:e=>e.stopPropagation(),align:"start",alignOffset:-32,children:/* @__PURE__ */si.jsxs(Fi,{children:[
340
- /* @__PURE__ */si.jsxs(Mi,{onSelect:()=>c(),children:[s.icon,"Upload from computer"]}),
341
- /* @__PURE__ */si.jsxs(Mi,{onSelect:()=>l(!0),children:[
342
- /* @__PURE__ */si.jsx(er,{}),"Insert via URL"]})]})})]})]}),
343
- /* @__PURE__ */si.jsx(Gd,{open:i,onOpenChange:e=>{l(e)},children:/* @__PURE__ */si.jsx(Xd,{className:"gap-6",children:/* @__PURE__ */si.jsx(lu,{currentConfig:s,nodeType:t,setOpen:l})})})]})}function lu({currentConfig:t,nodeType:s,setOpen:n}){const o=I(),[a,i]=e.useState(""),l=e.useCallback(()=>{if(!f(a))return ao.error("Invalid URL");n(!1),o.tf.insertNodes({children:[{text:""}],name:s===r.file?a.split("/").pop():void 0,type:s,url:a})},[a,o,s,n]);/* @__PURE__ */
344
- return si.jsxs(si.Fragment,{children:[
345
- /* @__PURE__ */si.jsx(Qd,{children:/* @__PURE__ */si.jsx(tu,{children:t.title})}),
346
- /* @__PURE__ */si.jsxs(ru,{className:"group relative w-full",children:[
347
- /* @__PURE__ */si.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */si.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
348
- /* @__PURE__ */si.jsx(ou,{id:"url",className:"w-full",value:a,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&l()},placeholder:"",type:"url",autoFocus:!0})]}),
349
- /* @__PURE__ */si.jsxs(eu,{children:[
350
- /* @__PURE__ */si.jsx(nu,{children:"Cancel"}),
351
- /* @__PURE__ */si.jsx(su,{onClick:e=>{e.preventDefault(),l()},children:"Accept"})]})]})}function cu(t){const s=M(e=>e.api.some({match:{type:r.table}}),[]),{editor:n,tf:o}=E(lo),[a,i]=e.useState(!1),l=co();/* @__PURE__ */
352
- return si.jsxs(Di,{open:a,onOpenChange:i,modal:!1,...t,children:[
353
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{pressed:a,tooltip:"Table",isDropdown:!0,children:/* @__PURE__ */si.jsx(or,{})})}),
354
- /* @__PURE__ */si.jsx(Ai,{className:"flex w-[180px] min-w-0 flex-col",align:"start",children:/* @__PURE__ */si.jsxs(Fi,{children:[
355
- /* @__PURE__ */si.jsxs(Ui,{children:[
356
- /* @__PURE__ */si.jsxs(qi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:[
357
- /* @__PURE__ */si.jsx(ar,{className:"size-4"}),
358
- /* @__PURE__ */si.jsx("span",{children:"Table"})]}),
359
- /* @__PURE__ */si.jsx($i,{className:"m-0 p-0",children:/* @__PURE__ */si.jsx(du,{})})]}),
360
- /* @__PURE__ */si.jsxs(Ui,{children:[
361
- /* @__PURE__ */si.jsxs(qi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
362
- /* @__PURE__ */si.jsx("div",{className:"size-4"}),
363
- /* @__PURE__ */si.jsx("span",{children:"Cell"})]}),
364
- /* @__PURE__ */si.jsxs($i,{children:[
365
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!l.canMerge,onSelect:()=>{o.table.merge(),n.tf.focus()},children:[
366
- /* @__PURE__ */si.jsx(ir,{}),"Merge cells"]}),
367
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!l.canSplit,onSelect:()=>{o.table.split(),n.tf.focus()},children:[
368
- /* @__PURE__ */si.jsx(lr,{}),"Split cell"]})]})]}),
369
- /* @__PURE__ */si.jsxs(Ui,{children:[
370
- /* @__PURE__ */si.jsxs(qi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
371
- /* @__PURE__ */si.jsx("div",{className:"size-4"}),
372
- /* @__PURE__ */si.jsx("span",{children:"Row"})]}),
373
- /* @__PURE__ */si.jsxs($i,{children:[
374
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableRow({before:!0}),n.tf.focus()},children:[
375
- /* @__PURE__ */si.jsx(cr,{}),"Insert row before"]}),
376
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableRow(),n.tf.focus()},children:[
377
- /* @__PURE__ */si.jsx(dr,{}),"Insert row after"]}),
378
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.tableRow(),n.tf.focus()},children:[
379
- /* @__PURE__ */si.jsx(pt,{}),"Delete row"]})]})]}),
380
- /* @__PURE__ */si.jsxs(Ui,{children:[
381
- /* @__PURE__ */si.jsxs(qi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
382
- /* @__PURE__ */si.jsx("div",{className:"size-4"}),
383
- /* @__PURE__ */si.jsx("span",{children:"Column"})]}),
384
- /* @__PURE__ */si.jsxs($i,{children:[
385
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableColumn({before:!0}),n.tf.focus()},children:[
386
- /* @__PURE__ */si.jsx(ur,{}),"Insert column before"]}),
387
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableColumn(),n.tf.focus()},children:[
388
- /* @__PURE__ */si.jsx(mr,{}),"Insert column after"]}),
389
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.tableColumn(),n.tf.focus()},children:[
390
- /* @__PURE__ */si.jsx(pt,{}),"Delete column"]})]})]}),
391
- /* @__PURE__ */si.jsxs(Mi,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.table(),n.tf.focus()},children:[
392
- /* @__PURE__ */si.jsx(Et,{}),"Delete table"]})]})})]})}function du(){const{editor:t,tf:r}=E(lo),[s,n]=e.useState({grid:Array.from({length:8},()=>Array.from({length:8}).fill(0)),size:{colCount:0,rowCount:0}});/* @__PURE__ */
393
- return si.jsxs("div",{className:"flex! m-0 flex-col p-0",onClick:()=>{r.insert.table(s.size,{select:!0}),t.tf.focus()},role:"button",children:[
394
- /* @__PURE__ */si.jsx("div",{className:"grid size-[130px] grid-cols-8 gap-0.5 p-1",children:s.grid.map((e,t)=>e.map((e,r)=>/* @__PURE__ */si.jsx("div",{className:ui("col-span-1 size-3 border border-solid bg-secondary",!!e&&"border-current"),onMouseMove:()=>{((e,t)=>{const r=[...s.grid];for(let s=0;s<r.length;s++)for(let n=0;n<r[s].length;n++)r[s][n]=s>=0&&s<=e&&n>=0&&n<=t?1:0;n({grid:r,size:{colCount:t+1,rowCount:e+1}})})(t,r)}},`(${t},${r})`)))}),
395
- /* @__PURE__ */si.jsxs("div",{className:"text-center text-current text-xs",children:[s.size.rowCount," x ",s.size.colCount]})]})}const uu="action_three_columns",mu=(e,t)=>{e.tf.insertNodes(e.api.create.block({indent:1,listStyleType:t}),{select:!0})},hu={[r.listTodo]:mu,[r.ol]:mu,[r.ul]:mu,[uu]:e=>Es(e,{columns:3,select:!0}),[r.audio]:e=>Do(e,{select:!0}),[r.callout]:e=>bo(e,{select:!0}),[r.codeBlock]:e=>ze(e,{select:!0}),[r.equation]:e=>Co(e,{select:!0}),[r.excalidraw]:e=>ko(e,{},{select:!0}),[r.file]:e=>To(e,{select:!0}),[r.img]:e=>Bo(e,{select:!0,type:r.img}),[r.mediaEmbed]:e=>Bo(e,{select:!0,type:r.mediaEmbed}),[r.table]:e=>e.getTransforms(lo).insert.table({},{select:!0}),[r.toc]:e=>Mo(e,{select:!0}),[r.video]:e=>Eo(e,{select:!0})};r.date,r.inlineEquation,r.link;const xu=(e,t,r)=>{e.tf.setNodes(e.api.create.block({indent:1,listStyleType:t}),{at:r[1]})},pu={[r.listTodo]:xu,[r.ol]:xu,[r.ul]:xu,[uu]:e=>Ss(e,{columns:3}),[r.codeBlock]:e=>_e(e)},fu=e=>e[r.listType]?e[r.listType]===r.ol?r.ol:e[r.listType]===r.listTodo?r.listTodo:r.ul:e.type,gu=[{icon:/* @__PURE__ */si.jsx(hr,{}),keywords:["paragraph"],label:"Text",value:r.p},{icon:/* @__PURE__ */si.jsx(xr,{}),keywords:["title","h1"],label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */si.jsx(pr,{}),keywords:["subtitle","h2"],label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */si.jsx(fr,{}),keywords:["subtitle","h3"],label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */si.jsx(gr,{}),keywords:["subtitle","h4"],label:"Heading 4",value:"h4"},{icon:/* @__PURE__ */si.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:"h5"},{icon:/* @__PURE__ */si.jsx(br,{}),keywords:["subtitle","h6"],label:"Heading 6",value:"h6"},{icon:/* @__PURE__ */si.jsx(vr,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:r.ul},{icon:/* @__PURE__ */si.jsx(yr,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:r.ol},{description:"Insert a highlighted block.",icon:/* @__PURE__ */si.jsx(wr,{}),keywords:["note"],label:"Callout",value:r.callout}];function ju(t){const s=I(),[n,o]=e.useState(!1),a=Z({defaultValue:r.p,getProp:e=>fu(e)}),i=e.useMemo(()=>gu.find(e=>e.value===(a??r.p))??gu[0],[a]);/* @__PURE__ */
396
- return si.jsxs(Di,{open:n,onOpenChange:o,modal:!1,...t,children:[
397
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{className:"min-w-[125px]",pressed:n,tooltip:"Turn into",isDropdown:!0,children:i.label})}),
398
- /* @__PURE__ */si.jsx(Ai,{className:"ignore-click-outside/toolbar min-w-0",onCloseAutoFocus:e=>{e.preventDefault(),s.tf.focus()},align:"start",children:/* @__PURE__ */si.jsx(ol,{value:a,onValueChange:e=>{((e,t,{at:s}={})=>{e.tf.withoutNormalizing(()=>{const n=s=>{const[n,o]=s;if(n[r.listType]&&e.tf.unsetNodes([r.listType,"indent"],{at:o}),t in pu)return pu[t](e,t,s);n.type!==t&&e.tf.setNodes({type:t},{at:o})};if(s){const t=e.api.node(s);if(t)return void n(t)}e.api.blocks({mode:"lowest"}).forEach(e=>{n(e)})})})(s,e)},label:"Turn into",children:gu.map(({icon:e,label:t,value:r})=>/* @__PURE__ */si.jsxs(Pi,{className:"min-w-[180px] pl-2 *:first:[span]:hidden",value:r,children:[
399
- /* @__PURE__ */si.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */si.jsx(ts,{children:/* @__PURE__ */si.jsx(mt,{})})}),e,t]},r))})})]})}const bu=e.createContext(void 0);function vu({children:e,isFullscreen:t,onToggleFullscreen:r}){/* @__PURE__ */
400
- return si.jsx(bu.Provider,{value:{isFullscreen:t,onToggleFullscreen:r},children:e})}function yu(){const t=e.useContext(bu);if(void 0===t)throw new Error("useFullscreen must be used within a FullscreenProvider");return t}function wu(e){const{isFullscreen:t,onToggleFullscreen:r}=yu();/* @__PURE__ */
401
- return si.jsx(Ji,{...e,onClick:r,onMouseDown:e=>e.preventDefault(),tooltip:t?"Exit fullscreen":"Enter fullscreen",pressed:t,children:t?/* @__PURE__ */si.jsx(kr,{}):/* @__PURE__ */si.jsx(Cr,{})})}const ku=e.createContext(null);function Cu(){return e.useContext(ku)}function Nu(){const e=I(),t=Cu();if(!t)return null;const s={open:()=>{},onSelect:t=>{e.tf.insertNodes({children:[{text:""}],type:r.img,url:t.url,alt:t.alt,width:t.width,height:t.height})}};/* @__PURE__ */
402
- return si.jsx(si.Fragment,{children:t(s)})}const zu="Insert Image";function _u({setOpen:t}){const s=I(),[n,o]=e.useState(""),a=e.useCallback(()=>{if(!f(n))return ao.error("Invalid URL");t(!1),s.tf.insertNodes({children:[{text:""}],name:void 0,type:r.img,url:n})},[n,s,t]);/* @__PURE__ */
403
- return si.jsxs(si.Fragment,{children:[
404
- /* @__PURE__ */si.jsx(Qd,{children:/* @__PURE__ */si.jsx(tu,{children:zu})}),
405
- /* @__PURE__ */si.jsxs(ru,{className:"group relative w-full",children:[
406
- /* @__PURE__ */si.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */si.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
407
- /* @__PURE__ */si.jsx(ou,{id:"url",className:"w-full",value:n,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&a()},placeholder:"",type:"url",autoFocus:!0})]}),
408
- /* @__PURE__ */si.jsxs(eu,{children:[
409
- /* @__PURE__ */si.jsx(nu,{children:"Cancel"}),
410
- /* @__PURE__ */si.jsx(su,{onClick:e=>{e.preventDefault(),a()},children:"Accept"})]})]})}function Su(){const[t,r]=e.useState(!1);/* @__PURE__ */
411
- return si.jsxs(si.Fragment,{children:[
412
- /* @__PURE__ */si.jsx(Ji,{tooltip:"Insert image from URL",onMouseDown:e=>e.preventDefault(),onClick:()=>r(!0),children:/* @__PURE__ */si.jsx(Nr,{className:"size-4"})}),
413
- /* @__PURE__ */si.jsx(Gd,{open:t,onOpenChange:r,children:/* @__PURE__ */si.jsx(Xd,{className:"gap-6",children:/* @__PURE__ */si.jsx(_u,{setOpen:r})})})]})}function Eu(){const e=J(),t=Cu(),s=T(kc,"commenting")??!1;/* @__PURE__ */
414
- return si.jsx("div",{className:"flex w-full",children:!e&&/* @__PURE__ */si.jsxs(si.Fragment,{children:[
415
- /* @__PURE__ */si.jsxs(sl,{children:[
416
- /* @__PURE__ */si.jsx(Vd,{}),
417
- /* @__PURE__ */si.jsx(Hd,{})]}),
418
- /* @__PURE__ */si.jsx(sl,{children:/* @__PURE__ */si.jsx(wu,{})}),
419
- /* @__PURE__ */si.jsx(sl,{children:/* @__PURE__ */si.jsx(ju,{})}),
420
- /* @__PURE__ */si.jsxs(sl,{children:[
421
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */si.jsx(zr,{})}),
422
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */si.jsx(_r,{})}),
423
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */si.jsx(Sr,{})}),
424
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */si.jsx(Er,{})}),
425
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.sup,clear:r.sub,tooltip:"Superscript",children:/* @__PURE__ */si.jsx(Br,{})}),
426
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.sub,clear:r.sup,tooltip:"Subscript",children:/* @__PURE__ */si.jsx(Tr,{})}),
427
- /* @__PURE__ */si.jsx($d,{})]}),
428
- /* @__PURE__ */si.jsxs(sl,{children:[
429
- /* @__PURE__ */si.jsx(Id,{nodeType:r.color,tooltip:"Text color",children:/* @__PURE__ */si.jsx(Dr,{})}),
430
- /* @__PURE__ */si.jsx(Id,{nodeType:r.backgroundColor,tooltip:"Background color",children:/* @__PURE__ */si.jsx(Ir,{})})]}),
431
- /* @__PURE__ */si.jsxs(sl,{children:[
432
- /* @__PURE__ */si.jsx(Yc,{}),
433
- /* @__PURE__ */si.jsx(Kd,{}),
434
- /* @__PURE__ */si.jsx(Wd,{}),
435
- /* @__PURE__ */si.jsx(qd,{}),
436
- /* @__PURE__ */si.jsx(Ud,{})]}),
437
- /* @__PURE__ */si.jsxs(sl,{children:[
438
- /* @__PURE__ */si.jsx(cu,{}),t?/* @__PURE__ */si.jsxs(si.Fragment,{children:[
439
- /* @__PURE__ */si.jsx(Nu,{}),
440
- /* @__PURE__ */si.jsx(Su,{})]}):/* @__PURE__ */si.jsx(iu,{nodeType:r.img})]}),s&&/* @__PURE__ */si.jsx(sl,{children:/* @__PURE__ */si.jsx(Jc,{})})]})})}const Bu=[$({key:"fixed-toolbar",render:{beforeEditable:()=>/* @__PURE__ */si.jsx(Zc,{children:/* @__PURE__ */si.jsx(Eu,{})})}})];function Tu({children:e,className:t,state:s,...n}){const o=X(),a=Q("focus"),i=!!T({key:r.link},"mode"),l=T({key:r.aiChat},"open"),c=Po({editorId:o,focusedEditorId:a,hideToolbar:i||l,...s,floatingOptions:{middleware:[Ho(12),Vo({fallbackPlacements:["top-start","top-end","bottom-start","bottom-end"],padding:12})],placement:"top",...s?.floatingOptions}}),{clickOutsideRef:d,hidden:u,props:m,ref:h}=Uo(c),x=Ms(n.ref,h);return u?null:/* @__PURE__ */si.jsx("div",{ref:d,children:/* @__PURE__ */si.jsx(Ki,{...n,...m,ref:x,className:ui("scrollbar-hide absolute z-50 overflow-x-auto whitespace-nowrap rounded-md border bg-popover p-1 opacity-100 shadow-md print:hidden","max-w-[80vw]",t),children:e})})}function Du(){const e=J(),t=T(kc,"commenting")??!1;/* @__PURE__ */
441
- return si.jsxs(si.Fragment,{children:[!e&&/* @__PURE__ */si.jsx(si.Fragment,{children:/* @__PURE__ */si.jsxs(sl,{children:[
442
- /* @__PURE__ */si.jsx(ju,{}),
443
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */si.jsx(zr,{})}),
444
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */si.jsx(_r,{})}),
445
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */si.jsx(Sr,{})}),
446
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */si.jsx(Er,{})}),
447
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.sup,clear:r.sub,tooltip:"Superscript",children:/* @__PURE__ */si.jsx(Br,{})}),
448
- /* @__PURE__ */si.jsx(Zd,{nodeType:r.sub,clear:r.sup,tooltip:"Subscript",children:/* @__PURE__ */si.jsx(Tr,{})}),
449
- /* @__PURE__ */si.jsx($d,{})]})}),t&&/* @__PURE__ */si.jsx(sl,{children:/* @__PURE__ */si.jsx(Jc,{})})]})}const Iu=[$({key:"floating-toolbar",render:{afterEditable:()=>/* @__PURE__ */si.jsx(Tu,{children:/* @__PURE__ */si.jsx(Du,{})})}})],Ou={inject:{targetPlugins:[r.p]}},Au=[ue.configure({inject:{...Ou.inject,nodeProps:{defaultNodeValue:"black"}}}),me.configure(Ou),he.configure(Ou),xe.configure(Ou)],Fu=[pe.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...r.heading,r.p]}})];const Mu=et("z-50 w-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-hidden"),Ru=et("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function Lu({state:t}){const s=T({key:r.comment},"activeId"),n=T({key:r.suggestion},"activeId"),o=e.useMemo(()=>({middleware:[Ho(8),Vo({fallbackPlacements:["bottom-end","top-start","top-end"],padding:12})],placement:n||s?"top-start":"bottom-start"}),[s,n]),a=Jn({...t,floatingOptions:{...o,...t?.floatingOptions}}),{hidden:i,props:l,ref:c,textInputProps:d}=Xn(a),u=Qn({...t,floatingOptions:{...o,...t?.floatingOptions}}),{editButtonProps:m,props:h,ref:x,unlinkButtonProps:p}=eo(u),f=ee({preventDefaultOnEnterKeydown:!0});if(i)return null;const g=/* @__PURE__ */si.jsxs("div",{className:"flex w-[330px] flex-col",...f,children:[
450
- /* @__PURE__ */si.jsxs("div",{className:"flex items-center",children:[
451
- /* @__PURE__ */si.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */si.jsx(Jt,{className:"size-4"})}),
452
- /* @__PURE__ */si.jsx(to,{className:Ru(),placeholder:"Paste link","data-plate-focus":!0})]}),
453
- /* @__PURE__ */si.jsx(Wi,{className:"my-1"}),
454
- /* @__PURE__ */si.jsxs("div",{className:"flex items-center",children:[
455
- /* @__PURE__ */si.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */si.jsx(Or,{className:"size-4"})}),
456
- /* @__PURE__ */si.jsx("input",{className:Ru(),placeholder:"Text to display","data-plate-focus":!0,...d})]})]}),j=u.isEditing?g:/* @__PURE__ */si.jsxs("div",{className:"box-content flex items-center",children:[
457
- /* @__PURE__ */si.jsx("button",{className:zi({size:"sm",variant:"ghost"}),type:"button",...m,children:"Edit link"}),
458
- /* @__PURE__ */si.jsx(Wi,{orientation:"vertical"}),
459
- /* @__PURE__ */si.jsx(Pu,{}),
460
- /* @__PURE__ */si.jsx(Wi,{orientation:"vertical"}),
461
- /* @__PURE__ */si.jsx("button",{className:zi({size:"sm",variant:"ghost"}),type:"button",...p,children:/* @__PURE__ */si.jsx(Ar,{width:18})})]});/* @__PURE__ */
462
- return si.jsxs(si.Fragment,{children:[
463
- /* @__PURE__ */si.jsx("div",{ref:c,className:Mu(),...l,children:g}),
464
- /* @__PURE__ */si.jsx("div",{ref:x,className:Mu(),...h,children:j})]})}function Pu(){const t=I(),s=te(),n=e.useMemo(()=>{const e=t.api.node({match:{type:t.getType(r.link)}});if(!e)return{};const[s]=e;return qo(t,s)},[t,s]);/* @__PURE__ */
465
- return si.jsx("a",{...n,className:zi({size:"sm",variant:"ghost"}),onMouseOver:e=>{e.stopPropagation()},"aria-label":"Open link in a new tab",target:"_blank",children:/* @__PURE__ */si.jsx(Fr,{width:18})})}const Hu=[ro.configure({render:{node:function(e){const t=e.editor.getApi(an).suggestion.suggestionData(e.element);/* @__PURE__ */
466
- return si.jsx(k,{...e,as:"a",className:ui("font-medium text-primary underline decoration-primary underline-offset-4","remove"===t?.type&&"bg-red-100 text-red-700","insert"===t?.type&&"bg-emerald-100 text-emerald-700"),attributes:{...e.attributes,...qo(e.editor,e.element),onMouseOver:e=>{e.stopPropagation()}},children:e.children})},afterEditable:()=>/* @__PURE__ */si.jsx(Lu,{})}})],Vu=[Kn.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle,r.img]},options:{offset:24}})];function Uu({className:e,...t}){/* @__PURE__ */
467
- return si.jsx(Xr.Root,{"data-slot":"checkbox",className:ui("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:/* @__PURE__ */si.jsx(Xr.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:/* @__PURE__ */si.jsx(mt,{className:"size-3.5"})})})}const qu={todo:{Li:function(e){/* @__PURE__ */
468
- return si.jsx("li",{className:ui("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=so({element:e.element}),{checkboxProps:r}=no(t),s=C();/* @__PURE__ */
469
- return si.jsx("div",{contentEditable:!1,children:/* @__PURE__ */si.jsx(Uu,{className:ui("-left-6 absolute top-1",s&&"pointer-events-none"),...r})})}}};function $u(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=qu[r]??{},o=Ae(e.element)?"ol":"ul";/* @__PURE__ */
470
- return si.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */si.jsx(n,{...e}),s?/* @__PURE__ */si.jsx(s,{...e}):/* @__PURE__ */si.jsx("li",{children:e.children})]})}const Wu=[...Vu,oo.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle,r.img]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */si.jsx($u,{...e})}}})];const Ku=re(Yo)({propsHook:Wo}),Zu=({className:t,isInline:r,open:s,setOpen:n,...o})=>{const a=I(),i=C(),l=O();if(e.useEffect(()=>{r&&s&&n(!0)},[r,s,n]),i)return null;const c=()=>{n(!1),r?a.tf.select(l,{focus:!0,next:!0}):a.getApi(nt).blockSelection.set(l.id)};/* @__PURE__ */
471
- return si.jsxs(El,{className:"flex gap-2",onEscapeKeyDown:e=>{e.preventDefault()},contentEditable:!1,children:[
472
- /* @__PURE__ */si.jsx(Ku,{className:ui("max-h-[50vh] grow resize-none p-2 text-sm",t),state:{isInline:r,open:s,onClose:c},autoFocus:!0,...o}),
473
- /* @__PURE__ */si.jsxs(_i,{variant:"secondary",className:"px-3",onClick:c,children:["Done ",
474
- /* @__PURE__ */si.jsx(Dt,{className:"size-3.5"})]})]})},Gu=[Zo.withComponent(function(t){const r=t.element,s=e.useRef(null),n=N(),o=M(e=>e.api.isCollapsed(),[]),[a,i]=e.useState(n&&o);return e.useEffect(()=>{n&&o&&i(!0)},[n,o]),Ko({element:r,katexRef:s,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */si.jsxs(k,{...t,className:ui("mx-1 inline-block select-none rounded-sm [&_.katex-display]:my-0!"),children:[
475
- /* @__PURE__ */si.jsxs(_l,{open:a,onOpenChange:i,modal:!1,children:[
476
- /* @__PURE__ */si.jsx(Sl,{asChild:!0,children:/* @__PURE__ */si.jsxs("div",{className:ui('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",(r.texExpression.length>0&&a||n)&&"after:bg-brand/15",0===r.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),contentEditable:!1,children:[
477
- /* @__PURE__ */si.jsx("span",{ref:s,className:ui(0===r.texExpression.length&&"hidden","font-mono leading-none")}),0===r.texExpression.length&&/* @__PURE__ */si.jsxs("span",{children:[
478
- /* @__PURE__ */si.jsx(Mr,{className:"mr-1 inline-block h-[19px] w-4 py-[1.5px] align-text-bottom"}),"New equation"]})]})}),
479
- /* @__PURE__ */si.jsx(Zu,{className:"my-auto",open:a,placeholder:"E = mc^2",setOpen:i,isInline:!0})]}),t.children]})}),Go.withComponent(function(t){const r=N(),[s,n]=e.useState(r),o=e.useRef(null);return Ko({element:t.element,katexRef:o,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */si.jsxs(k,{className:"my-1",...t,children:[
480
- /* @__PURE__ */si.jsxs(_l,{open:s,onOpenChange:n,modal:!1,children:[
481
- /* @__PURE__ */si.jsx(Sl,{asChild:!0,children:/* @__PURE__ */si.jsx("div",{className:ui("group flex cursor-pointer select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.element.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),"data-selected":r,contentEditable:!1,role:"button",children:t.element.texExpression.length>0?/* @__PURE__ */si.jsx("span",{ref:o}):/* @__PURE__ */si.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
482
- /* @__PURE__ */si.jsx(Mr,{className:"size-6 text-muted-foreground/80"}),
483
- /* @__PURE__ */si.jsx("div",{children:"Add a Tex equation"})]})})}),
484
- /* @__PURE__ */si.jsx(Zu,{open:s,placeholder:"f(x) = \\begin{cases}\n x^2, &\\quad x > 0 \\\\\n 0, &\\quad x = 0 \\\\\n -x^2, &\\quad x < 0\n\\end{cases}",isInline:!1,setOpen:n})]}),t.children]})})],Yu=et("max-w-full",{defaultVariants:{align:"center"},variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function Ju({align:e,className:t,...r}){/* @__PURE__ */
485
- return si.jsx(Qo,{...r,className:ui(Yu({align:e}),t)})}function Xu(e){/* @__PURE__ */
486
- return si.jsx(ea,{...e,className:ui("mt-2 w-full resize-none border-none bg-inherit p-0 font-[inherit] text-inherit","focus:outline-none focus:[&::placeholder]:opacity-0","text-center print:placeholder:text-transparent",e.className)})}const Qu=Rs(_i)({propsHook:Xo,stateHook:Jo}),em=A(Ds,function(e){const{align:t="center",readOnly:r,unsafeUrl:s}=pn();/* @__PURE__ */
487
- return si.jsxs(k,{...e,className:"mb-1",children:[
488
- /* @__PURE__ */si.jsxs("figure",{className:"group relative cursor-default",contentEditable:!1,children:[
489
- /* @__PURE__ */si.jsx("div",{className:"h-16",children:/* @__PURE__ */si.jsx("audio",{className:"size-full",src:s,controls:!0})}),
490
- /* @__PURE__ */si.jsx(Ju,{style:{width:"100%"},align:t,children:/* @__PURE__ */si.jsx(Xu,{className:"h-20",readOnly:r,placeholder:"Write a caption..."})})]}),e.children]})}),tm=A(Ds,function(e){const t=C(),{name:r,unsafeUrl:s}=pn();/* @__PURE__ */
491
- return si.jsxs(k,{className:"my-px rounded-sm",...e,children:[
492
- /* @__PURE__ */si.jsxs("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:r,href:s,rel:"noopener noreferrer",role:"button",target:"_blank",children:[
493
- /* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
494
- /* @__PURE__ */si.jsx(Rr,{className:"size-5"}),
495
- /* @__PURE__ */si.jsx("div",{children:r})]}),
496
- /* @__PURE__ */si.jsx(Ju,{align:"left",children:/* @__PURE__ */si.jsx(Xu,{className:"text-left",readOnly:t,placeholder:"Write a caption..."})})]}),e.children]})}),rm=et("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function sm({children:t,plugin:r}){const s=I(),n=C(),o=N(),a=R(),i=M(e=>!e.api.isExpanded(),[]),l=fn("isOpen",s.id),c=a&&!n&&o&&i&&!l,d=gn("isEditing");e.useEffect(()=>{!c&&d&&jn.set("isEditing",!1)},[c]);const u=O(),{props:m}=F({element:u});/* @__PURE__ */
497
- return si.jsxs(_l,{open:c,modal:!1,children:[
498
- /* @__PURE__ */si.jsx(Bl,{children:t}),
499
- /* @__PURE__ */si.jsx(El,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),children:d?/* @__PURE__ */si.jsx("div",{className:"flex w-[330px] flex-col",children:/* @__PURE__ */si.jsxs("div",{className:"flex items-center",children:[
500
- /* @__PURE__ */si.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */si.jsx(Jt,{className:"size-4"})}),
501
- /* @__PURE__ */si.jsx(bn.UrlInput,{className:rm(),placeholder:"Paste the embed link...",options:{plugin:r}})]})}):/* @__PURE__ */si.jsxs("div",{className:"box-content flex items-center",children:[
502
- /* @__PURE__ */si.jsx(bn.EditButton,{className:zi({size:"sm",variant:"ghost"}),children:"Edit link"}),
503
- /* @__PURE__ */si.jsx(Qu,{size:"sm",variant:"ghost",children:"Caption"}),
504
- /* @__PURE__ */si.jsx(Wi,{orientation:"vertical",className:"mx-1 h-6"}),
505
- /* @__PURE__ */si.jsx(_i,{size:"sm",variant:"ghost",...m,children:/* @__PURE__ */si.jsx(Et,{})})]})})]})}const nm=et(ui("top-0 flex w-6 select-none flex-col justify-center","after:flex after:h-16 after:w-[3px] after:rounded-[6px] after:bg-ring after:opacity-0 after:content-['_'] group-hover:after:opacity-100"),{variants:{direction:{left:"-left-3 -ml-3 pl-3",right:"-right-3 -mr-3 items-end pr-3"}}}),om=et("absolute z-40",{variants:{direction:{bottom:"w-full cursor-row-resize",left:"h-full cursor-col-resize",right:"h-full cursor-col-resize",top:"w-full cursor-row-resize"}}});function am({className:e,options:t,...r}){const s=Os(t??{}),n=As(s);return s.readOnly?null:/* @__PURE__ */si.jsx("div",{className:ui(om({direction:t?.direction}),e),"data-resizing":s.isResizing,...n.props,...r})}const im=et("",{variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function lm({align:e,className:t,...r}){/* @__PURE__ */
506
- return si.jsx(Is,{...r,className:ui(im({align:e}),t)})}const cm=A(Ds,function(e){const{align:t="center",focused:r,readOnly:s,selected:n}=pn(),o=Fs("width"),{isDragging:a,handleRef:i}=cs({element:e.element});/* @__PURE__ */
507
- return si.jsx(sm,{plugin:vn,children:/* @__PURE__ */si.jsxs(k,{...e,className:"py-2.5",children:[
508
- /* @__PURE__ */si.jsxs("figure",{className:"group relative m-0",contentEditable:!1,children:[
509
- /* @__PURE__ */si.jsxs(lm,{align:t,options:{align:t,readOnly:s},children:[
510
- /* @__PURE__ */si.jsx(am,{className:nm({direction:"left"}),options:{direction:"left"}}),
511
- /* @__PURE__ */si.jsx(yn,{ref:i,className:ui("block w-full max-w-full cursor-pointer object-cover px-0","rounded-sm",r&&n&&"ring-2 ring-ring ring-offset-2",a&&"opacity-50"),alt:e.attributes.alt}),
512
- /* @__PURE__ */si.jsx(am,{className:nm({direction:"right"}),options:{direction:"right"}})]}),
513
- /* @__PURE__ */si.jsx(Ju,{style:{width:o},align:t,children:/* @__PURE__ */si.jsx(Xu,{readOnly:s,onFocus:e=>{e.preventDefault()},placeholder:"Write a caption..."})})]}),e.children]})})});function dm({onUploadComplete:t,onUploadError:r,...s}={}){const[n,o]=e.useState(),[a,i]=e.useState(),[l,c]=e.useState(0),[d,u]=e.useState(!1);return{isUploading:d,progress:l,uploadedFile:n,uploadFile:async function(e){u(!0),i(e);try{const r=await um("editorUploader",{...s,files:[e],onUploadProgress:({progress:e})=>{c(Math.min(e,100))}});return o(r[0]),t?.(r[0]),n}catch(a){const t=function(e){const t="Something went wrong, please try again later.";if(e instanceof sa.ZodError){return e.issues.map(e=>e.message).join("\n")}if(e instanceof Error)return e.message;return t}(a),s=t.length>0?t:"Something went wrong, please try again later.";ao.error(s),r?.(a);const n={key:"mock-key-0",appUrl:`https://mock-app-url.com/${e.name}`,name:e.name,size:e.size,type:e.type,url:URL.createObjectURL(e)};let i=0;const l=async()=>{for(;i<100;)await new Promise(e=>setTimeout(e,50)),i+=2,c(Math.min(i,100))};return await l(),o(n),n}finally{c(0),u(!1),i(void 0)}},uploadingFile:a}}const{uploadFiles:um,useUploadThing:mm}=ra();const hm={[r.audio]:{accept:["audio/*"],content:"Add an audio file",icon:/* @__PURE__ */si.jsx(Hr,{})},[r.file]:{accept:["*"],content:"Add a file",icon:/* @__PURE__ */si.jsx(Rr,{})},[r.img]:{accept:["image/*"],content:"Add an image",icon:/* @__PURE__ */si.jsx(rr,{})},[r.video]:{accept:["video/*"],content:"Add a video",icon:/* @__PURE__ */si.jsx(Pr,{})}},xm=A(wn,function(t){const{editor:s,element:n}=t,{api:o}=E(xn),{isUploading:a,progress:i,uploadedFile:l,uploadFile:c,uploadingFile:d}=dm(),u=a&&d,m=hm[n.mediaType],h=n.mediaType===r.img,x=e.useRef(null),{openFilePicker:p}=io({accept:m.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{const t=e[0],r=e.slice(1);f(t),r.length>0&&s.getTransforms(xn).insert.media(r)}}),f=e.useCallback(e=>{c(e),o.placeholder.addUploadingFile(n.id,e)},[o.placeholder,n.id,c]);e.useEffect(()=>{if(!l)return;const e=s.api.findPath(n);s.tf.withoutSaving(()=>{s.tf.removeNodes({at:e});const t={children:[{text:""}],initialHeight:x.current?.height,initialWidth:x.current?.width,isUpload:!0,name:n.mediaType===r.file?l.name:"",placeholderId:n.id,type:n.mediaType,url:l.url};s.tf.insertNodes(t,{at:e}),kn(s,t)}),o.placeholder.removeUploadingFile(n.id)},[l,n.id]);const g=e.useRef(!1);return e.useEffect(()=>{if(g.current)return;g.current=!0;const e=o.placeholder.getUploadingFile(n.id);e&&f(e)},[g]),/* @__PURE__ */si.jsxs(k,{className:"my-1",...t,children:[(!u||!h)&&/* @__PURE__ */si.jsxs("div",{className:ui("flex cursor-pointer select-none items-center rounded-sm bg-muted p-3 pr-9 hover:bg-primary/10"),onClick:()=>!u&&p(),contentEditable:!1,children:[
514
- /* @__PURE__ */si.jsx("div",{className:"relative mr-3 flex text-muted-foreground/80 [&_svg]:size-6",children:m.icon}),
515
- /* @__PURE__ */si.jsxs("div",{className:"whitespace-nowrap text-muted-foreground text-sm",children:[
516
- /* @__PURE__ */si.jsx("div",{children:u?d?.name:m.content}),u&&!h&&/* @__PURE__ */si.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[
517
- /* @__PURE__ */si.jsx("div",{children:fm(d?.size??0)}),
518
- /* @__PURE__ */si.jsx("div",{children:"–"}),
519
- /* @__PURE__ */si.jsxs("div",{className:"flex items-center",children:[
520
- /* @__PURE__ */si.jsx(Lr,{className:"mr-1 size-3.5 animate-spin text-muted-foreground"}),i??0,"%"]})]})]})]}),h&&u&&/* @__PURE__ */si.jsx(pm,{file:d,imageRef:x,progress:i}),t.children]})});function pm({className:t,file:r,imageRef:s,progress:n=0}){const[o,a]=e.useState(null);return e.useEffect(()=>{const e=URL.createObjectURL(r);return a(e),()=>{URL.revokeObjectURL(e)}},[r]),o?/* @__PURE__ */si.jsxs("div",{className:ui("relative",t),contentEditable:!1,children:[
521
- /* @__PURE__ */si.jsx("img",{ref:s,className:"h-auto w-full rounded-sm object-cover",alt:r.name,src:o}),n<100&&/* @__PURE__ */si.jsxs("div",{className:"absolute right-1 bottom-1 flex items-center space-x-2 rounded-full bg-black/50 px-1 py-0.5",children:[
522
- /* @__PURE__ */si.jsx(Lr,{className:"size-3.5 animate-spin text-muted-foreground"}),
523
- /* @__PURE__ */si.jsxs("span",{className:"font-medium text-white text-xs",children:[Math.round(n),"%"]})]})]}):null}function fm(e,t={}){const{decimals:r=0,sizeType:s="normal"}=t;if(0===e)return"0 Byte";const n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(r)} ${"accurate"===s?["Bytes","KiB","MiB","GiB","TiB"][n]??"Bytest":["Bytes","KB","MB","GB","TB"][n]??"Bytes"}`}const gm=et("rounded bg-[rgba(0,0,0,0.5)] px-1",{defaultVariants:{variant:"default"},variants:{variant:{default:"text-white",disabled:"cursor-not-allowed text-gray-400"}}});function jm(e){const{props:t,ref:r}=zn();/* @__PURE__ */
524
- return si.jsx("input",{...t,...e,ref:r})}const bm=()=>{const t=T(xn,"error");e.useEffect(()=>{if(!t)return;const{code:e,data:r}=t;switch(e){case _n.INVALID_FILE_SIZE:ao.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case _n.INVALID_FILE_TYPE:ao.error(`The type of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case _n.TOO_LARGE:ao.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is too large than ${r.maxFileSize}`);break;case _n.TOO_LESS_FILES:ao.error(`The mini um number of files is ${r.minFileCount} for ${r.fileType}`);break;case _n.TOO_MANY_FILES:ao.error(`The maximum number of files is ${r.maxFileCount} ${r.fileType?`for ${r.fileType}`:""}`)}},[t])},vm=[vn.configure({options:{disableUploadInsert:!0},render:{afterEditable:function(){const e=I(),t=fn("isOpen",e.id),r=fn("scale"),s=fn("isEditingScale"),{closeProps:n,currentUrlIndex:o,maskLayerProps:a,nextDisabled:i,nextProps:l,prevDisabled:c,prevProps:d,scaleTextProps:u,zommOutProps:m,zoomInDisabled:h,zoomInProps:x,zoomOutDisabled:p}=Cn({scrollSpeed:4});/* @__PURE__ */
525
- return si.jsxs("div",{className:ui("fixed top-0 left-0 z-50 h-screen w-screen select-none",!t&&"hidden"),onContextMenu:e=>e.stopPropagation(),...a,children:[
526
- /* @__PURE__ */si.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
527
- /* @__PURE__ */si.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
528
- /* @__PURE__ */si.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:/* @__PURE__ */si.jsxs("div",{className:"relative flex max-h-screen w-full items-center",children:[
529
- /* @__PURE__ */si.jsx(Nn,{className:ui("mx-auto block max-h-[calc(100vh-4rem)] w-auto object-contain transition-transform")}),
530
- /* @__PURE__ */si.jsxs("div",{className:"-translate-x-1/2 absolute bottom-0 left-1/2 z-40 flex w-fit justify-center gap-4 p-2 text-center text-white",onClick:e=>e.stopPropagation(),children:[
531
- /* @__PURE__ */si.jsxs("div",{className:"flex gap-1",children:[
532
- /* @__PURE__ */si.jsx("button",{...d,className:ui(gm({variant:c?"disabled":"default"})),type:"button",children:/* @__PURE__ */si.jsx(ur,{})}),(o??0)+1,
533
- /* @__PURE__ */si.jsx("button",{...l,className:ui(gm({variant:i?"disabled":"default"})),type:"button",children:/* @__PURE__ */si.jsx(mr,{})})]}),
534
- /* @__PURE__ */si.jsxs("div",{className:"flex",children:[
535
- /* @__PURE__ */si.jsx("button",{className:ui(gm({variant:p?"disabled":"default"})),...m,type:"button",children:/* @__PURE__ */si.jsx(Vr,{className:"size-4"})}),
536
- /* @__PURE__ */si.jsx("div",{className:"mx-px",children:s?/* @__PURE__ */si.jsxs(si.Fragment,{children:[
537
- /* @__PURE__ */si.jsx(jm,{className:"w-10 rounded px-1 text-slate-500 outline"})," ",
538
- /* @__PURE__ */si.jsx("span",{children:"%"})]}):/* @__PURE__ */si.jsx("span",{...u,children:100*r+"%"})}),
539
- /* @__PURE__ */si.jsx("button",{className:ui(gm({variant:h?"disabled":"default"})),...x,type:"button",children:/* @__PURE__ */si.jsx(Ur,{className:"size-4"})})]}),
540
- /* @__PURE__ */si.jsx("button",{className:ui(gm()),type:"button",children:/* @__PURE__ */si.jsx(qr,{className:"size-4"})}),
541
- /* @__PURE__ */si.jsx("button",{...n,className:ui(gm()),type:"button",children:/* @__PURE__ */si.jsx($r,{className:"size-4"})})]})]})})]})},node:cm}}),Sn.withComponent(em),En.withComponent(tm),xn.configure({options:{disableEmptyPlaceholder:!0},render:{afterEditable:function(){return bm(),null},node:xm}}),ta.configure({options:{query:{allow:[r.img,r.video,r.audio,r.file,r.mediaEmbed]}}})];const ym=aa();const wm=[{key:"0",text:"Aayla Secura"},{key:"1",text:"Adi Gallia"},{key:"2",text:"Admiral Dodd Rancit"},{key:"3",text:"Admiral Firmus Piett"},{key:"4",text:"Admiral Gial Ackbar"},{key:"5",text:"Admiral Ozzel"},{key:"6",text:"Admiral Raddus"},{key:"7",text:"Admiral Terrinald Screed"},{key:"8",text:"Admiral Trench"},{key:"9",text:"Admiral U.O. Statura"},{key:"10",text:"Agen Kolar"},{key:"11",text:"Agent Kallus"},{key:"12",text:"Aiolin and Morit Astarte"},{key:"13",text:"Aks Moe"},{key:"14",text:"Almec"},{key:"15",text:"Alton Kastle"},{key:"16",text:"Amee"},{key:"17",text:"AP-5"},{key:"18",text:"Armitage Hux"},{key:"19",text:"Artoo"},{key:"20",text:"Arvel Crynyd"},{key:"21",text:"Asajj Ventress"},{key:"22",text:"Aurra Sing"},{key:"23",text:"AZI-3"},{key:"24",text:"Bala-Tik"},{key:"25",text:"Barada"},{key:"26",text:"Bargwill Tomder"},{key:"27",text:"Baron Papanoida"},{key:"28",text:"Barriss Offee"},{key:"29",text:"Baze Malbus"},{key:"30",text:"Bazine Netal"},{key:"31",text:"BB-8"},{key:"32",text:"BB-9E"},{key:"33",text:"Ben Quadinaros"},{key:"34",text:"Berch Teller"},{key:"35",text:"Beru Lars"},{key:"36",text:"Bib Fortuna"},{key:"37",text:"Biggs Darklighter"},{key:"38",text:"Black Krrsantan"},{key:"39",text:"Bo-Katan Kryze"},{key:"40",text:"Boba Fett"},{key:"41",text:"Bobbajo"},{key:"42",text:"Bodhi Rook"},{key:"43",text:"Borvo the Hutt"},{key:"44",text:"Boss Nass"},{key:"45",text:"Bossk"},{key:"46",text:"Breha Antilles-Organa"},{key:"47",text:"Bren Derlin"},{key:"48",text:"Brendol Hux"},{key:"49",text:"BT-1"}],km=[na.configure({options:{triggerPreviousCharPattern:/^$|^[\s"']$/}}).withComponent(function(t){const s=t.element,n=N(),o=z(),a=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{r(!0)},[]),t}(),i=C();/* @__PURE__ */
542
- return si.jsx(k,{...t,className:ui("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!i&&"cursor-pointer",n&&o&&"ring-2 ring-ring",!0===s.children[0][r.bold]&&"font-bold",!0===s.children[0][r.italic]&&"italic",!0===s.children[0][r.underline]&&"underline"),attributes:{...t.attributes,contentEditable:!1,"data-slate-value":s.value,draggable:!0},children:a&&g?
543
- /* @__PURE__ */si.jsxs(si.Fragment,{children:[t.children,t.prefix,s.value]}):
544
- /* @__PURE__ */si.jsxs(si.Fragment,{children:[t.prefix,s.value,t.children]})})}),oa.withComponent(function(t){const{editor:r,element:s}=t,[n,o]=e.useState("");/* @__PURE__ */
545
- return si.jsxs(k,{...t,as:"span",children:[
546
- /* @__PURE__ */si.jsxs(Mc,{value:n,element:s,setValue:o,showTrigger:!1,trigger:"@",children:[
547
- /* @__PURE__ */si.jsx("span",{className:"inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm ring-ring focus-within:ring-2",children:/* @__PURE__ */si.jsx(Rc,{})}),
548
- /* @__PURE__ */si.jsxs(Lc,{className:"my-1.5",children:[
549
- /* @__PURE__ */si.jsx(Vc,{children:"No results"}),
550
- /* @__PURE__ */si.jsx(Uc,{children:wm.map(e=>/* @__PURE__ */si.jsx(Hc,{value:e.text,onClick:()=>ym(r,e,n),children:e.text},e.key))})]})]}),t.children]})})],Cm=[{group:"Basic blocks",items:[{icon:/* @__PURE__ */si.jsx(hr,{}),keywords:["paragraph"],label:"Text",value:r.p},{icon:/* @__PURE__ */si.jsx(xr,{}),keywords:["title","h1"],label:"Heading 1",value:r.h1},{icon:/* @__PURE__ */si.jsx(pr,{}),keywords:["subtitle","h2"],label:"Heading 2",value:r.h2},{icon:/* @__PURE__ */si.jsx(fr,{}),keywords:["subtitle","h3"],label:"Heading 3",value:r.h3},{icon:/* @__PURE__ */si.jsx(gr,{}),keywords:["subtitle","h4"],label:"Heading 4",value:r.h4},{icon:/* @__PURE__ */si.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:r.h5},{icon:/* @__PURE__ */si.jsx(br,{}),keywords:["subtitle","h6"],label:"Heading 6",value:r.h6},{icon:/* @__PURE__ */si.jsx(vr,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:r.ul},{icon:/* @__PURE__ */si.jsx(Xt,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:r.ol},{icon:/* @__PURE__ */si.jsx(or,{}),label:"Table",value:r.table},{description:"Insert a highlighted block.",icon:/* @__PURE__ */si.jsx(wr,{}),keywords:["note"],label:"Callout",value:r.callout}].map(e=>({...e,onSelect:(e,t)=>{((e,t,r={})=>{const{upsert:s=!1}=r;e.tf.withoutNormalizing(()=>{const r=e.api.block();if(!r)return;const[n,o]=r,i=e.api.isEmpty(n),l=fu(n),c=t===l;s&&i&&c||(t in hu?hu[t](e,t):e.tf.insertNodes(e.api.create.block({type:t}),{at:a.next(o),select:!0}),c||e.getApi(an).suggestion.withoutSuggestions(()=>{e.tf.removeNodes({previousEmptyBlock:!0})}))})})(e,t,{upsert:!0})}}))}];const Nm=[la.configure({options:{triggerQuery:e=>!e.api.some({match:{type:e.getType(r.codeBlock)}})}}),ca.withComponent(function(e){const{editor:t,element:r}=e;/* @__PURE__ */
551
- return si.jsxs(k,{...e,as:"span",children:[
552
- /* @__PURE__ */si.jsxs(Mc,{element:r,trigger:"/",children:[
553
- /* @__PURE__ */si.jsx(Rc,{}),
554
- /* @__PURE__ */si.jsxs(Lc,{children:[
555
- /* @__PURE__ */si.jsx(Vc,{children:"No results"}),Cm.map(({group:e,items:r})=>/* @__PURE__ */si.jsxs(Uc,{children:[
556
- /* @__PURE__ */si.jsx(qc,{children:e}),r.map(({focusEditor:r,icon:s,keywords:n,label:o,value:a,onSelect:i})=>/* @__PURE__ */si.jsxs(Hc,{value:a,onClick:()=>i(t,a),label:o,focusEditor:r,group:e,keywords:n,children:[
557
- /* @__PURE__ */si.jsx("div",{className:"mr-2 text-muted-foreground",children:s}),o??a]},a))]},e))]})]}),e.children]})})];function zm(e){/* @__PURE__ */
558
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
559
- /* @__PURE__ */si.jsx("title",{children:"Border All"}),
560
- /* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",fill:"currentColor",fillRule:"evenodd"}),
561
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
562
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
563
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
564
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
565
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
566
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
567
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
568
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
569
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"})]})}function _m(e){/* @__PURE__ */
570
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
571
- /* @__PURE__ */si.jsx("title",{children:"Border Bottom"}),
572
- /* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M1 13.25L14 13.25V14.75L1 14.75V13.25Z",fill:"currentColor",fillRule:"evenodd"}),
573
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
574
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5"}),
575
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
576
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3"}),
577
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
578
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1"}),
579
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7"}),
580
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1"}),
581
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
582
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1"}),
583
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
584
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1"}),
585
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
586
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1"}),
587
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
588
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1"}),
589
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
590
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9"}),
591
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"}),
592
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11"}),
593
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5"}),
594
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3"}),
595
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7"}),
596
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1"}),
597
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9"}),
598
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11"})]})}function Sm(e){/* @__PURE__ */
599
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
600
- /* @__PURE__ */si.jsx("title",{children:"Border Left"}),
601
- /* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M1.75 1L1.75 14L0.249999 14L0.25 1L1.75 1Z",fill:"currentColor",fillRule:"evenodd"}),
602
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 7)",width:"1",x:"10",y:"7"}),
603
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 13)",width:"1",x:"10",y:"13"}),
604
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 7)",width:"1",x:"12",y:"7"}),
605
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 13)",width:"1",x:"12",y:"13"}),
606
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 7)",width:"1",x:"8",y:"7"}),
607
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 7)",width:"1",x:"14",y:"7"}),
608
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 13)",width:"1",x:"8",y:"13"}),
609
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 13)",width:"1",x:"14",y:"13"}),
610
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 5)",width:"1",x:"8",y:"5"}),
611
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 5)",width:"1",x:"14",y:"5"}),
612
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 3)",width:"1",x:"8",y:"3"}),
613
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 3)",width:"1",x:"14",y:"3"}),
614
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 9)",width:"1",x:"8",y:"9"}),
615
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 9)",width:"1",x:"14",y:"9"}),
616
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 11)",width:"1",x:"8",y:"11"}),
617
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 11)",width:"1",x:"14",y:"11"}),
618
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 7)",width:"1",x:"6",y:"7"}),
619
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 13)",width:"1",x:"6",y:"13"}),
620
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 7)",width:"1",x:"4",y:"7"}),
621
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 13)",width:"1",x:"4",y:"13"}),
622
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 1)",width:"1",x:"10",y:"1"}),
623
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 1)",width:"1",x:"12",y:"1"}),
624
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 1)",width:"1",x:"8",y:"1"}),
625
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 1)",width:"1",x:"14",y:"1"}),
626
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 1)",width:"1",x:"6",y:"1"}),
627
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 1)",width:"1",x:"4",y:"1"})]})}function Em(e){/* @__PURE__ */
628
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
629
- /* @__PURE__ */si.jsx("title",{children:"Border None"}),
630
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5.025"}),
631
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5.025"}),
632
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3.025"}),
633
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3.025"}),
634
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7.025"}),
635
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"13.025"}),
636
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1.025"}),
637
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7.025"}),
638
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"13.025"}),
639
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1.025"}),
640
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7.025"}),
641
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"13.025"}),
642
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1.025"}),
643
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7.025"}),
644
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"13.025"}),
645
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1.025"}),
646
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7.025"}),
647
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"13.025"}),
648
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1.025"}),
649
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7.025"}),
650
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"13.025"}),
651
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1.025"}),
652
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9.025"}),
653
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9.025"}),
654
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11.025"}),
655
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11.025"}),
656
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5.025"}),
657
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3.025"}),
658
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7.025"}),
659
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"13.025"}),
660
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1.025"}),
661
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9.025"}),
662
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11.025"})]})}function Bm(e){/* @__PURE__ */
663
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
664
- /* @__PURE__ */si.jsx("title",{children:"Border Right"}),
665
- /* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M13.25 1L13.25 14L14.75 14L14.75 1L13.25 1Z",fill:"currentColor",fillRule:"evenodd"}),
666
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 7)",width:"1"}),
667
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 13)",width:"1"}),
668
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 7)",width:"1"}),
669
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 13)",width:"1"}),
670
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 7)",width:"1"}),
671
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 7)",width:"1"}),
672
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 13)",width:"1"}),
673
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 13)",width:"1"}),
674
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 5)",width:"1"}),
675
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 5)",width:"1"}),
676
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 3)",width:"1"}),
677
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 3)",width:"1"}),
678
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 9)",width:"1"}),
679
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 9)",width:"1"}),
680
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 11)",width:"1"}),
681
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 11)",width:"1"}),
682
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 7)",width:"1"}),
683
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 13)",width:"1"}),
684
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 7)",width:"1"}),
685
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 13)",width:"1"}),
686
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 1)",width:"1"}),
687
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 1)",width:"1"}),
688
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 1)",width:"1"}),
689
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 1)",width:"1"}),
690
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 1)",width:"1"}),
691
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 1)",width:"1"})]})}function Tm(e){/* @__PURE__ */
692
- return si.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
693
- /* @__PURE__ */si.jsx("title",{children:"Border Top"}),
694
- /* @__PURE__ */si.jsx("path",{clipRule:"evenodd",d:"M14 1.75L1 1.75L1 0.249999L14 0.25L14 1.75Z",fill:"currentColor",fillRule:"evenodd"}),
695
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 10)",width:"1",x:"8",y:"10"}),
696
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 10)",width:"1",x:"2",y:"10"}),
697
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 12)",width:"1",x:"8",y:"12"}),
698
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 12)",width:"1",x:"2",y:"12"}),
699
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 8)",width:"1",x:"8",y:"8"}),
700
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 14)",width:"1",x:"8",y:"14"}),
701
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 8)",width:"1",x:"2",y:"8"}),
702
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 14)",width:"1",x:"2",y:"14"}),
703
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 8)",width:"1",x:"10",y:"8"}),
704
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 14)",width:"1",x:"10",y:"14"}),
705
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 8)",width:"1",x:"12",y:"8"}),
706
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 14)",width:"1",x:"12",y:"14"}),
707
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 8)",width:"1",x:"6",y:"8"}),
708
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 14)",width:"1",x:"6",y:"14"}),
709
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 8)",width:"1",x:"4",y:"8"}),
710
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 14)",width:"1",x:"4",y:"14"}),
711
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 6)",width:"1",x:"8",y:"6"}),
712
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 6)",width:"1",x:"2",y:"6"}),
713
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 4)",width:"1",x:"8",y:"4"}),
714
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 4)",width:"1",x:"2",y:"4"}),
715
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 10)",width:"1",x:"14",y:"10"}),
716
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 12)",width:"1",x:"14",y:"12"}),
717
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 8)",width:"1",x:"14",y:"8"}),
718
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 14)",width:"1",x:"14",y:"14"}),
719
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 6)",width:"1",x:"14",y:"6"}),
720
- /* @__PURE__ */si.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 4)",width:"1",x:"14",y:"4"})]})}const Dm=A(uo,function({children:e,...t}){const r=C(),s=T(nt,"isSelectionAreaVisible"),n=!r&&!s,{isSelectingCell:o,marginLeft:a,props:i}=mo(),l=at(t.element.id),c=/* @__PURE__ */si.jsx(k,{...t,className:ui("overflow-x-auto py-5",n&&"-ml-2 *:data-[slot=block-selection]:left-2"),style:{paddingLeft:a},children:/* @__PURE__ */si.jsxs("div",{className:"group/table relative w-fit",children:[
721
- /* @__PURE__ */si.jsx("table",{className:ui("mr-0 ml-px table h-px table-fixed border-collapse",o&&"selection:bg-transparent"),...i,children:/* @__PURE__ */si.jsx("tbody",{className:"min-w-full",children:e})}),l&&/* @__PURE__ */si.jsx("div",{className:wi(),contentEditable:!1})]})});return r?c:/* @__PURE__ */si.jsx(Im,{children:c})});function Im({children:e,...t}){const r=I(),{api:s}=E(rc),{tf:n}=E(lo),o=N(),a=O(),{props:i}=F({element:a}),l=M(e=>o&&e.api.isCollapsed(),[o]),c=R(),{canMerge:d,canSplit:u}=co();/* @__PURE__ */
722
- return si.jsxs(_l,{open:c&&(d||u||l),modal:!1,children:[
723
- /* @__PURE__ */si.jsx(ss,{asChild:!0,children:e}),
724
- /* @__PURE__ */si.jsx(El,{asChild:!0,onOpenAutoFocus:e=>e.preventDefault(),contentEditable:!1,...t,children:/* @__PURE__ */si.jsxs(Ki,{className:"scrollbar-hide flex w-auto max-w-[80vw] flex-row overflow-x-auto rounded-md border bg-popover p-1 shadow-md print:hidden",contentEditable:!1,children:[
725
- /* @__PURE__ */si.jsxs(sl,{children:[
726
- /* @__PURE__ */si.jsx(Am,{tooltip:"Background color",children:/* @__PURE__ */si.jsx(Ir,{})}),d&&/* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.table.merge()),onMouseDown:e=>e.preventDefault(),tooltip:"Merge cells",children:/* @__PURE__ */si.jsx(Wr,{})}),u&&/* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.table.split()),onMouseDown:e=>e.preventDefault(),tooltip:"Split cell",children:/* @__PURE__ */si.jsx(Kr,{})}),
727
- /* @__PURE__ */si.jsxs(Di,{modal:!1,children:[
728
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{tooltip:"Cell borders",children:/* @__PURE__ */si.jsx(Zr,{})})}),
729
- /* @__PURE__ */si.jsx(Ii,{children:/* @__PURE__ */si.jsx(Om,{})})]}),l&&/* @__PURE__ */si.jsx(sl,{children:/* @__PURE__ */si.jsx(Ji,{tooltip:"Delete table",...i,onClick:()=>{const e=r.api.findPath(a);(e?[...r.getApi(an).suggestion.nodes({at:e})].filter(([e])=>!e[on()]):[]).length>0?s.suggestion.withoutSuggestions(()=>i.onClick?.()):(n.select(a),n.remove.table(),r.tf.focus())},children:/* @__PURE__ */si.jsx(Et,{})})})]}),l&&/* @__PURE__ */si.jsxs(sl,{children:[
730
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.insert.tableRow({before:!0})),onMouseDown:e=>e.preventDefault(),tooltip:"Insert row before",children:/* @__PURE__ */si.jsx(cr,{})}),
731
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.insert.tableRow()),onMouseDown:e=>e.preventDefault(),tooltip:"Insert row after",children:/* @__PURE__ */si.jsx(dr,{})}),
732
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.remove.tableRow()),onMouseDown:e=>e.preventDefault(),tooltip:"Delete row",children:/* @__PURE__ */si.jsx(pt,{})})]}),l&&/* @__PURE__ */si.jsxs(sl,{children:[
733
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.insert.tableColumn({before:!0})),onMouseDown:e=>e.preventDefault(),tooltip:"Insert column before",children:/* @__PURE__ */si.jsx(ur,{})}),
734
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.insert.tableColumn()),onMouseDown:e=>e.preventDefault(),tooltip:"Insert column after",children:/* @__PURE__ */si.jsx(mr,{})}),
735
- /* @__PURE__ */si.jsx(Ji,{onClick:()=>s.suggestion.withoutSuggestions(()=>n.remove.tableColumn()),onMouseDown:e=>e.preventDefault(),tooltip:"Delete column",children:/* @__PURE__ */si.jsx(pt,{})})]})]})})]})}function Om(e){const t=I(),{getOnSelectTableBorder:r,hasBottomBorder:s,hasLeftBorder:n,hasNoBorders:o,hasOuterBorders:a,hasRightBorder:i,hasTopBorder:l}=ho();/* @__PURE__ */
736
- return si.jsxs(Ai,{className:"min-w-[220px]",onCloseAutoFocus:e=>{e.preventDefault(),t.tf.focus()},align:"start",side:"right",sideOffset:0,...e,children:[
737
- /* @__PURE__ */si.jsxs(Fi,{children:[
738
- /* @__PURE__ */si.jsxs(Ri,{checked:l,onCheckedChange:r("top"),children:[
739
- /* @__PURE__ */si.jsx(Tm,{}),
740
- /* @__PURE__ */si.jsx("div",{children:"Top Border"})]}),
741
- /* @__PURE__ */si.jsxs(Ri,{checked:i,onCheckedChange:r("right"),children:[
742
- /* @__PURE__ */si.jsx(Bm,{}),
743
- /* @__PURE__ */si.jsx("div",{children:"Right Border"})]}),
744
- /* @__PURE__ */si.jsxs(Ri,{checked:s,onCheckedChange:r("bottom"),children:[
745
- /* @__PURE__ */si.jsx(_m,{}),
746
- /* @__PURE__ */si.jsx("div",{children:"Bottom Border"})]}),
747
- /* @__PURE__ */si.jsxs(Ri,{checked:n,onCheckedChange:r("left"),children:[
748
- /* @__PURE__ */si.jsx(Sm,{}),
749
- /* @__PURE__ */si.jsx("div",{children:"Left Border"})]})]}),
750
- /* @__PURE__ */si.jsxs(Fi,{children:[
751
- /* @__PURE__ */si.jsxs(Ri,{checked:o,onCheckedChange:r("none"),children:[
752
- /* @__PURE__ */si.jsx(Em,{}),
753
- /* @__PURE__ */si.jsx("div",{children:"No Border"})]}),
754
- /* @__PURE__ */si.jsxs(Ri,{checked:a,onCheckedChange:r("outer"),children:[
755
- /* @__PURE__ */si.jsx(zm,{}),
756
- /* @__PURE__ */si.jsx("div",{children:"Outside Borders"})]})]})]})}function Am({children:t,tooltip:r}){const[s,n]=e.useState(!1),o=I(),a=T(lo,"selectedCells"),i=e.useCallback(e=>{n(!1),qs(o,{color:e,selectedCells:a??[]})},[a,o]),l=e.useCallback(()=>{n(!1),qs(o,{color:null,selectedCells:a??[]})},[a,o]);/* @__PURE__ */
757
- return si.jsxs(Di,{open:s,onOpenChange:n,modal:!1,children:[
758
- /* @__PURE__ */si.jsx(Oi,{asChild:!0,children:/* @__PURE__ */si.jsx(Ji,{tooltip:r,children:t})}),
759
- /* @__PURE__ */si.jsxs(Ai,{align:"start",children:[
760
- /* @__PURE__ */si.jsx(ol,{label:"Colors",children:/* @__PURE__ */si.jsx(Rd,{className:"px-2",colors:Ld,updateColor:i})}),
761
- /* @__PURE__ */si.jsx(Fi,{children:/* @__PURE__ */si.jsxs(Mi,{className:"p-2",onClick:l,children:[
762
- /* @__PURE__ */si.jsx($t,{}),
763
- /* @__PURE__ */si.jsx("span",{children:"Clear"})]})})]})]})}function Fm({dragRef:e}){const t=I(),r=O();/* @__PURE__ */
764
- return si.jsx(_i,{ref:e,variant:"outline",className:ui("-translate-y-1/2 absolute top-1/2 left-0 z-51 h-6 w-4 p-0 focus-visible:ring-0 focus-visible:ring-offset-0","cursor-grab active:cursor-grabbing",'opacity-0 transition-opacity duration-100 group-hover/row:opacity-100 group-has-data-[resizing="true"]/row:opacity-0'),onClick:()=>{t.tf.select(r)},children:/* @__PURE__ */si.jsx(Pt,{className:"text-muted-foreground"})})}function Mm(){const{dropLine:e}=ds();return e?/* @__PURE__ */si.jsx("div",{className:ui("absolute inset-x-0 left-2 z-50 h-0.5 bg-brand/50","top"===e?"-top-px":"-bottom-px")}):null}function Rm({isHeader:e,...t}){const{api:s}=E(lo),n=C(),o=t.element,a=se(([e])=>e.id,[],{key:r.table}),i=se(([e])=>e.id,[],{key:r.tr}),l=at(a),c=at(i)||l,d=T(nt,"isSelectionAreaVisible"),{borders:u,colIndex:m,colSpan:h,minHeight:x,rowIndex:p,selected:f,width:g}=xo(),{bottomProps:j,hiddenLeft:b,leftProps:v,rightProps:y}=po({colIndex:m,colSpan:h,rowIndex:p});/* @__PURE__ */
765
- return si.jsxs(k,{...t,as:e?"th":"td",className:ui("h-full overflow-visible border-none bg-background p-0",o.background?"bg-(--cellBackground)":"bg-background",e&&"text-left *:m-0","before:size-full",f&&"before:z-10 before:bg-brand/5","before:absolute before:box-border before:select-none before:content-['']",u.bottom?.size&&"before:border-b before:border-b-border",u.right?.size&&"before:border-r before:border-r-border",u.left?.size&&"before:border-l before:border-l-border",u.top?.size&&"before:border-t before:border-t-border"),style:{"--cellBackground":o.background,maxWidth:g||240,minWidth:g||120},attributes:{...t.attributes,colSpan:s.table.getColSpan(o),rowSpan:s.table.getRowSpan(o)},children:[
766
- /* @__PURE__ */si.jsx("div",{className:"relative z-20 box-border h-full px-3 py-2",style:{minHeight:x},children:t.children}),!d&&/* @__PURE__ */si.jsx("div",{className:"group absolute top-0 size-full select-none",contentEditable:!1,suppressContentEditableWarning:!0,children:!n&&/* @__PURE__ */si.jsxs(si.Fragment,{children:[
767
- /* @__PURE__ */si.jsx(am,{...y,className:"-top-2 -right-1 h-[calc(100%_+_8px)] w-2","data-col":m}),
768
- /* @__PURE__ */si.jsx(am,{...j,className:"-bottom-1 h-2"}),!b&&/* @__PURE__ */si.jsx(am,{...v,className:"-left-1 top-0 w-2","data-resizer-left":0===m?"true":void 0}),
769
- /* @__PURE__ */si.jsx("div",{className:ui("absolute top-0 z-30 hidden h-full w-1 bg-ring","right-[-1.5px]",Lm({colIndex:m}))}),0===m&&/* @__PURE__ */si.jsx("div",{className:ui("absolute top-0 z-30 h-full w-1 bg-ring","left-[-1.5px]",'fade-in hidden animate-in group-has-[[data-resizer-left]:hover]/table:block group-has-[[data-resizer-left][data-resizing="true"]]/table:block')})]})}),c&&/* @__PURE__ */si.jsx("div",{className:wi(),contentEditable:!1})]})}const Lm=et("fade-in hidden animate-in",{variants:{colIndex:{0:'group-has-[[data-col="0"]:hover]/table:block group-has-[[data-col="0"][data-resizing="true"]]/table:block',1:'group-has-[[data-col="1"]:hover]/table:block group-has-[[data-col="1"][data-resizing="true"]]/table:block',2:'group-has-[[data-col="2"]:hover]/table:block group-has-[[data-col="2"][data-resizing="true"]]/table:block',3:'group-has-[[data-col="3"]:hover]/table:block group-has-[[data-col="3"][data-resizing="true"]]/table:block',4:'group-has-[[data-col="4"]:hover]/table:block group-has-[[data-col="4"][data-resizing="true"]]/table:block',5:'group-has-[[data-col="5"]:hover]/table:block group-has-[[data-col="5"][data-resizing="true"]]/table:block',6:'group-has-[[data-col="6"]:hover]/table:block group-has-[[data-col="6"][data-resizing="true"]]/table:block',7:'group-has-[[data-col="7"]:hover]/table:block group-has-[[data-col="7"][data-resizing="true"]]/table:block',8:'group-has-[[data-col="8"]:hover]/table:block group-has-[[data-col="8"][data-resizing="true"]]/table:block',9:'group-has-[[data-col="9"]:hover]/table:block group-has-[[data-col="9"][data-resizing="true"]]/table:block',10:'group-has-[[data-col="10"]:hover]/table:block group-has-[[data-col="10"][data-resizing="true"]]/table:block'}}}),Pm=[lo.withComponent(Dm),fo.withComponent(function({children:e,...t}){const{element:r}=t,s=C(),n=N(),o=I(),i=T(nt,"isSelectionAreaVisible"),l=!s&&!i,{isDragging:c,nodeRef:d,previewRef:u,handleRef:m}=cs({element:r,type:r.type,canDropNode:({dragEntry:e,dropEntry:t})=>a.equals(a.parent(e[1]),a.parent(t[1])),onDropHandler:(e,{dragItem:t})=>{const r=t.element;r&&o.tf.select(r)}});/* @__PURE__ */
770
- return si.jsxs(k,{...t,ref:K(t.ref,u,d),as:"tr",className:ui("group/row",c&&"opacity-50"),attributes:{...t.attributes,"data-selected":n?"true":void 0},children:[l&&/* @__PURE__ */si.jsxs("td",{className:"w-2 select-none",contentEditable:!1,children:[
771
- /* @__PURE__ */si.jsx(Fm,{dragRef:m}),
772
- /* @__PURE__ */si.jsx(Mm,{})]}),e]})}),go.withComponent(Rm),jo.withComponent(function(e){/* @__PURE__ */
773
- return si.jsx(Rm,{...e,isHeader:!0})})],Hm=et("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const Vm=[ma.configure({options:{topOffset:80}}).withComponent(function(e){const t=da(),{props:r}=ua(t),{headingList:s}=t;/* @__PURE__ */
774
- return si.jsxs(k,{...e,className:"mb-1 p-0",children:[
775
- /* @__PURE__ */si.jsx("div",{contentEditable:!1,children:s.length>0?s.map(e=>/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:Hm({depth:e.depth}),onClick:t=>r.onClick(t,e,"smooth"),"aria-current":!0,children:e.title},e.id)):/* @__PURE__ */si.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const Um=[...Vu,pa.withComponent(function(e){const t=e.element,r=ha(t.id),{buttonProps:s,open:n}=xa(r);/* @__PURE__ */
776
- return si.jsxs(k,{...e,className:"pl-6",children:[
777
- /* @__PURE__ */si.jsx(_i,{size:"icon",variant:"ghost",className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,...s,children:/* @__PURE__ */si.jsx(Gr,{className:n?"rotate-90 transition-transform duration-75":"rotate-0 transition-transform duration-75"})}),e.children]})})],qm=[...mi,...Al,...Pm,...Um,...Vm,...vm,...vl,...$l,...Gu,...Ql,...Hu,...km,...hi,...Au,...Wu,...ni,...Fu,...Cc,...Kl,...sc,...Nm,...li,...Yl,...Ci,...Ic,...Wc,...Kc,j,...Oc,...Ni,...Bu,...Iu];function $m({children:e,mediaPicker:t}){/* @__PURE__ */
778
- return si.jsx(ku.Provider,{value:t,children:e})}function Wm({onDiscussionsChange:t}){const r=T(kc,"discussions"),s=e.useRef(null);return e.useEffect(()=>{if(s.current===r)return;s.current=r;const e=r,n=t;queueMicrotask(()=>n?.(e))},[r,t]),null}function Km(){const{isFullscreen:t,onToggleFullscreen:r}=yu();return e.useEffect(()=>{const e=e=>{"Escape"===e.key&&t&&r()};if(t)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t,r]),null}function Zm({initialValue:t,onChange:r,mode:s="draft",mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l=!1}){const{isFullscreen:c}=yu(),d=q({plugins:qm,value:t});e.useEffect(()=>{d.setOption(an,"isSuggesting","draft"===s)},[d,s]);const u=e.useRef(!1);e.useEffect(()=>{void 0!==o&&(i&&u.current||(i&&(u.current=!0),d.setOption(kc,"discussions",o)))},[d,o,i]),e.useEffect(()=>{void 0!==a&&(d.setOption(kc,"currentUser",a),d.setOption(an,"currentUserId",a))},[d,a]),e.useEffect(()=>{d.setOption(kc,"commenting",l??!1)},[d,l]);const m=/* @__PURE__ */si.jsx("div",{className:c?"h-screen w-full bg-white":"h-screen w-full bg-white rounded-sm border",children:/* @__PURE__ */si.jsxs(U,{editor:d,onChange:({value:e})=>{r?.(e)},children:[
779
- /* @__PURE__ */si.jsx(Wm,{onDiscussionsChange:i}),
780
- /* @__PURE__ */si.jsx(lc,{children:/* @__PURE__ */si.jsx(dc,{variant:"fullWidth"})})]})});return n?/* @__PURE__ */si.jsx($m,{mediaPicker:n,children:m}):m}function Gm({initialValue:t,onChange:r,mode:s="draft",mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l=!1}){const[c,d]=e.useState(!1),u=e.useCallback(()=>{d(e=>!e)},[]);/* @__PURE__ */
781
- return si.jsx("div",{className:c?"fixed inset-0 z-1450 bg-white":"",children:/* @__PURE__ */si.jsxs(vu,{isFullscreen:c,onToggleFullscreen:u,children:[
782
- /* @__PURE__ */si.jsx(Km,{}),
783
- /* @__PURE__ */si.jsx(Zm,{initialValue:t,onChange:r,mode:s,mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l})]})})}const Ym=[fa.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...r.heading,r.p,r.img,r.mediaEmbed]}})];const Jm=et("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function Xm({variant:e="h1",...t}){const r=t.element.id;/* @__PURE__ */
784
- return si.jsxs(La,{as:e,className:Jm({variant:e}),...t,children:[r&&/* @__PURE__ */si.jsx("span",{id:r}),t.children]})}const Qm=[b.withComponent(function(e){/* @__PURE__ */
785
- return si.jsx(La,{...e,className:ui("m-0 px-0 py-1"),children:e.children})}),wa.withComponent(function(e){/* @__PURE__ */
786
- return si.jsx(Xm,{variant:"h1",...e})}),ka.withComponent(function(e){/* @__PURE__ */
787
- return si.jsx(Xm,{variant:"h2",...e})}),Ca.withComponent(function(e){/* @__PURE__ */
788
- return si.jsx(Xm,{variant:"h3",...e})}),Na.withComponent(function(e){/* @__PURE__ */
789
- return si.jsx(Xm,{variant:"h4",...e})}),za.withComponent(function(e){/* @__PURE__ */
790
- return si.jsx(Xm,{variant:"h5",...e})}),_a.withComponent(function(e){/* @__PURE__ */
791
- return si.jsx(Xm,{variant:"h6",...e})}),Sa.withComponent(function(e){/* @__PURE__ */
792
- return si.jsx(La,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}),Ea.withComponent(function(e){/* @__PURE__ */
793
- return si.jsxs(La,{...e,children:[
794
- /* @__PURE__ */si.jsx("div",{className:"cursor-text py-6",contentEditable:!1,children:/* @__PURE__ */si.jsx("hr",{className:ui("h-0.5 rounded-sm border-none bg-muted bg-clip-content")})}),e.children]})})];const eh=[Ba,Ta,Da,Ia.withComponent(function(e){/* @__PURE__ */
795
- return si.jsx(Pa,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}),Oa,Aa,Fa,Ma.withComponent(function(e){/* @__PURE__ */
796
- return si.jsx(Pa,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}),Ra.withComponent(function(e){/* @__PURE__ */
797
- return si.jsx(Pa,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];const th=[vo.withComponent(function({children:e,className:t,...r}){/* @__PURE__ */
798
- return si.jsx(La,{className:ui("my-1 flex rounded-sm bg-muted p-4 pl-3",t),style:{backgroundColor:r.element.backgroundColor},...r,children:/* @__PURE__ */si.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
799
- /* @__PURE__ */si.jsx("div",{className:"size-6 select-none text-[18px]",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},children:/* @__PURE__ */si.jsx("span",{"data-plate-prevent-deserialization":!0,children:r.element.icon||"💡"})}),
800
- /* @__PURE__ */si.jsx("div",{className:"w-full",children:e})]})})})];const rh=ws(ks),sh=[Se.configure({node:{component:function(e){/* @__PURE__ */
801
- return si.jsx(La,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */si.jsx("div",{className:"relative rounded-md bg-muted/50",children:/* @__PURE__ */si.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */si.jsx("code",{children:e.children})})})})}},options:{lowlight:rh}}),Ee.withComponent(function(e){/* @__PURE__ */
802
- return si.jsx(La,{...e})}),Be.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
803
- return si.jsx(Pa,{className:t,...e})})];const nh=[Bs.withComponent(function(e){/* @__PURE__ */
804
- return si.jsx(La,{className:"mb-2",...e,children:/* @__PURE__ */si.jsx("div",{className:"flex size-full rounded",children:e.children})})}),Ts.withComponent(function(e){const{width:t}=e.element;/* @__PURE__ */
805
- return si.jsx("div",{className:"group/column relative",style:{width:t??"100%"},children:/* @__PURE__ */si.jsx(La,{className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",...e,children:/* @__PURE__ */si.jsx("div",{className:"relative h-full border border-transparent p-1.5",children:e.children})})})})];const oh=[Ps.withComponent(function(e){/* @__PURE__ */
806
- return si.jsx(Pa,{...e,className:"border-b-2 border-b-highlight/35 bg-highlight/15",children:e.children})})];const ah=[wo.withComponent(function(e){const{element:t}=e;/* @__PURE__ */
807
- return si.jsxs(La,{as:"span",className:"inline-block",...e,children:[
808
- /* @__PURE__ */si.jsx("span",{className:"w-fit rounded-sm bg-muted px-1 text-muted-foreground",children:t.date?(()=>{const e=/* @__PURE__ */new Date,r=new Date(t.date),s=r.getDate()===e.getDate()&&r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===r.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===r.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":r.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */si.jsx("span",{children:"Pick a date"})}),e.children]})})],ih={inject:{targetPlugins:[r.p]}},lh=[ga.configure(ih),ja.configure(ih),ba.configure(ih),va.configure(ih)],ch=[ya.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...r.heading,r.p]}})];const dh=[$o.withComponent(function(e){/* @__PURE__ */
809
- return si.jsx(La,{...e,as:"a",className:"font-medium text-primary underline decoration-primary underline-offset-4",attributes:{...e.attributes,...qo(e.editor,e.element)},children:e.children})})],uh=[Ua.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle]},options:{offset:24}})],mh={todo:{Li:function(e){/* @__PURE__ */
810
- return si.jsx("li",{className:ui("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=e.element.checked;/* @__PURE__ */
811
- return si.jsx("div",{contentEditable:!1,children:/* @__PURE__ */si.jsx("button",{className:ui("peer -left-6 pointer-events-none absolute top-1 size-4 shrink-0 rounded-sm border border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e.className),"data-state":t?"checked":"unchecked",type:"button",children:/* @__PURE__ */si.jsx("div",{className:ui("flex items-center justify-center text-current"),children:t&&/* @__PURE__ */si.jsx(mt,{className:"size-4"})})})})}}};function hh(e){const{indent:t,listStart:r,listStyleType:s}=e.element,{Li:n,Marker:o}=mh[s]??{},a=Ae(e.element)?"ol":"ul",i=t?24*t+"px":void 0;/* @__PURE__ */
812
- return si.jsxs(a,{className:"relative m-0 p-0",style:{listStyleType:s,marginLeft:i},start:r,children:[o&&/* @__PURE__ */si.jsx(o,{...e}),n?/* @__PURE__ */si.jsx(n,{...e}):/* @__PURE__ */si.jsx("li",{children:e.children})]})}const xh=[...uh,Fe.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */si.jsx(hh,{...e})}}})];const ph=[_o.withComponent(function(e){const t=zo({element:e.element,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
813
- return si.jsxs(La,{...e,className:"inline-block select-none rounded-sm [&_.katex-display]:my-0",children:[
814
- /* @__PURE__ */si.jsx("div",{className:ui('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",0===e.element.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),children:/* @__PURE__ */si.jsx("span",{className:ui(0===e.element.texExpression.length&&"hidden","font-mono leading-none"),dangerouslySetInnerHTML:{__html:t}})}),e.children]})}),So.withComponent(function(e){const{element:t}=e,r=zo({element:t,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
815
- return si.jsxs(La,{className:"my-1",...e,children:[
816
- /* @__PURE__ */si.jsx("div",{className:ui("group flex select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),children:t.texExpression.length>0?/* @__PURE__ */si.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):/* @__PURE__ */si.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
817
- /* @__PURE__ */si.jsx(Mr,{className:"size-6 text-muted-foreground/80"}),
818
- /* @__PURE__ */si.jsx("div",{children:"Add a Tex equation"})]})}),e.children]})})];const fh=[Io.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
819
- return si.jsxs(La,{...e,className:"py-2.5",children:[
820
- /* @__PURE__ */si.jsx("figure",{className:"group relative m-0 inline-block",style:{width:n},children:/* @__PURE__ */si.jsxs("div",{className:"relative min-w-[92px] max-w-full",style:{textAlign:t},children:[
821
- /* @__PURE__ */si.jsx("img",{className:ui("w-full max-w-full cursor-default object-cover px-0","rounded-sm"),alt:e.attributes.alt,src:s}),r&&/* @__PURE__ */si.jsx("figcaption",{className:"mx-auto mt-2 h-[24px] max-w-full",style:{textAlign:"center"},children:o.string(r[0])})]})}),e.children]})}),Oo.withComponent(function(e){/* @__PURE__ */
822
- return si.jsxs(La,{...e,className:"mb-1",children:[
823
- /* @__PURE__ */si.jsx("figure",{className:"group relative cursor-default",children:/* @__PURE__ */si.jsx("div",{className:"h-16",children:/* @__PURE__ */si.jsx("audio",{className:"size-full",src:e.element.url,controls:!0})})}),e.children]})}),Ao.withComponent(function(e){const{name:t,url:r}=e.element;/* @__PURE__ */
824
- return si.jsxs(La,{className:"my-px rounded-sm",...e,children:[
825
- /* @__PURE__ */si.jsx("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:t,href:r,rel:"noopener noreferrer",role:"button",target:"_blank",children:/* @__PURE__ */si.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
826
- /* @__PURE__ */si.jsx(Rr,{className:"size-5"}),
827
- /* @__PURE__ */si.jsx("div",{children:t})]})}),e.children]})}),qa.configure({options:{query:{allow:[r.img,r.video,r.audio,r.file,r.mediaEmbed]}}}),Fo];const gh=[ia.withComponent(function(e){const{prefix:t}=e,s=e.element;/* @__PURE__ */
828
- return si.jsxs(La,{...e,as:"span",className:ui("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!0===s.children[0][r.bold]&&"font-bold",!0===s.children[0][r.italic]&&"italic",!0===s.children[0][r.underline]&&"underline"),attributes:{...e.attributes,"data-slate-value":s.value},children:[e.children,t,s.value]})})];const jh=[en.withComponent(function(e){const{editor:t,leaf:r}=e,s=t.getApi(en).suggestion.dataList(r).some(e=>"remove"===e.type),n={delete:"del",insert:"ins",update:"span"}[s?"delete":"insert"];/* @__PURE__ */
829
- return si.jsx(Pa,{...e,as:n,className:ui("border-b-2 border-b-brand/[.24] bg-brand/[.08] text-brand/80 no-underline transition-colors duration-200",s&&"border-b-gray-300 bg-gray-300/25 text-gray-400 line-through"),children:e.children})})];function bh({isHeader:e,...t}){const{editor:r,element:s}=t,{api:n}=r.getPlugin($s),{minHeight:o,width:a}=n.table.getCellSize({element:s}),i=n.table.getCellBorders({element:s});/* @__PURE__ */
830
- return si.jsx(La,{...t,as:e?"th":"td",className:ui("h-full overflow-visible border-none bg-background p-0",s.background?"bg-(--cellBackground)":"bg-background",e&&"text-left font-normal *:m-0","before:size-full","before:absolute before:box-border before:select-none before:content-['']",i&&ui(i.bottom?.size&&"before:border-b before:border-b-border",i.right?.size&&"before:border-r before:border-r-border",i.left?.size&&"before:border-l before:border-l-border",i.top?.size&&"before:border-t before:border-t-border")),style:{"--cellBackground":s.background,maxWidth:a||240,minWidth:a||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(s),rowSpan:n.table.getRowSpan(s)},children:/* @__PURE__ */si.jsx("div",{className:"relative z-20 box-border h-full px-4 py-2",style:{minHeight:o},children:t.children})})}const vh=[$s.withComponent(function({children:e,...t}){const{disableMarginLeft:r}=t.editor.getOptions($s),s=r?0:t.element.marginLeft;/* @__PURE__ */
831
- return si.jsx(La,{...t,className:"overflow-x-auto py-5",style:{paddingLeft:s},children:/* @__PURE__ */si.jsx("div",{className:"group/table relative w-fit",children:/* @__PURE__ */si.jsx("table",{className:"mr-0 ml-px table h-px table-fixed border-collapse",style:{borderCollapse:"collapse",width:"100%"},children:/* @__PURE__ */si.jsx("tbody",{className:"min-w-full",children:e})})})})}),Ws.withComponent(function(e){/* @__PURE__ */
832
- return si.jsx(La,{...e,as:"tr",className:"h-full",children:e.children})}),Ks.withComponent(bh),Zs.withComponent(function(e){/* @__PURE__ */
833
- return si.jsx(bh,{...e,isHeader:!0})})],yh=et("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const wh={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},kh=e=>{if(!e)return[];const t=e.getOptions(Ro);if(t.queryHeading)return t.queryHeading(e);const r=[],s=e.api.nodes({at:[],match:e=>Lo(e)});return s?(Array.from(s).forEach(([e,t])=>{const{type:s}=e,n=o.string(e),a=wh[s],i=e.id;n&&r.push({id:i,depth:a,path:t,title:n,type:s})}),r):[]},Ch=[Ro.withComponent(function(e){const{editor:t}=e,r=kh(t);/* @__PURE__ */
834
- return si.jsxs(La,{...e,className:"mb-1 p-0",children:[
835
- /* @__PURE__ */si.jsx("div",{children:r.length>0?r.map(e=>/* @__PURE__ */si.jsx(_i,{variant:"ghost",className:yh({depth:e.depth}),children:e.title},e.title)):/* @__PURE__ */si.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const Nh=[...Qm,...sh,...vh,...[$a.withComponent(function(e){/* @__PURE__ */
836
- return si.jsxs(La,{...e,className:"pl-6",children:[
837
- /* @__PURE__ */si.jsx("div",{className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,children:/* @__PURE__ */si.jsx(Gr,{className:"rotate-0 transition-transform duration-75"})}),e.children]})})],...Ch,...fh,...th,...nh,...ph,...ah,...dh,...gh,...eh,...lh,...xh,...Ym,...ch,...oh,...jh];export{ni as AlignKit,li as AutoformatKit,Nh as BaseEditorKit,mi as BasicBlocksKit,hi as BasicMarksKit,Ci as BlockMenuKit,Ni as BlockPlaceholderKit,vl as CalloutKit,Al as CodeBlockKit,$l as ColumnKit,Kl as CommentKit,Yl as CursorOverlayKit,Ql as DateKit,Ic as DndKit,Oc as DocxKit,dc as Editor,lc as EditorContainer,qm as EditorKit,uc as EditorView,Kc as ExitBreakKit,Bu as FixedToolbarKit,Iu as FloatingToolbarKit,Au as FontKit,Fu as LineHeightKit,Hu as LinkKit,Wu as ListKit,Gu as MathKit,vm as MediaKit,km as MentionKit,ne as Plate,Gm as PlateEditor,oe as PlateLeaf,Ha as PlateStatic,ae as PlateView,Nm as SlashKit,sc as SuggestionKit,Pm as TableKit,Vm as TocKit,Um as ToggleKit,Si as TooltipProvider,Wa as computeDiff,v as createSlateEditor,y as createSlatePlugin,w as normalizeNodeId,ac as parseUserId,Va as serializeHtml,ie as toPlatePlugin,le as usePlateEditor,ce as usePlateViewEditor,Ka as withGetFragmentExcludeDiff};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@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-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking: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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-700:oklch(50.5% .213 27.518);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-700:oklch(50.8% .118 165.612);--color-slate-500:oklch(55.4% .046 257.417);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--radius-xs:.125rem;--animate-spin:spin 1s linear infinite;--blur-xs:4px;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@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,ui-sans-serif, system-ui, 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;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{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}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring) 50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.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}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-2{top:calc(var(--spacing) * -2)}.-top-px{top:-1px}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\\[5px\\]{top:5px}.top-\\[50\\%\\]{top:50%}.-right-1{right:calc(var(--spacing) * -1)}.-right-3{right:calc(var(--spacing) * -3)}.right-0{right:calc(var(--spacing) * 0)}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-\\[-1\\.5px\\]{right:-1.5px}.right-\\[-11px\\]{right:-11px}.-bottom-1{bottom:calc(var(--spacing) * -1)}.-bottom-px{bottom:-1px}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-0\\.5{bottom:calc(var(--spacing) * .5)}.bottom-1{bottom:calc(var(--spacing) * 1)}.bottom-2{bottom:calc(var(--spacing) * 2)}.-left-0{left:calc(var(--spacing) * 0)}.-left-0\\.5{left:calc(var(--spacing) * -.5)}.-left-1{left:calc(var(--spacing) * -1)}.-left-3{left:calc(var(--spacing) * -3)}.-left-6{left:calc(var(--spacing) * -6)}.left-0{left:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-2\\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.left-\\[-1\\.5px\\]{left:-1.5px}.left-\\[-10\\.5px\\]{left:-10.5px}.left-\\[50\\%\\]{left:50%}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-51{z-index:51}.z-100{z-index:100}.z-500{z-index:500}.z-1450{z-index:1450}.z-1500{z-index:1500}.col-span-1{grid-column:span 1/span 1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.m-8{margin:calc(var(--spacing) * 8)}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-1\\.5{margin-inline:calc(var(--spacing) * 1.5)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.mx-px{margin-inline:1px}.my-1{margin-block:calc(var(--spacing) * 1)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.my-auto{margin-block:auto}.my-px{margin-block:1px}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-\\[0\\.75em\\]{margin-top:.75em}.mt-\\[1\\.4em\\]{margin-top:1.4em}.mt-\\[1\\.6em\\]{margin-top:1.6em}.mt-\\[1em\\]{margin-top:1em}.-mr-3{margin-right:calc(var(--spacing) * -3)}.mr-0{margin-right:calc(var(--spacing) * 0)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mr-auto{margin-right:auto}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.block{display:block}.contents{display:contents}.flex{display:flex}.flex\\!{display:flex!important}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.\\!size-3{width:calc(var(--spacing) * 3)!important;height:calc(var(--spacing) * 3)!important}.\\!size-3\\.5{width:calc(var(--spacing) * 3.5)!important;height:calc(var(--spacing) * 3.5)!important}.size-\\(--cell-size\\){width:var(--cell-size);height:var(--cell-size)}.size-0{width:calc(var(--spacing) * 0);height:calc(var(--spacing) * 0)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-\\[28px\\]{width:28px;height:28px}.size-\\[130px\\]{width:130px;height:130px}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\\(--cell-size\\){height:var(--cell-size)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[1\\.5em\\]{height:1.5em}.h-\\[19px\\]{height:19px}.h-\\[23rem\\]{height:23rem}.h-\\[24px\\]{height:24px}.h-\\[28px\\]{height:28px}.h-\\[344px\\]{height:344px}.h-\\[650px\\]{height:650px}.h-\\[calc\\(100\\%\\+8px\\)\\]{height:calc(100% + 8px)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\(--radix-context-menu-content-available-height\\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\\(--radix-dropdown-menu-content-available-height\\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-14{max-height:calc(var(--spacing) * 14)}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[calc\\(100vh-4rem\\)\\]{max-height:calc(100vh - 4rem)}.max-h-\\[min\\(50dvh\\,calc\\(-24px\\+var\\(--radix-popper-available-height\\)\\)\\)\\]{max-height:min(50dvh,calc(-24px + var(--radix-popper-available-height)))}.max-h-\\[min\\(70vh\\,320px\\)\\]{max-height:min(70vh,320px)}.max-h-screen{max-height:100vh}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-\\[1lh\\]{min-height:1lh}.min-h-\\[25px\\]{min-height:25px}.min-h-\\[50\\%\\]{min-height:50%}.w-\\(--cell-size\\){width:var(--cell-size)}.w-0\\.5{width:calc(var(--spacing) * .5)}.w-1{width:calc(var(--spacing) * 1)}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\.5{width:calc(var(--spacing) * 4.5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\\[180px\\]{width:180px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[330px\\]{width:330px}.w-\\[380px\\]{width:380px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.max-w-\\[calc\\(100vw-24px\\)\\]{max-width:calc(100vw - 24px)}.max-w-full{max-width:100%}.min-w-\\(--cell-size\\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[92px\\]{min-width:92px}.min-w-\\[125px\\]{min-width:125px}.min-w-\\[130px\\]{min-width:130px}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[220px\\]{min-width:220px}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.origin-\\(--radix-context-menu-content-transform-origin\\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\\(--radix-dropdown-menu-content-transform-origin\\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\\(--radix-popover-content-transform-origin\\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\\(--radix-tooltip-content-transform-origin\\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\\[repeat\\(10\\,1fr\\)\\]{grid-template-columns:repeat(10,1fr)}.grid-rows-\\[auto_1fr\\]{grid-template-rows:auto 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-evenly{justify-content:space-evenly}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-x-1{column-gap:calc(var(--spacing) * 1)}:where(.-space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\[1\\.5px\\]{border-style:var(--tw-border-style);border-width:1.5px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-border{border-color:var(--border)}.border-current{border-color:currentColor}.border-input{border-color:var(--input)}.border-muted{border-color:var(--muted)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.border-b-border{border-bottom-color:var(--border)}.border-b-brand\\/\\[\\.24\\]{border-bottom-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.border-b-brand\\/\\[\\.24\\]{border-bottom-color:color-mix(in oklab,var(--brand) 24%,transparent)}}.border-b-gray-300{border-bottom-color:var(--color-gray-300)}.border-b-highlight,.border-b-highlight\\/35{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/35{border-bottom-color:color-mix(in oklab,var(--highlight) 35%,transparent)}}.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.7\\]{border-bottom-color:color-mix(in oklab,var(--highlight) 70%,transparent)}}.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.border-b-highlight\\/\\[\\.36\\]{border-bottom-color:color-mix(in oklab,var(--highlight) 36%,transparent)}}.bg-\\(--cellBackground\\){background-color:var(--cellBackground)}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{background-color:#00000080}.bg-accent{background-color:var(--accent)}.bg-background,.bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\\/95{background-color:color-mix(in oklab,var(--background) 95%,transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-border{background-color:var(--border)}.bg-brand,.bg-brand\\/25{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/25{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.bg-brand\\/50{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/50{background-color:color-mix(in oklab,var(--brand) 50%,transparent)}}.bg-brand\\/\\[\\.08\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.08\\]{background-color:color-mix(in oklab,var(--brand) 8%,transparent)}}.bg-brand\\/\\[\\.13\\]{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.bg-brand\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--brand) 13%,transparent)}}.bg-current{background-color:currentColor}.bg-destructive{background-color:var(--destructive)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-200\\/80{background-color:#a4f4cfcc}@supports (color:color-mix(in lab,red,red)){.bg-emerald-200\\/80{background-color:color-mix(in oklab,var(--color-emerald-200) 80%,transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-gray-300\\/25{background-color:#d1d5dc40}@supports (color:color-mix(in lab,red,red)){.bg-gray-300\\/25{background-color:color-mix(in oklab,var(--color-gray-300) 25%,transparent)}}.bg-highlight,.bg-highlight\\/15{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/15{background-color:color-mix(in oklab,var(--highlight) 15%,transparent)}}.bg-highlight\\/25{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/25{background-color:color-mix(in oklab,var(--highlight) 25%,transparent)}}.bg-highlight\\/30{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/30{background-color:color-mix(in oklab,var(--highlight) 30%,transparent)}}.bg-highlight\\/45{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/45{background-color:color-mix(in oklab,var(--highlight) 45%,transparent)}}.bg-highlight\\/\\[\\.13\\]{background-color:var(--highlight)}@supports (color:color-mix(in lab,red,red)){.bg-highlight\\/\\[\\.13\\]{background-color:color-mix(in oklab,var(--highlight) 13%,transparent)}}.bg-inherit{background-color:inherit}.bg-muted,.bg-muted\\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-popover,.bg-popover\\/90{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.bg-popover\\/90{background-color:color-mix(in oklab,var(--popover) 90%,transparent)}}.bg-primary,.bg-primary\\/40{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/40{background-color:color-mix(in oklab,var(--primary) 40%,transparent)}}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200\\/80{background-color:#ffcacacc}@supports (color:color-mix(in lab,red,red)){.bg-red-200\\/80{background-color:color-mix(in oklab,var(--color-red-200) 80%,transparent)}}.bg-ring{background-color:var(--ring)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-clip-content{background-clip:content-box}.fill-current{fill:currentColor}.fill-foreground{fill:var(--foreground)}.fill-primary{fill:var(--primary)}.stroke-\\[3px\\]{stroke-width:3px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-px{padding:1px}.\\!px-1{padding-inline:calc(var(--spacing) * 1)!important}.\\!px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)!important}.px-\\(--cell-size\\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-0\\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.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-6{padding-inline:calc(var(--spacing) * 6)}.px-10{padding-inline:calc(var(--spacing) * 10)}.px-16{padding-inline:calc(var(--spacing) * 16)}.px-\\[0\\.3em\\]{padding-inline:.3em}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-\\[0\\.2em\\]{padding-block:.2em}.py-\\[1\\.5px\\]{padding-block:1.5px}.py-\\[3px\\]{padding-block:3px}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-72{padding-bottom:calc(var(--spacing) * 72)}.pb-px{padding-bottom:1px}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-\\[26px\\]{padding-left:26px}.pl-\\[32px\\]{padding-left:32px}.pl-\\[50px\\]{padding-left:50px}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.align-baseline{vertical-align:baseline}.align-text-bottom{vertical-align:text-bottom}.font-\\[inherit\\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[18px\\]{font-size:18px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-background{color:var(--background)}.text-brand\\/80{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.text-brand\\/80{color:color-mix(in oklab,var(--brand) 80%,transparent)}}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-emerald-700{color:var(--color-emerald-700)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-inherit{color:inherit}.text-muted-foreground,.text-muted-foreground\\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/70{color:color-mix(in oklab,var(--muted-foreground) 70%,transparent)}}.text-muted-foreground\\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\\/80{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-500{color:var(--color-slate-500)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-primary{-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}.decoration-\\[0\\.5px\\]{text-decoration-thickness:.5px}.underline-offset-4{text-underline-offset:4px}.caret-primary{caret-color:var(--primary)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(248\\,_249\\,_250\\)_0px_1px_5px_0px_inset\\,_rgb\\(193\\,_200\\,_205\\)_0px_0px_0px_0\\.5px\\,_rgb\\(193\\,_200\\,_205\\)_0px_2px_1px_-1px\\,_rgb\\(193\\,_200\\,_205\\)_0px_1px_0px_0px\\]{--tw-shadow-color:color-mix(in oklab, #ffffff1a 0px .5px 0px 0px inset, #f8f9fa 0px 1px 5px 0px inset, #c1c8cd 0px 0px 0px .5px, #c1c8cd 0px 2px 1px -1px, #c1c8cd 0px 1px 0px 0px var(--tw-shadow-alpha), transparent)}}.ring-background{--tw-ring-color:var(--background)}.ring-ring{--tw-ring-color:var(--ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\\!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,)!important}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\\[--cell-size\\:--spacing\\(8\\)\\]{--cell-size:calc(var(--spacing) * 8)}.\\[tab-size\\:2\\]{tab-size:2}.fade-in{--tw-enter-opacity:0}:is(.\\*\\:m-0>*){margin:calc(var(--spacing) * 0)}.not-last\\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.group-first\\/column\\:-left-1:is(:where(.group\\/column):first-child *){left:calc(var(--spacing) * -1)}.group-first\\/column\\:pl-0:is(:where(.group\\/column):first-child *){padding-left:calc(var(--spacing) * 0)}.group-last\\/column\\:-right-1:is(:where(.group\\/column):last-child *){right:calc(var(--spacing) * -1)}.group-last\\/column\\:pr-0:is(:where(.group\\/column):last-child *){padding-right:calc(var(--spacing) * 0)}.group-last\\/toolbar-group\\:hidden\\!:is(:where(.group\\/toolbar-group):last-child *){display:none!important}.group-focus-within\\:pointer-events-none:is(:where(.group):focus-within *){pointer-events:none}.group-focus-within\\:top-0:is(:where(.group):focus-within *){top:calc(var(--spacing) * 0)}.group-focus-within\\:cursor-default:is(:where(.group):focus-within *){cursor:default}.group-focus-within\\:text-xs:is(:where(.group):focus-within *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.group-focus-within\\:font-medium:is(:where(.group):focus-within *){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.group-focus-within\\:text-foreground:is(:where(.group):focus-within *){color:var(--foreground)}@media(hover:hover){.group-hover\\:opacity-100:is(:where(.group):hover *),.group-hover\\/column\\:opacity-100:is(:where(.group\\/column):hover *),.group-hover\\/container\\:opacity-100:is(:where(.group\\/container):hover *),.group-hover\\/row\\:opacity-100:is(:where(.group\\/row):hover *){opacity:1}}.group-has-data-\\[resizing\\=\\"true\\"\\]\\/row\\:opacity-0:is(:where(.group\\/row):has([data-resizing=true]) *){opacity:0}.group-has-data-\\[size\\=lg\\]\\/avatar-group\\:size-10:is(:where(.group\\/avatar-group):has([data-size=lg]) *){width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.group-has-data-\\[size\\=sm\\]\\/avatar-group\\:size-6:is(:where(.group\\/avatar-group):has([data-size=sm]) *){width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.group-has-\\[\\[data-col\\=\\"0\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"]:hover) *),.group-has-\\[\\[data-col\\=\\"0\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="0"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"]:hover) *),.group-has-\\[\\[data-col\\=\\"1\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="1"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"]:hover) *),.group-has-\\[\\[data-col\\=\\"10\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="10"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"]:hover) *),.group-has-\\[\\[data-col\\=\\"2\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="2"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"]:hover) *),.group-has-\\[\\[data-col\\=\\"3\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="3"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"]:hover) *),.group-has-\\[\\[data-col\\=\\"4\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="4"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"]:hover) *),.group-has-\\[\\[data-col\\=\\"5\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="5"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"]:hover) *),.group-has-\\[\\[data-col\\=\\"6\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="6"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"]:hover) *),.group-has-\\[\\[data-col\\=\\"7\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="7"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"]:hover) *),.group-has-\\[\\[data-col\\=\\"8\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="8"][data-resizing=true]) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"]:hover) *),.group-has-\\[\\[data-col\\=\\"9\\"\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-col="9"][data-resizing=true]) *),.group-has-\\[\\[data-resizer-left\\]\\:hover\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left]:hover) *),.group-has-\\[\\[data-resizer-left\\]\\[data-resizing\\=\\"true\\"\\]\\]\\/table\\:block:is(:where(.group\\/table):has([data-resizer-left][data-resizing=true]) *){display:block}.group-data-\\[focused\\=true\\]\\/day\\:relative:is(:where(.group\\/day)[data-focused=true] *){position:relative}.group-data-\\[focused\\=true\\]\\/day\\:z-10:is(:where(.group\\/day)[data-focused=true] *){z-index:10}.group-data-\\[focused\\=true\\]\\/day\\:border-ring:is(:where(.group\\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\\[focused\\=true\\]\\/day\\:ring-\\[3px\\]:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\\[focused\\=true\\]\\/day\\:ring-ring\\/50:is(:where(.group\\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.group-data-\\[pressed\\=true\\]\\:bg-accent:is(:where(.group)[data-pressed=true] *){background-color:var(--accent)}.group-data-\\[pressed\\=true\\]\\:text-accent-foreground:is(:where(.group)[data-pressed=true] *){color:var(--accent-foreground)}.group-data-\\[size\\=default\\]\\/avatar\\:size-2\\.5:is(:where(.group\\/avatar)[data-size=default] *){width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.group-data-\\[size\\=lg\\]\\/avatar\\:size-3:is(:where(.group\\/avatar)[data-size=lg] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\\[size\\=sm\\]\\/alert-dialog-content\\:grid:is(:where(.group\\/alert-dialog-content)[data-size=sm] *){display:grid}.group-data-\\[size\\=sm\\]\\/alert-dialog-content\\:grid-cols-2:is(:where(.group\\/alert-dialog-content)[data-size=sm] *){grid-template-columns:repeat(2,minmax(0,1fr))}.group-data-\\[size\\=sm\\]\\/avatar\\:size-2:is(:where(.group\\/avatar)[data-size=sm] *){width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\\[size\\=sm\\]\\/avatar\\:text-xs:is(:where(.group\\/avatar)[data-size=sm] *){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.peer-has-\\[\\[role\\=menuitem\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitem])~*),.peer-has-\\[\\[role\\=menuitemradio\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=menuitemradio])~*),.peer-has-\\[\\[role\\=option\\]\\]\\/menu-group\\:block:is(:where(.peer\\/menu-group):has([role=option])~*){display:block}.selection\\:bg-brand\\/25 ::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25 ::selection{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.selection\\:bg-brand\\/25::selection{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.selection\\:bg-brand\\/25::selection{background-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.selection\\:bg-primary ::selection{background-color:var(--primary)}.selection\\:bg-primary::selection{background-color:var(--primary)}.selection\\:bg-transparent ::selection{background-color:#0000}.selection\\:bg-transparent::selection{background-color:#0000}.selection\\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\\:inline-flex::file-selector-button{display:inline-flex}.file\\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-muted-foreground::placeholder,.placeholder\\:text-muted-foreground\\/80::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-muted-foreground\\/80::placeholder{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:box-border:before{content:var(--tw-content);box-sizing:border-box}.before\\:size-full:before{content:var(--tw-content);width:100%;height:100%}.before\\:cursor-text:before{content:var(--tw-content);cursor:text}.before\\:border-t:before{content:var(--tw-content);border-top-style:var(--tw-border-style);border-top-width:1px}.before\\:border-r:before{content:var(--tw-content);border-right-style:var(--tw-border-style);border-right-width:1px}.before\\:border-b:before{content:var(--tw-content);border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.before\\:border-l:before{content:var(--tw-content);border-left-style:var(--tw-border-style);border-left-width:1px}.before\\:border-t-border:before{content:var(--tw-content);border-top-color:var(--border)}.before\\:border-r-border:before{content:var(--tw-content);border-right-color:var(--border)}.before\\:border-b-border:before{content:var(--tw-content);border-bottom-color:var(--border)}.before\\:border-l-border:before{content:var(--tw-content);border-left-color:var(--border)}.before\\:bg-brand\\/5:before{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.before\\:bg-brand\\/5:before{background-color:color-mix(in oklab,var(--brand) 5%,transparent)}}.before\\:text-muted-foreground\\/80:before{content:var(--tw-content);color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.before\\:text-muted-foreground\\/80:before{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.before\\:content-\\[\\\'\\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:content-\\[attr\\(placeholder\\)\\]:before{--tw-content:attr(placeholder);content:var(--tw-content)}.before\\:select-none:before{content:var(--tw-content);-webkit-user-select:none;user-select:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:calc(var(--spacing) * 0)}.after\\:-top-0\\.5:after{content:var(--tw-content);top:calc(var(--spacing) * -.5)}.after\\:-left-1:after{content:var(--tw-content);left:calc(var(--spacing) * -1)}.after\\:z-1:after{content:var(--tw-content);z-index:1}.after\\:flex:after{content:var(--tw-content);display:flex}.after\\:h-16:after{content:var(--tw-content);height:calc(var(--spacing) * 16)}.after\\:h-\\[calc\\(100\\%\\)\\+4px\\]:after{content:var(--tw-content);height:100% 4px}.after\\:w-\\[3px\\]:after{content:var(--tw-content);width:3px}.after\\:w-\\[calc\\(100\\%\\+8px\\)\\]:after{content:var(--tw-content);width:calc(100% + 8px)}.after\\:rounded-\\[6px\\]:after{content:var(--tw-content);border-radius:6px}.after\\:rounded-sm:after{content:var(--tw-content);border-radius:calc(var(--radius) - 4px)}.after\\:bg-brand\\/15:after{content:var(--tw-content);background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.after\\:bg-brand\\/15:after{background-color:color-mix(in oklab,var(--brand) 15%,transparent)}}.after\\:bg-neutral-500\\/10:after{content:var(--tw-content);background-color:#7373731a}@supports (color:color-mix(in lab,red,red)){.after\\:bg-neutral-500\\/10:after{background-color:color-mix(in oklab,var(--color-neutral-500) 10%,transparent)}}.after\\:bg-ring:after{content:var(--tw-content);background-color:var(--ring)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:content-\\[\\"\\"\\]:after{--tw-content:"";content:var(--tw-content)}.after\\:content-\\[\\\'_\\\'\\]:after{--tw-content:" ";content:var(--tw-content)}@media(hover:hover){.group-hover\\:after\\:opacity-100:is(:where(.group):hover *):after{content:var(--tw-content);opacity:1}}.focus-within\\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus-within\\:ring-ring:focus-within{--tw-ring-color:var(--ring)}.focus-within\\:ring-offset-2:focus-within{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}@media(hover:hover){.hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\\:bg-muted:hover{background-color:var(--muted)}.hover\\:bg-muted-foreground\\/15:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-muted-foreground\\/15:hover{background-color:color-mix(in oklab,var(--muted-foreground) 15%,transparent)}}.hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-brand\\/80:hover{color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-brand\\/80:hover{color:color-mix(in oklab,var(--brand) 80%,transparent)}}.hover\\:text-muted-foreground:hover,.hover\\:text-muted-foreground\\/80:hover{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-muted-foreground\\/80:hover{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + 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)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\\:ring-ring:focus-visible,.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:cursor-grabbing:active{cursor:grabbing}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-focus\\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\\:ring-\\[3px\\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + 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)}.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\\:ring-ring\\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.has-aria-disabled\\:border-input:has([aria-disabled=true]){border-color:var(--input)}.has-aria-disabled\\:bg-muted:has([aria-disabled=true]){background-color:var(--muted)}.has-data-readonly\\:w-fit:has([data-readonly]){width:fit-content}.has-data-readonly\\:cursor-default:has([data-readonly]){cursor:default}.has-data-readonly\\:border-transparent:has([data-readonly]){border-color:#0000}.has-data-readonly\\:focus-within\\:\\[box-shadow\\:none\\]:has([data-readonly]):focus-within{box-shadow:none}.has-data-\\[slot\\=alert-dialog-media\\]\\:grid-rows-\\[auto_auto_1fr\\]:has([data-slot=alert-dialog-media]){grid-template-rows:auto auto 1fr}.has-data-\\[slot\\=alert-dialog-media\\]\\:gap-x-6:has([data-slot=alert-dialog-media]){column-gap:calc(var(--spacing) * 6)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:border-brand\\/50:has([data-slate-editor]:focus){border-color:color-mix(in oklab,var(--brand) 50%,transparent)}}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-2:has([data-slate-editor]:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slate-editor\\]\\:focus\\]\\:ring-brand\\/30:has([data-slate-editor]:focus){--tw-ring-color:color-mix(in oklab, var(--brand) 30%, transparent)}}.has-\\[\\[role\\=menuitem\\]\\]\\:block:has([role=menuitem]),.has-\\[\\[role\\=menuitemradio\\]\\]\\:block:has([role=menuitemradio]),.has-\\[\\[role\\=option\\]\\]\\:block:has([role=option]){display:block}.has-\\[button\\]\\:flex:has(:is(button)){display:flex}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:pointer-events-none:has(+input:not(:placeholder-shown)){pointer-events:none}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:top-0:has(+input:not(:placeholder-shown)){top:calc(var(--spacing) * 0)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:cursor-default:has(+input:not(:placeholder-shown)){cursor:default}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-xs:has(+input:not(:placeholder-shown)){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:font-medium:has(+input:not(:placeholder-shown)){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.has-\\[\\+input\\:not\\(\\:placeholder-shown\\)\\]\\:text-foreground:has(+input:not(:placeholder-shown)){color:var(--foreground)}.has-\\[\\>svg\\]\\:px-1\\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-checked\\:bg-accent[aria-checked=true]{background-color:var(--accent)}.aria-checked\\:text-accent-foreground[aria-checked=true]{color:var(--accent-foreground)}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.aria-selected\\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-readonly\\:w-fit[data-readonly]{width:fit-content}:is(.\\*\\*\\:data-slate-placeholder\\:\\!top-1\\/2 *)[data-slate-placeholder]{top:50%!important}:is(.\\*\\*\\:data-slate-placeholder\\:-translate-y-1\\/2 *)[data-slate-placeholder]{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){:is(.\\*\\*\\:data-slate-placeholder\\:text-muted-foreground\\/80 *)[data-slate-placeholder]{color:color-mix(in oklab,var(--muted-foreground) 80%,transparent)}}:is(.\\*\\*\\:data-slate-placeholder\\:opacity-100\\! *)[data-slate-placeholder]{opacity:1!important}.data-\\[active-item\\=true\\]\\:bg-accent[data-active-item=true]{background-color:var(--accent)}.data-\\[active-item\\=true\\]\\:text-accent-foreground[data-active-item=true]{color:var(--accent-foreground)}.data-\\[active\\=true\\]\\:bg-muted[data-active=true]{background-color:var(--muted)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true]{opacity:.5}.data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.data-\\[range-end\\=true\\]\\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[range-end\\=true\\]\\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\\[range-end\\=true\\]\\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\\[range-middle\\=true\\]\\:rounded-none[data-range-middle=true]{border-radius:0}.data-\\[range-middle\\=true\\]\\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\\[range-middle\\=true\\]\\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\\[range-start\\=true\\]\\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\\[range-start\\=true\\]\\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\\[range-start\\=true\\]\\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\\[selected-single\\=true\\]\\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\\[selected-single\\=true\\]\\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\\[selected\\=true\\]\\:rounded-none[data-selected=true]{border-radius:0}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\\[selected\\=true\\]\\:bg-primary\\/10[data-selected=true]{background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[size\\=lg\\]\\:size-10[data-size=lg]{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.data-\\[size\\=sm\\]\\:size-6[data-size=sm]{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.data-\\[size\\=sm\\]\\:max-w-xs[data-size=sm]{max-width:var(--container-xs)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:ring-2>*)[data-slot=avatar]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + 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)}:is(.\\*\\:data-\\[slot\\=avatar\\]\\:ring-background>*)[data-slot=avatar]{--tw-ring-color:var(--background)}:is(.\\*\\:data-\\[slot\\=block-selection\\]\\:left-2>*)[data-slot=block-selection]{left:calc(var(--spacing) * 2)}:is(.\\*\\*\\:data-\\[slot\\=command-input-wrapper\\]\\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing) * 12)}.data-\\[state\\=checked\\]\\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-accent[data-state=checked]{background-color:var(--accent)}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=closed\\]\\:opacity-0[data-state=closed]{opacity:0}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 10%,transparent)}}.data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}@supports (backdrop-blur:var(--tw)){.supports-backdrop-blur\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-blur\\:bg-background\\/60{background-color:color-mix(in oklab,var(--background) 60%,transparent)}}}@media(min-width:40rem){.sm\\:max-w-lg{max-width:var(--container-lg)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:px-24{padding-inline:calc(var(--spacing) * 24)}.sm\\:px-\\[max\\(64px\\,calc\\(50\\%-350px\\)\\)\\]{padding-inline:max(64px,50% - 350px)}.sm\\:text-left{text-align:left}.sm\\:opacity-0{opacity:0}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:row-span-2:is(:where(.group\\/alert-dialog-content)[data-size=default] *){grid-row:span 2/span 2}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:place-items-start:is(:where(.group\\/alert-dialog-content)[data-size=default] *){place-items:start}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:text-left:is(:where(.group\\/alert-dialog-content)[data-size=default] *){text-align:left}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:group-has-data-\\[slot\\=alert-dialog-media\\]\\/alert-dialog-content\\:col-start-2:is(:where(.group\\/alert-dialog-content)[data-size=default] *):is(:where(.group\\/alert-dialog-content):has([data-slot=alert-dialog-media]) *){grid-column-start:2}.sm\\:group-data-\\[size\\=default\\]\\/alert-dialog-content\\:has-data-\\[slot\\=alert-dialog-media\\]\\:grid-rows-\\[auto_1fr\\]:is(:where(.group\\/alert-dialog-content)[data-size=default] *):has([data-slot=alert-dialog-media]){grid-template-rows:auto 1fr}.data-\\[size\\=default\\]\\:sm\\:max-w-lg[data-size=default]{max-width:var(--container-lg)}}@media(min-width:48rem){.md\\:flex-row{flex-direction:row}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-input:is(.dark *){border-color:var(--input)}.dark\\:bg-destructive\\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-destructive\\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive) 60%,transparent)}}.dark\\:bg-input\\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input) 30%,transparent)}}.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\\:shadow-\\[rgba\\(255\\,_255\\,_255\\,_0\\.1\\)_0px_0\\.5px_0px_0px_inset\\,_rgb\\(26\\,_29\\,_30\\)_0px_1px_5px_0px_inset\\,_rgb\\(76\\,_81\\,_85\\)_0px_0px_0px_0\\.5px\\,_rgb\\(76\\,_81\\,_85\\)_0px_2px_1px_-1px\\,_rgb\\(76\\,_81\\,_85\\)_0px_1px_0px_0px\\]:is(.dark *){--tw-shadow-color:color-mix(in oklab, #ffffff1a 0px .5px 0px 0px inset, #1a1d1e 0px 1px 5px 0px inset, #4c5155 0px 0px 0px .5px, #4c5155 0px 2px 1px -1px, #4c5155 0px 1px 0px 0px var(--tw-shadow-alpha), transparent)}}@media(hover:hover){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-accent\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent) 50%,transparent)}}.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\\:hover\\:bg-input\\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input) 50%,transparent)}}.dark\\:hover\\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:focus-visible\\:ring-destructive\\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:aria-invalid\\:ring-destructive\\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\\:data-\\[state\\=checked\\]\\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}@media print{.print\\:hidden{display:none}.print\\:break-inside-avoid{break-inside:avoid}.print\\:placeholder\\:text-transparent::placeholder{color:#0000}}.\\[\\&_\\.katex-display\\]\\:my-0 .katex-display{margin-block:calc(var(--spacing) * 0)}.\\[\\&_\\.katex-display\\]\\:my-0\\! .katex-display{margin-block:calc(var(--spacing) * 0)!important}.\\[\\&_\\.slate-selection-area\\]\\:z-50 .slate-selection-area{z-index:50}.\\[\\&_\\.slate-selection-area\\]\\:border .slate-selection-area{border-style:var(--tw-border-style);border-width:1px}.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:border-brand\\/25 .slate-selection-area{border-color:color-mix(in oklab,var(--brand) 25%,transparent)}}.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:var(--brand)}@supports (color:color-mix(in lab,red,red)){.\\[\\&_\\.slate-selection-area\\]\\:bg-brand\\/15 .slate-selection-area{background-color:color-mix(in oklab,var(--brand) 15%,transparent)}}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing) * 1.5)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing) * 0)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:calc(var(--spacing) * 12)}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing) * 2)}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-block:calc(var(--spacing) * 3)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:calc(var(--spacing) * 5)}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:calc(var(--spacing) * 5)}.\\[\\&_strong\\]\\:font-bold strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\]\\:size-6 svg{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\\'text-\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-4::-webkit-scrollbar{width:calc(var(--spacing) * 4)}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:hidden::-webkit-scrollbar-button{display:none}.\\[\\&\\:\\:-webkit-scrollbar-button\\]\\:size-0::-webkit-scrollbar-button{width:calc(var(--spacing) * 0);height:calc(var(--spacing) * 0)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:min-h-11::-webkit-scrollbar-thumb{min-height:calc(var(--spacing) * 11)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-4::-webkit-scrollbar-thumb{border-style:var(--tw-border-style);border-width:4px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-solid::-webkit-scrollbar-thumb{--tw-border-style:solid;border-style:solid}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:border-popover::-webkit-scrollbar-thumb{border-color:var(--popover)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-muted::-webkit-scrollbar-thumb{background-color:var(--muted)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-clip-padding::-webkit-scrollbar-thumb{background-clip:padding-box}@media(hover:hover){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:hover\\:bg-muted-foreground\\/25::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground) 25%,transparent)}}}.focus\\:\\[\\&\\:\\:placeholder\\]\\:opacity-0:focus::placeholder{opacity:0}.\\[\\&\\:first-child\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[role\\=option\\]\\)\\]\\:block:has([role=option]){display:block}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#f0fff4\\] *).hljs-addition{background-color:#f0fff4}:is(.\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#22863a\\] *).hljs-addition{color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:bg-\\[\\#3c5743\\]:is(.dark *) *).hljs-addition{background-color:#3c5743}:is(.dark\\:\\*\\*\\:\\[\\.hljs-addition\\]\\:text-\\[\\#ceead5\\]:is(.dark *) *).hljs-addition{color:#ceead5}:is(.\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#005cc5\\] *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-attr\\,\\.hljs-attribute\\,\\.hljs-literal\\,\\.hljs-meta\\,\\.hljs-number\\,\\.hljs-operator\\,\\.hljs-selector-attr\\,\\.hljs-selector-class\\,\\.hljs-selector-id\\,\\.hljs-variable\\]\\:text-\\[\\#6596cf\\]:is(.dark *) *):is(.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable){color:#6596cf}:is(.\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#e36209\\] *):is(.hljs-built\\\\_in,.hljs-symbol){color:#e36209}:is(.dark\\:\\*\\*\\:\\[\\.hljs-built\\\\\\\\\\\\\\\\_in\\,\\.hljs-symbol\\]\\:text-\\[\\#c3854e\\]:is(.dark *) *):is(.hljs-built\\\\_in,.hljs-symbol){color:#c3854e}:is(.\\*\\*\\:\\[\\.hljs-bullet\\]\\:text-\\[\\#735c0f\\] *).hljs-bullet{color:#735c0f}:is(.\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\] *):is(.hljs-comment,.hljs-code,.hljs-formula),:is(.dark\\:\\*\\*\\:\\[\\.hljs-comment\\,\\.hljs-code\\,\\.hljs-formula\\]\\:text-\\[\\#6a737d\\]:is(.dark *) *):is(.hljs-comment,.hljs-code,.hljs-formula){color:#6a737d}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#ffeef0\\] *).hljs-deletion{background-color:#ffeef0}:is(.\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#b31d28\\] *).hljs-deletion{color:#b31d28}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:bg-\\[\\#473235\\]:is(.dark *) *).hljs-deletion{background-color:#473235}:is(.dark\\:\\*\\*\\:\\[\\.hljs-deletion\\]\\:text-\\[\\#e7c7cb\\]:is(.dark *) *).hljs-deletion{color:#e7c7cb}:is(.\\*\\*\\:\\[\\.hljs-emphasis\\]\\:italic *).hljs-emphasis{font-style:italic}:is(.\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#d73a49\\] *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#d73a49}:is(.dark\\:\\*\\*\\:\\[\\.hljs-keyword\\,\\.hljs-doctag\\,\\.hljs-template-tag\\,\\.hljs-template-variable\\,\\.hljs-type\\,\\.hljs-variable\\.language\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#ee6960\\]:is(.dark *) *):is(.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\_){color:#ee6960}:is(.\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#22863a\\] *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#22863a}:is(.dark\\:\\*\\*\\:\\[\\.hljs-name\\,\\.hljs-quote\\,\\.hljs-selector-tag\\,\\.hljs-selector-pseudo\\]\\:text-\\[\\#36a84f\\]:is(.dark *) *):is(.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo){color:#36a84f}:is(.\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#032f62\\] *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#032f62}:is(.dark\\:\\*\\*\\:\\[\\.hljs-regexp\\,\\.hljs-string\\,\\.hljs-meta_\\.hljs-string\\]\\:text-\\[\\#3593ff\\]:is(.dark *) *):is(.hljs-regexp,.hljs-string,.hljs-meta .hljs-string){color:#3593ff}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:font-bold *).hljs-section{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#005cc5\\] *).hljs-section{color:#005cc5}:is(.dark\\:\\*\\*\\:\\[\\.hljs-section\\]\\:text-\\[\\#61a5f2\\]:is(.dark *) *).hljs-section{color:#61a5f2}:is(.\\*\\*\\:\\[\\.hljs-strong\\]\\:font-bold *).hljs-strong{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}:is(.\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#6f42c1\\] *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#6f42c1}:is(.dark\\:\\*\\*\\:\\[\\.hljs-title\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.class\\\\\\\\\\\\\\\\_\\.inherited\\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\_\\,\\.hljs-title\\.function\\\\\\\\\\\\\\\\_\\]\\:text-\\[\\#a77bfa\\]:is(.dark *) *):is(.hljs-title,.hljs-title.class\\\\_,.hljs-title.class\\\\_.inherited\\\\_\\\\_,.hljs-title.function\\\\_){color:#a77bfa}:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_next\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\\:\\*\\*\\:\\[\\.rdp-button\\\\_previous\\>svg\\]\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\\*\\:first\\:\\[span\\]\\:hidden>*):first-child:is(span){display:none}:is(.data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:text-destructive\\![data-variant=destructive]>*):is(svg){color:var(--destructive)!important}:is(.\\*\\:\\[svg\\:not\\(\\[class\\*\\=\\\'size-\\\'\\]\\)\\]\\:size-8>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.\\[\\&\\:last-child\\[data-selected\\=true\\]_button\\]\\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:nth-child\\(2\\)\\[data-selected\\=true\\]_button\\]\\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\>span\\]\\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[\\&\\>span\\]\\:opacity-70>span{opacity:.7}.\\[\\&\\>svg\\]\\:size-3\\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\\[\\&\\>svg\\]\\:text-muted-foreground>svg{color:var(--muted-foreground)}.group-has-data-\\[size\\=lg\\]\\/avatar-group\\:\\[\\&\\>svg\\]\\:size-5:is(:where(.group\\/avatar-group):has([data-size=lg]) *)>svg{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.group-has-data-\\[size\\=sm\\]\\/avatar-group\\:\\[\\&\\>svg\\]\\:size-3:is(:where(.group\\/avatar-group):has([data-size=sm]) *)>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.group-data-\\[size\\=default\\]\\/avatar\\:\\[\\&\\>svg\\]\\:size-2:is(:where(.group\\/avatar)[data-size=default] *)>svg,.group-data-\\[size\\=lg\\]\\/avatar\\:\\[\\&\\>svg\\]\\:size-2:is(:where(.group\\/avatar)[data-size=lg] *)>svg{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.group-data-\\[size\\=sm\\]\\/avatar\\:\\[\\&\\>svg\\]\\:hidden:is(:where(.group\\/avatar)[data-size=sm] *)>svg{display:none}[data-slot=card-content] .\\[\\[data-slot\\=card-content\\]_\\&\\]\\:bg-transparent,[data-slot=popover-content] .\\[\\[data-slot\\=popover-content\\]_\\&\\]\\:bg-transparent{background-color:#0000}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0);--highlight:oklch(85.2% .199 91.936);--brand:oklch(62.3% .214 259.815)}@counter-style turkish-lower-alpha{system:alphabetic;symbols:a b c ç d e f g ğ h ı i j k l m n o ö p r s ş t u ü v y z;suffix:". "}@counter-style turkish-upper-alpha{system:alphabetic;symbols:A B C Ç D E F G Ğ H I İ J K L M N O Ö P R S Ş T U Ü V Y Z;suffix:". "}@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-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@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-tracking{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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@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)}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}')),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
+ import*as e from"react";import t from"react";import{KEYS as r,isHotkey as s,getPluginTypes as n,NodeApi as o,PathApi as a,isSlateString as i,RangeApi as l,isSlateEditor as c,nanoid as d,ElementApi as u,TextApi as m,isType as h,getPluginByType as x,ExitBreakPlugin as p,isUrl as f,IS_APPLE as g,TrailingBlockPlugin as j,BaseParagraphPlugin as b}from"platejs";import{createSlateEditor as v,createSlatePlugin as y,normalizeNodeId as w}from"platejs";import{PlateElement as k,useReadOnly as C,useSelected as N,useFocused as z,ParagraphPlugin as _,PlateLeaf as S,useEditorPlugin as E,usePlateState as B,usePluginOption as T,BlockPlaceholderPlugin as D,useEditorRef as I,useElement as O,withHOC as A,useRemoveNodeButton as F,useEditorSelector as M,useFocusedLast as R,toTPlatePlugin as L,PlateContainer as P,PlateContent as H,PlateView as V,Plate as U,usePlateEditor as q,createPlatePlugin as $,MemoizedChildren as W,useComposedRef as K,useSelectionFragmentProp as Z,useMarkToolbarButtonState as G,useMarkToolbarButton as Y,useEditorReadOnly as J,useEditorId as X,useEventEditorValue as Q,useFormInputProps as ee,useEditorSelection as te,createPrimitiveComponent as re,useElementSelector as se}from"platejs/react";import{Plate as ne,PlateLeaf as oe,PlateView as ae,toPlatePlugin as ie,usePlateEditor as le,usePlateViewEditor as ce}from"platejs/react";import{TextAlignPlugin as de,FontColorPlugin as ue,FontBackgroundColorPlugin as me,FontSizePlugin as he,FontFamilyPlugin as xe,LineHeightPlugin as pe}from"@platejs/basic-styles/react";import{AutoformatPlugin as fe,autoformatSmartQuotes as ge,autoformatPunctuation as je,autoformatLegal as be,autoformatLegalHtml as ve,autoformatArrow as ye,autoformatMath as we}from"@platejs/autoformat";import{insertEmptyCodeBlock as ke,isLangSupported as Ce,formatCodeBlock as Ne,insertCodeBlock as ze,toggleCodeBlock as _e,BaseCodeBlockPlugin as Se,BaseCodeLinePlugin as Ee,BaseCodeSyntaxPlugin as Be}from"@platejs/code-block";import{toggleList as Te,expandListItemsWithChildren as De,someList as Ie,ListStyleType as Oe,isOrderedList as Ae,BaseListPlugin as Fe}from"@platejs/list";import{H1Plugin as Me,H2Plugin as Re,H3Plugin as Le,H4Plugin as Pe,H5Plugin as He,H6Plugin as Ve,BlockquotePlugin as Ue,HorizontalRulePlugin as qe,BoldPlugin as $e,ItalicPlugin as We,UnderlinePlugin as Ke,CodePlugin as Ze,StrikethroughPlugin as Ge,SubscriptPlugin as Ye,SuperscriptPlugin as Je,HighlightPlugin as Xe,KbdPlugin as Qe}from"@platejs/basic-nodes/react";import{cva as et}from"class-variance-authority";import{clsx as tt}from"clsx";import{twMerge as rt}from"tailwind-merge";import{BlockMenuPlugin as st,BlockSelectionPlugin as nt,BLOCK_CONTEXT_MENU_ID as ot,useBlockSelected as at,useCursorOverlay as it,CursorOverlayPlugin as lt}from"@platejs/selection/react";import{AIChatPlugin as ct}from"@platejs/ai/react";import{ChevronRightIcon as dt,CircleIcon as ut,CheckIcon as mt,ChevronDown as ht,SearchIcon as xt,XIcon as pt,MusicIcon as ft,CompassIcon as gt,SmileIcon as jt,LightbulbIcon as bt,LeafIcon as vt,ClockIcon as yt,AppleIcon as wt,FlagIcon as kt,StarIcon as Ct,BracesIcon as Nt,Check as zt,CopyIcon as _t,GripHorizontal as St,Trash2Icon as Et,ChevronLeftIcon as Bt,ChevronDownIcon as Tt,CornerDownLeftIcon as Dt,ArrowUpIcon as It,MoreHorizontalIcon as Ot,PencilIcon as At,TrashIcon as Ft,PencilLineIcon as Mt,MessageSquareTextIcon as Rt,MessagesSquareIcon as Lt,GripVertical as Pt,AlignLeftIcon as Ht,AlignCenterIcon as Vt,AlignRightIcon as Ut,AlignJustifyIcon as qt,EraserIcon as $t,PlusIcon as Wt,Undo2Icon as Kt,Redo2Icon as Zt,OutdentIcon as Gt,IndentIcon as Yt,Link as Jt,ListOrdered as Xt,List as Qt,LinkIcon as er,FilmIcon as tr,ImageIcon as rr,FileUpIcon as sr,AudioLinesIcon as nr,Table as or,Grid3x3Icon as ar,Combine as ir,Ungroup as lr,ArrowUp as cr,ArrowDown as dr,ArrowLeft as ur,ArrowRight as mr,PilcrowIcon as hr,Heading1Icon as xr,Heading2Icon as pr,Heading3Icon as fr,Heading4Icon as gr,Heading5Icon as jr,Heading6Icon as br,ListIcon as vr,ListOrderedIcon as yr,TriangleAlert as wr,Minimize as kr,Maximize as Cr,Images as Nr,BoldIcon as zr,ItalicIcon as _r,UnderlineIcon as Sr,StrikethroughIcon as Er,SuperscriptIcon as Br,SubscriptIcon as Tr,BaselineIcon as Dr,PaintBucketIcon as Ir,Text as Or,Unlink as Ar,ExternalLink as Fr,RadicalIcon as Mr,FileUp as Rr,Loader2Icon as Lr,Film as Pr,AudioLines as Hr,Minus as Vr,Plus as Ur,Download as qr,X as $r,CombineIcon as Wr,SquareSplitHorizontalIcon as Kr,Grid2X2Icon as Zr,ChevronRight as Gr}from"lucide-react";import"@radix-ui/react-accessible-icon";import"@radix-ui/react-accordion";import*as Yr from"@radix-ui/react-alert-dialog";import"@radix-ui/react-aspect-ratio";import*as Jr from"@radix-ui/react-avatar";import*as Xr from"@radix-ui/react-checkbox";import"@radix-ui/react-collapsible";import*as Qr from"@radix-ui/react-context-menu";import"@radix-ui/react-dialog";import"@radix-ui/react-direction";import*as es from"@radix-ui/react-dropdown-menu";import{DropdownMenuItemIndicator as ts}from"@radix-ui/react-dropdown-menu";import"@radix-ui/react-form";import"@radix-ui/react-hover-card";import"@radix-ui/react-label";import"@radix-ui/react-menubar";import"@radix-ui/react-navigation-menu";import"@radix-ui/react-one-time-password-field";import"@radix-ui/react-password-toggle-field";import*as rs from"@radix-ui/react-popover";import"@radix-ui/react-portal";import"@radix-ui/react-progress";import"@radix-ui/react-radio-group";import"@radix-ui/react-scroll-area";import"@radix-ui/react-select";import*as ss from"@radix-ui/react-separator";import"@radix-ui/react-slider";import*as ns from"@radix-ui/react-slot";import"@radix-ui/react-switch";import"@radix-ui/react-tabs";import"@radix-ui/react-toast";import"@radix-ui/react-toggle";import"@radix-ui/react-toggle-group";import*as os from"@radix-ui/react-toolbar";import*as as from"@radix-ui/react-tooltip";import"@radix-ui/react-visually-hidden";import{DndPlugin as is,useDraggable as ls,useDropLine as cs}from"@platejs/dnd";import{useCalloutEmojiPicker as ds,CalloutPlugin as us}from"@platejs/callout/react";import{useEmojiDropdownMenuState as ms,EmojiPlugin as hs,EmojiInputPlugin as xs}from"@platejs/emoji/react";import{EmojiSettings as ps,EmojiInlineIndexSearch as fs,insertEmoji as gs}from"@platejs/emoji";import{CodeBlockPlugin as js,CodeLinePlugin as bs,CodeSyntaxPlugin as vs}from"@platejs/code-block/react";import{createLowlight as ys,all as ws}from"lowlight";import{Command as ks}from"cmdk";import{ColumnPlugin as Cs,ColumnItemPlugin as Ns}from"@platejs/layout/react";import{setColumns as zs,toggleColumnGroup as _s,insertColumnGroup as Ss,BaseColumnPlugin as Es,BaseColumnItemPlugin as Bs}from"@platejs/layout";import{ResizableProvider as Ts,Resizable as Ds,useResizeHandleState as Is,useResizeHandle as Os,useResizableValue as As}from"@platejs/resizable";import{useComposedRef as Fs,createPrimitiveComponent as Ms}from"@udecode/cn";import{getCommentCount as Rs,BaseCommentPlugin as Ls,getDraftCommentKey as Ps,getCommentKey as Hs}from"@platejs/comment";import{getTableGridAbove as Vs,setCellBackground as Us,BaseTablePlugin as qs,BaseTableRowPlugin as $s,BaseTableCellPlugin as Ws,BaseTableCellHeaderPlugin as Ks}from"@platejs/table";import{DatePlugin as Zs}from"@platejs/date/react";import{getDefaultClassNames as Gs,DayPicker as Ys}from"react-day-picker";import{useCommentId as Js,CommentPlugin as Xs}from"@platejs/comment/react";import{BaseSuggestionPlugin as Qs,getSuggestionKey as en,keyId2SuggestionId as tn,acceptSuggestion as rn,rejectSuggestion as sn,getTransientSuggestionKey as nn}from"@platejs/suggestion";import{SuggestionPlugin as on}from"@platejs/suggestion/react";import{differenceInMinutes as an,differenceInHours as ln,differenceInDays as cn,format as dn}from"date-fns";import{DndProvider as un}from"react-dnd";import{HTML5Backend as mn}from"react-dnd-html5-backend";import{PlaceholderPlugin as hn,useMediaState as xn,useImagePreviewValue as pn,useFloatingMediaValue as fn,FloatingMediaStore as gn,FloatingMedia as jn,ImagePlugin as bn,Image as vn,PlaceholderProvider as yn,updateUploadHistory as wn,useImagePreview as kn,PreviewImage as Cn,useScaleInput as Nn,UploadErrorCode as zn,AudioPlugin as _n,FilePlugin as Sn}from"@platejs/media/react";import{DocxPlugin as En}from"@platejs/docx";import{JuicePlugin as Bn}from"@platejs/juice";import Tn from"@emoji-mart/data";import{useComboboxStore as Dn,ComboboxProvider as In,useComboboxContext as On,Combobox as An,Portal as Fn,ComboboxPopover as Mn,ComboboxGroup as Rn,ComboboxItem as Ln,ComboboxGroupLabel as Pn}from"@ariakit/react";import{filterWords as Hn}from"@platejs/combobox";import{useHTMLInputCursorState as Vn,useComboboxInput as Un}from"@platejs/combobox/react";import{useOutdentButton as qn,useIndentButton as $n,IndentPlugin as Wn}from"@platejs/indent/react";import{useLinkToolbarButtonState as Kn,useLinkToolbarButton as Zn,triggerFloatingLink as Gn,useFloatingLinkInsertState as Yn,useFloatingLinkInsert as Jn,useFloatingLinkEditState as Xn,useFloatingLinkEdit as Qn,FloatingLinkUrlInput as eo,LinkPlugin as to}from"@platejs/link/react";import{useTodoListElementState as ro,useTodoListElement as so,ListPlugin as no}from"@platejs/list/react";import{toast as oo}from"sonner";import{useFilePicker as ao}from"use-file-picker";import{TablePlugin as io,useTableMergeState as lo,TableProvider as co,useTableElement as uo,useTableBordersDropdownMenuContentState as mo,useTableCellElement as ho,useTableCellElementResizable as xo,TableRowPlugin as po,TableCellPlugin as fo,TableCellHeaderPlugin as go}from"@platejs/table/react";import{insertCallout as jo,BaseCalloutPlugin as bo}from"@platejs/callout";import{insertDate as vo,BaseDatePlugin as yo}from"@platejs/date";import{insertExcalidraw as wo}from"@platejs/excalidraw";import{insertEquation as ko,insertInlineEquation as Co,getEquationHtml as No,BaseInlineEquationPlugin as zo,BaseEquationPlugin as _o}from"@platejs/math";import{insertVideoPlaceholder as So,insertMedia as Eo,insertFilePlaceholder as Bo,insertAudioPlaceholder as To,BaseImagePlugin as Do,BaseAudioPlugin as Io,BaseFilePlugin as Oo,BasePlaceholderPlugin as Ao}from"@platejs/media";import{insertToc as Fo,BaseTocPlugin as Mo,isHeading as Ro}from"@platejs/toc";import{useFloatingToolbarState as Lo,offset as Po,flip as Ho,useFloatingToolbar as Vo,useVirtualFloating as Uo,getDefaultBoundingClientRect as qo,FloatingPortal as $o}from"@platejs/floating";import{getLinkAttributes as Wo,BaseLinkPlugin as Ko}from"@platejs/link";import{useEquationInput as Zo,useEquationElement as Go,InlineEquationPlugin as Yo,EquationPlugin as Jo}from"@platejs/math/react";import Xo from"react-textarea-autosize";import{useCaptionButtonState as Qo,useCaptionButton as ea,Caption as ta,CaptionTextarea as ra,CaptionPlugin as sa}from"@platejs/caption/react";import{generateReactHelpers as na}from"@uploadthing/react";import{z as oa}from"zod";import{MentionPlugin as aa,MentionInputPlugin as ia}from"@platejs/mention/react";import{getMentionOnSelectItem as la,BaseMentionPlugin as ca}from"@platejs/mention";import{SlashPlugin as da,SlashInputPlugin as ua}from"@platejs/slash-command/react";import{useTocElementState as ma,useTocElement as ha,TocPlugin as xa}from"@platejs/toc/react";import{useToggleButtonState as pa,useToggleButton as fa,TogglePlugin as ga}from"@platejs/toggle/react";import{BaseTextAlignPlugin as ja,BaseFontColorPlugin as ba,BaseFontBackgroundColorPlugin as va,BaseFontSizePlugin as ya,BaseFontFamilyPlugin as wa,BaseLineHeightPlugin as ka}from"@platejs/basic-styles";import{BaseH1Plugin as Ca,BaseH2Plugin as Na,BaseH3Plugin as za,BaseH4Plugin as _a,BaseH5Plugin as Sa,BaseH6Plugin as Ea,BaseBlockquotePlugin as Ba,BaseHorizontalRulePlugin as Ta,BaseBoldPlugin as Da,BaseItalicPlugin as Ia,BaseUnderlinePlugin as Oa,BaseCodePlugin as Aa,BaseStrikethroughPlugin as Fa,BaseSubscriptPlugin as Ma,BaseSuperscriptPlugin as Ra,BaseHighlightPlugin as La,BaseKbdPlugin as Pa}from"@platejs/basic-nodes";import{SlateElement as Ha,SlateLeaf as Va}from"platejs/static";import{PlateStatic as Ua,serializeHtml as qa}from"platejs/static";import{BaseIndentPlugin as $a}from"@platejs/indent";import{BaseCaptionPlugin as Wa}from"@platejs/caption";import{BaseTogglePlugin as Ka}from"@platejs/toggle";import{computeDiff as Za,withGetFragmentExcludeDiff as Ga}from"@platejs/diff";var Ya="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xa,Qa={exports:{}},ei={};var ti,ri,si={};function ni(){return ti||(ti=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===N?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case x:return"Fragment";case f:return"Profiler";case p:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case h:return"Portal";case j:return t.displayName||"Context";case g:return(t._context.displayName||"Context")+".Consumer";case b:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case w:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case k:r=t._payload,t=t._init;try{return e(t(r))}catch(s){}}return null}function r(e){return""+e}function s(e){try{r(e);var t=!1}catch(o){t=!0}if(t){var s=(t=console).error,n="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),r(e)}}function n(t){if(t===x)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===k)return"<...>";try{var r=e(t);return r?"<"+r+">":"<...>"}catch(s){return"<...>"}}function o(){return Error("react-stack-top-frame")}function a(){var t=e(this.type);return B[t]||(B[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function i(t,r,n,o,i,c){var u,h=r.children;if(void 0!==h)if(o)if(S(h)){for(o=0;o<h.length;o++)l(h[o]);Object.freeze&&Object.freeze(h)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(h);if(_.call(r,"key")){h=e(t);var x=Object.keys(r).filter(function(e){return"key"!==e});o=0<x.length?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}",I[h+o]||(x=0<x.length?"{"+x.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',o,h,x,h),I[h+o]=!0)}if(h=null,void 0!==n&&(s(n),h=""+n),function(e){if(_.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(s(r.key),h=""+r.key),"key"in r)for(var p in n={},r)"key"!==p&&(n[p]=r[p]);else n=r;return h&&function(e,t){function r(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(n,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,r,s,n,o){var i=r.ref;return e={$$typeof:m,type:e,key:t,props:r,_owner:s},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,h,n,null===(u=z.A)?null:u.getOwner(),i,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=t,m=/* @__PURE__ */Symbol.for("react.transitional.element"),h=/* @__PURE__ */Symbol.for("react.portal"),x=/* @__PURE__ */Symbol.for("react.fragment"),p=/* @__PURE__ */Symbol.for("react.strict_mode"),f=/* @__PURE__ */Symbol.for("react.profiler"),g=/* @__PURE__ */Symbol.for("react.consumer"),j=/* @__PURE__ */Symbol.for("react.context"),b=/* @__PURE__ */Symbol.for("react.forward_ref"),v=/* @__PURE__ */Symbol.for("react.suspense"),y=/* @__PURE__ */Symbol.for("react.suspense_list"),w=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),C=/* @__PURE__ */Symbol.for("react.activity"),N=/* @__PURE__ */Symbol.for("react.client.reference"),z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,S=Array.isArray,E=console.createTask?console.createTask:function(){return null},B={},T=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,o)(),D=E(n(o)),I={};si.Fragment=x,si.jsx=function(e,t,r){var s=1e4>z.recentlyCreatedOwnerStacks++;return i(e,t,r,!1,s?Error("react-stack-top-frame"):T,s?E(n(e)):D)},si.jsxs=function(e,t,r){var s=1e4>z.recentlyCreatedOwnerStacks++;return i(e,t,r,!0,s?Error("react-stack-top-frame"):T,s?E(n(e)):D)}}()),si}var oi=(ri||(ri=1,"production"===process.env.NODE_ENV?Qa.exports=function(){if(Xa)return ei;Xa=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function r(t,r,s){var n=null;if(void 0!==s&&(n=""+s),void 0!==r.key&&(n=""+r.key),"key"in r)for(var o in s={},r)"key"!==o&&(s[o]=r[o]);else s=r;return r=s.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:s}}return ei.Fragment=t,ei.jsx=r,ei.jsxs=r,ei}():Qa.exports=ni()),Qa.exports);const ai=[de.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...r.heading,r.p,r.img,r.mediaEmbed]}})],ii=[{match:"***",mode:"mark",type:[r.bold,r.italic]},{match:"__*",mode:"mark",type:[r.underline,r.italic]},{match:"__**",mode:"mark",type:[r.underline,r.bold]},{match:"___***",mode:"mark",type:[r.underline,r.bold,r.italic]},{match:"**",mode:"mark",type:r.bold},{match:"__",mode:"mark",type:r.underline},{match:"*",mode:"mark",type:r.italic},{match:"_",mode:"mark",type:r.italic},{match:"~~",mode:"mark",type:r.strikethrough},{match:"^",mode:"mark",type:r.sup},{match:"~",mode:"mark",type:r.sub},{match:"==",mode:"mark",type:r.highlight},{match:"≡",mode:"mark",type:r.highlight},{match:"`",mode:"mark",type:r.code}],li=[{match:"# ",mode:"block",type:r.h1},{match:"## ",mode:"block",type:r.h2},{match:"### ",mode:"block",type:r.h3},{match:"#### ",mode:"block",type:r.h4},{match:"##### ",mode:"block",type:r.h5},{match:"###### ",mode:"block",type:r.h6},{match:"> ",mode:"block",type:r.blockquote},{match:"```",mode:"block",type:r.codeBlock,format:e=>{ke(e,{defaultType:r.p,insertNodesOptions:{select:!0}})}},{match:["---","—-","___ "],mode:"block",type:r.hr,format:e=>{e.tf.setNodes({type:r.hr}),e.tf.insertNodes({children:[{text:""}],type:r.p})}}],ci=[{match:["* ","- "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.ul})}},{match:[String.raw`^\d+\.$ `,String.raw`^\d+\)$ `],matchByRegex:!0,mode:"block",type:"list",format:(e,{matchString:t})=>{Te(e,{listRestartPolite:Number(t)||1,listStyleType:r.ol})}},{match:["[] "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.listTodo}),e.tf.setNodes({checked:!1,listStyleType:r.listTodo})}},{match:["[x] "],mode:"block",type:"list",format:e=>{Te(e,{listStyleType:r.listTodo}),e.tf.setNodes({checked:!0,listStyleType:r.listTodo})}}],di=[fe.configure({options:{enableUndoOnDelete:!0,rules:[...li,...ii,...ge,...je,...be,...ve,...ye,...we,...ci].map(e=>({...e,query:e=>!e.api.some({match:{type:e.getType(r.codeBlock)}})}))}})];const ui=et("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function mi({variant:e="h1",...t}){/* @__PURE__ */
3
+ return oi.jsx(k,{as:e,className:ui({variant:e}),...t,children:t.children})}function hi(...e){return rt(tt(e))}const xi=[_.withComponent(function(e){/* @__PURE__ */
4
+ return oi.jsx(k,{...e,className:hi("m-0 px-0 py-1"),children:e.children})}),Me.configure({node:{component:function(e){/* @__PURE__ */
5
+ return oi.jsx(mi,{variant:"h1",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+1"}}}),Re.configure({node:{component:function(e){/* @__PURE__ */
6
+ return oi.jsx(mi,{variant:"h2",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+2"}}}),Le.configure({node:{component:function(e){/* @__PURE__ */
7
+ return oi.jsx(mi,{variant:"h3",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+3"}}}),Pe.configure({node:{component:function(e){/* @__PURE__ */
8
+ return oi.jsx(mi,{variant:"h4",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+4"}}}),He.configure({node:{component:function(e){/* @__PURE__ */
9
+ return oi.jsx(mi,{variant:"h5",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+5"}}}),Ve.configure({node:{component:function(e){/* @__PURE__ */
10
+ return oi.jsx(mi,{variant:"h6",...e})}},rules:{break:{empty:"reset"}},shortcuts:{toggle:{keys:"mod+alt+6"}}}),Ue.configure({node:{component:function(e){/* @__PURE__ */
11
+ return oi.jsx(k,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}},shortcuts:{toggle:{keys:"mod+shift+period"}}}),qe.withComponent(function(e){const t=C(),r=N(),s=z();/* @__PURE__ */
12
+ return oi.jsxs(k,{...e,children:[
13
+ /* @__PURE__ */oi.jsx("div",{className:"py-6",contentEditable:!1,children:/* @__PURE__ */oi.jsx("hr",{className:hi("h-0.5 rounded-sm border-none bg-muted bg-clip-content",r&&s&&"ring-2 ring-ring ring-offset-2",!t&&"cursor-pointer")})}),e.children]})})];const pi=[$e,We,Ke,Ze.configure({node:{component:function(e){/* @__PURE__ */
14
+ return oi.jsx(S,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}},shortcuts:{toggle:{keys:"mod+e"}}}),Ge.configure({shortcuts:{toggle:{keys:"mod+shift+x"}}}),Ye.configure({shortcuts:{toggle:{keys:"mod+comma"}}}),Je.configure({shortcuts:{toggle:{keys:"mod+period"}}}),Xe.configure({node:{component:function(e){/* @__PURE__ */
15
+ return oi.jsx(S,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}},shortcuts:{toggle:{keys:"mod+shift+h"}}}),Qe.withComponent(function(e){/* @__PURE__ */
16
+ return oi.jsx(S,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];function fi({...e}){/* @__PURE__ */
17
+ return oi.jsx(Qr.Root,{"data-slot":"context-menu",...e})}function gi({...e}){/* @__PURE__ */
18
+ return oi.jsx(Qr.Trigger,{"data-slot":"context-menu-trigger",...e})}function ji({...e}){/* @__PURE__ */
19
+ return oi.jsx(Qr.Group,{"data-slot":"context-menu-group",...e})}function bi({...e}){/* @__PURE__ */
20
+ return oi.jsx(Qr.Sub,{"data-slot":"context-menu-sub",...e})}function vi({className:e,inset:t,children:r,...s}){/* @__PURE__ */
21
+ return oi.jsxs(Qr.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:hi("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...s,children:[r,
22
+ /* @__PURE__ */oi.jsx(dt,{className:"ml-auto"})]})}function yi({className:e,...t}){/* @__PURE__ */
23
+ return oi.jsx(Qr.SubContent,{"data-slot":"context-menu-sub-content",className:hi("z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})}function wi({className:e,...t}){/* @__PURE__ */
24
+ return oi.jsx(Qr.Portal,{children:/* @__PURE__ */oi.jsx(Qr.Content,{"data-slot":"context-menu-content",className:hi("z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})})}function ki({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
25
+ return oi.jsx(Qr.Item,{"data-slot":"context-menu-item","data-inset":t,"data-variant":r,className:hi("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...s})}const Ci=et("pointer-events-none absolute inset-0 z-1 bg-brand/[.13] transition-opacity",{defaultVariants:{active:!0},variants:{active:{false:"opacity-0",true:"opacity-100"}}});function Ni(e){const t=at(),r=T(is,"isDragging");return t&&"tr"!==e.plugin.key&&"table"!==e.plugin.key?/* @__PURE__ */oi.jsx("div",{className:Ci({active:t&&!r}),"data-slot":"block-selection"}):null}const zi=[...[nt.configure(({editor:e})=>({options:{enableContextMenu:!0,isSelectable:t=>!n(e,[r.column,r.codeLine,r.td]).includes(t.type),onKeyDownSelecting:(e,t)=>{s("mod+j")(t)&&e.getApi(ct).aiChat.show()}},render:{belowRootNodes:e=>e.attributes.className?.includes("slate-selectable")?/* @__PURE__ */oi.jsx(Ni,{...e}):null}}))],st.configure({render:{aboveEditable:function({children:t}){const{api:s,editor:n}=E(st),[o,a]=e.useState(null),i=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{function e(){r("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),t}(),[l]=B("readOnly"),c=T(st,"openId")===ot,d=e.useCallback(e=>{n.getApi(nt).blockSelection.getNodes().forEach(([t,s])=>{t[r.listType]&&n.tf.unsetNodes([r.listType,"indent"],{at:s}),n.tf.toggleBlock(e,{at:s})})},[n]),u=e.useCallback(e=>{n.getTransforms(nt).blockSelection.setNodes({align:e})},[n]);return i?t:/* @__PURE__ */oi.jsxs(fi,{onOpenChange:e=>{e||s.blockMenu.hide()},modal:!1,children:[
26
+ /* @__PURE__ */oi.jsx(gi,{asChild:!0,onContextMenu:e=>{const t=e.target.dataset;if("true"===t?.slateEditor||l||"false"===t?.plateOpenContextMenu)return e.preventDefault();setTimeout(()=>{s.blockMenu.show(ot,{x:e.clientX,y:e.clientY})},0)},children:/* @__PURE__ */oi.jsx("div",{className:"w-full",children:t})}),c&&/* @__PURE__ */oi.jsxs(wi,{className:"w-64",onCloseAutoFocus:e=>{e.preventDefault(),n.getApi(nt).blockSelection.focus(),"askAI"===o&&n.getApi(ct).aiChat.show(),a(null)},children:[
27
+ /* @__PURE__ */oi.jsxs(ji,{children:[
28
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>{n.getTransforms(nt).blockSelection.removeNodes(),n.tf.focus()},children:"Delete"}),
29
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>{n.getTransforms(nt).blockSelection.duplicate()},children:"Duplicate"}),
30
+ /* @__PURE__ */oi.jsxs(bi,{children:[
31
+ /* @__PURE__ */oi.jsx(vi,{children:"Turn into"}),
32
+ /* @__PURE__ */oi.jsxs(yi,{className:"w-48",children:[
33
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.p),children:"Paragraph"}),
34
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h1),children:"Heading 1"}),
35
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h2),children:"Heading 2"}),
36
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h3),children:"Heading 3"}),
37
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h4),children:"Heading 4"}),
38
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h5),children:"Heading 5"}),
39
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.h6),children:"Heading 6"}),
40
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>d(r.callout),children:"Callout"})]})]})]}),
41
+ /* @__PURE__ */oi.jsxs(ji,{children:[
42
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>n.getTransforms(nt).blockSelection.setIndent(1),children:"Indent"}),
43
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>n.getTransforms(nt).blockSelection.setIndent(-1),children:"Outdent"}),
44
+ /* @__PURE__ */oi.jsxs(bi,{children:[
45
+ /* @__PURE__ */oi.jsx(vi,{children:"Align"}),
46
+ /* @__PURE__ */oi.jsxs(yi,{className:"w-48",children:[
47
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>u("left"),children:"Left"}),
48
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>u("center"),children:"Center"}),
49
+ /* @__PURE__ */oi.jsx(ki,{onClick:()=>u("right"),children:"Right"})]})]})]})]})]})}}})],_i=[D.configure({options:{className:"before:absolute before:cursor-text before:text-muted-foreground/80 before:content-[attr(placeholder)]",placeholders:{[r.p]:"Type something..."},query:({path:e})=>1===e.length}})],Si=et("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ei({className:e,variant:t="default",size:r="default",asChild:s=!1,...n}){const o=s?ns.Root:"button";/* @__PURE__ */
50
+ return oi.jsx(o,{"data-slot":"button","data-variant":t,"data-size":r,className:hi(Si({variant:t,size:r,className:e})),...n})}function Bi({delayDuration:e=0,...t}){/* @__PURE__ */
51
+ return oi.jsx(as.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ti({...e}){/* @__PURE__ */
52
+ return oi.jsx(as.Root,{"data-slot":"tooltip",...e})}function Di({...e}){/* @__PURE__ */
53
+ return oi.jsx(as.Trigger,{"data-slot":"tooltip-trigger",...e})}function Ii({className:e,sideOffset:t=0,children:r,...s}){/* @__PURE__ */
54
+ return oi.jsx(as.Portal,{children:/* @__PURE__ */oi.jsxs(as.Content,{"data-slot":"tooltip-content",sideOffset:t,className:hi("z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...s,children:[r,
55
+ /* @__PURE__ */oi.jsx(as.Arrow,{className:"z-1500 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}function Oi({...e}){/* @__PURE__ */
56
+ return oi.jsx(es.Root,{"data-slot":"dropdown-menu",...e})}function Ai({...e}){/* @__PURE__ */
57
+ return oi.jsx(es.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Fi({...e}){/* @__PURE__ */
58
+ return oi.jsx(es.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Mi({className:e,sideOffset:t=4,...r}){/* @__PURE__ */
59
+ return oi.jsx(es.Portal,{children:/* @__PURE__ */oi.jsx(es.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:hi("z-1500 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})})}function Ri({...e}){/* @__PURE__ */
60
+ return oi.jsx(es.Group,{"data-slot":"dropdown-menu-group",...e})}function Li({className:e,inset:t,variant:r="default",...s}){/* @__PURE__ */
61
+ return oi.jsx(es.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:hi("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...s})}function Pi({className:e,children:t,checked:r,...s}){/* @__PURE__ */
62
+ return oi.jsxs(es.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:hi("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...s,children:[
63
+ /* @__PURE__ */oi.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */oi.jsx(es.ItemIndicator,{children:/* @__PURE__ */oi.jsx(mt,{className:"size-4"})})}),t]})}function Hi({...e}){/* @__PURE__ */
64
+ return oi.jsx(es.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function Vi({className:e,children:t,...r}){/* @__PURE__ */
65
+ return oi.jsxs(es.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:hi("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[
66
+ /* @__PURE__ */oi.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */oi.jsx(es.ItemIndicator,{children:/* @__PURE__ */oi.jsx(ut,{className:"size-2 fill-current"})})}),t]})}function Ui({className:e,inset:t,...r}){/* @__PURE__ */
67
+ return oi.jsx(es.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:hi("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function qi({className:e,...t}){/* @__PURE__ */
68
+ return oi.jsx(es.Separator,{"data-slot":"dropdown-menu-separator",className:hi("-mx-1 my-1 h-px bg-border",e),...t})}function $i({...e}){/* @__PURE__ */
69
+ return oi.jsx(es.Sub,{"data-slot":"dropdown-menu-sub",...e})}function Wi({className:e,inset:t,children:r,...s}){/* @__PURE__ */
70
+ return oi.jsxs(es.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:hi("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...s,children:[r,
71
+ /* @__PURE__ */oi.jsx(dt,{className:"ml-auto size-4"})]})}function Ki({className:e,...t}){/* @__PURE__ */
72
+ return oi.jsx(es.SubContent,{"data-slot":"dropdown-menu-sub-content",className:hi("z-1500 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})}function Zi({className:e,orientation:t="horizontal",decorative:r=!0,...s}){/* @__PURE__ */
73
+ return oi.jsx(ss.Root,{"data-slot":"separator",decorative:r,orientation:t,className:hi("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}function Gi({className:e,...t}){/* @__PURE__ */
74
+ return oi.jsx(os.Root,{className:hi("relative flex select-none items-center",e),...t})}function Yi({className:e,...t}){/* @__PURE__ */
75
+ return oi.jsx(os.ToolbarToggleGroup,{className:hi("flex items-center",e),...t})}const Ji=et("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-checked:bg-accent aria-checked:text-accent-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"h-9 min-w-9 px-2",lg:"h-10 min-w-10 px-2.5",sm:"h-8 min-w-8 px-1.5"},variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"}}}),Xi=et(hi("inline-flex items-center justify-center rounded-r-md font-medium text-foreground text-sm transition-colors disabled:pointer-events-none disabled:opacity-50"),{defaultVariants:{size:"sm",variant:"default"},variants:{size:{default:"h-9 w-6",lg:"h-10 w-8",sm:"h-8 w-4"},variant:{default:"bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground",outline:"border border-input border-l-0 bg-transparent hover:bg-accent hover:text-accent-foreground"}}}),Qi=(el=function({children:e,className:t,isDropdown:r,pressed:s,size:n="sm",variant:o,...a}){return"boolean"==typeof s?/* @__PURE__ */oi.jsx(Yi,{disabled:a.disabled,value:"single",type:"single",children:/* @__PURE__ */oi.jsx(nl,{className:hi(Ji({size:n,variant:o}),r&&"justify-between gap-1 pr-1",t),value:s?"single":"",...a,children:r?/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[
76
+ /* @__PURE__ */oi.jsx("div",{className:"flex flex-1 items-center gap-2 whitespace-nowrap",children:e}),
77
+ /* @__PURE__ */oi.jsx("div",{children:/* @__PURE__ */oi.jsx(ht,{className:"size-3.5 text-muted-foreground","data-icon":!0})})]}):e})}):/* @__PURE__ */oi.jsx(os.Button,{className:hi(Ji({size:n,variant:o}),r&&"pr-1",t),...a,children:e})},function({tooltip:t,tooltipContentProps:r,tooltipProps:s,tooltipTriggerProps:n,...o}){const[a,i]=e.useState(!1);e.useEffect(()=>{i(!0)},[]);const l=/* @__PURE__ */oi.jsx(el,{...o});return t&&a?/* @__PURE__ */oi.jsxs(Ti,{...s,children:[
78
+ /* @__PURE__ */oi.jsx(Di,{asChild:!0,...n,children:l}),
79
+ /* @__PURE__ */oi.jsx(al,{...r,children:t})]}):l});var el;function tl({className:e,...t}){/* @__PURE__ */
80
+ return oi.jsx(Qi,{className:hi("group flex gap-0 px-0 hover:bg-transparent",e),...t})}function rl({children:e,className:t,size:r="sm",variant:s,...n}){/* @__PURE__ */
81
+ return oi.jsx("span",{className:hi(Ji({size:r,variant:s}),"rounded-r-none","group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",t),...n,children:e})}function sl({className:e,size:t,variant:r,...s}){/* @__PURE__ */
82
+ return oi.jsx("span",{className:hi(Xi({size:t,variant:r}),"group-data-[pressed=true]:bg-accent group-data-[pressed=true]:text-accent-foreground",e),onClick:e=>e.stopPropagation(),role:"button",...s,children:/* @__PURE__ */oi.jsx(ht,{className:"size-3.5 text-muted-foreground","data-icon":!0})})}function nl({className:e,size:t="sm",variant:r,...s}){/* @__PURE__ */
83
+ return oi.jsx(os.ToggleItem,{className:hi(Ji({size:t,variant:r}),e),...s})}function ol({children:e,className:t}){/* @__PURE__ */
84
+ return oi.jsxs("div",{className:hi("group/toolbar-group","relative hidden has-[button]:flex",t),children:[
85
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center",children:e}),
86
+ /* @__PURE__ */oi.jsx("div",{className:"group-last/toolbar-group:hidden! mx-1.5 py-0.5",children:/* @__PURE__ */oi.jsx(Zi,{orientation:"vertical"})})]})}function al({children:e,className:t,sideOffset:r=4,...s}){/* @__PURE__ */
87
+ return oi.jsx(as.Portal,{children:/* @__PURE__ */oi.jsx(as.Content,{className:hi("z-1500 w-fit origin-(--radix-tooltip-content-transform-origin) text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs",t),"data-slot":"tooltip-content",sideOffset:r,...s,children:e})})}function il({children:e,className:t,label:r,...s}){/* @__PURE__ */
88
+ return oi.jsxs(oi.Fragment,{children:[
89
+ /* @__PURE__ */oi.jsx(qi,{className:hi("hidden","mb-0 shrink-0 peer-has-[[role=menuitem]]/menu-group:block peer-has-[[role=menuitemradio]]/menu-group:block peer-has-[[role=option]]/menu-group:block")}),
90
+ /* @__PURE__ */oi.jsxs(Hi,{...s,className:hi("hidden","peer/menu-group group/menu-group my-1.5 has-[[role=menuitem]]:block has-[[role=menuitemradio]]:block has-[[role=option]]:block",t),children:[r&&/* @__PURE__ */oi.jsx(Ui,{className:"select-none font-semibold text-muted-foreground text-xs",children:r}),e]})]})}function ll({children:e,control:t,isOpen:r,setIsOpen:s}){/* @__PURE__ */
91
+ return oi.jsxs(rs.Root,{open:r,onOpenChange:s,children:[
92
+ /* @__PURE__ */oi.jsx(rs.Trigger,{asChild:!0,children:t}),
93
+ /* @__PURE__ */oi.jsx(rs.Portal,{children:/* @__PURE__ */oi.jsx(rs.Content,{className:"z-100",children:e})})]})}function cl({clearSearch:e,emoji:t,emojiLibrary:r,focusedCategory:s,hasFound:n,i18n:o,icons:a={categories:vl,search:yl},isSearching:i,refs:l,searchResult:c,searchValue:d,setSearch:u,settings:m=ps,visibleCategories:h,handleCategoryClick:x,onMouseOver:p,onSelectEmoji:f}){/* @__PURE__ */
94
+ return oi.jsxs("div",{className:hi("flex flex-col rounded-xl bg-popover text-popover-foreground","h-[23rem] w-80 border shadow-md"),children:[
95
+ /* @__PURE__ */oi.jsx(bl,{onClick:x,emojiLibrary:r,focusedCategory:s,i18n:o,icons:a}),
96
+ /* @__PURE__ */oi.jsx(hl,{i18n:o,searchValue:d,setSearch:u,children:/* @__PURE__ */oi.jsx(xl,{clearSearch:e,i18n:o,searchValue:d})}),
97
+ /* @__PURE__ */oi.jsx(ml,{onMouseOver:p,onSelectEmoji:f,emojiLibrary:r,i18n:o,isSearching:i,refs:l,searchResult:c,settings:m,visibleCategories:h}),
98
+ /* @__PURE__ */oi.jsx(jl,{emoji:t,hasFound:n,i18n:o,isSearching:i})]})}const dl=e.memo(function({emoji:e,index:t,onMouseOver:r,onSelect:s}){/* @__PURE__ */
99
+ return oi.jsxs("button",{className:"group relative flex size-9 cursor-pointer items-center justify-center border-none bg-transparent text-2xl leading-none",onClick:()=>s(e),onMouseEnter:()=>r(e),onMouseLeave:()=>r(),"aria-label":e.skins[0].native,"data-index":t,tabIndex:-1,type:"button",children:[
100
+ /* @__PURE__ */oi.jsx("div",{className:"absolute inset-0 rounded-full opacity-0 group-hover:opacity-100","aria-hidden":"true"}),
101
+ /* @__PURE__ */oi.jsx("span",{className:"relative",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},"data-emoji-set":"native",children:e.skins[0].native})]})}),ul=e.memo(function({emojiLibrary:e,row:t,onMouseOver:r,onSelectEmoji:s}){/* @__PURE__ */
102
+ return oi.jsx("div",{className:"flex","data-index":t.id,children:t.elements.map((t,n)=>/* @__PURE__ */oi.jsx(dl,{onMouseOver:r,onSelect:s,emoji:e.getEmoji(t),index:n},t))},t.id)});function ml({emojiLibrary:t,i18n:r,isSearching:s=!1,refs:n,searchResult:o,settings:a=ps,visibleCategories:i,onMouseOver:l,onSelectEmoji:c}){const d=a.perLine.value*a.buttonSize.value,u=e.useCallback(e=>!!i.has(e)&&i.get(e),[i]),m=e.useCallback(()=>t.getGrid().sections().map(({id:e})=>{const s=t.getGrid().section(e),{buttonSize:n}=a;/* @__PURE__ */
103
+ return oi.jsxs("div",{ref:s.root,style:{width:d},"data-id":e,children:[
104
+ /* @__PURE__ */oi.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-sm backdrop-blur-xs",children:r.categories[e]}),
105
+ /* @__PURE__ */oi.jsx("div",{className:"relative flex flex-wrap",style:{height:s.getRows().length*n.value},children:u(e)&&s.getRows().map(e=>/* @__PURE__ */oi.jsx(ul,{onMouseOver:l,onSelectEmoji:c,emojiLibrary:t,row:e},e.id))})]},e)}),[t,d,r.categories,u,c,l,a]),h=e.useCallback(()=>/* @__PURE__ */oi.jsxs("div",{style:{width:d},"data-id":"search",children:[
106
+ /* @__PURE__ */oi.jsx("div",{className:"-top-px sticky z-1 bg-popover/90 p-1 py-2 font-semibold text-card-foreground text-sm backdrop-blur-xs",children:r.searchResult}),
107
+ /* @__PURE__ */oi.jsx("div",{className:"relative flex flex-wrap",children:o.map((e,r)=>/* @__PURE__ */oi.jsx(dl,{onMouseOver:l,onSelect:c,emoji:t.getEmoji(e.id),index:r},e.id))})]}),[t,d,r.searchResult,o,c,l]);/* @__PURE__ */
108
+ return oi.jsx("div",{ref:n.current.contentRoot,className:hi("h-full min-h-[50%] overflow-y-auto overflow-x-hidden px-2","[&::-webkit-scrollbar]:w-4","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:size-0","[&::-webkit-scrollbar-thumb]:min-h-11 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted [&::-webkit-scrollbar-thumb]:hover:bg-muted-foreground/25","[&::-webkit-scrollbar-thumb]:border-4 [&::-webkit-scrollbar-thumb]:border-popover [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:bg-clip-padding"),"data-id":"scroll",children:/* @__PURE__ */oi.jsx("div",{ref:n.current.content,className:"h-full",children:s?h():m()})})}function hl({children:e,i18n:t,searchValue:r,setSearch:s}){/* @__PURE__ */
109
+ return oi.jsx("div",{className:"flex items-center px-2",children:/* @__PURE__ */oi.jsxs("div",{className:"relative flex grow items-center",children:[
110
+ /* @__PURE__ */oi.jsx("input",{className:"block w-full appearance-none rounded-full border-0 bg-muted px-10 py-2 text-sm outline-none placeholder:text-muted-foreground focus-visible:outline-none",value:r,onChange:e=>s(e.target.value),placeholder:t.search,"aria-label":"Search",autoComplete:"off",type:"text",autoFocus:!0}),e]})})}function xl({clearSearch:e,i18n:t,searchValue:r}){/* @__PURE__ */
111
+ return oi.jsxs("div",{className:"flex items-center text-foreground",children:[
112
+ /* @__PURE__ */oi.jsx("div",{className:hi("-translate-y-1/2 absolute top-1/2 left-2.5 z-10 flex size-5 items-center justify-center text-foreground"),children:yl.loupe}),r&&/* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",className:hi("-translate-y-1/2 absolute top-1/2 right-0.5 flex size-8 cursor-pointer items-center justify-center rounded-full border-none bg-transparent text-popover-foreground hover:bg-transparent"),onClick:e,title:t.clear,"aria-label":"Clear",type:"button",children:yl.delete})]})}function pl({emoji:e}){/* @__PURE__ */
113
+ return oi.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
114
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center justify-center text-2xl",children:e?.skins[0].native}),
115
+ /* @__PURE__ */oi.jsxs("div",{className:"overflow-hidden pl-2",children:[
116
+ /* @__PURE__ */oi.jsx("div",{className:"truncate font-semibold text-sm",children:e?.name}),
117
+ /* @__PURE__ */oi.jsx("div",{className:"truncate text-sm",children:`:${e?.id}:`})]})]})}function fl({i18n:e}){/* @__PURE__ */
118
+ return oi.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
119
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center justify-center text-2xl",children:"😢"}),
120
+ /* @__PURE__ */oi.jsxs("div",{className:"overflow-hidden pl-2",children:[
121
+ /* @__PURE__ */oi.jsx("div",{className:"truncate font-bold text-sm",children:e.searchNoResultsTitle}),
122
+ /* @__PURE__ */oi.jsx("div",{className:"truncate text-sm",children:e.searchNoResultsSubtitle})]})]})}function gl({i18n:e}){/* @__PURE__ */
123
+ return oi.jsxs("div",{className:"flex h-14 max-h-14 min-h-14 items-center border-muted border-t p-2",children:[
124
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center justify-center text-2xl",children:"☝️"}),
125
+ /* @__PURE__ */oi.jsx("div",{className:"overflow-hidden pl-2",children:/* @__PURE__ */oi.jsx("div",{className:"truncate font-semibold text-sm",children:e.pick})})]})}function jl({emoji:e,hasFound:t=!0,i18n:r,isSearching:s=!1,...n}){const o=!e&&(!s||t),a=s&&!t,i=e&&!a&&!a;/* @__PURE__ */
126
+ return oi.jsxs(oi.Fragment,{children:[i&&/* @__PURE__ */oi.jsx(pl,{emoji:e,...n}),o&&/* @__PURE__ */oi.jsx(gl,{i18n:r,...n}),a&&/* @__PURE__ */oi.jsx(fl,{i18n:r,...n})]})}function bl({emojiLibrary:e,focusedCategory:t,i18n:r,icons:s,onClick:n}){/* @__PURE__ */
127
+ return oi.jsx(Bi,{delayDuration:500,children:/* @__PURE__ */oi.jsx("nav",{id:"emoji-nav",className:"mb-2.5 border-0 border-b border-b-border border-solid p-1.5",children:/* @__PURE__ */oi.jsx("div",{className:"relative flex items-center justify-evenly",children:e.getGrid().sections().map(({id:e})=>/* @__PURE__ */oi.jsxs(Ti,{children:[
128
+ /* @__PURE__ */oi.jsx(Di,{asChild:!0,children:/* @__PURE__ */oi.jsx(Ei,{size:"sm",variant:"ghost",className:hi("h-fit rounded-full fill-current p-1.5 text-muted-foreground hover:bg-muted hover:text-muted-foreground",e===t&&"pointer-events-none bg-accent fill-current text-accent-foreground"),onClick:()=>{n(e)},"aria-label":r.categories[e],type:"button",children:/* @__PURE__ */oi.jsx("span",{className:"inline-flex size-5 items-center justify-center",children:s.categories[e].outline})})}),
129
+ /* @__PURE__ */oi.jsx(Ii,{side:"bottom",children:r.categories[e]})]},e))})})})}const vl={activity:{outline:/* @__PURE__ */oi.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
130
+ /* @__PURE__ */oi.jsx("circle",{cx:"12",cy:"12",r:"10"}),
131
+ /* @__PURE__ */oi.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
132
+ /* @__PURE__ */oi.jsx("path",{d:"m5 4.9 14 14.2"}),
133
+ /* @__PURE__ */oi.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]}),solid:/* @__PURE__ */oi.jsxs("svg",{className:"size-full",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[
134
+ /* @__PURE__ */oi.jsx("circle",{cx:"12",cy:"12",r:"10"}),
135
+ /* @__PURE__ */oi.jsx("path",{d:"M2.1 13.4A10.1 10.1 0 0 0 13.4 2.1"}),
136
+ /* @__PURE__ */oi.jsx("path",{d:"m5 4.9 14 14.2"}),
137
+ /* @__PURE__ */oi.jsx("path",{d:"M21.9 10.6a10.1 10.1 0 0 0-11.3 11.3"})]})},custom:{outline:/* @__PURE__ */oi.jsx(Ct,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(Ct,{className:"size-full"})},flags:{outline:/* @__PURE__ */oi.jsx(kt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(kt,{className:"size-full"})},foods:{outline:/* @__PURE__ */oi.jsx(wt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(wt,{className:"size-full"})},frequent:{outline:/* @__PURE__ */oi.jsx(yt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(yt,{className:"size-full"})},nature:{outline:/* @__PURE__ */oi.jsx(vt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(vt,{className:"size-full"})},objects:{outline:/* @__PURE__ */oi.jsx(bt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(bt,{className:"size-full"})},people:{outline:/* @__PURE__ */oi.jsx(jt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(jt,{className:"size-full"})},places:{outline:/* @__PURE__ */oi.jsx(gt,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(gt,{className:"size-full"})},symbols:{outline:/* @__PURE__ */oi.jsx(ft,{className:"size-full"}),solid:/* @__PURE__ */oi.jsx(ft,{className:"size-full"})}},yl={delete:/* @__PURE__ */oi.jsx(pt,{className:"size-4 text-current"}),loupe:/* @__PURE__ */oi.jsx(xt,{className:"size-4 text-current"})};const wl=[us.withComponent(function({attributes:e,children:t,className:r,...s}){const{emojiPickerState:n,isOpen:o,setIsOpen:a}=ms({closeOnSelect:!0}),{emojiToolbarDropdownProps:i,props:l}=ds({isOpen:o,setIsOpen:a});/* @__PURE__ */
138
+ return oi.jsx(k,{className:hi("my-1 flex rounded-sm bg-muted p-4 pl-3",r),style:{backgroundColor:s.element.backgroundColor},attributes:{...e,"data-plate-open-context-menu":!0},...s,children:/* @__PURE__ */oi.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
139
+ /* @__PURE__ */oi.jsx(ll,{...i,control:/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-6 select-none p-1 text-[18px] hover:bg-muted-foreground/15",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},contentEditable:!1,children:s.element.icon||"💡"}),children:/* @__PURE__ */oi.jsx(cl,{...n,...l})}),
140
+ /* @__PURE__ */oi.jsx("div",{className:"w-full",children:t})]})})})];function kl({className:e,...t}){/* @__PURE__ */
141
+ return oi.jsx(ks,{"data-slot":"command",className:hi("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function Cl({className:e,...t}){/* @__PURE__ */
142
+ return oi.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[
143
+ /* @__PURE__ */oi.jsx(xt,{className:"size-4 shrink-0 opacity-50"}),
144
+ /* @__PURE__ */oi.jsx(ks.Input,{"data-slot":"command-input",className:hi("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Nl({className:e,...t}){/* @__PURE__ */
145
+ return oi.jsx(ks.List,{"data-slot":"command-list",className:hi("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function zl({...e}){/* @__PURE__ */
146
+ return oi.jsx(ks.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function _l({className:e,...t}){/* @__PURE__ */
147
+ return oi.jsx(ks.Group,{"data-slot":"command-group",className:hi("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function Sl({className:e,...t}){/* @__PURE__ */
148
+ return oi.jsx(ks.Item,{"data-slot":"command-item",className:hi("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}function El({...e}){/* @__PURE__ */
149
+ return oi.jsx(rs.Root,{"data-slot":"popover",...e})}function Bl({...e}){/* @__PURE__ */
150
+ return oi.jsx(rs.Trigger,{"data-slot":"popover-trigger",...e})}function Tl({className:e,align:t="center",sideOffset:r=4,...s}){/* @__PURE__ */
151
+ return oi.jsx(rs.Portal,{children:/* @__PURE__ */oi.jsx(rs.Content,{"data-slot":"popover-content",align:t,sideOffset:r,className:hi("z-1500 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...s})})}function Dl({...e}){/* @__PURE__ */
152
+ return oi.jsx(rs.Anchor,{"data-slot":"popover-anchor",...e})}function Il(){const[t,r]=e.useState(!1),s=C(),n=I(),o=O(),a=o.lang||"plaintext",[i,l]=e.useState(""),c=e.useMemo(()=>Al.filter(e=>!i||e.label.toLowerCase().includes(i.toLowerCase())),[i]);return s?null:/* @__PURE__ */oi.jsxs(El,{open:t,onOpenChange:r,children:[
153
+ /* @__PURE__ */oi.jsx(Bl,{asChild:!0,children:/* @__PURE__ */oi.jsx(Ei,{size:"sm",variant:"ghost",className:"h-6 select-none justify-between gap-1 px-2 text-muted-foreground text-xs","aria-expanded":t,role:"combobox",children:Al.find(e=>e.value===a)?.label??"Plain Text"})}),
154
+ /* @__PURE__ */oi.jsx(Tl,{className:"w-[200px] p-0",onCloseAutoFocus:()=>l(""),children:/* @__PURE__ */oi.jsxs(kl,{shouldFilter:!1,children:[
155
+ /* @__PURE__ */oi.jsx(Cl,{className:"h-9",value:i,onValueChange:e=>l(e),placeholder:"Search language..."}),
156
+ /* @__PURE__ */oi.jsx(zl,{children:"No language found."}),
157
+ /* @__PURE__ */oi.jsx(Nl,{className:"h-[344px] overflow-y-auto",children:/* @__PURE__ */oi.jsx(_l,{children:c.map(e=>/* @__PURE__ */oi.jsxs(Sl,{className:"cursor-pointer",value:e.value,onSelect:e=>{n.tf.setNodes({lang:e},{at:o}),l(e),r(!1)},children:[
158
+ /* @__PURE__ */oi.jsx(zt,{className:hi(a===e.value?"opacity-100":"opacity-0")}),e.label]},e.label))})})]})})]})}function Ol({value:t,...r}){const[s,n]=e.useState(!1);return e.useEffect(()=>{setTimeout(()=>{n(!1)},2e3)},[s]),/* @__PURE__ */oi.jsxs(Ei,{onClick:()=>{navigator.clipboard.writeText("function"==typeof t?t():t),n(!0)},...r,children:[
159
+ /* @__PURE__ */oi.jsx("span",{className:"sr-only",children:"Copy"}),s?/* @__PURE__ */oi.jsx(mt,{className:"!size-3"}):/* @__PURE__ */oi.jsx(_t,{className:"!size-3"})]})}const Al=[{label:"Auto",value:"auto"},{label:"Plain Text",value:"plaintext"},{label:"ABAP",value:"abap"},{label:"Agda",value:"agda"},{label:"Arduino",value:"arduino"},{label:"ASCII Art",value:"ascii"},{label:"Assembly",value:"x86asm"},{label:"Bash",value:"bash"},{label:"BASIC",value:"basic"},{label:"BNF",value:"bnf"},{label:"C",value:"c"},{label:"C#",value:"csharp"},{label:"C++",value:"cpp"},{label:"Clojure",value:"clojure"},{label:"CoffeeScript",value:"coffeescript"},{label:"Coq",value:"coq"},{label:"CSS",value:"css"},{label:"Dart",value:"dart"},{label:"Dhall",value:"dhall"},{label:"Diff",value:"diff"},{label:"Docker",value:"dockerfile"},{label:"EBNF",value:"ebnf"},{label:"Elixir",value:"elixir"},{label:"Elm",value:"elm"},{label:"Erlang",value:"erlang"},{label:"F#",value:"fsharp"},{label:"Flow",value:"flow"},{label:"Fortran",value:"fortran"},{label:"Gherkin",value:"gherkin"},{label:"GLSL",value:"glsl"},{label:"Go",value:"go"},{label:"GraphQL",value:"graphql"},{label:"Groovy",value:"groovy"},{label:"Haskell",value:"haskell"},{label:"HCL",value:"hcl"},{label:"HTML",value:"html"},{label:"Idris",value:"idris"},{label:"Java",value:"java"},{label:"JavaScript",value:"javascript"},{label:"JSON",value:"json"},{label:"Julia",value:"julia"},{label:"Kotlin",value:"kotlin"},{label:"LaTeX",value:"latex"},{label:"Less",value:"less"},{label:"Lisp",value:"lisp"},{label:"LiveScript",value:"livescript"},{label:"LLVM IR",value:"llvm"},{label:"Lua",value:"lua"},{label:"Makefile",value:"makefile"},{label:"Markdown",value:"markdown"},{label:"Markup",value:"markup"},{label:"MATLAB",value:"matlab"},{label:"Mathematica",value:"mathematica"},{label:"Mermaid",value:"mermaid"},{label:"Nix",value:"nix"},{label:"Notion Formula",value:"notion"},{label:"Objective-C",value:"objectivec"},{label:"OCaml",value:"ocaml"},{label:"Pascal",value:"pascal"},{label:"Perl",value:"perl"},{label:"PHP",value:"php"},{label:"PowerShell",value:"powershell"},{label:"Prolog",value:"prolog"},{label:"Protocol Buffers",value:"protobuf"},{label:"PureScript",value:"purescript"},{label:"Python",value:"python"},{label:"R",value:"r"},{label:"Racket",value:"racket"},{label:"Reason",value:"reasonml"},{label:"Ruby",value:"ruby"},{label:"Rust",value:"rust"},{label:"Sass",value:"scss"},{label:"Scala",value:"scala"},{label:"Scheme",value:"scheme"},{label:"SCSS",value:"scss"},{label:"Shell",value:"shell"},{label:"Smalltalk",value:"smalltalk"},{label:"Solidity",value:"solidity"},{label:"SQL",value:"sql"},{label:"Swift",value:"swift"},{label:"TOML",value:"toml"},{label:"TypeScript",value:"typescript"},{label:"VB.Net",value:"vbnet"},{label:"Verilog",value:"verilog"},{label:"VHDL",value:"vhdl"},{label:"Visual Basic",value:"vbnet"},{label:"WebAssembly",value:"wasm"},{label:"XML",value:"xml"},{label:"YAML",value:"yaml"}],Fl=ys(ws),Ml=[js.configure({node:{component:function(e){const{editor:t,element:r}=e;/* @__PURE__ */
160
+ return oi.jsx(k,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */oi.jsxs("div",{className:"relative rounded-md bg-muted/50",children:[
161
+ /* @__PURE__ */oi.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */oi.jsx("code",{children:e.children})}),
162
+ /* @__PURE__ */oi.jsxs("div",{className:"absolute top-1 right-1 z-10 flex select-none gap-0.5",contentEditable:!1,children:[Ce(r.lang)&&/* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",className:"size-6 text-xs",onClick:()=>Ne(t,{element:r}),title:"Format code",children:/* @__PURE__ */oi.jsx(Nt,{className:"!size-3.5 text-muted-foreground"})}),
163
+ /* @__PURE__ */oi.jsx(Il,{}),
164
+ /* @__PURE__ */oi.jsx(Ol,{size:"icon",variant:"ghost",className:"size-6 gap-1 text-muted-foreground text-xs",value:()=>o.string(r)})]})]})})}},options:{lowlight:Fl},shortcuts:{toggle:{keys:"mod+alt+8"}}}),bs.withComponent(function(e){/* @__PURE__ */
165
+ return oi.jsx(k,{...e})}),vs.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
166
+ return oi.jsx(S,{className:t,...e})})],Rl=A(Ts,function(e){const{width:t}=e.element,r=C(),s=T(nt,"isSelectionAreaVisible"),{isDragging:n,previewRef:o,handleRef:i}=ls({element:e.element,orientation:"horizontal",type:"column",canDropNode:({dragEntry:e,dropEntry:t})=>a.equals(a.parent(e[1]),a.parent(t[1]))});/* @__PURE__ */
167
+ return oi.jsxs("div",{className:"group/column relative",style:{width:t??"100%"},children:[!r&&!s&&/* @__PURE__ */oi.jsx("div",{ref:i,className:hi("-translate-x-1/2 -translate-y-1/2 absolute top-2 left-1/2 z-50","pointer-events-auto flex items-center","opacity-0 transition-opacity group-hover/column:opacity-100"),children:/* @__PURE__ */oi.jsx(Ll,{})}),
168
+ /* @__PURE__ */oi.jsx(k,{...e,ref:Fs(e.ref,o),className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",children:/* @__PURE__ */oi.jsxs("div",{className:hi("relative h-full border border-transparent p-1.5",!r&&"rounded-lg border-border border-dashed",n&&"opacity-50"),children:[e.children,!r&&!s&&/* @__PURE__ */oi.jsx(Pl,{})]})})]})}),Ll=e.memo(function(){/* @__PURE__ */
169
+ return oi.jsx(Bi,{children:/* @__PURE__ */oi.jsxs(Ti,{children:[
170
+ /* @__PURE__ */oi.jsx(Di,{asChild:!0,children:/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"!px-1 h-5",children:/* @__PURE__ */oi.jsx(St,{className:"text-muted-foreground",onClick:e=>{e.stopPropagation(),e.preventDefault()}})})}),
171
+ /* @__PURE__ */oi.jsx(Ii,{children:"Drag to move column"})]})})});function Pl(){const{dropLine:e}=cs({orientation:"horizontal"});return e?/* @__PURE__ */oi.jsx("div",{className:hi("slate-dropLine","absolute bg-brand/50","left"===e&&"group-first/column:-left-1 inset-y-0 left-[-10.5px] w-1","right"===e&&"group-last/column:-right-1 inset-y-0 right-[-11px] w-1")}):null}function Hl({children:e}){const t=I(),r=C(),s=O(),{props:n}=F({element:s}),o=N(),a=M(e=>e.api.isCollapsed(),[]),i=R()&&!r&&o&&a,l=e=>{zs(t,{at:s,widths:e})};/* @__PURE__ */
172
+ return oi.jsxs(El,{open:i,modal:!1,children:[
173
+ /* @__PURE__ */oi.jsx(Dl,{children:e}),
174
+ /* @__PURE__ */oi.jsx(Tl,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"top",sideOffset:10,children:/* @__PURE__ */oi.jsxs("div",{className:"box-content flex h-8 items-center",children:[
175
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",onClick:()=>l(["50%","50%"]),children:/* @__PURE__ */oi.jsx(Vl,{})}),
176
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",onClick:()=>l(["33%","33%","33%"]),children:/* @__PURE__ */oi.jsx(Ul,{})}),
177
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",onClick:()=>l(["70%","30%"]),children:/* @__PURE__ */oi.jsx(ql,{})}),
178
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",onClick:()=>l(["30%","70%"]),children:/* @__PURE__ */oi.jsx($l,{})}),
179
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",onClick:()=>l(["25%","50%","25%"]),children:/* @__PURE__ */oi.jsx(Wl,{})}),
180
+ /* @__PURE__ */oi.jsx(Zi,{orientation:"vertical",className:"mx-1 h-6"}),
181
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-8",...n,children:/* @__PURE__ */oi.jsx(Et,{})})]})})]})}const Vl=e=>/* @__PURE__ */oi.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M8.5 3H13V13H8.5V3ZM7.5 2H8.5H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H8.5H7.5H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H7.5ZM7.5 13H3L3 3H7.5V13Z",fill:"currentColor",fillRule:"evenodd"})}),Ul=e=>/* @__PURE__ */oi.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M9.25 3H6.75V13H9.25V3ZM9.25 2H6.75H5.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H5.75H6.75H9.25H10.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H10.25H9.25ZM10.25 3V13H13V3H10.25ZM3 13H5.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),ql=e=>/* @__PURE__ */oi.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M11.25 3H13V13H11.25V3ZM10.25 2H11.25H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H11.25H10.25H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H10.25ZM10.25 13H3L3 3H10.25V13Z",fill:"currentColor",fillRule:"evenodd"})}),$l=e=>/* @__PURE__ */oi.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M5.75 3H13V13H5.75V3ZM4.75 2H5.75H13C13.5523 2 14 2.44772 14 3V13C14 13.5523 13.5523 14 13 14H5.75H4.75H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H4.75ZM4.75 13H3L3 3H4.75V13Z",fill:"currentColor",fillRule:"evenodd"})}),Wl=e=>/* @__PURE__ */oi.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:/* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M10.25 3H5.75V13H10.25V3ZM10.25 2H5.75H4.75H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44772 14 3 14H4.75H5.75H10.25H11.25H13C13.5523 14 14 13.5523 14 13V3C14 2.44772 13.5523 2 13 2H11.25H10.25ZM11.25 3V13H13V3H11.25ZM3 13H4.75V3H3L3 13Z",fill:"currentColor",fillRule:"evenodd"})}),Kl=[Cs.withComponent(function(e){/* @__PURE__ */
182
+ return oi.jsx(k,{className:"mb-2",...e,children:/* @__PURE__ */oi.jsx(Hl,{children:/* @__PURE__ */oi.jsx("div",{className:"flex size-full rounded",children:e.children})})})}),Ns.withComponent(Rl)];const Zl=L(Ls,{handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a=()=>{r("activeId",null),o=!0};for(i(n)||a();n.parentElement;){if(n.classList.contains(`slate-${s}`)){const t=e.comment.node();if(!t){a();break}const s=e.comment.nodeId(t[0]);r("activeId",s??null),o=!0;break}n=n.parentElement}o||a()}},options:{activeId:null,commentingBlock:null,hoverId:null,uniquePathMap:/* @__PURE__ */new Map}}).extendTransforms(({editor:e,setOption:t,tf:{comment:{setDraft:r}}})=>({setDraft:()=>{e.api.isCollapsed()&&e.tf.select(e.api.block()[1]),r(),e.tf.collapse(),t("activeId",Ps()),t("commentingBlock",e.selection.focus.path.slice(0,1))}})).configure({node:{component:function(e){const{children:t,leaf:r}=e,{api:s,setOption:n}=E(Zl),o=T(Zl,"hoverId"),a=T(Zl,"activeId"),i=Rs(r)>1,l=s.comment.nodeId(r),c=a===l,d=o===l;/* @__PURE__ */
183
+ return oi.jsx(S,{...e,className:hi("border-b-2 border-b-highlight/[.36] bg-highlight/[.13] transition-colors duration-200",(d||c)&&"border-b-highlight bg-highlight/25",i&&"border-b-2 border-b-highlight/[.7] bg-highlight/25",(d||c)&&i&&"border-b-highlight bg-highlight/45"),attributes:{...e.attributes,onClick:()=>n("activeId",l??null),onMouseEnter:()=>n("hoverId",l??null),onMouseLeave:()=>n("hoverId",null)},children:t})}},shortcuts:{setDraft:{keys:"mod+shift+m"}}}),Gl=[Zl];function Yl(){const{cursors:e}=it();/* @__PURE__ */
184
+ return oi.jsx(oi.Fragment,{children:e.map(e=>/* @__PURE__ */oi.jsx(Jl,{...e},e.id))})}function Jl({id:e,caretPosition:t,data:r,selection:s,selectionRects:n}){const o=I(),a=T(ct,"streaming"),{style:i,selectionStyle:c=i}=r??{},d=l.isCollapsed(s);if(a)return null;if("selection"===e&&s){if(Vs(o,{at:s,format:"cell"}).length>1)return null}/* @__PURE__ */
185
+ return oi.jsxs(oi.Fragment,{children:[n.map((t,r)=>/* @__PURE__ */oi.jsx("div",{className:hi("pointer-events-none absolute z-10","selection"===e&&"bg-brand/25","selection"===e&&d&&"bg-primary"),style:{...c,...t}},r)),t&&/* @__PURE__ */oi.jsx("div",{className:hi("pointer-events-none absolute z-10 w-0.5","drag"===e&&"w-px bg-brand"),style:{...t,...i}})]})}const Xl=[lt.configure({render:{afterEditable:()=>/* @__PURE__ */oi.jsx(Yl,{})}})];function Ql({className:e,classNames:t,showOutsideDays:r=!0,captionLayout:s="label",buttonVariant:n="ghost",formatters:o,components:a,...i}){const l=Gs();/* @__PURE__ */
186
+ return oi.jsx(Ys,{showOutsideDays:r,className:hi("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...o},classNames:{root:hi("w-fit",l.root),months:hi("relative flex flex-col gap-4 md:flex-row",l.months),month:hi("flex w-full flex-col gap-4",l.month),nav:hi("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:hi(Si({variant:n}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",l.button_previous),button_next:hi(Si({variant:n}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",l.button_next),month_caption:hi("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",l.month_caption),dropdowns:hi("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:hi("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",l.dropdown_root),dropdown:hi("absolute inset-0 bg-popover opacity-0",l.dropdown),caption_label:hi("font-medium select-none","label"===s?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",l.caption_label),table:"w-full border-collapse",weekdays:hi("flex",l.weekdays),weekday:hi("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",l.weekday),week:hi("mt-2 flex w-full",l.week),week_number_header:hi("w-(--cell-size) select-none",l.week_number_header),week_number:hi("text-[0.8rem] text-muted-foreground select-none",l.week_number),day:hi("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",i.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",l.day),range_start:hi("rounded-l-md bg-accent",l.range_start),range_middle:hi("rounded-none",l.range_middle),range_end:hi("rounded-r-md bg-accent",l.range_end),today:hi("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",l.today),outside:hi("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:hi("text-muted-foreground opacity-50",l.disabled),hidden:hi("invisible",l.hidden),...t},components:{Root:({className:e,rootRef:t,...r})=>/* @__PURE__ */oi.jsx("div",{"data-slot":"calendar",ref:t,className:hi(e),...r}),Chevron:({className:e,orientation:t,...r})=>"left"===t?/* @__PURE__ */oi.jsx(Bt,{className:hi("size-4",e),...r}):"right"===t?/* @__PURE__ */oi.jsx(dt,{className:hi("size-4",e),...r}):/* @__PURE__ */oi.jsx(Tt,{className:hi("size-4",e),...r}),DayButton:ec,WeekNumber:({children:e,...t})=>/* @__PURE__ */oi.jsx("td",{...t,children:/* @__PURE__ */oi.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:e})}),...a},...i})}function ec({className:t,day:r,modifiers:s,...n}){const o=Gs(),a=e.useRef(null);return e.useEffect(()=>{s.focused&&a.current?.focus()},[s.focused]),/* @__PURE__ */oi.jsx(Ei,{ref:a,variant:"ghost",size:"icon","data-day":r.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:hi("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",o.day,t),...n})}const tc=[Zs.withComponent(function(e){const{editor:t,element:r}=e,s=C(),n=/* @__PURE__ */oi.jsx("span",{className:hi("w-fit cursor-pointer rounded-sm bg-muted px-1 text-muted-foreground"),contentEditable:!1,draggable:!0,children:r.date?(()=>{const e=/* @__PURE__ */new Date,t=new Date(r.date),s=t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===t.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===t.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":t.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */oi.jsx("span",{children:"Pick a date"})});return s?n:/* @__PURE__ */oi.jsxs(k,{...e,className:"inline-block",attributes:{...e.attributes,contentEditable:!1},children:[
187
+ /* @__PURE__ */oi.jsxs(El,{children:[
188
+ /* @__PURE__ */oi.jsx(Bl,{asChild:!0,children:n}),
189
+ /* @__PURE__ */oi.jsx(Tl,{className:"w-auto p-0",children:/* @__PURE__ */oi.jsx(Ql,{selected:new Date(r.date),onSelect:e=>{e&&t.tf.setNodes({date:e.toDateString()},{at:r})},mode:"single",initialFocus:!0})})]}),e.children]})})],rc=et(hi("bg-emerald-100 text-emerald-700 no-underline transition-colors duration-200"),{defaultVariants:{insertActive:!1,remove:!1,removeActive:!1},variants:{insertActive:{false:"",true:"bg-emerald-200/80"},remove:{false:"",true:"bg-red-100 text-red-700"},removeActive:{false:"",true:"bg-red-200/80 no-underline"}}});function sc({children:t,suggestionData:r}){const{isLineBreak:s,type:n}=r,o="remove"===n,a="insert"===n,i=T(nc,"activeId"),l=T(nc,"hoverId"),c=i===r.id,d=l===r.id,u=e.useRef(null),{setOption:m}=E(nc);/* @__PURE__ */
190
+ return oi.jsx(oi.Fragment,{children:s?/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[t,
191
+ /* @__PURE__ */oi.jsx("span",{ref:u,className:hi("absolute text-justify",rc({insertActive:a&&(c||d),remove:o,removeActive:(c||d)&&o})),style:{bottom:3.5,height:21},contentEditable:!1,children:/* @__PURE__ */oi.jsx(Dt,{className:"mt-0.5 size-4"})})]}):/* @__PURE__ */oi.jsx("div",{className:hi(rc({insertActive:a&&(c||d),remove:o,removeActive:(c||d)&&o})),onMouseEnter:()=>m("hoverId",r.id),onMouseLeave:()=>m("hoverId",null),"data-block-suggestion":"true",children:t})})}const nc=L(Qs,({editor:e})=>({options:{activeId:null,currentUserId:e.getOption(Nc,"currentUser")??"",hoverId:null,uniquePathMap:/* @__PURE__ */new Map}})).configure({handlers:{onClick:({api:e,event:t,setOption:r,type:s})=>{let n=t.target,o=!1;const a="true"===n.dataset.blockSuggestion,l=()=>{r("activeId",null),o=!0};for(i(n)||a||l();n.parentElement&&!c(n.parentElement);){const t="true"===n.dataset.blockSuggestion;if(n.classList.contains(`slate-${s}`)||t){const s=e.suggestion.node({isText:!t});if(!s){l();break}const n=e.suggestion.nodeId(s[0]);r("activeId",n??null),o=!0;break}n=n.parentElement}o||l()}},render:{belowNodes:({api:e,element:t})=>{if(!e.suggestion.isBlockSuggestion(t))return;const r=t.suggestion;return function({children:e}){/* @__PURE__ */
192
+ return oi.jsx(sc,{suggestionData:r,children:e})}},node:function(e){const{api:t,setOption:r}=E(nc),s=e.leaf,n=t.suggestion.nodeId(s)??"",o=T(nc,"activeId"),a=T(nc,"hoverId"),i=t.suggestion.dataList(s),l=i.some(e=>"remove"===e.type),c=i.some(e=>e.id===o),d=i.some(e=>e.id===a),u={delete:"del",insert:"ins",update:"span"}[l?"delete":"insert"];/* @__PURE__ */
193
+ return oi.jsx(S,{...e,as:u,className:hi(rc({insertActive:c||d,remove:l,removeActive:(c||d)&&l})),attributes:{...e.attributes,onMouseEnter:()=>r("hoverId",n),onMouseLeave:()=>r("hoverId",null)},children:e.children})}}}),oc=[nc];function ac({className:e,size:t="default",...r}){/* @__PURE__ */
194
+ return oi.jsx(Jr.Root,{"data-slot":"avatar","data-size":t,className:hi("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",e),...r})}function ic({className:e,...t}){/* @__PURE__ */
195
+ return oi.jsx(Jr.Fallback,{"data-slot":"avatar-fallback",className:hi("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}function lc(e){if(!e)return{id:"",name:""};const t=e.indexOf(":");return-1===t?{id:e,name:e}:{id:e.slice(0,t),name:e.slice(t+1).trim()}}const cc=et("relative w-full cursor-text select-text overflow-y-auto caret-primary selection:bg-brand/25 focus-visible:outline-none [&_.slate-selection-area]:z-50 [&_.slate-selection-area]:border [&_.slate-selection-area]:border-brand/25 [&_.slate-selection-area]:bg-brand/15",{defaultVariants:{variant:"default"},variants:{variant:{comment:hi("flex flex-wrap justify-between gap-1 px-1 py-0.5 text-sm","rounded-md border-[1.5px] border-transparent bg-transparent","has-[[data-slate-editor]:focus]:border-brand/50 has-[[data-slate-editor]:focus]:ring-2 has-[[data-slate-editor]:focus]:ring-brand/30","has-aria-disabled:border-input has-aria-disabled:bg-muted"),default:"h-full",demo:"h-[650px]",select:hi("group rounded-md border border-input ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2","has-data-readonly:w-fit has-data-readonly:cursor-default has-data-readonly:border-transparent has-data-readonly:focus-within:[box-shadow:none]")}}});function dc({className:e,variant:t,...r}){/* @__PURE__ */
196
+ return oi.jsx(P,{className:hi("ignore-click-outside/toolbar",cc({variant:t}),e),...r})}const uc=et(hi("group/editor","relative w-full cursor-text select-text overflow-x-hidden whitespace-pre-wrap break-words","rounded-md ring-offset-background focus-visible:outline-none","**:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!","[&_strong]:font-bold"),{defaultVariants:{variant:"default"},variants:{disabled:{true:"cursor-not-allowed opacity-50"},focused:{true:"ring-2 ring-ring ring-offset-2"},variant:{ai:"w-full px-0 text-base md:text-sm",aiChat:"max-h-[min(70vh,320px)] w-full overflow-y-auto px-3 py-2 text-base md:text-sm",comment:hi("rounded-none border-none bg-transparent text-sm"),default:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",demo:"size-full px-16 pt-4 pb-72 text-base sm:px-[max(64px,calc(50%-350px))]",fullWidth:"size-full px-16 pt-4 pb-72 text-base sm:px-24",none:"",select:"px-3 py-2 text-base data-readonly:w-fit"}}}),mc=({className:e,disabled:t,focused:r,variant:s,ref:n,...o})=>/* @__PURE__ */oi.jsx(H,{ref:n,className:hi(uc({disabled:t,focused:r,variant:s}),e),disabled:t,disableDefaultStyles:!0,...o});function hc({className:e,variant:t,...r}){/* @__PURE__ */
197
+ return oi.jsx(V,{...r,className:hi(uc({variant:t}),e)})}function xc(t){const{comment:r,discussionLength:s,documentContent:n,editingId:o,index:a,setEditingId:i,showDocumentContent:l=!1,onEditorClick:c}=t,d=I(),u=T(Nc,"user",r.userId),m=T(Nc,"currentUser"),{tf:h}=E(Xs),x=m===r.userId,p=r.contentRich,f=fc({id:r.id,value:p},[p]),g=()=>{(async e=>{const t=d.getOption(Nc,"discussions").map(t=>{if(t.id===e.discussionId){const r=t.comments.map(t=>t.id===e.id?{...t,contentRich:e.contentRich,isEdited:!0,updatedAt:/* @__PURE__ */new Date}:t);return{...t,comments:r}}return t});d.setOption(Nc,"discussions",t)})({id:r.id,contentRich:f.children,discussionId:r.discussionId}),i(null)},j=0===a,b=a===s-1,v=o&&o===r.id,[y,w]=e.useState(!1),[k,C]=e.useState(!1);/* @__PURE__ */
198
+ return oi.jsxs("div",{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[
199
+ /* @__PURE__ */oi.jsxs("div",{className:"relative flex items-center",children:[
200
+ /* @__PURE__ */oi.jsx(ac,{className:"size-5",children:/* @__PURE__ */oi.jsx(ic,{children:u?.name?.[0]})}),
201
+ /* @__PURE__ */oi.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:u?.name}),
202
+ /* @__PURE__ */oi.jsxs("div",{className:"text-muted-foreground/80 text-xs leading-none",children:[
203
+ /* @__PURE__ */oi.jsx("span",{className:"mr-1",children:jc(new Date(r.createdAt))}),r.isEdited&&/* @__PURE__ */oi.jsx("span",{children:"(edited)"})]}),x&&(y||k)&&/* @__PURE__ */oi.jsxs("div",{className:"absolute top-0 right-0 flex space-x-1",children:[0===a&&/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"h-6 p-1 text-muted-foreground",onClick:()=>{(async e=>{const t=d.getOption(Nc,"discussions").map(t=>t.id===e?{...t,isResolved:!0}:t);d.setOption(Nc,"discussions",t)})(r.discussionId),h.comment.unsetMark({id:r.discussionId})},type:"button",children:/* @__PURE__ */oi.jsx(mt,{className:"size-4"})}),
204
+ /* @__PURE__ */oi.jsx(pc,{onCloseAutoFocus:()=>{setTimeout(()=>{f.tf.focus({edge:"endEditor"})},0)},onRemoveComment:()=>{1===s&&(h.comment.unsetMark({id:r.discussionId}),(async e=>{const t=d.getOption(Nc,"discussions").filter(t=>t.id!==e);d.setOption(Nc,"discussions",t)})(r.discussionId))},comment:r,dropdownOpen:k,setDropdownOpen:C,setEditingId:i})]})]}),j&&l&&/* @__PURE__ */oi.jsxs("div",{className:"relative mt-1 flex pl-[32px] text-sm text-subtle-foreground",children:[s>1&&/* @__PURE__ */oi.jsx("div",{className:"absolute top-[5px] left-3 h-full w-0.5 shrink-0 bg-muted"}),
205
+ /* @__PURE__ */oi.jsx("div",{className:"my-px w-0.5 shrink-0 bg-highlight"}),n&&/* @__PURE__ */oi.jsx("div",{className:"ml-2",children:n})]}),
206
+ /* @__PURE__ */oi.jsxs("div",{className:"relative my-1 pl-[26px]",children:[!b&&/* @__PURE__ */oi.jsx("div",{className:"absolute top-0 left-3 h-full w-0.5 shrink-0 bg-muted"}),
207
+ /* @__PURE__ */oi.jsx(U,{readOnly:!v,editor:f,children:/* @__PURE__ */oi.jsxs(dc,{variant:"comment",children:[
208
+ /* @__PURE__ */oi.jsx(mc,{variant:"comment",className:"w-auto grow",onClick:()=>c?.()}),v&&/* @__PURE__ */oi.jsxs("div",{className:"ml-auto flex shrink-0 gap-1",children:[
209
+ /* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",className:"size-[28px]",onClick:e=>{e.stopPropagation(),i(null),f.tf.replaceNodes(p,{at:[],children:!0})},children:/* @__PURE__ */oi.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-primary/40",children:/* @__PURE__ */oi.jsx(pt,{className:"size-3 stroke-[3px] text-background"})})}),
210
+ /* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",onClick:e=>{e.stopPropagation(),g()},children:/* @__PURE__ */oi.jsx("div",{className:"flex size-5 shrink-0 items-center justify-center rounded-[50%] bg-brand",children:/* @__PURE__ */oi.jsx(mt,{className:"size-3 stroke-[3px] text-background"})})})]})]})})]})]})}function pc(t){const{comment:r,dropdownOpen:s,setDropdownOpen:n,setEditingId:o,onCloseAutoFocus:a,onRemoveComment:i}=t,l=I(),c=e.useRef(!1),d=e.useCallback(()=>{if(!r.id)return alert("You are operating too quickly, please try again later.");const e=l.getOption(Nc,"discussions").map(e=>{if(e.id!==r.discussionId)return e;const t=e.comments.findIndex(e=>e.id===r.id);return-1===t?e:{...e,comments:[...e.comments.slice(0,t),...e.comments.slice(t+1)]}});l.setOption(Nc,"discussions",e),i?.()},[r.discussionId,r.id,l,i]),u=e.useCallback(()=>{if(c.current=!0,!r.id)return alert("You are operating too quickly, please try again later.");o(r.id)},[r.id,o]);/* @__PURE__ */
211
+ return oi.jsxs(Oi,{open:s,onOpenChange:n,modal:!1,children:[
212
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,onClick:e=>e.stopPropagation(),children:/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:hi("h-6 p-1 text-muted-foreground"),children:/* @__PURE__ */oi.jsx(Ot,{className:"size-4"})})}),
213
+ /* @__PURE__ */oi.jsx(Mi,{className:"w-48",onCloseAutoFocus:e=>(c.current&&(a?.(),c.current=!1),e.preventDefault()),children:/* @__PURE__ */oi.jsxs(Ri,{children:[
214
+ /* @__PURE__ */oi.jsxs(Li,{onClick:u,children:[
215
+ /* @__PURE__ */oi.jsx(At,{className:"size-4"}),"Edit comment"]}),
216
+ /* @__PURE__ */oi.jsxs(Li,{onClick:d,children:[
217
+ /* @__PURE__ */oi.jsx(Ft,{className:"size-4"}),"Delete comment"]})]})})]})}mc.displayName="Editor",hc.displayName="EditorView";const fc=(e={},t=[])=>q({id:"comment",plugins:pi,value:[],...e},t);function gc({autoFocus:t=!1,className:s,discussionId:n,focusOnMount:a=!1}){const i=T(Nc,"discussions"),l=I(),c=Js(),u=n??c,m=lc(T(Nc,"currentUser")??""),[h,x]=e.useState(),p=e.useMemo(()=>h?o.string({children:h,type:r.p}):"",[h]),f=fc();e.useEffect(()=>{f&&a&&f.tf.focus()},[f,a]);const g=e.useCallback(async()=>{if(!h)return;if(f.tf.reset(),u){const e=i.find(e=>e.id===u);if(!e){const e={id:u,comments:[{id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:u,isEdited:!1,userId:l.getOption(Nc,"currentUser")??""}],createdAt:/* @__PURE__ */new Date,isResolved:!1,userId:l.getOption(Nc,"currentUser")??""};return void l.setOption(Nc,"discussions",[...i,e])}const t={id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:u,isEdited:!1,userId:l.getOption(Nc,"currentUser")??""},r={...e,comments:[...e.comments,t]},s=i.filter(e=>e.id!==u).concat(r);return void l.setOption(Nc,"discussions",s)}const e=l.getApi(Xs).comment.nodes({at:[],isDraft:!0});if(0===e.length)return;const t=e.map(([e])=>e.text).join(""),r=d(),s={id:r,comments:[{id:d(),contentRich:h,createdAt:/* @__PURE__ */new Date,discussionId:r,isEdited:!1,userId:l.getOption(Nc,"currentUser")??""}],createdAt:/* @__PURE__ */new Date,documentContent:t,isResolved:!1,userId:l.getOption(Nc,"currentUser")??""};l.setOption(Nc,"discussions",[...i,s]);const n=s.id;e.forEach(([,e])=>{l.tf.setNodes({[Hs(n)]:!0},{at:e,split:!0}),l.tf.unsetNodes([Ps()],{at:e})})},[h,f.tf,u,l,i]);/* @__PURE__ */
218
+ return oi.jsxs("div",{className:hi("flex w-full",s),children:[
219
+ /* @__PURE__ */oi.jsx("div",{className:"mt-2 mr-1 shrink-0",children:/* @__PURE__ */oi.jsx(ac,{className:"size-5",children:/* @__PURE__ */oi.jsx(ic,{children:m?.name?.[0]})})}),
220
+ /* @__PURE__ */oi.jsx("div",{className:"relative flex grow gap-2",children:/* @__PURE__ */oi.jsx(U,{onChange:({value:e})=>{x(e)},editor:f,children:/* @__PURE__ */oi.jsxs(dc,{variant:"comment",children:[
221
+ /* @__PURE__ */oi.jsx(mc,{variant:"comment",className:"min-h-[25px] grow pt-0.5 pr-8",onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),g())},placeholder:"Reply...",autoComplete:"off",autoFocus:t}),
222
+ /* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",className:"absolute right-0.5 bottom-0.5 ml-auto size-6 shrink-0",disabled:0===p.trim().length,onClick:e=>{e.stopPropagation(),g()},children:/* @__PURE__ */oi.jsx("div",{className:"flex size-6 items-center justify-center rounded-full",children:/* @__PURE__ */oi.jsx(It,{})})})]})})})]})}const jc=e=>{const t=/* @__PURE__ */new Date,r=an(t,e),s=ln(t,e),n=cn(t,e);return r<60?`${r}m`:s<24?`${s}h`:n<2?`${n}d`:dn(e,"MM/dd/yyyy")},bc="__block__",vc={[r.audio]:()=>"Audio",[r.blockquote]:()=>"Blockquote",[r.callout]:()=>"Callout",[r.codeBlock]:()=>"Code Block",[r.column]:()=>"Column",[r.equation]:()=>"Equation",[r.file]:()=>"File",[r.h1]:()=>"Heading 1",[r.h2]:()=>"Heading 2",[r.h3]:()=>"Heading 3",[r.h4]:()=>"Heading 4",[r.h5]:()=>"Heading 5",[r.h6]:()=>"Heading 6",[r.hr]:()=>"Horizontal Rule",[r.img]:()=>"Image",[r.mediaEmbed]:()=>"Media",[r.p]:e=>e?.[r.listType]===r.listTodo?"Todo List":e?.[r.listType]===r.ol?"Ordered List":e?.[r.listType]===r.ul?"List":"Paragraph",[r.table]:()=>"Table",[r.th]:()=>"Table Header",[r.tr]:()=>"Table Row",[r.td]:()=>"Table Cell",[r.toc]:()=>"Table of Contents",[r.toggle]:()=>"Toggle",[r.video]:()=>"Video"};function yc({idx:t,isLast:r,suggestion:s}){const{api:n,editor:o}=E(on),a=T(Nc,"user",s.userId),[i,l]=e.useState(!1),c=e=>e===bc?["line breaks"]:e.split(bc).filter(Boolean),d=["Table","Table Header","Table Cell","Table Row"],[u,m]=e.useState(null);/* @__PURE__ */
223
+ return oi.jsxs("div",{className:"relative",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[
224
+ /* @__PURE__ */oi.jsxs("div",{className:"flex flex-col p-4",children:[
225
+ /* @__PURE__ */oi.jsxs("div",{className:"relative flex items-center",children:[
226
+ /* @__PURE__ */oi.jsx(ac,{className:"size-5",children:/* @__PURE__ */oi.jsx(ic,{children:a?.name?.[0]})}),
227
+ /* @__PURE__ */oi.jsx("h4",{className:"mx-2 font-semibold text-sm leading-none",children:a?.name}),
228
+ /* @__PURE__ */oi.jsx("div",{className:"text-muted-foreground/80 text-xs leading-none",children:/* @__PURE__ */oi.jsx("span",{className:"mr-1",children:jc(new Date(s.createdAt))})})]}),
229
+ /* @__PURE__ */oi.jsx("div",{className:"relative mt-1 mb-4 pl-[32px]",children:/* @__PURE__ */oi.jsxs("div",{className:"flex flex-col gap-2",children:["remove"===s.type&&(h=s.text,c(h).some(e=>d.includes(e))?/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
230
+ /* @__PURE__ */oi.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
231
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:"Table Deleted"})]}):c(s.text).map((e,t)=>/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
232
+ /* @__PURE__ */oi.jsx("span",{className:"text-muted-foreground text-sm",children:"Delete:"}),
233
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:e},t)]},t))),"insert"===s.type&&c(s.newText).map((e,t)=>/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
234
+ /* @__PURE__ */oi.jsx("span",{className:"text-muted-foreground text-sm",children:"Add:"}),
235
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:e||"line breaks"},t)]},t)),"replace"===s.type&&/* @__PURE__ */oi.jsxs("div",{className:"flex flex-col gap-2",children:[c(s.newText).map((t,r)=>/* @__PURE__ */oi.jsx(e.Fragment,{children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-start gap-2 text-brand/80",children:[
236
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:"with:"}),
237
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r)),c(s.text).map((t,r)=>/* @__PURE__ */oi.jsx(e.Fragment,{children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-start gap-2",children:[
238
+ /* @__PURE__ */oi.jsx("span",{className:"text-muted-foreground text-sm",children:0===r?"Replace:":"Delete:"}),
239
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:t||"line breaks"})]},r)},r))]}),"update"===s.type&&/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
240
+ /* @__PURE__ */oi.jsxs("span",{className:"text-muted-foreground text-sm",children:[Object.keys(s.properties).map(e=>/* @__PURE__ */oi.jsxs("span",{children:["Un",e]},e)),Object.keys(s.newProperties).map(e=>/* @__PURE__ */oi.jsx("span",{children:e.charAt(0).toUpperCase()+e.slice(1)},e))]}),
241
+ /* @__PURE__ */oi.jsx("span",{className:"text-sm",children:s.newText})]})]})}),s.comments.map((e,t)=>/* @__PURE__ */oi.jsx(xc,{comment:e,discussionLength:s.comments.length,documentContent:"__suggestion__",editingId:u,index:t,setEditingId:m},e.id??t)),i&&/* @__PURE__ */oi.jsxs("div",{className:"absolute top-4 right-4 flex gap-2",children:[
242
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{rn(o,e)});var e},children:/* @__PURE__ */oi.jsx(mt,{className:"size-4"})}),
243
+ /* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:"size-6 p-1 text-muted-foreground",onClick:()=>{return e=s,void n.suggestion.withoutSuggestions(()=>{sn(o,e)});var e},children:/* @__PURE__ */oi.jsx(pt,{className:"size-4"})})]}),
244
+ /* @__PURE__ */oi.jsx(gc,{discussionId:s.suggestionId})]}),!r&&/* @__PURE__ */oi.jsx("div",{className:"h-px w-full bg-muted"})]},`${s.suggestionId}-${t}`);var h}const wc=({blockPath:t,children:s,commentNodes:n,draftCommentNode:o,suggestionNodes:i})=>{const l=I(),c=((t,s)=>{const n=T(Nc,"discussions"),{api:o,editor:i,getOption:l,setOption:c}=E(nc);return t.forEach(([e])=>{const t=o.suggestion.nodeId(e),r=l("uniquePathMap");if(!t)return;const n=r.get(t);if(a.isPath(n)){const e=o.suggestion.node({id:t,at:n,isText:!0}),a=o.node(n);let i=null;a&&u.isElement(a[0])&&(i=o.suggestion.nodeId(a[0])??null),e||i===t||c("uniquePathMap",new Map(r).set(t,s))}else c("uniquePathMap",new Map(r).set(t,s))}),e.useMemo(()=>{const e=l("uniquePathMap");if(0===t.length)return[];const c=new Set(t.flatMap(([e])=>{if(m.isText(e)){const t=o.suggestion.dataList(e);return t.some(e=>"update"===e.type)?t.filter(e=>"update"===e.type).map(e=>e.id):o.suggestion.nodeId(e)??[]}return u.isElement(e)?o.suggestion.nodeId(e)??[]:[]}).filter(Boolean)),d=[];return c.forEach(t=>{if(!t)return;const l=e.get(t);if(!l||!a.isPath(l))return;if(!a.equals(l,s))return;const c=[...i.api.nodes({at:[],mode:"all",match:e=>e[r.suggestion]&&e[en(t)]||o.suggestion.nodeId(e)===t})];c.sort(([,e],[,t])=>a.isChild(e,t)?-1:1);let u="",h="",x={},p={};if(c.forEach(([e])=>{if(m.isText(e))o.suggestion.dataList(e).forEach(r=>{if(r.id===t)switch(r.type){case"insert":u+=e.text;break;case"remove":h+=e.text;break;case"update":x={...x,...r.properties},p={...p,...r.newProperties},u+=e.text}});else{const r=o.suggestion.isBlockSuggestion(e)?e.suggestion:void 0;r?.id===tn(t)&&("insert"===r.type?u+=r.isLineBreak?bc:bc+(vc[e.type]??(()=>"Block"))(e):"remove"===r.type&&(h+=r.isLineBreak?bc:bc+(vc[e.type]??(()=>"Block"))(e)))}}),0===c.length)return;const f=o.suggestion.suggestionData(c[0][0]);if(!f)return;const g=n.find(e=>e.id===t)?.comments||[],j=new Date(f.createdAt),b=en(t);"update"===f.type?d.push({comments:g,createdAt:j,keyId:b,newProperties:p,newText:u,properties:x,suggestionId:tn(t),type:"update",userId:f.userId}):u.length>0&&h.length>0?d.push({comments:g,createdAt:j,keyId:b,newText:u,suggestionId:tn(t),text:h,type:"replace",userId:f.userId}):u.length>0?d.push({comments:g,createdAt:j,keyId:b,newText:u,suggestionId:tn(t),type:"insert",userId:f.userId}):h.length>0&&d.push({comments:g,createdAt:j,keyId:b,suggestionId:tn(t),text:h,type:"remove",userId:f.userId})}),d},[o.suggestion,s,n,i.api,l,t])})(i,t),d=Cc(n,t),h=c.length,x=d.length,p=h+x,f=T(nc,"activeId"),g=f&&c.find(e=>e.suggestionId===f),j=T(Zl,"commentingBlock"),b=T(Zl,"activeId"),v=b===Ps(),y=b&&d.find(e=>e.id===b),w=!g&&!y,k=[...d,...c].sort((e,t)=>e.createdAt.getTime()-t.createdAt.getTime()),C=d.some(e=>e.id===b)||c.some(e=>e.suggestionId===f),[N,z]=e.useState(C),_=!!j&&a.equals(t,j),S=N||C||v&&!!o&&_,B=e.useMemo(()=>{let e;return g&&(e=i.find(([e])=>m.isText(e)&&l.getApi(on).suggestion.nodeId(e)===g.suggestionId)),b&&(e=b===Ps()?o:n.find(([e])=>l.getApi(Zl).comment.nodeId(e)===b)),e?l.api.toDOMNode(e[0]):null},[S,g,b,l.api,i,o,n]);return h+d.length!==0||o?/* @__PURE__ */oi.jsx("div",{className:"flex w-full justify-between",children:/* @__PURE__ */oi.jsxs(El,{open:S,onOpenChange:e=>{!e&&v&&o&&l.tf.unsetNodes(Ps(),{at:[],mode:"lowest",match:e=>e[Ps()]}),z(e)},children:[
245
+ /* @__PURE__ */oi.jsx("div",{className:"w-full",children:s}),B&&/* @__PURE__ */oi.jsx(Dl,{asChild:!0,className:"w-full",virtualRef:{current:B}}),
246
+ /* @__PURE__ */oi.jsx(Tl,{className:"max-h-[min(50dvh,calc(-24px+var(--radix-popper-available-height)))] w-[380px] min-w-[130px] max-w-[calc(100vw-24px)] overflow-y-auto p-0 data-[state=closed]:opacity-0",onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),align:"center",side:"bottom",children:v?/* @__PURE__ */oi.jsx(gc,{className:"p-4",focusOnMount:!0}):w?k.map((e,t)=>"suggestionId"in e?/* @__PURE__ */oi.jsx(yc,{idx:t,isLast:t===k.length-1,suggestion:e},e.suggestionId):/* @__PURE__ */oi.jsx(kc,{discussion:e,isLast:t===k.length-1},e.id)):/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[g&&/* @__PURE__ */oi.jsx(yc,{idx:0,isLast:!0,suggestion:g},g.suggestionId),y&&/* @__PURE__ */oi.jsx(kc,{discussion:y,isLast:!0})]})}),p>0&&/* @__PURE__ */oi.jsx("div",{className:"relative left-0 size-0 select-none",children:/* @__PURE__ */oi.jsx(Bl,{asChild:!0,children:/* @__PURE__ */oi.jsxs(Ei,{variant:"ghost",className:"!px-1.5 mt-1 ml-1 flex h-6 gap-1 py-0 text-muted-foreground/80 hover:text-muted-foreground/80 data-[active=true]:bg-muted","data-active":S,contentEditable:!1,children:[h>0&&0===x&&/* @__PURE__ */oi.jsx(Mt,{className:"size-4 shrink-0"}),0===h&&x>0&&/* @__PURE__ */oi.jsx(Rt,{className:"size-4 shrink-0"}),h>0&&x>0&&/* @__PURE__ */oi.jsx(Lt,{className:"size-4 shrink-0"}),
247
+ /* @__PURE__ */oi.jsx("span",{className:"font-semibold text-xs",children:p})]})})})]})}):/* @__PURE__ */oi.jsx("div",{className:"w-full",children:s})};function kc({discussion:t,isLast:r}){const[s,n]=e.useState(null);/* @__PURE__ */
248
+ return oi.jsxs(e.Fragment,{children:[
249
+ /* @__PURE__ */oi.jsxs("div",{className:"p-4",children:[t.comments.map((e,r)=>/* @__PURE__ */oi.jsx(xc,{comment:e,discussionLength:t.comments.length,documentContent:t?.documentContent,editingId:s,index:r,setEditingId:n,showDocumentContent:!0},e.id??r)),
250
+ /* @__PURE__ */oi.jsx(gc,{discussionId:t.id})]}),!r&&/* @__PURE__ */oi.jsx("div",{className:"h-px w-full bg-muted"})]},t.id)}const Cc=(t,r)=>{const{api:s,getOption:n,setOption:o}=E(Zl),i=T(Nc,"discussions");e.useEffect(()=>{let e=n("uniquePathMap"),i=!1;t.forEach(([t])=>{const n=s.comment.nodeId(t);if(!n)return;const o=e.get(n);if(a.isPath(o)){return s.comment.node({id:n,at:o})?void 0:(e=new Map(e).set(n,r),void(i=!0))}e=new Map(e).set(n,r),i=!0}),i&&o("uniquePathMap",e)},[s,t,r,n,o]);const l=new Set(t.map(([e])=>s.comment.nodeId(e)).filter(Boolean));return i.map(e=>({...e,createdAt:new Date(e.createdAt)})).filter(e=>{const t=n("uniquePathMap").get(e.id);return!!t&&(!!a.equals(t,r)&&(s.comment.has({id:e.id})&&l.has(e.id)&&!e.isResolved))})},Nc=$({key:"discussion",options:{commenting:!1,currentUser:"admin",discussions:[]}}).configure({render:{aboveNodes:e=>{const{editor:t,element:r}=e,s=t.getApi(Xs).comment,n=t.api.findPath(r);if(!n||n.length>1)return;const o=s.node({at:n,isDraft:!0}),a=[...s.nodes({at:n})],i=[...t.getApi(on).suggestion.nodes({at:n})].filter(([e])=>!e[nn()]);return 0!==a.length||0!==i.length||o?e=>/* @__PURE__ */oi.jsx(wc,{blockPath:n,commentNodes:a,draftCommentNode:o,suggestionNodes:i,...e}):void 0}}}).extendSelectors(({getOption:e})=>({currentUserInfo:()=>lc(e("currentUser")??""),user:e=>lc(e)})),zc=[Nc],_c=[r.column,r.tr,r.td];function Sc(t){const{children:r,editor:s,element:n,path:o}=t,a=s.getApi(nt).blockSelection,{isAboutToDrag:i,isDragging:l,nodeRef:c,previewRef:d,handleRef:u}=ls({element:n,onDropHandler:(e,{dragItem:t})=>{const r=t.id;a&&a.add(r),g()}}),m=3===o.length,h=4===o.length,[p,f]=e.useState(0),g=()=>{d.current&&(d.current.replaceChildren(),d.current?.classList.add("hidden"))};e.useEffect(()=>{l||g()},[l]),e.useEffect(()=>{i&&d.current?.classList.remove("opacity-0")},[i]);const[j,b]=e.useState(0);/* @__PURE__ */
251
+ return oi.jsxs("div",{className:hi("relative",l&&"opacity-50",x(s,n.type)?.node.isContainer?"group/container":"group"),onMouseEnter:()=>{l||b(Oc(s,n))},children:[!h&&/* @__PURE__ */oi.jsx(Ec,{children:/* @__PURE__ */oi.jsx("div",{className:hi("slate-blockToolbarWrapper","flex h-[1.5em]",m&&"h-4"),children:/* @__PURE__ */oi.jsx("div",{className:hi("slate-blockToolbar relative w-4.5","pointer-events-auto mr-1 flex items-center",m&&"mr-1.5"),children:/* @__PURE__ */oi.jsx(Ei,{ref:u,variant:"ghost",className:"-left-0 absolute h-6 w-full p-0",style:{top:`${j+3}px`},"data-plate-prevent-deselect":!0,children:/* @__PURE__ */oi.jsx(Bc,{isDragging:l,previewRef:d,resetPreview:g,setPreviewTop:f})})})})}),
252
+ /* @__PURE__ */oi.jsx("div",{ref:d,className:hi("-left-0 absolute hidden w-full"),style:{top:-p+"px"},contentEditable:!1}),
253
+ /* @__PURE__ */oi.jsxs("div",{ref:c,className:"slate-blockWrapper flow-root",onContextMenu:e=>s.getApi(nt).blockSelection.addOnContextMenu({element:n,event:e}),children:[
254
+ /* @__PURE__ */oi.jsx(W,{children:r}),
255
+ /* @__PURE__ */oi.jsx(Tc,{})]})]})}function Ec({children:e,className:t,...r}){const s=I(),n=O(),o=T(nt,"isSelectionAreaVisible"),a=N();/* @__PURE__ */
256
+ return oi.jsx("div",{...r,className:hi("slate-gutterLeft","-translate-x-full absolute top-0 z-50 flex h-full cursor-text hover:opacity-100 sm:opacity-0",x(s,n.type)?.node.isContainer?"group-hover/container:opacity-100":"group-hover:opacity-100",o&&"hidden",!a&&"opacity-0",t),contentEditable:!1,children:e})}const Bc=e.memo(function({isDragging:e,previewRef:t,resetPreview:r,setPreviewTop:s}){const n=I(),o=O();/* @__PURE__ */
257
+ return oi.jsxs(Ti,{children:[
258
+ /* @__PURE__ */oi.jsx(Di,{asChild:!0,children:/* @__PURE__ */oi.jsx("div",{className:"flex size-full items-center justify-center",onClick:e=>{e.preventDefault(),n.getApi(nt).blockSelection.focus()},onMouseDown:e=>{if(r(),0!==e.button&&2!==e.button||e.shiftKey)return;const s=n.getApi(nt).blockSelection.getNodes({sort:!0});let a=s.length>0?s:n.api.blocks({mode:"highest"});a.some(([e])=>e.id===o.id)||(a=[[o,n.api.findPath(o)]]);const i=De(n,a).map(([e])=>e);0===s.length&&(n.tf.blur(),n.tf.collapse());const l=Dc(n,i);t.current?.append(...l),t.current?.classList.remove("hidden"),t.current?.classList.add("opacity-0"),n.setOption(is,"multiplePreviewRef",t),n.getApi(nt).blockSelection.set(i.map(e=>e.id))},onMouseEnter:()=>{if(e)return;const t=n.getApi(nt).blockSelection.getNodes({sort:!0});let r=t.length>0?t:n.api.blocks({mode:"highest"});r.some(([e])=>e.id===o.id)||(r=[[o,n.api.findPath(o)]]);const a=De(n,r),i=a.map(e=>e[0].id);if(i.length>1&&i.includes(o.id)){const e=Ic(n,{blocks:a.map(e=>e[0]),element:o});s(e)}else s(0)},onMouseUp:()=>{r()},"data-plate-prevent-deselect":!0,role:"button",children:/* @__PURE__ */oi.jsx(Pt,{className:"text-muted-foreground"})})}),
259
+ /* @__PURE__ */oi.jsx(Ii,{children:"Drag to move"})]})}),Tc=e.memo(function({className:e,...t}){const{dropLine:r}=cs();return r?/* @__PURE__ */oi.jsx("div",{...t,className:hi("slate-dropLine","absolute inset-x-0 h-0.5 opacity-100 transition-opacity","bg-brand/50","top"===r&&"-top-px","bottom"===r&&"-bottom-px",e)}):null}),Dc=(e,t)=>{const r=[],s=[],n=e=>{Array.from(e.attributes).forEach(t=>{(t.name.startsWith("data-slate")||t.name.startsWith("data-block-id"))&&e.removeAttribute(t.name)}),Array.from(e.children).forEach(e=>{n(e)})};return t.forEach((o,a)=>{((o,a)=>{const i=e.api.toDOMNode(o),l=i.cloneNode(!0);((e,t)=>{const r=e.scrollLeft;if(r>0){const s=document.createElement("div");s.style.overflow="hidden",s.style.width=`${e.clientWidth}px`;const n=document.createElement("div");for(n.style.transform=`translateX(-${r}px)`,n.style.width=`${e.scrollWidth}px`;t.firstChild;)n.append(t.firstChild);const o=window.getComputedStyle(e);t.style.padding="0",n.style.padding=o.padding,s.append(n),t.append(s)}})(i,l),s.push(o.id);const c=document.createElement("div");c.append(l),c.style.display="flow-root";const d=t[a-1];if(d){const t=e.api.toDOMNode(d).parentElement.getBoundingClientRect(),r=i.parentElement.getBoundingClientRect().top-t.bottom;r>15&&(c.style.marginTop=`${r}px`)}n(l),r.push(c)})(o,a)}),e.setOption(is,"draggingId",s),r},Ic=(e,{blocks:t,element:r})=>{const s=e.api.toDOMNode(r),n=e.api.toDOMNode(e),o=t[0],a=e.api.toDOMNode(o),i=Number(window.getComputedStyle(n).paddingTop.replace("px","")),l=a.getBoundingClientRect().top-n.getBoundingClientRect().top-i,c=window.getComputedStyle(a).marginTop,d=Number(c.replace("px","")),u=s.getBoundingClientRect().top-n.getBoundingClientRect().top-i,m=window.getComputedStyle(s).marginTop;return u-l+d-Number(m.replace("px",""))},Oc=(e,t)=>{const r=e.api.toDOMNode(t),s=window.getComputedStyle(r).marginTop;return Number(s.replace("px",""))},Ac=[is.configure({options:{enableScroller:!0,onDropFiles:({dragItem:e,editor:t,target:r})=>{t.getTransforms(hn).insert.media(e.files,{at:r,nextBlock:!1})}},render:{aboveNodes:t=>{const{editor:s,element:n,path:o}=t;if(e.useMemo(()=>{if(s.dom.readOnly)return!1;if(1===o.length&&!h(s,n,_c))return!0;if(3===o.length&&!h(s,n,_c)){if(s.api.some({at:o,match:{type:s.getType(r.column)}}))return!0}if(4===o.length&&!h(s,n,_c)){if(s.api.some({at:o,match:{type:s.getType(r.table)}}))return!0}return!1},[s,n,o]))return e=>/* @__PURE__ */oi.jsx(Sc,{...e})},aboveSlate:({children:e})=>/* @__PURE__ */oi.jsx(un,{backend:mn,children:e})}})],Fc=[En,Bn],Mc=e.createContext(null),Rc=({group:e,keywords:t=[],label:r,value:s},n)=>{const o=new Set([s,...t,e,r].filter(Boolean));return Array.from(o).some(e=>Hn(e,n))},Lc=({children:t,element:r,filter:s=Rc,hideWhenNoValue:n=!1,setValue:o,showTrigger:a=!0,trigger:i,value:l})=>{const c=I(),d=e.useRef(null),u=Vn(d),[m,h]=e.useState(""),x=void 0!==l,p=x?l:m,f=e.useMemo(()=>{const e=r.userId,t=c.meta.userId;return!e||e===t},[c.meta.userId,r]),g=e.useCallback(e=>{o?.(e),x||h(e)},[o,x]),j=e.useRef(null);e.useEffect(()=>{const e=c.api.findPath(r);if(!e)return;const t=c.api.before(e);if(!t)return;const s=c.api.pointRef(t);return j.current=s.current,()=>{s.unref()}},[c,r]);const{props:b,removeInput:v}=Un({cancelInputOnBlur:!0,cursorState:u,autoFocus:f,ref:d,onCancelInput:e=>{"backspace"!==e&&c.tf.insertText(i+p,{at:j?.current??void 0}),"arrowLeft"!==e&&"arrowRight"!==e||c.tf.move({distance:1,reverse:"arrowLeft"===e})}}),[y,w]=e.useState(!1),k=e.useMemo(()=>({filter:s,inputProps:b,inputRef:d,removeInput:v,setHasEmpty:w,showTrigger:a,trigger:i}),[i,a,s,d,b,v,w]),C=Dn({setValue:t=>e.startTransition(()=>g(t))}),N=C.useState("items");return e.useEffect(()=>{C.getState().activeId||C.setActiveId(C.first())},[N,C]),/* @__PURE__ */oi.jsx("span",{contentEditable:!1,children:/* @__PURE__ */oi.jsx(In,{open:(N.length>0||y)&&(!n||p.length>0),store:C,children:/* @__PURE__ */oi.jsx(Mc.Provider,{value:k,children:t})})})},Pc=({className:t,ref:r,...s})=>{const{inputProps:n,inputRef:o,showTrigger:a,trigger:i}=e.useContext(Mc),l=On().useState("value"),c=K(r,o);/* @__PURE__ */
260
+ return oi.jsxs(oi.Fragment,{children:[a&&i,
261
+ /* @__PURE__ */oi.jsxs("span",{className:"relative min-h-[1lh]",children:[
262
+ /* @__PURE__ */oi.jsx("span",{className:"invisible overflow-hidden text-nowrap","aria-hidden":"true",children:l||"​"}),
263
+ /* @__PURE__ */oi.jsx(An,{ref:c,className:hi("absolute top-0 left-0 size-full bg-transparent outline-none",t),value:l,autoSelect:!0,...n,...s})]})]})};Pc.displayName="InlineComboboxInput";const Hc=({className:e,...t})=>{const r=On();/* @__PURE__ */
264
+ return oi.jsx(Fn,{children:/* @__PURE__ */oi.jsx(Mn,{className:hi("z-500 max-h-[288px] w-[300px] overflow-y-auto rounded-md bg-popover shadow-md",e),onKeyDownCapture:function(e){if(!r)return;const t=r.getState(),{items:s,activeId:n}=t;if(!s.length)return;const o=s.findIndex(e=>e.id===n);"ArrowUp"===e.key&&o<=0?(e.preventDefault(),r.setActiveId(r.last())):"ArrowDown"===e.key&&o>=s.length-1&&(e.preventDefault(),r.setActiveId(r.first()))},...t})})},Vc=et("relative mx-1 flex h-[28px] select-none items-center rounded-sm px-2 text-foreground text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{defaultVariants:{interactive:!0},variants:{interactive:{false:"",true:"cursor-pointer transition-colors hover:bg-accent hover:text-accent-foreground data-[active-item=true]:bg-accent data-[active-item=true]:text-accent-foreground"}}}),Uc=({className:t,focusEditor:r=!0,group:s,keywords:n,label:o,onClick:a,...i})=>{const{value:l}=i,{filter:c,removeInput:d}=e.useContext(Mc),u=On(),m=c&&u.useState("value");return e.useMemo(()=>!c||c({group:s,keywords:n,label:o,value:l},m),[c,s,n,o,l,m])?/* @__PURE__ */oi.jsx(Ln,{className:hi(Vc(),t),onClick:e=>{d(r),a?.(e)},...i}):null},qc=({children:t,className:r})=>{const{setHasEmpty:s}=e.useContext(Mc),n=On().useState("items");return e.useEffect(()=>(s(!0),()=>{s(!1)}),[s]),n.length>0?null:/* @__PURE__ */oi.jsx("div",{className:hi(Vc({interactive:!1}),r),children:t})};function $c({className:e,...t}){/* @__PURE__ */
265
+ return oi.jsx(Rn,{...t,className:hi("hidden not-last:border-b py-1.5 [&:has([role=option])]:block",e)})}function Wc({className:e,...t}){/* @__PURE__ */
266
+ return oi.jsx(Pn,{...t,className:hi("mt-1.5 mb-2 px-3 font-medium text-muted-foreground text-xs",e)})}const Kc=/:$/;const Zc=[hs.configure({options:{data:Tn}}),xs.withComponent(function(t){const{children:r,editor:s,element:n}=t,o=T(hs,"data"),[a,i]=e.useState(""),l=((t,r=500)=>{const[s,n]=e.useState(t);return e.useEffect(()=>{const e=setTimeout(()=>{n(t)},r);return()=>{clearTimeout(e)}},[t,r]),s})(a,100),c=a!==l,d=e.useMemo(()=>0===l.trim().length?[]:fs.getInstance(o).search(l.replace(Kc,"")).get(),[o,l]);/* @__PURE__ */
267
+ return oi.jsxs(k,{as:"span",...t,children:[
268
+ /* @__PURE__ */oi.jsxs(Lc,{value:a,element:n,filter:!1,setValue:i,trigger:":",hideWhenNoValue:!0,children:[
269
+ /* @__PURE__ */oi.jsx(Pc,{}),
270
+ /* @__PURE__ */oi.jsxs(Hc,{children:[!c&&/* @__PURE__ */oi.jsx(qc,{children:"No results"}),
271
+ /* @__PURE__ */oi.jsx($c,{children:d.map(e=>/* @__PURE__ */oi.jsxs(Uc,{value:e.name,onClick:()=>gs(s,e),children:[e.skins[0].native," ",e.name]},e.id))})]})]}),r]})})],Gc=[p.configure({shortcuts:{insert:{keys:"mod+enter"},insertBefore:{keys:"mod+shift+enter"}}})];function Yc(e){/* @__PURE__ */
272
+ return oi.jsx(Gi,{...e,className:hi("scrollbar-hide sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}const Jc=[{icon:Ht,value:"left"},{icon:Vt,value:"center"},{icon:Ut,value:"right"},{icon:qt,value:"justify"}];function Xc(t){const{editor:r,tf:s}=E(de),n=Z({defaultValue:"start",getProp:e=>e.align})??"left",[o,a]=e.useState(!1),i=Jc.find(e=>e.value===n)?.icon??Ht;/* @__PURE__ */
273
+ return oi.jsxs(Oi,{open:o,onOpenChange:a,modal:!1,...t,children:[
274
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{pressed:o,tooltip:"Align",isDropdown:!0,children:/* @__PURE__ */oi.jsx(i,{})})}),
275
+ /* @__PURE__ */oi.jsx(Mi,{className:"min-w-0",align:"start",children:/* @__PURE__ */oi.jsx(Hi,{value:n,onValueChange:e=>{s.textAlign.setNodes(e),r.tf.focus()},children:Jc.map(({icon:e,value:t})=>/* @__PURE__ */oi.jsx(Vi,{className:"pl-2 data-[state=checked]:bg-accent *:first:[span]:hidden",value:t,children:/* @__PURE__ */oi.jsx(e,{})},t))})})]})}function Qc(){const e=I();/* @__PURE__ */
276
+ return oi.jsx(Qi,{onClick:()=>{e.getTransforms(Zl).comment.setDraft()},"data-plate-prevent-overlay":!0,tooltip:"Comment",children:/* @__PURE__ */oi.jsx(Rt,{})})}var ed,td,rd,sd,nd,od,ad,id,ld,cd,dd,ud,md,hd,xd,pd,fd,gd,jd,bd,vd,yd,wd,kd,Cd,Nd,zd,_d;function Sd(){if(td)return ed;return td=1,ed=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Ed(){if(od)return nd;od=1;var e=function(){if(sd)return rd;sd=1;var e="object"==typeof Ya&&Ya&&Ya.Object===Object&&Ya;return rd=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return nd=r}function Bd(){if(ud)return dd;ud=1;var e=function(){if(cd)return ld;cd=1;var e=/\s/;return ld=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}}(),t=/^\s+/;return dd=function(r){return r?r.slice(0,e(r)+1).replace(t,""):r}}function Td(){if(hd)return md;hd=1;var e=Ed().Symbol;return md=e}function Dd(){if(bd)return jd;bd=1;var e=Td(),t=function(){if(pd)return xd;pd=1;var e=Td(),t=Object.prototype,r=t.hasOwnProperty,s=t.toString,n=e?e.toStringTag:void 0;return xd=function(e){var t=r.call(e,n),o=e[n];try{e[n]=void 0;var a=!0}catch(l){}var i=s.call(e);return a&&(t?e[n]=o:delete e[n]),i}}(),r=function(){if(gd)return fd;gd=1;var e=Object.prototype.toString;return fd=function(t){return e.call(t)}}(),s=e?e.toStringTag:void 0;return jd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?t(e):r(e)}}function Id(){if(kd)return wd;kd=1;var e=Dd(),t=yd?vd:(yd=1,vd=function(e){return null!=e&&"object"==typeof e});return wd=function(r){return"symbol"==typeof r||t(r)&&"[object Symbol]"==e(r)}}const Od=/* @__PURE__ */Ja(function(){if(_d)return zd;_d=1;var e=Sd(),t=function(){if(id)return ad;id=1;var e=Ed();return ad=function(){return e.Date.now()}}(),r=function(){if(Nd)return Cd;Nd=1;var e=Bd(),t=Sd(),r=Id(),s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return Cd=function(i){if("number"==typeof i)return i;if(r(i))return NaN;if(t(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=t(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=e(i);var c=n.test(i);return c||o.test(i)?a(i.slice(2),c?2:8):s.test(i)?NaN:+i}}(),s=Math.max,n=Math.min;return zd=function(o,a,i){var l,c,d,u,m,h,x=0,p=!1,f=!1,g=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function j(e){var t=l,r=c;return l=c=void 0,x=e,u=o.apply(r,t)}function b(e){var t=e-h;return void 0===h||t>=a||t<0||f&&e-x>=d}function v(){var e=t();if(b(e))return y(e);m=setTimeout(v,function(e){var t=a-(e-h);return f?n(t,d-(e-x)):t}(e))}function y(e){return m=void 0,g&&l?j(e):(l=c=void 0,u)}function w(){var e=t(),r=b(e);if(l=arguments,c=this,h=e,r){if(void 0===m)return function(e){return x=e,m=setTimeout(v,a),p?j(e):u}(h);if(f)return clearTimeout(m),m=setTimeout(v,a),j(h)}return void 0===m&&(m=setTimeout(v,a)),u}return a=r(a)||0,e(i)&&(p=!!i.leading,d=(f="maxWait"in i)?s(r(i.maxWait)||0,a):d,g="trailing"in i?!!i.trailing:g),w.cancel=function(){void 0!==m&&clearTimeout(m),x=0,l=h=c=m=void 0},w.flush=function(){return void 0===m?u:y(t())},w}}());function Ad({children:e,nodeType:r,tooltip:s}){const n=I(),o=M(e=>!!e.selection,[]),a=M(e=>e.api.mark(r),[r]),[i,l]=t.useState(),[c,d]=t.useState(!1),u=t.useCallback((e=!c)=>{d(e)},[c,d]),m=t.useCallback(e=>{n.selection&&(l(e),n.tf.select(n.selection),n.tf.focus(),n.tf.addMarks({[r]:e}))},[n,r]),h=t.useCallback(e=>{m(e),u()},[u,m]),x=t.useCallback(()=>{n.selection&&(n.tf.select(n.selection),n.tf.focus(),i&&n.tf.removeMarks(r),u())},[n,i,u,r]);return t.useEffect(()=>{o&&l(a)},[a,o]),/* @__PURE__ */oi.jsxs(Oi,{open:c,onOpenChange:e=>{d(e)},modal:!1,children:[
277
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{pressed:c,tooltip:s,children:e})}),
278
+ /* @__PURE__ */oi.jsx(Mi,{align:"start",children:/* @__PURE__ */oi.jsx(Fd,{color:i||a,clearColor:x,colors:Hd,customColors:Vd,updateColor:h,updateCustomColor:m})})]})}const Fd=t.memo(function({className:e,clearColor:t,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...i}){/* @__PURE__ */
279
+ return oi.jsxs("div",{className:hi("flex flex-col",e),...i,children:[
280
+ /* @__PURE__ */oi.jsx(il,{label:"Custom Colors",children:/* @__PURE__ */oi.jsx(Md,{color:r,className:"px-2",colors:s,customColors:n,updateColor:o,updateCustomColor:a})}),
281
+ /* @__PURE__ */oi.jsx(il,{label:"Default Colors",children:/* @__PURE__ */oi.jsx(Pd,{color:r,className:"px-2",colors:s,updateColor:o})}),r&&/* @__PURE__ */oi.jsx(il,{children:/* @__PURE__ */oi.jsxs(Li,{className:"p-2",onClick:t,children:[
282
+ /* @__PURE__ */oi.jsx($t,{}),
283
+ /* @__PURE__ */oi.jsx("span",{children:"Clear"})]})})]})},(e,t)=>e.color===t.color&&e.colors===t.colors&&e.customColors===t.customColors);function Md({className:e,color:r,colors:s,customColors:n,updateColor:o,updateCustomColor:a,...i}){const[l,c]=t.useState(),[d,u]=t.useState(r||"#000000");t.useEffect(()=>{!r||n.some(e=>e.value===r)||s.some(e=>e.value===r)||c(r)},[r,s,n]);const m=t.useMemo(()=>l?[...n,{isBrightColor:!1,name:"",value:l}]:n,[l,n]),h=t.useCallback(Od(a,100),[a]);/* @__PURE__ */
284
+ return oi.jsx("div",{className:hi("relative flex flex-col gap-4",e),...i,children:/* @__PURE__ */oi.jsx(Pd,{color:r,colors:m,updateColor:o,children:/* @__PURE__ */oi.jsx(Rd,{value:d,onChange:e=>{u(e.target.value),h(e.target.value)},children:/* @__PURE__ */oi.jsxs(Li,{className:hi(Si({size:"icon",variant:"outline"}),"absolute top-1 right-2 bottom-2 flex size-8 items-center justify-center rounded-full"),onSelect:e=>{e.preventDefault()},children:[
285
+ /* @__PURE__ */oi.jsx("span",{className:"sr-only",children:"Custom"}),
286
+ /* @__PURE__ */oi.jsx(Wt,{})]})})})})}function Rd({children:e,className:r,value:s="#000000",...n}){const o=t.useRef(null);/* @__PURE__ */
287
+ return oi.jsxs("div",{className:"flex flex-col items-center",children:[t.Children.map(e,e=>e?t.cloneElement(e,{onClick:()=>o.current?.click()}):e),
288
+ /* @__PURE__ */oi.jsx("input",{...n,ref:Fs(n.ref,o),className:hi("size-0 overflow-hidden border-0 p-0",r),value:s,type:"color"})]})}function Ld({className:e,isBrightColor:t,isSelected:r,name:s,updateColor:n,value:o,...a}){const i=/* @__PURE__ */oi.jsx(Li,{className:hi(Si({size:"icon",variant:"outline"}),"my-1 flex size-6 items-center justify-center rounded-full border border-muted border-solid p-0 transition-all hover:scale-125",!t&&"border-transparent",r&&"border-2 border-primary",e),style:{backgroundColor:o},onSelect:e=>{e.preventDefault(),n(o)},...a});return s?/* @__PURE__ */oi.jsxs(Ti,{children:[
289
+ /* @__PURE__ */oi.jsx(Di,{children:i}),
290
+ /* @__PURE__ */oi.jsx(Ii,{className:"mb-1 capitalize",children:s})]}):i}function Pd({className:e,color:t,colors:r,updateColor:s,...n}){/* @__PURE__ */
291
+ return oi.jsx("div",{className:hi("grid grid-cols-[repeat(10,1fr)] place-items-center gap-x-1",e),...n,children:/* @__PURE__ */oi.jsxs(Bi,{children:[r.map(({isBrightColor:e,name:r,value:n})=>/* @__PURE__ */oi.jsx(Ld,{name:r,value:n,isBrightColor:e,isSelected:t===n,updateColor:s},r??n)),n.children]})})}const Hd=[{isBrightColor:!1,name:"black",value:"#000000"},{isBrightColor:!1,name:"dark grey 4",value:"#434343"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"dark grey 1",value:"#B7B7B7"},{isBrightColor:!1,name:"grey",value:"#CCCCCC"},{isBrightColor:!1,name:"light grey 1",value:"#D9D9D9"},{isBrightColor:!0,name:"light grey 2",value:"#EFEFEF"},{isBrightColor:!0,name:"light grey 3",value:"#F3F3F3"},{isBrightColor:!0,name:"white",value:"#FFFFFF"},{isBrightColor:!1,name:"red berry",value:"#980100"},{isBrightColor:!1,name:"red",value:"#FE0000"},{isBrightColor:!1,name:"orange",value:"#FE9900"},{isBrightColor:!0,name:"yellow",value:"#FEFF00"},{isBrightColor:!1,name:"green",value:"#00FF00"},{isBrightColor:!1,name:"cyan",value:"#00FFFF"},{isBrightColor:!1,name:"cornflower blue",value:"#4B85E8"},{isBrightColor:!1,name:"blue",value:"#1300FF"},{isBrightColor:!1,name:"purple",value:"#9900FF"},{isBrightColor:!1,name:"magenta",value:"#FF00FF"},{isBrightColor:!1,name:"light red berry 3",value:"#E6B8AF"},{isBrightColor:!1,name:"light red 3",value:"#F4CCCC"},{isBrightColor:!0,name:"light orange 3",value:"#FCE4CD"},{isBrightColor:!0,name:"light yellow 3",value:"#FFF2CC"},{isBrightColor:!0,name:"light green 3",value:"#D9EAD3"},{isBrightColor:!1,name:"light cyan 3",value:"#D0DFE3"},{isBrightColor:!1,name:"light cornflower blue 3",value:"#C9DAF8"},{isBrightColor:!0,name:"light blue 3",value:"#CFE1F3"},{isBrightColor:!0,name:"light purple 3",value:"#D9D2E9"},{isBrightColor:!0,name:"light magenta 3",value:"#EAD1DB"},{isBrightColor:!1,name:"light red berry 2",value:"#DC7E6B"},{isBrightColor:!1,name:"light red 2",value:"#EA9999"},{isBrightColor:!1,name:"light orange 2",value:"#F9CB9C"},{isBrightColor:!0,name:"light yellow 2",value:"#FFE598"},{isBrightColor:!1,name:"light green 2",value:"#B7D6A8"},{isBrightColor:!1,name:"light cyan 2",value:"#A1C4C9"},{isBrightColor:!1,name:"light cornflower blue 2",value:"#A4C2F4"},{isBrightColor:!1,name:"light blue 2",value:"#9FC5E8"},{isBrightColor:!1,name:"light purple 2",value:"#B5A7D5"},{isBrightColor:!1,name:"light magenta 2",value:"#D5A6BD"},{isBrightColor:!1,name:"light red berry 1",value:"#CC4125"},{isBrightColor:!1,name:"light red 1",value:"#E06666"},{isBrightColor:!1,name:"light orange 1",value:"#F6B26B"},{isBrightColor:!1,name:"light yellow 1",value:"#FFD966"},{isBrightColor:!1,name:"light green 1",value:"#93C47D"},{isBrightColor:!1,name:"light cyan 1",value:"#76A5AE"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"light blue 1",value:"#6FA8DC"},{isBrightColor:!1,name:"light purple 1",value:"#8D7CC3"},{isBrightColor:!1,name:"light magenta 1",value:"#C27BA0"},{isBrightColor:!1,name:"dark red berry 1",value:"#A61B00"},{isBrightColor:!1,name:"dark red 1",value:"#CC0000"},{isBrightColor:!1,name:"dark orange 1",value:"#E59138"},{isBrightColor:!1,name:"dark yellow 1",value:"#F1C231"},{isBrightColor:!1,name:"dark green 1",value:"#6AA74F"},{isBrightColor:!1,name:"dark cyan 1",value:"#45818E"},{isBrightColor:!1,name:"dark cornflower blue 1",value:"#3B78D8"},{isBrightColor:!1,name:"dark blue 1",value:"#3E84C6"},{isBrightColor:!1,name:"dark purple 1",value:"#664EA6"},{isBrightColor:!1,name:"dark magenta 1",value:"#A64D78"},{isBrightColor:!1,name:"dark red berry 2",value:"#84200D"},{isBrightColor:!1,name:"dark red 2",value:"#990001"},{isBrightColor:!1,name:"dark orange 2",value:"#B45F05"},{isBrightColor:!1,name:"dark yellow 2",value:"#BF9002"},{isBrightColor:!1,name:"dark green 2",value:"#38761D"},{isBrightColor:!1,name:"dark cyan 2",value:"#124F5C"},{isBrightColor:!1,name:"dark cornflower blue 2",value:"#1155CB"},{isBrightColor:!1,name:"dark blue 2",value:"#0C5394"},{isBrightColor:!1,name:"dark purple 2",value:"#351C75"},{isBrightColor:!1,name:"dark magenta 2",value:"#741B47"},{isBrightColor:!1,name:"dark red berry 3",value:"#5B0F00"},{isBrightColor:!1,name:"dark red 3",value:"#660000"},{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark yellow 3",value:"#7E6000"},{isBrightColor:!1,name:"dark green 3",value:"#274E12"},{isBrightColor:!1,name:"dark cyan 3",value:"#0D343D"},{isBrightColor:!1,name:"dark cornflower blue 3",value:"#1B4487"},{isBrightColor:!1,name:"dark blue 3",value:"#083763"},{isBrightColor:!1,name:"dark purple 3",value:"#1F124D"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}],Vd=[{isBrightColor:!1,name:"dark orange 3",value:"#783F04"},{isBrightColor:!1,name:"dark grey 3",value:"#666666"},{isBrightColor:!1,name:"dark grey 2",value:"#999999"},{isBrightColor:!1,name:"light cornflower blue 1",value:"#6C9EEB"},{isBrightColor:!1,name:"dark magenta 3",value:"#4C1130"}];function Ud(e){const t=I(),r=M(e=>0===e.history.redos.length,[]);/* @__PURE__ */
292
+ return oi.jsx(Qi,{...e,disabled:r,onClick:()=>t.redo(),onMouseDown:e=>e.preventDefault(),tooltip:"Redo",children:/* @__PURE__ */oi.jsx(Zt,{})})}function qd(e){const t=I(),r=M(e=>0===e.history.undos.length,[]);/* @__PURE__ */
293
+ return oi.jsx(Qi,{...e,disabled:r,onClick:()=>t.undo(),onMouseDown:e=>e.preventDefault(),tooltip:"Undo",children:/* @__PURE__ */oi.jsx(Kt,{})})}function $d(e){const{props:t}=$n();/* @__PURE__ */
294
+ return oi.jsx(Qi,{...e,...t,tooltip:"Indent",children:/* @__PURE__ */oi.jsx(Yt,{})})}function Wd(e){const{props:t}=qn();/* @__PURE__ */
295
+ return oi.jsx(Qi,{...e,...t,tooltip:"Outdent",children:/* @__PURE__ */oi.jsx(Gt,{})})}function Kd(e){const t=Kn(),{props:r}=Zn(t);/* @__PURE__ */
296
+ return oi.jsx(Qi,{...e,...r,"data-plate-focus":!0,tooltip:"Link",children:/* @__PURE__ */oi.jsx(Jt,{})})}function Zd(){const t=I(),[r,s]=e.useState(!1),n=M(e=>Ie(e,[Oe.Disc,Oe.Circle,Oe.Square]),[]);/* @__PURE__ */
297
+ return oi.jsxs(tl,{pressed:r,children:[
298
+ /* @__PURE__ */oi.jsx(rl,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>{Te(t,{listStyleType:Oe.Disc})},"data-state":n?"on":"off",children:/* @__PURE__ */oi.jsx(Qt,{className:"size-4"})}),
299
+ /* @__PURE__ */oi.jsxs(Oi,{open:r,onOpenChange:s,modal:!1,children:[
300
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(sl,{})}),
301
+ /* @__PURE__ */oi.jsx(Mi,{align:"start",alignOffset:-32,children:/* @__PURE__ */oi.jsxs(Ri,{children:[
302
+ /* @__PURE__ */oi.jsx(Li,{onClick:()=>Te(t,{listStyleType:Oe.Disc}),children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
303
+ /* @__PURE__ */oi.jsx("div",{className:"size-2 rounded-full border border-current bg-current"}),"Default"]})}),
304
+ /* @__PURE__ */oi.jsx(Li,{onClick:()=>Te(t,{listStyleType:Oe.Circle}),children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
305
+ /* @__PURE__ */oi.jsx("div",{className:"size-2 rounded-full border border-current"}),"Circle"]})}),
306
+ /* @__PURE__ */oi.jsx(Li,{onClick:()=>Te(t,{listStyleType:Oe.Square}),children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-2",children:[
307
+ /* @__PURE__ */oi.jsx("div",{className:"size-2 border border-current bg-current"}),"Square"]})})]})})]})]})}function Gd(){const t=I(),[r,s]=e.useState(!1),n=M(e=>Ie(e,[Oe.Decimal,Oe.LowerAlpha,Oe.UpperAlpha,Oe.LowerRoman,Oe.UpperRoman]),[]);/* @__PURE__ */
308
+ return oi.jsxs(tl,{pressed:r,children:[
309
+ /* @__PURE__ */oi.jsx(rl,{className:"data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",onClick:()=>Te(t,{listStyleType:Oe.Decimal}),"data-state":n?"on":"off",children:/* @__PURE__ */oi.jsx(Xt,{className:"size-4"})}),
310
+ /* @__PURE__ */oi.jsxs(Oi,{open:r,onOpenChange:s,modal:!1,children:[
311
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(sl,{})}),
312
+ /* @__PURE__ */oi.jsx(Mi,{align:"start",alignOffset:-32,children:/* @__PURE__ */oi.jsxs(Ri,{children:[
313
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:Oe.Decimal}),children:"Decimal (1, 2, 3)"}),
314
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:Oe.LowerAlpha}),children:"Lower Alpha (a, b, c)"}),
315
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:"turkish-lower-alpha"}),children:"Lower Alpha - Turkish (a, b, c, ç)"}),
316
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:Oe.UpperAlpha}),children:"Upper Alpha (A, B, C)"}),
317
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:"turkish-upper-alpha"}),children:"Upper Alpha - Turkish (A, B, C, Ç)"}),
318
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:Oe.LowerRoman}),children:"Lower Roman (i, ii, iii)"}),
319
+ /* @__PURE__ */oi.jsx(Li,{onSelect:()=>Te(t,{listStyleType:Oe.UpperRoman}),children:"Upper Roman (I, II, III)"})]})})]})]})}function Yd({clear:e,nodeType:t,...r}){const{api:s}=E(nc),n=T(nc,"isSuggesting"),o=G({clear:e,nodeType:t}),{props:a}=Y(o),i=e=>e?t=>{n?(t.preventDefault?.(),s.suggestion.withoutSuggestions(()=>e(t))):e(t)}:void 0;/* @__PURE__ */
320
+ return oi.jsx(Qi,{...r,...a,onClick:i(a.onClick),onMouseDown:i(a.onMouseDown)})}function Jd({...e}){/* @__PURE__ */
321
+ return oi.jsx(Yr.Root,{"data-slot":"alert-dialog",...e})}function Xd({...e}){/* @__PURE__ */
322
+ return oi.jsx(Yr.Portal,{"data-slot":"alert-dialog-portal",...e})}function Qd({className:e,...t}){/* @__PURE__ */
323
+ return oi.jsx(Yr.Overlay,{"data-slot":"alert-dialog-overlay",className:hi("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function eu({className:e,size:t="default",...r}){/* @__PURE__ */
324
+ return oi.jsxs(Xd,{children:[
325
+ /* @__PURE__ */oi.jsx(Qd,{}),
326
+ /* @__PURE__ */oi.jsx(Yr.Content,{"data-slot":"alert-dialog-content","data-size":t,className:hi("group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",e),...r})]})}function tu({className:e,...t}){/* @__PURE__ */
327
+ return oi.jsx("div",{"data-slot":"alert-dialog-header",className:hi("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function ru({className:e,...t}){/* @__PURE__ */
328
+ return oi.jsx("div",{"data-slot":"alert-dialog-footer",className:hi("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function su({className:e,...t}){/* @__PURE__ */
329
+ return oi.jsx(Yr.Title,{"data-slot":"alert-dialog-title",className:hi("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function nu({className:e,...t}){/* @__PURE__ */
330
+ return oi.jsx(Yr.Description,{"data-slot":"alert-dialog-description",className:hi("text-sm text-muted-foreground",e),...t})}function ou({className:e,variant:t="default",size:r="default",...s}){/* @__PURE__ */
331
+ return oi.jsx(Ei,{variant:t,size:r,asChild:!0,children:/* @__PURE__ */oi.jsx(Yr.Action,{"data-slot":"alert-dialog-action",className:hi(e),...s})})}function au({className:e,variant:t="outline",size:r="default",...s}){/* @__PURE__ */
332
+ return oi.jsx(Ei,{variant:t,size:r,asChild:!0,children:/* @__PURE__ */oi.jsx(Yr.Cancel,{"data-slot":"alert-dialog-cancel",className:hi(e),...s})})}function iu({className:e,type:t,...r}){/* @__PURE__ */
333
+ return oi.jsx("input",{type:t,"data-slot":"input",className:hi("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}const lu={[r.audio]:{accept:["audio/*"],icon:/* @__PURE__ */oi.jsx(nr,{className:"size-4"}),title:"Insert Audio",tooltip:"Audio"},[r.file]:{accept:["*"],icon:/* @__PURE__ */oi.jsx(sr,{className:"size-4"}),title:"Insert File",tooltip:"File"},[r.img]:{accept:["image/*"],icon:/* @__PURE__ */oi.jsx(rr,{className:"size-4"}),title:"Insert Image",tooltip:"Image"},[r.video]:{accept:["video/*"],icon:/* @__PURE__ */oi.jsx(tr,{className:"size-4"}),title:"Insert Video",tooltip:"Video"}};function cu({nodeType:t,...r}){const s=lu[t],n=I(),[o,a]=e.useState(!1),[i,l]=e.useState(!1),{openFilePicker:c}=ao({accept:s.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{n.getTransforms(hn).insert.media(e)}});/* @__PURE__ */
334
+ return oi.jsxs(oi.Fragment,{children:[
335
+ /* @__PURE__ */oi.jsxs(tl,{onClick:()=>{c()},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),a(!0))},pressed:o,children:[
336
+ /* @__PURE__ */oi.jsx(rl,{children:s.icon}),
337
+ /* @__PURE__ */oi.jsxs(Oi,{open:o,onOpenChange:a,modal:!1,...r,children:[
338
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(sl,{})}),
339
+ /* @__PURE__ */oi.jsx(Mi,{onClick:e=>e.stopPropagation(),align:"start",alignOffset:-32,children:/* @__PURE__ */oi.jsxs(Ri,{children:[
340
+ /* @__PURE__ */oi.jsxs(Li,{onSelect:()=>c(),children:[s.icon,"Upload from computer"]}),
341
+ /* @__PURE__ */oi.jsxs(Li,{onSelect:()=>l(!0),children:[
342
+ /* @__PURE__ */oi.jsx(er,{}),"Insert via URL"]})]})})]})]}),
343
+ /* @__PURE__ */oi.jsx(Jd,{open:i,onOpenChange:e=>{l(e)},children:/* @__PURE__ */oi.jsx(eu,{className:"gap-6",children:/* @__PURE__ */oi.jsx(du,{currentConfig:s,nodeType:t,setOpen:l})})})]})}function du({currentConfig:t,nodeType:s,setOpen:n}){const o=I(),[a,i]=e.useState(""),l=e.useCallback(()=>{if(!f(a))return oo.error("Invalid URL");n(!1),o.tf.insertNodes({children:[{text:""}],name:s===r.file?a.split("/").pop():void 0,type:s,url:a})},[a,o,s,n]);/* @__PURE__ */
344
+ return oi.jsxs(oi.Fragment,{children:[
345
+ /* @__PURE__ */oi.jsx(tu,{children:/* @__PURE__ */oi.jsx(su,{children:t.title})}),
346
+ /* @__PURE__ */oi.jsxs(nu,{className:"group relative w-full",children:[
347
+ /* @__PURE__ */oi.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */oi.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
348
+ /* @__PURE__ */oi.jsx(iu,{id:"url",className:"w-full",value:a,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&l()},placeholder:"",type:"url",autoFocus:!0})]}),
349
+ /* @__PURE__ */oi.jsxs(ru,{children:[
350
+ /* @__PURE__ */oi.jsx(au,{children:"Cancel"}),
351
+ /* @__PURE__ */oi.jsx(ou,{onClick:e=>{e.preventDefault(),l()},children:"Accept"})]})]})}function uu(t){const s=M(e=>e.api.some({match:{type:r.table}}),[]),{editor:n,tf:o}=E(io),[a,i]=e.useState(!1),l=lo();/* @__PURE__ */
352
+ return oi.jsxs(Oi,{open:a,onOpenChange:i,modal:!1,...t,children:[
353
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{pressed:a,tooltip:"Table",isDropdown:!0,children:/* @__PURE__ */oi.jsx(or,{})})}),
354
+ /* @__PURE__ */oi.jsx(Mi,{className:"flex w-[180px] min-w-0 flex-col",align:"start",children:/* @__PURE__ */oi.jsxs(Ri,{children:[
355
+ /* @__PURE__ */oi.jsxs($i,{children:[
356
+ /* @__PURE__ */oi.jsxs(Wi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:[
357
+ /* @__PURE__ */oi.jsx(ar,{className:"size-4"}),
358
+ /* @__PURE__ */oi.jsx("span",{children:"Table"})]}),
359
+ /* @__PURE__ */oi.jsx(Ki,{className:"m-0 p-0",children:/* @__PURE__ */oi.jsx(mu,{})})]}),
360
+ /* @__PURE__ */oi.jsxs($i,{children:[
361
+ /* @__PURE__ */oi.jsxs(Wi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
362
+ /* @__PURE__ */oi.jsx("div",{className:"size-4"}),
363
+ /* @__PURE__ */oi.jsx("span",{children:"Cell"})]}),
364
+ /* @__PURE__ */oi.jsxs(Ki,{children:[
365
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!l.canMerge,onSelect:()=>{o.table.merge(),n.tf.focus()},children:[
366
+ /* @__PURE__ */oi.jsx(ir,{}),"Merge cells"]}),
367
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!l.canSplit,onSelect:()=>{o.table.split(),n.tf.focus()},children:[
368
+ /* @__PURE__ */oi.jsx(lr,{}),"Split cell"]})]})]}),
369
+ /* @__PURE__ */oi.jsxs($i,{children:[
370
+ /* @__PURE__ */oi.jsxs(Wi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
371
+ /* @__PURE__ */oi.jsx("div",{className:"size-4"}),
372
+ /* @__PURE__ */oi.jsx("span",{children:"Row"})]}),
373
+ /* @__PURE__ */oi.jsxs(Ki,{children:[
374
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableRow({before:!0}),n.tf.focus()},children:[
375
+ /* @__PURE__ */oi.jsx(cr,{}),"Insert row before"]}),
376
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableRow(),n.tf.focus()},children:[
377
+ /* @__PURE__ */oi.jsx(dr,{}),"Insert row after"]}),
378
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.tableRow(),n.tf.focus()},children:[
379
+ /* @__PURE__ */oi.jsx(pt,{}),"Delete row"]})]})]}),
380
+ /* @__PURE__ */oi.jsxs($i,{children:[
381
+ /* @__PURE__ */oi.jsxs(Wi,{className:"gap-2 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",disabled:!s,children:[
382
+ /* @__PURE__ */oi.jsx("div",{className:"size-4"}),
383
+ /* @__PURE__ */oi.jsx("span",{children:"Column"})]}),
384
+ /* @__PURE__ */oi.jsxs(Ki,{children:[
385
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableColumn({before:!0}),n.tf.focus()},children:[
386
+ /* @__PURE__ */oi.jsx(ur,{}),"Insert column before"]}),
387
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.insert.tableColumn(),n.tf.focus()},children:[
388
+ /* @__PURE__ */oi.jsx(mr,{}),"Insert column after"]}),
389
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.tableColumn(),n.tf.focus()},children:[
390
+ /* @__PURE__ */oi.jsx(pt,{}),"Delete column"]})]})]}),
391
+ /* @__PURE__ */oi.jsxs(Li,{className:"min-w-[180px]",disabled:!s,onSelect:()=>{o.remove.table(),n.tf.focus()},children:[
392
+ /* @__PURE__ */oi.jsx(Et,{}),"Delete table"]})]})})]})}function mu(){const{editor:t,tf:r}=E(io),[s,n]=e.useState({grid:Array.from({length:8},()=>Array.from({length:8}).fill(0)),size:{colCount:0,rowCount:0}});/* @__PURE__ */
393
+ return oi.jsxs("div",{className:"flex! m-0 flex-col p-0",onClick:()=>{r.insert.table(s.size,{select:!0}),t.tf.focus()},role:"button",children:[
394
+ /* @__PURE__ */oi.jsx("div",{className:"grid size-[130px] grid-cols-8 gap-0.5 p-1",children:s.grid.map((e,t)=>e.map((e,r)=>/* @__PURE__ */oi.jsx("div",{className:hi("col-span-1 size-3 border border-solid bg-secondary",!!e&&"border-current"),onMouseMove:()=>{((e,t)=>{const r=[...s.grid];for(let s=0;s<r.length;s++)for(let n=0;n<r[s].length;n++)r[s][n]=s>=0&&s<=e&&n>=0&&n<=t?1:0;n({grid:r,size:{colCount:t+1,rowCount:e+1}})})(t,r)}},`(${t},${r})`)))}),
395
+ /* @__PURE__ */oi.jsxs("div",{className:"text-center text-current text-xs",children:[s.size.rowCount," x ",s.size.colCount]})]})}const hu="action_three_columns",xu=(e,t)=>{e.tf.insertNodes(e.api.create.block({indent:1,listStyleType:t}),{select:!0})},pu={[r.listTodo]:xu,[r.ol]:xu,[r.ul]:xu,[hu]:e=>Ss(e,{columns:3,select:!0}),[r.audio]:e=>To(e,{select:!0}),[r.callout]:e=>jo(e,{select:!0}),[r.codeBlock]:e=>ze(e,{select:!0}),[r.equation]:e=>ko(e,{select:!0}),[r.excalidraw]:e=>wo(e,{},{select:!0}),[r.file]:e=>Bo(e,{select:!0}),[r.img]:e=>Eo(e,{select:!0,type:r.img}),[r.mediaEmbed]:e=>Eo(e,{select:!0,type:r.mediaEmbed}),[r.table]:e=>e.getTransforms(io).insert.table({},{select:!0}),[r.toc]:e=>Fo(e,{select:!0}),[r.video]:e=>So(e,{select:!0})};r.date,r.inlineEquation,r.link;const fu=(e,t,r)=>{e.tf.setNodes(e.api.create.block({indent:1,listStyleType:t}),{at:r[1]})},gu={[r.listTodo]:fu,[r.ol]:fu,[r.ul]:fu,[hu]:e=>_s(e,{columns:3}),[r.codeBlock]:e=>_e(e)},ju=e=>e[r.listType]?e[r.listType]===r.ol?r.ol:e[r.listType]===r.listTodo?r.listTodo:r.ul:e.type,bu=[{icon:/* @__PURE__ */oi.jsx(hr,{}),keywords:["paragraph"],label:"Text",value:r.p},{icon:/* @__PURE__ */oi.jsx(xr,{}),keywords:["title","h1"],label:"Heading 1",value:"h1"},{icon:/* @__PURE__ */oi.jsx(pr,{}),keywords:["subtitle","h2"],label:"Heading 2",value:"h2"},{icon:/* @__PURE__ */oi.jsx(fr,{}),keywords:["subtitle","h3"],label:"Heading 3",value:"h3"},{icon:/* @__PURE__ */oi.jsx(gr,{}),keywords:["subtitle","h4"],label:"Heading 4",value:"h4"},{icon:/* @__PURE__ */oi.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:"h5"},{icon:/* @__PURE__ */oi.jsx(br,{}),keywords:["subtitle","h6"],label:"Heading 6",value:"h6"},{icon:/* @__PURE__ */oi.jsx(vr,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:r.ul},{icon:/* @__PURE__ */oi.jsx(yr,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:r.ol},{description:"Insert a highlighted block.",icon:/* @__PURE__ */oi.jsx(wr,{}),keywords:["note"],label:"Callout",value:r.callout}];function vu(t){const s=I(),[n,o]=e.useState(!1),a=Z({defaultValue:r.p,getProp:e=>ju(e)}),i=e.useMemo(()=>bu.find(e=>e.value===(a??r.p))??bu[0],[a]);/* @__PURE__ */
396
+ return oi.jsxs(Oi,{open:n,onOpenChange:o,modal:!1,...t,children:[
397
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{className:"min-w-[125px]",pressed:n,tooltip:"Turn into",isDropdown:!0,children:i.label})}),
398
+ /* @__PURE__ */oi.jsx(Mi,{className:"ignore-click-outside/toolbar min-w-0",onCloseAutoFocus:e=>{e.preventDefault(),s.tf.focus()},align:"start",children:/* @__PURE__ */oi.jsx(il,{value:a,onValueChange:e=>{((e,t,{at:s}={})=>{e.tf.withoutNormalizing(()=>{const n=s=>{const[n,o]=s;if(n[r.listType]&&e.tf.unsetNodes([r.listType,"indent"],{at:o}),t in gu)return gu[t](e,t,s);n.type!==t&&e.tf.setNodes({type:t},{at:o})};if(s){const t=e.api.node(s);if(t)return void n(t)}e.api.blocks({mode:"lowest"}).forEach(e=>{n(e)})})})(s,e)},label:"Turn into",children:bu.map(({icon:e,label:t,value:r})=>/* @__PURE__ */oi.jsxs(Vi,{className:"min-w-[180px] pl-2 *:first:[span]:hidden",value:r,children:[
399
+ /* @__PURE__ */oi.jsx("span",{className:"pointer-events-none absolute right-2 flex size-3.5 items-center justify-center",children:/* @__PURE__ */oi.jsx(ts,{children:/* @__PURE__ */oi.jsx(mt,{})})}),e,t]},r))})})]})}const yu=e.createContext(void 0);function wu({children:e,isFullscreen:t,onToggleFullscreen:r}){/* @__PURE__ */
400
+ return oi.jsx(yu.Provider,{value:{isFullscreen:t,onToggleFullscreen:r},children:e})}function ku(){const t=e.useContext(yu);if(void 0===t)throw new Error("useFullscreen must be used within a FullscreenProvider");return t}function Cu(e){const{isFullscreen:t,onToggleFullscreen:r}=ku();/* @__PURE__ */
401
+ return oi.jsx(Qi,{...e,onClick:r,onMouseDown:e=>e.preventDefault(),tooltip:t?"Exit fullscreen":"Enter fullscreen",pressed:t,children:t?/* @__PURE__ */oi.jsx(kr,{}):/* @__PURE__ */oi.jsx(Cr,{})})}const Nu=e.createContext(null);function zu(){return e.useContext(Nu)}function _u(){const e=I(),t=zu();if(!t)return null;const s={open:()=>{},onSelect:t=>{e.tf.insertNodes({children:[{text:""}],type:r.img,url:t.url,alt:t.alt,width:t.width,height:t.height})}};/* @__PURE__ */
402
+ return oi.jsx(oi.Fragment,{children:t(s)})}const Su="Insert Image";function Eu({setOpen:t}){const s=I(),[n,o]=e.useState(""),a=e.useCallback(()=>{if(!f(n))return oo.error("Invalid URL");t(!1),s.tf.insertNodes({children:[{text:""}],name:void 0,type:r.img,url:n})},[n,s,t]);/* @__PURE__ */
403
+ return oi.jsxs(oi.Fragment,{children:[
404
+ /* @__PURE__ */oi.jsx(tu,{children:/* @__PURE__ */oi.jsx(su,{children:Su})}),
405
+ /* @__PURE__ */oi.jsxs(nu,{className:"group relative w-full",children:[
406
+ /* @__PURE__ */oi.jsx("label",{className:"-translate-y-1/2 absolute top-1/2 block cursor-text px-1 text-muted-foreground/70 text-sm transition-all group-focus-within:pointer-events-none group-focus-within:top-0 group-focus-within:cursor-default group-focus-within:font-medium group-focus-within:text-foreground group-focus-within:text-xs has-[+input:not(:placeholder-shown)]:pointer-events-none has-[+input:not(:placeholder-shown)]:top-0 has-[+input:not(:placeholder-shown)]:cursor-default has-[+input:not(:placeholder-shown)]:font-medium has-[+input:not(:placeholder-shown)]:text-foreground has-[+input:not(:placeholder-shown)]:text-xs",htmlFor:"url",children:/* @__PURE__ */oi.jsx("span",{className:"inline-flex bg-background px-2",children:"URL"})}),
407
+ /* @__PURE__ */oi.jsx(iu,{id:"url",className:"w-full",value:n,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&a()},placeholder:"",type:"url",autoFocus:!0})]}),
408
+ /* @__PURE__ */oi.jsxs(ru,{children:[
409
+ /* @__PURE__ */oi.jsx(au,{children:"Cancel"}),
410
+ /* @__PURE__ */oi.jsx(ou,{onClick:e=>{e.preventDefault(),a()},children:"Accept"})]})]})}function Bu(){const[t,r]=e.useState(!1);/* @__PURE__ */
411
+ return oi.jsxs(oi.Fragment,{children:[
412
+ /* @__PURE__ */oi.jsx(Qi,{tooltip:"Insert image from URL",onMouseDown:e=>e.preventDefault(),onClick:()=>r(!0),children:/* @__PURE__ */oi.jsx(Nr,{className:"size-4"})}),
413
+ /* @__PURE__ */oi.jsx(Jd,{open:t,onOpenChange:r,children:/* @__PURE__ */oi.jsx(eu,{className:"gap-6",children:/* @__PURE__ */oi.jsx(Eu,{setOpen:r})})})]})}function Tu(){const e=J(),t=zu(),s=T(Nc,"commenting")??!1;/* @__PURE__ */
414
+ return oi.jsx("div",{className:"flex w-full",children:!e&&/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[
415
+ /* @__PURE__ */oi.jsxs(ol,{children:[
416
+ /* @__PURE__ */oi.jsx(qd,{}),
417
+ /* @__PURE__ */oi.jsx(Ud,{})]}),
418
+ /* @__PURE__ */oi.jsx(ol,{children:/* @__PURE__ */oi.jsx(Cu,{})}),
419
+ /* @__PURE__ */oi.jsx(ol,{children:/* @__PURE__ */oi.jsx(vu,{})}),
420
+ /* @__PURE__ */oi.jsxs(ol,{children:[
421
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */oi.jsx(zr,{})}),
422
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */oi.jsx(_r,{})}),
423
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */oi.jsx(Sr,{})}),
424
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */oi.jsx(Er,{})}),
425
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.sup,clear:r.sub,tooltip:"Superscript",children:/* @__PURE__ */oi.jsx(Br,{})}),
426
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.sub,clear:r.sup,tooltip:"Subscript",children:/* @__PURE__ */oi.jsx(Tr,{})}),
427
+ /* @__PURE__ */oi.jsx(Kd,{})]}),
428
+ /* @__PURE__ */oi.jsxs(ol,{children:[
429
+ /* @__PURE__ */oi.jsx(Ad,{nodeType:r.color,tooltip:"Text color",children:/* @__PURE__ */oi.jsx(Dr,{})}),
430
+ /* @__PURE__ */oi.jsx(Ad,{nodeType:r.backgroundColor,tooltip:"Background color",children:/* @__PURE__ */oi.jsx(Ir,{})})]}),
431
+ /* @__PURE__ */oi.jsxs(ol,{children:[
432
+ /* @__PURE__ */oi.jsx(Xc,{}),
433
+ /* @__PURE__ */oi.jsx(Gd,{}),
434
+ /* @__PURE__ */oi.jsx(Zd,{}),
435
+ /* @__PURE__ */oi.jsx(Wd,{}),
436
+ /* @__PURE__ */oi.jsx($d,{})]}),
437
+ /* @__PURE__ */oi.jsxs(ol,{children:[
438
+ /* @__PURE__ */oi.jsx(uu,{}),t?/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[
439
+ /* @__PURE__ */oi.jsx(_u,{}),
440
+ /* @__PURE__ */oi.jsx(Bu,{})]}):/* @__PURE__ */oi.jsx(cu,{nodeType:r.img})]}),s&&/* @__PURE__ */oi.jsx(ol,{children:/* @__PURE__ */oi.jsx(Qc,{})})]})})}const Du=[$({key:"fixed-toolbar",render:{beforeEditable:()=>/* @__PURE__ */oi.jsx(Yc,{children:/* @__PURE__ */oi.jsx(Tu,{})})}})];function Iu({children:e,className:t,state:s,...n}){const o=X(),a=Q("focus"),i=!!T({key:r.link},"mode"),l=T({key:r.aiChat},"open"),c=Lo({editorId:o,focusedEditorId:a,hideToolbar:i||l,...s,floatingOptions:{middleware:[Po(12),Ho({fallbackPlacements:["top-start","top-end","bottom-start","bottom-end"],padding:12})],placement:"top",...s?.floatingOptions}}),{clickOutsideRef:d,hidden:u,props:m,ref:h}=Vo(c),x=Fs(n.ref,h);return u?null:/* @__PURE__ */oi.jsx("div",{ref:d,children:/* @__PURE__ */oi.jsx(Gi,{...n,...m,ref:x,className:hi("scrollbar-hide absolute z-50 overflow-x-auto whitespace-nowrap rounded-md border bg-popover p-1 opacity-100 shadow-md print:hidden","max-w-[80vw]",t),children:e})})}function Ou(){const e=J(),t=T(Nc,"commenting")??!1;/* @__PURE__ */
441
+ return oi.jsxs(oi.Fragment,{children:[!e&&/* @__PURE__ */oi.jsx(oi.Fragment,{children:/* @__PURE__ */oi.jsxs(ol,{children:[
442
+ /* @__PURE__ */oi.jsx(vu,{}),
443
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.bold,tooltip:"Bold (⌘+B)",children:/* @__PURE__ */oi.jsx(zr,{})}),
444
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.italic,tooltip:"Italic (⌘+I)",children:/* @__PURE__ */oi.jsx(_r,{})}),
445
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.underline,tooltip:"Underline (⌘+U)",children:/* @__PURE__ */oi.jsx(Sr,{})}),
446
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.strikethrough,tooltip:"Strikethrough (⌘+⇧+M)",children:/* @__PURE__ */oi.jsx(Er,{})}),
447
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.sup,clear:r.sub,tooltip:"Superscript",children:/* @__PURE__ */oi.jsx(Br,{})}),
448
+ /* @__PURE__ */oi.jsx(Yd,{nodeType:r.sub,clear:r.sup,tooltip:"Subscript",children:/* @__PURE__ */oi.jsx(Tr,{})}),
449
+ /* @__PURE__ */oi.jsx(Kd,{})]})}),t&&/* @__PURE__ */oi.jsx(ol,{children:/* @__PURE__ */oi.jsx(Qc,{})})]})}const Au=[$({key:"floating-toolbar",render:{afterEditable:()=>/* @__PURE__ */oi.jsx(Iu,{children:/* @__PURE__ */oi.jsx(Ou,{})})}})],Fu={inject:{targetPlugins:[r.p]}},Mu=[ue.configure({inject:{...Fu.inject,nodeProps:{defaultNodeValue:"black"}}}),me.configure(Fu),he.configure(Fu),xe.configure(Fu)],Ru=[pe.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...r.heading,r.p]}})];const Lu=et("z-50 w-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-hidden"),Pu=et("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function Hu({state:t}){const s=T({key:r.comment},"activeId"),n=T({key:r.suggestion},"activeId"),o=e.useMemo(()=>({middleware:[Po(8),Ho({fallbackPlacements:["bottom-end","top-start","top-end"],padding:12})],placement:n||s?"top-start":"bottom-start"}),[s,n]),a=Yn({...t,floatingOptions:{...o,...t?.floatingOptions}}),{hidden:i,props:l,ref:c,textInputProps:d}=Jn(a),u=Xn({...t,floatingOptions:{...o,...t?.floatingOptions}}),{editButtonProps:m,props:h,ref:x,unlinkButtonProps:p}=Qn(u),f=ee({preventDefaultOnEnterKeydown:!0});if(i)return null;const g=/* @__PURE__ */oi.jsxs("div",{className:"flex w-[330px] flex-col",...f,children:[
450
+ /* @__PURE__ */oi.jsxs("div",{className:"flex items-center",children:[
451
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */oi.jsx(Jt,{className:"size-4"})}),
452
+ /* @__PURE__ */oi.jsx(eo,{className:Pu(),placeholder:"Paste link","data-plate-focus":!0})]}),
453
+ /* @__PURE__ */oi.jsx(Zi,{className:"my-1"}),
454
+ /* @__PURE__ */oi.jsxs("div",{className:"flex items-center",children:[
455
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */oi.jsx(Or,{className:"size-4"})}),
456
+ /* @__PURE__ */oi.jsx("input",{className:Pu(),placeholder:"Text to display","data-plate-focus":!0,...d})]})]}),j=u.isEditing?g:/* @__PURE__ */oi.jsxs("div",{className:"box-content flex items-center",children:[
457
+ /* @__PURE__ */oi.jsx("button",{className:Si({size:"sm",variant:"ghost"}),type:"button",...m,children:"Edit link"}),
458
+ /* @__PURE__ */oi.jsx(Zi,{orientation:"vertical"}),
459
+ /* @__PURE__ */oi.jsx(Vu,{}),
460
+ /* @__PURE__ */oi.jsx(Zi,{orientation:"vertical"}),
461
+ /* @__PURE__ */oi.jsx("button",{className:Si({size:"sm",variant:"ghost"}),type:"button",...p,children:/* @__PURE__ */oi.jsx(Ar,{width:18})})]});/* @__PURE__ */
462
+ return oi.jsxs(oi.Fragment,{children:[
463
+ /* @__PURE__ */oi.jsx("div",{ref:c,className:Lu(),...l,children:g}),
464
+ /* @__PURE__ */oi.jsx("div",{ref:x,className:Lu(),...h,children:j})]})}function Vu(){const t=I(),s=te(),n=e.useMemo(()=>{const e=t.api.node({match:{type:t.getType(r.link)}});if(!e)return{};const[s]=e;return Wo(t,s)},[t,s]);/* @__PURE__ */
465
+ return oi.jsx("a",{...n,className:Si({size:"sm",variant:"ghost"}),onMouseOver:e=>{e.stopPropagation()},"aria-label":"Open link in a new tab",target:"_blank",children:/* @__PURE__ */oi.jsx(Fr,{width:18})})}const Uu=[to.configure({render:{node:function(e){const t=e.editor.getApi(on).suggestion.suggestionData(e.element);/* @__PURE__ */
466
+ return oi.jsx(k,{...e,as:"a",className:hi("font-medium text-primary underline decoration-primary underline-offset-4","remove"===t?.type&&"bg-red-100 text-red-700","insert"===t?.type&&"bg-emerald-100 text-emerald-700"),attributes:{...e.attributes,...Wo(e.editor,e.element),onMouseOver:e=>{e.stopPropagation()}},children:e.children})},afterEditable:()=>/* @__PURE__ */oi.jsx(Hu,{})}})],qu=[Wn.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle,r.img]},options:{offset:24}})];function $u({className:e,...t}){/* @__PURE__ */
467
+ return oi.jsx(Xr.Root,{"data-slot":"checkbox",className:hi("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:/* @__PURE__ */oi.jsx(Xr.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:/* @__PURE__ */oi.jsx(mt,{className:"size-3.5"})})})}const Wu={todo:{Li:function(e){/* @__PURE__ */
468
+ return oi.jsx("li",{className:hi("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=ro({element:e.element}),{checkboxProps:r}=so(t),s=C();/* @__PURE__ */
469
+ return oi.jsx("div",{contentEditable:!1,children:/* @__PURE__ */oi.jsx($u,{className:hi("-left-6 absolute top-1",s&&"pointer-events-none"),...r})})}}};function Ku(e){const{listStart:t,listStyleType:r}=e.element,{Li:s,Marker:n}=Wu[r]??{},o=Ae(e.element)?"ol":"ul";/* @__PURE__ */
470
+ return oi.jsxs(o,{className:"relative m-0 p-0",style:{listStyleType:r},start:t,children:[n&&/* @__PURE__ */oi.jsx(n,{...e}),s?/* @__PURE__ */oi.jsx(s,{...e}):/* @__PURE__ */oi.jsx("li",{children:e.children})]})}const Zu=[...qu,no.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle,r.img]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */oi.jsx(Ku,{...e})}}})];const Gu=re(Xo)({propsHook:Zo}),Yu=({className:t,isInline:r,open:s,setOpen:n,...o})=>{const a=I(),i=C(),l=O();if(e.useEffect(()=>{r&&s&&n(!0)},[r,s,n]),i)return null;const c=()=>{n(!1),r?a.tf.select(l,{focus:!0,next:!0}):a.getApi(nt).blockSelection.set(l.id)};/* @__PURE__ */
471
+ return oi.jsxs(Tl,{className:"flex gap-2",onEscapeKeyDown:e=>{e.preventDefault()},contentEditable:!1,children:[
472
+ /* @__PURE__ */oi.jsx(Gu,{className:hi("max-h-[50vh] grow resize-none p-2 text-sm",t),state:{isInline:r,open:s,onClose:c},autoFocus:!0,...o}),
473
+ /* @__PURE__ */oi.jsxs(Ei,{variant:"secondary",className:"px-3",onClick:c,children:["Done ",
474
+ /* @__PURE__ */oi.jsx(Dt,{className:"size-3.5"})]})]})},Ju=[Yo.withComponent(function(t){const r=t.element,s=e.useRef(null),n=N(),o=M(e=>e.api.isCollapsed(),[]),[a,i]=e.useState(n&&o);return e.useEffect(()=>{n&&o&&i(!0)},[n,o]),Go({element:r,katexRef:s,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */oi.jsxs(k,{...t,className:hi("mx-1 inline-block select-none rounded-sm [&_.katex-display]:my-0!"),children:[
475
+ /* @__PURE__ */oi.jsxs(El,{open:a,onOpenChange:i,modal:!1,children:[
476
+ /* @__PURE__ */oi.jsx(Bl,{asChild:!0,children:/* @__PURE__ */oi.jsxs("div",{className:hi('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",(r.texExpression.length>0&&a||n)&&"after:bg-brand/15",0===r.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),contentEditable:!1,children:[
477
+ /* @__PURE__ */oi.jsx("span",{ref:s,className:hi(0===r.texExpression.length&&"hidden","font-mono leading-none")}),0===r.texExpression.length&&/* @__PURE__ */oi.jsxs("span",{children:[
478
+ /* @__PURE__ */oi.jsx(Mr,{className:"mr-1 inline-block h-[19px] w-4 py-[1.5px] align-text-bottom"}),"New equation"]})]})}),
479
+ /* @__PURE__ */oi.jsx(Yu,{className:"my-auto",open:a,placeholder:"E = mc^2",setOpen:i,isInline:!0})]}),t.children]})}),Jo.withComponent(function(t){const r=N(),[s,n]=e.useState(r),o=e.useRef(null);return Go({element:t.element,katexRef:o,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}}),/* @__PURE__ */oi.jsxs(k,{className:"my-1",...t,children:[
480
+ /* @__PURE__ */oi.jsxs(El,{open:s,onOpenChange:n,modal:!1,children:[
481
+ /* @__PURE__ */oi.jsx(Bl,{asChild:!0,children:/* @__PURE__ */oi.jsx("div",{className:hi("group flex cursor-pointer select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.element.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),"data-selected":r,contentEditable:!1,role:"button",children:t.element.texExpression.length>0?/* @__PURE__ */oi.jsx("span",{ref:o}):/* @__PURE__ */oi.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
482
+ /* @__PURE__ */oi.jsx(Mr,{className:"size-6 text-muted-foreground/80"}),
483
+ /* @__PURE__ */oi.jsx("div",{children:"Add a Tex equation"})]})})}),
484
+ /* @__PURE__ */oi.jsx(Yu,{open:s,placeholder:"f(x) = \\begin{cases}\n x^2, &\\quad x > 0 \\\\\n 0, &\\quad x = 0 \\\\\n -x^2, &\\quad x < 0\n\\end{cases}",isInline:!1,setOpen:n})]}),t.children]})})],Xu=et("max-w-full",{defaultVariants:{align:"center"},variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function Qu({align:e,className:t,...r}){/* @__PURE__ */
485
+ return oi.jsx(ta,{...r,className:hi(Xu({align:e}),t)})}function em(e){/* @__PURE__ */
486
+ return oi.jsx(ra,{...e,className:hi("mt-2 w-full resize-none border-none bg-inherit p-0 font-[inherit] text-inherit","focus:outline-none focus:[&::placeholder]:opacity-0","text-center print:placeholder:text-transparent",e.className)})}const tm=Ms(Ei)({propsHook:ea,stateHook:Qo}),rm=A(Ts,function(e){const{align:t="center",readOnly:r,unsafeUrl:s}=xn();/* @__PURE__ */
487
+ return oi.jsxs(k,{...e,className:"mb-1",children:[
488
+ /* @__PURE__ */oi.jsxs("figure",{className:"group relative cursor-default",contentEditable:!1,children:[
489
+ /* @__PURE__ */oi.jsx("div",{className:"h-16",children:/* @__PURE__ */oi.jsx("audio",{className:"size-full",src:s,controls:!0})}),
490
+ /* @__PURE__ */oi.jsx(Qu,{style:{width:"100%"},align:t,children:/* @__PURE__ */oi.jsx(em,{className:"h-20",readOnly:r,placeholder:"Write a caption..."})})]}),e.children]})}),sm=A(Ts,function(e){const t=C(),{name:r,unsafeUrl:s}=xn();/* @__PURE__ */
491
+ return oi.jsxs(k,{className:"my-px rounded-sm",...e,children:[
492
+ /* @__PURE__ */oi.jsxs("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:r,href:s,rel:"noopener noreferrer",role:"button",target:"_blank",children:[
493
+ /* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
494
+ /* @__PURE__ */oi.jsx(Rr,{className:"size-5"}),
495
+ /* @__PURE__ */oi.jsx("div",{children:r})]}),
496
+ /* @__PURE__ */oi.jsx(Qu,{align:"left",children:/* @__PURE__ */oi.jsx(em,{className:"text-left",readOnly:t,placeholder:"Write a caption..."})})]}),e.children]})}),nm=et("flex h-[28px] w-full rounded-md border-none bg-transparent px-1.5 py-1 text-base placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-transparent md:text-sm");function om({children:t,plugin:r}){const s=I(),n=C(),o=N(),a=R(),i=M(e=>!e.api.isExpanded(),[]),l=pn("isOpen",s.id),c=a&&!n&&o&&i&&!l,d=fn("isEditing");e.useEffect(()=>{!c&&d&&gn.set("isEditing",!1)},[c]);const u=O(),{props:m}=F({element:u});/* @__PURE__ */
497
+ return oi.jsxs(El,{open:c,modal:!1,children:[
498
+ /* @__PURE__ */oi.jsx(Dl,{children:t}),
499
+ /* @__PURE__ */oi.jsx(Tl,{className:"w-auto p-1",onOpenAutoFocus:e=>e.preventDefault(),children:d?/* @__PURE__ */oi.jsx("div",{className:"flex w-[330px] flex-col",children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-center",children:[
500
+ /* @__PURE__ */oi.jsx("div",{className:"flex items-center pr-1 pl-2 text-muted-foreground",children:/* @__PURE__ */oi.jsx(Jt,{className:"size-4"})}),
501
+ /* @__PURE__ */oi.jsx(jn.UrlInput,{className:nm(),placeholder:"Paste the embed link...",options:{plugin:r}})]})}):/* @__PURE__ */oi.jsxs("div",{className:"box-content flex items-center",children:[
502
+ /* @__PURE__ */oi.jsx(jn.EditButton,{className:Si({size:"sm",variant:"ghost"}),children:"Edit link"}),
503
+ /* @__PURE__ */oi.jsx(tm,{size:"sm",variant:"ghost",children:"Caption"}),
504
+ /* @__PURE__ */oi.jsx(Zi,{orientation:"vertical",className:"mx-1 h-6"}),
505
+ /* @__PURE__ */oi.jsx(Ei,{size:"sm",variant:"ghost",...m,children:/* @__PURE__ */oi.jsx(Et,{})})]})})]})}const am=et(hi("top-0 flex w-6 select-none flex-col justify-center","after:flex after:h-16 after:w-[3px] after:rounded-[6px] after:bg-ring after:opacity-0 after:content-['_'] group-hover:after:opacity-100"),{variants:{direction:{left:"-left-3 -ml-3 pl-3",right:"-right-3 -mr-3 items-end pr-3"}}}),im=et("absolute z-40",{variants:{direction:{bottom:"w-full cursor-row-resize",left:"h-full cursor-col-resize",right:"h-full cursor-col-resize",top:"w-full cursor-row-resize"}}});function lm({className:e,options:t,...r}){const s=Is(t??{}),n=Os(s);return s.readOnly?null:/* @__PURE__ */oi.jsx("div",{className:hi(im({direction:t?.direction}),e),"data-resizing":s.isResizing,...n.props,...r})}const cm=et("",{variants:{align:{center:"mx-auto",left:"mr-auto",right:"ml-auto"}}});function dm({align:e,className:t,...r}){/* @__PURE__ */
506
+ return oi.jsx(Ds,{...r,className:hi(cm({align:e}),t)})}const um=A(Ts,function(e){const{align:t="center",focused:r,readOnly:s,selected:n}=xn(),o=As("width"),{isDragging:a,handleRef:i}=ls({element:e.element});/* @__PURE__ */
507
+ return oi.jsx(om,{plugin:bn,children:/* @__PURE__ */oi.jsxs(k,{...e,className:"py-2.5",children:[
508
+ /* @__PURE__ */oi.jsxs("figure",{className:"group relative m-0",contentEditable:!1,children:[
509
+ /* @__PURE__ */oi.jsxs(dm,{align:t,options:{align:t,readOnly:s},children:[
510
+ /* @__PURE__ */oi.jsx(lm,{className:am({direction:"left"}),options:{direction:"left"}}),
511
+ /* @__PURE__ */oi.jsx(vn,{ref:i,className:hi("block w-full max-w-full cursor-pointer object-cover px-0","rounded-sm",r&&n&&"ring-2 ring-ring ring-offset-2",a&&"opacity-50"),alt:e.attributes.alt}),
512
+ /* @__PURE__ */oi.jsx(lm,{className:am({direction:"right"}),options:{direction:"right"}})]}),
513
+ /* @__PURE__ */oi.jsx(Qu,{style:{width:o},align:t,children:/* @__PURE__ */oi.jsx(em,{readOnly:s,onFocus:e=>{e.preventDefault()},placeholder:"Write a caption..."})})]}),e.children]})})});function mm({onUploadComplete:t,onUploadError:r,...s}={}){const[n,o]=e.useState(),[a,i]=e.useState(),[l,c]=e.useState(0),[d,u]=e.useState(!1);return{isUploading:d,progress:l,uploadedFile:n,uploadFile:async function(e){u(!0),i(e);try{const r=await hm("editorUploader",{...s,files:[e],onUploadProgress:({progress:e})=>{c(Math.min(e,100))}});return o(r[0]),t?.(r[0]),n}catch(a){const t=function(e){const t="Something went wrong, please try again later.";if(e instanceof oa.ZodError){return e.issues.map(e=>e.message).join("\n")}if(e instanceof Error)return e.message;return t}(a),s=t.length>0?t:"Something went wrong, please try again later.";oo.error(s),r?.(a);const n={key:"mock-key-0",appUrl:`https://mock-app-url.com/${e.name}`,name:e.name,size:e.size,type:e.type,url:URL.createObjectURL(e)};let i=0;const l=async()=>{for(;i<100;)await new Promise(e=>setTimeout(e,50)),i+=2,c(Math.min(i,100))};return await l(),o(n),n}finally{c(0),u(!1),i(void 0)}},uploadingFile:a}}const{uploadFiles:hm,useUploadThing:xm}=na();const pm={[r.audio]:{accept:["audio/*"],content:"Add an audio file",icon:/* @__PURE__ */oi.jsx(Hr,{})},[r.file]:{accept:["*"],content:"Add a file",icon:/* @__PURE__ */oi.jsx(Rr,{})},[r.img]:{accept:["image/*"],content:"Add an image",icon:/* @__PURE__ */oi.jsx(rr,{})},[r.video]:{accept:["video/*"],content:"Add a video",icon:/* @__PURE__ */oi.jsx(Pr,{})}},fm=A(yn,function(t){const{editor:s,element:n}=t,{api:o}=E(hn),{isUploading:a,progress:i,uploadedFile:l,uploadFile:c,uploadingFile:d}=mm(),u=a&&d,m=pm[n.mediaType],h=n.mediaType===r.img,x=e.useRef(null),{openFilePicker:p}=ao({accept:m.accept,multiple:!0,onFilesSelected:({plainFiles:e})=>{const t=e[0],r=e.slice(1);f(t),r.length>0&&s.getTransforms(hn).insert.media(r)}}),f=e.useCallback(e=>{c(e),o.placeholder.addUploadingFile(n.id,e)},[o.placeholder,n.id,c]);e.useEffect(()=>{if(!l)return;const e=s.api.findPath(n);s.tf.withoutSaving(()=>{s.tf.removeNodes({at:e});const t={children:[{text:""}],initialHeight:x.current?.height,initialWidth:x.current?.width,isUpload:!0,name:n.mediaType===r.file?l.name:"",placeholderId:n.id,type:n.mediaType,url:l.url};s.tf.insertNodes(t,{at:e}),wn(s,t)}),o.placeholder.removeUploadingFile(n.id)},[l,n.id]);const g=e.useRef(!1);return e.useEffect(()=>{if(g.current)return;g.current=!0;const e=o.placeholder.getUploadingFile(n.id);e&&f(e)},[g]),/* @__PURE__ */oi.jsxs(k,{className:"my-1",...t,children:[(!u||!h)&&/* @__PURE__ */oi.jsxs("div",{className:hi("flex cursor-pointer select-none items-center rounded-sm bg-muted p-3 pr-9 hover:bg-primary/10"),onClick:()=>!u&&p(),contentEditable:!1,children:[
514
+ /* @__PURE__ */oi.jsx("div",{className:"relative mr-3 flex text-muted-foreground/80 [&_svg]:size-6",children:m.icon}),
515
+ /* @__PURE__ */oi.jsxs("div",{className:"whitespace-nowrap text-muted-foreground text-sm",children:[
516
+ /* @__PURE__ */oi.jsx("div",{children:u?d?.name:m.content}),u&&!h&&/* @__PURE__ */oi.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[
517
+ /* @__PURE__ */oi.jsx("div",{children:jm(d?.size??0)}),
518
+ /* @__PURE__ */oi.jsx("div",{children:"–"}),
519
+ /* @__PURE__ */oi.jsxs("div",{className:"flex items-center",children:[
520
+ /* @__PURE__ */oi.jsx(Lr,{className:"mr-1 size-3.5 animate-spin text-muted-foreground"}),i??0,"%"]})]})]})]}),h&&u&&/* @__PURE__ */oi.jsx(gm,{file:d,imageRef:x,progress:i}),t.children]})});function gm({className:t,file:r,imageRef:s,progress:n=0}){const[o,a]=e.useState(null);return e.useEffect(()=>{const e=URL.createObjectURL(r);return a(e),()=>{URL.revokeObjectURL(e)}},[r]),o?/* @__PURE__ */oi.jsxs("div",{className:hi("relative",t),contentEditable:!1,children:[
521
+ /* @__PURE__ */oi.jsx("img",{ref:s,className:"h-auto w-full rounded-sm object-cover",alt:r.name,src:o}),n<100&&/* @__PURE__ */oi.jsxs("div",{className:"absolute right-1 bottom-1 flex items-center space-x-2 rounded-full bg-black/50 px-1 py-0.5",children:[
522
+ /* @__PURE__ */oi.jsx(Lr,{className:"size-3.5 animate-spin text-muted-foreground"}),
523
+ /* @__PURE__ */oi.jsxs("span",{className:"font-medium text-white text-xs",children:[Math.round(n),"%"]})]})]}):null}function jm(e,t={}){const{decimals:r=0,sizeType:s="normal"}=t;if(0===e)return"0 Byte";const n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(r)} ${"accurate"===s?["Bytes","KiB","MiB","GiB","TiB"][n]??"Bytest":["Bytes","KB","MB","GB","TB"][n]??"Bytes"}`}const bm=et("rounded bg-[rgba(0,0,0,0.5)] px-1",{defaultVariants:{variant:"default"},variants:{variant:{default:"text-white",disabled:"cursor-not-allowed text-gray-400"}}});function vm(e){const{props:t,ref:r}=Nn();/* @__PURE__ */
524
+ return oi.jsx("input",{...t,...e,ref:r})}const ym=()=>{const t=T(hn,"error");e.useEffect(()=>{if(!t)return;const{code:e,data:r}=t;switch(e){case zn.INVALID_FILE_SIZE:oo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case zn.INVALID_FILE_TYPE:oo.error(`The type of files ${r.files.map(e=>e.name).join(", ")} is invalid`);break;case zn.TOO_LARGE:oo.error(`The size of files ${r.files.map(e=>e.name).join(", ")} is too large than ${r.maxFileSize}`);break;case zn.TOO_LESS_FILES:oo.error(`The mini um number of files is ${r.minFileCount} for ${r.fileType}`);break;case zn.TOO_MANY_FILES:oo.error(`The maximum number of files is ${r.maxFileCount} ${r.fileType?`for ${r.fileType}`:""}`)}},[t])},wm=[bn.configure({options:{disableUploadInsert:!0},render:{afterEditable:function(){const e=I(),t=pn("isOpen",e.id),r=pn("scale"),s=pn("isEditingScale"),{closeProps:n,currentUrlIndex:o,maskLayerProps:a,nextDisabled:i,nextProps:l,prevDisabled:c,prevProps:d,scaleTextProps:u,zommOutProps:m,zoomInDisabled:h,zoomInProps:x,zoomOutDisabled:p}=kn({scrollSpeed:4});/* @__PURE__ */
525
+ return oi.jsxs("div",{className:hi("fixed top-0 left-0 z-50 h-screen w-screen select-none",!t&&"hidden"),onContextMenu:e=>e.stopPropagation(),...a,children:[
526
+ /* @__PURE__ */oi.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
527
+ /* @__PURE__ */oi.jsx("div",{className:"absolute inset-0 size-full bg-black opacity-30"}),
528
+ /* @__PURE__ */oi.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:/* @__PURE__ */oi.jsxs("div",{className:"relative flex max-h-screen w-full items-center",children:[
529
+ /* @__PURE__ */oi.jsx(Cn,{className:hi("mx-auto block max-h-[calc(100vh-4rem)] w-auto object-contain transition-transform")}),
530
+ /* @__PURE__ */oi.jsxs("div",{className:"-translate-x-1/2 absolute bottom-0 left-1/2 z-40 flex w-fit justify-center gap-4 p-2 text-center text-white",onClick:e=>e.stopPropagation(),children:[
531
+ /* @__PURE__ */oi.jsxs("div",{className:"flex gap-1",children:[
532
+ /* @__PURE__ */oi.jsx("button",{...d,className:hi(bm({variant:c?"disabled":"default"})),type:"button",children:/* @__PURE__ */oi.jsx(ur,{})}),(o??0)+1,
533
+ /* @__PURE__ */oi.jsx("button",{...l,className:hi(bm({variant:i?"disabled":"default"})),type:"button",children:/* @__PURE__ */oi.jsx(mr,{})})]}),
534
+ /* @__PURE__ */oi.jsxs("div",{className:"flex",children:[
535
+ /* @__PURE__ */oi.jsx("button",{className:hi(bm({variant:p?"disabled":"default"})),...m,type:"button",children:/* @__PURE__ */oi.jsx(Vr,{className:"size-4"})}),
536
+ /* @__PURE__ */oi.jsx("div",{className:"mx-px",children:s?/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[
537
+ /* @__PURE__ */oi.jsx(vm,{className:"w-10 rounded px-1 text-slate-500 outline"})," ",
538
+ /* @__PURE__ */oi.jsx("span",{children:"%"})]}):/* @__PURE__ */oi.jsx("span",{...u,children:100*r+"%"})}),
539
+ /* @__PURE__ */oi.jsx("button",{className:hi(bm({variant:h?"disabled":"default"})),...x,type:"button",children:/* @__PURE__ */oi.jsx(Ur,{className:"size-4"})})]}),
540
+ /* @__PURE__ */oi.jsx("button",{className:hi(bm()),type:"button",children:/* @__PURE__ */oi.jsx(qr,{className:"size-4"})}),
541
+ /* @__PURE__ */oi.jsx("button",{...n,className:hi(bm()),type:"button",children:/* @__PURE__ */oi.jsx($r,{className:"size-4"})})]})]})})]})},node:um}}),_n.withComponent(rm),Sn.withComponent(sm),hn.configure({options:{disableEmptyPlaceholder:!0},render:{afterEditable:function(){return ym(),null},node:fm}}),sa.configure({options:{query:{allow:[r.img,r.video,r.audio,r.file,r.mediaEmbed]}}})];const km=la();const Cm=[{key:"0",text:"Aayla Secura"},{key:"1",text:"Adi Gallia"},{key:"2",text:"Admiral Dodd Rancit"},{key:"3",text:"Admiral Firmus Piett"},{key:"4",text:"Admiral Gial Ackbar"},{key:"5",text:"Admiral Ozzel"},{key:"6",text:"Admiral Raddus"},{key:"7",text:"Admiral Terrinald Screed"},{key:"8",text:"Admiral Trench"},{key:"9",text:"Admiral U.O. Statura"},{key:"10",text:"Agen Kolar"},{key:"11",text:"Agent Kallus"},{key:"12",text:"Aiolin and Morit Astarte"},{key:"13",text:"Aks Moe"},{key:"14",text:"Almec"},{key:"15",text:"Alton Kastle"},{key:"16",text:"Amee"},{key:"17",text:"AP-5"},{key:"18",text:"Armitage Hux"},{key:"19",text:"Artoo"},{key:"20",text:"Arvel Crynyd"},{key:"21",text:"Asajj Ventress"},{key:"22",text:"Aurra Sing"},{key:"23",text:"AZI-3"},{key:"24",text:"Bala-Tik"},{key:"25",text:"Barada"},{key:"26",text:"Bargwill Tomder"},{key:"27",text:"Baron Papanoida"},{key:"28",text:"Barriss Offee"},{key:"29",text:"Baze Malbus"},{key:"30",text:"Bazine Netal"},{key:"31",text:"BB-8"},{key:"32",text:"BB-9E"},{key:"33",text:"Ben Quadinaros"},{key:"34",text:"Berch Teller"},{key:"35",text:"Beru Lars"},{key:"36",text:"Bib Fortuna"},{key:"37",text:"Biggs Darklighter"},{key:"38",text:"Black Krrsantan"},{key:"39",text:"Bo-Katan Kryze"},{key:"40",text:"Boba Fett"},{key:"41",text:"Bobbajo"},{key:"42",text:"Bodhi Rook"},{key:"43",text:"Borvo the Hutt"},{key:"44",text:"Boss Nass"},{key:"45",text:"Bossk"},{key:"46",text:"Breha Antilles-Organa"},{key:"47",text:"Bren Derlin"},{key:"48",text:"Brendol Hux"},{key:"49",text:"BT-1"}],Nm=[aa.configure({options:{triggerPreviousCharPattern:/^$|^[\s"']$/}}).withComponent(function(t){const s=t.element,n=N(),o=z(),a=function(){const[t,r]=e.useState(!1);return e.useEffect(()=>{r(!0)},[]),t}(),i=C();/* @__PURE__ */
542
+ return oi.jsx(k,{...t,className:hi("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!i&&"cursor-pointer",n&&o&&"ring-2 ring-ring",!0===s.children[0][r.bold]&&"font-bold",!0===s.children[0][r.italic]&&"italic",!0===s.children[0][r.underline]&&"underline"),attributes:{...t.attributes,contentEditable:!1,"data-slate-value":s.value,draggable:!0},children:a&&g?
543
+ /* @__PURE__ */oi.jsxs(oi.Fragment,{children:[t.children,t.prefix,s.value]}):
544
+ /* @__PURE__ */oi.jsxs(oi.Fragment,{children:[t.prefix,s.value,t.children]})})}),ia.withComponent(function(t){const{editor:r,element:s}=t,[n,o]=e.useState("");/* @__PURE__ */
545
+ return oi.jsxs(k,{...t,as:"span",children:[
546
+ /* @__PURE__ */oi.jsxs(Lc,{value:n,element:s,setValue:o,showTrigger:!1,trigger:"@",children:[
547
+ /* @__PURE__ */oi.jsx("span",{className:"inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline text-sm ring-ring focus-within:ring-2",children:/* @__PURE__ */oi.jsx(Pc,{})}),
548
+ /* @__PURE__ */oi.jsxs(Hc,{className:"my-1.5",children:[
549
+ /* @__PURE__ */oi.jsx(qc,{children:"No results"}),
550
+ /* @__PURE__ */oi.jsx($c,{children:Cm.map(e=>/* @__PURE__ */oi.jsx(Uc,{value:e.text,onClick:()=>km(r,e,n),children:e.text},e.key))})]})]}),t.children]})})],zm=[{group:"Basic blocks",items:[{icon:/* @__PURE__ */oi.jsx(hr,{}),keywords:["paragraph"],label:"Text",value:r.p},{icon:/* @__PURE__ */oi.jsx(xr,{}),keywords:["title","h1"],label:"Heading 1",value:r.h1},{icon:/* @__PURE__ */oi.jsx(pr,{}),keywords:["subtitle","h2"],label:"Heading 2",value:r.h2},{icon:/* @__PURE__ */oi.jsx(fr,{}),keywords:["subtitle","h3"],label:"Heading 3",value:r.h3},{icon:/* @__PURE__ */oi.jsx(gr,{}),keywords:["subtitle","h4"],label:"Heading 4",value:r.h4},{icon:/* @__PURE__ */oi.jsx(jr,{}),keywords:["subtitle","h5"],label:"Heading 5",value:r.h5},{icon:/* @__PURE__ */oi.jsx(br,{}),keywords:["subtitle","h6"],label:"Heading 6",value:r.h6},{icon:/* @__PURE__ */oi.jsx(vr,{}),keywords:["unordered","ul","-"],label:"Bulleted list",value:r.ul},{icon:/* @__PURE__ */oi.jsx(Xt,{}),keywords:["ordered","ol","1"],label:"Numbered list",value:r.ol},{icon:/* @__PURE__ */oi.jsx(or,{}),label:"Table",value:r.table},{description:"Insert a highlighted block.",icon:/* @__PURE__ */oi.jsx(wr,{}),keywords:["note"],label:"Callout",value:r.callout}].map(e=>({...e,onSelect:(e,t)=>{((e,t,r={})=>{const{upsert:s=!1}=r;e.tf.withoutNormalizing(()=>{const r=e.api.block();if(!r)return;const[n,o]=r,i=e.api.isEmpty(n),l=ju(n),c=t===l;s&&i&&c||(t in pu?pu[t](e,t):e.tf.insertNodes(e.api.create.block({type:t}),{at:a.next(o),select:!0}),c||e.getApi(on).suggestion.withoutSuggestions(()=>{e.tf.removeNodes({previousEmptyBlock:!0})}))})})(e,t,{upsert:!0})}}))}];const _m=[da.configure({options:{triggerQuery:e=>!e.api.some({match:{type:e.getType(r.codeBlock)}})}}),ua.withComponent(function(e){const{editor:t,element:r}=e;/* @__PURE__ */
551
+ return oi.jsxs(k,{...e,as:"span",children:[
552
+ /* @__PURE__ */oi.jsxs(Lc,{element:r,trigger:"/",children:[
553
+ /* @__PURE__ */oi.jsx(Pc,{}),
554
+ /* @__PURE__ */oi.jsxs(Hc,{children:[
555
+ /* @__PURE__ */oi.jsx(qc,{children:"No results"}),zm.map(({group:e,items:r})=>/* @__PURE__ */oi.jsxs($c,{children:[
556
+ /* @__PURE__ */oi.jsx(Wc,{children:e}),r.map(({focusEditor:r,icon:s,keywords:n,label:o,value:a,onSelect:i})=>/* @__PURE__ */oi.jsxs(Uc,{value:a,onClick:()=>i(t,a),label:o,focusEditor:r,group:e,keywords:n,children:[
557
+ /* @__PURE__ */oi.jsx("div",{className:"mr-2 text-muted-foreground",children:s}),o??a]},a))]},e))]})]}),e.children]})})];function Sm(e){/* @__PURE__ */
558
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
559
+ /* @__PURE__ */oi.jsx("title",{children:"Border All"}),
560
+ /* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",fill:"currentColor",fillRule:"evenodd"}),
561
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
562
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
563
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
564
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
565
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
566
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
567
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
568
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
569
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"})]})}function Em(e){/* @__PURE__ */
570
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
571
+ /* @__PURE__ */oi.jsx("title",{children:"Border Bottom"}),
572
+ /* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M1 13.25L14 13.25V14.75L1 14.75V13.25Z",fill:"currentColor",fillRule:"evenodd"}),
573
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5"}),
574
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5"}),
575
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3"}),
576
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3"}),
577
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7"}),
578
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1"}),
579
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7"}),
580
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1"}),
581
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7"}),
582
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1"}),
583
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7"}),
584
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1"}),
585
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7"}),
586
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1"}),
587
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7"}),
588
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1"}),
589
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9"}),
590
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9"}),
591
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11"}),
592
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11"}),
593
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5"}),
594
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3"}),
595
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7"}),
596
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1"}),
597
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9"}),
598
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11"})]})}function Bm(e){/* @__PURE__ */
599
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
600
+ /* @__PURE__ */oi.jsx("title",{children:"Border Left"}),
601
+ /* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M1.75 1L1.75 14L0.249999 14L0.25 1L1.75 1Z",fill:"currentColor",fillRule:"evenodd"}),
602
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 7)",width:"1",x:"10",y:"7"}),
603
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 13)",width:"1",x:"10",y:"13"}),
604
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 7)",width:"1",x:"12",y:"7"}),
605
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 13)",width:"1",x:"12",y:"13"}),
606
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 7)",width:"1",x:"8",y:"7"}),
607
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 7)",width:"1",x:"14",y:"7"}),
608
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 13)",width:"1",x:"8",y:"13"}),
609
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 13)",width:"1",x:"14",y:"13"}),
610
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 5)",width:"1",x:"8",y:"5"}),
611
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 5)",width:"1",x:"14",y:"5"}),
612
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 3)",width:"1",x:"8",y:"3"}),
613
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 3)",width:"1",x:"14",y:"3"}),
614
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 9)",width:"1",x:"8",y:"9"}),
615
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 9)",width:"1",x:"14",y:"9"}),
616
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 11)",width:"1",x:"8",y:"11"}),
617
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 11)",width:"1",x:"14",y:"11"}),
618
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 7)",width:"1",x:"6",y:"7"}),
619
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 13)",width:"1",x:"6",y:"13"}),
620
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 7)",width:"1",x:"4",y:"7"}),
621
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 13)",width:"1",x:"4",y:"13"}),
622
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 10 1)",width:"1",x:"10",y:"1"}),
623
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 12 1)",width:"1",x:"12",y:"1"}),
624
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 8 1)",width:"1",x:"8",y:"1"}),
625
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 14 1)",width:"1",x:"14",y:"1"}),
626
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 6 1)",width:"1",x:"6",y:"1"}),
627
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(90 4 1)",width:"1",x:"4",y:"1"})]})}function Tm(e){/* @__PURE__ */
628
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
629
+ /* @__PURE__ */oi.jsx("title",{children:"Border None"}),
630
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"5.025"}),
631
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"5.025"}),
632
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"3.025"}),
633
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"3.025"}),
634
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"7.025"}),
635
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"13.025"}),
636
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"1.025"}),
637
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"7.025"}),
638
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"13.025"}),
639
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"1.025"}),
640
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"7.025"}),
641
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"13.025"}),
642
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"5",y:"1.025"}),
643
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"7.025"}),
644
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"13.025"}),
645
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"3",y:"1.025"}),
646
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"7.025"}),
647
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"13.025"}),
648
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"9",y:"1.025"}),
649
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"7.025"}),
650
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"13.025"}),
651
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"11",y:"1.025"}),
652
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"9.025"}),
653
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"9.025"}),
654
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"7",y:"11.025"}),
655
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"13",y:"11.025"}),
656
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"5.025"}),
657
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"3.025"}),
658
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"7.025"}),
659
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"13.025"}),
660
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"1.025"}),
661
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"9.025"}),
662
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",width:"1",x:"1",y:"11.025"})]})}function Dm(e){/* @__PURE__ */
663
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
664
+ /* @__PURE__ */oi.jsx("title",{children:"Border Right"}),
665
+ /* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M13.25 1L13.25 14L14.75 14L14.75 1L13.25 1Z",fill:"currentColor",fillRule:"evenodd"}),
666
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 7)",width:"1"}),
667
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 13)",width:"1"}),
668
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 7)",width:"1"}),
669
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 13)",width:"1"}),
670
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 7)",width:"1"}),
671
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 7)",width:"1"}),
672
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 13)",width:"1"}),
673
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 13)",width:"1"}),
674
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 5)",width:"1"}),
675
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 5)",width:"1"}),
676
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 3)",width:"1"}),
677
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 3)",width:"1"}),
678
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 9)",width:"1"}),
679
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 9)",width:"1"}),
680
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 11)",width:"1"}),
681
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 11)",width:"1"}),
682
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 7)",width:"1"}),
683
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 13)",width:"1"}),
684
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 7)",width:"1"}),
685
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 13)",width:"1"}),
686
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 5 1)",width:"1"}),
687
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 3 1)",width:"1"}),
688
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 7 1)",width:"1"}),
689
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 1 1)",width:"1"}),
690
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 9 1)",width:"1"}),
691
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"matrix(0 1 1 0 11 1)",width:"1"})]})}function Im(e){/* @__PURE__ */
692
+ return oi.jsxs("svg",{fill:"none",height:"15",viewBox:"0 0 15 15",width:"15",xmlns:"http://www.w3.org/2000/svg",...e,children:[
693
+ /* @__PURE__ */oi.jsx("title",{children:"Border Top"}),
694
+ /* @__PURE__ */oi.jsx("path",{clipRule:"evenodd",d:"M14 1.75L1 1.75L1 0.249999L14 0.25L14 1.75Z",fill:"currentColor",fillRule:"evenodd"}),
695
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 10)",width:"1",x:"8",y:"10"}),
696
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 10)",width:"1",x:"2",y:"10"}),
697
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 12)",width:"1",x:"8",y:"12"}),
698
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 12)",width:"1",x:"2",y:"12"}),
699
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 8)",width:"1",x:"8",y:"8"}),
700
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 14)",width:"1",x:"8",y:"14"}),
701
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 8)",width:"1",x:"2",y:"8"}),
702
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 14)",width:"1",x:"2",y:"14"}),
703
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 8)",width:"1",x:"10",y:"8"}),
704
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 10 14)",width:"1",x:"10",y:"14"}),
705
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 8)",width:"1",x:"12",y:"8"}),
706
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 12 14)",width:"1",x:"12",y:"14"}),
707
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 8)",width:"1",x:"6",y:"8"}),
708
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 6 14)",width:"1",x:"6",y:"14"}),
709
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 8)",width:"1",x:"4",y:"8"}),
710
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 4 14)",width:"1",x:"4",y:"14"}),
711
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 6)",width:"1",x:"8",y:"6"}),
712
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 6)",width:"1",x:"2",y:"6"}),
713
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 8 4)",width:"1",x:"8",y:"4"}),
714
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 2 4)",width:"1",x:"2",y:"4"}),
715
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 10)",width:"1",x:"14",y:"10"}),
716
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 12)",width:"1",x:"14",y:"12"}),
717
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 8)",width:"1",x:"14",y:"8"}),
718
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 14)",width:"1",x:"14",y:"14"}),
719
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 6)",width:"1",x:"14",y:"6"}),
720
+ /* @__PURE__ */oi.jsx("rect",{fill:"currentColor",height:"1",rx:".5",transform:"rotate(-180 14 4)",width:"1",x:"14",y:"4"})]})}const Om=A(co,function({children:e,...t}){const r=C(),s=T(nt,"isSelectionAreaVisible"),n=!r&&!s,{isSelectingCell:o,marginLeft:a,props:i}=uo(),l=at(t.element.id),c=/* @__PURE__ */oi.jsx(k,{...t,className:hi("overflow-x-auto py-5",n&&"-ml-2 *:data-[slot=block-selection]:left-2"),style:{paddingLeft:a},children:/* @__PURE__ */oi.jsxs("div",{className:"group/table relative w-fit",children:[
721
+ /* @__PURE__ */oi.jsx("table",{className:hi("mr-0 ml-px table h-px table-fixed border-collapse",o&&"selection:bg-transparent"),...i,children:/* @__PURE__ */oi.jsx("tbody",{className:"min-w-full",children:e})}),l&&/* @__PURE__ */oi.jsx("div",{className:Ci(),contentEditable:!1})]})});return r?c:/* @__PURE__ */oi.jsx(Am,{children:c})});function Am({children:t}){const s=I(),n=te(),{api:o}=E(nc),{tf:a}=E(io),i=N(),l=O(),{props:c}=F({element:l}),d=M(e=>i&&e.api.isCollapsed(),[i]),u=R(),{canMerge:m,canSplit:h}=lo(),[x,p]=e.useState(null);e.useEffect(()=>{if(!n)return void p(null);const e=s.api.above({match:{type:[s.getType(r.td),s.getType(r.th)]}});p(e?s.api.toDOMNode(e[0])??null:null)},[s,n]);const f=u&&(m||h||d),{refs:{setFloating:g},style:j}=Uo({open:f&&!!x,getBoundingClientRect:()=>x?.getBoundingClientRect()??qo(),middleware:[Po(8),Ho({fallbackPlacements:["top-start","top-end","bottom-start","bottom-end"],padding:12})],placement:"top"});/* @__PURE__ */
722
+ return oi.jsxs(oi.Fragment,{children:[t,f&&x&&/* @__PURE__ */oi.jsx($o,{children:/* @__PURE__ */oi.jsx("div",{ref:g,style:j,children:/* @__PURE__ */oi.jsxs(Gi,{className:"scrollbar-hide z-1500 flex w-auto max-w-[80vw] flex-row overflow-x-auto rounded-md border bg-popover p-1 shadow-md print:hidden",contentEditable:!1,children:[
723
+ /* @__PURE__ */oi.jsxs(ol,{children:[
724
+ /* @__PURE__ */oi.jsx(Mm,{tooltip:"Background color",children:/* @__PURE__ */oi.jsx(Ir,{})}),m&&/* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.table.merge()),onMouseDown:e=>e.preventDefault(),tooltip:"Merge cells",children:/* @__PURE__ */oi.jsx(Wr,{})}),h&&/* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.table.split()),onMouseDown:e=>e.preventDefault(),tooltip:"Split cell",children:/* @__PURE__ */oi.jsx(Kr,{})}),
725
+ /* @__PURE__ */oi.jsxs(Oi,{modal:!1,children:[
726
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{tooltip:"Cell borders",children:/* @__PURE__ */oi.jsx(Zr,{})})}),
727
+ /* @__PURE__ */oi.jsx(Ai,{children:/* @__PURE__ */oi.jsx(Fm,{})})]}),d&&/* @__PURE__ */oi.jsx(ol,{children:/* @__PURE__ */oi.jsx(Qi,{tooltip:"Delete table",...c,onClick:()=>{const e=s.api.findPath(l);(e?[...s.getApi(on).suggestion.nodes({at:e})].filter(([e])=>!e[nn()]):[]).length>0?o.suggestion.withoutSuggestions(()=>c.onClick?.()):(a.select(l),a.remove.table(),s.tf.focus())},children:/* @__PURE__ */oi.jsx(Et,{})})})]}),d&&/* @__PURE__ */oi.jsxs(ol,{children:[
728
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.insert.tableRow({before:!0})),onMouseDown:e=>e.preventDefault(),tooltip:"Insert row before",children:/* @__PURE__ */oi.jsx(cr,{})}),
729
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.insert.tableRow()),onMouseDown:e=>e.preventDefault(),tooltip:"Insert row after",children:/* @__PURE__ */oi.jsx(dr,{})}),
730
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.remove.tableRow()),onMouseDown:e=>e.preventDefault(),tooltip:"Delete row",children:/* @__PURE__ */oi.jsx(pt,{})})]}),d&&/* @__PURE__ */oi.jsxs(ol,{children:[
731
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.insert.tableColumn({before:!0})),onMouseDown:e=>e.preventDefault(),tooltip:"Insert column before",children:/* @__PURE__ */oi.jsx(ur,{})}),
732
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.insert.tableColumn()),onMouseDown:e=>e.preventDefault(),tooltip:"Insert column after",children:/* @__PURE__ */oi.jsx(mr,{})}),
733
+ /* @__PURE__ */oi.jsx(Qi,{onClick:()=>o.suggestion.withoutSuggestions(()=>a.remove.tableColumn()),onMouseDown:e=>e.preventDefault(),tooltip:"Delete column",children:/* @__PURE__ */oi.jsx(pt,{})})]})]})})})]})}function Fm(e){const t=I(),{getOnSelectTableBorder:r,hasBottomBorder:s,hasLeftBorder:n,hasNoBorders:o,hasOuterBorders:a,hasRightBorder:i,hasTopBorder:l}=mo();/* @__PURE__ */
734
+ return oi.jsxs(Mi,{className:"min-w-[220px]",onCloseAutoFocus:e=>{e.preventDefault(),t.tf.focus()},align:"start",side:"right",sideOffset:0,...e,children:[
735
+ /* @__PURE__ */oi.jsxs(Ri,{children:[
736
+ /* @__PURE__ */oi.jsxs(Pi,{checked:l,onCheckedChange:r("top"),children:[
737
+ /* @__PURE__ */oi.jsx(Im,{}),
738
+ /* @__PURE__ */oi.jsx("div",{children:"Top Border"})]}),
739
+ /* @__PURE__ */oi.jsxs(Pi,{checked:i,onCheckedChange:r("right"),children:[
740
+ /* @__PURE__ */oi.jsx(Dm,{}),
741
+ /* @__PURE__ */oi.jsx("div",{children:"Right Border"})]}),
742
+ /* @__PURE__ */oi.jsxs(Pi,{checked:s,onCheckedChange:r("bottom"),children:[
743
+ /* @__PURE__ */oi.jsx(Em,{}),
744
+ /* @__PURE__ */oi.jsx("div",{children:"Bottom Border"})]}),
745
+ /* @__PURE__ */oi.jsxs(Pi,{checked:n,onCheckedChange:r("left"),children:[
746
+ /* @__PURE__ */oi.jsx(Bm,{}),
747
+ /* @__PURE__ */oi.jsx("div",{children:"Left Border"})]})]}),
748
+ /* @__PURE__ */oi.jsxs(Ri,{children:[
749
+ /* @__PURE__ */oi.jsxs(Pi,{checked:o,onCheckedChange:r("none"),children:[
750
+ /* @__PURE__ */oi.jsx(Tm,{}),
751
+ /* @__PURE__ */oi.jsx("div",{children:"No Border"})]}),
752
+ /* @__PURE__ */oi.jsxs(Pi,{checked:a,onCheckedChange:r("outer"),children:[
753
+ /* @__PURE__ */oi.jsx(Sm,{}),
754
+ /* @__PURE__ */oi.jsx("div",{children:"Outside Borders"})]})]})]})}function Mm({children:t,tooltip:r}){const[s,n]=e.useState(!1),o=I(),a=T(io,"selectedCells"),i=e.useCallback(e=>{n(!1),Us(o,{color:e,selectedCells:a??[]})},[a,o]),l=e.useCallback(()=>{n(!1),Us(o,{color:null,selectedCells:a??[]})},[a,o]);/* @__PURE__ */
755
+ return oi.jsxs(Oi,{open:s,onOpenChange:n,modal:!1,children:[
756
+ /* @__PURE__ */oi.jsx(Fi,{asChild:!0,children:/* @__PURE__ */oi.jsx(Qi,{tooltip:r,children:t})}),
757
+ /* @__PURE__ */oi.jsxs(Mi,{align:"start",children:[
758
+ /* @__PURE__ */oi.jsx(il,{label:"Colors",children:/* @__PURE__ */oi.jsx(Pd,{className:"px-2",colors:Hd,updateColor:i})}),
759
+ /* @__PURE__ */oi.jsx(Ri,{children:/* @__PURE__ */oi.jsxs(Li,{className:"p-2",onClick:l,children:[
760
+ /* @__PURE__ */oi.jsx($t,{}),
761
+ /* @__PURE__ */oi.jsx("span",{children:"Clear"})]})})]})]})}function Rm({dragRef:e}){const t=I(),r=O();/* @__PURE__ */
762
+ return oi.jsx(Ei,{ref:e,variant:"outline",className:hi("-translate-y-1/2 absolute top-1/2 left-0 z-51 h-6 w-4 p-0 focus-visible:ring-0 focus-visible:ring-offset-0","cursor-grab active:cursor-grabbing",'opacity-0 transition-opacity duration-100 group-hover/row:opacity-100 group-has-data-[resizing="true"]/row:opacity-0'),onClick:()=>{t.tf.select(r)},children:/* @__PURE__ */oi.jsx(Pt,{className:"text-muted-foreground"})})}function Lm(){const{dropLine:e}=cs();return e?/* @__PURE__ */oi.jsx("div",{className:hi("absolute inset-x-0 left-2 z-50 h-0.5 bg-brand/50","top"===e?"-top-px":"-bottom-px")}):null}function Pm({isHeader:e,...t}){const{api:s}=E(io),n=C(),o=t.element,a=se(([e])=>e.id,[],{key:r.table}),i=se(([e])=>e.id,[],{key:r.tr}),l=at(a),c=at(i)||l,d=T(nt,"isSelectionAreaVisible"),{borders:u,colIndex:m,colSpan:h,minHeight:x,rowIndex:p,selected:f,width:g}=ho(),{bottomProps:j,hiddenLeft:b,leftProps:v,rightProps:y}=xo({colIndex:m,colSpan:h,rowIndex:p});/* @__PURE__ */
763
+ return oi.jsxs(k,{...t,as:e?"th":"td",className:hi("h-full overflow-visible border-none bg-background p-0",o.background?"bg-(--cellBackground)":"bg-background",e&&"text-left *:m-0","before:size-full",f&&"before:z-10 before:bg-brand/5","before:absolute before:box-border before:select-none before:content-['']",u.bottom?.size&&"before:border-b before:border-b-border",u.right?.size&&"before:border-r before:border-r-border",u.left?.size&&"before:border-l before:border-l-border",u.top?.size&&"before:border-t before:border-t-border"),style:{"--cellBackground":o.background,maxWidth:g||240,minWidth:g||120},attributes:{...t.attributes,colSpan:s.table.getColSpan(o),rowSpan:s.table.getRowSpan(o)},children:[
764
+ /* @__PURE__ */oi.jsx("div",{className:"relative z-20 box-border h-full px-3 py-2",style:{minHeight:x},children:t.children}),!d&&/* @__PURE__ */oi.jsx("div",{className:"group absolute top-0 size-full select-none",contentEditable:!1,suppressContentEditableWarning:!0,children:!n&&/* @__PURE__ */oi.jsxs(oi.Fragment,{children:[
765
+ /* @__PURE__ */oi.jsx(lm,{...y,className:"-top-2 -right-1 h-[calc(100%+8px)] w-2","data-col":m}),
766
+ /* @__PURE__ */oi.jsx(lm,{...j,className:"-bottom-1 h-2"}),!b&&/* @__PURE__ */oi.jsx(lm,{...v,className:"-left-1 top-0 w-2","data-resizer-left":0===m?"true":void 0}),
767
+ /* @__PURE__ */oi.jsx("div",{className:hi("absolute top-0 z-30 hidden h-full w-1 bg-ring","right-[-1.5px]",Hm({colIndex:m}))}),0===m&&/* @__PURE__ */oi.jsx("div",{className:hi("absolute top-0 z-30 h-full w-1 bg-ring","left-[-1.5px]",'fade-in hidden animate-in group-has-[[data-resizer-left]:hover]/table:block group-has-[[data-resizer-left][data-resizing="true"]]/table:block')})]})}),c&&/* @__PURE__ */oi.jsx("div",{className:Ci(),contentEditable:!1})]})}const Hm=et("fade-in hidden animate-in",{variants:{colIndex:{0:'group-has-[[data-col="0"]:hover]/table:block group-has-[[data-col="0"][data-resizing="true"]]/table:block',1:'group-has-[[data-col="1"]:hover]/table:block group-has-[[data-col="1"][data-resizing="true"]]/table:block',2:'group-has-[[data-col="2"]:hover]/table:block group-has-[[data-col="2"][data-resizing="true"]]/table:block',3:'group-has-[[data-col="3"]:hover]/table:block group-has-[[data-col="3"][data-resizing="true"]]/table:block',4:'group-has-[[data-col="4"]:hover]/table:block group-has-[[data-col="4"][data-resizing="true"]]/table:block',5:'group-has-[[data-col="5"]:hover]/table:block group-has-[[data-col="5"][data-resizing="true"]]/table:block',6:'group-has-[[data-col="6"]:hover]/table:block group-has-[[data-col="6"][data-resizing="true"]]/table:block',7:'group-has-[[data-col="7"]:hover]/table:block group-has-[[data-col="7"][data-resizing="true"]]/table:block',8:'group-has-[[data-col="8"]:hover]/table:block group-has-[[data-col="8"][data-resizing="true"]]/table:block',9:'group-has-[[data-col="9"]:hover]/table:block group-has-[[data-col="9"][data-resizing="true"]]/table:block',10:'group-has-[[data-col="10"]:hover]/table:block group-has-[[data-col="10"][data-resizing="true"]]/table:block'}}}),Vm=[io.withComponent(Om),po.withComponent(function({children:e,...t}){const{element:r}=t,s=C(),n=N(),o=I(),i=T(nt,"isSelectionAreaVisible"),l=!s&&!i,{isDragging:c,nodeRef:d,previewRef:u,handleRef:m}=ls({element:r,type:r.type,canDropNode:({dragEntry:e,dropEntry:t})=>a.equals(a.parent(e[1]),a.parent(t[1])),onDropHandler:(e,{dragItem:t})=>{const r=t.element;r&&o.tf.select(r)}});/* @__PURE__ */
768
+ return oi.jsxs(k,{...t,ref:K(t.ref,u,d),as:"tr",className:hi("group/row",c&&"opacity-50"),attributes:{...t.attributes,"data-selected":n?"true":void 0},children:[l&&/* @__PURE__ */oi.jsxs("td",{className:"w-2 select-none",contentEditable:!1,children:[
769
+ /* @__PURE__ */oi.jsx(Rm,{dragRef:m}),
770
+ /* @__PURE__ */oi.jsx(Lm,{})]}),e]})}),fo.withComponent(Pm),go.withComponent(function(e){/* @__PURE__ */
771
+ return oi.jsx(Pm,{...e,isHeader:!0})})],Um=et("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const qm=[xa.configure({options:{topOffset:80}}).withComponent(function(e){const t=ma(),{props:r}=ha(t),{headingList:s}=t;/* @__PURE__ */
772
+ return oi.jsxs(k,{...e,className:"mb-1 p-0",children:[
773
+ /* @__PURE__ */oi.jsx("div",{contentEditable:!1,children:s.length>0?s.map(e=>/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:Um({depth:e.depth}),onClick:t=>r.onClick(t,e,"smooth"),"aria-current":!0,children:e.title},e.id)):/* @__PURE__ */oi.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const $m=[...qu,ga.withComponent(function(e){const t=e.element,r=pa(t.id),{buttonProps:s,open:n}=fa(r);/* @__PURE__ */
774
+ return oi.jsxs(k,{...e,className:"pl-6",children:[
775
+ /* @__PURE__ */oi.jsx(Ei,{size:"icon",variant:"ghost",className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,...s,children:/* @__PURE__ */oi.jsx(Gr,{className:n?"rotate-90 transition-transform duration-75":"rotate-0 transition-transform duration-75"})}),e.children]})})],Wm=[...xi,...Ml,...Vm,...$m,...qm,...wm,...wl,...Kl,...Ju,...tc,...Uu,...Nm,...pi,...Mu,...Zu,...ai,...Ru,...zc,...Gl,...oc,..._m,...di,...Xl,...zi,...Ac,...Zc,...Gc,j,...Fc,..._i,...Du,...Au];function Km({children:e,mediaPicker:t}){/* @__PURE__ */
776
+ return oi.jsx(Nu.Provider,{value:t,children:e})}function Zm({onDiscussionsChange:t}){const r=T(Nc,"discussions"),s=e.useRef(null);return e.useEffect(()=>{if(s.current===r)return;s.current=r;const e=r,n=t;queueMicrotask(()=>n?.(e))},[r,t]),null}function Gm(){const{isFullscreen:t,onToggleFullscreen:r}=ku();return e.useEffect(()=>{const e=e=>{"Escape"===e.key&&t&&r()};if(t)return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t,r]),null}function Ym({initialValue:t,onChange:r,mode:s="draft",mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l=!1}){const{isFullscreen:c}=ku(),d=q({plugins:Wm,value:t});e.useEffect(()=>{d.setOption(on,"isSuggesting","draft"===s)},[d,s]);const u=e.useRef(!1);e.useEffect(()=>{void 0!==o&&(i&&u.current||(i&&(u.current=!0),d.setOption(Nc,"discussions",o)))},[d,o,i]),e.useEffect(()=>{void 0!==a&&(d.setOption(Nc,"currentUser",a),d.setOption(on,"currentUserId",a))},[d,a]),e.useEffect(()=>{d.setOption(Nc,"commenting",l??!1)},[d,l]);const m=/* @__PURE__ */oi.jsx("div",{className:c?"h-screen w-full bg-white":"h-screen w-full bg-white rounded-sm border",children:/* @__PURE__ */oi.jsxs(U,{editor:d,onChange:({value:e})=>{r?.(e)},children:[
777
+ /* @__PURE__ */oi.jsx(Zm,{onDiscussionsChange:i}),
778
+ /* @__PURE__ */oi.jsx(dc,{children:/* @__PURE__ */oi.jsx(mc,{variant:"fullWidth"})})]})});return n?/* @__PURE__ */oi.jsx(Km,{mediaPicker:n,children:m}):m}function Jm({initialValue:t,onChange:r,mode:s="draft",mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l=!1}){const[c,d]=e.useState(!1),u=e.useCallback(()=>{d(e=>!e)},[]);/* @__PURE__ */
779
+ return oi.jsx("div",{className:c?"fixed inset-0 z-1450 bg-white":"",children:/* @__PURE__ */oi.jsxs(wu,{isFullscreen:c,onToggleFullscreen:u,children:[
780
+ /* @__PURE__ */oi.jsx(Gm,{}),
781
+ /* @__PURE__ */oi.jsx(Ym,{initialValue:t,onChange:r,mode:s,mediaPicker:n,discussions:o,currentUser:a,onDiscussionsChange:i,commenting:l})]})})}const Xm=[ja.configure({inject:{nodeProps:{defaultNodeValue:"start",nodeKey:"align",styleKey:"textAlign",validNodeValues:["start","left","center","right","end","justify"]},targetPlugins:[...r.heading,r.p,r.img,r.mediaEmbed]}})];const Qm=et("relative mb-1",{variants:{variant:{h1:"mt-[1.6em] pb-1 font-bold font-heading text-4xl",h2:"mt-[1.4em] pb-px font-heading font-semibold text-2xl tracking-tight",h3:"mt-[1em] pb-px font-heading font-semibold text-xl tracking-tight",h4:"mt-[0.75em] font-heading font-semibold text-lg tracking-tight",h5:"mt-[0.75em] font-semibold text-lg tracking-tight",h6:"mt-[0.75em] font-semibold text-base tracking-tight"}}});function eh({variant:e="h1",...t}){const r=t.element.id;/* @__PURE__ */
782
+ return oi.jsxs(Ha,{as:e,className:Qm({variant:e}),...t,children:[r&&/* @__PURE__ */oi.jsx("span",{id:r}),t.children]})}const th=[b.withComponent(function(e){/* @__PURE__ */
783
+ return oi.jsx(Ha,{...e,className:hi("m-0 px-0 py-1"),children:e.children})}),Ca.withComponent(function(e){/* @__PURE__ */
784
+ return oi.jsx(eh,{variant:"h1",...e})}),Na.withComponent(function(e){/* @__PURE__ */
785
+ return oi.jsx(eh,{variant:"h2",...e})}),za.withComponent(function(e){/* @__PURE__ */
786
+ return oi.jsx(eh,{variant:"h3",...e})}),_a.withComponent(function(e){/* @__PURE__ */
787
+ return oi.jsx(eh,{variant:"h4",...e})}),Sa.withComponent(function(e){/* @__PURE__ */
788
+ return oi.jsx(eh,{variant:"h5",...e})}),Ea.withComponent(function(e){/* @__PURE__ */
789
+ return oi.jsx(eh,{variant:"h6",...e})}),Ba.withComponent(function(e){/* @__PURE__ */
790
+ return oi.jsx(Ha,{as:"blockquote",className:"my-1 border-l-2 pl-6 italic",...e})}),Ta.withComponent(function(e){/* @__PURE__ */
791
+ return oi.jsxs(Ha,{...e,children:[
792
+ /* @__PURE__ */oi.jsx("div",{className:"cursor-text py-6",contentEditable:!1,children:/* @__PURE__ */oi.jsx("hr",{className:hi("h-0.5 rounded-sm border-none bg-muted bg-clip-content")})}),e.children]})})];const rh=[Da,Ia,Oa,Aa.withComponent(function(e){/* @__PURE__ */
793
+ return oi.jsx(Va,{...e,as:"code",className:"whitespace-pre-wrap rounded-md bg-muted px-[0.3em] py-[0.2em] font-mono text-sm",children:e.children})}),Fa,Ma,Ra,La.withComponent(function(e){/* @__PURE__ */
794
+ return oi.jsx(Va,{...e,as:"mark",className:"bg-highlight/30 text-inherit",children:e.children})}),Pa.withComponent(function(e){/* @__PURE__ */
795
+ return oi.jsx(Va,{...e,as:"kbd",className:"rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(248,_249,_250)_0px_1px_5px_0px_inset,_rgb(193,_200,_205)_0px_0px_0px_0.5px,_rgb(193,_200,_205)_0px_2px_1px_-1px,_rgb(193,_200,_205)_0px_1px_0px_0px] dark:shadow-[rgba(255,_255,_255,_0.1)_0px_0.5px_0px_0px_inset,_rgb(26,_29,_30)_0px_1px_5px_0px_inset,_rgb(76,_81,_85)_0px_0px_0px_0.5px,_rgb(76,_81,_85)_0px_2px_1px_-1px,_rgb(76,_81,_85)_0px_1px_0px_0px]",children:e.children})})];const sh=[bo.withComponent(function({children:e,className:t,...r}){/* @__PURE__ */
796
+ return oi.jsx(Ha,{className:hi("my-1 flex rounded-sm bg-muted p-4 pl-3",t),style:{backgroundColor:r.element.backgroundColor},...r,children:/* @__PURE__ */oi.jsxs("div",{className:"flex w-full gap-2 rounded-md",children:[
797
+ /* @__PURE__ */oi.jsx("div",{className:"size-6 select-none text-[18px]",style:{fontFamily:'"Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols'},children:/* @__PURE__ */oi.jsx("span",{"data-plate-prevent-deserialization":!0,children:r.element.icon||"💡"})}),
798
+ /* @__PURE__ */oi.jsx("div",{className:"w-full",children:e})]})})})];const nh=ys(ws),oh=[Se.configure({node:{component:function(e){/* @__PURE__ */
799
+ return oi.jsx(Ha,{className:"py-1 **:[.hljs-addition]:bg-[#f0fff4] **:[.hljs-addition]:text-[#22863a] dark:**:[.hljs-addition]:bg-[#3c5743] dark:**:[.hljs-addition]:text-[#ceead5] **:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#005cc5] dark:**:[.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable]:text-[#6596cf] **:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#e36209] dark:**:[.hljs-built\\\\\\\\_in,.hljs-symbol]:text-[#c3854e] **:[.hljs-bullet]:text-[#735c0f] **:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] dark:**:[.hljs-comment,.hljs-code,.hljs-formula]:text-[#6a737d] **:[.hljs-deletion]:bg-[#ffeef0] **:[.hljs-deletion]:text-[#b31d28] dark:**:[.hljs-deletion]:bg-[#473235] dark:**:[.hljs-deletion]:text-[#e7c7cb] **:[.hljs-emphasis]:italic **:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#d73a49] dark:**:[.hljs-keyword,.hljs-doctag,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language\\\\\\\\_]:text-[#ee6960] **:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#22863a] dark:**:[.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo]:text-[#36a84f] **:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#032f62] dark:**:[.hljs-regexp,.hljs-string,.hljs-meta_.hljs-string]:text-[#3593ff] **:[.hljs-section]:font-bold **:[.hljs-section]:text-[#005cc5] dark:**:[.hljs-section]:text-[#61a5f2] **:[.hljs-strong]:font-bold **:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#6f42c1] dark:**:[.hljs-title,.hljs-title.class\\\\\\\\_,.hljs-title.class\\\\\\\\_.inherited\\\\\\\\_\\\\\\\\_,.hljs-title.function\\\\\\\\_]:text-[#a77bfa]",...e,children:/* @__PURE__ */oi.jsx("div",{className:"relative rounded-md bg-muted/50",children:/* @__PURE__ */oi.jsx("pre",{className:"overflow-x-auto p-8 pr-4 font-mono text-sm leading-[normal] [tab-size:2] print:break-inside-avoid",children:/* @__PURE__ */oi.jsx("code",{children:e.children})})})})}},options:{lowlight:nh}}),Ee.withComponent(function(e){/* @__PURE__ */
800
+ return oi.jsx(Ha,{...e})}),Be.withComponent(function(e){const t=e.leaf.className;/* @__PURE__ */
801
+ return oi.jsx(Va,{className:t,...e})})];const ah=[Es.withComponent(function(e){/* @__PURE__ */
802
+ return oi.jsx(Ha,{className:"mb-2",...e,children:/* @__PURE__ */oi.jsx("div",{className:"flex size-full rounded",children:e.children})})}),Bs.withComponent(function(e){const{width:t}=e.element;/* @__PURE__ */
803
+ return oi.jsx("div",{className:"group/column relative",style:{width:t??"100%"},children:/* @__PURE__ */oi.jsx(Ha,{className:"h-full px-2 pt-2 group-first/column:pl-0 group-last/column:pr-0",...e,children:/* @__PURE__ */oi.jsx("div",{className:"relative h-full border border-transparent p-1.5",children:e.children})})})})];const ih=[Ls.withComponent(function(e){/* @__PURE__ */
804
+ return oi.jsx(Va,{...e,className:"border-b-2 border-b-highlight/35 bg-highlight/15",children:e.children})})];const lh=[yo.withComponent(function(e){const{element:t}=e;/* @__PURE__ */
805
+ return oi.jsxs(Ha,{as:"span",className:"inline-block",...e,children:[
806
+ /* @__PURE__ */oi.jsx("span",{className:"w-fit rounded-sm bg-muted px-1 text-muted-foreground",children:t.date?(()=>{const e=/* @__PURE__ */new Date,r=new Date(t.date),s=r.getDate()===e.getDate()&&r.getMonth()===e.getMonth()&&r.getFullYear()===e.getFullYear(),n=new Date(e.setDate(e.getDate()-1)).toDateString()===r.toDateString(),o=new Date(e.setDate(e.getDate()+2)).toDateString()===r.toDateString();return s?"Today":n?"Yesterday":o?"Tomorrow":r.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})})():/* @__PURE__ */oi.jsx("span",{children:"Pick a date"})}),e.children]})})],ch={inject:{targetPlugins:[r.p]}},dh=[ba.configure(ch),va.configure(ch),ya.configure(ch),wa.configure(ch)],uh=[ka.configure({inject:{nodeProps:{defaultNodeValue:1.5,validNodeValues:[1,1.2,1.5,2,3]},targetPlugins:[...r.heading,r.p]}})];const mh=[Ko.withComponent(function(e){/* @__PURE__ */
807
+ return oi.jsx(Ha,{...e,as:"a",className:"font-medium text-primary underline decoration-primary underline-offset-4",attributes:{...e.attributes,...Wo(e.editor,e.element)},children:e.children})})],hh=[$a.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle]},options:{offset:24}})],xh={todo:{Li:function(e){/* @__PURE__ */
808
+ return oi.jsx("li",{className:hi("list-none",e.element.checked&&"text-muted-foreground line-through"),children:e.children})},Marker:function(e){const t=e.element.checked;/* @__PURE__ */
809
+ return oi.jsx("div",{contentEditable:!1,children:/* @__PURE__ */oi.jsx("button",{className:hi("peer -left-6 pointer-events-none absolute top-1 size-4 shrink-0 rounded-sm border border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e.className),"data-state":t?"checked":"unchecked",type:"button",children:/* @__PURE__ */oi.jsx("div",{className:hi("flex items-center justify-center text-current"),children:t&&/* @__PURE__ */oi.jsx(mt,{className:"size-4"})})})})}}};function ph(e){const{indent:t,listStart:r,listStyleType:s}=e.element,{Li:n,Marker:o}=xh[s]??{},a=Ae(e.element)?"ol":"ul",i=t?24*t+"px":void 0;/* @__PURE__ */
810
+ return oi.jsxs(a,{className:"relative m-0 p-0",style:{listStyleType:s,marginLeft:i},start:r,children:[o&&/* @__PURE__ */oi.jsx(o,{...e}),n?/* @__PURE__ */oi.jsx(n,{...e}):/* @__PURE__ */oi.jsx("li",{children:e.children})]})}const fh=[...hh,Fe.configure({inject:{targetPlugins:[...r.heading,r.p,r.blockquote,r.codeBlock,r.toggle]},render:{belowNodes:e=>{if(e.element.listStyleType)return e=>/* @__PURE__ */oi.jsx(ph,{...e})}}})];const gh=[zo.withComponent(function(e){const t=No({element:e.element,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
811
+ return oi.jsxs(Ha,{...e,className:"inline-block select-none rounded-sm [&_.katex-display]:my-0",children:[
812
+ /* @__PURE__ */oi.jsx("div",{className:hi('after:-top-0.5 after:-left-1 after:absolute after:inset-0 after:z-1 after:h-[calc(100%)+4px] after:w-[calc(100%+8px)] after:rounded-sm after:content-[""]',"h-6",0===e.element.texExpression.length&&"text-muted-foreground after:bg-neutral-500/10"),children:/* @__PURE__ */oi.jsx("span",{className:hi(0===e.element.texExpression.length&&"hidden","font-mono leading-none"),dangerouslySetInnerHTML:{__html:t}})}),e.children]})}),_o.withComponent(function(e){const{element:t}=e,r=No({element:t,options:{displayMode:!0,errorColor:"#cc0000",fleqn:!1,leqno:!1,macros:{"\\f":"#1f(#2)"},output:"htmlAndMathml",strict:"warn",throwOnError:!1,trust:!1}});/* @__PURE__ */
813
+ return oi.jsxs(Ha,{className:"my-1",...e,children:[
814
+ /* @__PURE__ */oi.jsx("div",{className:hi("group flex select-none items-center justify-center rounded-sm hover:bg-primary/10 data-[selected=true]:bg-primary/10",0===t.texExpression.length?"bg-muted p-3 pr-9":"px-2 py-1"),children:t.texExpression.length>0?/* @__PURE__ */oi.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):/* @__PURE__ */oi.jsxs("div",{className:"flex h-7 w-full items-center gap-2 whitespace-nowrap text-muted-foreground text-sm",children:[
815
+ /* @__PURE__ */oi.jsx(Mr,{className:"size-6 text-muted-foreground/80"}),
816
+ /* @__PURE__ */oi.jsx("div",{children:"Add a Tex equation"})]})}),e.children]})})];const jh=[Do.withComponent(function(e){const{align:t="center",caption:r,url:s,width:n}=e.element;/* @__PURE__ */
817
+ return oi.jsxs(Ha,{...e,className:"py-2.5",children:[
818
+ /* @__PURE__ */oi.jsx("figure",{className:"group relative m-0 inline-block",style:{width:n},children:/* @__PURE__ */oi.jsxs("div",{className:"relative min-w-[92px] max-w-full",style:{textAlign:t},children:[
819
+ /* @__PURE__ */oi.jsx("img",{className:hi("w-full max-w-full cursor-default object-cover px-0","rounded-sm"),alt:e.attributes.alt,src:s}),r&&/* @__PURE__ */oi.jsx("figcaption",{className:"mx-auto mt-2 h-[24px] max-w-full",style:{textAlign:"center"},children:o.string(r[0])})]})}),e.children]})}),Io.withComponent(function(e){/* @__PURE__ */
820
+ return oi.jsxs(Ha,{...e,className:"mb-1",children:[
821
+ /* @__PURE__ */oi.jsx("figure",{className:"group relative cursor-default",children:/* @__PURE__ */oi.jsx("div",{className:"h-16",children:/* @__PURE__ */oi.jsx("audio",{className:"size-full",src:e.element.url,controls:!0})})}),e.children]})}),Oo.withComponent(function(e){const{name:t,url:r}=e.element;/* @__PURE__ */
822
+ return oi.jsxs(Ha,{className:"my-px rounded-sm",...e,children:[
823
+ /* @__PURE__ */oi.jsx("a",{className:"group relative m-0 flex cursor-pointer items-center rounded px-0.5 py-[3px] hover:bg-muted",contentEditable:!1,download:t,href:r,rel:"noopener noreferrer",role:"button",target:"_blank",children:/* @__PURE__ */oi.jsxs("div",{className:"flex items-center gap-1 p-1",children:[
824
+ /* @__PURE__ */oi.jsx(Rr,{className:"size-5"}),
825
+ /* @__PURE__ */oi.jsx("div",{children:t})]})}),e.children]})}),Wa.configure({options:{query:{allow:[r.img,r.video,r.audio,r.file,r.mediaEmbed]}}}),Ao];const bh=[ca.withComponent(function(e){const{prefix:t}=e,s=e.element;/* @__PURE__ */
826
+ return oi.jsxs(Ha,{...e,as:"span",className:hi("inline-block rounded-md bg-muted px-1.5 py-0.5 align-baseline font-medium text-sm",!0===s.children[0][r.bold]&&"font-bold",!0===s.children[0][r.italic]&&"italic",!0===s.children[0][r.underline]&&"underline"),attributes:{...e.attributes,"data-slate-value":s.value},children:[e.children,t,s.value]})})];const vh=[Qs.withComponent(function(e){const{editor:t,leaf:r}=e,s=t.getApi(Qs).suggestion.dataList(r).some(e=>"remove"===e.type),n={delete:"del",insert:"ins",update:"span"}[s?"delete":"insert"];/* @__PURE__ */
827
+ return oi.jsx(Va,{...e,as:n,className:hi("border-b-2 border-b-brand/[.24] bg-brand/[.08] text-brand/80 no-underline transition-colors duration-200",s&&"border-b-gray-300 bg-gray-300/25 text-gray-400 line-through"),children:e.children})})];function yh({isHeader:e,...t}){const{editor:r,element:s}=t,{api:n}=r.getPlugin(qs),{minHeight:o,width:a}=n.table.getCellSize({element:s}),i=n.table.getCellBorders({element:s});/* @__PURE__ */
828
+ return oi.jsx(Ha,{...t,as:e?"th":"td",className:hi("h-full overflow-visible border-none bg-background p-0",s.background?"bg-(--cellBackground)":"bg-background",e&&"text-left font-normal *:m-0","before:size-full","before:absolute before:box-border before:select-none before:content-['']",i&&hi(i.bottom?.size&&"before:border-b before:border-b-border",i.right?.size&&"before:border-r before:border-r-border",i.left?.size&&"before:border-l before:border-l-border",i.top?.size&&"before:border-t before:border-t-border")),style:{"--cellBackground":s.background,maxWidth:a||240,minWidth:a||120},attributes:{...t.attributes,colSpan:n.table.getColSpan(s),rowSpan:n.table.getRowSpan(s)},children:/* @__PURE__ */oi.jsx("div",{className:"relative z-20 box-border h-full px-4 py-2",style:{minHeight:o},children:t.children})})}const wh=[qs.withComponent(function({children:e,...t}){const{disableMarginLeft:r}=t.editor.getOptions(qs),s=r?0:t.element.marginLeft;/* @__PURE__ */
829
+ return oi.jsx(Ha,{...t,className:"overflow-x-auto py-5",style:{paddingLeft:s},children:/* @__PURE__ */oi.jsx("div",{className:"group/table relative w-fit",children:/* @__PURE__ */oi.jsx("table",{className:"mr-0 ml-px table h-px table-fixed border-collapse",style:{borderCollapse:"collapse",width:"100%"},children:/* @__PURE__ */oi.jsx("tbody",{className:"min-w-full",children:e})})})})}),$s.withComponent(function(e){/* @__PURE__ */
830
+ return oi.jsx(Ha,{...e,as:"tr",className:"h-full",children:e.children})}),Ws.withComponent(yh),Ks.withComponent(function(e){/* @__PURE__ */
831
+ return oi.jsx(yh,{...e,isHeader:!0})})],kh=et("block h-auto w-full cursor-pointer truncate rounded-none px-0.5 py-1.5 text-left font-medium text-muted-foreground underline decoration-[0.5px] underline-offset-4 hover:bg-accent hover:text-muted-foreground",{variants:{depth:{1:"pl-0.5",2:"pl-[26px]",3:"pl-[50px]"}}});const Ch={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},Nh=e=>{if(!e)return[];const t=e.getOptions(Mo);if(t.queryHeading)return t.queryHeading(e);const r=[],s=e.api.nodes({at:[],match:e=>Ro(e)});return s?(Array.from(s).forEach(([e,t])=>{const{type:s}=e,n=o.string(e),a=Ch[s],i=e.id;n&&r.push({id:i,depth:a,path:t,title:n,type:s})}),r):[]},zh=[Mo.withComponent(function(e){const{editor:t}=e,r=Nh(t);/* @__PURE__ */
832
+ return oi.jsxs(Ha,{...e,className:"mb-1 p-0",children:[
833
+ /* @__PURE__ */oi.jsx("div",{children:r.length>0?r.map(e=>/* @__PURE__ */oi.jsx(Ei,{variant:"ghost",className:kh({depth:e.depth}),children:e.title},e.title)):/* @__PURE__ */oi.jsx("div",{className:"text-gray-500 text-sm",children:"Create a heading to display the table of contents."})}),e.children]})})];const _h=[...th,...oh,...wh,...[Ka.withComponent(function(e){/* @__PURE__ */
834
+ return oi.jsxs(Ha,{...e,className:"pl-6",children:[
835
+ /* @__PURE__ */oi.jsx("div",{className:"-left-0.5 absolute top-0 size-6 cursor-pointer select-none items-center justify-center rounded-md p-px text-muted-foreground transition-colors hover:bg-accent [&_svg]:size-4",contentEditable:!1,children:/* @__PURE__ */oi.jsx(Gr,{className:"rotate-0 transition-transform duration-75"})}),e.children]})})],...zh,...jh,...sh,...ah,...gh,...lh,...mh,...bh,...rh,...dh,...fh,...Xm,...uh,...ih,...vh];export{ai as AlignKit,di as AutoformatKit,_h as BaseEditorKit,xi as BasicBlocksKit,pi as BasicMarksKit,zi as BlockMenuKit,_i as BlockPlaceholderKit,wl as CalloutKit,Ml as CodeBlockKit,Kl as ColumnKit,Gl as CommentKit,Xl as CursorOverlayKit,tc as DateKit,Ac as DndKit,Fc as DocxKit,mc as Editor,dc as EditorContainer,Wm as EditorKit,hc as EditorView,Gc as ExitBreakKit,Du as FixedToolbarKit,Au as FloatingToolbarKit,Mu as FontKit,Ru as LineHeightKit,Uu as LinkKit,Zu as ListKit,Ju as MathKit,wm as MediaKit,Nm as MentionKit,ne as Plate,Jm as PlateEditor,oe as PlateLeaf,Ua as PlateStatic,ae as PlateView,_m as SlashKit,oc as SuggestionKit,Vm as TableKit,qm as TocKit,$m as ToggleKit,Bi as TooltipProvider,Za as computeDiff,v as createSlateEditor,y as createSlatePlugin,w as normalizeNodeId,lc as parseUserId,qa as serializeHtml,ie as toPlatePlugin,le as usePlateEditor,ce as usePlateViewEditor,Ga as withGetFragmentExcludeDiff};
838
836
  //# sourceMappingURL=index.js.map