@faststore/core 3.87.0 → 3.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +115 -116
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/react-loadable-manifest.json +178 -169
  12. package/.next/routes-manifest.json +1 -1
  13. package/.next/server/chunks/6870.js +1 -0
  14. package/.next/server/chunks/83.js +1 -1
  15. package/.next/server/chunks/8474.js +3 -3
  16. package/.next/server/chunks/948.js +1 -1
  17. package/.next/server/chunks/9563.js +1 -1
  18. package/.next/server/chunks/UIBannerText.js +1 -1
  19. package/.next/server/functions-config-manifest.json +1 -1
  20. package/.next/server/middleware-build-manifest.js +1 -1
  21. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  22. package/.next/server/pages/404.js.nft.json +1 -1
  23. package/.next/server/pages/500.js.nft.json +1 -1
  24. package/.next/server/pages/[...slug].js +1 -1
  25. package/.next/server/pages/[...slug].js.nft.json +1 -1
  26. package/.next/server/pages/[slug]/p.js +1 -1
  27. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  28. package/.next/server/pages/_app.js.nft.json +1 -1
  29. package/.next/server/pages/_document.js.nft.json +1 -1
  30. package/.next/server/pages/_error.js.nft.json +1 -1
  31. package/.next/server/pages/api/graphql.js +1 -1
  32. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  33. package/.next/server/pages/api/health/live.js.nft.json +1 -1
  34. package/.next/server/pages/api/health/ready.js.nft.json +1 -1
  35. package/.next/server/pages/api/preview.js.nft.json +1 -1
  36. package/.next/server/pages/checkout.js.nft.json +1 -1
  37. package/.next/server/pages/en-US/404.html +1 -1
  38. package/.next/server/pages/en-US/500.html +1 -1
  39. package/.next/server/pages/en-US/checkout.html +1 -1
  40. package/.next/server/pages/en-US/login.html +1 -1
  41. package/.next/server/pages/en-US/s.html +1 -1
  42. package/.next/server/pages/en-US.html +1 -1
  43. package/.next/server/pages/index.js.nft.json +1 -1
  44. package/.next/server/pages/login.js.nft.json +1 -1
  45. package/.next/server/pages/pvt/account/403.js.nft.json +1 -1
  46. package/.next/server/pages/pvt/account/404.js.nft.json +1 -1
  47. package/.next/server/pages/pvt/account/[...unknown].js.nft.json +1 -1
  48. package/.next/server/pages/pvt/account/orders/[id].js.nft.json +1 -1
  49. package/.next/server/pages/pvt/account/orders.js.nft.json +1 -1
  50. package/.next/server/pages/pvt/account/profile.js.nft.json +1 -1
  51. package/.next/server/pages/pvt/account/security.js.nft.json +1 -1
  52. package/.next/server/pages/pvt/account/user-details.js.nft.json +1 -1
  53. package/.next/server/pages/pvt/account.js.nft.json +1 -1
  54. package/.next/server/pages/s.js.nft.json +1 -1
  55. package/.next/server/pages-manifest.json +1 -1
  56. package/.next/static/JaRUyeLgqhw17hCxdW6B5/_buildManifest.js +1 -0
  57. package/.next/static/chunks/1208-9118a8f14ecf05c8.js +8 -0
  58. package/.next/static/chunks/1841.b3a98a2a1886b09c.js +1 -0
  59. package/.next/static/chunks/2284.17a3e4c3af092981.js +1 -0
  60. package/.next/static/chunks/2500.02f018a354c612fb.js +1 -0
  61. package/.next/static/chunks/294.ac8fb1e24849b0c4.js +1 -0
  62. package/.next/static/chunks/3155.f521c771a8c355a5.js +1 -0
  63. package/.next/static/chunks/3399.b1311b661da6b316.js +1 -0
  64. package/.next/static/chunks/3483.ef53d632a763da3f.js +1 -0
  65. package/.next/static/chunks/349.235b18ceb82aa256.js +1 -0
  66. package/.next/static/chunks/3836.5a76d717d95d1f2d.js +1 -0
  67. package/.next/static/chunks/4799.46dca5f8076f9448.js +1 -0
  68. package/.next/static/chunks/4803.c1405eca2ccf78c8.js +1 -0
  69. package/.next/static/chunks/5796.4351370494d8b8b6.js +1 -0
  70. package/.next/static/chunks/5859.cf66c492751f5680.js +1 -0
  71. package/.next/static/chunks/6031-a7dfc540189ff57c.js +28 -0
  72. package/.next/static/chunks/6393.e4b26fee060438d6.js +1 -0
  73. package/.next/static/chunks/6700.a72869377e81146c.js +1 -0
  74. package/.next/static/chunks/6789.856de844108ee5da.js +1 -0
  75. package/.next/static/chunks/6852-97b424676696b449.js +1 -0
  76. package/.next/static/chunks/7191-0063121dcadf6b82.js +1 -0
  77. package/.next/static/chunks/7351.2d0d3a1fb538d97a.js +1 -0
  78. package/.next/static/chunks/7692.a352cce6d744fa8b.js +1 -0
  79. package/.next/static/chunks/7861.7f9f1a124a43da30.js +6 -0
  80. package/.next/static/chunks/8068.43663fb64762f7b8.js +1 -0
  81. package/.next/static/chunks/83.7723de7199118a99.js +1 -0
  82. package/.next/static/chunks/8325.dabe9aa22eaadeed.js +1 -0
  83. package/.next/static/chunks/8587.53c8ce185ed1a2cb.js +1 -0
  84. package/.next/static/chunks/9173-2dc082a086a959c3.js +1 -0
  85. package/.next/static/chunks/9399.132e63584d15075f.js +1 -0
  86. package/.next/static/chunks/941.417f354fd61bae91.js +1 -0
  87. package/.next/static/chunks/9465.8754a1b3cd5c4c83.js +1 -0
  88. package/.next/static/chunks/9714.2e2c2f0eb526ba23.js +1 -0
  89. package/.next/static/chunks/9781.a221de71d6b10ba0.js +1 -0
  90. package/.next/static/chunks/9909.787576b171184aa5.js +1 -0
  91. package/.next/static/chunks/BannerNewsletter.840a840b7a616260.js +1 -0
  92. package/.next/static/chunks/BannerText.b675fb19df87b7cb.js +1 -0
  93. package/.next/static/chunks/ButtonSignIn.308336a54a58f436.js +1 -0
  94. package/.next/static/chunks/CartItem.afa42120880fcb94.js +1 -0
  95. package/.next/static/chunks/CartSidebar.71d3ea99611c87a3.js +1 -0
  96. package/.next/static/chunks/Dropdown.38b48c749bad6b60.js +1 -0
  97. package/.next/static/chunks/DropdownButton.66fa6b25dddb3a07.js +1 -0
  98. package/.next/static/chunks/DropdownItem.38b8f5a07c7f422a.js +1 -0
  99. package/.next/static/chunks/DropdownMenu.48b11521a24c6efd.js +1 -0
  100. package/.next/static/chunks/EmptyCart.320e2f94a0d5e6b1.js +1 -0
  101. package/.next/static/chunks/FilterSkeleton.7ab99e28f92341c9.js +1 -0
  102. package/.next/static/chunks/Footer.63a7682a81a96f8e.js +1 -0
  103. package/.next/static/chunks/Gift.9d0570cbe866077f.js +1 -0
  104. package/.next/static/chunks/Newsletter.dbf35a8ea6d2067e.js +1 -0
  105. package/.next/static/chunks/OrderSummary.f9adad5622605046.js +1 -0
  106. package/.next/static/chunks/PreviewTag.f4f0c8710a7bcad9.js +1 -0
  107. package/.next/static/chunks/ProductShelf.632b93b2c0e1ca9a.js +1 -0
  108. package/.next/static/chunks/ProductTiles.778c483734598736.js +1 -0
  109. package/.next/static/chunks/RegionModal.2a8f6662c3a64d2a.js +1 -0
  110. package/.next/static/chunks/RegionSlider.bd14bfba15836ea0.js +1 -0
  111. package/.next/static/chunks/ScrollToTopButton.c15431f2e8bb93ef.js +1 -0
  112. package/.next/static/chunks/Toast.f583e19c7fcb2527.js +1 -0
  113. package/.next/static/chunks/UIBannerText.6715ba9ae0b6065c.js +1 -0
  114. package/.next/static/chunks/UISKUMatrixSidebar.072f0b5bf8e172f6.js +1 -0
  115. package/.next/static/chunks/UIToast.1ac644a9d787435c.js +1 -0
  116. package/.next/static/chunks/framework-d514426edf885c68.js +33 -0
  117. package/.next/static/chunks/main-595f5e3b626b9fff.js +1 -0
  118. package/.next/static/chunks/pages/404-4b3f1e22c77f849a.js +1 -0
  119. package/.next/static/chunks/pages/500-bb2de0c11524b2b8.js +1 -0
  120. package/.next/static/chunks/pages/[...slug]-8c829cc01fdb1a38.js +1 -0
  121. package/.next/static/chunks/pages/[slug]/p-4900eb3e616324c7.js +1 -0
  122. package/.next/static/chunks/pages/_app-8b7d8e9c9021b0cf.js +1 -0
  123. package/.next/static/chunks/pages/_error-2b0148be56a716e9.js +1 -0
  124. package/.next/static/chunks/pages/checkout-dc07d72b3514c83d.js +1 -0
  125. package/.next/static/chunks/pages/index-8e36d989396a7544.js +1 -0
  126. package/.next/static/chunks/pages/login-e97ef92769456bf6.js +1 -0
  127. package/.next/static/chunks/pages/pvt/account/403-e4315ace8609a7ff.js +1 -0
  128. package/.next/static/chunks/pages/pvt/account/404-1e450ae9476bbcaa.js +1 -0
  129. package/.next/static/chunks/pages/pvt/account/[...unknown]-f80f645594d2740c.js +1 -0
  130. package/.next/static/chunks/pages/pvt/account/orders/[id]-a3e46af1be9816a4.js +1 -0
  131. package/.next/static/chunks/pages/pvt/account/orders-db7a364869130660.js +1 -0
  132. package/.next/static/chunks/pages/pvt/account/profile-e8a7ad7a7d7c60fb.js +1 -0
  133. package/.next/static/chunks/pages/pvt/account/security-cad4e4260be8b0cd.js +1 -0
  134. package/.next/static/chunks/pages/pvt/account/user-details-401f6f6e4ce4b9ce.js +1 -0
  135. package/.next/static/chunks/pages/pvt/account-65fefcc699344bdb.js +1 -0
  136. package/.next/static/chunks/pages/s-5319ae49907c3391.js +1 -0
  137. package/.next/static/chunks/webpack-50869061879531a0.js +1 -0
  138. package/.next/static/css/175fa823349dc534.css +1 -0
  139. package/.next/static/css/{18e4be87b97035da.css → 45fac71f6411cceb.css} +1 -1
  140. package/.next/static/css/f63d693715093ed1.css +1 -0
  141. package/.next/trace +137 -136
  142. package/.turbo/turbo-build.log +28 -29
  143. package/.turbo/turbo-test.log +5 -5
  144. package/CHANGELOG.md +6 -0
  145. package/package.json +12 -4
  146. package/src/components/sections/Newsletter/section.module.scss +2 -0
  147. package/src/components/ui/Newsletter/NewsletterAddendum.tsx +22 -73
  148. package/src/components/ui/RichText/RichText.tsx +202 -0
  149. package/src/components/ui/RichText/index.ts +2 -0
  150. package/.next/server/chunks/8640.js +0 -1
  151. package/.next/static/OCdDzXbixjGq2qfKmUzTD/_buildManifest.js +0 -1
  152. package/.next/static/chunks/1417.feb3146f627742b7.js +0 -1
  153. package/.next/static/chunks/2284.6e01b30c38bb74fd.js +0 -1
  154. package/.next/static/chunks/294.d57cdd543091b533.js +0 -1
  155. package/.next/static/chunks/3155.0a1b674bbd087938.js +0 -1
  156. package/.next/static/chunks/3166-b1ac316afe18625b.js +0 -1
  157. package/.next/static/chunks/3399.15d4dbadc57c3f42.js +0 -1
  158. package/.next/static/chunks/3483.4aa5b8186f9288b8.js +0 -1
  159. package/.next/static/chunks/353.3e74b28c8ca649a2.js +0 -1
  160. package/.next/static/chunks/3836.c7f8d69a151682bc.js +0 -1
  161. package/.next/static/chunks/4799.685d618907cf7026.js +0 -1
  162. package/.next/static/chunks/4803.74cf987971db6d93.js +0 -1
  163. package/.next/static/chunks/4836.5450b506133e326f.js +0 -1
  164. package/.next/static/chunks/5796.31fc3b14839d2bc0.js +0 -1
  165. package/.next/static/chunks/6031-18797e7ebff417ab.js +0 -28
  166. package/.next/static/chunks/6393.4ad395e06f7dbbc6.js +0 -1
  167. package/.next/static/chunks/6700.ddae2aa02d2dd401.js +0 -1
  168. package/.next/static/chunks/6789.c37c2ec891333684.js +0 -1
  169. package/.next/static/chunks/7026.9ab6a9b610831b85.js +0 -1
  170. package/.next/static/chunks/7191-d39597fc204602cb.js +0 -1
  171. package/.next/static/chunks/7351.8ef7b6b1d6e1505a.js +0 -1
  172. package/.next/static/chunks/7692.d434a8499fb2aa03.js +0 -1
  173. package/.next/static/chunks/7861.3fe27a385fea2fb7.js +0 -6
  174. package/.next/static/chunks/8068.374d1641856d8b1b.js +0 -1
  175. package/.next/static/chunks/83.8172f0b21b7683d6.js +0 -1
  176. package/.next/static/chunks/8325.40b7331df742c2f5.js +0 -1
  177. package/.next/static/chunks/8587.1d6d458c9b697351.js +0 -1
  178. package/.next/static/chunks/9173-188afceabcbccdbb.js +0 -1
  179. package/.next/static/chunks/9399.6bd7f24a04ccfff4.js +0 -1
  180. package/.next/static/chunks/941.2a946730a9174ed7.js +0 -1
  181. package/.next/static/chunks/9666-1bd33f872ad66b42.js +0 -1
  182. package/.next/static/chunks/9714.68af2d4bf27f560b.js +0 -1
  183. package/.next/static/chunks/9781.60f28efd7e165f54.js +0 -1
  184. package/.next/static/chunks/9909.dcc319593a7c09f1.js +0 -1
  185. package/.next/static/chunks/BannerNewsletter.d91d065d644d15f3.js +0 -1
  186. package/.next/static/chunks/BannerText.3bc2f0af3687e984.js +0 -1
  187. package/.next/static/chunks/ButtonSignIn.c9bc322071e80856.js +0 -1
  188. package/.next/static/chunks/CartItem.d4c2664933f93606.js +0 -1
  189. package/.next/static/chunks/CartSidebar.e21ad4975e18e6db.js +0 -1
  190. package/.next/static/chunks/Dropdown.7fe839c5ffce4687.js +0 -1
  191. package/.next/static/chunks/DropdownButton.47ba6e75ee7435de.js +0 -1
  192. package/.next/static/chunks/DropdownItem.0b3c39f881ca0832.js +0 -1
  193. package/.next/static/chunks/DropdownMenu.943b2d11ffa50ff6.js +0 -1
  194. package/.next/static/chunks/EmptyCart.2fac8149cc511b0d.js +0 -1
  195. package/.next/static/chunks/FilterSkeleton.2e156182f33d8116.js +0 -1
  196. package/.next/static/chunks/Footer.0eb7e5cc7bce8103.js +0 -1
  197. package/.next/static/chunks/Gift.5891ca280b4f0164.js +0 -1
  198. package/.next/static/chunks/Newsletter.46c9113fa222890a.js +0 -1
  199. package/.next/static/chunks/OrderSummary.35d859a1e467ad91.js +0 -1
  200. package/.next/static/chunks/PreviewTag.0b16a5b6ac35ce1c.js +0 -1
  201. package/.next/static/chunks/ProductShelf.ee5cec2ae121df87.js +0 -1
  202. package/.next/static/chunks/ProductTiles.2bd64de5bcd5f6d8.js +0 -1
  203. package/.next/static/chunks/RegionModal.b5edb6ada60d37ec.js +0 -1
  204. package/.next/static/chunks/RegionSlider.3d9063b0cb6733d9.js +0 -1
  205. package/.next/static/chunks/ScrollToTopButton.7acc3be2dcad2695.js +0 -1
  206. package/.next/static/chunks/Toast.c06d4e2e2e7913c5.js +0 -1
  207. package/.next/static/chunks/UIBannerText.08c65db460bd1695.js +0 -1
  208. package/.next/static/chunks/UISKUMatrixSidebar.5793df7899038286.js +0 -1
  209. package/.next/static/chunks/UIToast.55af19d2eba3d8a1.js +0 -1
  210. package/.next/static/chunks/framework-807b0f81cbc129f0.js +0 -33
  211. package/.next/static/chunks/main-f658704b53a96ab1.js +0 -1
  212. package/.next/static/chunks/pages/404-cc5de07438cb53b5.js +0 -1
  213. package/.next/static/chunks/pages/500-926ab913425651bc.js +0 -1
  214. package/.next/static/chunks/pages/[...slug]-1e68a914dfca7da9.js +0 -1
  215. package/.next/static/chunks/pages/[slug]/p-60dd0938ba92424b.js +0 -1
  216. package/.next/static/chunks/pages/_app-ea99eefec89aef24.js +0 -1
  217. package/.next/static/chunks/pages/_error-d820b4586477c368.js +0 -1
  218. package/.next/static/chunks/pages/checkout-b0637ee59b1cdca8.js +0 -1
  219. package/.next/static/chunks/pages/index-004d6444cfaf59cb.js +0 -1
  220. package/.next/static/chunks/pages/login-3043634ec00661a8.js +0 -1
  221. package/.next/static/chunks/pages/pvt/account/403-a1c5772740914141.js +0 -1
  222. package/.next/static/chunks/pages/pvt/account/404-eaed7a7c92d499ff.js +0 -1
  223. package/.next/static/chunks/pages/pvt/account/[...unknown]-a8bcdec2e6ed7b0e.js +0 -1
  224. package/.next/static/chunks/pages/pvt/account/orders/[id]-3bdaf71be192669b.js +0 -1
  225. package/.next/static/chunks/pages/pvt/account/orders-07d7ced3a4b845b0.js +0 -1
  226. package/.next/static/chunks/pages/pvt/account/profile-449314f16e1c132c.js +0 -1
  227. package/.next/static/chunks/pages/pvt/account/security-8b024c8877f125d0.js +0 -1
  228. package/.next/static/chunks/pages/pvt/account/user-details-0caf3ce4cb6df66e.js +0 -1
  229. package/.next/static/chunks/pages/pvt/account-412a3bb2b0f22dea.js +0 -1
  230. package/.next/static/chunks/pages/s-c624c961a98a1be0.js +0 -1
  231. package/.next/static/chunks/webpack-98c08c89b832fbd2.js +0 -1
  232. package/.next/static/css/37ee6a2c6adab309.css +0 -1
  233. package/.next/static/css/3d7be7043aee15df.css +0 -1
  234. package/.next/static/css/fe0bcc13a2b68605.css +0 -1
  235. /package/.next/static/{OCdDzXbixjGq2qfKmUzTD → JaRUyeLgqhw17hCxdW6B5}/_ssgManifest.js +0 -0
