@jean-is/render 0.0.0-stage → 0.8.0-r83bf42d1b67e

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 (1209) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -2
  3. package/caps/charts/charts.css +12 -0
  4. package/caps/charts/charts.js +154 -0
  5. package/caps/charts/option.js +141 -0
  6. package/caps/interactive/diagram.js +415 -0
  7. package/caps/interactive/interactive.css +21 -0
  8. package/caps/interactive/interactive.js +345 -0
  9. package/caps/interactive/map.js +183 -0
  10. package/caps/interactive/mode.js +54 -0
  11. package/caps/layouts/layouts.css +179 -0
  12. package/caps/layouts/layouts.js +147 -0
  13. package/caps/layouts/shapes.js +159 -0
  14. package/caps/math/latex.js +88 -0
  15. package/caps/math/math.css +24 -0
  16. package/caps/math/math.js +117 -0
  17. package/caps/scores/notes.js +30 -0
  18. package/caps/scores/scores.css +22 -0
  19. package/caps/scores/scores.js +287 -0
  20. package/caps/scores/sound-worker.js +12 -0
  21. package/caps/scores/sound.js +72 -0
  22. package/caps/share/seal.js +86 -0
  23. package/caps/share/view.js +153 -0
  24. package/caps/skills/directory.js +57 -0
  25. package/caps/skills/sources.js +281 -0
  26. package/caps/slides/deck.js +69 -0
  27. package/caps/slides/slides.css +38 -0
  28. package/caps/slides/slides.js +122 -0
  29. package/core/anthropic.js +253 -0
  30. package/core/deferred.js +48 -0
  31. package/core/events.js +166 -0
  32. package/core/files.js +277 -0
  33. package/core/fs.js +186 -0
  34. package/core/hooks.js +53 -0
  35. package/core/i18n.js +151 -0
  36. package/core/llm.js +400 -0
  37. package/core/loop.js +453 -0
  38. package/core/rules.js +52 -0
  39. package/core/search.js +158 -0
  40. package/core/settings.js +221 -0
  41. package/core/skills.js +90 -0
  42. package/core/sse.js +51 -0
  43. package/core/ulid.js +17 -0
  44. package/core/zip.js +165 -0
  45. package/fonts/OFL.txt +94 -0
  46. package/fonts/display.woff2 +0 -0
  47. package/locales/am.json +395 -0
  48. package/locales/ar.json +427 -0
  49. package/locales/ask/am.json +8 -0
  50. package/locales/ask/ar.json +8 -0
  51. package/locales/ask/bn.json +8 -0
  52. package/locales/ask/de.json +8 -0
  53. package/locales/ask/en.json +8 -0
  54. package/locales/ask/es.json +8 -0
  55. package/locales/ask/fa.json +8 -0
  56. package/locales/ask/fr.json +8 -0
  57. package/locales/ask/ha.json +8 -0
  58. package/locales/ask/he.json +8 -0
  59. package/locales/ask/hi.json +8 -0
  60. package/locales/ask/id.json +8 -0
  61. package/locales/ask/it.json +8 -0
  62. package/locales/ask/ja.json +8 -0
  63. package/locales/ask/ko.json +8 -0
  64. package/locales/ask/mr.json +8 -0
  65. package/locales/ask/ms.json +8 -0
  66. package/locales/ask/nl.json +8 -0
  67. package/locales/ask/pl.json +8 -0
  68. package/locales/ask/pt.json +8 -0
  69. package/locales/ask/ru.json +8 -0
  70. package/locales/ask/sw.json +8 -0
  71. package/locales/ask/ta.json +8 -0
  72. package/locales/ask/te.json +8 -0
  73. package/locales/ask/th.json +8 -0
  74. package/locales/ask/tl.json +8 -0
  75. package/locales/ask/tr.json +8 -0
  76. package/locales/ask/uk.json +8 -0
  77. package/locales/ask/ur.json +8 -0
  78. package/locales/ask/vi.json +8 -0
  79. package/locales/ask/yo.json +8 -0
  80. package/locales/ask/zh-Hans.json +8 -0
  81. package/locales/ask/zh-Hant.json +8 -0
  82. package/locales/backup/am.json +8 -0
  83. package/locales/backup/ar.json +12 -0
  84. package/locales/backup/bn.json +8 -0
  85. package/locales/backup/de.json +8 -0
  86. package/locales/backup/en.json +8 -0
  87. package/locales/backup/es.json +9 -0
  88. package/locales/backup/fa.json +8 -0
  89. package/locales/backup/fr.json +9 -0
  90. package/locales/backup/ha.json +8 -0
  91. package/locales/backup/he.json +10 -0
  92. package/locales/backup/hi.json +8 -0
  93. package/locales/backup/id.json +7 -0
  94. package/locales/backup/it.json +9 -0
  95. package/locales/backup/ja.json +7 -0
  96. package/locales/backup/ko.json +7 -0
  97. package/locales/backup/mr.json +8 -0
  98. package/locales/backup/ms.json +7 -0
  99. package/locales/backup/nl.json +8 -0
  100. package/locales/backup/pl.json +10 -0
  101. package/locales/backup/pt.json +9 -0
  102. package/locales/backup/ru.json +10 -0
  103. package/locales/backup/sw.json +8 -0
  104. package/locales/backup/ta.json +8 -0
  105. package/locales/backup/te.json +8 -0
  106. package/locales/backup/th.json +7 -0
  107. package/locales/backup/tl.json +8 -0
  108. package/locales/backup/tr.json +8 -0
  109. package/locales/backup/uk.json +10 -0
  110. package/locales/backup/ur.json +8 -0
  111. package/locales/backup/vi.json +7 -0
  112. package/locales/backup/yo.json +7 -0
  113. package/locales/backup/zh-Hans.json +7 -0
  114. package/locales/backup/zh-Hant.json +7 -0
  115. package/locales/bn.json +395 -0
  116. package/locales/brain-local/am.json +13 -0
  117. package/locales/brain-local/ar.json +13 -0
  118. package/locales/brain-local/bn.json +13 -0
  119. package/locales/brain-local/de.json +13 -0
  120. package/locales/brain-local/en.json +13 -0
  121. package/locales/brain-local/es.json +13 -0
  122. package/locales/brain-local/fa.json +13 -0
  123. package/locales/brain-local/fr.json +13 -0
  124. package/locales/brain-local/ha.json +13 -0
  125. package/locales/brain-local/he.json +13 -0
  126. package/locales/brain-local/hi.json +13 -0
  127. package/locales/brain-local/id.json +13 -0
  128. package/locales/brain-local/it.json +13 -0
  129. package/locales/brain-local/ja.json +13 -0
  130. package/locales/brain-local/ko.json +13 -0
  131. package/locales/brain-local/mr.json +13 -0
  132. package/locales/brain-local/ms.json +13 -0
  133. package/locales/brain-local/nl.json +13 -0
  134. package/locales/brain-local/pl.json +13 -0
  135. package/locales/brain-local/pt.json +13 -0
  136. package/locales/brain-local/ru.json +13 -0
  137. package/locales/brain-local/sw.json +13 -0
  138. package/locales/brain-local/ta.json +13 -0
  139. package/locales/brain-local/te.json +13 -0
  140. package/locales/brain-local/th.json +13 -0
  141. package/locales/brain-local/tl.json +13 -0
  142. package/locales/brain-local/tr.json +13 -0
  143. package/locales/brain-local/uk.json +13 -0
  144. package/locales/brain-local/ur.json +13 -0
  145. package/locales/brain-local/vi.json +13 -0
  146. package/locales/brain-local/yo.json +13 -0
  147. package/locales/brain-local/zh-Hans.json +13 -0
  148. package/locales/brain-local/zh-Hant.json +13 -0
  149. package/locales/browser/am.json +29 -0
  150. package/locales/browser/ar.json +29 -0
  151. package/locales/browser/bn.json +29 -0
  152. package/locales/browser/de.json +29 -0
  153. package/locales/browser/en.json +29 -0
  154. package/locales/browser/es.json +29 -0
  155. package/locales/browser/fa.json +29 -0
  156. package/locales/browser/fr.json +29 -0
  157. package/locales/browser/ha.json +29 -0
  158. package/locales/browser/he.json +29 -0
  159. package/locales/browser/hi.json +29 -0
  160. package/locales/browser/id.json +29 -0
  161. package/locales/browser/it.json +29 -0
  162. package/locales/browser/ja.json +29 -0
  163. package/locales/browser/ko.json +29 -0
  164. package/locales/browser/mr.json +29 -0
  165. package/locales/browser/ms.json +29 -0
  166. package/locales/browser/nl.json +29 -0
  167. package/locales/browser/pl.json +29 -0
  168. package/locales/browser/pt.json +29 -0
  169. package/locales/browser/ru.json +29 -0
  170. package/locales/browser/sw.json +29 -0
  171. package/locales/browser/ta.json +29 -0
  172. package/locales/browser/te.json +29 -0
  173. package/locales/browser/th.json +29 -0
  174. package/locales/browser/tl.json +29 -0
  175. package/locales/browser/tr.json +29 -0
  176. package/locales/browser/uk.json +29 -0
  177. package/locales/browser/ur.json +29 -0
  178. package/locales/browser/vi.json +29 -0
  179. package/locales/browser/yo.json +29 -0
  180. package/locales/browser/zh-Hans.json +29 -0
  181. package/locales/browser/zh-Hant.json +29 -0
  182. package/locales/certificates/am.json +58 -0
  183. package/locales/certificates/ar.json +58 -0
  184. package/locales/certificates/bn.json +58 -0
  185. package/locales/certificates/de.json +58 -0
  186. package/locales/certificates/en.json +58 -0
  187. package/locales/certificates/es.json +58 -0
  188. package/locales/certificates/fa.json +58 -0
  189. package/locales/certificates/fr.json +58 -0
  190. package/locales/certificates/ha.json +58 -0
  191. package/locales/certificates/he.json +58 -0
  192. package/locales/certificates/hi.json +58 -0
  193. package/locales/certificates/id.json +58 -0
  194. package/locales/certificates/it.json +58 -0
  195. package/locales/certificates/ja.json +58 -0
  196. package/locales/certificates/ko.json +58 -0
  197. package/locales/certificates/mr.json +58 -0
  198. package/locales/certificates/ms.json +58 -0
  199. package/locales/certificates/nl.json +58 -0
  200. package/locales/certificates/pl.json +58 -0
  201. package/locales/certificates/pt.json +58 -0
  202. package/locales/certificates/ru.json +58 -0
  203. package/locales/certificates/sw.json +58 -0
  204. package/locales/certificates/ta.json +58 -0
  205. package/locales/certificates/te.json +58 -0
  206. package/locales/certificates/th.json +58 -0
  207. package/locales/certificates/tl.json +58 -0
  208. package/locales/certificates/tr.json +58 -0
  209. package/locales/certificates/uk.json +58 -0
  210. package/locales/certificates/ur.json +58 -0
  211. package/locales/certificates/vi.json +58 -0
  212. package/locales/certificates/yo.json +58 -0
  213. package/locales/certificates/zh-Hans.json +58 -0
  214. package/locales/certificates/zh-Hant.json +58 -0
  215. package/locales/charts/am.json +5 -0
  216. package/locales/charts/ar.json +5 -0
  217. package/locales/charts/bn.json +5 -0
  218. package/locales/charts/de.json +5 -0
  219. package/locales/charts/en.json +5 -0
  220. package/locales/charts/es.json +5 -0
  221. package/locales/charts/fa.json +5 -0
  222. package/locales/charts/fr.json +5 -0
  223. package/locales/charts/ha.json +5 -0
  224. package/locales/charts/he.json +5 -0
  225. package/locales/charts/hi.json +5 -0
  226. package/locales/charts/id.json +5 -0
  227. package/locales/charts/it.json +5 -0
  228. package/locales/charts/ja.json +5 -0
  229. package/locales/charts/ko.json +5 -0
  230. package/locales/charts/mr.json +5 -0
  231. package/locales/charts/ms.json +5 -0
  232. package/locales/charts/nl.json +5 -0
  233. package/locales/charts/pl.json +5 -0
  234. package/locales/charts/pt.json +5 -0
  235. package/locales/charts/ru.json +5 -0
  236. package/locales/charts/sw.json +5 -0
  237. package/locales/charts/ta.json +5 -0
  238. package/locales/charts/te.json +5 -0
  239. package/locales/charts/th.json +5 -0
  240. package/locales/charts/tl.json +5 -0
  241. package/locales/charts/tr.json +5 -0
  242. package/locales/charts/uk.json +5 -0
  243. package/locales/charts/ur.json +5 -0
  244. package/locales/charts/vi.json +5 -0
  245. package/locales/charts/yo.json +5 -0
  246. package/locales/charts/zh-Hans.json +5 -0
  247. package/locales/charts/zh-Hant.json +5 -0
  248. package/locales/compact/am.json +7 -0
  249. package/locales/compact/ar.json +7 -0
  250. package/locales/compact/bn.json +7 -0
  251. package/locales/compact/de.json +7 -0
  252. package/locales/compact/en.json +7 -0
  253. package/locales/compact/es.json +7 -0
  254. package/locales/compact/fa.json +7 -0
  255. package/locales/compact/fr.json +7 -0
  256. package/locales/compact/ha.json +7 -0
  257. package/locales/compact/he.json +7 -0
  258. package/locales/compact/hi.json +7 -0
  259. package/locales/compact/id.json +7 -0
  260. package/locales/compact/it.json +7 -0
  261. package/locales/compact/ja.json +7 -0
  262. package/locales/compact/ko.json +7 -0
  263. package/locales/compact/mr.json +7 -0
  264. package/locales/compact/ms.json +7 -0
  265. package/locales/compact/nl.json +7 -0
  266. package/locales/compact/pl.json +7 -0
  267. package/locales/compact/pt.json +7 -0
  268. package/locales/compact/ru.json +7 -0
  269. package/locales/compact/sw.json +7 -0
  270. package/locales/compact/ta.json +7 -0
  271. package/locales/compact/te.json +7 -0
  272. package/locales/compact/th.json +7 -0
  273. package/locales/compact/tl.json +7 -0
  274. package/locales/compact/tr.json +7 -0
  275. package/locales/compact/uk.json +7 -0
  276. package/locales/compact/ur.json +7 -0
  277. package/locales/compact/vi.json +7 -0
  278. package/locales/compact/yo.json +7 -0
  279. package/locales/compact/zh-Hans.json +7 -0
  280. package/locales/compact/zh-Hant.json +7 -0
  281. package/locales/computer/am.json +61 -0
  282. package/locales/computer/ar.json +69 -0
  283. package/locales/computer/bn.json +61 -0
  284. package/locales/computer/de.json +61 -0
  285. package/locales/computer/en.json +61 -0
  286. package/locales/computer/es.json +63 -0
  287. package/locales/computer/fa.json +61 -0
  288. package/locales/computer/fr.json +63 -0
  289. package/locales/computer/ha.json +61 -0
  290. package/locales/computer/he.json +63 -0
  291. package/locales/computer/hi.json +61 -0
  292. package/locales/computer/id.json +59 -0
  293. package/locales/computer/it.json +63 -0
  294. package/locales/computer/ja.json +59 -0
  295. package/locales/computer/ko.json +59 -0
  296. package/locales/computer/mr.json +61 -0
  297. package/locales/computer/ms.json +59 -0
  298. package/locales/computer/nl.json +61 -0
  299. package/locales/computer/pl.json +65 -0
  300. package/locales/computer/pt.json +63 -0
  301. package/locales/computer/ru.json +65 -0
  302. package/locales/computer/sw.json +61 -0
  303. package/locales/computer/ta.json +61 -0
  304. package/locales/computer/te.json +61 -0
  305. package/locales/computer/th.json +59 -0
  306. package/locales/computer/tl.json +61 -0
  307. package/locales/computer/tr.json +61 -0
  308. package/locales/computer/uk.json +65 -0
  309. package/locales/computer/ur.json +61 -0
  310. package/locales/computer/vi.json +59 -0
  311. package/locales/computer/yo.json +59 -0
  312. package/locales/computer/zh-Hans.json +59 -0
  313. package/locales/computer/zh-Hant.json +59 -0
  314. package/locales/connections/am.json +15 -0
  315. package/locales/connections/ar.json +15 -0
  316. package/locales/connections/bn.json +15 -0
  317. package/locales/connections/de.json +15 -0
  318. package/locales/connections/en.json +15 -0
  319. package/locales/connections/es.json +15 -0
  320. package/locales/connections/fa.json +15 -0
  321. package/locales/connections/fr.json +15 -0
  322. package/locales/connections/ha.json +15 -0
  323. package/locales/connections/he.json +15 -0
  324. package/locales/connections/hi.json +15 -0
  325. package/locales/connections/id.json +15 -0
  326. package/locales/connections/it.json +15 -0
  327. package/locales/connections/ja.json +15 -0
  328. package/locales/connections/ko.json +15 -0
  329. package/locales/connections/mr.json +15 -0
  330. package/locales/connections/ms.json +15 -0
  331. package/locales/connections/nl.json +15 -0
  332. package/locales/connections/pl.json +15 -0
  333. package/locales/connections/pt.json +15 -0
  334. package/locales/connections/ru.json +15 -0
  335. package/locales/connections/sw.json +15 -0
  336. package/locales/connections/ta.json +15 -0
  337. package/locales/connections/te.json +15 -0
  338. package/locales/connections/th.json +15 -0
  339. package/locales/connections/tl.json +15 -0
  340. package/locales/connections/tr.json +15 -0
  341. package/locales/connections/uk.json +15 -0
  342. package/locales/connections/ur.json +15 -0
  343. package/locales/connections/vi.json +15 -0
  344. package/locales/connections/yo.json +15 -0
  345. package/locales/connections/zh-Hans.json +15 -0
  346. package/locales/connections/zh-Hant.json +15 -0
  347. package/locales/de.json +395 -0
  348. package/locales/dialogs/am.json +347 -0
  349. package/locales/dialogs/ar.json +359 -0
  350. package/locales/dialogs/bn.json +347 -0
  351. package/locales/dialogs/de.json +347 -0
  352. package/locales/dialogs/en.json +347 -0
  353. package/locales/dialogs/es.json +350 -0
  354. package/locales/dialogs/fa.json +347 -0
  355. package/locales/dialogs/fr.json +350 -0
  356. package/locales/dialogs/ha.json +347 -0
  357. package/locales/dialogs/he.json +352 -0
  358. package/locales/dialogs/hi.json +347 -0
  359. package/locales/dialogs/id.json +344 -0
  360. package/locales/dialogs/it.json +350 -0
  361. package/locales/dialogs/ja.json +344 -0
  362. package/locales/dialogs/ko.json +344 -0
  363. package/locales/dialogs/mr.json +347 -0
  364. package/locales/dialogs/ms.json +344 -0
  365. package/locales/dialogs/nl.json +347 -0
  366. package/locales/dialogs/pl.json +353 -0
  367. package/locales/dialogs/pt.json +350 -0
  368. package/locales/dialogs/ru.json +353 -0
  369. package/locales/dialogs/sw.json +347 -0
  370. package/locales/dialogs/ta.json +347 -0
  371. package/locales/dialogs/te.json +347 -0
  372. package/locales/dialogs/th.json +344 -0
  373. package/locales/dialogs/tl.json +347 -0
  374. package/locales/dialogs/tr.json +347 -0
  375. package/locales/dialogs/uk.json +353 -0
  376. package/locales/dialogs/ur.json +347 -0
  377. package/locales/dialogs/vi.json +344 -0
  378. package/locales/dialogs/yo.json +344 -0
  379. package/locales/dialogs/zh-Hans.json +344 -0
  380. package/locales/dialogs/zh-Hant.json +344 -0
  381. package/locales/en.json +395 -0
  382. package/locales/enterprise/am.json +21 -0
  383. package/locales/enterprise/ar.json +21 -0
  384. package/locales/enterprise/bn.json +21 -0
  385. package/locales/enterprise/de.json +21 -0
  386. package/locales/enterprise/en.json +21 -0
  387. package/locales/enterprise/es.json +21 -0
  388. package/locales/enterprise/fa.json +21 -0
  389. package/locales/enterprise/fr.json +21 -0
  390. package/locales/enterprise/ha.json +21 -0
  391. package/locales/enterprise/he.json +21 -0
  392. package/locales/enterprise/hi.json +21 -0
  393. package/locales/enterprise/id.json +21 -0
  394. package/locales/enterprise/it.json +21 -0
  395. package/locales/enterprise/ja.json +21 -0
  396. package/locales/enterprise/ko.json +21 -0
  397. package/locales/enterprise/mr.json +21 -0
  398. package/locales/enterprise/ms.json +21 -0
  399. package/locales/enterprise/nl.json +21 -0
  400. package/locales/enterprise/pl.json +21 -0
  401. package/locales/enterprise/pt.json +21 -0
  402. package/locales/enterprise/ru.json +21 -0
  403. package/locales/enterprise/sw.json +21 -0
  404. package/locales/enterprise/ta.json +21 -0
  405. package/locales/enterprise/te.json +21 -0
  406. package/locales/enterprise/th.json +21 -0
  407. package/locales/enterprise/tl.json +21 -0
  408. package/locales/enterprise/tr.json +21 -0
  409. package/locales/enterprise/uk.json +21 -0
  410. package/locales/enterprise/ur.json +21 -0
  411. package/locales/enterprise/vi.json +21 -0
  412. package/locales/enterprise/yo.json +21 -0
  413. package/locales/enterprise/zh-Hans.json +21 -0
  414. package/locales/enterprise/zh-Hant.json +21 -0
  415. package/locales/es.json +403 -0
  416. package/locales/fa.json +395 -0
  417. package/locales/first/am.json +26 -0
  418. package/locales/first/ar.json +26 -0
  419. package/locales/first/bn.json +26 -0
  420. package/locales/first/de.json +26 -0
  421. package/locales/first/en.json +26 -0
  422. package/locales/first/es.json +26 -0
  423. package/locales/first/fa.json +26 -0
  424. package/locales/first/fr.json +26 -0
  425. package/locales/first/ha.json +26 -0
  426. package/locales/first/he.json +26 -0
  427. package/locales/first/hi.json +26 -0
  428. package/locales/first/id.json +26 -0
  429. package/locales/first/it.json +26 -0
  430. package/locales/first/ja.json +26 -0
  431. package/locales/first/ko.json +26 -0
  432. package/locales/first/mr.json +26 -0
  433. package/locales/first/ms.json +26 -0
  434. package/locales/first/nl.json +26 -0
  435. package/locales/first/pl.json +26 -0
  436. package/locales/first/pt.json +26 -0
  437. package/locales/first/ru.json +26 -0
  438. package/locales/first/sw.json +26 -0
  439. package/locales/first/ta.json +26 -0
  440. package/locales/first/te.json +26 -0
  441. package/locales/first/th.json +26 -0
  442. package/locales/first/tl.json +26 -0
  443. package/locales/first/tr.json +26 -0
  444. package/locales/first/uk.json +26 -0
  445. package/locales/first/ur.json +26 -0
  446. package/locales/first/vi.json +26 -0
  447. package/locales/first/yo.json +26 -0
  448. package/locales/first/zh-Hans.json +26 -0
  449. package/locales/first/zh-Hant.json +26 -0
  450. package/locales/flows/am.json +51 -0
  451. package/locales/flows/ar.json +51 -0
  452. package/locales/flows/bn.json +51 -0
  453. package/locales/flows/de.json +51 -0
  454. package/locales/flows/en.json +51 -0
  455. package/locales/flows/es.json +51 -0
  456. package/locales/flows/fa.json +51 -0
  457. package/locales/flows/fr.json +51 -0
  458. package/locales/flows/ha.json +51 -0
  459. package/locales/flows/he.json +51 -0
  460. package/locales/flows/hi.json +51 -0
  461. package/locales/flows/id.json +51 -0
  462. package/locales/flows/it.json +51 -0
  463. package/locales/flows/ja.json +51 -0
  464. package/locales/flows/ko.json +51 -0
  465. package/locales/flows/mr.json +51 -0
  466. package/locales/flows/ms.json +51 -0
  467. package/locales/flows/nl.json +51 -0
  468. package/locales/flows/pl.json +51 -0
  469. package/locales/flows/pt.json +51 -0
  470. package/locales/flows/ru.json +51 -0
  471. package/locales/flows/sw.json +51 -0
  472. package/locales/flows/ta.json +51 -0
  473. package/locales/flows/te.json +51 -0
  474. package/locales/flows/th.json +51 -0
  475. package/locales/flows/tl.json +51 -0
  476. package/locales/flows/tr.json +51 -0
  477. package/locales/flows/uk.json +51 -0
  478. package/locales/flows/ur.json +51 -0
  479. package/locales/flows/vi.json +51 -0
  480. package/locales/flows/yo.json +51 -0
  481. package/locales/flows/zh-Hans.json +51 -0
  482. package/locales/flows/zh-Hant.json +51 -0
  483. package/locales/folders/am.json +40 -0
  484. package/locales/folders/ar.json +44 -0
  485. package/locales/folders/bn.json +40 -0
  486. package/locales/folders/de.json +40 -0
  487. package/locales/folders/en.json +40 -0
  488. package/locales/folders/es.json +41 -0
  489. package/locales/folders/fa.json +40 -0
  490. package/locales/folders/fr.json +41 -0
  491. package/locales/folders/ha.json +40 -0
  492. package/locales/folders/he.json +41 -0
  493. package/locales/folders/hi.json +40 -0
  494. package/locales/folders/id.json +39 -0
  495. package/locales/folders/it.json +41 -0
  496. package/locales/folders/ja.json +39 -0
  497. package/locales/folders/ko.json +39 -0
  498. package/locales/folders/mr.json +40 -0
  499. package/locales/folders/ms.json +39 -0
  500. package/locales/folders/nl.json +40 -0
  501. package/locales/folders/pl.json +42 -0
  502. package/locales/folders/pt.json +41 -0
  503. package/locales/folders/ru.json +42 -0
  504. package/locales/folders/sw.json +40 -0
  505. package/locales/folders/ta.json +40 -0
  506. package/locales/folders/te.json +40 -0
  507. package/locales/folders/th.json +39 -0
  508. package/locales/folders/tl.json +40 -0
  509. package/locales/folders/tr.json +40 -0
  510. package/locales/folders/uk.json +42 -0
  511. package/locales/folders/ur.json +40 -0
  512. package/locales/folders/vi.json +39 -0
  513. package/locales/folders/yo.json +39 -0
  514. package/locales/folders/zh-Hans.json +39 -0
  515. package/locales/folders/zh-Hant.json +39 -0
  516. package/locales/fr.json +403 -0
  517. package/locales/ha.json +395 -0
  518. package/locales/he.json +410 -0
  519. package/locales/hi.json +395 -0
  520. package/locales/id.json +387 -0
  521. package/locales/interactive/am.json +7 -0
  522. package/locales/interactive/ar.json +7 -0
  523. package/locales/interactive/bn.json +7 -0
  524. package/locales/interactive/de.json +7 -0
  525. package/locales/interactive/en.json +7 -0
  526. package/locales/interactive/es.json +7 -0
  527. package/locales/interactive/fa.json +7 -0
  528. package/locales/interactive/fr.json +7 -0
  529. package/locales/interactive/ha.json +7 -0
  530. package/locales/interactive/he.json +7 -0
  531. package/locales/interactive/hi.json +7 -0
  532. package/locales/interactive/id.json +7 -0
  533. package/locales/interactive/it.json +7 -0
  534. package/locales/interactive/ja.json +7 -0
  535. package/locales/interactive/ko.json +7 -0
  536. package/locales/interactive/mr.json +7 -0
  537. package/locales/interactive/ms.json +7 -0
  538. package/locales/interactive/nl.json +7 -0
  539. package/locales/interactive/pl.json +7 -0
  540. package/locales/interactive/pt.json +7 -0
  541. package/locales/interactive/ru.json +7 -0
  542. package/locales/interactive/sw.json +7 -0
  543. package/locales/interactive/ta.json +7 -0
  544. package/locales/interactive/te.json +7 -0
  545. package/locales/interactive/th.json +7 -0
  546. package/locales/interactive/tl.json +7 -0
  547. package/locales/interactive/tr.json +7 -0
  548. package/locales/interactive/uk.json +7 -0
  549. package/locales/interactive/ur.json +7 -0
  550. package/locales/interactive/vi.json +7 -0
  551. package/locales/interactive/yo.json +7 -0
  552. package/locales/interactive/zh-Hans.json +7 -0
  553. package/locales/interactive/zh-Hant.json +7 -0
  554. package/locales/it.json +403 -0
  555. package/locales/ja.json +387 -0
  556. package/locales/ko.json +387 -0
  557. package/locales/layouts/am.json +9 -0
  558. package/locales/layouts/ar.json +9 -0
  559. package/locales/layouts/bn.json +9 -0
  560. package/locales/layouts/de.json +9 -0
  561. package/locales/layouts/en.json +9 -0
  562. package/locales/layouts/es.json +9 -0
  563. package/locales/layouts/fa.json +9 -0
  564. package/locales/layouts/fr.json +9 -0
  565. package/locales/layouts/ha.json +9 -0
  566. package/locales/layouts/he.json +9 -0
  567. package/locales/layouts/hi.json +9 -0
  568. package/locales/layouts/id.json +9 -0
  569. package/locales/layouts/it.json +9 -0
  570. package/locales/layouts/ja.json +9 -0
  571. package/locales/layouts/ko.json +9 -0
  572. package/locales/layouts/mr.json +9 -0
  573. package/locales/layouts/ms.json +9 -0
  574. package/locales/layouts/nl.json +9 -0
  575. package/locales/layouts/pl.json +9 -0
  576. package/locales/layouts/pt.json +9 -0
  577. package/locales/layouts/ru.json +9 -0
  578. package/locales/layouts/sw.json +9 -0
  579. package/locales/layouts/ta.json +9 -0
  580. package/locales/layouts/te.json +9 -0
  581. package/locales/layouts/th.json +9 -0
  582. package/locales/layouts/tl.json +9 -0
  583. package/locales/layouts/tr.json +9 -0
  584. package/locales/layouts/uk.json +9 -0
  585. package/locales/layouts/ur.json +9 -0
  586. package/locales/layouts/vi.json +9 -0
  587. package/locales/layouts/yo.json +9 -0
  588. package/locales/layouts/zh-Hans.json +9 -0
  589. package/locales/layouts/zh-Hant.json +9 -0
  590. package/locales/lock/am.json +32 -0
  591. package/locales/lock/ar.json +32 -0
  592. package/locales/lock/bn.json +32 -0
  593. package/locales/lock/de.json +32 -0
  594. package/locales/lock/en.json +32 -0
  595. package/locales/lock/es.json +32 -0
  596. package/locales/lock/fa.json +32 -0
  597. package/locales/lock/fr.json +32 -0
  598. package/locales/lock/ha.json +32 -0
  599. package/locales/lock/he.json +32 -0
  600. package/locales/lock/hi.json +32 -0
  601. package/locales/lock/id.json +32 -0
  602. package/locales/lock/it.json +32 -0
  603. package/locales/lock/ja.json +32 -0
  604. package/locales/lock/ko.json +32 -0
  605. package/locales/lock/mr.json +32 -0
  606. package/locales/lock/ms.json +32 -0
  607. package/locales/lock/nl.json +32 -0
  608. package/locales/lock/pl.json +32 -0
  609. package/locales/lock/pt.json +32 -0
  610. package/locales/lock/ru.json +32 -0
  611. package/locales/lock/sw.json +32 -0
  612. package/locales/lock/ta.json +32 -0
  613. package/locales/lock/te.json +32 -0
  614. package/locales/lock/th.json +32 -0
  615. package/locales/lock/tl.json +32 -0
  616. package/locales/lock/tr.json +32 -0
  617. package/locales/lock/uk.json +32 -0
  618. package/locales/lock/ur.json +32 -0
  619. package/locales/lock/vi.json +32 -0
  620. package/locales/lock/yo.json +32 -0
  621. package/locales/lock/zh-Hans.json +32 -0
  622. package/locales/lock/zh-Hant.json +32 -0
  623. package/locales/machine/am.json +19 -0
  624. package/locales/machine/ar.json +19 -0
  625. package/locales/machine/bn.json +19 -0
  626. package/locales/machine/de.json +19 -0
  627. package/locales/machine/en.json +19 -0
  628. package/locales/machine/es.json +19 -0
  629. package/locales/machine/fa.json +19 -0
  630. package/locales/machine/fr.json +19 -0
  631. package/locales/machine/ha.json +19 -0
  632. package/locales/machine/he.json +19 -0
  633. package/locales/machine/hi.json +19 -0
  634. package/locales/machine/id.json +19 -0
  635. package/locales/machine/it.json +19 -0
  636. package/locales/machine/ja.json +19 -0
  637. package/locales/machine/ko.json +19 -0
  638. package/locales/machine/mr.json +19 -0
  639. package/locales/machine/ms.json +19 -0
  640. package/locales/machine/nl.json +19 -0
  641. package/locales/machine/pl.json +19 -0
  642. package/locales/machine/pt.json +19 -0
  643. package/locales/machine/ru.json +19 -0
  644. package/locales/machine/sw.json +19 -0
  645. package/locales/machine/ta.json +19 -0
  646. package/locales/machine/te.json +19 -0
  647. package/locales/machine/th.json +19 -0
  648. package/locales/machine/tl.json +19 -0
  649. package/locales/machine/tr.json +19 -0
  650. package/locales/machine/uk.json +19 -0
  651. package/locales/machine/ur.json +19 -0
  652. package/locales/machine/vi.json +19 -0
  653. package/locales/machine/yo.json +19 -0
  654. package/locales/machine/zh-Hans.json +19 -0
  655. package/locales/machine/zh-Hant.json +19 -0
  656. package/locales/made/am.json +16 -0
  657. package/locales/made/ar.json +16 -0
  658. package/locales/made/bn.json +16 -0
  659. package/locales/made/de.json +16 -0
  660. package/locales/made/en.json +16 -0
  661. package/locales/made/es.json +16 -0
  662. package/locales/made/fa.json +16 -0
  663. package/locales/made/fr.json +16 -0
  664. package/locales/made/ha.json +16 -0
  665. package/locales/made/he.json +16 -0
  666. package/locales/made/hi.json +16 -0
  667. package/locales/made/id.json +16 -0
  668. package/locales/made/it.json +16 -0
  669. package/locales/made/ja.json +16 -0
  670. package/locales/made/ko.json +16 -0
  671. package/locales/made/mr.json +16 -0
  672. package/locales/made/ms.json +16 -0
  673. package/locales/made/nl.json +16 -0
  674. package/locales/made/pl.json +16 -0
  675. package/locales/made/pt.json +16 -0
  676. package/locales/made/ru.json +16 -0
  677. package/locales/made/sw.json +16 -0
  678. package/locales/made/ta.json +16 -0
  679. package/locales/made/te.json +16 -0
  680. package/locales/made/th.json +16 -0
  681. package/locales/made/tl.json +16 -0
  682. package/locales/made/tr.json +16 -0
  683. package/locales/made/uk.json +16 -0
  684. package/locales/made/ur.json +16 -0
  685. package/locales/made/vi.json +16 -0
  686. package/locales/made/yo.json +16 -0
  687. package/locales/made/zh-Hans.json +16 -0
  688. package/locales/made/zh-Hant.json +16 -0
  689. package/locales/mr.json +395 -0
  690. package/locales/ms.json +387 -0
  691. package/locales/nl.json +395 -0
  692. package/locales/notifications/am.json +6 -0
  693. package/locales/notifications/ar.json +6 -0
  694. package/locales/notifications/bn.json +6 -0
  695. package/locales/notifications/de.json +6 -0
  696. package/locales/notifications/en.json +6 -0
  697. package/locales/notifications/es.json +6 -0
  698. package/locales/notifications/fa.json +6 -0
  699. package/locales/notifications/fr.json +6 -0
  700. package/locales/notifications/ha.json +6 -0
  701. package/locales/notifications/he.json +6 -0
  702. package/locales/notifications/hi.json +6 -0
  703. package/locales/notifications/id.json +6 -0
  704. package/locales/notifications/it.json +6 -0
  705. package/locales/notifications/ja.json +6 -0
  706. package/locales/notifications/ko.json +6 -0
  707. package/locales/notifications/mr.json +6 -0
  708. package/locales/notifications/ms.json +6 -0
  709. package/locales/notifications/nl.json +6 -0
  710. package/locales/notifications/pl.json +6 -0
  711. package/locales/notifications/pt.json +6 -0
  712. package/locales/notifications/ru.json +6 -0
  713. package/locales/notifications/sw.json +6 -0
  714. package/locales/notifications/ta.json +6 -0
  715. package/locales/notifications/te.json +6 -0
  716. package/locales/notifications/th.json +6 -0
  717. package/locales/notifications/tl.json +6 -0
  718. package/locales/notifications/tr.json +6 -0
  719. package/locales/notifications/uk.json +6 -0
  720. package/locales/notifications/ur.json +6 -0
  721. package/locales/notifications/vi.json +6 -0
  722. package/locales/notifications/yo.json +6 -0
  723. package/locales/notifications/zh-Hans.json +6 -0
  724. package/locales/notifications/zh-Hant.json +6 -0
  725. package/locales/pictures/am.json +36 -0
  726. package/locales/pictures/ar.json +36 -0
  727. package/locales/pictures/bn.json +36 -0
  728. package/locales/pictures/de.json +36 -0
  729. package/locales/pictures/en.json +36 -0
  730. package/locales/pictures/es.json +36 -0
  731. package/locales/pictures/fa.json +36 -0
  732. package/locales/pictures/fr.json +36 -0
  733. package/locales/pictures/ha.json +36 -0
  734. package/locales/pictures/he.json +36 -0
  735. package/locales/pictures/hi.json +36 -0
  736. package/locales/pictures/id.json +36 -0
  737. package/locales/pictures/it.json +36 -0
  738. package/locales/pictures/ja.json +36 -0
  739. package/locales/pictures/ko.json +36 -0
  740. package/locales/pictures/mr.json +36 -0
  741. package/locales/pictures/ms.json +36 -0
  742. package/locales/pictures/nl.json +36 -0
  743. package/locales/pictures/pl.json +36 -0
  744. package/locales/pictures/pt.json +36 -0
  745. package/locales/pictures/ru.json +36 -0
  746. package/locales/pictures/sw.json +36 -0
  747. package/locales/pictures/ta.json +36 -0
  748. package/locales/pictures/te.json +36 -0
  749. package/locales/pictures/th.json +36 -0
  750. package/locales/pictures/tl.json +36 -0
  751. package/locales/pictures/tr.json +36 -0
  752. package/locales/pictures/uk.json +36 -0
  753. package/locales/pictures/ur.json +36 -0
  754. package/locales/pictures/vi.json +36 -0
  755. package/locales/pictures/yo.json +36 -0
  756. package/locales/pictures/zh-Hans.json +36 -0
  757. package/locales/pictures/zh-Hant.json +36 -0
  758. package/locales/pl.json +411 -0
  759. package/locales/plan/am.json +13 -0
  760. package/locales/plan/ar.json +13 -0
  761. package/locales/plan/bn.json +13 -0
  762. package/locales/plan/de.json +13 -0
  763. package/locales/plan/en.json +13 -0
  764. package/locales/plan/es.json +13 -0
  765. package/locales/plan/fa.json +13 -0
  766. package/locales/plan/fr.json +13 -0
  767. package/locales/plan/ha.json +13 -0
  768. package/locales/plan/he.json +13 -0
  769. package/locales/plan/hi.json +13 -0
  770. package/locales/plan/id.json +13 -0
  771. package/locales/plan/it.json +13 -0
  772. package/locales/plan/ja.json +13 -0
  773. package/locales/plan/ko.json +13 -0
  774. package/locales/plan/mr.json +13 -0
  775. package/locales/plan/ms.json +13 -0
  776. package/locales/plan/nl.json +13 -0
  777. package/locales/plan/pl.json +13 -0
  778. package/locales/plan/pt.json +13 -0
  779. package/locales/plan/ru.json +13 -0
  780. package/locales/plan/sw.json +13 -0
  781. package/locales/plan/ta.json +13 -0
  782. package/locales/plan/te.json +13 -0
  783. package/locales/plan/th.json +13 -0
  784. package/locales/plan/tl.json +13 -0
  785. package/locales/plan/tr.json +13 -0
  786. package/locales/plan/uk.json +13 -0
  787. package/locales/plan/ur.json +13 -0
  788. package/locales/plan/vi.json +13 -0
  789. package/locales/plan/yo.json +13 -0
  790. package/locales/plan/zh-Hans.json +13 -0
  791. package/locales/plan/zh-Hant.json +13 -0
  792. package/locales/plugins/am.json +40 -0
  793. package/locales/plugins/ar.json +40 -0
  794. package/locales/plugins/bn.json +40 -0
  795. package/locales/plugins/de.json +40 -0
  796. package/locales/plugins/en.json +40 -0
  797. package/locales/plugins/es.json +40 -0
  798. package/locales/plugins/fa.json +40 -0
  799. package/locales/plugins/fr.json +40 -0
  800. package/locales/plugins/ha.json +40 -0
  801. package/locales/plugins/he.json +40 -0
  802. package/locales/plugins/hi.json +40 -0
  803. package/locales/plugins/id.json +40 -0
  804. package/locales/plugins/it.json +40 -0
  805. package/locales/plugins/ja.json +40 -0
  806. package/locales/plugins/ko.json +40 -0
  807. package/locales/plugins/mr.json +40 -0
  808. package/locales/plugins/ms.json +40 -0
  809. package/locales/plugins/nl.json +40 -0
  810. package/locales/plugins/pl.json +40 -0
  811. package/locales/plugins/pt.json +40 -0
  812. package/locales/plugins/ru.json +40 -0
  813. package/locales/plugins/sw.json +40 -0
  814. package/locales/plugins/ta.json +40 -0
  815. package/locales/plugins/te.json +40 -0
  816. package/locales/plugins/th.json +40 -0
  817. package/locales/plugins/tl.json +40 -0
  818. package/locales/plugins/tr.json +40 -0
  819. package/locales/plugins/uk.json +40 -0
  820. package/locales/plugins/ur.json +40 -0
  821. package/locales/plugins/vi.json +40 -0
  822. package/locales/plugins/yo.json +40 -0
  823. package/locales/plugins/zh-Hans.json +40 -0
  824. package/locales/plugins/zh-Hant.json +40 -0
  825. package/locales/policy/am.json +39 -0
  826. package/locales/policy/ar.json +39 -0
  827. package/locales/policy/bn.json +39 -0
  828. package/locales/policy/de.json +39 -0
  829. package/locales/policy/en.json +39 -0
  830. package/locales/policy/es.json +39 -0
  831. package/locales/policy/fa.json +39 -0
  832. package/locales/policy/fr.json +39 -0
  833. package/locales/policy/ha.json +39 -0
  834. package/locales/policy/he.json +39 -0
  835. package/locales/policy/hi.json +39 -0
  836. package/locales/policy/id.json +39 -0
  837. package/locales/policy/it.json +39 -0
  838. package/locales/policy/ja.json +39 -0
  839. package/locales/policy/ko.json +39 -0
  840. package/locales/policy/mr.json +39 -0
  841. package/locales/policy/ms.json +39 -0
  842. package/locales/policy/nl.json +39 -0
  843. package/locales/policy/pl.json +39 -0
  844. package/locales/policy/pt.json +39 -0
  845. package/locales/policy/ru.json +39 -0
  846. package/locales/policy/sw.json +39 -0
  847. package/locales/policy/ta.json +39 -0
  848. package/locales/policy/te.json +39 -0
  849. package/locales/policy/th.json +39 -0
  850. package/locales/policy/tl.json +39 -0
  851. package/locales/policy/tr.json +39 -0
  852. package/locales/policy/uk.json +39 -0
  853. package/locales/policy/ur.json +39 -0
  854. package/locales/policy/vi.json +39 -0
  855. package/locales/policy/yo.json +39 -0
  856. package/locales/policy/zh-Hans.json +39 -0
  857. package/locales/policy/zh-Hant.json +39 -0
  858. package/locales/profiles/am.json +59 -0
  859. package/locales/profiles/ar.json +59 -0
  860. package/locales/profiles/bn.json +59 -0
  861. package/locales/profiles/de.json +59 -0
  862. package/locales/profiles/en.json +59 -0
  863. package/locales/profiles/es.json +59 -0
  864. package/locales/profiles/fa.json +59 -0
  865. package/locales/profiles/fr.json +59 -0
  866. package/locales/profiles/ha.json +59 -0
  867. package/locales/profiles/he.json +59 -0
  868. package/locales/profiles/hi.json +59 -0
  869. package/locales/profiles/id.json +59 -0
  870. package/locales/profiles/it.json +59 -0
  871. package/locales/profiles/ja.json +59 -0
  872. package/locales/profiles/ko.json +59 -0
  873. package/locales/profiles/mr.json +59 -0
  874. package/locales/profiles/ms.json +59 -0
  875. package/locales/profiles/nl.json +59 -0
  876. package/locales/profiles/pl.json +59 -0
  877. package/locales/profiles/pt.json +59 -0
  878. package/locales/profiles/ru.json +59 -0
  879. package/locales/profiles/sw.json +59 -0
  880. package/locales/profiles/ta.json +59 -0
  881. package/locales/profiles/te.json +59 -0
  882. package/locales/profiles/th.json +59 -0
  883. package/locales/profiles/tl.json +59 -0
  884. package/locales/profiles/tr.json +59 -0
  885. package/locales/profiles/uk.json +59 -0
  886. package/locales/profiles/ur.json +59 -0
  887. package/locales/profiles/vi.json +59 -0
  888. package/locales/profiles/yo.json +59 -0
  889. package/locales/profiles/zh-Hans.json +59 -0
  890. package/locales/profiles/zh-Hant.json +59 -0
  891. package/locales/pt.json +403 -0
  892. package/locales/receipt/am.json +39 -0
  893. package/locales/receipt/ar.json +39 -0
  894. package/locales/receipt/bn.json +39 -0
  895. package/locales/receipt/de.json +39 -0
  896. package/locales/receipt/en.json +39 -0
  897. package/locales/receipt/es.json +39 -0
  898. package/locales/receipt/fa.json +39 -0
  899. package/locales/receipt/fr.json +39 -0
  900. package/locales/receipt/ha.json +39 -0
  901. package/locales/receipt/he.json +39 -0
  902. package/locales/receipt/hi.json +39 -0
  903. package/locales/receipt/id.json +39 -0
  904. package/locales/receipt/it.json +39 -0
  905. package/locales/receipt/ja.json +39 -0
  906. package/locales/receipt/ko.json +39 -0
  907. package/locales/receipt/mr.json +39 -0
  908. package/locales/receipt/ms.json +39 -0
  909. package/locales/receipt/nl.json +39 -0
  910. package/locales/receipt/pl.json +39 -0
  911. package/locales/receipt/pt.json +39 -0
  912. package/locales/receipt/ru.json +39 -0
  913. package/locales/receipt/sw.json +39 -0
  914. package/locales/receipt/ta.json +39 -0
  915. package/locales/receipt/te.json +39 -0
  916. package/locales/receipt/th.json +39 -0
  917. package/locales/receipt/tl.json +39 -0
  918. package/locales/receipt/tr.json +39 -0
  919. package/locales/receipt/uk.json +39 -0
  920. package/locales/receipt/ur.json +39 -0
  921. package/locales/receipt/vi.json +39 -0
  922. package/locales/receipt/yo.json +39 -0
  923. package/locales/receipt/zh-Hans.json +39 -0
  924. package/locales/receipt/zh-Hant.json +39 -0
  925. package/locales/ru.json +411 -0
  926. package/locales/scores/am.json +8 -0
  927. package/locales/scores/ar.json +8 -0
  928. package/locales/scores/bn.json +8 -0
  929. package/locales/scores/de.json +8 -0
  930. package/locales/scores/en.json +8 -0
  931. package/locales/scores/es.json +8 -0
  932. package/locales/scores/fa.json +8 -0
  933. package/locales/scores/fr.json +8 -0
  934. package/locales/scores/ha.json +8 -0
  935. package/locales/scores/he.json +8 -0
  936. package/locales/scores/hi.json +8 -0
  937. package/locales/scores/id.json +8 -0
  938. package/locales/scores/it.json +8 -0
  939. package/locales/scores/ja.json +8 -0
  940. package/locales/scores/ko.json +8 -0
  941. package/locales/scores/mr.json +8 -0
  942. package/locales/scores/ms.json +8 -0
  943. package/locales/scores/nl.json +8 -0
  944. package/locales/scores/pl.json +8 -0
  945. package/locales/scores/pt.json +8 -0
  946. package/locales/scores/ru.json +8 -0
  947. package/locales/scores/sw.json +8 -0
  948. package/locales/scores/ta.json +8 -0
  949. package/locales/scores/te.json +8 -0
  950. package/locales/scores/th.json +8 -0
  951. package/locales/scores/tl.json +8 -0
  952. package/locales/scores/tr.json +8 -0
  953. package/locales/scores/uk.json +8 -0
  954. package/locales/scores/ur.json +8 -0
  955. package/locales/scores/vi.json +8 -0
  956. package/locales/scores/yo.json +8 -0
  957. package/locales/scores/zh-Hans.json +8 -0
  958. package/locales/scores/zh-Hant.json +8 -0
  959. package/locales/search/am.json +26 -0
  960. package/locales/search/ar.json +34 -0
  961. package/locales/search/bn.json +26 -0
  962. package/locales/search/de.json +26 -0
  963. package/locales/search/en.json +26 -0
  964. package/locales/search/es.json +28 -0
  965. package/locales/search/fa.json +26 -0
  966. package/locales/search/fr.json +28 -0
  967. package/locales/search/ha.json +26 -0
  968. package/locales/search/he.json +30 -0
  969. package/locales/search/hi.json +26 -0
  970. package/locales/search/id.json +24 -0
  971. package/locales/search/it.json +28 -0
  972. package/locales/search/ja.json +24 -0
  973. package/locales/search/ko.json +24 -0
  974. package/locales/search/mr.json +26 -0
  975. package/locales/search/ms.json +24 -0
  976. package/locales/search/nl.json +26 -0
  977. package/locales/search/pl.json +30 -0
  978. package/locales/search/pt.json +28 -0
  979. package/locales/search/ru.json +30 -0
  980. package/locales/search/sw.json +26 -0
  981. package/locales/search/ta.json +26 -0
  982. package/locales/search/te.json +26 -0
  983. package/locales/search/th.json +24 -0
  984. package/locales/search/tl.json +26 -0
  985. package/locales/search/tr.json +26 -0
  986. package/locales/search/uk.json +30 -0
  987. package/locales/search/ur.json +26 -0
  988. package/locales/search/vi.json +24 -0
  989. package/locales/search/yo.json +24 -0
  990. package/locales/search/zh-Hans.json +24 -0
  991. package/locales/search/zh-Hant.json +24 -0
  992. package/locales/share/am.json +61 -0
  993. package/locales/share/ar.json +65 -0
  994. package/locales/share/bn.json +61 -0
  995. package/locales/share/de.json +61 -0
  996. package/locales/share/en.json +61 -0
  997. package/locales/share/es.json +62 -0
  998. package/locales/share/fa.json +61 -0
  999. package/locales/share/fr.json +62 -0
  1000. package/locales/share/ha.json +61 -0
  1001. package/locales/share/he.json +62 -0
  1002. package/locales/share/hi.json +61 -0
  1003. package/locales/share/id.json +60 -0
  1004. package/locales/share/it.json +62 -0
  1005. package/locales/share/ja.json +60 -0
  1006. package/locales/share/ko.json +60 -0
  1007. package/locales/share/mr.json +61 -0
  1008. package/locales/share/ms.json +60 -0
  1009. package/locales/share/nl.json +61 -0
  1010. package/locales/share/pl.json +63 -0
  1011. package/locales/share/pt.json +62 -0
  1012. package/locales/share/ru.json +63 -0
  1013. package/locales/share/sw.json +61 -0
  1014. package/locales/share/ta.json +61 -0
  1015. package/locales/share/te.json +61 -0
  1016. package/locales/share/th.json +60 -0
  1017. package/locales/share/tl.json +61 -0
  1018. package/locales/share/tr.json +61 -0
  1019. package/locales/share/uk.json +63 -0
  1020. package/locales/share/ur.json +61 -0
  1021. package/locales/share/vi.json +60 -0
  1022. package/locales/share/yo.json +60 -0
  1023. package/locales/share/zh-Hans.json +60 -0
  1024. package/locales/share/zh-Hant.json +60 -0
  1025. package/locales/signin/am.json +6 -0
  1026. package/locales/signin/ar.json +6 -0
  1027. package/locales/signin/bn.json +6 -0
  1028. package/locales/signin/de.json +6 -0
  1029. package/locales/signin/en.json +6 -0
  1030. package/locales/signin/es.json +6 -0
  1031. package/locales/signin/fa.json +6 -0
  1032. package/locales/signin/fr.json +6 -0
  1033. package/locales/signin/ha.json +6 -0
  1034. package/locales/signin/he.json +6 -0
  1035. package/locales/signin/hi.json +6 -0
  1036. package/locales/signin/id.json +6 -0
  1037. package/locales/signin/it.json +6 -0
  1038. package/locales/signin/ja.json +6 -0
  1039. package/locales/signin/ko.json +6 -0
  1040. package/locales/signin/mr.json +6 -0
  1041. package/locales/signin/ms.json +6 -0
  1042. package/locales/signin/nl.json +6 -0
  1043. package/locales/signin/pl.json +6 -0
  1044. package/locales/signin/pt.json +6 -0
  1045. package/locales/signin/ru.json +6 -0
  1046. package/locales/signin/sw.json +6 -0
  1047. package/locales/signin/ta.json +6 -0
  1048. package/locales/signin/te.json +6 -0
  1049. package/locales/signin/th.json +6 -0
  1050. package/locales/signin/tl.json +6 -0
  1051. package/locales/signin/tr.json +6 -0
  1052. package/locales/signin/uk.json +6 -0
  1053. package/locales/signin/ur.json +6 -0
  1054. package/locales/signin/vi.json +6 -0
  1055. package/locales/signin/yo.json +6 -0
  1056. package/locales/signin/zh-Hans.json +6 -0
  1057. package/locales/signin/zh-Hant.json +6 -0
  1058. package/locales/slides/am.json +10 -0
  1059. package/locales/slides/ar.json +10 -0
  1060. package/locales/slides/bn.json +10 -0
  1061. package/locales/slides/de.json +10 -0
  1062. package/locales/slides/en.json +10 -0
  1063. package/locales/slides/es.json +10 -0
  1064. package/locales/slides/fa.json +10 -0
  1065. package/locales/slides/fr.json +10 -0
  1066. package/locales/slides/ha.json +10 -0
  1067. package/locales/slides/he.json +10 -0
  1068. package/locales/slides/hi.json +10 -0
  1069. package/locales/slides/id.json +10 -0
  1070. package/locales/slides/it.json +10 -0
  1071. package/locales/slides/ja.json +10 -0
  1072. package/locales/slides/ko.json +10 -0
  1073. package/locales/slides/mr.json +10 -0
  1074. package/locales/slides/ms.json +10 -0
  1075. package/locales/slides/nl.json +10 -0
  1076. package/locales/slides/pl.json +10 -0
  1077. package/locales/slides/pt.json +10 -0
  1078. package/locales/slides/ru.json +10 -0
  1079. package/locales/slides/sw.json +10 -0
  1080. package/locales/slides/ta.json +10 -0
  1081. package/locales/slides/te.json +10 -0
  1082. package/locales/slides/th.json +10 -0
  1083. package/locales/slides/tl.json +10 -0
  1084. package/locales/slides/tr.json +10 -0
  1085. package/locales/slides/uk.json +10 -0
  1086. package/locales/slides/ur.json +10 -0
  1087. package/locales/slides/vi.json +10 -0
  1088. package/locales/slides/yo.json +10 -0
  1089. package/locales/slides/zh-Hans.json +10 -0
  1090. package/locales/slides/zh-Hant.json +10 -0
  1091. package/locales/sw.json +395 -0
  1092. package/locales/sync/am.json +13 -0
  1093. package/locales/sync/ar.json +13 -0
  1094. package/locales/sync/bn.json +13 -0
  1095. package/locales/sync/de.json +13 -0
  1096. package/locales/sync/en.json +13 -0
  1097. package/locales/sync/es.json +13 -0
  1098. package/locales/sync/fa.json +13 -0
  1099. package/locales/sync/fr.json +13 -0
  1100. package/locales/sync/ha.json +13 -0
  1101. package/locales/sync/he.json +13 -0
  1102. package/locales/sync/hi.json +13 -0
  1103. package/locales/sync/id.json +13 -0
  1104. package/locales/sync/it.json +13 -0
  1105. package/locales/sync/ja.json +13 -0
  1106. package/locales/sync/ko.json +13 -0
  1107. package/locales/sync/mr.json +13 -0
  1108. package/locales/sync/ms.json +13 -0
  1109. package/locales/sync/nl.json +13 -0
  1110. package/locales/sync/pl.json +13 -0
  1111. package/locales/sync/pt.json +13 -0
  1112. package/locales/sync/ru.json +13 -0
  1113. package/locales/sync/sw.json +13 -0
  1114. package/locales/sync/ta.json +13 -0
  1115. package/locales/sync/te.json +13 -0
  1116. package/locales/sync/th.json +13 -0
  1117. package/locales/sync/tl.json +13 -0
  1118. package/locales/sync/tr.json +13 -0
  1119. package/locales/sync/uk.json +13 -0
  1120. package/locales/sync/ur.json +13 -0
  1121. package/locales/sync/vi.json +13 -0
  1122. package/locales/sync/yo.json +13 -0
  1123. package/locales/sync/zh-Hans.json +13 -0
  1124. package/locales/sync/zh-Hant.json +13 -0
  1125. package/locales/ta.json +395 -0
  1126. package/locales/te.json +395 -0
  1127. package/locales/th.json +387 -0
  1128. package/locales/tl.json +395 -0
  1129. package/locales/tr.json +395 -0
  1130. package/locales/uk.json +411 -0
  1131. package/locales/ur.json +395 -0
  1132. package/locales/vi.json +387 -0
  1133. package/locales/yo.json +387 -0
  1134. package/locales/zh-Hans.json +387 -0
  1135. package/locales/zh-Hant.json +387 -0
  1136. package/package.json +9 -4
  1137. package/preview.html +75 -0
  1138. package/ui/caps.js +148 -0
  1139. package/ui/csp.js +82 -0
  1140. package/ui/export.js +214 -0
  1141. package/ui/icons.js +31 -0
  1142. package/ui/looks/blueprint.css +72 -0
  1143. package/ui/looks/classic.css +105 -0
  1144. package/ui/looks/fjord.css +56 -0
  1145. package/ui/looks/human.css +232 -0
  1146. package/ui/looks/mail.css +61 -0
  1147. package/ui/looks/minimal.css +62 -0
  1148. package/ui/looks/mondrian.css +90 -0
  1149. package/ui/looks/neon.css +100 -0
  1150. package/ui/looks/notebook.css +82 -0
  1151. package/ui/looks/paper.css +51 -0
  1152. package/ui/looks/swiss.css +64 -0
  1153. package/ui/looks/terminal.css +84 -0
  1154. package/ui/looks/tilde.css +61 -0
  1155. package/ui/looks/velvet.css +61 -0
  1156. package/ui/markdown.js +188 -0
  1157. package/ui/menu-icons.js +66 -0
  1158. package/ui/model.js +74 -0
  1159. package/ui/reader-state.js +38 -0
  1160. package/ui/reader.js +68 -0
  1161. package/ui/save.js +53 -0
  1162. package/ui/sheet.js +13 -0
  1163. package/ui/style.css +814 -0
  1164. package/ui/trusted.js +13 -0
  1165. package/ui/weights.js +37 -0
  1166. package/vendor/LICENSES/abcjs.txt +21 -0
  1167. package/vendor/LICENSES/base64-js.txt +21 -0
  1168. package/vendor/LICENSES/buffer.txt +21 -0
  1169. package/vendor/LICENSES/diff.txt +29 -0
  1170. package/vendor/LICENSES/echarts.txt +229 -0
  1171. package/vendor/LICENSES/fflate.txt +21 -0
  1172. package/vendor/LICENSES/huggingface-transformers.txt +202 -0
  1173. package/vendor/LICENSES/ieee754.txt +11 -0
  1174. package/vendor/LICENSES/jean-is-sounds.txt +92 -0
  1175. package/vendor/LICENSES/jitl-quickjs-ffi-types.txt +21 -0
  1176. package/vendor/LICENSES/jitl-quickjs-wasmfile-release-sync.txt +47 -0
  1177. package/vendor/LICENSES/just-bash.txt +201 -0
  1178. package/vendor/LICENSES/lit-html.txt +28 -0
  1179. package/vendor/LICENSES/maplibre-gl.txt +2 -0
  1180. package/vendor/LICENSES/marked.txt +44 -0
  1181. package/vendor/LICENSES/onnxruntime-web.txt +2 -0
  1182. package/vendor/LICENSES/pdfjs-dist.txt +177 -0
  1183. package/vendor/LICENSES/preact-signals-core.txt +21 -0
  1184. package/vendor/LICENSES/pyodide.txt +2 -0
  1185. package/vendor/LICENSES/quickjs-emscripten-core.txt +21 -0
  1186. package/vendor/LICENSES/silurus-ooxml.txt +21 -0
  1187. package/vendor/LICENSES/spessasynth_core.txt +202 -0
  1188. package/vendor/LICENSES/sprintf-js.txt +24 -0
  1189. package/vendor/LICENSES/stb-vorbis.txt +202 -0
  1190. package/vendor/LICENSES/temml.txt +21 -0
  1191. package/vendor/LICENSES/turndown.txt +21 -0
  1192. package/vendor/LICENSES/zrender.txt +29 -0
  1193. package/vendor/abcjs/abcjs.mjs +6 -0
  1194. package/vendor/echarts/echarts.mjs +45 -0
  1195. package/vendor/lit-html/async-directive.js +6 -0
  1196. package/vendor/lit-html/directive-helpers.js +6 -0
  1197. package/vendor/lit-html/directive.js +6 -0
  1198. package/vendor/lit-html/directives/ref.js +6 -0
  1199. package/vendor/lit-html/lit-html.js +6 -0
  1200. package/vendor/maplibre/maplibre-gl-worker.js +9 -0
  1201. package/vendor/maplibre/maplibre-gl.css +1 -0
  1202. package/vendor/maplibre/maplibre-gl.mjs +818 -0
  1203. package/vendor/marked.esm.js +79 -0
  1204. package/vendor/signals-core.mjs +1 -0
  1205. package/vendor/spessasynth/spessasynth.mjs +20764 -0
  1206. package/vendor/spessasynth/stb-vorbis.mjs +1 -0
  1207. package/vendor/temml/Temml.woff2 +0 -0
  1208. package/vendor/temml/temml.css +372 -0
  1209. package/vendor/temml/temml.mjs +2 -0
