egatari 0.6.14 → 0.6.15

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 (246) hide show
  1. package/CHANGELOG.md +34 -1
  2. package/components.lock.json +507 -153
  3. package/components2.lock.json +1710 -33
  4. package/kit/check-messages.mjs +11 -2
  5. package/kit/core/article-render.mjs +1 -1
  6. package/kit/core/article-text.mjs +3 -1
  7. package/kit/core/build-core.mjs +23 -1
  8. package/kit/core/check-parity.mjs +1 -1
  9. package/kit/core/check-rules.mjs +1 -1
  10. package/kit/core/colab-core.mjs +1 -1
  11. package/kit/core/comment-core.mjs +6 -0
  12. package/kit/core/layout-scan.mjs +67 -2
  13. package/kit/core/llm-fix.mjs +12 -1
  14. package/kit/core/llm-pack-assemble.mjs +5 -2
  15. package/kit/core/llm-pack-data.mjs +218 -32
  16. package/kit/core/llm-pack.mjs +3 -3
  17. package/kit/core/new-deck.mjs +17 -3
  18. package/kit/core/part-labels.mjs +6 -0
  19. package/kit/core/player.mjs +18 -0
  20. package/kit/core/portable.mjs +21 -3
  21. package/kit/core/tier-a.mjs +14 -2
  22. package/kit/instruction-version.json +1 -1
  23. package/kit/player.json +1 -1
  24. package/kit/player.lock.json +2 -2
  25. package/kit/presenter.js +3 -1
  26. package/kit/tools.js +9 -2
  27. package/package.json +4 -2
  28. package/server/dev.mjs +3 -2
  29. package/server/editor-ui.js +8 -3
  30. package/server/hints.js +22 -2
  31. package/vendor/components/CATALOG.md +21 -14
  32. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/README.en.md +40 -0
  33. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/index.js +408 -0
  34. package/vendor/components/sha256/0396a1895978803ae342b7f598f187b17ead47800e8f8317a5cb041111349813/index.js +278 -0
  35. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/README.en.md +26 -0
  36. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/index.js +322 -0
  37. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/README.en.md +54 -0
  38. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/index.js +470 -0
  39. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/README.en.md +18 -0
  40. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/index.js +279 -0
  41. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/README.en.md +31 -0
  42. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/index.js +267 -0
  43. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/README.en.md +53 -0
  44. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/index.js +171 -0
  45. package/vendor/components/sha256/1117758820dc561f41cf9d1cc0bab8cf3173cde7771ac10a12b94c96007c0f55/index.js +268 -0
  46. package/vendor/components/sha256/137017ad452afe209bdff81bc02ffae99c6b60a1c4aed2383515974f65511ff2/index.js +205 -0
  47. package/vendor/components/sha256/1a1471ba5f68e54304825a64e736afeda421e3763cdcbcdab2e45509562a0291/index.js +607 -0
  48. package/vendor/components/sha256/1b15fcc12b2fa43821e6299e87aae31aa69dbbc5a0d1b80088a5d7c5f8b8f7f5/index.js +429 -0
  49. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/README.en.md +23 -0
  50. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/index.js +147 -0
  51. package/vendor/components/sha256/21c099461befc0d382ddfe982f2a6cd8eeb6dd731252164ac619525e4bacdf0d/index.js +242 -0
  52. package/vendor/components/sha256/2352e0e22460f4a3c46dca6cef27cd9c63f161a411f1cf56c75c585e9124503c/index.js +315 -0
  53. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/README.en.md +53 -0
  54. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/index.js +171 -0
  55. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/README.en.md +38 -0
  56. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/index.js +414 -0
  57. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/README.en.md +45 -0
  58. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/index.js +211 -0
  59. package/vendor/components/sha256/2f111b900898579b3ec1611c2110db336a46d9133171a0cbb125ee37bd1f24f8/index.js +592 -0
  60. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/README.en.md +45 -0
  61. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/index.js +211 -0
  62. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/README.en.md +20 -0
  63. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/index.js +310 -0
  64. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/README.en.md +35 -0
  65. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/index.js +179 -0
  66. package/vendor/components/sha256/3af0b84b1799fc64ec74d6da9cbd343eccd89e8a11c81bfb444562c911284442/index.js +342 -0
  67. package/vendor/components/sha256/3c69bf3b3c6b9f76048fbc0839b3aa9699723570086d3d44bac799230ed6de5b/index.js +121 -0
  68. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/README.en.md +37 -0
  69. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/index.js +501 -0
  70. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/README.en.md +38 -0
  71. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/index.js +414 -0
  72. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/README.en.md +30 -0
  73. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/index.js +305 -0
  74. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/README.en.md +31 -0
  75. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/index.js +236 -0
  76. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/README.en.md +21 -0
  77. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/index.js +108 -0
  78. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/README.en.md +28 -0
  79. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/index.js +213 -0
  80. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/README.en.md +35 -0
  81. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/index.js +179 -0
  82. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/README.en.md +53 -0
  83. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/index.js +171 -0
  84. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ABCJS-ADAPTER.md +101 -0
  85. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/LICENSE-abcjs.txt +21 -0
  86. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/chords.json +89 -0
  87. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/doremi.json +261 -0
  88. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/extras.json +192 -0
  89. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/kaeru.json +521 -0
  90. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/rhythm.json +248 -0
  91. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ties.json +360 -0
  92. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/index.js +508 -0
  93. package/vendor/components/sha256/59996a56df462b36e24a928d4397c9308d9e39ad8224ebd19fb5c981608ef458/index.js +521 -0
  94. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/README.en.md +30 -0
  95. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/index.js +305 -0
  96. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/README.en.md +30 -0
  97. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/index.js +192 -0
  98. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/README.en.md +20 -0
  99. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/index.js +307 -0
  100. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/README.en.md +24 -0
  101. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/index.js +554 -0
  102. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/README.en.md +25 -0
  103. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/index.js +316 -0
  104. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/README.en.md +18 -0
  105. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/index.js +279 -0
  106. package/vendor/components/sha256/624acb997c4975ace65570b529b3ba00baa421c80ecb7fc80f392a64e8c573a7/index.js +107 -0
  107. package/vendor/components/sha256/62602488ee33dd4bdef8516de16da5ab27d7f7265d5041681beab80e08f1d482/index.js +97 -0
  108. package/vendor/components/sha256/67eaf344bddac79b74ed03fdcd70285c7b52b160e6c5ffbd6897848179aa5230/index.js +818 -0
  109. package/vendor/components/sha256/682c9c8871eccd19ff1264e0323a2e4c5798b0488b612ba0339c6fe85aab5914/index.js +926 -0
  110. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/README.en.md +51 -0
  111. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/index.js +230 -0
  112. package/vendor/components/sha256/72138936ed0b8fd3cb0214ae7ed250ae3f1f8b21ed6fd593544947774064ba0d/index.js +250 -0
  113. package/vendor/components/sha256/74c1a0f3ed1370c5003aa5770ee28cea2ce994d415680116a92fdbcd5854ba62/index.js +198 -0
  114. package/vendor/components/sha256/76125035eb153b98befa9c735bcd9fc4f99f774dc1d082fdae40acaadfe7d95b/index.js +818 -0
  115. package/vendor/components/sha256/7728cf7dde88a6688aba0ed70f23f7e21362a147beac09c1fa1a4b773e08e93b/index.js +354 -0
  116. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/README.en.md +23 -0
  117. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/index.js +289 -0
  118. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/README.en.md +31 -0
  119. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/index.js +236 -0
  120. package/vendor/components/sha256/7d50e50fbb6c5ec636b62509bd88ddaac1870e0522cf11bcc293ce924d48072d/index.js +312 -0
  121. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/README.en.md +42 -0
  122. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/index.js +549 -0
  123. package/vendor/components/sha256/87fc302c41b2bfeea88951ed689ec01b4dc79218c4bc69b310dc2228dfa2e153/index.js +926 -0
  124. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/README.en.md +24 -0
  125. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/index.js +103 -0
  126. package/vendor/components/sha256/89c8c16788e24df17920542ed6eb6557dea4a10e835de8fe839e439ccbba8014/index.js +69 -0
  127. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/README.en.md +44 -0
  128. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/index.js +304 -0
  129. package/vendor/components/sha256/8d9af78aef44ad2f98101c67d32473373d39725a09c923969aa621d5f5b124bb/index.js +121 -0
  130. package/vendor/components/sha256/8f861d71df72a82be86a3e63abf7d69bbab5aac6fa68be6e077c4e19c3519ed8/index.js +312 -0
  131. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/README.en.md +54 -0
  132. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/index.js +470 -0
  133. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/README.en.md +24 -0
  134. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/index.js +214 -0
  135. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/README.en.md +33 -0
  136. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/index.js +390 -0
  137. package/vendor/components/sha256/9289efef4a75afe011e54a17e34db08cfb16a450b2e0653e6a98525495cfba99/index.js +315 -0
  138. package/vendor/components/sha256/93256a923199ea51108cdb7491c3c96f376dbef15b64cbf1a1aa7cc5726b4970/index.js +429 -0
  139. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/README.en.md +24 -0
  140. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/index.js +550 -0
  141. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/README.en.md +28 -0
  142. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/index.js +213 -0
  143. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/README.en.md +40 -0
  144. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/index.js +348 -0
  145. package/vendor/components/sha256/97c074a5473618c65f4c23263f056870a0b7940e73475f2a1f32f68c08d8eb0f/index.js +198 -0
  146. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/README.en.md +66 -0
  147. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/index.js +984 -0
  148. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/README.en.md +34 -0
  149. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/index.js +244 -0
  150. package/vendor/components/sha256/a18b2b15d00c76462a43823b5c270c7ddd7c31794da9c236f74f20f80ec2ffdb/index.js +354 -0
  151. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/README.en.md +32 -0
  152. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/index.js +222 -0
  153. package/vendor/components/sha256/a979207c60fbd2a12cb557297eb0217eb098d660de684530a0f43d0d9c64e6ef/index.js +312 -0
  154. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/README.en.md +34 -0
  155. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/index.js +244 -0
  156. package/vendor/components/sha256/af7ed69b8969f6da14784b6e9d26e4dfd20147772ea172a99bd936a71be10fcd/index.js +278 -0
  157. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ABCJS-ADAPTER.md +101 -0
  158. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/LICENSE-abcjs.txt +21 -0
  159. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/chords.json +89 -0
  160. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/doremi.json +261 -0
  161. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/extras.json +192 -0
  162. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/kaeru.json +521 -0
  163. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/rhythm.json +248 -0
  164. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ties.json +360 -0
  165. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/index.js +508 -0
  166. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/README.en.md +66 -0
  167. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/index.js +990 -0
  168. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/README.en.md +24 -0
  169. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/index.js +550 -0
  170. package/vendor/components/sha256/b8096d7a60609520981273673761a110e40e3bdf52a7ab5548363b20e16f6e93/index.js +404 -0
  171. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/README.en.md +32 -0
  172. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/index.js +222 -0
  173. package/vendor/components/sha256/bd8e3893df02411deccc1d6d7b02292ca0d59dfeddfafcf99419430981572c82/index.js +351 -0
  174. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ABCJS-ADAPTER.md +101 -0
  175. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/LICENSE-abcjs.txt +21 -0
  176. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/chords.json +89 -0
  177. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/doremi.json +261 -0
  178. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/extras.json +192 -0
  179. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/kaeru.json +521 -0
  180. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/rhythm.json +248 -0
  181. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ties.json +360 -0
  182. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/index.js +508 -0
  183. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/README.en.md +31 -0
  184. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/index.js +267 -0
  185. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/LICENSE-strokesvg.txt +115 -0
  186. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/OFL.txt +93 -0
  187. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/index.js +749 -0
  188. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/strokes-CHANGES.md +20 -0
  189. package/vendor/components/sha256/c791e69e722f64146242f97acb29a341160d0c327cfe1d76307954d80e70db85/index.js +268 -0
  190. package/vendor/components/sha256/c8c0de41d603b61c6ec4dc1da5b50559e213dd1f3693ee5019df858016fd6daf/index.js +747 -0
  191. package/vendor/components/sha256/c99d4f2ab443484b9f462e405c72ea4794838b88f8823f27c606d12cbbedb996/index.js +404 -0
  192. package/vendor/components/sha256/cbde046e30c35db60259911a88e2ae0bedaf545e29b1da8b8ce13bc602a33c19/index.js +465 -0
  193. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/README.en.md +51 -0
  194. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/index.js +228 -0
  195. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/README.en.md +35 -0
  196. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/index.js +179 -0
  197. package/vendor/components/sha256/cf0985ffcd8e7cbe2175ddb9a4342b2a4aa3f322794188fc99af8789b494460d/index.js +521 -0
  198. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/LICENSE-strokesvg.txt +115 -0
  199. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/OFL.txt +93 -0
  200. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/index.js +749 -0
  201. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/strokes-CHANGES.md +20 -0
  202. package/vendor/components/sha256/d01dc7fd78d08dd720ed86b39d7877dc0913d72e914036088a86af2df2faee52/index.js +484 -0
  203. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/README.en.md +24 -0
  204. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/index.js +214 -0
  205. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/README.en.md +31 -0
  206. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/index.js +271 -0
  207. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/README.en.md +25 -0
  208. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/index.js +316 -0
  209. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/README.en.md +23 -0
  210. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/index.js +120 -0
  211. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/README.en.md +40 -0
  212. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/index.js +405 -0
  213. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/README.en.md +66 -0
  214. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/index.js +984 -0
  215. package/vendor/components/sha256/ddd4b9cbbc282cbb3117ff662e1a14ecdb3cc7c16072a574418ec6a6eecef4d8/index.js +107 -0
  216. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/README.en.md +22 -0
  217. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/index.js +145 -0
  218. package/vendor/components/sha256/e2da948daac7bfac158857877b5a6932dbd2369e73901abcef118c92dd20b725/index.js +747 -0
  219. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/README.en.md +42 -0
  220. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/index.js +268 -0
  221. package/vendor/components/sha256/e653a4da80f7761442dc5b504ea5b0700fd0acf1979beeff56122cfdb3d4654c/index.js +607 -0
  222. package/vendor/components/sha256/ea217c6821e931b2d8474bf56d38f2dcc89ec705fe1d276f313e1c7e8db2b98a/index.js +233 -0
  223. package/vendor/components/sha256/ea2e4e24838574f607879c7d05556281258c018331e4da3e6f3a5263173f2e99/index.js +75 -0
  224. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/README.en.md +42 -0
  225. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/index.js +549 -0
  226. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/README.en.md +44 -0
  227. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/index.js +203 -0
  228. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/README.en.md +34 -0
  229. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/index.js +244 -0
  230. package/vendor/components/sha256/fa1a09c10181456143d125d68dbbdcacde6bab2e4a2b3e573367103ce28ebf55/index.js +228 -0
  231. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/README.en.md +51 -0
  232. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/index.js +228 -0
  233. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/README.en.md +23 -0
  234. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/index.js +147 -0
  235. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/README.en.md +20 -0
  236. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/index.js +307 -0
  237. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/README.en.md +26 -0
  238. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/index.js +322 -0
  239. package/vendor/components-2/manifest-2.12.0.json +2348 -0
  240. package/vendor/components-2/manifest-2.13.0.json +2477 -0
  241. package/vendor/components-2/manifest-2.14.0.json +2460 -0
  242. package/vendor/components-2/manifest-2.14.1.json +2460 -0
  243. package/vendor/components-2/manifest-2.15.0.json +2460 -0
  244. package/vendor/egatari-spec/SOURCE.json +3 -3
  245. package/vendor/egatari-spec/schema/deck-meta.schema.json +15 -0
  246. package/vendor/egatari-spec/schema/egatari-metadata.schema.json +15 -0