@@ -0,0 +1,8 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1208],{51417:function(e){e.exports=function(){"use strict";function forEach(e,n){if(e)for(var r in e)({}).hasOwnProperty.call(e,r)&&n(r,e[r])}var e={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function getBlockTag(n){return n&&e[n]}function getBlockStyle(e){var n="";return forEach(e,function(e,r){r&&(n+="".concat(e,":").concat(r,";"))}),n}function getEntityMarkup(e,n,r,s){var l=e[n];if("function"==typeof s){var u=s(l,r);if(u)return u}if("MENTION"===l.type)return'<a href="'.concat(l.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(l.data.value,'">').concat(r,"</a>");if("LINK"===l.type){var c=l.data.targetOption||"_self";return'<a href="'.concat(l.data.url,'" target="').concat(c,'">').concat(r,"</a>")}if("IMAGE"===l.type){var h=l.data.alignment;return h&&h.length?'<div style="text-align:'.concat(h,';"><img src="').concat(l.data.src,'" alt="').concat(l.data.alt,'" style="height: ').concat(l.data.height,";width: ").concat(l.data.width,'"/></div>'):'<img src="'.concat(l.data.src,'" alt="').concat(l.data.alt,'" style="height: ').concat(l.data.height,";width: ").concat(l.data.width,'"/>')}return"EMBEDDED_LINK"===l.type?'<iframe width="'.concat(l.data.width,'" height="').concat(l.data.height,'" src="').concat(l.data.src,'" frameBorder="0"></iframe>'):r}function getInlineStyleSections(e,n,r,s){var l=[],u=Array.from(e.text);if(u.length>0)for(var c,h,p,_,m=(c=e.text,h=e.inlineStyleRanges,p={BOLD:Array(c.length),ITALIC:Array(c.length),UNDERLINE:Array(c.length),STRIKETHROUGH:Array(c.length),CODE:Array(c.length),SUPERSCRIPT:Array(c.length),SUBSCRIPT:Array(c.length),COLOR:Array(c.length),BGCOLOR:Array(c.length),FONTSIZE:Array(c.length),FONTFAMILY:Array(c.length),length:c.length},h&&h.length>0&&h.forEach(function(e){for(var n=e.offset,r=n+e.length,s=n;s<r;s+=1)0===e.style.indexOf("color-")?p.COLOR[s]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?p.BGCOLOR[s]=e.style.substring(8):0===e.style.indexOf("fontsize-")?p.FONTSIZE[s]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?p.FONTFAMILY[s]=e.style.substring(11):p[e.style]&&(p[e.style][s]=!0)}),p),v=r;v<s;v+=1)v!==r&&function(e,n,r){var s=!0;return r>0&&r<e.length?n.forEach(function(n){s=s&&e[n][r]===e[n][r-1]}):s=!1,s}(m,n,v)?(_.text.push(u[v]),_.end=v+1):l.push(_={styles:function(e,n){var r={};return e.COLOR[n]&&(r.COLOR=e.COLOR[n]),e.BGCOLOR[n]&&(r.BGCOLOR=e.BGCOLOR[n]),e.FONTSIZE[n]&&(r.FONTSIZE=e.FONTSIZE[n]),e.FONTFAMILY[n]&&(r.FONTFAMILY=e.FONTFAMILY[n]),e.UNDERLINE[n]&&(r.UNDERLINE=!0),e.ITALIC[n]&&(r.ITALIC=!0),e.BOLD[n]&&(r.BOLD=!0),e.STRIKETHROUGH[n]&&(r.STRIKETHROUGH=!0),e.CODE[n]&&(r.CODE=!0),e.SUBSCRIPT[n]&&(r.SUBSCRIPT=!0),e.SUPERSCRIPT[n]&&(r.SUPERSCRIPT=!0),r}(m,v),text:[u[v]],start:v,end:v+1});return l}function getBlockInnerMarkup(e,n,r,s){var l,u,c=[],h=(l=[],u=0,e.entityRanges.map(function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}).concat(function(e,n){var r=[];if(n){for(var s=0,l=0,u=e,c=n.trigger||"#",h=n.separator||" ";u.length>0&&l>=0;)if(u[0]===c?(l=0,s=0,u=u.substr(c.length)):(l=u.indexOf(h+c))>=0&&(u=u.substr(l+(h+c).length),s+=l+h.length),l>=0){var p=u.indexOf(h)>=0?u.indexOf(h):u.length,_=u.substr(0,p);_&&_.length>0&&r.push({offset:s,length:_.length+c.length,type:"HASHTAG"}),s+=c.length}}return r}(e.text,r)).sort(function(e,n){return e.offset-n.offset}).forEach(function(e){e.offset>u&&l.push({start:u,end:e.offset}),l.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),u=e.offset+e.length}),u<e.text.length&&l.push({start:u,end:e.text.length}),l);return h.forEach(function(r,l){var u=function(e,n,r,s){var l=[];getInlineStyleSections(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],r.start,r.end).forEach(function(n){var r,s;l.push((r=getInlineStyleSections(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),s="",r.forEach(function(e){var n,r,l;s+=(n=e.styles,l=(r=e.text)&&r.length>0?r.map(function(e){switch(e){case"\n":return"<br>";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return e}}).join(""):"",forEach(n,function(e,n){var r;r=l,l="BOLD"===e?"<strong>".concat(r,"</strong>"):"ITALIC"===e?"<em>".concat(r,"</em>"):"UNDERLINE"===e?"<ins>".concat(r,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(r,"</del>"):"CODE"===e?"<code>".concat(r,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(r,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(r,"</sub>"):r}),l)}),s=function(e,n){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var r='style="';return e.COLOR&&(r+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(r+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(r+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(r+="font-family: ".concat(e.FONTFAMILY,";")),r+='"',"<span ".concat(r,">").concat(n,"</span>")}return n}(n.styles,s)))});var u=l.join("");return"ENTITY"===r.type?void 0!==r.entityKey&&null!==r.entityKey&&(u=getEntityMarkup(n,r.entityKey,u,s)):"HASHTAG"===r.type&&(u='<a href="'.concat(u,'" class="wysiwyg-hashtag">').concat(u,"</a>")),u}(e,n,r,s);0===l&&(u=function(e){if(e){for(var n=e,r=0;r<n.length;r+=1)if(" "===e[r])n=n.replace(" ","&nbsp;");else break;return n}return e}(u)),l===h.length-1&&(u=function(e){if(e){for(var n=e,r=n.length-1;r>=0;r-=1)if(" "===n[r])n="".concat(n.substring(0,r),"&nbsp;").concat(n.substring(r+1));else break;return n}return e}(u)),c.push(u)}),c.join("")}function getListMarkup(e,n,r,s,l){var u,c=[],h=[];return e.forEach(function(e){var p=!1;if(u?u.type!==e.type?(c.push("</".concat(getBlockTag(u.type),">\n")),c.push("<".concat(getBlockTag(e.type),">\n"))):u.depth===e.depth?h&&h.length>0&&(c.push(getListMarkup(h,n,r,s,l)),h=[]):(p=!0,h.push(e)):c.push("<".concat(getBlockTag(e.type),">\n")),!p){c.push("<li");var _=getBlockStyle(e.data);_&&c.push(' style="'.concat(_,'"')),s&&c.push(' dir = "auto"'),c.push(">"),c.push(getBlockInnerMarkup(e,n,r,l)),c.push("</li>\n"),u=e}}),h&&h.length>0&&c.push(getListMarkup(h,n,r,s,l)),c.push("</".concat(getBlockTag(u.type),">\n")),c.join("")}return function(e,n,r,s){var l=[];if(e){var u=e.blocks,c=e.entityMap;if(u&&u.length>0){var h=[];if(u.forEach(function(e){var u;if("unordered-list-item"===(u=e.type)||"ordered-list-item"===u)h.push(e);else{if(h.length>0){var p=getListMarkup(h,c,n,s);l.push(p),h=[]}var _=function(e,n,r,s,l){var u,c=[];if(e.entityRanges.length>0&&(null==(u=e.text)||0===u.length||0===u.trim().length||"atomic"===e.type)?0:1){var h=getBlockTag(e.type);if(h){c.push("<".concat(h));var p=getBlockStyle(e.data);p&&c.push(' style="'.concat(p,'"')),s&&c.push(' dir = "auto"'),c.push(">"),c.push(getBlockInnerMarkup(e,n,r,l)),c.push("</".concat(h,">"))}}else c.push(getEntityMarkup(n,e.entityRanges[0].key,void 0,l));return c.push("\n"),c.join("")}(e,c,n,r,s);l.push(_)}}),h.length>0){var p=getListMarkup(h,c,n,r,s);l.push(p),h=[]}}}return l.join("")}}()},84272:function(){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},56057:function(){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:/[{}[\];(),.:]/}},9882:function(){var e,n,r;e=Prism,n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])},69626:function(){var e,n,r;e=Prism,n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(r=e.languages.markup)&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))},63967:function(){var e,n,r,s;e=Prism,n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[s,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:s.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:s.inside}],keyword:n,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":s,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:s.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})},85560:function(){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},81194:function(){!function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(e){return e=e.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.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:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+l+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+l+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.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:createInline(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~)<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:createInline(/!?\[(?:(?!\])<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(n){["url","bold","italic","strike","code-snippet"].forEach(function(r){n!==r&&(e.languages.markdown[n].inside.content.inside[r]=e.languages.markdown[r])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function walkTokens(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var s=e[n];if("code"!==s.type){walkTokens(s.content);continue}var l=s.content[1],u=s.content[3];if(l&&u&&"code-language"===l.type&&"code-block"===u.type&&"string"==typeof l.content){var c=l.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(c=(/[a-z][\w-]*/i.exec(c)||[""])[0].toLowerCase());u.alias?"string"==typeof u.alias?u.alias=[u.alias,h]:u.alias.push(h):u.alias=[h]}}}(e.tokens)}),e.hooks.add("wrap",function(n){if("code-block"===n.type){for(var r,s="",l=0,p=n.classes.length;l<p;l++){var _=n.classes[l],m=/language-(.+)/.exec(_);if(m){s=m[1];break}}var v=e.languages[s];if(v)n.content=e.highlight(n.content.replace(u,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,n){return"#"===(n=n.toLowerCase())[0]?h("x"===n[1]?parseInt(n.slice(2),16):Number(n.slice(1))):c[n]||e}),v,s);else if(s&&"none"!==s&&e.plugins.autoloader){var k="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());n.attributes.id=k,e.plugins.autoloader.loadLanguages(s,function(){var n=document.getElementById(k);n&&(n.innerHTML=e.highlight(n.textContent,e.languages[s],s))})}}});var u=RegExp(e.languages.markup.tag.pattern.source,"gi"),c={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},9886:function(){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(e){"entity"===e.type&&(e.attributes.title=e.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 s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,n){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:Prism.languages[n]},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},9094:function(){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},71298:function(){var e;(e=Prism.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}},61274:function(){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},57997:function(){!function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},641:function(){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:/[;[\]()`,.]/}},95676:function(){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(e){e.inside.interpolation.inside=Prism.languages.swift})},88109:function(){var e,n;(e=Prism).languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],n=e.languages.extend("typescript",{}),delete n["class-name"],e.languages.typescript["class-name"].inside=n,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),e.languages.ts=e.languages.typescript},99655:function(e,n,r){/**
2
+ * Prism: Lightweight, robust, elegant syntax highlighting
3
+ *
4
+ * @license MIT <https://opensource.org/licenses/MIT>
5
+ * @author Lea Verou <https://lea.verou.me>
6
+ * @namespace
7
+ * @public
8
+ */var s,l,u=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,s={},l={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function encode(e){return e instanceof Token?new Token(e.type,encode(e.content),e.alias):Array.isArray(e)?e.map(encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++r}),e.__id},clone:function deepClone(e,n){var r,s;switch(n=n||{},l.util.type(e)){case"Object":if(n[s=l.util.objId(e)])return n[s];for(var u in r={},n[s]=r,e)e.hasOwnProperty(u)&&(r[u]=deepClone(e[u],n));return r;case"Array":if(n[s=l.util.objId(e)])return n[s];return r=[],n[s]=r,e.forEach(function(e,s){r[s]=deepClone(e,n)}),r;default:return e}},getLanguage:function(e){for(;e;){var r=n.exec(e.className);if(r)return r[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,r){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+r)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw Error()}catch(s){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var r in n)if(n[r].src==e)return n[r]}return null}},isActive:function(e,n,r){for(var s="no-"+n;e;){var l=e.classList;if(l.contains(n))return!0;if(l.contains(s))return!1;e=e.parentElement}return!!r}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(e,n){var r=l.util.clone(l.languages[e]);for(var s in n)r[s]=n[s];return r},insertBefore:function(e,n,r,s){var u=(s=s||l.languages)[e],c={};for(var h in u)if(u.hasOwnProperty(h)){if(h==n)for(var p in r)r.hasOwnProperty(p)&&(c[p]=r[p]);r.hasOwnProperty(h)||(c[h]=u[h])}var _=s[e];return s[e]=c,l.languages.DFS(l.languages,function(n,r){r===_&&n!=e&&(this[n]=c)}),c},DFS:function DFS(e,n,r,s){s=s||{};var u=l.util.objId;for(var c in e)if(e.hasOwnProperty(c)){n.call(e,c,e[c],r||c);var h=e[c],p=l.util.type(h);"Object"!==p||s[u(h)]?"Array"!==p||s[u(h)]||(s[u(h)]=!0,DFS(h,n,c,s)):(s[u(h)]=!0,DFS(h,n,null,s))}}},plugins:{},highlightAll:function(e,n){l.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,r){var s={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",s),s.elements=Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)),l.hooks.run("before-all-elements-highlight",s);for(var u,c=0;u=s.elements[c++];)l.highlightElement(u,!0===n,s.callback)},highlightElement:function(n,r,s){var u=l.util.getLanguage(n),c=l.languages[u];l.util.setLanguage(n,u);var h=n.parentElement;h&&"pre"===h.nodeName.toLowerCase()&&l.util.setLanguage(h,u);var p=n.textContent,_={element:n,language:u,grammar:c,code:p};function insertHighlightedCode(e){_.highlightedCode=e,l.hooks.run("before-insert",_),_.element.innerHTML=_.highlightedCode,l.hooks.run("after-highlight",_),l.hooks.run("complete",_),s&&s.call(_.element)}if(l.hooks.run("before-sanity-check",_),(h=_.element.parentElement)&&"pre"===h.nodeName.toLowerCase()&&!h.hasAttribute("tabindex")&&h.setAttribute("tabindex","0"),!_.code){l.hooks.run("complete",_),s&&s.call(_.element);return}if(l.hooks.run("before-highlight",_),!_.grammar){insertHighlightedCode(l.util.encode(_.code));return}if(r&&e.Worker){var m=new Worker(l.filename);m.onmessage=function(e){insertHighlightedCode(e.data)},m.postMessage(JSON.stringify({language:_.language,code:_.code,immediateClose:!0}))}else insertHighlightedCode(l.highlight(_.code,_.grammar,_.language))},highlight:function(e,n,r){var s={code:e,grammar:n,language:r};if(l.hooks.run("before-tokenize",s),!s.grammar)throw Error('The language "'+s.language+'" has no grammar.');return s.tokens=l.tokenize(s.code,s.grammar),l.hooks.run("after-tokenize",s),Token.stringify(l.util.encode(s.tokens),s.language)},tokenize:function(e,n){var r=n.rest;if(r){for(var s in r)n[s]=r[s];delete n.rest}var u=new LinkedList;return addAfter(u,u.head,e),function matchGrammar(e,n,r,s,u,c){for(var h in r)if(r.hasOwnProperty(h)&&r[h]){var p=r[h];p=Array.isArray(p)?p:[p];for(var _=0;_<p.length;++_){if(c&&c.cause==h+","+_)return;var m=p[_],v=m.inside,k=!!m.lookbehind,T=!!m.greedy,E=m.alias;if(T&&!m.pattern.global){var C=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,C+"g")}for(var w=m.pattern||m,N=s.next,A=u;N!==n.tail&&(!c||!(A>=c.reach));A+=N.value.length,N=N.next){var O,F=N.value;if(n.length>e.length)return;if(!(F instanceof Token)){var L=1;if(T){if(!(O=matchPattern(w,A,e,k))||O.index>=e.length)break;var P=O.index,M=O.index+O[0].length,D=A;for(D+=N.value.length;P>=D;)D+=(N=N.next).value.length;if(D-=N.value.length,A=D,N.value instanceof Token)continue;for(var R=N;R!==n.tail&&(D<M||"string"==typeof R.value);R=R.next)L++,D+=R.value.length;L--,F=e.slice(A,D),O.index-=A}else if(!(O=matchPattern(w,0,F,k)))continue;var P=O.index,H=O[0],J=F.slice(0,P),en=F.slice(P+H.length),el=A+F.length;c&&el>c.reach&&(c.reach=el);var ea=N.prev;if(J&&(ea=addAfter(n,ea,J),A+=J.length),function(e,n,r){for(var s=n.next,l=0;l<r&&s!==e.tail;l++)s=s.next;n.next=s,s.prev=n,e.length-=l}(n,ea,L),N=addAfter(n,ea,new Token(h,v?l.tokenize(H,v):H,E,H)),en&&addAfter(n,N,en),L>1){var eu={cause:h+","+_,reach:el};matchGrammar(e,n,r,N.prev,A,eu),c&&eu.reach>c.reach&&(c.reach=eu.reach)}}}}}}(e,u,n,u.head,0),function(e){for(var n=[],r=e.head.next;r!==e.tail;)n.push(r.value),r=r.next;return n}(u)},hooks:{all:{},add:function(e,n){var r=l.hooks.all;r[e]=r[e]||[],r[e].push(n)},run:function(e,n){var r=l.hooks.all[e];if(r&&r.length)for(var s,u=0;s=r[u++];)s(n)}},Token:Token};function Token(e,n,r,s){this.type=e,this.content=n,this.alias=r,this.length=0|(s||"").length}function matchPattern(e,n,r,s){e.lastIndex=n;var l=e.exec(r);if(l&&s&&l[1]){var u=l[1].length;l.index+=u,l[0]=l[0].slice(u)}return l}function LinkedList(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function addAfter(e,n,r){var s=n.next,l={value:r,prev:n,next:s};return n.next=l,s.prev=l,e.length++,l}if(e.Prism=l,Token.stringify=function stringify(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach(function(e){r+=stringify(e,n)}),r}var s={type:e.type,content:stringify(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(s.classes,u):s.classes.push(u)),l.hooks.run("wrap",s);var c="";for(var h in s.attributes)c+=" "+h+'="'+(s.attributes[h]||"").replace(/"/g,"&quot;")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+c+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener&&(l.disableWorkerMessageHandler||e.addEventListener("message",function(n){var r=JSON.parse(n.data),s=r.language,u=r.code,c=r.immediateClose;e.postMessage(l.highlight(u,l.languages[s],s)),c&&e.close()},!1)),l;var u=l.util.currentScript();function highlightAutomaticallyCallback(){l.manual||l.highlightAll()}if(u&&(l.filename=u.src,u.hasAttribute("data-manual")&&(l.manual=!0)),!l.manual){var c=document.readyState;"loading"===c||"interactive"===c&&u&&u.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return l}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=u),void 0!==r.g&&(r.g.Prism=u),u.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]},u.languages.markup.tag.inside["attr-value"].inside.entity=u.languages.markup.entity,u.languages.markup.doctype.inside["internal-subset"].inside=u.languages.markup,u.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(u.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:u.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+n]={pattern:/[\s\S]+/,inside:u.languages[n]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},u.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(u.languages.markup.tag,"addAttribute",{value:function(e,n){u.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:u.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),u.languages.html=u.languages.markup,u.languages.mathml=u.languages.markup,u.languages.svg=u.languages.markup,u.languages.xml=u.languages.extend("markup",{}),u.languages.ssml=u.languages.xml,u.languages.atom=u.languages.xml,u.languages.rss=u.languages.xml,s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.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\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,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:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css,(l=u.languages.markup)&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css")),u.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:/[{}[\];(),.:]/},u.languages.javascript=u.languages.extend("clike",{"class-name":[u.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}|\?\?=?|\?\.?|[~:]/}),u.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,u.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:u.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:u.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:u.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:u.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:u.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),u.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:u.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"}}),u.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),u.languages.markup&&(u.languages.markup.tag.addInlined("script","javascript"),u.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")),u.languages.js=u.languages.javascript,function(){if(void 0!==u&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",s="loaded",l="pre[data-src]:not(["+n+'="'+s+'"]):not(['+n+'="'+r+'"])';u.hooks.add("before-highlightall",function(e){e.selector+=", "+l}),u.hooks.add("before-sanity-check",function(c){var h=c.element;if(h.matches(l)){c.code="",h.setAttribute(n,r);var p,_,m,v=h.appendChild(document.createElement("CODE"));v.textContent="Loading…";var k=h.getAttribute("data-src"),T=c.language;if("none"===T){var E=(/\.(\w+)$/.exec(k)||[,"none"])[1];T=e[E]||E}u.util.setLanguage(v,T),u.util.setLanguage(h,T);var C=u.plugins.autoloader;C&&C.loadLanguages(T),p=function(e){h.setAttribute(n,s);var r=function(e){var n=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(n){var r=Number(n[1]),s=n[2],l=n[3];return s?l?[r,Number(l)]:[r,void 0]:[r,r]}}(h.getAttribute("data-range"));if(r){var l=e.split(/\r\n?|\n/g),c=r[0],p=null==r[1]?l.length:r[1];c<0&&(c+=l.length),c=Math.max(0,Math.min(c-1,l.length)),p<0&&(p+=l.length),p=Math.max(0,Math.min(p,l.length)),e=l.slice(c,p).join("\n"),h.hasAttribute("data-start")||h.setAttribute("data-start",String(c+1))}v.textContent=e,u.highlightElement(v)},_=function(e){h.setAttribute(n,"failed"),v.textContent=e},(m=new XMLHttpRequest).open("GET",k,!0),m.onreadystatechange=function(){4==m.readyState&&(m.status<400&&m.responseText?p(m.responseText):m.status>=400?_("✖ Error "+m.status+" while fetching file: "+m.statusText):_("✖ Error: File does not exist or is empty"))},m.send(null)}}),u.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(l),s=0;n=r[s++];)u.highlightElement(n)}};var c=!1;u.fileHighlight=function(){c||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),c=!0),u.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},96978:function(e,n,r){"use strict";r.d(n,{wg:function(){return K}});var s,l,u=r(11371),c=r(56715);r(99655),r(56057),r(85560),r(9886),r(81194),r(84272),r(69626),r(9094),r(641),r(71298),r(61274),r(57997),r(95676),r(88109),r(63967),r(9882);let h="data-language",p="data-highlight-language",_="data-theme";let K=class K extends u.HX${static getType(){return"code"}static clone(e){return new K(e.__language,e.__key)}constructor(e,n){super(n),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let n=document.createElement("code");(0,c.Yo)(n,e.theme.code),n.setAttribute("spellcheck","false");let r=this.getLanguage();r&&(n.setAttribute(h,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(p,r));let s=this.getTheme();s&&n.setAttribute(_,s);let l=this.getStyle();return l&&n.setAttribute("style",l),n}updateDOM(e,n,r){let s=this.__language,l=e.__language;s?s!==l&&n.setAttribute(h,s):l&&n.removeAttribute(h);let u=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&l?u&&s?s!==l&&n.setAttribute(p,s):n.removeAttribute(p):u&&s&&n.setAttribute(p,s);let c=this.__theme,m=e.__theme;c?c!==m&&n.setAttribute(_,c):m&&n.removeAttribute(_);let v=this.__style,k=e.__style;return v?v!==k&&n.setAttribute("style",v):k&&n.removeAttribute("style"),!1}exportDOM(e){let n=document.createElement("pre");(0,c.Yo)(n,e._config.theme.code),n.setAttribute("spellcheck","false");let r=this.getLanguage();r&&(n.setAttribute(h,r),this.getIsSyntaxHighlightSupported()&&n.setAttribute(p,r));let s=this.getTheme();s&&n.setAttribute(_,s);let l=this.getStyle();return l&&n.setAttribute("style",l),{element:n}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||function I(e,n){for(let r of e.childNodes){if((0,u.Ret)(r)&&r.tagName===n)return!0;I(r,n)}return!1}(e,"BR"))?{conversion:q,priority:1}:null,div:()=>({conversion:U,priority:1}),pre:()=>({conversion:q,priority:0}),table:e=>V(e)?{conversion:X,priority:3}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")||n&&V(n)?{conversion:Q,priority:3}:null},tr:e=>{let n=e.closest("table");return n&&V(n)?{conversion:Q,priority:3}:null}}}static importJSON(e){return $().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,n=!0){let r=this.getChildren(),s=r.length;if(s>=2&&"\n"===r[s-1].getTextContent()&&"\n"===r[s-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===s){r[s-1].remove(),r[s-2].remove();let e=(0,u.BEw)();return this.insertAfter(e,n),e}let{anchor:l,focus:h}=e,p=(l.isBefore(h)?l:h).getNode();if((0,u.Gg4)(p)){let e=function(e,n){let r=e;for(let s=(0,u.UW)(e,n);s&&(et(s.origin)||(0,u.rcC)(s.origin));s=(0,c.ne)(s))r=s.origin;return r}(p,"previous"),n=[];for(;;)if((0,u.rcC)(e))n.push((0,u.S3L)()),e=e.getNextSibling();else{if(!et(e))break;{let r=0,s=e.getTextContent(),l=e.getTextContentSize();for(;r<l&&" "===s[r];)r++;if(0!==r&&n.push(tt(" ".repeat(r))),r!==l)break;e=e.getNextSibling()}}let r=p.splitText(l.offset)[0],s=0===l.offset?0:1,h=r.getIndexWithinParent()+s,_=p.getParentOrThrow(),m=[(0,u.Tav)(),...n];_.splice(h,0,m);let v=n[n.length-1];v?v.select():0===l.offset?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(p instanceof K){let{offset:n}=e.anchor;p.splice(n,0,[(0,u.Tav)()]),p.select(n+1,n+1)}return null}canIndent(){return!1}collapseAtStart(){let e=(0,u.BEw)();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){let n=this.getWritable();return n.__language=e||void 0,n}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let n=this.getWritable();return n.__isSyntaxHighlightSupported=e,n}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let n=this.getWritable();return n.__theme=e||void 0,n}getTheme(){return this.getLatest().__theme}};function $(e,n){return(0,u.dM9)(K).setLanguage(e).setTheme(n)}function q(e){return{node:$(e.getAttribute(h))}}function U(e){let n=G(e);return n||function(e){let n=e.parentElement;for(;null!==n;){if(G(n))return!0;n=n.parentElement}return!1}(e)?{node:n?$():null}:{node:null}}function X(){return{node:$()}}function Q(){return{node:null}}function G(e){return null!==e.style.fontFamily.match("monospace")}function V(e){return e.classList.contains("js-file-line-container")}let Y=class Y extends u.R2r{constructor(e="",n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new Y(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let n=this.getWritable();return n.__highlightType=e||void 0,n}canHaveFormat(){return!1}createDOM(e){let n=super.createDOM(e),r=Z(e.theme,this.__highlightType);return(0,c.Yo)(n,r),n}updateDOM(e,n,r){let s=super.updateDOM(e,n,r),l=Z(r.theme,e.__highlightType),u=Z(r.theme,this.__highlightType);return l!==u&&(l&&(0,c.PS)(n,l),u&&(0,c.Yo)(n,u)),s}static importJSON(e){return tt().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return $()}};function Z(e,n){return n&&e&&e.codeHighlight&&e.codeHighlight[n]}function tt(e="",n){return(0,u.U2B)(new Y(e,n))}function et(e){return e instanceof Y}(s=Prism).languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(l={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(e){var n=l[e],r=[];/^\w+$/.test(e)||r.push(/\w+/.exec(e)[0]),"diff"===e&&r.push("bold"),s.languages.diff[e]={pattern:RegExp("^(?:["+n+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}}),Object.defineProperty(s.languages.diff,"PREFIXES",{value:l}),globalThis.Prism||window.Prism},18380:function(e,n,r){"use strict";r.d(n,{D:function(){return t}});var s=r(11371);function t(e){let n=(0,s.JhQ)(e);return n._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{n[e]=()=>{throw Error(`${e} is not supported in headless mode`)}}),n}},81602:function(e,n,r){"use strict";r.d(n,{S:function(){return g}});var s=r(21599),l=r(11371);function g(e,n){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let r=document.createElement("div"),u=(0,l.GvG)().getChildren();for(let c=0;c<u.length;c++)!function x(e,n,r,u=null){let c,h=null===u||n.isSelected(u),p=(0,l.F7b)(n)&&n.excludeFromCopy("html"),_=n;if(null!==u){let e=(0,l.B3k)(n);_=e=(0,l.Gg4)(e)&&null!==u?(0,s.bA)(u,e):e}let m=(0,l.F7b)(_)?_.getChildren():[],v=(0,l.aAG)(e,_.getType());c=v&&void 0!==v.exportDOM?v.exportDOM(e,_):_.exportDOM(e);let{element:k,after:T}=c;if(!k)return!1;let E=document.createDocumentFragment();for(let r=0;r<m.length;r++){let s=m[r],c=x(e,s,E,u);!h&&(0,l.F7b)(n)&&c&&n.extractWithChild(s,u,"html")&&(h=!0)}if(h&&!p){if(((0,l.Ret)(k)||(0,l.ULs)(k))&&k.append(E),r.append(k),T){let e=T.call(_,k);e&&((0,l.ULs)(k)?k.replaceChildren(e):k.replaceWith(e))}}else r.append(E);return h}(e,u[c],r,n);return r.innerHTML}},14969:function(e,n,r){"use strict";r.d(n,{GR:function(){return g}});var s=r(56715),l=r(11371);let u=new Set(["http:","https:","mailto:","sms:","tel:"]);let g=class g extends l.HX${static getType(){return"link"}static clone(e){return new g(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",n={},r){super(r);let{target:s=null,rel:l=null,title:u=null}=n;this.__url=e,this.__target=s,this.__rel=l,this.__title=u}createDOM(e){let n=document.createElement("a");return this.updateLinkDOM(null,n,e),(0,s.Yo)(n,e.theme.link),n}updateLinkDOM(e,n,r){if((0,l.bgD)(n))for(let r of(e&&e.__url===this.__url||(n.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let s=`__${r}`,l=this[s];e&&e[s]===l||(l?n[r]=l:n.removeAttribute(r))}}updateDOM(e,n,r){return this.updateLinkDOM(e,n,r),!1}static importDOM(){return{a:e=>({conversion:f,priority:1})}}static importJSON(e){return d().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=S(e);try{let n=new URL(S(e));if(!u.has(n.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let n=this.getWritable();return n.__url=e,n}getTarget(){return this.getLatest().__target}setTarget(e){let n=this.getWritable();return n.__target=e,n}getRel(){return this.getLatest().__rel}setRel(e){let n=this.getWritable();return n.__rel=e,n}getTitle(){return this.getLatest().__title}setTitle(e){let n=this.getWritable();return n.__title=e,n}insertNewAfter(e,n=!0){let r=d(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,n),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n,r){if(!(0,l.OPZ)(n))return!1;let s=n.anchor.getNode(),u=n.focus.getNode();return this.isParentOf(s)&&this.isParentOf(u)&&n.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function f(e){let n=null;if((0,l.bgD)(e)){let r=e.textContent;(null!==r&&""!==r||e.children.length>0)&&(n=d(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:n}}function d(e="",n){return(0,l.U2B)(new g(e,n))}(0,l.fAf)("TOGGLE_LINK_COMMAND");let c=/^\+?[0-9\s()-]{5,}$/;function S(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:c.test(e)?`tel:${e}`:`https://${e}`}},47025:function(e,n,r){"use strict";r.d(n,{EG:function(){return rt},NK:function(){return Y}});var s=r(56715),l=r(11371),u=r(21599);function I(e,...n){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;for(let r of(s.append("code",e),n))s.append("v",r);throw r.search=s.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function K(e){return nt(e)&&at(e.getFirstChild())}function W(e){return et().append(e)}function U(e,n){e.splice(e.getChildrenSize(),0,n)}function z(e,n){let r=e.getLastChild(),s=n.getFirstChild();r&&s&&K(r)&&K(s)&&(z(r.getFirstChild(),s.getFirstChild()),s.remove());let l=n.getChildren();l.length>0&&e.append(...l),n.remove()}function Q(...e){let n=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))n.push(e);return n}let Y=class Y extends l.HX${$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let n=e.getParent();at(n)&&"check"!==n.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:l.HX$,importDOM:(0,l.tM8)({li:()=>({conversion:Z,priority:0})})})}constructor(e=1,n,r){super(r),this.__value=void 0===e?1:e,this.__checked=n}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let n=document.createElement("li");return this.updateListItemDOM(null,n,e),n}updateListItemDOM(e,n,r){let l=this.getParent();at(l)&&"check"===l.getListType()&&(at(this.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),e&&this.__checked===e.__checked||n.setAttribute("aria-checked",this.getChecked()?"true":"false"))),n.value=this.__value,function(e,n,r){let l;let u=[],c=[],h=n.list,p=h?h.listitem:void 0;if(h&&h.nested&&(l=h.nested.listitem),void 0!==p&&u.push(...Q(p)),h){let e=r.getParent(),n=at(e)&&"check"===e.getListType(),s=r.getChecked();n&&!s||c.push(h.listitemUnchecked),n&&s||c.push(h.listitemChecked),n&&u.push(s?h.listitemChecked:h.listitemUnchecked)}if(void 0!==l){let e=Q(l);r.getChildren().some(e=>at(e))?u.push(...e):c.push(...e)}c.length>0&&(0,s.PS)(e,...c),u.length>0&&(0,s.Yo)(e,...u)}(n,r.theme,this);let c=e?e.__style:"",h=this.__style;c!==h&&(""===h?n.removeAttribute("style"):n.style.cssText=h),function(e,n,r){let s=(0,u.c1)(n.__textStyle);for(let n in s)e.style.setProperty(`--listitem-marker-${n}`,s[n]);if(r)for(let n in(0,u.c1)(r.__textStyle))n in s||e.style.removeProperty(`--listitem-marker-${n}`)}(n,this,e)}updateDOM(e,n,r){return this.updateListItemDOM(e,n,r),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let n=this.createDOM(e._config),r=this.getFormatType();r&&(n.style.textAlign=r);let s=this.getDirection();return s&&(n.dir=s),{element:n}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if((0,l.F7b)(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,n){if(nt(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!at(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let n=ct(r.getListType()),s=this.getNextSibling();for(;s;){let e=s;s=s.getNextSibling(),n.append(e)}r.insertAfter(e),e.insertAfter(n)}return n&&((0,l.F7b)(e)||I(139),this.getChildren().forEach(n=>{e.append(n)})),this.remove(),0===r.getChildrenSize()&&r.remove(),e}insertAfter(e,n=!0){let r=this.getParentOrThrow();if(at(r)||I(39),nt(e))return super.insertAfter(e,n);let s=this.getNextSiblings();if(r.insertAfter(e,n),0!==s.length){let l=ct(r.getListType());s.forEach(e=>l.append(e)),e.insertAfter(l,n)}return e}remove(e){let n=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),n&&r&&K(n)&&K(r)&&(z(n.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,n=!0){let r=et().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,n),r}collapseAtStart(e){let n=(0,l.BEw)();this.getChildren().forEach(e=>n.append(e));let r=this.getParentOrThrow(),s=r.getParentOrThrow(),u=nt(s);if(1===r.getChildrenSize()){if(u)r.remove(),s.select();else{r.insertBefore(n),r.remove();let s=e.anchor,l=e.focus,u=n.getKey();"element"===s.type&&s.getNode().is(this)&&s.set(u,s.offset,"element"),"element"===l.type&&l.getNode().is(this)&&l.set(u,l.offset,"element")}}else r.insertBefore(n),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let n=this.getWritable();return n.__value=e,n}getChecked(){let e;let n=this.getLatest(),r=this.getParent();return at(r)&&(e=r.getListType()),"check"===e?!!n.__checked:void 0}setChecked(e){let n=this.getWritable();return n.__checked=e,n}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let n=e.getParentOrThrow(),r=0;for(;nt(n);)n=n.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){"number"!=typeof e&&I(117),(e=Math.floor(e))>=0||I(199);let n=this.getIndent();for(;n!==e;)n<e?(function(e){let n=new Set;if(K(e)||n.has(e.getKey()))return;let r=e.getParent(),s=e.getNextSibling(),l=e.getPreviousSibling();if(K(s)&&K(l)){let r=l.getFirstChild();if(at(r)){r.append(e);let l=s.getFirstChild();at(l)&&(U(r,l.getChildren()),s.remove(),n.add(s.getKey()))}}else if(K(s)){let n=s.getFirstChild();if(at(n)){let r=n.getFirstChild();null!==r&&r.insertBefore(e)}}else if(K(l)){let n=l.getFirstChild();at(n)&&n.append(e)}else if(at(r)){let n=et().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),u=ct(r.getListType()).setTextFormat(r.getTextFormat()).setTextStyle(r.getTextStyle());n.append(u),u.append(e),l?l.insertAfter(n):s?s.insertBefore(n):r.append(n)}}(this),n++):(function(e){if(K(e))return;let n=e.getParent(),r=n?n.getParent():void 0;if(at(r?r.getParent():void 0)&&nt(r)&&at(n)){let s=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(s))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{let s=n.getListType(),l=et(),u=ct(s);l.append(u),e.getPreviousSiblings().forEach(e=>u.append(e));let c=et(),h=ct(s);c.append(h),U(h,e.getNextSiblings()),r.insertBefore(l),r.insertAfter(c),r.replace(e)}}}(this),n--);return this}canInsertAfter(e){return nt(e)}canReplaceWith(e){return nt(e)}canMergeWith(e){return nt(e)||(0,l.Rlh)(e)}extractWithChild(e,n){if(!(0,l.OPZ)(n))return!1;let r=n.anchor.getNode(),s=n.focus.getNode();return this.isParentOf(r)&&this.isParentOf(s)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return ct("bullet")}canMergeWhenEmpty(){return!0}};function Z(e){if(e.classList.contains("task-list-item")){for(let n of e.children)if("INPUT"===n.tagName)return"checkbox"!==n.getAttribute("type")?{node:null}:{node:et(n.hasAttribute("checked"))}}let n=e.getAttribute("aria-checked");return{node:et("true"===n||"false"!==n&&void 0)}}function et(e){return(0,l.U2B)(new Y(void 0,e))}function nt(e){return e instanceof Y}let rt=class rt extends l.HX${$config(){return this.config("list",{$transform:e=>{!function(e){let n=e.getNextSibling();at(n)&&e.getListType()===n.getListType()&&z(e,n)}(e),function(e){let n="check"!==e.getListType(),r=e.getStart();for(let s of e.getChildren())nt(s)&&(s.getValue()!==r&&s.setValue(r),n&&null!=s.getLatest().__checked&&s.setChecked(void 0),at(s.getFirstChild())||r++)}(e)},extends:l.HX$,importDOM:(0,l.tM8)({ol:()=>({conversion:ot,priority:0}),ul:()=>({conversion:ot,priority:0})})})}constructor(e="number",n=1,r){super(r);let s=c[e]||e;this.__listType=s,this.__tag="number"===s?"ol":"ul",this.__start=n}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let n=this.getWritable();return n.__listType=e,n.__tag="number"===e?"ol":"ul",n}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let n=this.getWritable();return n.__start=e,n}createDOM(e,n){let r=this.__tag,s=document.createElement(r);return 1!==this.__start&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,it(s,e.theme,this),s}updateDOM(e,n,r){return e.__tag!==this.__tag||(it(n,r.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let n=this.createDOM(e._config,e);return(0,l.Ret)(n)&&(1!==this.__start&&n.setAttribute("start",String(this.__start)),"check"===this.__listType&&n.setAttribute("__lexicalListType","check")),{element:n}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,n,r){let s=r;for(let e=0;e<r.length;e++){let n=r[e];nt(n)||(s===r&&(s=[...r]),s[e]=et().append(!(0,l.F7b)(n)||at(n)||n.isInline()?n:(0,l.MXo)(n.getTextContent())))}return super.splice(e,n,s)}extractWithChild(e){return nt(e)}};function it(e,n,r){let l=[],u=[],c=n.list;if(void 0!==c){let e;let n=c[`${r.__tag}Depth`]||[],s=function(e){let n=1,r=e.getParent();for(;null!=r;){if(nt(r)){let e=r.getParent();if(at(e)){n++,r=e.getParent();continue}I(40)}break}return n}(r)-1,h=s%n.length,p=n[h],_=c[r.__tag],m=c.nested,v=c.checklist;if(void 0!==m&&m.list&&(e=m.list),void 0!==_&&l.push(_),void 0!==v&&"check"===r.__listType&&l.push(v),void 0!==p){l.push(...Q(p));for(let e=0;e<n.length;e++)e!==h&&u.push(r.__tag+e)}if(void 0!==e){let n=Q(e);s>1?l.push(...n):u.push(...n)}}u.length>0&&(0,s.PS)(e,...u),l.length>0&&(0,s.Yo)(e,...l)}function st(e){let n=[];for(let r=0;r<e.length;r++){let s=e[r];if(nt(s)){n.push(s);let e=s.getChildren();e.length>1&&e.forEach(e=>{at(e)&&n.push(W(e))})}else n.push(W(s))}return n}function ot(e){let n=e.nodeName.toLowerCase(),r=null;return"ol"===n?r=ct("number",e.start):"ul"===n&&(r=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list"))return!0;for(let n of e.childNodes)if((0,l.Ret)(n)&&n.hasAttribute("aria-checked"))return!0;return!1}(e)?ct("bullet"):ct("check")),{after:st,node:r}}let c={ol:"number",ul:"bullet"};function ct(e="number",n=1){return(0,l.U2B)(new rt(e,n))}function at(e){return e instanceof rt}(0,l.fAf)("INSERT_CHECK_LIST_COMMAND"),(0,l.fAf)("UPDATE_LIST_START_COMMAND"),(0,l.fAf)("INSERT_UNORDERED_LIST_COMMAND"),(0,l.fAf)("INSERT_ORDERED_LIST_COMMAND"),(0,l.fAf)("REMOVE_LIST_COMMAND")},75322:function(e,n,r){"use strict";r.d(n,{HY:function(){return f}});var s=r(44194);let l=(0,s.createContext)(null);function o(){let e=(0,s.useContext)(l);return null==e&&function(e,...n){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;for(let r of(s.append("code",e),n))s.append("v",r);throw r.search=s.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}var u=r(11371);function d(e,n){return e.getEditorState().read(()=>{let e=(0,u.gID)(n);return null!==e&&e.isSelected()})}var c=r(56715),h=r(31549);function LexicalHorizontalRuleNode_prod_d({nodeKey:e}){let[n]=o(),[r,l,h]=function(e){let[n]=o(),[r,l]=(0,s.useState)(()=>d(n,e));return(0,s.useEffect)(()=>{let r=!0,s=n.registerUpdateListener(()=>{r&&l(d(n,e))});return()=>{r=!1,s()}},[n,e]),[r,(0,s.useCallback)(r=>{n.update(()=>{let n=(0,u.dL7)();(0,u.iOo)(n)||(n=(0,u.h5h)(),(0,u.oqs)(n)),(0,u.iOo)(n)&&(r?n.add(e):n.delete(e))})},[n,e]),(0,s.useCallback)(()=>{n.update(()=>{let e=(0,u.dL7)();(0,u.iOo)(e)&&e.clear()})},[n])]}(e);return(0,s.useEffect)(()=>(0,c.qV)(n.registerCommand(u.Kr$,s=>{let u=n.getElementByKey(e);return s.target===u&&(s.shiftKey||h(),l(!r),!0)},u.KB)),[h,n,r,e,l]),(0,s.useEffect)(()=>{let s=n.getElementByKey(e),l=n._config.theme.hrSelected??"selected";null!==s&&(r?(0,c.Yo)(s,l):(0,c.PS)(s,l))},[n,r,e]),null}(0,u.fAf)("INSERT_HORIZONTAL_RULE_COMMAND");let f=class f extends u.Ijf{static getType(){return"horizontalrule"}static clone(e){return new f(e.__key)}static importJSON(e){return y().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:x,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let n=document.createElement("hr");return(0,c.Yo)(n,e.theme.hr),n}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,h.jsx)(LexicalHorizontalRuleNode_prod_d,{nodeKey:this.__key})}};function x(){return{node:y()}}function y(){return(0,u.U2B)(new f)}},7432:function(e,n,r){"use strict";r.d(n,{c2:function(){return Nt},rT:function(){return Dt}});var s=r(56715),l=r(11371);let u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=u&&"documentMode"in document?document.documentMode:null;u&&"InputEvent"in window&&!c&&new window.InputEvent("input"),u&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,u&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent),(0,l.fAf)("DRAG_DROP_PASTE_FILE");let Dt=class Dt extends l.HX${static getType(){return"quote"}static clone(e){return new Dt(e.__key)}createDOM(e){let n=document.createElement("blockquote");return(0,s.Yo)(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:Tt,priority:0})}}exportDOM(e){let{element:n}=super.exportDOM(e);if((0,l.Ret)(n)){this.isEmpty()&&n.append(document.createElement("br"));let e=this.getFormatType();e&&(n.style.textAlign=e);let r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return xt().updateFromJSON(e)}insertNewAfter(e,n){let r=(0,l.BEw)(),s=this.getDirection();return r.setDirection(s),this.insertAfter(r,n),r}collapseAtStart(){let e=(0,l.BEw)();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function xt(){return(0,l.U2B)(new Dt)}let Nt=class Nt extends l.HX${static getType(){return"heading"}static clone(e){return new Nt(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}setTag(e){let n=this.getWritable();return this.__tag=e,n}createDOM(e){let n=this.__tag,r=document.createElement(n),l=e.theme.heading;if(void 0!==l){let e=l[n];(0,s.Yo)(r,e)}return r}updateDOM(e,n,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Ot,priority:0}),h2:e=>({conversion:Ot,priority:0}),h3:e=>({conversion:Ot,priority:0}),h4:e=>({conversion:Ot,priority:0}),h5:e=>({conversion:Ot,priority:0}),h6:e=>({conversion:Ot,priority:0}),p:e=>{let n=e.firstChild;return null!==n&&Et(n)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Et(e)?{conversion:e=>({node:_t("h1")}),priority:3}:null}}exportDOM(e){let{element:n}=super.exportDOM(e);if((0,l.Ret)(n)){this.isEmpty()&&n.append(document.createElement("br"));let e=this.getFormatType();e&&(n.style.textAlign=e);let r=this.getDirection();r&&(n.dir=r)}return{element:n}}static importJSON(e){return _t(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,n=!0){let r=e?e.anchor.offset:0,s=this.getLastDescendant(),u=s&&(!e||e.anchor.key!==s.getKey()||r!==s.getTextContentSize())&&e?_t(this.getTag()):(0,l.BEw)(),c=this.getDirection();if(u.setDirection(c),this.insertAfter(u,n),0===r&&!this.isEmpty()&&e){let e=(0,l.BEw)();e.select(),this.replace(e,!0)}return u}collapseAtStart(){let e=this.isEmpty()?(0,l.BEw)():_t(this.getTag());return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}};function Et(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function Ot(e){let n=e.nodeName.toLowerCase(),r=null;return"h1"!==n&&"h2"!==n&&"h3"!==n&&"h4"!==n&&"h5"!==n&&"h6"!==n||(r=_t(n),null!==e.style&&((0,l.WAA)(e,r),r.setFormat(e.style.textAlign))),{node:r}}function Tt(e){let n=xt();return null!==e.style&&(n.setFormat(e.style.textAlign),(0,l.WAA)(e,n)),{node:n}}function _t(e="h1"){return(0,l.U2B)(new Nt(e))}},21599:function(e,n,r){"use strict";r.d(n,{bA:function(){return b},c1:function(){return B}});var s=r(11371);let l=new Map;function B(e){let n=l.get(e);return void 0===n&&(n=function(e){let n={};if(!e)return n;let r=e.split(";");for(let e of r)if(""!==e){let[r,s]=e.split(/:([^]+)/);r&&s&&(n[r.trim()]=s.trim())}return n}(e),l.set(e,n)),n}function b(e,n){let r=e.getStartEndPoints();if(n.isSelected(e)&&!(0,s.tOR)(n)&&null!==r){let[l,u]=r,c=e.isBackward(),h=l.getNode(),p=u.getNode(),_=n.is(h),m=n.is(p);if(_||m){let[r,l]=(0,s.cs7)(e),u=h.is(p),_=n.is(c?p:h),m=n.is(c?h:p),v,k=0;u?(k=r>l?l:r,v=r>l?r:l):_?(k=c?l:r,v=void 0):m&&(k=0,v=c?r:l),n.__text=n.__text.slice(k,v)}}return n}},56715:function(e,n,r){"use strict";r.d(n,{PS:function(){return it},Yo:function(){return rt},ne:function(){return ct},qV:function(){return j}});let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=s&&"documentMode"in document?document.documentMode:null;function I(...e){let n=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))n.push(e);return n}function j(...e){return()=>{for(let n=e.length-1;n>=0;n--)e[n]();e.length=0}}function rt(e,...n){let r=I(...n);r.length>0&&e.classList.add(...r)}function it(e,...n){let r=I(...n);r.length>0&&e.classList.remove(...r)}function ct(e){return e?e.getAdjacentCaret():null}s&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s&&"InputEvent"in window&&!l&&new window.InputEvent("input"),s&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),s&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,s&&/Android/.test(navigator.userAgent),s&&/^(?=.*Chrome).*/i.test(navigator.userAgent),s&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)},11371:function(e,n,r){"use strict";function t(e,...n){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;for(let r of(s.append("code",e),n))s.append("v",r);throw r.search=s.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}r.d(n,{B3k:function(){return Fo},BEw:function(){return Bi},CKy:function(){return zi},F7b:function(){return xi},Gg4:function(){return sr},GvG:function(){return ws},HX$:function(){return mi},Ijf:function(){return Si},JhQ:function(){return Hi},KB:function(){return tL},Kr$:function(){return eC},MXo:function(){return ir},OPZ:function(){return _r},R2r:function(){return qn},Ret:function(){return ko},Rlh:function(){return Wi},S3L:function(){return cr},Tav:function(){return Bn},U2B:function(){return go},ULs:function(){return No},UW:function(){return nl},WAA:function(){return Lo},Zr1:function(){return ki},aAG:function(){return es},bgD:function(){return vo},cs7:function(){return xr},dL7:function(){return Pr},dM9:function(){return Bo},fAf:function(){return de},gID:function(){return Ss},h5h:function(){return Or},iOo:function(){return yr},oqs:function(){return Ms},rcC:function(){return ar},tM8:function(){return In},tOR:function(){return us}});let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=s&&"documentMode"in document?document.documentMode:null,u=s&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),c=s&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),h=!(!s||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),p=s&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),_=s&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,m=s&&/Android/.test(navigator.userAgent),v=s&&/^(?=.*Chrome).*/i.test(navigator.userAgent),k=s&&m&&v,T=s&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!v;function d(...e){let n=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))n.push(e);return n}let E=p||_||T?"\xa0":"​",C=c?"\xa0":E,w="֑-߿יִ-﷽ﹰ-ﻼ",N="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",A=RegExp("^[^"+N+"]*["+w+"]"),O=RegExp("^[^"+w+"]*["+N+"]"),F={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},L={directionless:1,unmergeable:2},P={center:2,end:6,justify:4,left:1,right:3,start:5},M={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},D={normal:0,segmented:2,token:1},R={0:"normal",2:"segmented",1:"token"},H="$config",J=!1,en=0;function rt(e){en=e.timeStamp}function it(e,n,r){let s="BR"===e.nodeName,l=n.__lexicalLineBreak;return l&&(e===l||s&&e.previousSibling===l)||s&&void 0!==ks(e,r)}function ct(e,n,r){J=!0;let s=performance.now()-en>100;try{_i(e,()=>{let l=Pr()||e.getEditorState().read(()=>{let e=Pr();return null!==e?e.clone():null}),u=new Map,h=e.getRootElement(),p=e._editorState,_=e._blockCursorElement,m=!1,v="";for(let r=0;r<n.length;r++){let k=n[r],T=k.type,E=k.target,C=function(e,n,r,s){var l;for(let u=e;u&&(l=u,!0!==l.__lexicalUnmanaged);u=eo(u)){let e=ks(u,n);if(void 0!==e){let n=Ss(e,r);if(n)return vi(n)||!ko(u)?void 0:[u,n]}else if(u===s)return[s,Es(r)]}}(E,e,p,h);if(!C)continue;let[w,N]=C;if("characterData"===T)s&&sr(N)&&fs(E)&&function(e,n,r){if(_r(e)){let n=e.anchor.getNode();if(n.is(r)&&e.format!==n.getFormat())return!1}return fs(n)&&r.isAttached()}(l,E,N)&&function(e,n,r){let s=xo(co(r)),l=null,u=null;null!==s&&s.anchorNode===e&&(l=s.anchorOffset,u=s.focusOffset);let c=e.nodeValue;null!==c&&Is(n,c,l,u,!1)}(E,N,e);else if("childList"===T){m=!0;let n=k.addedNodes;for(let r=0;r<n.length;r++){let s=n[r],l=vs(s),u=s.parentNode;if(null!=u&&s!==_&&null===l&&!it(s,u,e)){if(c){let e=(ko(s)?s.innerText:null)||s.nodeValue;e&&(v+=e)}u.removeChild(s)}}let r=k.removedNodes,s=r.length;if(s>0){let n=0;for(let l=0;l<s;l++){let s=r[l];(it(s,E,e)||_===s)&&(E.appendChild(s),n++)}s!==n&&u.set(w,N)}}}if(u.size>0)for(let[n,r]of u)r.reconcileObservedMutation(n,e);let k=r.takeRecords();if(k.length>0){for(let n=0;n<k.length;n++){let r=k[n],s=r.addedNodes,l=r.target;for(let n=0;n<s.length;n++){let r=s[n],u=r.parentNode;null==u||"BR"!==r.nodeName||it(r,l,e)||u.removeChild(r)}}r.takeRecords()}null!==l&&(m&&Ms(l),c&&Xs(e)&&l.insertRawText(v))})}finally{J=!1}}function at(e){let n=e._observer;null!==n&&ct(e,n.takeRecords(),n)}function ut(e){0===en&&co(e).addEventListener("textInput",rt,!0),e._observer=new MutationObserver((n,r)=>{ct(e,n,r)})}let yt=class yt{constructor(e,n,r,s=new Map,l){this.node=e,this.sharedNodeState=n,this.unknownState=r,this.knownState=s;let{sharedConfigMap:u}=this.sharedNodeState,c=void 0!==l?l:function(e,n,r){let s=r.size;if(n)for(let l in n){let n=e.get(l);n&&r.has(n)||s++}return s}(u,r,s);this.size=c}getValue(e){let n=this.knownState.get(e);if(void 0!==n)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let n=this.unknownState[e.key];void 0!==n&&(r=e.parse(n)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},n={};for(let[n,r]of this.knownState)n.isEqual(r,n.defaultValue)?delete e[n.key]:e[n.key]=n.unparse(r);for(let r of this.sharedNodeState.flatKeys)r in e&&(n[r]=e[r],delete e[r]);return Ct(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;let{sharedNodeState:n,unknownState:r}=this,s=new Map(this.knownState);return new yt(e,n,function(e,n,r){let s;if(r)for(let[l,u]of Object.entries(r)){let r=e.get(l);r?n.has(r)||n.set(r,r.parse(u)):(s=s||{})[l]=u}return s}(n.sharedConfigMap,s,r),s,this.size)}updateFromKnown(e,n){let r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);let{knownState:s,unknownState:l}=this;s.has(e)||l&&r in l||(l&&(delete l[r],this.unknownState=Ct(l)),this.size++),s.set(e,n)}updateFromUnknown(e,n){let r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){let{knownState:n}=this;for(let e of n.keys())n.set(e,e.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(let[n,r]of Object.entries(e))this.updateFromUnknown(n,r)}};function xt(e){return e.__state?e.__state.sharedNodeState:ts(ni(),e.getType()).sharedNodeState}function Ct(e){if(e)for(let n in e)return e}function vt(e,n,r){for(let[s,l]of n.knownState){if(e.has(s.key))continue;e.add(s.key);let n=r?r.getValue(s):s.defaultValue;if(n!==l&&!s.isEqual(n,l))return!0}return!1}function kt(e,n,r){let{unknownState:s}=n,l=r?r.unknownState:void 0;if(s){for(let[n,r]of Object.entries(s))if(!e.has(n)&&(e.add(n),r!==(l?l[n]:void 0)))return!0}return!1}function Tt(e,n){let r=e.__state;return r&&r.node===e?r.getWritable(n):r}function Nt(e,n){let r=e.__mode,s=e.__format,l=e.__style,u=n.__mode,c=n.__format,h=n.__style,p=e.__state,_=n.__state;return(null===r||r===u)&&(null===s||s===c)&&(null===l||l===h)&&(null===e.__state||p===_||function(e,n){if(e===n)return!0;if(e&&n&&e.size!==n.size)return!1;let r=new Set;return!(e&&vt(r,e,n)||n&&vt(r,n,e)||e&&kt(r,e,n)||n&&kt(r,n,e))}(p,_))}function bt(e,n){let r=e.mergeWithSibling(n),s=ni()._normalizedNodes;return s.add(e.__key),s.add(n.__key),r}function wt(e){let n,r,s=e;if(""!==s.__text||!s.isSimpleText()||s.isUnmergeable()){for(;null!==(n=s.getPreviousSibling())&&sr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){Nt(n,s)&&(s=bt(n,s));break}n.remove()}for(;null!==(r=s.getNextSibling())&&sr(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(""!==r.__text){Nt(s,r)&&(s=bt(s,r));break}r.remove()}}else s.remove()}function Mt(e){for(;"element"===e.type;){let n,r;let s=e.getNode(),l=e.offset;if(l===s.getChildrenSize()?(n=s.getChildAtIndex(l-1),r=!0):(n=s.getChildAtIndex(l),r=!1),sr(n)){e.set(n.__key,r?n.getTextContentSize():0,"text",!0);break}if(!xi(n))break;e.set(n.__key,r?n.getChildrenSize():0,"element",!0)}}let el,ea,eu,ec,ed,eg,ef,eh,ep,e_,em="",ey="",ex=null,eb="",eS="",ev=!1,ek=!1,eT=null;function Ht(e,n){let r=ef.get(e);if(null!==n){let r=fe(e);r.parentNode===n&&n.removeChild(r)}if(eh.has(e)||ea._keyToDOMMap.delete(e),xi(r)){let e=oe(r,ef);qt(e,0,e.length-1,null)}void 0!==r&&Ys(e_,eu,ec,r,"destroyed")}function qt(e,n,r,s){let l=n;for(;l<=r;++l){let n=e[l];void 0!==n&&Ht(n,s)}}function Gt(e,n){e.setProperty("text-align",n)}function Qt(e,n){let r=el.theme.indent;if("string"==typeof r){let s=e.classList.contains(r);n>0&&!s?e.classList.add(r):n<1&&s&&e.classList.remove(r)}let s=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===n?"":`calc(${n} * ${s})`)}function Zt(e,n){let r=e.style;0===n?Gt(r,""):1===n?Gt(r,"left"):2===n?Gt(r,"center"):3===n?Gt(r,"right"):4===n?Gt(r,"justify"):5===n?Gt(r,"start"):6===n&&Gt(r,"end")}function te(e,n){let r=eh.get(e);void 0===r&&t(60);let s=r.createDOM(el,ea);if(function(e,n,r){let s=r._keyToDOMMap;(function(e,n,r){let s=`__lexicalKey_${n._key}`;e[s]=r})(n,r,e),s.set(e,n)}(e,s,ea),sr(r)?s.setAttribute("data-lexical-text","true"):vi(r)&&s.setAttribute("data-lexical-decorator","true"),xi(r)){let e=r.__indent,n=r.__size;0!==e&&Qt(s,e),0!==n&&function(e,n,r,s){let l=ey;ey="",ee(e,r,0,n,r.getDOMSlot(s)),ie(r,s),ey=l}(oe(r,eh),n-1,r,s);let l=r.__format;0!==l&&Zt(s,l),r.isInline()||re(null,r,s),Zs(r)&&(em+="\n\n",eS+="\n\n")}else{let n=r.getTextContent();if(vi(r)){let n=r.decorate(ea,el);null!==n&&ce(e,n),s.contentEditable="false"}else sr(r)&&(r.isDirectionless()||(ey+=n));em+=n,eS+=n}return null!==n&&n.insertChild(s),Ys(e_,eu,ec,r,"created"),s}function ee(e,n,r,s,l){let u=em;em="";let c=r;for(;c<=s;++c){te(e[c],l);let n=eh.get(e[c]);null!==n&&sr(n)&&(null===ex&&(ex=n.getFormat()),""===eb&&(eb=n.getStyle()))}Zs(n)&&(em+="\n\n"),l.element.__lexicalTextContent=em,em=u+em}function ne(e,n){if(e){let r=e.__last;if(r){let e=n.get(r);if(e)return Wn(e)?"line-break":vi(e)&&e.isInline()?"decorator":null}return"empty"}return null}function re(e,n,r){let s=ne(e,ef),l=ne(n,eh);s!==l&&n.getDOMSlot(r).setManagedLineBreak(l)}function ie(e,n){let r=n.__lexicalDirTextContent||"",s=n.__lexicalDir||"";if(r!==ey||s!==eT){var l;let r=""===ey,u=r?eT:(l=ey,A.test(l)?"rtl":O.test(l)?"ltr":null);if(u!==s){let l=n.classList,c=el.theme,h=null!==s?c[s]:void 0,p=null!==u?c[u]:void 0;if(void 0!==h){if("string"==typeof h){let e=d(h);h=c[s]=e}l.remove(...h)}if(null===u||r&&"ltr"===u)n.removeAttribute("dir");else{if(void 0!==p){if("string"==typeof p){let e=d(p);p=c[u]=e}void 0!==p&&l.add(...p)}n.dir=u}ek||(e.getWritable().__dir=u)}eT=u,n.__lexicalDirTextContent=ey,n.__lexicalDir=u}}function oe(e,n){let r=[],s=e.__first;for(;null!==s;){let e=n.get(s);void 0===e&&t(101),r.push(s),s=e.__next}return r}function ce(e,n){let r=ea._pendingDecorators,s=ea._decorators;if(null===r){if(s[e]===n)return;r=Ns(ea)}r[e]=n}function ae(e){let n=e.nextSibling;return null!==n&&n===ea._blockCursorElement&&(n=n.nextSibling),n}function fe(e){let n=ep.get(e);return void 0===n&&t(75,e),n}function de(e){return{type:e}}let eE=de("SELECTION_CHANGE_COMMAND"),eC=(de("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),de("CLICK_COMMAND")),ew=de("DELETE_CHARACTER_COMMAND"),eN=de("INSERT_LINE_BREAK_COMMAND"),eA=de("INSERT_PARAGRAPH_COMMAND"),eO=de("CONTROLLED_TEXT_INSERTION_COMMAND"),eF=de("PASTE_COMMAND"),eL=de("REMOVE_TEXT_COMMAND"),eP=de("DELETE_WORD_COMMAND"),eI=de("DELETE_LINE_COMMAND"),eM=de("FORMAT_TEXT_COMMAND"),eD=de("UNDO_COMMAND"),eR=de("REDO_COMMAND"),eB=de("KEYDOWN_COMMAND"),ez=de("KEY_ARROW_RIGHT_COMMAND"),e$=de("MOVE_TO_END"),eK=de("KEY_ARROW_LEFT_COMMAND"),eW=de("MOVE_TO_START"),eU=de("KEY_ARROW_UP_COMMAND"),eH=de("KEY_ARROW_DOWN_COMMAND"),eQ=de("KEY_ENTER_COMMAND"),ej=de("KEY_SPACE_COMMAND"),eG=de("KEY_BACKSPACE_COMMAND"),eZ=de("KEY_ESCAPE_COMMAND"),eY=de("KEY_DELETE_COMMAND"),eJ=de("KEY_TAB_COMMAND"),eq=(de("INSERT_TAB_COMMAND"),de("INDENT_CONTENT_COMMAND"),de("OUTDENT_CONTENT_COMMAND"),de("DROP_COMMAND")),eV=(de("FORMAT_ELEMENT_COMMAND"),de("DRAGSTART_COMMAND")),eX=de("DRAGOVER_COMMAND"),e0=de("DRAGEND_COMMAND"),e1=de("COPY_COMMAND"),e2=de("CUT_COMMAND"),e6=de("SELECT_ALL_COMMAND"),e7=(de("CLEAR_EDITOR_COMMAND"),de("CLEAR_HISTORY_COMMAND"),de("CAN_REDO_COMMAND"),de("CAN_UNDO_COMMAND"),de("FOCUS_COMMAND")),e3=de("BLUR_COMMAND"),e9=de("KEY_MODIFIER_COMMAND"),e4=Object.freeze({}),e5=[["keydown",function(e,n){if(e8=e.timeStamp,tn=e.key,!(n.isComposing()||Qs(n,eB,e))&&null!=e.key){if(th&&$s(e))return _i(n,()=>{wn(n,tp)}),th=!1,void(tp="");if(Bs(e,"ArrowRight",{shiftKey:"any"}))Qs(n,ez,e);else if(Bs(e,"ArrowRight",tD))Qs(n,e$,e);else if(Bs(e,"ArrowLeft",{shiftKey:"any"}))Qs(n,eK,e);else if(Bs(e,"ArrowLeft",tD))Qs(n,eW,e);else if(Bs(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))Qs(n,eU,e);else if(Bs(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))Qs(n,eH,e);else if(Bs(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tg=!0,Qs(n,eQ,e);else if(" "===e.key)Qs(n,ej,e);else if(u&&Bs(e,"o",{ctrlKey:!0}))e.preventDefault(),tg=!0,Qs(n,eN,!0);else if(Bs(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tg=!1,Qs(n,eQ,e);else if(Bs(e,"Backspace",{shiftKey:"any"})||u&&Bs(e,"h",{ctrlKey:!0}))$s(e)?Qs(n,eG,e):(e.preventDefault(),Qs(n,ew,!0));else if("Escape"===e.key)Qs(n,eZ,e);else if(Bs(e,"Delete",{})||u&&Bs(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),Qs(n,ew,!1)):Qs(n,eY,e);else if(Bs(e,"Backspace",tR))e.preventDefault(),Qs(n,eP,!0);else if(Bs(e,"Delete",tR))e.preventDefault(),Qs(n,eP,!1);else if(u&&Bs(e,"Backspace",{metaKey:!0}))e.preventDefault(),Qs(n,eI,!0);else if(u&&(Bs(e,"Delete",{metaKey:!0})||Bs(e,"k",{ctrlKey:!0})))e.preventDefault(),Qs(n,eI,!1);else if(Bs(e,"b",tD))e.preventDefault(),Qs(n,eM,"bold");else if(Bs(e,"u",tD))e.preventDefault(),Qs(n,eM,"underline");else if(Bs(e,"i",tD))e.preventDefault(),Qs(n,eM,"italic");else if(Bs(e,"Tab",{shiftKey:"any"}))Qs(n,eJ,e);else if(Bs(e,"z",tD))e.preventDefault(),Qs(n,eD,void 0);else if(u?Bs(e,"z",{metaKey:!0,shiftKey:!0}):Bs(e,"y",{ctrlKey:!0})||Bs(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),Qs(n,eR,void 0);else{let r=n._editorState._selection;null===r||_r(r)?Bs(e,"a",tD)&&(e.preventDefault(),Qs(n,e6,e)):Bs(e,"c",tD)?(e.preventDefault(),Qs(n,e1,e)):Bs(e,"x",tD)?(e.preventDefault(),Qs(n,e2,e)):Bs(e,"a",tD)&&(e.preventDefault(),Qs(n,e6,e))}(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&Qs(n,e9,e)}}],["pointerdown",function(e,n){let r=e.target,s=e.pointerType;To(r)&&"touch"!==s&&"pen"!==s&&0===e.button&&_i(n,()=>{vi(Ts(r))||(td=!0)})}],["compositionstart",function(e,n){_i(n,()=>{let r=Pr();if(_r(r)&&!n.isComposing()){let s=r.anchor,l=r.anchor.getNode();xs(s.key),(e.timeStamp<e8+30||"element"===s.type||!r.isCollapsed()||l.getFormat()!==r.format||sr(l)&&l.getStyle()!==r.style)&&Qs(n,eO,C)}})}],["compositionend",function(e,n){c?tf=!0:!_&&(p||T)?(th=!0,tp=e.data):_i(n,()=>{wn(n,e.data)})}],["input",function(e,n){e.stopPropagation(),_i(n,()=>{var r;if(ko(e.target)&&vi(Ts(e.target)))return;let s=Pr(),l=e.data,u=bn(e);if(null!=l&&_r(s)&&Sn(s,u,l,e.timeStamp,!1)){tf&&(wn(n,l),tf=!1);let r=s.anchor.getNode(),u=xo(co(n));if(null===u)return;let m=s.isBackward(),v=m?s.anchor.offset:s.focus.offset,k=m?s.focus.offset:s.anchor.offset;h&&!s.isCollapsed()&&sr(r)&&null!==u.anchorNode&&r.getTextContent().slice(0,v)+l+r.getTextContent().slice(v+k)===Fs(u.anchorNode)||Qs(n,eO,l);let E=l.length;c&&E>1&&"insertCompositionText"===e.inputType&&!n.isComposing()&&(s.anchor.offset-=E),p||_||T||!n.isComposing()||(e8=0,xs(null))}else Ls(!1,n,null!==l?l:void 0),tf&&(wn(n,l||void 0),tf=!1);!function(){Zr();let e=ni();at(e)}()},{event:e}),ta=null}],["click",function(e,n){_i(n,()=>{let r=Pr(),s=xo(co(n)),l=Fr();if(s){if(_r(r)){let n=r.anchor,u=n.getNode();if("element"===n.type&&0===n.offset&&r.isCollapsed()&&!Ti(u)&&1===ws().getChildrenSize()&&u.getTopLevelElementOrThrow().isEmpty()&&null!==l&&r.is(l))s.removeAllRanges(),r.dirty=!0;else if(3===e.detail&&!r.isCollapsed()&&u!==r.focus.getNode()){let e=function(e,n){let r=e;for(;r!==ws()&&null!=r;){if(n(r))return r;r=r.getParent()}return null}(u,e=>xi(e)&&!e.isInline());xi(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let r=s.anchorNode;(ko(r)||fs(r))&&Ms(Dr(l,s,n,e))}}Qs(n,eC,e)})}],["cut",e4],["copy",e4],["dragstart",e4],["dragover",e4],["dragend",e4],["paste",e4],["focus",e4],["blur",e4],["drop",e4]];h&&e5.push(["beforeinput",(e,n)=>(function(e,n){let r=e.inputType,s=bn(e);"deleteCompositionText"===r||c&&Xs(n)||"insertCompositionText"===r||_i(n,()=>{var l;let u=Pr();if("deleteContentBackward"===r){if(null===u){let e=Fr();if(!_r(e))return;Ms(e.clone())}if(_r(u)){let r=u.anchor.key===u.focus.key;if(l=e.timeStamp,"MediaLast"===tn&&l<e8+30&&n.isComposing()&&r){if(xs(null),e8=0,setTimeout(()=>{_i(n,()=>{xs(null)})},30),_r(u)){let e=u.anchor.getNode();e.markDirty(),sr(e)||t(142),Nn(u,e)}}else{xs(null),e.preventDefault();let s=u.anchor.getNode(),l=s.getTextContent(),c=s.canInsertTextAfter(),h=0===u.anchor.offset&&u.focus.offset===l.length,p=k&&r&&!h&&c;if(p&&u.isCollapsed()&&(p=!vi(function(e,n){let r=e.offset;if("element"===e.type)return qs(e.getNode(),n,r);{let s=e.getNode();if(n&&0===r||!n&&r===s.getTextContentSize()){let e=n?s.getPreviousSibling():s.getNextSibling();return null===e?qs(s.getParentOrThrow(),n,s.getIndexWithinParent()+(n?0:1)):e}}return null}(u.anchor,!0))),!p){Qs(n,ew,!0);let e=Pr();k&&_r(e)&&e.isCollapsed()&&(t_=e,setTimeout(()=>t_=null))}}return}}if(!_r(u))return;let c=e.data;null!==ta&&Ls(!1,n,ta),u.dirty&&null===ta||!u.isCollapsed()||Ti(u.anchor.getNode())||null===s||u.applyDOMRange(s),ta=null;let h=u.anchor,p=u.focus,m=h.getNode(),v=p.getNode();if("insertText"!==r&&"insertTranspose"!==r)switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Qs(n,eO,e);break;case"insertFromComposition":xs(null),Qs(n,eO,e);break;case"insertLineBreak":xs(null),Qs(n,eN,!1);break;case"insertParagraph":xs(null),tg&&!_?(tg=!1,Qs(n,eN,!1)):Qs(n,eA,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Qs(n,eF,e);break;case"deleteByComposition":(m!==v||xi(m)||xi(v)||!as(m)||!as(v))&&Qs(n,eL,e);break;case"deleteByDrag":case"deleteByCut":Qs(n,eL,e);break;case"deleteContent":Qs(n,ew,!1);break;case"deleteWordBackward":Qs(n,eP,!0);break;case"deleteWordForward":Qs(n,eP,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Qs(n,eI,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Qs(n,eI,!1);break;case"formatStrikeThrough":Qs(n,eM,"strikethrough");break;case"formatBold":Qs(n,eM,"bold");break;case"formatItalic":Qs(n,eM,"italic");break;case"formatUnderline":Qs(n,eM,"underline");break;case"historyUndo":Qs(n,eD,void 0);break;case"historyRedo":Qs(n,eR,void 0)}else{if("\n"===c)e.preventDefault(),Qs(n,eN,!1);else if("\n\n"===c)e.preventDefault(),Qs(n,eA,void 0);else if(null==c&&e.dataTransfer){let n=e.dataTransfer.getData("text/plain");e.preventDefault(),u.insertRawText(n)}else null!=c&&Sn(u,s,c,e.timeStamp,!0)?(e.preventDefault(),Qs(n,eO,c)):ta=c;tl=e.timeStamp}})})(e,n)]);let e8=0,tn=null,tl=0,ta=null,tu=new WeakMap,tc=!1,td=!1,tg=!1,tf=!1,th=!1,tp="",t_=null,tm=[0,"",0,"root",0];function Sn(e,n,r,s,l){let u=e.anchor,c=e.focus,p=u.getNode(),_=ni(),m=xo(co(_)),v=null!==m?m.anchorNode:null,k=u.key,T=_.getElementByKey(k),E=r.length;return k!==c.key||!sr(p)||(!l&&(!h||tl<s+50)||p.isDirty()&&E<2||As(r))&&u.offset!==c.offset&&!p.isComposing()||us(p)||p.isDirty()&&E>1||(l||!h)&&null!==T&&!p.isComposing()&&v!==hs(T)||null!==m&&null!==n&&(!n.collapsed||n.startContainer!==m.anchorNode||n.startOffset!==m.anchorOffset)||p.getFormat()!==e.format||p.getStyle()!==e.style||function(e,n){if(n.isSegmented())return!0;if(!e.isCollapsed())return!1;let r=e.anchor.offset,s=n.getParentOrThrow(),l=as(n);return 0===r?!n.canInsertTextBefore()||!s.canInsertTextBefore()&&!n.isComposing()||l||function(e){let n=e.getPreviousSibling();return(sr(n)||xi(n)&&n.isInline())&&!n.canInsertTextAfter()}(n):r===n.getTextContentSize()&&(!n.canInsertTextAfter()||!s.canInsertTextAfter()&&!n.isComposing()||l)}(e,p)}function vn(e,n){return fs(e)&&null!==e.nodeValue&&0!==n&&n!==e.nodeValue.length}function kn(e,n,r){let{anchorNode:s,anchorOffset:l,focusNode:u,focusOffset:c}=e;tc&&(tc=!1,vn(s,l)&&vn(u,c)&&!t_)||_i(n,()=>{if(!r)return void Ms(null);if(!ss(n,s,u))return;let h=Pr();if(t_&&_r(h)&&h.isCollapsed()){let e=h.anchor,n=t_.anchor;(e.key===n.key&&e.offset===n.offset+1||1===e.offset&&n.getNode().is(e.getNode().getPreviousSibling()))&&Ms(h=t_.clone())}if(t_=null,_r(h)){let r=h.anchor,s=r.getNode();if(h.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(h.dirty=!0);let l=co(n).event,u=l?l.timeStamp:performance.now(),[c,p,_,m,v]=tm,k=ws(),T=!1===n.isComposing()&&""===k.getTextContent();if(u<v+200&&r.offset===_&&r.key===m)Tn(h,c,p);else if("text"===r.type)sr(s)||t(141),Nn(h,s);else if("element"===r.type&&!T){xi(s)||t(259);let e=r.getNode();e.isEmpty()?function(e,n){let r=n.getTextFormat(),s=n.getTextStyle();Tn(e,r,s)}(h,e):Tn(h,0,"")}}else{let e=r.key,n=h.focus.key,s=h.getNodes(),u=s.length,p=h.isBackward(),_=p?c:l,m=p?l:c,v=p?n:e,k=p?e:n,T=2047,E=!1;for(let e=0;e<u;e++){let n=s[e],r=n.getTextContentSize();if(sr(n)&&0!==r&&!(0===e&&n.__key===v&&_===r||e===u-1&&n.__key===k&&0===m)&&(E=!0,0==(T&=n.getFormat())))break}h.format=E?T:0}}Qs(n,eE,void 0)})}function Tn(e,n,r){e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}function Nn(e,n){Tn(e,n.getFormat(),n.getStyle())}function bn(e){if(!e.getTargetRanges)return null;let n=e.getTargetRanges();return 0===n.length?null:n[0]}function wn(e,n){let r=e._compositionKey;if(xs(null),null!==r&&null!=n){if(""===n){let n=Ss(r),s=hs(e.getElementByKey(r));return void(null!==s&&null!==s.nodeValue&&sr(n)&&Is(n,s.nodeValue,null,null,!0))}if("\n"===n[n.length-1]){let n=Pr();if(_r(n)){let r=n.focus;return n.anchor.set(r.key,r.offset,r.type),void Qs(e,eQ,null)}}}Ls(!0,e,n)}function En(e){let n=e.__lexicalEventHandles;return void 0===n&&(n=[],e.__lexicalEventHandles=n),n}let ty=new Map;function On(e){let n=function(e){let n=lo(e);return n?n.getSelection():null}(e.target);if(null===n)return;let r=ls(n.anchorNode);if(null===r)return;td&&(td=!1,_i(r,()=>{let s=Fr(),l=n.anchorNode;(ko(l)||fs(l))&&Ms(Dr(s,n,r,e))}));let s=Ds(r),l=s[s.length-1],u=l._key,c=ty.get(u),h=c||l;h!==r&&kn(n,h,!1),kn(n,r,!0),r!==l?ty.set(u,r):c&&ty.delete(u)}function An(e){e._lexicalHandled=!0}function Dn(e){return!0===e._lexicalHandled}let Pn=()=>{};function Ln(e,n,r){Zr();let s=e.__key,l=e.getParent();if(null===l)return;let u=function(e){let n=Pr();if(!_r(n)||!xi(e))return n;let{anchor:r,focus:s}=n,l=r.getNode(),u=s.getNode();return oo(l,e)&&r.set(e.__key,0,"element"),oo(u,e)&&s.set(e.__key,0,"element"),n}(e),c=!1;if(_r(u)&&n){let n=u.anchor,r=u.focus;n.key===s&&(Kr(n,e,l,e.getPreviousSibling(),e.getNextSibling()),c=!0),r.key===s&&(Kr(r,e,l,e.getPreviousSibling(),e.getNextSibling()),c=!0)}else yr(u)&&n&&e.isSelected()&&e.selectPrevious();if(_r(u)&&n&&!c){let n=e.getIndexWithinParent();ys(e),Lr(u,l,n,-1)}else ys(e);r||fo(l)||l.canBeEmpty()||!l.isEmpty()||Ln(l,n),n&&u&&Ti(l)&&l.isEmpty()&&l.selectEnd()}function In(e){return e}let Kn=class Kn{static getType(){let{ownNodeType:e}=Ro(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(e,n){let r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),function(e,n){let r=function(){let e=tP;return tP=null,e}();if(null!=(n=n||r&&r.__key))return void(e.__key=n);Zr(),ti();let s=ni(),l=ei(),u=""+tI++;l._nodeMap.set(u,e),xi(e)?s._dirtyElements.set(u,!0):s._dirtyLeaves.add(u),s._cloneNotNeeded.add(u),s._dirtyType=1,e.__key=u}(this,e)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let n=Ss(e);if(null===n)break;e=n.__parent}return!1}isSelected(e){let n=e||Pr();if(null==n)return!1;let r=n.getNodes().some(e=>e.__key===this.__key);if(sr(this))return r;if(_r(n)&&"element"===n.anchor.type&&"element"===n.focus.type){if(n.isCollapsed())return!1;let e=this.getParent();if(vi(this)&&this.isInline()&&e){let r=n.isBackward()?n.focus:n.anchor;if(e.is(r.getNode())&&r.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let n=e.getFirstChild(),r=0;for(;null!==n;){if(this.is(n))return r;r++,n=n.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:Ss(e)}getParentOrThrow(){let e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let n=e.getParent();if(fo(n))return xi(e)||e===this&&vi(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&t(67,this.__key),e}getParents(){let e=[],n=this.getParent();for(;null!==n;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;null!==n;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:Ss(e)}getPreviousSiblings(){let e=[],n=this.getParent();if(null===n)return e;let r=n.getFirstChild();for(;null!==r&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:Ss(e)}getNextSiblings(){let e=[],n=this.getNextSibling();for(;null!==n;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){let n=xi(this)?this:this.getParent(),r=xi(e)?e:e.getParent(),s=n&&r?Cl(n,r):null;return s?s.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let n=Cl(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===yl(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(e){let n=Cl(this,e);return null!==n&&"ancestor"===n.type}getNodesBetween(e){let n=this.isBefore(e),r=[],s=new Set,l=this;for(;null!==l;){let u=l.__key;if(s.has(u)||(s.add(u),r.push(l)),l===e)break;let c=xi(l)?n?l.getFirstChild():l.getLastChild():null;if(null!==c){l=c;continue}let h=n?l.getNextSibling():l.getPreviousSibling();if(null!==h){l=h;continue}let p=l.getParentOrThrow();if(s.has(p.__key)||r.push(p),p===e)break;let _=null,m=p;do{if(null===m&&t(68),_=n?m.getNextSibling():m.getPreviousSibling(),null===(m=m.getParent()))break;null!==_||s.has(m.__key)||r.push(m)}while(null===_);l=_}return n||r.reverse(),r}isDirty(){let e=ni()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=Ss(this.__key);return null===e&&t(113),e}getWritable(){Zr();let e=ei(),n=ni(),r=e._nodeMap,s=this.__key,l=this.getLatest(),u=n._cloneNotNeeded,c=Pr();if(null!==c&&c.setCachedNodes(null),u.has(s))return ms(l),l;let h=Fo(l);return u.add(s),ms(h),r.set(s,h),h}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){t(18,this.name)}updateFromJSON(e){return function(e,n){let r=e.getWritable(),s=n.$,l=s;for(let e of xt(r).flatKeys)e in n&&(void 0!==l&&l!==s||(l={...s}),l[e]=n[e]);return(r.__state||l)&&(function(e){let n=e.getWritable(),r=n.__state?n.__state.getWritable(n):new yt(n,xt(n));return n.__state=r,r})(e).updateFromJSON(l),r}(this,e)}static transform(){return null}remove(e){Ln(this,!0,e)}replace(e,n){Zr();let r=Pr();null!==r&&(r=r.clone()),_o(this,e);let s=this.getLatest(),l=this.__key,u=e.__key,c=e.getWritable(),h=this.getParentOrThrow().getWritable(),p=h.__size;ys(c);let _=s.getPreviousSibling(),m=s.getNextSibling(),v=s.__prev,k=s.__next,T=s.__parent;if((Ln(s,!1,!0),null===_)?h.__first=u:_.getWritable().__next=u,(c.__prev=v,null===m)?h.__last=u:m.getWritable().__prev=u,c.__next=k,c.__parent=T,h.__size=p,n&&(xi(this)&&xi(c)||t(139),this.getChildren().forEach(e=>{c.append(e)})),_r(r)){Ms(r);let e=r.anchor,n=r.focus;e.key===l&&hr(e,c),n.key===l&&hr(n,c)}return Cs()===l&&xs(u),c}insertAfter(e,n=!0){Zr(),_o(this,e);let r=this.getWritable(),s=e.getWritable(),l=s.getParent(),u=Pr(),c=!1,h=!1;if(null!==l){let n=e.getIndexWithinParent();if(ys(s),_r(u)){let e=l.__key,r=u.anchor,s=u.focus;c="element"===r.type&&r.key===e&&r.offset===n+1,h="element"===s.type&&s.key===e&&s.offset===n+1}}let p=this.getNextSibling(),_=this.getParentOrThrow().getWritable(),m=s.__key,v=r.__next;if(null===p?_.__last=m:p.getWritable().__prev=m,_.__size++,r.__next=m,s.__next=v,s.__prev=r.__key,s.__parent=r.__parent,n&&_r(u)){let e=this.getIndexWithinParent();Lr(u,_,e+1);let n=_.__key;c&&u.anchor.set(n,e+2,"element"),h&&u.focus.set(n,e+2,"element")}return e}insertBefore(e,n=!0){Zr(),_o(this,e);let r=this.getWritable(),s=e.getWritable(),l=s.__key;ys(s);let u=this.getPreviousSibling(),c=this.getParentOrThrow().getWritable(),h=r.__prev,p=this.getIndexWithinParent();null===u?c.__first=l:u.getWritable().__next=l,c.__size++,r.__prev=l,s.__prev=h,s.__next=r.__key,s.__parent=r.__parent;let _=Pr();return n&&_r(_)&&Lr(_,this.getParentOrThrow(),p),e}isParentRequired(){return!1}createParentElementNode(){return Bi()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Zr();let r=this.getPreviousSibling(),s=this.getParentOrThrow();if(null===r)return s.select(0,0);if(xi(r))return r.select();if(!sr(r)){let e=r.getIndexWithinParent()+1;return s.select(e,e)}return r.select(e,n)}selectNext(e,n){Zr();let r=this.getNextSibling(),s=this.getParentOrThrow();if(null===r)return s.select();if(xi(r))return r.select(0,0);if(!sr(r)){let e=r.getIndexWithinParent();return s.select(e,e)}return r.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}};let zn=class zn extends Kn{static getType(){return"linebreak"}static clone(e){return new zn(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let n=e.parentElement;if(null!==n&&wo(n)){let r=n.firstChild;if(r===e||r.nextSibling===e&&Jn(r)){let r=n.lastChild;if(r===e||r.previousSibling===e&&Jn(r))return!0}}return!1})(e)||function(e){let n=e.parentElement;if(null!==n&&wo(n)){let r=n.firstChild;if(r===e||r.nextSibling===e&&Jn(r))return!1;let s=n.lastChild;if(s===e||s.previousSibling===e&&Jn(s))return!0}return!1}(e)?null:{conversion:Rn,priority:0}}}static importJSON(e){return Bn().updateFromJSON(e)}};function Rn(e){return{node:Bn()}}function Bn(){return go(new zn)}function Wn(e){return e instanceof zn}function Jn(e){return fs(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function $n(e,n){return 16&n?"code":128&n?"mark":32&n?"sub":64&n?"sup":null}function jn(e,n){return 1&n?"strong":2&n?"em":"span"}function Un(e,n,r,s,l){let u=s.classList,c=Vs(l,"base");void 0!==c&&u.add(...c),c=Vs(l,"underlineStrikethrough");let h=!1,p=8&n&&4&n;for(let e in void 0!==c&&(8&r&&4&r?(h=!0,p||u.add(...c)):p&&u.remove(...c)),F){let s=F[e];if(void 0!==(c=Vs(l,e))){if(r&s){if(h&&("underline"===e||"strikethrough"===e)){n&s&&u.remove(...c);continue}n&s&&(!p||"underline"!==e)&&"strikethrough"!==e||u.add(...c)}else n&s&&u.remove(...c)}}}function Vn(e,n,r){let s=n.firstChild,l=r.isComposing(),u=e+(l?E:"");if(null==s)n.textContent=u;else{let e=s.nodeValue;if(e!==u){if(l||c){let[n,r,l]=function(e,n){let r=e.length,s=n.length,l=0,u=0;for(;l<r&&l<s&&e[l]===n[l];)l++;for(;u+l<r&&u+l<s&&e[r-u-1]===n[s-u-1];)u++;return[l,r-l-u,n.slice(l,s-u)]}(e,u);0!==r&&s.deleteData(n,r),s.insertData(n,l)}else s.nodeValue=u}}}function Yn(e,n,r,s,l,u){Vn(l,e,n);let c=u.theme.text;void 0!==c&&Un(0,0,s,e,c)}function Hn(e,n){let r=document.createElement(n);return r.appendChild(e),r}let qn=class qn extends Kn{static getType(){return"text"}static clone(e){return new qn(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",n){super(n),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return R[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Cs()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let n=F[e];return!!(this.getFormat()&n)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){return gs(this.getLatest().__format,e,n)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,n){let r=this.__format,s=$n(0,r),l=jn(0,r),u=null===s?l:s,c=document.createElement(u),h=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),null!==s&&(h=document.createElement(l),c.appendChild(h)),Yn(h,this,0,r,this.__text,e);let p=this.__style;return""!==p&&(c.style.cssText=p),c}updateDOM(e,n,r){let s=this.__text,l=e.__format,u=this.__format,c=$n(0,l),h=$n(0,u),p=jn(0,l),_=jn(0,u);if((null===c?p:c)!==(null===h?_:h))return!0;if(c===h&&p!==_){let e=n.firstChild;null==e&&t(48);let l=document.createElement(_);return Yn(l,this,0,u,s,r),n.replaceChild(l,e),!1}let m=n;null!==h&&null!==c&&null==(m=n.firstChild)&&t(49),Vn(s,m,this);let v=r.theme.text;void 0!==v&&l!==u&&Un(0,l,u,m,v);let k=e.__style,T=this.__style;return k!==T&&(n.style.cssText=T),!1}static importDOM(){return{"#text":()=>({conversion:tr,priority:0}),b:()=>({conversion:Xn,priority:0}),code:()=>({conversion:rr,priority:0}),em:()=>({conversion:rr,priority:0}),i:()=>({conversion:rr,priority:0}),mark:()=>({conversion:rr,priority:0}),s:()=>({conversion:rr,priority:0}),span:()=>({conversion:Gn,priority:0}),strong:()=>({conversion:rr,priority:0}),sub:()=>({conversion:rr,priority:0}),sup:()=>({conversion:rr,priority:0}),u:()=>({conversion:rr,priority:0})}}static importJSON(e){return ir().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return ko(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=Hn(n,"b")),this.hasFormat("italic")&&(n=Hn(n,"i")),this.hasFormat("strikethrough")&&(n=Hn(n,"s")),this.hasFormat("underline")&&(n=Hn(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,n){}setFormat(e){let n=this.getWritable();return n.__format="string"==typeof e?F[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail="string"==typeof e?L[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){let n=gs(this.getFormat(),e,null);return this.setFormat(n)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let n=D[e];if(this.__mode===n)return this;let r=this.getWritable();return r.__mode=n,r}setTextContent(e){if(this.__text===e)return this;let n=this.getWritable();return n.__text=e,n}select(e,n){Zr();let r=e,s=n,l=Pr(),u=this.getTextContent(),c=this.__key;if("string"==typeof u){let e=u.length;void 0===r&&(r=e),void 0===s&&(s=e)}else r=0,s=0;if(!_r(l))return Er(c,r,c,s,"text","text");{let e=Cs();e!==l.anchor.key&&e!==l.focus.key||xs(c),l.setTextNodeRange(this,r,this,s)}return l}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,n,r,s){let l=this.getWritable(),u=l.__text,c=r.length,h=e;h<0&&(h=c+h)<0&&(h=0);let p=Pr();if(s&&_r(p)){let n=e+c;p.setTextNodeRange(l,n,l,n)}let _=u.slice(0,h)+r+u.slice(h+n);return l.__text=_,l}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let n;Zr();let r=this.getLatest(),s=r.getTextContent();if(""===s)return[];let l=r.__key,u=Cs(),c=s.length;e.sort((e,n)=>e-n),e.push(c);let h=[],p=e.length;for(let n=0,r=0;n<c&&r<=p;r++){let l=e[r];l>n&&(h.push(s.slice(n,l)),n=l)}let _=h.length;if(1===_)return[r];let m=h[0],v=r.getParent(),k=r.getFormat(),T=r.getStyle(),E=r.__detail,C=!1,w=null,N=null,A=Pr();if(_r(A)){let[e,n]=A.isBackward()?[A.focus,A.anchor]:[A.anchor,A.focus];"text"===e.type&&e.key===l&&(w=e),"text"===n.type&&n.key===l&&(N=n)}r.isSegmented()?((n=ir(m)).__format=k,n.__style=T,n.__detail=E,n.__state=Tt(r,n),C=!0):n=r.setTextContent(m);let O=[n];for(let e=1;e<_;e++){let n=ir(h[e]);n.__format=k,n.__style=T,n.__detail=E,n.__state=Tt(r,n);let s=n.__key;u===l&&xs(s),O.push(n)}let F=w?w.offset:null,L=N?N.offset:null,P=0;for(let e of O){if(!w&&!N)break;let n=P+e.getTextContentSize();if(null!==w&&null!==F&&F<=n&&F>=P&&(w.set(e.getKey(),F-P,"text"),F<n&&(w=null)),null!==N&&null!==L&&L<=n&&L>=P){N.set(e.getKey(),L-P,"text");break}P=n}if(null!==v){!function(e){let n=e.getPreviousSibling(),r=e.getNextSibling();null!==n&&ms(n),null!==r&&ms(r)}(this);let e=v.getWritable(),n=this.getIndexWithinParent();C?(e.splice(n,0,O),this.remove()):e.splice(n,1,O),_r(A)&&Lr(A,v,n,_-1)}return O}mergeWithSibling(e){let n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);let r=this.__key,s=e.__key,l=this.__text,u=l.length;Cs()===s&&xs(r);let c=Pr();if(_r(c)){let l=c.anchor,h=c.focus;null!==l&&l.key===s&&zr(l,n,r,e,u),null!==h&&h.key===s&&zr(h,n,r,e,u)}let h=e.__text,p=n?h+l:l+h;this.setTextContent(p);let _=this.getWritable();return e.remove(),_}isTextEntity(){return!1}};function Gn(e){return{forChild:or(e.style),node:null}}function Xn(e){let n="normal"===e.style.fontWeight;return{forChild:or(e.style,n?void 0:"bold"),node:null}}let tx=new WeakMap;function tr(e){null===e.parentElement&&t(129);let n=e.textContent||"";if(null!==function(e){let n,r=e.parentNode,s=[e];for(;null!==r&&void 0===(n=tx.get(r))&&!function(e){if(!ko(e))return!1;if("PRE"===e.nodeName)return!0;let n=e.style.whiteSpace;return"string"==typeof n&&n.startsWith("pre")}(r);)s.push(r),r=r.parentNode;let l=void 0===n?r:n;for(let e=0;e<s.length;e++)tx.set(s[e],l);return l}(e)){let e=n.split(/(\r?\n|\t)/),r=[],s=e.length;for(let n=0;n<s;n++){let s=e[n];"\n"===s||"\r\n"===s?r.push(Bn()):" "===s?r.push(cr()):""!==s&&r.push(ir(s))}return{node:r}}if(""===(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===n[0]){let r=e,s=!0;for(;null!==r&&null!==(r=er(r,!1));){let e=r.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),s=!1;break}}s&&(n=n.slice(1))}if(" "===n[n.length-1]){let r=e,s=!0;for(;null!==r&&null!==(r=er(r,!0));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){s=!1;break}s&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:ir(n)}}function er(e,n){let r=e;for(;;){let e;for(;null===(e=n?r.nextSibling:r.previousSibling);){let e=r.parentElement;if(null===e)return null;r=e}if(ko(r=e)){let e=r.style.display;if(""===e&&!function(e){let n=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(n)}(r)||""!==e&&!e.startsWith("inline"))return null}let s=r;for(;null!==(s=n?r.firstChild:r.lastChild);)r=s;if(fs(r))return r;if("BR"===r.nodeName)return null}}let tb={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function rr(e){let n=tb[e.nodeName.toLowerCase()];return void 0===n?{node:null}:{forChild:or(e.style,n),node:null}}function ir(e=""){return go(new qn(e))}function sr(e){return e instanceof qn}function or(e,n){let r=e.fontWeight,s=e.textDecoration.split(" "),l="700"===r||"bold"===r,u=s.includes("line-through"),c="italic"===e.fontStyle,h=s.includes("underline"),p=e.verticalAlign;return e=>(sr(e)&&(l&&!e.hasFormat("bold")&&e.toggleFormat("bold"),u&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),c&&!e.hasFormat("italic")&&e.toggleFormat("italic"),h&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==p||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==p||e.hasFormat("superscript")||e.toggleFormat("superscript"),n&&!e.hasFormat(n)&&e.toggleFormat(n)),e)}let lr=class lr extends qn{static getType(){return"tab"}static clone(e){return new lr(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){let n=super.createDOM(e),r=Vs(e.theme,"tab");return void 0!==r&&n.classList.add(...r),n}static importJSON(e){return cr().updateFromJSON(e)}setTextContent(e){return" "!==e&&""!==e&&t(126),super.setTextContent(" ")}spliceText(e,n,r,s){return""===r&&0===n||" "===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function cr(){return go(new lr)}function ar(e){return e instanceof lr}let ur=class ur{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){return this.key===e.key?this.offset<e.offset:0>pl(Ol(Sl(this,"next")),Ol(Sl(e,"next")))}getNode(){let e=Ss(this.key);return null===e&&t(20),e}set(e,n,r,s){let l=this._selection,u=this.key;s&&this.key===e&&this.offset===n&&this.type===r||(this.key=e,this.offset=n,this.type=r,Qr()||(Cs()===u&&xs(e),null!==l&&(l.setCachedNodes(null),l.dirty=!0)))}};function fr(e,n,r){return new ur(e,n,r)}function dr(e,n){let r=n.__key,s=e.offset,l="element";if(sr(n)){l="text";let e=n.getTextContentSize();s>e&&(s=e)}else if(!xi(n)){let e=n.getNextSibling();if(sr(e))r=e.__key,s=0,l="text";else{let e=n.getParent();e&&(r=e.__key,s=n.getIndexWithinParent()+1)}}e.set(r,s,l)}function hr(e,n){if(xi(n)){let r=n.getLastDescendant();xi(r)||sr(r)?dr(e,r):dr(e,n)}else dr(e,n)}let gr=class gr{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!yr(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(e=>r.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}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 gr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let n;let r=this.getNodes(),s=r.length,l=r[s-1];if(sr(l))n=l.select();else{let e=l.getIndexWithinParent()+1;n=l.getParentOrThrow().select(e,e)}n.insertNodes(e);for(let e=0;e<s;e++)r[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let n=this._nodes,r=[];for(let e of n){let n=Ss(e);null!==n&&r.push(n)}return Qr()||(this._cachedNodes=r),r}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}deleteNodes(){let e=this.getNodes();if((Pr()||Fr())===this&&e[0]){let n=nl(e[0],"next");!function(e){let n=Pr(),r=_r(n)?n:function(){let e=fr("root",0,"element"),n=fr("root",0,"element");return new pr(e,n,0,"")}();Tl(r,e),Ms(r)}(gl(n,n))}for(let n of e)n.remove()}};function _r(e){return e instanceof pr}let pr=class pr{constructor(e,n,r,s){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=s,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!_r(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let n=function(e){let n=[],[r,s]=e.getTextSlices();r&&n.push(r.caret.origin);let l=new Set,u=new Set;for(let r of e)if(Qo(r)){let{origin:e}=r;0===n.length?l.add(e):(u.add(e),n.push(e))}else{let{origin:e}=r;xi(e)&&u.has(e)||n.push(e)}if(s&&n.push(s.caret.origin),Xo(e.focus)&&xi(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let r=ol(e.focus.origin,"previous");Qo(r)&&l.has(r.origin)&&!r.origin.isEmpty()&&r.origin.is(n[n.length-1]);r=cl(r))l.delete(r.origin),n.pop();for(;n.length>1;){let e=n[n.length-1];if(!xi(e)||u.has(e)||e.isEmpty()||l.has(e))break;n.pop()}if(0===n.length&&e.isCollapsed()){let r=Ol(e.anchor),s=Ol(e.anchor.getFlipped()),i=e=>qo(e)?e.origin:e.getNodeAtCaret(),l=i(r)||i(s)||(e.anchor.getNodeAtCaret()?r.origin:s.origin);n.push(l)}return n}(Pl(Nl(this),"next"));return Qr()||(this._cachedNodes=n),n}setTextNodeRange(e,n,r,s){this.anchor.set(e.__key,n,"text"),this.focus.set(r.__key,s,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let n=e[0],r=e[e.length-1],s=this.anchor,l=this.focus,u=s.isBefore(l),[c,h]=xr(this),p="",_=!0;for(let m=0;m<e.length;m++){let v=e[m];if(xi(v)&&!v.isInline())_||(p+="\n"),_=!v.isEmpty();else if(_=!1,sr(v)){let e=v.getTextContent();v===n?v===r?"element"===s.type&&"element"===l.type&&l.offset!==s.offset||(e=c<h?e.slice(c,h):e.slice(h,c)):e=u?e.slice(c):e.slice(h):v===r&&(e=u?e.slice(0,h):e.slice(0,c)),p+=e}else!vi(v)&&!Wn(v)||v===r&&this.isCollapsed()||(p+=v.getTextContent())}return p}applyDOMRange(e){let n=ni(),r=n.getEditorState()._selection,s=br(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r);if(null===s)return;let[l,u]=s;this.anchor.set(l.key,l.offset,l.type,!0),this.focus.set(u.key,u.offset,u.type,!0),Mt(this.anchor),Mt(this.focus)}clone(){let e=this.anchor,n=this.focus;return new pr(fr(e.key,e.offset,e.type),fr(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=gs(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let n=F[e];return!!(this.format&n)}insertRawText(e){let n=e.split(/(\r?\n|\t)/),r=[],s=n.length;for(let e=0;e<s;e++){let s=n[e];"\n"===s||"\r\n"===s?r.push(Bn()):" "===s?r.push(cr()):r.push(ir(s))}this.insertNodes(r)}insertText(e){let n=this.anchor,r=this.focus,s=this.format,l=this.style,u=n,c=r;!this.isCollapsed()&&r.isBefore(n)&&(u=r,c=n),"element"===u.type&&function(e,n,r,s){let l=e.getNode(),u=l.getChildAtIndex(e.offset),c=ir(),h=Ti(l)?Bi().append(c):c;c.setFormat(r),c.setStyle(s),null===u?l.append(h):u.insertBefore(h),e.is(n)&&n.set(c.__key,0,"text"),e.set(c.__key,0,"text")}(u,c,s,l),"element"===c.type&&vl(c,Ol(Sl(c,"next")));let h=u.offset,p=c.offset,_=this.getNodes(),m=_.length,v=_[0];sr(v)||t(26);let k=v.getTextContent().length,T=v.getParentOrThrow(),E=_[m-1];if(1===m&&"element"===c.type&&(p=k,c.set(u.key,p,"text")),this.isCollapsed()&&h===k&&(us(v)||!v.canInsertTextAfter()||!T.canInsertTextAfter()&&null===v.getNextSibling())){let n=v.getNextSibling();if(sr(n)&&n.canInsertTextBefore()&&!us(n)||((n=ir()).setFormat(s),n.setStyle(l),T.canInsertTextAfter()?v.insertAfter(n):T.insertAfter(n)),n.select(0,0),v=n,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===h&&(us(v)||!v.canInsertTextBefore()||!T.canInsertTextBefore()&&null===v.getPreviousSibling())){let n=v.getPreviousSibling();if(sr(n)&&!us(n)||((n=ir()).setFormat(s),T.canInsertTextBefore()?v.insertBefore(n):T.insertBefore(n)),n.select(),v=n,""!==e)return void this.insertText(e)}else if(v.isSegmented()&&h!==k){let e=ir(v.getTextContent());e.setFormat(s),v.replace(e),v=e}else if(!this.isCollapsed()&&""!==e){let n=E.getParent();if(!T.canInsertTextBefore()||!T.canInsertTextAfter()||xi(n)&&(!n.canInsertTextBefore()||!n.canInsertTextAfter()))return this.insertText(""),Nr(this.anchor,this.focus,null),void this.insertText(e)}if(1===m){if(as(v)){let n=ir(e);return n.select(),void v.replace(n)}let n=v.getFormat(),r=v.getStyle();if(h!==p||n===s&&r===l){if(ar(v)){let n=ir(e);return n.setFormat(s),n.setStyle(l),n.select(),void v.replace(n)}}else{if(""!==v.getTextContent()){let n=ir(e);if(n.setFormat(s),n.setStyle(l),n.select(),0===h)v.insertBefore(n,!1);else{let[e]=v.splitText(h);e.insertAfter(n,!1)}return void(n.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}v.setFormat(s),v.setStyle(l)}let u=p-h;""===(v=v.spliceText(h,u,e,!0)).getTextContent()?v.remove():"text"===this.anchor.type&&(v.isComposing()?this.anchor.offset-=e.length:(this.format=n,this.style=r))}else{let n=new Set([...v.getParentKeys(),...E.getParentKeys()]),r=xi(v)?v:v.getParentOrThrow(),s=xi(E)?E:E.getParentOrThrow(),l=E;if(!r.is(s)&&s.isInline())do l=s,s=s.getParentOrThrow();while(s.isInline());if("text"===c.type&&(0!==p||""===E.getTextContent())||"element"===c.type&&E.getIndexWithinParent()<p){if(sr(E)&&!as(E)&&p!==E.getTextContentSize()){if(E.isSegmented()){let e=ir(E.getTextContent());E.replace(e),E=e}Ti(c.getNode())||"text"!==c.type||(E=E.spliceText(0,p,"")),n.add(E.__key)}else{let e=E.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?E.remove():e.remove()}}else n.add(E.__key);let u=s.getChildren(),T=new Set(_),C=r.is(s),w=r.isInline()&&null===v.getNextSibling()?r:v;for(let e=u.length-1;e>=0;e--){let n=u[e];if(n.is(v)||xi(n)&&n.isParentOf(v))break;n.isAttached()&&(!T.has(n)||n.is(l)?C||w.insertAfter(n,!1):n.remove())}if(!C){let e=s,r=null;for(;null!==e;){let s=e.getChildren(),l=s.length;(0===l||s[l-1].is(r))&&(n.delete(e.__key),r=e),e=e.getParent()}}if(as(v)){if(h===k)v.select();else{let n=ir(e);n.select(),v.replace(n)}}else""===(v=v.spliceText(h,k-h,e,!0)).getTextContent()?v.remove():v.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<m;e++){let r=_[e],s=r.__key;n.has(s)||r.remove()}}}removeText(){let e=Pr()===this;Tl(this,function(e,n="removeEmptySlices"){let r,s;if(e.isCollapsed())return e;let l="root",u="next",c=n,h=Pl(e,u),p=wl(h.anchor,l),_=wl(h.focus.getFlipped(),l),m=new Set,v=[];for(let e of h.iterNodeCarets(l))if(Qo(e))m.add(e.origin.getKey());else if(Xo(e)){let{origin:n}=e;xi(n)&&!m.has(n.getKey())||v.push(n)}for(let e of v)e.remove();for(let e of h.getTextSlices()){if(!e)continue;let{origin:n}=e.caret,r=n.getTextContentSize(),s=bl(nl(n,u)),l=n.getMode();if(Math.abs(e.distance)===r&&"removeEmptySlices"===c||"token"===l&&0!==e.distance)s.remove();else if(0!==e.distance){c="removeEmptySlices";let n=e.removeTextSlice(),r=e.caret.origin;if("segmented"===l){let e=n.origin,r=ir(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());s.replaceOrInsert(r),n=rl(r,u,n.offset)}r.is(p[0].origin)&&(p[0]=n),r.is(_[0].origin)&&(_[0]=n.getFlipped())}}for(let e of p)if(El(e)){r=Ol(e);break}for(let e of _)if(El(e)){s=Ol(e);break}let k=function(e,n,r){let s;if(!e||!n)return null;let l=e.getParentAtCaret(),u=n.getParentAtCaret();if(!l||!u)return null;let c=l.getParents().reverse();c.push(l);let h=u.getParents().reverse();h.push(u);let p=Math.min(c.length,h.length);for(s=0;s<p&&c[s]===h[s];s++);let a=(e,n)=>{let r;for(let l=s;l<e.length;l++){let s=e[l];if(fo(s))return;!r&&n(s)&&(r=s)}return r},_=a(c,Eo),m=_&&a(h,e=>r.has(e.getKey())&&Eo(e));return _&&m?[_,m]:null}(r,s,m);if(k){let[e,n]=k;ol(e,"previous").splice(0,n.getChildren()),n.remove()}let T=[r,s,...p,..._].find(El);if(T){var E;return gl(E=Dl(Ol(T),e.direction),E)}t(269,JSON.stringify(p.map(e=>e.origin.__key)))}(Nl(this))),e&&Pr()!==this&&Ms(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void xs(null);let r=this.getNodes(),s=[];for(let e of r)sr(e)&&s.push(e);let i=n=>{r.forEach(r=>{if(xi(r)){let s=r.getFormatFlags(e,n);r.setTextFormat(s)}})},l=s.length;if(0===l)return this.toggleFormat(e),xs(null),void i(n);let u=this.anchor,c=this.focus,h=this.isBackward(),p=h?c:u,_=h?u:c,m=0,v=s[0],k="element"===p.type?0:p.offset;if("text"===p.type&&k===v.getTextContentSize()&&(m=1,v=s[1],k=0),null==v)return;let T=v.getFormatFlags(e,n);i(T);let E=l-1,C=s[E],w="text"===_.type?_.offset:C.getTextContentSize();if(v.is(C)){if(k===w)return;if(us(v)||0===k&&w===v.getTextContentSize())v.setFormat(T);else{let e=v.splitText(k,w),n=0===k?e[0]:e[1];n.setFormat(T),"text"===p.type&&p.set(n.__key,0,"text"),"text"===_.type&&_.set(n.__key,w-k,"text")}return void(this.format=T)}0===k||us(v)||([,v]=v.splitText(k),k=0),v.setFormat(T);let N=C.getFormatFlags(e,T);w>0&&(w===C.getTextContentSize()||us(C)||([C]=C.splitText(w)),C.setFormat(N));for(let n=m+1;n<E;n++){let r=s[n],l=r.getFormatFlags(e,N);r.setFormat(l)}"text"===p.type&&p.set(v.__key,k,"text"),"text"===_.type&&_.set(C.__key,w,"text"),this.format=T|N}insertNodes(e){var n;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let n=Pr();return _r(n)||t(134),n.insertNodes(e)}let r=(this.isBackward()?this.focus:this.anchor).getNode(),s=Mo(r,Eo),l=e[e.length-1];if(xi(s)&&"__language"in s){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let n=$r(this);s.splice(n,0,e),l.selectEnd()}return}if(!e.some(e=>(xi(e)||vi(e))&&!e.isInline())){xi(s)||t(211,r.constructor.name,r.getType());let n=$r(this);return s.splice(n,0,e),void l.selectEnd()}let u=function(e){let n=Bi(),r=null;for(let s=0;s<e.length;s++){let l=e[s],u=Wn(l);if(u||vi(l)&&l.isInline()||xi(l)&&l.isInline()||sr(l)||l.isParentRequired()){if(null===r&&(r=l.createParentElementNode(),n.append(r),u))continue;null!==r&&r.append(l)}else n.append(l),r=null}return n}(e),c=u.getLastDescendant(),h=u.getChildren(),p=xi(s)&&s.isEmpty()?null:this.insertParagraph(),_=h[h.length-1],m=h[0];xi(n=m)&&Eo(n)&&!n.isEmpty()&&xi(s)&&(!s.isEmpty()||s.canMergeWhenEmpty())&&(xi(s)||t(211,r.constructor.name,r.getType()),s.append(...m.getChildren()),m=h[1]),m&&(null===s&&t(212,r.constructor.name,r.getType()),function(e,n,r){let s=n.getParentOrThrow().getLastChild(),l=n,u=[n];for(;l!==s;)l.getNextSibling()||t(140),u.push(l=l.getNextSibling());let c=e;for(let e of u)c=c.insertAfter(e)}(s,m));let v=Mo(c,Eo);p&&xi(v)&&(p.canMergeWhenEmpty()||Eo(_))&&(v.append(...p.getChildren()),p.remove()),xi(s)&&s.isEmpty()&&s.remove(),c.selectEnd();let k=xi(s)?s.getLastChild():null;Wn(k)&&v!==s&&k.remove()}insertParagraph(){if("root"===this.anchor.key){let e=Bi();return ws().splice(this.anchor.offset,0,[e]),e.select(),e}let e=$r(this),n=Mo(this.anchor.getNode(),Eo);xi(n)||t(213);let r=n.getChildAtIndex(e),s=r?[r,...r.getNextSiblings()]:[],l=n.insertNewAfter(this,!1);return l?(l.append(...s),l.selectStart(),l):null}insertLineBreak(e){let n=Bn();if(this.insertNodes([n]),e){let e=n.getParentOrThrow(),r=n.getIndexWithinParent();e.select(r,r)}}extract(){let e=this.getNodes(),n=e.length,r=n-1,s=this.anchor,l=this.focus,u=e[0],c=e[r],[h,p]=xr(this);if(0===n)return[];if(1===n){if(sr(u)&&!this.isCollapsed()){let e=h>p?p:h,n=h>p?h:p,r=u.splitText(e,n),s=0===e?r[0]:r[1];return null!=s?[s]:[]}return[u]}let _=s.isBefore(l);if(sr(u)){let n=_?h:p;n===u.getTextContentSize()?e.shift():0!==n&&([,u]=u.splitText(n),e[0]=u)}if(sr(c)){let n=c.getTextContent().length,s=_?p:h;0===s?e.pop():s!==n&&([c]=c.splitText(s),e[r]=c)}return e}modify(e,n,r){if(Ur(this,e,n,r))return;let s="move"===e,l=ni(),u=xo(co(l));if(!u)return;let c=l._blockCursorElement,h=l._rootElement,p=this.focus.getNode();if(null===h||null===c||!xi(p)||p.isInline()||p.canBeEmpty()||mo(c,l,h),this.dirty){let e=to(l,this.anchor.key),n=to(l,this.focus.key);"text"===this.anchor.type&&(e=hs(e)),"text"===this.focus.type&&(n=hs(n)),e&&n&&Rr(u,e,this.anchor.offset,n,this.focus.offset)}if(function(e,n,r,s){e.modify(n,r,s)}(u,e,n?"backward":"forward",r),u.rangeCount>0){let e=u.getRangeAt(0),r=this.anchor.getNode(),l=Ti(r)?r:function(e){let n=e.getParentOrThrow();for(;null!==n&&!fo(n);)n=n.getParentOrThrow();return n}(r);if(this.applyDOMRange(e),this.dirty=!0,!s){let r=this.getNodes(),s=[],c=!1;for(let e=0;e<r.length;e++){let n=r[e];oo(n,l)?s.push(n):c=!0}if(c&&s.length>0){if(n){let e=s[0];xi(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=s[s.length-1];xi(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}}u.anchorNode===e.startContainer&&u.anchorOffset===e.startOffset||function(e){let n=e.focus,r=e.anchor,s=r.key,l=r.offset,u=r.type;r.set(n.key,n.offset,n.type,!0),n.set(s,l,u,!0)}(this)}}"lineboundary"===r&&Ur(this,e,n,r,"decorators")}forwardDeletion(e,n,r){if(!r&&("element"===e.type&&xi(n)&&e.offset===n.getChildrenSize()||"text"===e.type&&e.offset===n.getTextContentSize())){let e=n.getParent(),r=n.getNextSibling()||(null===e?null:e.getNextSibling());if(xi(r)&&r.isShadowRoot())return!0}return!1}deleteCharacter(e){let n=this.isCollapsed();if(this.isCollapsed()){let n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,e))return;let s=dl(Sl(n,e?"previous":"next"));if(s.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let n of s.iterNodeCarets("shadowRoot"))if(Qo(n)){if(n.origin.isInline());else{if(n.origin.isShadowRoot()){if("merge-block"===e.type)break;if(xi(s.anchor.origin)&&s.anchor.origin.isEmpty()){let e=Ol(n);Tl(this,gl(e,e)),s.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:n,type:"merge-block"})}}else{if("merge-block"===e.type)break;if(Xo(n)){if(xi(n.origin)){if(n.origin.isInline()){if(!n.origin.isParentOf(s.anchor.origin))break}else e={block:n.origin,type:"merge-next-block"};continue}if(vi(n.origin)){if(n.origin.isIsolated());else if("merge-next-block"===e.type&&(n.origin.isKeyboardSelectable()||!n.origin.isInline())&&xi(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();let e=Or();e.add(n.origin.getKey()),Ms(e)}else n.origin.remove();return}break}}if("merge-block"===e.type){let{caret:n,block:r}=e;return Tl(this,gl(!n.origin.isEmpty()&&r.isEmpty()?bl(nl(r,n.direction)):s.anchor,n)),this.removeText()}}let l=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===n.offset&&Cr(this,n.getNode()))return}else{let s="text"===l.type?l.getNode():null;if(r="text"===n.type?n.getNode():null,null!==s&&s.isSegmented()){let n=l.offset,u=s.getTextContentSize();if(s.is(r)||e&&n!==u||!e&&0!==n)return void vr(s,e,n)}else if(null!==r&&r.isSegmented()){let l=n.offset,u=r.getTextContentSize();if(r.is(s)||e&&0!==l||!e&&l!==u)return void vr(r,e,l)}!function(e,n){let r=e.anchor,s=e.focus,l=r.getNode(),u=s.getNode();if(l===u&&"text"===r.type&&"text"===s.type){let e=r.offset,u=s.offset,h=e<u,p=h?e:u,_=h?u:e,m=_-1;if(p!==m){var c;As(c=l.getTextContent().slice(p,_))||tS(c)||(n?s.set(s.key,m,s.type):r.set(r.key,m,r.type))}}}(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&Ti(e.getParent())&&null===e.getPreviousSibling()&&Cr(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function yr(e){return e instanceof gr}function mr(e){let n=e.offset;if("text"===e.type)return n;let r=e.getNode();return n===r.getChildrenSize()?r.getTextContent().length:0}function xr(e){let n=e.getStartEndPoints();if(null===n)return[0,0];let[r,s]=n;return"element"===r.type&&"element"===s.type&&r.key===s.key&&r.offset===s.offset?[0,0]:[mr(r),mr(s)]}function Cr(e,n){for(let r=n;r;r=r.getParent()){if(xi(r)){if(r.collapseAtStart(e))return!0;if(fo(r))break}if(r.getPreviousSibling())break}return!1}let tS=(()=>{try{let e=RegExp("\\p{Emoji}","u"),n=e.test.bind(e);if(n("❤️")&&n("#️⃣")&&n("\uD83D\uDC4D"))return n}catch(e){}return()=>!1})();function vr(e,n,r){let s=e.getTextContent().split(/(?=\s)/g),l=s.length,u=0,c=0;for(let e=0;e<l;e++){let h=e===l-1;if(c=u,u+=s[e].length,n&&u===r||u>r||h){s.splice(e,1),h&&(c=void 0);break}}let h=s.join("").trim();""===h?e.remove():(e.setTextContent(h),e.select(c,c))}function kr(e,n,r,s){let l,u=n;if(ko(e)){let c=!1,h=e.childNodes,p=h.length,_=s._blockCursorElement;u===p&&(c=!0,u=p-1);let m=h[u],v=!1;if(m===_)m=h[u+1],v=!0;else if(null!==_){let r=_.parentNode;e===r&&n>Array.prototype.indexOf.call(r.children,_)&&u--}if(sr(l=Os(m)))u=il(l,c?"next":"previous");else{let h=Os(e);if(null===h)return null;if(xi(h)){let p=s.getElementByKey(h.getKey());null===p&&t(214);let _=h.getDOMSlot(p);[h,u]=_.resolveChildIndex(h,p,e,n),xi(h)||t(215),c&&u>=h.getChildrenSize()&&(u=Math.max(0,h.getChildrenSize()-1));let m=h.getChildAtIndex(u);if(xi(m)&&function(e,n,r){let s=e.getParent();return null===r||null===s||!s.canBeEmpty()||s!==r.getNode()}(m,0,r)){let e=c?m.getLastDescendant():m.getFirstDescendant();h=null===e?m:xi(m=e)?m:m.getParentOrThrow(),u=0}sr(m)?(l=m,h=null,u=il(m,c?"next":"previous")):m!==h&&c&&!v&&(xi(h)||t(216),u=Math.min(h.getChildrenSize(),u+1))}else{let r=h.getIndexWithinParent();u=0===n&&vi(h)&&Os(e)===h?r:r+1,h=h.getParentOrThrow()}if(xi(h))return fr(h.__key,u,"element")}}else l=Os(e);return sr(l)?fr(l.__key,il(l,u,"clamp"),"text"):null}function Tr(e,n,r){let s=e.offset,l=e.getNode();if(0===s){let s=l.getPreviousSibling(),u=l.getParent();if(n){if((r||!n)&&null===s&&xi(u)&&u.isInline()){let n=u.getPreviousSibling();sr(n)&&e.set(n.__key,n.getTextContent().length,"text")}}else xi(s)&&!r&&s.isInline()?e.set(s.__key,s.getChildrenSize(),"element"):sr(s)&&e.set(s.__key,s.getTextContent().length,"text")}else if(s===l.getTextContent().length){let s=l.getNextSibling(),u=l.getParent();if(n&&xi(s)&&s.isInline())e.set(s.__key,0,"element");else if((r||n)&&null===s&&xi(u)&&u.isInline()&&!u.canInsertTextAfter()){let n=u.getNextSibling();sr(n)&&e.set(n.__key,0,"text")}}}function Nr(e,n,r){if("text"===e.type&&"text"===n.type){let s=e.isBefore(n),l=e.is(n);Tr(e,s,l),Tr(n,!s,l),l&&n.set(e.key,e.offset,e.type);let u=ni();if(u.isComposing()&&u._compositionKey!==e.key&&_r(r)){let s=r.anchor,l=r.focus;e.set(s.key,s.offset,s.type,!0),n.set(l.key,l.offset,l.type,!0)}}}function br(e,n,r,s,l,u){if(null===e||null===r||!ss(l,e,r))return null;let c=kr(e,n,_r(u)?u.anchor:null,l);if(null===c)return null;let h=kr(r,s,_r(u)?u.focus:null,l);if(null===h)return null;if("element"===c.type&&"element"===h.type){let n=Os(e),s=Os(r);if(vi(n)&&vi(s))return null}return Nr(c,h,u),[c,h]}function Er(e,n,r,s,l,u){let c=ei(),h=new pr(fr(e,n,l),fr(r,s,u),0,"");return h.dirty=!0,c._selection=h,h}function Or(){return new gr(new Set)}function Dr(e,n,r,s){let l,u,c,h;let p=r._window;if(null===p)return null;let _=s||p.event,m=_?_.type:void 0,v="selectionchange"===m,k=!J&&(v||"beforeinput"===m||"compositionstart"===m||"compositionend"===m||"click"===m&&_&&3===_.detail||"drop"===m||void 0===m);if(_r(e)&&!k)return e.clone();if(null===n)return null;if(l=n.anchorNode,u=n.focusNode,c=n.anchorOffset,h=n.focusOffset,v&&_r(e)&&!ss(r,l,u))return e.clone();let T=br(l,c,u,h,r,e);if(null===T)return null;let[E,C]=T;return new pr(E,C,_r(e)?e.format:0,_r(e)?e.style:"")}function Pr(){return ei()._selection}function Fr(){return ni()._editorState._selection}function Lr(e,n,r,s=1){let l=e.anchor,u=e.focus,c=l.getNode(),h=u.getNode();if(!n.is(c)&&!n.is(h))return;let p=n.__key;if(e.isCollapsed()){let n=l.offset;if(r<=n&&s>0||r<n&&s<0){let r=Math.max(0,n+s);l.set(p,r,"element"),u.set(p,r,"element"),Ir(e)}}else{let c=e.isBackward(),h=c?u:l,_=h.getNode(),m=c?l:u,v=m.getNode();if(n.is(_)){let e=h.offset;(r<=e&&s>0||r<e&&s<0)&&h.set(p,Math.max(0,e+s),"element")}if(n.is(v)){let e=m.offset;(r<=e&&s>0||r<e&&s<0)&&m.set(p,Math.max(0,e+s),"element")}}Ir(e)}function Ir(e){let n=e.anchor,r=n.offset,s=e.focus,l=s.offset,u=n.getNode(),c=s.getNode();if(e.isCollapsed()){if(!xi(u))return;let e=u.getChildrenSize(),l=r>=e,c=l?u.getChildAtIndex(e-1):u.getChildAtIndex(r);if(sr(c)){let e=0;l&&(e=c.getTextContentSize()),n.set(c.__key,e,"text"),s.set(c.__key,e,"text")}}else{if(xi(u)){let e=u.getChildrenSize(),s=r>=e,l=s?u.getChildAtIndex(e-1):u.getChildAtIndex(r);if(sr(l)){let e=0;s&&(e=l.getTextContentSize()),n.set(l.__key,e,"text")}}if(xi(c)){let e=c.getChildrenSize(),n=l>=e,r=n?c.getChildAtIndex(e-1):c.getChildAtIndex(l);if(sr(r)){let e=0;n&&(e=r.getTextContentSize()),s.set(r.__key,e,"text")}}}}function Kr(e,n,r,s,l){let u=null,c=0,h=null;null!==s?(u=s.__key,sr(s)?(c=s.getTextContentSize(),h="text"):xi(s)&&(c=s.getChildrenSize(),h="element")):null!==l&&(u=l.__key,sr(l)?h="text":xi(l)&&(h="element")),null!==u&&null!==h?e.set(u,c,h):(-1===(c=n.getIndexWithinParent())&&(c=r.getChildrenSize()),e.set(r.__key,c,"element"))}function zr(e,n,r,s,l){"text"===e.type?e.set(r,e.offset+(n?0:l),"text"):e.offset>s.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function Rr(e,n,r,s,l){try{e.setBaseAndExtent(n,r,s,l)}catch(e){}}function $r(e){let n=e;e.isCollapsed()||n.removeText();let r=Pr();_r(r)&&(n=r),_r(n)||t(161);let s=n.anchor,l=s.getNode(),u=s.offset;for(;!Eo(l);){let e=l;if([l,u]=function(e,n){let r=e.getParent();if(!r){let e=Bi();return ws().append(e),e.select(),[ws(),0]}if(sr(e)){let s=e.splitText(n);if(0===s.length)return[r,e.getIndexWithinParent()];let l=0===n?0:1;return[r,s[0].getIndexWithinParent()+l]}if(!xi(e)||0===n)return[r,e.getIndexWithinParent()];let s=e.getChildAtIndex(n);if(s){let r=new pr(fr(e.__key,n,"element"),fr(e.__key,n,"element"),0,""),l=e.insertNewAfter(r);l&&l.append(s,...s.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}(l,u),e.is(l))break}return u}function Ur(e,n,r,s,l="decorators-and-blocks"){var u;if("move"===n&&"character"===s&&!e.isCollapsed()){let[n,s]=r===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return s.set(n.key,n.offset,n.type),!0}let c=Sl(e.focus,r?"previous":"next"),h="lineboundary"===s,p="move"===n,_=c,m="decorators-and-blocks"===l;if(!(qo(u=_)&&u.offset!==il(u.origin,u.direction))){for(let e of _){m=!1;let{origin:n}=e;if(!vi(n)||n.isIsolated()||(_=e,!h||!n.isInline()))break}if(m)for(let e of dl(c).iterNodeCarets("extend"===n?"shadowRoot":"root")){if(Qo(e))e.origin.isInline()||(_=e);else{if(xi(e.origin))continue;vi(e.origin)&&!e.origin.isInline()&&(_=e)}break}}if(_===c)return!1;if(p&&!h&&vi(_.origin)&&_.origin.isKeyboardSelectable()){let e=Or();return e.add(_.origin.getKey()),Ms(e),!0}return _=Ol(_),p&&vl(e.anchor,_),vl(e.focus,_),m||!h}let tv=null,tk=null,tT=!1,tE=!1,tC=0,tw={characterData:!0,childList:!0,subtree:!0};function Qr(){return tT||null!==tv&&tv._readOnly}function Zr(){tT&&t(13)}function ti(){tC>99&&t(14)}function ei(){return null===tv&&t(195,ri()),tv}function ni(){return null===tk&&t(196,ri()),tk}function ri(){let e=0,n=new Set,r=qi.version;if("undefined"!=typeof window)for(let s of document.querySelectorAll("[contenteditable]")){let l=cs(s);if(os(l))e++;else if(l){let e=String(l.constructor.version||"<0.17.1");e===r&&(e+=" (separately built, likely a bundler configuration issue)"),n.add(e)}}let s=` Detected on the page: ${e} compatible editor(s) with version ${r}`;return n.size&&(s+=` and incompatible editors with versions ${Array.from(n).join(", ")}`),s}function si(e,n,r){let s=n.__type,l=ts(e,s),u=r.get(s);void 0===u&&(u=Array.from(l.transforms),r.set(s,u));let c=u.length;for(let e=0;e<c&&(u[e](n),n.isAttached());e++);}function oi(e,n){return void 0!==e&&e.__key!==n&&e.isAttached()}function li(e,n){if(!n)return;let r=e._updateTags,s=n;for(let e of(Array.isArray(n)||(s=[n]),s))r.add(e)}function ui(e,n,r){let s=tv,l=tT,u=tk;tv=n,tT=!0,tk=e;try{return r()}finally{tv=s,tT=l,tk=u}}function fi(e,n){let r=e._pendingEditorState,s=e._rootElement,l=e._headless||null===s;if(null===r)return;let u=e._editorState,c=u._selection,h=r._selection,p=0!==e._dirtyType,_=tv,m=tT,v=tk,k=e._updating,T=e._observer,E=null;if(e._pendingEditorState=null,e._editorState=r,!l&&p&&null!==T){tk=e,tv=r,tT=!1,e._updating=!0;try{let n=e._dirtyType,s=e._dirtyElements,l=e._dirtyLeaves;T.disconnect(),E=function(e,n,r,s,l,u){em="",eS="",ey="",ev=2===s,eT=null,ea=r,el=r._config,eu=r._nodes,ec=ea._listeners.mutation,ed=l,eg=u,ef=e._nodeMap,eh=n._nodeMap,ek=n._readOnly,ep=new Map(r._keyToDOMMap);let c=new Map;return e_=c,function le(e,n){let r=ef.get(e),s=eh.get(e);void 0!==r&&void 0!==s||t(61);let l=ev||eg.has(e)||ed.has(e),u=to(ea,e);if(r===s&&!l){if(xi(r)){let e=u.__lexicalTextContent;void 0!==e&&(em+=e,eS+=e);let n=u.__lexicalDirTextContent;void 0!==n&&(ey+=n)}else{let e=r.getTextContent();sr(r)&&!r.isDirectionless()&&(ey+=e),eS+=e,em+=e}return u}if(r!==s&&l&&Ys(e_,eu,ec,s,"updated"),s.updateDOM(r,u,el)){let r=te(e,null);return null===n&&t(62),n.replaceChild(r,u),Ht(e,null),r}if(xi(r)&&xi(s)){let e=s.__indent;e!==r.__indent&&Qt(u,e);let n=s.__format;n!==r.__format&&Zt(u,n),l&&(function(e,n,r){let s=ey;ey="",ex=null,eb="",function(e,n,r){let s=em,l=e.__size,u=n.__size;em="";let c=r.element;if(1===l&&1===u){let r=e.__first,s=n.__first;if(r===s)le(r,c);else{let e=fe(r),n=te(s,null);try{c.replaceChild(n,e)}catch(l){if("object"==typeof l&&null!=l){let u=`${l.toString()} Parent: ${c.tagName}, new child: {tag: ${n.tagName} key: ${s}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw Error(u)}throw l}Ht(r,null)}let l=eh.get(s);sr(l)&&(null===ex&&(ex=l.getFormat()),""===eb&&(eb=l.getStyle()))}else{let s=oe(e,ef),h=oe(n,eh);if(s.length!==l&&t(227),h.length!==u&&t(228),0===l)0!==u&&ee(h,n,0,u-1,r);else if(0===u){if(0!==l){let e=null==r.after&&null==r.before&&null==r.element.__lexicalLineBreak;qt(s,0,l-1,e?null:c),e&&(c.textContent="")}}else!function(e,n,r,s,l,u){let c=s-1,h=l-1,p,_,m=u.getFirstChild(),v=0,k=0;for(;v<=c&&k<=h;){let e=n[v],s=r[k];if(e===s)m=ae(le(s,u.element)),v++,k++;else{void 0===p&&(p=new Set(n)),void 0===_&&(_=new Set(r));let l=_.has(e),c=p.has(s);if(l){if(c){let e=to(ea,s);e===m?m=ae(le(s,u.element)):(u.withBefore(m).insertChild(e),le(s,u.element)),v++,k++}else te(s,u.withBefore(m)),k++}else m=ae(fe(e)),Ht(e,u.element),v++}let l=eh.get(s);null!==l&&sr(l)&&(null===ex&&(ex=l.getFormat()),""===eb&&(eb=l.getStyle()))}let T=v>c,E=k>h;if(T&&!E){let n=r[h+1],s=void 0===n?null:ea.getElementByKey(n);ee(r,e,k,h,u.withBefore(s))}else E&&!T&&qt(n,v,c,u.element)}(n,s,h,l,u,r)}Zs(n)&&(em+="\n\n"),c.__lexicalTextContent=em,em=s+em}(e,n,n.getDOMSlot(r)),ie(n,r),null==ex||ex===n.__textFormat||ek||n.setTextFormat(ex),""===eb||eb===n.__textStyle||ek||n.setTextStyle(eb),ey=s}(r,s,u),Ti(s)||s.isInline()||re(r,s,u)),Zs(s)&&(em+="\n\n",eS+="\n\n")}else{let n=s.getTextContent();if(vi(s)){let n=s.decorate(ea,el);null!==n&&ce(e,n)}else sr(s)&&!s.isDirectionless()&&(ey+=n);em+=n,eS+=n}if(!ek&&Ti(s)&&s.__cachedText!==eS){let e=s.getWritable();e.__cachedText=eS,s=e}return u}("root",null),ea=void 0,eu=void 0,ed=void 0,eg=void 0,ef=void 0,eh=void 0,el=void 0,ep=void 0,e_=void 0,c}(u,r,e,n,s,l)}catch(n){if(n instanceof Error&&e._onError(n),tE)throw n;return Yi(e,null,s,r),ut(e),e._dirtyType=2,tE=!0,fi(e,u),void(tE=!1)}finally{T.observe(s,tw),e._updating=k,tv=_,tT=m,tk=v}}r._readOnly||(r._readOnly=!0);let C=e._dirtyLeaves,w=e._dirtyElements,N=e._normalizedNodes,A=e._updateTags,O=e._deferred;p&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,n){let r;let s=e._decorators,l=e._pendingDecorators||s,u=n._nodeMap;for(r in l)u.has(r)||(l===s&&(l=Ns(e)),delete l[r])}(e,r);let F=l?null:xo(co(e));if(e._editable&&null!==F&&(p||null===h||h.dirty)&&null!==s&&!A.has(tF)){tk=e,tv=r;try{if(null!==T&&T.disconnect(),p||null===h||h.dirty){let n=e._blockCursorElement;null!==n&&mo(n,e,s),function(e,n,r,s,l,u,c){let h=s.anchorNode,p=s.focusNode,_=s.anchorOffset,m=s.focusOffset,v=document.activeElement;if(l.has(tA)&&v!==u||null!==v&&is(v))return;if(!_r(n))return void(null!==e&&ss(r,h,p)&&s.removeAllRanges());let k=n.anchor,T=n.focus,E=k.key,C=T.key,w=to(r,E),N=to(r,C),A=k.offset,O=T.offset,F=n.format,L=n.style,P=n.isCollapsed(),M=w,D=N,R=!1;if("text"===k.type){M=hs(w);let e=k.getNode();R=e.getFormat()!==F||e.getStyle()!==L}else _r(e)&&"text"===e.anchor.type&&(R=!0);if("text"===T.type&&(D=hs(N)),null!==M&&null!==D&&(P&&(null===e||R||_r(e)&&(e.format!==F||e.style!==L))&&(tm=[F,L,A,E,performance.now()]),_!==A||m!==O||h!==M||p!==D||"Range"===s.type&&P||(null!==v&&u.contains(v)||u.focus({preventScroll:!0}),"element"===k.type))){if(Rr(s,M,A,D,O),!l.has(tO)&&n.isCollapsed()&&null!==u&&u===document.activeElement){let e=_r(n)&&"element"===n.anchor.type?M.childNodes[A]||null:s.rangeCount>0?s.getRangeAt(0):null;if(null!==e){let n;if(e instanceof Text){let r=document.createRange();r.selectNode(e),n=r.getBoundingClientRect()}else n=e.getBoundingClientRect();!function(e,n,r){let s=no(r),l=lo(s);if(null===s||null===l)return;let{top:u,bottom:c}=n,h=0,p=0,_=r;for(;null!==_;){let n=_===s.body;if(n)h=0,p=co(e).innerHeight;else{let e=_.getBoundingClientRect();h=e.top,p=e.bottom}let r=0;if(u<h?r=-(h-u):c>p&&(r=c-p),0!==r){if(n)l.scrollBy(0,r);else{let e=_.scrollTop;_.scrollTop+=r;let n=_.scrollTop-e;u-=n,c-=n}}if(n)break;_=eo(_)}}(r,n,u)}}tc=!0}}(c,h,e,F,A,s)}!function(e,n,r){let s=e._blockCursorElement;if(_r(r)&&r.isCollapsed()&&"element"===r.anchor.type&&n.contains(document.activeElement)){let l=r.anchor,u=l.getNode(),c=l.offset,h=!1,p=null;if(c===u.getChildrenSize())yo(u.getChildAtIndex(c-1))&&(h=!0);else{let n=u.getChildAtIndex(c);if(null!==n&&yo(n)){let r=n.getPreviousSibling();(null===r||yo(r))&&(h=!0,p=e.getElementByKey(n.__key))}}if(h){let r=e.getElementByKey(u.__key);return null===s&&(e._blockCursorElement=s=function(e){let n=e.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let s=n.blockCursor;if(void 0!==s){if("string"==typeof s){let e=d(s);s=n.blockCursor=e}void 0!==s&&r.classList.add(...s)}return r}(e._config)),n.style.caretColor="transparent",void(null===p?r.appendChild(s):r.insertBefore(s,p))}}null!==s&&mo(s,e,n)}(e,s,h)}finally{null!==T&&T.observe(s,tw),tk=v,tv=_}}null!==E&&function(e,n,r,s,l){let u=Array.from(e._listeners.mutation),c=u.length;for(let e=0;e<c;e++){let[c,h]=u[e];for(let e of h){let u=n.get(e);void 0!==u&&c(u,{dirtyLeaves:s,prevEditorState:l,updateTags:r})}}}(e,E,A,C,u),_r(h)||null===h||null!==c&&c.is(h)||e.dispatchCommand(eE,void 0);let L=e._pendingDecorators;null!==L&&(e._decorators=L,e._pendingDecorators=null,di("decorator",e,!0,L)),function(e,n,r){let s=bs(n),l=bs(r);s!==l&&di("textcontent",e,!0,l)}(e,n||u,r),di("update",e,!0,{dirtyElements:w,dirtyLeaves:C,editorState:r,mutatedNodes:E,normalizedNodes:N,prevEditorState:n||u,tags:A}),function(e,n){if(e._deferred=[],0!==n.length){let r=e._updating;e._updating=!0;try{for(let e=0;e<n.length;e++)n[e]()}finally{e._updating=r}}}(e,O),function(e){let n=e._updates;if(0!==n.length){let r=n.shift();if(r){let[n,s]=r;gi(e,n,s)}}}(e)}function di(e,n,r,...s){let l=n._updating;n._updating=r;try{let r=Array.from(n._listeners[e]);for(let e=0;e<r.length;e++)r[e].apply(null,s)}finally{n._updating=l}}function hi(e,n){let r=e._updates,s=n||!1;for(;0!==r.length;){let n=r.shift();if(n){let r;let[l,u]=n,c=e._pendingEditorState;void 0!==u&&(r=u.onUpdate,u.skipTransforms&&(s=!0),u.discrete&&(null===c&&t(191),c._flushSync=!0),r&&e._deferred.push(r),li(e,u.tag)),null==c?gi(e,l,u):l()}}return s}function gi(e,n,r){let s=e._updateTags,l,u=!1,c=!1;void 0!==r&&(l=r.onUpdate,li(e,r.tag),u=r.skipTransforms||!1,c=r.discrete||!1),l&&e._deferred.push(l);let h=e._editorState,p=e._pendingEditorState,_=!1;(null===p||p._readOnly)&&(p=e._pendingEditorState=Ni(p||h),_=!0),p._flushSync=c;let m=tv,v=tT,k=tk,T=e._updating;tv=p,tT=!1,e._updating=!0,tk=e;let E=e._headless||null===e.getRootElement();tP=null;try{_&&(E?null!==h._selection&&(p._selection=h._selection.clone()):p._selection=function(e,n){let r=e.getEditorState()._selection,s=xo(co(e));return _r(r)||null==r?Dr(r,s,e,n):r.clone()}(e,r&&r.event||null));let s=e._compositionKey;n(),u=hi(e,u),function(e,n){let r=n.getEditorState()._selection,s=e._selection;if(_r(s)){let e;let n=s.anchor,l=s.focus;if("text"===n.type&&(e=n.getNode()).selectionTransform(r,s),"text"===l.type){let n=l.getNode();e!==n&&n.selectionTransform(r,s)}}}(p,e),0!==e._dirtyType&&(u?function(e,n){let r=n._dirtyLeaves,s=e._nodeMap;for(let e of r){let n=s.get(e);sr(n)&&n.isAttached()&&n.isSimpleText()&&!n.isUnmergeable()&&wt(n)}}(p,e):function(e,n){let r=n._dirtyLeaves,s=n._dirtyElements,l=e._nodeMap,u=Cs(),c=new Map,h=r,p=h.size,_=s,m=_.size;for(;p>0||m>0;){if(p>0){for(let e of(n._dirtyLeaves=new Set,h)){let s=l.get(e);sr(s)&&s.isAttached()&&s.isSimpleText()&&!s.isUnmergeable()&&wt(s),void 0!==s&&oi(s,u)&&si(n,s,c),r.add(e)}if((p=(h=n._dirtyLeaves).size)>0){tC++;continue}}for(let e of(n._dirtyLeaves=new Set,n._dirtyElements=new Map,_.delete("root")&&_.set("root",!0),_)){let r=e[0],h=e[1];if(s.set(r,h),!h)continue;let p=l.get(r);void 0!==p&&oi(p,u)&&si(n,p,c)}p=(h=n._dirtyLeaves).size,m=(_=n._dirtyElements).size,tC++}n._dirtyLeaves=r,n._dirtyElements=s}(p,e),hi(e),function(e,n,r,s){let l=e._nodeMap,u=n._nodeMap,c=[];for(let[e]of s){let n=u.get(e);void 0!==n&&(n.isAttached()||(xi(n)&&function Z(e,n,r,s,l,u){let c=e.getFirstChild();for(;null!==c;){let e=c.__key;c.__parent===n&&(xi(c)&&Z(c,e,r,s,l,u),r.has(e)||u.delete(e),l.push(e)),c=c.getNextSibling()}}(n,e,l,u,c,s),l.has(e)||s.delete(e),c.push(e)))}for(let e of c)u.delete(e);for(let e of r){let n=u.get(e);void 0===n||n.isAttached()||(l.has(e)||r.delete(e),u.delete(e))}}(h,p,e._dirtyLeaves,e._dirtyElements)),s!==e._compositionKey&&(p._flushSync=!0);let l=p._selection;if(_r(l)){let e=p._nodeMap,n=l.anchor.key,r=l.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else yr(l)&&0===l._nodes.size&&(p._selection=null)}catch(n){return n instanceof Error&&e._onError(n),e._pendingEditorState=h,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void fi(e)}finally{tv=m,tT=v,tk=k,e._updating=T,tC=0}let C=0!==e._dirtyType||e._deferred.length>0||function(e,n){let r=n.getEditorState()._selection,s=e._selection;if(null!==s){if(s.dirty||!s.is(r))return!0}else if(null!==r)return!0;return!1}(p,e);C?p._flushSync?(p._flushSync=!1,fi(e)):_&&tM(()=>{fi(e)}):(p._flushSync=!1,_&&(s.clear(),e._deferred=[],e._pendingEditorState=null))}function _i(e,n,r){tk===e&&void 0===r?n():gi(e,n,r)}let pi=class pi{constructor(e,n,r){this.element=e,this.before=n||null,this.after=r||null}withBefore(e){return new pi(this.element,e,this.after)}withAfter(e){return new pi(this.element,this.before,e)}withElement(e){return this.element===e?this:new pi(e,this.before,this.after)}insertChild(e){let n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{let n="decorator"===e&&(_||p);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let n=this.element,r="IMG"===e.nodeName?e.nextSibling:null;r&&n.removeChild(r),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let n=this.getManagedLineBreak();if(n){if(e===("IMG"===n.nodeName))return;this.removeManagedLineBreak()}let r=this.element,s=this.before,l=document.createElement("br");if(r.insertBefore(l,s),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",r.insertBefore(e,l),r.__lexicalLineBreak=e}else r.__lexicalLineBreak=l}getFirstChildOffset(){let e=0;for(let n=this.after;null!==n;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,r,s){if(r===this.element){let n=this.getFirstChildOffset();return[e,Math.min(n+e.getChildrenSize(),Math.max(n,s))]}let l=yi(n,r);l.push(s);let u=yi(n,this.element),c=e.getIndexWithinParent();for(let e=0;e<u.length;e++){let n=l[e],r=u[e];if(void 0===n||n<r)break;if(n>r){c+=1;break}}return[e.getParentOrThrow(),c]}};function yi(e,n){let r=[],s=n;for(;s!==e&&null!==s;s=s.parentNode){let e=0;for(let n=s.previousSibling;null!==n;n=n.previousSibling)e++;r.push(e)}return s!==e&&t(225),r.reverse()}let mi=class mi extends Kn{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return M[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],n=this.getFirstChild();for(;null!==n;)e.push(n),n=n.getNextSibling();return e}getChildrenKeys(){let e=[],n=this.getFirstChild();for(;null!==n;)e.push(n.__key),n=n.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=ni()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),n=this.getParentOrThrow().getLastChild();return null!==n&&n.is(e)}getAllTextNodes(){let e=[],n=this.getFirstChild();for(;null!==n;){if(sr(n)&&e.push(n),xi(n)){let r=n.getAllTextNodes();e.push(...r)}n=n.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;xi(e);){let n=e.getFirstChild();if(null===n)break;e=n}return e}getLastDescendant(){let e=this.getLastChild();for(;xi(e);){let n=e.getLastChild();if(null===n)break;e=n}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;if(e>=r){let e=n[r-1];return xi(e)&&e.getLastDescendant()||e||null}let s=n[e];return xi(s)&&s.getFirstDescendant()||s||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:Ss(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:Ss(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&t(96,this.__key),e}getChildAtIndex(e){let n,r;let s=this.getChildrenSize();if(e<s/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=s-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let s=0;s<r;s++){let l=n[s];e+=l.getTextContent(),xi(l)&&s!==r-1&&!l.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,n=this.getChildren(),r=n.length;for(let s=0;s<r;s++){let l=n[s];e+=l.getTextContentSize(),xi(l)&&s!==r-1&&!l.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let n=P[e];return!!(this.getFormat()&n)}return!1}hasTextFormat(e){let n=F[e];return!!(this.getTextFormat()&n)}getFormatFlags(e,n){return gs(this.getLatest().__textFormat,e,n)}getTextStyle(){return this.getLatest().__textStyle}select(e,n){Zr();let r=Pr(),s=e,l=n,u=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===n){let e=this.getFirstChild();if(sr(e)||xi(e))return e.select(0,0)}else if(!(void 0!==e&&e!==u||void 0!==n&&n!==u)){let e=this.getLastChild();if(sr(e)||xi(e))return e.select()}}void 0===s&&(s=u),void 0===l&&(l=u);let c=this.__key;return _r(r)?(r.anchor.set(c,s,"element"),r.focus.set(c,l,"element"),r.dirty=!0,r):Er(c,s,c,l,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.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?P[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let n=this.getWritable();return n.__textFormat=e,n}setTextStyle(e){let n=this.getWritable();return n.__textStyle=e,n}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let s=r.length,l=this.getChildrenSize(),u=this.getWritable();e+n<=l||t(226,String(e),String(n),String(l));let c=u.__key,h=[],p=[],_=this.getChildAtIndex(e+n),m=null,v=l-n+s;if(0!==e){if(e===l)m=this.getLastChild();else{let n=this.getChildAtIndex(e);null!==n&&(m=n.getPreviousSibling())}}if(n>0){let e=null===m?this.getFirstChild():m.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);let n=e.getNextSibling(),r=e.__key;ys(e.getWritable()),p.push(r),e=n}}let k=m;for(let e=0;e<s;e++){let n=r[e];null!==k&&n.is(k)&&(m=k=k.getPreviousSibling());let s=n.getWritable();s.__parent===c&&v--,ys(s);let l=n.__key;if(null===k)u.__first=l,s.__prev=null;else{let e=k.getWritable();e.__next=l,s.__prev=e.__key}n.__key===c&&t(76),s.__parent=c,h.push(l),k=n}if(e+n===l)null!==k&&(k.getWritable().__next=null,u.__last=k.__key);else if(null!==_){let e=_.getWritable();if(null!==k){let n=k.getWritable();e.__prev=k.__key,n.__next=_.__key}else e.__prev=null}if(u.__size=v,p.length){let e=Pr();if(_r(e)){let n=new Set(p),r=new Set(h),{anchor:s,focus:l}=e;Ci(s,n,r)&&Kr(s,s.getNode(),this,m,_),Ci(l,n,r)&&Kr(l,l.getNode(),this,m,_),0!==v||this.canBeEmpty()||fo(this)||this.remove()}}return u}getDOMSlot(e){return new pi(e)}exportDOM(e){let{element:n}=super.exportDOM(e);if(ko(n)){let e=this.getIndent();e>0&&(n.style.paddingInlineStart=40*e+"px");let r=this.getDirection();r&&(n.dir=r)}return{element:n}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},n=this.getTextFormat(),r=this.getTextStyle();return 0!==n&&(e.textFormat=n),""!==r&&(e.textStyle=r),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,n){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,n,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,n){let r=this.getDOMSlot(e),s=r.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let l=n.getElementByKey(e.getKey());null!==l&&(null==s?(r.insertChild(l),s=l):s!==l&&r.replaceChild(l,s),s=s.nextSibling)}}};function xi(e){return e instanceof mi}function Ci(e,n,r){let s=e.getNode();for(;s;){let e=s.__key;if(n.has(e)&&!r.has(e))return!0;s=s.getParent()}return!1}let Si=class Si extends Kn{decorate(e,n){t(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function vi(e){return e instanceof Si}let ki=class ki extends mi{static getType(){return"root"}static clone(){return new ki}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){let e=this.__cachedText;return(Qr()||0===ni()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(e,n){return!1}splice(e,n,r){for(let e of r)xi(e)||vi(e)||t(282);return super.splice(e,n,r)}static importJSON(e){return ws().updateFromJSON(e)}collapseAtStart(){return!0}};function Ti(e){return e instanceof ki}function Ni(e){return new Ei(new Map(e._nodeMap))}function bi(){return new Ei(new Map([["root",new ki]]))}let Ei=class Ei{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,n){return ui(n&&n.editor||null,this,e)}clone(e){let n=new Ei(this._nodeMap,void 0===e?this._selection:e);return n._readOnly=!0,n}toJSON(){return ui(null,this,()=>({root:function wi(e){let n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),xi(e)){let s=n.children;Array.isArray(s)||t(59,r.name);let l=e.getChildren();for(let e=0;e<l.length;e++){let n=wi(l[e]);s.push(n)}}return n}(ws())}))}};let tN="history-merge",tA="collaboration",tO="skip-scroll-into-view",tF="skip-dom-selection";let Ki=class Ki extends mi{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}};let zi=class zi extends mi{static getType(){return"paragraph"}static clone(e){return new zi(e.__key)}createDOM(e){let n=document.createElement("p"),r=Vs(e.theme,"paragraph");return void 0!==r&&n.classList.add(...r),n}updateDOM(e,n,r){return!1}static importDOM(){return{p:e=>({conversion:Ri,priority:0})}}exportDOM(e){let{element:n}=super.exportDOM(e);if(ko(n)){this.isEmpty()&&n.append(document.createElement("br"));let e=this.getFormatType();e&&(n.style.textAlign=e)}return{element:n}}static importJSON(e){return Bi().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){let r=Bi();r.setTextFormat(e.format),r.setTextStyle(e.style);let s=this.getDirection();return r.setDirection(s),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){let e=this.getChildren();if(0===e.length||sr(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}};function Ri(e){let n=Bi();return e.style&&(n.setFormat(e.style.textAlign),Lo(e,n)),{node:n}}function Bi(){return go(new zi)}function Wi(e){return e instanceof zi}let tL=1;function Yi(e,n,r,s){let l=e._keyToDOMMap;l.clear(),e._editorState=bi(),e._pendingEditorState=s,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let u=e._observer;null!==u&&(u.disconnect(),e._observer=null),null!==n&&(n.textContent=""),null!==r&&(r.textContent="",l.set("root",r))}function Hi(e){let n;let r=e||{},s=tk,l=r.theme||{},u=void 0===e?s:r.parentEditor||null,c=r.disableEvents||!1,h=bi(),p=r.namespace||(null!==u?u._config.namespace:Ps()),_=r.editorState,m=[ki,qn,zn,lr,zi,Ki,...r.nodes||[]],{onError:v,html:k}=r,T=void 0===r.editable||r.editable;if(void 0===e&&null!==s)n=s._nodes;else{n=new Map;for(let e=0;e<m.length;e++){let r=m[e],s=null,l=null;if("function"!=typeof r){let e=r;r=e.replace,s=e.with,l=e.withKlass||null}let{ownNodeConfig:u}=Ro(r),c=r.getType(),h=r.transform(),p=new Set;u&&u.$transform&&p.add(u.$transform),null!==h&&p.add(h),n.set(c,{exportDOM:k&&k.export?k.export.get(r):void 0,klass:r,replace:s,replaceWithKlass:l,sharedNodeState:function(e){let n=new Map,r=new Set;for(let s="function"==typeof e?e:e.replace;s.prototype&&void 0!==s.prototype.getType;s=Object.getPrototypeOf(s)){let{ownNodeConfig:e}=Ro(s);if(e&&e.stateConfigs)for(let s of e.stateConfigs){let e;"stateConfig"in s?(e=s.stateConfig,s.flat&&r.add(e.key)):e=s,n.set(e.key,e)}}return{flatKeys:r,sharedConfigMap:n}}(m[e]),transforms:p})}}let E=new qi(h,u,n,{disableEvents:c,namespace:p,theme:l},v||console.error,function(e,n){let r=new Map,s=new Set,i=e=>{Object.keys(e).forEach(n=>{let s=r.get(n);void 0===s&&(s=[],r.set(n,s)),s.push(e[n])})};return e.forEach(e=>{let n=e.klass.importDOM;if(null==n||s.has(n))return;s.add(n);let r=n.call(e.klass);null!==r&&i(r)}),n&&i(n),r}(n,k?k.import:void 0),T,e);return void 0!==_&&(E._pendingEditorState=_,E._dirtyType=2),E}let qi=class qi{constructor(e,n,r,s,l,u,c,h){this._createEditorArgs=h,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=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=s,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=Ps(),this._onError=l,this._htmlConversions=u,this._editable=c,this._headless=null!==n&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}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){void 0===r&&t(35);let s=this._commands;s.has(e)||s.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=s.get(e);void 0===l&&t(36,String(e));let u=l[r];return u.add(n),()=>{u.delete(n),l.every(e=>0===e.size)&&s.delete(e)}}registerMutationListener(e,n,r){let s=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,l=this._listeners.mutation,u=l.get(n);void 0===u&&(u=new Set,l.set(n,u)),u.add(s);let c=r&&r.skipInitialization;return void 0!==c&&c||this.initializeMutationListener(n,s),()=>{u.delete(s),0===u.size&&l.delete(n)}}getRegisteredNode(e){let n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){let r=this._editorState,s=Po(r).get(n.getType());if(!s)return;let l=new Map;for(let e of s.keys())l.set(e,"created");l.size>0&&e(l,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){let r=this.getRegisteredNode(e);return r.transforms.add(n),r}registerNodeTransform(e,n){let r=this.registerNodeTransformToKlass(e,n),s=[r],l=r.replaceWithKlass;if(null!=l){let e=this.registerNodeTransformToKlass(l,n);s.push(e)}return function(e,n){let r=Po(e.getEditorState()),s=[];for(let e of n){let n=r.get(e);n&&s.push(n)}0!==s.length&&e.update(()=>{for(let e of s)for(let n of e.keys()){let e=Ss(n);e&&e.markDirty()}},null===e._pendingEditorState?{tag:tN}:void 0)}(this,s.map(e=>e.klass.getType())),()=>{s.forEach(e=>e.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return Qs(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let r=Vs(this._config.theme,"root"),s=this._pendingEditorState||this._editorState;if(this._rootElement=e,Yi(this,n,e,s),null!==n&&(this._config.disableEvents||function(e){let n=e.ownerDocument,r=tu.get(n);if(void 0===r)return void Pn();let s=r-1;s>=0||t(164),tu.set(n,s),0===s&&n.removeEventListener("selectionchange",On);let l=cs(e);os(l)?(function(e){if(null!==e._parentEditor){let n=Ds(e),r=n[n.length-1]._key;ty.get(r)===e&&ty.delete(r)}else ty.delete(e._key)}(l),e.__lexicalEditor=null):l&&t(198);let u=En(e);for(let e=0;e<u.length;e++)u[e]();e.__lexicalEventHandles=[]}(n),null!=r&&n.classList.remove(...r)),null!==e){let n=lo(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=n,this._dirtyType=2,ut(this),this._updateTags.add(tN),fi(this),this._config.disableEvents||function(e,n){let r=e.ownerDocument,s=tu.get(r);(void 0===s||s<1)&&r.addEventListener("selectionchange",On),tu.set(r,(s||0)+1),e.__lexicalEditor=n;let l=En(e);for(let r=0;r<e5.length;r++){let[s,u]=e5[r],c="function"==typeof u?e=>{Dn(e)||(An(e),(n.isEditable()||"click"===s)&&u(e,n))}:e=>{if(Dn(e))return;An(e);let r=n.isEditable();switch(s){case"cut":return r&&Qs(n,e2,e);case"copy":return Qs(n,e1,e);case"paste":return r&&Qs(n,eF,e);case"dragstart":return r&&Qs(n,eV,e);case"dragover":return r&&Qs(n,eX,e);case"dragend":return r&&Qs(n,e0,e);case"focus":return r&&Qs(n,e7,e);case"blur":return r&&Qs(n,e3,e);case"drop":return r&&Qs(n,eq,e)}};e.addEventListener(s,c),l.push(()=>{e.removeEventListener(s,c)})}}(e,this),null!=r&&e.classList.add(...r)}else this._window=null,this._updateTags.add(tN),fi(this);di("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&((r=Ni(e))._selection=e._selection?e._selection.clone():null),at(this);let s=this._pendingEditorState,l=this._updateTags,u=void 0!==n?n.tag:null;null===s||s.isEmpty()||(null!=u&&l.add(u),fi(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=u&&l.add(u),this._updating||fi(this)}parseEditorState(e,n){return function(e,n,r){let s=bi(),l=tv,u=tT,c=tk,h=n._dirtyElements,p=n._dirtyLeaves,_=n._cloneNotNeeded,m=n._dirtyType;n._dirtyElements=new Map,n._dirtyLeaves=new Set,n._cloneNotNeeded=new Set,n._dirtyType=0,tv=s,tT=!1,tk=n,tP=null;try{let l=n._nodes;(function ai(e,n){let r=e.type,s=n.get(r);void 0===s&&t(17,r);let l=s.klass;e.type!==l.getType()&&t(18,l.name);let u=l.importJSON(e),c=e.children;if(xi(u)&&Array.isArray(c))for(let e=0;e<c.length;e++){let r=ai(c[e],n);u.append(r)}return u})(e.root,l),r&&r(),s._readOnly=!0}catch(e){e instanceof Error&&n._onError(e)}finally{n._dirtyElements=h,n._dirtyLeaves=p,n._cloneNotNeeded=_,n._dirtyType=m,tv=l,tT=u,tk=c}return s}("string"==typeof e?JSON.parse(e):e,this,n)}read(e){return fi(this),this.getEditorState().read(e,{editor:this})}update(e,n){this._updating?this._updates.push([e,n]):gi(this,e,n)}focus(e,n={}){let r=this._rootElement;null!==r&&(r.setAttribute("autocapitalize","off"),_i(this,()=>{let s=Pr(),l=ws();null!==s?s.dirty||Ms(s.clone()):0!==l.getChildrenSize()&&("rootStart"===n.defaultSelection?l.selectStart():l.selectEnd()),Zr(),ni()._updateTags.add("focus"),Zr(),ni()._deferred.push(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),null===this._pendingEditorState&&r.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let n=xo(this._window);null!==n&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,di("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};qi.version="0.34.0+prod.esm";let tP=null,tI=1;function ts(e,n){let r=es(e,n);return void 0===r&&t(30,n),r}function es(e,n){return e._nodes.get(n)}let tM="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function is(e){let n=document.activeElement;if(!ko(n))return!1;let r=n.nodeName;return vi(Ts(e))&&("INPUT"===r||"TEXTAREA"===r||"true"===n.contentEditable&&null==cs(n))}function ss(e,n,r){let s=e.getRootElement();try{return null!==s&&s.contains(n)&&s.contains(r)&&null!==n&&!is(n)&&ls(n)===e}catch(e){return!1}}function os(e){return e instanceof qi}function ls(e){let n=e;for(;null!=n;){let e=cs(n);if(os(e))return e;n=eo(n)}return null}function cs(e){return e?e.__lexicalEditor:null}function as(e){return ar(e)||e.isToken()}function us(e){return as(e)||e.isSegmented()}function fs(e){return To(e)&&3===e.nodeType}function hs(e){let n=e;for(;null!=n;){if(fs(n))return n;n=n.firstChild}return null}function gs(e,n,r){let s=F[n];if(null!==r&&(e&s)==(r&s))return e;let l=e^s;return"subscript"===n?l&=~F.superscript:"superscript"===n?l&=~F.subscript:"lowercase"===n?(l&=~F.uppercase,l&=~F.capitalize):"uppercase"===n?(l&=~F.lowercase,l&=~F.capitalize):"capitalize"===n&&(l&=~F.lowercase,l&=~F.uppercase),l}function ys(e){let n=e.getParent();if(null!==n){let r=e.getWritable(),s=n.getWritable(),l=e.getPreviousSibling(),u=e.getNextSibling(),c=null!==u?u.__key:null,h=null!==l?l.__key:null,p=null!==l?l.getWritable():null,_=null!==u?u.getWritable():null;null===l&&(s.__first=c),null===u&&(s.__last=h),null!==p&&(p.__next=c),null!==_&&(_.__prev=h),r.__prev=null,r.__next=null,r.__parent=null,s.__size--}}function ms(e){ti();let n=e.getLatest(),r=n.__parent,s=ei(),l=ni(),u=s._nodeMap,c=l._dirtyElements;null!==r&&function(e,n,r){let s=e;for(;null!==s;){if(r.has(s))return;let e=n.get(s);if(void 0===e)break;r.set(s,!1),s=e.__parent}}(r,u,c);let h=n.__key;l._dirtyType=1,xi(e)?c.set(h,!0):l._dirtyLeaves.add(h)}function xs(e){Zr();let n=ni(),r=n._compositionKey;if(e!==r){if(n._compositionKey=e,null!==r){let e=Ss(r);null!==e&&e.getWritable()}if(null!==e){let n=Ss(e);null!==n&&n.getWritable()}}}function Cs(){return Qr()?null:ni()._compositionKey}function Ss(e,n){let r=(n||ei())._nodeMap.get(e);return void 0===r?null:r}function vs(e,n){let r=ks(e,ni());return void 0!==r?Ss(r,n):null}function ks(e,n){return e[`__lexicalKey_${n._key}`]}function Ts(e,n){let r=e;for(;null!=r;){let e=vs(r,n);if(null!==e)return e;r=eo(r)}return null}function Ns(e){let n=e._decorators,r=Object.assign({},n);return e._pendingDecorators=r,r}function bs(e){return e.read(()=>ws().getTextContent())}function ws(){return Es(ei())}function Es(e){return e._nodeMap.get("root")}function Ms(e){Zr();let n=ei();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),n._selection=e}function Os(e){let n=ni(),r=function(e,n){let r=e;for(;null!=r;){let e=ks(r,n);if(void 0!==e)return e;r=eo(r)}return null}(e,n);return null===r?e===n.getRootElement()?Ss("root"):null:Ss(r)}function As(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ds(e){let n=[],r=e;for(;null!==r;)n.push(r),r=r._parentEditor;return n}function Ps(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Fs(e){return fs(e)?e.nodeValue:null}function Ls(e,n,r){let s=xo(co(n));if(null===s)return;let l=s.anchorNode,{anchorOffset:u,focusOffset:c}=s;if(null!==l){let n=Fs(l),s=Ts(l);if(null!==n&&sr(s)){if(n===E&&r){let e=r.length;n=r,u=e,c=e}null!==n&&Is(s,n,u,c,e)}}}function Is(e,n,r,s,l){let u=e;if(u.isAttached()&&(l||!u.isDirty())){let c=u.isComposing(),h=n;(c||l)&&n[n.length-1]===E&&(h=n.slice(0,-1));let m=u.getTextContent();if(l||h!==m){if(""===h){if(xs(null),p||_||T)u.remove();else{let e=ni();setTimeout(()=>{e.update(()=>{u.isAttached()&&u.remove()})},20)}return}let n=u.getParent(),l=Fr(),m=u.getTextContentSize(),v=Cs(),k=u.getKey();if(u.isToken()||null!==v&&k===v&&!c||_r(l)&&(null!==n&&!n.canInsertTextBefore()&&0===l.anchor.offset||l.anchor.key===e.__key&&0===l.anchor.offset&&!u.canInsertTextBefore()&&!c||l.focus.key===e.__key&&l.focus.offset===m&&!u.canInsertTextAfter()&&!c))return void u.markDirty();let E=Pr();if(!_r(E)||null===r||null===s)return void Ks(u,h,E);if(E.setTextNodeRange(u,r,u,s),u.isSegmented()){let e=ir(u.getTextContent());u.replace(e),u=e}Ks(u,h,E)}}}function Ks(e,n,r){if(e.setTextContent(n),_r(r)){let n=e.getKey();for(let s of["anchor","focus"]){let l=r[s];"text"===l.type&&l.key===n&&(l.offset=il(e,l.offset,"clamp"))}}}function zs(e,n,r){let s=n[r]||!1;return"any"===s||s===e[r]}function Bs(e,n,r){return zs(e,r,"altKey")&&zs(e,r,"ctrlKey")&&zs(e,r,"shiftKey")&&zs(e,r,"metaKey")&&e.key.toLowerCase()===n.toLowerCase()}let tD={ctrlKey:!u,metaKey:u},tR={altKey:u,ctrlKey:!u};function $s(e){return"Backspace"===e.key}function Vs(e,n){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let r=e.__lexicalClassNameCache,s=r[n];if(void 0!==s)return s;let l=e[n];if("string"==typeof l){let e=d(l);return r[n]=e,e}return l}function Ys(e,n,r,s,l){if(0===r.size)return;let u=s.__type,c=s.__key,h=n.get(u);void 0===h&&t(33,u);let p=h.klass,_=e.get(p);void 0===_&&(_=new Map,e.set(p,_));let m=_.get(c),v="destroyed"===m&&"created"===l;(void 0===m||v)&&_.set(c,v?"updated":l)}function qs(e,n,r){let s=e.getParent(),l=r,u=e;return null!==s&&(n&&0===r?(l=u.getIndexWithinParent(),u=s):n||r!==u.getChildrenSize()||(l=u.getIndexWithinParent()+1,u=s)),u.getChildAtIndex(n?l-1:l)}function Xs(e){let n=co(e).event,r=n&&n.inputType;return"insertFromPaste"===r||"insertFromPasteAsQuotation"===r}function Qs(e,n,r){return function(e,n,r){let s=Ds(e);for(let l=4;l>=0;l--)for(let u=0;u<s.length;u++){let c=s[u],h=c._commands.get(n);if(void 0!==h){let n=h[l];if(void 0!==n){let s=Array.from(n),l=s.length,u=!1;if(_i(c,()=>{for(let n=0;n<l;n++)if(s[n](r,e))return void(u=!0)}),u)return u}}}return!1}(e,n,r)}function Zs(e){return!Ti(e)&&!e.isLastChild()&&!e.isInline()}function to(e,n){let r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function eo(e){let n=e.assignedSlot||e.parentElement;return No(n)?n.host:n}function no(e){return To(e)&&9===e.nodeType?e:ko(e)?e.ownerDocument:null}function oo(e,n){let r=e.getParent();for(;null!==r;){if(r.is(n))return!0;r=r.getParent()}return!1}function lo(e){let n=no(e);return n?n.defaultView:null}function co(e){let n=e._window;return null===n&&t(78),n}function fo(e){return Ti(e)||xi(e)&&e.isShadowRoot()}function go(e){let n=ni(),r=e.getType(),s=es(n,r);void 0===s&&t(200,e.constructor.name,r);let{replace:l,replaceWithKlass:u}=s;if(null!==l){let n=l(e),s=n.constructor;return null!==u?n instanceof u||t(201,u.name,u.getType(),s.name,s.getType(),e.constructor.name,r):n instanceof e.constructor&&s!==e.constructor||t(202,s.name,s.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,s.name,s.getType()),n}return e}function _o(e,n){!Ti(e.getParent())||xi(n)||vi(n)||t(99)}function yo(e){return(vi(e)||xi(e)&&!e.canBeEmpty())&&!e.isInline()}function mo(e,n,r){r.style.removeProperty("caret-color"),n._blockCursorElement=null;let s=e.parentElement;null!==s&&s.removeChild(e)}function xo(e){return s?(e||window).getSelection():null}function vo(e){return ko(e)&&"A"===e.tagName}function ko(e){return To(e)&&1===e.nodeType}function To(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function No(e){return To(e)&&11===e.nodeType}function wo(e){let n=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(n)}function Eo(e){if(vi(e)&&!e.isInline())return!0;if(!xi(e)||fo(e))return!1;let n=e.getFirstChild(),r=null===n||Wn(n)||sr(n)||n.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&r}function Mo(e,n){let r=e;for(;null!==r&&null!==r.getParent()&&!n(r);)r=r.getParentOrThrow();return n(r)?r:null}let tB=new WeakMap,tz=new Map;function Po(e){if(!e._readOnly&&e.isEmpty())return tz;e._readOnly||t(192);let n=tB.get(e);return n||(n=function(e){let n=new Map;for(let[r,s]of e._nodeMap){let e=s.__type,l=n.get(e);l||(l=new Map,n.set(e,l)),l.set(r,s)}return n}(e),tB.set(e,n)),n}function Fo(e){let n=e.constructor.clone(e);return n.afterCloneFrom(e),n}function Lo(e,n){let r=parseInt(e.style.paddingInlineStart,10)||0;n.setIndent(Math.round(r/40))}function zo(e,n){return Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==Kn[n]}function Ro(e){let n=H in e.prototype?e.prototype[H]():void 0,r=e===Si||e===mi||e===Kn,s=!r&&zo(e,"getType")?e.getType():void 0,l,u=s;if(n){if(s)l=n[s];else for(let[e,r]of Object.entries(n))u=e,l=r}if(!r&&u&&(zo(e,"getType")||(e.getType=()=>u),zo(e,"clone")||(e.clone=n=>(tP=n,new e)),zo(e,"importJSON")||(e.importJSON=l&&l.$importJSON||(n=>(new e).updateFromJSON(n))),!zo(e,"importDOM")&&l)){let{importDOM:n}=l;n&&(e.importDOM=()=>n)}return{ownNodeConfig:l,ownNodeType:u}}function Bo(e){let n=ni();return Zr(),new(n.resolveRegisteredNodeAfterReplacements(n.getRegisteredNode(e))).klass}let t$={next:"previous",previous:"next"};let Jo=class Jo{constructor(e){this.origin=e}[Symbol.iterator](){return _l({hasNext:Xo,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return nl(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return nl(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){let r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(null===r?this.insert(e):r.replace(e,n)),this}splice(e,n,r="next"){let s=r===this.direction?n:Array.from(n).reverse(),l=this,u=this.getParentAtCaret(),c=new Map;for(let n=l.getAdjacentCaret();null!==n&&c.size<e;n=n.getAdjacentCaret()){let e=n.origin.getWritable();c.set(e.getKey(),e)}for(let e of s){if(c.size>0){let n=l.getNodeAtCaret();if(n){if(c.delete(n.getKey()),c.delete(e.getKey()),n.is(e)||l.origin.is(e));else{let r=e.getParent();r&&r.is(u)&&e.remove(),n.replace(e)}}else null===n&&t(263,Array.from(c).join(" "))}else l.insert(e);l=nl(e,this.direction)}for(let e of c.values())e.remove();return this}};let $o=class $o extends Jo{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ol(e,this.direction)}getParentCaret(e="root"){return nl(Vo(this.getParentAtCaret(),e),this.direction)}getFlipped(){var e;let n=t$[this.direction];return nl(this.getNodeAtCaret(),n)||ol(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof $o&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}};let tK={root:Ti,shadowRoot:fo};function Vo(e,n="root"){return tK[n](e)?null:e}let Yo=class Yo extends Jo{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:nl(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return xi(this.origin)?ol(this.origin,this.direction):null}getParentCaret(e="root"){return nl(Vo(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=t$[this.direction];return nl(this.getNodeAtCaret(),e)||ol(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Yo&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Yo||e instanceof Ho)&&this.direction===e.direction&&this.origin.is(e.origin)}};let Ho=class Ho extends Jo{type="text";constructor(e,n){super(e),this.offset=n}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:rl(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return nl(Vo(this.getParentAtCaret(),e),this.direction)}getFlipped(){return rl(this.origin,t$[this.direction],this.offset)}isSamePointCaret(e){return e instanceof Ho&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Yo||e instanceof Ho)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return nl(this.origin,this.direction)}};function qo(e){return e instanceof Ho}function Xo(e){return e instanceof Yo}function Qo(e){return e instanceof $o}let tW={next:class extends Ho{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ho{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},tU={next:class extends Yo{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Yo{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},tH={next:class extends $o{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends $o{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function nl(e,n){return e?new tU[n](e):null}function rl(e,n,r){return e?new tW[n](e,il(e,r)):null}function il(e,n,r="error"){let s=e.getTextContentSize(),l="next"===n?s:"previous"===n?0:n;return(l<0||l>s)&&("clamp"!==r&&function(e,...n){let r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;for(let r of(s.append("code",e),n))s.append("v",r);r.search=s.toString(),console.warn(`Minified Lexical warning #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(284,String(n),String(s),e.getKey()),l=l<0?0:s),l}function ol(e,n){return xi(e)?new tH[n](e):null}function cl(e){var n;return e&&((n=e.getAdjacentCaret())&&n.getChildCaret()||n)}let al=class al{type="node-caret-range";constructor(e,n,r){this.anchor=e,this.focus=n,this.direction=r}getLatest(){let e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new al(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let t=e=>{let n=this[e].getLatest();return qo(n)?function(e,n){var r;let{direction:s,origin:l}=e,u=il(l,"focus"===n?t$[s]:s);return r=u-e.offset,new ul(e,r)}(n,e):null},e=t("anchor"),n=t("focus");if(e&&n){let{caret:s}=e,{caret:l}=n;if(s.isSameNodeCaret(l)){var r;return[(r=l.offset-s.offset,new ul(s,r)),null]}}return[e,n]}iterNodeCarets(e="root"){let n=qo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),s=qo(r),i=n=>n.isSameNodeCaret(r)?null:cl(n)||n.getParentCaret(e);return _l({hasNext:e=>null!==e&&!(s&&r.isSameNodeCaret(e)),initial:n.isSameNodeCaret(r)?null:i(n),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}};let ul=class ul{type="slice";constructor(e,n){this.caret=e,this.distance=n}getSliceIndices(){let{distance:e,caret:{offset:n}}=this,r=n+e;return r<n?[r,n]:[n,r]}getTextContent(){let[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:n}}=this,[r,s]=this.getSliceIndices(),l=e.getTextContent();return rl(e.setTextContent(l.slice(0,r)+l.slice(s)),n,r)}};function dl(e){return gl(e,nl(ws(),e.direction))}function gl(e,n){return e.direction!==n.direction&&t(265),new al(e,n,e.direction)}function _l(e){let{initial:n,hasNext:r,step:s,map:l}=e,u=n;return{[Symbol.iterator](){return this},next(){if(!r(u))return{done:!0,value:void 0};let e={done:!1,value:l(u)};return u=s(u),e}}}function pl(e,n){let r=Cl(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{let r="text"===e.type,s="text"===n.type;return r&&s?Math.sign(e.offset-n.offset):e.type===n.type?0:r?-1:s?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return yl(r)}}function yl(e){let{a:n,b:r}=e,s=n.__key,l=r.__key,u=n,c=r;for(;u&&c;u=u.getNextSibling(),c=c.getNextSibling()){if(u.__key===l)return -1;if(c.__key===s)return 1}return null===u?1:-1}function xl(e){return xi(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Cl(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};let r=new Map;for(let[n,s]=xl(e);n;s=n,n=n.getParent())r.set(n,s);for(let[s,l]=xl(n);s;l=s,s=s.getParent()){let u=r.get(s);if(void 0!==u)return null===u?(s.is(e)||t(276),{commonAncestor:s,type:"ancestor"}):null===l?(s.is(n)||t(277),{commonAncestor:s,type:"descendant"}):((xi(u)||u.is(e))&&(xi(l)||l.is(n))&&s.is(u.getParent())&&s.is(l.getParent())||t(278),{a:u,b:l,commonAncestor:s,type:"branch"})}return null}function Sl(e,n){let{type:r,key:s,offset:l}=e,u=function(e){let n=Ss(e);return null===n&&t(63,e),n}(e.key);return"text"===r?(sr(u)||t(266,u.getType(),s),rl(u,n,l)):(xi(u)||t(267,u.getType(),s),function(e,n,r){let s=ol(e,"next");for(let e=0;e<n;e++){let e=s.getAdjacentCaret();if(null===e)break;s=e}return Dl(s,r)}(u,e.offset,n))}function vl(e,n){let{origin:r,direction:s}=n,l="next"===s;qo(n)?e.set(r.getKey(),n.offset,"text"):Xo(n)?sr(r)?e.set(r.getKey(),il(r,s),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+(l?1:0),"element"):(Qo(n)&&xi(r)||t(268),e.set(r.getKey(),l?0:r.getChildrenSize(),"element"))}function Tl(e,n){vl(e.anchor,n.anchor),vl(e.focus,n.focus)}function Nl(e){let{anchor:n,focus:r}=e,s=Sl(n,"next"),l=Sl(r,"next"),u=0>=pl(s,l)?"next":"previous";return gl(Dl(s,u),Dl(l,u))}function bl(e){let{direction:n,origin:r}=e,s=nl(r,t$[n]).getNodeAtCaret();return s?nl(s,n):ol(r.getParentOrThrow(),n)}function wl(e,n="root"){let r=[e];for(let s=Qo(e)?e.getParentCaret(n):e.getSiblingCaret();null!==s;s=s.getParentCaret(n))r.push(bl(s));return r}function El(e){return!!e&&e.origin.isAttached()}function Ol(e){let n=function(e){let n=e;for(;Qo(n);){let e=cl(n);if(!Qo(e))break;n=e}return n}(e.getLatest()),{direction:r}=n;if(sr(n.origin))return qo(n)?n:rl(n.origin,r,r);let s=n.getAdjacentCaret();return Xo(s)&&sr(s.origin)?rl(s.origin,r,t$[r]):n}function Dl(e,n){return e.direction===n?e:e.getFlipped()}function Pl(e,n){return e.direction===n?e:gl(Dl(e.focus,n),Dl(e.anchor,n))}}}]);