research-copilot 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +190 -0
  3. package/app/build/icon.icns +0 -0
  4. package/app/build/icon.ico +0 -0
  5. package/app/build/icon.png +0 -0
  6. package/app/out/main/index.mjs +6719 -0
  7. package/app/out/preload/index.js +141 -0
  8. package/app/out/renderer/assets/Inter-Variable-Latin-8kRkwJBP.woff2 +0 -0
  9. package/app/out/renderer/assets/Inter-Variable-LatinExt-B_-bZUTo.woff2 +0 -0
  10. package/app/out/renderer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  11. package/app/out/renderer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  12. package/app/out/renderer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  13. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  14. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  15. package/app/out/renderer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  16. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  17. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  18. package/app/out/renderer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  19. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  20. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  21. package/app/out/renderer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  22. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  23. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  24. package/app/out/renderer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  25. package/app/out/renderer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  26. package/app/out/renderer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  27. package/app/out/renderer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  28. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  29. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  30. package/app/out/renderer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  31. package/app/out/renderer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  32. package/app/out/renderer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  33. package/app/out/renderer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  34. package/app/out/renderer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  35. package/app/out/renderer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  36. package/app/out/renderer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  37. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  38. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  39. package/app/out/renderer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  40. package/app/out/renderer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  41. package/app/out/renderer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  42. package/app/out/renderer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  43. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  44. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  45. package/app/out/renderer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  46. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  47. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  48. package/app/out/renderer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  49. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  50. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  51. package/app/out/renderer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  52. package/app/out/renderer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  53. package/app/out/renderer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  54. package/app/out/renderer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  55. package/app/out/renderer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  56. package/app/out/renderer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  57. package/app/out/renderer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  58. package/app/out/renderer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  59. package/app/out/renderer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  60. package/app/out/renderer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  61. package/app/out/renderer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  62. package/app/out/renderer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  63. package/app/out/renderer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  64. package/app/out/renderer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  65. package/app/out/renderer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  66. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  67. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  68. package/app/out/renderer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  69. package/app/out/renderer/assets/MilkdownMarkdownEditor-bLPxrCVb.js +89821 -0
  70. package/app/out/renderer/assets/MilkdownMarkdownEditor-tTNRIB2K.css +2555 -0
  71. package/app/out/renderer/assets/Tableau10-BqnYsPR6.js +9 -0
  72. package/app/out/renderer/assets/apl-fqmucPXA.js +140 -0
  73. package/app/out/renderer/assets/arc-J47ePHZ2.js +132 -0
  74. package/app/out/renderer/assets/array-DgktLKBx.js +6 -0
  75. package/app/out/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
  76. package/app/out/renderer/assets/asn1-BnOEsgAm.js +144 -0
  77. package/app/out/renderer/assets/asterisk-QAlztEwS.js +345 -0
  78. package/app/out/renderer/assets/blockDiagram-c4efeb88-5uRQXgQJ.js +1817 -0
  79. package/app/out/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
  80. package/app/out/renderer/assets/c4Diagram-c83219d4-C4iCTPEL.js +2464 -0
  81. package/app/out/renderer/assets/channel-ZAmhHE3g.js +7 -0
  82. package/app/out/renderer/assets/classDiagram-beda092f-7NOZxq_W.js +357 -0
  83. package/app/out/renderer/assets/classDiagram-v2-2358418a-5fPT-cUH.js +291 -0
  84. package/app/out/renderer/assets/clike-xqXYL6ge.js +805 -0
  85. package/app/out/renderer/assets/clojure-BhXMqnxz.js +849 -0
  86. package/app/out/renderer/assets/clone-CsnzsYXQ.js +8 -0
  87. package/app/out/renderer/assets/cmake-BGaNd9E7.js +71 -0
  88. package/app/out/renderer/assets/cobol-4yqQntpt.js +120 -0
  89. package/app/out/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
  90. package/app/out/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
  91. package/app/out/renderer/assets/createText-1719965b-Cji7KN4K.js +4904 -0
  92. package/app/out/renderer/assets/crystal-DyuLTqLs.js +398 -0
  93. package/app/out/renderer/assets/css-c-jst79C.js +1783 -0
  94. package/app/out/renderer/assets/cypher-Dlu_3r4V.js +121 -0
  95. package/app/out/renderer/assets/d-UURgV0Ux.js +179 -0
  96. package/app/out/renderer/assets/diff-B_Bi2Crb.js +25 -0
  97. package/app/out/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
  98. package/app/out/renderer/assets/dtd-Dy74G54E.js +114 -0
  99. package/app/out/renderer/assets/dylan-TSb-Nfix.js +314 -0
  100. package/app/out/renderer/assets/ebnf-DAomQUbD.js +139 -0
  101. package/app/out/renderer/assets/ecl-B59qGGVg.js +178 -0
  102. package/app/out/renderer/assets/edges-96097737-CD0EvAZQ.js +1844 -0
  103. package/app/out/renderer/assets/eiffel-Dze7nlu3.js +134 -0
  104. package/app/out/renderer/assets/elm-DG7jkhNZ.js +176 -0
  105. package/app/out/renderer/assets/erDiagram-0228fc6a-DRYXBpi7.js +1321 -0
  106. package/app/out/renderer/assets/erlang-BO6gOnGA.js +674 -0
  107. package/app/out/renderer/assets/factor-CMxFHDqz.js +65 -0
  108. package/app/out/renderer/assets/fcl-CDDUNjTj.js +141 -0
  109. package/app/out/renderer/assets/flowDb-c6c81e3f-CuoIN-Cy.js +1713 -0
  110. package/app/out/renderer/assets/flowDiagram-50d868cf-CPWPLOml.js +1272 -0
  111. package/app/out/renderer/assets/flowDiagram-v2-4f6560a1-C_R12s4S.js +33 -0
  112. package/app/out/renderer/assets/flowchart-elk-definition-6af322e1-BdKUSFpi.js +92921 -0
  113. package/app/out/renderer/assets/forth-B9D2JCeE.js +116 -0
  114. package/app/out/renderer/assets/fortran-CAG2BFbe.js +467 -0
  115. package/app/out/renderer/assets/ganttDiagram-a2739b55-ygqT5HlG.js +3399 -0
  116. package/app/out/renderer/assets/gas-d3KEcW3x.js +294 -0
  117. package/app/out/renderer/assets/gherkin-DhZlEZiy.js +115 -0
  118. package/app/out/renderer/assets/gitGraphDiagram-82fe8481-D97GT4iA.js +1791 -0
  119. package/app/out/renderer/assets/graph-DpC13d95.js +1237 -0
  120. package/app/out/renderer/assets/groovy-CpwJiBl7.js +223 -0
  121. package/app/out/renderer/assets/haskell-BlGBCCe3.js +459 -0
  122. package/app/out/renderer/assets/haxe-7MlzfeYV.js +514 -0
  123. package/app/out/renderer/assets/http-BqypyemW.js +79 -0
  124. package/app/out/renderer/assets/idl-4HIGJlDI.js +985 -0
  125. package/app/out/renderer/assets/index-4-ziknCv.js +292 -0
  126. package/app/out/renderer/assets/index-5325376f-Bbs7Fbqr.js +663 -0
  127. package/app/out/renderer/assets/index-B2jip-rk.js +2489 -0
  128. package/app/out/renderer/assets/index-BKTVfokE.js +312 -0
  129. package/app/out/renderer/assets/index-BiJbFgVG.js +118 -0
  130. package/app/out/renderer/assets/index-Bn433Fat.js +83 -0
  131. package/app/out/renderer/assets/index-BqDyyRCx.js +39679 -0
  132. package/app/out/renderer/assets/index-BzFMeMPn.js +158 -0
  133. package/app/out/renderer/assets/index-C-_uCjZJ.css +2701 -0
  134. package/app/out/renderer/assets/index-C1ithNW1.js +1765 -0
  135. package/app/out/renderer/assets/index-CAJkRYkO.js +407 -0
  136. package/app/out/renderer/assets/index-CleO0-yj.js +690 -0
  137. package/app/out/renderer/assets/index-Cq4MH3sY.js +1020 -0
  138. package/app/out/renderer/assets/index-CtA0Xj22.js +705 -0
  139. package/app/out/renderer/assets/index-CvAZkqBZ.js +83 -0
  140. package/app/out/renderer/assets/index-D3UDN-5c.js +152 -0
  141. package/app/out/renderer/assets/index-D4F9R5ao.js +179 -0
  142. package/app/out/renderer/assets/index-D6RguhZ5.js +328 -0
  143. package/app/out/renderer/assets/index-DnEowqXv.js +386 -0
  144. package/app/out/renderer/assets/index-K8c8Mqdy.js +98 -0
  145. package/app/out/renderer/assets/index-Kh14gO6K.js +62 -0
  146. package/app/out/renderer/assets/index-WFd2jRnA.js +333 -0
  147. package/app/out/renderer/assets/index-WgMfkRFp.js +313 -0
  148. package/app/out/renderer/assets/index-Y4lKyF6t.js +1042 -0
  149. package/app/out/renderer/assets/index-fx307_f1.js +643 -0
  150. package/app/out/renderer/assets/infoDiagram-8eee0895-ptaVSwzq.js +511 -0
  151. package/app/out/renderer/assets/init-ZxktEp_H.js +16 -0
  152. package/app/out/renderer/assets/javascript-C3MnDRiU.js +994 -0
  153. package/app/out/renderer/assets/journeyDiagram-c64418c1-aloEGOQp.js +1184 -0
  154. package/app/out/renderer/assets/julia-Bs6JJhYG.js +407 -0
  155. package/app/out/renderer/assets/layout-ZeuHE_aY.js +2217 -0
  156. package/app/out/renderer/assets/line-CAgaGl-S.js +45 -0
  157. package/app/out/renderer/assets/linear-DIg7lTe1.js +539 -0
  158. package/app/out/renderer/assets/livescript-DmzgM3Yt.js +296 -0
  159. package/app/out/renderer/assets/lua-8cJgIlqe.js +256 -0
  160. package/app/out/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
  161. package/app/out/renderer/assets/mbox-Ga7d4MMN.js +117 -0
  162. package/app/out/renderer/assets/mindmap-definition-8da855dc-B8XVoUxz.js +36054 -0
  163. package/app/out/renderer/assets/mirc-Dma3B8rS.js +107 -0
  164. package/app/out/renderer/assets/mllike-DHn7xckP.js +334 -0
  165. package/app/out/renderer/assets/modelica-0d55jYY0.js +147 -0
  166. package/app/out/renderer/assets/mscgen-DdqZYINH.js +135 -0
  167. package/app/out/renderer/assets/mumps-Btr8VblO.js +93 -0
  168. package/app/out/renderer/assets/nginx-DTDtBDVN.js +141 -0
  169. package/app/out/renderer/assets/nsis-3zG7tgur.js +62 -0
  170. package/app/out/renderer/assets/ntriples-CvgOYMpL.js +153 -0
  171. package/app/out/renderer/assets/octave-DYBj3-tl.js +200 -0
  172. package/app/out/renderer/assets/ordinal-DSZU4PqD.js +76 -0
  173. package/app/out/renderer/assets/oz-R_e8WMIi.js +231 -0
  174. package/app/out/renderer/assets/pascal-GD8iposT.js +105 -0
  175. package/app/out/renderer/assets/path-Cp2qmpkd.js +109 -0
  176. package/app/out/renderer/assets/perl-DL9mHpoi.js +1105 -0
  177. package/app/out/renderer/assets/pieDiagram-a8764435-DlwoeBU2.js +770 -0
  178. package/app/out/renderer/assets/pig-C_4T4YIV.js +101 -0
  179. package/app/out/renderer/assets/powershell-B0suO7Vd.js +328 -0
  180. package/app/out/renderer/assets/properties-BR-vP1aU.js +58 -0
  181. package/app/out/renderer/assets/protobuf-BxgpyhoW.js +77 -0
  182. package/app/out/renderer/assets/pug-By0kVCfm.js +405 -0
  183. package/app/out/renderer/assets/puppet-Bdao66PW.js +137 -0
  184. package/app/out/renderer/assets/python-CvWbmiX4.js +427 -0
  185. package/app/out/renderer/assets/q-CrbCVq4a.js +131 -0
  186. package/app/out/renderer/assets/quadrantDiagram-1e28029f-BaSi1XB4.js +1200 -0
  187. package/app/out/renderer/assets/r-V7nswm59.js +170 -0
  188. package/app/out/renderer/assets/requirementDiagram-08caed73-D3EFyegZ.js +1092 -0
  189. package/app/out/renderer/assets/rpm-C-DLY-If.js +109 -0
  190. package/app/out/renderer/assets/ruby-JDKLJNK0.js +330 -0
  191. package/app/out/renderer/assets/sankeyDiagram-a04cb91d-Cv44AsnM.js +1174 -0
  192. package/app/out/renderer/assets/sas-D2UG-yhZ.js +207 -0
  193. package/app/out/renderer/assets/scheme-BKzrkGJD.js +222 -0
  194. package/app/out/renderer/assets/sequenceDiagram-c5b8d532-CuUBu-x4.js +3337 -0
  195. package/app/out/renderer/assets/shell-BlsXDxCn.js +222 -0
  196. package/app/out/renderer/assets/sieve-CjwBwOY5.js +135 -0
  197. package/app/out/renderer/assets/simple-mode-DMneyfDu.js +130 -0
  198. package/app/out/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
  199. package/app/out/renderer/assets/solr-CwD7U71z.js +69 -0
  200. package/app/out/renderer/assets/sparql-DYskk2vE.js +249 -0
  201. package/app/out/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
  202. package/app/out/renderer/assets/sql-BSrOzCRI.js +354 -0
  203. package/app/out/renderer/assets/stateDiagram-1ecb1508-BOU34Zp4.js +454 -0
  204. package/app/out/renderer/assets/stateDiagram-v2-c2b004d7-BgRoffou.js +326 -0
  205. package/app/out/renderer/assets/stex-B6LNC55o.js +231 -0
  206. package/app/out/renderer/assets/styles-b4e223ce-BMr9TPuj.js +1483 -0
  207. package/app/out/renderer/assets/styles-ca3715f6-DgbNw99p.js +1363 -0
  208. package/app/out/renderer/assets/styles-d45a18b0-DtRYKYKf.js +574 -0
  209. package/app/out/renderer/assets/stylus-BkS-boTH.js +565 -0
  210. package/app/out/renderer/assets/svgDrawCommon-b86b1483-Bein03PD.js +100 -0
  211. package/app/out/renderer/assets/swift-FRZi1uvB.js +291 -0
  212. package/app/out/renderer/assets/tcl-CUcaCdmq.js +114 -0
  213. package/app/out/renderer/assets/textile-BnFpjsrl.js +414 -0
  214. package/app/out/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
  215. package/app/out/renderer/assets/tiki-B4EPSQ1G.js +265 -0
  216. package/app/out/renderer/assets/timeline-definition-faaaa080-BlWpLE_4.js +1212 -0
  217. package/app/out/renderer/assets/toml-BOuWGMcf.js +76 -0
  218. package/app/out/renderer/assets/troff-E1bJ0PPL.js +61 -0
  219. package/app/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
  220. package/app/out/renderer/assets/ttcn-tKd4HLu4.js +192 -0
  221. package/app/out/renderer/assets/turtle-Dq7-1WAf.js +124 -0
  222. package/app/out/renderer/assets/vb-Dp90gtsv.js +196 -0
  223. package/app/out/renderer/assets/vbscript-CI6_mxxU.js +479 -0
  224. package/app/out/renderer/assets/velocity-BwIZK1TH.js +149 -0
  225. package/app/out/renderer/assets/verilog-DDCYnHN8.js +430 -0
  226. package/app/out/renderer/assets/vhdl-DCkMIyT9.js +158 -0
  227. package/app/out/renderer/assets/webidl-BTLTThCm.js +204 -0
  228. package/app/out/renderer/assets/xquery-BgiOC5Ce.js +525 -0
  229. package/app/out/renderer/assets/xychartDiagram-f5964ef8-Bhga-YXm.js +1799 -0
  230. package/app/out/renderer/assets/yacas-b5lAVEIl.js +130 -0
  231. package/app/out/renderer/assets/z80-BZV19vqv.js +93 -0
  232. package/app/out/renderer/index.html +13 -0
  233. package/app/out/skills/community-builtin/README.md +29 -0
  234. package/app/out/skills/community-builtin/document-docx/SKILL.md +44 -0
  235. package/app/out/skills/community-builtin/document-docx/scripts/docx-to-markdown.sh +20 -0
  236. package/app/out/skills/community-builtin/document-docx/scripts/extract-docx-text.sh +28 -0
  237. package/app/out/skills/community-builtin/document-docx/scripts/init-docx-template.sh +32 -0
  238. package/app/out/skills/community-builtin/document-docx/scripts/setup-docx-tools.sh +10 -0
  239. package/app/out/skills/community-builtin/markitdown/SKILL.md +105 -0
  240. package/app/out/skills/community-builtin/markitdown/scripts/batch-convert.sh +40 -0
  241. package/app/out/skills/community-builtin/markitdown/scripts/convert-file.sh +24 -0
  242. package/app/out/skills/community-builtin/markitdown/scripts/setup-markitdown.sh +10 -0
  243. package/app/out/skills/community-builtin/repo-quick-audit/SKILL.md +27 -0
  244. package/app/out/skills/community-builtin/repo-quick-audit/scripts/audit-basics.sh +19 -0
  245. package/app/out/skills/research-pilot-default-project-skills/README.md +23 -0
  246. package/app/out/skills/research-pilot-default-project-skills/citation-management/SKILL.md +39 -0
  247. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/doi-to-bibtex.sh +25 -0
  248. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/normalize-bibtex-keys.sh +51 -0
  249. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/setup-citation-tools.sh +10 -0
  250. package/app/out/skills/research-pilot-default-project-skills/citation-management/scripts/validate-bib.sh +31 -0
  251. package/app/out/skills/research-pilot-default-project-skills/matplotlib/SKILL.md +34 -0
  252. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/api_reference.md +412 -0
  253. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/common_issues.md +563 -0
  254. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/plot_types.md +476 -0
  255. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/styling_guide.md +589 -0
  256. package/app/out/skills/research-pilot-default-project-skills/matplotlib/references/subagent_quickstart.md +30 -0
  257. package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/plot_template.py +401 -0
  258. package/app/out/skills/research-pilot-default-project-skills/matplotlib/scripts/style_configurator.py +409 -0
  259. package/app/out/skills/research-pilot-default-project-skills/research-grants/SKILL.md +38 -0
  260. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/check-grant-compliance.sh +40 -0
  261. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/grant-summary-card.sh +32 -0
  262. package/app/out/skills/research-pilot-default-project-skills/research-grants/scripts/init-grant-structure.sh +70 -0
  263. package/app/package.json +77 -0
  264. package/bin/cli.mjs +56 -0
  265. package/lib/README.md +145 -0
  266. package/lib/skills/_generated.ts +13 -0
  267. package/lib/skills/builtin/brainstorming-research-ideas/SKILL.md +280 -0
  268. package/lib/skills/builtin/coding/SKILL.md +114 -0
  269. package/lib/skills/builtin/creative-thinking-for-research/SKILL.md +273 -0
  270. package/lib/skills/builtin/matplotlib/SKILL.md +361 -0
  271. package/lib/skills/builtin/matplotlib/references/api_reference.md +412 -0
  272. package/lib/skills/builtin/matplotlib/references/common_issues.md +563 -0
  273. package/lib/skills/builtin/matplotlib/references/plot_types.md +476 -0
  274. package/lib/skills/builtin/matplotlib/references/styling_guide.md +589 -0
  275. package/lib/skills/builtin/matplotlib/scripts/plot_template.py +401 -0
  276. package/lib/skills/builtin/matplotlib/scripts/style_configurator.py +409 -0
  277. package/lib/skills/builtin/paper-writing/SKILL.md +554 -0
  278. package/lib/skills/builtin/paper-writing/references/checklists.md +524 -0
  279. package/lib/skills/builtin/paper-writing/references/citation-workflow.md +562 -0
  280. package/lib/skills/builtin/paper-writing/references/reviewer-guidelines.md +462 -0
  281. package/lib/skills/builtin/paper-writing/references/sources.md +189 -0
  282. package/lib/skills/builtin/paper-writing/references/systems-conferences.md +260 -0
  283. package/lib/skills/builtin/paper-writing/references/writing-guide.md +476 -0
  284. package/lib/skills/builtin/paper-writing/templates/README.md +408 -0
  285. package/lib/skills/builtin/paper-writing/templates/aaai2026/README.md +534 -0
  286. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
  287. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
  288. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bib +111 -0
  289. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
  290. package/lib/skills/builtin/paper-writing/templates/aaai2026/aaai2026.sty +315 -0
  291. package/lib/skills/builtin/paper-writing/templates/acl/README.md +50 -0
  292. package/lib/skills/builtin/paper-writing/templates/acl/acl.sty +312 -0
  293. package/lib/skills/builtin/paper-writing/templates/acl/acl_latex.tex +377 -0
  294. package/lib/skills/builtin/paper-writing/templates/acl/acl_lualatex.tex +101 -0
  295. package/lib/skills/builtin/paper-writing/templates/acl/acl_natbib.bst +1940 -0
  296. package/lib/skills/builtin/paper-writing/templates/acl/anthology.bib.txt +26 -0
  297. package/lib/skills/builtin/paper-writing/templates/acl/custom.bib +70 -0
  298. package/lib/skills/builtin/paper-writing/templates/acl/formatting.md +326 -0
  299. package/lib/skills/builtin/paper-writing/templates/asplos2027/main.tex +459 -0
  300. package/lib/skills/builtin/paper-writing/templates/asplos2027/references.bib +135 -0
  301. package/lib/skills/builtin/paper-writing/templates/colm2025/README.md +3 -0
  302. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
  303. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
  304. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
  305. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
  306. package/lib/skills/builtin/paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
  307. package/lib/skills/builtin/paper-writing/templates/colm2025/fancyhdr.sty +485 -0
  308. package/lib/skills/builtin/paper-writing/templates/colm2025/math_commands.tex +508 -0
  309. package/lib/skills/builtin/paper-writing/templates/colm2025/natbib.sty +1246 -0
  310. package/lib/skills/builtin/paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
  311. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
  312. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
  313. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
  314. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
  315. package/lib/skills/builtin/paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
  316. package/lib/skills/builtin/paper-writing/templates/iclr2026/math_commands.tex +508 -0
  317. package/lib/skills/builtin/paper-writing/templates/iclr2026/natbib.sty +1246 -0
  318. package/lib/skills/builtin/paper-writing/templates/icml2026/algorithm.sty +79 -0
  319. package/lib/skills/builtin/paper-writing/templates/icml2026/algorithmic.sty +201 -0
  320. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.bib +75 -0
  321. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.pdf +0 -0
  322. package/lib/skills/builtin/paper-writing/templates/icml2026/example_paper.tex +662 -0
  323. package/lib/skills/builtin/paper-writing/templates/icml2026/fancyhdr.sty +864 -0
  324. package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.bst +1443 -0
  325. package/lib/skills/builtin/paper-writing/templates/icml2026/icml2026.sty +767 -0
  326. package/lib/skills/builtin/paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
  327. package/lib/skills/builtin/paper-writing/templates/neurips2025/Makefile +36 -0
  328. package/lib/skills/builtin/paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
  329. package/lib/skills/builtin/paper-writing/templates/neurips2025/main.tex +38 -0
  330. package/lib/skills/builtin/paper-writing/templates/neurips2025/neurips.sty +382 -0
  331. package/lib/skills/builtin/paper-writing/templates/nsdi2027/main.tex +426 -0
  332. package/lib/skills/builtin/paper-writing/templates/nsdi2027/references.bib +151 -0
  333. package/lib/skills/builtin/paper-writing/templates/nsdi2027/usenix-2020-09.sty +83 -0
  334. package/lib/skills/builtin/paper-writing/templates/osdi2026/main.tex +429 -0
  335. package/lib/skills/builtin/paper-writing/templates/osdi2026/references.bib +150 -0
  336. package/lib/skills/builtin/paper-writing/templates/osdi2026/usenix-2020-09.sty +83 -0
  337. package/lib/skills/builtin/paper-writing/templates/sosp2026/main.tex +532 -0
  338. package/lib/skills/builtin/paper-writing/templates/sosp2026/references.bib +148 -0
  339. package/lib/skills/builtin/research-grants/SKILL.md +958 -0
  340. package/lib/skills/builtin/research-grants/assets/budget_justification_template.md +453 -0
  341. package/lib/skills/builtin/research-grants/assets/nih_specific_aims_template.md +166 -0
  342. package/lib/skills/builtin/research-grants/assets/nsf_project_summary_template.md +92 -0
  343. package/lib/skills/builtin/research-grants/references/README.md +285 -0
  344. package/lib/skills/builtin/research-grants/references/broader_impacts.md +392 -0
  345. package/lib/skills/builtin/research-grants/references/darpa_guidelines.md +636 -0
  346. package/lib/skills/builtin/research-grants/references/doe_guidelines.md +586 -0
  347. package/lib/skills/builtin/research-grants/references/nih_guidelines.md +851 -0
  348. package/lib/skills/builtin/research-grants/references/nsf_guidelines.md +570 -0
  349. package/lib/skills/builtin/research-grants/references/nstc_guidelines.md +733 -0
  350. package/lib/skills/builtin/research-grants/references/specific_aims_guide.md +458 -0
  351. package/lib/skills/builtin/rewrite-humanize/SKILL.md +116 -0
  352. package/lib/skills/builtin/rewrite-humanize/references/cs-venue-tone.md +57 -0
  353. package/lib/skills/builtin/rewrite-humanize/references/lexicon.md +50 -0
  354. package/lib/skills/builtin/scholar-evaluation/SKILL.md +300 -0
  355. package/lib/skills/builtin/scholar-evaluation/references/evaluation_framework.md +663 -0
  356. package/lib/skills/builtin/scholar-evaluation/scripts/calculate_scores.py +379 -0
  357. package/lib/skills/builtin/scientific-schematics/SKILL.md +603 -0
  358. package/lib/skills/builtin/scientific-schematics/references/QUICK_REFERENCE.md +182 -0
  359. package/lib/skills/builtin/scientific-schematics/references/README.md +292 -0
  360. package/lib/skills/builtin/scientific-schematics/references/best_practices.md +560 -0
  361. package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic.cpython-312.pyc +0 -0
  362. package/lib/skills/builtin/scientific-schematics/scripts/__pycache__/generate_schematic_ai.cpython-312.pyc +0 -0
  363. package/lib/skills/builtin/scientific-schematics/scripts/example_usage.sh +85 -0
  364. package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic.py +141 -0
  365. package/lib/skills/builtin/scientific-schematics/scripts/generate_schematic_ai.py +910 -0
  366. package/lib/skills/builtin/scientific-visualization/SKILL.md +749 -0
  367. package/lib/skills/builtin/scientific-visualization/assets/color_palettes.py +197 -0
  368. package/lib/skills/builtin/scientific-visualization/assets/nature.mplstyle +63 -0
  369. package/lib/skills/builtin/scientific-visualization/assets/presentation.mplstyle +61 -0
  370. package/lib/skills/builtin/scientific-visualization/assets/publication.mplstyle +68 -0
  371. package/lib/skills/builtin/scientific-visualization/references/color_palettes.md +348 -0
  372. package/lib/skills/builtin/scientific-visualization/references/journal_requirements.md +320 -0
  373. package/lib/skills/builtin/scientific-visualization/references/matplotlib_examples.md +620 -0
  374. package/lib/skills/builtin/scientific-visualization/references/publication_guidelines.md +205 -0
  375. package/lib/skills/builtin/scientific-visualization/scripts/figure_export.py +343 -0
  376. package/lib/skills/builtin/scientific-visualization/scripts/style_presets.py +416 -0
  377. package/lib/skills/builtin/scientific-writing/SKILL.md +745 -0
  378. package/lib/skills/builtin/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
  379. package/lib/skills/builtin/scientific-writing/assets/scientific_report.sty +606 -0
  380. package/lib/skills/builtin/scientific-writing/assets/scientific_report_template.tex +449 -0
  381. package/lib/skills/builtin/scientific-writing/references/citation_styles.md +720 -0
  382. package/lib/skills/builtin/scientific-writing/references/figures_tables.md +806 -0
  383. package/lib/skills/builtin/scientific-writing/references/imrad_structure.md +686 -0
  384. package/lib/skills/builtin/scientific-writing/references/professional_report_formatting.md +664 -0
  385. package/lib/skills/builtin/scientific-writing/references/reporting_guidelines.md +748 -0
  386. package/lib/skills/builtin/scientific-writing/references/writing_principles.md +824 -0
  387. package/lib/skills/builtin/seaborn/SKILL.md +674 -0
  388. package/lib/skills/builtin/seaborn/references/examples.md +822 -0
  389. package/lib/skills/builtin/seaborn/references/function_reference.md +770 -0
  390. package/lib/skills/builtin/seaborn/references/objects_interface.md +964 -0
  391. package/lib/skills/data-analysis/SKILL.md +285 -0
  392. package/lib/skills/generate-skill-content.mjs +58 -0
  393. package/lib/skills/index.ts +34 -0
  394. package/lib/skills/loader.ts +452 -0
  395. package/package.json +62 -0