@@ -4,6 +4,8 @@ export const PACK = {
4
4
  "sets": [
5
5
  "stats",
6
6
  "data",
7
+ "algo",
8
+ "ml",
7
9
  "math",
8
10
  "maps",
9
11
  "kokugo",
@@ -459,6 +461,13 @@ export const PACK = {
459
461
  "m-compare": [
460
462
  "compare"
461
463
  ],
464
+ "m-contour": [
465
+ "change"
466
+ ],
467
+ "m-ctable": [
468
+ "part-whole",
469
+ "cause-effect"
470
+ ],
462
471
  "m-cycle": [
463
472
  "cycle"
464
473
  ],
@@ -488,6 +497,12 @@ export const PACK = {
488
497
  "m-map-world": [
489
498
  "spatial"
490
499
  ],
500
+ "m-network": [
501
+ "process"
502
+ ],
503
+ "m-nnet": [
504
+ "process"
505
+ ],
491
506
  "m-numberline": [
492
507
  "compare"
493
508
  ],
@@ -520,6 +535,9 @@ export const PACK = {
520
535
  "m-tree": [
521
536
  "hierarchy"
522
537
  ],
538
+ "m-vector": [
539
+ "spatial"
540
+ ],
523
541
  "m-venn": [
524
542
  "overlap"
525
543
  ]
@@ -539,12 +557,15 @@ export const PACK = {
539
557
  ],
540
558
  "m-checklist": [],
541
559
  "m-ci": [],
560
+ "m-classify2d": [],
542
561
  "m-code": [],
543
562
  "m-compare": [
544
563
  "fade",
545
564
  "slide",
546
565
  "reveal"
547
566
  ],
567
+ "m-contour": [],
568
+ "m-ctable": [],
548
569
  "m-curves": [],
549
570
  "m-cycle": [
550
571
  "fade",
@@ -598,6 +619,8 @@ export const PACK = {
598
619
  "m-mapping": [],
599
620
  "m-market": [],
600
621
  "m-menu": [],
622
+ "m-network": [],
623
+ "m-nnet": [],
601
624
  "m-numberline": [
602
625
  "fade",
603
626
  "draw"
@@ -646,6 +669,7 @@ export const PACK = {
646
669
  "draw",
647
670
  "grow"
648
671
  ],
672
+ "m-vector": [],
649
673
  "m-venn": [
650
674
  "fade",
651
675
  "draw"
@@ -681,6 +705,10 @@ export const PACK = {
681
705
  "tag": "m-ci",
682
706
  "set": "data"
683
707
  },
708
+ {
709
+ "tag": "m-classify2d",
710
+ "set": "ml"
711
+ },
684
712
  {
685
713
  "tag": "m-code",
686
714
  "set": "data"
@@ -689,6 +717,14 @@ export const PACK = {
689
717
  "tag": "m-compare",
690
718
  "set": "standard"
691
719
  },
720
+ {
721
+ "tag": "m-contour",
722
+ "set": "ml"
723
+ },
724
+ {
725
+ "tag": "m-ctable",
726
+ "set": "standard"
727
+ },
692
728
  {
693
729
  "tag": "m-curves",
694
730
  "set": "standard"
@@ -765,6 +801,14 @@ export const PACK = {
765
801
  "tag": "m-menu",
766
802
  "set": "standard"
767
803
  },
804
+ {
805
+ "tag": "m-network",
806
+ "set": "algo"
807
+ },
808
+ {
809
+ "tag": "m-nnet",
810
+ "set": "ml"
811
+ },
768
812
  {
769
813
  "tag": "m-numberline",
770
814
  "set": "math"
@@ -829,6 +873,10 @@ export const PACK = {
829
873
  "tag": "m-tree",
830
874
  "set": "standard"
831
875
  },
876
+ {
877
+ "tag": "m-vector",
878
+ "set": "standard"
879
+ },
832
880
  {
833
881
  "tag": "m-venn",
834
882
  "set": "standard"
@@ -839,13 +887,15 @@ export const PACK = {
839
887
  "m-collect",
840
888
  "m-kakijun"
841
889
  ],
842
- "partsSrc": "https://github.com/egatari/components/blob/v2.9.1/components/",
890
+ "partsSrc": "https://github.com/egatari/components/blob/v2.15.0/components/",
843
891
  "en": {
844
- "common": "# Instructions for the AI\n\nPack version: `3bcb89c8`\n\nYou will write one short **Egatari lesson**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep the lesson short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long lesson made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given a lesson that already has ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Lesson title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the lesson). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole lesson (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any lesson; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <lesson title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
892
+ "common": "# Instructions for the AI\n\nPack version: `049c5f95`\n\nYou will write one short **Egatari lesson**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep the lesson short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long lesson made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given a lesson that already has ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Lesson title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the lesson). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole lesson (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any lesson; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <lesson title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
845
893
  "request": "# What I want\n\n*(Fill in A or B and delete the other; delete fields you leave empty.)*\n\n**A. Make a new lesson**\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:\n\n**B. From the material and discussion in this chat**\n\nMake the lesson from the material given in this chat and what we have discussed so far.\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:",
846
894
  "sets": {
847
895
  "stats": "## Part set: stats (statistics charts)\n\nFor lessons and talks with data: distributions, box plots, heatmaps, and a distribution updated one observation at a time. Use the `default` theme. Give the source and the size of every data set on the slide or in the script, and never invent data that looks real (R-components).\n\n- **Axis charts** (<!--part:m-hist-->`m-hist`, <!--/part--><!--part:m-boxplot-->`m-boxplot`, <!--/part--><!--part:m-seq-->`m-seq`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
848
896
  "data": "## Part set: data (data science and code)\n\nFor information and data-science lessons (Information I, data science, programming). Give the source and the size of every data set on the slide or in the script (R-components). <!--part:m-code-->Show code with `m-code`.<!--/part-->\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
897
+ "algo": "## Part set: algo (algorithms)\n\nFor classes in computing or operations research that show a procedure one step at a time: graph search, shortest paths, tours. For the states and totals, write the output of a script that actually ran the procedure.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
898
+ "ml": "## Part set: ml (machine learning)\n\nFor machine-learning classes that show a computation one step at a time: a neural network's forward pass, classification boundaries, loss contours and gradient descent. For the values (weights, probabilities, iterates), write the output of a script that actually computed them.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
849
899
  "math": "## Part set: math (arithmetic and mathematics)\n\nFor arithmetic and mathematics lessons: column arithmetic, number lines, tape diagrams, and a function that changes with a parameter. Use the `default` theme.\n\n- **Axis charts** (<!--part:m-sweep-->`m-sweep`, <!--/part--><!--part:m-curves-->`m-curves`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### Worked example: math (English, default theme, m-sweep)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->Steps: the `m-sweep` with 3 values gives steps 1–2.<!--/part-->",
850
900
  "maps": "## Part set: maps\n\nFor lessons and guides with maps: geography, history and local information on a map of Japan or of the world. Use the `default` theme. Give the year and the source of every figure (population, area, production) on the slide or in the narration.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
851
901
  "kokugo": "## Part set: kokugo (Japanese language arts)\n\nFor 国語 lessons: 漢文, 古文 and 現代文. Use the `kokugo` theme. In the script, give the reading of hard words and names with `{display|reading}` (R-reading).\n\n- **Vertical slides:** `<section class=\"slide layout-tate\">` sets the whole slide in vertical writing. The `<h2>` is one vertical column at the right edge (about 14 full-width characters; it does not wrap), the body runs in columns from right to left, and the conclusion line is a vertical column at the left edge (about 19 characters). The body must stay between the two columns (the quality checker reports an overlap). Parts, figures and tables in the body stay horizontal at the full body width: use their vertical option (<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->, <!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->; `m-kanbun` is always vertical<!--/part-->).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### Worked example: kokugo (kokugo theme, m-kanbun)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->Steps: `m-kanbun` gives 訓点 (step 1), then one step per 句 of the reading order, then the 書き下し文: write one `[n]` per 句.<!--/part-->",
@@ -893,16 +943,32 @@ export const PACK = {
893
943
  "row": "| `<m-ci>` | Repeated z intervals | Axis → intervals → coverage (3) | `{mu:num,sigma:num,n:num,reps?:num,level?:num,seed?:num}` |",
894
944
  "entry": "### `<m-ci>`\n\nData example (child `<script type=\"application/json\">`): `{\"mu\":50,\"sigma\":10,\"n\":25,\"reps\":40,\"level\":0.95,\"seed\":2}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n\nJSON:\n- `mu`, `sigma`, `n`: mean, SD, size.\n- `reps` (40), `level` (.95), `seed`."
895
945
  },
946
+ "m-classify2d": {
947
+ "set": "ml",
948
+ "row": "| `<m-classify2d>` | sklearn classifiers in 2-D: regions, contours, SVs, Voronoi, tree splits, k-means | points → regions → contours → SVs | `{axes:{x:{label?,range:[num,num]},y:{label?,range:[num,num]}},classes?:{id:int,label?}[],points:(num\\|null)[][],grid?:{nx:int,ny:int,labels?:str\\|any[]},fields?:{name?:str,class?:int,values:any[],levels:num[],style?:(\"solid\"\\|\"dash\")[],labels?:bool}[],sv?:int[],voronoi?:{seeds:(num\\|null)[][]},tree?:{nodes:{id:str,feature?:0\\|1,threshold?:num,left?:str,right?:str,class?:int}[]},kmeans?:{iters:{centroids:[num,num][],assign:int[]}[]}}` |",
949
+ "entry": "### `<m-classify2d>`\n\nData example (child `<script type=\"application/json\">`): `{\"axes\":{\"x\":{\"label\":\"x₁\",\"range\":[0,4]},\"y\":{\"label\":\"x₂\",\"range\":[0,3]}},\"classes\":[{\"id\":0,\"label\":\"A\"},{\"id\":1,\"label\":\"B\"}],\"points\":[[1,1,0],[1.2,2,0],[2.8,1.1,1],[3.1,2.4,1]],\"grid\":{\"nx\":5,\"ny\":4,\"labels\":\"0*2 1*3 0*2 1*3 0*2 1*3 0*3 1*2\"}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `24` | text px |\n| `marker` | number | `8` | marker px |"
950
+ },
896
951
  "m-code": {
897
952
  "set": "data",
898
953
  "row": "| `<m-code>` | Code notes | Code → notes → output (n+1/+2) | `{code:str,lang?:str,output?:str,steps:{lines:(int\\|[int,int])[],note}[]}` |",
899
- "entry": "### `<m-code>`\n\nData example (child `<script type=\"application/json\">`): `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"Load pandas\"},{\"lines\":[2],\"note\":\"Read CSV\"},{\"lines\":[3],\"note\":\"Mean\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n| `outputPos` | enum | `\"auto\"` | Output |\n\n`<m-code>` child JSON.\n\n- `code`: ≤76 chars/line; height ≈ 132+34×lines+35×(list rows−1), ~40 chars/row; >440px: cut/split.\n- `lang`: tag; `steps[{lines,note}]`: 1-based, `\"lines\":[3]` or range `[3,4]`; note.\n- `output`: ≤8 lines.\n\nScript: explain each line; never read code aloud."
954
+ "entry": "### `<m-code>`\n\nData example (child `<script type=\"application/json\">`): `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"Load pandas\"},{\"lines\":[2],\"note\":\"Read CSV\"},{\"lines\":[3],\"note\":\"Mean\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n| `outputPos` | enum | `\"auto\"` | Output |\n\n`<m-code>` child JSON.\n\n- `code`: 440px shows 9 lines of 76 chars; longer lines wrap, more scroll in a window (≤16; else split).\n- `lang`; `steps[{lines,note}]`: `[3]`, range `[3,4]`, or 3+ lines `[2,5,9]`; notes ≤30 chars.\n- `output`: ≤8 lines.\n\nScript: explain each line; never read code aloud."
900
955
  },
901
956
  "m-compare": {
902
957
  "set": "standard",
903
958
  "row": "| `<m-compare>` | Table comparing 2–3 things: one column, the other, then row differences | columns + 1 (diff step; none if no diff/better) | `{sides:{label,tone?,step?}[],rows:{label?,values:(str\\|num)[],diff?:str,better?:int}[]}` |",
904
959
  "entry": "### `<m-compare>`\n\nData example (child `<script type=\"application/json\">`): `{\"sides\":[{\"label\":\"Paper form\",\"tone\":\"muted\"},{\"label\":\"Online form\"}],\"rows\":[{\"label\":\"Hours\",\"values\":[\"Weekdays 9–17\",\"24 h\"],\"better\":1,\"diff\":\"Any time\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `28` | value text px (shrinks to 24) |\n| `diff-label` | string | `\"\"` | diff column heading |\n\n<!--part:m-bars,m-kpi-->2–3 things on the same points (old vs new, A vs B). Bars: `m-bars`; one number: `m-kpi`.<!--/part-->\n\n- `sides`: 2 or 3; `label` = column heading; `tone` (`term`, `emph`, `muted`, `accent2`, `series-1..4`; default `term`, `accent2`, `series-4`); `muted` = old\n- `rows`: `label` = point (optional); `values` in column order (text/number; `\\n`), count = `sides` (else error card)\n- `diff`: short difference, `--emph`, right column\n- `better`: better column index (from 0): bold, `--emph` frame at diff step\n- Steps: column 1 (+ point names) → 2 → (3) → diffs; column `step` overrides\n- `variant`: `fade` (default), `slide`, `reveal` (row by row); same steps"
905
960
  },
961
+ "m-contour": {
962
+ "set": "ml",
963
+ "row": "| `<m-contour>` | Contours of f(x, y) by level, gradient arrows, a descent path by point | levels (all: 1) → gradient → path points | `{f?:str,label?,grid?:{nx:int,ny:int,values:any[]},range:{x:[num,num],y:[num,num]},axes?:{x?:str,y?:str},levels:num[],gradient?:{at:[num,num][],scale?:num,tangent?:bool},path?:[num,num][],monotone?:bool,equal?:bool} (f or grid)` |",
964
+ "entry": "### `<m-contour>`\n\nData example (child `<script type=\"application/json\">`): `{\"f\":\"x**2 + 3*y**2\",\"range\":{\"x\":[-3,3],\"y\":[-2,2]},\"levels\":[1,2,4,8],\"gradient\":{\"at\":[[1,1]]},\"path\":[[2.5,1.5],[1.5,0.3],[0.9,0.06]],\"monotone\":true}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `24` | text px |\n| `by` | enum | `\"level\"` | level or all |\n\n`f` (arithmetic in x, y) or a script's `grid`; `levels` (≤8), `gradient.at`, `path` from a script. Size: with `equal` and a square range, about 740 px wide for 440 px high (a panel on the right); to fill the width, widen x or set `equal: false`."
965
+ },
966
+ "m-ctable": {
967
+ "set": "standard",
968
+ "row": "| `<m-ctable>` | ANOVA, contingency and potential-outcome tables filled by step; sources, results and a formula line; arithmetic checked | fill stages | `{kind:\"anova\"\\|\"contingency\"\\|\"po\"\\|\"table\",rows?:(object\\|str\\|any[])[],cols?:str[],n?:num[][],margins?:bool,expected?:num[][],chi2?:num,or?:num,units?:{id?:str,t:0\\|1,y0:num,y1:num}[],ate?:num,naive?:num,header?:str[],note?}` |",
969
+ "entry": "### `<m-ctable>`\n\nData example (child `<script type=\"application/json\">`): `{\"kind\":\"anova\",\"rows\":[{\"name\":\"A\",\"ss\":120,\"df\":2,\"ms\":60,\"f\":7.5},{\"name\":\"E\",\"ss\":96,\"df\":12,\"ms\":8},{\"name\":\"T\",\"ss\":216,\"df\":14}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `digits` | number | `-1` | decimals |\n| `size` | number | `26` | text px |\n\nFrom a script; arithmetic checked. `kind`: anova, contingency, po, table.",
970
+ "paidOnly": true
971
+ },
906
972
  "m-curves": {
907
973
  "set": "standard",
908
974
  "row": "| `<m-curves>` | Lines drawn one at a time on shared axes, each named at its end (no legend) | largest step (default: number of series) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — the data is the array itself, not {\"series\": […]}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); the expression field is f in x (not fn, not u) |",
@@ -933,7 +999,7 @@ export const PACK = {
933
999
  },
934
1000
  "m-folds": {
935
1001
  "set": "data",
936
- "row": "| `<m-folds>` | Rotate validation folds | Rows → mean (k+1) | `{k:num,errors?:num[],labels?:str[]}` |",
1002
+ "row": "| `<m-folds>` | Rotate validation folds | Rows → mean (k+1) | `{k?:num,errors?:num[],labels?:str[],samples?:{class?:int,group?:str,t?:num\\|str}[],splits?:{test:int[],train?:int[]}[],splitter?:\"KFold\"\\|\"StratifiedKFold\"\\|\"GroupKFold\"\\|\"TimeSeriesSplit\"\\|\"ShuffleSplit\"\\|\"holdout\",classes?:{id:int,label?}[]} (k or splits)` |",
937
1003
  "entry": "### `<m-folds>`\n\nData example (child `<script type=\"application/json\">`): `{\"k\":5,\"errors\":[0.21,0.18,0.25,0.19,0.22],\"labels\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n\nJSON:\n- `k`: 2–10; k=5: ≥316px tall (264 without errors)\n- `errors`: k errors (optional).\n- `labels`: k names (optional)."
938
1004
  },
939
1005
  "m-gendai": {
@@ -954,7 +1020,7 @@ export const PACK = {
954
1020
  "m-hist": {
955
1021
  "set": "stats",
956
1022
  "row": "| `<m-hist>` | ヒストグラム・度数折れ線・ドットプロット。平均値・中央値・最頻値の線も | 分布(系列 1 つ = 1 ステップ)→ 度数折れ線 → 代表値を 1 つずつ | `{values?:num[],table?:{from:num,to:num,count:int}[],bins?:{start:num,width:num},series?:[{label?,tone?,values?:num[],table?:{from:num,to:num,count:int}[]} (values or table),…]} (values or table or series)` — raw values with bins {start, width} (the part counts), or a frequency table [{from, to, count}]; up to 2 series [{label, tone, values \\| table}] |",
957
- "entry": "### `<m-hist>`\n\nData example (child `<script type=\"application/json\">`): `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:パーツが数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
1023
+ "entry": "### `<m-hist>`\n\nData example (child `<script type=\"application/json\">`): `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:パーツが数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)。整数の値をその値の上に積むなら `bins` を書かない(書くと階級の中央に積む)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
958
1024
  "sup": true
959
1025
  },
960
1026
  "m-kanbun": {
@@ -980,12 +1046,12 @@ export const PACK = {
980
1046
  "m-map-japan": {
981
1047
  "set": "maps",
982
1048
  "row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — prefectures by JIS code \"01\"–\"47\" (or \"JP-13\", \"東京都\") in regions[].id; the 8 regions (hokkaido, tohoku, kanto, chubu, kinki, chugoku, shikoku, kyushu) in regions[].group; values is an object {code: number}; classes are the lower bounds of the classes (default 4, at most 5); points, shapes and flows[].via use lon/lat in degrees |",
983
- "entry": "### `<m-map-japan>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(挿入図なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1049
+ "entry": "### `<m-map-japan>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `territory-islands` | string | `\"auto\"` | 島の名前:auto(必要なときだけ)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(本当の位置)"
984
1050
  },
985
1051
  "m-map-world": {
986
1052
  "set": "maps",
987
1053
  "row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — countries by ISO alpha-3 or Natural Earth code (\"JPN\", \"USA\") or Japanese name; the six regions (asia, europe, africa, north-america, south-america, oceania) in regions[].group and categories[].ids; values is an object {code: number}; classes are the lower bounds (default 4, at most 5); points, shapes and [lon, lat] in flows use degrees |",
988
- "entry": "### `<m-map-world>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1054
+ "entry": "### `<m-map-world>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `territory-islands` | string | `\"auto\"` | 島の点:auto(描かない)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。"
989
1055
  },
990
1056
  "m-mapping": {
991
1057
  "set": "data",
@@ -1000,7 +1066,17 @@ export const PACK = {
1000
1066
  "m-menu": {
1001
1067
  "set": "standard",
1002
1068
  "row": "| `<m-menu>` | Grid of slide-link cards (contents); plain <a href=\"#<slide id>\">; visited mark | ceil(cards / per-step) (per-step=\"0\": 0) | child `<a href>` links (not JSON) |",
1003
- "entry": "### `<m-menu>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `cols` | number | `0` | columns (0 = auto) |\n| `per-step` | number | `0` | cards per step (0 = all, no steps) |\n| `size` | number | `34` | title px |\n| `visited` | bool | `true` | mark visited cards |\n\nContents; choosing where to start. Add the menu after import; in the first draft use a plain list.\n```html\n<m-menu cols=\"3\" aria-label=\"Today\">\n <a href=\"#s-njd4kp\" data-icon=\"1\" data-sub=\"Poet\">Poem A</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"2\" data-sub=\"Order\">Poem B</a>\n</m-menu>\n```\n\n- One child `<a href>` = one card. `href`: `#<slide id>` (step 0) or `#<id>:<step>` (`0`, `1`, … `concl`); ids are added on import; content = title\n- `data-icon`: circle text (`1`, `A`). `data-sub`: subtitle\n- `per-step=\"n\"`: n cards per step (from `data-from`); unshown cards inert. `0` = all at once\n- `cols` default: ≤ 3 cards 1 row, 4 → 2, more → 3. Min height `--mm-h` (104px), gap `--mm-gap` (18px). Fill, centred: `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1069
+ "entry": "### `<m-menu>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `cols` | number | `0` | columns (0 = auto) |\n| `per-step` | number | `0` | cards per step (0 = all, no steps) |\n| `size` | number | `34` | title px |\n| `visited` | bool | `true` | mark visited cards |\n\nContents; choosing where to start. Add the menu after import; in the first draft use a plain list.\n```html\n<m-menu cols=\"3\" aria-label=\"Today\">\n <a href=\"#s-njd4kp\" data-icon=\"1\" data-sub=\"Poet\">Poem A</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"2\" data-sub=\"Order\">Poem B</a>\n</m-menu>\n```\n\n- One child `<a href>` = one card. `href`: `#<slide id>` (step 0) or `#<id>:<step>` (`0`, `1`, … `concl`); ids are added on import; content = title\n- `data-icon`: circle text (`1`, `A`). `data-sub`: subtitle\n- `per-step=\"n\"`: n cards per step (from `data-from`). `0` = all at once\n- `cols` default: ≤ 3 cards 1 row, 4 → 2, more → 3. Min height `--mm-h` (104px), gap `--mm-gap` (18px). Fill, centred: `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1070
+ },
1071
+ "m-network": {
1072
+ "set": "algo",
1073
+ "row": "| `<m-network>` | Search, tours: current, frontier, visited, chosen edges, total | #steps | `{directed?:bool,complete?:bool,stochastic?:bool,frontierKind?:\"queue\"\\|\"stack\"\\|\"pq\"\\|\"set\",total?:{label?,unit?:str,digits?:int,check?:bool,of?:\"path\"\\|\"taken\"},nodes?:{id:str,x:num,y:num,label?,shape?:\"circle\"\\|\"ellipse\"\\|\"box\",observed?:bool}[],edges?:{from:str,to:str,w?:num,bi?:bool}[],plates?:{nodes:str[],label?}[],layout?:\"trellis\",states?:str[],T?:int,transitions?:{from:str,to:str,w?:num}[],steps:{current?:str\\|null,visited?:str[],frontier?:(str\\|any[])[],parent?:object,take?:[str,str][],drop?:[str,str][],total?:num,note?}[]} (nodes or layout)` |",
1074
+ "entry": "### `<m-network>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"A\",\"x\":0,\"y\":0},{\"id\":\"B\",\"x\":4,\"y\":0}],\"edges\":[{\"from\":\"A\",\"to\":\"B\",\"w\":4}],\"steps\":[{\"current\":\"A\",\"frontier\":[\"B\"]},{\"current\":\"B\",\"take\":[[\"A\",\"B\"]],\"total\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `24` | text px |\n| `weights` | bool | `true` | show w |\n\nFrom a script; 440px alone, 380px under text. Unset fields persist; `[[\"C\", 3]]` keyed; `take`/`drop` edit chosen edges. `total`: path to `current` if `parent`, else Σ taken `w` (`w` at its precision); counts: `total.check: false`. Graphical models: node `shape` (ellipse, box), `observed`; edge `bi`; `plates`. HMM: `layout: \"trellis\"`."
1075
+ },
1076
+ "m-nnet": {
1077
+ "set": "ml",
1078
+ "row": "| `<m-nnet>` | Network layers and the forward pass; neurons whole or split into Σ \\| f | input + 1 per whole, 2 per split layer | `{layers:{n:int,label?,names?:str[],act?:\"identity\"\\|\"step\"\\|\"relu\"\\|\"sigmoid\"\\|\"tanh\"\\|\"softmax\",form?:\"combined\"\\|\"split\"}[],weights?:num[][][],biases?:num[][],values?:{x?:num[],z?:num[][],a?:num[][]},steps?:{show?:\"x\",layer?:int,phase?:\"z\"\\|\"a\"\\|\"delta\"\\|\"grad\",open?:int,focus?:[int,int],note?}[]}` |",
1079
+ "entry": "### `<m-nnet>`\n\nData example (child `<script type=\"application/json\">`): `{\"layers\":[{\"n\":2,\"label\":\"Input\"},{\"n\":1,\"label\":\"Output\",\"act\":\"step\",\"form\":\"split\"}],\"weights\":[[[1,1]]],\"biases\":[[-1.5]],\"values\":{\"x\":[1,1],\"z\":[[0.5]],\"a\":[[1]]}}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `digits` | number | `2` | decimals |\n| `edges` | string | `\"plain\"` | plain \\| weight |\n| `size` | number | `24` | text px |\n\n<!--part:m-curves-->Values from a script; checked: z = W·a + b, a = f(z). Curves: m-curves. 480px+.<!--/part-->"
1004
1080
  },
1005
1081
  "m-numberline": {
1006
1082
  "set": "math",
@@ -1056,7 +1132,7 @@ export const PACK = {
1056
1132
  "m-sweep": {
1057
1133
  "set": "math",
1058
1134
  "row": "| `<m-sweep>` | パラメータを動かして関数の形の変化を見せる(前の形は灰色で残す) | values の数 − 1(at があれば 1) | attributes only (no JSON child): `values=\"[0,0.5,1]\" at=\"[0.5,3]\" point=\"{\"u\":9.8,\"label\":\"平均待ち {y} 日\",\"digits\":1}\"` |",
1059
- "entry": "### `<m-sweep>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `f` | string | `\"u*u\"` | 関数の式(算術の式。変数は横軸 u とパラメータ c。Math.exp(…) などの Math の関数と定数、+ - * / % **、比較と ? : が使える) |\n| `values` | json | `[0, 1]` | パラメータの値の列。ステップごとに次の値へ動く |\n| `param` | string | `\"c\"` | 表示するパラメータの名前 |\n| `xr` | json | `[-3, 3]` | x range [min, max] * |\n| `yr` | json | `[0, 10]` | y range [min, max] * |\n| `xt` | json | `[]` | x tick values * |\n| `yt` | json | `[]` | y tick values * |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `digits` | number | `2` | 表示する値の小数の桁数 |\n| `at` | json | `null` | 変化ごとの開始秒(増える順)。あれば全部をステップ 1 で |\n| `point` | | | |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n「φ が大きいほど〜」を目で確かめさせるときに使う。\n\n`f` の式の中では、動かす値はいつも `c` と書く(`param` は図に表示する名前だけ。`param=\"η\"` でも `f=\"u*u + c*u\"`)。\n\n`f` は算術の式(コードとしては実行しない):数、`u` と `c`、`Math.exp(…)` `Math.sin(…)` などの `Math` の関数と `Math.PI` などの定数、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。`-u ** 2` は `-(u ** 2)` か `(-u) ** 2` と書く。書けない式は図の代わりにエラーが出る。\n- `at=\"[0.5, 3]\"`:変化ごとの開始秒。あれば変化をすべてステップ 1 に入れる(音楽や口述に合わせる)\n- `point='{\"u\": 9.8, \"label\": \"平均待ち {y} 日\"}'`:u の所の曲線上の点。値が変わると曲線について動く。yr の外では隠して知らせる\n- `size=\"40\"`:字の大きさ(24 以上)",
1135
+ "entry": "### `<m-sweep>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `f` | string | `\"u*u\"` | 関数の式(算術の式。変数は横軸 u とパラメータ c。Math.exp(…) などの Math の関数と定数、+ - * / % **、比較と ? : が使える) |\n| `values` | json | `[0, 1]` | パラメータの値の列。ステップごとに次の値へ動く |\n| `param` | string | `\"c\"` | 表示するパラメータの名前 |\n| `xr` | json | `[-3, 3]` | x range [min, max] * |\n| `yr` | json | `[0, 10]` | y range [min, max] * |\n| `xt` | json | `[]` | x tick values * |\n| `yt` | json | `[]` | y tick values * |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `digits` | number | `2` | 表示する値の小数の桁数 |\n| `at` | json | `null` | 変化ごとの開始秒(増える順)。あれば全部をステップ 1 で |\n| `point` | | | |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n「φ が大きいほど〜」を目で確かめさせるときに使う。\n\n`f` の式の中では、動かす値はいつも `c` と書く(`param` は図に表示する名前だけ。`param=\"η\"` でも `f=\"u*u + c*u\"`)。\n\n`f` は算術の式(コードとしては実行しない):数、`u` と `c`、`Math.exp(…)` `Math.sin(…)` などの `Math` の関数と `Math.PI` などの定数、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。`-u ** 2` は `-(u ** 2)` か `(-u) ** 2` と書く。書けない式は図の代わりにエラーの表示が出る。\n- `at=\"[0.5, 3]\"`:変化ごとの開始秒。あれば変化をすべてステップ 1 に入れる(音楽や口述に合わせる)\n- `point='{\"u\": 9.8, \"label\": \"平均待ち {y} 日\"}'`:u の所の曲線上の点。値が変わると曲線について動く。yr の外では隠して知らせる\n- `size=\"40\"`:字の大きさ(24 以上)",
1060
1136
  "sup": true
1061
1137
  },
1062
1138
  "m-syntax": {
@@ -1071,8 +1147,8 @@ export const PACK = {
1071
1147
  },
1072
1148
  "m-timeline": {
1073
1149
  "set": "standard",
1074
- "row": "| `<m-timeline>` | Timeline; events one by one; periods as bands, overlaps stacked; end exclusive (\"1912\" = start of 1912) | event count (default 1 per step in time order; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
1075
- "entry": "### `<m-timeline>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"Meiji Restoration\",\"when\":\"1868\",\"whenLabel\":\"Meiji 1\"},{\"id\":\"b\",\"label\":\"Constitution\",\"when\":\"1889\",\"note\":\"Feb 11\"},{\"id\":\"c\",\"label\":\"Sino-Japanese War\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h or v |\n| `scale` | string | `\"time\"` | time or even |\n| `per-step` | number | `1` | events per step (0 = all) |\n| `size` | number | `26` | label px (shrinks to 24) |\n| `unit` | string | `\"\"` | ticks: day, week, month |\n| `today` | string | `\"\"` | today line (YYYY-MM-DD) |\n\nHistory, lives, schedules. No coordinates; content and times only.\n\n(`edges` optional).\n\n- `when`: number (`1868`, `-500`, `0.5`) or `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`; shown as the date line\n- `whenLabel`: text replacing the date (\"Meiji 1\"); `when` still sets position\n- `label` (`\\n`) or `tex` (KaTeX)\n- `note`: small last line in the box (`--muted`); after the name for periods/milestones\n- `tone`: `term` (default), `emph`, `muted`, `accent2`, `series-1..4`\n- `end`: period, a band below the axis; name inside (or beside); `\\n` names thicken it\n- `end` is exclusive: Meiji 1868–1912 and Taishō 1912–1926 share a row; through December = next month (`\"2027-01\"`)\n- `lane`: named group of rows (\"Eras\", \"Authors\"); overlaps stack within; `lane` without `end` = milestone (◆)\n- `step`, `at` (start s)\n- `edges`: extra links (`from` `to` `label` `tone` `dash` `step`); dashed arrows (`dash: false` solid)\n- Schedules: `after: [\"id\", …]` (arrow end→start), `progress` (0–100 %); `today` line; tick `unit`\n - `after` only between periods and milestones; `today` needs a period\n\nLayout:\n\n- `orient`: `h` (default) or `v`; `scale`: `time` (default) or `even` (very uneven gaps)\n- Events (no `end` or `lane`): axis dot plus date-and-name box, alternating sides (`v`: left/right); 2 rows when crowded\n- With periods: round ticks; event boxes all above the axis\n- Steps: time order, periods and events together; the axis comes with the first\n- `variant`: `fade` (default), `draw` (lines first, bands drawn), `grow` (boxes grow, bands stretch); same steps and end\n- Show later steps faintly (`ctx.preview`): later items faint\n- `cues(k)`: start times of 2nd+ items in a step (for `{cue}`)"
1150
+ "row": "| `<m-timeline>` | Timeline; events one by one; periods drawn along the axis, overlaps stacked; end exclusive (\"1912\" = start of 1912) | event count (default 1 per step in time order; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
1151
+ "entry": "### `<m-timeline>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"Meiji Restoration\",\"when\":\"1868\",\"whenLabel\":\"Meiji 1\"},{\"id\":\"b\",\"label\":\"Constitution\",\"when\":\"1889\",\"note\":\"Feb 11\"},{\"id\":\"c\",\"label\":\"Sino-Japanese War\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h or v |\n| `scale` | string | `\"time\"` | time or even |\n| `per-step` | number | `1` | events per step (0 = all) |\n| `size` | number | `26` | label px (shrinks to 24) |\n| `unit` | string | `\"\"` | ticks: day, week, month |\n| `today` | string | `\"\"` | today line (YYYY-MM-DD) |\n\nHistory, lives, schedules. No coordinates; content and times only.\n\n(`edges` optional).\n\n- `when`: number (`1868`, `-500`, `0.5`) or `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`; shown as the date line\n- `whenLabel`: text replacing the date (\"Meiji 1\"); `when` still sets position\n- `label` (`\\n`) or `tex` (KaTeX)\n- `note`: small last line in the box (`--muted`); after the name for periods/milestones\n- `tone`: `term` (default), `emph`, `muted`, `accent2`, `series-1..4`\n- `end`: a period, drawn along the axis below it; name inside (or beside); `\\n` names thicken it\n- `end` is exclusive: Meiji 1868–1912 and Taishō 1912–1926 share a row; through December = next month (`\"2027-01\"`)\n- `lane`: named group of rows (\"Eras\", \"Authors\"); overlaps stack within; `lane` without `end` = milestone (◆)\n- `step`, `at` (start s)\n- `edges`: extra links (`from` `to` `label` `tone` `dash` `step`); dashed arrows (`dash: false` solid)\n- Schedules: `after: [\"id\", …]` (arrow end→start), `progress` (0–100 %); `today` line; tick `unit`\n - `after` only between periods and milestones; `today` needs a period\n\nLayout:\n\n- `orient`: `h` (default) or `v`; `scale`: `time` (default) or `even` (very uneven gaps)\n- Events (no `end` or `lane`): axis dot plus date-and-name box, alternating sides (`v`: left/right); 2 rows when crowded\n- With periods: round ticks; event boxes all above the axis\n- Steps: time order, periods and events together; the axis comes with the first\n- `variant`: `fade` (default), `draw` (lines first, periods drawn), `grow` (boxes grow, periods stretch); same steps and end\n- Show later steps faintly (`ctx.preview`): later items faint\n- `cues(k)`: start times of 2nd+ items in a step (for `{cue}`)"
1076
1152
  },
1077
1153
  "m-timer": {
1078
1154
  "set": "tools",
@@ -1084,6 +1160,12 @@ export const PACK = {
1084
1160
  "row": "| `<m-tree>` | Hierarchy tree (org chart, taxonomy), built level by level from the root; auto layout | depth (by=\"level\") or node count (by=\"node\"); or the largest step | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — exactly one node without parent (the root) |",
1085
1161
  "entry": "### `<m-tree>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"r\",\"label\":\"Animals\"},{\"id\":\"a\",\"label\":\"Vertebrates\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"Invertebrates\",\"parent\":\"r\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down (default) or right |\n| `by` | string | `\"level\"` | level (default) or node (depth-first) |\n| `link` | string | `\"elbow\"` | elbow (default) or straight |\n| `size` | number | `0` | box text px (0 = 27, shrink to 24) |\n\nParent–child structures (org charts, taxonomies, outlines). No coordinates; laid out without overlaps.\n\n(`edges` optional).\n\n- node: `id`, `label` (`\\n`) or `tex` (KaTeX), `parent` (parent `id`; exactly one root without `parent`), `note` (small, **under** box), `tone` (`term` default, `emph`, `muted`, `accent2`, `series-1..4`), `step`, `at` (start s)\n- Children in array order; parent centred over them\n- edge: extra links (`from` `to` `label` `tone` `dash` `step`), dashed arrow outside the tree; best at same depth; step: later end\n- Child `branch`: line text (e.g. probability). `path`: root-first `id`s highlighted in turn (default 1 step per line, after the tree; `pathStep`: in one step; `pathNote`: end note)\n- `orient=\"right\"` for wide taxonomies. `by=\"node\"`: one at a time, depth-first (to follow a branch). Node `step` wins\n- Lines `--muted`, 3 px; `tone: emph` box: `--emph-tint` fill\n- Fit (~440 px high): ~8 four-character boxes per level (`down`), ~7 (`right`); ~5 levels. More leaves: 2 staggered rows (~16 / ~11), then 2-line names. Text ≥ 24 px; overflow spills, reported. Too many: split\n- `variant`: `fade` (default), `draw` (lines first), `grow`\n- Show later steps faintly (`ctx.preview`): later parts faint"
1086
1162
  },
1163
+ "m-vector": {
1164
+ "set": "standard",
1165
+ "row": "| `<m-vector>` | Plane vectors and 2 × 2 matrices step by step: ops, linear maps, eigenvectors, bases; formulas beside | vectors → each op → matrix → basis | `{range?:[num,num,num,num],vectors:{id:str,v:[num,num],label?,from?:[num,num]}[],ops?:[{sum?:[str,str],diff?:[str,str],scale?:[str\\|num,str\\|num],proj?:[str,str],dot?:[str,str],as?:str,label?,value?:num\\|num[],note?} (sum or diff or scale or proj or dot),…],matrix?:[[num,num],[num,num]],basis?:[[num,num],[num,num]],basisLabels?:[str,str],show?:(\"grid\"\\|\"unit\"\\|\"eigen\"\\|\"det\")[]}` |",
1166
+ "entry": "### `<m-vector>`\n\nData example (child `<script type=\"application/json\">`): `{\"range\":[-4,4,-3,3],\"vectors\":[{\"id\":\"a\",\"v\":[2,1],\"label\":\"*a*\"},{\"id\":\"b\",\"v\":[-1,2],\"label\":\"*b*\"}],\"ops\":[{\"sum\":[\"a\",\"b\"],\"as\":\"c\",\"label\":\"*a* + *b*\"},{\"dot\":[\"a\",\"b\"],\"value\":0}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | text px |\n\n`vectors` (`id`, `v`, `label`), `ops`: `sum`, `diff`, `scale` (`[\"a\", 2]`), `proj`, `dot`; `as` names a result; `value` is checked. Or `matrix` or `basis`.",
1167
+ "paidOnly": true
1168
+ },
1087
1169
  "m-venn": {
1088
1170
  "set": "standard",
1089
1171
  "row": "| `<m-venn>` | Venn of 2–3 sets, one by one; then overlaps with items | sets + 1 (overlaps=\"each\": sets + overlaps with items, or all overlaps if none) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
@@ -1096,11 +1178,13 @@ export const PACK = {
1096
1178
  "extHead": "### `<{name}>`: extension for this part set (the part is described in §3)"
1097
1179
  },
1098
1180
  "ja": {
1099
- "common": "# AI への指示\n\n指示のバージョン:`3bcb89c8`\n\n短い **Egatari の教材**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。教材は頼まれた言語で書きます(スライドと台本は同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、教材は短くする(5〜8 枚)。頼む文に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか頼まないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を頼まれたら(長い教材を 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の頼む文は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のある教材を渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` をそのまま残す\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>教材の題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(教材の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを足す(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点は教材全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどの教材でも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが加わる。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな教材の例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかのセットの指示の最後にも例がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1181
+ "common": "# AI への指示\n\n指示のバージョン:`049c5f95`\n\n短い **Egatari の教材**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。教材は頼まれた言語で書きます(スライドと台本は同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、教材は短くする(5〜8 枚)。頼む文に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか頼まないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を頼まれたら(長い教材を 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の頼む文は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のある教材を渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` をそのまま残す\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>教材の題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(教材の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを足す(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点は教材全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどの教材でも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが加わる。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな教材の例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかのセットの指示の最後にも例がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1100
1182
  "request": "# 頼みたいこと\n\n*(A か B を埋め、もう一方は消します。書かない項目は消してかまいません)*\n\n**A. 新しく作る**\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:\n\n**B. 渡した資料と話し合いの内容で作る**\n\nこのチャットで渡した資料と、ここまでの話し合いの内容で、教材を作ってください。\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:",
1101
1183
  "sets": {
1102
1184
  "stats": "## パーツのセット:stats(統計の図)\n\nデータを見せる教材・発表向け。分布、箱ひげ図、ヒートマップ、観測が 1 つずつ加わって変わる分布を見せる。テーマは `default`。データの出どころと数(何人・何件)をスライドか台本に書き、本物らしく見えるデータを作らない(R-components)。\n\n- **軸のある図**(<!--part:m-hist-->`m-hist`・<!--/part--><!--part:m-boxplot-->`m-boxplot`・<!--/part--><!--part:m-seq-->`m-seq`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1103
1185
  "data": "## パーツのセット:data(情報・データサイエンス)\n\n情報・データサイエンスの教材向け(情報I・データサイエンス・プログラミング)。データの出どころと数(何人・何件)をスライドか台本に書く(R-components)。<!--part:m-code-->コードは `m-code` で見せる。<!--/part-->\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1186
+ "algo": "## パーツのセット:algo(アルゴリズム)\n\n情報や経営工学(オペレーションズ・リサーチ)の授業で、グラフの探索・最短経路・巡回路などの手順を 1 ステップずつ見せるときに使う。状態と合計は、手順を実際に実行したスクリプトの出力を書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1187
+ "ml": "## パーツのセット:ml(機械学習)\n\n機械学習の授業で、ニューラルネットの順伝播・分類の境界・損失の等高線と勾配降下法などを 1 ステップずつ見せるときに使う。重み・確率・反復の点などの値は、実際に計算したスクリプトの出力を書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1104
1188
  "math": "## パーツのセット:math(算数・数学)\n\n算数・数学の教材向け。筆算、数直線、テープ図、パラメータで形の変わる関数を見せる。テーマは `default`。\n\n- **軸のある図**(<!--part:m-sweep-->`m-sweep`・<!--/part--><!--part:m-curves-->`m-curves`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### 例:算数・数学(英語・default テーマ・m-sweep)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->ステップの数え方:値が 3 つの `m-sweep` はステップ 1〜2。<!--/part-->",
1105
1189
  "maps": "## パーツのセット:maps(地図)\n\n地図を使う教材・案内向け(地理・歴史・地域の案内)。日本地図か世界地図を使う。テーマは `default`。数字(人口・面積・生産量など)には、何年の・どこの数字かをスライドか台本に書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1106
1190
  "kokugo": "## パーツのセット:kokugo(国語)\n\n国語(漢文・古文・現代文)の教材向け。テーマは `kokugo`。台本では、難しい語や名前に読み `{表示|読み}` を付ける(R-reading)。\n\n- **縦書きのスライド:**`<section class=\"slide layout-tate\">` でスライド全体を縦書きにする。`<h2>` は右端の縦 1 列(全角でおよそ 14 字。折り返さない)、本文は右から左へ列を重ね、結論の行は左端の縦 1 列(およそ 19 字)。本文は 2 つの列の間に収める(重なれば品質チェックが指摘する)。本文の中のパーツ・図・表は横書きのまま置かれるので、パーツの縦書きの指定を使う(<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->・<!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->。`m-kanbun` はいつも縦書き<!--/part-->)\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### 例:国語(kokugo テーマ・m-kanbun)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->ステップの数え方:`m-kanbun` は訓点(ステップ 1)、読む順は句ごとに 1 ステップ、最後に書き下し文。`[n]` は句ごとに書く。<!--/part-->",
@@ -1119,8 +1203,8 @@ export const PACK = {
1119
1203
  "m-bars": {
1120
1204
  "set": "standard",
1121
1205
  "row": "| `<m-bars>` | 棒をステップごとに 0 から伸ばす(縦棒・横棒・組の棒・積み上げ棒)。値の軸の上限をステップで広げて「軸を突き抜ける伸び」も見せられる | 組の step と scale の step の最大(既定は組 1 つ = 1 ステップ。per-step で n 組ずつ) | `{groups:[{label?,value?:num,values?:num[],err?:num\\|any[],step?,at?,tone?} (value or values),…],sig?:{from:int,to:int,group?:int,label?,step?}[],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
1122
- "entry": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い色で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `err`:± 数か `[下, 上]`(区間の端)。`values` の組では系列ごと。何の区間かは見出しか脚注に書く\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- `sig`:`[{\"from\": 0, \"to\": 2, \"label\": \"**\"}]` で組 0 と組 2 を括弧でつなぐ(`group` で組の中の系列どうし)。縦棒の、積み上げでない棒だけ\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする",
1123
- "free": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄い色で残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
1206
+ "entry": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄く塗って残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `err`:± 数か `[下, 上]`(区間の端)。`values` の組では系列ごと。何の区間かは見出しか脚注に書く\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- `sig`:`[{\"from\": 0, \"to\": 2, \"label\": \"**\"}]` で組 0 と組 2 を括弧でつなぐ(`group` で組の中の系列どうし)。縦棒の、積み上げでない棒だけ\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする",
1207
+ "free": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄く塗って残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
1124
1208
  },
1125
1209
  "m-boxplot": {
1126
1210
  "set": "stats",
@@ -1148,20 +1232,36 @@ export const PACK = {
1148
1232
  "row": "| `<m-ci>` | 正規標本の区間を重ね、母平均を含む割合で信頼水準を説明する | 軸と μ→区間を順に→含む数と外れの強調(3 ステップ) | `{mu:num,sigma:num,n:num,reps?:num,level?:num,seed?:num}` |",
1149
1233
  "entry": "### `<m-ci>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"mu\":50,\"sigma\":10,\"n\":25,\"reps\":40,\"level\":0.95,\"seed\":2}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は 26) |\n\n`<m-ci style=\"height:440px\">` の子に JSON を置く。\n\n- `mu`, `sigma`, `n`:母平均、正の母標準偏差、正の整数の標本数\n- `reps`:正の整数の区間数(40)。`level`:0〜1 の間(0.95)。`seed`:整数(2)"
1150
1234
  },
1235
+ "m-classify2d": {
1236
+ "set": "ml",
1237
+ "row": "| `<m-classify2d>` | scikit-learn の分類を 2 次元で描く。点・領域・境界・確率や決定関数の等高線・サポートベクトル・ボロノイ図・決定木の分割・k 平均法 | 点 → 領域 → 等高線 → サポートベクトル(決定木は分割 1 つずつ → 葉、k 平均法は割り当てと更新を交互に) | `{axes:{x:{label?,range:[num,num]},y:{label?,range:[num,num]}},classes?:{id:int,label?}[],points:(num\\|null)[][],grid?:{nx:int,ny:int,labels?:str\\|any[]},fields?:{name?:str,class?:int,values:any[],levels:num[],style?:(\"solid\"\\|\"dash\")[],labels?:bool}[],sv?:int[],voronoi?:{seeds:(num\\|null)[][]},tree?:{nodes:{id:str,feature?:0\\|1,threshold?:num,left?:str,right?:str,class?:int}[]},kmeans?:{iters:{centroids:[num,num][],assign:int[]}[]}}` |",
1238
+ "entry": "### `<m-classify2d>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"axes\":{\"x\":{\"label\":\"x₁\",\"range\":[0,4]},\"y\":{\"label\":\"x₂\",\"range\":[0,3]}},\"classes\":[{\"id\":0,\"label\":\"A\"},{\"id\":1,\"label\":\"B\"}],\"points\":[[1,1,0],[1.2,2,0],[2.8,1.1,1],[3.1,2.4,1]],\"grid\":{\"nx\":5,\"ny\":4,\"labels\":\"0*2 1*3 0*2 1*3 0*2 1*3 0*3 1*2\"}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `24` | 字の大きさ(px、24 以上) |\n| `marker` | number | `8` | 点の印の半径(px) |"
1239
+ },
1151
1240
  "m-code": {
1152
1241
  "set": "data",
1153
1242
  "row": "| `<m-code>` | 短いコードを行ごとに説明し、最後に出力を見せる | コード全体→説明を順に→出力(説明数+1、出力ありは+2) | `{code:str,lang?:str,output?:str,steps:{lines:(int\\|[int,int])[],note}[]}` |",
1154
- "entry": "### `<m-code>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"pandas を読み込む\"},{\"lines\":[2],\"note\":\"CSV を表として読む\"},{\"lines\":[3],\"note\":\"店ごとの平均\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は既定) |\n| `outputPos` | enum | `\"auto\"` | 出力の位置 |\n\n`<m-code style=\"height:440px\">` の子に JSON を置く。\n\n- `code`:1184px 幅・24px で半角約 76 字/行。高さ ≈ 132 + 34×行 + 35×(説明一覧の行 − 1)、一覧は 1 行約 40 字。440px を超すなら行を減らすか分ける\n- `lang`:言語のラベル。`steps[{lines,note}]`:行は 1 始まり、`\"lines\":[3]` か範囲 `[3,4]`(両端を含む)、短い説明\n- `output`:省略可の出力文字列(8 行まで)\n\n台本はコードを読み上げない。その行が何をするかを言葉で言う(変数名や記号は 1 つずつなら書いてよい)。"
1243
+ "entry": "### `<m-code>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"pandas を読み込む\"},{\"lines\":[2],\"note\":\"CSV を表として読む\"},{\"lines\":[3],\"note\":\"店ごとの平均\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は既定) |\n| `outputPos` | enum | `\"auto\"` | 出力の位置 |\n\n`<m-code style=\"height:440px\">` の子に JSON を置く。\n\n- `code`:440px で 9 行・1 行 76 字まで全部見える。長い行は折り返し、行が多ければステップごとにスクロールして見せる(16 行まで。超すなら分ける)\n- `lang`:言語名。`steps[{lines,note}]`:行は 1 始まり、`[3]`、範囲 `[3,4]`、飛び飛びは 3 つ以上 `[2,5,9]`。説明は 30 字まで\n- `output`:省略可の出力文字列(8 行まで)\n\n台本はコードを読み上げない。その行が何をするかを言葉で言う(変数名や記号は 1 つずつなら書いてよい)。"
1155
1244
  },
1156
1245
  "m-compare": {
1157
1246
  "set": "standard",
1158
1247
  "row": "| `<m-compare>` | 2 つ(3 つまで)を横に並べて比べる表。一方の列、もう一方の列、それから行ごとの違い | 列の数 + 1(違いのステップ。diff も better もなければ列の数だけ) | `{sides:{label,tone?,step?}[],rows:{label?,values:(str\\|num)[],diff?:str,better?:int}[]}` |",
1159
- "entry": "### `<m-compare>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"sides\":[{\"label\":\"紙の申請\",\"tone\":\"muted\"},{\"label\":\"オンライン申請\"}],\"rows\":[{\"label\":\"受付時間\",\"values\":[\"平日 9〜17 時\",\"24 時間\"],\"better\":1,\"diff\":\"いつでも出せる\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `28` | 値の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `diff-label` | string | `\"\"` | 違いの列の見出し(空なら「違い」) |\n\n従来の方法と新しい方法、A 案と B 案、植物の細胞と動物の細胞のように、2 つ(3 つまで)のものを同じ観点で並べて比べるときに使う。\n<!--part:m-bars,m-kpi-->量を棒の長さで比べるなら `m-bars`、数字を 1 つ大きく見せるなら `m-kpi`。<!--/part-->\n\n- `sides`:比べるもの(2 つか 3 つ)。`label` は列の見出し。`tone` は列の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は 1 つ目 `term`、2 つ目 `accent2`、3 つ目 `series-4`)。従来のものを `muted` にすると新しいものが目立つ\n- `rows`:比べる観点(行)。`label` は左端の観点の名前(なくてもよい)、`values` は列の順の値(字か数。`\\n` で改行。長ければ列の幅で折り返す)。`values` の数は `sides` の数と同じにする(違えば図の代わりにエラーが出る)\n- `diff`:その行の違いの一言。右端の「違い」の列に `--emph` で書く(列の見出しは `diff-label` で変えられる)\n- `better`:その行で良い方の列の番号(0 から。1 つ目の列が 0。列の数より小さい)。値を太字にし、違いのステップで `--emph` の枠で囲む\n- ステップ:既定は 1 つ目の列(観点の名前と一緒に)→ 2 つ目の列 →(3 つ目の列)→ 違い(`diff` の列と `better` の枠)。列の `step` でステップを変えられる(例:2 つの列を同じステップに)\n- 見せ方(`variant`):`fade`・`slide`・`reveal`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 字は `size`(既定 28 px)から 24 px まで縮めて要素の箱に収める。表は上にそろえ、余った高さは行に少し分ける"
1248
+ "entry": "### `<m-compare>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"sides\":[{\"label\":\"紙の申請\",\"tone\":\"muted\"},{\"label\":\"オンライン申請\"}],\"rows\":[{\"label\":\"受付時間\",\"values\":[\"平日 9〜17 時\",\"24 時間\"],\"better\":1,\"diff\":\"いつでも出せる\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `28` | 値の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `diff-label` | string | `\"\"` | 違いの列の見出し(空なら「違い」) |\n\n従来の方法と新しい方法、A 案と B 案、植物の細胞と動物の細胞のように、2 つ(3 つまで)のものを同じ観点で並べて比べるときに使う。\n<!--part:m-bars,m-kpi-->量を棒の長さで比べるなら `m-bars`、数字を 1 つ大きく見せるなら `m-kpi`。<!--/part-->\n\n- `sides`:比べるもの(2 つか 3 つ)。`label` は列の見出し。`tone` は列の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は 1 つ目 `term`、2 つ目 `accent2`、3 つ目 `series-4`)。従来のものを `muted` にすると新しいものが目立つ\n- `rows`:比べる観点(行)。`label` は左端の観点の名前(なくてもよい)、`values` は列の順の値(字か数。`\\n` で改行。長ければ列の幅で折り返す)。`values` の数は `sides` の数と同じにする(違えば図の代わりにエラーの表示が出る)\n- `diff`:その行の違いの一言。右端の「違い」の列に `--emph` で書く(列の見出しは `diff-label` で変えられる)\n- `better`:その行で良い方の列の番号(0 から。1 つ目の列が 0。列の数より小さい)。値を太字にし、違いのステップで `--emph` の枠で囲む\n- ステップ:既定は 1 つ目の列(観点の名前と一緒に)→ 2 つ目の列 →(3 つ目の列)→ 違い(`diff` の列と `better` の枠)。列の `step` でステップを変えられる(例:2 つの列を同じステップに)\n- 見せ方(`variant`):`fade`・`slide`・`reveal`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 字は `size`(既定 28 px)から 24 px まで縮めて要素の箱に収める。表は上にそろえ、余った高さは行に少し分ける"
1249
+ },
1250
+ "m-contour": {
1251
+ "set": "ml",
1252
+ "row": "| `<m-contour>` | 2 変数の関数の等高線を値ごとに引き、勾配の矢印と、勾配降下法などの反復の道を 1 点ずつ見せる | 等高線の値ごと(by=\"all\" なら 1)→ 勾配 → 道の点ごと | `{f?:str,label?,grid?:{nx:int,ny:int,values:any[]},range:{x:[num,num],y:[num,num]},axes?:{x?:str,y?:str},levels:num[],gradient?:{at:[num,num][],scale?:num,tangent?:bool},path?:[num,num][],monotone?:bool,equal?:bool} (f or grid)` |",
1253
+ "entry": "### `<m-contour>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"f\":\"x**2 + 3*y**2\",\"range\":{\"x\":[-3,3],\"y\":[-2,2]},\"levels\":[1,2,4,8],\"gradient\":{\"at\":[[1,1]]},\"path\":[[2.5,1.5],[1.5,0.3],[0.9,0.06]],\"monotone\":true}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `24` | 字の大きさ(px、24 以上) |\n| `by` | enum | `\"level\"` | 等高線を値ごとに 1 ステップ(level)か、まとめて 1 ステップ(all) |\n\n関数は式 `f`(`x` と `y` の算術の式)か、スクリプトが計算した格子の値 `grid` のどちらか。`levels`(8 個まで)、`gradient.at`(勾配の矢印を描く点)、`path`(反復の点。スクリプトの出力)。大きさの目安:`equal`(既定)で range が正方形なら、図は(高さ − 約 95px)の正方形で左に寄り、右に 240px 以上空けば関数の名前と反復ごとの f の欄になる。高さ 440px なら幅 740px ほど(右に別の字や図を並べる)。横いっぱいに使うなら range の x を広げるか `equal: false`。"
1254
+ },
1255
+ "m-ctable": {
1256
+ "set": "standard",
1257
+ "row": "| `<m-ctable>` | 分散分析表・分割表・潜在結果の表を、ステップごとに埋める。使ったセルと埋めたセルを示し、表の下に式。計算を確かめる | 埋めるステップの数(anova は値の列の数、contingency は計・期待度数・χ²・オッズ比、po は 3) | `{kind:\"anova\"\\|\"contingency\"\\|\"po\"\\|\"table\",rows?:(object\\|str\\|any[])[],cols?:str[],n?:num[][],margins?:bool,expected?:num[][],chi2?:num,or?:num,units?:{id?:str,t:0\\|1,y0:num,y1:num}[],ate?:num,naive?:num,header?:str[],note?}` |",
1258
+ "entry": "### `<m-ctable>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"kind\":\"anova\",\"rows\":[{\"name\":\"要因 A\",\"ss\":120,\"df\":2,\"ms\":60,\"f\":7.5},{\"name\":\"誤差\",\"ss\":96,\"df\":12,\"ms\":8},{\"name\":\"全体\",\"ss\":216,\"df\":14}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `digits` | number | `-1` | 値の小数の桁(−1 は書いた値の桁のまま) |\n| `size` | number | `26` | 字の大きさ(px、24 以上) |\n\n値は計算を走らせたスクリプトの出力を書く。パーツは和・平方和÷自由度・F・期待度数・χ²・オッズ比・個人の効果を確かめる。`kind`:`anova`・`contingency`・`po`・`table`。",
1259
+ "paidOnly": true
1160
1260
  },
1161
1261
  "m-curves": {
1162
1262
  "set": "standard",
1163
1263
  "row": "| `<m-curves>` | 同じ座標軸に線を 1 本ずつ引く(線の名前は凡例でなく線の端に直接書く) | step の最大(既定は系列の数) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — データは配列そのもの({\"series\": […]} ではない)。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。式の欄は f で、変数は x(fn・u ではない) |",
1164
- "entry": "### `<m-curves>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 ステップ(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。台本の [n] はこのステップに合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前 |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `area` / `areaLabel` | 塗る区間 `[a, b]`(複数可、null は端)とラベル |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`size=\"40\"`:字の大きさ(24 以上)。\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式は図の代わりにエラーが出る。",
1264
+ "entry": "### `<m-curves>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 ステップ(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。台本の [n] はこのステップに合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前 |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `area` / `areaLabel` | 塗る区間 `[a, b]`(複数可、null は端)とラベル |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`size=\"40\"`:字の大きさ(24 以上)。\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式はエラーの表示になる。",
1165
1265
  "sup": true
1166
1266
  },
1167
1267
  "m-cycle": {
@@ -1189,8 +1289,8 @@ export const PACK = {
1189
1289
  },
1190
1290
  "m-folds": {
1191
1291
  "set": "data",
1192
- "row": "| `<m-folds>` | k 分割交差検証のフォールドを順に替え、各分割の誤差と平均を示す | 分割を 1 行ずつ→平均(k + 1 ステップ) | `{k:num,errors?:num[],labels?:str[]}` |",
1193
- "entry": "### `<m-folds>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"k\":5,\"errors\":[0.21,0.18,0.25,0.19,0.22],\"labels\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は 26) |\n\n`<m-folds style=\"height:440px\">` の子に JSON を置く。\n\n- `k`:分割数 2〜10 の整数。既定文字で k = 5 は高さ 316px 以上(誤差なし 264px)\n- `errors`:省略可。k 個の非負誤差\n- `labels`:省略可。k 個のフォールドの名前(既定 1〜k)"
1292
+ "row": "| `<m-folds>` | データを k 個に分けた 1 つ(フォールド)を検証に使い、検証に使うフォールドを順に替えて、各分割の誤差と平均を示す | 分割を 1 行ずつ→平均(k + 1 ステップ) | `{k?:num,errors?:num[],labels?:str[],samples?:{class?:int,group?:str,t?:num\\|str}[],splits?:{test:int[],train?:int[]}[],splitter?:\"KFold\"\\|\"StratifiedKFold\"\\|\"GroupKFold\"\\|\"TimeSeriesSplit\"\\|\"ShuffleSplit\"\\|\"holdout\",classes?:{id:int,label?}[]} (k or splits)` |",
1293
+ "entry": "### `<m-folds>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"k\":5,\"errors\":[0.21,0.18,0.25,0.19,0.22],\"labels\":[\"1\",\"2\",\"3\",\"4\",\"5\"]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は 26) |\n\n`<m-folds style=\"height:440px\">` の子に JSON を置く。\n\n- `k`:分割数 2〜10 の整数。既定文字で k = 5 は高さ 316px 以上(誤差なし 264px)\n- `errors`:省略可。k 個の非負誤差\n- `labels`:省略可。k 個のフォールド名(既定 1〜k)"
1194
1294
  },
1195
1295
  "m-gendai": {
1196
1296
  "set": "kokugo",
@@ -1210,7 +1310,7 @@ export const PACK = {
1210
1310
  "m-hist": {
1211
1311
  "set": "stats",
1212
1312
  "row": "| `<m-hist>` | ヒストグラム・度数折れ線・ドットプロット。平均値・中央値・最頻値の線も | 分布(系列 1 つ = 1 ステップ)→ 度数折れ線 → 代表値を 1 つずつ | `{values?:num[],table?:{from:num,to:num,count:int}[],bins?:{start:num,width:num},series?:[{label?,tone?,values?:num[],table?:{from:num,to:num,count:int}[]} (values or table),…]} (values or table or series)` — 生の値と階級 {start, width}(パーツが数える)か、度数分布表 [{from, to, count}]。系列は 2 つまで [{label, tone, values か table}] |",
1213
- "entry": "### `<m-hist>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:パーツが数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
1313
+ "entry": "### `<m-hist>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"values\":[23,31,27,18,25,29,33,22,26,28],\"bins\":{\"start\":15,\"width\":5}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければ階級から) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければ度数から) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ階級の境) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `unit` | string | `\"\"` | 代表値の数の後ろに付ける単位 |\n| `digits` | number | | 代表値の小数桁(書かなければ値の桁+1 まで) |\n| `polygon` | string | `\"off\"` | on:度数折れ線 |\n| `relative` | string | `\"off\"` | on:相対度数 |\n| `cumulative` | string | `\"off\"` | on:累積度数 |\n| `kind` | string | `\"bars\"` | bars(柱状グラフ)か dots(ドットプロット) |\n| `marks` | string | `\"\"` | 代表値の印:mean,median,mode のどれか(書いた順に 1 つずつ) |\n| `build` | string | `\"whole\"` | whole・values(値を 1 つずつ数える)・bins(階級を 1 つずつ) |\n\n子の JSON の並び:パーツが数える。か `{\"table\": [{\"from\", \"to\", \"count\"}]}`。2 組なら `\"series\": [{\"label\", \"values\" か \"table\"}]`(重ねる)。\n\n- 階級は start 以上 start+width 未満\n- `kind=\"dots\"`:ドットプロット(values が要る)。整数の値をその値の上に積むなら `bins` を書かない(書くと階級の中央に積む)\n- `polygon` `relative` `cumulative`:`\"on\"`\n- `marks=\"mean,median,mode\"`:代表値の線\n- `build=\"values\"`:値を 1 つずつ積む。`\"bins\"`:階級を 1 つずつ",
1214
1314
  "sup": true
1215
1315
  },
1216
1316
  "m-kanbun": {
@@ -1231,21 +1331,21 @@ export const PACK = {
1231
1331
  "m-kpi": {
1232
1332
  "set": "standard",
1233
1333
  "row": "| `<m-kpi>` | 大きな数字のカード(KPI)をステップごとに出す。数字は数え上げ、下に増減の矢印と一言 | カードの step の最大(既定はカード 1 枚 = 1 ステップ。per-step で n 枚ずつ) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,tone?,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?,step?,at?}[]}` |",
1234
- "entry": "### `<m-kpi>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行のカードの数(0 = カードの数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(カードの digits が優先) |\n| `per-step` | number | `1` | 1 ステップに出すカードの数(0 = 全部をステップ 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = カードの高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\n- `label`:カードの上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`+` `約` など)。負の `value` は自分で − が付くので、`prefix` に `−` を重ねない(`\"prefix\": \"−\"` と `-12` は「−−12」)。減った量を正の数で見せるときだけ `value` を正にして `prefix: \"−\"`\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字とカードの上のバーの色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:カードの下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- カードの並び:`cols`(既定はカードの数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じステップに 2 枚以上のカードがあれば、2 枚目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
1334
+ "entry": "### `<m-kpi>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行のカードの数(0 = カードの数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(カードの digits が優先) |\n| `per-step` | number | `1` | 1 ステップに出すカードの数(0 = 全部をステップ 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = カードの高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\nカードごとに `step`・`at` も書ける。\n\n- `label`:カードの上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`+` `約` など)。負の `value` は自分で − が付くので、`prefix` に `−` を重ねない(`\"prefix\": \"−\"` と `-12` は「−−12」)。減った量を正の数で見せるときだけ `value` を正にして `prefix: \"−\"`\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字とカードの上の線の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:カードの下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- カードの並び:`cols`(既定はカードの数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じステップに 2 枚以上のカードがあれば、2 枚目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
1235
1335
  },
1236
1336
  "m-map-japan": {
1237
1337
  "set": "maps",
1238
1338
  "row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 都道府県は regions[].id に JIS の番号 \"01\"〜\"47\"(\"JP-13\"・\"東京都\" も可)、八地方区分は regions[].group(hokkaido・tohoku・kanto・chubu・kinki・chugoku・shikoku・kyushu)。values は {番号: 数} のオブジェクト、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows[].via は経度・緯度(度) |",
1239
- "entry": "### `<m-map-japan>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n地理・歴史の授業で場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(挿入図なし、本当の位置)\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1339
+ "entry": "### `<m-map-japan>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `territory-islands` | string | `\"auto\"` | 島の名前:auto(必要なときだけ)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(本当の位置)"
1240
1340
  },
1241
1341
  "m-map-world": {
1242
1342
  "set": "maps",
1243
1343
  "row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 国・地域は ISO の 3 文字か Natural Earth の符号(\"JPN\"・\"USA\")か日本語の名前。六州(asia・europe・africa・north-america・south-america・oceania)は regions[].group と categories[].ids に。values は {符号: 数}、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows の [経度, 緯度] は度 |",
1244
- "entry": "### `<m-map-world>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n世界地理・歴史の授業で国や都市の場所を示すときに使う。子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。\n\n地図データ:Natural Earth(パブリックドメイン)を加工。"
1344
+ "entry": "### `<m-map-world>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `territory-islands` | string | `\"auto\"` | 島の点:auto(描かない)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。"
1245
1345
  },
1246
1346
  "m-mapping": {
1247
1347
  "set": "data",
1248
- "row": "| `<m-mapping>` | 実験の結果を数値へ対応させ、同じ値になる結果をまとめて確率分布を作る | 結果のカード→対応の矢印→同じ値の色と個数・確率の和→分布の横棒の 4 ステップ | `{outcomes:{label,x:num,p?:num,balls?:str[]}[],name?:str,unit?:str,fractions?:bool,picture?:\"dots\"\\|\"dice\"\\|\"coins\"\\|\"grapes\"\\|\"balls\"}` |",
1348
+ "row": "| `<m-mapping>` | 実験の結果を数値へ対応させ、同じ値になる結果をまとめて確率分布を作る | 結果のラベル→対応の矢印→同じ値の色と個数・確率の和→分布の横棒の 4 ステップ | `{outcomes:{label,x:num,p?:num,balls?:str[]}[],name?:str,unit?:str,fractions?:bool,picture?:\"dots\"\\|\"dice\"\\|\"coins\"\\|\"grapes\"\\|\"balls\"}` |",
1249
1349
  "entry": "### `<m-mapping>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `stagger` | number | `0.15` | ステップ 2 の矢印ごとの開始のずれ(秒。0 以上) |\n| `digits` | number | `2` | 分数でない確率の小数桁(0〜10 の整数) |\n| `size` | number | `0` | 文字の大きさ(px。0 は既定の 26、指定時は 24 以上) |\n\n確率変数を「結果を数に対応させる規則」として見せる(結果 → 値 → 分布)。\n\n```html\n<m-mapping style=\"height:440px\"><script type=\"application/json\">{\"outcomes\":[{\"label\":\"表表\",\"x\":2},{\"label\":\"表裏\",\"x\":1},{\"label\":\"裏表\",\"x\":1},{\"label\":\"裏裏\",\"x\":0}],\"picture\":\"coins\"}</script></m-mapping>\n```\n\n- `outcomes`:2〜12 個。`label`、`x`(数)、`p`(省略すれば等確率。合計が 1 でなければ知らせる)\n- `name`(既定 X)・`fractions`(既約分数)\n- `picture`:`dots`・`grapes`(x 個)・`dice`(label の目)・`coins`(◯表 ●裏)・`balls`(色の名前の列。基本の 11 色、名前も書く)"
1250
1350
  },
1251
1351
  "m-market": {
@@ -1255,8 +1355,18 @@ export const PACK = {
1255
1355
  },
1256
1356
  "m-menu": {
1257
1357
  "set": "standard",
1258
- "row": "| `<m-menu>` | スライドへのリンクのカードを格子に並べる(目次・単元の選び方)。カードはふつうの <a href=\"#<スライドの id>\">、行ったスライドのカードに「見た」の印 | ceil(カードの数 / per-step)(既定の per-step=\"0\" なら 0:初めから全部) | 子の `<a href>`(JSON ではない) |",
1259
- "entry": "### `<m-menu>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 列の数(0 ならカードの数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列) |\n| `per-step` | number | `0` | 1 ステップに出すカードの数(0 なら初めから全部出し、ステップを使わない) |\n| `size` | number | `34` | カードの題の字の大きさ(px)。副題はその 0.8 倍(本文の下限の 27px より小さくしない) |\n| `visited` | bool | `true` | このセッションで行き先のスライドを開いたカードに「見た」の印を付ける |\n\n目次、授業の単元の選び方、「どこから見るか」を選ばせる 1 枚に使う。目次は取り込んだ後に足す。初稿では普通の箇条書き。\n```html\n<m-menu cols=\"3\" aria-label=\"今日の内容\">\n <a href=\"#s-njd4kp\" data-icon=\"一\" data-sub=\"孟浩然\">春暁</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"二\" data-sub=\"読む順から\">春望</a>\n</m-menu>\n```\n\n- 子の `<a href>` 1 つがカード 1 枚。`href` は `#<スライドの id>`(そのステップ 0)か `#<id>:<ステップのキー>`(`0`・`1`・… か `concl`)。id は取り込みのときに付く。中身(文字・`<b>` など)がカードの題になる\n- `data-icon`:題の左の丸に入れる短い字(`一`・`1`・`A` など。色は `--term`)。`data-sub`:題の下の副題(`--muted`)\n- ステップ:`per-step=\"n\"` ならカードが n 枚ずつステップごとに出る(`data-from` から。同じステップの中は `stagger` 秒ずつずれる)。まだ出ていないカードは押せず、Tab でも選べず、読み上げない。\n `per-step=\"0\"`(既定)なら初めから全部(ステップを使わない)。ステップは (k, t) だけで決まる\n- 並び:`cols`(既定はカードの数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)。カードの高さの下限は CSS の `--mm-h`(既定 104px)、間は `--mm-gap`(18px)。\n 本文いっぱいに置いて縦の真ん中にそろえるなら `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1358
+ "row": "| `<m-menu>` | スライドへのリンクのカードを格子に並べる(目次・単元の選び方)。カードは <a href=\"#<スライドの id>\">、行ったスライドに「見た」の印 | ceil(カードの数 / per-step)(既定の per-step=\"0\" なら 0:初めから全部) | 子の `<a href>`(JSON ではない) |",
1359
+ "entry": "### `<m-menu>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 列の数(0 ならカードの数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列) |\n| `per-step` | number | `0` | 1 ステップに出すカードの数(0 なら初めから全部出し、ステップを使わない) |\n| `size` | number | `34` | カードの題の字の大きさ(px)。副題はその 0.8 倍(本文の下限の 27px より小さくしない) |\n| `visited` | bool | `true` | このセッションで行き先のスライドを開いたカードに「見た」の印を付ける |\n\n目次、授業の単元の選び方、「どこから見るか」を選ばせる 1 枚に使う。目次は取り込んだ後に足す。初稿では普通の箇条書き。\n```html\n<m-menu cols=\"3\" aria-label=\"今日の内容\">\n <a href=\"#s-njd4kp\" data-icon=\"一\" data-sub=\"孟浩然\">春暁</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"二\" data-sub=\"読む順から\">春望</a>\n</m-menu>\n```\n\n- 子の `<a href>` 1 つがカード 1 枚。`href` は `#<スライドの id>`(そのステップ 0)か `#<id>:<ステップのキー>`(`0`・`1`・… か `concl`)。id は取り込みのときに付く。中身(文字・`<b>` など)がカードの題になる\n- `data-icon`:題の左の丸に入れる短い字(`一`・`1`・`A` など。色は `--term`)。`data-sub`:題の下の副題(`--muted`)\n- ステップ:`per-step=\"n\"` ならカードが n 枚ずつステップごとに出る(`data-from` から。同じステップの中は `stagger` 秒ずつずれる)。\n `per-step=\"0\"`(既定)なら初めから全部(ステップを使わない)。ステップは (k, t) だけで決まる\n- 並び:`cols`(既定はカードの数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)。カードの高さの下限は CSS の `--mm-h`(既定 104px)、間は `--mm-gap`(18px)。\n 本文いっぱいに置いて縦の真ん中にそろえるなら `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1360
+ },
1361
+ "m-network": {
1362
+ "set": "algo",
1363
+ "row": "| `<m-network>` | グラフの探索(幅優先・ダイクストラなど)や巡回路を 1 ステップずつ。今の頂点・候補・訪れた頂点、選んだ辺、合計 | steps の数 | `{directed?:bool,complete?:bool,stochastic?:bool,frontierKind?:\"queue\"\\|\"stack\"\\|\"pq\"\\|\"set\",total?:{label?,unit?:str,digits?:int,check?:bool,of?:\"path\"\\|\"taken\"},nodes?:{id:str,x:num,y:num,label?,shape?:\"circle\"\\|\"ellipse\"\\|\"box\",observed?:bool}[],edges?:{from:str,to:str,w?:num,bi?:bool}[],plates?:{nodes:str[],label?}[],layout?:\"trellis\",states?:str[],T?:int,transitions?:{from:str,to:str,w?:num}[],steps:{current?:str\\|null,visited?:str[],frontier?:(str\\|any[])[],parent?:object,take?:[str,str][],drop?:[str,str][],total?:num,note?}[]} (nodes or layout)` |",
1364
+ "entry": "### `<m-network>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"A\",\"x\":0,\"y\":0},{\"id\":\"B\",\"x\":4,\"y\":0}],\"edges\":[{\"from\":\"A\",\"to\":\"B\",\"w\":4}],\"steps\":[{\"current\":\"A\",\"frontier\":[\"B\"]},{\"current\":\"B\",\"take\":[[\"A\",\"B\"]],\"total\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `24` | 字の大きさ(px、24 以上) |\n| `weights` | bool | `true` | 辺の重みを書く |\n\n状態と合計は、探索を走らせたスクリプトの出力を書く。高さは本文がこの図だけなら 440px、上に文があれば 380px。書かない欄は前のステップのまま。優先度付きの `frontier` は `[[\"C\", 3]]`、`take`・`drop` は選んだ辺を増減する。`total` は `parent` があれば `current` までの道のり、なければ選んだ辺の `w` の和(`w` は `total` と同じ桁で書く)。数など和でない `total` には `total.check: false`。グラフィカルモデル・パス図:node の `shape`(`ellipse`・`box`)と `observed`、辺の `bi`、`plates`。HMM の格子は `layout: \"trellis\"`。"
1365
+ },
1366
+ "m-nnet": {
1367
+ "set": "ml",
1368
+ "row": "| `<m-nnet>` | ニューラルネットの層を並べ、前向きの計算を層ごとに見せる。ニューロンはまとめた丸か、Σ(重み付きの和)と f(活性化関数)に分けた形 | 入力 1 + まとめた層 1・分けた層 2(steps を書けばその数) | `{layers:{n:int,label?,names?:str[],act?:\"identity\"\\|\"step\"\\|\"relu\"\\|\"sigmoid\"\\|\"tanh\"\\|\"softmax\",form?:\"combined\"\\|\"split\"}[],weights?:num[][][],biases?:num[][],values?:{x?:num[],z?:num[][],a?:num[][]},steps?:{show?:\"x\",layer?:int,phase?:\"z\"\\|\"a\"\\|\"delta\"\\|\"grad\",open?:int,focus?:[int,int],note?}[]}` |",
1369
+ "entry": "### `<m-nnet>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"layers\":[{\"n\":2,\"label\":\"入力層\"},{\"n\":1,\"label\":\"出力層\",\"act\":\"step\",\"form\":\"split\"}],\"weights\":[[[1,1]]],\"biases\":[[-1.5]],\"values\":{\"x\":[1,1],\"z\":[[0.5]],\"a\":[[1]]}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `digits` | number | `2` | 値の小数の桁 |\n| `edges` | string | `\"plain\"` | 辺の描き方:plain(細い線)か weight(重みの大きさで太さ、符号で実線と点線) |\n| `size` | number | `24` | 字の大きさ(px、24 以上) |\n\n値(重み・バイアス・z・a)は計算を走らせたスクリプトの出力を書く。パーツは z = W·a + b と a = f(z) を確かめる。<!--part:m-curves-->活性化関数の曲線は m-curves で描く。<!--/part-->高さ 480px 以上。"
1260
1370
  },
1261
1371
  "m-numberline": {
1262
1372
  "set": "math",
@@ -1313,7 +1423,7 @@ export const PACK = {
1313
1423
  "m-sweep": {
1314
1424
  "set": "math",
1315
1425
  "row": "| `<m-sweep>` | パラメータを動かして関数の形の変化を見せる(前の形は灰色で残す) | values の数 − 1(at があれば 1) | 属性だけ(JSON の子なし): `values=\"[0,0.5,1]\" at=\"[0.5,3]\" point=\"{\"u\":9.8,\"label\":\"平均待ち {y} 日\",\"digits\":1}\"` |",
1316
- "entry": "### `<m-sweep>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `f` | string | `\"u*u\"` | 関数の式(算術の式。変数は横軸 u とパラメータ c。Math.exp(…) などの Math の関数と定数、+ - * / % **、比較と ? : が使える) |\n| `values` | json | `[0, 1]` | パラメータの値の列。ステップごとに次の値へ動く |\n| `param` | string | `\"c\"` | 表示するパラメータの名前 |\n| `xr` | json | `[-3, 3]` | 横軸の範囲 [min, max] * |\n| `yr` | json | `[0, 10]` | 縦軸の範囲 [min, max] * |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `digits` | number | `2` | 表示する値の小数の桁数 |\n| `at` | json | `null` | 変化ごとの開始秒(増える順)。あれば全部をステップ 1 で |\n| `point` | | | |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n「φ が大きいほど〜」を目で確かめさせるときに使う。\n\n`f` の式の中では、動かす値はいつも `c` と書く(`param` は図に表示する名前だけ。`param=\"η\"` でも `f=\"u*u + c*u\"`)。\n\n`f` は算術の式(コードとしては実行しない):数、`u` と `c`、`Math.exp(…)` `Math.sin(…)` などの `Math` の関数と `Math.PI` などの定数、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。`-u ** 2` は `-(u ** 2)` か `(-u) ** 2` と書く。書けない式は図の代わりにエラーが出る。\n- `at=\"[0.5, 3]\"`:変化ごとの開始秒。あれば変化をすべてステップ 1 に入れる(音楽や口述に合わせる)\n- `point='{\"u\": 9.8, \"label\": \"平均待ち {y} 日\"}'`:u の所の曲線上の点。値が変わると曲線について動く。yr の外では隠して知らせる\n- `size=\"40\"`:字の大きさ(24 以上)",
1426
+ "entry": "### `<m-sweep>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `f` | string | `\"u*u\"` | 関数の式(算術の式。変数は横軸 u とパラメータ c。Math.exp(…) などの Math の関数と定数、+ - * / % **、比較と ? : が使える) |\n| `values` | json | `[0, 1]` | パラメータの値の列。ステップごとに次の値へ動く |\n| `param` | string | `\"c\"` | 表示するパラメータの名前 |\n| `xr` | json | `[-3, 3]` | 横軸の範囲 [min, max] * |\n| `yr` | json | `[0, 10]` | 縦軸の範囲 [min, max] * |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `digits` | number | `2` | 表示する値の小数の桁数 |\n| `at` | json | `null` | 変化ごとの開始秒(増える順)。あれば全部をステップ 1 で |\n| `point` | | | |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n「φ が大きいほど〜」を目で確かめさせるときに使う。\n\n`f` の式の中では、動かす値はいつも `c` と書く(`param` は図に表示する名前だけ。`param=\"η\"` でも `f=\"u*u + c*u\"`)。\n\n`f` は算術の式(コードとしては実行しない):数、`u` と `c`、`Math.exp(…)` `Math.sin(…)` などの `Math` の関数と `Math.PI` などの定数、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。`-u ** 2` は `-(u ** 2)` か `(-u) ** 2` と書く。書けない式は図の代わりにエラーの表示が出る。\n- `at=\"[0.5, 3]\"`:変化ごとの開始秒。あれば変化をすべてステップ 1 に入れる(音楽や口述に合わせる)\n- `point='{\"u\": 9.8, \"label\": \"平均待ち {y} 日\"}'`:u の所の曲線上の点。値が変わると曲線について動く。yr の外では隠して知らせる\n- `size=\"40\"`:字の大きさ(24 以上)",
1317
1427
  "sup": true
1318
1428
  },
1319
1429
  "m-syntax": {
@@ -1328,8 +1438,8 @@ export const PACK = {
1328
1438
  },
1329
1439
  "m-timeline": {
1330
1440
  "set": "standard",
1331
- "row": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は軸に沿ってその長さだけ伸ばして描き、重なる期間は段を分けて積む。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
1332
- "entry": "### `<m-timeline>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 ステップに出す出来事の数(0 = 全部をステップ 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、パーツが並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に、軸に沿ってその長さだけ伸ばして描く。名前は期間の中(入らなければ右か左)に書く。名前を `\\n` で何行かにすると、その分太く描く\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出るステップと、ステップの中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n - `after` の矢印は期間(`end` のある node)か節目(`lane` のある node)のあいだだけ。`lane` のない出来事を指すと引かない。`today` の線は期間が 1 つ以上あるときだけ出る\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- ステップ:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`):後のステップの出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じステップに 2 つ以上あれば、2 つ目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
1441
+ "row": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は軸に沿って長さのとおりに描き、重なれば段を分ける。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
1442
+ "entry": "### `<m-timeline>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 ステップに出す出来事の数(0 = 全部をステップ 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、パーツが並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に長さのとおり描く。名前は期間の中(入らなければ左右)。`\\n` で何行かにすると期間が太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出るステップと、ステップの中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n - `after` の矢印は期間(`end` のある node)か節目(`lane` のある node)のあいだだけ。`lane` のない出来事を指すと引かない。`today` の線は期間が 1 つ以上あるときだけ出る\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- ステップ:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`):後のステップの出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じステップに 2 つ以上あれば、2 つ目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
1333
1443
  },
1334
1444
  "m-timer": {
1335
1445
  "set": "tools",
@@ -1341,10 +1451,16 @@ export const PACK = {
1341
1451
  "row": "| `<m-tree>` | 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置はパーツが決める | 節の深さの数(by=\"level\"、既定)か節の数(by=\"node\")。節と edges の step があればその最大 | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — parent のない節(根)はちょうど 1 つ |",
1342
1452
  "entry": "### `<m-tree>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | ステップの分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、パーツが重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(ステップの中の開始秒)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。ステップは既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(足りない px を `ctx.report` で知らせ、Studio の品質チェックに出る)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`)では、後のステップの箱と線をテーマの薄さで出しておく"
1343
1453
  },
1454
+ "m-vector": {
1455
+ "set": "standard",
1456
+ "row": "| `<m-vector>` | 平面のベクトルの和・差・スカラー倍・正射影・内積と、2 × 2 の行列の 1 次変換・固有ベクトル・基底の取り替えを 1 ステップずつ。右に式 | ベクトル → ops を 1 つずつ → 行列の変換(matrix があれば)→ 新しい基底(basis があれば) | `{range?:[num,num,num,num],vectors:{id:str,v:[num,num],label?,from?:[num,num]}[],ops?:[{sum?:[str,str],diff?:[str,str],scale?:[str\\|num,str\\|num],proj?:[str,str],dot?:[str,str],as?:str,label?,value?:num\\|num[],note?} (sum or diff or scale or proj or dot),…],matrix?:[[num,num],[num,num]],basis?:[[num,num],[num,num]],basisLabels?:[str,str],show?:(\"grid\"\\|\"unit\"\\|\"eigen\"\\|\"det\")[]}` |",
1457
+ "entry": "### `<m-vector>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"range\":[-4,4,-3,3],\"vectors\":[{\"id\":\"a\",\"v\":[2,1],\"label\":\"*a*\"},{\"id\":\"b\",\"v\":[-1,2],\"label\":\"*b*\"}],\"ops\":[{\"sum\":[\"a\",\"b\"],\"as\":\"c\",\"label\":\"*a* + *b*\"},{\"dot\":[\"a\",\"b\"],\"value\":0}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 字の大きさ(px、24 以上) |\n\nベクトル `vectors`(`id`・`v`・`label`)と操作 `ops` を書く。計算はパーツがする(`value` を書けば計算と比べる)。`ops`:`sum`・`diff`・`scale`(`[\"a\", 2]`)・`proj`・`dot`。`as` で結果に名前。`matrix` は 1 次変換、`basis` は基底の取り替え(どちらか 1 つ)。",
1458
+ "paidOnly": true
1459
+ },
1344
1460
  "m-venn": {
1345
1461
  "set": "standard",
1346
1462
  "row": "| `<m-venn>` | 2 つか 3 つの集合の円(ベン図)。集合を 1 つずつ出し、最後に重なりを強めてその中の項目を出す | 集合の数 + 1(overlaps=\"each\" なら 集合の数 + 項目のある重なりの数。項目のある重なりがなければ重なりすべての数:2 集合で 1、3 集合で 4) | `{sets:{label,tone?}[],regions?:{A?:str[]\\|str,B?:str[]\\|str,C?:str[]\\|str,AB?:str[]\\|str,AC?:str[]\\|str,BC?:str[]\\|str,ABC?:str[]\\|str}}` |",
1347
- "entry": "### `<m-venn>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"sets\":[{\"label\":\"哺乳類\"},{\"label\":\"海の生き物\"}],\"regions\":{\"A\":[\"ライオン\"],\"B\":[\"マグロ\"],\"AB\":[\"クジラ\",\"イルカ\"]}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 項目の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `spread` | number | `1` | 円の中心の間の距離 ÷ 半径(小さいほど重なりが広い。0.7〜1.3) |\n| `overlaps` | string | `\"together\"` | together(重なりを 1 ステップでまとめて)か each(1 つずつ) |\n\n2 つか 3 つのものの共通点と違い(哺乳類と海の生き物、3 つのスキルの重なり など)を、重なりで見せるときに使う。\n<!--part:m-compare-->観点ごとに値を並べて比べるなら `m-compare`。<!--/part-->\n\n- `sets`:集合(2 つか 3 つ)。`label` は円の外に書く名前、`tone` は円の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は `term`・`accent2`・`series-4` の順)。`--emph` は重なりを強めるのに使うので、集合には使わないほうがよい\n- `regions`:領域ごとの項目(1 つ 1 行の配列か、`\\n` で改行した字)。キーは集合の文字の組で、アルファベット順に書く。文字は `sets` の順(`sets` の 1 つ目が A・2 つ目 B・3 つ目 C):\n - `A`:A だけ(ほかの集合には入らない)、`AB`:A と B の両方(3 つのときは、A と B に入り C には入らないところ)、`ABC`:3 つとも\n - 2 つなら `A` `B` `AB`、3 つなら `A` `B` `C` `AB` `AC` `BC` `ABC`。どれも省いてよい。集合が 2 つのときに C を含むキー(`C` `AC` `BC` `ABC`)を書くと、図の代わりにエラーが出る\n- 円は左右対称の決まった配置で、面積は値に比例しない(2 つは左右、3 つは左上・右上・下)。`spread`(既定 1)は円の中心の間の距離 ÷ 半径で、小さいほど重なりが広い\n- 項目は、その領域の中で円の線から最も離れる位置に置く。字は `size`(既定 26 px)から 24 px まで縮める。重なりの項目は太字\n- ステップ:既定は 集合を 1 つずつ(その集合だけの項目と一緒に)→ 重なり(項目のある重なりを `--emph` で薄く塗って縁を囲み、項目を出す。項目のある重なりがなければ重なりすべて)。`overlaps=\"each\"` なら重なりを 1 つずつ(`AB`・`AC`・`BC`・`ABC` の順)\n- 見せ方(`variant`):`fade`・`draw`。書かなければ資料のシード値で選ばれる(書かなくてよい)"
1463
+ "entry": "### `<m-venn>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"sets\":[{\"label\":\"哺乳類\"},{\"label\":\"海の生き物\"}],\"regions\":{\"A\":[\"ライオン\"],\"B\":[\"マグロ\"],\"AB\":[\"クジラ\",\"イルカ\"]}}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 項目の字の大きさ(px)。収まらなければ 24 まで縮める |\n| `spread` | number | `1` | 円の中心の間の距離 ÷ 半径(小さいほど重なりが広い。0.7〜1.3) |\n| `overlaps` | string | `\"together\"` | together(重なりを 1 ステップでまとめて)か each(1 つずつ) |\n\n2 つか 3 つのものの共通点と違い(哺乳類と海の生き物、3 つのスキルの重なり など)を、重なりで見せるときに使う。\n<!--part:m-compare-->観点ごとに値を並べて比べるなら `m-compare`。<!--/part-->\n\n- `sets`:集合(2 つか 3 つ)。`label` は円の外に書く名前、`tone` は円の色(`term`・`emph`・`muted`・`accent2`・`series-1..4`。既定は `term`・`accent2`・`series-4` の順)。`--emph` は重なりを強めるのに使うので、集合には使わないほうがよい\n- `regions`:領域ごとの項目(1 つ 1 行の配列か、`\\n` で改行した字)。キーは集合の文字の組で、アルファベット順に書く。文字は `sets` の順(`sets` の 1 つ目が A・2 つ目 B・3 つ目 C):\n - `A`:A だけ(ほかの集合には入らない)、`AB`:A と B の両方(3 つのときは、A と B に入り C には入らないところ)、`ABC`:3 つとも\n - 2 つなら `A` `B` `AB`、3 つなら `A` `B` `C` `AB` `AC` `BC` `ABC`。どれも省いてよい。集合が 2 つのときに C を含むキー(`C` `AC` `BC` `ABC`)を書くと、図の代わりにエラーの表示が出る\n- 円は左右対称の決まった配置で、面積は値に比例しない(2 つは左右、3 つは左上・右上・下)。`spread`(既定 1)は円の中心の間の距離 ÷ 半径で、小さいほど重なりが広い\n- 項目は、その領域の中で円の線から最も離れる位置に置く。字は `size`(既定 26 px)から 24 px まで縮める。重なりの項目は太字\n- ステップ:既定は 集合を 1 つずつ(その集合だけの項目と一緒に)→ 重なり(項目のある重なりを `--emph` で薄く塗って縁を囲み、項目を出す。項目のある重なりがなければ重なりすべて)。`overlaps=\"each\"` なら重なりを 1 つずつ(`AB`・`AC`・`BC`・`ABC` の順)\n- 見せ方(`variant`):`fade`・`draw`。書かなければ資料のシード値で選ばれる(書かなくてよい)"
1348
1464
  }
1349
1465
  },
1350
1466
  "tableHead": "| パーツ | 内容 | steps | データの形 |\n|---|---|---|---|",
@@ -1352,9 +1468,9 @@ export const PACK = {
1352
1468
  "briefNote": "下に説明の節がないパーツは、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
1353
1469
  "extHead": "### `<{name}>`:このセットの拡張(パーツの説明は §3)"
1354
1470
  },
1355
- "version": "3bcb89c8",
1471
+ "version": "049c5f95",
1356
1472
  "tiers": {
1357
- "catalogue": "2.9.1",
1473
+ "catalogue": "2.15.0",
1358
1474
  "parts": {
1359
1475
  "m-balance": {
1360
1476
  "tier": "specialized",
@@ -1425,6 +1541,18 @@ export const PACK = {
1425
1541
  "en": "Confidence intervals"
1426
1542
  }
1427
1543
  },
1544
+ "m-classify2d": {
1545
+ "tier": "specialized",
1546
+ "set": "ml",
1547
+ "purposes": [
1548
+ "grouping",
1549
+ "model"
1550
+ ],
1551
+ "display": {
1552
+ "ja": "2 次元の分類",
1553
+ "en": "2-D classification"
1554
+ }
1555
+ },
1428
1556
  "m-code": {
1429
1557
  "tier": "specialized",
1430
1558
  "set": "data",
@@ -1460,6 +1588,29 @@ export const PACK = {
1460
1588
  "compare"
1461
1589
  ]
1462
1590
  },
1591
+ "m-contour": {
1592
+ "tier": "specialized",
1593
+ "set": "ml",
1594
+ "purposes": [
1595
+ "model",
1596
+ "change"
1597
+ ],
1598
+ "display": {
1599
+ "ja": "等高線",
1600
+ "en": "Contour plot"
1601
+ }
1602
+ },
1603
+ "m-ctable": {
1604
+ "tier": "specialized",
1605
+ "purposes": [
1606
+ "part-whole",
1607
+ "cause-effect"
1608
+ ],
1609
+ "display": {
1610
+ "ja": "計算して埋まる表",
1611
+ "en": "Computed table"
1612
+ }
1613
+ },
1463
1614
  "m-curves": {
1464
1615
  "tier": "standard",
1465
1616
  "purposes": [
@@ -1609,6 +1760,30 @@ export const PACK = {
1609
1760
  "contents"
1610
1761
  ]
1611
1762
  },
1763
+ "m-network": {
1764
+ "tier": "specialized",
1765
+ "set": "algo",
1766
+ "purposes": [
1767
+ "process",
1768
+ "model"
1769
+ ],
1770
+ "display": {
1771
+ "ja": "グラフの探索",
1772
+ "en": "Graph search"
1773
+ }
1774
+ },
1775
+ "m-nnet": {
1776
+ "tier": "specialized",
1777
+ "set": "ml",
1778
+ "purposes": [
1779
+ "model",
1780
+ "process"
1781
+ ],
1782
+ "display": {
1783
+ "ja": "ニューラルネット",
1784
+ "en": "Neural network"
1785
+ }
1786
+ },
1612
1787
  "m-numberline": {
1613
1788
  "tier": "specialized",
1614
1789
  "set": "math",
@@ -1728,6 +1903,17 @@ export const PACK = {
1728
1903
  "hierarchy"
1729
1904
  ]
1730
1905
  },
1906
+ "m-vector": {
1907
+ "tier": "specialized",
1908
+ "purposes": [
1909
+ "model",
1910
+ "spatial"
1911
+ ],
1912
+ "display": {
1913
+ "ja": "ベクトルと行列",
1914
+ "en": "Vectors and matrices"
1915
+ }
1916
+ },
1731
1917
  "m-venn": {
1732
1918
  "tier": "standard",
1733
1919
  "purposes": [