@tryghost/koenig-lexical 0.0.26 → 0.0.28

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.
@@ -1,5 +1,5 @@
1
- (function(G,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(G=typeof globalThis<"u"?globalThis:G||self,te(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,te,Ze){"use strict";var o1=Object.defineProperty;var l1=(G,te,Ze)=>te in G?o1(G,te,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):G[te]=Ze;var Ue=(G,te,Ze)=>(l1(G,typeof te!="symbol"?te+"":te,Ze),Ze);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}
2
- `;document.head.appendChild(__vite_style__);const to=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function gc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=gc(te),S=to(te),hc=to(Ze),s1="",no=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),io=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),Dr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),lo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),so=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),ao=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),uo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),go=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Pn=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),ho=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),fo=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),x.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),fc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),x.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),x.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),x.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),mc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),x.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),x.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),x.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),po=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),x.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),x.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),x.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),_c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"nonzero",fill:"none"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),x.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),x.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),x.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),vc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),x.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},x.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),x.createElement("clipPath",{id:"clip0"},x.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),yc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),wc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),x.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),Cc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("g",{fill:"#fff"},x.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),x.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),x.createElement("clipPath",null,x.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),kc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),x.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ec=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),x.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),x.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),x.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),x.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Nc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),x.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),Tc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),x.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),Sc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),bc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),x.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),x.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),x.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),x.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),Oc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),Rc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),x.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),Ac=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),Mc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",role:"img",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),$c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),x.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),Lc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),Dc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),Ic=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),Pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),x.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),x.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),Fc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),x.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),zc=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),x.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),x.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),x.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Ir=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("circle",{cx:18,cy:16,r:4}),x.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),x.createElement("path",{d:"M2 6h44v36H2z"}))),Bc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),x.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),x.createElement("circle",{cx:17,cy:19,r:3})));var mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fn={exports:{}},zn={};/**
1
+ (function(G,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(G=typeof globalThis<"u"?globalThis:G||self,te(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,te,Ze){"use strict";var o1=Object.defineProperty;var l1=(G,te,Ze)=>te in G?o1(G,te,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):G[te]=Ze;var ze=(G,te,Ze)=>(l1(G,typeof te!="symbol"?te+"":te,Ze),Ze);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem)}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-\\[calc\\(65vw\\+2px-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(65vw + 2px - var(--kg-breakout-adjustment))}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A;--kg-breakout-adjustment: 0px}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 640px){.koenig-lexical .sm\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment))}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}}
2
+ `;document.head.appendChild(__vite_style__);const no=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function gc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=gc(te),S=no(te),hc=no(Ze),s1="",ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),io=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),lo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),Dr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),so=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),ao=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),uo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),go=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),ho=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Pn=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),fo=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),po=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),x.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),fc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),x.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),x.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),x.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),mc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),x.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),x.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),x.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),mo=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),x.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),x.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),x.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),_c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fillRule:"nonzero",fill:"none"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),x.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),x.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),x.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),vc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),x.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},x.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),x.createElement("clipPath",{id:"clip0"},x.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),wc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),yc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),x.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),kc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("g",{fill:"#fff"},x.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),x.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),x.createElement("clipPath",null,x.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),Cc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),x.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ec=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),x.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),x.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),x.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),x.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Nc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),x.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),Tc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),x.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),Sc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),bc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),x.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),x.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),x.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),x.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),Oc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),Rc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),x.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),Ac=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),$c=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",role:"img",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),Mc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),x.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),Lc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),Dc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),Ic=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),Pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),x.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),x.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),Fc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),x.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),zc=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),x.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),x.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),x.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Ir=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("circle",{cx:18,cy:16,r:4}),x.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),x.createElement("path",{d:"M2 6h44v36H2z"}))),Bc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),x.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),x.createElement("circle",{cx:17,cy:19,r:3})));var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fn={exports:{}},zn={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,49 +7,49 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Hc=S.default,Kc=Symbol.for("react.element"),Uc=Symbol.for("react.fragment"),Wc=Object.prototype.hasOwnProperty,Vc=Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yc={key:!0,ref:!0,__self:!0,__source:!0};function xo(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)Wc.call(e,r)&&!Yc.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Kc,type:t,key:o,ref:l,props:i,_owner:Vc.current}}zn.Fragment=Uc,zn.jsx=xo,zn.jsxs=xo,function(t){t.exports=zn}(Fn);const Pr=Fn.exports.Fragment,h=Fn.exports.jsx,Y=Fn.exports.jsxs,Gc=()=>{return Y("div",{className:"koenig-lexical",children:[h(t,{label:"Text toolbar"}),h(e,{}),h(t,{label:"Image toolbar"}),h(n,{}),h(t,{label:"Gallery toolbar"}),h(r,{}),h(t,{label:"Plus menu"}),h(l,{}),h(t,{label:"Card menu"}),h(s,{}),h(t,{label:"Divider card"}),h("div",{className:"relative max-w-[740px]",children:h(d,{})}),h(t,{label:"Code block"}),h("div",{className:"relative max-w-[740px]",children:h(g,{})}),h(t,{label:"Image card"}),h("div",{className:"relative max-w-[740px]",children:h(m,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(E,{})})]});function t({label:k}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:k})}function e(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Format text as bold",Icon:no}),h(i,{label:"Format text as italics",Icon:ro}),h(i,{label:"Toggle heading 1",Icon:io}),h(i,{label:"Toggle heading 2",Icon:oo}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:lo}),h(i,{label:"Insert link",Icon:Dr}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function n(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Set image to regular",Icon:so}),h(i,{label:"Set image to wide",Icon:ao}),h(i,{label:"Set image to full",Icon:co}),h(o,{}),h(i,{label:"Insert link",Icon:Dr}),h(i,{label:"Replace image",Icon:uo}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function r(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Add image",Icon:go}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function i({label:k,Icon:p,..._}){return h("li",{className:"m-0 flex p-0 first:m-0",..._,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(p,{className:"fill-white"})})})}function o(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:h(ho,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return Y("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[h(a,{label:"Primary"}),h(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:fo}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:fc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:pc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:mc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:po}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:xc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:_c}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:vc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:yc}),h(c,{label:"Button",desc:"Add a button to your post",Icon:wc}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:Cc}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:kc}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:Ec}),h(c,{label:"Video",desc:"Upload and play a video",Icon:Nc}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:Tc}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:Sc}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:bc}),h(c,{label:"Header",desc:"Add a bold section header",Icon:Oc}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:Rc}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:Ac}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Mc}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:$c}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:Lc}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:Dc}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:Ic}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:Pc}),h(c,{label:"Other...",desc:"/embed [url]",Icon:Fc}),h(a,{label:"Snippets"}),h(u,{label:"A random snippet",Icon:zc})]})}function a({label:k,...p}){return h("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:k})}function c({label:k,desc:p,Icon:_,...T}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...T,children:[h("div",{className:"flex items-center",children:h(_,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:k}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function u({label:k,Icon:p,..._}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",..._,children:[h("div",{className:"flex items-center",children:h(p,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:k})})]})}function d(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return Y("div",{className:"border-2 border-green",children:[h("div",{className:"rounded bg-grey-50 px-3 py-2",children:h("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),h(v,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[k,p]=te.useState(!1),[_,T]=te.useState(!1),C=()=>{p(!k)},N=O=>{O.stopPropagation(),T(!_)};return k?Y("div",{className:`border border-transparent ${k?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:C,children:[h(f,{desc:"Click to select an image",Icon:Ir}),h(v,{placeholder:"Type caption for image (optional)"}),h("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${_?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:O=>N(O),children:"Alt"})]}):h("div",{className:`border border-transparent ${k?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:C,children:h(f,{desc:"Click to select an image",Icon:Ir})})}function f({desc:k,Icon:p,..._}){return Y("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",..._,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:Y("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:k})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function v({placeholder:k}){return h("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:k})}function E(){return Y("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:Bc}),h(v,{placeholder:"Type caption for gallery (optional)"})]})}};var _o={},Bn={},vo=S.default;let yo=vo.createContext(null);Bn.LexicalComposerContext=yo,Bn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Bn.useLexicalComposerContext=function(){let t=vo.useContext(yo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var fe=Bn,b={};let wo={},Co={},Jt={},Xt={},Fr={},Nt={},zr={},Br={},Qt={},qt={},Je={},Hr={},Kr={},ko={},Eo={},No={},To={},So={},bo={},Hn={},Oo={},Ro={},Ao={},Mo={},$o={},Lo={},Do={},Io={},Po={},Ur={},Wr={},Fo={},zo={},Bo={};function $(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jc=Tt&&"documentMode"in document?document.documentMode:null,Te=Tt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),dt=Tt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=Tt&&"InputEvent"in window&&!jc?"getTargetRanges"in new window.InputEvent("input"):!1,Kn=Tt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Un=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Wn=Kn||Un?"\xA0":"\u200B",Jc=dt?"\xA0":Wn,Xc=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Qc=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,ut={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},qc={directionless:1,unmergeable:2},Ho={center:2,justify:4,left:1,right:3},ed={2:"center",4:"justify",1:"left",3:"right"},td={normal:0,segmented:2,token:1},nd={0:"normal",2:"segmented",1:"token"},Vr=!1,Yr=0;function rd(t){Yr=t.timeStamp}function Gr(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function id(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function Ko(t,e,n){Vr=!0;let r=100<performance.now()-Yr;try{be(t,()=>{let i=Z()||id(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var u=0;u<e.length;u++){var d=e[u],g=d.type,m=d.target,f=en(m,s);if(!ne(f)){if(g==="characterData"){if(d=r&&L(f))e:{d=i,g=m;var v=f;if(B(d)){var E=d.anchor.getNode();if(E.is(v)&&d.format!==E.getFormat()){d=!1;break e}}d=g.nodeType===3&&v.isAttached()}d&&(v=window.getSelection(),g=d=null,v!==null&&v.anchorNode===m&&(d=v.anchorOffset,g=v.focusOffset),m=m.nodeValue,m!==null&&Jr(f,m,d,g,!1))}else if(g==="childList"){for(a=!0,g=d.addedNodes,v=0;v<g.length;v++){E=g[v];var k=jo(E),p=E.parentNode;p==null||k!==null||E.nodeName==="BR"&&Gr(E,p,t)||(dt&&(k=E.innerText||E.nodeValue)&&(c+=k),p.removeChild(E))}if(d=d.removedNodes,g=d.length,0<g){for(v=0,E=0;E<g;E++)p=d[E],p.nodeName==="BR"&&Gr(p,m,t)&&(m.appendChild(p),v++);g!==v&&(m===l&&(f=s._nodeMap.get("root")),o.set(m,f))}}}}if(0<o.size)for(let[_,T]of o)if(R(T))for(o=T.__children,l=_.firstChild,s=0;s<o.length;s++)u=t.getElementByKey(o[s]),u!==null&&(l==null?(_.appendChild(u),l=u):l!==u&&_.replaceChild(u,l),l=l.nextSibling);else L(T)&&T.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(u=o[l],s=u.addedNodes,u=u.target,f=0;f<s.length;f++)m=s[f],d=m.parentNode,d==null||m.nodeName!=="BR"||Gr(m,u,t)||d.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,Ot(i)),dt&&rl(t)&&i.insertRawText(c))})}finally{Vr=!1}}function Uo(t){let e=t._observer;if(e!==null){let n=e.takeRecords();Ko(t,n,e)}}function Wo(t){Yr===0&&Jn(t).addEventListener("textInput",rd,!0),t._observer=new MutationObserver((e,n)=>{Ko(t,e,n)})}let od=1,ld=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Vn(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ne(en(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&Vo(e)===t}catch{return!1}}function Vo(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function jr(t){return t.isToken()||t.isSegmented()}function Yn(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Yo(t,e,n){return e=ut[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function Go(t){return L(t)||mn(t)||ne(t)}function Gn(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&$(31),bt(t),e.splice(n,1)}}function St(t){99<hn&&$(14);var e=t.getLatest(),n=e.__parent,r=ze();let i=le(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,R(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&St(e),t!==null&&St(t)}function pe(t){Se();var e=le();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=j(n),e!==null&&e.getWritable()),t!==null&&(t=j(t),t!==null&&t.getWritable()))}function Xe(){return oe?null:le()._compositionKey}function j(t,e){return t=(e||ze())._nodeMap.get(t),t===void 0?null:t}function jo(t,e){let n=le();return t=t[`__lexicalKey_${n._key}`],t!==void 0?j(t,e):null}function en(t,e){for(;t!=null;){let n=jo(t,e);if(n!==null)return n;t=t.parentNode}return null}function Zo(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function Jo(t){return t.read(()=>Qe().getTextContent())}function sd(t,e){be(t,()=>{var n=ze();if(!n.isEmpty())if(e==="root")Qe().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function Qe(){return ze()._nodeMap.get("root")}function Ot(t){let e=ze();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Rt(t){var e=le(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?j("root"):null):j(n)}function Xo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Zr(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Qo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function qo(t,e){var n=window.getSelection();if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=en(r),L(n))){if(r=r.nodeValue,r===Wn&&e){let l=e.length;r=e,o=i=l}r!==null&&Jr(n,r,i,o,t)}}}function Jr(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===Wn&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(pe(null),Kn||Un)o.remove();else{let s=le();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=gn(),o.isToken()||Xe()!==null&&!l||i!==null&&B(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),B(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=Ne(n),o.replace(n),o=n)),o.setTextContent(t))}}function ad(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||R(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function el(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=window.getSelection();o=o!==null?o.anchorNode:null;let l=n.key,s=le().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||Xo(e))&&n.offset!==r.offset&&!i.isComposing()||jr(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==Yn(s)||i.getFormat()!==t.format||ad(t,i)}function jn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function Xr(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&$(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function tl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function nl(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),tl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?tl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function rl(t){return t=(t=Jn(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Qr(t){return!Be(t)&&!t.isLastChild()&&!t.isInline()}function Zn(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&$(75),t}function cd(t,e=0){if(e!==0&&$(1),e=Z(),!B(e)||!R(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return qr(i,t)&&n.set(t.__key,0,"element"),qr(o,t)&&r.set(t.__key,0,"element"),e}function qr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Jn(t){return t=t._window,t===null&&$(78),t}function qe(t){return Be(t)||R(t)&&t.isShadowRoot()}function il(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(R(a)&&il(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function dd(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(R(n)&&il(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function ol(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function ll(t,e){let n=t.mergeWithSibling(e),r=le()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function sl(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{ol(e,t)&&(t=ll(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{ol(t,n)&&ll(t,n);break}}}function al(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!R(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ge="",ke="",We="",gt,Ee,tn,cl=!1,ei=!1,Xn,Qn=null,ti,ni,nn,At,ri,rn;function qn(t,e){let n=nn.get(t);if(e!==null){let r=li(t);e.removeChild(r)}At.has(t)||Ee._keyToDOMMap.delete(t),R(n)&&(t=n.__children,ii(t,0,t.length-1,null)),n!==void 0&&Xr(rn,tn,Xn,n,"destroyed")}function ii(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&qn(i,r)}}function on(t,e){t.setProperty("text-align",e)}function dl(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function ul(t,e){t=t.style,e===0?on(t,""):e===1?on(t,"left"):e===2?on(t,"center"):e===3?on(t,"right"):e===4&&on(t,"justify")}function er(t,e,n){let r=At.get(t);r===void 0&&$(60);let i=r.createDOM(gt,Ee);var o=Ee._keyToDOMMap;if(i["__lexicalKey_"+Ee._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ne(r)&&i.setAttribute("data-lexical-decorator","true"),R(r)){t=r.__indent,t!==0&&dl(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=ke;ke="",oi(o,0,l,i,null),fl(r,i),ke=s}o=r.__format,o!==0&&ul(i,o),hl(null,t,i),Qr(r)&&(ge+=`
10
+ */var Hc=S.default,Kc=Symbol.for("react.element"),Wc=Symbol.for("react.fragment"),Uc=Object.prototype.hasOwnProperty,Vc=Hc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yc={key:!0,ref:!0,__self:!0,__source:!0};function _o(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)Uc.call(e,r)&&!Yc.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Kc,type:t,key:o,ref:l,props:i,_owner:Vc.current}}zn.Fragment=Wc,zn.jsx=_o,zn.jsxs=_o,function(t){t.exports=zn}(Fn);const Pr=Fn.exports.Fragment,h=Fn.exports.jsx,Y=Fn.exports.jsxs,Gc=()=>{return Y("div",{className:"koenig-lexical",children:[h(t,{label:"Text toolbar"}),h(e,{}),h(t,{label:"Image toolbar"}),h(n,{}),h(t,{label:"Gallery toolbar"}),h(r,{}),h(t,{label:"Plus menu"}),h(l,{}),h(t,{label:"Card menu"}),h(s,{}),h(t,{label:"Divider card"}),h("div",{className:"relative max-w-[740px]",children:h(u,{})}),h(t,{label:"Code block"}),h("div",{className:"relative max-w-[740px]",children:h(g,{})}),h(t,{label:"Image card"}),h("div",{className:"relative max-w-[740px]",children:h(m,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(E,{})})]});function t({label:T}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:T})}function e(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Format text as bold",Icon:ro}),h(i,{label:"Format text as italics",Icon:io}),h(i,{label:"Toggle heading 1",Icon:oo}),h(i,{label:"Toggle heading 2",Icon:lo}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:so}),h(i,{label:"Insert link",Icon:Dr}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function n(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Set image to regular",Icon:ao}),h(i,{label:"Set image to wide",Icon:co}),h(i,{label:"Set image to full",Icon:uo}),h(o,{}),h(i,{label:"Insert link",Icon:Dr}),h(i,{label:"Replace image",Icon:go}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function r(){return h("div",{className:"max-w-fit",children:Y("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Add image",Icon:ho}),h(o,{}),h(i,{label:"Save as snippet",Icon:Pn})]})})}function i({label:T,Icon:p,...v}){return h("li",{className:"m-0 flex p-0 first:m-0",...v,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(p,{className:"fill-white"})})})}function o(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:h(fo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return Y("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[h(a,{label:"Primary"}),h(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:po}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:fc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:pc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:mc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:mo}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:xc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:_c}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:vc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:wc}),h(c,{label:"Button",desc:"Add a button to your post",Icon:yc}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:kc}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:Cc}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:Ec}),h(c,{label:"Video",desc:"Upload and play a video",Icon:Nc}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:Tc}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:Sc}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:bc}),h(c,{label:"Header",desc:"Add a bold section header",Icon:Oc}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:Rc}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:Ac}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:$c}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:Mc}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:Lc}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:Dc}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:Ic}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:Pc}),h(c,{label:"Other...",desc:"/embed [url]",Icon:Fc}),h(a,{label:"Snippets"}),h(d,{label:"A random snippet",Icon:zc})]})}function a({label:T,...p}){return h("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:T})}function c({label:T,desc:p,Icon:v,...y}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...y,children:[h("div",{className:"flex items-center",children:h(v,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:T}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function d({label:T,Icon:p,...v}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...v,children:[h("div",{className:"flex items-center",children:h(p,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:T})})]})}function u(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return Y("div",{className:"border-2 border-green",children:[h("div",{className:"rounded bg-grey-50 px-3 py-2",children:h("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),h(_,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[T,p]=te.useState(!1),[v,y]=te.useState(!1),k=()=>{p(!T)},N=O=>{O.stopPropagation(),y(!v)};return T?Y("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:k,children:[h(f,{desc:"Click to select an image",Icon:Ir}),h(_,{placeholder:"Type caption for image (optional)"}),h("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${v?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:O=>N(O),children:"Alt"})]}):h("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:k,children:h(f,{desc:"Click to select an image",Icon:Ir})})}function f({desc:T,Icon:p,...v}){return Y("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",...v,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:Y("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:T})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function _({placeholder:T}){return h("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:T})}function E(){return Y("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:Bc}),h(_,{placeholder:"Type caption for gallery (optional)"})]})}};var vo={},Bn={},wo=S.default;let yo=wo.createContext(null);Bn.LexicalComposerContext=yo,Bn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Bn.useLexicalComposerContext=function(){let t=wo.useContext(yo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var fe=Bn,b={};let ko={},Co={},Jt={},Xt={},Fr={},Nt={},zr={},Br={},Qt={},qt={},Je={},Hr={},Kr={},Eo={},No={},To={},So={},bo={},Oo={},Hn={},Ro={},Ao={},$o={},Mo={},Lo={},Do={},Io={},Po={},Fo={},Wr={},Ur={},zo={},Bo={},Ho={};function M(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jc=Tt&&"documentMode"in document?document.documentMode:null,Te=Tt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),dt=Tt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=Tt&&"InputEvent"in window&&!jc?"getTargetRanges"in new window.InputEvent("input"):!1,Kn=Tt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wn=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Un=Kn||Wn?"\xA0":"\u200B",Jc=dt?"\xA0":Un,Xc=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Qc=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,ut={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},qc={directionless:1,unmergeable:2},Ko={center:2,justify:4,left:1,right:3},ed={2:"center",4:"justify",1:"left",3:"right"},td={normal:0,segmented:2,token:1},nd={0:"normal",2:"segmented",1:"token"},Vr=!1,Yr=0;function rd(t){Yr=t.timeStamp}function Gr(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function id(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function Wo(t,e,n){Vr=!0;let r=100<performance.now()-Yr;try{be(t,()=>{let i=Z()||id(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var d=0;d<e.length;d++){var u=e[d],g=u.type,m=u.target,f=en(m,s);if(!ne(f)){if(g==="characterData"){if(u=r&&L(f))e:{u=i,g=m;var _=f;if(B(u)){var E=u.anchor.getNode();if(E.is(_)&&u.format!==E.getFormat()){u=!1;break e}}u=g.nodeType===3&&_.isAttached()}u&&(_=window.getSelection(),g=u=null,_!==null&&_.anchorNode===m&&(u=_.anchorOffset,g=_.focusOffset),m=m.nodeValue,m!==null&&Jr(f,m,u,g,!1))}else if(g==="childList"){for(a=!0,g=u.addedNodes,_=0;_<g.length;_++){E=g[_];var T=Zo(E),p=E.parentNode;p==null||T!==null||E.nodeName==="BR"&&Gr(E,p,t)||(dt&&(T=E.innerText||E.nodeValue)&&(c+=T),p.removeChild(E))}if(u=u.removedNodes,g=u.length,0<g){for(_=0,E=0;E<g;E++)p=u[E],p.nodeName==="BR"&&Gr(p,m,t)&&(m.appendChild(p),_++);g!==_&&(m===l&&(f=s._nodeMap.get("root")),o.set(m,f))}}}}if(0<o.size)for(let[v,y]of o)if(R(y))for(o=y.__children,l=v.firstChild,s=0;s<o.length;s++)d=t.getElementByKey(o[s]),d!==null&&(l==null?(v.appendChild(d),l=d):l!==d&&v.replaceChild(d,l),l=l.nextSibling);else L(y)&&y.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(d=o[l],s=d.addedNodes,d=d.target,f=0;f<s.length;f++)m=s[f],u=m.parentNode,u==null||m.nodeName!=="BR"||Gr(m,d,t)||u.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,Ot(i)),dt&&il(t)&&i.insertRawText(c))})}finally{Vr=!1}}function Uo(t){let e=t._observer;if(e!==null){let n=e.takeRecords();Wo(t,n,e)}}function Vo(t){Yr===0&&Jn(t).addEventListener("textInput",rd,!0),t._observer=new MutationObserver((e,n)=>{Wo(t,e,n)})}let od=1,ld=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Vn(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ne(en(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&Yo(e)===t}catch{return!1}}function Yo(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function jr(t){return t.isToken()||t.isSegmented()}function Yn(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Go(t,e,n){return e=ut[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function jo(t){return L(t)||mn(t)||ne(t)}function Gn(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&M(31),bt(t),e.splice(n,1)}}function St(t){99<hn&&M(14);var e=t.getLatest(),n=e.__parent,r=He();let i=le(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,R(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&St(e),t!==null&&St(t)}function pe(t){Se();var e=le();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=j(n),e!==null&&e.getWritable()),t!==null&&(t=j(t),t!==null&&t.getWritable()))}function Xe(){return oe?null:le()._compositionKey}function j(t,e){return t=(e||He())._nodeMap.get(t),t===void 0?null:t}function Zo(t,e){let n=le();return t=t[`__lexicalKey_${n._key}`],t!==void 0?j(t,e):null}function en(t,e){for(;t!=null;){let n=Zo(t,e);if(n!==null)return n;t=t.parentNode}return null}function Jo(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function Xo(t){return t.read(()=>Qe().getTextContent())}function sd(t,e){be(t,()=>{var n=He();if(!n.isEmpty())if(e==="root")Qe().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function Qe(){return He()._nodeMap.get("root")}function Ot(t){let e=He();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Rt(t){var e=le(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?j("root"):null):j(n)}function Qo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Zr(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function qo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function el(t,e){var n=window.getSelection();if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=en(r),L(n))){if(r=r.nodeValue,r===Un&&e){let l=e.length;r=e,o=i=l}r!==null&&Jr(n,r,i,o,t)}}}function Jr(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===Un&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(pe(null),Kn||Wn)o.remove();else{let s=le();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=gn(),o.isToken()||Xe()!==null&&!l||i!==null&&B(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),B(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=Ne(n),o.replace(n),o=n)),o.setTextContent(t))}}function ad(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||R(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function tl(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=window.getSelection();o=o!==null?o.anchorNode:null;let l=n.key,s=le().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||Qo(e))&&n.offset!==r.offset&&!i.isComposing()||jr(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==Yn(s)||i.getFormat()!==t.format||ad(t,i)}function jn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function Xr(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&M(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function nl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function rl(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),nl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?nl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function il(t){return t=(t=Jn(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Qr(t){return!Ke(t)&&!t.isLastChild()&&!t.isInline()}function Zn(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&M(75),t}function cd(t,e=0){if(e!==0&&M(1),e=Z(),!B(e)||!R(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return qr(i,t)&&n.set(t.__key,0,"element"),qr(o,t)&&r.set(t.__key,0,"element"),e}function qr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Jn(t){return t=t._window,t===null&&M(78),t}function qe(t){return Ke(t)||R(t)&&t.isShadowRoot()}function ol(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(R(a)&&ol(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function dd(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(R(n)&&ol(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function ll(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function sl(t,e){let n=t.mergeWithSibling(e),r=le()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function al(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{ll(e,t)&&(t=sl(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{ll(t,n)&&sl(t,n);break}}}function cl(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!R(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ge="",Ce="",Ue="",gt,Ee,tn,dl=!1,ei=!1,Xn,Qn=null,ti,ni,nn,At,ri,rn;function qn(t,e){let n=nn.get(t);if(e!==null){let r=li(t);e.removeChild(r)}At.has(t)||Ee._keyToDOMMap.delete(t),R(n)&&(t=n.__children,ii(t,0,t.length-1,null)),n!==void 0&&Xr(rn,tn,Xn,n,"destroyed")}function ii(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&qn(i,r)}}function on(t,e){t.setProperty("text-align",e)}function ul(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function gl(t,e){t=t.style,e===0?on(t,""):e===1?on(t,"left"):e===2?on(t,"center"):e===3?on(t,"right"):e===4&&on(t,"justify")}function er(t,e,n){let r=At.get(t);r===void 0&&M(60);let i=r.createDOM(gt,Ee);var o=Ee._keyToDOMMap;if(i["__lexicalKey_"+Ee._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ne(r)&&i.setAttribute("data-lexical-decorator","true"),R(r)){t=r.__indent,t!==0&&ul(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=Ce;Ce="",oi(o,0,l,i,null),pl(r,i),Ce=s}o=r.__format,o!==0&&gl(i,o),fl(null,t,i),Qr(r)&&(ge+=`
11
11
 
12
- `,We+=`
12
+ `,Ue+=`
13
13
 
14
- `)}else o=r.getTextContent(),ne(r)?(l=r.decorate(Ee,gt),l!==null&&pl(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(ke+=o)),ge+=o,We+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),Xr(rn,tn,Xn,r,"created"),i}function oi(t,e,n,r,i){let o=ge;for(ge="";e<=n;++e)er(t[e],r,i);r.__lexicalTextContent=ge,ge=o+ge}function gl(t,e){return t=e.get(t[t.length-1]),mn(t)||ne(t)}function hl(t,e,n){t=t!==null&&(t.length===0||gl(t,nn)),e=e!==null&&(e.length===0||gl(e,At)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function fl(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==ke||n!==Qn){let o=ke==="";if(o)var r=Qn;else r=ke,r=Xc.test(r)?"rtl":Qc.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=gt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),ei||(t.getWritable().__dir=r)}Qn=r,e.__lexicalDirTextContent=ke,e.__lexicalDir=r}}function ln(t,e){var n=nn.get(t),r=At.get(t);n!==void 0&&r!==void 0||$(61);var i=cl||ni.has(t)||ti.has(t);let o=Zn(Ee,t);if(n===r&&!i)return R(n)?(r=o.__lexicalTextContent,r!==void 0&&(ge+=r,We+=r),r=o.__lexicalDirTextContent,r!==void 0&&(ke+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(ke+=r),We+=r,ge+=r),o;if(n!==r&&i&&Xr(rn,tn,Xn,r,"updated"),r.updateDOM(n,o,gt))return r=er(t,null,null),e===null&&$(62),e.replaceChild(r,o),qn(t,null),r;if(R(n)&&R(r)){if(t=r.__indent,t!==n.__indent&&dl(o,t),t=r.__format,t!==n.__format&&ul(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=ke,ke="";let m=ge;ge="";var a=l.length,c=s.length;if(a===1&&c===1){var u=l[0];if(s=s[0],u===s)ln(u,o);else{var d=li(u);s=er(s,null,null),o.replaceChild(s,d),qn(u,null)}}else if(a===0)c!==0&&oi(s,0,c-1,o,null);else if(c===0)a!==0&&(u=o.__lexicalLineBreak==null,ii(l,0,a-1,u?null:o),u&&(o.textContent=""));else{let f=a-1;a=c-1;let v=o.firstChild,E=0;for(c=0;E<=f&&c<=a;){var g=l[E];let k=s[c];if(g===k)v=ln(k,o).nextSibling,E++,c++;else{u===void 0&&(u=new Set(l)),d===void 0&&(d=new Set(s));let p=d.has(g),_=u.has(k);p?(_?(g=Zn(Ee,k),g===v?v=ln(k,o).nextSibling:(v!=null?o.insertBefore(g,v):o.appendChild(g),ln(k,o)),E++):er(k,o,v),c++):(v=li(g).nextSibling,qn(g,o),E++)}}u=E>f,d=c>a,u&&!d?(u=s[a+1],u=u===void 0?null:Ee.getElementByKey(u),oi(s,c,a,o,u)):d&&!u&&ii(l,E,f,o)}Qr(i)&&(ge+=`
14
+ `)}else o=r.getTextContent(),ne(r)?(l=r.decorate(Ee,gt),l!==null&&ml(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(Ce+=o)),ge+=o,Ue+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),Xr(rn,tn,Xn,r,"created"),i}function oi(t,e,n,r,i){let o=ge;for(ge="";e<=n;++e)er(t[e],r,i);r.__lexicalTextContent=ge,ge=o+ge}function hl(t,e){return t=e.get(t[t.length-1]),mn(t)||ne(t)}function fl(t,e,n){t=t!==null&&(t.length===0||hl(t,nn)),e=e!==null&&(e.length===0||hl(e,At)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function pl(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Ce||n!==Qn){let o=Ce==="";if(o)var r=Qn;else r=Ce,r=Xc.test(r)?"rtl":Qc.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=gt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),ei||(t.getWritable().__dir=r)}Qn=r,e.__lexicalDirTextContent=Ce,e.__lexicalDir=r}}function ln(t,e){var n=nn.get(t),r=At.get(t);n!==void 0&&r!==void 0||M(61);var i=dl||ni.has(t)||ti.has(t);let o=Zn(Ee,t);if(n===r&&!i)return R(n)?(r=o.__lexicalTextContent,r!==void 0&&(ge+=r,Ue+=r),r=o.__lexicalDirTextContent,r!==void 0&&(Ce+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(Ce+=r),Ue+=r,ge+=r),o;if(n!==r&&i&&Xr(rn,tn,Xn,r,"updated"),r.updateDOM(n,o,gt))return r=er(t,null,null),e===null&&M(62),e.replaceChild(r,o),qn(t,null),r;if(R(n)&&R(r)){if(t=r.__indent,t!==n.__indent&&ul(o,t),t=r.__format,t!==n.__format&&gl(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=Ce,Ce="";let m=ge;ge="";var a=l.length,c=s.length;if(a===1&&c===1){var d=l[0];if(s=s[0],d===s)ln(d,o);else{var u=li(d);s=er(s,null,null),o.replaceChild(s,u),qn(d,null)}}else if(a===0)c!==0&&oi(s,0,c-1,o,null);else if(c===0)a!==0&&(d=o.__lexicalLineBreak==null,ii(l,0,a-1,d?null:o),d&&(o.textContent=""));else{let f=a-1;a=c-1;let _=o.firstChild,E=0;for(c=0;E<=f&&c<=a;){var g=l[E];let T=s[c];if(g===T)_=ln(T,o).nextSibling,E++,c++;else{d===void 0&&(d=new Set(l)),u===void 0&&(u=new Set(s));let p=u.has(g),v=d.has(T);p?(v?(g=Zn(Ee,T),g===_?_=ln(T,o).nextSibling:(_!=null?o.insertBefore(g,_):o.appendChild(g),ln(T,o)),E++):er(T,o,_),c++):(_=li(g).nextSibling,qn(g,o),E++)}}d=E>f,u=c>a,d&&!u?(d=s[a+1],d=d===void 0?null:Ee.getElementByKey(d),oi(s,c,a,o,d)):u&&!d&&ii(l,E,f,o)}Qr(i)&&(ge+=`
15
15
 
16
- `),o.__lexicalTextContent=ge,ge=m+ge,fl(i,o),ke=e,Be(r)||hl(t,n,o)}Qr(r)&&(ge+=`
16
+ `),o.__lexicalTextContent=ge,ge=m+ge,pl(i,o),Ce=e,Ke(r)||fl(t,n,o)}Qr(r)&&(ge+=`
17
17
 
18
- `,We+=`
18
+ `,Ue+=`
19
19
 
20
- `)}else n=r.getTextContent(),ne(r)?(i=r.decorate(Ee,gt),i!==null&&pl(t,i)):L(r)&&!r.isDirectionless()&&(ke+=n),ge+=n,We+=n;return!ei&&Be(r)&&r.__cachedText!==We&&(r=r.getWritable(),r.__cachedText=We),o}function pl(t,e){let n=Ee._pendingDecorators,r=Ee._decorators;if(n===null){if(r[t]===e)return;n=Zo(Ee)}n[t]=e}function li(t){return t=ri.get(t),t===void 0&&$(75),t}let Ve=Object.freeze({}),si=[["keydown",vd],["mousedown",gd],["compositionstart",xd],["compositionend",_d],["input",md],["click",ud],["cut",Ve],["copy",Ve],["dragstart",Ve],["dragover",Ve],["dragend",Ve],["paste",Ve],["focus",Ve],["blur",Ve],["drop",Ve]];Zc&&si.push(["beforeinput",(t,e)=>pd(t,e)]);let sn=0,ml=0,an=0,ai=!1,ci=!1,cn=!1,dn=!1,xl=[0,0,"root",0];function _l(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function vl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;ai&&(ai=!1,_l(r,i)&&_l(o,l))||be(e,()=>{if(!n)Ot(null);else if(Vn(e,r,o)){var s=Z();if(B(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var u=Jn(e).event;u=u?u.timeStamp:performance.now();let[d,g,m,f]=xl;u<f+200&&a.offset===g&&a.key===m?s.format=d:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,u=s.getNodes();let d=u.length;for(let g=0;g<d;g++){let m=u[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}M(e,wo,void 0)}})}function ud(t,e){be(e,()=>{let n=Z(),r=window.getSelection(),i=gn();if(B(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Be(l)&&Qe().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}M(e,Co,t)})}function gd(t,e){let n=t.target;n instanceof Node&&be(e,()=>{ne(en(n))||(ci=!0)})}function hd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function fd(t,e){return t!==e||R(t)||R(e)||!t.isToken()||!e.isToken()}function pd(t,e){let n=t.inputType;n==="deleteCompositionText"||dt&&rl(e)||n!=="insertCompositionText"&&be(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=gn();if(!B(i))return;Ot(i.clone())}if(B(r)){ml===229&&t.timeStamp<sn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(pe(null),sn=0,setTimeout(()=>{be(e,()=>{pe(null)})},30),B(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),M(e,Jt,!0));return}}if(B(r)){i=t.data,r.dirty||!r.isCollapsed()||Be(r.anchor.getNode())||hd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
21
- `?(t.preventDefault(),M(e,Xt,!1)):i===`
20
+ `)}else n=r.getTextContent(),ne(r)?(i=r.decorate(Ee,gt),i!==null&&ml(t,i)):L(r)&&!r.isDirectionless()&&(Ce+=n),ge+=n,Ue+=n;return!ei&&Ke(r)&&r.__cachedText!==Ue&&(r=r.getWritable(),r.__cachedText=Ue),o}function ml(t,e){let n=Ee._pendingDecorators,r=Ee._decorators;if(n===null){if(r[t]===e)return;n=Jo(Ee)}n[t]=e}function li(t){return t=ri.get(t),t===void 0&&M(75),t}let Ve=Object.freeze({}),si=[["keydown",vd],["mousedown",gd],["compositionstart",xd],["compositionend",_d],["input",md],["click",ud],["cut",Ve],["copy",Ve],["dragstart",Ve],["dragover",Ve],["dragend",Ve],["paste",Ve],["focus",Ve],["blur",Ve],["drop",Ve]];Zc&&si.push(["beforeinput",(t,e)=>pd(t,e)]);let sn=0,xl=0,an=0,ai=!1,ci=!1,cn=!1,dn=!1,_l=[0,0,"root",0];function vl(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function wl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;ai&&(ai=!1,vl(r,i)&&vl(o,l))||be(e,()=>{if(!n)Ot(null);else if(Vn(e,r,o)){var s=Z();if(B(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var d=Jn(e).event;d=d?d.timeStamp:performance.now();let[u,g,m,f]=_l;d<f+200&&a.offset===g&&a.key===m?s.format=u:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,d=s.getNodes();let u=d.length;for(let g=0;g<u;g++){let m=d[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}$(e,ko,void 0)}})}function ud(t,e){be(e,()=>{let n=Z(),r=window.getSelection(),i=gn();if(B(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Ke(l)&&Qe().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}$(e,Co,t)})}function gd(t,e){let n=t.target;n instanceof Node&&be(e,()=>{ne(en(n))||(ci=!0)})}function hd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function fd(t,e){return t!==e||R(t)||R(e)||!t.isToken()||!e.isToken()}function pd(t,e){let n=t.inputType;n==="deleteCompositionText"||dt&&il(e)||n!=="insertCompositionText"&&be(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=gn();if(!B(i))return;Ot(i.clone())}if(B(r)){xl===229&&t.timeStamp<sn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(pe(null),sn=0,setTimeout(()=>{be(e,()=>{pe(null)})},30),B(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),$(e,Jt,!0));return}}if(B(r)){i=t.data,r.dirty||!r.isCollapsed()||Ke(r.anchor.getNode())||hd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
21
+ `?(t.preventDefault(),$(e,Xt,!1)):i===`
22
22
 
23
- `?(t.preventDefault(),M(e,Fr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&el(r,i)&&(t.preventDefault(),M(e,Nt,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":M(e,Nt,t);break;case"insertFromComposition":pe(null),M(e,Nt,t);break;case"insertLineBreak":pe(null),M(e,Xt,!1);break;case"insertParagraph":pe(null),cn?(cn=!1,M(e,Xt,!1)):M(e,Fr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":M(e,zr,t);break;case"deleteByComposition":fd(l,o)&&M(e,Br,void 0);break;case"deleteByDrag":case"deleteByCut":M(e,Br,void 0);break;case"deleteContent":M(e,Jt,!1);break;case"deleteWordBackward":M(e,Qt,!0);break;case"deleteWordForward":M(e,Qt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":M(e,qt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":M(e,qt,!1);break;case"formatStrikeThrough":M(e,Je,"strikethrough");break;case"formatBold":M(e,Je,"bold");break;case"formatItalic":M(e,Je,"italic");break;case"formatUnderline":M(e,Je,"underline");break;case"historyUndo":M(e,Hr,void 0);break;case"historyRedo":M(e,Kr,void 0)}}})}function md(t,e){t.stopPropagation(),be(e,()=>{var n=Z(),r=t.data;r!=null&&B(n)&&el(n,r)?(dn&&(di(e,r),dn=!1),M(e,Nt,r),r=r.length,dt&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),Kn||Un||!e.isComposing()||(sn=0,pe(null))):(qo(!1),dn&&(di(e,r||void 0),dn=!1)),Se(),n=le(),Uo(n)})}function xd(t,e){be(e,()=>{let n=Z();if(B(n)&&!e.isComposing()){let r=n.anchor;pe(r.key),(t.timeStamp<sn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&M(e,Nt,Jc)}})}function di(t,e){var n=t._compositionKey;if(pe(null),n!==null&&e!=null){if(e===""){e=j(n),t=Yn(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&Jr(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
- `&&(n=Z(),B(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),M(t,Hn,null);return}}qo(!0,e)}function _d(t,e){dt?dn=!0:be(e,()=>{di(e,t.data)})}function vd(t,e){if(t._lexicalHandled!==!0&&(t._lexicalHandled=!0,sn=t.timeStamp,ml=t.keyCode,!e.isComposing())){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)cn=!0,M(e,Hn,t);else if(n===32)M(e,Oo,t);else if(Te&&i&&n===79)t.preventDefault(),cn=!0,M(e,Xt,!0);else if(n!==13||r){var s=Te?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?M(e,Ro,t):(t.preventDefault(),M(e,Jt,!0)):n===27?M(e,Ao,t):(s=Te?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?M(e,Mo,t):(t.preventDefault(),M(e,Jt,!1)):n===8&&(Te?l:i)?(t.preventDefault(),M(e,Qt,!0)):n===46&&(Te?l:i)?(t.preventDefault(),M(e,Qt,!1)):Te&&o&&n===8?(t.preventDefault(),M(e,qt,!0)):Te&&o&&n===46?(t.preventDefault(),M(e,qt,!1)):n===66&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Je,"bold")):n===85&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Je,"underline")):n===73&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Je,"italic")):n!==9||l||i||o?n===90&&!r&&(Te?o:i)?(t.preventDefault(),M(e,Hr,void 0)):(s=Te?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),M(e,Kr,void 0)):un(e._editorState._selection)&&(s=r?!1:n===67?Te?o:i:!1,s?(t.preventDefault(),M(e,Ur,t)):(s=r?!1:n===88?Te?o:i:!1,s&&(t.preventDefault(),M(e,Wr,t))))):M(e,$o,t))}else cn=!1,M(e,Hn,t);else M(e,bo,t);else M(e,So,t);else M(e,To,t);else M(e,No,t);else M(e,Eo,t);else M(e,ko,t);(i||r||l||o)&&M(e,Bo,t)}}function yl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Mt=new Map;function wl(){let t=window.getSelection();if(t!==null){var e=Vo(t.anchorNode);if(e!==null){ci&&(ci=!1,be(e,()=>{var l=gn(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=$l(l,t,e),Ot(l))}));var n=Zr(e);n=n[n.length-1];var r=n._key,i=Mt.get(r),o=i||n;o!==e&&vl(t,o,!1),vl(t,e,!0),e!==n?Mt.set(r,e):i&&Mt.delete(r)}}}function yd(t,e){an===0&&t.ownerDocument.addEventListener("selectionchange",wl),an++,t.__lexicalEditor=e;let n=yl(t);for(let r=0;r<si.length;r++){let[i,o]=si[r],l=typeof o=="function"?s=>{e.isEditable()&&o(s,e)}:s=>{if(e.isEditable())switch(i){case"cut":return M(e,Wr,s);case"copy":return M(e,Ur,s);case"paste":return M(e,zr,s);case"dragstart":return M(e,Do,s);case"dragover":return M(e,Io,s);case"dragend":return M(e,Po,s);case"focus":return M(e,Fo,s);case"blur":return M(e,zo,s);case"drop":return M(e,Lo,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class Fe{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,R(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return R(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=j(this.key);return e===null&&$(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,oe||(Xe()===o&&pe(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function ui(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!R(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Cl(t,e){if(R(e)){let n=e.getLastDescendant();R(n)||L(n)?ui(t,n):ui(t,e)}else ui(t,e)}function kl(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=Ne(),l=Be(r)?Ft().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function et(t,e,n,r){t.key=e,t.offset=n,t.type=r}class tr{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!un(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=j(r),n!==null&&e.push(n);return oe||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function B(t){return t instanceof $t}class nr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return gi(e)?this.gridKey===e.gridKey&&this.anchor.is(this.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new nr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return rr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){var r=this.focus.getNode();return r=r.select(0,r.getChildrenSize()),al(r.anchor),al(r.focus),r.insertNodes(e,n)}getShape(){var e=j(this.anchor.key);e===null&&$(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=j(this.focus.key);r===null&&$(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=j(this.gridKey);Gl(l)||$(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),Zl(s)||$(24),s=s.getChildren();for(let u=n;u<=i;u++){var a=s[u];for(Vl(a)||$(25),e.add(a),a=a.getChildren();0<a.length;){let d=a.shift();e.add(d),R(d)&&a.unshift(...d.getChildren())}}}return e=Array.from(e),oe||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function gi(t){return t instanceof nr}class $t{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return B(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return R(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),R(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?R(e)&&(0<e.getChildrenSize()||e.excludeFromCopy())?[]:[e]:e.getNodesBetween(i),oe||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){et(this.anchor,e.__key,n,"text"),et(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=rr(this),s="",a=!0;for(let c=0;c<e.length;c++){let u=e[c];if(R(u)&&!u.isInline())a||(s+=`
25
- `),a=!u.isEmpty();else if(a=!1,L(u)){let d=u.getTextContent();u===n?d=u===r?o<l?d.slice(o,l):d.slice(l,o):i?d.slice(o):d.slice(l):u===r&&(d=i?d.slice(0,l):d.slice(0,o)),s+=d}else!ne(u)&&!mn(u)||u===r&&this.isCollapsed()||(s+=u.getTextContent())}return s}applyDOMRange(e){let n=le(),r=n.getEditorState()._selection;if(e=Ol(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;et(this.anchor,i.key,i.offset,i.type),et(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new $t(new Fe(e.key,e.offset,e.type),new Fe(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=Yo(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&ut[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(Ne(o)),i!==r-1&&e.push(pn())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?kl(n,r,o):i||r.type!=="element"||kl(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||$(26),i=n.getTextContent().length;var u=n.getParentOrThrow(),d=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!u.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||jr(g))&&(g=Ne(),g.setFormat(o),u.canInsertTextAfter()?n.insertAfter(g):u.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!u.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||jr(g))&&(g=Ne(),g.setFormat(o),u.canInsertTextBefore()?n.insertBefore(g):u.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)u=Ne(n.getTextContent()),u.setFormat(o),n.replace(u),n=u;else if(!(this.isCollapsed()||e===""||(g=d.getParent(),u.canInsertTextBefore()&&u.canInsertTextAfter()&&(!R(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),bl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=Ne(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=Ne(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...d.getParentKeys()]);var m=R(n)?n:n.getParentOrThrow();if(u=R(d)?d:d.getParentOrThrow(),g=d,!m.is(u)&&u.isInline())do g=u,u=u.getParentOrThrow();while(u.isInline());a.type==="text"&&(c!==0||d.getTextContent()==="")||a.type==="element"&&d.getIndexWithinParent()<c?L(d)&&!d.isToken()&&c!==d.getTextContentSize()?(d.isSegmented()&&(a=Ne(d.getTextContent()),d.replace(a),d=a),d=d.spliceText(0,c,""),o.add(d.__key)):(a=d.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?d.remove():a.remove()):o.add(d.__key),a=u.getChildren(),c=new Set(l),d=m.is(u),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let f=a.length-1;0<=f;f--){let v=a[f];if(v.is(n)||R(v)&&v.isParentOf(n))break;v.isAttached()&&(!c.has(v)||v.is(g)?d||m.insertAfter(v):v.remove())}if(!d)for(a=u,c=null;a!==null;)d=a.getChildren(),u=d.length,(u===0||d[u-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=Ne(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),pe(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),pe(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var u=o-1,d=r[u];if(o=i.type==="text"?i.offset:d.getTextContentSize(),c.is(d))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=d.getFormatFlags(e,s);for(0<o&&(o!==d.getTextContentSize()&&([d]=d.splitText(o)),d.setFormat(g)),a+=1;a<u;a++){let m=r[a];if(!m.isToken()){let f=m.getFormatFlags(e,g);m.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(d.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){this.isCollapsed()||this.removeText();var r=this.anchor,i=r.offset,o=r.getNode(),l=o;r.type==="element"&&(l=r.getNode(),r=l.getChildAtIndex(i-1),l=r===null?l:r),r=[];var s=o.getNextSiblings(),a=qe(o)?null:o.getTopLevelElementOrThrow();if(L(o))if(l=o.getTextContent().length,i===0&&l!==0)l=o.getPreviousSibling(),l=l!==null?l:o.getParentOrThrow(),r.push(o);else if(i===l)l=o;else{if(o.isToken())return!1;[l,o]=o.splitText(i),r.push(o)}o=l,r.push(...s),s=e[0];var c=!1,u=null;for(let f=0;f<e.length;f++){var d=e[f];if(R(d)&&!d.isInline()){if(d.is(s)){if(R(l)&&l.isEmpty()&&l.canReplaceWith(d)){l.replace(d),l=d,c=!0;continue}var g=d.getFirstDescendant();if(Go(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(u=g.getChildren(),c=u.length,R(l))for(var m=0;m<c;m++)l.append(u[m]);else{for(m=c-1;0<=m;m--)l.insertAfter(u[m]);l=l.getParentOrThrow()}if(u=u[c-1],g.remove(),c=!0,g.is(d))continue}}L(l)&&(a===null&&$(27),l=a)}else c&&!ne(d)&&qe(l.getParent())&&$(28);c=!1,R(l)&&!l.isInline()?(u=d,ne(d)&&!d.isInline()?l=l.insertAfter(d):R(d)?(d.canBeEmpty()||!d.isEmpty())&&(qe(l)?(g=l.getChildAtIndex(i),g!==null?g.insertBefore(d):l.append(d),l=d):l=l.insertAfter(d)):(g=l.getFirstChild(),g!==null?g.insertBefore(d):l.append(d),l=d)):!R(d)||R(d)&&d.isInline()||ne(l)&&!l.isInline()?(u=d,l=l.insertAfter(d)):(d=l.getParentOrThrow(),mn(l)&&l.remove(),l=d,f--)}if(n&&(L(o)?o.select():(e=l.getPreviousSibling(),L(e)?e.select():(e=l.getIndexWithinParent(),l.getParentOrThrow().select(e,e)))),R(l)){if(e=L(u)?u:R(u)&&u.isInline()?u.getLastDescendant():l.getLastDescendant(),n||(e===null?l.select():L(e)?e.select():e.selectNext()),r.length!==0)for(n=l,e=r.length-1;0<=e;e--)i=r[e],a=i.getParentOrThrow(),!R(l)||Rl(i)||ne(i)&&!i.isInline()?R(l)||Rl(i)?R(i)&&!i.canInsertAfter(l)?(o=a.constructor.clone(a),R(o)||$(29),o.append(i),l.insertAfter(o)):l.insertAfter(i):(l.insertBefore(i),l=i):(n===l?l.append(i):l.insertBefore(i),l=i),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(l)?l.select():(r=l.getParentOrThrow(),l=l.getIndexWithinParent()+1,r.select(l,l)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),qe(l)){o=Ft(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),R(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(R(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=pn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Be(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return rr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=rr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=nl(i,n);ne(s)&&!s.isIsolated()?l?(l=Ml(),l.add(s.__key),Ot(l)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),R(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element"))):(i=window.getSelection())&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(n=i.getRangeAt(0),this.applyDOMRange(n),this.dirty=!0,l||i.anchorNode===n.startContainer&&i.anchorOffset===n.startOffset||(l=this.focus,n=this.anchor,i=n.key,o=n.offset,s=n.type,et(n,l.key,l.offset,l.type),et(l,i,o,s),this._cachedNodes=null)))}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&R(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())&&(i=i.getNextSibling()||i.getParentOrThrow().getNextSibling(),R(i)&&!i.canExtractContents()))return;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{var o=r.type==="text"?r.getNode():null;if(i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Nl(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Nl(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),Xo(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function un(t){return t instanceof tr}function El(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function rr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[El(e),El(t)]}function Nl(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Tl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=Rt(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Rt(t),o===null)return null;if(R(o)?(t=o.getChildAtIndex(r),(e=R(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ne(o)&&Rt(t)===o?r:r+1,o=o.getParentOrThrow()),R(o))return new Fe(o.__key,r,"element")}}else i=Rt(t);return L(i)?new Fe(i.__key,r,"text"):null}function Sl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&R(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):R(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&R(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&R(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function bl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Sl(t,r,i),Sl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=le(),r.isComposing()&&r._compositionKey!==t.key&&B(n)&&(r=n.anchor,n=n.focus,et(t,r.key,r.offset,r.type),et(e,n.key,n.offset,n.type))}}function Ol(t,e,n,r,i,o){return t===null||n===null||!Vn(i,t,n)||(e=Tl(t,e,B(o)?o.anchor:null),e===null)||(r=Tl(n,r,B(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Rt(t),n=Rt(n),ne(t)&&ne(n)))?null:(bl(e,r,o),[e,r])}function Rl(t){return R(t)&&!t.isInline()}function Al(t,e,n,r,i,o){let l=ze();return t=new $t(new Fe(t,e,i),new Fe(n,r,o),0),t.dirty=!0,l._selection=t}function Ml(){return new tr(new Set)}function wd(t){let e=t.getEditorState()._selection,n=window.getSelection();return un(e)||gi(e)?e.clone():$l(e,n,t)}function $l(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!Vr&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o===void 0);let l;if(!B(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&B(t)&&!Vn(n,i,o))return t.clone()}else return t.clone();if(n=Ol(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new $t(s,a,B(t)?t.format:0)}function Z(){return ze()._selection}function gn(){return le()._editorState._selection}function ir(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),Ll(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),Ll(t)}}function Ll(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())R(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(R(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}R(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function Cd(t,e){if(e=e.getEditorState()._selection,t=t._selection,B(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function or(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):R(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":R(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function Dl(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ye=null,he=null,oe=!1,hi=!1,hn=0;function Se(){oe&&$(13)}function ze(){return ye===null&&$(15),ye}function le(){return he===null&&$(16),he}function Il(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&$(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function kd(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&sl(e)}function Ed(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=Xe(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let u of l)l=t.get(u),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&sl(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Il(e,l,o),n.add(u);if(l=e._dirtyLeaves,s=l.size,0<s){hn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let u of a)a=u[0],c=u[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Il(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,hn++}e._dirtyLeaves=n,e._dirtyElements=r}function fi(t,e){var n=e.get(t.type);if(n===void 0&&$(17),n=n.klass,t.type!==n.getType()&&$(18),n=n.importJSON(t),t=t.children,R(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=fi(t[r],e);n.append(i)}return n}function Pl(t,e){let n=ye,r=oe,i=he;ye=t,oe=!0,he=null;try{return e()}finally{ye=n,oe=r,he=i}}function ht(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=ye,c=oe,u=he,d=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){he=t,ye=e,oe=!1,t._updating=!0;try{var f=t._dirtyType,v=t._dirtyElements,E=t._dirtyLeaves;g.disconnect(),ke=We=ge="",cl=f===2,Qn=null,Ee=t,gt=t._config,tn=t._nodes,Xn=Ee._listeners.mutation,ti=v,ni=E,nn=i._nodeMap,At=e._nodeMap,ei=e._readOnly,ri=new Map(t._keyToDOMMap);var k=new Map;rn=k,ln("root",null),rn=ri=gt=At=nn=ni=ti=tn=Ee=void 0,m=k}catch(ee){if(ee instanceof Error&&t._onError(ee),hi)throw ee;Ul(t,null,n,e),Wo(t),t._dirtyType=2,hi=!0,ht(t),hi=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=d,ye=a,oe=c,he=u}}e._readOnly||(e._readOnly=!0),d=t._dirtyLeaves,g=t._dirtyElements,k=t._normalizedNodes,f=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),E=t._decorators,v=t._pendingDecorators||E;var p=e._nodeMap;for(re in v)p.has(re)||(v===E&&(v=Zo(t)),delete v[re]);if(r=r?null:window.getSelection(),t._editable&&r!==null&&(s||l===null||l.dirty)){he=t,ye=e;try{e:{let ee=r.anchorNode,ce=r.focusNode,Zt=r.anchorOffset,ie=r.focusOffset,de=document.activeElement;if(!f.has("collaboration")||de===n)if(B(l)){var _=l.anchor,T=l.focus,C=_.key,N=T.key,O=Zn(t,C),D=Zn(t,N),A=_.offset,U=T.offset,P=l.format,H=l.isCollapsed();s=O,N=D;var re=!1;if(_.type==="text"&&(s=Yn(O),re=_.getNode().getFormat()!==P),T.type==="text"&&(N=Yn(D)),s!==null&&N!==null){if(H&&(o===null||re||B(o)&&o.format!==P)){var q=performance.now();xl=[P,A,C,q]}if(Zt===A&&ie===U&&ee===s&&ce===N&&(r.type!=="Range"||!H)&&(n===null||de!==null&&n.contains(de)||n.focus({preventScroll:!0}),!Un&&!Kn||_.type!=="element"))break e;try{if(r.setBaseAndExtent(s,A,N,U),l.isCollapsed()&&n!==null&&n===de){let Ce=_.getNode();if(R(Ce)){let ue=Ce.getDescendantByIndex(_.offset);ue!==null&&(Ce=ue)}let Pe=t.getElementByKey(Ce.__key);if(Pe!==null){let ue=Pe.getBoundingClientRect();if(ue.bottom>Jn(t).innerHeight)Pe.scrollIntoView(!1);else if(0>ue.top)Pe.scrollIntoView();else{let Ar=n.getBoundingClientRect();Math.floor(ue.bottom)>Math.floor(Ar.bottom)?Pe.scrollIntoView(!1):Math.floor(ue.top)<Math.floor(Ar.top)&&Pe.scrollIntoView()}f.add("scroll-into-view")}}ai=!0}catch{}}}else o!==null&&Vn(t,ee,ce)&&r.removeAllRanges()}}finally{he=u,ye=a}}if(m!==null)for(n=m,o=Array.from(t._listeners.mutation),l=o.length,a=0;a<l;a++){let[ee,ce]=o[a];u=n.get(ce),u!==void 0&&ee(u,{dirtyLeaves:d,updateTags:f})}if(n=t._pendingDecorators,n!==null&&(t._decorators=n,t._pendingDecorators=null,fn("decorator",t,!0,n)),n=Jo(i),o=Jo(e),n!==o&&fn("textcontent",t,!0,o),fn("update",t,!0,{dirtyElements:g,dirtyLeaves:d,editorState:e,normalizedNodes:k,prevEditorState:i,tags:f}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[ee,ce]=e;zl(t,ee,ce)}}}function fn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function M(t,e,n){if(t._updating===!1||he!==t){let o=!1;return t.update(()=>{o=M(t,e,n)}),o}let r=Zr(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function Fl(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function zl(t,e,n){let r=t._updateTags;var i=!1;if(n!==void 0){var o=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1}o&&t._deferred.push(o),n=t._editorState,o=t._pendingEditorState;let l=!1;(o===null||o._readOnly)&&(o=t._pendingEditorState=new sr(new Map(n._nodeMap)),l=!0);let s=ye,a=oe,c=he,u=t._updating;ye=o,oe=!1,t._updating=!0,he=t;try{l&&!t._headless&&(o._selection=wd(t));let d=t._compositionKey;e(),i=Fl(t,i),Cd(o,t),t._dirtyType!==0&&(i?kd(o,t):Ed(o,t),Fl(t),dd(n,o,t._dirtyLeaves,t._dirtyElements)),d!==t._compositionKey&&(o._flushSync=!0);let g=o._selection;if(B(g)){let m=o._nodeMap,f=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(f)!==void 0||$(19)}else un(g)&&g._nodes.size===0&&(o._selection=null)}catch(d){d instanceof Error&&t._onError(d),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),ht(t);return}finally{ye=s,oe=a,he=c,t._updating=u,hn=0}t._dirtyType!==0||Nd(o,t)?o._flushSync?(o._flushSync=!1,ht(t)):l&&ld(()=>{ht(t)}):(o._flushSync=!1,l&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function be(t,e,n){t._updating?t._updates.push([e,n]):zl(t,e,n)}function pi(t,e,n){Se();var r=t.__key;let i=t.getParent();if(i!==null){var o=cd(t),l=!1;if(B(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(or(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(or(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&$(31),bt(t),s.splice(r,1),t.getWritable().__parent=null,B(o)&&e&&!l&&ir(o,i,r,-1),n||qe(i)||i.canBeEmpty()||!i.isEmpty()||pi(i,e),Be(i)&&i.isEmpty()&&i.selectEnd()}}function Bl(t){return t=j(t),t===null&&$(63),t}class lr{static getType(){$(64)}static clone(){$(65)}constructor(e){if(this.__type=this.constructor.getType(),this.__parent=null,e!=null)this.__key=e;else{Se(),99<hn&&$(14),e=le();var n=ze(),r=""+od++;n._nodeMap.set(r,this),R(this)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,this.__key=r}}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=j(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=Z();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:B(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:j(e)}getParentOrThrow(){let e=this.getParent();return e===null&&$(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(qe(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&$(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:j(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>Bl(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:j(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>Bl(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();R(this)&&n.unshift(this),R(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=R(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&$(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=le()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=j(this.__key);return e===null&&$(69),e}getWritable(){Se();var e=ze(),n=le();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=Z();return l!==null&&(l._cachedNodes=null),n.has(r)?(St(i),i):(l=i.constructor.clone(i),l.__parent=o,R(i)&&R(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,St(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){$(70)}updateDOM(){$(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){$(72)}static importJSON(){$(18)}remove(e){pi(this,!0,e)}replace(e){Se();let n=this.__key;e=e.getWritable(),Gn(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&$(31),i.splice(o,0,l),e.__parent=r.__key,pi(this,!1),bt(e),i=Z(),B(i)&&(r=i.anchor,i=i.focus,r.key===n&&Cl(r,e),i.key===n&&Cl(i,e)),Xe()===n&&pe(l),e}insertAfter(e){Se();var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(Gn(r),B(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&$(31),c.splice(n+1,0,i),bt(r),B(o)&&(ir(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){var n=this.getWritable(),r=e.getWritable();Gn(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&$(31),l.splice(n,0,o),bt(r),r=Z(),B(r)&&ir(r,i,n),e}selectPrevious(e,n){Se();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):R(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Se();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():R(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class Hl extends lr{constructor(e){super(e)}decorate(){$(47)}isIsolated(){return!1}isInline(){return!0}}function ne(t){return t instanceof Hl}class ft extends lr{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return ed[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=j(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=le()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=j(n[i]);L(r)?e.push(r):R(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(R(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(R(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],R(e)&&e.getLastDescendant()||e||null):(e=n[e],R(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:j(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&$(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:j(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();if(e===null)throw Error(`Expected node ${this.__key} to have a last child.`);return e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:j(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),R(o)&&i!==r-1&&!o.isInline()&&(e+=`
23
+ `?(t.preventDefault(),$(e,Fr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&tl(r,i)&&(t.preventDefault(),$(e,Nt,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":$(e,Nt,t);break;case"insertFromComposition":pe(null),$(e,Nt,t);break;case"insertLineBreak":pe(null),$(e,Xt,!1);break;case"insertParagraph":pe(null),cn?(cn=!1,$(e,Xt,!1)):$(e,Fr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":$(e,zr,t);break;case"deleteByComposition":fd(l,o)&&$(e,Br,void 0);break;case"deleteByDrag":case"deleteByCut":$(e,Br,void 0);break;case"deleteContent":$(e,Jt,!1);break;case"deleteWordBackward":$(e,Qt,!0);break;case"deleteWordForward":$(e,Qt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":$(e,qt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":$(e,qt,!1);break;case"formatStrikeThrough":$(e,Je,"strikethrough");break;case"formatBold":$(e,Je,"bold");break;case"formatItalic":$(e,Je,"italic");break;case"formatUnderline":$(e,Je,"underline");break;case"historyUndo":$(e,Hr,void 0);break;case"historyRedo":$(e,Kr,void 0)}}})}function md(t,e){t.stopPropagation(),be(e,()=>{var n=Z(),r=t.data;r!=null&&B(n)&&tl(n,r)?(dn&&(di(e,r),dn=!1),$(e,Nt,r),r=r.length,dt&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),Kn||Wn||!e.isComposing()||(sn=0,pe(null))):(el(!1),dn&&(di(e,r||void 0),dn=!1)),Se(),n=le(),Uo(n)})}function xd(t,e){be(e,()=>{let n=Z();if(B(n)&&!e.isComposing()){let r=n.anchor;pe(r.key),(t.timeStamp<sn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&$(e,Nt,Jc)}})}function di(t,e){var n=t._compositionKey;if(pe(null),n!==null&&e!=null){if(e===""){e=j(n),t=Yn(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&Jr(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
+ `&&(n=Z(),B(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),$(t,Hn,null);return}}el(!0,e)}function _d(t,e){dt?dn=!0:be(e,()=>{di(e,t.data)})}function vd(t,e){if(t._lexicalHandled!==!0&&(t._lexicalHandled=!0,sn=t.timeStamp,xl=t.keyCode,!e.isComposing())){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)cn=!0,$(e,Hn,t);else if(n===32)$(e,Ro,t);else if(Te&&i&&n===79)t.preventDefault(),cn=!0,$(e,Xt,!0);else if(n!==13||r){var s=Te?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?$(e,Ao,t):(t.preventDefault(),$(e,Jt,!0)):n===27?$(e,$o,t):(s=Te?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?$(e,Mo,t):(t.preventDefault(),$(e,Jt,!1)):n===8&&(Te?l:i)?(t.preventDefault(),$(e,Qt,!0)):n===46&&(Te?l:i)?(t.preventDefault(),$(e,Qt,!1)):Te&&o&&n===8?(t.preventDefault(),$(e,qt,!0)):Te&&o&&n===46?(t.preventDefault(),$(e,qt,!1)):n===66&&!l&&(Te?o:i)?(t.preventDefault(),$(e,Je,"bold")):n===85&&!l&&(Te?o:i)?(t.preventDefault(),$(e,Je,"underline")):n===73&&!l&&(Te?o:i)?(t.preventDefault(),$(e,Je,"italic")):n!==9||l||i||o?n===90&&!r&&(Te?o:i)?(t.preventDefault(),$(e,Hr,void 0)):(s=Te?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),$(e,Kr,void 0)):un(e._editorState._selection)&&(s=r?!1:n===67?Te?o:i:!1,s?(t.preventDefault(),$(e,Wr,t)):(s=r?!1:n===88?Te?o:i:!1,s&&(t.preventDefault(),$(e,Ur,t))))):$(e,Lo,t))}else cn=!1,$(e,Hn,t);else $(e,Oo,t);else $(e,bo,t);else $(e,So,t);else $(e,To,t);else $(e,No,t);else $(e,Eo,t);(i||r||l||o)&&$(e,Ho,t)}}function yl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let $t=new Map;function kl(){let t=window.getSelection();if(t!==null){var e=Yo(t.anchorNode);if(e!==null){ci&&(ci=!1,be(e,()=>{var l=gn(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=Ll(l,t,e),Ot(l))}));var n=Zr(e);n=n[n.length-1];var r=n._key,i=$t.get(r),o=i||n;o!==e&&wl(t,o,!1),wl(t,e,!0),e!==n?$t.set(r,e):i&&$t.delete(r)}}}function wd(t,e){an===0&&t.ownerDocument.addEventListener("selectionchange",kl),an++,t.__lexicalEditor=e;let n=yl(t);for(let r=0;r<si.length;r++){let[i,o]=si[r],l=typeof o=="function"?s=>{e.isEditable()&&o(s,e)}:s=>{if(e.isEditable())switch(i){case"cut":return $(e,Ur,s);case"copy":return $(e,Wr,s);case"paste":return $(e,zr,s);case"dragstart":return $(e,Io,s);case"dragover":return $(e,Po,s);case"dragend":return $(e,Fo,s);case"focus":return $(e,zo,s);case"blur":return $(e,Bo,s);case"drop":return $(e,Do,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class Be{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,R(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return R(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=j(this.key);return e===null&&M(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,oe||(Xe()===o&&pe(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function ui(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!R(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Cl(t,e){if(R(e)){let n=e.getLastDescendant();R(n)||L(n)?ui(t,n):ui(t,e)}else ui(t,e)}function El(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=Ne(),l=Ke(r)?Ft().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function et(t,e,n,r){t.key=e,t.offset=n,t.type=r}class tr{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!un(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=j(r),n!==null&&e.push(n);return oe||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function B(t){return t instanceof Mt}class nr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return gi(e)?this.gridKey===e.gridKey&&this.anchor.is(this.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new nr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return rr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){var r=this.focus.getNode();return r=r.select(0,r.getChildrenSize()),cl(r.anchor),cl(r.focus),r.insertNodes(e,n)}getShape(){var e=j(this.anchor.key);e===null&&M(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=j(this.focus.key);r===null&&M(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=j(this.gridKey);jl(l)||M(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),Jl(s)||M(24),s=s.getChildren();for(let d=n;d<=i;d++){var a=s[d];for(Yl(a)||M(25),e.add(a),a=a.getChildren();0<a.length;){let u=a.shift();e.add(u),R(u)&&a.unshift(...u.getChildren())}}}return e=Array.from(e),oe||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function gi(t){return t instanceof nr}class Mt{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return B(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return R(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),R(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?R(e)&&(0<e.getChildrenSize()||e.excludeFromCopy())?[]:[e]:e.getNodesBetween(i),oe||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){et(this.anchor,e.__key,n,"text"),et(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=rr(this),s="",a=!0;for(let c=0;c<e.length;c++){let d=e[c];if(R(d)&&!d.isInline())a||(s+=`
25
+ `),a=!d.isEmpty();else if(a=!1,L(d)){let u=d.getTextContent();d===n?u=d===r?o<l?u.slice(o,l):u.slice(l,o):i?u.slice(o):u.slice(l):d===r&&(u=i?u.slice(0,l):u.slice(0,o)),s+=u}else!ne(d)&&!mn(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let n=le(),r=n.getEditorState()._selection;if(e=Rl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;et(this.anchor,i.key,i.offset,i.type),et(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new Mt(new Be(e.key,e.offset,e.type),new Be(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=Go(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&ut[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(Ne(o)),i!==r-1&&e.push(pn())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?El(n,r,o):i||r.type!=="element"||El(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||M(26),i=n.getTextContent().length;var d=n.getParentOrThrow(),u=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||jr(g))&&(g=Ne(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||jr(g))&&(g=Ne(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)d=Ne(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=u.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!R(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Ol(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=Ne(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=Ne(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...u.getParentKeys()]);var m=R(n)?n:n.getParentOrThrow();if(d=R(u)?u:u.getParentOrThrow(),g=u,!m.is(d)&&d.isInline())do g=d,d=d.getParentOrThrow();while(d.isInline());a.type==="text"&&(c!==0||u.getTextContent()==="")||a.type==="element"&&u.getIndexWithinParent()<c?L(u)&&!u.isToken()&&c!==u.getTextContentSize()?(u.isSegmented()&&(a=Ne(u.getTextContent()),u.replace(a),u=a),u=u.spliceText(0,c,""),o.add(u.__key)):(a=u.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?u.remove():a.remove()):o.add(u.__key),a=d.getChildren(),c=new Set(l),u=m.is(d),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let f=a.length-1;0<=f;f--){let _=a[f];if(_.is(n)||R(_)&&_.isParentOf(n))break;_.isAttached()&&(!c.has(_)||_.is(g)?u||m.insertAfter(_):_.remove())}if(!u)for(a=d,c=null;a!==null;)u=a.getChildren(),d=u.length,(d===0||u[d-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=Ne(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),pe(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),pe(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var d=o-1,u=r[d];if(o=i.type==="text"?i.offset:u.getTextContentSize(),c.is(u))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=u.getFormatFlags(e,s);for(0<o&&(o!==u.getTextContentSize()&&([u]=u.splitText(o)),u.setFormat(g)),a+=1;a<d;a++){let m=r[a];if(!m.isToken()){let f=m.getFormatFlags(e,g);m.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(u.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){this.isCollapsed()||this.removeText();var r=this.anchor,i=r.offset,o=r.getNode(),l=o;r.type==="element"&&(l=r.getNode(),r=l.getChildAtIndex(i-1),l=r===null?l:r),r=[];var s=o.getNextSiblings(),a=qe(o)?null:o.getTopLevelElementOrThrow();if(L(o))if(l=o.getTextContent().length,i===0&&l!==0)l=o.getPreviousSibling(),l=l!==null?l:o.getParentOrThrow(),r.push(o);else if(i===l)l=o;else{if(o.isToken())return!1;[l,o]=o.splitText(i),r.push(o)}o=l,r.push(...s),s=e[0];var c=!1,d=null;for(let f=0;f<e.length;f++){var u=e[f];if(R(u)&&!u.isInline()){if(u.is(s)){if(R(l)&&l.isEmpty()&&l.canReplaceWith(u)){l.replace(u),l=u,c=!0;continue}var g=u.getFirstDescendant();if(jo(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(d=g.getChildren(),c=d.length,R(l))for(var m=0;m<c;m++)l.append(d[m]);else{for(m=c-1;0<=m;m--)l.insertAfter(d[m]);l=l.getParentOrThrow()}if(d=d[c-1],g.remove(),c=!0,g.is(u))continue}}L(l)&&(a===null&&M(27),l=a)}else c&&!ne(u)&&qe(l.getParent())&&M(28);c=!1,R(l)&&!l.isInline()?(d=u,ne(u)&&!u.isInline()?l=l.insertAfter(u):R(u)?(u.canBeEmpty()||!u.isEmpty())&&(qe(l)?(g=l.getChildAtIndex(i),g!==null?g.insertBefore(u):l.append(u),l=u):l=l.insertAfter(u)):(g=l.getFirstChild(),g!==null?g.insertBefore(u):l.append(u),l=u)):!R(u)||R(u)&&u.isInline()||ne(l)&&!l.isInline()?(d=u,l=l.insertAfter(u)):(u=l.getParentOrThrow(),mn(l)&&l.remove(),l=u,f--)}if(n&&(L(o)?o.select():(e=l.getPreviousSibling(),L(e)?e.select():(e=l.getIndexWithinParent(),l.getParentOrThrow().select(e,e)))),R(l)){if(e=L(d)?d:R(d)&&d.isInline()?d.getLastDescendant():l.getLastDescendant(),n||(e===null?l.select():L(e)?e.select():e.selectNext()),r.length!==0)for(n=l,e=r.length-1;0<=e;e--)i=r[e],a=i.getParentOrThrow(),!R(l)||Al(i)||ne(i)&&!i.isInline()?R(l)||Al(i)?R(i)&&!i.canInsertAfter(l)?(o=a.constructor.clone(a),R(o)||M(29),o.append(i),l.insertAfter(o)):l.insertAfter(i):(l.insertBefore(i),l=i):(n===l?l.append(i):l.insertBefore(i),l=i),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(l)?l.select():(r=l.getParentOrThrow(),l=l.getIndexWithinParent()+1,r.select(l,l)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),qe(l)){o=Ft(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),R(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(R(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=pn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Ke(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return rr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=rr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=rl(i,n);ne(s)&&!s.isIsolated()?l?(l=Ml(),l.add(s.__key),Ot(l)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),R(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element"))):(i=window.getSelection())&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(n=i.getRangeAt(0),this.applyDOMRange(n),this.dirty=!0,l||i.anchorNode===n.startContainer&&i.anchorOffset===n.startOffset||(l=this.focus,n=this.anchor,i=n.key,o=n.offset,s=n.type,et(n,l.key,l.offset,l.type),et(l,i,o,s),this._cachedNodes=null)))}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&R(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())&&(i=i.getNextSibling()||i.getParentOrThrow().getNextSibling(),R(i)&&!i.canExtractContents()))return;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{var o=r.type==="text"?r.getNode():null;if(i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Tl(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Tl(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),Qo(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function un(t){return t instanceof tr}function Nl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function rr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[Nl(e),Nl(t)]}function Tl(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Sl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=Rt(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Rt(t),o===null)return null;if(R(o)?(t=o.getChildAtIndex(r),(e=R(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ne(o)&&Rt(t)===o?r:r+1,o=o.getParentOrThrow()),R(o))return new Be(o.__key,r,"element")}}else i=Rt(t);return L(i)?new Be(i.__key,r,"text"):null}function bl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&R(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):R(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&R(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&R(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function Ol(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);bl(t,r,i),bl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=le(),r.isComposing()&&r._compositionKey!==t.key&&B(n)&&(r=n.anchor,n=n.focus,et(t,r.key,r.offset,r.type),et(e,n.key,n.offset,n.type))}}function Rl(t,e,n,r,i,o){return t===null||n===null||!Vn(i,t,n)||(e=Sl(t,e,B(o)?o.anchor:null),e===null)||(r=Sl(n,r,B(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Rt(t),n=Rt(n),ne(t)&&ne(n)))?null:(Ol(e,r,o),[e,r])}function Al(t){return R(t)&&!t.isInline()}function $l(t,e,n,r,i,o){let l=He();return t=new Mt(new Be(t,e,i),new Be(n,r,o),0),t.dirty=!0,l._selection=t}function Ml(){return new tr(new Set)}function yd(t){let e=t.getEditorState()._selection,n=window.getSelection();return un(e)||gi(e)?e.clone():Ll(e,n,t)}function Ll(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!Vr&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o===void 0);let l;if(!B(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&B(t)&&!Vn(n,i,o))return t.clone()}else return t.clone();if(n=Rl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new Mt(s,a,B(t)?t.format:0)}function Z(){return He()._selection}function gn(){return le()._editorState._selection}function ir(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),Dl(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),Dl(t)}}function Dl(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())R(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(R(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}R(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function kd(t,e){if(e=e.getEditorState()._selection,t=t._selection,B(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function or(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):R(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":R(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function Il(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let we=null,he=null,oe=!1,hi=!1,hn=0;function Se(){oe&&M(13)}function He(){return we===null&&M(15),we}function le(){return he===null&&M(16),he}function Pl(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&M(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function Cd(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&al(e)}function Ed(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=Xe(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let d of l)l=t.get(d),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&al(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Pl(e,l,o),n.add(d);if(l=e._dirtyLeaves,s=l.size,0<s){hn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let d of a)a=d[0],c=d[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Pl(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,hn++}e._dirtyLeaves=n,e._dirtyElements=r}function fi(t,e){var n=e.get(t.type);if(n===void 0&&M(17),n=n.klass,t.type!==n.getType()&&M(18),n=n.importJSON(t),t=t.children,R(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=fi(t[r],e);n.append(i)}return n}function Fl(t,e){let n=we,r=oe,i=he;we=t,oe=!0,he=null;try{return e()}finally{we=n,oe=r,he=i}}function ht(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=we,c=oe,d=he,u=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){he=t,we=e,oe=!1,t._updating=!0;try{var f=t._dirtyType,_=t._dirtyElements,E=t._dirtyLeaves;g.disconnect(),Ce=Ue=ge="",dl=f===2,Qn=null,Ee=t,gt=t._config,tn=t._nodes,Xn=Ee._listeners.mutation,ti=_,ni=E,nn=i._nodeMap,At=e._nodeMap,ei=e._readOnly,ri=new Map(t._keyToDOMMap);var T=new Map;rn=T,ln("root",null),rn=ri=gt=At=nn=ni=ti=tn=Ee=void 0,m=T}catch(ee){if(ee instanceof Error&&t._onError(ee),hi)throw ee;Ul(t,null,n,e),Vo(t),t._dirtyType=2,hi=!0,ht(t),hi=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=u,we=a,oe=c,he=d}}e._readOnly||(e._readOnly=!0),u=t._dirtyLeaves,g=t._dirtyElements,T=t._normalizedNodes,f=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),E=t._decorators,_=t._pendingDecorators||E;var p=e._nodeMap;for(re in _)p.has(re)||(_===E&&(_=Jo(t)),delete _[re]);if(r=r?null:window.getSelection(),t._editable&&r!==null&&(s||l===null||l.dirty)){he=t,we=e;try{e:{let ee=r.anchorNode,ce=r.focusNode,Zt=r.anchorOffset,ie=r.focusOffset,de=document.activeElement;if(!f.has("collaboration")||de===n)if(B(l)){var v=l.anchor,y=l.focus,k=v.key,N=y.key,O=Zn(t,k),D=Zn(t,N),A=v.offset,W=y.offset,P=l.format,H=l.isCollapsed();s=O,N=D;var re=!1;if(v.type==="text"&&(s=Yn(O),re=v.getNode().getFormat()!==P),y.type==="text"&&(N=Yn(D)),s!==null&&N!==null){if(H&&(o===null||re||B(o)&&o.format!==P)){var q=performance.now();_l=[P,A,k,q]}if(Zt===A&&ie===W&&ee===s&&ce===N&&(r.type!=="Range"||!H)&&(n===null||de!==null&&n.contains(de)||n.focus({preventScroll:!0}),!Wn&&!Kn||v.type!=="element"))break e;try{if(r.setBaseAndExtent(s,A,N,W),l.isCollapsed()&&n!==null&&n===de){let ke=v.getNode();if(R(ke)){let ue=ke.getDescendantByIndex(v.offset);ue!==null&&(ke=ue)}let Fe=t.getElementByKey(ke.__key);if(Fe!==null){let ue=Fe.getBoundingClientRect();if(ue.bottom>Jn(t).innerHeight)Fe.scrollIntoView(!1);else if(0>ue.top)Fe.scrollIntoView();else{let Ar=n.getBoundingClientRect();Math.floor(ue.bottom)>Math.floor(Ar.bottom)?Fe.scrollIntoView(!1):Math.floor(ue.top)<Math.floor(Ar.top)&&Fe.scrollIntoView()}f.add("scroll-into-view")}}ai=!0}catch{}}}else o!==null&&Vn(t,ee,ce)&&r.removeAllRanges()}}finally{he=d,we=a}}if(m!==null)for(n=m,o=Array.from(t._listeners.mutation),l=o.length,a=0;a<l;a++){let[ee,ce]=o[a];d=n.get(ce),d!==void 0&&ee(d,{dirtyLeaves:u,updateTags:f})}if(n=t._pendingDecorators,n!==null&&(t._decorators=n,t._pendingDecorators=null,fn("decorator",t,!0,n)),n=Xo(i),o=Xo(e),n!==o&&fn("textcontent",t,!0,o),fn("update",t,!0,{dirtyElements:g,dirtyLeaves:u,editorState:e,normalizedNodes:T,prevEditorState:i,tags:f}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[ee,ce]=e;Bl(t,ee,ce)}}}function fn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function $(t,e,n){if(t._updating===!1||he!==t){let o=!1;return t.update(()=>{o=$(t,e,n)}),o}let r=Zr(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function zl(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function Bl(t,e,n){let r=t._updateTags;var i=!1;if(n!==void 0){var o=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1}o&&t._deferred.push(o),n=t._editorState,o=t._pendingEditorState;let l=!1;(o===null||o._readOnly)&&(o=t._pendingEditorState=new sr(new Map(n._nodeMap)),l=!0);let s=we,a=oe,c=he,d=t._updating;we=o,oe=!1,t._updating=!0,he=t;try{l&&!t._headless&&(o._selection=yd(t));let u=t._compositionKey;e(),i=zl(t,i),kd(o,t),t._dirtyType!==0&&(i?Cd(o,t):Ed(o,t),zl(t),dd(n,o,t._dirtyLeaves,t._dirtyElements)),u!==t._compositionKey&&(o._flushSync=!0);let g=o._selection;if(B(g)){let m=o._nodeMap,f=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(f)!==void 0||M(19)}else un(g)&&g._nodes.size===0&&(o._selection=null)}catch(u){u instanceof Error&&t._onError(u),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),ht(t);return}finally{we=s,oe=a,he=c,t._updating=d,hn=0}t._dirtyType!==0||Nd(o,t)?o._flushSync?(o._flushSync=!1,ht(t)):l&&ld(()=>{ht(t)}):(o._flushSync=!1,l&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function be(t,e,n){t._updating?t._updates.push([e,n]):Bl(t,e,n)}function pi(t,e,n){Se();var r=t.__key;let i=t.getParent();if(i!==null){var o=cd(t),l=!1;if(B(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(or(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(or(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&M(31),bt(t),s.splice(r,1),t.getWritable().__parent=null,B(o)&&e&&!l&&ir(o,i,r,-1),n||qe(i)||i.canBeEmpty()||!i.isEmpty()||pi(i,e),Ke(i)&&i.isEmpty()&&i.selectEnd()}}function Hl(t){return t=j(t),t===null&&M(63),t}class lr{static getType(){M(64)}static clone(){M(65)}constructor(e){if(this.__type=this.constructor.getType(),this.__parent=null,e!=null)this.__key=e;else{Se(),99<hn&&M(14),e=le();var n=He(),r=""+od++;n._nodeMap.set(r,this),R(this)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,this.__key=r}}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=j(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=Z();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:B(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:j(e)}getParentOrThrow(){let e=this.getParent();return e===null&&M(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(qe(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&M(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:j(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>Hl(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:j(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>Hl(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();R(this)&&n.unshift(this),R(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=R(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&M(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=le()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=j(this.__key);return e===null&&M(69),e}getWritable(){Se();var e=He(),n=le();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=Z();return l!==null&&(l._cachedNodes=null),n.has(r)?(St(i),i):(l=i.constructor.clone(i),l.__parent=o,R(i)&&R(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,St(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){M(70)}updateDOM(){M(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){M(72)}static importJSON(){M(18)}remove(e){pi(this,!0,e)}replace(e){Se();let n=this.__key;e=e.getWritable(),Gn(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&M(31),i.splice(o,0,l),e.__parent=r.__key,pi(this,!1),bt(e),i=Z(),B(i)&&(r=i.anchor,i=i.focus,r.key===n&&Cl(r,e),i.key===n&&Cl(i,e)),Xe()===n&&pe(l),e}insertAfter(e){Se();var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(Gn(r),B(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&M(31),c.splice(n+1,0,i),bt(r),B(o)&&(ir(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){var n=this.getWritable(),r=e.getWritable();Gn(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&M(31),l.splice(n,0,o),bt(r),r=Z(),B(r)&&ir(r,i,n),e}selectPrevious(e,n){Se();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):R(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Se();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():R(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class Kl extends lr{constructor(e){super(e)}decorate(){M(47)}isIsolated(){return!1}isInline(){return!0}}function ne(t){return t instanceof Kl}class ft extends lr{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return ed[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=j(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=le()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=j(n[i]);L(r)?e.push(r):R(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(R(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(R(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],R(e)&&e.getLastDescendant()||e||null):(e=n[e],R(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:j(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&M(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:j(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();if(e===null)throw Error(`Expected node ${this.__key} to have a last child.`);return e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:j(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),R(o)&&i!==r-1&&!o.isInline()&&(e+=`
26
26
 
27
- `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=Ho[e],(this.getFormat()&e)!==0):!1}select(e,n){Se();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,B(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return Al(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return R(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return R(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?Ho[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let u=r[c],d=u.getWritable();u.__key===o&&$(76),Gn(d),d.__parent=o,a.push(d.__key)}if((r=this.getChildAtIndex(e-1))&&St(r),(o=this.getChildAtIndex(e+n))&&St(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),B(n))){let c=new Set(e),u=new Set(a);a=m=>{for(m=m.getNode();m;){const f=m.__key;if(c.has(f)&&!u.has(f))return!0;m=m.getParent()}return!1};let{anchor:d,focus:g}=n;for(a(d)&&or(d,d.getNode(),this,r,o),a(g)&&or(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=j(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||qe(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function R(t){return t instanceof ft}class Lt extends ft{static getType(){return"root"}static clone(){return new Lt}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$(51)}getTextContent(){let e=this.__cachedText;return!oe&&le()._dirtyType!==0||e===null?super.getTextContent():e}remove(){$(52)}replace(){$(53)}insertBefore(){$(54)}insertAfter(){$(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];R(r)||ne(r)||$(56)}return super.append(...e)}static importJSON(e){let n=Qe();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}}function Be(t){return t instanceof Lt}function Nd(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function mi(){return new sr(new Map([["root",new Lt]]))}function Kl(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&$(58);let n=e.children;if(R(t)){Array.isArray(n)||$(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=Kl(t[r]);n.push(i)}}return e}class sr{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return Pl(this,e)}clone(e){return e=new sr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return Pl(this,()=>({root:Kl(Qe())}))}}class Dt extends lr{static getType(){return"linebreak"}static clone(e){return new Dt(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:Td,priority:0}}}}static importJSON(){return pn()}exportJSON(){return{type:"linebreak",version:1}}}function Td(){return{node:pn()}}function pn(){return new Dt}function mn(t){return t instanceof Dt}function xi(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function _i(t,e){return e&1?"strong":e&2?"em":"span"}function vi(t,e,n,r,i){t=r.classList,r=jn(i,"base"),r!==void 0&&t.add(...r),r=jn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in ut)s=ut[a],r=jn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function yi(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?Wn:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||dt){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class It extends lr{static getType(){return"text"}static clone(e){return new It(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return nd[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Xe()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=ut[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return Yo(r,e,n)}createDOM(e){var n=this.__format,r=xi(this,n);let i=_i(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,yi(this.__text,r,this),e=e.theme.text,e!==void 0&&vi(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=xi(this,o);let a=xi(this,l);var c=_i(this,o);let u=_i(this,l);return(s===null?c:s)!==(a===null?u:a)?!0:s===a&&c!==u?(o=n.firstChild,o==null&&$(48),e=s=document.createElement(u),yi(i,e,this),r=r.theme.text,r!==void 0&&vi(u,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&$(49)),yi(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&vi(u,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:Od,priority:0}),b:()=>({conversion:bd,priority:0}),code:()=>({conversion:xn,priority:0}),em:()=>({conversion:xn,priority:0}),i:()=>({conversion:xn,priority:0}),span:()=>({conversion:Sd,priority:0}),strong:()=>({conversion:xn,priority:0}),u:()=>({conversion:xn,priority:0})}}static importJSON(e){let n=Ne(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?ut[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?qc[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=ut[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=td[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Se();let r=Z();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,B(r))i=Xe(),i!==r.anchor.key&&i!==r.focus.key||pe(o),r.setTextNodeRange(this,e,this,n);else return Al(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=Z();return i&&B(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Se();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=Xe(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var u=e[0];r=n.getParentOrThrow(),c=r.__key;let d=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=Ne(u),a.__parent=c,a.__format=d,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=u),n=Z(),a=[a],u=u.length;for(let E=1;E<l;E++){var f=e[E],v=f.length;f=Ne(f).getWritable(),f.__format=d,f.__style=g,f.__detail=m;let k=f.__key;if(v=u+v,B(n)){let p=n.anchor,_=n.focus;p.key===i&&p.type==="text"&&p.offset>u&&p.offset<=v&&(p.key=k,p.offset-=u,n.dirty=!0),_.key===i&&_.type==="text"&&_.offset>u&&_.offset<=v&&(_.key=k,_.offset-=u,n.dirty=!0)}o===i&&pe(k),u=v,f.__parent=c,a.push(f)}return bt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(E=>E.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),B(n)&&ir(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||$(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;Xe()===i&&pe(r);let s=Z();if(B(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(Dl(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(Dl(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function Sd(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function bd(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function Od(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:Ne(t)}}let Rd={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function xn(t){let e=Rd[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function Ne(t=""){return new It(t)}function L(t){return t instanceof It}class Pt extends ft{static getType(){return"paragraph"}static clone(e){return new Pt(e.__key)}createDOM(e){let n=document.createElement("p");return e=jn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Ad,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Ft();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=Ft(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Ad(){return{node:Ft()}}function Ft(){return new Pt}function Ul(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=mi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function Md(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class $d{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Qo(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&$(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&$(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&$(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&$(37);let i=r.transforms;return i.add(n),sd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return M(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Ul(this,n,e,r),n!==null&&!this._config.disableEvents){if(an!==0&&(an--,an===0&&n.ownerDocument.removeEventListener("selectionchange",wl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=Zr(r);i=i[i.length-1]._key,Mt.get(i)===r&&Mt.delete(i)}else Mt.delete(r._key);n.__lexicalEditor=null}for(r=yl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,Wo(this),this._updateTags.add("history-merge"),ht(this),this._config.disableEvents||yd(e,this)):this._window=null,fn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&$(38),Uo(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),ht(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),ht(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=mi(),i=ye,o=oe,l=he,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ye=r,oe=!1,he=this;try{fi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=u,ye=i,oe=o,he=l}return r}update(e,n){be(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),be(this,()=>{let i=Z(),o=Qe();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=window.getSelection(),e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,fn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class Wl extends ft{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function Vl(t){return t instanceof Wl}class Yl extends ft{}function Gl(t){return t instanceof Yl}class jl extends ft{}function Zl(t){return t instanceof jl}b.$addUpdateTag=function(t){Se(),le()._updateTags.add(t)},b.$createLineBreakNode=pn,b.$createNodeSelection=Ml,b.$createParagraphNode=Ft,b.$createRangeSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new $t(t,e,0)},b.$createTextNode=Ne,b.$getDecoratorNode=nl,b.$getNearestNodeFromDOMNode=en,b.$getNodeByKey=j,b.$getPreviousSelection=gn,b.$getRoot=Qe,b.$getSelection=Z,b.$hasAncestor=qr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=Qe().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ne,b.$isElementNode=R,b.$isInlineElementOrDecoratorNode=function(t){return R(t)&&t.isInline()||ne(t)&&t.isInline()},b.$isLeafNode=Go,b.$isLineBreakNode=mn,b.$isNodeSelection=un,b.$isParagraphNode=function(t){return t instanceof Pt},b.$isRangeSelection=B,b.$isRootNode=Be,b.$isRootOrShadowRoot=qe,b.$isTextNode=L,b.$nodesOfType=function(t){var e=ze();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$parseSerializedNode=function(t){return fi(t,le()._nodes)},b.$setCompositionKey=pe,b.$setSelection=Ot,b.BLUR_COMMAND=zo,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=Co,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=Nt,b.COPY_COMMAND=Ur,b.CUT_COMMAND=Wr,b.DELETE_CHARACTER_COMMAND=Jt,b.DELETE_LINE_COMMAND=qt,b.DELETE_WORD_COMMAND=Qt,b.DEPRECATED_$createGridSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new nr("root",t,e)},b.DEPRECATED_$isGridCellNode=Vl,b.DEPRECATED_$isGridNode=Gl,b.DEPRECATED_$isGridRowNode=Zl,b.DEPRECATED_$isGridSelection=gi,b.DEPRECATED_GridCellNode=Wl,b.DEPRECATED_GridNode=Yl,b.DEPRECATED_GridRowNode=jl,b.DRAGEND_COMMAND=Po,b.DRAGOVER_COMMAND=Io,b.DRAGSTART_COMMAND=Do,b.DROP_COMMAND=Lo,b.DecoratorNode=Hl,b.ElementNode=ft,b.FOCUS_COMMAND=Fo,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=Je,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=Xt,b.INSERT_PARAGRAPH_COMMAND=Fr,b.KEY_ARROW_DOWN_COMMAND=bo,b.KEY_ARROW_LEFT_COMMAND=No,b.KEY_ARROW_RIGHT_COMMAND=ko,b.KEY_ARROW_UP_COMMAND=So,b.KEY_BACKSPACE_COMMAND=Ro,b.KEY_DELETE_COMMAND=Mo,b.KEY_ENTER_COMMAND=Hn,b.KEY_ESCAPE_COMMAND=Ao,b.KEY_MODIFIER_COMMAND=Bo,b.KEY_SPACE_COMMAND=Oo,b.KEY_TAB_COMMAND=$o,b.LineBreakNode=Dt,b.MOVE_TO_END=Eo,b.MOVE_TO_START=To,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=zr,b.ParagraphNode=Pt,b.REDO_COMMAND=Kr,b.REMOVE_TEXT_COMMAND=Br,b.RootNode=Lt,b.SELECTION_CHANGE_COMMAND=wo,b.TextNode=It,b.UNDO_COMMAND=Hr,b.VERSION="0.4.1",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=he,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=mi(),s=e.namespace||(i!==null?i._config.namespace:Qo()),a=e.editorState,c=[Lt,It,Dt,Pt,...e.nodes||[]],u=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let d=c[n],g=d.getType();t.set(g,{klass:d,transforms:new Set})}return r=new $d(l,i,t,{disableEvents:o,namespace:s,theme:r},u||console.error,Md(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var y=b,Jl=fe,_n=y,ar=S.default,Ld=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ar.useLayoutEffect:ar.useEffect;let cr={tag:"history-merge"};function Dd(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=_n.$getRoot();if(n.isEmpty()){let r=_n.$createParagraphNode();n.append(r),n=document.activeElement,(_n.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},cr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,cr);break;case"object":t.setEditorState(e,cr);break;case"function":t.update(()=>{_n.$getRoot().isEmpty()&&e(t)},cr)}}}_o.LexicalComposer=function({initialConfig:t,children:e}){let n=ar.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=Jl.createLexicalComposerContext(null,r);let u=o||null;if(u===null){const d=_n.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,d),theme:r});Dd(d,a),u=d}return[u,c]},[]);return Ld(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),ar.createElement(Jl.LexicalComposerContext.Provider,{value:n},e)};var Id=_o,me={},Oe={},we=y;function Xl(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ql(t,e){for(;t!==we.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function ql(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&Xl(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=we.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=es(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,we.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=ql(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else we.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function Pd(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{ql(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function es(t,e){return e=typeof e=="string"?JSON.parse(e):e,Pd(e,t)}Oe.$dfs=function(t,e){let n=[];t=(t||we.$getRoot()).getLatest(),e=e||(we.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),we.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},Oe.$findMatchingParent=Ql,Oe.$getNearestBlockElementAncestorOrThrow=function(t){return t=Ql(t,e=>we.$isElementNode(e)&&!e.isInline()),we.$isElementNode(t)||Xl(4),t},Oe.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},Oe.$insertNodeToNearestRoot=function(t){var e=we.$getSelection();return we.$isRangeSelection(e)?e.focus.getNode().getTopLevelElementOrThrow().insertAfter(t):we.$isNodeSelection(e)||we.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):we.$getRoot().append(t),e=we.$createParagraphNode(),t.insertAfter(e),e.select(),t.getLatest()},Oe.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,we.$setSelection(t===null?null:t.clone())},Oe.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},Oe.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.add(...n.split(" "))})},Oe.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},Oe.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},Oe.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},Oe.unstable_convertLegacyJSONEditorState=es;var xe=Oe,V=y,vn=xe;function yn(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ts(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),K(t)){e++,t=t.getParent();continue}yn(40)}break}return e}function wi(t){t=t.getParent(),K(t)||yn(40);let e=t;for(;e!==null;)e=e.getParent(),K(e)&&(t=e);return t}function ns(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();K(i)?e=e.concat(ns(i)):e.push(r)}return e}function zt(t){return J(t)&&K(t.getFirstChild())}function Fd(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!K(t))break;t=e}t.remove()}function rs(t){return $e().append(t)}function is(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function pt(t,e){t.splice(t.getChildrenSize(),0,e)}function os(t,e){if(K(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=$e();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),pt(i,t.getChildren()),K(n)&&e===n.getListType()?(n.append(i),t.remove(),K(r)&&e===r.getListType()&&(pt(n,r.getChildren()),r.remove()),n):K(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=Ae(e),e.append(i),t.replace(e),Re(e),e)}function Re(t,e){(e||t.getChildren()).forEach(n=>{let r=n.getValue();var i=n.getParent(),o=1;i!=null&&(K(i)?o=i.getStart():yn(44)),i=n.getPreviousSiblings();for(let l=0;l<i.length;l++){let s=i[l];J(s)&&!K(s.getFirstChild())&&o++}r!==o&&n.setValue(o)})}function ls(t){let e=new Set;t.forEach(n=>{if(!zt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(zt(i)&&zt(o))o=o.getFirstChild(),K(o)&&(o.append(n),n=i.getFirstChild(),K(n)&&(n=n.getChildren(),pt(o,n),i.remove(),e.add(i.getKey())),Re(o));else if(zt(i))i=i.getFirstChild(),K(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Re(i));else if(zt(o))i=o.getFirstChild(),K(i)&&(i.append(n),Re(i));else if(K(r)){let l=$e(),s=Ae(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}K(r)&&Re(r)}})}function ss(t){t.forEach(e=>{if(!zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(K(i)&&J(r)&&K(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=$e();let a=Ae(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=$e(),s=Ae(s),l.append(s),pt(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Re(n),Re(i)}}})}function as(t){var e=V.$getSelection();if(V.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(J(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];J(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?ls(r):ss(r))}}class mt extends V.ElementNode{static getType(){return"listitem"}static clone(e){return new mt(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return K(r)&&(Re(r),ds(n,this,null,r)),n.value=this.__value,cs(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return K(i)&&(Re(i),ds(n,this,e,i)),n.value=this.__value,cs(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:zd,priority:0})}}static importJSON(e){let n=new mt(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(V.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(J(e))return super.replace(e);let n=this.getParentOrThrow();if(K(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=Ae(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();K(n)||yn(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),K(e)&&Re(e),n;if(K(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=Ae(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),K(e)&&Re(e))}insertNewAfter(){let e=$e(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=V.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=J(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;J(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(ls([this]),n++):(ss([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(K(n)){let r=this.getNextSiblings();Re(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return V.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!V.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function cs(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=K(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>K(s))?r.push(...l):i.push(...l)),0<i.length&&vn.removeClassNamesFromElement(t,...i),0<r.length&&vn.addClassNamesToElement(t,...r)}function ds(t,e,n,r){r.getListType()==="check"?K(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function zd(){return{node:$e()}}function $e(t){return new mt(void 0,t)}function J(t){return t instanceof mt}class wn extends V.ElementNode{static getType(){return"list"}static clone(e){return new wn(e.__listType||hs[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=hs[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,us(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(us(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:gs,priority:0}),ul:()=>({conversion:gs,priority:0})}}static importJSON(e){let n=Ae(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(J(n))super.append(n);else{let i=$e();K(n)||(n=V.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return J(e)}}function us(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=ts(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],u;if(o=o.nested,o!==void 0&&o.list&&(u=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);u!==void 0&&(n=u.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&vn.removeClassNamesFromElement(t,...i),0<r.length&&vn.addClassNamesToElement(t,...r)}function Bd(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{K(i)&&e.push(rs(i))})):e.push(rs(r))}return e}function gs(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=Ae("number"):t==="ul"&&(e=Ae("bullet")),{after:Bd,node:e}}let hs={ol:"number",ul:"bullet"};function Ae(t,e=1){return new wn(t,e)}function K(t){return t instanceof wn}let Hd=V.createCommand(),Kd=V.createCommand(),Ud=V.createCommand(),Wd=V.createCommand();me.$createListItemNode=$e,me.$createListNode=Ae,me.$getListDepth=ts,me.$handleListInsertParagraph=function(){var t=V.$getSelection();if(!V.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=wi(t),n=t.getParent();K(n)||yn(40);let r=n.getParent(),i;if(V.$isRootOrShadowRoot(r))i=V.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=$e(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=Ae(n.getListType());V.$isParagraphNode(i)?i.insertAfter(o):(n=$e(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return Fd(t),!0},me.$isListItemNode=J,me.$isListNode=K,me.INSERT_CHECK_LIST_COMMAND=Ud,me.INSERT_ORDERED_LIST_COMMAND=Kd,me.INSERT_UNORDERED_LIST_COMMAND=Hd,me.ListItemNode=mt,me.ListNode=wn,me.REMOVE_LIST_COMMAND=Wd,me.indentList=function(){as("indent")},me.insertList=function(t,e){t.update(()=>{var n=V.$getSelection();if(V.$isRangeSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(is(n,r))r=Ae(e),V.$isRootOrShadowRoot(i)?(n.replace(r),i=$e(),V.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),pt(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(V.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))os(o,e);else if(V.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(K(o)){if(!n.has(s)){var l=Ae(e);pt(l,o.getChildren()),o.replace(l),Re(l),n.add(s)}break}else{if(l=o.getParent(),V.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),os(o,e);break}o=l}}}}})},me.outdentList=function(){as("outdent")},me.removeList=function(t){t.update(()=>{let e=V.$getSelection();if(V.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(is(i,r))n.add(wi(i));else for(i=0;i<r.length;i++){var o=r[i];V.$isLeafNode(o)&&(o=vn.$getNearestNodeOfType(o,mt),o!=null&&n.add(wi(o)))}for(let l of n){n=l,r=ns(l);for(let s of r)r=V.$createParagraphNode(),pt(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var xt=me,tt={},nt={},Ci={},se={},F=y;let dr=new Map;function ur(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir):F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e}function fs(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=ur(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Vd(t){if(F.$isRangeSelection(t)){var e=t.anchor,n=t.focus;let[a,c]=t.getCharacterOffsets();if(t=t.getNodes(),t.length===0)return{nodeMap:[],range:[]};let u=t.length;var r=t[0],i=r.getParent();if(i!==null&&(!i.canBeEmpty()||F.$isRootNode(i))){var o=i.__children;if(o.length===u){for(var l=!0,s=0;s<o.length;s++)if(o[s]!==t[s].__key){l=!1;break}l&&(u++,t.push(i))}}for(i=t[u-1],e=e.isBefore(n),n=new Map,o=[],l=F.$isTextNode(r)&&u===1,fs(r,e?a:c,l?e?c:a:void 0,!0,o,n),r=0;r<u;r++){s=t[r];let d=s.getKey();if(!(n.has(d)||F.$isElementNode(s)&&s.excludeFromCopy("clone"))){let g=ur(s);F.$isRootNode(s.getParent())&&o.push(s.getKey()),d!=="root"&&n.set(d,g)}}return fs(i,l?void 0:e?c:a,void 0,!1,o,n),{nodeMap:Array.from(n.entries()),range:o}}if(F.DEPRECATED_$isGridSelection(t))return{nodeMap:t.getNodes().map(a=>{const c=a.getKey();return a=ur(a),[c,a]}),range:[t.gridKey]};throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")}function ki(t){let e=dr.get(t);return e===void 0&&(e=ps(t),dr.set(t,e)),e}function ps(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function Cn(t,e){var n=ki(t.getStyle());e=n?{...n,...e}:e,n="";for(r in e)r&&(n+=`${r}: ${e[r]};`);var r=n;t.setStyle(r),dr.set(r,e)}function ms(t,e,n,r){t.modify(e?"extend":"move",n,r)}function xs(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Yd(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function gr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var u=0;u<n;u++){var d=e[u];F.$isElementNode(d)&&d.getChildrenSize()===0&&c.add(d.getKey())}var g=new Set;for(u=0;u<n;u++){d=e[u];var m=d.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(d)&&!g.has(d.getKey())){if(d=m.getKey(),l.get(d)===void 0){let f=r();f.setFormat(m.getFormatType()),f.setIndent(m.getIndent()),s.push(f),l.set(d,f),m.getChildren().forEach(v=>{f.append(v),g.add(v.getKey())}),Yd(m)}}else c.has(d.getKey())&&(m=r(),m.setFormat(d.getFormatType()),m.setIndent(d.getIndent()),s.push(m),d.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(e=o.getFirstChild(),F.$isElementNode(e)&&(o=e),e===null)if(i)o.append(i);else for(i=0;i<s.length;i++)o.append(s[i]);else if(i!==null)e.insertBefore(i);else for(o=0;o<s.length;o++)e.insertBefore(s[o]);else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):t.dirty=!0}}function _s(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function vs(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}se.$addNodeStyle=function(t){t=t.getStyle();let e=ps(t);dr.set(t,e)},se.$cloneContents=function(t){return Vd(t)},se.$cloneWithProperties=ur,se.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=ki(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},se.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},se.$isParentElementRTL=xs,se.$moveCaretSelection=ms,se.$moveCharacter=function(t,e,n){let r=xs(t);ms(t,e,n?!r:r,"character")},se.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus;t=i.getTextContent().length;var a=s.offset,c=l.offset;if(l=(s=l.isBefore(s))?c:a,s=s?a:c,l===i.getTextContentSize()){let u=i.getNextSibling();F.$isTextNode(u)&&(l=c=0,i=u)}if(i.is(o))F.$isTextNode(i)&&(l=c>a?a:c,s=c>a?c:a,l!==s&&(l===0&&s===t?(Cn(i,e),i.select(l,s)):(n=i.splitText(l,s),n=l===0?n[0]:n[1],Cn(n,e),n.select(0,s-l))));else for(F.$isTextNode(i)&&(l!==0&&(i=i.splitText(l)[1]),Cn(i,e)),F.$isTextNode(o)&&(t=o.getTextContent().length,s!==t&&([o]=o.splitText(s)),s!==0&&Cn(o,e)),t=1;t<r;t++)a=n[t],c=a.getKey(),F.$isTextNode(a)&&c!==i.getKey()&&c!==o.getKey()&&!a.isToken()&&Cn(a,e)}},se.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},se.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},se.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},se.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(gr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(gr(t,l,l.length,e,n),l=[a])}gr(t,l,l.length,e,n)}},se.$wrapNodesImpl=gr,se.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=_s(a)),F.$isTextNode(r)&&(t=_s(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=vs(a)),t.nodeName==="BR"&&([t,i]=vs(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},se.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},se.getStyleObjectFromCSS=ki,se.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
27
+ `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=Ko[e],(this.getFormat()&e)!==0):!1}select(e,n){Se();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,B(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return $l(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return R(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return R(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?Ko[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let d=r[c],u=d.getWritable();d.__key===o&&M(76),Gn(u),u.__parent=o,a.push(u.__key)}if((r=this.getChildAtIndex(e-1))&&St(r),(o=this.getChildAtIndex(e+n))&&St(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),B(n))){let c=new Set(e),d=new Set(a);a=m=>{for(m=m.getNode();m;){const f=m.__key;if(c.has(f)&&!d.has(f))return!0;m=m.getParent()}return!1};let{anchor:u,focus:g}=n;for(a(u)&&or(u,u.getNode(),this,r,o),a(g)&&or(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=j(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||qe(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function R(t){return t instanceof ft}class Lt extends ft{static getType(){return"root"}static clone(){return new Lt}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){M(51)}getTextContent(){let e=this.__cachedText;return!oe&&le()._dirtyType!==0||e===null?super.getTextContent():e}remove(){M(52)}replace(){M(53)}insertBefore(){M(54)}insertAfter(){M(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];R(r)||ne(r)||M(56)}return super.append(...e)}static importJSON(e){let n=Qe();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}}function Ke(t){return t instanceof Lt}function Nd(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function mi(){return new sr(new Map([["root",new Lt]]))}function Wl(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&M(58);let n=e.children;if(R(t)){Array.isArray(n)||M(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=Wl(t[r]);n.push(i)}}return e}class sr{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return Fl(this,e)}clone(e){return e=new sr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return Fl(this,()=>({root:Wl(Qe())}))}}class Dt extends lr{static getType(){return"linebreak"}static clone(e){return new Dt(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:Td,priority:0}}}}static importJSON(){return pn()}exportJSON(){return{type:"linebreak",version:1}}}function Td(){return{node:pn()}}function pn(){return new Dt}function mn(t){return t instanceof Dt}function xi(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function _i(t,e){return e&1?"strong":e&2?"em":"span"}function vi(t,e,n,r,i){t=r.classList,r=jn(i,"base"),r!==void 0&&t.add(...r),r=jn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in ut)s=ut[a],r=jn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function wi(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?Un:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||dt){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class It extends lr{static getType(){return"text"}static clone(e){return new It(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return nd[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Xe()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=ut[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return Go(r,e,n)}createDOM(e){var n=this.__format,r=xi(this,n);let i=_i(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,wi(this.__text,r,this),e=e.theme.text,e!==void 0&&vi(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=xi(this,o);let a=xi(this,l);var c=_i(this,o);let d=_i(this,l);return(s===null?c:s)!==(a===null?d:a)?!0:s===a&&c!==d?(o=n.firstChild,o==null&&M(48),e=s=document.createElement(d),wi(i,e,this),r=r.theme.text,r!==void 0&&vi(d,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&M(49)),wi(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&vi(d,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:Od,priority:0}),b:()=>({conversion:bd,priority:0}),code:()=>({conversion:xn,priority:0}),em:()=>({conversion:xn,priority:0}),i:()=>({conversion:xn,priority:0}),span:()=>({conversion:Sd,priority:0}),strong:()=>({conversion:xn,priority:0}),u:()=>({conversion:xn,priority:0})}}static importJSON(e){let n=Ne(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?ut[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?qc[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=ut[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=td[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Se();let r=Z();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,B(r))i=Xe(),i!==r.anchor.key&&i!==r.focus.key||pe(o),r.setTextNodeRange(this,e,this,n);else return $l(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=Z();return i&&B(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Se();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=Xe(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var d=e[0];r=n.getParentOrThrow(),c=r.__key;let u=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=Ne(d),a.__parent=c,a.__format=u,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=d),n=Z(),a=[a],d=d.length;for(let E=1;E<l;E++){var f=e[E],_=f.length;f=Ne(f).getWritable(),f.__format=u,f.__style=g,f.__detail=m;let T=f.__key;if(_=d+_,B(n)){let p=n.anchor,v=n.focus;p.key===i&&p.type==="text"&&p.offset>d&&p.offset<=_&&(p.key=T,p.offset-=d,n.dirty=!0),v.key===i&&v.type==="text"&&v.offset>d&&v.offset<=_&&(v.key=T,v.offset-=d,n.dirty=!0)}o===i&&pe(T),d=_,f.__parent=c,a.push(f)}return bt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(E=>E.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),B(n)&&ir(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||M(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;Xe()===i&&pe(r);let s=Z();if(B(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(Il(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(Il(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function Sd(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function bd(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function Od(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:Ne(t)}}let Rd={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function xn(t){let e=Rd[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function Ne(t=""){return new It(t)}function L(t){return t instanceof It}class Pt extends ft{static getType(){return"paragraph"}static clone(e){return new Pt(e.__key)}createDOM(e){let n=document.createElement("p");return e=jn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Ad,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Ft();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=Ft(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Ad(){return{node:Ft()}}function Ft(){return new Pt}function Ul(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=mi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function $d(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class Md{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=qo(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&M(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&M(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&M(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&M(37);let i=r.transforms;return i.add(n),sd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return $(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Ul(this,n,e,r),n!==null&&!this._config.disableEvents){if(an!==0&&(an--,an===0&&n.ownerDocument.removeEventListener("selectionchange",kl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=Zr(r);i=i[i.length-1]._key,$t.get(i)===r&&$t.delete(i)}else $t.delete(r._key);n.__lexicalEditor=null}for(r=yl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,Vo(this),this._updateTags.add("history-merge"),ht(this),this._config.disableEvents||wd(e,this)):this._window=null,fn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&M(38),Uo(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),ht(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),ht(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=mi(),i=we,o=oe,l=he,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,d=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,we=r,oe=!1,he=this;try{fi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=d,we=i,oe=o,he=l}return r}update(e,n){be(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),be(this,()=>{let i=Z(),o=Qe();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=window.getSelection(),e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,fn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class Vl extends ft{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function Yl(t){return t instanceof Vl}class Gl extends ft{}function jl(t){return t instanceof Gl}class Zl extends ft{}function Jl(t){return t instanceof Zl}b.$addUpdateTag=function(t){Se(),le()._updateTags.add(t)},b.$createLineBreakNode=pn,b.$createNodeSelection=Ml,b.$createParagraphNode=Ft,b.$createRangeSelection=function(){let t=new Be("root",0,"element"),e=new Be("root",0,"element");return new Mt(t,e,0)},b.$createTextNode=Ne,b.$getDecoratorNode=rl,b.$getNearestNodeFromDOMNode=en,b.$getNodeByKey=j,b.$getPreviousSelection=gn,b.$getRoot=Qe,b.$getSelection=Z,b.$hasAncestor=qr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=Qe().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ne,b.$isElementNode=R,b.$isInlineElementOrDecoratorNode=function(t){return R(t)&&t.isInline()||ne(t)&&t.isInline()},b.$isLeafNode=jo,b.$isLineBreakNode=mn,b.$isNodeSelection=un,b.$isParagraphNode=function(t){return t instanceof Pt},b.$isRangeSelection=B,b.$isRootNode=Ke,b.$isRootOrShadowRoot=qe,b.$isTextNode=L,b.$nodesOfType=function(t){var e=He();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$parseSerializedNode=function(t){return fi(t,le()._nodes)},b.$setCompositionKey=pe,b.$setSelection=Ot,b.BLUR_COMMAND=Bo,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=Co,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=Nt,b.COPY_COMMAND=Wr,b.CUT_COMMAND=Ur,b.DELETE_CHARACTER_COMMAND=Jt,b.DELETE_LINE_COMMAND=qt,b.DELETE_WORD_COMMAND=Qt,b.DEPRECATED_$createGridSelection=function(){let t=new Be("root",0,"element"),e=new Be("root",0,"element");return new nr("root",t,e)},b.DEPRECATED_$isGridCellNode=Yl,b.DEPRECATED_$isGridNode=jl,b.DEPRECATED_$isGridRowNode=Jl,b.DEPRECATED_$isGridSelection=gi,b.DEPRECATED_GridCellNode=Vl,b.DEPRECATED_GridNode=Gl,b.DEPRECATED_GridRowNode=Zl,b.DRAGEND_COMMAND=Fo,b.DRAGOVER_COMMAND=Po,b.DRAGSTART_COMMAND=Io,b.DROP_COMMAND=Do,b.DecoratorNode=Kl,b.ElementNode=ft,b.FOCUS_COMMAND=zo,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=Je,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=Xt,b.INSERT_PARAGRAPH_COMMAND=Fr,b.KEY_ARROW_DOWN_COMMAND=Oo,b.KEY_ARROW_LEFT_COMMAND=To,b.KEY_ARROW_RIGHT_COMMAND=Eo,b.KEY_ARROW_UP_COMMAND=bo,b.KEY_BACKSPACE_COMMAND=Ao,b.KEY_DELETE_COMMAND=Mo,b.KEY_ENTER_COMMAND=Hn,b.KEY_ESCAPE_COMMAND=$o,b.KEY_MODIFIER_COMMAND=Ho,b.KEY_SPACE_COMMAND=Ro,b.KEY_TAB_COMMAND=Lo,b.LineBreakNode=Dt,b.MOVE_TO_END=No,b.MOVE_TO_START=So,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=zr,b.ParagraphNode=Pt,b.REDO_COMMAND=Kr,b.REMOVE_TEXT_COMMAND=Br,b.RootNode=Lt,b.SELECTION_CHANGE_COMMAND=ko,b.TextNode=It,b.UNDO_COMMAND=Hr,b.VERSION="0.4.1",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=he,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=mi(),s=e.namespace||(i!==null?i._config.namespace:qo()),a=e.editorState,c=[Lt,It,Dt,Pt,...e.nodes||[]],d=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let u=c[n],g=u.getType();t.set(g,{klass:u,transforms:new Set})}return r=new Md(l,i,t,{disableEvents:o,namespace:s,theme:r},d||console.error,$d(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=b,Xl=fe,_n=w,ar=S.default,Ld=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ar.useLayoutEffect:ar.useEffect;let cr={tag:"history-merge"};function Dd(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=_n.$getRoot();if(n.isEmpty()){let r=_n.$createParagraphNode();n.append(r),n=document.activeElement,(_n.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},cr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,cr);break;case"object":t.setEditorState(e,cr);break;case"function":t.update(()=>{_n.$getRoot().isEmpty()&&e(t)},cr)}}}vo.LexicalComposer=function({initialConfig:t,children:e}){let n=ar.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=Xl.createLexicalComposerContext(null,r);let d=o||null;if(d===null){const u=_n.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,u),theme:r});Dd(u,a),d=u}return[d,c]},[]);return Ld(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),ar.createElement(Xl.LexicalComposerContext.Provider,{value:n},e)};var Id=vo,me={},Oe={},ye=w;function Ql(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ql(t,e){for(;t!==ye.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function es(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&Ql(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ye.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ts(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,ye.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=es(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ye.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function Pd(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{es(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function ts(t,e){return e=typeof e=="string"?JSON.parse(e):e,Pd(e,t)}Oe.$dfs=function(t,e){let n=[];t=(t||ye.$getRoot()).getLatest(),e=e||(ye.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),ye.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},Oe.$findMatchingParent=ql,Oe.$getNearestBlockElementAncestorOrThrow=function(t){return t=ql(t,e=>ye.$isElementNode(e)&&!e.isInline()),ye.$isElementNode(t)||Ql(4),t},Oe.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},Oe.$insertNodeToNearestRoot=function(t){var e=ye.$getSelection();return ye.$isRangeSelection(e)?e.focus.getNode().getTopLevelElementOrThrow().insertAfter(t):ye.$isNodeSelection(e)||ye.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ye.$getRoot().append(t),e=ye.$createParagraphNode(),t.insertAfter(e),e.select(),t.getLatest()},Oe.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ye.$setSelection(t===null?null:t.clone())},Oe.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},Oe.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.add(...n.split(" "))})},Oe.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},Oe.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},Oe.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},Oe.unstable_convertLegacyJSONEditorState=ts;var xe=Oe,V=w,vn=xe;function wn(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ns(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),K(t)){e++,t=t.getParent();continue}wn(40)}break}return e}function yi(t){t=t.getParent(),K(t)||wn(40);let e=t;for(;e!==null;)e=e.getParent(),K(e)&&(t=e);return t}function rs(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();K(i)?e=e.concat(rs(i)):e.push(r)}return e}function zt(t){return J(t)&&K(t.getFirstChild())}function Fd(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!K(t))break;t=e}t.remove()}function is(t){return Me().append(t)}function os(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function pt(t,e){t.splice(t.getChildrenSize(),0,e)}function ls(t,e){if(K(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=Me();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),pt(i,t.getChildren()),K(n)&&e===n.getListType()?(n.append(i),t.remove(),K(r)&&e===r.getListType()&&(pt(n,r.getChildren()),r.remove()),n):K(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=Ae(e),e.append(i),t.replace(e),Re(e),e)}function Re(t,e){(e||t.getChildren()).forEach(n=>{let r=n.getValue();var i=n.getParent(),o=1;i!=null&&(K(i)?o=i.getStart():wn(44)),i=n.getPreviousSiblings();for(let l=0;l<i.length;l++){let s=i[l];J(s)&&!K(s.getFirstChild())&&o++}r!==o&&n.setValue(o)})}function ss(t){let e=new Set;t.forEach(n=>{if(!zt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(zt(i)&&zt(o))o=o.getFirstChild(),K(o)&&(o.append(n),n=i.getFirstChild(),K(n)&&(n=n.getChildren(),pt(o,n),i.remove(),e.add(i.getKey())),Re(o));else if(zt(i))i=i.getFirstChild(),K(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Re(i));else if(zt(o))i=o.getFirstChild(),K(i)&&(i.append(n),Re(i));else if(K(r)){let l=Me(),s=Ae(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}K(r)&&Re(r)}})}function as(t){t.forEach(e=>{if(!zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(K(i)&&J(r)&&K(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=Me();let a=Ae(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=Me(),s=Ae(s),l.append(s),pt(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Re(n),Re(i)}}})}function cs(t){var e=V.$getSelection();if(V.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(J(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];J(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?ss(r):as(r))}}class mt extends V.ElementNode{static getType(){return"listitem"}static clone(e){return new mt(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return K(r)&&(Re(r),us(n,this,null,r)),n.value=this.__value,ds(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return K(i)&&(Re(i),us(n,this,e,i)),n.value=this.__value,ds(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:zd,priority:0})}}static importJSON(e){let n=new mt(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(V.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(J(e))return super.replace(e);let n=this.getParentOrThrow();if(K(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=Ae(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();K(n)||wn(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),K(e)&&Re(e),n;if(K(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=Ae(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),K(e)&&Re(e))}insertNewAfter(){let e=Me(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=V.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=J(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;J(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(ss([this]),n++):(as([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(K(n)){let r=this.getNextSiblings();Re(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return V.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!V.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function ds(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=K(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>K(s))?r.push(...l):i.push(...l)),0<i.length&&vn.removeClassNamesFromElement(t,...i),0<r.length&&vn.addClassNamesToElement(t,...r)}function us(t,e,n,r){r.getListType()==="check"?K(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function zd(){return{node:Me()}}function Me(t){return new mt(void 0,t)}function J(t){return t instanceof mt}class yn extends V.ElementNode{static getType(){return"list"}static clone(e){return new yn(e.__listType||fs[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=fs[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,gs(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(gs(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:hs,priority:0}),ul:()=>({conversion:hs,priority:0})}}static importJSON(e){let n=Ae(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(J(n))super.append(n);else{let i=Me();K(n)||(n=V.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return J(e)}}function gs(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=ns(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],d;if(o=o.nested,o!==void 0&&o.list&&(d=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);d!==void 0&&(n=d.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&vn.removeClassNamesFromElement(t,...i),0<r.length&&vn.addClassNamesToElement(t,...r)}function Bd(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{K(i)&&e.push(is(i))})):e.push(is(r))}return e}function hs(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=Ae("number"):t==="ul"&&(e=Ae("bullet")),{after:Bd,node:e}}let fs={ol:"number",ul:"bullet"};function Ae(t,e=1){return new yn(t,e)}function K(t){return t instanceof yn}let Hd=V.createCommand(),Kd=V.createCommand(),Wd=V.createCommand(),Ud=V.createCommand();me.$createListItemNode=Me,me.$createListNode=Ae,me.$getListDepth=ns,me.$handleListInsertParagraph=function(){var t=V.$getSelection();if(!V.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=yi(t),n=t.getParent();K(n)||wn(40);let r=n.getParent(),i;if(V.$isRootOrShadowRoot(r))i=V.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=Me(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=Ae(n.getListType());V.$isParagraphNode(i)?i.insertAfter(o):(n=Me(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return Fd(t),!0},me.$isListItemNode=J,me.$isListNode=K,me.INSERT_CHECK_LIST_COMMAND=Wd,me.INSERT_ORDERED_LIST_COMMAND=Kd,me.INSERT_UNORDERED_LIST_COMMAND=Hd,me.ListItemNode=mt,me.ListNode=yn,me.REMOVE_LIST_COMMAND=Ud,me.indentList=function(){cs("indent")},me.insertList=function(t,e){t.update(()=>{var n=V.$getSelection();if(V.$isRangeSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(os(n,r))r=Ae(e),V.$isRootOrShadowRoot(i)?(n.replace(r),i=Me(),V.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),pt(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(V.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))ls(o,e);else if(V.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(K(o)){if(!n.has(s)){var l=Ae(e);pt(l,o.getChildren()),o.replace(l),Re(l),n.add(s)}break}else{if(l=o.getParent(),V.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),ls(o,e);break}o=l}}}}})},me.outdentList=function(){cs("outdent")},me.removeList=function(t){t.update(()=>{let e=V.$getSelection();if(V.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(os(i,r))n.add(yi(i));else for(i=0;i<r.length;i++){var o=r[i];V.$isLeafNode(o)&&(o=vn.$getNearestNodeOfType(o,mt),o!=null&&n.add(yi(o)))}for(let l of n){n=l,r=rs(l);for(let s of r)r=V.$createParagraphNode(),pt(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var xt=me,tt={},nt={},ki={},se={},F=w;let dr=new Map;function ur(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir):F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e}function ps(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=ur(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Vd(t){if(F.$isRangeSelection(t)){var e=t.anchor,n=t.focus;let[a,c]=t.getCharacterOffsets();if(t=t.getNodes(),t.length===0)return{nodeMap:[],range:[]};let d=t.length;var r=t[0],i=r.getParent();if(i!==null&&(!i.canBeEmpty()||F.$isRootNode(i))){var o=i.__children;if(o.length===d){for(var l=!0,s=0;s<o.length;s++)if(o[s]!==t[s].__key){l=!1;break}l&&(d++,t.push(i))}}for(i=t[d-1],e=e.isBefore(n),n=new Map,o=[],l=F.$isTextNode(r)&&d===1,ps(r,e?a:c,l?e?c:a:void 0,!0,o,n),r=0;r<d;r++){s=t[r];let u=s.getKey();if(!(n.has(u)||F.$isElementNode(s)&&s.excludeFromCopy("clone"))){let g=ur(s);F.$isRootNode(s.getParent())&&o.push(s.getKey()),u!=="root"&&n.set(u,g)}}return ps(i,l?void 0:e?c:a,void 0,!1,o,n),{nodeMap:Array.from(n.entries()),range:o}}if(F.DEPRECATED_$isGridSelection(t))return{nodeMap:t.getNodes().map(a=>{const c=a.getKey();return a=ur(a),[c,a]}),range:[t.gridKey]};throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")}function Ci(t){let e=dr.get(t);return e===void 0&&(e=ms(t),dr.set(t,e)),e}function ms(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function kn(t,e){var n=Ci(t.getStyle());e=n?{...n,...e}:e,n="";for(r in e)r&&(n+=`${r}: ${e[r]};`);var r=n;t.setStyle(r),dr.set(r,e)}function xs(t,e,n,r){t.modify(e?"extend":"move",n,r)}function _s(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Yd(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function gr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var d=0;d<n;d++){var u=e[d];F.$isElementNode(u)&&u.getChildrenSize()===0&&c.add(u.getKey())}var g=new Set;for(d=0;d<n;d++){u=e[d];var m=u.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(u)&&!g.has(u.getKey())){if(u=m.getKey(),l.get(u)===void 0){let f=r();f.setFormat(m.getFormatType()),f.setIndent(m.getIndent()),s.push(f),l.set(u,f),m.getChildren().forEach(_=>{f.append(_),g.add(_.getKey())}),Yd(m)}}else c.has(u.getKey())&&(m=r(),m.setFormat(u.getFormatType()),m.setIndent(u.getIndent()),s.push(m),u.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(e=o.getFirstChild(),F.$isElementNode(e)&&(o=e),e===null)if(i)o.append(i);else for(i=0;i<s.length;i++)o.append(s[i]);else if(i!==null)e.insertBefore(i);else for(o=0;o<s.length;o++)e.insertBefore(s[o]);else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):t.dirty=!0}}function vs(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function ws(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}se.$addNodeStyle=function(t){t=t.getStyle();let e=ms(t);dr.set(t,e)},se.$cloneContents=function(t){return Vd(t)},se.$cloneWithProperties=ur,se.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=Ci(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},se.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},se.$isParentElementRTL=_s,se.$moveCaretSelection=xs,se.$moveCharacter=function(t,e,n){let r=_s(t);xs(t,e,n?!r:r,"character")},se.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus;t=i.getTextContent().length;var a=s.offset,c=l.offset;if(l=(s=l.isBefore(s))?c:a,s=s?a:c,l===i.getTextContentSize()){let d=i.getNextSibling();F.$isTextNode(d)&&(l=c=0,i=d)}if(i.is(o))F.$isTextNode(i)&&(l=c>a?a:c,s=c>a?c:a,l!==s&&(l===0&&s===t?(kn(i,e),i.select(l,s)):(n=i.splitText(l,s),n=l===0?n[0]:n[1],kn(n,e),n.select(0,s-l))));else for(F.$isTextNode(i)&&(l!==0&&(i=i.splitText(l)[1]),kn(i,e)),F.$isTextNode(o)&&(t=o.getTextContent().length,s!==t&&([o]=o.splitText(s)),s!==0&&kn(o,e)),t=1;t<r;t++)a=n[t],c=a.getKey(),F.$isTextNode(a)&&c!==i.getKey()&&c!==o.getKey()&&!a.isToken()&&kn(a,e)}},se.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},se.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},se.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},se.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(gr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(gr(t,l,l.length,e,n),l=[a])}gr(t,l,l.length,e,n)}},se.$wrapNodesImpl=gr,se.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=vs(a)),F.$isTextNode(r)&&(t=vs(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=ws(a)),t.nodeName==="BR"&&([t,i]=ws(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},se.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},se.getStyleObjectFromCSS=Ci,se.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
29
29
 
30
- `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let u=r.getKey();o=t.getEditorState().read(()=>{const d=F.$getNodeByKey(u);return F.$isTextNode(d)&&d.isSimpleText()?d.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===u,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var He=se,ys=He,Bt=y;function ws(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Bt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=ys.$cloneWithProperties(e),l=Bt.$isTextNode(l)&&r!=null?ys.$sliceSelectedTextNodeContent(r,l):l);let s=Bt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let u=new DocumentFragment;for(let d=0;d<s.length;d++){let g=s[d],m=ws(t,g,u,r);!i&&Bt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(u),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(u),i}let Cs=new Set(["STYLE"]);function ks(t,e,n=new Map,r,i=!1){let o=[];if(Cs.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,u]of n)if(l=u(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],u=0;u<t.length;u++)r.push(...ks(t[u],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Bt.$isElementNode(l)&&l.append(...r),o}Ci.$generateHtmlFromNodes=function(t,e){if(document==null||window==null)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),r=Bt.$getRoot().getChildren();for(let i=0;i<r.length;i++)ws(t,r[i],n,e);return n.innerHTML},Ci.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];Cs.has(i.nodeName)||(i=ks(i,t),i!==null&&(n=n.concat(i)))}return n};var Gd=Ci,Es=Gd,Ns=xt,Ei=He,kn=xe,z=y;function Ye(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ni(t,e,n){(z.DEPRECATED_$isGridSelection(n)||kn.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&kn.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?Zd(e,n,!1,t):jd(e,n)}function jd(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];Ns.$isListItemNode(l)?(i==null&&(i=Ns.$createListNode("bullet"),n.push(i)),i.append(l)):(i!=null&&(i=null),z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)||z.$isLineBreakNode(l)?(r===null&&(r=z.$createParagraphNode(),n.push(r)),r!==null&&r.append(l)):(n.push(l),r=null))}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||Ye(41),t.append(...n))}function Zd(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||Ye(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=kn.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&kn.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&kn.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||Ye(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,u;for(let m=i;m<=s;m++){var d=a[m];z.DEPRECATED_$isGridRowNode(d)||Ye(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||Ye(24),d=d.getChildren(),g=g.getChildren();let f=0;for(let v=n;v<=o;v++){let E=d[v];z.DEPRECATED_$isGridCellNode(E)||Ye(25);let k=g[f];z.DEPRECATED_$isGridCellNode(k)||Ye(25),m===i&&v===n?c=E.getKey():m===s&&v===o&&(u=E.getKey());let p=E.getChildren();k.getChildren().forEach(_=>{z.$isTextNode(_)&&z.$createParagraphNode().append(_),E.append(_)}),p.forEach(_=>_.remove()),f++}l++}c&&u&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,u),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Ts(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Ei.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Ei.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&Ye(58);var u=s.children;for(z.$isElementNode(c)&&(Array.isArray(u)||Ye(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],u=Ts(t,e,c,s.children),!i&&z.$isElementNode(n)&&u&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function Ss(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ts(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function bs(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Ei.$addNodeStyle(r),e.push(r)}return e}nt.$generateJSONFromSelectedNodes=Ss,nt.$generateNodesFromSerializedNodes=bs,nt.$getHtmlContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:Es.$generateHtmlFromNodes(t,e)},nt.$getLexicalContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Ss(t,e))},nt.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},nt.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=bs(o.nodes);return Ni(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Es.$generateNodesFromDOM(n,i);return Ni(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},nt.$insertGeneratedNodes=Ni;var Jd=nt,hr=Jd,fr=He,Ht=xe,w=y;let Kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xd=Kt&&"documentMode"in document?document.documentMode:null;Kt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Kt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Qd=Kt&&"InputEvent"in window&&!Xd?"getTargetRanges"in new window.InputEvent("input"):!1,qd=Kt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),eu=Kt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class En extends w.ElementNode{static getType(){return"quote"}static clone(e){return new En(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return Ht.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:tu,priority:0})}}static importJSON(e){let n=Ti();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=w.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Ti(){return new En}class Nn extends w.ElementNode{static getType(){return"heading"}static clone(e){return new Nn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&Ht.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Ut,priority:0}),h2:()=>({conversion:Ut,priority:0}),h3:()=>({conversion:Ut,priority:0}),h4:()=>({conversion:Ut,priority:0}),h5:()=>({conversion:Ut,priority:0}),h6:()=>({conversion:Ut,priority:0}),p:e=>(e=e.firstChild,e!==null&&Os(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>Os(e)?{conversion:()=>({node:pr("h1")}),priority:3}:null}}static importJSON(e){let n=pr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=w.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function Os(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Ut(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=pr(t)),{node:e}}function tu(){return{node:Ti()}}function pr(t){return new Nn(t)}function nu(t,e){t.preventDefault(),e.update(()=>{let n=w.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(w.$isRangeSelection(n)||w.DEPRECATED_$isGridSelection(n))&&hr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}function Rs(t,e){var n=w.$getSelection();if(n!==null){t.preventDefault(),t=t instanceof KeyboardEvent?null:t.clipboardData;let r=hr.$getHtmlContent(e);e=hr.$getLexicalContent(e),t!=null?(r!==null&&t.setData("text/html",r),e!==null&&t.setData("application/x-lexical-editor",e),n=n.getTextContent(),t.setData("text/plain",n)):(n=navigator.clipboard,n!=null&&(t=[new ClipboardItem({"text/html":new Blob([r],{type:"text/html"})})],n.write(t)))}}function ru(t,e){Rs(t,e),t=w.$getSelection(),w.$isRangeSelection(t)?t.removeText():w.$isNodeSelection(t)&&t.getNodes().forEach(n=>n.remove())}function As(t,e){var n=w.$getSelection();if(w.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let o=0;o<n.length;o++){let l=n[o];var i=l.getKey();r.has(i)||(r.add(i),i=Ht.$getNearestBlockElementAncestorOrThrow(l),i.canInsertTab()?t(l):i.canIndent()&&e(i))}}}function mr(t){return t=w.$getNearestNodeFromDOMNode(t),w.$isDecoratorNode(t)}tt.$createHeadingNode=pr,tt.$createQuoteNode=Ti,tt.$isHeadingNode=function(t){return t instanceof Nn},tt.$isQuoteNode=function(t){return t instanceof En},tt.HeadingNode=Nn,tt.QuoteNode=En,tt.registerRichText=function(t){return Ht.mergeRegister(t.registerCommand(w.CLICK_COMMAND,()=>{const e=w.$getSelection();return w.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(w.DELETE_CHARACTER_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.DELETE_WORD_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.DELETE_LINE_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=w.$getSelection();if(typeof e=="string")w.$isRangeSelection(n)?n.insertText(e):w.DEPRECATED_$isGridSelection(n);else{if(!w.$isRangeSelection(n)&&!w.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?hr.$insertDataTransferForRichText(r,n,t):w.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.REMOVE_TEXT_COMMAND,()=>{const e=w.$getSelection();return w.$isRangeSelection(e)?(e.removeText(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.FORMAT_TEXT_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(n.formatText(e),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.FORMAT_ELEMENT_COMMAND,e=>{var n=w.$getSelection();if(!w.$isRangeSelection(n)&&!w.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)Ht.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.INSERT_LINE_BREAK_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.INSERT_PARAGRAPH_COMMAND,()=>{const e=w.$getSelection();return w.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.INDENT_CONTENT_COMMAND,()=>(As(()=>{t.dispatchCommand(w.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.OUTDENT_CONTENT_COMMAND,()=>(As(e=>{w.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(w.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ARROW_UP_COMMAND,e=>{const n=w.$getSelection();return w.$isNodeSelection(n)&&!mr(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,()=>{var e=w.$getSelection();return w.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,e=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return w.$isRangeSelection(n)&&fr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),fr.$moveCharacter(n,r,!0),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,e=>{const n=w.$getSelection();if(w.$isNodeSelection(n)&&!mr(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return w.$isRangeSelection(n)?(r=e.shiftKey,fr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),fr.$moveCharacter(n,r,!1),!0):!1):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_BACKSPACE_COMMAND,e=>{if(mr(e.target))return!1;const n=w.$getSelection();if(!w.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!w.$isRootNode(r)&&0<Ht.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(w.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(w.DELETE_CHARACTER_COMMAND,!0)},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_DELETE_COMMAND,e=>{if(mr(e.target))return!1;const n=w.$getSelection();return w.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(w.DELETE_CHARACTER_COMMAND,!1)):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ENTER_COMMAND,e=>{const n=w.$getSelection();if(!w.$isRangeSelection(n))return!1;if(e!==null){if((eu||qd)&&Qd)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(w.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(w.INSERT_PARAGRAPH_COMMAND,void 0)},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_TAB_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?w.OUTDENT_CONTENT_COMMAND:w.INDENT_CONTENT_COMMAND,void 0)):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.KEY_ESCAPE_COMMAND,()=>{const e=w.$getSelection();return w.$isRangeSelection(e)?(t.blur(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.DROP_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(e.preventDefault(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.DRAGSTART_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)?(e.preventDefault(),!0):!1},w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.COPY_COMMAND,e=>(Rs(e,t),!0),w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.CUT_COMMAND,e=>(ru(e,t),!0),w.COMMAND_PRIORITY_EDITOR),t.registerCommand(w.PASTE_COMMAND,e=>{const n=w.$getSelection();return w.$isRangeSelection(n)||w.DEPRECATED_$isGridSelection(n)?(nu(e,t),!0):!1},w.COMMAND_PRIORITY_EDITOR))};var _t=tt,Ge={},iu=xe,rt=y;class Wt extends rt.ElementNode{static getType(){return"link"}static clone(e){return new Wt(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),iu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:ou,priority:1})}}static importJSON(e){let n=Tn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),rt.$isElementNode(e)){let n=Tn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!rt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function ou(t){let e=null;return t instanceof HTMLAnchorElement&&(e=Tn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")})),{node:e}}function Tn(t,e){return new Wt(t,e)}function vt(t){return t instanceof Wt}class Sn extends Wt{static getType(){return"autolink"}static clone(e){return new Sn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Si(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),rt.$isElementNode(e)){let n=Si(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Si(t,e){return new Sn(t,e)}let lu=rt.createCommand();function su(t){return au(t,e=>vt(e))}function au(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}Ge.$createAutoLinkNode=Si,Ge.$createLinkNode=Tn,Ge.$isAutoLinkNode=function(t){return t instanceof Sn},Ge.$isLinkNode=vt,Ge.AutoLinkNode=Sn,Ge.LinkNode=Wt,Ge.TOGGLE_LINK_COMMAND=lu,Ge.toggleLink=function(t,e={}){let{target:n,rel:r}=e;if(e=rt.$getSelection(),rt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),vt(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=vt(i)?i:su(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==void 0&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!rt.$isElementNode(s)||s.isInline()))if(vt(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==void 0&&a.setRel(r);else if(a.is(o)||(o=a,l=Tn(t,{rel:r,target:n}),vt(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),vt(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Ms=Ge;class xr extends y.ElementNode{static getType(){return"aside"}static clone(e){return new xr(e.__key)}createDOM(e){const n=document.createElement("aside");return xe.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:cu,priority:0})}}static importJSON(e){const n=bi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=y.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function cu(){return{node:bi}}function bi(){return new xr}var $s={},du=fe,yt=y,_r=S.default;function Ls(t,e){return t.getEditorState().read(()=>{let n=yt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}$s.useLexicalNodeSelection=function(t){let[e]=du.useLexicalComposerContext(),[n,r]=_r.useState(()=>Ls(e,t));_r.useEffect(()=>e.registerUpdateListener(()=>{r(Ls(e,t))}),[e,t]);let i=_r.useCallback(l=>{e.update(()=>{let s=yt.$getSelection();yt.$isNodeSelection(s)||(s=yt.$createNodeSelection(),yt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=_r.useCallback(()=>{e.update(()=>{const l=yt.$getSelection();yt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var Ds=$s;const Is=S.default.createContext({});var Ke={exports:{}},uu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gu=uu,hu=gu;function Ps(){}function Fs(){}Fs.resetWarningCache=Ps;var fu=function(){function t(r,i,o,l,s,a){if(a!==hu){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Fs,resetWarningCache:Ps};return n.PropTypes=n,n};Ke.exports=fu();const zs=S.default.forwardRef(({isSelected:t,cardType:e,children:n,...r},i)=>h("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"}`,ref:i,"data-kg-card":e,"data-kg-card-selected":t,...r,children:n}));zs.propTypes={isSelected:Ke.exports.bool};const Oi=({nodeKey:t,children:e})=>{const[n]=fe.useLexicalComposerContext(),[r,i,o]=Ds.useLexicalNodeSelection(t),[l,s]=S.default.useState(null),[a,c]=S.default.useState(null),u=S.default.useRef(null);return S.default.useLayoutEffect(()=>{n.getEditorState().read(()=>{const d=y.$getNodeByKey(t);c(d.getType())})},[]),S.default.useEffect(()=>xe.mergeRegister(n.registerUpdateListener(({editorState:d})=>{s(d.read(()=>y.$getSelection()))}),n.registerCommand(y.CLICK_COMMAND,d=>(u.current.contains(d.target)?(o(),i(!0)):r&&i(!1),!1),y.COMMAND_PRIORITY_LOW),n.registerCommand(y.KEY_ENTER_COMMAND,d=>{const g=y.$getSelection();if(r&&y.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=y.$getNodeByKey(t),f=y.$createParagraphNode();return m.getTopLevelElementOrThrow().insertAfter(f),f.select(),!0}return!1},y.COMMAND_PRIORITY_EDITOR),n.registerCommand(y.KEY_BACKSPACE_COMMAND,d=>{const g=y.$getSelection();if(r&&y.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=y.$getNodeByKey(t);if(m.getType()==="image"&&d.target.matches("input"))return n.update(()=>{const E=m.getCaption();m.setCaption(E.slice(0,-1))}),!1;const f=m.getPreviousSibling(),v=m.getNextSibling();if(f)if(f.selectEnd)f.selectEnd();else if(y.$isDecoratorNode(f)){const E=y.$createNodeSelection();E.add(f.getKey()),y.$setSelection(E)}else m.selectPrevious();else if(v)if(v.selectStart)v.selectStart();else if(y.$isDecoratorNode(v)){const E=y.$createNodeSelection();E.add(v.getKey()),y.$setSelection(E)}else m.selectNext();return m.remove(),!0}return!1},y.COMMAND_PRIORITY_EDITOR),n.registerCommand(y.KEY_DELETE_COMMAND,d=>{const g=y.$getSelection();if(r&&y.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=y.$getNodeByKey(t),f=m.getNextSibling();if(f)if(f.selectStart)f.selectStart();else if(y.$isDecoratorNode(f)){const v=y.$createNodeSelection();v.add(f.getKey()),y.$setSelection(v)}else m.selectNext();else{const v=y.$createParagraphNode();m.getTopLevelElementOrThrow().insertAfter(v),v.select()}return m.remove(),!0}return!1},y.COMMAND_PRIORITY_EDITOR)),[n,r,i,o,t]),h(Is.Provider,{value:{isSelected:r,selection:l,cardContainerRef:u},children:h(zs,{isSelected:r,cardType:a,ref:u,children:e})})};function pu(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const Bs=y.createCommand(),Ji=class extends y.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Ji(e.__key)}static importJSON(e){return Ri()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Oi,{nodeKey:this.getKey(),className:"inline-block",children:h(pu,{})})}};let wt=Ji;Ue(wt,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:po,insertCommand:Bs,matches:["divider","horizontal-rule","hr"]});function Ri(){return new wt}function mu(t){return t instanceof wt}const xu=({el:t,value:e})=>{te.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function Hs({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return xu({el:i,value:t}),h("code",{children:h("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}Hs.propTypes={code:Ke.exports.string},y.createCommand();function _u({code:t,language:e,nodeKey:n,editor:r}){return h(Hs,{code:t,updateCode:l=>{r.update(()=>{y.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{y.$getNodeByKey(n).setLanguage(l.target.value)})}})}class Vt extends y.DecoratorNode{constructor(n,r,i){super(i);Ue(this,"__code","");Ue(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new Vt(n.__key,n.__code)}static importJSON(n){return Ks()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return h(Oi,{nodeKey:this.getKey(),children:h(_u,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function Ks(t,e){return new Vt(t,e)}function vu(t){return t instanceof Vt}const vr=S.default.createContext({});function yu({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function wu({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function Cu({isEditingAlt:t,onClick:e}){return h("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function ku({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=u=>{u.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return Y("figcaption",{className:"flex w-full p-2",children:[s?h(wu,{value:t,placeholder:e,onChange:n}):h(yu,{value:r,placeholder:i,onChange:o}),n&&h(Cu,{isEditingAlt:s,onClick:c})]})}const Eu=({text:t})=>h("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-700 transition-all group-hover:text-grey-800",children:t});function Nu({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return h("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,children:h("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?h(Eu,{text:"Drop it like it's hot \u{1F525}"}):Y("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[h(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),h("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function yr({fileInputRef:t}){t.current.click()}function Us({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function Tu({src:t,alt:e}){return h("img",{src:t,alt:e})}function Su({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return Y(Pr,{children:[h(Nu,{handleDrag:n,handleDrop:r,filePicker:()=>yr({fileInputRef:o}),desc:"Click to select an image",Icon:Ir,isDraggedOver:i}),h(Us,{filePicker:()=>yr({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}function Ws({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:u,isDraggedOver:d}){const g=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(g)},[g,s]),h(Pr,{children:Y("figure",{ref:g,children:[e?h(Tu,{src:e,alt:o}):h(Su,{handleDrag:c,onFileChange:n,setFileInputRef:f=>{a&&(a.current=f.current)},handleDrop:u,isDraggedOver:d}),h(ku,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}Ws.propTypes={isSelected:Ke.exports.bool,setAltText:Ke.exports.func,caption:Ke.exports.string,altText:Ke.exports.string,setCaption:Ke.exports.func,src:Ke.exports.string,isDraggedOver:Ke.exports.bool};const bu={bold:no,italic:ro,headingOne:io,headingTwo:oo,quote:lo,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:Dr,imageRegular:so,imageWide:ao,imageFull:co,imageReplace:uo,add:go,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img",...t},x.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Pn};function Vs({children:t,...e}){return h("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function Le({label:t,isActive:e,onClick:n,icon:r,...i}){const o=bu[r];return h("li",{className:"m-0 flex p-0 first:m-0",...i,children:h("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:h(o,{className:e?"fill-green":"fill-white"})})})}function Ai(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function Ou({isVisible:t,children:e,...n}){const r=S.default.useRef(null),[i,o]=S.default.useState({top:0,left:0,right:0});S.default.useLayoutEffect(()=>{if(t){const s=r.current.parentElement.getBoundingClientRect();o({top:0,left:s.left,right:s.right})}},[t]);const l={position:"absolute",left:((i==null?void 0:i.right)-(i==null?void 0:i.left))/2,transform:"translate(-50%, 0)",top:(i==null?void 0:i.top)-44,zIndex:1e3};if(t)return h("div",{ref:r,className:"not-kg-prose",style:l,...n,children:e})}function Ru({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i}){const[o]=fe.useLexicalComposerContext(),[l,s]=S.default.useState(!1),{imageUploader:a}=S.default.useContext(vr),{isSelected:c}=S.default.useContext(Is),u=S.default.useRef(),d=S.default.useRef(),g=async k=>{const p=k.target.files,_=await a.imageUploader(p);_&&o.update(()=>{y.$getNodeByKey(t).setSrc(_.src)})},m=k=>{o.update(()=>{y.$getNodeByKey(t).setCaption(k)})},f=k=>{o.update(()=>{y.$getNodeByKey(t).setAltText(k)})};return S.default.useEffect(()=>{if(!i)return;const k=setTimeout(()=>{yr({fileInputRef:u}),o.update(()=>{y.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(k)}}),Y(Pr,{children:[h(Ws,{isSelected:c,fileInputRef:u,onFileChange:g,src:e,altText:n,setAltText:f,caption:r,setCaption:m,handleDrag:k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?s(!0):k.type==="dragleave"&&s(!1)},handleDrop:async k=>{if(k.preventDefault(),k.stopPropagation(),k.dataTransfer.files&&k.dataTransfer.files[0]){const p=await a.imageUploader(k.dataTransfer.files);p&&(o.update(()=>{y.$getNodeByKey(t).setSrc(p.src)}),s(!1))}},isDraggedOver:l}),Y(Ou,{isVisible:e&&c,"data-kg-card-toolbar":"image",children:[h(Us,{onFileChange:g,fileInputRef:d}),Y(Vs,{children:[h(Le,{label:"Regular",icon:"imageRegular",isActive:!0}),h(Le,{label:"Wide",icon:"imageWide",isActive:!1}),h(Le,{label:"Full",icon:"imageFull",isActive:!1}),h(Ai,{}),h(Le,{label:"Link",icon:"link",isActive:!1}),h(Le,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>yr({fileInputRef:d})}),h(Ai,{}),h(Le,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}const Mi=y.createCommand();function Au(t){if(t instanceof HTMLImageElement){const{alt:e,src:n}=t;return{node:wr({altText:e,src:n})}}return null}const Xi=class extends y.DecoratorNode{constructor({src:n,caption:r,altText:i,uploadProgress:o,triggerFileDialog:l}={},s){super(s);Ue(this,"__src");Ue(this,"__caption");Ue(this,"__altText");Ue(this,"__uploadProgress");Ue(this,"__triggerFileDialog",!1);this.__caption=r||"",this.__altText=i||"",this.__src=n||"",this.__uploadProgress=o,this.__triggerFileDialog=l||!1}static getType(){return"image"}static clone(n){return new Xi({src:n.__src,caption:n.__caption,altText:n.__altText,uploadProgress:n.__uploadProgress},n.__key)}static importJSON(n){const{caption:r,altText:i,src:o}=n;return wr({altText:i,caption:r,src:o})}exportDOM(){const n=document.createElement("figure"),r=document.createElement("img"),i=document.createElement("figcaption");return r.src=this.getSrc(),i.innerHTML=this.getCaption(),n.appendChild(r),n.appendChild(i),{element:n}}static importDom(){return{img:(n=Node)=>({conversion:Au,priority:1})}}exportJSON(){const r=this.getSrc().startsWith("data:");return{altText:this.getAltText(),caption:this.getCaption(),src:r?"<base64String>":this.getSrc(),type:"image"}}createDOM(){return document.createElement("div")}updateDOM(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}getUploadProgress(){return this.__uploadProgress}setUploadProgress(n){const r=this.getWritable();return r.__uploadProgress=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}decorate(){return h(Oi,{nodeKey:this.getKey(),children:h(Ru,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,uploadProgress:this.__uploadProgress,triggerFileDialog:this.__triggerFileDialog})})}};let it=Xi;Ue(it,"kgMenu",{label:"Image",desc:"Upload, or embed with /image [url]",Icon:fo,insertCommand:Mi,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]});const wr=t=>(t.src&&delete t.triggerFileDialog,new it(t));function Mu(t){return t instanceof it}const Ys=[_t.HeadingNode,xt.ListNode,xt.ListItemNode,_t.QuoteNode,xr,Ms.LinkNode,Vt,wt,it],$u={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function Lu(t){console.error(t)}const Du={namespace:"KoenigEditor",theme:$u},Iu=({initialEditorState:t,nodes:e=[...Ys],onError:n=Lu,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},Du,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h(Id.LexicalComposer,{initialConfig:o,children:h(vr.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var Gs={},ot={},Me=y;function $i(t,e=!0){return t?!1:(t=js(),e&&(t=t.trim()),t==="")}function js(){return Me.$getRoot().getTextContent()}function Zs(t,e){if(!e||!$i(t,!1)||(t=Me.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Me.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Me.$isTextNode(n[r]))return!1}}return!0}ot.$canShowPlaceholder=Zs,ot.$canShowPlaceholderCurry=function(t,e){return()=>Zs(t,e)},ot.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Me.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Me.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ot.$isRootTextContentEmpty=$i,ot.$isRootTextContentEmptyCurry=function(t,e){return()=>$i(t,e)},ot.$rootTextContent=js,ot.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Me.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Me.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Me.$isTextNode(s)){var u=s.getTextContent(),d=e(u+a);if(s instanceof n){if(d===null||s.getLatest().__mode!==0){i(s);return}if(d=d.end-u.length,0<d){c=a.slice(0,d),c=u+c,s.select(),s.setTextContent(c),d===a.length?l.remove():(s=a.slice(d),l.setTextContent(s));return}}else if(d===null||d.start<u.length)return}for(;;){if(l=e(a),a=d=l===null?"":a.slice(l.end),d===""){if(u=c.getNextSibling(),Me.$isTextNode(u)){if(d=c.getTextContent()+u.getTextContent(),d=e(d),d===null){u instanceof n?i(u):u.markDirty();break}else if(d.start!==0)break}}else if(u=e(d),u!==null&&u.start===0)break;if(l===null)break;if(l.start===0&&Me.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Me.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Me.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var Pu=ot,Js={},Cr=y;Js.registerDragonSupport=function(t){let e=n=>{var r=t.getRootElement();if(document.activeElement===r&&(r=n.data,typeof r=="string")){try{var i=JSON.parse(r)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"&&(i=i.payload)&&i.functionId==="makeChanges"&&(i=i.args)){const[o,l,s,a,c]=i;t.update(()=>{const u=Cr.$getSelection();if(Cr.$isRangeSelection(u)){var d=u.anchor;let g=d.getNode(),m=0,f=0;Cr.$isTextNode(g)&&0<=o&&0<=l&&(m=o,f=o+l,u.setTextNodeRange(g,m,g,f)),(m!==f||s!=="")&&(u.insertRawText(s),g=d.getNode()),Cr.$isTextNode(g)&&(m=a,f=a+c,d=g.getTextContentSize(),m=m>d?d:m,f=f>d?d:f,u.setTextNodeRange(g,m,g,f)),n.stopImmediatePropagation()}})}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}};var Fu=Js,zu=fe,lt=S.default,Bu=Pu,Xs=xe,Qs=hc.default,Hu=Fu,Ku=_t,Li=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?lt.useLayoutEffect:lt.useEffect;function qs(t){return t.getEditorState().read(Bu.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function Uu(t){let[e,n]=lt.useState(()=>qs(t));return Li(()=>{function r(){let i=qs(t);n(i)}return r(),Xs.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function Wu(t){let[e,n]=lt.useState(()=>t.getDecorators());return Li(()=>t.registerDecoratorListener(r=>{Qs.flushSync(()=>{n(r)})}),[t]),lt.useEffect(()=>{n(t.getDecorators())},[t]),lt.useMemo(()=>{let r=[],i=Object.keys(e);for(let l=0;l<i.length;l++){var o=i[l];let s=e[o];o=t.getElementByKey(o),o!==null&&r.push(Qs.createPortal(s,o))}return r},[e,t])}function Vu(t){Li(()=>Xs.mergeRegister(Ku.registerRichText(t),Hu.registerDragonSupport(t)),[t])}Gs.RichTextPlugin=function({contentEditable:t,placeholder:e}){let[n]=zu.useLexicalComposerContext(),r=Uu(n),i=Wu(n);return Vu(n),lt.createElement(lt.Fragment,null,t,r&&e,i)};var Yu=Gs,ea={},Gu=fe,bn=S.default,ju=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?bn.useLayoutEffect:bn.useEffect;ea.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:u,autoComplete:d,autoCorrect:g,className:m,id:f,role:v="textbox",spellCheck:E=!0,style:k,tabIndex:p,testid:_}){let[T]=Gu.useLexicalComposerContext(),[C,N]=bn.useState(!1),O=bn.useCallback(D=>{T.setRootElement(D)},[T]);return ju(()=>(N(T.isEditable()),T.registerEditableListener(D=>{N(D)})),[T]),bn.createElement("div",{"aria-activedescendant":C?t:null,"aria-autocomplete":C?e:null,"aria-controls":C?n:null,"aria-describedby":r,"aria-expanded":C&&v==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":C?a:null,"aria-required":c,autoCapitalize:u!==void 0?String(u):void 0,autoComplete:d,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:C,"data-testid":_,id:f,ref:O,role:C?v:void 0,spellCheck:E,style:k,tabIndex:p})};var Zu=ea,Di={},Ii={},Ju=xe,X=y;function Xu(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(X.$isRangeSelection(o)&&X.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||X.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&X.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!X.$isTextNode(t)||!X.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function Qu(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let u=Date.now();if(c.has("historic"))return r=0,n=u,2;let d=Xu(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,f=c.has("history-push");if(!f&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const v=o._selection,E=i._selection;return 0<s.size||0<a.size?f===!1&&d!==0&&d===r&&u<n+e&&m||s.size===1&&(f=Array.from(s)[0],m=i._nodeMap.get(f),f=o._nodeMap.get(f),m=X.$isTextNode(m)&&X.$isTextNode(f)?m.__type===f.__type&&m.__text===f.__text&&m.__mode===f.__mode&&m.__detail===f.__detail&&m.__style===f.__style&&m.__format===f.__format&&m.__parent===f.__parent:!1,m)?0:1:E===null&&v!==null?0:2})();return n=u,r=d,g}}Ii.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Ii.registerHistory=function(t,e,n){let r=Qu(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:u})=>{const d=e.current,g=e.redoStack,m=e.undoStack,f=d===null?null:d.editorState;if(d===null||l!==f){if(a=r(s,l,d,a,c,u),a===1)g.length!==0&&(e.redoStack=[]),d!==null&&(m.push({...d,undoSelection:s.read(X.$getSelection)}),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Ju.mergeRegister(t.registerCommand(X.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(X.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(X.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(X.CAN_REDO_COMMAND,!1),t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),!0),X.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var qu=Ii,eg=fe,Pi=qu,ta=S.default;function tg(t,e,n=1e3){let r=ta.useMemo(()=>e||Pi.createEmptyHistoryState(),[e]);ta.useEffect(()=>Pi.registerHistory(t,r,n),[n,t,r])}Di.createEmptyHistoryState=Pi.createEmptyHistoryState,Di.HistoryPlugin=function({externalHistoryState:t}){let[e]=eg.useLexicalComposerContext();return tg(e,t),null};var ng=Di,na={},rg=fe,ra=S.default,ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ra.useLayoutEffect:ra.useEffect;na.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=rg.useLexicalComposerContext();return ig(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var og=na,ia={},De=xt,lg=fe,oa=S.default,sg=xe,je=y;function ag(t){oa.useEffect(()=>sg.mergeRegister(t.registerCommand(je.INDENT_CONTENT_COMMAND,()=>(De.indentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.OUTDENT_CONTENT_COMMAND,()=>(De.outdentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_ORDERED_LIST_COMMAND,()=>(De.insertList(t,"number"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_UNORDERED_LIST_COMMAND,()=>(De.insertList(t,"bullet"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.REMOVE_LIST_COMMAND,()=>(De.removeList(t),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.INSERT_PARAGRAPH_COMMAND,()=>!!De.$handleListInsertParagraph(),je.COMMAND_PRIORITY_LOW)),[t])}ia.ListPlugin=function(){let[t]=lg.useLexicalComposerContext();return oa.useEffect(()=>{if(!t.hasNodes([De.ListNode,De.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),ag(t),null};var cg=ia;const la=10;function Yt(t){const e=y.$createNodeSelection();e.add(t.getKey()),y.$setSelection(e)}function sa(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function dg({editor:t,containerElem:e}){return S.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=y.$getSelection();y.$isNodeSelection(i)&&y.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),S.default.useEffect(()=>xe.mergeRegister(t.registerCommand(y.KEY_ARROW_UP_COMMAND,()=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){const i=n.getNodes()[0].getPreviousSibling();if(!i)return!0;if(y.$isDecoratorNode(i))return Yt(i),!0}if(y.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,l=n.anchor.offset===0&&n.focus.offset===0;if(o||l){const s=r.getPreviousSibling();if(y.$isDecoratorNode(s))return Yt(s),!0}else{const a=i.getRangeAt(0).cloneRange().getClientRects();if(a.length>0){const c=a[1]||a[0],d=sa(i.anchorNode).getBoundingClientRect();if(Math.abs(c.top-d.top)<=la){const m=r.getPreviousSibling();if(y.$isDecoratorNode(m))return Yt(m),!0}}}}return!1},y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,()=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){const i=n.getNodes()[0].getNextSibling();if(y.$isDecoratorNode(i))return Yt(i),!0}if(y.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=sa(i.anchorNode),l=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,s=i.rangeCount!==0&&i.anchorNode===o&&i.anchorOffset===o.children.length-1&&i.focusOffset===o.children.length-1;if(l||s){const a=r.getNextSibling();if(y.$isDecoratorNode(a))return Yt(a),!0}else{const c=i.getRangeAt(0).cloneRange().getClientRects();if(c.length>0){const u=c[0],d=o.getBoundingClientRect();if(Math.abs(u.bottom-d.bottom)<la){const g=r.getNextSibling();if(y.$isDecoratorNode(g))return Yt(g),!0}}}}return!1},y.COMMAND_PRIORITY_HIGH))),null}function aa({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=fe.useLexicalComposerContext();return dg({editor:e,containerElem:t})}var Q={},ae={},ca={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
30
+ `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let d=r.getKey();o=t.getEditorState().read(()=>{const u=F.$getNodeByKey(d);return F.$isTextNode(u)&&u.isSimpleText()?u.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===d,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var We=se,ys=We,Bt=w;function ks(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Bt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=ys.$cloneWithProperties(e),l=Bt.$isTextNode(l)&&r!=null?ys.$sliceSelectedTextNodeContent(r,l):l);let s=Bt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let d=new DocumentFragment;for(let u=0;u<s.length;u++){let g=s[u],m=ks(t,g,d,r);!i&&Bt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(d),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(d),i}let Cs=new Set(["STYLE"]);function Es(t,e,n=new Map,r,i=!1){let o=[];if(Cs.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,d]of n)if(l=d(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],d=0;d<t.length;d++)r.push(...Es(t[d],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Bt.$isElementNode(l)&&l.append(...r),o}ki.$generateHtmlFromNodes=function(t,e){if(document==null||window==null)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),r=Bt.$getRoot().getChildren();for(let i=0;i<r.length;i++)ks(t,r[i],n,e);return n.innerHTML},ki.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];Cs.has(i.nodeName)||(i=Es(i,t),i!==null&&(n=n.concat(i)))}return n};var Gd=ki,Ns=Gd,Ts=xt,Ei=We,Cn=xe,z=w;function Ye(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ni(t,e,n){(z.DEPRECATED_$isGridSelection(n)||Cn.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&Cn.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?Zd(e,n,!1,t):jd(e,n)}function jd(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];Ts.$isListItemNode(l)?(i==null&&(i=Ts.$createListNode("bullet"),n.push(i)),i.append(l)):(i!=null&&(i=null),z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)||z.$isLineBreakNode(l)?(r===null&&(r=z.$createParagraphNode(),n.push(r)),r!==null&&r.append(l)):(n.push(l),r=null))}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||Ye(41),t.append(...n))}function Zd(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||Ye(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=Cn.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&Cn.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&Cn.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||Ye(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,d;for(let m=i;m<=s;m++){var u=a[m];z.DEPRECATED_$isGridRowNode(u)||Ye(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||Ye(24),u=u.getChildren(),g=g.getChildren();let f=0;for(let _=n;_<=o;_++){let E=u[_];z.DEPRECATED_$isGridCellNode(E)||Ye(25);let T=g[f];z.DEPRECATED_$isGridCellNode(T)||Ye(25),m===i&&_===n?c=E.getKey():m===s&&_===o&&(d=E.getKey());let p=E.getChildren();T.getChildren().forEach(v=>{z.$isTextNode(v)&&z.$createParagraphNode().append(v),E.append(v)}),p.forEach(v=>v.remove()),f++}l++}c&&d&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,d),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Ss(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Ei.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Ei.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&Ye(58);var d=s.children;for(z.$isElementNode(c)&&(Array.isArray(d)||Ye(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],d=Ss(t,e,c,s.children),!i&&z.$isElementNode(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function bs(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ss(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Os(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Ei.$addNodeStyle(r),e.push(r)}return e}nt.$generateJSONFromSelectedNodes=bs,nt.$generateNodesFromSerializedNodes=Os,nt.$getHtmlContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:Ns.$generateHtmlFromNodes(t,e)},nt.$getLexicalContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(bs(t,e))},nt.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},nt.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=Os(o.nodes);return Ni(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Ns.$generateNodesFromDOM(n,i);return Ni(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},nt.$insertGeneratedNodes=Ni;var Jd=nt,hr=Jd,fr=We,Ht=xe,C=w;let Kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xd=Kt&&"documentMode"in document?document.documentMode:null;Kt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Kt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Qd=Kt&&"InputEvent"in window&&!Xd?"getTargetRanges"in new window.InputEvent("input"):!1,qd=Kt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),eu=Kt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class En extends C.ElementNode{static getType(){return"quote"}static clone(e){return new En(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return Ht.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:tu,priority:0})}}static importJSON(e){let n=Ti();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=C.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=C.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Ti(){return new En}class Nn extends C.ElementNode{static getType(){return"heading"}static clone(e){return new Nn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&Ht.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Wt,priority:0}),h2:()=>({conversion:Wt,priority:0}),h3:()=>({conversion:Wt,priority:0}),h4:()=>({conversion:Wt,priority:0}),h5:()=>({conversion:Wt,priority:0}),h6:()=>({conversion:Wt,priority:0}),p:e=>(e=e.firstChild,e!==null&&Rs(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>Rs(e)?{conversion:()=>({node:pr("h1")}),priority:3}:null}}static importJSON(e){let n=pr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=C.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=C.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function Rs(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Wt(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=pr(t)),{node:e}}function tu(){return{node:Ti()}}function pr(t){return new Nn(t)}function nu(t,e){t.preventDefault(),e.update(()=>{let n=C.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(C.$isRangeSelection(n)||C.DEPRECATED_$isGridSelection(n))&&hr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}function As(t,e){var n=C.$getSelection();if(n!==null){t.preventDefault(),t=t instanceof KeyboardEvent?null:t.clipboardData;let r=hr.$getHtmlContent(e);e=hr.$getLexicalContent(e),t!=null?(r!==null&&t.setData("text/html",r),e!==null&&t.setData("application/x-lexical-editor",e),n=n.getTextContent(),t.setData("text/plain",n)):(n=navigator.clipboard,n!=null&&(t=[new ClipboardItem({"text/html":new Blob([r],{type:"text/html"})})],n.write(t)))}}function ru(t,e){As(t,e),t=C.$getSelection(),C.$isRangeSelection(t)?t.removeText():C.$isNodeSelection(t)&&t.getNodes().forEach(n=>n.remove())}function $s(t,e){var n=C.$getSelection();if(C.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let o=0;o<n.length;o++){let l=n[o];var i=l.getKey();r.has(i)||(r.add(i),i=Ht.$getNearestBlockElementAncestorOrThrow(l),i.canInsertTab()?t(l):i.canIndent()&&e(i))}}}function mr(t){return t=C.$getNearestNodeFromDOMNode(t),C.$isDecoratorNode(t)}tt.$createHeadingNode=pr,tt.$createQuoteNode=Ti,tt.$isHeadingNode=function(t){return t instanceof Nn},tt.$isQuoteNode=function(t){return t instanceof En},tt.HeadingNode=Nn,tt.QuoteNode=En,tt.registerRichText=function(t){return Ht.mergeRegister(t.registerCommand(C.CLICK_COMMAND,()=>{const e=C.$getSelection();return C.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(C.DELETE_CHARACTER_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.DELETE_WORD_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.DELETE_LINE_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=C.$getSelection();if(typeof e=="string")C.$isRangeSelection(n)?n.insertText(e):C.DEPRECATED_$isGridSelection(n);else{if(!C.$isRangeSelection(n)&&!C.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?hr.$insertDataTransferForRichText(r,n,t):C.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.REMOVE_TEXT_COMMAND,()=>{const e=C.$getSelection();return C.$isRangeSelection(e)?(e.removeText(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.FORMAT_TEXT_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(n.formatText(e),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.FORMAT_ELEMENT_COMMAND,e=>{var n=C.$getSelection();if(!C.$isRangeSelection(n)&&!C.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)Ht.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.INSERT_LINE_BREAK_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.INSERT_PARAGRAPH_COMMAND,()=>{const e=C.$getSelection();return C.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.INDENT_CONTENT_COMMAND,()=>($s(()=>{t.dispatchCommand(C.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.OUTDENT_CONTENT_COMMAND,()=>($s(e=>{C.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(C.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ARROW_UP_COMMAND,e=>{const n=C.$getSelection();return C.$isNodeSelection(n)&&!mr(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ARROW_DOWN_COMMAND,()=>{var e=C.$getSelection();return C.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ARROW_LEFT_COMMAND,e=>{const n=C.$getSelection();if(C.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return C.$isRangeSelection(n)&&fr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),fr.$moveCharacter(n,r,!0),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ARROW_RIGHT_COMMAND,e=>{const n=C.$getSelection();if(C.$isNodeSelection(n)&&!mr(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return C.$isRangeSelection(n)?(r=e.shiftKey,fr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),fr.$moveCharacter(n,r,!1),!0):!1):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_BACKSPACE_COMMAND,e=>{if(mr(e.target))return!1;const n=C.$getSelection();if(!C.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!C.$isRootNode(r)&&0<Ht.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(C.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(C.DELETE_CHARACTER_COMMAND,!0)},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_DELETE_COMMAND,e=>{if(mr(e.target))return!1;const n=C.$getSelection();return C.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(C.DELETE_CHARACTER_COMMAND,!1)):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ENTER_COMMAND,e=>{const n=C.$getSelection();if(!C.$isRangeSelection(n))return!1;if(e!==null){if((eu||qd)&&Qd)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(C.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(C.INSERT_PARAGRAPH_COMMAND,void 0)},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_TAB_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?C.OUTDENT_CONTENT_COMMAND:C.INDENT_CONTENT_COMMAND,void 0)):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.KEY_ESCAPE_COMMAND,()=>{const e=C.$getSelection();return C.$isRangeSelection(e)?(t.blur(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.DROP_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(e.preventDefault(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.DRAGSTART_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)?(e.preventDefault(),!0):!1},C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.COPY_COMMAND,e=>(As(e,t),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.CUT_COMMAND,e=>(ru(e,t),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(C.PASTE_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)||C.DEPRECATED_$isGridSelection(n)?(nu(e,t),!0):!1},C.COMMAND_PRIORITY_EDITOR))};var _t=tt,Ge={},iu=xe,rt=w;class Ut extends rt.ElementNode{static getType(){return"link"}static clone(e){return new Ut(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),iu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:ou,priority:1})}}static importJSON(e){let n=Tn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),rt.$isElementNode(e)){let n=Tn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!rt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function ou(t){let e=null;return t instanceof HTMLAnchorElement&&(e=Tn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")})),{node:e}}function Tn(t,e){return new Ut(t,e)}function vt(t){return t instanceof Ut}class Sn extends Ut{static getType(){return"autolink"}static clone(e){return new Sn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Si(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),rt.$isElementNode(e)){let n=Si(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Si(t,e){return new Sn(t,e)}let lu=rt.createCommand();function su(t){return au(t,e=>vt(e))}function au(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}Ge.$createAutoLinkNode=Si,Ge.$createLinkNode=Tn,Ge.$isAutoLinkNode=function(t){return t instanceof Sn},Ge.$isLinkNode=vt,Ge.AutoLinkNode=Sn,Ge.LinkNode=Ut,Ge.TOGGLE_LINK_COMMAND=lu,Ge.toggleLink=function(t,e={}){let{target:n,rel:r}=e;if(e=rt.$getSelection(),rt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),vt(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=vt(i)?i:su(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==void 0&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!rt.$isElementNode(s)||s.isInline()))if(vt(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==void 0&&a.setRel(r);else if(a.is(o)||(o=a,l=Tn(t,{rel:r,target:n}),vt(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),vt(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Ms=Ge;class xr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new xr(e.__key)}createDOM(e){const n=document.createElement("aside");return xe.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:cu,priority:0})}}static importJSON(e){const n=bi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=w.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function cu(){return{node:bi}}function bi(){return new xr}var Ls={},du=fe,wt=w,_r=S.default;function Ds(t,e){return t.getEditorState().read(()=>{let n=wt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}Ls.useLexicalNodeSelection=function(t){let[e]=du.useLexicalComposerContext(),[n,r]=_r.useState(()=>Ds(e,t));_r.useEffect(()=>e.registerUpdateListener(()=>{r(Ds(e,t))}),[e,t]);let i=_r.useCallback(l=>{e.update(()=>{let s=wt.$getSelection();wt.$isNodeSelection(s)||(s=wt.$createNodeSelection(),wt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=_r.useCallback(()=>{e.update(()=>{const l=wt.$getSelection();wt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var Is=Ls;const Ps=S.default.createContext({});var Le={exports:{}},uu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gu=uu,hu=gu;function Fs(){}function zs(){}zs.resetWarningCache=Fs;var fu=function(){function t(r,i,o,l,s,a){if(a!==hu){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:zs,resetWarningCache:Fs};return n.PropTypes=n,n};Le.exports=fu();const Oi=S.default.forwardRef(({isSelected:t,cardWidth:e,cardType:n,children:r,...i},o)=>h("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"} ${e==="wide"?"mx-[calc(50%-(50vw-var(--kg-breakout-adjustment))-.8rem)] w-[calc(65vw+2px-var(--kg-breakout-adjustment))] min-w-[calc(100%+3.6rem)] sm:min-w-[calc(100%+10rem)] lg:min-w-[calc(100%+18rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment))]":e==="full"?"lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment))]":""}`,ref:o,"data-kg-card":n,"data-kg-card-selected":t,...i,children:r}));Oi.propTypes={isSelected:Le.exports.bool,cardWidth:Le.exports.oneOf(["regular","wide","full"])},Oi.defaultProps={cardWidth:"regular"};const Ri=({nodeKey:t,children:e})=>{const[n]=fe.useLexicalComposerContext(),[r,i,o]=Is.useLexicalNodeSelection(t),[l,s]=S.default.useState(null),[a,c]=S.default.useState(null),[d,u]=S.default.useState("regular"),g=S.default.useRef(null);return S.default.useLayoutEffect(()=>{n.getEditorState().read(()=>{const m=w.$getNodeByKey(t);c(m.getType())})},[]),S.default.useEffect(()=>xe.mergeRegister(n.registerUpdateListener(({editorState:m})=>{s(m.read(()=>w.$getSelection()))}),n.registerCommand(w.CLICK_COMMAND,m=>(g.current.contains(m.target)?(o(),i(!0)):r&&i(!1),!1),w.COMMAND_PRIORITY_LOW),n.registerCommand(w.KEY_ENTER_COMMAND,m=>{const f=w.$getSelection();if(r&&w.$isNodeSelection(f)&&f.getNodes().length===1){m.preventDefault();const _=w.$getNodeByKey(t),E=w.$createParagraphNode();return _.getTopLevelElementOrThrow().insertAfter(E),E.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_BACKSPACE_COMMAND,m=>{const f=w.$getSelection();if(r&&w.$isNodeSelection(f)&&f.getNodes().length===1){m.preventDefault();const _=w.$getNodeByKey(t);if(_.getType()==="image"&&m.target.matches("input"))return n.update(()=>{const p=_.getCaption();_.setCaption(p.slice(0,-1))}),!1;const E=_.getPreviousSibling(),T=_.getNextSibling();if(E)if(E.selectEnd)E.selectEnd();else if(w.$isDecoratorNode(E)){const p=w.$createNodeSelection();p.add(E.getKey()),w.$setSelection(p)}else _.selectPrevious();else if(T)if(T.selectStart)T.selectStart();else if(w.$isDecoratorNode(T)){const p=w.$createNodeSelection();p.add(T.getKey()),w.$setSelection(p)}else _.selectNext();return _.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_DELETE_COMMAND,m=>{const f=w.$getSelection();if(r&&w.$isNodeSelection(f)&&f.getNodes().length===1){m.preventDefault();const _=w.$getNodeByKey(t),E=_.getNextSibling();if(E)if(E.selectStart)E.selectStart();else if(w.$isDecoratorNode(E)){const T=w.$createNodeSelection();T.add(E.getKey()),w.$setSelection(T)}else _.selectNext();else{const T=w.$createParagraphNode();_.getTopLevelElementOrThrow().insertAfter(T),T.select()}return _.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[n,r,i,o,t]),h(Ps.Provider,{value:{isSelected:r,cardWidth:d,setCardWidth:u,selection:l,cardContainerRef:g},children:h(Oi,{isSelected:r,cardType:a,ref:g,cardWidth:d,children:e})})};function pu(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const Bs=w.createCommand(),Xi=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Xi(e.__key)}static importJSON(e){return Ai()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Ri,{nodeKey:this.getKey(),className:"inline-block",children:h(pu,{})})}};let yt=Xi;ze(yt,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:mo,insertCommand:Bs,matches:["divider","horizontal-rule","hr"]});function Ai(){return new yt}function mu(t){return t instanceof yt}const xu=({el:t,value:e})=>{te.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function Hs({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return xu({el:i,value:t}),h("code",{children:h("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}Hs.propTypes={code:Le.exports.string},w.createCommand();function _u({code:t,language:e,nodeKey:n,editor:r}){return h(Hs,{code:t,updateCode:l=>{r.update(()=>{w.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{w.$getNodeByKey(n).setLanguage(l.target.value)})}})}class Vt extends w.DecoratorNode{constructor(n,r,i){super(i);ze(this,"__code","");ze(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new Vt(n.__key,n.__code)}static importJSON(n){return Ks()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return h(Ri,{nodeKey:this.getKey(),children:h(_u,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function Ks(t,e){return new Vt(t,e)}function vu(t){return t instanceof Vt}const vr=S.default.createContext({});function wu({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function yu({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function ku({isEditingAlt:t,onClick:e}){return h("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function Cu({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=d=>{d.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return Y("figcaption",{className:"flex w-full p-2",children:[s?h(yu,{value:t,placeholder:e,onChange:n}):h(wu,{value:r,placeholder:i,onChange:o}),n&&h(ku,{isEditingAlt:s,onClick:c})]})}const Eu=({text:t})=>h("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-700 transition-all group-hover:text-grey-800",children:t});function Nu({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return h("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,children:h("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?h(Eu,{text:"Drop it like it's hot \u{1F525}"}):Y("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[h(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),h("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function wr({fileInputRef:t}){t.current.click()}function Ws({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function Tu({src:t,alt:e}){return h("img",{src:t,alt:e})}function Su({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return Y(Pr,{children:[h(Nu,{handleDrag:n,handleDrop:r,filePicker:()=>wr({fileInputRef:o}),desc:"Click to select an image",Icon:Ir,isDraggedOver:i}),h(Ws,{filePicker:()=>wr({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}function Us({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:d,isDraggedOver:u,cardWidth:g}){const m=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(m)},[m,s]),h(Pr,{children:Y("figure",{"data-kg-card-width":g,ref:m,children:[e?h(Tu,{src:e,alt:o}):h(Su,{handleDrag:c,onFileChange:n,setFileInputRef:_=>{a&&(a.current=_.current)},handleDrop:d,isDraggedOver:u}),h(Cu,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}Us.propTypes={isSelected:Le.exports.bool,setAltText:Le.exports.func,caption:Le.exports.string,altText:Le.exports.string,setCaption:Le.exports.func,src:Le.exports.string,isDraggedOver:Le.exports.bool};const bu={bold:ro,italic:io,headingOne:oo,headingTwo:lo,quote:so,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:Dr,imageRegular:ao,imageWide:co,imageFull:uo,imageReplace:go,add:ho,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img",...t},x.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Pn};function Vs({children:t,...e}){return h("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function De({label:t,isActive:e,onClick:n,icon:r,...i}){const o=bu[r];return h("li",{className:"m-0 flex p-0 first:m-0",...i,children:h("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:h(o,{className:e?"fill-green":"fill-white"})})})}function $i(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function Ou({isVisible:t,children:e,...n}){const r=S.default.useRef(null),[i,o]=S.default.useState({top:0,left:0,right:0});S.default.useLayoutEffect(()=>{if(t){const s=r.current.parentElement.getBoundingClientRect();o({top:0,left:s.left,right:s.right})}},[t,n==null?void 0:n.cardWidth]);const l={position:"absolute",left:((i==null?void 0:i.right)-(i==null?void 0:i.left))/2,transform:"translate(-50%, 0)",top:(i==null?void 0:i.top)-44,zIndex:1e3};if(t)return h("div",{ref:r,className:"not-kg-prose",style:l,...n,children:e})}function Ru({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i}){const[o]=fe.useLexicalComposerContext(),[l,s]=S.default.useState(!1),{imageUploader:a}=S.default.useContext(vr),{isSelected:c,cardWidth:d,setCardWidth:u}=S.default.useContext(Ps),g=S.default.useRef(),m=S.default.useRef(),f=async y=>{const k=y.target.files,N=await a.imageUploader(k);N&&o.update(()=>{w.$getNodeByKey(t).setSrc(N.src)})},_=y=>{o.update(()=>{w.$getNodeByKey(t).setCaption(y)})},E=y=>{o.update(()=>{w.$getNodeByKey(t).setAltText(y)})};S.default.useEffect(()=>{if(!i)return;const y=setTimeout(()=>{wr({fileInputRef:g}),o.update(()=>{w.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(y)}});const T=y=>{o.update(()=>{w.$getNodeByKey(t).setCardWidth(y),u(y)})};return Y(Pr,{children:[h(Us,{isSelected:c,fileInputRef:g,onFileChange:f,src:e,altText:n,setAltText:E,caption:r,setCaption:_,handleDrag:y=>{y.preventDefault(),y.stopPropagation(),y.type==="dragenter"||y.type==="dragover"?s(!0):y.type==="dragleave"&&s(!1)},handleDrop:async y=>{if(y.preventDefault(),y.stopPropagation(),y.dataTransfer.files&&y.dataTransfer.files[0]){const k=await a.imageUploader(y.dataTransfer.files);k&&(o.update(()=>{w.$getNodeByKey(t).setSrc(k.src)}),s(!1))}},isDraggedOver:l,cardWidth:d}),Y(Ou,{isVisible:e&&c,"data-kg-card-toolbar":"image",cardWidth:d,children:[h(Ws,{onFileChange:f,fileInputRef:m}),Y(Vs,{children:[h(De,{label:"Regular",icon:"imageRegular",isActive:d==="regular",onClick:()=>T("regular")}),h(De,{label:"Wide",icon:"imageWide",isActive:d==="wide",onClick:()=>T("wide")}),h(De,{label:"Full",icon:"imageFull",isActive:d==="full",onClick:()=>T("full")}),h($i,{}),h(De,{label:"Link",icon:"link",isActive:!1}),h(De,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>wr({fileInputRef:m})}),h($i,{}),h(De,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}const Mi=w.createCommand();function Au(t){if(t instanceof HTMLImageElement){const{alt:e,src:n}=t;return{node:yr({altText:e,src:n})}}return null}const Qi=class extends w.DecoratorNode{constructor({src:n,caption:r,altText:i,cardWidth:o,uploadProgress:l,triggerFileDialog:s}={},a){super(a);ze(this,"__src");ze(this,"__caption");ze(this,"__altText");ze(this,"__cardWidth");ze(this,"__uploadProgress");ze(this,"__triggerFileDialog",!1);this.__caption=r||"",this.__altText=i||"",this.__src=n||"",this.__cardWidth=o||"regular",this.__uploadProgress=l,this.__triggerFileDialog=s||!1}static getType(){return"image"}static clone(n){return new Qi({src:n.__src,caption:n.__caption,altText:n.__altText,cardWidth:n.__cardWidth,uploadProgress:n.__uploadProgress},n.__key)}static importJSON(n){const{caption:r,altText:i,src:o,cardWidth:l}=n;return yr({altText:i,caption:r,src:o,cardWidth:l})}exportDOM(){const n=document.createElement("figure"),r=document.createElement("img"),i=document.createElement("figcaption");return r.src=this.getSrc(),i.innerHTML=this.getCaption(),n.appendChild(r),n.appendChild(i),{element:n}}static importDom(){return{img:(n=Node)=>({conversion:Au,priority:1})}}exportJSON(){const r=this.getSrc().startsWith("data:");return{altText:this.getAltText(),caption:this.getCaption(),src:r?"<base64String>":this.getSrc(),type:"image",cardWidth:this.__cardWidth}}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}setCardWidth(n){const r=this.getWritable();return r.__cardWidth=n}getCardWidth(){return this.__cardWidth}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}getUploadProgress(){return this.__uploadProgress}setUploadProgress(n){const r=this.getWritable();return r.__uploadProgress=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}decorate(){return h(Ri,{nodeKey:this.getKey(),children:h(Ru,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,uploadProgress:this.__uploadProgress,triggerFileDialog:this.__triggerFileDialog})})}};let it=Qi;ze(it,"kgMenu",{label:"Image",desc:"Upload, or embed with /image [url]",Icon:po,insertCommand:Mi,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]});const yr=t=>(t.src&&delete t.triggerFileDialog,new it(t));function $u(t){return t instanceof it}const Ys=[_t.HeadingNode,xt.ListNode,xt.ListItemNode,_t.QuoteNode,xr,Ms.LinkNode,Vt,yt,it],Mu={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function Lu(t){console.error(t)}const Du={namespace:"KoenigEditor",theme:Mu},Iu=({initialEditorState:t,nodes:e=[...Ys],onError:n=Lu,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},Du,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h(Id.LexicalComposer,{initialConfig:o,children:h(vr.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var Gs={},ot={},$e=w;function Li(t,e=!0){return t?!1:(t=js(),e&&(t=t.trim()),t==="")}function js(){return $e.$getRoot().getTextContent()}function Zs(t,e){if(!e||!Li(t,!1)||(t=$e.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if($e.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!$e.$isTextNode(n[r]))return!1}}return!0}ot.$canShowPlaceholder=Zs,ot.$canShowPlaceholderCurry=function(t,e){return()=>Zs(t,e)},ot.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if($e.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if($e.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ot.$isRootTextContentEmpty=Li,ot.$isRootTextContentEmptyCurry=function(t,e){return()=>Li(t,e)},ot.$rootTextContent=js,ot.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=$e.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform($e.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if($e.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),$e.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&$e.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),$e.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),$e.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var Pu=ot,Js={},kr=w;Js.registerDragonSupport=function(t){let e=n=>{var r=t.getRootElement();if(document.activeElement===r&&(r=n.data,typeof r=="string")){try{var i=JSON.parse(r)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"&&(i=i.payload)&&i.functionId==="makeChanges"&&(i=i.args)){const[o,l,s,a,c]=i;t.update(()=>{const d=kr.$getSelection();if(kr.$isRangeSelection(d)){var u=d.anchor;let g=u.getNode(),m=0,f=0;kr.$isTextNode(g)&&0<=o&&0<=l&&(m=o,f=o+l,d.setTextNodeRange(g,m,g,f)),(m!==f||s!=="")&&(d.insertRawText(s),g=u.getNode()),kr.$isTextNode(g)&&(m=a,f=a+c,u=g.getTextContentSize(),m=m>u?u:m,f=f>u?u:f,d.setTextNodeRange(g,m,g,f)),n.stopImmediatePropagation()}})}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}};var Fu=Js,zu=fe,lt=S.default,Bu=Pu,Xs=xe,Qs=hc.default,Hu=Fu,Ku=_t,Di=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?lt.useLayoutEffect:lt.useEffect;function qs(t){return t.getEditorState().read(Bu.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function Wu(t){let[e,n]=lt.useState(()=>qs(t));return Di(()=>{function r(){let i=qs(t);n(i)}return r(),Xs.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function Uu(t){let[e,n]=lt.useState(()=>t.getDecorators());return Di(()=>t.registerDecoratorListener(r=>{Qs.flushSync(()=>{n(r)})}),[t]),lt.useEffect(()=>{n(t.getDecorators())},[t]),lt.useMemo(()=>{let r=[],i=Object.keys(e);for(let l=0;l<i.length;l++){var o=i[l];let s=e[o];o=t.getElementByKey(o),o!==null&&r.push(Qs.createPortal(s,o))}return r},[e,t])}function Vu(t){Di(()=>Xs.mergeRegister(Ku.registerRichText(t),Hu.registerDragonSupport(t)),[t])}Gs.RichTextPlugin=function({contentEditable:t,placeholder:e}){let[n]=zu.useLexicalComposerContext(),r=Wu(n),i=Uu(n);return Vu(n),lt.createElement(lt.Fragment,null,t,r&&e,i)};var Yu=Gs,ea={},Gu=fe,bn=S.default,ju=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?bn.useLayoutEffect:bn.useEffect;ea.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:d,autoComplete:u,autoCorrect:g,className:m,id:f,role:_="textbox",spellCheck:E=!0,style:T,tabIndex:p,testid:v}){let[y]=Gu.useLexicalComposerContext(),[k,N]=bn.useState(!1),O=bn.useCallback(D=>{y.setRootElement(D)},[y]);return ju(()=>(N(y.isEditable()),y.registerEditableListener(D=>{N(D)})),[y]),bn.createElement("div",{"aria-activedescendant":k?t:null,"aria-autocomplete":k?e:null,"aria-controls":k?n:null,"aria-describedby":r,"aria-expanded":k&&_==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":k?a:null,"aria-required":c,autoCapitalize:d!==void 0?String(d):void 0,autoComplete:u,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:k,"data-testid":v,id:f,ref:O,role:k?_:void 0,spellCheck:E,style:T,tabIndex:p})};var Zu=ea,Ii={},Pi={},Ju=xe,X=w;function Xu(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(X.$isRangeSelection(o)&&X.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||X.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&X.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!X.$isTextNode(t)||!X.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function Qu(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let u=Xu(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,f=c.has("history-push");if(!f&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const _=o._selection,E=i._selection;return 0<s.size||0<a.size?f===!1&&u!==0&&u===r&&d<n+e&&m||s.size===1&&(f=Array.from(s)[0],m=i._nodeMap.get(f),f=o._nodeMap.get(f),m=X.$isTextNode(m)&&X.$isTextNode(f)?m.__type===f.__type&&m.__text===f.__text&&m.__mode===f.__mode&&m.__detail===f.__detail&&m.__style===f.__style&&m.__format===f.__format&&m.__parent===f.__parent:!1,m)?0:1:E===null&&_!==null?0:2})();return n=d,r=u,g}}Pi.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Pi.registerHistory=function(t,e,n){let r=Qu(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:d})=>{const u=e.current,g=e.redoStack,m=e.undoStack,f=u===null?null:u.editorState;if(u===null||l!==f){if(a=r(s,l,u,a,c,d),a===1)g.length!==0&&(e.redoStack=[]),u!==null&&(m.push({...u,undoSelection:s.read(X.$getSelection)}),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Ju.mergeRegister(t.registerCommand(X.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(X.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(X.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(X.CAN_REDO_COMMAND,!1),t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),!0),X.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var qu=Pi,eg=fe,Fi=qu,ta=S.default;function tg(t,e,n=1e3){let r=ta.useMemo(()=>e||Fi.createEmptyHistoryState(),[e]);ta.useEffect(()=>Fi.registerHistory(t,r,n),[n,t,r])}Ii.createEmptyHistoryState=Fi.createEmptyHistoryState,Ii.HistoryPlugin=function({externalHistoryState:t}){let[e]=eg.useLexicalComposerContext();return tg(e,t),null};var ng=Ii,na={},rg=fe,ra=S.default,ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ra.useLayoutEffect:ra.useEffect;na.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=rg.useLexicalComposerContext();return ig(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var og=na,ia={},Ie=xt,lg=fe,oa=S.default,sg=xe,je=w;function ag(t){oa.useEffect(()=>sg.mergeRegister(t.registerCommand(je.INDENT_CONTENT_COMMAND,()=>(Ie.indentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.OUTDENT_CONTENT_COMMAND,()=>(Ie.outdentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(Ie.INSERT_ORDERED_LIST_COMMAND,()=>(Ie.insertList(t,"number"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(Ie.INSERT_UNORDERED_LIST_COMMAND,()=>(Ie.insertList(t,"bullet"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(Ie.REMOVE_LIST_COMMAND,()=>(Ie.removeList(t),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.INSERT_PARAGRAPH_COMMAND,()=>!!Ie.$handleListInsertParagraph(),je.COMMAND_PRIORITY_LOW)),[t])}ia.ListPlugin=function(){let[t]=lg.useLexicalComposerContext();return oa.useEffect(()=>{if(!t.hasNodes([Ie.ListNode,Ie.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),ag(t),null};var cg=ia;const la=10;function Yt(t){const e=w.$createNodeSelection();e.add(t.getKey()),w.$setSelection(e)}function sa(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function dg({editor:t,containerElem:e}){return S.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=w.$getSelection();w.$isNodeSelection(i)&&w.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),S.default.useEffect(()=>xe.mergeRegister(t.registerCommand(w.KEY_ARROW_UP_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getPreviousSibling();if(!i)return!0;if(w.$isDecoratorNode(i))return Yt(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,l=n.anchor.offset===0&&n.focus.offset===0;if(o||l){const s=r.getPreviousSibling();if(w.$isDecoratorNode(s))return Yt(s),!0}else{const a=i.getRangeAt(0).cloneRange().getClientRects();if(a.length>0){const c=a[1]||a[0],u=sa(i.anchorNode).getBoundingClientRect();if(Math.abs(c.top-u.top)<=la){const m=r.getPreviousSibling();if(w.$isDecoratorNode(m))return Yt(m),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getNextSibling();if(w.$isDecoratorNode(i))return Yt(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=sa(i.anchorNode),l=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,s=i.rangeCount!==0&&i.anchorNode===o&&i.anchorOffset===o.children.length-1&&i.focusOffset===o.children.length-1;if(l||s){const a=r.getNextSibling();if(w.$isDecoratorNode(a))return Yt(a),!0}else{const c=i.getRangeAt(0).cloneRange().getClientRects();if(c.length>0){const d=c[0],u=o.getBoundingClientRect();if(Math.abs(d.bottom-u.bottom)<la){const g=r.getNextSibling();if(w.$isDecoratorNode(g))return Yt(g),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH))),null}function aa({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=fe.useLexicalComposerContext();return dg({editor:e,containerElem:t})}var Q={},ae={},ca={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(_){return _ instanceof a?new a(_.type,p(_.content),_.alias):Array.isArray(_)?_.map(p):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(_,T){T=T||{};var C,N;switch(s.util.type(_)){case"Object":if(N=s.util.objId(_),T[N])return T[N];C={},T[N]=C;for(var O in _)_.hasOwnProperty(O)&&(C[O]=p(_[O],T));return C;case"Array":return N=s.util.objId(_),T[N]?T[N]:(C=[],T[N]=C,_.forEach(function(D,A){C[A]=p(D,T)}),C);default:return _}},getLanguage:function(p){for(;p;){var _=i.exec(p.className);if(_)return _[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,_){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(C){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(p){var _=document.getElementsByTagName("script");for(var T in _)if(_[T].src==p)return _[T]}return null}},isActive:function(p,_,T){for(var C="no-"+_;p;){var N=p.classList;if(N.contains(_))return!0;if(N.contains(C))return!1;p=p.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,_){var T=s.util.clone(s.languages[p]);for(var C in _)T[C]=_[C];return T},insertBefore:function(p,_,T,C){C=C||s.languages;var N=C[p],O={};for(var D in N)if(N.hasOwnProperty(D)){if(D==_)for(var A in T)T.hasOwnProperty(A)&&(O[A]=T[A]);T.hasOwnProperty(D)||(O[D]=N[D])}var U=C[p];return C[p]=O,s.languages.DFS(s.languages,function(P,H){H===U&&P!=p&&(this[P]=O)}),O},DFS:function p(_,T,C,N){N=N||{};var O=s.util.objId;for(var D in _)if(_.hasOwnProperty(D)){T.call(_,D,_[D],C||D);var A=_[D],U=s.util.type(A);U==="Object"&&!N[O(A)]?(N[O(A)]=!0,p(A,T,null,N)):U==="Array"&&!N[O(A)]&&(N[O(A)]=!0,p(A,T,D,N))}}},plugins:{},highlightAll:function(p,_){s.highlightAllUnder(document,p,_)},highlightAllUnder:function(p,_,T){var C={callback:T,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var N=0,O;O=C.elements[N++];)s.highlightElement(O,_===!0,C.callback)},highlightElement:function(p,_,T){var C=s.util.getLanguage(p),N=s.languages[C];s.util.setLanguage(p,C);var O=p.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,C);var D=p.textContent,A={element:p,language:C,grammar:N,code:D};function U(H){A.highlightedCode=H,s.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,s.hooks.run("after-highlight",A),s.hooks.run("complete",A),T&&T.call(A.element)}if(s.hooks.run("before-sanity-check",A),O=A.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!A.code){s.hooks.run("complete",A),T&&T.call(A.element);return}if(s.hooks.run("before-highlight",A),!A.grammar){U(s.util.encode(A.code));return}if(_&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(H){U(H.data)},P.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else U(s.highlight(A.code,A.grammar,A.language))},highlight:function(p,_,T){var C={code:p,grammar:_,language:T};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),a.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(p,_){var T=_.rest;if(T){for(var C in T)_[C]=T[C];delete _.rest}var N=new d;return g(N,N.head,p),u(p,N,_,N.head,0),f(N)},hooks:{all:{},add:function(p,_){var T=s.hooks.all;T[p]=T[p]||[],T[p].push(_)},run:function(p,_){var T=s.hooks.all[p];if(!(!T||!T.length))for(var C=0,N;N=T[C++];)N(_)}},Token:a};r.Prism=s;function a(p,_,T,C){this.type=p,this.content=_,this.alias=T,this.length=(C||"").length|0}a.stringify=function p(_,T){if(typeof _=="string")return _;if(Array.isArray(_)){var C="";return _.forEach(function(U){C+=p(U,T)}),C}var N={type:_.type,content:p(_.content,T),tag:"span",classes:["token",_.type],attributes:{},language:T},O=_.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(N.classes,O):N.classes.push(O)),s.hooks.run("wrap",N);var D="";for(var A in N.attributes)D+=" "+A+'="'+(N.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+D+">"+N.content+"</"+N.tag+">"};function c(p,_,T,C){p.lastIndex=_;var N=p.exec(T);if(N&&C&&N[1]){var O=N[1].length;N.index+=O,N[0]=N[0].slice(O)}return N}function u(p,_,T,C,N,O){for(var D in T)if(!(!T.hasOwnProperty(D)||!T[D])){var A=T[D];A=Array.isArray(A)?A:[A];for(var U=0;U<A.length;++U){if(O&&O.cause==D+","+U)return;var P=A[U],H=P.inside,re=!!P.lookbehind,q=!!P.greedy,ee=P.alias;if(q&&!P.pattern.global){var ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,ce+"g")}for(var Zt=P.pattern||P,ie=C.next,de=N;ie!==_.tail&&!(O&&de>=O.reach);de+=ie.value.length,ie=ie.next){var Ce=ie.value;if(_.length>p.length)return;if(!(Ce instanceof a)){var Pe=1,ue;if(q){if(ue=c(Zt,de,p,re),!ue||ue.index>=p.length)break;var Mr=ue.index,Ar=ue.index+ue[0].length,ct=de;for(ct+=ie.value.length;Mr>=ct;)ie=ie.next,ct+=ie.value.length;if(ct-=ie.value.length,de=ct,ie.value instanceof a)continue;for(var In=ie;In!==_.tail&&(ct<Ar||typeof In.value=="string");In=In.next)Pe++,ct+=In.value.length;Pe--,Ce=p.slice(de,ct),ue.index-=de}else if(ue=c(Zt,0,Ce,re),!ue)continue;var Mr=ue.index,$r=ue[0],Qi=Ce.slice(0,Mr),uc=Ce.slice(Mr+$r.length),qi=de+Ce.length;O&&qi>O.reach&&(O.reach=qi);var Lr=ie.prev;Qi&&(Lr=g(_,Lr,Qi),de+=Qi.length),m(_,Lr,Pe);var i1=new a(D,H?s.tokenize($r,H):$r,ee,$r);if(ie=g(_,Lr,i1),uc&&g(_,ie,uc),Pe>1){var eo={cause:D+","+U,reach:qi};u(p,_,T,ie.prev,de,eo),O&&eo.reach>O.reach&&(O.reach=eo.reach)}}}}}}function d(){var p={value:null,prev:null,next:null},_={value:null,prev:p,next:null};p.next=_,this.head=p,this.tail=_,this.length=0}function g(p,_,T){var C=_.next,N={value:T,prev:_,next:C};return _.next=N,C.prev=N,p.length++,N}function m(p,_,T){for(var C=_.next,N=0;N<T&&C!==p.tail;N++)C=C.next;_.next=C,C.prev=_,p.length-=N}function f(p){for(var _=[],T=p.head.next;T!==p.tail;)_.push(T.value),T=T.next;return _}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var _=JSON.parse(p.data),T=_.language,C=_.code,N=_.immediateClose;r.postMessage(s.highlight(C,s.languages[T],T)),N&&r.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function E(){s.manual||s.highlightAll()}if(!s.manual){var k=document.readyState;k==="loading"||k==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return s}(e);t.exports&&(t.exports=n),typeof mo<"u"&&(mo.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(v,E){return"\u2716 Error "+v+" while fetching file: "+E},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",u="failed",d="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(v,E,k){var p=new XMLHttpRequest;p.open("GET",v,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?E(p.responseText):p.status>=400?k(i(p.status,p.statusText)):k(o))},p.send(null)}function m(v){var E=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(E){var k=Number(E[1]),p=E[2],_=E[3];return p?_?[k,Number(_)]:[k,void 0]:[k,k]}}n.hooks.add("before-highlightall",function(v){v.selector+=", "+d}),n.hooks.add("before-sanity-check",function(v){var E=v.element;if(E.matches(d)){v.code="",E.setAttribute(s,a);var k=E.appendChild(document.createElement("CODE"));k.textContent=r;var p=E.getAttribute("data-src"),_=v.language;if(_==="none"){var T=(/\.(\w+)$/.exec(p)||[,"none"])[1];_=l[T]||T}n.util.setLanguage(k,_),n.util.setLanguage(E,_);var C=n.plugins.autoloader;C&&C.loadLanguages(_),g(p,function(N){E.setAttribute(s,c);var O=m(E.getAttribute("data-range"));if(O){var D=N.split(/\r\n?|\n/g),A=O[0],U=O[1]==null?D.length:O[1];A<0&&(A+=D.length),A=Math.max(0,Math.min(A-1,D.length)),U<0&&(U+=D.length),U=Math.max(0,Math.min(U,D.length)),N=D.slice(A,U).join(`
39
- `),E.hasAttribute("data-start")||E.setAttribute("data-start",String(A+1))}k.textContent=N,n.highlightElement(k)},function(N){E.setAttribute(s,u),k.textContent=N})}}),n.plugins.fileHighlight={highlight:function(E){for(var k=(E||document).querySelectorAll(d),p=0,_;_=k[p++];)n.highlightElement(_)}};var f=!1;n.fileHighlight=function(){f||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),f=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ca),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(u){["url","bold","italic","strike","code-snippet"].forEach(function(d){u!==d&&(t.languages.markdown[u].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function d(g){if(!(!g||typeof g=="string"))for(var m=0,f=g.length;m<f;m++){var v=g[m];if(v.type!=="code"){d(v.content);continue}var E=v.content[1],k=v.content[3];if(E&&k&&E.type==="code-language"&&k.type==="code-block"&&typeof E.content=="string"){var p=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var _="language-"+p;k.alias?typeof k.alias=="string"?k.alias=[k.alias,_]:k.alias.push(_):k.alias=[_]}}}d(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var d="",g=0,m=u.classes.length;g<m;g++){var f=u.classes[g],v=/language-(.+)/.exec(f);if(v){d=v[1];break}}var E=t.languages[d];if(E)u.content=t.highlight(c(u.content),E,d);else if(d&&d!=="none"&&t.plugins.autoloader){var k="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=k,t.plugins.autoloader.loadLanguages(d,function(){var p=document.getElementById(k);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[d],d))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(u){var d=u.replace(l,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var f;return m[1]==="x"?f=parseInt(m.slice(2),16):f=Number(m.slice(1)),a(f)}else{var v=s[m];return v||g}}),d}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});var Gt=ca.exports,On=xe,I=y;let da={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},ua={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function ga(t){return ua[t]||t}class Ct extends I.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new Ct(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=Fi(e.theme,this.__highlightType),On.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=Fi(r.theme,e.__highlightType),r=Fi(r.theme,this.__highlightType),e!==r&&(e&&On.removeClassNamesFromElement(n,e),r&&On.addClassNamesToElement(n,r)),i}static importJSON(e){let n=kt(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function Fi(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function kt(t,e){return new Ct(t,e)}function _e(t){return t instanceof Ct}function Rn(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),_e(t)&&(e=t),!I.$isLineBreakNode(t)););return e}function zi(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),_e(t)&&(e=t),!I.$isLineBreakNode(t)););return e}let ha=t=>t!=null&&Gt.languages.hasOwnProperty(t)?t:void 0;class st extends I.ElementNode{static getType(){return"code"}static clone(e){return new st(e.__language,e.__key)}constructor(e,n){super(n),this.__language=ha(e)}createDOM(e){let n=document.createElement("code");return On.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&/\r?\n/.test(e.textContent)?{conversion:fa,priority:1}:null,div:()=>({conversion:ug,priority:1}),pre:()=>({conversion:fa,priority:0}),table:e=>Bi(e)?{conversion:gg,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:hg,priority:4}:n&&Bi(n)?{conversion:pa,priority:4}:null},tr:e=>(e=e.closest("table"))&&Bi(e)?{conversion:pa,priority:4}:null}}static importJSON(e){let n=An(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
38
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(v){return v instanceof a?new a(v.type,p(v.content),v.alias):Array.isArray(v)?v.map(p):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(v,y){y=y||{};var k,N;switch(s.util.type(v)){case"Object":if(N=s.util.objId(v),y[N])return y[N];k={},y[N]=k;for(var O in v)v.hasOwnProperty(O)&&(k[O]=p(v[O],y));return k;case"Array":return N=s.util.objId(v),y[N]?y[N]:(k=[],y[N]=k,v.forEach(function(D,A){k[A]=p(D,y)}),k);default:return v}},getLanguage:function(p){for(;p;){var v=i.exec(p.className);if(v)return v[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,v){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(k){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(p){var v=document.getElementsByTagName("script");for(var y in v)if(v[y].src==p)return v[y]}return null}},isActive:function(p,v,y){for(var k="no-"+v;p;){var N=p.classList;if(N.contains(v))return!0;if(N.contains(k))return!1;p=p.parentElement}return!!y}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,v){var y=s.util.clone(s.languages[p]);for(var k in v)y[k]=v[k];return y},insertBefore:function(p,v,y,k){k=k||s.languages;var N=k[p],O={};for(var D in N)if(N.hasOwnProperty(D)){if(D==v)for(var A in y)y.hasOwnProperty(A)&&(O[A]=y[A]);y.hasOwnProperty(D)||(O[D]=N[D])}var W=k[p];return k[p]=O,s.languages.DFS(s.languages,function(P,H){H===W&&P!=p&&(this[P]=O)}),O},DFS:function p(v,y,k,N){N=N||{};var O=s.util.objId;for(var D in v)if(v.hasOwnProperty(D)){y.call(v,D,v[D],k||D);var A=v[D],W=s.util.type(A);W==="Object"&&!N[O(A)]?(N[O(A)]=!0,p(A,y,null,N)):W==="Array"&&!N[O(A)]&&(N[O(A)]=!0,p(A,y,D,N))}}},plugins:{},highlightAll:function(p,v){s.highlightAllUnder(document,p,v)},highlightAllUnder:function(p,v,y){var k={callback:y,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),s.hooks.run("before-all-elements-highlight",k);for(var N=0,O;O=k.elements[N++];)s.highlightElement(O,v===!0,k.callback)},highlightElement:function(p,v,y){var k=s.util.getLanguage(p),N=s.languages[k];s.util.setLanguage(p,k);var O=p.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,k);var D=p.textContent,A={element:p,language:k,grammar:N,code:D};function W(H){A.highlightedCode=H,s.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,s.hooks.run("after-highlight",A),s.hooks.run("complete",A),y&&y.call(A.element)}if(s.hooks.run("before-sanity-check",A),O=A.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!A.code){s.hooks.run("complete",A),y&&y.call(A.element);return}if(s.hooks.run("before-highlight",A),!A.grammar){W(s.util.encode(A.code));return}if(v&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(H){W(H.data)},P.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else W(s.highlight(A.code,A.grammar,A.language))},highlight:function(p,v,y){var k={code:p,grammar:v,language:y};if(s.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=s.tokenize(k.code,k.grammar),s.hooks.run("after-tokenize",k),a.stringify(s.util.encode(k.tokens),k.language)},tokenize:function(p,v){var y=v.rest;if(y){for(var k in y)v[k]=y[k];delete v.rest}var N=new u;return g(N,N.head,p),d(p,N,v,N.head,0),f(N)},hooks:{all:{},add:function(p,v){var y=s.hooks.all;y[p]=y[p]||[],y[p].push(v)},run:function(p,v){var y=s.hooks.all[p];if(!(!y||!y.length))for(var k=0,N;N=y[k++];)N(v)}},Token:a};r.Prism=s;function a(p,v,y,k){this.type=p,this.content=v,this.alias=y,this.length=(k||"").length|0}a.stringify=function p(v,y){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(W){k+=p(W,y)}),k}var N={type:v.type,content:p(v.content,y),tag:"span",classes:["token",v.type],attributes:{},language:y},O=v.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(N.classes,O):N.classes.push(O)),s.hooks.run("wrap",N);var D="";for(var A in N.attributes)D+=" "+A+'="'+(N.attributes[A]||"").replace(/"/g,"&quot;")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+D+">"+N.content+"</"+N.tag+">"};function c(p,v,y,k){p.lastIndex=v;var N=p.exec(y);if(N&&k&&N[1]){var O=N[1].length;N.index+=O,N[0]=N[0].slice(O)}return N}function d(p,v,y,k,N,O){for(var D in y)if(!(!y.hasOwnProperty(D)||!y[D])){var A=y[D];A=Array.isArray(A)?A:[A];for(var W=0;W<A.length;++W){if(O&&O.cause==D+","+W)return;var P=A[W],H=P.inside,re=!!P.lookbehind,q=!!P.greedy,ee=P.alias;if(q&&!P.pattern.global){var ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,ce+"g")}for(var Zt=P.pattern||P,ie=k.next,de=N;ie!==v.tail&&!(O&&de>=O.reach);de+=ie.value.length,ie=ie.next){var ke=ie.value;if(v.length>p.length)return;if(!(ke instanceof a)){var Fe=1,ue;if(q){if(ue=c(Zt,de,p,re),!ue||ue.index>=p.length)break;var $r=ue.index,Ar=ue.index+ue[0].length,ct=de;for(ct+=ie.value.length;$r>=ct;)ie=ie.next,ct+=ie.value.length;if(ct-=ie.value.length,de=ct,ie.value instanceof a)continue;for(var In=ie;In!==v.tail&&(ct<Ar||typeof In.value=="string");In=In.next)Fe++,ct+=In.value.length;Fe--,ke=p.slice(de,ct),ue.index-=de}else if(ue=c(Zt,0,ke,re),!ue)continue;var $r=ue.index,Mr=ue[0],qi=ke.slice(0,$r),uc=ke.slice($r+Mr.length),eo=de+ke.length;O&&eo>O.reach&&(O.reach=eo);var Lr=ie.prev;qi&&(Lr=g(v,Lr,qi),de+=qi.length),m(v,Lr,Fe);var i1=new a(D,H?s.tokenize(Mr,H):Mr,ee,Mr);if(ie=g(v,Lr,i1),uc&&g(v,ie,uc),Fe>1){var to={cause:D+","+W,reach:eo};d(p,v,y,ie.prev,de,to),O&&to.reach>O.reach&&(O.reach=to.reach)}}}}}}function u(){var p={value:null,prev:null,next:null},v={value:null,prev:p,next:null};p.next=v,this.head=p,this.tail=v,this.length=0}function g(p,v,y){var k=v.next,N={value:y,prev:v,next:k};return v.next=N,k.prev=N,p.length++,N}function m(p,v,y){for(var k=v.next,N=0;N<y&&k!==p.tail;N++)k=k.next;v.next=k,k.prev=v,p.length-=N}function f(p){for(var v=[],y=p.head.next;y!==p.tail;)v.push(y.value),y=y.next;return v}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var v=JSON.parse(p.data),y=v.language,k=v.code,N=v.immediateClose;r.postMessage(s.highlight(k,s.languages[y],y)),N&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function E(){s.manual||s.highlightAll()}if(!s.manual){var T=document.readyState;T==="loading"||T==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return s}(e);t.exports&&(t.exports=n),typeof xo<"u"&&(xo.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(_,E){return"\u2716 Error "+_+" while fetching file: "+E},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",d="failed",u="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(_,E,T){var p=new XMLHttpRequest;p.open("GET",_,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?E(p.responseText):p.status>=400?T(i(p.status,p.statusText)):T(o))},p.send(null)}function m(_){var E=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(E){var T=Number(E[1]),p=E[2],v=E[3];return p?v?[T,Number(v)]:[T,void 0]:[T,T]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+u}),n.hooks.add("before-sanity-check",function(_){var E=_.element;if(E.matches(u)){_.code="",E.setAttribute(s,a);var T=E.appendChild(document.createElement("CODE"));T.textContent=r;var p=E.getAttribute("data-src"),v=_.language;if(v==="none"){var y=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=l[y]||y}n.util.setLanguage(T,v),n.util.setLanguage(E,v);var k=n.plugins.autoloader;k&&k.loadLanguages(v),g(p,function(N){E.setAttribute(s,c);var O=m(E.getAttribute("data-range"));if(O){var D=N.split(/\r\n?|\n/g),A=O[0],W=O[1]==null?D.length:O[1];A<0&&(A+=D.length),A=Math.max(0,Math.min(A-1,D.length)),W<0&&(W+=D.length),W=Math.max(0,Math.min(W,D.length)),N=D.slice(A,W).join(`
39
+ `),E.hasAttribute("data-start")||E.setAttribute("data-start",String(A+1))}T.textContent=N,n.highlightElement(T)},function(N){E.setAttribute(s,d),T.textContent=N})}}),n.plugins.fileHighlight={highlight:function(E){for(var T=(E||document).querySelectorAll(u),p=0,v;v=T[p++];)n.highlightElement(v)}};var f=!1;n.fileHighlight=function(){f||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),f=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ca),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(u){d!==u&&(t.languages.markdown[d].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function u(g){if(!(!g||typeof g=="string"))for(var m=0,f=g.length;m<f;m++){var _=g[m];if(_.type!=="code"){u(_.content);continue}var E=_.content[1],T=_.content[3];if(E&&T&&E.type==="code-language"&&T.type==="code-block"&&typeof E.content=="string"){var p=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var v="language-"+p;T.alias?typeof T.alias=="string"?T.alias=[T.alias,v]:T.alias.push(v):T.alias=[v]}}}u(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var u="",g=0,m=d.classes.length;g<m;g++){var f=d.classes[g],_=/language-(.+)/.exec(f);if(_){u=_[1];break}}var E=t.languages[u];if(E)d.content=t.highlight(c(d.content),E,u);else if(u&&u!=="none"&&t.plugins.autoloader){var T="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=T,t.plugins.autoloader.loadLanguages(u,function(){var p=document.getElementById(T);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[u],u))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var u=d.replace(l,"");return u=u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var f;return m[1]==="x"?f=parseInt(m.slice(2),16):f=Number(m.slice(1)),a(f)}else{var _=s[m];return _||g}}),u}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});var Gt=ca.exports,On=xe,I=w;let da={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},ua={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function ga(t){return ua[t]||t}class kt extends I.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new kt(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=zi(e.theme,this.__highlightType),On.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=zi(r.theme,e.__highlightType),r=zi(r.theme,this.__highlightType),e!==r&&(e&&On.removeClassNamesFromElement(n,e),r&&On.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Ct(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function zi(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Ct(t,e){return new kt(t,e)}function _e(t){return t instanceof kt}function Rn(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),_e(t)&&(e=t),!I.$isLineBreakNode(t)););return e}function Bi(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),_e(t)&&(e=t),!I.$isLineBreakNode(t)););return e}let ha=t=>t!=null&&Gt.languages.hasOwnProperty(t)?t:void 0;class st extends I.ElementNode{static getType(){return"code"}static clone(e){return new st(e.__language,e.__key)}constructor(e,n){super(n),this.__language=ha(e)}createDOM(e){let n=document.createElement("code");return On.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&/\r?\n/.test(e.textContent)?{conversion:fa,priority:1}:null,div:()=>({conversion:ug,priority:1}),pre:()=>({conversion:fa,priority:0}),table:e=>Hi(e)?{conversion:gg,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:hg,priority:4}:n&&Hi(n)?{conversion:pa,priority:4}:null},tr:e=>(e=e.closest("table"))&&Hi(e)?{conversion:pa,priority:4}:null}}static importJSON(e){let n=An(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
40
40
  `&&n[r-2].getTextContent()===`
41
- `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=I.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Rn(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=kt(r),n.insertAfter(r),e.insertNodes([I.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=I.$getSelection();return!!(I.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=I.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=ha(e)}getLanguage(){return this.getLatest().__language}}function An(t){return new st(t)}function kr(t){return t instanceof st}function fa(){return{node:An(),preformatted:!0}}function ug(t){let e=t.style.fontFamily.match("monospace")!==null;return{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(I.$createLineBreakNode()),n},node:e?An():null,preformatted:e}}function gg(){return{node:An(),preformatted:!0}}function pa(){return{node:null}}function hg(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(I.$createLineBreakNode()),e),node:null}}function Bi(t){return t.classList.contains("js-file-line-container")}function Er(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function ma(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(_e(i)){var o=i.getTextContent();o=Er(o,!0),o!==-1&&(e=i,n=o)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),_e(r)&&(i=r.getTextContent(),i=Er(i,!0),i!==-1)){e=r,n=i;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function xa(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(_e(i)){var o=i.getTextContent();o=Er(o,!1),o!==-1&&(e=i,n=o+1)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),_e(r)&&(i=r.getTextContent(),i=Er(i,!1),i!==-1)){e=r,n=i+1;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function _a(t,e){let n=t.getParent();kr(n)?va(n,e):_e(t)&&t.replace(I.$createTextNode(t.__text))}let Hi=!1;function va(t,e){if(!Hi){Hi=!0,t.getLanguage()===void 0&&t.setLanguage("javascript");var n=t.getKey();e.update(()=>{fg(n,()=>{var r=I.$getNodeByKey(n);if(!kr(r)||!r.isAttached())return!1;var i=r.getTextContent();i=Gt.tokenize(i,Gt.languages[r.getLanguage()||""]||Gt.languages.javascript),i=ya(i);var o=r.getChildren();for(r=0;r<o.length&&wa(o[r],i[r]);)r++;var l=o.length;let s=i.length,a=Math.min(l,s)-r,c=0;for(;c<a;)if(c++,!wa(o[l-c],i[s-c])){c--;break}o=r,l-=c,i=i.slice(r,s-c);let{from:u,to:d,nodesForReplacement:g}={from:o,nodesForReplacement:i,to:l};return u!==d||g.length?(t.splice(u,d-u,g),!0):!1})},{onUpdate:()=>{Hi=!1},skipTransforms:!0})}}function ya(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
- `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(kt(i)),r<n.length-1&&e.push(I.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(kt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(kt(r[0],n.type)):Array.isArray(r)&&e.push(...ya(r))}),e}function fg(t,e){if(t=I.$getNodeByKey(t),kr(t)&&t.isAttached()){var n=I.$getSelection();if(I.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&I.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+(I.$isLineBreakNode(a)?0:a.getTextContentSize()),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{if(I.$isTextNode(l)){let s=l.getTextContentSize();if(s>=o)return l.select(o,o),!0;o-=s}return!1}))}else e()}}function wa(t,e){return _e(t)&&_e(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(I.$isLineBreakNode(t)&&I.$isLineBreakNode(e))}function Ca(t){var e=I.$getSelection();if(!I.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!_e(r)&&!I.$isLineBreakNode(r))return!1}for(n=Rn(e[0]),n!=null&&ka(n,t),n=1;n<e.length;n++)r=e[n],I.$isLineBreakNode(e[n-1])&&_e(r)&&ka(r,t);return!0}function ka(t,e){let n=t.getTextContent();e===I.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=kt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function Ea(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===I.KEY_ARROW_UP_COMMAND;if(!_e(s)||!_e(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var u=Rn(s);let d=zi(a);if(u==null||d==null)return!1;let g=u.getNodesBetween(d);for(let f=0;f<g.length;f++){let v=g[f];if(!_e(v)&&!I.$isLineBreakNode(v))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?u.getPreviousSibling():d.getNextSibling(),!I.$isLineBreakNode(e)||(u=c?e.getPreviousSibling():e.getNextSibling(),u==null))return!0;c=c?Rn(u):zi(u);let m=c!=null?c:u;return e.remove(),g.forEach(f=>f.remove()),t===I.KEY_ARROW_UP_COMMAND?(g.forEach(f=>m.insertBefore(f)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(f=>{m.insertAfter(f),m=f})),n.setTextNodeRange(s,o,a,l),!0}function Na(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===I.MOVE_TO_START,!_e(o)||!_e(l))return!1;let s,a;return t?{node:s,offset:a}=ma(l):{node:s,offset:a}=xa(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}ae.$createCodeHighlightNode=kt,ae.$createCodeNode=An,ae.$isCodeHighlightNode=_e,ae.$isCodeNode=kr,ae.CODE_LANGUAGE_FRIENDLY_NAME_MAP=da,ae.CODE_LANGUAGE_MAP=ua,ae.CodeHighlightNode=Ct,ae.CodeNode=st,ae.DEFAULT_CODE_LANGUAGE="javascript",ae.getCodeLanguages=()=>Object.keys(Gt.languages).filter(t=>typeof Gt.languages[t]!="function").sort(),ae.getDefaultCodeLanguage=()=>"javascript",ae.getEndOfCodeInLine=xa,ae.getFirstCodeHighlightNodeOfLine=Rn,ae.getLanguageFriendlyName=function(t){return t=ga(t),da[t]||t},ae.getLastCodeHighlightNodeOfLine=zi,ae.getStartOfCodeInLine=ma,ae.normalizeCodeLang=ga,ae.registerCodeHighlighting=function(t){if(!t.hasNodes([st,Ct]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return On.mergeRegister(t.registerMutationListener(st,e=>{t.update(()=>{for(let[i,o]of e)if(o!=="destroyed"){var n=I.$getNodeByKey(i);if(n!==null)e:{var r=n;if(n=t.getElementByKey(r.getKey()),n===null)break e;r=r.getChildren();let l=r.length;if(l===n.__cachedChildrenLength)break e;n.__cachedChildrenLength=l;let s="1",a=1;for(let c=0;c<l;c++)I.$isLineBreakNode(r[c])&&(s+=`
43
- `+ ++a);n.setAttribute("data-gutter",s)}}})}),t.registerNodeTransform(st,e=>va(e,t)),t.registerNodeTransform(I.TextNode,e=>_a(e,t)),t.registerNodeTransform(Ct,e=>_a(e,t)),t.registerCommand(I.INDENT_CONTENT_COMMAND,()=>Ca(I.INDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.OUTDENT_CONTENT_COMMAND,()=>Ca(I.OUTDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_UP_COMMAND,e=>Ea(I.KEY_ARROW_UP_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_DOWN_COMMAND,e=>Ea(I.KEY_ARROW_DOWN_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_END,e=>Na(I.MOVE_TO_END,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_START,e=>Na(I.MOVE_TO_START,e),I.COMMAND_PRIORITY_LOW))};var pg=ae,W=y,Mn=pg,ve=xt,at=_t,mg=xe,Ki=Ms;function Ui(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Wi(t){return t=Ui(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let Nr=/[!-/:-@[-`{-~\s]/;function xg(t){let e=Wi(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=W.$getRoot().getChildren();for(let o of i)i=_g(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
44
-
45
- `)}}function _g(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Tr(o,n,r)),e!=null)return e;return W.$isElementNode(t)?Tr(t,n,r):null}function Tr(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>Tr(l,e,n),(l,s)=>Ta(l,s,e)),t!=null){r.push(t);continue e}W.$isLineBreakNode(i)?r.push(`
46
- `):W.$isTextNode(i)?r.push(Ta(i,i.getTextContent(),e)):W.$isElementNode(i)&&r.push(Tr(i,e,n))}return r.join("")}function Ta(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(Vi(t,n)&&!o.has(n)){o.add(n);var l=Sa(t,!0);Vi(l,n)||(i=a+i),l=Sa(t,!1),Vi(l,n)||(i+=a)}}return e.replace(r,i)}function Sa(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(W.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),W.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(W.$isTextNode(n))return n;if(!W.$isElementNode(n))break}return null}function Vi(t,e){return W.$isTextNode(t)&&t.hasFormat(e)}let jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vg=jt&&"documentMode"in document?document.documentMode:null;jt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),jt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),jt&&"InputEvent"in window&&!vg&&"getTargetRanges"in new window.InputEvent("input");let ba=jt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Oa=jt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,yg=/^\s{0,3}$/,Ra=/^```(\w{1,10})?\s?$/;function wg(t){let e=Wi(t),n=kg(e.textFormat);return r=>{var i=r.split(`
47
- `),o=i.length;r=W.$getRoot(),r.clear();for(let f=0;f<o;f++){var l=i[f];e:{var s=i,a=f,c=r,u=s[a].match(Ra);if(u){for(var d=a,g=s.length;++d<g;)if(s[d].match(Ra)){u=Mn.$createCodeNode(u[1]),s=W.$createTextNode(s.slice(a+1,d).join(`
48
- `)),u.append(s),c.append(u),c=[u,d];break e}}c=[null,a]}let[v,E]=c;if(v!=null)f=E;else{c=l,g=r;var m=e.element;d=n,s=e.textMatch,a=c.trim(),u=W.$createTextNode(a),l=W.$createParagraphNode(),l.append(u),g.append(l);for(let{regExp:k,replace:p}of m)if(g=c.match(k)){u.setTextContent(c.slice(g[0].length)),p(l,[u],g,!0);break}Sr(u,d,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),W.$isParagraphNode(c)||at.$isQuoteNode(c)||ve.$isListNode(c))&&(d=c,ve.$isListNode(c)&&(c=c.getLastDescendant(),d=c==null?null:mg.$findMatchingParent(c,ve.$isListItemNode)),d!=null&&0<d.getTextContentSize()&&(d.splice(d.getChildrenSize(),0,[W.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let f of i)i=f,W.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&W.$isTextNode(o)&&yg.test(o.getTextContent())):i=!1,i&&f.remove();r.selectEnd()}}function Sr(t,e,n){let r=t.getTextContent(),i=Cg(r,e);if(i){if(i[0]===r)var o=t;else{var l=i.index||0,s=l+i[0].length;l===0?[o,a]=t.splitText(s):[c,o,a]=t.splitText(l,s)}if(o.setTextContent(i[2]),l=e.transformersByTag[i[1]])for(let u of l.format)o.hasFormat(u)||o.toggleFormat(u);o.hasFormat("code")||Sr(o,e,n),c&&Sr(c,e,n),a&&Sr(a,e,n)}else e:for(e=t;e;){for(l of n)if(o=e.getTextContent().match(l.importRegExp)){var a=o.index||0,c=a+o[0].length;a===0?[s,e]=e.splitText(c):[,s,e]=e.splitText(a,c),l.replace(s,o);continue e}break}}function Cg(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!Nr.test(r)||i&&!Nr.test(i)))return n}}return null}function kg(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=ba||Oa?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((ba||Oa?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function Aa(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(Ma(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function Ma(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let $a=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},Yi=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=ve.$createListItemNode(t==="check"?r[3]==="x":void 0);ve.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=ve.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},br=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(ve.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),ve.$isListNode(i))){r.push(br(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
49
- `)},La={dependencies:[at.HeadingNode],export:(t,e)=>{if(!at.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:$a(t=>at.$createHeadingNode("h"+t[1].length)),type:"element"},Da={dependencies:[at.QuoteNode],export:(t,e)=>{if(!at.$isQuoteNode(t))return null;t=e(t).split(`
41
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=I.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Rn(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=Ct(r),n.insertAfter(r),e.insertNodes([I.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=I.$getSelection();return!!(I.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=I.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=ha(e)}getLanguage(){return this.getLatest().__language}}function An(t){return new st(t)}function Cr(t){return t instanceof st}function fa(){return{node:An(),preformatted:!0}}function ug(t){let e=t.style.fontFamily.match("monospace")!==null;return{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(I.$createLineBreakNode()),n},node:e?An():null,preformatted:e}}function gg(){return{node:An(),preformatted:!0}}function pa(){return{node:null}}function hg(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(I.$createLineBreakNode()),e),node:null}}function Hi(t){return t.classList.contains("js-file-line-container")}function Er(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function ma(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(_e(i)){var o=i.getTextContent();o=Er(o,!0),o!==-1&&(e=i,n=o)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),_e(r)&&(i=r.getTextContent(),i=Er(i,!0),i!==-1)){e=r,n=i;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function xa(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(_e(i)){var o=i.getTextContent();o=Er(o,!1),o!==-1&&(e=i,n=o+1)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),_e(r)&&(i=r.getTextContent(),i=Er(i,!1),i!==-1)){e=r,n=i+1;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function _a(t,e){let n=t.getParent();Cr(n)?va(n,e):_e(t)&&t.replace(I.$createTextNode(t.__text))}let Ki=!1;function va(t,e){if(!Ki){Ki=!0,t.getLanguage()===void 0&&t.setLanguage("javascript");var n=t.getKey();e.update(()=>{fg(n,()=>{var r=I.$getNodeByKey(n);if(!Cr(r)||!r.isAttached())return!1;var i=r.getTextContent();i=Gt.tokenize(i,Gt.languages[r.getLanguage()||""]||Gt.languages.javascript),i=wa(i);var o=r.getChildren();for(r=0;r<o.length&&ya(o[r],i[r]);)r++;var l=o.length;let s=i.length,a=Math.min(l,s)-r,c=0;for(;c<a;)if(c++,!ya(o[l-c],i[s-c])){c--;break}o=r,l-=c,i=i.slice(r,s-c);let{from:d,to:u,nodesForReplacement:g}={from:o,nodesForReplacement:i,to:l};return d!==u||g.length?(t.splice(d,u-d,g),!0):!1})},{onUpdate:()=>{Ki=!1},skipTransforms:!0})}}function wa(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
+ `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(Ct(i)),r<n.length-1&&e.push(I.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(Ct(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(Ct(r[0],n.type)):Array.isArray(r)&&e.push(...wa(r))}),e}function fg(t,e){if(t=I.$getNodeByKey(t),Cr(t)&&t.isAttached()){var n=I.$getSelection();if(I.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&I.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+(I.$isLineBreakNode(a)?0:a.getTextContentSize()),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{if(I.$isTextNode(l)){let s=l.getTextContentSize();if(s>=o)return l.select(o,o),!0;o-=s}return!1}))}else e()}}function ya(t,e){return _e(t)&&_e(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(I.$isLineBreakNode(t)&&I.$isLineBreakNode(e))}function ka(t){var e=I.$getSelection();if(!I.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!_e(r)&&!I.$isLineBreakNode(r))return!1}for(n=Rn(e[0]),n!=null&&Ca(n,t),n=1;n<e.length;n++)r=e[n],I.$isLineBreakNode(e[n-1])&&_e(r)&&Ca(r,t);return!0}function Ca(t,e){let n=t.getTextContent();e===I.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=Ct(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function Ea(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===I.KEY_ARROW_UP_COMMAND;if(!_e(s)||!_e(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var d=Rn(s);let u=Bi(a);if(d==null||u==null)return!1;let g=d.getNodesBetween(u);for(let f=0;f<g.length;f++){let _=g[f];if(!_e(_)&&!I.$isLineBreakNode(_))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?d.getPreviousSibling():u.getNextSibling(),!I.$isLineBreakNode(e)||(d=c?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;c=c?Rn(d):Bi(d);let m=c!=null?c:d;return e.remove(),g.forEach(f=>f.remove()),t===I.KEY_ARROW_UP_COMMAND?(g.forEach(f=>m.insertBefore(f)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(f=>{m.insertAfter(f),m=f})),n.setTextNodeRange(s,o,a,l),!0}function Na(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===I.MOVE_TO_START,!_e(o)||!_e(l))return!1;let s,a;return t?{node:s,offset:a}=ma(l):{node:s,offset:a}=xa(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}ae.$createCodeHighlightNode=Ct,ae.$createCodeNode=An,ae.$isCodeHighlightNode=_e,ae.$isCodeNode=Cr,ae.CODE_LANGUAGE_FRIENDLY_NAME_MAP=da,ae.CODE_LANGUAGE_MAP=ua,ae.CodeHighlightNode=kt,ae.CodeNode=st,ae.DEFAULT_CODE_LANGUAGE="javascript",ae.getCodeLanguages=()=>Object.keys(Gt.languages).filter(t=>typeof Gt.languages[t]!="function").sort(),ae.getDefaultCodeLanguage=()=>"javascript",ae.getEndOfCodeInLine=xa,ae.getFirstCodeHighlightNodeOfLine=Rn,ae.getLanguageFriendlyName=function(t){return t=ga(t),da[t]||t},ae.getLastCodeHighlightNodeOfLine=Bi,ae.getStartOfCodeInLine=ma,ae.normalizeCodeLang=ga,ae.registerCodeHighlighting=function(t){if(!t.hasNodes([st,kt]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return On.mergeRegister(t.registerMutationListener(st,e=>{t.update(()=>{for(let[i,o]of e)if(o!=="destroyed"){var n=I.$getNodeByKey(i);if(n!==null)e:{var r=n;if(n=t.getElementByKey(r.getKey()),n===null)break e;r=r.getChildren();let l=r.length;if(l===n.__cachedChildrenLength)break e;n.__cachedChildrenLength=l;let s="1",a=1;for(let c=0;c<l;c++)I.$isLineBreakNode(r[c])&&(s+=`
43
+ `+ ++a);n.setAttribute("data-gutter",s)}}})}),t.registerNodeTransform(st,e=>va(e,t)),t.registerNodeTransform(I.TextNode,e=>_a(e,t)),t.registerNodeTransform(kt,e=>_a(e,t)),t.registerCommand(I.INDENT_CONTENT_COMMAND,()=>ka(I.INDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.OUTDENT_CONTENT_COMMAND,()=>ka(I.OUTDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_UP_COMMAND,e=>Ea(I.KEY_ARROW_UP_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_DOWN_COMMAND,e=>Ea(I.KEY_ARROW_DOWN_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_END,e=>Na(I.MOVE_TO_END,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_START,e=>Na(I.MOVE_TO_START,e),I.COMMAND_PRIORITY_LOW))};var pg=ae,U=w,$n=pg,ve=xt,at=_t,mg=xe,Wi=Ms;function Ui(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Vi(t){return t=Ui(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let Nr=/[!-/:-@[-`{-~\s]/;function xg(t){let e=Vi(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=U.$getRoot().getChildren();for(let o of i)i=_g(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
44
+
45
+ `)}}function _g(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Tr(o,n,r)),e!=null)return e;return U.$isElementNode(t)?Tr(t,n,r):null}function Tr(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>Tr(l,e,n),(l,s)=>Ta(l,s,e)),t!=null){r.push(t);continue e}U.$isLineBreakNode(i)?r.push(`
46
+ `):U.$isTextNode(i)?r.push(Ta(i,i.getTextContent(),e)):U.$isElementNode(i)&&r.push(Tr(i,e,n))}return r.join("")}function Ta(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(Yi(t,n)&&!o.has(n)){o.add(n);var l=Sa(t,!0);Yi(l,n)||(i=a+i),l=Sa(t,!1),Yi(l,n)||(i+=a)}}return e.replace(r,i)}function Sa(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(U.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),U.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(U.$isTextNode(n))return n;if(!U.$isElementNode(n))break}return null}function Yi(t,e){return U.$isTextNode(t)&&t.hasFormat(e)}let jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vg=jt&&"documentMode"in document?document.documentMode:null;jt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),jt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),jt&&"InputEvent"in window&&!vg&&"getTargetRanges"in new window.InputEvent("input");let ba=jt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Oa=jt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,wg=/^\s{0,3}$/,Ra=/^```(\w{1,10})?\s?$/;function yg(t){let e=Vi(t),n=Cg(e.textFormat);return r=>{var i=r.split(`
47
+ `),o=i.length;r=U.$getRoot(),r.clear();for(let f=0;f<o;f++){var l=i[f];e:{var s=i,a=f,c=r,d=s[a].match(Ra);if(d){for(var u=a,g=s.length;++u<g;)if(s[u].match(Ra)){d=$n.$createCodeNode(d[1]),s=U.$createTextNode(s.slice(a+1,u).join(`
48
+ `)),d.append(s),c.append(d),c=[d,u];break e}}c=[null,a]}let[_,E]=c;if(_!=null)f=E;else{c=l,g=r;var m=e.element;u=n,s=e.textMatch,a=c.trim(),d=U.$createTextNode(a),l=U.$createParagraphNode(),l.append(d),g.append(l);for(let{regExp:T,replace:p}of m)if(g=c.match(T)){d.setTextContent(c.slice(g[0].length)),p(l,[d],g,!0);break}Sr(d,u,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),U.$isParagraphNode(c)||at.$isQuoteNode(c)||ve.$isListNode(c))&&(u=c,ve.$isListNode(c)&&(c=c.getLastDescendant(),u=c==null?null:mg.$findMatchingParent(c,ve.$isListItemNode)),u!=null&&0<u.getTextContentSize()&&(u.splice(u.getChildrenSize(),0,[U.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let f of i)i=f,U.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&U.$isTextNode(o)&&wg.test(o.getTextContent())):i=!1,i&&f.remove();r.selectEnd()}}function Sr(t,e,n){let r=t.getTextContent(),i=kg(r,e);if(i){if(i[0]===r)var o=t;else{var l=i.index||0,s=l+i[0].length;l===0?[o,a]=t.splitText(s):[c,o,a]=t.splitText(l,s)}if(o.setTextContent(i[2]),l=e.transformersByTag[i[1]])for(let d of l.format)o.hasFormat(d)||o.toggleFormat(d);o.hasFormat("code")||Sr(o,e,n),c&&Sr(c,e,n),a&&Sr(a,e,n)}else e:for(e=t;e;){for(l of n)if(o=e.getTextContent().match(l.importRegExp)){var a=o.index||0,c=a+o[0].length;a===0?[s,e]=e.splitText(c):[,s,e]=e.splitText(a,c),l.replace(s,o);continue e}break}}function kg(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!Nr.test(r)||i&&!Nr.test(i)))return n}}return null}function Cg(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=ba||Oa?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((ba||Oa?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function Aa(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if($a(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function $a(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let Ma=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},Gi=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=ve.$createListItemNode(t==="check"?r[3]==="x":void 0);ve.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=ve.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},br=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(ve.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),ve.$isListNode(i))){r.push(br(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
49
+ `)},La={dependencies:[at.HeadingNode],export:(t,e)=>{if(!at.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:Ma(t=>at.$createHeadingNode("h"+t[1].length)),type:"element"},Da={dependencies:[at.QuoteNode],export:(t,e)=>{if(!at.$isQuoteNode(t))return null;t=e(t).split(`
50
50
  `),e=[];for(const n of t)e.push("> "+n);return e.join(`
51
- `)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),at.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[W.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=at.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},Ia={dependencies:[Mn.CodeNode],export:t=>{if(!Mn.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
52
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:$a(t=>Mn.$createCodeNode(t?t[1]:void 0)),type:"element"},Pa={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:Yi("bullet"),type:"element"},Eg={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:Yi("check"),type:"element"},Fa={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:Yi("number"),type:"element"},za={format:["code"],tag:"`",type:"text-format"},Ba={format:["bold","italic"],tag:"***",type:"text-format"},Ha={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ka={format:["bold"],tag:"**",type:"text-format"},Ua={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Wa={format:["strikethrough"],tag:"~~",type:"text-format"},Va={format:["italic"],tag:"*",type:"text-format"},Ya={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Ga={dependencies:[Ki.LinkNode],export:(t,e,n)=>{if(!Ki.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&W.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=Ki.$createLinkNode(r);const i=W.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},ja=[La,Da,Ia,Pa,Fa],Za=[za,Ba,Ha,Ka,Ua,Va,Ya,Wa],Ja=[Ga],Or=[...ja,...Za,...Ja];Q.$convertFromMarkdownString=function(t,e=Or){return wg(e)(t)},Q.$convertToMarkdownString=function(t=Or){return xg(t)()},Q.BOLD_ITALIC_STAR=Ba,Q.BOLD_ITALIC_UNDERSCORE=Ha,Q.BOLD_STAR=Ka,Q.BOLD_UNDERSCORE=Ua,Q.CHECK_LIST=Eg,Q.CODE=Ia,Q.ELEMENT_TRANSFORMERS=ja,Q.HEADING=La,Q.INLINE_CODE=za,Q.ITALIC_STAR=Va,Q.ITALIC_UNDERSCORE=Ya,Q.LINK=Ga,Q.ORDERED_LIST=Fa,Q.QUOTE=Da,Q.STRIKETHROUGH=Wa,Q.TEXT_FORMAT_TRANSFORMERS=Za,Q.TEXT_MATCH_TRANSFORMERS=Ja,Q.TRANSFORMERS=Or,Q.UNORDERED_LIST=Pa,Q.registerMarkdownShortcuts=function(t,e=Or){let n=Wi(e),r=Ui(n.textFormat,({tag:o})=>o[o.length-1]),i=Ui(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(W.$getSelection);if(o=a.read(W.$getSelection),W.$isRangeSelection(o)&&W.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var u=c.anchor.offset,d=s._nodeMap.get(a);W.$isTextNode(d)&&l.has(a)&&(u===1||u===o.anchor.offset+1)&&t.update(()=>{if(!d.hasFormat("code")){var g=d.getParent();if(g!==null&&!Mn.$isCodeNode(g)){var m=c.anchor.offset;e:{var f=n.element,v=g.getParent();if(W.$isRootOrShadowRoot(v)&&g.getFirstChild()===d&&(v=d.getTextContent(),v[m-1]===" ")){for(let{regExp:C,replace:N}of f)if((f=v.match(C))&&f[0].length===m){v=d.getNextSiblings();let[O,D]=d.splitText(m);O.remove(),v=D?[D,...v]:v,N(g,v,f,!1),g=!0;break e}}g=!1}if(!g){e:{if(f=d.getTextContent(),g=i[f[m-1]],g!=null){m<f.length&&(f=f.slice(0,m));for(k of g)if(g=f.match(k.regExp),g!==null){f=g.index||0,v=f+g[0].length;var E=void 0;f===0?[E]=d.splitText(v):[,E]=d.splitText(f,v),E.selectNext(0,0),k.replace(E,g);var k=!0;break e}}k=!1}if(!k)e:{v=d.getTextContent(),--m;var p=v[m];if(k=r[p])for(let C of k){var{tag:_}=C;k=_.length;let N=m-k+1;if(!(1<k&&!Ma(v,N,_,0,k)||v[N-1]===" ")&&(E=v[m+1],C.intraword!==!1||!E||Nr.test(E))){g=E=d,f=Aa(v,N,_);for(var T=g;0>f&&(T=T.getPreviousSibling())&&!W.$isLineBreakNode(T);)W.$isTextNode(T)&&(f=T.getTextContent(),g=T,f=Aa(f,f.length,_));if(!(0>f||g===E&&f+k===N||(_=g.getTextContent(),0<f&&_[f-1]===p||(T=_[f-1],C.intraword===!1&&T&&!Nr.test(T))))){v=E.getTextContent(),v=v.slice(0,N)+v.slice(m+1),E.setTextContent(v),v=g===E?v:_,g.setTextContent(v.slice(0,f)+v.slice(f+k)),v=W.$getSelection(),p=W.$createRangeSelection(),W.$setSelection(p),m=m-k*(g===E?2:1)+1,p.anchor.set(g.__key,f,"text"),p.focus.set(E.__key,m,"text");for(let O of C.format)p.hasFormat(O)||p.formatText(O);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let O of C.format)p.hasFormat(O)&&p.toggleFormat(O);W.$isRangeSelection(v)&&(p.format=v.format);break e}}}}}}}})}}})};var Et=Q,Gi={},$n={},Ng=fe,Tg=Ds,Sg=xe,Ie=y,Ln=S.default;let bg=Ie.createCommand();function Og({nodeKey:t}){let[e]=Ng.useLexicalComposerContext(),n=Ln.useRef(null),[r,i,o]=Tg.useLexicalNodeSelection(t),l=Ln.useCallback(s=>(r&&Ie.$isNodeSelection(Ie.$getSelection())&&(s.preventDefault(),s=Ie.$getNodeByKey(t),Xa(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Ln.useEffect(()=>Sg.mergeRegister(e.registerCommand(Ie.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,Ie.COMMAND_PRIORITY_LOW),e.registerCommand(Ie.KEY_DELETE_COMMAND,l,Ie.COMMAND_PRIORITY_LOW),e.registerCommand(Ie.KEY_BACKSPACE_COMMAND,l,Ie.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Ln.createElement("hr",{ref:n,className:r?"selected":void 0})}class Dn extends Ie.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Dn(e.__key)}static importJSON(){return ji()}static importDOM(){return{hr:()=>({conversion:Rg,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return Ln.createElement(Og,{nodeKey:this.__key})}}function Rg(){return{node:ji()}}function ji(){return new Dn}function Xa(t){return t instanceof Dn}$n.$createHorizontalRuleNode=ji,$n.$isHorizontalRuleNode=Xa,$n.HorizontalRuleNode=Dn,$n.INSERT_HORIZONTAL_RULE_COMMAND=bg;var Ag=$n,Qa=Et,Mg=fe,Zi=Ag,$g=S.default;let qa=[{dependencies:[Zi.HorizontalRuleNode],export:t=>Zi.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=Zi.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...Qa.TRANSFORMERS];Gi.DEFAULT_TRANSFORMERS=qa,Gi.MarkdownShortcutPlugin=function({transformers:t=qa}){let[e]=Mg.useLexicalComposerContext();return $g.useEffect(()=>Qa.registerMarkdownShortcuts(e,t),[e,t]),null};var Lg=Gi;const ec={dependencies:[wt],export:t=>mu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Ri();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},tc={dependencies:[Vt],export:t=>{if(!vu(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=Ks(i,r);t.replace(o)},type:"element"},Dg={dependencies:[it],export:t=>{if(Mu(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=wr({altText:"",src:""});t.replace(o)},type:"element"},nc=[Et.HEADING,Et.QUOTE,Et.UNORDERED_LIST,Et.ORDERED_LIST,ec,tc,Dg],rc=[...nc,...Et.TEXT_FORMAT_TRANSFORMERS,...Et.TEXT_MATCH_TRANSFORMERS];function ic({transformers:t=rc}={}){return Lg.MarkdownShortcutPlugin({transformers:t})}function Rr(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?He.$isAtNodeEnd(n)?r:i:He.$isAtNodeEnd(e)?i:r}function Ig({onClick:t}){return h("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(ho,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function Pg({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const Fg=({label:t,children:e,...n})=>Y("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[h("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),h("ul",{role:"menu",children:e})]}),zg=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:Y("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[h("div",{className:"flex items-center",children:h(i,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),h("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),Bg=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:Y("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[h("div",{className:"flex items-center",children:h(n,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),oc=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,u=d=>{d.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(h(zg,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(Bg,{label:a.label,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(Fg,{label:o,children:s},o))}return h("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function lc(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function sc(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function Hg(t){var U;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,u]=S.default.useState({}),d=S.default.useRef(null);function g(P){const H=P.getBoundingClientRect(),re=P.parentNode.getBoundingClientRect();return H.top-re.top}function m(P){const H=new Range;return H.setStart(P,0),H.setEnd(P,0),H}const f=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),v=S.default.useCallback(P=>{const H=m(P);a(H),n(!0)},[n,a]),E=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),k=S.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),_=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=y.$getSelection();if(!y.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){E();return}const H=Rr(P);if(!y.$isParagraphNode(H)||H.getTextContent()!==""){E();return}const q=window.getSelection().anchorNode,ee=t.getRootElement();if((q==null?void 0:q.tagName)!=="P"||!ee.contains(q)){E();return}l(g(q)),v(q)})},[t,v,E]),T=S.default.useCallback((P,{insertParams:H={}}={})=>{const re={...H};t.dispatchCommand(P,re),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{_()},[t,_]));const C=S.default.useCallback(()=>{var P;if(e){const H=window.getSelection();if(r&&((P=d.current)==null?void 0:P.contains(H.anchorNode)))return;t.getRootElement().contains(H.anchorNode)||E()}},[t,e,r,E]);S.default.useEffect(()=>(document.addEventListener("selectionchange",C),()=>{document.removeEventListener("selectionchange",C)}),[C]);const N=S.default.useCallback(P=>{if(r)return;const H=t.getRootElement();let{pageX:re,pageY:q}=P,ee=H.getBoundingClientRect();re<ee.left&&(re=re+40);const ce=document.elementFromPoint(re,q);H.contains(ce)&&((ce==null?void 0:ce.tagName)==="P"&&ce.textContent===""?(l(g(ce)),v(ce)):_())},[t,r,l,v,_]);S.default.useEffect(()=>(window.addEventListener("mousemove",N),()=>{window.removeEventListener("mousemove",N)}),[N]);const O=S.default.useCallback(P=>{var H;if(r&&!((H=d.current)!=null&&H.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",O),()=>{window.removeEventListener("mousedown",O)}),[O]);const D=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)})),S.default.useEffect(()=>{const P=lc(t);u(sc(P,{insert:T}))},[t,T,u]);const A={top:`${o}px`};return((U=c.menu)==null?void 0:U.size)===0?null:e?Y("div",{className:"absolute",style:A,ref:d,"data-kg-plus-container":!0,children:[e&&h(Ig,{onClick:k}),r&&h(Pg,{children:h(oc,{menu:c.menu,insert:T})})]}):null}function ac(){const[t]=fe.useLexicalComposerContext();return Hg(t)}function Kg({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function Ug(t){var T;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,u]=S.default.useState({}),[d,g]=S.default.useState(0),m=S.default.useRef(null),f=S.default.useRef(null);function v(C){const N=C.getBoundingClientRect(),O=C.parentNode.getBoundingClientRect();return N.bottom-O.top}function E(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const k=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:C=!1}={})=>{C&&E(),n(!1),l(""),a([]),m.current=null},[n]),_=S.default.useCallback((C,{insertParams:N={},queryParams:O={}}={})=>{const D={...N};for(let A=0;A<O.length;A++)if(s[A]){const U=O[A],P=s[A];D[U]=P}t.update(()=>{const A=y.$getSelection();A.modify("extend",!0,"lineboundary"),A.deleteCharacter(!0),t.dispatchCommand(C,D)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const C=y.$getSelection();if(!y.$isRangeSelection(C)||!C.type==="text"||!C.isCollapsed()){p();return}const N=Rr(C).getTopLevelElement();if(!N||!y.$isParagraphNode(N)||!N.getTextContent().startsWith("/")){p();return}const O=window.getSelection(),D=O.anchorNode,A=t.getRootElement();if((D==null?void 0:D.nodeType)!==Node.TEXT_NODE||!A.contains(D)){p();return}m.current=O.getRangeAt(0);const U=N.getTextContent().slice(1),[P,...H]=U.split(" ");l(P),a(H)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const C=N=>{const{key:O,isComposing:D,shiftKey:A,ctrlKey:U,metaKey:P,altKey:H}=N;O!=="/"||D||A||U||P||H||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const q=y.$getSelection(),ee=Rr(q).getTopLevelElement();if(!ee||!y.$isParagraphNode(ee))return;const ce=ee.getTextContentSize(),Zt=q.isCollapsed()&&ee.getTextContent()==="",ie=!q.isCollapsed()&&(q.anchor.offset===0&&q.focus.offset===ce||q.anchor.offset===ce&&q.focus.offset===0);if(Zt||ie){const de=window.getSelection();let Ce;de.anchorNode.nodeType===Node.TEXT_NODE?Ce=de.anchorNode.parentNode.closest("p"):Ce=de.anchorNode,i(v(Ce)),k()}})};return window.addEventListener("keypress",C),()=>{window.removeEventListener("keypress",C)}},[t,e,i,k]),S.default.useEffect(()=>{if(!e)return;const C=N=>{if(N.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const C=N=>{var O;(O=f.current)!=null&&O.contains(N.target)||p()};return window.addEventListener("mousedown",C),()=>{window.removeEventListener("mousedown",C)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const C=D=>(g(d===0?c.maxItemIndex:d-1),D.preventDefault(),!0),N=D=>(d===c.maxItemIndex?g(0):g(d+1),D.preventDefault(),!0),O=D=>{var A;return(A=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${d}"]`))==null||A.click(),D.preventDefault(),!0};return xe.mergeRegister(t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,N,y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.KEY_ARROW_UP_COMMAND,C,y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND,N,y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.KEY_ARROW_LEFT_COMMAND,C,y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.KEY_ENTER_COMMAND,O,y.COMMAND_PRIORITY_HIGH))},[t,e,c,d]),S.default.useEffect(()=>{const C=lc(t);u(sc(C,{insert:_,query:o})),g(0)},[t,o,_,u,g]),((T=c.menu)==null?void 0:T.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:f,"data-kg-slash-container":!0,children:h(Kg,{children:h(oc,{menu:c.menu,selectedItemIndex:d,insert:_})})}):null}function Wg(){const[t]=fe.useLexicalComposerContext();return Ug(t)}const Vg=10;function Yg(t,e,n,r={}){r=Object.assign({verticalGap:Vg,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function Gg(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function cc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return cc(t.parentNode)||document.body}const jg={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function Zg({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=y.$getSelection();y.$isRangeSelection(f)&&He.$wrapNodes(f,()=>y.$createParagraphNode())})},u=f=>{r!==f&&e.update(()=>{const v=y.$getSelection();y.$isRangeSelection(v)&&He.$wrapNodes(v,()=>_t.$createHeadingNode(f))})},d=()=>{e.update(()=>{const f=y.$getSelection();y.$isRangeSelection(f)&&(r==="quote"?He.$wrapNodes(f,()=>bi()):r==="aside"?He.$wrapNodes(f,()=>y.$createParagraphNode()):He.$wrapNodes(f,()=>_t.$createQuoteNode()))})},g=S.default.useCallback(()=>{const f=a.current;if(!f)return;const v=y.$getSelection(),E=window.getSelection(),k=e.getRootElement();if(v!==null&&E!==null&&!E.isCollapsed&&k!==null&&k.contains(E.anchorNode)){const p=Gg(E,k);l||Yg(p,f,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=v=>{v.key==="Shift"&&m()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[m,e,g]),S.default.useEffect(()=>{const f=cc(n),v=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",v),f&&f.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),f&&f.removeEventListener("scroll",v)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),xe.mergeRegister(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{g()})}),e.registerCommand(y.SELECTION_CHANGE_COMMAND,()=>(g(),!1),y.COMMAND_PRIORITY_LOW))),[e,g]),h("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:Y(Vs,{children:[h(Le,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),h(Le,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),h(Le,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():u("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(Le,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():u("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h(Ai,{}),h(Le,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{d(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function Jg(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),u=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const d=y.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!y.$isRangeSelection(d)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!y.$isRangeSelection(d))return;const f=Rr(d),v=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),E=v.getKey(),k=t.getElementByKey(E);if(o(d.hasFormat("bold")),s(d.hasFormat("italic")),k!==null)if(xt.$isListNode(v)){const p=xe.$getNearestNodeOfType(f,xt.ListNode),_=p?p.getListType():v.getListType();c(_)}else{const p=_t.$isHeadingNode(v)?v.getTag():v.getType();p in jg&&c(p)}d.getTextContent()!==""?r(y.$isTextNode(f)):r(!1)})},[t]);if(te.useEffect(()=>(document.addEventListener("selectionchange",u),()=>{document.removeEventListener("selectionchange",u)}),[u]),te.useEffect(()=>t.registerUpdateListener(()=>{u()}),[t,u]),!!n)return Ze.createPortal(h(Zg,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function dc({anchorElem:t=document.body}){const[e]=fe.useLexicalComposerContext();return Jg(e,t)}const Xg=()=>{const[t]=fe.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(vr);return S.default.useEffect(()=>{if(!t.hasNodes([it])){console.error("ImagePlugin: ImageNode not registered");return}return xe.mergeRegister(t.registerCommand(Mi,n=>{const r=y.$getSelection();if(!y.$isRangeSelection(r))return!1;if(r.focus.getNode()!==null){const o=wr(n),l=r.focus.getNode(),s=y.$isParagraphNode(l)&&l.getTextContent()==="",a=l.getTopLevelElementOrThrow().getNextSibling();!s&&!a&&r.insertParagraph(),r.focus.getNode().getTopLevelElementOrThrow().insertBefore(o);const c=y.$createNodeSelection();c.add(o.getKey()),y.$setSelection(c)}return!0},y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.DRAGSTART_COMMAND,n=>Qg(),y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.DRAGOVER_COMMAND,n=>qg(),y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.DROP_COMMAND,n=>e1(n,t,e),y.COMMAND_PRIORITY_HIGH))},[t,e]),null},Qg=t=>!0,qg=t=>!0,e1=async(t,e=y.LexicalEditor,n)=>{t.preventDefault();const r=t.dataTransfer.files,i=await n.imageUploader(r);i&&e.dispatchCommand(Mi,i)},t1=()=>{const[t]=fe.useLexicalComposerContext();return te.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(Bs,()=>{const e=y.$getSelection();if(!y.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Ri(),i=e.focus.getNode();y.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},y.COMMAND_PRIORITY_EDITOR)},[t]),null};function n1(){return h("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}const r1=({onChange:t,markdownTransformers:e})=>{const n=S.default.useCallback(s=>{const a=s.toJSON();t==null||t(a)},[t]),{editorContainerRef:r}=S.default.useContext(vr),[i,o]=S.default.useState(null),l=s=>{s!==null&&o(s)};return Y("div",{className:"koenig-lexical",ref:r,children:[h(Yu.RichTextPlugin,{contentEditable:h("div",{ref:l,children:h(Zu.ContentEditable,{className:"kg-prose"})}),placeholder:h(n1,{})}),h(og.OnChangePlugin,{onChange:n}),h(ng.HistoryPlugin,{})," ",h(cg.ListPlugin,{})," ",h(aa,{containerElem:r}),h(ic,{transformers:e}),h(ac,{}),h(Wg,{}),i&&h(dc,{anchorElem:i}),h(Xg,{}),h(t1,{})]})};G.CODE_BLOCK_TRANSFORMER=tc,G.DEFAULT_NODES=Ys,G.DEFAULT_TRANSFORMERS=rc,G.DesignSandbox=Gc,G.ELEMENT_TRANSFORMERS=nc,G.FloatingFormatToolbarPlugin=dc,G.HR_TRANSFORMER=ec,G.KoenigBehaviourPlugin=aa,G.KoenigComposer=Iu,G.KoenigEditor=r1,G.MarkdownShortcutPlugin=ic,G.PlusCardMenuPlugin=ac,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
51
+ `)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),at.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[U.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=at.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},Ia={dependencies:[$n.CodeNode],export:t=>{if(!$n.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
52
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:Ma(t=>$n.$createCodeNode(t?t[1]:void 0)),type:"element"},Pa={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:Gi("bullet"),type:"element"},Eg={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:Gi("check"),type:"element"},Fa={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?br(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:Gi("number"),type:"element"},za={format:["code"],tag:"`",type:"text-format"},Ba={format:["bold","italic"],tag:"***",type:"text-format"},Ha={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ka={format:["bold"],tag:"**",type:"text-format"},Wa={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ua={format:["strikethrough"],tag:"~~",type:"text-format"},Va={format:["italic"],tag:"*",type:"text-format"},Ya={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Ga={dependencies:[Wi.LinkNode],export:(t,e,n)=>{if(!Wi.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&U.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=Wi.$createLinkNode(r);const i=U.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},ja=[La,Da,Ia,Pa,Fa],Za=[za,Ba,Ha,Ka,Wa,Va,Ya,Ua],Ja=[Ga],Or=[...ja,...Za,...Ja];Q.$convertFromMarkdownString=function(t,e=Or){return yg(e)(t)},Q.$convertToMarkdownString=function(t=Or){return xg(t)()},Q.BOLD_ITALIC_STAR=Ba,Q.BOLD_ITALIC_UNDERSCORE=Ha,Q.BOLD_STAR=Ka,Q.BOLD_UNDERSCORE=Wa,Q.CHECK_LIST=Eg,Q.CODE=Ia,Q.ELEMENT_TRANSFORMERS=ja,Q.HEADING=La,Q.INLINE_CODE=za,Q.ITALIC_STAR=Va,Q.ITALIC_UNDERSCORE=Ya,Q.LINK=Ga,Q.ORDERED_LIST=Fa,Q.QUOTE=Da,Q.STRIKETHROUGH=Ua,Q.TEXT_FORMAT_TRANSFORMERS=Za,Q.TEXT_MATCH_TRANSFORMERS=Ja,Q.TRANSFORMERS=Or,Q.UNORDERED_LIST=Pa,Q.registerMarkdownShortcuts=function(t,e=Or){let n=Vi(e),r=Ui(n.textFormat,({tag:o})=>o[o.length-1]),i=Ui(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(U.$getSelection);if(o=a.read(U.$getSelection),U.$isRangeSelection(o)&&U.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var d=c.anchor.offset,u=s._nodeMap.get(a);U.$isTextNode(u)&&l.has(a)&&(d===1||d===o.anchor.offset+1)&&t.update(()=>{if(!u.hasFormat("code")){var g=u.getParent();if(g!==null&&!$n.$isCodeNode(g)){var m=c.anchor.offset;e:{var f=n.element,_=g.getParent();if(U.$isRootOrShadowRoot(_)&&g.getFirstChild()===u&&(_=u.getTextContent(),_[m-1]===" ")){for(let{regExp:k,replace:N}of f)if((f=_.match(k))&&f[0].length===m){_=u.getNextSiblings();let[O,D]=u.splitText(m);O.remove(),_=D?[D,..._]:_,N(g,_,f,!1),g=!0;break e}}g=!1}if(!g){e:{if(f=u.getTextContent(),g=i[f[m-1]],g!=null){m<f.length&&(f=f.slice(0,m));for(T of g)if(g=f.match(T.regExp),g!==null){f=g.index||0,_=f+g[0].length;var E=void 0;f===0?[E]=u.splitText(_):[,E]=u.splitText(f,_),E.selectNext(0,0),T.replace(E,g);var T=!0;break e}}T=!1}if(!T)e:{_=u.getTextContent(),--m;var p=_[m];if(T=r[p])for(let k of T){var{tag:v}=k;T=v.length;let N=m-T+1;if(!(1<T&&!$a(_,N,v,0,T)||_[N-1]===" ")&&(E=_[m+1],k.intraword!==!1||!E||Nr.test(E))){g=E=u,f=Aa(_,N,v);for(var y=g;0>f&&(y=y.getPreviousSibling())&&!U.$isLineBreakNode(y);)U.$isTextNode(y)&&(f=y.getTextContent(),g=y,f=Aa(f,f.length,v));if(!(0>f||g===E&&f+T===N||(v=g.getTextContent(),0<f&&v[f-1]===p||(y=v[f-1],k.intraword===!1&&y&&!Nr.test(y))))){_=E.getTextContent(),_=_.slice(0,N)+_.slice(m+1),E.setTextContent(_),_=g===E?_:v,g.setTextContent(_.slice(0,f)+_.slice(f+T)),_=U.$getSelection(),p=U.$createRangeSelection(),U.$setSelection(p),m=m-T*(g===E?2:1)+1,p.anchor.set(g.__key,f,"text"),p.focus.set(E.__key,m,"text");for(let O of k.format)p.hasFormat(O)||p.formatText(O);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let O of k.format)p.hasFormat(O)&&p.toggleFormat(O);U.$isRangeSelection(_)&&(p.format=_.format);break e}}}}}}}})}}})};var Et=Q,ji={},Mn={},Ng=fe,Tg=Is,Sg=xe,Pe=w,Ln=S.default;let bg=Pe.createCommand();function Og({nodeKey:t}){let[e]=Ng.useLexicalComposerContext(),n=Ln.useRef(null),[r,i,o]=Tg.useLexicalNodeSelection(t),l=Ln.useCallback(s=>(r&&Pe.$isNodeSelection(Pe.$getSelection())&&(s.preventDefault(),s=Pe.$getNodeByKey(t),Xa(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Ln.useEffect(()=>Sg.mergeRegister(e.registerCommand(Pe.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,Pe.COMMAND_PRIORITY_LOW),e.registerCommand(Pe.KEY_DELETE_COMMAND,l,Pe.COMMAND_PRIORITY_LOW),e.registerCommand(Pe.KEY_BACKSPACE_COMMAND,l,Pe.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Ln.createElement("hr",{ref:n,className:r?"selected":void 0})}class Dn extends Pe.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Dn(e.__key)}static importJSON(){return Zi()}static importDOM(){return{hr:()=>({conversion:Rg,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return Ln.createElement(Og,{nodeKey:this.__key})}}function Rg(){return{node:Zi()}}function Zi(){return new Dn}function Xa(t){return t instanceof Dn}Mn.$createHorizontalRuleNode=Zi,Mn.$isHorizontalRuleNode=Xa,Mn.HorizontalRuleNode=Dn,Mn.INSERT_HORIZONTAL_RULE_COMMAND=bg;var Ag=Mn,Qa=Et,$g=fe,Ji=Ag,Mg=S.default;let qa=[{dependencies:[Ji.HorizontalRuleNode],export:t=>Ji.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=Ji.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...Qa.TRANSFORMERS];ji.DEFAULT_TRANSFORMERS=qa,ji.MarkdownShortcutPlugin=function({transformers:t=qa}){let[e]=$g.useLexicalComposerContext();return Mg.useEffect(()=>Qa.registerMarkdownShortcuts(e,t),[e,t]),null};var Lg=ji;const ec={dependencies:[yt],export:t=>mu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Ai();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},tc={dependencies:[Vt],export:t=>{if(!vu(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=Ks(i,r);t.replace(o)},type:"element"},Dg={dependencies:[it],export:t=>{if($u(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=yr({altText:"",src:""});t.replace(o)},type:"element"},nc=[Et.HEADING,Et.QUOTE,Et.UNORDERED_LIST,Et.ORDERED_LIST,ec,tc,Dg],rc=[...nc,...Et.TEXT_FORMAT_TRANSFORMERS,...Et.TEXT_MATCH_TRANSFORMERS];function ic({transformers:t=rc}={}){return Lg.MarkdownShortcutPlugin({transformers:t})}function Rr(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?We.$isAtNodeEnd(n)?r:i:We.$isAtNodeEnd(e)?i:r}function Ig({onClick:t}){return h("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(fo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function Pg({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const Fg=({label:t,children:e,...n})=>Y("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[h("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),h("ul",{role:"menu",children:e})]}),zg=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:Y("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[h("div",{className:"flex items-center",children:h(i,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),h("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),Bg=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:Y("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[h("div",{className:"flex items-center",children:h(n,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),oc=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,d=u=>{u.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(h(zg,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(Bg,{label:a.label,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(Fg,{label:o,children:s},o))}return h("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function lc(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function sc(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function Hg(t){var W;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,d]=S.default.useState({}),u=S.default.useRef(null);function g(P){const H=P.getBoundingClientRect(),re=P.parentNode.getBoundingClientRect();return H.top-re.top}function m(P){const H=new Range;return H.setStart(P,0),H.setEnd(P,0),H}const f=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),_=S.default.useCallback(P=>{const H=m(P);a(H),n(!0)},[n,a]),E=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),T=S.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),v=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=w.$getSelection();if(!w.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){E();return}const H=Rr(P);if(!w.$isParagraphNode(H)||H.getTextContent()!==""){E();return}const q=window.getSelection().anchorNode,ee=t.getRootElement();if((q==null?void 0:q.tagName)!=="P"||!ee.contains(q)){E();return}l(g(q)),_(q)})},[t,_,E]),y=S.default.useCallback((P,{insertParams:H={}}={})=>{const re={...H};t.dispatchCommand(P,re),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{v()},[t,v]));const k=S.default.useCallback(()=>{var P;if(e){const H=window.getSelection();if(r&&((P=u.current)==null?void 0:P.contains(H.anchorNode)))return;t.getRootElement().contains(H.anchorNode)||E()}},[t,e,r,E]);S.default.useEffect(()=>(document.addEventListener("selectionchange",k),()=>{document.removeEventListener("selectionchange",k)}),[k]);const N=S.default.useCallback(P=>{if(r)return;const H=t.getRootElement();let{pageX:re,pageY:q}=P,ee=H.getBoundingClientRect();re<ee.left&&(re=re+40);const ce=document.elementFromPoint(re,q);H.contains(ce)&&((ce==null?void 0:ce.tagName)==="P"&&ce.textContent===""?(l(g(ce)),_(ce)):v())},[t,r,l,_,v]);S.default.useEffect(()=>(window.addEventListener("mousemove",N),()=>{window.removeEventListener("mousemove",N)}),[N]);const O=S.default.useCallback(P=>{var H;if(r&&!((H=u.current)!=null&&H.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",O),()=>{window.removeEventListener("mousedown",O)}),[O]);const D=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)})),S.default.useEffect(()=>{const P=lc(t);d(sc(P,{insert:y}))},[t,y,d]);const A={top:`${o}px`};return((W=c.menu)==null?void 0:W.size)===0?null:e?Y("div",{className:"absolute",style:A,ref:u,"data-kg-plus-container":!0,children:[e&&h(Ig,{onClick:T}),r&&h(Pg,{children:h(oc,{menu:c.menu,insert:y})})]}):null}function ac(){const[t]=fe.useLexicalComposerContext();return Hg(t)}function Kg({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function Wg(t){var y;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,d]=S.default.useState({}),[u,g]=S.default.useState(0),m=S.default.useRef(null),f=S.default.useRef(null);function _(k){const N=k.getBoundingClientRect(),O=k.parentNode.getBoundingClientRect();return N.bottom-O.top}function E(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const T=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:k=!1}={})=>{k&&E(),n(!1),l(""),a([]),m.current=null},[n]),v=S.default.useCallback((k,{insertParams:N={},queryParams:O={}}={})=>{const D={...N};for(let A=0;A<O.length;A++)if(s[A]){const W=O[A],P=s[A];D[W]=P}t.update(()=>{const A=w.$getSelection();A.modify("extend",!0,"lineboundary"),A.deleteCharacter(!0),t.dispatchCommand(k,D)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const k=w.$getSelection();if(!w.$isRangeSelection(k)||!k.type==="text"||!k.isCollapsed()){p();return}const N=Rr(k).getTopLevelElement();if(!N||!w.$isParagraphNode(N)||!N.getTextContent().startsWith("/")){p();return}const O=window.getSelection(),D=O.anchorNode,A=t.getRootElement();if((D==null?void 0:D.nodeType)!==Node.TEXT_NODE||!A.contains(D)){p();return}m.current=O.getRangeAt(0);const W=N.getTextContent().slice(1),[P,...H]=W.split(" ");l(P),a(H)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const k=N=>{const{key:O,isComposing:D,shiftKey:A,ctrlKey:W,metaKey:P,altKey:H}=N;O!=="/"||D||A||W||P||H||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const q=w.$getSelection(),ee=Rr(q).getTopLevelElement();if(!ee||!w.$isParagraphNode(ee))return;const ce=ee.getTextContentSize(),Zt=q.isCollapsed()&&ee.getTextContent()==="",ie=!q.isCollapsed()&&(q.anchor.offset===0&&q.focus.offset===ce||q.anchor.offset===ce&&q.focus.offset===0);if(Zt||ie){const de=window.getSelection();let ke;de.anchorNode.nodeType===Node.TEXT_NODE?ke=de.anchorNode.parentNode.closest("p"):ke=de.anchorNode,i(_(ke)),T()}})};return window.addEventListener("keypress",k),()=>{window.removeEventListener("keypress",k)}},[t,e,i,T]),S.default.useEffect(()=>{if(!e)return;const k=N=>{if(N.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",k),()=>{window.removeEventListener("keydown",k)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const k=N=>{var O;(O=f.current)!=null&&O.contains(N.target)||p()};return window.addEventListener("mousedown",k),()=>{window.removeEventListener("mousedown",k)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const k=D=>(g(u===0?c.maxItemIndex:u-1),D.preventDefault(),!0),N=D=>(u===c.maxItemIndex?g(0):g(u+1),D.preventDefault(),!0),O=D=>{var A;return(A=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`))==null||A.click(),D.preventDefault(),!0};return xe.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,N,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,N,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,O,w.COMMAND_PRIORITY_HIGH))},[t,e,c,u]),S.default.useEffect(()=>{const k=lc(t);d(sc(k,{insert:v,query:o})),g(0)},[t,o,v,d,g]),((y=c.menu)==null?void 0:y.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:f,"data-kg-slash-container":!0,children:h(Kg,{children:h(oc,{menu:c.menu,selectedItemIndex:u,insert:v})})}):null}function Ug(){const[t]=fe.useLexicalComposerContext();return Wg(t)}const Vg=10;function Yg(t,e,n,r={}){r=Object.assign({verticalGap:Vg,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function Gg(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function cc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return cc(t.parentNode)||document.body}const jg={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function Zg({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&We.$wrapNodes(f,()=>w.$createParagraphNode())})},d=f=>{r!==f&&e.update(()=>{const _=w.$getSelection();w.$isRangeSelection(_)&&We.$wrapNodes(_,()=>_t.$createHeadingNode(f))})},u=()=>{e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&(r==="quote"?We.$wrapNodes(f,()=>bi()):r==="aside"?We.$wrapNodes(f,()=>w.$createParagraphNode()):We.$wrapNodes(f,()=>_t.$createQuoteNode()))})},g=S.default.useCallback(()=>{const f=a.current;if(!f)return;const _=w.$getSelection(),E=window.getSelection(),T=e.getRootElement();if(_!==null&&E!==null&&!E.isCollapsed&&T!==null&&T.contains(E.anchorNode)){const p=Gg(E,T);l||Yg(p,f,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=_=>{_.key==="Shift"&&m()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[m,e,g]),S.default.useEffect(()=>{const f=cc(n),_=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",_),f&&f.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),f&&f.removeEventListener("scroll",_)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),xe.mergeRegister(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{g()})}),e.registerCommand(w.SELECTION_CHANGE_COMMAND,()=>(g(),!1),w.COMMAND_PRIORITY_LOW))),[e,g]),h("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:Y(Vs,{children:[h(De,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),h(De,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),h(De,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():d("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(De,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():d("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h($i,{}),h(De,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{u(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function Jg(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),d=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const u=w.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(u)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(u))return;const f=Rr(u),_=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),E=_.getKey(),T=t.getElementByKey(E);if(o(u.hasFormat("bold")),s(u.hasFormat("italic")),T!==null)if(xt.$isListNode(_)){const p=xe.$getNearestNodeOfType(f,xt.ListNode),v=p?p.getListType():_.getListType();c(v)}else{const p=_t.$isHeadingNode(_)?_.getTag():_.getType();p in jg&&c(p)}u.getTextContent()!==""?r(w.$isTextNode(f)):r(!1)})},[t]);if(te.useEffect(()=>(document.addEventListener("selectionchange",d),()=>{document.removeEventListener("selectionchange",d)}),[d]),te.useEffect(()=>t.registerUpdateListener(()=>{d()}),[t,d]),!!n)return Ze.createPortal(h(Zg,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function dc({anchorElem:t=document.body}){const[e]=fe.useLexicalComposerContext();return Jg(e,t)}const Xg=()=>{const[t]=fe.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(vr);return S.default.useEffect(()=>{if(!t.hasNodes([it])){console.error("ImagePlugin: ImageNode not registered");return}return xe.mergeRegister(t.registerCommand(Mi,n=>{const r=w.$getSelection();if(!w.$isRangeSelection(r))return!1;if(r.focus.getNode()!==null){const o=yr(n),l=r.focus.getNode(),s=w.$isParagraphNode(l)&&l.getTextContent()==="",a=l.getTopLevelElementOrThrow().getNextSibling();!s&&!a&&r.insertParagraph(),r.focus.getNode().getTopLevelElementOrThrow().insertBefore(o);const c=w.$createNodeSelection();c.add(o.getKey()),w.$setSelection(c)}return!0},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGSTART_COMMAND,n=>Qg(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGOVER_COMMAND,n=>qg(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DROP_COMMAND,n=>e1(n,t,e),w.COMMAND_PRIORITY_HIGH))},[t,e]),null},Qg=t=>!0,qg=t=>!0,e1=async(t,e=w.LexicalEditor,n)=>{t.preventDefault();const r=t.dataTransfer.files,i=await n.imageUploader(r);i&&e.dispatchCommand(Mi,i)},t1=()=>{const[t]=fe.useLexicalComposerContext();return te.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(Bs,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Ai(),i=e.focus.getNode();w.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},w.COMMAND_PRIORITY_EDITOR)},[t]),null};function n1(){return h("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}const r1=({onChange:t,markdownTransformers:e})=>{const n=S.default.useCallback(s=>{const a=s.toJSON();t==null||t(a)},[t]),{editorContainerRef:r}=S.default.useContext(vr),[i,o]=S.default.useState(null),l=s=>{s!==null&&o(s)};return Y("div",{className:"koenig-lexical",ref:r,children:[h(Yu.RichTextPlugin,{contentEditable:h("div",{ref:l,children:h(Zu.ContentEditable,{className:"kg-prose"})}),placeholder:h(n1,{})}),h(og.OnChangePlugin,{onChange:n}),h(ng.HistoryPlugin,{})," ",h(cg.ListPlugin,{})," ",h(aa,{containerElem:r}),h(ic,{transformers:e}),h(ac,{}),h(Ug,{}),i&&h(dc,{anchorElem:i}),h(Xg,{}),h(t1,{})]})};G.CODE_BLOCK_TRANSFORMER=tc,G.DEFAULT_NODES=Ys,G.DEFAULT_TRANSFORMERS=rc,G.DesignSandbox=Gc,G.ELEMENT_TRANSFORMERS=nc,G.FloatingFormatToolbarPlugin=dc,G.HR_TRANSFORMER=ec,G.KoenigBehaviourPlugin=aa,G.KoenigComposer=Iu,G.KoenigEditor=r1,G.MarkdownShortcutPlugin=ic,G.PlusCardMenuPlugin=ac,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
55
55
  //# sourceMappingURL=koenig-lexical.umd.js.map