@@ -0,0 +1,45 @@
1
+ import { a as array } from "./array-DgktLKBx.js";
2
+ import { w as withPath, c as constant } from "./path-Cp2qmpkd.js";
3
+ import { an as curveLinear } from "./MilkdownMarkdownEditor-bLPxrCVb.js";
4
+ function x(p) {
5
+ return p[0];
6
+ }
7
+ function y(p) {
8
+ return p[1];
9
+ }
10
+ function line(x$1, y$1) {
11
+ var defined = constant(true), context = null, curve = curveLinear, output = null, path = withPath(line2);
12
+ x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant(x$1);
13
+ y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant(y$1);
14
+ function line2(data) {
15
+ var i, n = (data = array(data)).length, d, defined0 = false, buffer;
16
+ if (context == null) output = curve(buffer = path());
17
+ for (i = 0; i <= n; ++i) {
18
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) {
19
+ if (defined0 = !defined0) output.lineStart();
20
+ else output.lineEnd();
21
+ }
22
+ if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
23
+ }
24
+ if (buffer) return output = null, buffer + "" || null;
25
+ }
26
+ line2.x = function(_) {
27
+ return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line2) : x$1;
28
+ };
29
+ line2.y = function(_) {
30
+ return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line2) : y$1;
31
+ };
32
+ line2.defined = function(_) {
33
+ return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line2) : defined;
34
+ };
35
+ line2.curve = function(_) {
36
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), line2) : curve;
37
+ };
38
+ line2.context = function(_) {
39
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line2) : context;
40
+ };
41
+ return line2;
42
+ }
43
+ export {
44
+ line as l
45
+ };
@@ -0,0 +1,539 @@
1
+ import { a_ as constant, a$ as interpolateNumber, b0 as color, b1 as interpolateRgb, b2 as interpolateString } from "./MilkdownMarkdownEditor-bLPxrCVb.js";
2
+ import { i as initRange } from "./init-ZxktEp_H.js";
3
+ function ascending(a, b) {
4
+ return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
5
+ }
6
+ function descending(a, b) {
7
+ return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
8
+ }
9
+ function bisector(f) {
10
+ let compare1, compare2, delta;
11
+ if (f.length !== 2) {
12
+ compare1 = ascending;
13
+ compare2 = (d, x) => ascending(f(d), x);
14
+ delta = (d, x) => f(d) - x;
15
+ } else {
16
+ compare1 = f === ascending || f === descending ? f : zero;
17
+ compare2 = f;
18
+ delta = f;
19
+ }
20
+ function left(a, x, lo = 0, hi = a.length) {
21
+ if (lo < hi) {
22
+ if (compare1(x, x) !== 0) return hi;
23
+ do {
24
+ const mid = lo + hi >>> 1;
25
+ if (compare2(a[mid], x) < 0) lo = mid + 1;
26
+ else hi = mid;
27
+ } while (lo < hi);
28
+ }
29
+ return lo;
30
+ }
31
+ function right(a, x, lo = 0, hi = a.length) {
32
+ if (lo < hi) {
33
+ if (compare1(x, x) !== 0) return hi;
34
+ do {
35
+ const mid = lo + hi >>> 1;
36
+ if (compare2(a[mid], x) <= 0) lo = mid + 1;
37
+ else hi = mid;
38
+ } while (lo < hi);
39
+ }
40
+ return lo;
41
+ }
42
+ function center(a, x, lo = 0, hi = a.length) {
43
+ const i = left(a, x, lo, hi - 1);
44
+ return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
45
+ }
46
+ return { left, center, right };
47
+ }
48
+ function zero() {
49
+ return 0;
50
+ }
51
+ function number$1(x) {
52
+ return x === null ? NaN : +x;
53
+ }
54
+ const ascendingBisect = bisector(ascending);
55
+ const bisectRight = ascendingBisect.right;
56
+ bisector(number$1).center;
57
+ const e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
58
+ function tickSpec(start, stop, count) {
59
+ const step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
60
+ let i1, i2, inc;
61
+ if (power < 0) {
62
+ inc = Math.pow(10, -power) / factor;
63
+ i1 = Math.round(start * inc);
64
+ i2 = Math.round(stop * inc);
65
+ if (i1 / inc < start) ++i1;
66
+ if (i2 / inc > stop) --i2;
67
+ inc = -inc;
68
+ } else {
69
+ inc = Math.pow(10, power) * factor;
70
+ i1 = Math.round(start / inc);
71
+ i2 = Math.round(stop / inc);
72
+ if (i1 * inc < start) ++i1;
73
+ if (i2 * inc > stop) --i2;
74
+ }
75
+ if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);
76
+ return [i1, i2, inc];
77
+ }
78
+ function ticks(start, stop, count) {
79
+ stop = +stop, start = +start, count = +count;
80
+ if (!(count > 0)) return [];
81
+ if (start === stop) return [start];
82
+ const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
83
+ if (!(i2 >= i1)) return [];
84
+ const n = i2 - i1 + 1, ticks2 = new Array(n);
85
+ if (reverse) {
86
+ if (inc < 0) for (let i = 0; i < n; ++i) ticks2[i] = (i2 - i) / -inc;
87
+ else for (let i = 0; i < n; ++i) ticks2[i] = (i2 - i) * inc;
88
+ } else {
89
+ if (inc < 0) for (let i = 0; i < n; ++i) ticks2[i] = (i1 + i) / -inc;
90
+ else for (let i = 0; i < n; ++i) ticks2[i] = (i1 + i) * inc;
91
+ }
92
+ return ticks2;
93
+ }
94
+ function tickIncrement(start, stop, count) {
95
+ stop = +stop, start = +start, count = +count;
96
+ return tickSpec(start, stop, count)[2];
97
+ }
98
+ function tickStep(start, stop, count) {
99
+ stop = +stop, start = +start, count = +count;
100
+ const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
101
+ return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
102
+ }
103
+ function numberArray(a, b) {
104
+ if (!b) b = [];
105
+ var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i;
106
+ return function(t) {
107
+ for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
108
+ return c;
109
+ };
110
+ }
111
+ function isNumberArray(x) {
112
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
113
+ }
114
+ function genericArray(a, b) {
115
+ var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i;
116
+ for (i = 0; i < na; ++i) x[i] = interpolate(a[i], b[i]);
117
+ for (; i < nb; ++i) c[i] = b[i];
118
+ return function(t) {
119
+ for (i = 0; i < na; ++i) c[i] = x[i](t);
120
+ return c;
121
+ };
122
+ }
123
+ function date(a, b) {
124
+ var d = /* @__PURE__ */ new Date();
125
+ return a = +a, b = +b, function(t) {
126
+ return d.setTime(a * (1 - t) + b * t), d;
127
+ };
128
+ }
129
+ function object(a, b) {
130
+ var i = {}, c = {}, k;
131
+ if (a === null || typeof a !== "object") a = {};
132
+ if (b === null || typeof b !== "object") b = {};
133
+ for (k in b) {
134
+ if (k in a) {
135
+ i[k] = interpolate(a[k], b[k]);
136
+ } else {
137
+ c[k] = b[k];
138
+ }
139
+ }
140
+ return function(t) {
141
+ for (k in i) c[k] = i[k](t);
142
+ return c;
143
+ };
144
+ }
145
+ function interpolate(a, b) {
146
+ var t = typeof b, c;
147
+ return b == null || t === "boolean" ? constant(b) : (t === "number" ? interpolateNumber : t === "string" ? (c = color(b)) ? (b = c, interpolateRgb) : interpolateString : b instanceof color ? interpolateRgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : interpolateNumber)(a, b);
148
+ }
149
+ function interpolateRound(a, b) {
150
+ return a = +a, b = +b, function(t) {
151
+ return Math.round(a * (1 - t) + b * t);
152
+ };
153
+ }
154
+ function formatDecimal(x) {
155
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
156
+ }
157
+ function formatDecimalParts(x, p) {
158
+ if (!isFinite(x) || x === 0) return null;
159
+ var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i);
160
+ return [
161
+ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
162
+ +x.slice(i + 1)
163
+ ];
164
+ }
165
+ function exponent(x) {
166
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
167
+ }
168
+ function formatGroup(grouping, thousands) {
169
+ return function(value, width) {
170
+ var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
171
+ while (i > 0 && g > 0) {
172
+ if (length + g + 1 > width) g = Math.max(1, width - length);
173
+ t.push(value.substring(i -= g, i + g));
174
+ if ((length += g + 1) > width) break;
175
+ g = grouping[j = (j + 1) % grouping.length];
176
+ }
177
+ return t.reverse().join(thousands);
178
+ };
179
+ }
180
+ function formatNumerals(numerals) {
181
+ return function(value) {
182
+ return value.replace(/[0-9]/g, function(i) {
183
+ return numerals[+i];
184
+ });
185
+ };
186
+ }
187
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
188
+ function formatSpecifier(specifier) {
189
+ if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
190
+ var match;
191
+ return new FormatSpecifier({
192
+ fill: match[1],
193
+ align: match[2],
194
+ sign: match[3],
195
+ symbol: match[4],
196
+ zero: match[5],
197
+ width: match[6],
198
+ comma: match[7],
199
+ precision: match[8] && match[8].slice(1),
200
+ trim: match[9],
201
+ type: match[10]
202
+ });
203
+ }
204
+ formatSpecifier.prototype = FormatSpecifier.prototype;
205
+ function FormatSpecifier(specifier) {
206
+ this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
207
+ this.align = specifier.align === void 0 ? ">" : specifier.align + "";
208
+ this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
209
+ this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
210
+ this.zero = !!specifier.zero;
211
+ this.width = specifier.width === void 0 ? void 0 : +specifier.width;
212
+ this.comma = !!specifier.comma;
213
+ this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
214
+ this.trim = !!specifier.trim;
215
+ this.type = specifier.type === void 0 ? "" : specifier.type + "";
216
+ }
217
+ FormatSpecifier.prototype.toString = function() {
218
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
219
+ };
220
+ function formatTrim(s) {
221
+ out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
222
+ switch (s[i]) {
223
+ case ".":
224
+ i0 = i1 = i;
225
+ break;
226
+ case "0":
227
+ if (i0 === 0) i0 = i;
228
+ i1 = i;
229
+ break;
230
+ default:
231
+ if (!+s[i]) break out;
232
+ if (i0 > 0) i0 = 0;
233
+ break;
234
+ }
235
+ }
236
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
237
+ }
238
+ var prefixExponent;
239
+ function formatPrefixAuto(x, p) {
240
+ var d = formatDecimalParts(x, p);
241
+ if (!d) return prefixExponent = void 0, x.toPrecision(p);
242
+ var coefficient = d[0], exponent2 = d[1], i = exponent2 - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent2 / 3))) * 3) + 1, n = coefficient.length;
243
+ return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
244
+ }
245
+ function formatRounded(x, p) {
246
+ var d = formatDecimalParts(x, p);
247
+ if (!d) return x + "";
248
+ var coefficient = d[0], exponent2 = d[1];
249
+ return exponent2 < 0 ? "0." + new Array(-exponent2).join("0") + coefficient : coefficient.length > exponent2 + 1 ? coefficient.slice(0, exponent2 + 1) + "." + coefficient.slice(exponent2 + 1) : coefficient + new Array(exponent2 - coefficient.length + 2).join("0");
250
+ }
251
+ const formatTypes = {
252
+ "%": (x, p) => (x * 100).toFixed(p),
253
+ "b": (x) => Math.round(x).toString(2),
254
+ "c": (x) => x + "",
255
+ "d": formatDecimal,
256
+ "e": (x, p) => x.toExponential(p),
257
+ "f": (x, p) => x.toFixed(p),
258
+ "g": (x, p) => x.toPrecision(p),
259
+ "o": (x) => Math.round(x).toString(8),
260
+ "p": (x, p) => formatRounded(x * 100, p),
261
+ "r": formatRounded,
262
+ "s": formatPrefixAuto,
263
+ "X": (x) => Math.round(x).toString(16).toUpperCase(),
264
+ "x": (x) => Math.round(x).toString(16)
265
+ };
266
+ function identity$1(x) {
267
+ return x;
268
+ }
269
+ var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
270
+ function formatLocale(locale2) {
271
+ var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity$1 : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal === void 0 ? "." : locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity$1 : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus === void 0 ? "−" : locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
272
+ function newFormat(specifier, options) {
273
+ specifier = formatSpecifier(specifier);
274
+ var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero2 = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
275
+ if (type === "n") comma = true, type = "g";
276
+ else if (!formatTypes[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
277
+ if (zero2 || fill === "0" && align === "=") zero2 = true, fill = "0", align = "=";
278
+ var prefix = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : "");
279
+ var formatType = formatTypes[type], maybeSuffix = /[defgprs%]/.test(type);
280
+ precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
281
+ function format2(value) {
282
+ var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
283
+ if (type === "c") {
284
+ valueSuffix = formatType(value) + valueSuffix;
285
+ value = "";
286
+ } else {
287
+ value = +value;
288
+ var valueNegative = value < 0 || 1 / value < 0;
289
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
290
+ if (trim) value = formatTrim(value);
291
+ if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
292
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
293
+ valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
294
+ if (maybeSuffix) {
295
+ i = -1, n = value.length;
296
+ while (++i < n) {
297
+ if (c = value.charCodeAt(i), 48 > c || c > 57) {
298
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
299
+ value = value.slice(0, i);
300
+ break;
301
+ }
302
+ }
303
+ }
304
+ }
305
+ if (comma && !zero2) value = group(value, Infinity);
306
+ var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
307
+ if (comma && zero2) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
308
+ switch (align) {
309
+ case "<":
310
+ value = valuePrefix + value + valueSuffix + padding;
311
+ break;
312
+ case "=":
313
+ value = valuePrefix + padding + value + valueSuffix;
314
+ break;
315
+ case "^":
316
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
317
+ break;
318
+ default:
319
+ value = padding + valuePrefix + value + valueSuffix;
320
+ break;
321
+ }
322
+ return numerals(value);
323
+ }
324
+ format2.toString = function() {
325
+ return specifier + "";
326
+ };
327
+ return format2;
328
+ }
329
+ function formatPrefix2(specifier, value) {
330
+ var e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] });
331
+ return function(value2) {
332
+ return f(k * value2);
333
+ };
334
+ }
335
+ return {
336
+ format: newFormat,
337
+ formatPrefix: formatPrefix2
338
+ };
339
+ }
340
+ var locale;
341
+ var format;
342
+ var formatPrefix;
343
+ defaultLocale({
344
+ thousands: ",",
345
+ grouping: [3],
346
+ currency: ["$", ""]
347
+ });
348
+ function defaultLocale(definition) {
349
+ locale = formatLocale(definition);
350
+ format = locale.format;
351
+ formatPrefix = locale.formatPrefix;
352
+ return locale;
353
+ }
354
+ function precisionFixed(step) {
355
+ return Math.max(0, -exponent(Math.abs(step)));
356
+ }
357
+ function precisionPrefix(step, value) {
358
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
359
+ }
360
+ function precisionRound(step, max) {
361
+ step = Math.abs(step), max = Math.abs(max) - step;
362
+ return Math.max(0, exponent(max) - exponent(step)) + 1;
363
+ }
364
+ function constants(x) {
365
+ return function() {
366
+ return x;
367
+ };
368
+ }
369
+ function number(x) {
370
+ return +x;
371
+ }
372
+ var unit = [0, 1];
373
+ function identity(x) {
374
+ return x;
375
+ }
376
+ function normalize(a, b) {
377
+ return (b -= a = +a) ? function(x) {
378
+ return (x - a) / b;
379
+ } : constants(isNaN(b) ? NaN : 0.5);
380
+ }
381
+ function clamper(a, b) {
382
+ var t;
383
+ if (a > b) t = a, a = b, b = t;
384
+ return function(x) {
385
+ return Math.max(a, Math.min(b, x));
386
+ };
387
+ }
388
+ function bimap(domain, range, interpolate2) {
389
+ var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
390
+ if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate2(r1, r0);
391
+ else d0 = normalize(d0, d1), r0 = interpolate2(r0, r1);
392
+ return function(x) {
393
+ return r0(d0(x));
394
+ };
395
+ }
396
+ function polymap(domain, range, interpolate2) {
397
+ var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1;
398
+ if (domain[j] < domain[0]) {
399
+ domain = domain.slice().reverse();
400
+ range = range.slice().reverse();
401
+ }
402
+ while (++i < j) {
403
+ d[i] = normalize(domain[i], domain[i + 1]);
404
+ r[i] = interpolate2(range[i], range[i + 1]);
405
+ }
406
+ return function(x) {
407
+ var i2 = bisectRight(domain, x, 1, j) - 1;
408
+ return r[i2](d[i2](x));
409
+ };
410
+ }
411
+ function copy(source, target) {
412
+ return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
413
+ }
414
+ function transformer() {
415
+ var domain = unit, range = unit, interpolate$1 = interpolate, transform, untransform, unknown, clamp = identity, piecewise, output, input;
416
+ function rescale() {
417
+ var n = Math.min(domain.length, range.length);
418
+ if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);
419
+ piecewise = n > 2 ? polymap : bimap;
420
+ output = input = null;
421
+ return scale;
422
+ }
423
+ function scale(x) {
424
+ return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate$1)))(transform(clamp(x)));
425
+ }
426
+ scale.invert = function(y) {
427
+ return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));
428
+ };
429
+ scale.domain = function(_) {
430
+ return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice();
431
+ };
432
+ scale.range = function(_) {
433
+ return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
434
+ };
435
+ scale.rangeRound = function(_) {
436
+ return range = Array.from(_), interpolate$1 = interpolateRound, rescale();
437
+ };
438
+ scale.clamp = function(_) {
439
+ return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
440
+ };
441
+ scale.interpolate = function(_) {
442
+ return arguments.length ? (interpolate$1 = _, rescale()) : interpolate$1;
443
+ };
444
+ scale.unknown = function(_) {
445
+ return arguments.length ? (unknown = _, scale) : unknown;
446
+ };
447
+ return function(t, u) {
448
+ transform = t, untransform = u;
449
+ return rescale();
450
+ };
451
+ }
452
+ function continuous() {
453
+ return transformer()(identity, identity);
454
+ }
455
+ function tickFormat(start, stop, count, specifier) {
456
+ var step = tickStep(start, stop, count), precision;
457
+ specifier = formatSpecifier(specifier == null ? ",f" : specifier);
458
+ switch (specifier.type) {
459
+ case "s": {
460
+ var value = Math.max(Math.abs(start), Math.abs(stop));
461
+ if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
462
+ return formatPrefix(specifier, value);
463
+ }
464
+ case "":
465
+ case "e":
466
+ case "g":
467
+ case "p":
468
+ case "r": {
469
+ if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
470
+ break;
471
+ }
472
+ case "f":
473
+ case "%": {
474
+ if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
475
+ break;
476
+ }
477
+ }
478
+ return format(specifier);
479
+ }
480
+ function linearish(scale) {
481
+ var domain = scale.domain;
482
+ scale.ticks = function(count) {
483
+ var d = domain();
484
+ return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
485
+ };
486
+ scale.tickFormat = function(count, specifier) {
487
+ var d = domain();
488
+ return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
489
+ };
490
+ scale.nice = function(count) {
491
+ if (count == null) count = 10;
492
+ var d = domain();
493
+ var i0 = 0;
494
+ var i1 = d.length - 1;
495
+ var start = d[i0];
496
+ var stop = d[i1];
497
+ var prestep;
498
+ var step;
499
+ var maxIter = 10;
500
+ if (stop < start) {
501
+ step = start, start = stop, stop = step;
502
+ step = i0, i0 = i1, i1 = step;
503
+ }
504
+ while (maxIter-- > 0) {
505
+ step = tickIncrement(start, stop, count);
506
+ if (step === prestep) {
507
+ d[i0] = start;
508
+ d[i1] = stop;
509
+ return domain(d);
510
+ } else if (step > 0) {
511
+ start = Math.floor(start / step) * step;
512
+ stop = Math.ceil(stop / step) * step;
513
+ } else if (step < 0) {
514
+ start = Math.ceil(start * step) / step;
515
+ stop = Math.floor(stop * step) / step;
516
+ } else {
517
+ break;
518
+ }
519
+ prestep = step;
520
+ }
521
+ return scale;
522
+ };
523
+ return scale;
524
+ }
525
+ function linear() {
526
+ var scale = continuous();
527
+ scale.copy = function() {
528
+ return copy(scale, linear());
529
+ };
530
+ initRange.apply(scale, arguments);
531
+ return linearish(scale);
532
+ }
533
+ export {
534
+ copy as a,
535
+ bisector as b,
536
+ continuous as c,
537
+ linear as l,
538
+ tickStep as t
539
+ };