@emailmaker/emailmaker 1.0.99 → 1.0.101-alpha.1

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 (1008) hide show
  1. package/README.md +3 -2
  2. package/asset-manifest.json +890 -111
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +226 -62
  5. package/emailmaker.js +1 -1
  6. package/fm-notification.d.ts +368 -0
  7. package/iframe/429.js +1 -1
  8. package/iframe/766.js +1 -1
  9. package/iframe/css/sandbox.css +25 -1
  10. package/iframe/css/sandbox.locale.en_en.css +4 -0
  11. package/iframe/css/sandbox.locale.ru_ru.css +4 -0
  12. package/iframe/iframe-eblock.4f49e38a414fd8ddda78.html +1 -0
  13. package/iframe/iframe.4f49e38a414fd8ddda78.html +1 -0
  14. package/iframe/js/330.dbf1fdc6.js +1 -0
  15. package/iframe/sandbox-eblock.js +1 -1
  16. package/iframe/sandbox.js +1 -1
  17. package/js/amplitude.min.js +2 -0
  18. package/package.json +1 -1
  19. package/plugin.html +45 -38
  20. package/plugin_blocks_test.html +1 -1
  21. package/plugin_default.html +62 -52
  22. package/plugin_idigital.html +1 -1
  23. package/plugin_nota.html +1 -1
  24. package/plugin_s.html +1 -1
  25. package/react/index.mjs +1 -1
  26. package/static/css/3435.48ebeca1.chunk.css +1 -0
  27. package/static/js/{1169.baef237c.chunk.js → 1169.e603dac9.js} +2 -2
  28. package/static/js/1241.f0324229.js +1 -0
  29. package/static/js/1330.1e6d0a10.js +1 -0
  30. package/static/js/1332.8e3ea1dc.js +1 -0
  31. package/static/js/1377.f1151015.js +1 -0
  32. package/static/js/1454.8b08646c.js +1 -0
  33. package/static/js/1502.6756ba01.js +1 -0
  34. package/static/js/1510.94001d08.js +1 -0
  35. package/static/js/1538.b373152b.js +2 -0
  36. package/static/js/1626.e4bdfa2b.js +1 -0
  37. package/static/js/1640.3b46361c.js +1 -0
  38. package/static/js/1788.ef0d8c8e.js +1 -0
  39. package/static/js/1872.cc1f0f56.js +1 -0
  40. package/static/js/197.5029ea36.js +1 -0
  41. package/static/js/2066.33e12cfb.js +1 -0
  42. package/static/js/2114.43424efe.js +1 -0
  43. package/static/js/2408.46a8ce6d.js +1 -0
  44. package/static/js/2438.08ac662b.js +1 -0
  45. package/static/js/2466.594765fd.js +1 -0
  46. package/static/js/2624.bd9fb60d.js +2 -0
  47. package/static/js/2827.8afbce30.js +1 -0
  48. package/static/js/2844.2f68d816.js +1 -0
  49. package/static/js/2897.7440fcb5.js +2 -0
  50. package/static/js/{207.2a052cc2.js.LICENSE.txt → 2897.7440fcb5.js.LICENSE.txt} +10 -0
  51. package/static/js/290.3aa233eb.js +1 -0
  52. package/static/js/2917.471cc88a.js +1 -0
  53. package/static/js/2988.4a05dc9d.js +1 -0
  54. package/static/js/3017.64a47f09.js +1 -0
  55. package/static/js/{3019.8534e1e7.chunk.js → 3019.b5f316a5.js} +1 -1
  56. package/static/js/{3085.bcc62ca0.chunk.js → 3085.0ddbb320.js} +1 -1
  57. package/static/js/3302.2a33af61.js +1 -0
  58. package/static/js/3411.2aec36ca.js +1 -0
  59. package/static/js/3435.41cedf8f.js +1 -0
  60. package/static/js/3473.9675b9a4.js +2 -0
  61. package/static/js/3624.b380cc8b.js +1 -0
  62. package/static/js/3711.c1588dec.js +1 -0
  63. package/static/js/3816.1b3f2ec6.js +1 -0
  64. package/static/js/3914.40066823.js +1 -0
  65. package/static/js/4425.a1cc2ddc.js +1 -0
  66. package/static/js/4607.a1f4a2ee.js +1 -0
  67. package/static/js/4686.b5e42917.js +1 -0
  68. package/static/js/4702.75dc6403.js +1 -0
  69. package/static/js/4813.a8ae6d4b.js +1 -0
  70. package/static/js/4823.3b54f4c4.js +1 -0
  71. package/static/js/494.ba00ca3a.js +1 -0
  72. package/static/js/5108.f3b33a5b.js +1 -0
  73. package/static/js/5261.68047848.js +1 -0
  74. package/static/js/5322.3b6bfddc.js +1 -0
  75. package/static/js/5447.59490aec.js +2 -0
  76. package/static/js/{8473.88a48c70.chunk.js.LICENSE.txt → 5447.59490aec.js.LICENSE.txt} +4 -27
  77. package/static/js/5466.453457a0.js +1 -0
  78. package/static/js/5653.2af0a7fe.js +1 -0
  79. package/static/js/5827.52b65a1a.js +1 -0
  80. package/static/js/5862.1e4b27da.js +1 -0
  81. package/static/js/5864.63d0b187.js +1 -0
  82. package/static/js/5902.83e732d3.js +1 -0
  83. package/static/js/5980.924bfbf0.js +1 -0
  84. package/static/js/6033.09c630f9.js +1 -0
  85. package/static/js/6135.3694348e.js +1 -0
  86. package/static/js/{6144.a3bf0881.chunk.js → 6144.5d2c141c.js} +1 -1
  87. package/static/js/6418.cd76b6b1.js +1 -0
  88. package/static/js/6428.38ca14cb.js +1 -0
  89. package/static/js/{6501.40bbf4df.chunk.js → 6501.ce1c1684.js} +1 -1
  90. package/static/js/6552.8e749864.js +1 -0
  91. package/static/js/6618.bc3805ae.js +1 -0
  92. package/static/js/6655.916a14d0.js +2 -0
  93. package/static/js/6764.50a3ffc6.js +1 -0
  94. package/static/js/6798.27a16445.js +2 -0
  95. package/static/js/{6801.562ec824.chunk.js → 6801.1e4f4807.js} +2 -2
  96. package/static/js/{6819.16ca9581.chunk.js → 6819.c2bea9e8.js} +1 -1
  97. package/static/js/6832.2550caa5.js +1 -0
  98. package/static/js/6859.7a79e21e.js +1 -0
  99. package/static/js/7288.007d40b4.js +1 -0
  100. package/static/js/737.6b20bceb.js +1 -0
  101. package/static/js/7419.28b3875c.js +2 -0
  102. package/static/js/{9960.6fbe3e6d.chunk.js.LICENSE.txt → 7419.28b3875c.js.LICENSE.txt} +0 -10
  103. package/static/js/7426.995979c0.js +1 -0
  104. package/static/js/{7463.51929d73.chunk.js → 7463.45a04221.js} +1 -1
  105. package/static/js/77.9f47a065.js +1 -0
  106. package/static/js/7969.c6c6b44d.js +2 -0
  107. package/static/js/7974.1be3257a.js +1 -0
  108. package/static/js/84.76c96c86.js +1 -0
  109. package/static/js/8466.caa088c9.js +1 -0
  110. package/static/js/{8521.0e5efd08.chunk.js → 8521.e891fa18.js} +1 -1
  111. package/static/js/8534.b07438c3.js +1 -0
  112. package/static/js/8590.904c3e1c.js +1 -0
  113. package/static/js/8682.0708405f.js +1 -0
  114. package/static/js/8796.42497042.js +1 -0
  115. package/static/js/8839.69f9da33.js +1 -0
  116. package/static/js/9169.428a6bc7.js +1 -0
  117. package/static/js/9200.927570db.js +1 -0
  118. package/static/js/{ant-locale/locale-kmr_IQ-js.6903b04d.chunk.js → 9508.5bbab7e6.js} +1 -1
  119. package/static/js/{9644.eb778968.chunk.js → 9644.c8707a98.js} +1 -1
  120. package/static/js/9716.e2678a29.js +1 -0
  121. package/static/js/9981.14b1f05b.js +1 -0
  122. package/static/js/emailmaker_core.f804119f.js +2 -0
  123. package/static/media/image-editor/fonts/TrashHand.ttf +0 -0
  124. package/static/media/image-editor/fonts/aleo-v4-latin-ext_latin-700.woff2 +0 -0
  125. package/static/media/image-editor/fonts/amatic-sc-v16-latin-ext_latin-regular.woff2 +0 -0
  126. package/static/media/image-editor/fonts/bungee-inline-v6-latin-ext_latin-regular.woff2 +0 -0
  127. package/static/media/image-editor/fonts/carter-one-v12-latin-regular.woff2 +0 -0
  128. package/static/media/image-editor/fonts/codystar-v10-latin-ext_latin-regular.woff2 +0 -0
  129. package/static/media/image-editor/fonts/corinthia-v7-latin-ext_latin-700.woff2 +0 -0
  130. package/static/media/image-editor/fonts/fira-sans-v11-latin-ext_latin_cyrillic-regular.woff2 +0 -0
  131. package/static/media/image-editor/fonts/fuzzy-bubbles-v3-latin-700.woff2 +0 -0
  132. package/static/media/image-editor/fonts/krona-one-v9-latin-ext_latin-regular.woff2 +0 -0
  133. package/static/media/image-editor/fonts/kumar-one-outline-v8-latin-ext_latin-regular.woff2 +0 -0
  134. package/static/media/image-editor/fonts/lobster-two-v13-latin-regular.woff2 +0 -0
  135. package/static/media/image-editor/fonts/molle-v11-latin-ext_latin-italic.woff2 +0 -0
  136. package/static/media/image-editor/fonts/monoton-v10-latin-regular.woff2 +0 -0
  137. package/static/media/image-editor/fonts/nixie-one-v11-latin-regular.woff2 +0 -0
  138. package/static/media/image-editor/fonts/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
  139. package/static/media/image-editor/fonts/permanent-marker-v10-latin-regular.woff2 +0 -0
  140. package/static/media/image-editor/fonts/roboto-slab-v16-latin-ext_latin-500.woff2 +0 -0
  141. package/static/media/image-editor/fonts/sancreek-v13-latin-ext_latin-regular.woff2 +0 -0
  142. package/static/media/image-editor/fonts/stint-ultra-expanded-v10-latin-regular.woff2 +0 -0
  143. package/static/media/image-editor/fonts/vt323-v12-latin-ext_latin-regular.woff2 +0 -0
  144. package/static/media/image-editor/images/brushes/black/circle.png +0 -0
  145. package/static/media/image-editor/images/brushes/black/diamond.png +0 -0
  146. package/static/media/image-editor/images/brushes/black/hline.png +0 -0
  147. package/static/media/image-editor/images/brushes/black/pencil.png +0 -0
  148. package/static/media/image-editor/images/brushes/black/spray.png +0 -0
  149. package/static/media/image-editor/images/brushes/black/square.png +0 -0
  150. package/static/media/image-editor/images/brushes/black/vline.png +0 -0
  151. package/static/media/image-editor/images/brushes/white/circle.png +0 -0
  152. package/static/media/image-editor/images/brushes/white/diamond.png +0 -0
  153. package/static/media/image-editor/images/brushes/white/hline.png +0 -0
  154. package/static/media/image-editor/images/brushes/white/pencil.png +0 -0
  155. package/static/media/image-editor/images/brushes/white/spray.png +0 -0
  156. package/static/media/image-editor/images/brushes/white/square.png +0 -0
  157. package/static/media/image-editor/images/brushes/white/vline.png +0 -0
  158. package/static/media/image-editor/images/empty-canvas-bg.png +0 -0
  159. package/static/media/image-editor/images/filter/blackWhite.jpg +0 -0
  160. package/static/media/image-editor/images/filter/blendColor.jpg +0 -0
  161. package/static/media/image-editor/images/filter/blur.jpg +0 -0
  162. package/static/media/image-editor/images/filter/brightness.jpg +0 -0
  163. package/static/media/image-editor/images/filter/brownie.jpg +0 -0
  164. package/static/media/image-editor/images/filter/emboss.jpg +0 -0
  165. package/static/media/image-editor/images/filter/gamma.jpg +0 -0
  166. package/static/media/image-editor/images/filter/grayscale.jpg +0 -0
  167. package/static/media/image-editor/images/filter/invert.jpg +0 -0
  168. package/static/media/image-editor/images/filter/kodachrome.jpg +0 -0
  169. package/static/media/image-editor/images/filter/noise.jpg +0 -0
  170. package/static/media/image-editor/images/filter/original.jpg +0 -0
  171. package/static/media/image-editor/images/filter/pixelate.jpg +0 -0
  172. package/static/media/image-editor/images/filter/polaroid.jpg +0 -0
  173. package/static/media/image-editor/images/filter/removeColor.jpg +0 -0
  174. package/static/media/image-editor/images/filter/sepia.jpg +0 -0
  175. package/static/media/image-editor/images/filter/sharpen.jpg +0 -0
  176. package/static/media/image-editor/images/filter/technicolor.jpg +0 -0
  177. package/static/media/image-editor/images/filter/vintage.jpg +0 -0
  178. package/static/media/image-editor/images/frames/art1/bottom.png +0 -0
  179. package/static/media/image-editor/images/frames/art1/bottomLeft.png +0 -0
  180. package/static/media/image-editor/images/frames/art1/bottomRight.png +0 -0
  181. package/static/media/image-editor/images/frames/art1/left.png +0 -0
  182. package/static/media/image-editor/images/frames/art1/right.png +0 -0
  183. package/static/media/image-editor/images/frames/art1/thumbnail.png +0 -0
  184. package/static/media/image-editor/images/frames/art1/top.png +0 -0
  185. package/static/media/image-editor/images/frames/art1/topLeft.png +0 -0
  186. package/static/media/image-editor/images/frames/art1/topRight.png +0 -0
  187. package/static/media/image-editor/images/frames/art2/bottom.png +0 -0
  188. package/static/media/image-editor/images/frames/art2/bottomLeft.png +0 -0
  189. package/static/media/image-editor/images/frames/art2/bottomRight.png +0 -0
  190. package/static/media/image-editor/images/frames/art2/left.png +0 -0
  191. package/static/media/image-editor/images/frames/art2/right.png +0 -0
  192. package/static/media/image-editor/images/frames/art2/thumbnail.png +0 -0
  193. package/static/media/image-editor/images/frames/art2/top.png +0 -0
  194. package/static/media/image-editor/images/frames/art2/topLeft.png +0 -0
  195. package/static/media/image-editor/images/frames/art2/topRight.png +0 -0
  196. package/static/media/image-editor/images/frames/basic/thumbnail.png +0 -0
  197. package/static/media/image-editor/images/frames/ebony/bottom.png +0 -0
  198. package/static/media/image-editor/images/frames/ebony/bottomLeft.png +0 -0
  199. package/static/media/image-editor/images/frames/ebony/bottomRight.png +0 -0
  200. package/static/media/image-editor/images/frames/ebony/left.png +0 -0
  201. package/static/media/image-editor/images/frames/ebony/right.png +0 -0
  202. package/static/media/image-editor/images/frames/ebony/thumbnail.png +0 -0
  203. package/static/media/image-editor/images/frames/ebony/top.png +0 -0
  204. package/static/media/image-editor/images/frames/ebony/topLeft.png +0 -0
  205. package/static/media/image-editor/images/frames/ebony/topRight.png +0 -0
  206. package/static/media/image-editor/images/frames/grunge1/bottom.png +0 -0
  207. package/static/media/image-editor/images/frames/grunge1/bottomLeft.png +0 -0
  208. package/static/media/image-editor/images/frames/grunge1/bottomRight.png +0 -0
  209. package/static/media/image-editor/images/frames/grunge1/left.png +0 -0
  210. package/static/media/image-editor/images/frames/grunge1/right.png +0 -0
  211. package/static/media/image-editor/images/frames/grunge1/thumbnail.png +0 -0
  212. package/static/media/image-editor/images/frames/grunge1/top.png +0 -0
  213. package/static/media/image-editor/images/frames/grunge1/topLeft.png +0 -0
  214. package/static/media/image-editor/images/frames/grunge1/topRight.png +0 -0
  215. package/static/media/image-editor/images/frames/grunge2/bottom.png +0 -0
  216. package/static/media/image-editor/images/frames/grunge2/bottomLeft.png +0 -0
  217. package/static/media/image-editor/images/frames/grunge2/bottomRight.png +0 -0
  218. package/static/media/image-editor/images/frames/grunge2/left.png +0 -0
  219. package/static/media/image-editor/images/frames/grunge2/right.png +0 -0
  220. package/static/media/image-editor/images/frames/grunge2/thumbnail.png +0 -0
  221. package/static/media/image-editor/images/frames/grunge2/top.png +0 -0
  222. package/static/media/image-editor/images/frames/grunge2/topLeft.png +0 -0
  223. package/static/media/image-editor/images/frames/grunge2/topRight.png +0 -0
  224. package/static/media/image-editor/images/frames/oak/bottom.png +0 -0
  225. package/static/media/image-editor/images/frames/oak/bottomLeft.png +0 -0
  226. package/static/media/image-editor/images/frames/oak/bottomRight.png +0 -0
  227. package/static/media/image-editor/images/frames/oak/left.png +0 -0
  228. package/static/media/image-editor/images/frames/oak/right.png +0 -0
  229. package/static/media/image-editor/images/frames/oak/thumbnail.png +0 -0
  230. package/static/media/image-editor/images/frames/oak/top.png +0 -0
  231. package/static/media/image-editor/images/frames/oak/topLeft.png +0 -0
  232. package/static/media/image-editor/images/frames/oak/topRight.png +0 -0
  233. package/static/media/image-editor/images/frames/pine/bottom.png +0 -0
  234. package/static/media/image-editor/images/frames/pine/bottomLeft.png +0 -0
  235. package/static/media/image-editor/images/frames/pine/bottomRight.png +0 -0
  236. package/static/media/image-editor/images/frames/pine/left.png +0 -0
  237. package/static/media/image-editor/images/frames/pine/right.png +0 -0
  238. package/static/media/image-editor/images/frames/pine/thumbnail.png +0 -0
  239. package/static/media/image-editor/images/frames/pine/top.png +0 -0
  240. package/static/media/image-editor/images/frames/pine/topLeft.png +0 -0
  241. package/static/media/image-editor/images/frames/pine/topRight.png +0 -0
  242. package/static/media/image-editor/images/frames/rainbow/bottom.png +0 -0
  243. package/static/media/image-editor/images/frames/rainbow/bottomLeft.png +0 -0
  244. package/static/media/image-editor/images/frames/rainbow/bottomRight.png +0 -0
  245. package/static/media/image-editor/images/frames/rainbow/left.png +0 -0
  246. package/static/media/image-editor/images/frames/rainbow/right.png +0 -0
  247. package/static/media/image-editor/images/frames/rainbow/thumbnail.png +0 -0
  248. package/static/media/image-editor/images/frames/rainbow/top.png +0 -0
  249. package/static/media/image-editor/images/frames/rainbow/topLeft.png +0 -0
  250. package/static/media/image-editor/images/frames/rainbow/topRight.png +0 -0
  251. package/static/media/image-editor/images/gradients/0.png +0 -0
  252. package/static/media/image-editor/images/gradients/1.png +0 -0
  253. package/static/media/image-editor/images/gradients/10.png +0 -0
  254. package/static/media/image-editor/images/gradients/11.png +0 -0
  255. package/static/media/image-editor/images/gradients/12.png +0 -0
  256. package/static/media/image-editor/images/gradients/2.png +0 -0
  257. package/static/media/image-editor/images/gradients/3.png +0 -0
  258. package/static/media/image-editor/images/gradients/4.png +0 -0
  259. package/static/media/image-editor/images/gradients/5.png +0 -0
  260. package/static/media/image-editor/images/gradients/6.png +0 -0
  261. package/static/media/image-editor/images/gradients/7.png +0 -0
  262. package/static/media/image-editor/images/gradients/8.png +0 -0
  263. package/static/media/image-editor/images/gradients/9.png +0 -0
  264. package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
  265. package/static/media/image-editor/images/samples/sample1.jpg +0 -0
  266. package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
  267. package/static/media/image-editor/images/samples/sample2.jpg +0 -0
  268. package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
  269. package/static/media/image-editor/images/samples/sample3.jpg +0 -0
  270. package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
  271. package/static/media/image-editor/images/samples/sample4.json +871 -0
  272. package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
  273. package/static/media/image-editor/images/stickers/beach/0.svg +25 -0
  274. package/static/media/image-editor/images/stickers/beach/1.svg +14 -0
  275. package/static/media/image-editor/images/stickers/beach/10.svg +34 -0
  276. package/static/media/image-editor/images/stickers/beach/11.svg +27 -0
  277. package/static/media/image-editor/images/stickers/beach/12.svg +10 -0
  278. package/static/media/image-editor/images/stickers/beach/13.svg +25 -0
  279. package/static/media/image-editor/images/stickers/beach/14.svg +16 -0
  280. package/static/media/image-editor/images/stickers/beach/15.svg +14 -0
  281. package/static/media/image-editor/images/stickers/beach/16.svg +44 -0
  282. package/static/media/image-editor/images/stickers/beach/17.svg +35 -0
  283. package/static/media/image-editor/images/stickers/beach/18.svg +32 -0
  284. package/static/media/image-editor/images/stickers/beach/19.svg +23 -0
  285. package/static/media/image-editor/images/stickers/beach/2.svg +14 -0
  286. package/static/media/image-editor/images/stickers/beach/20.svg +24 -0
  287. package/static/media/image-editor/images/stickers/beach/21.svg +11 -0
  288. package/static/media/image-editor/images/stickers/beach/3.svg +26 -0
  289. package/static/media/image-editor/images/stickers/beach/4.svg +25 -0
  290. package/static/media/image-editor/images/stickers/beach/5.svg +22 -0
  291. package/static/media/image-editor/images/stickers/beach/6.svg +20 -0
  292. package/static/media/image-editor/images/stickers/beach/7.svg +32 -0
  293. package/static/media/image-editor/images/stickers/beach/8.svg +28 -0
  294. package/static/media/image-editor/images/stickers/beach/9.svg +18 -0
  295. package/static/media/image-editor/images/stickers/bubbles/0.png +0 -0
  296. package/static/media/image-editor/images/stickers/bubbles/1.png +0 -0
  297. package/static/media/image-editor/images/stickers/bubbles/10.png +0 -0
  298. package/static/media/image-editor/images/stickers/bubbles/100.png +0 -0
  299. package/static/media/image-editor/images/stickers/bubbles/101.png +0 -0
  300. package/static/media/image-editor/images/stickers/bubbles/102.png +0 -0
  301. package/static/media/image-editor/images/stickers/bubbles/103.png +0 -0
  302. package/static/media/image-editor/images/stickers/bubbles/105.png +0 -0
  303. package/static/media/image-editor/images/stickers/bubbles/11.png +0 -0
  304. package/static/media/image-editor/images/stickers/bubbles/12.png +0 -0
  305. package/static/media/image-editor/images/stickers/bubbles/13.png +0 -0
  306. package/static/media/image-editor/images/stickers/bubbles/14.png +0 -0
  307. package/static/media/image-editor/images/stickers/bubbles/15.png +0 -0
  308. package/static/media/image-editor/images/stickers/bubbles/16.png +0 -0
  309. package/static/media/image-editor/images/stickers/bubbles/17.png +0 -0
  310. package/static/media/image-editor/images/stickers/bubbles/18.png +0 -0
  311. package/static/media/image-editor/images/stickers/bubbles/19.png +0 -0
  312. package/static/media/image-editor/images/stickers/bubbles/2.png +0 -0
  313. package/static/media/image-editor/images/stickers/bubbles/20.png +0 -0
  314. package/static/media/image-editor/images/stickers/bubbles/21.png +0 -0
  315. package/static/media/image-editor/images/stickers/bubbles/22.png +0 -0
  316. package/static/media/image-editor/images/stickers/bubbles/23.png +0 -0
  317. package/static/media/image-editor/images/stickers/bubbles/24.png +0 -0
  318. package/static/media/image-editor/images/stickers/bubbles/25.png +0 -0
  319. package/static/media/image-editor/images/stickers/bubbles/26.png +0 -0
  320. package/static/media/image-editor/images/stickers/bubbles/27.png +0 -0
  321. package/static/media/image-editor/images/stickers/bubbles/28.png +0 -0
  322. package/static/media/image-editor/images/stickers/bubbles/29.png +0 -0
  323. package/static/media/image-editor/images/stickers/bubbles/3.png +0 -0
  324. package/static/media/image-editor/images/stickers/bubbles/30.png +0 -0
  325. package/static/media/image-editor/images/stickers/bubbles/31.png +0 -0
  326. package/static/media/image-editor/images/stickers/bubbles/32.png +0 -0
  327. package/static/media/image-editor/images/stickers/bubbles/33.png +0 -0
  328. package/static/media/image-editor/images/stickers/bubbles/34.png +0 -0
  329. package/static/media/image-editor/images/stickers/bubbles/35.png +0 -0
  330. package/static/media/image-editor/images/stickers/bubbles/36.png +0 -0
  331. package/static/media/image-editor/images/stickers/bubbles/37.png +0 -0
  332. package/static/media/image-editor/images/stickers/bubbles/38.png +0 -0
  333. package/static/media/image-editor/images/stickers/bubbles/39.png +0 -0
  334. package/static/media/image-editor/images/stickers/bubbles/4.png +0 -0
  335. package/static/media/image-editor/images/stickers/bubbles/40.png +0 -0
  336. package/static/media/image-editor/images/stickers/bubbles/41.png +0 -0
  337. package/static/media/image-editor/images/stickers/bubbles/42.png +0 -0
  338. package/static/media/image-editor/images/stickers/bubbles/43.png +0 -0
  339. package/static/media/image-editor/images/stickers/bubbles/44.png +0 -0
  340. package/static/media/image-editor/images/stickers/bubbles/45.png +0 -0
  341. package/static/media/image-editor/images/stickers/bubbles/46.png +0 -0
  342. package/static/media/image-editor/images/stickers/bubbles/47.png +0 -0
  343. package/static/media/image-editor/images/stickers/bubbles/48.png +0 -0
  344. package/static/media/image-editor/images/stickers/bubbles/49.png +0 -0
  345. package/static/media/image-editor/images/stickers/bubbles/5.png +0 -0
  346. package/static/media/image-editor/images/stickers/bubbles/50.png +0 -0
  347. package/static/media/image-editor/images/stickers/bubbles/51.png +0 -0
  348. package/static/media/image-editor/images/stickers/bubbles/52.png +0 -0
  349. package/static/media/image-editor/images/stickers/bubbles/53.png +0 -0
  350. package/static/media/image-editor/images/stickers/bubbles/54.png +0 -0
  351. package/static/media/image-editor/images/stickers/bubbles/55.png +0 -0
  352. package/static/media/image-editor/images/stickers/bubbles/56.png +0 -0
  353. package/static/media/image-editor/images/stickers/bubbles/57.png +0 -0
  354. package/static/media/image-editor/images/stickers/bubbles/58.png +0 -0
  355. package/static/media/image-editor/images/stickers/bubbles/59.png +0 -0
  356. package/static/media/image-editor/images/stickers/bubbles/6.png +0 -0
  357. package/static/media/image-editor/images/stickers/bubbles/60.png +0 -0
  358. package/static/media/image-editor/images/stickers/bubbles/61.png +0 -0
  359. package/static/media/image-editor/images/stickers/bubbles/62.png +0 -0
  360. package/static/media/image-editor/images/stickers/bubbles/63.png +0 -0
  361. package/static/media/image-editor/images/stickers/bubbles/64.png +0 -0
  362. package/static/media/image-editor/images/stickers/bubbles/65.png +0 -0
  363. package/static/media/image-editor/images/stickers/bubbles/66.png +0 -0
  364. package/static/media/image-editor/images/stickers/bubbles/67.png +0 -0
  365. package/static/media/image-editor/images/stickers/bubbles/68.png +0 -0
  366. package/static/media/image-editor/images/stickers/bubbles/69.png +0 -0
  367. package/static/media/image-editor/images/stickers/bubbles/7.png +0 -0
  368. package/static/media/image-editor/images/stickers/bubbles/70.png +0 -0
  369. package/static/media/image-editor/images/stickers/bubbles/71.png +0 -0
  370. package/static/media/image-editor/images/stickers/bubbles/72.png +0 -0
  371. package/static/media/image-editor/images/stickers/bubbles/73.png +0 -0
  372. package/static/media/image-editor/images/stickers/bubbles/74.png +0 -0
  373. package/static/media/image-editor/images/stickers/bubbles/75.png +0 -0
  374. package/static/media/image-editor/images/stickers/bubbles/76.png +0 -0
  375. package/static/media/image-editor/images/stickers/bubbles/77.png +0 -0
  376. package/static/media/image-editor/images/stickers/bubbles/78.png +0 -0
  377. package/static/media/image-editor/images/stickers/bubbles/79.png +0 -0
  378. package/static/media/image-editor/images/stickers/bubbles/8.png +0 -0
  379. package/static/media/image-editor/images/stickers/bubbles/80.png +0 -0
  380. package/static/media/image-editor/images/stickers/bubbles/81.png +0 -0
  381. package/static/media/image-editor/images/stickers/bubbles/82.png +0 -0
  382. package/static/media/image-editor/images/stickers/bubbles/83.png +0 -0
  383. package/static/media/image-editor/images/stickers/bubbles/84.png +0 -0
  384. package/static/media/image-editor/images/stickers/bubbles/85.png +0 -0
  385. package/static/media/image-editor/images/stickers/bubbles/86.png +0 -0
  386. package/static/media/image-editor/images/stickers/bubbles/87.png +0 -0
  387. package/static/media/image-editor/images/stickers/bubbles/88.png +0 -0
  388. package/static/media/image-editor/images/stickers/bubbles/89.png +0 -0
  389. package/static/media/image-editor/images/stickers/bubbles/9.png +0 -0
  390. package/static/media/image-editor/images/stickers/bubbles/90.png +0 -0
  391. package/static/media/image-editor/images/stickers/bubbles/91.png +0 -0
  392. package/static/media/image-editor/images/stickers/bubbles/92.png +0 -0
  393. package/static/media/image-editor/images/stickers/bubbles/93.png +0 -0
  394. package/static/media/image-editor/images/stickers/bubbles/94.png +0 -0
  395. package/static/media/image-editor/images/stickers/bubbles/95.png +0 -0
  396. package/static/media/image-editor/images/stickers/bubbles/96.png +0 -0
  397. package/static/media/image-editor/images/stickers/bubbles/97.png +0 -0
  398. package/static/media/image-editor/images/stickers/bubbles/98.png +0 -0
  399. package/static/media/image-editor/images/stickers/bubbles/99.png +0 -0
  400. package/static/media/image-editor/images/stickers/categories/beach.svg +18 -0
  401. package/static/media/image-editor/images/stickers/categories/clouds.svg +15 -0
  402. package/static/media/image-editor/images/stickers/categories/doodles.svg +13 -0
  403. package/static/media/image-editor/images/stickers/categories/emoticon.svg +10 -0
  404. package/static/media/image-editor/images/stickers/categories/landmark.svg +20 -0
  405. package/static/media/image-editor/images/stickers/categories/speech-bubble.svg +6 -0
  406. package/static/media/image-editor/images/stickers/categories/star.svg +6 -0
  407. package/static/media/image-editor/images/stickers/categories/transportation.svg +18 -0
  408. package/static/media/image-editor/images/stickers/clouds/0.png +0 -0
  409. package/static/media/image-editor/images/stickers/clouds/1.png +0 -0
  410. package/static/media/image-editor/images/stickers/clouds/10.png +0 -0
  411. package/static/media/image-editor/images/stickers/clouds/11.png +0 -0
  412. package/static/media/image-editor/images/stickers/clouds/12.png +0 -0
  413. package/static/media/image-editor/images/stickers/clouds/13.png +0 -0
  414. package/static/media/image-editor/images/stickers/clouds/14.png +0 -0
  415. package/static/media/image-editor/images/stickers/clouds/2.png +0 -0
  416. package/static/media/image-editor/images/stickers/clouds/3.png +0 -0
  417. package/static/media/image-editor/images/stickers/clouds/4.png +0 -0
  418. package/static/media/image-editor/images/stickers/clouds/5.png +0 -0
  419. package/static/media/image-editor/images/stickers/clouds/6.png +0 -0
  420. package/static/media/image-editor/images/stickers/clouds/7.png +0 -0
  421. package/static/media/image-editor/images/stickers/clouds/8.png +0 -0
  422. package/static/media/image-editor/images/stickers/clouds/9.png +0 -0
  423. package/static/media/image-editor/images/stickers/doodles/0.svg +201 -0
  424. package/static/media/image-editor/images/stickers/doodles/1.svg +255 -0
  425. package/static/media/image-editor/images/stickers/doodles/10.svg +160 -0
  426. package/static/media/image-editor/images/stickers/doodles/11.svg +393 -0
  427. package/static/media/image-editor/images/stickers/doodles/12.svg +293 -0
  428. package/static/media/image-editor/images/stickers/doodles/13.svg +251 -0
  429. package/static/media/image-editor/images/stickers/doodles/14.svg +370 -0
  430. package/static/media/image-editor/images/stickers/doodles/15.svg +194 -0
  431. package/static/media/image-editor/images/stickers/doodles/16.svg +383 -0
  432. package/static/media/image-editor/images/stickers/doodles/17.svg +346 -0
  433. package/static/media/image-editor/images/stickers/doodles/18.svg +286 -0
  434. package/static/media/image-editor/images/stickers/doodles/19.svg +241 -0
  435. package/static/media/image-editor/images/stickers/doodles/2.svg +227 -0
  436. package/static/media/image-editor/images/stickers/doodles/20.svg +330 -0
  437. package/static/media/image-editor/images/stickers/doodles/21.svg +200 -0
  438. package/static/media/image-editor/images/stickers/doodles/22.svg +308 -0
  439. package/static/media/image-editor/images/stickers/doodles/23.svg +518 -0
  440. package/static/media/image-editor/images/stickers/doodles/24.svg +207 -0
  441. package/static/media/image-editor/images/stickers/doodles/25.svg +260 -0
  442. package/static/media/image-editor/images/stickers/doodles/26.svg +380 -0
  443. package/static/media/image-editor/images/stickers/doodles/27.svg +222 -0
  444. package/static/media/image-editor/images/stickers/doodles/28.svg +164 -0
  445. package/static/media/image-editor/images/stickers/doodles/29.svg +271 -0
  446. package/static/media/image-editor/images/stickers/doodles/3.svg +272 -0
  447. package/static/media/image-editor/images/stickers/doodles/30.svg +283 -0
  448. package/static/media/image-editor/images/stickers/doodles/31.svg +257 -0
  449. package/static/media/image-editor/images/stickers/doodles/32.svg +276 -0
  450. package/static/media/image-editor/images/stickers/doodles/33.svg +198 -0
  451. package/static/media/image-editor/images/stickers/doodles/34.svg +314 -0
  452. package/static/media/image-editor/images/stickers/doodles/35.svg +236 -0
  453. package/static/media/image-editor/images/stickers/doodles/36.svg +273 -0
  454. package/static/media/image-editor/images/stickers/doodles/37.svg +284 -0
  455. package/static/media/image-editor/images/stickers/doodles/38.svg +167 -0
  456. package/static/media/image-editor/images/stickers/doodles/39.svg +381 -0
  457. package/static/media/image-editor/images/stickers/doodles/4.svg +216 -0
  458. package/static/media/image-editor/images/stickers/doodles/40.svg +198 -0
  459. package/static/media/image-editor/images/stickers/doodles/41.svg +259 -0
  460. package/static/media/image-editor/images/stickers/doodles/42.svg +371 -0
  461. package/static/media/image-editor/images/stickers/doodles/43.svg +198 -0
  462. package/static/media/image-editor/images/stickers/doodles/44.svg +174 -0
  463. package/static/media/image-editor/images/stickers/doodles/45.svg +178 -0
  464. package/static/media/image-editor/images/stickers/doodles/46.svg +211 -0
  465. package/static/media/image-editor/images/stickers/doodles/47.svg +195 -0
  466. package/static/media/image-editor/images/stickers/doodles/48.svg +293 -0
  467. package/static/media/image-editor/images/stickers/doodles/49.svg +191 -0
  468. package/static/media/image-editor/images/stickers/doodles/5.svg +179 -0
  469. package/static/media/image-editor/images/stickers/doodles/50.svg +323 -0
  470. package/static/media/image-editor/images/stickers/doodles/51.svg +308 -0
  471. package/static/media/image-editor/images/stickers/doodles/52.svg +162 -0
  472. package/static/media/image-editor/images/stickers/doodles/53.svg +263 -0
  473. package/static/media/image-editor/images/stickers/doodles/54.svg +175 -0
  474. package/static/media/image-editor/images/stickers/doodles/55.svg +177 -0
  475. package/static/media/image-editor/images/stickers/doodles/56.svg +160 -0
  476. package/static/media/image-editor/images/stickers/doodles/57.svg +115 -0
  477. package/static/media/image-editor/images/stickers/doodles/58.svg +327 -0
  478. package/static/media/image-editor/images/stickers/doodles/59.svg +197 -0
  479. package/static/media/image-editor/images/stickers/doodles/6.svg +388 -0
  480. package/static/media/image-editor/images/stickers/doodles/60.svg +414 -0
  481. package/static/media/image-editor/images/stickers/doodles/61.svg +287 -0
  482. package/static/media/image-editor/images/stickers/doodles/62.svg +193 -0
  483. package/static/media/image-editor/images/stickers/doodles/63.svg +329 -0
  484. package/static/media/image-editor/images/stickers/doodles/64.svg +150 -0
  485. package/static/media/image-editor/images/stickers/doodles/65.svg +275 -0
  486. package/static/media/image-editor/images/stickers/doodles/66.svg +174 -0
  487. package/static/media/image-editor/images/stickers/doodles/67.svg +343 -0
  488. package/static/media/image-editor/images/stickers/doodles/68.svg +242 -0
  489. package/static/media/image-editor/images/stickers/doodles/69.svg +160 -0
  490. package/static/media/image-editor/images/stickers/doodles/7.svg +194 -0
  491. package/static/media/image-editor/images/stickers/doodles/70.svg +365 -0
  492. package/static/media/image-editor/images/stickers/doodles/71.svg +454 -0
  493. package/static/media/image-editor/images/stickers/doodles/72.svg +162 -0
  494. package/static/media/image-editor/images/stickers/doodles/73.svg +393 -0
  495. package/static/media/image-editor/images/stickers/doodles/74.svg +206 -0
  496. package/static/media/image-editor/images/stickers/doodles/75.svg +275 -0
  497. package/static/media/image-editor/images/stickers/doodles/76.svg +350 -0
  498. package/static/media/image-editor/images/stickers/doodles/77.svg +323 -0
  499. package/static/media/image-editor/images/stickers/doodles/78.svg +316 -0
  500. package/static/media/image-editor/images/stickers/doodles/79.svg +503 -0
  501. package/static/media/image-editor/images/stickers/doodles/8.svg +185 -0
  502. package/static/media/image-editor/images/stickers/doodles/80.svg +235 -0
  503. package/static/media/image-editor/images/stickers/doodles/81.svg +184 -0
  504. package/static/media/image-editor/images/stickers/doodles/82.svg +246 -0
  505. package/static/media/image-editor/images/stickers/doodles/83.svg +125 -0
  506. package/static/media/image-editor/images/stickers/doodles/84.svg +168 -0
  507. package/static/media/image-editor/images/stickers/doodles/85.svg +138 -0
  508. package/static/media/image-editor/images/stickers/doodles/86.svg +223 -0
  509. package/static/media/image-editor/images/stickers/doodles/87.svg +475 -0
  510. package/static/media/image-editor/images/stickers/doodles/88.svg +172 -0
  511. package/static/media/image-editor/images/stickers/doodles/89.svg +199 -0
  512. package/static/media/image-editor/images/stickers/doodles/9.svg +368 -0
  513. package/static/media/image-editor/images/stickers/doodles/90.svg +298 -0
  514. package/static/media/image-editor/images/stickers/doodles/91.svg +176 -0
  515. package/static/media/image-editor/images/stickers/doodles/92.svg +152 -0
  516. package/static/media/image-editor/images/stickers/doodles/93.svg +206 -0
  517. package/static/media/image-editor/images/stickers/doodles/94.svg +202 -0
  518. package/static/media/image-editor/images/stickers/doodles/95.svg +114 -0
  519. package/static/media/image-editor/images/stickers/doodles/96.svg +149 -0
  520. package/static/media/image-editor/images/stickers/doodles/97.svg +197 -0
  521. package/static/media/image-editor/images/stickers/doodles/98.svg +397 -0
  522. package/static/media/image-editor/images/stickers/doodles/99.svg +502 -0
  523. package/static/media/image-editor/images/stickers/emoticons/afro-1.svg +122 -0
  524. package/static/media/image-editor/images/stickers/emoticons/afro.svg +85 -0
  525. package/static/media/image-editor/images/stickers/emoticons/agent.svg +114 -0
  526. package/static/media/image-editor/images/stickers/emoticons/alien-1.svg +60 -0
  527. package/static/media/image-editor/images/stickers/emoticons/alien.svg +64 -0
  528. package/static/media/image-editor/images/stickers/emoticons/angel.svg +47 -0
  529. package/static/media/image-editor/images/stickers/emoticons/angry-1.svg +83 -0
  530. package/static/media/image-editor/images/stickers/emoticons/angry-2.svg +48 -0
  531. package/static/media/image-editor/images/stickers/emoticons/angry-3.svg +45 -0
  532. package/static/media/image-editor/images/stickers/emoticons/angry-4.svg +52 -0
  533. package/static/media/image-editor/images/stickers/emoticons/angry-5.svg +62 -0
  534. package/static/media/image-editor/images/stickers/emoticons/angry.svg +78 -0
  535. package/static/media/image-editor/images/stickers/emoticons/arguing.svg +49 -0
  536. package/static/media/image-editor/images/stickers/emoticons/arrogant.svg +98 -0
  537. package/static/media/image-editor/images/stickers/emoticons/asian-1.svg +52 -0
  538. package/static/media/image-editor/images/stickers/emoticons/asian.svg +54 -0
  539. package/static/media/image-editor/images/stickers/emoticons/avatar.svg +49 -0
  540. package/static/media/image-editor/images/stickers/emoticons/baby-1.svg +51 -0
  541. package/static/media/image-editor/images/stickers/emoticons/baby-2.svg +54 -0
  542. package/static/media/image-editor/images/stickers/emoticons/baby.svg +66 -0
  543. package/static/media/image-editor/images/stickers/emoticons/bully.svg +68 -0
  544. package/static/media/image-editor/images/stickers/emoticons/burglar.svg +75 -0
  545. package/static/media/image-editor/images/stickers/emoticons/businessman.svg +52 -0
  546. package/static/media/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -0
  547. package/static/media/image-editor/images/stickers/emoticons/cheeky.svg +73 -0
  548. package/static/media/image-editor/images/stickers/emoticons/clown.svg +75 -0
  549. package/static/media/image-editor/images/stickers/emoticons/confused-1.svg +74 -0
  550. package/static/media/image-editor/images/stickers/emoticons/confused-2.svg +55 -0
  551. package/static/media/image-editor/images/stickers/emoticons/confused-3.svg +45 -0
  552. package/static/media/image-editor/images/stickers/emoticons/confused.svg +66 -0
  553. package/static/media/image-editor/images/stickers/emoticons/creepy.svg +60 -0
  554. package/static/media/image-editor/images/stickers/emoticons/crying-1.svg +55 -0
  555. package/static/media/image-editor/images/stickers/emoticons/crying-2.svg +83 -0
  556. package/static/media/image-editor/images/stickers/emoticons/crying-3.svg +53 -0
  557. package/static/media/image-editor/images/stickers/emoticons/crying.svg +59 -0
  558. package/static/media/image-editor/images/stickers/emoticons/dazed-1.svg +63 -0
  559. package/static/media/image-editor/images/stickers/emoticons/dazed-2.svg +51 -0
  560. package/static/media/image-editor/images/stickers/emoticons/dazed-3.svg +55 -0
  561. package/static/media/image-editor/images/stickers/emoticons/dazed.svg +56 -0
  562. package/static/media/image-editor/images/stickers/emoticons/dead-1.svg +61 -0
  563. package/static/media/image-editor/images/stickers/emoticons/dead-2.svg +80 -0
  564. package/static/media/image-editor/images/stickers/emoticons/dead-3.svg +66 -0
  565. package/static/media/image-editor/images/stickers/emoticons/dead-4.svg +54 -0
  566. package/static/media/image-editor/images/stickers/emoticons/dead-5.svg +52 -0
  567. package/static/media/image-editor/images/stickers/emoticons/dead-6.svg +53 -0
  568. package/static/media/image-editor/images/stickers/emoticons/dead.svg +54 -0
  569. package/static/media/image-editor/images/stickers/emoticons/desperate-1.svg +47 -0
  570. package/static/media/image-editor/images/stickers/emoticons/desperate.svg +75 -0
  571. package/static/media/image-editor/images/stickers/emoticons/detective.svg +75 -0
  572. package/static/media/image-editor/images/stickers/emoticons/dissapointment.svg +70 -0
  573. package/static/media/image-editor/images/stickers/emoticons/doctor.svg +61 -0
  574. package/static/media/image-editor/images/stickers/emoticons/drunk.svg +55 -0
  575. package/static/media/image-editor/images/stickers/emoticons/dumb.svg +50 -0
  576. package/static/media/image-editor/images/stickers/emoticons/emo-1.svg +104 -0
  577. package/static/media/image-editor/images/stickers/emoticons/emo-2.svg +111 -0
  578. package/static/media/image-editor/images/stickers/emoticons/emo.svg +56 -0
  579. package/static/media/image-editor/images/stickers/emoticons/emoticon.svg +84 -0
  580. package/static/media/image-editor/images/stickers/emoticons/evil.svg +59 -0
  581. package/static/media/image-editor/images/stickers/emoticons/faint-1.svg +75 -0
  582. package/static/media/image-editor/images/stickers/emoticons/faint.svg +84 -0
  583. package/static/media/image-editor/images/stickers/emoticons/flirt-1.svg +81 -0
  584. package/static/media/image-editor/images/stickers/emoticons/flirt-2.svg +68 -0
  585. package/static/media/image-editor/images/stickers/emoticons/flirt.svg +71 -0
  586. package/static/media/image-editor/images/stickers/emoticons/flirty.svg +60 -0
  587. package/static/media/image-editor/images/stickers/emoticons/gangster.svg +54 -0
  588. package/static/media/image-editor/images/stickers/emoticons/geek-1.svg +76 -0
  589. package/static/media/image-editor/images/stickers/emoticons/geek.svg +69 -0
  590. package/static/media/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -0
  591. package/static/media/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -0
  592. package/static/media/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -0
  593. package/static/media/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -0
  594. package/static/media/image-editor/images/stickers/emoticons/gentleman.svg +57 -0
  595. package/static/media/image-editor/images/stickers/emoticons/ginger.svg +55 -0
  596. package/static/media/image-editor/images/stickers/emoticons/girl-1.svg +70 -0
  597. package/static/media/image-editor/images/stickers/emoticons/girl.svg +73 -0
  598. package/static/media/image-editor/images/stickers/emoticons/goofy-1.svg +46 -0
  599. package/static/media/image-editor/images/stickers/emoticons/goofy-2.svg +79 -0
  600. package/static/media/image-editor/images/stickers/emoticons/goofy-3.svg +79 -0
  601. package/static/media/image-editor/images/stickers/emoticons/goofy-4.svg +46 -0
  602. package/static/media/image-editor/images/stickers/emoticons/goofy.svg +79 -0
  603. package/static/media/image-editor/images/stickers/emoticons/grubby-1.svg +114 -0
  604. package/static/media/image-editor/images/stickers/emoticons/grubby.svg +165 -0
  605. package/static/media/image-editor/images/stickers/emoticons/happy-1.svg +49 -0
  606. package/static/media/image-editor/images/stickers/emoticons/happy-10.svg +62 -0
  607. package/static/media/image-editor/images/stickers/emoticons/happy-11.svg +55 -0
  608. package/static/media/image-editor/images/stickers/emoticons/happy-12.svg +53 -0
  609. package/static/media/image-editor/images/stickers/emoticons/happy-13.svg +58 -0
  610. package/static/media/image-editor/images/stickers/emoticons/happy-14.svg +62 -0
  611. package/static/media/image-editor/images/stickers/emoticons/happy-15.svg +49 -0
  612. package/static/media/image-editor/images/stickers/emoticons/happy-16.svg +49 -0
  613. package/static/media/image-editor/images/stickers/emoticons/happy-2.svg +71 -0
  614. package/static/media/image-editor/images/stickers/emoticons/happy-3.svg +74 -0
  615. package/static/media/image-editor/images/stickers/emoticons/happy-4.svg +77 -0
  616. package/static/media/image-editor/images/stickers/emoticons/happy-5.svg +52 -0
  617. package/static/media/image-editor/images/stickers/emoticons/happy-6.svg +54 -0
  618. package/static/media/image-editor/images/stickers/emoticons/happy-7.svg +58 -0
  619. package/static/media/image-editor/images/stickers/emoticons/happy-8.svg +42 -0
  620. package/static/media/image-editor/images/stickers/emoticons/happy-9.svg +45 -0
  621. package/static/media/image-editor/images/stickers/emoticons/happy.svg +48 -0
  622. package/static/media/image-editor/images/stickers/emoticons/harry-potter.svg +68 -0
  623. package/static/media/image-editor/images/stickers/emoticons/heisenberg.svg +80 -0
  624. package/static/media/image-editor/images/stickers/emoticons/hipster-1.svg +118 -0
  625. package/static/media/image-editor/images/stickers/emoticons/hipster-2.svg +49 -0
  626. package/static/media/image-editor/images/stickers/emoticons/hipster.svg +48 -0
  627. package/static/media/image-editor/images/stickers/emoticons/in-love-1.svg +62 -0
  628. package/static/media/image-editor/images/stickers/emoticons/in-love-2.svg +48 -0
  629. package/static/media/image-editor/images/stickers/emoticons/in-love-3.svg +49 -0
  630. package/static/media/image-editor/images/stickers/emoticons/in-love-4.svg +50 -0
  631. package/static/media/image-editor/images/stickers/emoticons/in-love-5.svg +49 -0
  632. package/static/media/image-editor/images/stickers/emoticons/in-love-6.svg +53 -0
  633. package/static/media/image-editor/images/stickers/emoticons/in-love.svg +57 -0
  634. package/static/media/image-editor/images/stickers/emoticons/japan.svg +79 -0
  635. package/static/media/image-editor/images/stickers/emoticons/jew.svg +83 -0
  636. package/static/media/image-editor/images/stickers/emoticons/joyful-1.svg +72 -0
  637. package/static/media/image-editor/images/stickers/emoticons/joyful-2.svg +45 -0
  638. package/static/media/image-editor/images/stickers/emoticons/joyful.svg +47 -0
  639. package/static/media/image-editor/images/stickers/emoticons/kiss-1.svg +48 -0
  640. package/static/media/image-editor/images/stickers/emoticons/kiss-2.svg +59 -0
  641. package/static/media/image-editor/images/stickers/emoticons/kiss-3.svg +53 -0
  642. package/static/media/image-editor/images/stickers/emoticons/kiss-4.svg +59 -0
  643. package/static/media/image-editor/images/stickers/emoticons/kiss.svg +67 -0
  644. package/static/media/image-editor/images/stickers/emoticons/laughing-1.svg +54 -0
  645. package/static/media/image-editor/images/stickers/emoticons/laughing-2.svg +57 -0
  646. package/static/media/image-editor/images/stickers/emoticons/laughing-3.svg +55 -0
  647. package/static/media/image-editor/images/stickers/emoticons/laughing.svg +56 -0
  648. package/static/media/image-editor/images/stickers/emoticons/listening.svg +55 -0
  649. package/static/media/image-editor/images/stickers/emoticons/love.svg +74 -0
  650. package/static/media/image-editor/images/stickers/emoticons/manly.svg +75 -0
  651. package/static/media/image-editor/images/stickers/emoticons/miserly-1.svg +90 -0
  652. package/static/media/image-editor/images/stickers/emoticons/miserly.svg +82 -0
  653. package/static/media/image-editor/images/stickers/emoticons/nerd-1.svg +88 -0
  654. package/static/media/image-editor/images/stickers/emoticons/nerd-2.svg +73 -0
  655. package/static/media/image-editor/images/stickers/emoticons/nerd-3.svg +60 -0
  656. package/static/media/image-editor/images/stickers/emoticons/nerd-4.svg +70 -0
  657. package/static/media/image-editor/images/stickers/emoticons/nerd.svg +88 -0
  658. package/static/media/image-editor/images/stickers/emoticons/ninja.svg +51 -0
  659. package/static/media/image-editor/images/stickers/emoticons/pirate-1.svg +92 -0
  660. package/static/media/image-editor/images/stickers/emoticons/pirate-2.svg +48 -0
  661. package/static/media/image-editor/images/stickers/emoticons/pirate.svg +286 -0
  662. package/static/media/image-editor/images/stickers/emoticons/punk-1.svg +134 -0
  663. package/static/media/image-editor/images/stickers/emoticons/punk-2.svg +153 -0
  664. package/static/media/image-editor/images/stickers/emoticons/punk.svg +82 -0
  665. package/static/media/image-editor/images/stickers/emoticons/rapper.svg +51 -0
  666. package/static/media/image-editor/images/stickers/emoticons/relieved.svg +56 -0
  667. package/static/media/image-editor/images/stickers/emoticons/rich-1.svg +59 -0
  668. package/static/media/image-editor/images/stickers/emoticons/rich-2.svg +93 -0
  669. package/static/media/image-editor/images/stickers/emoticons/rich.svg +88 -0
  670. package/static/media/image-editor/images/stickers/emoticons/rockstar.svg +177 -0
  671. package/static/media/image-editor/images/stickers/emoticons/sad-1.svg +43 -0
  672. package/static/media/image-editor/images/stickers/emoticons/sad-2.svg +49 -0
  673. package/static/media/image-editor/images/stickers/emoticons/sad-3.svg +49 -0
  674. package/static/media/image-editor/images/stickers/emoticons/sad-4.svg +49 -0
  675. package/static/media/image-editor/images/stickers/emoticons/sad-5.svg +45 -0
  676. package/static/media/image-editor/images/stickers/emoticons/sad-6.svg +47 -0
  677. package/static/media/image-editor/images/stickers/emoticons/sad.svg +47 -0
  678. package/static/media/image-editor/images/stickers/emoticons/scared-1.svg +79 -0
  679. package/static/media/image-editor/images/stickers/emoticons/scared-2.svg +59 -0
  680. package/static/media/image-editor/images/stickers/emoticons/scared-3.svg +52 -0
  681. package/static/media/image-editor/images/stickers/emoticons/scared.svg +45 -0
  682. package/static/media/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -0
  683. package/static/media/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -0
  684. package/static/media/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -0
  685. package/static/media/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -0
  686. package/static/media/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -0
  687. package/static/media/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -0
  688. package/static/media/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -0
  689. package/static/media/image-editor/images/stickers/emoticons/sceptic.svg +44 -0
  690. package/static/media/image-editor/images/stickers/emoticons/secret.svg +48 -0
  691. package/static/media/image-editor/images/stickers/emoticons/shocked-1.svg +67 -0
  692. package/static/media/image-editor/images/stickers/emoticons/shocked-2.svg +44 -0
  693. package/static/media/image-editor/images/stickers/emoticons/shocked-3.svg +48 -0
  694. package/static/media/image-editor/images/stickers/emoticons/shocked.svg +46 -0
  695. package/static/media/image-editor/images/stickers/emoticons/sick-1.svg +55 -0
  696. package/static/media/image-editor/images/stickers/emoticons/sick-2.svg +48 -0
  697. package/static/media/image-editor/images/stickers/emoticons/sick-3.svg +49 -0
  698. package/static/media/image-editor/images/stickers/emoticons/sick-4.svg +52 -0
  699. package/static/media/image-editor/images/stickers/emoticons/sick.svg +52 -0
  700. package/static/media/image-editor/images/stickers/emoticons/silent.svg +43 -0
  701. package/static/media/image-editor/images/stickers/emoticons/skeleton.svg +64 -0
  702. package/static/media/image-editor/images/stickers/emoticons/smile.svg +43 -0
  703. package/static/media/image-editor/images/stickers/emoticons/smiling-1.svg +47 -0
  704. package/static/media/image-editor/images/stickers/emoticons/smiling.svg +75 -0
  705. package/static/media/image-editor/images/stickers/emoticons/smoked.svg +131 -0
  706. package/static/media/image-editor/images/stickers/emoticons/smug-1.svg +74 -0
  707. package/static/media/image-editor/images/stickers/emoticons/smug-2.svg +82 -0
  708. package/static/media/image-editor/images/stickers/emoticons/smug-3.svg +71 -0
  709. package/static/media/image-editor/images/stickers/emoticons/smug-4.svg +50 -0
  710. package/static/media/image-editor/images/stickers/emoticons/smug-5.svg +64 -0
  711. package/static/media/image-editor/images/stickers/emoticons/smug-6.svg +82 -0
  712. package/static/media/image-editor/images/stickers/emoticons/smug.svg +96 -0
  713. package/static/media/image-editor/images/stickers/emoticons/sporty.svg +68 -0
  714. package/static/media/image-editor/images/stickers/emoticons/stunned.svg +72 -0
  715. package/static/media/image-editor/images/stickers/emoticons/superhero-1.svg +60 -0
  716. package/static/media/image-editor/images/stickers/emoticons/superhero-2.svg +47 -0
  717. package/static/media/image-editor/images/stickers/emoticons/superhero-3.svg +48 -0
  718. package/static/media/image-editor/images/stickers/emoticons/superhero-4.svg +52 -0
  719. package/static/media/image-editor/images/stickers/emoticons/superhero.svg +45 -0
  720. package/static/media/image-editor/images/stickers/emoticons/surprised-1.svg +47 -0
  721. package/static/media/image-editor/images/stickers/emoticons/surprised.svg +58 -0
  722. package/static/media/image-editor/images/stickers/emoticons/thinking.svg +43 -0
  723. package/static/media/image-editor/images/stickers/emoticons/tired-1.svg +78 -0
  724. package/static/media/image-editor/images/stickers/emoticons/tired-2.svg +65 -0
  725. package/static/media/image-editor/images/stickers/emoticons/tired-3.svg +59 -0
  726. package/static/media/image-editor/images/stickers/emoticons/tired.svg +83 -0
  727. package/static/media/image-editor/images/stickers/emoticons/tough-1.svg +65 -0
  728. package/static/media/image-editor/images/stickers/emoticons/tough.svg +158 -0
  729. package/static/media/image-editor/images/stickers/emoticons/trendy.svg +57 -0
  730. package/static/media/image-editor/images/stickers/emoticons/vampire-1.svg +56 -0
  731. package/static/media/image-editor/images/stickers/emoticons/vampire.svg +59 -0
  732. package/static/media/image-editor/images/stickers/emoticons/wink-1.svg +54 -0
  733. package/static/media/image-editor/images/stickers/emoticons/wink-2.svg +64 -0
  734. package/static/media/image-editor/images/stickers/emoticons/wink.svg +73 -0
  735. package/static/media/image-editor/images/stickers/emoticons/winking-1.svg +52 -0
  736. package/static/media/image-editor/images/stickers/emoticons/winking.svg +43 -0
  737. package/static/media/image-editor/images/stickers/emoticons/yawning-1.svg +62 -0
  738. package/static/media/image-editor/images/stickers/emoticons/yawning-2.svg +51 -0
  739. package/static/media/image-editor/images/stickers/emoticons/yawning-3.svg +51 -0
  740. package/static/media/image-editor/images/stickers/emoticons/yawning.svg +73 -0
  741. package/static/media/image-editor/images/stickers/emoticons/yelling.svg +80 -0
  742. package/static/media/image-editor/images/stickers/emoticons/zombie.svg +65 -0
  743. package/static/media/image-editor/images/stickers/landmarks/0.svg +38 -0
  744. package/static/media/image-editor/images/stickers/landmarks/1.svg +46 -0
  745. package/static/media/image-editor/images/stickers/landmarks/10.svg +18 -0
  746. package/static/media/image-editor/images/stickers/landmarks/11.svg +81 -0
  747. package/static/media/image-editor/images/stickers/landmarks/12.svg +77 -0
  748. package/static/media/image-editor/images/stickers/landmarks/13.svg +42 -0
  749. package/static/media/image-editor/images/stickers/landmarks/14.svg +78 -0
  750. package/static/media/image-editor/images/stickers/landmarks/15.svg +84 -0
  751. package/static/media/image-editor/images/stickers/landmarks/16.svg +87 -0
  752. package/static/media/image-editor/images/stickers/landmarks/17.svg +60 -0
  753. package/static/media/image-editor/images/stickers/landmarks/18.svg +30 -0
  754. package/static/media/image-editor/images/stickers/landmarks/19.svg +36 -0
  755. package/static/media/image-editor/images/stickers/landmarks/2.svg +28 -0
  756. package/static/media/image-editor/images/stickers/landmarks/20.svg +137 -0
  757. package/static/media/image-editor/images/stickers/landmarks/21.svg +63 -0
  758. package/static/media/image-editor/images/stickers/landmarks/22.svg +26 -0
  759. package/static/media/image-editor/images/stickers/landmarks/23.svg +52 -0
  760. package/static/media/image-editor/images/stickers/landmarks/24.svg +56 -0
  761. package/static/media/image-editor/images/stickers/landmarks/25.svg +40 -0
  762. package/static/media/image-editor/images/stickers/landmarks/26.svg +34 -0
  763. package/static/media/image-editor/images/stickers/landmarks/27.svg +32 -0
  764. package/static/media/image-editor/images/stickers/landmarks/28.svg +19 -0
  765. package/static/media/image-editor/images/stickers/landmarks/29.svg +23 -0
  766. package/static/media/image-editor/images/stickers/landmarks/3.svg +36 -0
  767. package/static/media/image-editor/images/stickers/landmarks/30.svg +36 -0
  768. package/static/media/image-editor/images/stickers/landmarks/31.svg +27 -0
  769. package/static/media/image-editor/images/stickers/landmarks/32.svg +25 -0
  770. package/static/media/image-editor/images/stickers/landmarks/33.svg +29 -0
  771. package/static/media/image-editor/images/stickers/landmarks/34.svg +72 -0
  772. package/static/media/image-editor/images/stickers/landmarks/35.svg +18 -0
  773. package/static/media/image-editor/images/stickers/landmarks/36.svg +45 -0
  774. package/static/media/image-editor/images/stickers/landmarks/37.svg +46 -0
  775. package/static/media/image-editor/images/stickers/landmarks/38.svg +44 -0
  776. package/static/media/image-editor/images/stickers/landmarks/39.svg +23 -0
  777. package/static/media/image-editor/images/stickers/landmarks/4.svg +33 -0
  778. package/static/media/image-editor/images/stickers/landmarks/40.svg +25 -0
  779. package/static/media/image-editor/images/stickers/landmarks/41.svg +69 -0
  780. package/static/media/image-editor/images/stickers/landmarks/42.svg +75 -0
  781. package/static/media/image-editor/images/stickers/landmarks/43.svg +44 -0
  782. package/static/media/image-editor/images/stickers/landmarks/44.svg +65 -0
  783. package/static/media/image-editor/images/stickers/landmarks/45.svg +19 -0
  784. package/static/media/image-editor/images/stickers/landmarks/46.svg +47 -0
  785. package/static/media/image-editor/images/stickers/landmarks/47.svg +544 -0
  786. package/static/media/image-editor/images/stickers/landmarks/48.svg +162 -0
  787. package/static/media/image-editor/images/stickers/landmarks/49.svg +70 -0
  788. package/static/media/image-editor/images/stickers/landmarks/5.svg +36 -0
  789. package/static/media/image-editor/images/stickers/landmarks/50.svg +52 -0
  790. package/static/media/image-editor/images/stickers/landmarks/51.svg +110 -0
  791. package/static/media/image-editor/images/stickers/landmarks/52.svg +41 -0
  792. package/static/media/image-editor/images/stickers/landmarks/53.svg +74 -0
  793. package/static/media/image-editor/images/stickers/landmarks/54.svg +36 -0
  794. package/static/media/image-editor/images/stickers/landmarks/55.svg +84 -0
  795. package/static/media/image-editor/images/stickers/landmarks/56.svg +93 -0
  796. package/static/media/image-editor/images/stickers/landmarks/57.svg +67 -0
  797. package/static/media/image-editor/images/stickers/landmarks/58.svg +101 -0
  798. package/static/media/image-editor/images/stickers/landmarks/59.svg +47 -0
  799. package/static/media/image-editor/images/stickers/landmarks/6.svg +59 -0
  800. package/static/media/image-editor/images/stickers/landmarks/60.svg +134 -0
  801. package/static/media/image-editor/images/stickers/landmarks/61.svg +79 -0
  802. package/static/media/image-editor/images/stickers/landmarks/62.svg +43 -0
  803. package/static/media/image-editor/images/stickers/landmarks/63.svg +83 -0
  804. package/static/media/image-editor/images/stickers/landmarks/64.svg +99 -0
  805. package/static/media/image-editor/images/stickers/landmarks/65.svg +79 -0
  806. package/static/media/image-editor/images/stickers/landmarks/66.svg +37 -0
  807. package/static/media/image-editor/images/stickers/landmarks/67.svg +82 -0
  808. package/static/media/image-editor/images/stickers/landmarks/68.svg +216 -0
  809. package/static/media/image-editor/images/stickers/landmarks/69.svg +17 -0
  810. package/static/media/image-editor/images/stickers/landmarks/7.svg +16 -0
  811. package/static/media/image-editor/images/stickers/landmarks/70.svg +45 -0
  812. package/static/media/image-editor/images/stickers/landmarks/71.svg +37 -0
  813. package/static/media/image-editor/images/stickers/landmarks/72.svg +28 -0
  814. package/static/media/image-editor/images/stickers/landmarks/73.svg +25 -0
  815. package/static/media/image-editor/images/stickers/landmarks/74.svg +23 -0
  816. package/static/media/image-editor/images/stickers/landmarks/75.svg +88 -0
  817. package/static/media/image-editor/images/stickers/landmarks/76.svg +25 -0
  818. package/static/media/image-editor/images/stickers/landmarks/77.svg +23 -0
  819. package/static/media/image-editor/images/stickers/landmarks/78.svg +63 -0
  820. package/static/media/image-editor/images/stickers/landmarks/79.svg +25 -0
  821. package/static/media/image-editor/images/stickers/landmarks/8.svg +52 -0
  822. package/static/media/image-editor/images/stickers/landmarks/80.svg +29 -0
  823. package/static/media/image-editor/images/stickers/landmarks/81.svg +44 -0
  824. package/static/media/image-editor/images/stickers/landmarks/82.svg +83 -0
  825. package/static/media/image-editor/images/stickers/landmarks/83.svg +65 -0
  826. package/static/media/image-editor/images/stickers/landmarks/84.svg +31 -0
  827. package/static/media/image-editor/images/stickers/landmarks/85.svg +30 -0
  828. package/static/media/image-editor/images/stickers/landmarks/86.svg +26 -0
  829. package/static/media/image-editor/images/stickers/landmarks/87.svg +132 -0
  830. package/static/media/image-editor/images/stickers/landmarks/88.svg +93 -0
  831. package/static/media/image-editor/images/stickers/landmarks/89.svg +91 -0
  832. package/static/media/image-editor/images/stickers/landmarks/9.svg +70 -0
  833. package/static/media/image-editor/images/stickers/landmarks/90.svg +65 -0
  834. package/static/media/image-editor/images/stickers/landmarks/91.svg +36 -0
  835. package/static/media/image-editor/images/stickers/landmarks/92.svg +66 -0
  836. package/static/media/image-editor/images/stickers/landmarks/93.svg +65 -0
  837. package/static/media/image-editor/images/stickers/landmarks/94.svg +28 -0
  838. package/static/media/image-editor/images/stickers/landmarks/95.svg +31 -0
  839. package/static/media/image-editor/images/stickers/landmarks/96.svg +25 -0
  840. package/static/media/image-editor/images/stickers/landmarks/97.svg +31 -0
  841. package/static/media/image-editor/images/stickers/landmarks/98.svg +52 -0
  842. package/static/media/image-editor/images/stickers/landmarks/99.svg +56 -0
  843. package/static/media/image-editor/images/stickers/stars/0.png +0 -0
  844. package/static/media/image-editor/images/stickers/stars/1.png +0 -0
  845. package/static/media/image-editor/images/stickers/stars/2.png +0 -0
  846. package/static/media/image-editor/images/stickers/stars/3.png +0 -0
  847. package/static/media/image-editor/images/stickers/stars/4.png +0 -0
  848. package/static/media/image-editor/images/stickers/stars/5.png +0 -0
  849. package/static/media/image-editor/images/stickers/transportation/0.svg +26 -0
  850. package/static/media/image-editor/images/stickers/transportation/1.svg +10 -0
  851. package/static/media/image-editor/images/stickers/transportation/10.svg +16 -0
  852. package/static/media/image-editor/images/stickers/transportation/11.svg +30 -0
  853. package/static/media/image-editor/images/stickers/transportation/12.svg +22 -0
  854. package/static/media/image-editor/images/stickers/transportation/13.svg +24 -0
  855. package/static/media/image-editor/images/stickers/transportation/14.svg +19 -0
  856. package/static/media/image-editor/images/stickers/transportation/15.svg +23 -0
  857. package/static/media/image-editor/images/stickers/transportation/16.svg +25 -0
  858. package/static/media/image-editor/images/stickers/transportation/17.svg +34 -0
  859. package/static/media/image-editor/images/stickers/transportation/18.svg +29 -0
  860. package/static/media/image-editor/images/stickers/transportation/19.svg +24 -0
  861. package/static/media/image-editor/images/stickers/transportation/2.svg +27 -0
  862. package/static/media/image-editor/images/stickers/transportation/20.svg +25 -0
  863. package/static/media/image-editor/images/stickers/transportation/21.svg +22 -0
  864. package/static/media/image-editor/images/stickers/transportation/3.svg +18 -0
  865. package/static/media/image-editor/images/stickers/transportation/4.svg +24 -0
  866. package/static/media/image-editor/images/stickers/transportation/5.svg +15 -0
  867. package/static/media/image-editor/images/stickers/transportation/6.svg +25 -0
  868. package/static/media/image-editor/images/stickers/transportation/7.svg +17 -0
  869. package/static/media/image-editor/images/stickers/transportation/8.svg +28 -0
  870. package/static/media/image-editor/images/stickers/transportation/9.svg +23 -0
  871. package/static/media/image-editor/images/textures/0.png +0 -0
  872. package/static/media/image-editor/images/textures/1.png +0 -0
  873. package/static/media/image-editor/images/textures/10.png +0 -0
  874. package/static/media/image-editor/images/textures/11.png +0 -0
  875. package/static/media/image-editor/images/textures/12.png +0 -0
  876. package/static/media/image-editor/images/textures/13.png +0 -0
  877. package/static/media/image-editor/images/textures/14.png +0 -0
  878. package/static/media/image-editor/images/textures/15.png +0 -0
  879. package/static/media/image-editor/images/textures/16.png +0 -0
  880. package/static/media/image-editor/images/textures/17.png +0 -0
  881. package/static/media/image-editor/images/textures/18.png +0 -0
  882. package/static/media/image-editor/images/textures/19.png +0 -0
  883. package/static/media/image-editor/images/textures/2.png +0 -0
  884. package/static/media/image-editor/images/textures/20.png +0 -0
  885. package/static/media/image-editor/images/textures/21.png +0 -0
  886. package/static/media/image-editor/images/textures/22.png +0 -0
  887. package/static/media/image-editor/images/textures/23.png +0 -0
  888. package/static/media/image-editor/images/textures/24.png +0 -0
  889. package/static/media/image-editor/images/textures/25.png +0 -0
  890. package/static/media/image-editor/images/textures/26.png +0 -0
  891. package/static/media/image-editor/images/textures/27.png +0 -0
  892. package/static/media/image-editor/images/textures/28.png +0 -0
  893. package/static/media/image-editor/images/textures/3.png +0 -0
  894. package/static/media/image-editor/images/textures/4.png +0 -0
  895. package/static/media/image-editor/images/textures/5.png +0 -0
  896. package/static/media/image-editor/images/textures/6.png +0 -0
  897. package/static/media/image-editor/images/textures/7.png +0 -0
  898. package/static/media/image-editor/images/textures/8.png +0 -0
  899. package/static/media/image-editor/images/textures/9.png +0 -0
  900. package/translations.pot +213 -187
  901. package/iframe/iframe-eblock.441a4dbc4384f20fcf1e.html +0 -1
  902. package/iframe/iframe.441a4dbc4384f20fcf1e.html +0 -1
  903. package/iframe/js/330.66aee569.js +0 -1
  904. package/static/css/57.c4280089.chunk.css +0 -1
  905. package/static/js/1303.92cc3c9c.js +0 -2
  906. package/static/js/1538.21a548bd.chunk.js +0 -2
  907. package/static/js/207.2a052cc2.js +0 -2
  908. package/static/js/2624.5a8b68ca.js +0 -2
  909. package/static/js/2854.da9b4ca6.js +0 -2
  910. package/static/js/3017.102adc4c.chunk.js +0 -1
  911. package/static/js/3065.c2b60870.js +0 -2
  912. package/static/js/57.3e1e762a.chunk.js +0 -1
  913. package/static/js/6798.dafe22c0.chunk.js +0 -2
  914. package/static/js/84.25bf13c1.chunk.js +0 -1
  915. package/static/js/8473.88a48c70.chunk.js +0 -2
  916. package/static/js/9960.6fbe3e6d.chunk.js +0 -2
  917. package/static/js/9981.0f3d1218.js +0 -1
  918. package/static/js/ant-locale/locale-ar_EG-js.a068e3a8.chunk.js +0 -1
  919. package/static/js/ant-locale/locale-az_AZ-js.b84a560f.chunk.js +0 -1
  920. package/static/js/ant-locale/locale-bg_BG-js.3d7c7e4f.chunk.js +0 -1
  921. package/static/js/ant-locale/locale-bn_BD-js.dd1a7e84.chunk.js +0 -1
  922. package/static/js/ant-locale/locale-by_BY-js.49b7fc6b.chunk.js +0 -1
  923. package/static/js/ant-locale/locale-ca_ES-js.24fe4aef.chunk.js +0 -1
  924. package/static/js/ant-locale/locale-cs_CZ-js.1e90fb24.chunk.js +0 -1
  925. package/static/js/ant-locale/locale-da_DK-js.61788209.chunk.js +0 -1
  926. package/static/js/ant-locale/locale-de_DE-js.8e7fdd44.chunk.js +0 -1
  927. package/static/js/ant-locale/locale-el_GR-js.6c5e0839.chunk.js +0 -1
  928. package/static/js/ant-locale/locale-en_GB-js.92cc4647.chunk.js +0 -1
  929. package/static/js/ant-locale/locale-es_ES-js.a31d70e0.chunk.js +0 -1
  930. package/static/js/ant-locale/locale-et_EE-js.337814a0.chunk.js +0 -1
  931. package/static/js/ant-locale/locale-eu_ES-js.18f1c965.chunk.js +0 -1
  932. package/static/js/ant-locale/locale-fa_IR-js.f0f50266.chunk.js +0 -1
  933. package/static/js/ant-locale/locale-fi_FI-js.e2e08d8a.chunk.js +0 -1
  934. package/static/js/ant-locale/locale-fr_BE-js.2e2298ab.chunk.js +0 -1
  935. package/static/js/ant-locale/locale-fr_CA-js.b2f59d9c.chunk.js +0 -1
  936. package/static/js/ant-locale/locale-fr_FR-js.5d07a79a.chunk.js +0 -1
  937. package/static/js/ant-locale/locale-ga_IE-js.afa510f9.chunk.js +0 -1
  938. package/static/js/ant-locale/locale-gl_ES-js.72e19ffc.chunk.js +0 -1
  939. package/static/js/ant-locale/locale-he_IL-js.47b71730.chunk.js +0 -1
  940. package/static/js/ant-locale/locale-hi_IN-js.7af15f51.chunk.js +0 -1
  941. package/static/js/ant-locale/locale-hr_HR-js.4ebb11e0.chunk.js +0 -1
  942. package/static/js/ant-locale/locale-hu_HU-js.ecde5d7e.chunk.js +0 -1
  943. package/static/js/ant-locale/locale-hy_AM-js.15e07ba1.chunk.js +0 -1
  944. package/static/js/ant-locale/locale-id_ID-js.ab0888b9.chunk.js +0 -1
  945. package/static/js/ant-locale/locale-is_IS-js.fdbfc750.chunk.js +0 -1
  946. package/static/js/ant-locale/locale-it_IT-js.59a531ef.chunk.js +0 -1
  947. package/static/js/ant-locale/locale-ja_JP-js.7870613a.chunk.js +0 -1
  948. package/static/js/ant-locale/locale-ka_GE-js.853f3af0.chunk.js +0 -1
  949. package/static/js/ant-locale/locale-kk_KZ-js.5fdcc75b.chunk.js +0 -1
  950. package/static/js/ant-locale/locale-km_KH-js.988792d2.chunk.js +0 -1
  951. package/static/js/ant-locale/locale-kn_IN-js.5fbd9645.chunk.js +0 -1
  952. package/static/js/ant-locale/locale-ko_KR-js.07676057.chunk.js +0 -1
  953. package/static/js/ant-locale/locale-ku_IQ-js.8d56188e.chunk.js +0 -1
  954. package/static/js/ant-locale/locale-lt_LT-js.976c50a6.chunk.js +0 -1
  955. package/static/js/ant-locale/locale-lv_LV-js.d2b7eb7a.chunk.js +0 -1
  956. package/static/js/ant-locale/locale-mk_MK-js.1a324243.chunk.js +0 -1
  957. package/static/js/ant-locale/locale-ml_IN-js.9ca0875e.chunk.js +0 -1
  958. package/static/js/ant-locale/locale-mn_MN-js.e5c5e6b3.chunk.js +0 -1
  959. package/static/js/ant-locale/locale-ms_MY-js.68d51cfa.chunk.js +0 -1
  960. package/static/js/ant-locale/locale-my_MM-js.1d798fbf.chunk.js +0 -1
  961. package/static/js/ant-locale/locale-nb_NO-js.85b15451.chunk.js +0 -1
  962. package/static/js/ant-locale/locale-ne_NP-js.db143616.chunk.js +0 -1
  963. package/static/js/ant-locale/locale-nl_BE-js.71247744.chunk.js +0 -1
  964. package/static/js/ant-locale/locale-nl_NL-js.26845b27.chunk.js +0 -1
  965. package/static/js/ant-locale/locale-pl_PL-js.44a62852.chunk.js +0 -1
  966. package/static/js/ant-locale/locale-pt_BR-js.17328a86.chunk.js +0 -1
  967. package/static/js/ant-locale/locale-pt_PT-js.05d4d804.chunk.js +0 -1
  968. package/static/js/ant-locale/locale-ro_RO-js.3e1e40bb.chunk.js +0 -1
  969. package/static/js/ant-locale/locale-si_LK-js.facbc144.chunk.js +0 -1
  970. package/static/js/ant-locale/locale-sk_SK-js.32bd8996.chunk.js +0 -1
  971. package/static/js/ant-locale/locale-sl_SI-js.f054d794.chunk.js +0 -1
  972. package/static/js/ant-locale/locale-sr_RS-js.317370b5.chunk.js +0 -1
  973. package/static/js/ant-locale/locale-sv_SE-js.ecd8298d.chunk.js +0 -1
  974. package/static/js/ant-locale/locale-ta_IN-js.ee264565.chunk.js +0 -1
  975. package/static/js/ant-locale/locale-th_TH-js.f1d32c8f.chunk.js +0 -1
  976. package/static/js/ant-locale/locale-tk_TK-js.015ee01f.chunk.js +0 -1
  977. package/static/js/ant-locale/locale-tr_TR-js.4c6d775a.chunk.js +0 -1
  978. package/static/js/ant-locale/locale-uk_UA-js.cef1c751.chunk.js +0 -1
  979. package/static/js/ant-locale/locale-ur_PK-js.b5d52218.chunk.js +0 -1
  980. package/static/js/ant-locale/locale-vi_VN-js.c5140ea5.chunk.js +0 -1
  981. package/static/js/ant-locale/locale-zh_CN-js.861c7ef0.chunk.js +0 -1
  982. package/static/js/ant-locale/locale-zh_HK-js.ca14eb1f.chunk.js +0 -1
  983. package/static/js/ant-locale/locale-zh_TW-js.69bb4746.chunk.js +0 -1
  984. package/static/js/emailmaker_core.8a6332f2.js +0 -2
  985. package/static/js/mergeTags/locale0.24c6e2da.chunk.js +0 -1
  986. package/static/js/mergeTags/locale1.24fd0fd2.chunk.js +0 -1
  987. /package/iframe/js/{330.66aee569.js.LICENSE.txt → 330.dbf1fdc6.js.LICENSE.txt} +0 -0
  988. /package/static/js/{1169.baef237c.chunk.js.LICENSE.txt → 1169.e603dac9.js.LICENSE.txt} +0 -0
  989. /package/static/js/{1538.21a548bd.chunk.js.LICENSE.txt → 1538.b373152b.js.LICENSE.txt} +0 -0
  990. /package/static/js/{1729.a0be903e.chunk.js → 1729.a0be903e.js} +0 -0
  991. /package/static/js/{1880.5668de7d.chunk.js → 1880.5668de7d.js} +0 -0
  992. /package/static/js/{2624.5a8b68ca.js.LICENSE.txt → 2624.bd9fb60d.js.LICENSE.txt} +0 -0
  993. /package/static/js/{2642.b60a63f6.chunk.js → 2642.b60a63f6.js} +0 -0
  994. /package/static/js/{3019.8534e1e7.chunk.js.LICENSE.txt → 3019.b5f316a5.js.LICENSE.txt} +0 -0
  995. /package/static/js/{3085.bcc62ca0.chunk.js.LICENSE.txt → 3085.0ddbb320.js.LICENSE.txt} +0 -0
  996. /package/static/js/{1303.92cc3c9c.js.LICENSE.txt → 3473.9675b9a4.js.LICENSE.txt} +0 -0
  997. /package/static/js/{4309.6c1989bb.chunk.js → 4309.6c1989bb.js} +0 -0
  998. /package/static/js/{6144.a3bf0881.chunk.js.LICENSE.txt → 6144.5d2c141c.js.LICENSE.txt} +0 -0
  999. /package/static/js/{2854.da9b4ca6.js.LICENSE.txt → 6655.916a14d0.js.LICENSE.txt} +0 -0
  1000. /package/static/js/{3065.c2b60870.js.LICENSE.txt → 6798.27a16445.js.LICENSE.txt} +0 -0
  1001. /package/static/js/{6801.562ec824.chunk.js.LICENSE.txt → 6801.1e4f4807.js.LICENSE.txt} +0 -0
  1002. /package/static/js/{6819.16ca9581.chunk.js.LICENSE.txt → 6819.c2bea9e8.js.LICENSE.txt} +0 -0
  1003. /package/static/js/{6957.7ea22637.chunk.js → 6957.7ea22637.js} +0 -0
  1004. /package/static/js/{7463.51929d73.chunk.js.LICENSE.txt → 7463.45a04221.js.LICENSE.txt} +0 -0
  1005. /package/static/js/{6798.dafe22c0.chunk.js.LICENSE.txt → 7969.c6c6b44d.js.LICENSE.txt} +0 -0
  1006. /package/static/js/{8521.0e5efd08.chunk.js.LICENSE.txt → 8521.e891fa18.js.LICENSE.txt} +0 -0
  1007. /package/static/js/{9644.eb778968.chunk.js.LICENSE.txt → 9644.c8707a98.js.LICENSE.txt} +0 -0
  1008. /package/static/js/{emailmaker_core.8a6332f2.js.LICENSE.txt → emailmaker_core.f804119f.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[84],{6239:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-viewport-require",description:'<meta name="viewport"> with non-blank content must be present in <head> tag.',init(e,t){let n=!1,r=!1,i="",o=null;e.addListener("tagstart",t=>{const s=t.tagName.toLowerCase();if("head"===s)n=!0,o=t;else if("meta"===s){const n=e.getMapAttrs(t.attrs);n.name&&"viewport"===n.name.toLowerCase()&&(r=!0,i=n.content||"")}}),e.addListener("end",()=>{n&&o&&(r?""===i.trim()&&t.error('<meta name="viewport"> content attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<meta name="viewport"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},7686:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"space-tab-mixed-disabled",description:"Do not mix tabs and spaces for indentation.",init(e,t,n){let r="nomix",i=null;if("string"===typeof n){const e=/^([a-z]+)(\d+)?/.exec(n);e&&(r=e[1],i=e[2]&&parseInt(e[2],10))}e.addListener("text",n=>{const o=n.raw,s=/(^|\r?\n)([ \t]+)/g;let a;for(;a=s.exec(o);){const o=e.fixPos(n,a.index+a[1].length);if(1!==o.col)continue;const s=a[2];"space"===r?i?!1!==/^ +$/.test(s)&&s.length%i===0||t.warn(`Please use space for indentation and keep ${i} length.`,o.line,1,this,n.raw):!1===/^ +$/.test(s)&&t.warn("Please use space for indentation.",o.line,1,this,n.raw):"tab"===r&&!1===/^\t+$/.test(s)?t.warn("Please use tab for indentation.",o.line,1,this,n.raw):!0===/ +\t|\t+ /.test(s)&&t.warn("Do not mix tabs and spaces for indentation.",o.line,1,this,n.raw)}})}}},8028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-whitespace",description:"All attributes should be separated by only one space and not have leading/trailing whitespace.",init(e,t,n){const r=Array.isArray(n)?n:[];e.addListener("tagstart",e=>{const n=e.attrs;let i;const o=e.col+e.tagName.length+1;n.forEach(n=>{i=n;const s=n.name;-1===r.indexOf(s)&&(n.value.trim()!==n.value&&t.error(`The attributes of [ ${s} ] must not have leading or trailing whitespace.`,e.line,o+i.index,this,i.raw),n.value.replace(/ +(?= )/g,"")!==n.value&&t.error(`The attributes of [ ${s} ] must be separated by only one space.`,e.line,o+i.index,this,i.raw))})})}}},11247:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-class-value",description:"The id and class attribute values must meet the specified rules.",init(e,t,n){let r;if(r="string"===typeof n?{underline:{regId:/^[a-z\d]+(_[a-z\d]+)*$/,message:"The id and class attribute values must be in lowercase and split by an underscore."},dash:{regId:/^[a-z\d]+(-[a-z\d]+)*$/,message:"The id and class attribute values must be in lowercase and split by a dash."},hump:{regId:/^[a-z][a-zA-Z\d]*([A-Z][a-zA-Z\d]*)*$/,message:"The id and class attribute values must meet the camelCase style."}}[n]:n,"object"===typeof r&&r.regId){let n=r.regId;const i=r.message;n instanceof RegExp||(n=new RegExp(n)),e.addListener("tagstart",e=>{const r=e.attrs;let o;const s=e.col+e.tagName.length+1;for(let a=0,l=r.length;a<l;a++)if(o=r[a],"id"===o.name.toLowerCase()&&!1===n.test(o.value)&&t.warn(i,e.line,s+o.index,this,o.raw),"class"===o.name.toLowerCase()){const r=o.value.split(/\s+/g);let a;for(let l=0,c=r.length;l<c;l++)a=r[l],a&&!1===n.test(a)&&t.warn(i,e.line,s+o.index,this,a)}})}}}},13285:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"form-method-require",description:'The method attribute of a <form> element must be present with a valid value: "get", "post", or "dialog".',init(e,t){e.addListener("tagstart",n=>{const r=n.tagName.toLowerCase();if("form"===r){const i=e.getMapAttrs(n.attrs),o=n.col+r.length+1;if(void 0===i.method)t.warn("The method attribute must be present on <form> elements.",n.line,o,this,n.raw);else{const e=i.method.toLowerCase();"get"!==e&&"post"!==e&&"dialog"!==e&&t.warn('The method attribute of <form> must have a valid value: "get", "post", or "dialog".',n.line,o,this,n.raw)}}})}}},14148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tagname-lowercase",description:"All html element names must be in lowercase.",init(e,t,n){const r=Array.isArray(n)?n:[];e.addListener("tagstart,tagend",e=>{const n=e.tagName;-1===r.indexOf(n)&&n!==n.toLowerCase()&&t.error(`The html element name of [ ${n} ] must be in lowercase.`,e.line,e.col,this,e.raw)})}}},15688:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLParser=t.Reporter=t.HTMLRules=t.HTMLHint=void 0;const r=n(18713);t.HTMLParser=r.default;const i=n(28970);t.Reporter=i.default;const o=n(36391);t.HTMLRules=o;function s(e,t){return new Array(e+1).join(t||" ")}t.HTMLHint=new class{constructor(){this.rules={},this.defaultRuleset={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0}}addRule(e){this.rules[e.id]=e}verify(e,t=this.defaultRuleset){0===Object.keys(t).length&&(t=this.defaultRuleset),e=e.replace(/^\s*<!--\s*htmlhint\s+([^\r\n]+?)\s*-->/i,(e,n)=>(n.replace(/(?:^|,)\s*([^:,]+)\s*(?:\:\s*([^,\s]+))?/g,(e,n,r)=>(t[n]=!(void 0!==r&&r.length>0)||JSON.parse(r),"")),""));const n=new r.default,o=new i.default(e,t),s=this.rules;let a;for(const r in t)a=s[r],void 0!==a&&!1!==t[r]&&a.init(n,o,t[r]);return n.parse(e),o.messages}format(e,t={}){const n=[],r={white:"",grey:"",red:"",reset:""};t.colors&&(r.white="\x1b[37m",r.grey="\x1b[90m",r.red="\x1b[31m",r.reset="\x1b[39m");const i=t.indent||0;return e.forEach(e=>{let t=e.evidence;const o=e.line,a=e.col,l=t.length;let c=a>41?a-40:1,u=t.length>a+60?a+60:l;a<41&&(u+=40-a+1),t=t.replace(/\t/g," ").substring(c-1,u),c>1&&(t=`...${t}`,c-=3),u<l&&(t+="..."),n.push(`${r.white+s(i)}L${o} |${r.grey}${t}${r.reset}`);let d=a-c;const h=t.substring(0,d).match(/[^\u0000-\u00ff]/g);null!==h&&(d+=h.length),n.push(`${r.white+s(i)+s(String(o).length+3+d)}^ ${r.red}${e.message} (${e.rule.id})${r.reset}`)}),n}},Object.values(o).forEach(e=>{t.HTMLHint.addRule(e)})},18713:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._listeners={},this._mapCdataTags=this.makeMap("script,style"),this._arrBlocks=[],this.lastEvent=null}makeMap(e){const t={},n=e.split(",");for(let r=0;r<n.length;r++)t[n[r]]=!0;return t}parse(e){const t=this._mapCdataTags,n=/<(?:\/([^\s>]+)\s*|!--([\s\S]*?)--|!([^>]*?)|([\w\-:]+)((?:\s+[^\s"'>\/=\x00-\x0F\x7F\x80-\x9F]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'>]*))?)*?)\s*(\/?))>/g,r=/\s*([^\s"'>\/=\x00-\x0F\x7F\x80-\x9F]+)(?:\s*=\s*(?:(")([^"]*)"|(')([^']*)'|([^\s"'>]*)))?/g,i=/\r?\n/g;let o,s,a,l,c,u,d=0,h=null,f=[],p=0,g=0,m=1;const b=this._arrBlocks;this.fire("start",{pos:0,line:1,col:1});const y=()=>{const e=l.find(e=>"type"===e.name)||{value:""};return t[a]&&-1===e.value.indexOf("text/ng-template")},w=(e,t,n,r)=>{const o=n-g+1;for(void 0===r&&(r={}),r.raw=t,r.pos=n,r.line=m,r.col=o,b.push(r),this.fire(e,r);i.exec(t);)m++,g=n+i.lastIndex};for(;o=n.exec(e);)if(s=o.index,s>d&&(u=e.substring(d,s),h?f.push(u):w("text",u,d)),d=n.lastIndex,!(a=o[1])||(h&&a===h&&(u=f.join(""),w("cdata",u,p,{tagName:h,attrs:c}),h=null,c=void 0,f=[]),h))if(h)f.push(o[0]);else if(a=o[4]){l=[];const e=o[5];let t,n=0;for(;t=r.exec(e);){const e=t[1],r=t[2]?t[2]:t[4]?t[4]:"",i=t[3]?t[3]:t[5]?t[5]:t[6]?t[6]:"";l.push({name:e,value:i,quote:r,index:t.index,raw:t[0]}),n+=t[0].length}n===e.length?(w("tagstart",o[0],s,{tagName:a,attrs:l,close:o[6]}),y()&&(h=a,c=l.concat(),f=[],p=d)):w("text",o[0],s)}else(o[2]||o[3])&&w("comment",o[0],s,{content:o[2]||o[3],long:!!o[2]});else w("tagend",o[0],s,{tagName:a});e.length>d&&(u=e.substring(d,e.length),w("text",u,d)),this.fire("end",{pos:d,line:m,col:e.length-g+1})}addListener(e,t){const n=this._listeners,r=e.split(/[,\s]/);let i;for(let o=0,s=r.length;o<s;o++)i=r[o],void 0===n[i]&&(n[i]=[]),n[i].push(t)}fire(e,t){void 0===t&&(t={}),t.type=e;let n=[];const r=this._listeners[e],i=this._listeners.all;void 0!==r&&(n=n.concat(r)),void 0!==i&&(n=n.concat(i));const o=this.lastEvent;null!==o&&(delete o.lastEvent,t.lastEvent=o),this.lastEvent=t;for(let s=0,a=n.length;s<a;s++)n[s].call(this,t)}removeListener(e,t){const n=this._listeners[e];if(void 0!==n)for(let r=0,i=n.length;r<i;r++)if(n[r]===t){n.splice(r,1);break}}fixPos(e,t){const n=e.raw.substr(0,t).split(/\r?\n/),r=n.length-1;let i,o=e.line;return r>0?(o+=r,i=n[r].length+1):i=e.col+t,{line:o,col:i}}getMapAttrs(e){const t={};let n;for(let r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}}},22610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"head-script-disabled",description:"The <script> tag cannot be used in a <head> tag.",init(e,t){const n=/^(text\/javascript|application\/javascript)$/i;let r=!1;const i=i=>{const o=e.getMapAttrs(i.attrs).type,s=i.tagName.toLowerCase();"head"===s&&(r=!0),!0!==r||"script"!==s||o&&!0!==n.test(o)||t.warn("The <script> tag cannot be used in a <head> tag.",i.line,i.col,this,i.raw)},o=t=>{"head"===t.tagName.toLowerCase()&&(e.removeListener("tagstart",i),e.removeListener("tagend",o))};e.addListener("tagstart",i),e.addListener("tagend",o)}}},23495:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0;t.capitalize=e=>{const t=e.split(" ");for(var n=0;n<t.length;n++)t[n]=t[n].charAt(0).toUpperCase()+t[n].slice(1);return t.join(" ")}},23949:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tagname-specialchars",description:"All special characters must be escaped.",init(e,t){const n=/[^a-zA-Z0-9\-:_]/;e.addListener("tagstart,tagend",e=>{const r=e.tagName;n.test(r)&&t.error(`The html element name of [ ${r} ] contains special character.`,e.line,e.col,this,e.raw)})}}},26079:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-no-duplication",description:"Elements cannot have duplicate attributes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r,i;const o=e.col+e.tagName.length+1,s={};for(let a=0,l=n.length;a<l;a++)r=n[a],i=r.name,!0===s[i]&&t.error(`Duplicate of attribute name [ ${r.name} ] was found.`,e.line,o+r.index,this,r.raw),s[i]=!0})}}},26691:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"inline-style-disabled",description:"Inline style cannot be used.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1;for(let o=0,s=n.length;o<s;o++)r=n[o],"style"===r.name.toLowerCase()&&t.warn(`Inline style [ ${r.raw} ] cannot be used.`,e.line,i+r.index,this,r.raw)})}}},27484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"link-rel-canonical-require",description:'<link rel="canonical"> with non-blank href must be present in <head> tag.',init(e,t){let n=!1,r=!1,i="",o=null;e.addListener("tagstart",t=>{const s=t.tagName.toLowerCase();if("head"===s)n=!0,o=t;else if("link"===s){const n=e.getMapAttrs(t.attrs);n.rel&&"canonical"===n.rel.toLowerCase()&&(r=!0,i=n.href||"")}}),e.addListener("end",()=>{n&&o&&(r?""===i.trim()&&t.error('<link rel="canonical"> href attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<link rel="canonical"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},28075:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-unsafe-chars",description:"Attribute values cannot contain unsafe chars.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1,o=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;let s;for(let a=0,l=n.length;a<l;a++)if(r=n[a],s=o.exec(r.value),null!==s){const n=escape(s[0]).replace(/%u/,"\\u").replace(/%/,"\\x");t.warn(`The value of attribute [ ${r.name} ] cannot contain an unsafe char [ ${n} ].`,e.line,i+r.index,this,r.raw)}})}}},28953:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"inline-script-disabled",description:"Inline script cannot be used.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1;let o;const s=/^on(unload|message|submit|select|scroll|resize|mouseover|mouseout|mousemove|mouseleave|mouseenter|mousedown|load|keyup|keypress|keydown|focus|dblclick|click|change|blur|error)$/i;for(let a=0,l=n.length;a<l;a++)r=n[a],o=r.name.toLowerCase(),!0===s.test(o)?t.warn(`Inline script [ ${r.raw} ] cannot be used.`,e.line,i+r.index,this,r.raw):"src"!==o&&"href"!==o||/^\s*javascript:/i.test(r.value)&&t.warn(`Inline script [ ${r.raw} ] cannot be used.`,e.line,i+r.index,this,r.raw)})}}},28970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t){this.html=e,this.lines=e.split(/\r?\n/);const n=/\r?\n/.exec(e);this.brLen=null!==n?n[0].length:0,this.ruleset=t,this.messages=[]}info(e,t,n,r,i){this.report("info",e,t,n,r,i)}warn(e,t,n,r,i){this.report("warning",e,t,n,r,i)}error(e,t,n,r,i){this.report("error",e,t,n,r,i)}report(e,t,n,r,i,o){const s=this.lines,a=this.brLen;let l="",c=0;for(let u=n-1,d=s.length;u<d&&(l=s[u],c=l.length,r>c&&n<d);u++)n++,1!==(r-=c)&&(r-=a);this.messages.push({type:e,message:t,raw:o,evidence:l,line:n,col:r,rule:{id:i.id,description:i.description,link:`https://htmlhint.com/rules/${i.id}`}})}}},30058:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-class-ad-disabled",description:"The id and class attributes cannot use the ad keyword, it will be blocked by adblock software.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r,i;const o=e.col+e.tagName.length+1;for(let s=0,a=n.length;s<a;s++)r=n[s],i=r.name,/^(id|class)$/i.test(i)&&/(^|[-_])ad([-_]|$)/i.test(r.value)&&t.warn(`The value of attribute ${i} cannot use the ad keyword.`,e.line,o+r.index,this,r.raw)})}}},33091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"style-disabled",description:"<style> tags cannot be used.",init(e,t){e.addListener("tagstart",e=>{"style"===e.tagName.toLowerCase()&&t.warn("The <style> tag cannot be used.",e.line,e.col,this,e.raw)})}}},33510:(e,t,n)=>{t.Ay=void 0;var r=n(94266);var i=n(59168);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return i.HTMLMonacoLinter}})},36116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPath","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","onBlur","onChange","onClick","onFocus","onKeyUp","onLoad","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"];function r(e,t){if(t instanceof RegExp)return!!t.test(e)&&{match:e,pattern:t};const n=t[0],r=t[t.length-1],i=t[t.length-2],o="/"===n&&("/"===r||"/"===i&&"i"===r);if(o){return o&&"i"===r?new RegExp(t.slice(1,-2),"i").test(e):new RegExp(t.slice(1,-1)).test(e)}return e===t}t.default={id:"attr-lowercase",description:"All attribute names must be in lowercase.",init(e,t,i){const o=(Array.isArray(i)?i:[]).concat(n);e.addListener("tagstart",e=>{const n=e.attrs;let i;const s=e.col+e.tagName.length+1;for(let a=0,l=n.length;a<l;a++){i=n[a];const l=i.name;o.find(e=>r(l,e))||l===l.toLowerCase()||t.error(`The attribute name of [ ${l} ] must be in lowercase.`,e.line,s+i.index,this,i.raw)}})}}},36391:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.titleRequire=t.tagSelfClose=t.tagsCheck=t.tagPair=t.tagnameSpecialChars=t.tagnameLowercase=t.tagNoObsolete=t.styleDisabled=t.srcNotEmpty=t.specCharEscape=t.spaceTabMixedDisabled=t.scriptDisabled=t.metaViewportRequire=t.metaDescriptionRequire=t.metaCharsetRequire=t.mainRequire=t.linkRelCanonicalRequire=t.inputRequiresLabel=t.inlineStyleDisabled=t.inlineScriptDisabled=t.idUnique=t.idClassValue=t.idClassAdDisabled=t.htmlLangRequire=t.hrefAbsOrRel=t.headScriptDisabled=t.h1Require=t.frameTitleRequire=t.formMethodRequire=t.emptyTagNotSelfClosed=t.doctypeHTML5=t.doctypeFirst=t.buttonTypeRequire=t.attrWhitespace=t.attrValueSingleQuotes=t.attrValueNotEmpty=t.attrValueDoubleQuotes=t.attrUnsafeChars=t.attrSort=t.attrValueNoDuplication=t.attrNoUnnecessaryWhitespace=t.attrNoDuplication=t.attrLowercase=t.altRequire=void 0;var r=n(38530);Object.defineProperty(t,"altRequire",{enumerable:!0,get:function(){return r.default}});var i=n(36116);Object.defineProperty(t,"attrLowercase",{enumerable:!0,get:function(){return i.default}});var o=n(26079);Object.defineProperty(t,"attrNoDuplication",{enumerable:!0,get:function(){return o.default}});var s=n(43903);Object.defineProperty(t,"attrNoUnnecessaryWhitespace",{enumerable:!0,get:function(){return s.default}});var a=n(48527);Object.defineProperty(t,"attrValueNoDuplication",{enumerable:!0,get:function(){return a.default}});var l=n(88020);Object.defineProperty(t,"attrSort",{enumerable:!0,get:function(){return l.default}});var c=n(28075);Object.defineProperty(t,"attrUnsafeChars",{enumerable:!0,get:function(){return c.default}});var u=n(78028);Object.defineProperty(t,"attrValueDoubleQuotes",{enumerable:!0,get:function(){return u.default}});var d=n(61452);Object.defineProperty(t,"attrValueNotEmpty",{enumerable:!0,get:function(){return d.default}});var h=n(76735);Object.defineProperty(t,"attrValueSingleQuotes",{enumerable:!0,get:function(){return h.default}});var f=n(8028);Object.defineProperty(t,"attrWhitespace",{enumerable:!0,get:function(){return f.default}});var p=n(66746);Object.defineProperty(t,"buttonTypeRequire",{enumerable:!0,get:function(){return p.default}});var g=n(61730);Object.defineProperty(t,"doctypeFirst",{enumerable:!0,get:function(){return g.default}});var m=n(58212);Object.defineProperty(t,"doctypeHTML5",{enumerable:!0,get:function(){return m.default}});var b=n(81544);Object.defineProperty(t,"emptyTagNotSelfClosed",{enumerable:!0,get:function(){return b.default}});var y=n(13285);Object.defineProperty(t,"formMethodRequire",{enumerable:!0,get:function(){return y.default}});var w=n(41299);Object.defineProperty(t,"frameTitleRequire",{enumerable:!0,get:function(){return w.default}});var v=n(88578);Object.defineProperty(t,"h1Require",{enumerable:!0,get:function(){return v.default}});var k=n(22610);Object.defineProperty(t,"headScriptDisabled",{enumerable:!0,get:function(){return k.default}});var x=n(43035);Object.defineProperty(t,"hrefAbsOrRel",{enumerable:!0,get:function(){return x.default}});var _=n(45141);Object.defineProperty(t,"htmlLangRequire",{enumerable:!0,get:function(){return _.default}});var C=n(30058);Object.defineProperty(t,"idClassAdDisabled",{enumerable:!0,get:function(){return C.default}});var E=n(11247);Object.defineProperty(t,"idClassValue",{enumerable:!0,get:function(){return E.default}});var S=n(59e3);Object.defineProperty(t,"idUnique",{enumerable:!0,get:function(){return S.default}});var O=n(28953);Object.defineProperty(t,"inlineScriptDisabled",{enumerable:!0,get:function(){return O.default}});var L=n(26691);Object.defineProperty(t,"inlineStyleDisabled",{enumerable:!0,get:function(){return L.default}});var A=n(66583);Object.defineProperty(t,"inputRequiresLabel",{enumerable:!0,get:function(){return A.default}});var $=n(27484);Object.defineProperty(t,"linkRelCanonicalRequire",{enumerable:!0,get:function(){return $.default}});var M=n(84744);Object.defineProperty(t,"mainRequire",{enumerable:!0,get:function(){return M.default}});var j=n(46557);Object.defineProperty(t,"metaCharsetRequire",{enumerable:!0,get:function(){return j.default}});var D=n(94999);Object.defineProperty(t,"metaDescriptionRequire",{enumerable:!0,get:function(){return D.default}});var N=n(6239);Object.defineProperty(t,"metaViewportRequire",{enumerable:!0,get:function(){return N.default}});var T=n(39353);Object.defineProperty(t,"scriptDisabled",{enumerable:!0,get:function(){return T.default}});var P=n(7686);Object.defineProperty(t,"spaceTabMixedDisabled",{enumerable:!0,get:function(){return P.default}});var z=n(60761);Object.defineProperty(t,"specCharEscape",{enumerable:!0,get:function(){return z.default}});var R=n(62433);Object.defineProperty(t,"srcNotEmpty",{enumerable:!0,get:function(){return R.default}});var I=n(33091);Object.defineProperty(t,"styleDisabled",{enumerable:!0,get:function(){return I.default}});var q=n(78815);Object.defineProperty(t,"tagNoObsolete",{enumerable:!0,get:function(){return q.default}});var U=n(14148);Object.defineProperty(t,"tagnameLowercase",{enumerable:!0,get:function(){return U.default}});var F=n(23949);Object.defineProperty(t,"tagnameSpecialChars",{enumerable:!0,get:function(){return F.default}});var V=n(79960);Object.defineProperty(t,"tagPair",{enumerable:!0,get:function(){return V.default}});var W=n(73343);Object.defineProperty(t,"tagsCheck",{enumerable:!0,get:function(){return W.default}});var B=n(38659);Object.defineProperty(t,"tagSelfClose",{enumerable:!0,get:function(){return B.default}});var H=n(52979);Object.defineProperty(t,"titleRequire",{enumerable:!0,get:function(){return H.default}})},38530:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"alt-require",description:"The alt attribute of an <img> element must be present and alt attribute of area[href] and input[type=image] must have a value.",init(e,t){e.addListener("tagstart",n=>{const r=n.tagName.toLowerCase(),i=e.getMapAttrs(n.attrs),o=n.col+r.length+1;let s;"img"!==r||"alt"in i?("area"===r&&"href"in i||"input"===r&&"image"===i.type)&&("alt"in i&&""!==i.alt||(s="area"===r?"area[href]":"input[type=image]",t.warn(`The alt attribute of ${s} must have a value.`,n.line,o,this,n.raw))):t.warn("An alt attribute must be present on <img> elements.",n.line,o,this,n.raw)})}}},38659:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tag-self-close",description:"Empty tags must be self closed.",init(e,t){const n=e.makeMap("area,base,basefont,bgsound,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const r=e.tagName.toLowerCase();void 0!==n[r]&&(e.close||t.warn(`The empty tag : [ ${r} ] must be self closed.`,e.line,e.col,this,e.raw))})}}},39353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"script-disabled",description:"The <script> tag cannot be used.",init(e,t){e.addListener("tagstart",e=>{"script"===e.tagName.toLowerCase()&&t.error("The <script> tag cannot be used.",e.line,e.col,this,e.raw)})}}},41299:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"frame-title-require",description:"A <frame> or <iframe> element must have an accessible name.",init(e,t){e.addListener("tagstart",n=>{const r=n.tagName.toLowerCase(),i=e.getMapAttrs(n.attrs),o=n.col+r.length+1;if("frame"===r||"iframe"===r){const e=i.role;if("presentation"===e||"none"===e)return;const s="aria-label"in i&&""!==i["aria-label"].trim(),a="aria-labelledby"in i&&""!==i["aria-labelledby"].trim(),l="title"in i&&""!==i.title.trim();s||a||l||t.warn(`A <${r}> element must have an accessible name.`,n.line,o,this,n.raw)}})}}},43035:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"href-abs-or-rel",description:"An href attribute must be either absolute or relative.",init(e,t,n){const r="abs"===n?"absolute":"relative";e.addListener("tagstart",e=>{const n=e.attrs;let i;const o=e.col+e.tagName.length+1;for(let s=0,a=n.length;s<a;s++)if(i=n[s],"href"===i.name){("absolute"===r&&!1===/^\w+?:/.test(i.value)||"relative"===r&&!0===/^https?:\/\//.test(i.value))&&t.warn(`The value of the href attribute [ ${i.value} ] must be ${r}.`,e.line,o+i.index,this,i.raw);break}})}}},43903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-no-unnecessary-whitespace",description:"No spaces between attribute names and values.",init(e,t,n){const r=Array.isArray(n)?n:[];e.addListener("tagstart",e=>{const n=e.attrs,i=e.col+e.tagName.length+1;for(let o=0;o<n.length;o++)if(-1===r.indexOf(n[o].name)){const r=/(\s*)=(\s*)/.exec(n[o].raw.trim());!r||0===r[1].length&&0===r[2].length||t.error(`The attribute '${n[o].name}' must not have spaces between the name and value.`,e.line,i+n[o].index,this,n[o].raw)}})}}},45141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"html-lang-require",description:"The lang attribute of an <html> element must be present and should be valid.",init(e,t){e.addListener("tagstart",n=>{const r=n.tagName.toLowerCase(),i=e.getMapAttrs(n.attrs),o=n.col+r.length+1,s=new RegExp("((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUse>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUse2>x(-[A-Za-z0-9]{1,8})+))","g");"html"===r&&("lang"in i?i.lang?s.test(i.lang)||t.warn("The lang attribute value of <html> element must be a valid BCP47.",n.line,o,this,n.raw):t.warn("The lang attribute of <html> element must have a value.",n.line,o,this,n.raw):t.warn("An lang attribute must be present on <html> elements.",n.line,o,this,n.raw))})}}},46557:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-charset-require",description:'<meta charset=""> must be present in <head> tag.',init(e,t){let n=!1,r=!1,i="",o=null;e.addListener("tagstart",t=>{const s=t.tagName.toLowerCase();if("head"===s)n=!0,o=t;else if("meta"===s){const n=e.getMapAttrs(t.attrs);void 0!==n.charset&&(r=!0,i=n.charset||"")}}),e.addListener("end",()=>{n&&o&&(r?""===i.trim()&&t.error('<meta charset=""> value must not be empty.',o.line,o.col,this,o.raw):t.error('<meta charset=""> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},47824:(e,t,n)=>{n.r(t),n.d(t,{default:()=>vd});var r=n(98173);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function f(e){return{}.toString.call(e).includes("Object")}function p(e){return"function"===typeof e}var g=h(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),m={changes:function(e,t){return f(t)||g("changeType"),Object.keys(t).some(function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)})&&g("changeField"),t},selector:function(e){p(e)||g("selectorType")},handler:function(e){p(e)||f(e)||g("handlerType"),f(e)&&Object.values(e).some(function(e){return!p(e)})&&g("handlersType")},initial:function(e){var t;e||g("initialIsRequired"),f(e)||g("initialType"),t=e,Object.keys(t).length||g("initialContent")}};function b(e,t){return p(t)?t(e.current):t}function y(e,t){return e.current=d(d({},e.current),t),t}function w(e,t,n){return p(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}const v={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.initial(e),m.handler(t);var n={current:e},r=h(w)(n,t),i=h(y)(n),o=h(m.changes)(e),s=h(b)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return m.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,i,o,s)(e)}]}};const k={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};const x=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}};const _=function(e){return{}.toString.call(e).includes("Object")};var C={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},E=x(function(e,t){throw new Error(e[t]||e.default)})(C),S={config:function(e){return e||E("configIsRequired"),_(e)||E("configType"),e.urls?{paths:{vs:e.urls.monacoBase}}:e}};const O=S;const L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}};const A=function e(t,n){return Object.keys(n).forEach(function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))}),s(s({},t),n)};var $={type:"cancelation",msg:"operation is manually canceled"};const M=function(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r($):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n};var j,D,N=v.create({config:k,isInitialized:!1,resolve:null,reject:null,monaco:null}),T=(D=2,function(e){if(Array.isArray(e))return e}(j=N)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(j,D)||function(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(j,D)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=T[0],z=T[1];function R(e){return document.body.appendChild(e)}function I(e){var t=P(function(e){return{config:e.config,reject:e.reject}}),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function q(){var e=P(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){U(t),e.resolve(t)},function(t){e.reject(t)})}function U(e){P().monaco||z({monaco:e})}var F=new Promise(function(e,t){return z({resolve:e,reject:t})}),V={config:function(e){var t=O.config(e),n=t.monaco,r=a(t,["monaco"]);z(function(e){return{config:A(e.config,r),monaco:n}})},init:function(){var e=P(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(z({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),M(F);if(window.monaco&&window.monaco.editor)return U(window.monaco),e.resolve(window.monaco),M(F);L(R,I)(q)}return M(F)},__getMonacoInstance:function(){return P(function(e){return e.monaco})}};const W=V;var B={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},H={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var Z=function({children:e}){return r.createElement("div",{style:H.container},e)};var J=function({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:s,wrapperProps:a}){return r.createElement("section",{style:{...B.wrapper,width:e,height:t},...a},!n&&r.createElement(Z,null,i),r.createElement("div",{ref:o,style:{...B.fullWidth,...!n&&B.hide},className:s}))},X=(0,r.memo)(J);var Y=function(e){(0,r.useEffect)(e,[])};var K=function(e,t,n=!0){let i=(0,r.useRef)(!0);(0,r.useEffect)(i.current||!n?()=>{i.current=!1}:e,t)};function G(){}function Q(e,t,n,r){return function(e,t){return e.editor.getModel(ee(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?ee(e,r):void 0)}(e,t,n,r)}function ee(e,t){return e.Uri.parse(t)}var te=function({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:s,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:d="Loading...",options:h={},height:f="100%",width:p="100%",className:g,wrapperProps:m={},beforeMount:b=G,onMount:y=G}){let[w,v]=(0,r.useState)(!1),[k,x]=(0,r.useState)(!0),_=(0,r.useRef)(null),C=(0,r.useRef)(null),E=(0,r.useRef)(null),S=(0,r.useRef)(y),O=(0,r.useRef)(b),L=(0,r.useRef)(!1);Y(()=>{let e=W.init();return e.then(e=>(C.current=e)&&x(!1)).catch(e=>"cancelation"!==e?.type&&void 0),()=>_.current?function(){let e=_.current?.getModel();l||e?.original?.dispose(),c||e?.modified?.dispose(),_.current?.dispose()}():e.cancel()}),K(()=>{if(_.current&&C.current){let t=_.current.getOriginalEditor(),r=Q(C.current,e||"",i||n||"text",s||"");r!==t.getModel()&&t.setModel(r)}},[s],w),K(()=>{if(_.current&&C.current){let e=_.current.getModifiedEditor(),r=Q(C.current,t||"",o||n||"text",a||"");r!==e.getModel()&&e.setModel(r)}},[a],w),K(()=>{let e=_.current.getModifiedEditor();e.getOption(C.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],w),K(()=>{_.current?.getModel()?.original.setValue(e||"")},[e],w),K(()=>{let{original:e,modified:t}=_.current.getModel();C.current.editor.setModelLanguage(e,i||n||"text"),C.current.editor.setModelLanguage(t,o||n||"text")},[n,i,o],w),K(()=>{C.current?.editor.setTheme(u)},[u],w),K(()=>{_.current?.updateOptions(h)},[h],w);let A=(0,r.useCallback)(()=>{if(!C.current)return;O.current(C.current);let r=Q(C.current,e||"",i||n||"text",s||""),l=Q(C.current,t||"",o||n||"text",a||"");_.current?.setModel({original:r,modified:l})},[n,t,o,e,i,s,a]),$=(0,r.useCallback)(()=>{!L.current&&E.current&&(_.current=C.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...h}),A(),C.current?.editor.setTheme(u),v(!0),L.current=!0)},[h,u,A]);return(0,r.useEffect)(()=>{w&&S.current(_.current,C.current)},[w]),(0,r.useEffect)(()=>{!k&&!w&&$()},[k,w,$]),r.createElement(X,{width:p,height:f,isEditorReady:w,loading:d,_ref:E,className:g,wrapperProps:m})};(0,r.memo)(te);var ne=function(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current},re=new Map;var ie=function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:s,theme:a="light",line:l,loading:c="Loading...",options:u={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:p="100%",height:g="100%",className:m,wrapperProps:b={},beforeMount:y=G,onMount:w=G,onChange:v,onValidate:k=G}){let[x,_]=(0,r.useState)(!1),[C,E]=(0,r.useState)(!0),S=(0,r.useRef)(null),O=(0,r.useRef)(null),L=(0,r.useRef)(null),A=(0,r.useRef)(w),$=(0,r.useRef)(y),M=(0,r.useRef)(),j=(0,r.useRef)(i),D=ne(s),N=(0,r.useRef)(!1),T=(0,r.useRef)(!1);Y(()=>{let e=W.init();return e.then(e=>(S.current=e)&&E(!1)).catch(e=>"cancelation"!==e?.type&&void 0),()=>O.current?(M.current?.dispose(),f?h&&re.set(s,O.current.saveViewState()):O.current.getModel()?.dispose(),void O.current.dispose()):e.cancel()}),K(()=>{let r=Q(S.current,e||i||"",t||o||"",s||n||"");r!==O.current?.getModel()&&(h&&re.set(D,O.current?.saveViewState()),O.current?.setModel(r),h&&O.current?.restoreViewState(re.get(s)))},[s],x),K(()=>{O.current?.updateOptions(u)},[u],x),K(()=>{!O.current||void 0===i||(O.current.getOption(S.current.editor.EditorOption.readOnly)?O.current.setValue(i):i!==O.current.getValue()&&(T.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),O.current.pushUndoStop(),T.current=!1))},[i],x),K(()=>{let e=O.current?.getModel();e&&o&&S.current?.editor.setModelLanguage(e,o)},[o],x),K(()=>{void 0!==l&&O.current?.revealLine(l)},[l],x),K(()=>{S.current?.editor.setTheme(a)},[a],x);let P=(0,r.useCallback)(()=>{if(L.current&&S.current&&!N.current){$.current(S.current);let r=s||n,c=Q(S.current,i||e||"",t||o||"",r||"");O.current=S.current?.editor.create(L.current,{model:c,automaticLayout:!0,...u},d),h&&O.current.restoreViewState(re.get(r)),S.current.editor.setTheme(a),void 0!==l&&O.current.revealLine(l),_(!0),N.current=!0}},[e,t,n,i,o,s,u,d,h,a,l]);return(0,r.useEffect)(()=>{x&&A.current(O.current,S.current)},[x]),(0,r.useEffect)(()=>{!C&&!x&&P()},[C,x,P]),j.current=i,(0,r.useEffect)(()=>{x&&v&&(M.current?.dispose(),M.current=O.current?.onDidChangeModelContent(e=>{T.current||v(O.current.getValue(),e)}))},[x,v]),(0,r.useEffect)(()=>{if(x){let e=S.current.editor.onDidChangeMarkers(e=>{let t=O.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=S.current.editor.getModelMarkers({resource:t});k?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,k]),r.createElement(X,{width:p,height:g,isEditorReady:x,loading:c,_ref:L,className:m,wrapperProps:b})},oe=(0,r.memo)(ie),se=n(2604),ae=n(33510),le=n(52919),ce=n(89114),ue=n(64796);const de=100;class he extends ce.m{constructor(e,t,n,r){super(e,t,n,r),this._onScrollDisposable=null,this._editor=e}updateColorDecorators(e){if(this._onScrollDisposable&&(this._onScrollDisposable.dispose(),this._onScrollDisposable=null),e.length>=500){const t=this._editor;let[n,r]=[Number.MAX_VALUE,Number.MIN_VALUE];const i=()=>{const i=t.getVisibleRanges(),[o,s]=i.reduce((e,{startLineNumber:t,endLineNumber:n})=>[Math.min(t,e[0]),Math.max(n,e[1])],[Number.MAX_VALUE,Number.MIN_VALUE]);if(n-o>de||s-r>de){let t=e.filter(({colorInfo:e})=>{const{startLineNumber:t,endLineNumber:n}=e.range;return o-t<de&&n-s<de});super.updateColorDecorators(t)}};this._onScrollDisposable=t.onDidScrollChange(i),i()}else super.updateColorDecorators(e)}dispose(){var e;null===(e=this._onScrollDisposable)||void 0===e||e.dispose(),super.dispose()}}var fe=n(47014),pe=n(1047),ge=n(22536),me=n(38540),be=n(62093),ye=n(29022),we=n(32947);function ve(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ke(e){return e>47&&e<58}function xe(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function _e(e){return ke(e)||Ce(e)}function Ce(e){return 95===e||xe(e)}function Ee(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function Se(e){return 39===e||34===e}class Oe{constructor(e,t,n){null==n&&"string"===typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new Oe(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"===typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new Le(`${e} at ${t+1}`,t,this.string)}}class Le extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function Ae(e){return e.tokens[e.pos]}function $e(e){return e.tokens[e.pos++]}function Me(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function je(e){return e.pos<e.size}function De(e,t){const n=Ae(e);return!(!n||!t(n))&&(e.pos++,!0)}function Ne(e,t,n=Ae(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function Te(e,t){const n={type:"TokenGroup",elements:[]};let r,i=n;const o=[];for(;je(e)&&(r=ze(e,t)||Pe(e,t));)if(i.elements.push(r),De(e,ot))o.push(i),i=r;else{if(De(e,st))continue;if(De(e,at))do{o.length&&(i=o.pop())}while(De(e,at))}return n}function Pe(e,t){if(De(e,rt)){const n=Te(e,t);return Be($e(e),"group",!1)&&(n.repeat=function(e){return Ye(Ae(e))?e.tokens[e.pos++]:void 0}(e)),n}}function ze(e,t){let n;const r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&De(e,Ke))for(;je(e);){const{pos:t}=e;if(!De(e,Qe)||!De(e,Ke)){e.pos=t;break}}for(;je(e)&&De(e,Ge););if(e.pos!==n)return e.start=n,!0;return!1}(e,t)&&(r.name=Me(e));je(e);)if(e.start=e.pos,r.repeat||it(r)||!De(e,Ye))if(!r.value&&Ve(e))r.value=We(e);else{if(!(n=Ie(e,"id",t)||Ie(e,"class",t)||Re(e))){!it(r)&&De(e,lt)&&(r.selfClose=!0,!r.repeat&&De(e,Ye)&&(r.repeat=e.tokens[e.pos-1]));break}r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n]}else r.repeat=e.tokens[e.pos-1];return it(r)?void 0:r}function Re(e){if(De(e,et)){const t=[];let n;for(;je(e);)if(n=qe(e))t.push(n);else{if(De(e,tt))break;if(!De(e,Je))throw Ne(e,`Unexpected "${Ae(e).type}" token`)}return t}}function Ie(e,t,n){if(He(Ae(e),t)){e.pos++;const i={name:[(r=t,{type:"Literal",value:r})]};return n.jsx&&Ve(e)?(i.value=We(e),i.expression=!0):i.value=Fe(e)?Me(e):void 0,i}var r}function qe(e){return Ue(e)?{value:Me(e)}:Fe(e,!0)?{name:Me(e),value:De(e,Xe)&&(Ue(e)||Fe(e,!0))?Me(e):void 0}:void 0}function Ue(e){const t=e.pos,n=Ae(e);if(Ze(n)){for(e.pos++;je(e);)if(Ze($e(e),n.single))return e.start=t,!0;throw Ne(e,"Unclosed quote",n)}return!1}function Fe(e,t){const n=e.pos,r={attribute:0,expression:0,group:0};for(;je(e);){const n=Ae(e);if(r.expression)Be(n,"expression")&&(r[n.context]+=n.open?1:-1);else{if(Ze(n)||He(n)||Je(n)||Ye(n))break;if(Be(n)){if(!t)break;if(n.open)r[n.context]++;else{if(!r[n.context])break;r[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function Ve(e){const t=e.pos;if(De(e,nt)){let n=0;for(;je(e);){const t=$e(e);if(Be(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function We(e){let t=e.start,n=e.pos;return Be(e.tokens[t],"expression",!0)&&t++,Be(e.tokens[n-1],"expression",!1)&&n--,Me(e,t,n)}function Be(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function He(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function Ze(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function Je(e){return Boolean(e&&"WhiteSpace"===e.type)}function Xe(e){return He(e,"equal")}function Ye(e){return Boolean(e&&"Repeater"===e.type)}function Ke(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function Ge(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function Qe(e){return He(e,"class")}function et(e){return Be(e,"attribute",!0)}function tt(e){return Be(e,"attribute",!1)}function nt(e){return Be(e,"expression",!0)}function rt(e){return Be(e,"group",!0)}function it(e){return!e.name&&!e.value&&!e.attributes}function ot(e){return He(e,"child")}function st(e){return He(e,"sibling")}function at(e){return He(e,"climb")}function lt(e){return He(e,"close")}function ct(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function ut(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let r="";if(e.eatWhile(ke)?(t=Number(e.current()),r=e.eat(58)?dt(e):""):xe(e.peek())&&(r=dt(e)),e.eat(125))return{type:"Field",index:t,name:r,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let r=!1,i=1,o=0;if(e.eat(64)){for(;e.eat(94);)o++;r=e.eat(45),e.start=e.pos,e.eatWhile(ke)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:r,base:i,parent:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(ke)?n=Number(e.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Ee))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let r="";for(;!e.eof();){if(ct(e)){r+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||ht(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!yt(n))break;if(ft(n,t)||pt(n,t)||Se(n)||gt(n))break}r+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:r,start:n,end:e.pos}}(e,t)||function(e){const t=mt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Se(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=gt(t);if(n)return{type:"Bracket",open:bt(t),context:n,start:e.pos++,end:e.pos}}(e)}function dt(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function ht(e,t){const n=mt(e);return!(!n||t.quote||t.expression)&&(!t.attribute||"equal"===n)}function ft(e,t){return Ee(e)&&!t.expression}function pt(e,t){return 42===e&&!t.attribute&&!t.expression}function gt(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function mt(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function bt(e){return 123===e||91===e||40===e}function yt(e){return _e(e)||45===e||58===e||33===e}const wt={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},vt={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>wt[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let r=t.repeaters.length-1;r>=0;r--)if(t.repeaters[r].implicit){n=t.repeaters[r];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const r=t.repeaters.length-1,i=t.repeaters[r];if(i&&(n=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){const o=Math.max(0,r-e.parent);if(o!==r){const e=t.repeaters[o];n+=i.count*e.value}}let o=String(n);for(;o.length<e.size;)o="0"+o;return o},WhiteSpace:e=>e.value};function kt(e,t){if(!vt[e.type])throw new Error(`Unknown token ${e.type}`);return vt[e.type](e,t)}const xt=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,_t=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Ct(e,t={}){let n,r=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);const i={type:"Abbreviation",children:Ot(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var i;let o;if(r=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];o=void 0!==e?t.text[e]:t.text.join("\n")}else o=null!==(i=t.text)&&void 0!==i?i:"";return o},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!r){const e=Nt(Dt(i.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;Tt(e,n),"a"===e.name&&t.href&&function(e,t){var n;let r="";xt.test(t)?(r=t,/\w+:/.test(r)||r.startsWith("//")||(r=`http://${r}`)):_t.test(t)&&(r=`mailto:${t}`);const i=null===(n=e.attributes)||void 0===n?void 0:n.find(e=>"href"===e.name);i?i.value||(i.value=[r]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}(e,n)}}return i}function Et(e,t){let n=[];if(e.repeat){const r=e.repeat,i=Object.assign({},r);let o;i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1,t.repeaters.push(i);for(let s=0;s<i.count;s++){if(i.value=s,e.repeat=i,o=Mt(e)?Ot(e,t):St(e,t),i.implicit&&!t.inserted){const e=Dt(o),n=e&&Nt(e);n&&Tt(n,t.getText(i.value))}if(n=n.concat(o),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,i.implicit&&(t.inserted=!0)}else n=n.concat(Mt(e)?Ot(e,t):St(e,t));return n}function St(e,t){let n=[];const r={type:"AbbreviationNode",name:e.name&&At(e.name,t),value:e.value&&$t(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let i=[r];for(const o of e.elements)n=n.concat(Et(o,t));if(e.attributes){r.attributes=[];for(const n of e.attributes)r.attributes.push(Lt(n,t))}return r.name||r.attributes||!r.value||r.value.some(jt)?r.children=n:i=i.concat(n),i}function Ot(e,t){let n=[];for(const r of e.elements)n=n.concat(Et(r,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function Lt(e,t){let n,r=!1,i=!1,o=e.expression?"expression":"raw";const s=e.name&&At(e.name,t);if(s&&"!"===s[0]&&(r=!0),s&&"."===s[s.length-1]&&(i=!0),e.value){const r=e.value.slice();if(Ze(r[0])){const e=r.shift();r.length&&Dt(r).type===e.type&&r.pop(),o=e.single?"singleQuote":"doubleQuote"}else Be(r[0],"expression",!0)&&(o="expression",r.shift(),Be(Dt(r),"expression",!1)&&r.pop());n=$t(r,t)}return{name:i||r?s.slice(r?1:0,i?-1:void 0):s,value:n,boolean:i,implied:r,valueType:o}}function At(e,t){let n="";for(let r=0;r<e.length;r++)n+=kt(e[r],t);return n}function $t(e,t){const n=[];let r="";for(let i,o=0;o<e.length;o++)i=e[o],jt(i)?(r&&(n.push(r),r=""),n.push(i)):r+=kt(i,t);return r&&n.push(r),n}function Mt(e){return"TokenGroup"===e.type}function jt(e){return"object"===typeof e&&"Field"===e.type&&null!=e.index}function Dt(e){return e[e.length-1]}function Nt(e){return e.children.length?Nt(Dt(e.children)):e}function Tt(e,t){if(e.value){"string"===typeof Dt(e.value)?e.value[e.value.length-1]+=t:e.value.push(t)}else e.value=[t]}function Pt(e,t){try{return Ct(function(e,t={}){const n={tokens:r=e,start:0,pos:0,size:r.length};var r;const i=Te(n,t);if(je(n))throw Ne(n,"Unexpected character");return i}("string"===typeof e?function(e){const t=new Oe(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let i,o=0;for(;!t.eof();){if(o=t.peek(),i=ut(t,r),!i)throw t.error("Unexpected character");n.push(i),"Quote"===i.type?r.quote=o===r.quote?0:o:"Bracket"===i.type&&(r[i.context]+=i.open?1:-1)}return n}(e):e,t),t)}catch(n){throw n instanceof Le&&"string"===typeof e&&(n.message+=`\n${e}\n${"-".repeat(n.pos)}^`),n}}function zt(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let r="";if(e.eatWhile(ke)?(n=Number(e.current()),r=e.eat(58)?Rt(e):""):xe(e.peek())&&(r=Rt(e)),e.eat(125))return{type:"Field",index:n,name:r,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,r=e.eatWhile(ke),i=e.pos;if(e.eat(46)){const t=e.eatWhile(ke);r||t||(e.pos=i)}e.pos===n&&(e.pos=t);return e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(Ce),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let r="",i="";if(e.eatWhile(Vt)?(r=e.substring(n,e.pos),i=qt(e)):e.eat(116)?(r="0",i=qt(e)||"0"):i=qt(e),r||i||e.eof()){const{r:n,g:o,b:s,a:a}=function(e,t){let n="0",r="0",i="0",o=Number(null!=t&&""!==t?t:1);if("t"===e)o=0;else switch(e.length){case 0:break;case 1:n=r=i=e+e;break;case 2:n=r=i=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],i=e[2]+e[2];break;default:n=(e+=e).slice(0,2),r=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(i,16),a:o}}(r,i);return{type:"ColorValue",r:n,g:o,b:s,a:a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return It(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if(Se(t)){for(e.pos++;!e.eof();){if(e.eat(t)){r=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(r?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||Ut(e)||function(e){const t=e.pos;if(e.eatWhile(Ee))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;e.eat(Ft)?e.eatWhile(n?Wt:Bt):e.eat(Ce)?e.eatWhile(t?Bt:Wt):(e.eat(46),e.eatWhile(Bt));if(n!==e.pos)return e.start=n,It(e,e.start=n)}(e,t)}function Rt(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function It(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function qt(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(ke)?e.current():"1"):""}function Ut(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Ft(e){return 64===e||36===e}function Vt(e){return ke(e)||xe(e,65,70)}function Wt(e){return _e(e)||45===e}function Bt(e){return Ce(e)||37===e||47===e}function Ht(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function Zt(e,t){let n=0,r=0;for(;t.length;){const e=Jt(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,r||(r=e.end),t.pop()}n!==r&&t.push(It(e,n,r))}function Jt(e){return e[e.length-1]}function Xt(e){return e.tokens[e.pos]}function Yt(e){return e.pos<e.size}function Kt(e,t){return!!t(Xt(e))&&(e.pos++,!0)}function Gt(e,t,n=Xt(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function Qt(e,t){let n,r,i=!1;const o=[],s=Xt(e),a=!!t.value;for(a||!nn(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&nn(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,Kt(e,pn)),a&&Kt(e,an);Yt(e);)if(Kt(e,hn))i=!0;else if(r=en(e,a))o.push(r);else if(!Kt(e,dn))break;if(n||o.length||i)return{name:n,value:o,important:i}}function en(e,t){const n=[];let r,i;for(;Yt(e);)if(r=Xt(e),fn(r))e.pos++,nn(r)&&(i=tn(e))?n.push({type:"FunctionCall",name:r.value,arguments:i}):n.push(r);else{if(!(pn(r)||t&&an(r)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function tn(e){const t=e.pos;if(Kt(e,on)){const n=[];let r;for(;Yt(e)&&!Kt(e,sn);)if(r=en(e,!0))n.push(r);else if(!Kt(e,an)&&!Kt(e,un))throw Gt(e,"Unexpected token");return e.start=t,n}}function nn(e){return e&&"Literal"===e.type}function rn(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function on(e){return rn(e,!0)}function sn(e){return rn(e,!1)}function an(e){return e&&"WhiteSpace"===e.type}function ln(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function cn(e){return ln(e,"+")}function un(e){return ln(e,",")}function dn(e){return un(e)}function hn(e){return ln(e,"!")}function fn(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function pn(e){return ln(e,":")||ln(e,"-")}function gn(e,t){try{const n="string"===typeof e?function(e,t){let n,r=0;const i=new Oe(e),o=[];for(;!i.eof();){if(n=zt(i,0===r&&!t),!n)throw i.error("Unexpected character");if("Bracket"===n.type&&(!r&&n.open&&Zt(i,o),r+=n.open?1:-1,r<0))throw i.error("Unexpected bracket",n.start);o.push(n),Ht(n)&&(n=Ut(i))&&o.push(n)}return o}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),r=[];let i;for(;Yt(n);)if(i=Qt(n,t))r.push(i);else if(!Kt(n,cn))throw Gt(n,"Unexpected token");return r}(n,t)}catch(n){throw n instanceof Le&&"string"===typeof e&&(n.message+=`\n${e}\n${"-".repeat(n.pos)}^`),n}}function mn(e,t,n){if(e&&t){e.length&&n&&yn(e,n);for(const n of t)yn(e,n);return e}const r=e||t;return r&&r.slice()}function bn(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function yn(e,t){const n=e.length-1;"string"===typeof e[n]&&"string"===typeof t?e[n]+=t:e.push(t)}function wn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function vn(e){return"AbbreviationNode"===e.type}function kn(e,t,n){let r=[];for(const i of e.children){const e=t(i);if(e){r=r.concat(e.children);const n=wn(e);vn(n.node)&&(n.node.children=n.node.children.concat(kn(i,t)))}else r.push(i),i.children=kn(i,t)}return e.children=r}function xn(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function _n(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function Cn(e,t){jn(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function En(e,t){const n=t.split(/\r\n|\r|\n/g);for(let r=0,i=n.length-1;r<=i;r++)Cn(e,n[r]),r!==i&&Sn(e,!0)}function Sn(e,t){const n=e.options["output.baseIndent"];Cn(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];Cn(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function On(e,t,n){jn(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function Ln(e,t){return Dn(e,t.options["output.attributeCase"])}function An(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function $n(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function Mn(e,t){return"string"===typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?Mn(e.name,t):Boolean(e.value&&!e.attributes)}function jn(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Dn(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const Nn={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function Tn(e,t,n){const r=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(vn(n))return n}}(t),i=n.context?n.context.name:"",o=((r?r.name:i)||"").toLowerCase();e.name=Nn[o]||(Mn(o,n)?"span":"div")}const Pn={ru:{common:["\u0434\u0430\u043b\u0435\u043a\u043e-\u0434\u0430\u043b\u0435\u043a\u043e","\u0437\u0430","\u0441\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u043c\u0438","\u0433\u043e\u0440\u0430\u043c\u0438","\u0432 \u0441\u0442\u0440\u0430\u043d\u0435","\u0433\u043b\u0430\u0441\u043d\u044b\u0445","\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044b\u0431\u043d\u044b\u0435","\u0442\u0435\u043a\u0441\u0442\u044b"],words:["\u0432\u0434\u0430\u043b\u0438","\u043e\u0442 \u0432\u0441\u0435\u0445","\u043e\u043d\u0438","\u0431\u0443\u043a\u0432\u0435\u043d\u043d\u044b\u0445","\u0434\u043e\u043c\u0430\u0445","\u043d\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430","\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e","\u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0433\u043e","\u043e\u043a\u0435\u0430\u043d\u0430","\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043a","\u0434\u0430\u043b\u044c","\u0436\u0443\u0440\u0447\u0438\u0442","\u043f\u043e \u0432\u0441\u0435\u0439","\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043c\u0438","\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438","\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438","\u044d\u0442\u0430","\u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f","\u0441\u0442\u0440\u0430\u043d\u0430","\u043a\u043e\u0442\u043e\u0440\u043e\u0439","\u0436\u0430\u0440\u0435\u043d\u043d\u044b\u0435","\u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f","\u0437\u0430\u043b\u0435\u0442\u0430\u044e\u0442","\u043f\u0440\u044f\u043c\u043e","\u0440\u043e\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043c\u043e\u0433\u0443\u0449\u0430\u044f","\u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f","\u043d\u0435","\u0438\u043c\u0435\u0435\u0442","\u0432\u043b\u0430\u0441\u0442\u0438","\u043d\u0430\u0434","\u0440\u044b\u0431\u043d\u044b\u043c\u0438","\u0442\u0435\u043a\u0441\u0442\u0430\u043c\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043c\u0438","\u0431\u0435\u0437\u043e\u0440\u0444\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u043d\u044b\u0439","\u043e\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043d\u0438","\u043e\u0434\u043d\u0430\u0436\u0434\u044b","\u043e\u0434\u043d\u0430","\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f","\u0441\u0442\u0440\u043e\u0447\u043a\u0430","\u0440\u044b\u0431\u043d\u043e\u0433\u043e","\u0442\u0435\u043a\u0441\u0442\u0430","\u0438\u043c\u0435\u043d\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043b\u0430","\u0432\u044b\u0439\u0442\u0438","\u0431\u043e\u043b\u044c\u0448\u043e\u0439","\u043c\u0438\u0440","\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0438","\u0432\u0435\u043b\u0438\u043a\u0438\u0439","\u043e\u043a\u0441\u043c\u043e\u043a\u0441","\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u043b","\u043e","\u0437\u043b\u044b\u0445","\u0437\u0430\u043f\u044f\u0442\u044b\u0445","\u0434\u0438\u043a\u0438\u0445","\u0437\u043d\u0430\u043a\u0430\u0445","\u0432\u043e\u043f\u0440\u043e\u0441\u0430","\u043a\u043e\u0432\u0430\u0440\u043d\u044b\u0445","\u0442\u043e\u0447\u043a\u0430\u0445","\u0437\u0430\u043f\u044f\u0442\u043e\u0439","\u043d\u043e","\u0442\u0435\u043a\u0441\u0442","\u0434\u0430\u043b","\u0441\u0431\u0438\u0442\u044c","\u0441\u0435\u0431\u044f","\u0442\u043e\u043b\u043a\u0443","\u043e\u043d","\u0441\u043e\u0431\u0440\u0430\u043b","\u0441\u0435\u043c\u044c","\u0441\u0432\u043e\u0438\u0445","\u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0445","\u0431\u0443\u043a\u0432","\u043f\u043e\u0434\u043f\u043e\u044f\u0441\u0430\u043b","\u0438\u043d\u0438\u0446\u0438\u0430\u043b","\u0437\u0430","\u043f\u043e\u044f\u0441","\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f","\u0434\u043e\u0440\u043e\u0433\u0443","\u0432\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c","\u043f\u0435\u0440\u0432\u0443\u044e","\u0432\u0435\u0440\u0448\u0438\u043d\u0443","\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0445","\u0433\u043e\u0440","\u0431\u0440\u043e\u0441\u0438\u043b","\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439","\u0432\u0437\u0433\u043b\u044f\u0434","\u043d\u0430\u0437\u0430\u0434","\u0441\u0438\u043b\u0443\u044d\u0442","\u0441\u0432\u043e\u0435\u0433\u043e","\u0440\u043e\u0434\u043d\u043e\u0433\u043e","\u0433\u043e\u0440\u043e\u0434\u0430","\u0431\u0443\u043a\u0432\u043e\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","\u0434\u0435\u0440\u0435\u0432\u043d\u0438","\u0430\u043b\u0444\u0430\u0432\u0438\u0442","\u043f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","\u0441\u0432\u043e\u0435\u0433\u043e","\u043f\u0435\u0440\u0435\u0443\u043b\u043a\u0430","\u0433\u0440\u0443\u0441\u0442\u043d\u044b\u0439","\u0440\u0435\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439","\u0432\u043e\u043f\u0440\u043e\u0441","\u0441\u043a\u0430\u0442\u0438\u043b\u0441\u044f","\u0435\u0433\u043e","\u0449\u0435\u043a\u0435","\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b","\u0441\u0432\u043e\u0439","\u043f\u0443\u0442\u044c","\u0434\u043e\u0440\u043e\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b","\u0440\u0443\u043a\u043e\u043f\u0438\u0441\u044c","\u043e\u043d\u0430","\u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u043b\u0430","\u043c\u043e\u0435\u0439","\u0432\u0441\u0435","\u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f","\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e","\u0440\u0430\u0437","\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435","\u0447\u0442\u043e","\u043c\u0435\u043d\u044f","\u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c","\u044d\u0442\u043e","\u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430","\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044f","\u0442\u044b","\u043b\u0443\u0447\u0448\u0435","\u0441\u0432\u043e\u044e","\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0443\u044e","\u0441\u0442\u0440\u0430\u043d\u0443","\u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044c","\u0440\u0443\u043a\u043e\u043f\u0438\u0441\u0438","\u043d\u0430\u0448","\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b","\u0441\u0432\u043e\u0439","\u043f\u0443\u0442\u044c","\u0432\u0441\u043a\u043e\u0440\u0435","\u0435\u043c\u0443","\u043f\u043e\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0441\u044f","\u043a\u043e\u0432\u0430\u0440\u043d\u044b\u0439","\u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044c","\u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445","\u0442\u0435\u043a\u0441\u0442\u043e\u0432","\u043d\u0430\u043f\u043e\u0438\u0432\u0448\u0438\u0439","\u044f\u0437\u044b\u043a\u043e\u043c","\u0440\u0435\u0447\u044c\u044e","\u0437\u0430\u043c\u0430\u043d\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043e\u0435","\u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u043e","\u043a\u043e\u0442\u043e\u0440\u043e\u0435","\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e","\u0441\u043d\u043e\u0432\u0430","\u0441\u043d\u043e\u0432\u0430","\u0441\u0432\u043e\u0438\u0445","\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445","\u0435\u0441\u043b\u0438","\u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b\u0438","\u0442\u043e","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043c","\u0434\u043e","\u0441\u0438\u0445","\u043f\u043e\u0440"]},sp:{common:["mujer","uno","dolor","m\xe1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xf1o","suntuoso","molde","namibia","planeador","mirar","dem\xe1s","oficinista","excepci\xf3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xf3rum","dign\xedsimo","facilismo","letra","nihilista","expedici\xf3n","alma","alveolar","aparte","le\xf3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xe9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xf3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xf3n","lejos","necesariamente","sospechoso","adiposidad","quind\xedo","p\xf3cima","voluble","d\xe9bito","sinti\xf3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xednima","mayores","repugnante","dulce","obcecado","monta\xf1a","enigma","total","delet\xe9reo","d\xe9cima","c\xe1bala","fotograf\xeda","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xedfico","distinci\xf3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xfasculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xeda","analfabeto","remo","fugacidad","oficio","en","alm\xe1cigo","vos","pan","represi\xf3n","n\xfameros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xf3n","expl\xedcito","paloma","s\xedndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xe9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xf3sito","fantas\xeda","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},zn=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Rn(e,t){return Math.floor(Math.random()*(t-e)+e)}function In(e,t){const n=e.length,r=Math.min(n,t),i=[];for(;i.length<r;){const t=e[Rn(0,n)];i.includes(t)||i.push(t)}return i}function qn(e,t){var n,r;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(r="?!...")[Rn(0,r.length-1)])}function Un(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let r=0;r=t>3&&t<=6?Rn(0,1):t>6&&t<=12?Rn(0,2):Rn(1,4);for(let i,o=0;o<r;o++)i=Rn(0,t-2),n.test(e[i])||(e[i]+=",");return e}function Fn(e,t,n){const r=[];let i,o=0;for(n&&e.common&&(i=e.common.slice(0,t),o+=i.length,r.push(qn(Un(i),".")));o<t;)i=In(e.words,Math.min(Rn(2,30),t-o)),o+=i.length,r.push(qn(Un(i)));return r.join(" ")}function Vn(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function Wn(e){return"select"!==e.name}const Bn=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Hn=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Zn=e=>/^[a-z]\-/i.test(e),Jn=e=>/^[a-z]/i.test(e);function Xn(e,t,n){!function(e){const t=Yn(e),n=[];for(const r of t.classNames){const e=r.indexOf("_");e>0&&!r.startsWith("-")?(n.push(r.slice(0,e)),n.push(r.slice(e))):n.push(r)}n.length&&(t.classNames=n.filter(rr),t.block=Qn(t.classNames),tr(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=Yn(e),i=[],{options:o}=n,s=t.slice(1).concat(e);for(let l of r.classNames){let e,t="";const r=l;(e=l.match(Bn))&&(t=Gn(s,e[1].length,n.context)+o["bem.element"]+e[2],i.push(t),l=l.slice(e[0].length)),(e=l.match(Hn))&&(t||(t=Gn(s,e[1].length),i.push(t)),i.push(`${t}${o["bem.modifier"]}${e[2]}`),l=l.slice(e[0].length)),l===r&&i.push(r)}const a=i.filter(rr);a.length&&tr(e,a.join(" "))}(e,t,n)}function Yn(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=nr(n.value);break}e._bem=Kn(t)}return e._bem}function Kn(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:Qn(t)}}function Gn(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=Yn(t);if(e.block)return e.block}}while(0<r--);if(n){const e=function(e){return e._bem||(e._bem=Kn(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function Qn(e){return er(e,Zn)||er(e,Jn)||void 0}function er(e,t){for(const n of e){if(Bn.test(n)||Hn.test(n))break;if(t(n))return n}}function tr(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function nr(e){let t="";for(const n of e)t+="string"===typeof n?n:n.name;return t}function rr(e,t,n){return!!e&&n.indexOf(e)===t}function ir(e,t,n){const r=(e,r,o)=>{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,r,o,n,i),n.current=a,n.parent=s},i=(e,t,i)=>{n.ancestors.push(n.current),r(e,t,i),n.ancestors.pop()};e.children.forEach(r)}function or(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:_n(e.options)}}const sr=[{type:"Field",index:0,name:""}];function ar(e){return!!e&&(!e.name&&!e.attributes)}function lr(e,t){return!!e&&Mn(e,t)}function cr(e){return"object"===typeof e&&"Field"===e.type}function ur(e,t){const{out:n}=t;let r=-1;for(const i of e)"string"===typeof i?En(n,i):(On(n,t.field+i.index,i.name),i.index>r&&(r=i.index));-1!==r&&(t.field+=r+1)}function dr(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function hr(e){const t=[],n={pos:0,text:e};let r,i=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(r=fr(n))?(i!==n.pos&&t.push(e.slice(i,o)),t.push(r),i=n.pos):n.pos++;return i!==n.pos&&t.push(e.slice(i)),t}function fr(e){if(91===pr(e)){const t=++e.pos;let n=t,r=t,i=1;for(;e.pos<e.text.length;){const o=pr(e);if(gr(o)){for(n=e.pos;mr(pr(e));)e.pos++;r=e.pos}else{if(91===o)i++;else if(93===o&&0===--i)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function pr(e,t=e.pos){return e.text.charCodeAt(t)}function gr(e){return e>=65&&e<=90}function mr(e){return gr(e)||e>47&&e<58||95===e||45===e}function br(e,t){const{comment:n}=t;if(!n.enabled||!n.trigger||!e.name||!e.attributes)return!1;for(const r of e.attributes)if(r.name&&n.trigger.includes(r.name))return!0;return!1}function yr(e,t,n){const r={},{out:i}=n;for(const o of e.attributes)o.name&&o.value&&(r[o.name.toUpperCase()]=o.value);for(const o of t)"string"===typeof o?En(i,o):r[o.name]&&(En(i,o.before),ur(r[o.name],n),En(i,o.after))}const wr=/^<([\w\-:]+)[\s>]/;function vr(e,t){const n=or(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?hr(t["comment.before"]):void 0,after:t["comment.after"]?hr(t["comment.after"]):void 0}}(t),ir(e,kr,n),n.out.value}function kr(e,t,n,r,i){const{out:o,config:s}=r,a=Cr(e,t,n,r),l=function(e){const{config:t,parent:n}=e;if(!n||ar(n)||n.name&&t.options["output.formatSkip"].includes(n.name))return 0;return 1}(r);if(o.level+=l,a&&Sn(o,!0),e.name){const t=function(e,t){return Dn(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){br(e,t)&&t.comment.before&&yr(e,t.comment.before,t)}(e,r),En(o,`<${t}`),e.attributes)for(const n of e.attributes)dr(n)&&xr(n,r);if(!e.selfClosing||e.children.length||e.value){if(En(o,">"),!_r(e,r,i)){if(e.value){const t=e.value.some(Er)||function(e,t){if(e.length&&"string"===typeof e[0]){const n=wr.exec(e[0]);if((null===n||void 0===n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&Sn(r.out,++o.level),ur(e.value,r),t&&Sn(r.out,--o.level)}if(e.children.forEach(i),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&Sn(r.out,++o.level),ur(sr,r),t&&Sn(r.out,--o.level)}}En(o,`</${t}>`),function(e,t){br(e,t)&&t.comment.after&&yr(e,t.comment.after,t)}(e,r)}else En(o,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!_r(e,r,i)&&e.value&&(ur(e.value,r),e.children.forEach(i));if(a&&t===n.length-1&&r.parent){const e=ar(r.parent)?0:1;Sn(o,o.level-e)}o.level-=l}function xr(e,t){const{out:n,config:r}=t;if(e.name){const i=Ln(e.name,r),o=An(e,r,!0),s=An(e,r);let a=e.value;$n(e,r)&&!a?r.options["output.compactBoolean"]||(a=[i]):a||(a=sr),En(n," "+i),a?(En(n,"="+o),ur(a,t),En(n,s)):"html"!==r.options["output.selfClosingStyle"]&&En(n,"="+o+s)}}function _r(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(cr);if(-1!==r){ur(e.value.slice(0,r),t);const i=t.out.line;let o=r+1;return e.children.forEach(n),t.out.line!==i&&"string"===typeof e.value[o]&&En(t.out,e.value[o++].trimLeft()),ur(e.value.slice(o),t),!0}}return!1}function Cr(e,t,n,r){const{config:i,parent:o}=r;if(!i.options["output.format"])return!1;if(0===t&&!o)return!1;if(o&&ar(o)&&1===n.length)return!1;if(ar(e)){if(ar(n[t-1])||ar(n[t+1])||e.value.some(Er)||e.value.some(cr)&&e.children.length)return!0}if(Mn(e,i)){if(0===t){for(let e=0;e<n.length;e++)if(!Mn(n[e],i))return!0}else if(!Mn(n[t-1],i))return!0;if(i.options["output.inlineBreak"]){let e=1,r=t,o=t;for(;lr(n[--r],i);)e++;for(;lr(n[++o],i);)e++;if(e>=i.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(Cr(e.children[t],t,e.children,r))return!0;return!1}return!0}function Er(e){return"string"===typeof e&&/\r|\n/.test(e)}function Sr(e,t,n){const r=or(t);return r.options=n||{},ir(e,Or,r),r.out.value}function Or(e,t,n,r,i){const{out:o,options:s}=r,{primary:a,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const r of e.attributes)Lr(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}(e),c=r.parent?1:0;o.level+=c,function(e,t,n,r){if(!r.parent&&0===t)return!1;return!ar(e)}(e,t,0,r)&&Sn(o,!0),!e.name||"div"===e.name&&a.length||En(o,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)if(n.value)if("class"===n.name){En(t.out,".");ur(n.value.map(e=>"string"===typeof e?e.replace(/\s+/g,"."):e),t)}else En(t.out,"#"),ur(n.value,t)}(a,r),function(e,t){if(e.length){const{out:n,config:r,options:i}=t;i.beforeAttribute&&En(n,i.beforeAttribute);for(let o=0;o<e.length;o++){const s=e[o];En(n,Ln(s.name||"",r)),$n(s,r)&&!s.value?!r.options["output.compactBoolean"]&&i.booleanValue&&En(n,"="+i.booleanValue):(En(n,"="+An(s,r,!0)),ur(s.value||sr,t),En(n,An(s,r))),o!==e.length-1&&i.glueAttribute&&En(n,i.glueAttribute)}i.afterAttribute&&En(n,i.afterAttribute)}}(l.filter(dr),r),!e.selfClosing||e.value||e.children.length?(!function(e,t){if(!e.value&&e.children.length)return;const n=e.value||sr,r=function(e){const t=[];let n=[];for(const r of e)if("string"===typeof r){const e=r.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(r);return n.length&&t.push(n),t}(n),{out:i,options:o}=t;if(1===r.length)(e.name||e.attributes)&&Cn(i," "),ur(n,t);else{const e=[];let n=0;for(const t of r){const r=Ar(t);e.push(r),r>n&&(n=r)}i.level++;for(let s=0;s<r.length;s++)Sn(i,!0),o.beforeTextLine&&Cn(i,o.beforeTextLine),ur(r[s],t),o.afterTextLine&&(Cn(i," ".repeat(n-e[s])),Cn(i,o.afterTextLine));i.level--}}(e,r),e.children.forEach(i)):r.options.selfClose&&En(o,r.options.selfClose),o.level-=c}function Lr(e){return"class"===e.name||"id"===e.name}function Ar(e){let t=0;for(const n of e)t+="string"===typeof n?n.length:n.name.length;return t}const $r={html:vr,haml:function(e,t){return Sr(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return Sr(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return Sr(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Mr(e,t){let n;if("string"===typeof e){let r=t;t.options["jsx.enabled"]&&(r=Object.assign(Object.assign({},r),{jsx:!0})),t.options["markup.href"]&&(r=Object.assign(Object.assign({},r),{href:!0})),e=Pt(e,r),n=t.text,t.text=void 0}return e=function(e,t){const n=[],r=t.options["output.reverseAttributes"],i=e=>{const o=e.name&&t.snippets[e.name];if(!o||n.includes(o))return null;const s=Pt(o,t);n.push(o),kn(s,i),n.pop();for(const t of s.children){if(e.attributes){const n=t.attributes||[],i=e.attributes||[];t.attributes=r?i.concat(n):n.concat(i)}xn(e,t)}return s};return kn(e,i),e}(e,t),function(e,t,n){const r=[e],i=e=>{t(e,r,n),r.push(e),e.children.forEach(i),r.pop()};e.children.forEach(i)}(e,Dr,t),t.text=null!==n&&void 0!==n?n:t.text,e}function jr(e,t){return($r[t.syntax]||vr)(e,t)}function Dr(e,t,n){!function(e,t,n){!e.name&&e.attributes&&Tn(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],r={};for(const i of e.attributes)if(i.name){const e=i.name;if(e in r){const n=r[e];"class"===e?n.value=mn(n.value,i.value," "):bn(n,i,t)}else n.push(r[e]=Object.assign({},i))}else n.push(i);e.attributes=n}(e,n),function(e,t,n){let r;if(e.name&&(r=e.name.match(zn))){const i=Pn[r[1]]||Pn.latin,o=r[2]?Math.max(1,Number(r[2])):30,s=Rn(o,r[3]?Math.max(o,Number(r[3].slice(1))):o),a=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Fn(i,s,!a||0===a.value)],e.repeat&&t.length>1&&Tn(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(Wn))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(Vn)}(e),n.options["bem.enabled"]&&Xn(e,t,n)}const Nr=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Tr={value:!0};function Pr(e,t){const n=t.match(Nr);if(n){const t={},r=n[2]?n[2].split("|").map(Rr):[];for(const e of r)for(const n of e)qr(n,t);return{type:"Property",key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function zr(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Rr(e){return gn(e.trim(),Tr)[0].value}function Ir(e){return"Property"===e.type}function qr(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Ur(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const r=e.length,i=t.length;if(!n&&r>i)return 0;const o=Math.min(r,i),s=Math.max(r,i);let a=1,l=1,c=s,u=0,d=0,h=!1,f=!1;for(;a<r;){for(u=e.charCodeAt(a),h=!1,f=!1;l<i;){if(d=t.charCodeAt(l),u===d){h=!0,c+=s-(f?a:l);break}f=45===d,l++}if(!h){if(!n)return 0;break}a++}const p=s-o;return c*(a/s)/(Fr(s)-Fr(p))}function Fr(e){return e*(e+1)/2}function Vr(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Br(e.r)&&Br(e.g)&&Br(e.b)?Hr:Zr;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];1!==e.a&&t.push(Wr(e.a,8));return`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Wr(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Br(e){return!(e%17)}function Hr(e){return(e>>4).toString(16)}function Zr(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function Jr(e,t){var n;const r=_n(t.options),i=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter(e=>e.snippet));for(let o=0;o<e.length;o++)i&&0!==o&&Sn(r,!0),Xr(e[o],r,t);return r.value}function Xr(e,t,n){const r=n.options["stylesheet.json"];if(e.name){En(t,(r?e.name.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const r=n.options["stylesheet.json"],i=r?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!i||i.unit&&"px"!==i.unit){const i=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);r&&Cn(t,i);for(let r=0;r<e.value.length;r++)0!==r&&Cn(t,", "),Kr(e.value[r],t,n);r&&Cn(t,i)}else Cn(t,String(i.value))}(e,t,n):On(t,0,""),r?Cn(t,","):(Yr(e,t,!0),Cn(t,n.options["stylesheet.after"]))}else{for(const r of e.value)for(const e of r.value)Gr(e,t,n);Yr(e,t,e.value.length>0)}}function Yr(e,t,n){e.important&&(n&&Cn(t," "),Cn(t,"!important"))}function Kr(e,t,n){for(let r=0,i=-1;r<e.value.length;r++){const o=e.value[r];0===r||"Field"===o.type&&o.start===i||Cn(t," "),Gr(o,t,n),i=o.end}}function Gr(e,t,n){if("ColorValue"===e.type)Cn(t,Vr(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)En(t,e.value);else if("NumberValue"===e.type)En(t,Wr(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";En(t,n+e.value+n)}else if("Field"===e.type)On(t,e.index,e.name);else if("FunctionCall"===e.type){Cn(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&Cn(t,", "),Kr(e.arguments[r],t,n);Cn(t,")")}}const Qr="lg";function ei(e,t){var n;const r=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(Pr(n,e[n]));return function(e){e=e.slice().sort(zr);const t=[];let n;for(const r of e.filter(Ir)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&45===r.property.charCodeAt(n.property.length)){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=r),"string"===typeof e&&(e=gn(e,{value:di(t)}));const i=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter(e=>"Raw"===e.type);if("@@property"===t.context.name)return e.filter(e=>"Property"===e.type)}return e}(r,t);for(const o of e)ti(o,i,t);return e}function ti(e,t,n){if(!function(e,t){let n=null;const r=1===e.value.length?e.value[0]:null;if(r&&1===r.value.length){const e=r.value[0];"FunctionCall"===e.type&&e.name===Qr&&(n=e)}if(n||e.name===Qr)return n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[si(li(0,""))]},t.context||(e.name="background-image"),e.value=[si(n)],!0;return!1}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(di(n)){const i=n.context.name,o=t.find(e=>"Property"===e.type&&e.property===i);ni(e,n,o,r),e.snippet=o}else if(e.name){const i=ri(e.name,t,r,!0);e.snippet=i,i&&("Property"===i.type?function(e,t,n){const r=e.name,i=function(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),-1===r)return e.slice(n);r++}return""}(r,t.key);if(i){if(e.value.length)return e;const r=oi(i,n,t);if(!r)return e;e.value.push(si(r))}if(e.name=t.property,e.value.length)ni(e,n,t);else if(t.value.length){const r=t.value[0];e.value=1===t.value.length||r.some(ci)?r:r.map(e=>ui(e,n))}}(e,i,n):function(e,t){let n,r=0;const i=/\$\{(\d+)(:[^}]+)?\}/g,o=e.value[0],s=[];for(;n=i.exec(t.value);)r!==n.index&&s.push(ai(t.value.slice(r,n.index))),r=n.index+n[0].length,o&&o.value.length?s.push(o.value.shift()):s.push(li(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(r);a&&s.push(ai(a));e.name=void 0,e.value=[si(...s)]}(e,i))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],r=t.options["stylesheet.unitless"];for(const i of e.value)for(const o of i.value)"NumberValue"===o.type&&(o.unit?o.unit=n[o.unit]||o.unit:0===o.value||r.includes(e.name)||(o.unit=o.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function ni(e,t,n,r){for(const i of e.value){const e=[];for(const o of i.value)if("Literal"===o.type)e.push(oi(o.value,t,n,r)||o);else if("FunctionCall"===o.type){const i=oi(o.name,t,n,r);i&&"FunctionCall"===i.type?e.push(Object.assign(Object.assign({},i),{arguments:o.arguments.concat(i.arguments.slice(o.arguments.length))})):e.push(o)}else e.push(o);i.value=e}}function ri(e,t,n=0,r=!1){let i=null,o=0;for(const s of t){const t=Ur(e,ii(s),r);if(1===t)return s;t&&t>=o&&(o=t,i=s)}return o>=n?i:null}function ii(e){return"string"===typeof e?e:e.key}function oi(e,t,n,r){let i;if(n){if(i=ri(e,Object.keys(n.keywords),r))return n.keywords[i];for(const t of n.dependencies)if(i=ri(e,Object.keys(t.keywords),r))return t.keywords[i]}return(i=ri(e,t.options["stylesheet.keywords"],r))?ai(i):null}function si(...e){return{type:"CSSValue",value:e}}function ai(e){return{type:"Literal",value:e}}function li(e,t){return{type:"Field",index:e,name:t}}function ci(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(ci))return!0;return!1}function ui(e,t,n={index:1}){let r=[];for(const i of e.value)switch(i.type){case"ColorValue":r.push(li(n.index++,Vr(i,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(li(n.index++,i.value));break;case"NumberValue":r.push(li(n.index++,`${i.value}${i.unit}`));break;case"StringValue":const e="single"===i.quote?"'":'"';r.push(li(n.index++,e+i.value+e));break;case"FunctionCall":r.push(li(n.index++,i.name),ai("("));for(let o=0,s=i.arguments.length;o<s;o++)r=r.concat(ui(i.arguments[o],t,n).value),o!==s-1&&r.push(ai(", "));r.push(ai(")"));break;default:r.push(i)}return Object.assign(Object.assign({},e),{value:r})}function di(e){return!!e.context&&("@@value"===e.context.name||!e.context.name.startsWith("@@"))}const hi={markup:"html",stylesheet:"css"},fi={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},pi={markup:{snippets:gi({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:gi({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:gi({"!!!":"{doctype html}"})},stylesheet:{snippets:gi({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function gi(e){const t={};return Object.keys(e).forEach(n=>{for(const r of n.split("|"))t[r]=e[n]}),t}function mi(e={},t={}){const n=e.type||"markup",r=e.syntax||hi[n];return Object.assign(Object.assign(Object.assign({},fi),e),{type:n,syntax:r,variables:bi(n,r,"variables",e,t),snippets:bi(n,r,"snippets",e,t),options:bi(n,r,"options",e,t)})}function bi(e,t,n,r,i={}){const o=pi[e],s=i[e],a=pi[t],l=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fi[n]),o&&o[n]),a&&a[n]),s&&s[n]),l&&l[n]),r[n])}function yi(e,t=0){return{text:e,start:t,pos:e.length}}function wi(e){return e.pos===e.start}function vi(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function ki(e){if(!wi(e))return e.text.charCodeAt(--e.pos)}function xi(e,t){if(wi(e))return!1;const n="function"===typeof t?t(vi(e)):t===vi(e);return n&&e.pos--,!!n}function _i(e,t){const n=e.pos;for(;xi(e,t););return e.pos<n}function Ci(e){return 39===e||34===e}const Ei={91:93,40:41,123:125};function Si(e){const t=e.pos;if(!xi(e,62))return!1;let n=!1;for(xi(e,47);!wi(e);){if(_i(e,Mi),Ai(e)){if(xi(e,47)){n=xi(e,60);break}if(xi(e,60)){n=!0;break}if(xi(e,Mi))continue;if(xi(e,61)){if(Ai(e))continue;break}if(Li(e)){n=!0;break}break}if(!Oi(e))break}return e.pos=t,n}function Oi(e){return function(e){const t=e.pos;if(function(e){const t=e.pos,n=ki(e);if(Ci(n))for(;!wi(e);)if(ki(e)===n&&92!==vi(e))return!0;return e.pos=t,!1}(e)&&xi(e,61)&&Ai(e))return!0;return e.pos=t,!1}(e)||Li(e)}function Li(e){const t=e.pos,n=[];for(;!wi(e);){const t=vi(e);if(Ni(t))n.push(t);else if(Di(t)){if(n.pop()!==Ei[t])break}else if(!ji(t))break;e.pos--}return!(t===e.pos||!xi(e,61)||!Ai(e))||(e.pos=t,!1)}function Ai(e){return _i(e,$i)}function $i(e){return 58===e||45===e||function(e){return e&=-33,e>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Mi(e){return 32===e||9===e}function ji(e){return!isNaN(e)&&61!==e&&!Mi(e)&&!Ci(e)}function Di(e){return 123===e||40===e||91===e}function Ni(e){return 125===e||41===e||93===e}const Ti=e=>e.charCodeAt(0),Pi="#.*:$-_!@%^+>/".split("").map(Ti),zi={type:"markup",lookAhead:!0,prefix:""};function Ri(e,t=e.length,n={}){const r=Object.assign(Object.assign({},zi),n);let i;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){Ci(e.charCodeAt(t))&&t++;for(;Vi(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const o=function(e,t,n){if(!n)return 0;const r=yi(e),i=n.split("").map(Ti);let o;r.pos=t;for(;!wi(r);)if(!Ii(r,93,91)&&!Ii(r,125,123)){if(o=r.pos,qi(r,i))return o;r.pos--}return-1}(e,t,r.prefix||"");if(-1===o)return;const s=yi(e,o);s.pos=t;const a=[];for(;!wi(s);){if(i=vi(s),a.includes(125)){if(125===i){a.push(i),s.pos--;continue}if(123!==i){s.pos--;continue}}if(Vi(i,r.type))a.push(i);else if(Fi(i,r.type)){if(a.pop()!==Ei[i])break}else{if(a.includes(93)||a.includes(125)){s.pos--;continue}if(Si(s)||!Ui(i))break}s.pos--}if(!a.length&&s.pos!==t){const r=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:r,location:t-r.length,start:n.prefix?o-n.prefix.length:t-r.length,end:t}}}function Ii(e,t,n){const r=e.pos;if(xi(e,t))for(;!wi(e);){if(xi(e,n))return!0;e.pos--}return e.pos=r,!1}function qi(e,t){const n=e.pos;let r=!1;for(let i=t.length-1;i>=0&&!wi(e)&&xi(e,t[i]);i--)r=0===i;return r||(e.pos=n),r}function Ui(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Pi.includes(e)}function Fi(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function Vi(e,t){return 41===e||"markup"===t&&(93===e||125===e)}function Wi(e,t){const n=mi(t);return"stylesheet"===n.type?function(e,t){return Jr(ei(e,t),t)}(e,n):function(e,t){return jr(Mr(e,t),t)}(e,n)}var Bi,Hi={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Zi={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},Ji=new Map,Xi=new Map,Yi=/^[a-z,A-Z,!,(,[,#,\.\{]/,Ki=/^[a-z,A-Z,!,(,[,#,\.]/,Gi=/^-?[a-z,A-Z,!,@,#]/,Qi=/[a-z,A-Z\.]/,eo=ve(ve([],Zi.tags,!0),["lorem"],!1),to="bem",no="|",ro="t",io="c";function oo(e,t,n,r,i){var o,s=ho(r);if(!s){if(!Ji.has(r)){var a=function(e){var t=fo(e),n={type:t,syntax:e},r=mi(n);return"xml"===e?{}:r.snippets}(r);Ji.set(r,Object.keys(a))}Bi=null!==(o=Ji.get(r))&&void 0!==o?o:[]}var l={lookAhead:!s,type:fo(r)},c=function(e,t,n,r){var i=t.getLineContent(n.lineNumber),o=i.substr(0,n.column-1),s=function(e,t){for(var n,r=0;r<3;r++)if(e.endsWith("".concat(no).concat(to),t))t-=4,n=n?to+","+n:to;else if(e.endsWith("".concat(no).concat(io),t))t-=2,n=n?"c,"+n:io;else{if(!e.endsWith("".concat(no).concat(ro),t))break;t-=2,n=n?"t,"+n:ro}return{pos:t,filter:n}}(o,n.column-1),a=s.pos,l=s.filter,c=l?l.length+1:0,u=Ri(i,a,r);if(!u)return;var d=new e.Range(n.lineNumber,u.location+1,n.lineNumber,u.location+u.abbreviation.length+c+1);return{abbreviationRange:d,abbreviation:u.abbreviation,currentLineTillPosition:o,filter:l}}(e,t,n,l);if(c){var u=c.abbreviationRange,d=c.abbreviation,h=c.currentLineTillPosition,f=c.filter,p=function(e){if(e){var t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(h);if(p!==d||!h.endsWith("<".concat(d))||s){var g,m=function(e,t){var n=fo(e),r=t?t.split(",").map(function(e){return e.trim()}):[],i=r.includes("bem"),o=r.includes("c"),s={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":uo,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":o,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":i,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"};return{type:n,options:s,variables:{},snippets:{},syntax:e,text:void 0,maxRepeat:1e3}}(r,f),b="",y=[];if(function(t,n){if(function(e,t){if(!t)return!1;if(ho(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(eo.includes(t.substring(0,t.indexOf("#"))))return!1}return Gi.test(t)}if(t.startsWith("!"))return!/[^!]/.test(t);if((/\(/.test(t)||/\)/.test(t))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)&&!/\(.*\)[>\+\*\^]/.test(t)&&!/\[[^\[\]\(\)]+=".*"\]/.test(t)&&!/[>\+\*\^]\(.*\)/.test(t))return!1;if("jsx"===e)return Ki.test(t)&&Qi.test(t);return Yi.test(t)&&Qi.test(t)}(t,d)){try{b=Wi(n,m),s&&"!important".startsWith(n)&&(b="!important")}catch(r){}b&&!function(e,t,n,r){var i,o;if(ho(e)&&r){var s=null!==(i=r["stylesheet.between"])&&void 0!==i?i:": ",a=null!==(o=r["stylesheet.after"])&&void 0!==o?o:";",l=t.indexOf(s[0],Math.max(t.length-s.length,0));l=l>=0?l:t.length;var c=t.substring(0,l);return n==="".concat(c).concat(s,"${0}").concat(a)||n.replace(/\s/g,"")===t.replace(/\s/g,"")+a}if("xml"===e&&eo.some(function(e){return e.startsWith(t.toLowerCase())}))return!0;if(eo.includes(t.toLowerCase())||Bi.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;var u=t.match(/^([a-z,A-Z,\d]*)\.$/);if(u)return!u[1]||!Zi.tags.includes(u[1]);if("jsx"===e&&/^([A-Z][A-Za-z0-9]*)+$/.test(t))return!1;return n.toLowerCase()==="<".concat(t.toLowerCase(),">${1}</").concat(t.toLowerCase(),">")}(t,n,b,m.options)&&(g={kind:e.languages.CompletionItemKind.Property,label:d+(f?"|"+f.replace(",","|"):""),documentation:ao(b),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:u,insertText:lo(co(b))},y=[g])}}(r,d),s){if(d.length>4&&Hi.properties.some(function(e){return e.startsWith(d)}))return{suggestions:[],incomplete:!0};if(g&&b.length){g.range=u,g.insertText=lo(co(b)),g.documentation=ao(b),g.label=b.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),g.filterText=d;var w=Xi.has(r)?Xi.get(r):Xi.get("css");if(!(y=so(e,null!==w&&void 0!==w?w:[],d,d,u,m,"Emmet Custom Snippet",!1)).find(function(e){return e.insertText===(null===g||void 0===g?void 0:g.insertText)})){var v=new RegExp(".*"+d.split("").map(function(e){return"$"===e||"+"===e?"\\"+e:e}).join(".*")+".*","i");(/\d/.test(d)||v.test(g.label))&&y.push(g)}}}else{var k=d,x=d.match(/(>|\+)([\w:-]+)$/);if(x&&3===x.length&&(k=x[2]),"xml"!==r){var _=so(e,eo,k,d,u,m,"Emmet Abbreviation");y=y.concat(_)}if(!0===i.showAbbreviationSuggestions){var C=so(e,Bi.filter(function(e){return!eo.includes(e)}),k,d,u,m,"Emmet Abbreviation");g&&C.length>0&&k!==d&&(g.sortText="0"+g.label,C.forEach(function(e){e.filterText=d,e.sortText="9"+d})),y=y.concat(C)}"html"===r&&y.length>=2&&d.includes(":")&&(null===g||void 0===g?void 0:g.insertText)==="<".concat(d,">${0}</").concat(d,">")&&(y=y.filter(function(e){return e.label!==d}))}return!0===i.showSuggestionsAsSnippets&&y.forEach(function(t){return t.kind=e.languages.CompletionItemKind.Snippet}),y.length?{suggestions:y,incomplete:!0}:void 0}}}function so(e,t,n,r,i,o,s,a){if(void 0===a&&(a=!0),!n||!t)return[];var l=[];return t.forEach(function(t){if(t.startsWith(n.toLowerCase())&&(!a||t!==n.toLowerCase())){var c,u=r+t.substr(n.length);try{c=Wi(u,o)}catch(h){}if(c){var d={kind:e.languages.CompletionItemKind.Property,label:n+t.substr(n.length),documentation:ao(c),detail:s,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:i,insertText:lo(co(c))};l.push(d)}}}),l}function ao(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function lo(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function co(e){if(!e||!e.trim())return e;var t=-1,n=[],r=!1,i=!1,o=0,s=e.length;try{for(;o<s&&!r;)if("$"==e[o++]&&"{"==e[o++]){for(var a=-1,l=-1;o<s&&/\d/.test(e[o]);)a=a<0?o:a,l=o+1,o++;if(!(-1===a||-1===l||o>=s||"}"!=e[o]&&":"!=e[o])){var c=e.substring(a,l);if(r="0"===c)break;var u=!1;if(":"==e[o++])for(;o<s;){if("}"==e[o]){u=!0;break}o++}Number(c)>Number(t)?(t=Number(c),n=[{numberStart:a,numberEnd:l}],i=!u):Number(c)===t&&n.push({numberStart:a,numberEnd:l})}}}catch(p){}if(i&&!r)for(var d=0;d<n.length;d++){var h=n[d].numberStart,f=n[d].numberEnd;e=e.substr(0,h)+"0"+e.substr(f)}return e}var uo=function(e,t){return"${".concat(e).concat(t?":"+t:"","}")};function ho(e){return"css"===e}function fo(e){return ho(e)?"stylesheet":"markup"}function po(e,t,n,r){var i=e[t],o=i.type,s=i.language;return"html"===n&&"html"===s?""===o&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===n&&"css"===s?""===o||o==="tag."+r:"jsx"===n&&(!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(o))}var go={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},mo={handlebars:"html",php:"html",twig:"html"},bo={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function yo(e,t,n){if(e){var r=t.map(function(t){return e.languages.registerCompletionItemProvider(t,{triggerCharacters:go[mo[t]||t],provideCompletionItems:function(t,r){return function(e,t,n,r){for(var i,o=t.column,s=t.lineNumber,a=e._tokenization||e.tokenization._tokenization,l=a._tokenizationStateStore,c=l.tokenizationSupport||a._tokenizationSupport,u=l.getBeginState(s-1).clone(),d=c.tokenize(e.getLineContent(s),!0,u,0),h=d.tokens,f=!1,p=h.length-1;p>=0;p--){var g=h[p];if(o-1>g.offset){if(!(f=po(h,p,n,r))&&"css"===n&&"attribute.value.html"===g.type){do{if(p--<=0){if(0==s--)break;p=(h=(d=c.tokenize(e.getLineContent(s),!0,u,0)).tokens).length-1}g=h[p]}while("attribute.name.html"===g.type);"style"===((null===(i=e.getWordAtPosition({column:g.offset,lineNumber:s}))||void 0===i?void 0:i.word)||"")&&(f=!0)}break}}return f}(t,r,n,n)?oo(e,t,r,n,bo):void 0}})});return function(){r.forEach(function(e){return e.dispose()})}}}var wo=n(86095),vo=n(27941),ko=n(90614),xo=n(15626);const _o=(e,t)=>(Eo(),So(e.user.color,t),e.cursor?[{range:new ye.Range(e.cursor.lineNumber,e.cursor.column,e.cursor.lineNumber,e.cursor.column),options:{className:`applyColorToThis backgroundPrefix-${e.user.color.slice(1)}`,afterContentClassName:"cursor-hover",beforeContentClassName:"",style:`--cursor-color: ${e.user.color};`}}]:[]),Co=e=>e.selection?[{range:new ye.Range(e.selection.startLineNumber,e.selection.startColumn,e.selection.endLineNumber,e.selection.endColumn),options:{className:"user-selection-decoration"}}]:[],Eo=()=>{const e=document.styleSheets[0];Array.from(e.cssRules).some(e=>e.cssText.includes(".applyColorToThis"))||e.insertRule(".applyColorToThis {\n border-left: 2px solid var(--cursor-color, #000);\n color: var(--cursor-color, #000);\n }",e.cssRules.length)},So=(e,t)=>{const n=`backgroundPrefix-${e.slice(1)}`,r=document.styleSheets[0];Array.from(r.cssRules).some(e=>e.cssText.includes(`.${n}`))||r.insertRule(`.${n} { --cursor-color: ${e===t.color?"#000000":e}; }`,r.cssRules.length)},Oo=(e,t,n)=>{if(!e.textContent){const r=document.createElement("div");r.style.background=t,r.style.color="#fff",r.textContent=n,r.className="cursor-hover",e.appendChild(r)}},Lo=(e,t,n,r,i,o)=>{if(r)return;i(!0);const s=e.flatMap(e=>[..._o(e,o),...Co(e)]);n.current=t.deltaDecorations(n.current,s.map(e=>({range:e.range,options:e.options})));((e,t,n,r,i)=>{for(let d=0;d<e.length;d++){const h=e[d],f=h.className.split(" ");for(const e of f)if(e.startsWith(t)){const d=`#${e.replace(t,"")}`,f=r.find(e=>e.user.color===d);var o,s,a,l,c,u;f&&(n&&d!==(null===i||void 0===i?void 0:i.color)?Oo(h,d,null!==f&&void 0!==f&&null!==(o=f.user)&&void 0!==o&&null!==(s=o.name)&&void 0!==s&&s.first_name?`${null===f||void 0===f||null===(a=f.user)||void 0===a||null===(l=a.name)||void 0===l?void 0:l.first_name} ${null===f||void 0===f||null===(c=f.user)||void 0===c||null===(u=c.name)||void 0===u?void 0:u.last_name}`.replace(/[\n\r]/g,""):f.user.name.email.split("@")[0]):h.style.backgroundColor=d)}}})(document.getElementsByClassName("applyColorToThis"),"backgroundPrefix-",!0,e,o),i(!1)},Ao=()=>{const e=50,t=(e,t,n)=>e>100&&t>50&&t<150&&n<100,n=(e,t,n)=>{const r=e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*r(e)+.7152*r(t)+.0722*r(n)},r=(e,t,r)=>(n(255,255,255)+.05)/(n(e,t,r)+.05)>=4.5;let i;do{const n=Math.floor(206*Math.random()+e),o=Math.floor(206*Math.random()+e),s=Math.floor(206*Math.random()+e);n+o+s>=400&&!t(n,o,s)&&r(n,o,s)&&(i=`#${(n<<16|o<<8|s).toString(16).padStart(6,"0")}`)}while(!i);return i},$o=()=>new Map,Mo=e=>{const t=$o();return e.forEach((e,n)=>{t.set(n,e)}),t},jo=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r},Do=()=>new Set,No=e=>e[e.length-1],To=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},Po=Array.from,zo=Array.isArray;class Ro{constructor(){this._observers=$o()}on(e,t){return jo(this._observers,e,Do).add(t),t}once(e,t){const n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return Po((this._observers.get(e)||$o()).values()).forEach(e=>e(...t))}destroy(){this._observers=$o()}}class Io{constructor(){this._observers=$o()}on(e,t){jo(this._observers,e,Do).add(t)}once(e,t){const n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return Po((this._observers.get(e)||$o()).values()).forEach(e=>e(...t))}destroy(){this._observers=$o()}}const qo=Math.floor,Uo=(Math.ceil,Math.abs),Fo=(Math.imul,Math.round,Math.log10,Math.log2,Math.log,Math.sqrt,(e,t)=>e<t?e:t),Vo=(e,t)=>e>t?e:t,Wo=(Number.isNaN,Math.pow),Bo=(Math.sign,e=>0!==e?e<0:1/e<0),Ho=64,Zo=128,Jo=127,Xo=2147483647,Yo=Number.MAX_SAFE_INTEGER,Ko=(Number.MIN_SAFE_INTEGER,Number.isInteger||(e=>"number"===typeof e&&isFinite(e)&&qo(e)===e)),Go=(Number.isNaN,Number.parseInt,String.fromCharCode),Qo=(String.fromCodePoint,Go(65535),/^\s*/g),es=/([A-Z])/g,ts=(e,t)=>(e=>e.replace(Qo,""))(e.replace(es,e=>`${t}${(e=>e.toLowerCase())(e)}`)),ns="undefined"!==typeof TextEncoder?new TextEncoder:null,rs=ns?e=>ns.encode(e):e=>{const t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.codePointAt(i);return r};let is="undefined"===typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});is&&1===is.decode(new Uint8Array).length&&(is=null);class os{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const ss=()=>new os,as=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},ls=e=>{const t=new Uint8Array(as(e));let n=0;for(let r=0;r<e.bufs.length;r++){const i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},cs=(e,t)=>{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(2*n),e.cpos=0),e.cbuf[e.cpos++]=t},us=cs,ds=(e,t)=>{for(;t>Jo;)cs(e,Zo|Jo&t),t=qo(t/128);cs(e,Jo&t)},hs=(e,t)=>{const n=Bo(t);for(n&&(t=-t),cs(e,(t>63?Zo:0)|(n?Ho:0)|63&t),t=qo(t/64);t>0;)cs(e,(t>Jo?Zo:0)|Jo&t),t=qo(t/128)},fs=new Uint8Array(3e4),ps=fs.length/3,gs=ns&&ns.encodeInto?(e,t)=>{if(t.length<ps){const n=ns.encodeInto(t,fs).written||0;ds(e,n);for(let t=0;t<n;t++)cs(e,fs[t])}else bs(e,rs(t))}:(e,t)=>{const n=unescape(encodeURIComponent(t)),r=n.length;ds(e,r);for(let i=0;i<r;i++)cs(e,n.codePointAt(i))},ms=(e,t)=>{const n=e.cbuf.length,r=e.cpos,i=Fo(n-r,t.length),o=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,o>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Vo(2*n,o)),e.cbuf.set(t.subarray(i)),e.cpos=o)},bs=(e,t)=>{ds(e,t.byteLength),ms(e,t)},ys=(e,t)=>{((e,t)=>{const n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(2*Vo(n,t)),e.cpos=0)})(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},ws=new DataView(new ArrayBuffer(4)),vs=(e,t)=>{switch(typeof t){case"string":cs(e,119),gs(e,t);break;case"number":Ko(t)&&Uo(t)<=Xo?(cs(e,125),hs(e,t)):(n=t,ws.setFloat32(0,n),ws.getFloat32(0)===n?(cs(e,124),((e,t)=>{ys(e,4).setFloat32(0,t,!1)})(e,t)):(cs(e,123),((e,t)=>{ys(e,8).setFloat64(0,t,!1)})(e,t)));break;case"bigint":cs(e,122),((e,t)=>{ys(e,8).setBigInt64(0,t,!1)})(e,t);break;case"object":if(null===t)cs(e,126);else if(zo(t)){cs(e,117),ds(e,t.length);for(let n=0;n<t.length;n++)vs(e,t[n])}else if(t instanceof Uint8Array)cs(e,116),bs(e,t);else{cs(e,118);const n=Object.keys(t);ds(e,n.length);for(let r=0;r<n.length;r++){const i=n[r];gs(e,i),vs(e,t[i])}}break;case"boolean":cs(e,t?120:121);break;default:cs(e,127)}var n};class ks extends os{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&ds(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const xs=e=>{e.count>0&&(hs(e.encoder,1===e.count?e.s:-e.s),e.count>1&&ds(e.encoder,e.count-2))};class _s{constructor(){this.encoder=new os,this.s=0,this.count=0}write(e){this.s===e?this.count++:(xs(this),this.count=1,this.s=e)}toUint8Array(){return xs(this),ls(this.encoder)}}const Cs=e=>{if(e.count>0){const t=2*e.diff+(1===e.count?0:1);hs(e.encoder,t),e.count>1&&ds(e.encoder,e.count-2)}};class Es{constructor(){this.encoder=new os,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(Cs(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return Cs(this),ls(this.encoder)}}class Ss{constructor(){this.sarr=[],this.s="",this.lensE=new _s}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new os;return this.sarr.push(this.s),this.s="",gs(e,this.sarr.join("")),ms(e,this.lensE.toUint8Array()),ls(e)}}const Os=e=>new Error(e),Ls=()=>{throw Os("Method unimplemented")},As=()=>{throw Os("Unexpected case")},$s=Os("Unexpected end of array"),Ms=Os("Integer out of Range");class js{constructor(e){this.arr=e,this.pos=0}}const Ds=e=>new js(e),Ns=e=>e.pos!==e.arr.length,Ts=(e,t)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},Ps=e=>Ts(e,Rs(e)),zs=e=>e.arr[e.pos++],Rs=e=>{let t=0,n=1;const r=e.arr.length;for(;e.pos<r;){const r=e.arr[e.pos++];if(t+=(r&Jo)*n,n*=128,r<Zo)return t;if(t>Yo)throw Ms}throw $s},Is=e=>{let t=e.arr[e.pos++],n=63&t,r=64;const i=(t&Ho)>0?-1:1;if(0===(t&Zo))return i*n;const o=e.arr.length;for(;e.pos<o;){if(t=e.arr[e.pos++],n+=(t&Jo)*r,r*=128,t<Zo)return i*n;if(n>Yo)throw Ms}throw $s},qs=is?e=>is.decode(Ps(e)):e=>{let t=Rs(e);if(0===t)return"";{let n=String.fromCodePoint(zs(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(zs(e));else for(;t>0;){const r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},Us=(e,t)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},Fs=[e=>{},e=>null,Is,e=>Us(e,4).getFloat32(0,!1),e=>Us(e,8).getFloat64(0,!1),e=>Us(e,8).getBigInt64(0,!1),e=>!1,e=>!0,qs,e=>{const t=Rs(e),n={};for(let r=0;r<t;r++){n[qs(e)]=Vs(e)}return n},e=>{const t=Rs(e),n=[];for(let r=0;r<t;r++)n.push(Vs(e));return n},Ps],Vs=e=>Fs[127-zs(e)](e);class Ws extends js{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return 0===this.count&&(this.s=this.reader(this),Ns(this)?this.count=Rs(this)+1:this.count=-1),this.count--,this.s}}class Bs extends js{constructor(e){super(e),this.s=0,this.count=0}read(){if(0===this.count){this.s=Is(this);const e=Bo(this.s);this.count=1,e&&(this.s=-this.s,this.count=Rs(this)+2)}return this.count--,this.s}}class Hs extends js{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(0===this.count){const e=Is(this),t=1&e;this.diff=qo(e/2),this.count=1,t&&(this.count=Rs(this)+2)}return this.s+=this.diff,this.count--,this.s}}class Zs{constructor(e){this.decoder=new Bs(e),this.str=qs(this.decoder),this.spos=0}read(){const e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}}crypto.subtle;const Js=crypto.getRandomValues.bind(crypto),Xs=(Math.random,()=>Js(new Uint32Array(1))[0]),Ys=[1e7]+-1e3+-4e3+-8e3+-1e11,Ks=()=>Ys.replace(/[018]/g,e=>(e^Xs()&15>>e/4).toString(16)),Gs=e=>new Promise(e),Qs=(Promise.all.bind(Promise),e=>void 0===e?null:e);let ea=new class{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}},ta=!0;try{"undefined"!==typeof localStorage&&localStorage&&(ea=localStorage,ta=!1)}catch(kd){}const na=ea,ra=Object.assign,ia=Object.keys,oa=(Object.values,e=>ia(e).length),sa=e=>ia(e).length,aa=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),la=Object.freeze,ca=e=>{for(const t in e){const n=e[t];"object"!==typeof n&&"function"!==typeof n||ca(e[t])}return la(e)},ua=Symbol("Equality"),da=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&da(e,t,n+1)}},ha=e=>e,fa=(e,t)=>{if(e===t)return!0;if(null==e||null==t||e.constructor!==t.constructor)return!1;if(null!=e[ua])return e[ua](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break;case Set:if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;break;case Map:if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n)||!fa(e.get(n),t.get(n)))return!1;break;case Object:if(oa(e)!==oa(t))return!1;for(const n in e)if(!aa(e,n)||!fa(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!fa(e[n],t[n]))return!1;break;default:return!1}return!0};var pa=n(88295);const ga="undefined"!==typeof pa&&pa.release&&/node|io\.js/.test(pa.release.name)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof pa?pa:0),ma="undefined"!==typeof window&&"undefined"!==typeof document&&!ga;"undefined"!==typeof navigator&&/Mac/.test(navigator.platform);let ba;const ya=[],wa=()=>{if(void 0===ba)if(ga){ba=$o();const e=pa.argv;let t=null;for(let n=0;n<e.length;n++){const r=e[n];"-"===r[0]?(null!==t&&ba.set(t,""),t=r):null!==t?(ba.set(t,r),t=null):ya.push(r)}null!==t&&ba.set(t,"")}else"object"===typeof location?(ba=$o(),(location.search||"?").slice(1).split("&").forEach(e=>{if(0!==e.length){const[t,n]=e.split("=");ba.set(`--${ts(t,"-")}`,n),ba.set(`-${ts(t,"-")}`,n)}})):ba=$o();return ba},va=e=>wa().has(e),ka=e=>Qs(ga?{}[e.toUpperCase().replaceAll("-","_")]:na.getItem(e)),xa=e=>va("--"+e)||null!==ka(e);xa("production");ga&&["true","1","2"].includes({}.FORCE_COLOR)||!va("--no-colors")&&!xa("no-color")&&(!ga||pa.stdout.isTTY)&&(!ga||va("--color")||null!==ka("COLORTERM")||(ka("TERM")||"").includes("color"));var _a=n(45764).Buffer;const Ca=e=>new Uint8Array(e),Ea=ma?e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=Go(e[n]);return btoa(t)}:e=>_a.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),Sa=ma?e=>{const t=atob(e),n=Ca(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}:e=>{const t=_a.from(e,"base64");return n=t.buffer,r=t.byteOffset,i=t.byteLength,new Uint8Array(n,r,i);var n,r,i};class Oa{constructor(e,t){this.left=e,this.right=t}}const La=(e,t)=>new Oa(e,t),Aa="undefined"!==typeof document?document:{},$a=("undefined"!==typeof DOMParser&&new DOMParser,Aa.ELEMENT_NODE,Aa.TEXT_NODE,Aa.CDATA_SECTION_NODE,Aa.COMMENT_NODE,Aa.DOCUMENT_NODE,Aa.DOCUMENT_TYPE_NODE,Aa.DOCUMENT_FRAGMENT_NODE,Symbol),Ma=Date.now,ja=$a(),Da=$a(),Na=$a(),Ta=$a(),Pa=$a(),za=$a(),Ra=$a(),Ia=$a(),qa=$a();Ma();La("font-weight","bold"),La("font-weight","normal"),La("color","blue"),La("color","green"),La("color","grey"),La("color","red"),La("color","purple"),La("color","orange"),La("color","black");const Ua=(...e)=>{Va.forEach(t=>t.print(e))},Fa=(...e)=>{e.unshift(Ia),Va.forEach(t=>t.print(e))},Va=Do();const Wa=e=>({[Symbol.iterator](){return this},next:e}),Ba=(e,t)=>Wa(()=>{const{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}});class Ha{constructor(e,t){this.clock=e,this.len=t}}class Za{constructor(){this.clients=new Map}}const Ja=(e,t,n)=>t.clients.forEach((t,r)=>{const i=e.doc.store.clients.get(r);if(null!=i){const r=i[i.length-1],o=r.id.clock+r.length;for(let s=0,a=t[s];s<t.length&&a.clock<o;a=t[++s])Xl(e,i,a.clock,a.len,n)}}),Xa=(e,t)=>{const n=e.clients.get(t.client);return void 0!==n&&null!==((e,t)=>{let n=0,r=e.length-1;for(;n<=r;){const i=qo((n+r)/2),o=e[i],s=o.clock;if(s<=t){if(t<s+o.len)return i;n=i+1}else r=i-1}return null})(n,t.clock)},Ya=e=>{e.clients.forEach(e=>{let t,n;for(e.sort((e,t)=>e.clock-t.clock),t=1,n=1;t<e.length;t++){const r=e[n-1],i=e[t];r.clock+r.len>=i.clock?r.len=Vo(r.len,i.clock+i.len-r.clock):(n<t&&(e[n]=i),n++)}e.length=n})},Ka=e=>{const t=new Za;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){const o=r.slice();for(let t=n+1;t<e.length;t++)To(o,e[t].clients.get(i)||[]);t.clients.set(i,o)}});return Ya(t),t},Ga=(e,t,n,r)=>{jo(e.clients,t,()=>[]).push(new Ha(n,r))},Qa=()=>new Za,el=e=>{const t=Qa();return e.clients.forEach((e,n)=>{const r=[];for(let t=0;t<e.length;t++){const n=e[t];if(n.deleted){const i=n.id.clock;let o=n.length;if(t+1<e.length)for(let n=e[t+1];t+1<e.length&&n.deleted;n=e[1+ ++t])o+=n.length;r.push(new Ha(i,o))}}r.length>0&&t.clients.set(n,r)}),t},tl=(e,t)=>{ds(e.restEncoder,t.clients.size),Po(t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),ds(e.restEncoder,t);const r=n.length;ds(e.restEncoder,r);for(let i=0;i<r;i++){const t=n[i];e.writeDsClock(t.clock),e.writeDsLen(t.len)}})},nl=e=>{const t=new Za,n=Rs(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();const n=Rs(e.restDecoder),r=Rs(e.restDecoder);if(r>0){const i=jo(t.clients,n,()=>[]);for(let t=0;t<r;t++)i.push(new Ha(e.readDsClock(),e.readDsLen()))}}return t},rl=(e,t,n)=>{const r=new Za,i=Rs(e.restDecoder);for(let o=0;o<i;o++){e.resetDsCurVal();const i=Rs(e.restDecoder),o=Rs(e.restDecoder),s=n.clients.get(i)||[],a=Fl(n,i);for(let n=0;n<o;n++){const n=e.readDsClock(),o=n+e.readDsLen();if(n<a){a<o&&Ga(r,i,a,o-a);let e=Wl(s,n),l=s[e];for(!l.deleted&&l.id.clock<n&&(s.splice(e+1,0,Pu(t,l,n-l.id.clock)),e++);e<s.length&&(l=s[e++],l.id.clock<o);)l.deleted||(o<l.id.clock+l.length&&s.splice(e,0,Pu(t,l,o-l.id.clock)),l.delete(t))}else Ga(r,i,n,o-n)}}if(r.clients.size>0){const e=new fl;return ds(e.restEncoder,0),tl(e,r),e.toUint8Array()}return null},il=Xs;class ol extends Ro{constructor({guid:e=Ks(),collectionid:t=null,gc:n=!0,gcFilter:r=()=>!0,meta:i=null,autoLoad:o=!1,shouldLoad:s=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=il(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new ql,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=s,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=Gs(e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const a=()=>Gs(e=>{const t=n=>{void 0!==n&&!0!==n||(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=a()),this.isSynced=void 0===e||!0===e,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=a()}load(){const e=this._item;null===e||this.shouldLoad||rc(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Po(this.subdocs).map(e=>e.guid))}transact(e,t=null){return rc(this,e,t)}get(e,t=Ec){const n=jo(this.share,e,()=>{const e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==Ec&&r!==t){if(r===Ec){const r=new t;r._map=n._map,n._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;null!==e;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}throw new Error(`Type with the name ${e} has already been defined with a different constructor`)}return n}getArray(e=""){return this.get(e,Vc)}getText(e=""){return this.get(e,au)}getMap(e=""){return this.get(e,Bc)}getXmlElement(e=""){return this.get(e,uu)}getXmlFragment(e=""){return this.get(e,cu)}toJSON(){const e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){this.isDestroyed=!0,Po(this.subdocs).forEach(e=>e.destroy());const e=this._item;if(null!==e){this._item=null;const t=e.content;t.doc=new ol({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,rc(e.parent.doc,n=>{const r=t.doc;e.deleted||n.subdocsAdded.add(r),n.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class sl{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return Rs(this.restDecoder)}readDsLen(){return Rs(this.restDecoder)}}class al extends sl{readLeftID(){return Al(Rs(this.restDecoder),Rs(this.restDecoder))}readRightID(){return Al(Rs(this.restDecoder),Rs(this.restDecoder))}readClient(){return Rs(this.restDecoder)}readInfo(){return zs(this.restDecoder)}readString(){return qs(this.restDecoder)}readParentInfo(){return 1===Rs(this.restDecoder)}readTypeRef(){return Rs(this.restDecoder)}readLen(){return Rs(this.restDecoder)}readAny(){return Vs(this.restDecoder)}readBuf(){return(e=>{const t=Ca(e.byteLength);return t.set(e),t})(Ps(this.restDecoder))}readJSON(){return JSON.parse(qs(this.restDecoder))}readKey(){return qs(this.restDecoder)}}class ll{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Rs(this.restDecoder),this.dsCurrVal}readDsLen(){const e=Rs(this.restDecoder)+1;return this.dsCurrVal+=e,e}}class cl extends ll{constructor(e){super(e),this.keys=[],Rs(e),this.keyClockDecoder=new Hs(Ps(e)),this.clientDecoder=new Bs(Ps(e)),this.leftClockDecoder=new Hs(Ps(e)),this.rightClockDecoder=new Hs(Ps(e)),this.infoDecoder=new Ws(Ps(e),zs),this.stringDecoder=new Zs(Ps(e)),this.parentInfoDecoder=new Ws(Ps(e),zs),this.typeRefDecoder=new Bs(Ps(e)),this.lenDecoder=new Bs(Ps(e))}readLeftID(){return new Ol(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Ol(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Vs(this.restDecoder)}readBuf(){return Ps(this.restDecoder)}readJSON(){return Vs(this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{const e=this.stringDecoder.read();return this.keys.push(e),e}}}class ul{constructor(){this.restEncoder=ss()}toUint8Array(){return ls(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){ds(this.restEncoder,e)}writeDsLen(e){ds(this.restEncoder,e)}}class dl extends ul{writeLeftID(e){ds(this.restEncoder,e.client),ds(this.restEncoder,e.clock)}writeRightID(e){ds(this.restEncoder,e.client),ds(this.restEncoder,e.clock)}writeClient(e){ds(this.restEncoder,e)}writeInfo(e){us(this.restEncoder,e)}writeString(e){gs(this.restEncoder,e)}writeParentInfo(e){ds(this.restEncoder,e?1:0)}writeTypeRef(e){ds(this.restEncoder,e)}writeLen(e){ds(this.restEncoder,e)}writeAny(e){vs(this.restEncoder,e)}writeBuf(e){bs(this.restEncoder,e)}writeJSON(e){gs(this.restEncoder,JSON.stringify(e))}writeKey(e){gs(this.restEncoder,e)}}class hl{constructor(){this.restEncoder=ss(),this.dsCurrVal=0}toUint8Array(){return ls(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){const t=e-this.dsCurrVal;this.dsCurrVal=e,ds(this.restEncoder,t)}writeDsLen(e){0===e&&As(),ds(this.restEncoder,e-1),this.dsCurrVal+=e}}class fl extends hl{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Es,this.clientEncoder=new _s,this.leftClockEncoder=new Es,this.rightClockEncoder=new Es,this.infoEncoder=new ks(us),this.stringEncoder=new Ss,this.parentInfoEncoder=new ks(us),this.typeRefEncoder=new _s,this.lenEncoder=new _s}toUint8Array(){const e=ss();return ds(e,0),bs(e,this.keyClockEncoder.toUint8Array()),bs(e,this.clientEncoder.toUint8Array()),bs(e,this.leftClockEncoder.toUint8Array()),bs(e,this.rightClockEncoder.toUint8Array()),bs(e,ls(this.infoEncoder)),bs(e,this.stringEncoder.toUint8Array()),bs(e,ls(this.parentInfoEncoder)),bs(e,this.typeRefEncoder.toUint8Array()),bs(e,this.lenEncoder.toUint8Array()),ms(e,ls(this.restEncoder)),ls(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(e?1:0)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){vs(this.restEncoder,e)}writeBuf(e){bs(this.restEncoder,e)}writeJSON(e){vs(this.restEncoder,e)}writeKey(e){const t=this.keyMap.get(e);void 0===t?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}}const pl=(e,t,n)=>{const r=new Map;n.forEach((e,n)=>{Fl(t,n)>e&&r.set(n,e)}),Ul(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),ds(e.restEncoder,r.size),Po(r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{((e,t,n,r)=>{r=Vo(r,t[0].id.clock);const i=Wl(t,r);ds(e.restEncoder,t.length-i),e.writeClient(n),ds(e.restEncoder,r);const o=t[i];o.write(e,r-o.id.clock);for(let s=i+1;s<t.length;s++)t[s].write(e,0)})(e,t.clients.get(n),n,r)})},gl=(e,t,n,r=new cl(e))=>rc(t,e=>{e.local=!1;let t=!1;const n=e.doc,i=n.store,o=((e,t)=>{const n=$o(),r=Rs(e.restDecoder);for(let i=0;i<r;i++){const r=Rs(e.restDecoder),i=new Array(r),o=e.readClient();let s=Rs(e.restDecoder);n.set(o,{i:0,refs:i});for(let n=0;n<r;n++){const r=e.readInfo();switch(31&r){case 0:{const t=e.readLen();i[n]=new gu(Al(o,s),t),s+=t;break}case 10:{const t=Rs(e.restDecoder);i[n]=new qu(Al(o,s),t),s+=t;break}default:{const a=0===(192&r),l=new zu(Al(o,s),null,(r&Zo)===Zo?e.readLeftID():null,null,(r&Ho)===Ho?e.readRightID():null,a?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,a&&32===(32&r)?e.readString():null,Ru(e,r));i[n]=l,s+=l.length}}}}return n})(r,n),s=((e,t,n)=>{const r=[];let i=Po(n.keys()).sort((e,t)=>e-t);if(0===i.length)return null;const o=()=>{if(0===i.length)return null;let e=n.get(i[i.length-1]);for(;e.refs.length===e.i;){if(i.pop(),!(i.length>0))return null;e=n.get(i[i.length-1])}return e};let s=o();if(null===s)return null;const a=new ql,l=new Map,c=(e,t)=>{const n=l.get(e);(null==n||n>t)&&l.set(e,t)};let u=s.refs[s.i++];const d=new Map,h=()=>{for(const e of r){const t=e.id.client,r=n.get(t);r?(r.i--,a.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):a.clients.set(t,[e]),i=i.filter(e=>e!==t)}r.length=0};for(;;){if(u.constructor!==qu){const i=jo(d,u.id.client,()=>Fl(t,u.id.client))-u.id.clock;if(i<0)r.push(u),c(u.id.client,u.id.clock-1),h();else{const o=u.getMissing(e,t);if(null!==o){r.push(u);const e=n.get(o)||{refs:[],i:0};if(e.refs.length!==e.i){u=e.refs[e.i++];continue}c(o,Fl(t,o)),h()}else(0===i||i<u.length)&&(u.integrate(e,i),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(null!==s&&s.i<s.refs.length)u=s.refs[s.i++];else{if(s=o(),null===s)break;u=s.refs[s.i++]}}if(a.clients.size>0){const e=new fl;return pl(e,a,new Map),ds(e.restEncoder,0),{missing:l,update:e.toUint8Array()}}return null})(e,i,o),a=i.pendingStructs;if(a){for(const[e,n]of a.missing)if(n<Fl(i,e)){t=!0;break}if(s){for(const[e,t]of s.missing){const n=a.missing.get(e);(null==n||n>t)&&a.missing.set(e,t)}a.update=lc([a.update,s.update])}}else i.pendingStructs=s;const l=rl(r,e,i);if(i.pendingDs){const t=new cl(Ds(i.pendingDs));Rs(t.restDecoder);const n=rl(t,e,i);i.pendingDs=l&&n?lc([l,n]):l||n}else i.pendingDs=l;if(t){const t=i.pendingStructs.update;i.pendingStructs=null,ml(e.doc,t)}},n,!1),ml=(e,t,n,r=cl)=>{const i=Ds(t);gl(i,e,n,new r(i))},bl=(e,t=new Uint8Array([0]),n=new fl)=>{((e,t,n=new Map)=>{pl(e,t.store,n),tl(e,el(t.store))})(n,e,wl(t));const r=[n.toUint8Array()];if(e.store.pendingDs&&r.push(e.store.pendingDs),e.store.pendingStructs&&r.push(cc(e.store.pendingStructs.update,t)),r.length>1){if(n.constructor===dl)return sc(r.map((e,t)=>0===t?e:pc(e)));if(n.constructor===fl)return lc(r)}return r[0]},yl=e=>{const t=new Map,n=Rs(e.restDecoder);for(let r=0;r<n;r++){const n=Rs(e.restDecoder),r=Rs(e.restDecoder);t.set(n,r)}return t},wl=e=>yl(new sl(Ds(e))),vl=(e,t)=>(ds(e.restEncoder,t.size),Po(t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{ds(e.restEncoder,t),ds(e.restEncoder,n)}),e),kl=(e,t=new hl)=>(e instanceof Map?vl(t,e):((e,t)=>{vl(e,Ul(t.store))})(t,e),t.toUint8Array());class xl{constructor(){this.l=[]}}const _l=()=>new xl,Cl=(e,t)=>e.l.push(t),El=(e,t)=>{const n=e.l;n.length;e.l=n.filter(e=>t!==e),e.l.length},Sl=(e,t,n)=>da(e.l,[t,n]);class Ol{constructor(e,t){this.client=e,this.clock=t}}const Ll=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,Al=(e,t)=>new Ol(e,t),$l=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw As()};class Ml{constructor(e,t,n,r=0){this.type=e,this.tname=t,this.item=n,this.assoc=r}}class jl{constructor(e,t,n=0){this.type=e,this.index=t,this.assoc=n}}const Dl=(e,t,n)=>{let r=null,i=null;return null===e._item?i=$l(e):r=Al(e._item.id.client,e._item.id.clock),new Ml(r,i,t,n)},Nl=(e,t,n=0)=>{let r=e._start;if(n<0){if(0===t)return Dl(e,null,n);t--}for(;null!==r;){if(!r.deleted&&r.countable){if(r.length>t)return Dl(e,Al(r.id.client,r.id.clock+t),n);t-=r.length}if(null===r.right&&n<0)return Dl(e,r.lastId,n);r=r.right}return Dl(e,null,n)},Tl=(e,t,n=!0)=>{const r=t.store,i=e.item,o=e.type,s=e.tname,a=e.assoc;let l=null,c=0;if(null!==i){if(Fl(r,i.client)<=i.clock)return null;const e=n?Tu(r,i):((e,t)=>{const n=Bl(e,t);return{item:n,diff:t.clock-n.id.clock}})(r,i),t=e.item;if(!(t instanceof zu))return null;if(l=t.parent,null===l._item||!l._item.deleted){c=t.deleted||!t.countable?0:e.diff+(a>=0?0:1);let n=t.left;for(;null!==n;)!n.deleted&&n.countable&&(c+=n.length),n=n.left}}else{if(null!==s)l=t.get(s);else{if(null===o)throw As();{if(Fl(r,o.client)<=o.clock)return null;const{item:e}=n?Tu(r,o):{item:Bl(r,o)};if(!(e instanceof zu&&e.content instanceof Nu))return null;l=e.content.type}}c=a>=0?l._length:0}return((e,t,n=0)=>new jl(e,t,n))(l,c,e.assoc)};class Pl{constructor(e,t){this.ds=e,this.sv=t}}const zl=(e,t)=>new Pl(e,t),Rl=(zl(Qa(),new Map),(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!Xa(t.ds,e.id)),Il=(e,t)=>{const n=jo(e.meta,Il,Do),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t<Fl(r,n)&&Zl(e,Al(n,t))}),Ja(e,t.ds,e=>{}),n.add(t))};class ql{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Ul=e=>{const t=new Map;return e.clients.forEach((e,n)=>{const r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},Fl=(e,t)=>{const n=e.clients.get(t);if(void 0===n)return 0;const r=n[n.length-1];return r.id.clock+r.length},Vl=(e,t)=>{let n=e.clients.get(t.id.client);if(void 0===n)n=[],e.clients.set(t.id.client,n);else{const e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw As()}n.push(t)},Wl=(e,t)=>{let n=0,r=e.length-1,i=e[r],o=i.id.clock;if(o===t)return r;let s=qo(t/(o+i.length-1)*r);for(;n<=r;){if(i=e[s],o=i.id.clock,o<=t){if(t<o+i.length)return s;n=s+1}else r=s-1;s=qo((n+r)/2)}throw As()},Bl=(e,t)=>{const n=e.clients.get(t.client);return n[Wl(n,t.clock)]},Hl=(e,t,n)=>{const r=Wl(t,n),i=t[r];return i.id.clock<n&&i instanceof zu?(t.splice(r+1,0,Pu(e,i,n-i.id.clock)),r+1):r},Zl=(e,t)=>{const n=e.doc.store.clients.get(t.client);return n[Hl(e,n,t.clock)]},Jl=(e,t,n)=>{const r=t.clients.get(n.client),i=Wl(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==gu&&r.splice(i+1,0,Pu(e,o,n.clock-o.id.clock+1)),o},Xl=(e,t,n,r,i)=>{if(0===r)return;const o=n+r;let s,a=Hl(e,t,n);do{s=t[a++],o<s.id.clock+s.length&&Hl(e,t,o),i(s)}while(a<t.length&&t[a].id.clock<o)};class Yl{constructor(e,t,n){this.doc=e,this.deleteSet=new Za,this.beforeState=Ul(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=n,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const Kl=(e,t)=>!(0===t.deleteSet.clients.size&&!((e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1})(t.afterState,(e,n)=>t.beforeState.get(n)!==e))&&(Ya(t.deleteSet),((e,t)=>{pl(e,t.doc.store,t.beforeState)})(e,t),tl(e,t.deleteSet),!0),Gl=(e,t,n)=>{const r=t._item;(null===r||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&jo(e.changed,t,Do).add(n)},Ql=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0&&(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n));n=r,r=e[--i-1])n instanceof zu&&null!==n.parentSub&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);const o=t-i;return o&&e.splice(t+1-o,o),o},ec=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){const o=i[r],s=o.clock+o.len;for(let r=Wl(e,o.clock),i=e[r];r<e.length&&i.id.clock<s;i=e[++r]){const i=e[r];if(o.clock+o.len<=i.id.clock)break;i instanceof zu&&i.deleted&&!i.keep&&n(i)&&i.gc(t,!1)}}}},tc=(e,t)=>{e.clients.forEach((e,n)=>{const r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){const n=e[t];for(let e=Fo(r.length-1,1+Wl(r,n.clock+n.len-1)),t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+Ql(r,e)}})},nc=(e,t)=>{if(t<e.length){const n=e[t],r=n.doc,i=r.store,o=n.deleteSet,s=n._mergeStructs;try{Ya(o),n.afterState=Ul(n.doc.store),r.emit("beforeObserverCalls",[n,r]);const e=[];n.changed.forEach((t,r)=>e.push(()=>{null!==r._item&&r._item.deleted||r._callObserver(n,t)})),e.push(()=>{n.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&((e=e.filter(e=>null===e.target._item||!e.target._item.deleted)).forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),Sl(t._dEH,e,n))})}),e.push(()=>r.emit("afterTransaction",[n,r])),da(e,[]),n._needFormattingCleanup&&iu(n)}finally{r.gc&&ec(o,i,r.gcFilter),tc(o,i),n.afterState.forEach((e,t)=>{const r=n.beforeState.get(t)||0;if(r!==e){const e=i.clients.get(t),n=Vo(Wl(e,r),1);for(let t=e.length-1;t>=n;)t-=1+Ql(e,t)}});for(let e=s.length-1;e>=0;e--){const{client:t,clock:n}=s[e].id,r=i.clients.get(t),o=Wl(r,n);o+1<r.length&&Ql(r,o+1)>1||o>0&&Ql(r,o)}if(n.local||n.afterState.get(r.clientID)===n.beforeState.get(r.clientID)||(Ua(Ia,ja,"[yjs] ",Da,za,"Changed the client-id because another client seems to be using it."),r.clientID=il()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const e=new dl;Kl(e,n)&&r.emit("update",[e.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const e=new fl;Kl(e,n)&&r.emit("updateV2",[e.toUint8Array(),n.origin,r,n])}const{subdocsAdded:a,subdocsLoaded:l,subdocsRemoved:c}=n;(a.size>0||c.size>0||l.size>0)&&(a.forEach(e=>{e.clientID=r.clientID,null==e.collectionid&&(e.collectionid=r.collectionid),r.subdocs.add(e)}),c.forEach(e=>r.subdocs.delete(e)),r.emit("subdocs",[{loaded:l,added:a,removed:c},r,n]),c.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):nc(e,t+1)}}},rc=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,s=null;null===e._transaction&&(o=!0,e._transaction=new Yl(e,n,r),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{s=t(e._transaction)}finally{if(o){const t=e._transaction===i[0];e._transaction=null,t&&nc(i,0)}}return s};class ic{constructor(e,t){this.gen=function*(e){const t=Rs(e.restDecoder);for(let n=0;n<t;n++){const t=Rs(e.restDecoder),n=e.readClient();let r=Rs(e.restDecoder);for(let i=0;i<t;i++){const t=e.readInfo();if(10===t){const t=Rs(e.restDecoder);yield new qu(Al(n,r),t),r+=t}else if(0!==(31&t)){const i=0===(192&t),o=new zu(Al(n,r),null,(t&Zo)===Zo?e.readLeftID():null,null,(t&Ho)===Ho?e.readRightID():null,i?e.readParentInfo()?e.readString():e.readLeftID():null,i&&32===(32&t)?e.readString():null,Ru(e,t));yield o,r+=o.length}else{const t=e.readLen();yield new gu(Al(n,r),t),r+=t}}}}(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do{this.curr=this.gen.next().value||null}while(this.filterSkips&&null!==this.curr&&this.curr.constructor===qu);return this.curr}}class oc{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}}const sc=e=>lc(e,al,dl),ac=(e,t)=>{if(e.constructor===gu){const{client:n,clock:r}=e.id;return new gu(Al(n,r+t),e.length-t)}if(e.constructor===qu){const{client:n,clock:r}=e.id;return new qu(Al(n,r+t),e.length-t)}{const n=e,{client:r,clock:i}=n.id;return new zu(Al(r,i+t),null,Al(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},lc=(e,t=cl,n=fl)=>{if(1===e.length)return e[0];const r=e.map(e=>new t(Ds(e)));let i=r.map(e=>new ic(e,!0)),o=null;const s=new n,a=new oc(s);for(;i=i.filter(e=>null!==e.curr),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){const n=e.curr.id.clock-t.curr.id.clock;return 0===n?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===qu?1:-1:n}return t.curr.id.client-e.curr.id.client}),0!==i.length;){const e=i[0],t=e.curr.id.client;if(null!==o){let n=e.curr,r=!1;for(;null!==n&&n.id.clock+n.length<=o.struct.id.clock+o.struct.length&&n.id.client>=o.struct.id.client;)n=e.next(),r=!0;if(null===n||n.id.client!==t||r&&n.id.clock>o.struct.id.clock+o.struct.length)continue;if(t!==o.struct.id.client)dc(a,o.struct,o.offset),o={struct:n,offset:0},e.next();else if(o.struct.id.clock+o.struct.length<n.id.clock)if(o.struct.constructor===qu)o.struct.length=n.id.clock+n.length-o.struct.id.clock;else{dc(a,o.struct,o.offset);const e=n.id.clock-o.struct.id.clock-o.struct.length;o={struct:new qu(Al(t,o.struct.id.clock+o.struct.length),e),offset:0}}else{const t=o.struct.id.clock+o.struct.length-n.id.clock;t>0&&(o.struct.constructor===qu?o.struct.length-=t:n=ac(n,t)),o.struct.mergeWith(n)||(dc(a,o.struct,o.offset),o={struct:n,offset:0},e.next())}}else o={struct:e.curr,offset:0},e.next();for(let n=e.curr;null!==n&&n.id.client===t&&n.id.clock===o.struct.id.clock+o.struct.length&&n.constructor!==qu;n=e.next())dc(a,o.struct,o.offset),o={struct:n,offset:0}}null!==o&&(dc(a,o.struct,o.offset),o=null),hc(a);const l=r.map(e=>nl(e)),c=Ka(l);return tl(s,c),s.toUint8Array()},cc=(e,t,n=cl,r=fl)=>{const i=wl(t),o=new r,s=new oc(o),a=new n(Ds(e)),l=new ic(a,!1);for(;l.curr;){const e=l.curr,t=e.id.client,n=i.get(t)||0;if(l.curr.constructor!==qu)if(e.id.clock+e.length>n)for(dc(s,e,Vo(n-e.id.clock,0)),l.next();l.curr&&l.curr.id.client===t;)dc(s,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===t&&l.curr.id.clock+l.curr.length<=n;)l.next();else l.next()}hc(s);const c=nl(a);return tl(o,c),o.toUint8Array()},uc=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:ls(e.encoder.restEncoder)}),e.encoder.restEncoder=ss(),e.written=0)},dc=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&uc(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),ds(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},hc=e=>{uc(e);const t=e.encoder.restEncoder;ds(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){const r=e.clientStructs[n];ds(t,r.written),ms(t,r.restEncoder)}},fc=(e,t,n,r)=>{const i=new n(Ds(e)),o=new ic(i,!1),s=new r,a=new oc(s);for(let c=o.curr;null!==c;c=o.next())dc(a,t(c),0);hc(a);const l=nl(i);return tl(s,l),s.toUint8Array()},pc=e=>fc(e,ha,cl,dl),gc="You must not compute changes after the event-handler fired.";class mc{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=bc(this.currentTarget,this.target))}deletes(e){return Xa(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw Os(gc);const e=new Map,t=this.target;this.transaction.changed.get(t).forEach(n=>{if(null!==n){const r=t._map.get(n);let i,o;if(this.adds(r)){let e=r.left;for(;null!==e&&this.adds(e);)e=e.left;if(this.deletes(r)){if(null===e||!this.deletes(e))return;i="delete",o=No(e.content.getContent())}else null!==e&&this.deletes(e)?(i="update",o=No(e.content.getContent())):(i="add",o=void 0)}else{if(!this.deletes(r))return;i="delete",o=No(r.content.getContent())}e.set(n,{action:i,oldValue:o})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw Os(gc);const t=this.target,n=Do(),r=Do(),i=[];e={added:n,deleted:r,delta:i,keys:this.keys};if(this.transaction.changed.get(t).has(null)){let e=null;const o=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&(null!==e&&void 0!==e.delete||(o(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?(null!==e&&void 0!==e.insert||(o(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):(null!==e&&void 0!==e.retain||(o(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&o()}this._changes=e}return e}}const bc=(e,t)=>{const n=[];for(;null!==t._item&&t!==e;){if(null!==t._item.parentSub)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;for(;r!==t._item&&null!==r;)!r.deleted&&r.countable&&(e+=r.length),r=r.right;n.unshift(e)}t=t._item.parent}return n},yc=()=>{Fa("Invalid access: Add Yjs type to a document before reading data.")};let wc=0;class vc{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=wc++}}const kc=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=wc++},xc=(e,t)=>{if(null===e._start||0===t||null===e._searchMarker)return null;const n=0===e._searchMarker.length?null:e._searchMarker.reduce((e,n)=>Uo(t-e.index)<Uo(t-n.index)?e:n);let r=e._start,i=0;for(null!==n&&(r=n.p,i=n.index,(e=>{e.timestamp=wc++})(n));null!==r.right&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;null!==r.left&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;null!==r.left&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return null!==n&&Uo(n.index-i)<r.parent.length/80?(kc(n,r,i),n):((e,t,n)=>{if(e.length>=80){const r=e.reduce((e,t)=>e.timestamp<t.timestamp?e:t);return kc(r,t,n),r}{const r=new vc(t,n);return e.push(r),r}})(e._searchMarker,r,i)},_c=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let t=i.p;for(t.marker=!1;t&&(t.deleted||!t.countable);)t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(r,1);continue}i.p=t,t.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=Vo(t,i.index+n))}},Cc=(e,t,n)=>{const r=e,i=t.changedParentTypes;for(;jo(i,e,()=>[]).push(n),null!==e._item;)e=e._item.parent;Sl(r._eH,n,t)};class Ec{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=_l(),this._dEH=_l(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw Ls()}clone(){throw Ls()}_write(e){}get _first(){let e=this._start;for(;null!==e&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){Cl(this._eH,e)}observeDeep(e){Cl(this._dEH,e)}unobserve(e){El(this._eH,e)}unobserveDeep(e){El(this._dEH,e)}toJSON(){}}const Sc=(e,t,n)=>{e.doc??yc(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;for(;null!==o&&r>0;){if(o.countable&&!o.deleted){const e=o.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n<e.length&&r>0;n++)i.push(e[n]),r--;t=0}}o=o.right}return i},Oc=e=>{e.doc??yc();const t=[];let n=e._start;for(;null!==n;){if(n.countable&&!n.deleted){const e=n.content.getContent();for(let n=0;n<e.length;n++)t.push(e[n])}n=n.right}return t},Lc=(e,t)=>{let n=0,r=e._start;for(e.doc??yc();null!==r;){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let r=0;r<i.length;r++)t(i[r],n++,e)}r=r.right}},Ac=(e,t)=>{const n=[];return Lc(e,(r,i)=>{n.push(t(r,i,e))}),n},$c=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(null===n){for(;null!==t&&t.deleted;)t=t.right;if(null===t)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},Mc=(e,t)=>{e.doc??yc();const n=xc(e,t);let r=e._start;for(null!==n&&(r=n.p,t-=n.index);null!==r;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},jc=(e,t,n,r)=>{let i=n;const o=e.doc,s=o.clientID,a=o.store,l=null===n?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new zu(Al(s,Fl(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new Cu(c)),i.integrate(e,0),c=[])};r.forEach(n=>{if(null===n)c.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new zu(Al(s,Fl(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new mu(new Uint8Array(n))),i.integrate(e,0);break;case ol:i=new zu(Al(s,Fl(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new wu(n)),i.integrate(e,0);break;default:if(!(n instanceof Ec))throw new Error("Unexpected content type in insert operation");i=new zu(Al(s,Fl(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new Nu(n)),i.integrate(e,0)}}}),u()},Dc=()=>Os("Length exceeded!"),Nc=(e,t,n,r)=>{if(n>t._length)throw Dc();if(0===n)return t._searchMarker&&_c(t._searchMarker,n,r.length),jc(e,t,null,r);const i=n,o=xc(t,n);let s=t._start;for(null!==o&&(s=o.p,0===(n-=o.index)&&(s=s.prev,n+=s&&s.countable&&!s.deleted?s.length:0));null!==s;s=s.right)if(!s.deleted&&s.countable){if(n<=s.length){n<s.length&&Zl(e,Al(s.id.client,s.id.clock+n));break}n-=s.length}return t._searchMarker&&_c(t._searchMarker,i,r.length),jc(e,t,s,r)},Tc=(e,t,n,r)=>{if(0===r)return;const i=n,o=r,s=xc(t,n);let a=t._start;for(null!==s&&(a=s.p,n-=s.index);null!==a&&n>0;a=a.right)!a.deleted&&a.countable&&(n<a.length&&Zl(e,Al(a.id.client,a.id.clock+n)),n-=a.length);for(;r>0&&null!==a;)a.deleted||(r<a.length&&Zl(e,Al(a.id.client,a.id.clock+r)),a.delete(e),r-=a.length),a=a.right;if(r>0)throw Dc();t._searchMarker&&_c(t._searchMarker,i,-o+r)},Pc=(e,t,n)=>{const r=t._map.get(n);void 0!==r&&r.delete(e)},zc=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,s=o.clientID;let a;if(null==r)a=new Cu([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:a=new Cu([r]);break;case Uint8Array:a=new mu(r);break;case ol:a=new wu(r);break;default:if(!(r instanceof Ec))throw new Error("Unexpected content type");a=new Nu(r)}new zu(Al(s,Fl(o.store,s)),i,i&&i.lastId,null,null,t,n,a).integrate(e,0)},Rc=(e,t)=>{e.doc??yc();const n=e._map.get(t);return void 0===n||n.deleted?void 0:n.content.getContent()[n.length-1]},Ic=e=>{const t={};return e.doc??yc(),e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},qc=(e,t)=>{e.doc??yc();const n=e._map.get(t);return void 0!==n&&!n.deleted},Uc=e=>{return e.doc??yc(),t=e._map.entries(),n=e=>!e[1].deleted,Wa(()=>{let e;do{e=t.next()}while(!e.done&&!n(e.value));return e});var t,n};class Fc extends mc{}class Vc extends Ec{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new Vc;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Vc}clone(){const e=new Vc;return e.insert(0,this.toArray().map(e=>e instanceof Ec?e.clone():e)),e}get length(){return this.doc??yc(),this._length}_callObserver(e,t){super._callObserver(e,t),Cc(this,e,new Fc(this,e))}insert(e,t){null!==this.doc?rc(this.doc,n=>{Nc(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?rc(this.doc,t=>{((e,t,n)=>{let r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;jc(e,t,r,n)})(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?rc(this.doc,n=>{Tc(n,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return Mc(this,e)}toArray(){return Oc(this)}slice(e=0,t=this.length){return Sc(this,e,t)}toJSON(){return this.map(e=>e instanceof Ec?e.toJSON():e)}map(e){return Ac(this,e)}forEach(e){Lc(this,e)}[Symbol.iterator](){return $c(this)}_write(e){e.writeTypeRef(Ou)}}class Wc extends mc{constructor(e,t,n){super(e,t),this.keysChanged=n}}class Bc extends Ec{constructor(e){super(),this._prelimContent=null,this._prelimContent=void 0===e?new Map:new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new Bc}clone(){const e=new Bc;return this.forEach((t,n)=>{e.set(n,t instanceof Ec?t.clone():t)}),e}_callObserver(e,t){Cc(this,e,new Wc(this,e,t))}toJSON(){this.doc??yc();const e={};return this._map.forEach((t,n)=>{if(!t.deleted){const r=t.content.getContent()[t.length-1];e[n]=r instanceof Ec?r.toJSON():r}}),e}get size(){return[...Uc(this)].length}keys(){return Ba(Uc(this),e=>e[0])}values(){return Ba(Uc(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return Ba(Uc(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??yc(),this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?rc(this.doc,t=>{Pc(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?rc(this.doc,n=>{zc(n,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return Rc(this,e)}has(e){return qc(this,e)}clear(){null!==this.doc?rc(this.doc,e=>{this.forEach(function(t,n,r){Pc(e,r,n)})}):this._prelimContent.clear()}_write(e){e.writeTypeRef(Lu)}}const Hc=(e,t)=>e===t||"object"===typeof e&&"object"===typeof t&&e&&t&&((e,t)=>e===t||sa(e)===sa(t)&&((e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0})(e,(e,n)=>(void 0!==e||aa(t,n))&&t[n]===e))(e,t);class Zc{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){if(null===this.right&&As(),this.right.content.constructor===ku)this.right.deleted||Kc(this.currentAttributes,this.right.content);else this.right.deleted||(this.index+=this.right.length);this.left=this.right,this.right=this.right.right}}const Jc=(e,t,n)=>{for(;null!==t.right&&n>0;){if(t.right.content.constructor===ku)t.right.deleted||Kc(t.currentAttributes,t.right.content);else t.right.deleted||(n<t.right.length&&Zl(e,Al(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);t.left=t.right,t.right=t.right.right}return t},Xc=(e,t,n,r)=>{const i=new Map,o=r?xc(t,n):null;if(o){const t=new Zc(o.p.left,o.p,o.index,i);return Jc(e,t,n-o.index)}{const r=new Zc(null,t._start,0,i);return Jc(e,r,n)}},Yc=(e,t,n,r)=>{for(;null!==n.right&&(!0===n.right.deleted||n.right.content.constructor===ku&&Hc(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((r,s)=>{const a=n.left,l=n.right,c=new zu(Al(o,Fl(i.store,o)),a,a&&a.lastId,l,l&&l.id,t,null,new ku(s,r));c.integrate(e,0),n.right=c,n.forward()})},Kc=(e,t)=>{const{key:n,value:r}=t;null===r?e.delete(n):e.set(n,r)},Gc=(e,t)=>{for(;null!==e.right&&(e.right.deleted||e.right.content.constructor===ku&&Hc(t[e.right.content.key]??null,e.right.content.value));)e.forward()},Qc=(e,t,n,r)=>{const i=e.doc,o=i.clientID,s=new Map;for(const a in r){const l=r[a],c=n.currentAttributes.get(a)??null;if(!Hc(c,l)){s.set(a,c);const{left:r,right:u}=n;n.right=new zu(Al(o,Fl(i.store,o)),r,r&&r.lastId,u,u&&u.id,t,null,new ku(a,l)),n.right.integrate(e,0),n.forward()}}return s},eu=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});const o=e.doc,s=o.clientID;Gc(n,i);const a=Qc(e,t,n,i),l=r.constructor===String?new Eu(r):r instanceof Ec?new Nu(r):new vu(r);let{left:c,right:u,index:d}=n;t._searchMarker&&_c(t._searchMarker,n.index,l.getLength()),u=new zu(Al(s,Fl(o.store,s)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=d,n.forward(),Yc(e,t,n,a)},tu=(e,t,n,r,i)=>{const o=e.doc,s=o.clientID;Gc(n,i);const a=Qc(e,t,n,i);e:for(;null!==n.right&&(r>0||a.size>0&&(n.right.deleted||n.right.content.constructor===ku));){if(!n.right.deleted)switch(n.right.content.constructor){case ku:{const{key:t,value:o}=n.right.content,s=i[t];if(void 0!==s){if(Hc(s,o))a.delete(t);else{if(0===r)break e;a.set(t,o)}n.right.delete(e)}else n.currentAttributes.set(t,o);break}default:r<n.right.length&&Zl(e,Al(n.right.id.client,n.right.id.clock+r)),r-=n.right.length}n.forward()}if(r>0){let i="";for(;r>0;r--)i+="\n";n.right=new zu(Al(s,Fl(o.store,s)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Eu(i)),n.right.integrate(e,0),n.forward()}Yc(e,t,n,a)},nu=(e,t,n,r,i)=>{let o=t;const s=$o();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===ku){const e=o.content;s.set(e.key,e)}o=o.right}let a=0,l=!1;for(;t!==o;){if(n===t&&(l=!0),!t.deleted){const n=t.content;switch(n.constructor){case ku:{const{key:o,value:c}=n,u=r.get(o)??null;s.get(o)===n&&u!==c||(t.delete(e),a++,l||(i.get(o)??null)!==c||u===c||(null===u?i.delete(o):i.set(o,u))),l||t.deleted||Kc(i,n);break}}}t=t.right}return a},ru=e=>{let t=0;return rc(e.doc,n=>{let r=e._start,i=e._start,o=$o();const s=Mo(o);for(;i;){if(!1===i.deleted)if(i.content.constructor===ku)Kc(s,i.content);else t+=nu(n,r,i,o,s),o=Mo(s),r=i;i=i.right}}),t},iu=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&Xl(e,n.store.clients.get(r),o,i,e=>{e.deleted||e.content.constructor!==ku||e.constructor===gu||t.add(e.parent)})}rc(n,n=>{Ja(e,e.deleteSet,e=>{if(e instanceof gu||!e.parent._hasFormatting||t.has(e.parent))return;const r=e.parent;e.content.constructor===ku?t.add(r):((e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===ku){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}})(n,e)});for(const e of t)ru(e)})},ou=(e,t,n)=>{const r=n,i=Mo(t.currentAttributes),o=t.right;for(;n>0&&null!==t.right;){if(!1===t.right.deleted)switch(t.right.content.constructor){case Nu:case vu:case Eu:n<t.right.length&&Zl(e,Al(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e)}t.forward()}o&&nu(e,o,t.right,i,t.currentAttributes);const s=(t.left||t.right).parent;return s._searchMarker&&_c(s._searchMarker,t.index,-r+n),t};class su extends mc{constructor(e,t,n){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,n.forEach(e=>{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){const e=this.target.doc,t=[];rc(e,e=>{const n=new Map,r=new Map;let i=this.target._start,o=null;const s={};let a="",l=0,c=0;const u=()=>{if(null!==o){let e=null;switch(o){case"delete":c>0&&(e={delete:c}),c=0;break;case"insert":("object"===typeof a||a.length>0)&&(e={insert:a},n.size>0&&(e.attributes={},n.forEach((t,n)=>{null!==t&&(e.attributes[n]=t)}))),a="";break;case"retain":l>0&&(e={retain:l},(e=>{for(const t in e)return!1;return!0})(s)||(e.attributes=ra({},s))),l=0}e&&t.push(e),o=null}};for(;null!==i;){switch(i.content.constructor){case Nu:case vu:this.adds(i)?this.deletes(i)||(u(),o="insert",a=i.content.getContent()[0],u()):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=1):i.deleted||("retain"!==o&&(u(),o="retain"),l+=1);break;case Eu:this.adds(i)?this.deletes(i)||("insert"!==o&&(u(),o="insert"),a+=i.content.str):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=i.length):i.deleted||("retain"!==o&&(u(),o="retain"),l+=i.length);break;case ku:{const{key:t,value:a}=i.content;if(this.adds(i)){if(!this.deletes(i)){const l=n.get(t)??null;Hc(l,a)?null!==a&&i.delete(e):("retain"===o&&u(),Hc(a,r.get(t)??null)?delete s[t]:s[t]=a)}}else if(this.deletes(i)){r.set(t,a);const e=n.get(t)??null;Hc(e,a)||("retain"===o&&u(),s[t]=e)}else if(!i.deleted){r.set(t,a);const n=s[t];void 0!==n&&(Hc(n,a)?null!==n&&i.delete(e):("retain"===o&&u(),null===a?delete s[t]:s[t]=a))}i.deleted||("insert"===o&&u(),Kc(n,i.content));break}}i=i.right}for(u();t.length>0;){const e=t[t.length-1];if(void 0===e.retain||void 0!==e.attributes)break;t.pop()}}),this._delta=t}return this._delta}}class au extends Ec{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??yc(),this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(kd){}this._pending=null}_copy(){return new au}clone(){const e=new au;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const n=new su(this,e,t);Cc(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??yc();let e="",t=this._start;for(;null!==t;)!t.deleted&&t.countable&&t.content.constructor===Eu&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?rc(this.doc,n=>{const r=new Zc(null,this._start,0,new Map);for(let i=0;i<e.length;i++){const o=e[i];if(void 0!==o.insert){const s=t||"string"!==typeof o.insert||i!==e.length-1||null!==r.right||"\n"!==o.insert.slice(-1)?o.insert:o.insert.slice(0,-1);("string"!==typeof s||s.length>0)&&eu(n,this,r,s,o.attributes||{})}else void 0!==o.retain?tu(n,this,r,o.retain,o.attributes||{}):void 0!==o.delete&&ou(n,r,o.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,n){this.doc??yc();const r=[],i=new Map,o=this.doc;let s="",a=this._start;function l(){if(s.length>0){const e={};let t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});const n={insert:s};t&&(n.attributes=e),r.push(n),s=""}}const c=()=>{for(;null!==a;){if(Rl(a,e)||void 0!==t&&Rl(a,t))switch(a.content.constructor){case Eu:{const r=i.get("ychange");void 0===e||Rl(a,e)?void 0===t||Rl(a,t)?void 0!==r&&(l(),i.delete("ychange")):void 0!==r&&r.user===a.id.client&&"added"===r.type||(l(),i.set("ychange",n?n("added",a.id):{type:"added"})):void 0!==r&&r.user===a.id.client&&"removed"===r.type||(l(),i.set("ychange",n?n("removed",a.id):{type:"removed"})),s+=a.content.str;break}case Nu:case vu:{l();const e={insert:a.content.getContent()[0]};if(i.size>0){const t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case ku:Rl(a,e)&&(l(),Kc(i,a.content))}a=a.right}l()};return e||t?rc(o,n=>{e&&Il(n,e),t&&Il(n,t),c()},"cleanup"):c(),r}insert(e,t,n){if(t.length<=0)return;const r=this.doc;null!==r?rc(r,r=>{const i=Xc(r,this,e,!n);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),eu(r,this,i,t,n)}):this._pending.push(()=>this.insert(e,t,n))}insertEmbed(e,t,n){const r=this.doc;null!==r?rc(r,r=>{const i=Xc(r,this,e,!n);eu(r,this,i,t,n||{})}):this._pending.push(()=>this.insertEmbed(e,t,n||{}))}delete(e,t){if(0===t)return;const n=this.doc;null!==n?rc(n,n=>{ou(n,Xc(n,this,e,!0),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,n){if(0===t)return;const r=this.doc;null!==r?rc(r,r=>{const i=Xc(r,this,e,!1);null!==i.right&&tu(r,this,i,t,n)}):this._pending.push(()=>this.format(e,t,n))}removeAttribute(e){null!==this.doc?rc(this.doc,t=>{Pc(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?rc(this.doc,n=>{zc(n,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return Rc(this,e)}getAttributes(){return Ic(this)}_write(e){e.writeTypeRef(Au)}}class lu{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??yc()}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do{if(t=e.content.type,e.deleted||t.constructor!==uu&&t.constructor!==cu||null===t._start)for(;null!==e;){const t=e.next;if(null!==t){e=t;break}e=e.parent===this._root?null:e.parent._item}else e=t._start}while(null!==e&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,null===e?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class cu extends Ec{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new cu}clone(){const e=new cu;return e.insert(0,this.toArray().map(e=>e instanceof Ec?e.clone():e)),e}get length(){return this.doc??yc(),null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new lu(this,e)}querySelector(e){e=e.toUpperCase();const t=new lu(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e).next();return t.done?null:t.value}querySelectorAll(e){return e=e.toUpperCase(),Po(new lu(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){Cc(this,e,new du(this,t,e))}toString(){return Ac(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},n){const r=e.createDocumentFragment();return void 0!==n&&n._createAssociation(r,this),Lc(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){null!==this.doc?rc(this.doc,n=>{Nc(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)rc(this.doc,n=>{const r=e&&e instanceof Ec?e._item:e;jc(n,this,r,t)});else{const n=this._prelimContent,r=null===e?0:n.findIndex(t=>t===e)+1;if(0===r&&null!==e)throw Os("Reference item not found");n.splice(r,0,...t)}}delete(e,t=1){null!==this.doc?rc(this.doc,n=>{Tc(n,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return Oc(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return Mc(this,e)}slice(e=0,t=this.length){return Sc(this,e,t)}forEach(e){Lc(this,e)}_write(e){e.writeTypeRef(Mu)}}class uu extends cu{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new uu(this.nodeName)}clone(){const e=new uu(this.nodeName);return((e,t)=>{for(const n in e)t(e[n],n)})(this.getAttributes(),(t,n)=>{"string"===typeof t&&e.setAttribute(n,t)}),e.insert(0,this.toArray().map(e=>e instanceof Ec?e.clone():e)),e}toString(){const e=this.getAttributes(),t=[],n=[];for(const o in e)n.push(o);n.sort();const r=n.length;for(let o=0;o<r;o++){const r=n[o];t.push(r+'="'+e[r]+'"')}const i=this.nodeName.toLocaleLowerCase();return`<${i}${t.length>0?" "+t.join(" "):""}>${super.toString()}</${i}>`}removeAttribute(e){null!==this.doc?rc(this.doc,t=>{Pc(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?rc(this.doc,n=>{zc(n,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return Rc(this,e)}hasAttribute(e){return qc(this,e)}getAttributes(e){return e?((e,t)=>{const n={};return e._map.forEach((e,r)=>{let i=e;for(;null!==i&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;null!==i&&Rl(i,t)&&(n[r]=i.content.getContent()[i.length-1])}),n})(this,e):Ic(this)}toDOM(e=document,t={},n){const r=e.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const e=i[o];"string"===typeof e&&r.setAttribute(o,e)}return Lc(this,i=>{r.appendChild(i.toDOM(e,t,n))}),void 0!==n&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef($u),e.writeKey(this.nodeName)}}class du extends mc{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class hu extends Bc{constructor(e){super(),this.hookName=e}_copy(){return new hu(this.hookName)}clone(){const e=new hu(this.hookName);return this.forEach((t,n)=>{e.set(n,t)}),e}toDOM(e=document,t={},n){const r=t[this.hookName];let i;return i=void 0!==r?r.createDom(this):document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),void 0!==n&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(ju),e.writeKey(this.hookName)}}class fu extends au{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new fu}clone(){const e=new fu;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,n){const r=e.createTextNode(this.toString());return void 0!==n&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const t=[];for(const r in e.attributes){const n=[];for(const t in e.attributes[r])n.push({key:t,value:e.attributes[r][t]});n.sort((e,t)=>e.key<t.key?-1:1),t.push({nodeName:r,attrs:n})}t.sort((e,t)=>e.nodeName<t.nodeName?-1:1);let n="";for(let r=0;r<t.length;r++){const e=t[r];n+=`<${e.nodeName}`;for(let t=0;t<e.attrs.length;t++){const r=e.attrs[t];n+=` ${r.key}="${r.value}"`}n+=">"}n+=e.insert;for(let r=t.length-1;r>=0;r--)n+=`</${t[r].nodeName}>`;return n}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(Du)}}class pu{constructor(e,t){this.id=e,this.length=t}get deleted(){throw Ls()}mergeWith(e){return!1}write(e,t,n){throw Ls()}integrate(e,t){throw Ls()}}class gu extends pu{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),Vl(e.doc.store,this)}write(e,t){e.writeInfo(0),e.writeLen(this.length-t)}getMissing(e,t){return null}}class mu{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new mu(this.content)}splice(e){throw Ls()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}class bu{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new bu(this.len)}splice(e){const t=new bu(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){Ga(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const yu=(e,t)=>new ol({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class wu{constructor(e){e._item,this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new wu(yu(this.doc.guid,this.opts))}splice(e){throw Ls()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}class vu{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new vu(this.embed)}splice(e){throw Ls()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}class ku{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new ku(this.key,this.value)}splice(e){throw Ls()}mergeWith(e){return!1}integrate(e,t){const n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}class xu{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new xu(this.arr)}splice(e){const t=new xu(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){const t=this.arr[r];e.writeString(void 0===t?"undefined":JSON.stringify(t))}}getRef(){return 2}}const _u="development"===ka("node_env");class Cu{constructor(e){this.arr=e,_u&&ca(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Cu(this.arr)}splice(e){const t=new Cu(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r<n;r++){const t=this.arr[r];e.writeAny(t)}}getRef(){return 8}}class Eu{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new Eu(this.str)}splice(e){const t=new Eu(this.str.slice(e));this.str=this.str.slice(0,e);const n=this.str.charCodeAt(e-1);return n>=55296&&n<=56319&&(this.str=this.str.slice(0,e-1)+"\ufffd",t.str="\ufffd"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}const Su=[e=>new Vc,e=>new Bc,e=>new au,e=>new uu(e.readKey()),e=>new cu,e=>new hu(e.readKey()),e=>new fu],Ou=0,Lu=1,Au=2,$u=3,Mu=4,ju=5,Du=6;class Nu{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Nu(this.type._copy())}splice(e){throw Ls()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;null!==t;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;null!==t;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{for(;null!==t;)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const Tu=(e,t)=>{let n,r=t,i=0;do{i>0&&(r=Al(r.client,r.clock+i)),n=Bl(e,r),i=r.clock-n.id.clock,r=n.redone}while(null!==r&&n instanceof zu);return{item:n,diff:i}},Pu=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new zu(Al(r,i+n),t,Al(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),null!==t.redone&&(o.redone=Al(t.redone.client,t.redone.clock+n)),t.right=o,null!==o.right&&(o.right.left=o),e._mergeStructs.push(o),null!==o.parentSub&&null===o.right&&o.parent._map.set(o.parentSub,o),t.length=n,o};class zu extends pu{constructor(e,t,n,r,i,o,s,a){super(e,a.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=o,this.parentSub=s,this.redone=null,this.content=a,this.info=this.content.isCountable()?2:0}set marker(e){(8&this.info)>0!==e&&(this.info^=8)}get marker(){return(8&this.info)>0}get keep(){return(1&this.info)>0}set keep(e){this.keep!==e&&(this.info^=1)}get countable(){return(2&this.info)>0}get deleted(){return(4&this.info)>0}set deleted(e){this.deleted!==e&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Fl(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Fl(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Ol&&this.id.client!==this.parent.client&&this.parent.clock>=Fl(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Jl(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Zl(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===gu||this.right&&this.right.constructor===gu)this.parent=null;else if(this.parent){if(this.parent.constructor===Ol){const e=Bl(t,this.parent);e.constructor===gu?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===zu?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===zu&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Jl(e,e.doc.store,Al(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,n=this.left;if(null!==n)t=n.right;else if(null!==this.parentSub)for(t=this.parent._map.get(this.parentSub)||null;null!==t&&null!==t.left;)t=t.left;else t=this.parent._start;const r=new Set,i=new Set;for(;null!==t&&t!==this.right;){if(i.add(t),r.add(t),Ll(this.origin,t.origin)){if(t.id.client<this.id.client)n=t,r.clear();else if(Ll(this.rightOrigin,t.rightOrigin))break}else{if(null===t.origin||!i.has(Bl(e.doc.store,t.origin)))break;r.has(Bl(e.doc.store,t.origin))||(n=t,r.clear())}t=t.right}this.left=n}if(null!==this.left){const e=this.left.right;this.right=e,this.left.right=this}else{let e;if(null!==this.parentSub)for(e=this.parent._map.get(this.parentSub)||null;null!==e&&null!==e.left;)e=e.left;else e=this.parent._start,this.parent._start=this;this.right=e}null!==this.right?this.right.left=this:null!==this.parentSub&&(this.parent._map.set(this.parentSub,this),null!==this.left&&this.left.delete(e)),null===this.parentSub&&this.countable&&!this.deleted&&(this.parent._length+=this.length),Vl(e.doc.store,this),this.content.integrate(e,this),Gl(e,this.parent,this.parentSub),(null!==this.parent._item&&this.parent._item.deleted||null!==this.parentSub&&null!==this.right)&&this.delete(e)}else new gu(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;null!==e&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;null!==e&&e.deleted;)e=e.left;return e}get lastId(){return 1===this.length?this.id:Al(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Ll(e.origin,this.lastId)&&this.right===e&&Ll(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&null===this.redone&&null===e.redone&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){const t=this.parent._searchMarker;return t&&t.forEach(t=>{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),Ga(e.deleteSet,this.id.client,this.id.clock,this.length),Gl(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw As();this.content.gc(e),t?((e,t,n)=>{const r=e.clients.get(t.id.client);r[Wl(r,t.id.clock)]=n})(e,this,new gu(this.id,this.length)):this.content=new bu(this.length)}write(e,t){const n=t>0?Al(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,o=31&this.content.getRef()|(null===n?0:Zo)|(null===r?0:Ho)|(null===i?0:32);if(e.writeInfo(o),null!==n&&e.writeLeftID(n),null!==r&&e.writeRightID(r),null===n&&null===r){const t=this.parent;if(void 0!==t._item){const n=t._item;if(null===n){const n=$l(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===Ol?(e.writeParentInfo(!1),e.writeLeftID(t)):As();null!==i&&e.writeString(i)}this.content.write(e,t)}}const Ru=(e,t)=>Iu[31&t](e),Iu=[()=>{As()},e=>new bu(e.readLen()),e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++){const t=e.readString();"undefined"===t?n.push(void 0):n.push(JSON.parse(t))}return new xu(n)},e=>new mu(e.readBuf()),e=>new Eu(e.readString()),e=>new vu(e.readJSON()),e=>new ku(e.readKey(),e.readJSON()),e=>new Nu(Su[e.readTypeRef()](e)),e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new Cu(n)},e=>new wu(yu(e.readString(),e.readAny())),()=>{As()}];class qu extends pu{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){As()}write(e,t){e.writeInfo(10),ds(e.restEncoder,this.length-t)}getMissing(e,t){return null}}const Uu="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:{},Fu="__ $YJS$ __";Uu[Fu],Uu[Fu]=!0;const Vu=new Map;const Wu="undefined"===typeof BroadcastChannel?class{constructor(e){var t;this.room=e,this.onmessage=null,this._onChange=t=>t.key===e&&null!==this.onmessage&&this.onmessage({data:Sa(t.newValue||"")}),t=this._onChange,ta||addEventListener("storage",t)}postMessage(e){na.setItem(this.room,Ea(new Uint8Array(e)))}close(){var e;e=this._onChange,ta||removeEventListener("storage",e)}}:BroadcastChannel,Bu=e=>jo(Vu,e,()=>{const t=Do(),n=new Wu(e);return n.onmessage=e=>t.forEach(t=>t(e.data,"broadcastchannel")),{bc:n,subs:t}}),Hu=(e,t,n=null)=>{const r=Bu(e);r.bc.postMessage(t),r.subs.forEach(e=>e(t,n))},Zu=(e,t)=>{ds(e,0);const n=(e=>kl(e,new ul))(t);bs(e,n)},Ju=(e,t,n)=>{ds(e,1),bs(e,((e,t)=>bl(e,t,new dl))(t,n))},Xu=(e,t,n)=>{try{((e,t,n)=>{ml(e,t,n,al)})(t,Ps(e),n)}catch(r){}},Yu=Xu,Ku=(e,t,n,r)=>{const i=Rs(e);switch(i){case 0:((e,t,n)=>{Ju(t,n,Ps(e))})(e,t,n);break;case 1:Xu(e,n,r);break;case 2:Yu(e,n,r);break;default:throw new Error("Unknown message type")}return i},Gu=3e4;class Qu extends Io{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=Ma();null!==this.getLocalState()&&15e3<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&Gu<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&ed(this,t,"timeout")},qo(3e3)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const t=this.clientID,n=this.meta.get(t),r=void 0===n?0:n.clock+1,i=this.states.get(t);null===e?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:Ma()});const o=[],s=[],a=[],l=[];null===e?l.push(t):null==i?null!=e&&o.push(t):(s.push(t),fa(i,e)||a.push(t)),(o.length>0||a.length>0||l.length>0)&&this.emit("change",[{added:o,updated:a,removed:l},"local"]),this.emit("update",[{added:o,updated:s,removed:l},"local"])}setLocalStateField(e,t){const n=this.getLocalState();null!==n&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}}const ed=(e,t,n)=>{const r=[];for(let i=0;i<t.length;i++){const n=t[i];if(e.states.has(n)){if(e.states.delete(n),n===e.clientID){const t=e.meta.get(n);e.meta.set(n,{clock:t.clock+1,lastUpdated:Ma()})}r.push(n)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},td=(e,t,n=e.states)=>{const r=t.length,i=ss();ds(i,r);for(let o=0;o<r;o++){const r=t[o],s=n.get(r)||null,a=e.meta.get(r).clock;ds(i,r),ds(i,a),gs(i,JSON.stringify(s))}return ls(i)};var nd=n(88295);const rd=[];rd[0]=(e,t,n,r,i)=>{ds(e,0);const o=Ku(t,e,n.doc,n);r&&1===o&&!n.synced&&(n.synced=!0)},rd[3]=(e,t,n,r,i)=>{ds(e,1),bs(e,td(n.awareness,Array.from(n.awareness.getStates().keys())))},rd[1]=(e,t,n,r,i)=>{((e,t,n)=>{const r=Ds(t),i=Ma(),o=[],s=[],a=[],l=[],c=Rs(r);for(let u=0;u<c;u++){const t=Rs(r);let n=Rs(r);const c=JSON.parse(qs(r)),u=e.meta.get(t),d=e.states.get(t),h=void 0===u?0:u.clock;(h<n||h===n&&null===c&&e.states.has(t))&&(null===c?t===e.clientID&&null!=e.getLocalState()?n++:e.states.delete(t):e.states.set(t,c),e.meta.set(t,{clock:n,lastUpdated:i}),void 0===u&&null!==c?o.push(t):void 0!==u&&null===c?l.push(t):null!==c&&(fa(c,d)||a.push(t),s.push(t)))}(o.length>0||a.length>0||l.length>0)&&e.emit("change",[{added:o,updated:a,removed:l},n]),(o.length>0||s.length>0||l.length>0)&&e.emit("update",[{added:o,updated:s,removed:l},n])})(n.awareness,Ps(t),n)},rd[2]=(e,t,n,r,i)=>{((e,t,n)=>{0===Rs(e)&&n(t,qs(e))})(t,n.doc,(e,t)=>id(n,t))};const id=(e,t)=>{},od=(e,t,n)=>{const r=Ds(t),i=ss(),o=Rs(r),s=e.messageHandlers[o];return s&&s(i,r,e,n,o),i},sd=(e,t,n)=>{t===e.ws&&(e.emit("connection-close",[n,e]),e.ws=null,t.close(),e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,ed(e.awareness,Array.from(e.awareness.getStates().keys()).filter(t=>t!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(ad,Fo(100*Wo(2,e.wsUnsuccessfulReconnects),e.maxBackoffTime),e))},ad=e=>{if(e.shouldConnect&&null===e.ws){const t=new e._WS(e.url,e.protocols);t.binaryType="arraybuffer",e.ws=t,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,t.onmessage=n=>{e.wsLastMessageReceived=Ma();const r=od(e,new Uint8Array(n.data),!0);as(r)>1&&t.send(ls(r))},t.onerror=t=>{e.emit("connection-error",[t,e])},t.onclose=n=>{sd(e,t,n)},t.onopen=()=>{e.wsLastMessageReceived=Ma(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const n=ss();if(ds(n,0),Zu(n,e.doc),t.send(ls(n)),null!==e.awareness.getLocalState()){const n=ss();ds(n,1),bs(n,td(e.awareness,[e.doc.clientID])),t.send(ls(n))}},e.emit("status",[{status:"connecting"}])}},ld=(e,t)=>{const n=e.ws;e.wsconnected&&n&&n.readyState===n.OPEN&&n.send(t),e.bcconnected&&Hu(e.bcChannel,t,e)};class cd extends Ro{constructor(e,t,n,{connect:r=!0,awareness:i=new Qu(n),params:o={},protocols:s=[],WebSocketPolyfill:a=WebSocket,resyncInterval:l=-1,maxBackoffTime:c=2500,disableBc:u=!1}={}){for(super();"/"===e[e.length-1];)e=e.slice(0,e.length-1);this.serverUrl=e,this.bcChannel=e+"/"+t,this.maxBackoffTime=c,this.params=o,this.protocols=s,this.roomname=t,this.doc=n,this._WS=a,this.awareness=i,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=u,this.wsUnsuccessfulReconnects=0,this.messageHandlers=rd.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=r,this._resyncInterval=0,l>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const e=ss();ds(e,0),Zu(e,n),this.ws.send(ls(e))}},l)),this._bcSubscriber=(e,t)=>{if(t!==this){const t=od(this,new Uint8Array(e),!1);as(t)>1&&Hu(this.bcChannel,ls(t),this)}},this._updateHandler=(e,t)=>{if(t!==this){const t=ss();ds(t,0),((e,t)=>{ds(e,2),bs(e,t)})(t,e),ld(this,ls(t))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:e,updated:t,removed:n},r)=>{const o=e.concat(t).concat(n),s=ss();ds(s,1),bs(s,td(i,o)),ld(this,ls(s))},this._exitHandler=()=>{ed(this.awareness,[n.clientID],"app closed")},ga&&"undefined"!==typeof nd&&nd.on("exit",this._exitHandler),i.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&3e4<Ma()-this.wsLastMessageReceived&&sd(this,this.ws,null)},3e3),r&&this.connect()}get url(){const e=(e=>((e,t)=>{const n=[];for(const r in e)n.push(t(e[r],r));return n})(e,(e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"))(this.params);return this.serverUrl+"/"+this.roomname+(0===e.length?"":"?"+e)}get synced(){return this._synced}set synced(e){this._synced!==e&&(this._synced=e,this.emit("synced",[e]),this.emit("sync",[e]))}destroy(){0!==this._resyncInterval&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),ga&&"undefined"!==typeof nd&&nd.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(((e,t)=>{Bu(e).subs.add(t)})(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const e=ss();ds(e,0),Zu(e,this.doc),Hu(this.bcChannel,ls(e),this);const t=ss();ds(t,0),Ju(t,this.doc),Hu(this.bcChannel,ls(t),this);const n=ss();ds(n,3),Hu(this.bcChannel,ls(n),this);const r=ss();ds(r,1),bs(r,td(this.awareness,[this.doc.clientID])),Hu(this.bcChannel,ls(r),this)}disconnectBc(){const e=ss();ds(e,1),bs(e,td(this.awareness,[this.doc.clientID],new Map)),ld(this,ls(e)),this.bcconnected&&(((e,t)=>{const n=Bu(e),r=n.subs.delete(t);r&&0===n.subs.size&&(n.bc.close(),Vu.delete(e))})(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),null!==this.ws&&sd(this,this.ws,null)}connect(){this.shouldConnect=!0,this.wsconnected||null!==this.ws||(ad(this),this.connectBc())}}class ud{constructor(e,t,n){this.start=e,this.end=t,this.direction=n}}class dd{constructor(e,t,n=new Set,r=null){this.doc=e.doc,this.ytext=e,this.monacoModel=t,this.editors=n,this.mux=(()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else void 0!==n&&n()}})(),this._savedSelections=new Map,this._beforeTransaction=()=>{this.mux(()=>{this._savedSelections=new Map,n.forEach(n=>{if(n.getModel()===t){const r=((e,t,n)=>{const r=e.getSelection();if(null!==r){const e=r.getStartPosition(),i=r.getEndPosition(),o=Nl(n,t.getOffsetAt(e)),s=Nl(n,t.getOffsetAt(i));return new ud(o,s,r.getDirection())}return null})(n,t,e);null!==r&&this._savedSelections.set(n,r)}})})},this.doc.on("beforeAllTransactions",this._beforeTransaction),this._decorations=new Map,this._rerenderDecorations=()=>{n.forEach(n=>{if(r&&n.getModel()===t){const i=this._decorations.get(n)||[],o=[];r.getStates().forEach((n,r)=>{if(r!==this.doc.clientID&&null!=n.selection&&null!=n.selection.anchor&&null!=n.selection.head){const i=Tl(n.selection.anchor,this.doc),s=Tl(n.selection.head,this.doc);if(null!==i&&null!==s&&i.type===e&&s.type===e){let e,n,a,l;i.index<s.index?(e=t.getPositionAt(i.index),n=t.getPositionAt(s.index),a="yRemoteSelectionHead yRemoteSelectionHead-"+r,l=null):(e=t.getPositionAt(s.index),n=t.getPositionAt(i.index),a=null,l="yRemoteSelectionHead yRemoteSelectionHead-"+r),o.push({range:new ye.Range(e.lineNumber,e.column,n.lineNumber,n.column),options:{className:"yRemoteSelection yRemoteSelection-"+r,afterContentClassName:a,beforeContentClassName:l}})}}}),this._decorations.set(n,n.deltaDecorations(i,o))}else this._decorations.delete(n)})},this._ytextObserver=n=>{this.mux(()=>{let r=0;n.delta.forEach(e=>{if(void 0!==e.retain)r+=e.retain;else if(void 0!==e.insert){const n=t.getPositionAt(r),i=new ye.Selection(n.lineNumber,n.column,n.lineNumber,n.column),o=e.insert;t.applyEdits([{range:i,text:o}]),r+=o.length}else{if(void 0===e.delete)throw As();{const n=t.getPositionAt(r),i=t.getPositionAt(r+e.delete),o=new ye.Selection(n.lineNumber,n.column,i.lineNumber,i.column);t.applyEdits([{range:o,text:""}])}}}),this._savedSelections.forEach((t,n)=>{const r=((e,t,n,r)=>{const i=Tl(n.start,r),o=Tl(n.end,r);if(null!==i&&null!==o&&i.type===t&&o.type===t){const t=e.getModel(),r=t.getPositionAt(i.index),s=t.getPositionAt(o.index);return ye.Selection.createWithDirection(r.lineNumber,r.column,s.lineNumber,s.column,n.direction)}return null})(n,e,t,this.doc);null!==r&&n.setSelection(r)})}),this._rerenderDecorations()},e.observe(this._ytextObserver);{const n=e.toString();t.getValue()!==n&&t.setValue(n)}this._monacoChangeHandler=t.onDidChangeContent(t=>{this.mux(()=>{this.doc.transact(()=>{t.changes.sort((e,t)=>t.rangeOffset-e.rangeOffset).forEach(t=>{e.delete(t.rangeOffset,t.rangeLength),e.insert(t.rangeOffset,t.text)})},this)})}),this._monacoDisposeHandler=t.onWillDispose(()=>{this.destroy()}),r&&(n.forEach(n=>{n.onDidChangeCursorSelection(()=>{if(n.getModel()===t){const i=n.getSelection();if(null===i)return;let o=t.getOffsetAt(i.getStartPosition()),s=t.getOffsetAt(i.getEndPosition());if(i.getDirection()===ye.SelectionDirection.RTL){const e=o;o=s,s=e}r.setLocalStateField("selection",{anchor:Nl(e,o),head:Nl(e,s)})}}),r.on("change",this._rerenderDecorations)}),this.awareness=r)}destroy(){this._monacoChangeHandler.dispose(),this._monacoDisposeHandler.dispose(),this.ytext.unobserve(this._ytextObserver),this.doc.off("beforeAllTransactions",this._beforeTransaction),this.awareness&&this.awareness.off("change",this._rerenderDecorations)}}var hd=n(98845);var fd=n(55835);const pd=({email:e,editorRef:t,setIsSpin:n,newEmailAiGeneratorRef:i})=>{const o=(0,r.useMemo)(()=>new ol,[]),s=(0,wo.fn)(),a=(0,r.useRef)([]),l=(0,r.useRef)([]),c=(0,r.useRef)(!1),u=(0,r.useRef)(0),d=(0,r.useRef)(""),[h,f]=(0,r.useState)(null),[p,g]=(0,r.useState)(null),[m,b]=(0,r.useState)(!1),[y,w]=(0,r.useState)([]),[v,k]=(0,r.useState)(!1),[x,_]=(0,r.useState)(!1),C=(0,wo.aD)(s),E=(0,se.d4)(fe.C1),{saveEmailFromEditor:S}=function(e,t){const[n]=(0,hd.LX)(),i=(0,r.useCallback)(()=>{const r=(new Date).toISOString().slice(0,19).replace("T"," "),i={parent:null===e||void 0===e?void 0:e.id,title:e.title,author:e.author,project:e.project,html:(null===t||void 0===t?void 0:t.getValue())||"",excerpt:r,subject:e.subject,preheader:e.preheader,common_styles:e.common_styles,parent_email:e.parent_email};n({emailId:null===e||void 0===e?void 0:e.id,body:i}).catch(e=>{})},[t,e]);return{saveEmailFromEditor:i}}(e,h),O=(0,r.useRef)(null),[L,A]=(0,r.useState)(!1),[$]=(0,hd.dN)(),M=null===e||void 0===e?void 0:e.id,j=!(M!==fd.LA&&!we.EW.isPlugin),D=(0,r.useMemo)(()=>({name:{first_name:j?null===E||void 0===E?void 0:E.username:null===E||void 0===E?void 0:E.first_name,last_name:j?"":null===E||void 0===E?void 0:E.last_name,email:null===E||void 0===E?void 0:E.email},color:Ao()}),[E,j]),N=(0,r.useMemo)(()=>((e,t)=>e.filter(e=>e.user.color!==t.color))(y,D),[D,y]),T=(0,r.useCallback)(()=>{p&&(null===p||void 0===p||p.destroy(),g(null))},[p]),P=(0,r.useCallback)(()=>{try{S()}catch(e){}},[S]),z=(0,r.useCallback)(async e=>{try{const t={emailId:M,source:"editor",html:e};return await $(t).unwrap(),!0}catch(t){return!1}},[M,$]),R=(0,r.useCallback)(async e=>{if(await z(e)&&L){const e=setTimeout(()=>{A(!1)},0);return()=>clearTimeout(e)}},[z,A,L]);(0,r.useEffect)(()=>{M&&we._P.isEditor&&(1===y.length&&u.current>1&&p&&P(),u.current=y.length)},[y.length,p,P]),(0,r.useEffect)(()=>{if(!M||!we._P.isEditor||L)return;const e=j?`${M}-plugin`:`${M}-collaborate`,t=new cd(fd.ZW,e,o);return g(t),t.awareness.setLocalStateField("user",D),()=>{null===t||void 0===t||t.destroy(),null===o||void 0===o||o.destroy()}},[o,D,j,M,L]);const I=(0,r.useCallback)(e=>{if(!c.current){c.current=!0;try{const t=l.current,n=Array.from(e.getStates().values());(n.length>1||n.length!==t.length)&&(w(n),requestAnimationFrame(()=>{Lo(n,h,a,m,b,D)})),l.current=n}finally{c.current=!1}}},[h,a,m,b,D]);if((0,r.useEffect)(()=>{if(!p||!h||!we._P.isEditor||!t.current||!h.getModel()||L)return;let e=null;const r=p.awareness,i=o.getText("monaco"),s=async o=>{const s=Array.from(r.getStates().values());if(o){if(i._length>0&&s.length>1&&!O.current){var a,l;const e=e=>e.replace(/\s+/g," ").trim();e((null===h||void 0===h||null===(a=h.getModel())||void 0===a||null===(l=a.getValue())||void 0===l?void 0:l.toString())||"")!==e(i.toString())&&(await async function(e,t){await new Promise(n=>{const r=()=>{var i,o,s;null===t||void 0===t||t(!0);((null===(i=e.current)||void 0===i||null===(o=i.getModel())||void 0===o||null===(s=o.getValue())||void 0===s?void 0:s.length)||0)>0?n():setTimeout(r,100)};r()})}(t,n),null===n||void 0===n||n(!1),h.executeEdits("collaboration",[{range:h.getModel().getFullModelRange(),text:i.toString(),forceMoveMarkers:!0}]))}var c,u;if(i._length>0&&1===s.length&&!O.current)i.applyDelta([{delete:i._length},{insert:null===(c=t.current)||void 0===c?void 0:c.getModel().getValue()}]);if(0===i._length)i.insert(0,null===(u=t.current)||void 0===u?void 0:u.getModel().getValue());O.current&&i.applyDelta([{delete:i._length},{insert:O.current}]),e=new dd(i,null===h||void 0===h?void 0:h.getModel(),new Set([h]),r),null===h||void 0===h||h.onDidChangeCursorPosition(e=>((e,t)=>{t.setLocalStateField("cursor",e.position)})(e,r)),null===h||void 0===h||h.onDidChangeCursorSelection(e=>((e,t)=>{const n=e.selection;t.setLocalStateField("selection",{startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn})})(e,r)),r.on("change",()=>I(r)),O.current=null}};return p.on("sync",s),()=>{e&&e.destroy(),p.off("sync",s)}},[h,p,o,t,I,n,L]),(0,r.useEffect)(()=>{if(!p||!h||!we._P.isEditor||!t.current||L)return;const e=null===p||void 0===p?void 0:p.awareness,n=setInterval(()=>{I(e)},fd.pX);return()=>clearInterval(n)},[p,h,m,t,v,I,T,L]),(0,r.useEffect)(()=>{if(!M||!we._P.isEditor)return;if(v)return;const e=(({CHECK_INTERVAL:e,SLEEP_THRESHOLD:t,provider:n,handleOfflineCollaboration:r,isNewEmailGeneration:i,saveEmailFromEditor:o})=>{let s=Date.now();return setInterval(()=>{const e=Date.now(),r=e-s;r>t&&n&&(o(),window.location.reload(),window.location.reload()),r<t&&!n&&document.visibilityState,s=e},e)})({CHECK_INTERVAL:fd.Pp,SLEEP_THRESHOLD:fd.Q9,provider:p,handleOfflineCollaboration:T,isNewEmailGeneration:L,saveEmailFromEditor:S});return()=>{clearInterval(e)}},[M,p,v,T,k,L]),h&&N.length>0){var q,U;const e=(null===h||void 0===h||null===(q=h.getModel())||void 0===q||null===(U=q.getValue())||void 0===U?void 0:U.toString())||"";d.current!==e&&"clear"in C&&C.clear(),d.current=e}const F=(()=>{const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const e=navigator.platform.toUpperCase().includes("MAC"),n=n=>{const r=(e?n.metaKey:n.ctrlKey)&&"KeyZ"===n.code,i=r&&n.shiftKey;(r||i)&&(t(!0),n.preventDefault())},r=()=>{t(!1)},i=e=>{var n;"application_action"===(null===(n=e.data)||void 0===n?void 0:n.operation)&&("undo"!==e.data.action&&"redo"!==e.data.action||(t(!0),setTimeout(()=>t(!1),500)))};return document.addEventListener("keydown",n,!0),document.addEventListener("keyup",r,!0),window.addEventListener("message",i),()=>{document.removeEventListener("keydown",n,!0),document.removeEventListener("keyup",r,!0),window.removeEventListener("message",i)}},[]),e})()&&N.length>0;return(0,r.useEffect)(()=>{if(!M||!we._P.isEditor)return;const e=setInterval(()=>{if(null!==i&&void 0!==i&&i.current&&!L&&(T(),A(!0)),(null===i||void 0===i||!i.current)&&L){const e=null===s||void 0===s?void 0:s.getValue();O.current=e,R(e)}},300);return()=>clearInterval(e)},[L,p,M,we._P.isEditor]),(0,r.useEffect)(()=>{if(!M||!we._P.isEditor)return;const e=()=>{"hidden"===document.visibilityState&&S()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[e,M,we._P.isEditor]),[h,N,f,v,F]};n(37507);var gd=n(40120),md=n(56605),bd=n(5558),yd=n(12543);!function(){const e={editorWorkerService:"editor.worker.js",html:"html.worker.js",css:"css.worker.js",typescript:"ts.worker.js",json:"json.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"};function t(e,t){/^(\/\/)/.test(e)&&(e=window.location.protocol+e);const n=new Blob(["/*"+t+'*/importScripts("'+e+'");'],{type:"application/javascript"});return URL.createObjectURL(n)}emailmakerMonacoEnvironment.getWorkerUrl=(r,i)=>{const o=n.p,s=(o?o.replace(/\/$/,"")+"/":"")+e[i];const a=new URL(s,window.location.origin),l=a.protocol;if("http:"===l||"https:"===l){if(a.protocol!==window.location.protocol||a.hostname!==window.location.hostname)return t(s,i);if("localhost"===a.hostname&&(a.port||"80")!==(window.location.port||"80"))return t(s,i)}else if("file:"===l)return t(s,i);return s}}(),(0,wo.Xb)(),ye.languages.html.htmlDefaults.options.format.wrapLineLength=0,W.config({monaco:ye}),function(e,t){const n=ue.dS.getEditorContributions().find(t=>t.id===e);if(!n)throw new Error(`No contribution ${e}`);n.ctor=t(n)}(he.ID,()=>he),function(e,t){void 0===e&&(e=window.monaco),void 0===t&&(t=["html"]),yo(e,t,"html")}(ye),function(e,t){void 0===e&&(e=window.monaco),void 0===t&&(t=["css"]),yo(e,t,"css")}(ye,["html"]);const{useToken:wd}=gd.A,vd=({email:e,readOnly:t,setOtherUsers:n,newEmailAiGeneratorRef:i})=>{const o=(0,wo.fn)();"html"!==o.getLanguageId()&&ye.editor.setModelLanguage(o,"html");const s=(0,ko.ml)(xo.AZ.ON_CODE_VALIDATE_ID),a=(0,le.XW)(),l=(0,se.d4)(pe.Up),c=(0,se.d4)(ge.Up),u=(0,se.d4)(pe.VZ),d=null!==e&&void 0!==e&&e.hasOwnProperty("type")?c:l,h=(0,se.d4)(fe.hZ),f=(0,se.wA)(),p=(0,r.useRef)(null),g=(0,r.useRef)(null),m=(0,r.useRef)(null),b=(0,r.useRef)([]),y=(0,vo.rD)(),w=(0,r.useCallback)(()=>{f((0,fe.ku)(!1))},[f]),[v,k]=(0,r.useState)(!1),x=(0,bd.hN)(),{__:_}=(0,yd.s9)(),{token:C}=wd(),[,E,S,O,L]=pd({email:e,editorRef:g,setIsSpin:k,newEmailAiGeneratorRef:i});b.current=E,(0,r.useEffect)(()=>{t||n(b.current)},[null===E||void 0===E?void 0:E.length,n,t]);const A=(0,r.useMemo)(()=>()=>{x.error({message:_(fd.k0)})},[_,x]),$=(0,r.useMemo)(()=>()=>{x.warning({message:_(fd.LJ)})},[_,x]);(0,r.useEffect)(()=>{O&&A()},[O,A]),(0,r.useEffect)(()=>{L&&$()},[L,$]),(0,r.useEffect)(()=>w(),[w]),(0,r.useEffect)(()=>{if(u){const{current:e}=p;e&&(e.revealRangeInCenterIfOutsideViewport(u),e.setSelection(u))}},[u]);const M=(0,r.useCallback)(()=>{if(h.fontFamily&&p.current){const e=p.current.getDomNode();e&&(e.style.setProperty("--monaco-editor-font-family",h.fontFamily,"important"),e.style.setProperty("font-family",h.fontFamily,"important"))}},[h.fontFamily]);(0,r.useEffect)(()=>{if(M(),p.current){const e=p.current.getDomNode();if(e){const t=new MutationObserver(()=>{M()});return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect()}}}},[h.fontFamily,M]);(0,r.useEffect)(()=>{matchMedia(we.F3).addEventListener("change",t=>{const n=window.localStorage.getItem(we.V0.em_color_scheme),r=t.matches?we.nd:we.T;e.hasOwnProperty("type")?f(n?(0,ge.eX)(n===we.nd?`vs-${n}`:we.T):(0,ge.eX)(r===we.nd?`vs-${r}`:we.T)):f(n?(0,pe.eX)(n===we.nd?`vs-${n}`:we.T):(0,pe.eX)(r===we.nd?`vs-${r}`:we.T))})},[f,e]),(0,r.useEffect)(()=>{const t=window.localStorage.getItem(we.V0.em_color_scheme),n=matchMedia(we.F3).matches?we.nd:we.T;null!==e&&void 0!==e&&e.hasOwnProperty("type")?f(t?(0,ge.eX)(t===we.nd?`vs-${t}`:we.T):(0,ge.eX)(n===we.nd?`vs-${n}`:we.T)):f(t?(0,pe.eX)(t===we.nd?`vs-${t}`:we.T):(0,pe.eX)(n===we.nd?`vs-${n}`:we.T))},[f,e]);(0,be.A)(e=>{const t=e.data.operation,n=e.data;m.current=t,t===we.Ru.UPDATE_EDITOR_POSITION_FROM_IFRAME&&(e=>{const{current:t}=p;if(t&&!t.hasTextFocus()){const n=t.getModel(),r=n.getPositionAt(e.start),i=n.getPositionAt(e.end),o={startColumn:r.column,startLineNumber:r.lineNumber,endColumn:i.column,endLineNumber:i.lineNumber};t.revealRangeInCenterIfOutsideViewport(o),t.setSelection(o)}})(n.data)});const j=(0,r.useMemo)(()=>document.createElement("div"),[]),D=(0,r.useMemo)(()=>({...h,domReadOnly:t,readOnly:t,unusualLineTerminators:"off",mouseWheelZoom:!0,wordWrap:y.onlyCodeModeInMobile?"off":h.wordWrap,ariaContainerElement:j}),[h,y.onlyCodeModeInMobile,t,j]);return(null===o||void 0===o?void 0:o.uri)&&r.createElement(r.Fragment,null,v&&r.createElement(md.A,{wrap:!0,style:{position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:null===C||void 0===C?void 0:C.zIndexPopupBase,background:null===C||void 0===C?void 0:C.colorBgLayout}}),r.createElement(oe,{theme:d,className:"monaco-editor",defaultLanguage:"html",onMount:(e,t)=>{p.current=e,g.current=e;const n=e.getContribution("editor.linkDetector").openerService,r=n.open.bind(n),i=document.createElement("div"),o=new ae.Ay(e,ye,{"doctype-html5":!1,"html-lang-require":!1,"head-script-disabled":!1,"style-disabled":!1,"script-disabled":!1,"attr-lowercase":!1,"attr-value-single-quotes":!1,"attr-value-not-empty":!1,"attr-sorted":!1,"attr-whitespace":!1,"input-requires-label":!1,"tag-self-close":!1,"tagname-lowercase":!1,"href-abs-or-rel":!1,"inline-style-disabled":!1,"space-tab-mixed-disabled":!1,"attr-no-unnecessary-whitespace":!0,"tags-check":{img:{selfclosing:!1,attrsRequired:["src","alt"]},a:{selfclosing:!1,attrsRequired:["href"]}},"empty-tag-not-self-closed":!1,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0,"alt-require":!0,"inline-script-disabled":!0,"id-class-value":!1,"id-class-ad-disabled":!0,"attr-unsafe-chars":!0,csslint:{"display-property-grouping":!0,"known-properties":!0}});we._P.isEditor&&g.current&&S(g.current),o.watch(),e.getContribution("editor.linkDetector").openerService.open=e=>(i.innerHTML=e,r(i.textContent)),f((0,fe.ku)(!0)),e.onMouseUp(()=>{const t=e.getSelection();t.startColumn===t.endColumn&&t.startLineNumber===t.endLineNumber&&(async e=>{const{current:t}=p;if(t){const n=t.getModel();a({operation:we.Ru.UPDATE_EDITOR_POSITION_FROM_EDITOR,data:n.getOffsetAt(e)})}})(e.getPosition())}),e.onDidBlurEditorWidget(()=>{a({operation:we.Ru.EDITOR_CHANGE_FOCUS,data:!1}),f((0,me.YT)(!1))}),e.onDidFocusEditorWidget(()=>{a({operation:we.Ru.EDITOR_CHANGE_FOCUS,data:!0}),f((0,me.YT)(!0))}),e.onDidChangeModelContent(()=>{setTimeout(()=>{M()},0)}),setTimeout(()=>{M()},100)},options:D,keepCurrentModel:!0,path:o.uri.toString(),onValidate:function(e){var t;"Doctype must be declared first."!==(null===(t=e[0])||void 0===t?void 0:t.message)&&(we.EW.isPlugin&&s.fire(e),f((0,pe.Bj)(e)))}}))}},48527:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-no-duplication",description:"Class attributes should not contain duplicate values. Other attributes can be checked via configuration.",init(e,t,n){const r=Array.isArray(n)?n:["class"];e.addListener("tagstart",e=>{const n=e.attrs;let i;const o=e.col+e.tagName.length+1;for(let s=0,a=n.length;s<a;s++){i=n[s];const a=i.name.toLowerCase();if(!r.includes(a))continue;if(!i.value||!/\s/.test(i.value))continue;const l=i.value.trim().split(/\s+/),c={};for(const n of l){if(n&&!0===c[n]){t.error(`Duplicate value [ ${n} ] was found in attribute [ ${i.name} ].`,e.line,o+i.index,this,i.raw);break}c[n]=!0}}})}}},52979:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"title-require",description:"<title> must be present in <head> tag.",init(e,t){let n=!1,r=!1;const i=e=>{const t=e.tagName.toLowerCase();"head"===t?n=!0:"title"===t&&n&&(r=!0)},o=n=>{const s=n.tagName.toLowerCase();if(r&&"title"===s){const e=n.lastEvent;("text"!==e.type||"text"===e.type&&!0===/^\s*$/.test(e.raw))&&t.error("<title></title> must not be empty.",n.line,n.col,this,n.raw)}else"head"===s&&(!1===r&&t.error("<title> must be present in <head> tag.",n.line,n.col,this,n.raw),e.removeListener("tagstart",i),e.removeListener("tagend",o))};e.addListener("tagstart",i),e.addListener("tagend",o)}}},58212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"doctype-html5",description:'Invalid doctype. Use: "<!DOCTYPE html>"',init(e,t){const n=e=>{!1===e.long&&"doctype html"!==e.content.toLowerCase()&&t.warn('Invalid doctype. Use: "<!DOCTYPE html>"',e.line,e.col,this,e.raw)},r=()=>{e.removeListener("comment",n),e.removeListener("tagstart",r)};e.addListener("all",n),e.addListener("tagstart",r)}}},59e3:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-unique",description:"The value of id attributes must be unique.",init(e,t){const n={};e.addListener("tagstart",e=>{const r=e.attrs;let i,o;const s=e.col+e.tagName.length+1;for(let a=0,l=r.length;a<l;a++)if(i=r[a],"id"===i.name.toLowerCase()){o=i.value,o&&(void 0===n[o]?n[o]=1:n[o]++,n[o]>1&&t.error(`The id value [ ${o} ] must be unique.`,e.line,s+i.index,this,i.raw));break}})}}},59168:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLMonacoLinter=void 0;const r=n(94266);t.HTMLMonacoLinter=class{constructor(e,t,n){this.editor=e,this.monaco=t,this.ruleset=n}lint(){var e;const t=this.editor.getValue();if("html"===(null===(e=this.editor.getModel())||void 0===e?void 0:e.getLanguageId())){const e=new r.HTMLMonacoMarks(t,this.ruleset,this.editor.getModel()||void 0).getEditorMarks(this.monaco),n=this.editor.getModel();if(null===n)throw new Error("Your model still does't exist.");this.monaco.editor.setModelMarkers(n,"owner",e)}}watch(){this.lint(),this.editor.onDidChangeModelContent(e=>{this.lint()})}}},60761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"spec-char-escape",description:"Special characters must be escaped.",init(e,t){e.addListener("text",n=>{const r=n.raw,i=/([<>])/g;let o;for(;o=i.exec(r);){const r=e.fixPos(n,o.index);t.error(`Special characters must be escaped : [ ${o[0]} ].`,r.line,r.col,this,n.raw)}})}}},61452:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-not-empty",description:"All attributes must have values.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1;for(let o=0,s=n.length;o<s;o++)r=n[o],""===r.quote&&""===r.value&&t.warn(`The attribute [ ${r.name} ] must have a value.`,e.line,i+r.index,this,r.raw)})}}},61730:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"doctype-first",description:"Doctype must be declared first (comments and whitespace allowed before DOCTYPE).",init(e,t){let n=!1,r=!1;const i=o=>{if(!("start"===o.type||"text"===o.type&&/^\s*$/.test(o.raw))&&!n)return"comment"===o.type&&!1===o.long&&/^DOCTYPE\s+/i.test(o.content)?(n=!0,void(r&&t.error("Doctype must be declared before any non-comment content.",o.line,o.col,this,o.raw))):void("comment"!==o.type&&(r=!0,t.error("Doctype must be declared before any non-comment content.",o.line,o.col,this,o.raw),e.removeListener("all",i)))};e.addListener("all",i)}}},62433:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"src-not-empty",description:"The src attribute of an img(script,link) must have a value.",init(e,t){e.addListener("tagstart",e=>{const n=e.tagName,r=e.attrs;let i;const o=e.col+n.length+1;for(let s=0,a=r.length;s<a;s++)i=r[s],(!0===/^(img|script|embed|bgsound|iframe)$/.test(n)&&"src"===i.name||"link"===n&&"href"===i.name||"object"===n&&"data"===i.name)&&""===i.value&&t.error(`The attribute [ ${i.name} ] of the tag [ ${n} ] must have a value.`,e.line,o+i.index,this,i.raw)})}}},66583:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"input-requires-label",description:"All [ input ] tags must have a corresponding [ label ] tag. ",init(e,t){const n=[],r=[];e.addListener("tagstart",t=>{const i=t.tagName.toLowerCase(),o=e.getMapAttrs(t.attrs),s=t.col+i.length+1;"input"===i&&"hidden"!==o.type&&r.push({event:t,col:s,id:o.id}),"label"===i&&"for"in o&&""!==o.for&&n.push({event:t,col:s,forValue:o.for})}),e.addListener("end",()=>{r.forEach(e=>{(function(e){let t=!1;return n.forEach(n=>{e.id&&e.id===n.forValue&&(t=!0)}),t})(e)||t.warn("No matching [ label ] tag found.",e.event.line,e.col,this,e.event.raw)})})}}},66746:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"button-type-require",description:'The type attribute of a <button> element must be present with a valid value: "button", "submit", or "reset".',init(e,t){e.addListener("tagstart",n=>{const r=n.tagName.toLowerCase();if("button"===r){const i=e.getMapAttrs(n.attrs),o=n.col+r.length+1;if(void 0===i.type)t.warn("The type attribute must be present on <button> elements.",n.line,o,this,n.raw);else{const e=i.type.toLowerCase();"button"!==e&&"submit"!==e&&"reset"!==e&&t.warn('The type attribute of <button> must have a valid value: "button", "submit", or "reset".',n.line,o,this,n.raw)}}})}}},73343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});let n={a:{selfclosing:!1,attrsRequired:["href","title"],redundantAttrs:["alt"]},div:{selfclosing:!1},main:{selfclosing:!1,redundantAttrs:["role"]},nav:{selfclosing:!1,redundantAttrs:["role"]},script:{attrsOptional:[["async","async"],["defer","defer"]]},img:{selfclosing:!0,attrsRequired:["src","alt","title"]}};t.default={id:"tags-check",description:"Checks html tags.",init(e,t,r){n={...n,...r},e.addListener("tagstart",e=>{const r=e.attrs,i=e.col+e.tagName.length+1,o=e.tagName.toLowerCase();if(n[o]){const s=n[o];if(!0!==s.selfclosing||e.close?!1===s.selfclosing&&e.close&&t.warn(`The <${o}> tag must not be selfclosing.`,e.line,e.col,this,e.raw):t.warn(`The <${o}> tag must be selfclosing.`,e.line,e.col,this,e.raw),Array.isArray(s.attrsRequired)){s.attrsRequired.forEach(n=>{if(Array.isArray(n)){const s=n.map(e=>e),a=s.shift(),l=s;r.some(e=>e.name===a)?r.forEach(n=>{n.name===a&&-1===l.indexOf(n.value)&&t.error(`The <${o}> tag must have attr '${a}' with one value of '${l.join("' or '")}'.`,e.line,i,this,e.raw)}):t.error(`The <${o}> tag must have attr '${a}'.`,e.line,i,this,e.raw)}else r.some(e=>-1!==n.split("|").indexOf(e.name))||t.error(`The <${o}> tag must have attr '${n}'.`,e.line,i,this,e.raw)})}if(Array.isArray(s.attrsOptional)){s.attrsOptional.forEach(n=>{if(Array.isArray(n)){const s=n.map(e=>e),a=s.shift(),l=s;r.some(e=>e.name===a)&&r.forEach(n=>{n.name===a&&-1===l.indexOf(n.value)&&t.error(`The <${o}> tag must have optional attr '${a}' with one value of '${l.join("' or '")}'.`,e.line,i,this,e.raw)})}})}if(Array.isArray(s.redundantAttrs)){s.redundantAttrs.forEach(n=>{r.some(e=>e.name===n)&&t.error(`The attr '${n}' is redundant for <${o}> and should be omitted.`,e.line,i,this,e.raw)})}}})}}},76735:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-single-quotes",description:"Attribute values must be in single quotes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1;for(let o=0,s=n.length;o<s;o++)r=n[o],(""!==r.value&&"'"!==r.quote||""===r.value&&'"'===r.quote)&&t.error(`The value of attribute [ ${r.name} ] must be in single quotes.`,e.line,i+r.index,this,r.raw)})}}},78028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-double-quotes",description:"Attribute values must be in double quotes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let r;const i=e.col+e.tagName.length+1;for(let o=0,s=n.length;o<s;o++)r=n[o],(""!==r.value&&'"'!==r.quote||""===r.value&&"'"===r.quote)&&t.error(`The value of attribute [ ${r.name} ] must be in double quotes.`,e.line,i+r.index,this,r.raw)})}}},78815:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=["applet","acronym","bgsound","dir","frame","frameset","noframes","isindex","keygen","listing","menuitem","nextid","noembed","plaintext","rb","rtc","strike","xmp","basefont","big","blink","center","font","marquee","multicol","nobr","spacer","tt"];t.default={id:"tag-no-obsolete",description:"Disallows the use of obsolete HTML tags.",init(e,t,r){e.addListener("tagstart,tagend",e=>{const r=e.tagName.toLowerCase();n.includes(r)&&t.error(`The tag [ ${e.tagName} ] is obsolete in HTML5 and should not be used.`,e.line,e.col,this,e.raw)})}}},79960:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tag-pair",description:"Tag must be paired.",init(e,t){const n=[],r=e.makeMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();void 0!==r[t]||e.close||n.push({tagName:t,line:e.line,col:e.col,raw:e.raw})}),e.addListener("tagend",e=>{const r=e.tagName.toLowerCase();let i;for(i=n.length-1;i>=0&&n[i].tagName!==r;i--);if(i>=0){const r=[];for(let e=n.length-1;e>i;e--)r.push(`</${n[e].tagName}>`);if(r.length>0){const i=n[n.length-1];t.error(`Tag must be paired, missing: [ ${r.join("")} ], start tag match failed [ ${i.raw} ] on line ${i.line}.`,i.line||e.line,i.col||e.col,this,e.raw)}n.length=i}else t.error(`Tag must be paired, no start tag: [ ${e.raw} ]`,e.line,e.col,this,e.raw)}),e.addListener("end",e=>{const r=[];for(let t=n.length-1;t>=0;t--)r.push(`</${n[t].tagName}>`);if(r.length>0){const i=n[n.length-1];t.error(`Tag must be paired, missing: [ ${r.join("")} ], open tag match failed [ ${i.raw} ] on line ${i.line}.`,e.line,e.col,this,"")}})}}},81544:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"empty-tag-not-self-closed",description:"Empty tags must not use self closed syntax.",init(e,t){const n=e.makeMap("area,base,basefont,bgsound,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const r=e.tagName.toLowerCase();void 0!==n[r]&&e.close&&t.error(`The empty tag : [ ${r} ] must not use self closed syntax.`,e.line,e.col,this,e.raw)})}}},84744:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"main-require",description:"<main> must be present in <body> tag.",init(e,t){let n=0,r=!1,i=null;e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();"body"===t?(n++,1===n&&(r=!1,i=e)):"main"===t&&n>0&&(r=!0)}),e.addListener("tagend",e=>{"body"===e.tagName.toLowerCase()&&(1===n&&!r&&i&&t.warn("<main> must be present in <body> tag.",i.line,i.col,this,i.raw),n--,n<0&&(n=0))}),e.addListener("end",()=>{n>0&&!r&&i&&t.warn("<main> must be present in <body> tag.",i.line,i.col,this,i.raw)})}}},88020:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-sorted",description:"Attribute tags must be in proper order.",init(e,t){const n={},r=["class","id","name","src","for","type","rel","href","value","title","alt","role"];for(let i=0;i<r.length;i++)n[r[i]]=i;e.addListener("tagstart",e=>{const r=e.attrs,i=[];for(let t=0;t<r.length;t++)i.push(r[t].name);const o=JSON.stringify(i);i.sort((e,t)=>void 0!==n[e]?void 0!==n[t]?n[e]-n[t]:-1:e.startsWith("data-")?t.startsWith("data-")?e.localeCompare(t):1:void 0!==n[t]?1:t.startsWith("data-")?-1:e.localeCompare(t)),o!==JSON.stringify(i)&&t.error(`Inaccurate order ${o} should be in hierarchy ${JSON.stringify(i)} `,e.line,e.col,this,e.raw)})}}},88578:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"h1-require",description:"<h1> must be present in <body> tag and not be empty.",init(e,t){let n=0,r=!1,i=null,o=null,s=!1;e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();"body"===t?(n++,1===n&&(r=!1,i=e)):"h1"===t&&n>0&&(r=!0,o=e,s=!0)}),e.addListener("tagend",e=>{const a=e.tagName.toLowerCase();"h1"===a&&o?(s&&t.warn("<h1> tag must not be empty.",o.line,o.col,this,o.raw),o=null):"body"===a&&(1===n&&!r&&i&&t.warn("<h1> must be present in <body> tag.",i.line,i.col,this,i.raw),n--,n<0&&(n=0))}),e.addListener("text",e=>{o&&s&&e.raw&&!/^\s*$/.test(e.raw)&&(s=!1)}),e.addListener("end",()=>{n>0&&!r&&i&&t.warn("<h1> must be present in <body> tag.",i.line,i.col,this,i.raw)})}}},94266:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLMonacoMarks=void 0;const r=n(15688),i=n(23495),o={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0};t.HTMLMonacoMarks=class{constructor(e,t=o,n){this.html=e,this.ruleset=t,this.linterResponse=this.lint(),this.model=n}lint(){return r.HTMLHint.verify(this.html,this.ruleset)}getEditorMarks(e){return this.linterResponse.map(t=>({startLineNumber:t.line,startColumn:t.col,endLineNumber:t.line,endColumn:""!==t.evidence?t.col+t.evidence.length:void 0!==this.model?this.model.getLineLength(t.line):t.col+1,message:t.message,severity:e.MarkerSeverity[(0,i.capitalize)(t.type)]}))}getLinterResponse(){return this.linterResponse}}},94999:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-description-require",description:'<meta name="description"> with non-blank content must be present in <head> tag.',init(e,t){let n=!1,r=!1,i="",o=null;e.addListener("tagstart",t=>{const s=t.tagName.toLowerCase();if("head"===s)n=!0,o=t;else if("meta"===s){const n=e.getMapAttrs(t.attrs);n.name&&"description"===n.name.toLowerCase()&&(r=!0,i=n.content||"")}}),e.addListener("end",()=>{n&&o&&(r?""===i.trim()&&t.error('<meta name="description"> content attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<meta name="description"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}}}]);