@@ -0,0 +1,179 @@
1
+ /* Layouts (D215): an answer's comparisons, steps and notes, as ui/markdown.js tells them apart. */
2
+
3
+ /* Room to spread: in the conversation, a table of three columns or more takes the room it needs beside
4
+ the text, up to 70rem, centred on it, never narrower than the text; one that needs more scrolls, its
5
+ words and numbers whole, as on a phone. --shell is the conversation's width, read on main, whose own
6
+ width is the text's. On screen alone: printed, main is as wide as what it holds, which a container can't be. */
7
+ @property --shell { syntax: '<length>'; inherits: true; initial-value: 0px; }
8
+ @media screen {
9
+ app-shell, main { container-type: inline-size; }
10
+ main { --shell: 100cqi; }
11
+ main .prose > .table:where(:has(th:nth-child(3))) { --wide: max(100cqi, min(var(--shell) - 2.5rem, 70rem)); margin-inline: calc((100cqi - var(--wide)) / 2); }
12
+ main .prose > .table:where(:has(th:nth-child(3))) > table { inline-size: max-content; min-inline-size: 100cqi; max-inline-size: 100%; margin-inline: auto; overflow-wrap: break-word; }
13
+ }
14
+ /* A head that stays (D426): in the conversation, a table that fits (data-whole, as layouts.js tells)
15
+ keeps its head in view under the bar (--stick, its height) while its rows scroll by; one wider scrolls
16
+ sideways, its head with it. The head's ground is opaque and reaches up to the room's top, so that rows
17
+ gone by show neither through it nor above it, and the table clips it, so that it never hides what
18
+ comes before. Every table's cells draw their own rules, which a collapsed table would leave behind. */
19
+ @media screen {
20
+ .prose .table:not(.is-compare) > table { border-collapse: separate; border-spacing: 0; }
21
+ main .prose .table[data-whole] { overflow: clip; }
22
+ :where(main .prose .table[data-whole]) th { --above: 0 calc(-1 * var(--stick, 0px)) var(--room), 0 calc(var(--stick, 0px) / -2) var(--room); position: sticky; z-index: 1; inset-block-start: var(--stick, 0px); background-color: var(--room); box-shadow: var(--above); }
23
+ main .prose .is-compare[data-whole] th:not(:first-child) { background: color-mix(in srgb, var(--ink) 4.5%, var(--room)); }
24
+ }
25
+
26
+ /* A comparison: each option a card, side by side, its criteria down the start, in line with the
27
+ answer's text; the best of each row lit, the recommended option framed, under its badge. */
28
+ .prose .is-compare { --card: calc(var(--radius) * 0.6); --gap: 0.5rem; --pad: 0.9rem; margin-inline: calc(var(--gap) * -1); }
29
+ /* Its cards' outer spacing reaches past the text, so that their edges are in line with it. It is as wide
30
+ as the text, or, when its options say much (is-roomy), as the room beside it; there, its options are
31
+ cards of one width, the criteria taking 7 to 12rem, and on a phone each column as wide as it holds. */
32
+ @media screen {
33
+ main .prose > .is-compare { margin-inline: calc((100cqi - var(--wide)) / 2 - var(--gap)); }
34
+ main .prose > .is-compare > table { inline-size: calc(100cqi + 2 * var(--gap)); min-inline-size: 0; }
35
+ main .prose > .is-compare.is-roomy > table { inline-size: 100%; }
36
+ }
37
+ @container (width >= 34rem) {
38
+ main .prose > .is-compare > table { table-layout: fixed; }
39
+ main .prose > .is-compare th:first-child { inline-size: clamp(7rem, 22cqi, 12rem); }
40
+ .prose .is-compare th.is-pick::before { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
41
+ }
42
+ .prose .is-compare table { border-collapse: separate; border-spacing: var(--gap) 0; overflow-wrap: break-word; }
43
+ .prose .is-compare :is(th, td) { padding: 0.6rem var(--pad); vertical-align: top; }
44
+ .prose .is-compare :is(th, td):first-child { padding-inline: 0 0.25rem; color: var(--ink-soft); font-weight: 500; }
45
+ .prose .is-compare :is(th, td):not(:first-child) { background: oklch(from var(--ink) l c h / 0.045); }
46
+ .prose .is-compare th { vertical-align: bottom; padding-block: 0.9rem 0.7rem; border-block-end-color: var(--line); font-size: 1.05rem; font-weight: 650; }
47
+ .prose .is-compare th:not(:first-child) { border-start-start-radius: var(--card); border-start-end-radius: var(--card); }
48
+ .prose .is-compare tr:last-child td { padding-block-end: 0.9rem; }
49
+ .prose .is-compare tr:last-child td:not(:first-child) { border-end-start-radius: var(--card); border-end-end-radius: var(--card); }
50
+ .prose .is-compare td.is-best { background: oklch(from var(--flame) l c h / 0.16); }
51
+ .prose .is-compare .is-yes { --tone: oklch(from var(--flame) l max(c, 0.12) 150); color: var(--tone); }
52
+ .prose .is-compare .is-no { color: var(--ink-soft); }
53
+ /* The frame is drawn inside each cell, the line under it too, so that nothing breaks it. */
54
+ .prose .is-compare .is-pick { --edge: inset 2px 0 var(--flame), inset -2px 0 var(--flame); border-block-end: 0; box-shadow: var(--edge), inset 0 -1px var(--line); }
55
+ .prose .is-compare th.is-pick { box-shadow: var(--edge), inset 0 2px var(--flame), inset 0 -1px var(--line), var(--above, 0 0 #0000); }
56
+ .prose .is-compare tbody tr:last-child .is-pick { box-shadow: var(--edge), inset 0 -2px var(--flame); }
57
+ .prose .is-compare th.is-pick::before {
58
+ content: attr(data-pick);
59
+ display: block;
60
+ inline-size: fit-content;
61
+ margin-block-end: 0.45rem;
62
+ padding: 0 0.55rem;
63
+ border-radius: 1rem;
64
+ background: var(--flame);
65
+ color: var(--on-flame);
66
+ font-size: 0.75rem;
67
+ font-weight: 600;
68
+ line-height: 1.6;
69
+ }
70
+ /* An option's picture, at the head of its card above its name (D35): as tall in every card, whole, on
71
+ white, as shops show what they sell, so that a photo on white and a cut-out look alike. */
72
+ .prose .is-compare th .picture { --tall: 7rem; box-sizing: border-box; inline-size: 100%; block-size: var(--tall); max-block-size: none; margin-block: 0 0.6rem; padding: 0.35rem; background: white; }
73
+ .prose .is-compare th app-shared.picture img { inline-size: 100%; block-size: 100%; }
74
+ /* In a narrow column, as on a phone, the cards draw closer and the criteria get smaller, so that three fit. */
75
+ @container (width < 34rem) {
76
+ .prose .is-compare table { --gap: 0.3rem; --pad: 0.55rem; font-size: 0.88rem; }
77
+ .prose .is-compare th { font-size: 0.95rem; }
78
+ .prose .is-compare :is(th, td):first-child { font-size: 0.8rem; }
79
+ .prose .is-compare th.is-pick::before { font-size: 0.68rem; }
80
+ .prose .is-compare th .picture { --tall: 4.5rem; padding: 0.2rem; }
81
+ }
82
+
83
+ /* Steps: each number in a ring, a line down to the next, its bold start a title on a line of its own. */
84
+ .prose ol.steps { padding: 0; list-style: none; }
85
+ .prose .steps > li { position: relative; padding-inline-start: 2.6rem; padding-block-end: 0.75rem; }
86
+ .prose .steps > li + li { margin-block-start: 0; }
87
+ .prose .steps > li::before {
88
+ content: counter(list-item);
89
+ position: absolute;
90
+ inset-inline-start: 0;
91
+ inset-block-start: 0.05rem;
92
+ display: grid;
93
+ place-items: center;
94
+ inline-size: 1.7rem;
95
+ block-size: 1.7rem;
96
+ border-radius: 50%;
97
+ background: oklch(from var(--flame) l c h / 0.12);
98
+ box-shadow: inset 0 0 0 1.5px oklch(from var(--flame) l c h / 0.55);
99
+ color: var(--flame);
100
+ font-size: 0.85rem;
101
+ font-weight: 650;
102
+ font-variant-numeric: tabular-nums;
103
+ line-height: 1;
104
+ }
105
+ .prose .steps > li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: calc(0.85rem - 0.75px); inset-block: 2.1rem 0.3rem; border-inline-start: 1.5px solid var(--line-strong); }
106
+ .prose .steps > li > :is(p, ul, ol) { margin-block-end: 0.4rem; }
107
+ .prose .steps > li > :last-child { margin-block-end: 0; }
108
+ .prose .steps :is(li, p) > strong:has(+ .end) { display: block; }
109
+ .prose .steps .end { display: none; }
110
+
111
+ /* Notes: their colour from a GitHub alert's kind, or from the emoji a quote starts with. */
112
+ .prose .callout {
113
+ --tone: oklch(from var(--flame) l max(c, 0.1) 250);
114
+ padding: 0.75rem 1rem;
115
+ border-inline-start: 3px solid var(--tone);
116
+ border-start-end-radius: calc(var(--radius) * 0.5);
117
+ border-end-end-radius: calc(var(--radius) * 0.5);
118
+ background: oklch(from var(--tone) l c h / 0.09);
119
+ color: var(--ink);
120
+ }
121
+ .prose .callout > :last-child { margin-block-end: 0; }
122
+ .prose .callout.is-tip { --tone: oklch(from var(--flame) l max(c, 0.1) 150); }
123
+ .prose .callout.is-important { --tone: oklch(from var(--flame) l max(c, 0.1) 300); }
124
+ .prose .callout.is-warning { --tone: oklch(from var(--flame) l max(c, 0.1) 75); }
125
+ .prose .callout.is-caution { --tone: var(--danger); }
126
+ .prose .callout-title { display: flex; align-items: center; gap: 0.45rem; margin-block-end: 0.3rem; color: var(--tone); font-weight: 650; }
127
+ /* By day a tone keeps its hue, but no more lightness than reads at AA on any look's paper and in the light (test/contrast.spec.js). */
128
+ [data-theme='light'] .prose :is(.callout-title, .is-compare .is-yes) { color: oklch(from var(--tone) min(l, 0.45) c h); }
129
+ .prose .callout-title::before { content: ''; flex: none; inline-size: 1.1em; block-size: 1.1em; background: currentColor; mask: var(--icon) center / contain no-repeat; }
130
+ .prose .is-note { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/></svg>"); }
131
+ .prose .is-tip { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.7.5 1.1 1.3 1.1 2.1h5c0-.8.4-1.6 1.1-2.1A6 6 0 0 0 12 3z'/></svg>"); }
132
+ .prose .is-important { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16v12H9l-5 4z'/><path d='M12 7.5v3.5M12 13.5h.01'/></svg>"); }
133
+ .prose .is-warning { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5 2.5 20h19z'/><path d='M12 10v4M12 17h.01'/></svg>"); }
134
+ .prose .is-caution { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3h8l5 5v8l-5 5H8l-5-5V8z'/><path d='M12 8v5M12 16h.01'/></svg>"); }
135
+
136
+ /* A timeline (D291): the times in a column of their own, each on a dot of a line that runs down beside what happens. */
137
+ .prose ol.timeline { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.1rem; padding: 0; list-style: none; }
138
+ .prose .timeline > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; margin: 0; }
139
+ .prose .timeline time { padding-block: 0.1rem; color: var(--flame); font-weight: 650; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
140
+ .prose .timeline > li > div { position: relative; padding-block: 0.1rem 0.9rem; padding-inline-start: 1.1rem; border-inline-start: 1.5px solid var(--line-strong); }
141
+ .prose .timeline > li:last-child > div { border-color: transparent; padding-block-end: 0; }
142
+ .prose .timeline > li > div::before { content: ''; position: absolute; inset-inline-start: calc(-0.35rem - 0.75px); inset-block-start: 0.5rem; inline-size: 0.7rem; block-size: 0.7rem; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 3px oklch(from var(--flame) l c h / 0.2); }
143
+ .prose .timeline > li > div > :last-child { margin-block-end: 0; }
144
+
145
+ /* Key figures (D291): each number large, in the display face, its words under it, on cards side by side. */
146
+ .prose ul.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.6rem; padding: 0; list-style: none; }
147
+ .prose .figures > li { display: grid; gap: 0.3rem; align-content: start; margin: 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); background: linear-gradient(160deg, oklch(from var(--flame) l c h / 0.1), transparent 65%); }
148
+ .prose .figures strong { color: var(--ink); font: 400 clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem) / 1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
149
+ :is(:lang(ar), :lang(ja)) .prose .figures strong { font-family: var(--sans); font-weight: 600; }
150
+ .prose .figures span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }
151
+
152
+ /* A checklist (D291): how many are done, on a bar, then each thing to do, struck through once ticked. */
153
+ .prose .checklist-count { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 0.35rem; color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
154
+ .prose .checklist progress { flex: 1; max-inline-size: 12rem; block-size: 0.35rem; border: 0; border-radius: 1rem; background: var(--line); appearance: none; overflow: hidden; }
155
+ .prose .checklist progress::-webkit-progress-bar { background: var(--line); }
156
+ .prose .checklist progress::-webkit-progress-value { background: var(--flame); transition: inline-size 0.3s var(--ease); }
157
+ .prose .checklist progress::-moz-progress-bar { background: var(--flame); }
158
+ .prose .checklist ul { padding: 0; list-style: none; }
159
+ .prose .checklist li { margin: 0; }
160
+ .prose .checklist label { display: flex; align-items: baseline; gap: 0.65rem; padding-block: 0.3rem; cursor: pointer; }
161
+ .prose .checklist input { flex: none; inline-size: 1.05rem; block-size: 1.05rem; margin: 0; accent-color: var(--flame); translate: 0 0.15rem; }
162
+ .prose .checklist label > span { transition: color 0.2s; }
163
+ .prose .checklist .is-done label > span { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--ink-faint); }
164
+
165
+ /* A picture a source gave, or one the user shared (D35): whole, on a line of its own, never taller than half the window. */
166
+ .prose .picture, .prose app-shared.picture img { display: block; max-inline-size: 100%; max-block-size: min(20rem, 50vh); border-radius: calc(var(--radius) * 0.5); object-fit: contain; }
167
+ .prose .picture { margin-block: 0.75rem; }
168
+
169
+ /* Where colours are forced, the cards, the frame, the rings and the notes keep their edges. */
170
+ @media (forced-colors: active) {
171
+ .prose .is-compare :is(th, td):not(:first-child) { border-inline: 1px solid CanvasText; }
172
+ .prose .is-compare .is-pick { border-inline-width: 3px; }
173
+ .prose .is-compare td.is-best { text-decoration: underline; }
174
+ .prose .steps > li::before { border: 1px solid CanvasText; }
175
+ .prose .callout { border: 1px solid CanvasText; border-inline-start-width: 3px; }
176
+ .prose .callout-title::before { background: CanvasText; }
177
+ .prose .timeline > li > div::before { background: CanvasText; }
178
+ .prose .figures > li { border-color: CanvasText; }
179
+ }
@@ -0,0 +1,147 @@
1
+ // Layouts (D215, D291): what an answer's Markdown shows it to be, laid out as that, from its structure
2
+ // alone (./shapes.js): a comparison as its options side by side, steps one after the other, notes set
3
+ // apart, a column of amounts at the end, a timeline, key figures, a checklist to tick, and the pictures
4
+ // sources gave (D35). Loaded with the first answer, never offered; until then, and for the others,
5
+ // ui/markdown.js shows them as they are. The same Markdown copies as it was.
6
+ import { html, nothing } from 'lit-html'
7
+ import { ref } from 'lit-html/directives/ref.js'
8
+ import { shapes, blocks, inline, lex, cited } from '../../ui/markdown.js'
9
+ import { app, keepRecords } from '../../ui/state.js'
10
+ import { metaRecord } from '../../core/events.js'
11
+ import { styleSheet } from '../../ui/sheet.js'
12
+ import { t, locale, dir, useStrings } from '../../core/i18n.js'
13
+ import { aligned, compared, marked, roomy, stepped, titled, sequenced, noted, timed, figured, ticked } from './shapes.js'
14
+
15
+ await Promise.all([useStrings('layouts'), styleSheet(new URL('layouts.css', import.meta.url))])
16
+
17
+ // A table that fits lets its head stay in view while its rows scroll by (D426, data-whole): one
18
+ // wider than the room scrolls sideways, and a box that scrolls holds a sticky head in. Each table is
19
+ // watched once (lit hands a shared ref every table again at each render), and both watching and telling
20
+ // wait for the next frame, so that neither happens while sizes are being told.
21
+ const fitting = new ResizeObserver((seen) => requestAnimationFrame(() => seen.forEach(({ target }) => {
22
+ const box = /** @type {HTMLElement} */ (target.closest('.table'))
23
+ if (!target.isConnected) fitting.unobserve(target)
24
+ else box.toggleAttribute('data-whole', /** @type {HTMLElement} */ (box.firstElementChild).getBoundingClientRect().width < box.clientWidth + 1)
25
+ })))
26
+ // The head stays under the bar, as tall as each look and window make it.
27
+ const bar = document.querySelector('app-shell > .bar')
28
+ if (bar) new ResizeObserver(() => requestAnimationFrame(() => document.documentElement.style.setProperty('--stick', `${bar.getBoundingClientRect().height}px`))).observe(bar)
29
+ const watched = new WeakSet()
30
+ /** @param {Element | undefined} box */
31
+ function fits(box) {
32
+ if (!box || watched.has(box)) return
33
+ watched.add(box)
34
+ requestAnimationFrame(() => [box, box.firstElementChild].forEach((part) => part && fitting.observe(part)))
35
+ }
36
+
37
+ /** Options as cards, the best of each row lit, the one recommended framed under its badge; any other table as it is, its amounts at the end. @param {any} token */
38
+ function table(token) {
39
+ const shape = compared(token)
40
+ if (!shape) {
41
+ const align = aligned(token).map((side) => side && `align-${side}`)
42
+ return html`<div class="table" tabindex="0" ${ref(fits)}><table>
43
+ <thead><tr>${token.header.map((/** @type {any} */ cell, /** @type {number} */ i) => html`<th class=${align[i]}>${inline(cell.tokens)}</th>`)}</tr></thead>
44
+ <tbody>${token.rows.map((/** @type {any[]} */ row) => html`<tr>${row.map((cell, i) => html`<td class=${align[i]}>${inline(cell.tokens)}</td>`)}</tr>`)}</tbody>
45
+ </table></div>`
46
+ }
47
+ // The criteria, often in bold, are no option's best.
48
+ /** @param {any} cell @param {number} i @param {boolean} [head] */
49
+ const classes = (cell, i, head) => [token.align[i] && `align-${token.align[i]}`, i === shape.pick && 'is-pick', !head && i > 0 && marked(cell)].filter(Boolean).join(' ')
50
+ return html`<div class="table is-compare ${roomy(token) ? 'is-roomy' : ''}" tabindex="0" ${ref(fits)}><table>
51
+ <thead><tr>${token.header.map((/** @type {any} */ cell, /** @type {number} */ i) => html`<th class=${classes(cell, i, true)} data-pick=${i === shape.pick ? t('layouts.recommended') : nothing}>${inline(cell.tokens)}</th>`)}</tr></thead>
52
+ <tbody>${token.rows.map((/** @type {any[]} */ row) => html`<tr>${row.map((cell, i) => html`<td class=${classes(cell, i)}>${inline(cell.tokens)}</td>`)}</tr>`)}</tbody>
53
+ </table></div>`
54
+ }
55
+
56
+ /** Steps, each number in a ring, a title on a line of its own; a timeline, key figures, a checklist. @param {any} token */
57
+ const list = (token) => stepped(token) ? html`<ol class="steps" start=${token.start || 1}>${token.items.map(step)}</ol>`
58
+ : timed(token) ? html`<ol class="timeline">${token.items.map((/** @type {any} */ item) => html`<li>${told(item, (when, rest) => html`<time>${when}</time><div>${rest}</div>`)}</li>`)}</ol>`
59
+ : figured(token) ? html`<ul class="figures">${token.items.map((/** @type {any} */ item) => html`<li>${told(item, (number, rest) => html`<strong>${number}</strong><span>${rest}</span>`)}</li>`)}</ul>`
60
+ : ticked(token) ? checklist(token) : null
61
+
62
+ /**
63
+ * An item's bold start, its words alone, and the rest of it, what joins them left out. @param {any} item
64
+ * @param {(lead: unknown, rest: unknown) => unknown} draw
65
+ */
66
+ function told(item, draw) {
67
+ const [first, ...more] = item.tokens
68
+ const title = titled(first.tokens)
69
+ return draw(inline(first.tokens[0].tokens), [inline(title ? title.rest : first.tokens.slice(1)), more.map((/** @type {any} */ token) => blocks([token]))])
70
+ }
71
+
72
+ /** A list's own name, from what it holds, for the ticks kept for it. @param {any} token */
73
+ const named = (token) => token.items.map((/** @type {any} */ item) => item.text).join('\n')
74
+
75
+ /**
76
+ * A checklist: each thing to do ticked, struck through, and how many are done, with a bar. What is
77
+ * ticked is kept in the conversation, a meta record for the list (its items' words), the latest winning.
78
+ * @param {any} token
79
+ */
80
+ function checklist(token) {
81
+ const list = named(token)
82
+ /** @param {import('../../core/types.js').Envelope[]} records */
83
+ const doneIn = (records) => new Set(/** @type {number[]} */ (records.findLast((record) => record.meta?.ticks?.list === list)?.meta?.ticks.done
84
+ ?? token.items.flatMap((/** @type {any} */ item, /** @type {number} */ i) => (item.checked ? [i] : []))))
85
+ const done = doneIn(app.current.value?.records ?? [])
86
+ const count = new Intl.NumberFormat(locale.value)
87
+ // Shown at once, from the ticks of the moment, then kept, in the order they were made.
88
+ /** @param {number} i @param {boolean} on */
89
+ const tick = (i, on) => {
90
+ const conversation = app.current.peek()
91
+ if (!conversation) return
92
+ const record = metaRecord(app.deviceId, { ticks: { list, done: [...doneIn(conversation.records)].filter((other) => other !== i).concat(on ? [i] : []).sort((a, b) => a - b) } })
93
+ app.current.value = { ...conversation, records: [...conversation.records, record] }
94
+ keepRecords(conversation.path, [record]).catch((error) => console.warn("Ticks", error))
95
+ }
96
+ return html`<div class="checklist">
97
+ <p class="checklist-count"><span dir=${dir()}>${t('layouts.ticked', { done: count.format(done.size), total: count.format(token.items.length) })}</span><progress max=${token.items.length} .value=${done.size}></progress></p>
98
+ <ul>${token.items.map((/** @type {any} */ item, /** @type {number} */ i) => html`<li class=${done.has(i) ? 'is-done' : ''}><label>
99
+ <input type="checkbox" .checked=${done.has(i)} @change=${(/** @type {Event} */ e) => tick(i, /** @type {HTMLInputElement} */ (e.target).checked)}>
100
+ <span>${item.tokens.map((/** @type {any} */ part) => (part.type === 'checkbox' ? nothing : part.type === 'text' ? inline(part.tokens ?? [part]) : blocks([part])))}</span>
101
+ </label></li>`)}</ul>
102
+ </div>`
103
+ }
104
+
105
+ /** @param {any} item */
106
+ function step(item) {
107
+ const [first, ...rest] = item.tokens
108
+ const title = titled(first.tokens)
109
+ const lead = title ? html`${inline(first.tokens.slice(0, 1))}<span class="end">${title.end}</span>${inline(title.rest)}` : inline(first.tokens)
110
+ return html`<li>${first.type === 'paragraph' ? html`<p>${lead}</p>` : lead}${rest.map((/** @type {any} */ token) => (token.type === 'text' ? inline(token.tokens ?? [token]) : blocks([token])))}</li>`
111
+ }
112
+
113
+ /** A note, in its kind's colour, titled with the kind's name or its own words. @param {any} token */
114
+ function blockquote(token) {
115
+ const note = noted(token)
116
+ if (!note) return null
117
+ return html`<blockquote class="callout is-${note.kind}">${note.text === undefined ? blocks(token.tokens)
118
+ : html`<p class="callout-title">${note.title ? inline(/** @type {any} */ (lex(note.title)[0])?.tokens) : t(`layouts.${note.kind}`)}</p>${blocks(lex(note.text))}`}</blockquote>`
119
+ }
120
+
121
+ /** An address as it reads, escaped or not. @param {string} address */
122
+ function unescaped(address) {
123
+ try {
124
+ return decodeURI(address)
125
+ } catch {
126
+ return address
127
+ }
128
+ }
129
+
130
+ /**
131
+ * A picture a source gave, at the address it gave, or one the user shared, by its name (D35): never
132
+ * an address the brain wrote, which injected words could have filled with what the conversation
133
+ * holds. One that doesn't load goes. Any other picture stays its words. @param {any} token
134
+ */
135
+ function image(token) {
136
+ const href = unescaped(token.href)
137
+ const source = [...(cited?.values() ?? [])].find(({ name, picture, file }) => {
138
+ const address = file ? name : picture
139
+ return address !== undefined && unescaped(address) === href
140
+ })
141
+ if (source?.file) import('../../ui/shown.js')
142
+ return source?.file ? html`<app-shared class="picture" role="img" aria-label=${token.text} uri=${source.file.uri} type=${source.file.mimeType ?? ''}></app-shared>`
143
+ : source ? html`<img class="picture" src=${source.picture} alt=${token.text} referrerpolicy="no-referrer" loading="lazy" @error=${(/** @type {Event} */ e) => /** @type {HTMLElement} */ (e.target).remove()}>`
144
+ : null
145
+ }
146
+
147
+ shapes.value = { table, list, blockquote, image, blocks: sequenced }
@@ -0,0 +1,159 @@
1
+ // Which shape a table, a numbered list or a quote has (D215), told from its Markdown alone, never its
2
+ // words, so that it holds in every language. The tokens are marked's.
3
+ /** A number and no word: a price, a share, a date. */
4
+ const AMOUNT = /^\P{L}*\p{N}\P{L}*$/u
5
+
6
+ /** How each column lines up: as the table says, or at the end for a column of amounts. @param {any} token @returns {string[]} */
7
+ export const aligned = (token) => token.align.map((/** @type {string | null} */ side, /** @type {number} */ i) => side ?? (i && token.rows.every((/** @type {any[]} */ row) => AMOUNT.test(row[i].text)) ? 'right' : ''))
8
+
9
+ // What a cell holds: a mark (✓, ✗, a dash, or nothing), an amount, a few words, or more.
10
+ const MARK = /^(?:[✓✔✅☑✗✘❌✖—–-]\uFE0F?)?$/u
11
+ /** @param {any} cell */
12
+ function kind(cell) {
13
+ const text = cell.text.replace(/[*_~`]/g, '').trim()
14
+ return MARK.test(text) ? 0 : AMOUNT.test(text) ? 1 : text.length > 24 ? 3 : 2
15
+ }
16
+
17
+ /** The share of lines whose cells are all of one kind. @param {number[][]} lines */
18
+ const alike = (lines) => lines.filter((line) => line.every((k) => k === line[0])).length / lines.length
19
+
20
+ /**
21
+ * A comparison: two to five options side by side, the criteria down the start. It has a ★ on the
22
+ * option recommended, its corner left empty (a table of numbers alone aside), or rows more alike than
23
+ * its columns: a price in each, a ✓ in each, where a table of records has a column of prices.
24
+ * @param {any} token @returns {{ pick: number } | null} the recommended option's column, or -1
25
+ */
26
+ export function compared(token) {
27
+ if (token.header.length < 3 || token.header.length > 6 || token.rows.length < 2) return null
28
+ const rows = token.rows.map((/** @type {any[]} */ row) => row.slice(1).map(kind))
29
+ const columns = rows[0].map((/** @type {number} */ _, /** @type {number} */ i) => rows.map((/** @type {number[]} */ row) => row[i]))
30
+ const pick = token.header.findIndex((/** @type {any} */ cell) => /[★⭐]/u.test(cell.text))
31
+ const cornered = !token.header[0].text.trim() && !rows.flat().every((/** @type {number} */ k) => k === 1)
32
+ return pick > 0 || cornered || alike(rows) > alike(columns) ? { pick: pick > 0 ? pick : -1 } : null
33
+ }
34
+
35
+ // Characters that take two places: Chinese, Japanese and Korean, and full-width forms.
36
+ const DOUBLE = /[\p{sc=Han}\p{sc=Hiragana}\p{sc=Katakana}\p{sc=Hangul}\uFF00-\uFFEF]/u
37
+
38
+ /**
39
+ * Whether a comparison's options say much: their longest cells, side by side, over 110 characters (a
40
+ * Chinese, Japanese or Korean one counting two). Their cards then take the room beside the text.
41
+ * @param {any} token
42
+ */
43
+ export function roomy(token) {
44
+ /** @param {any} cell */
45
+ const size = (cell) => [...cell.text.replace(/[*_~`]/g, '')].reduce((n, char) => n + (DOUBLE.test(char) ? 2 : 1), 0)
46
+ return token.header.slice(1).reduce((/** @type {number} */ sum, /** @type {any} */ _, /** @type {number} */ i) => sum + Math.max(...token.rows.map((/** @type {any[]} */ row) => size(row[i + 1]))), 0) > 110
47
+ }
48
+
49
+ /** What sets a comparison's cell apart: the best of its row (in bold, and only that), a yes or a no. @param {any} cell */
50
+ export function marked(cell) {
51
+ const parts = cell.tokens.filter((/** @type {any} */ part) => part.type !== 'text' || part.text.trim())
52
+ return [parts.length === 1 && parts[0].type === 'strong' && 'is-best', /^[✓✔✅☑]/u.test(cell.text) && 'is-yes', /^[✗✘❌✖]/u.test(cell.text) && 'is-no'].filter(Boolean).join(' ')
53
+ }
54
+
55
+ /** Numbered items that each start in bold are steps, as are those `sequenced` gathers. @param {any} token */
56
+ export const stepped = (token) => token.steps || (token.ordered && token.items.length > 1 && token.items.every(bold))
57
+ /** @param {any} item */
58
+ const bold = (item) => item.tokens[0]?.tokens?.[0]?.type === 'strong'
59
+ /** What an item starts with in bold, or nothing. @param {any} item @returns {string} */
60
+ const lead = (item) => (bold(item) ? item.tokens[0].tokens[0].text.trim() : '')
61
+
62
+ // A time or a date in digits, so that it holds in every language (09:00, 9h30, 2026-10-12, 12/10, 1969), or two of them, from one to the other.
63
+ const DAY = String.raw`(?:\d{1,2}[:h.]\d{2}|\d{4}(?:-\d{2}){0,2}|\d{1,2}[/.]\d{1,2}(?:[/.]\d{2,4})?)`
64
+ const WHEN = new RegExp(`^${DAY}(?:\\s*[–-]\\s*${DAY})?$`)
65
+
66
+ /** A timeline (D291): a list whose items each start with a time or a date, in bold. @param {any} token */
67
+ export const timed = (token) => !token.ordered && token.items.length > 1 && token.items.every((/** @type {any} */ item) => WHEN.test(lead(item)))
68
+
69
+ /** Key figures (D291): two to six items, each a number in bold and a few words. @param {any} token */
70
+ export const figured = (token) => !token.ordered && token.items.length > 1 && token.items.length < 7
71
+ && token.items.every((/** @type {any} */ item) => AMOUNT.test(lead(item)) && item.tokens.length === 1 && item.text.replace(/[*_]/g, '').length < 60)
72
+
73
+ /** A checklist (D291): a list of things to do, ticked or not. @param {any} token */
74
+ export const ticked = (token) => token.items.every((/** @type {any} */ item) => item.task)
75
+
76
+ /**
77
+ * A step's bold start is its title when the line ends there or a colon or a dash follows it: what
78
+ * ends it, kept for copying, and what follows. Null when it has no bold start, or its bold words begin a sentence.
79
+ * @param {any[]} tokens a step's first line @returns {{ end: string, rest: any[] } | null}
80
+ */
81
+ export function titled([title, next, ...after]) {
82
+ if (title?.type !== 'strong') return null
83
+ if (!next || next.type === 'br') return { end: '', rest: after }
84
+ const end = next.type === 'text' ? /^\s*(?:[::]|[-–—](?=\s))\s*|^\n/.exec(next.text)?.[0] : undefined
85
+ return end === undefined ? null : { end, rest: [{ ...next, text: next.text.slice(end.length), tokens: undefined }, ...after] }
86
+ }
87
+
88
+ const NUMBER = /^(\d{1,3})[.)](?:\s+|$)/
89
+
90
+ /**
91
+ * Where a block starts steps, each with its number and first blocks: a paragraph that starts in bold
92
+ * with its number ("**1. Choose**", "**1.** Choose"), without it, or a numbered list whose items all
93
+ * start in bold. Null for any other block.
94
+ * @param {any} token @returns {{ n: number, tokens: any[] }[] | null}
95
+ */
96
+ function starts(token) {
97
+ if (token.type === 'list') return token.ordered && token.items.every(bold) ? token.items.map((/** @type {any} */ item, /** @type {number} */ i) => ({ n: (token.start || 1) + i, tokens: item.tokens })) : null
98
+ const [strong, ...rest] = token.type === 'paragraph' ? token.tokens : []
99
+ const first = strong?.type === 'strong' ? strong.tokens[0] : null
100
+ const number = first?.type === 'text' ? NUMBER.exec(first.text) : null
101
+ if (!number) return null
102
+ const title = [{ ...first, text: first.text.slice(number[0].length), tokens: undefined }, ...strong.tokens.slice(1)].filter((part) => part.type !== 'text' || part.text)
103
+ const line = title.length ? [{ ...strong, tokens: title }, ...rest] : rest.map((/** @type {any} */ part, /** @type {number} */ i) => (i || part.type !== 'text' ? part : { ...part, text: part.text.trimStart(), tokens: undefined }))
104
+ return [{ n: Number(number[1]), tokens: [{ ...token, tokens: line }] }]
105
+ }
106
+
107
+ /**
108
+ * Steps written apart, as brains often do: paragraphs that start in bold with 1., 2., 3. …, or numbered
109
+ * lists cut apart by what each step holds, each followed by its details, made one numbered list of
110
+ * steps. A step holds what follows it up to the next, the last as many blocks as the longest before it
111
+ * (an answer's closing words aren't the last step's); a heading, a rule or a number out of turn ends them.
112
+ * @param {any[]} tokens @returns {any[]}
113
+ */
114
+ export function sequenced(tokens) {
115
+ const out = []
116
+ for (let i = 0; i < tokens.length;) {
117
+ /** @type {{ n: number, tokens: any[], holds: any[] }[]} */
118
+ const steps = (starts(tokens[i]) ?? []).map((step) => ({ ...step, holds: [] }))
119
+ /** @type {any[]} */
120
+ let after = []
121
+ let j = i + 1
122
+ for (; steps.length && j < tokens.length && tokens[j].type !== 'heading' && tokens[j].type !== 'hr'; j++) {
123
+ const more = starts(tokens[j])
124
+ if (!more) {
125
+ after.push(tokens[j])
126
+ continue
127
+ }
128
+ if (more[0].n !== steps[steps.length - 1].n + 1) break
129
+ steps[steps.length - 1].holds = after
130
+ steps.push(...more.map((step) => ({ ...step, holds: [] })))
131
+ after = []
132
+ }
133
+ if (steps.length < 2) {
134
+ out.push(tokens[i++])
135
+ continue
136
+ }
137
+ const most = Math.max(...steps.slice(0, -1).map((step) => step.holds.filter((block) => block.type !== 'space').length))
138
+ let taken = 0
139
+ const beyond = after.findIndex((block) => block.type !== 'space' && ++taken > most)
140
+ steps[steps.length - 1].holds = beyond < 0 ? after : after.slice(0, beyond)
141
+ out.push({ type: 'list', raw: '', ordered: true, start: steps[0].n, loose: true, steps: true, items: steps.map((step) => ({ type: 'list_item', raw: '', loose: true, tokens: [...step.tokens, ...step.holds] })) })
142
+ i = beyond < 0 ? j : j - after.length + beyond
143
+ }
144
+ return out
145
+ }
146
+
147
+ const ALERT = /^\[!(note|tip|important|warning|caution)\][ \t]*([^\n]*)\n?/i
148
+
149
+ /**
150
+ * A note: a GitHub alert, its kind, its own title if it has one, and its text; or a quote that starts
151
+ * with an emoji, its kind from that emoji. Null for any other quote.
152
+ * @param {any} token @returns {{ kind: string, title?: string, text?: string } | null}
153
+ */
154
+ export function noted(token) {
155
+ const alert = ALERT.exec(token.text)
156
+ if (alert) return { kind: alert[1].toLowerCase(), title: alert[2].trim(), text: token.text.slice(alert[0].length) }
157
+ const lead = /^\s*(\p{Extended_Pictographic})/u.exec(token.text)?.[1]
158
+ return lead ? { kind: /[⚠❗‼🚨⛔🛑❌]/u.test(lead) ? 'warning' : /[💡✅✨]/u.test(lead) ? 'tip' : 'note' } : null
159
+ }
@@ -0,0 +1,88 @@
1
+ // A LaTeX document as Markdown (D185), for what brains write in a ```latex block: sections, lists,
2
+ // emphasis and formulas, which Markdown's reading then lays out, and TikZ pictures, a ```tikz block
3
+ // each, which the math capability draws when they are pgf-pie charts; the rest of a preamble goes. A
4
+ // block with none of those, or only math environments, is formulas, one per paragraph. Pure, for Node's tests.
5
+
6
+ /** Formulas, kept aside as they are: set apart, a math environment (a document's, or one a formula holds, which brains write alone too), in a line. A \\[1em] is a line break. */
7
+ const ENVIRONMENT = String.raw`\\begin\{(equation|align|alignat|gather|multline|aligned|alignedat|gathered|split|[dr]?cases|array|[pbBvV]?matrix|smallmatrix|CD)(\*?)\}[\s\S]*?\\end\{\1\2\}`
8
+ const MATH = new RegExp(String.raw`(?<!\\)\\\[[\s\S]*?\\\]|\$\$[\s\S]*?\$\$|${ENVIRONMENT}|(?<!\\)\\\([\s\S]*?\\\)|(?<!\\)\$(?:\\.|[^\\$])+\$`, 'g')
9
+ const DOCUMENT = /\$|(?<!\\)\\[[(]|\\begin\{(?:document|itemize|enumerate|tikzpicture)|\\(?:sub)*section|\\item\b|\\(?:textbf|textit|emph)\{/
10
+ /** A command's argument, which may hold one level of braces. */
11
+ const ARGUMENT = String.raw`\{((?:[^{}]|\{[^{}]*\})*)\}`
12
+ const HEADING = new RegExp(String.raw`\\(section|subsection|subsubsection)\*?` + ARGUMENT, 'g')
13
+ const LEVELS = /** @type {Record<string, string>} */ ({ section: '##', subsection: '###', subsubsection: '####' })
14
+
15
+ /** @param {string} source */
16
+ export function latexToMarkdown(source) {
17
+ const title = new RegExp(String.raw`\\title` + ARGUMENT).exec(source)?.[1]
18
+ const body = (/\\begin\{document\}([\s\S]*?)(?:\\end\{document\}|$)/.exec(source)?.[1] ?? source)
19
+ .replace(/^[ \t]+/gm, '')
20
+ .replace(/(^|[^\\])%.*$/gm, '$1')
21
+ // The formulas first, so that what reads the words around them leaves their \textbf and \\ alone.
22
+ const kept = /** @type {string[]} */ ([])
23
+ const text = body
24
+ .replace(/\\begin\{tikzpicture\}[\s\S]*?\\end\{tikzpicture\}/g, (picture) => `\n\n\u0000${kept.push(`\`\`\`tikz\n${picture}\n\`\`\``) - 1}\u0000\n\n`)
25
+ .replace(MATH, (formula) => `\u0000${kept.push(formula) - 1}\u0000`)
26
+ const back = (/** @type {string} */ markdown, apart = false) => markdown.replace(/\u0000(\d+)\u0000/g, (_, i) => (apart && kept[i].startsWith('\\begin') ? `\n\\[${kept[i]}\\]\n` : kept[i]))
27
+ if (!DOCUMENT.test(body.replace(new RegExp(ENVIRONMENT, 'g'), ''))) return text.split(/\n\s*\n/).map((part) => part.trim()).filter(Boolean).map((formula) => `\\[${back(formula)}\\]`).join('\n\n')
28
+ return back(prose(text
29
+ .replace(/\\maketitle/, title ? `\n\n## ${title}\n\n` : '')
30
+ .replace(HEADING, (_, level, words) => `\n\n${LEVELS[level]} ${words}\n\n`)
31
+ .replace(/\\begin\{(itemize|enumerate)\}([\s\S]*?)\\end\{\1\}/g, (_, kind, items) => `${items.replace(/\s*\\item\s*/g, kind === 'itemize' ? '\n- ' : '\n1. ')}\n\n`)
32
+ .replace(new RegExp(String.raw`\\textbf` + ARGUMENT, 'g'), '**$1**')
33
+ .replace(new RegExp(String.raw`\\(?:textit|emph)` + ARGUMENT, 'g'), '*$1*')), true)
34
+ }
35
+
36
+ /** What is whole of a block still being written: its finished lines, what they open closed, a row break they end on gone. @param {string} source */
37
+ export function wholeSoFar(source) {
38
+ const lines = source.slice(0, source.lastIndexOf('\n') + 1)
39
+ const closing = /** @type {string[]} */ ([])
40
+ for (const [mark, name] of lines.matchAll(/\\begin\{([^{}]*)\}|\\end\{[^{}]*\}|(?<!\\)\\[[\]]|\$\$/g)) {
41
+ if (name !== undefined) closing.push(`\\end{${name}}`)
42
+ else if (mark === '\\[' || (mark === '$$' && closing.at(-1) !== '$$')) closing.push(mark === '$$' ? '$$' : '\\]')
43
+ else closing.pop()
44
+ }
45
+ return closing.length ? `${lines.replace(/\s*(?:\\\\(?:\[[^\]]*\])?)?\s*$/, '')}\n${closing.reverse().join('\n')}` : lines
46
+ }
47
+
48
+ /** The words around the formulas: breaks and typography; what lays a page out goes. @param {string} text */
49
+ const prose = (text) => text
50
+ .replace(new RegExp(String.raw`\\(?:underline|textrm|textsc|mbox|caption)` + ARGUMENT, 'g'), '$1')
51
+ .replace(/\\\\(?:\[[^\]]*\])?|\\newline\b/g, ' \n')
52
+ .replace(/\\(?:noindent|centering|par|newpage|clearpage|(?:small|med|big)skip)\b|\\(?:[vh]space|label)\*?\{[^{}]*\}|\\(?:begin|end)\{(?:center|figure)\*?\}(?:\[[^\]]*\])?/g, '')
53
+ .replace(/\\(LaTeX|TeX)\b/g, '$1').replace(/\\(?:ldots|dots)\b/g, '…')
54
+ .replace(/---/g, '—').replace(/--/g, '–').replace(/``/g, '“').replace(/''/g, '”').replace(/~/g, ' ')
55
+
56
+ /** @typedef {{ slices: { value: number, label: string }[], whole: number, start: number, apart: number[], before: string, after: string, hide: boolean }} Pie */
57
+
58
+ /** A list's parts, apart at its commas outside braces (\, is a space). @param {string} list */
59
+ const parts = (list) => (list.match(/(?:\\[\s\S]|[^,{}\\]|\{(?:[^{}]|\{[^{}]*\})*\})+/g) ?? []).map((part) => part.trim()).filter(Boolean)
60
+ /** Words as TeX prints them: no braces, its escapes and spaces as their characters. @param {string} text */
61
+ const words = (text) => text.trim().replace(/\\\\/g, ' ').replace(/\\,/g, '\u202f').replace(/~/g, '\u00a0').replace(/\\([%&#_$])/g, '$1').replace(/[{}]/g, '')
62
+
63
+ /**
64
+ * A TikZ picture's pgf-pie charts, `\pie[sum=auto, explode=0.1]{36.4/Rent, …}`: each slice's number,
65
+ * then its label, after a / or, as brains write it too, a \%; the whole they are shares of; where the
66
+ * first starts, in degrees from the right, the next turning anticlockwise as TikZ turns; how far each
67
+ * stands apart, as a share of the radius; and the number's words or none. @param {string} picture @returns {Pie[]}
68
+ */
69
+ export function readPies(picture) {
70
+ return [...picture.matchAll(new RegExp(String.raw`\\pie\s*(?:\[((?:[^[\]{}]|\{(?:[^{}]|\{[^{}]*\})*\})*)\])?\s*` + ARGUMENT, 'g'))].map(([, options = '', list]) => {
71
+ const set = Object.fromEntries(parts(options).map((part) => [part.split('=')[0].trim(), part.slice(part.indexOf('=') + 1).trim().replace(/^\{([\s\S]*)\}$/, '$1')]))
72
+ const slices = parts(list).flatMap((slice) => {
73
+ const [, value, label = ''] = /^(-?\d*\.?\d+)\s*(?:\\%)?\s*\/?([\s\S]*)$/.exec(slice) ?? []
74
+ return value ? [{ value: Number(value), label: words(label) }] : []
75
+ })
76
+ const total = slices.reduce((sum, slice) => sum + slice.value, 0)
77
+ const explode = parts(set.explode ?? '').map((away) => Math.min(0.25, (Number.parseFloat(away) || 0) / (Number.parseFloat(set.radius) || 3)))
78
+ return {
79
+ slices,
80
+ whole: set.sum === 'auto' ? total : Math.max(Number.parseFloat(set.sum) || 100, total),
81
+ start: Number.parseFloat(set.rotate) || 0,
82
+ apart: slices.map((_, i) => (explode.length === 1 ? explode[0] : explode[i] ?? 0)),
83
+ before: words(set['before number'] ?? ''),
84
+ after: words(set['after number'] ?? (set.sum === 'auto' ? '' : '%')),
85
+ hide: 'hide number' in set,
86
+ }
87
+ }).filter((pie) => pie.slices.length && pie.whole > 0)
88
+ }
@@ -0,0 +1,24 @@
1
+ /* Formulas (D185): set apart, one scrolls only sideways; Chromium lays it out a pixel taller than its box, which the padding holds. */
2
+ app-math[block] { overflow-y: hidden; padding-block: 0.15em; }
3
+ app-math mtext.is-bold { font-weight: bold; }
4
+ /* A LaTeX document, Copy at its top corner as a widget's (D196), shown on hover; its margins inside it, as its picture holds them. */
5
+ app-latex { position: relative; }
6
+ app-latex .latex-page { display: flow-root; }
7
+ app-latex .latex-page > :first-child { margin-block-start: 0; }
8
+ app-latex .latex-page > :last-child { margin-block-end: 0; }
9
+ app-latex .drawn-foot { position: absolute; z-index: 1; inset-block-start: 0.4rem; inset-inline-end: 0.4rem; transition: opacity 0.2s; }
10
+ app-latex:not([line]) .drawn-foot .icon-button { background: var(--glass); }
11
+ /* One formula or one sentence: no frame, Copy at the end of its line. */
12
+ app-latex[line] { display: flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; }
13
+ app-latex[line] .latex-page { flex: 1; min-inline-size: 0; }
14
+ app-latex[line] .drawn-foot { position: static; }
15
+ @media (hover: hover) { app-latex:not(:hover, :focus-within) .drawn-foot { opacity: 0; } }
16
+ app-latex[open] .drawn-foot { display: none; }
17
+ /* A pie chart: the pie, and beside it, or under it in a narrow column, each slice's colour, label and number; its colours stay where colours are forced. */
18
+ app-latex .pie { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0 0 0.85rem; }
19
+ app-latex .pie svg { flex: none; inline-size: min(100%, 12rem); forced-color-adjust: none; }
20
+ app-latex .pie ul { flex: 0 1 20rem; margin: 0; padding: 0; list-style: none; }
21
+ app-latex .pie li { display: flex; align-items: center; gap: 0.6rem; }
22
+ app-latex .pie li svg { inline-size: 0.8em; }
23
+ app-latex .pie .pie-number { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
24
+ @media print { app-latex .drawn-foot { display: none; } }