mdbe 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (688) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +53 -0
  4. data/app.rb +182 -0
  5. data/bin/mdbe +5 -0
  6. data/config.ru +2 -0
  7. data/environment.rb +8 -0
  8. data/lib/mdbe.rb +39 -0
  9. data/lib/mdbe/action_controller_debug_patch.rb +12 -0
  10. data/lib/mdbe/code_evaluation.rb +46 -0
  11. data/lib/mdbe/database_views.rb +24 -0
  12. data/lib/mdbe/database_views/abstract_dictionary.rb +69 -0
  13. data/lib/mdbe/database_views/abstract_exception.rb +25 -0
  14. data/lib/mdbe/database_views/array.rb +28 -0
  15. data/lib/mdbe/database_views/boolean.rb +12 -0
  16. data/lib/mdbe/database_views/class.rb +46 -0
  17. data/lib/mdbe/database_views/exception.rb +3 -0
  18. data/lib/mdbe/database_views/execblock.rb +5 -0
  19. data/lib/mdbe/database_views/fixnum.rb +5 -0
  20. data/lib/mdbe/database_views/float.rb +5 -0
  21. data/lib/mdbe/database_views/globals.rb +2 -0
  22. data/lib/mdbe/database_views/gsnmethod.rb +29 -0
  23. data/lib/mdbe/database_views/hash.rb +5 -0
  24. data/lib/mdbe/database_views/maglev_record.rb +42 -0
  25. data/lib/mdbe/database_views/module.rb +103 -0
  26. data/lib/mdbe/database_views/nilclass.rb +5 -0
  27. data/lib/mdbe/database_views/object.rb +80 -0
  28. data/lib/mdbe/database_views/proc.rb +3 -0
  29. data/lib/mdbe/database_views/repository.rb +3 -0
  30. data/lib/mdbe/database_views/ruby_workspace.rb +5 -0
  31. data/lib/mdbe/database_views/smalltalk_classes.rb +34 -0
  32. data/lib/mdbe/database_views/smalltalk_classes.st +60 -0
  33. data/lib/mdbe/database_views/string.rb +31 -0
  34. data/lib/mdbe/database_views/symbol.rb +32 -0
  35. data/lib/mdbe/database_views/system.rb +61 -0
  36. data/lib/mdbe/database_views/thread.rb +101 -0
  37. data/lib/mdbe/debug_server.rb +22 -0
  38. data/lib/mdbe/halt.rb +42 -0
  39. data/lib/mdbe/ruby_workspace.rb +29 -0
  40. data/lib/mdbe/version.rb +3 -0
  41. data/lib/tasks/maglev-database-explorer_tasks.rake +4 -0
  42. data/public/LICENSE +35 -0
  43. data/public/amber/CHANGELOG +65 -0
  44. data/public/amber/LICENSE +22 -0
  45. data/public/amber/Makefile +53 -0
  46. data/public/amber/README.md +30 -0
  47. data/public/amber/bin/amber +3 -0
  48. data/public/amber/bin/amberc +352 -0
  49. data/public/amber/bin/nodecompile.js +33 -0
  50. data/public/amber/bin/server +3 -0
  51. data/public/amber/bin/server.bat +3 -0
  52. data/public/amber/css/amber-normalize.css +468 -0
  53. data/public/amber/css/amber-normalize.less +501 -0
  54. data/public/amber/css/amber.css +539 -0
  55. data/public/amber/css/documentation.css +84 -0
  56. data/public/amber/css/profstef.css +75 -0
  57. data/public/amber/css/style.css +313 -0
  58. data/public/amber/documentation.html +37 -0
  59. data/public/amber/examples/Makefile +23 -0
  60. data/public/amber/examples/README +4 -0
  61. data/public/amber/examples/android/helloamber/AndroidManifest.xml +19 -0
  62. data/public/amber/examples/android/helloamber/HelloAmber.st +13 -0
  63. data/public/amber/examples/android/helloamber/Makefile +56 -0
  64. data/public/amber/examples/android/helloamber/README.md +80 -0
  65. data/public/amber/examples/android/helloamber/ant.properties +17 -0
  66. data/public/amber/examples/android/helloamber/assets/index.html +15 -0
  67. data/public/amber/examples/android/helloamber/assets/jquery-1.7.2.min.js +4 -0
  68. data/public/amber/examples/android/helloamber/build.xml +83 -0
  69. data/public/amber/examples/android/helloamber/local.properties +10 -0
  70. data/public/amber/examples/android/helloamber/proguard-project.txt +20 -0
  71. data/public/amber/examples/android/helloamber/project.properties +14 -0
  72. data/public/amber/examples/android/helloamber/res/layout/main.xml +6 -0
  73. data/public/amber/examples/android/helloamber/res/values/strings.xml +4 -0
  74. data/public/amber/examples/android/helloamber/src/org/amberlang/android/helloamber/HelloAmber.java +59 -0
  75. data/public/amber/examples/myproject/index.html +16 -0
  76. data/public/amber/examples/nodejs/README +9 -0
  77. data/public/amber/examples/nodejs/benchfib/Benchfib.st +124 -0
  78. data/public/amber/examples/nodejs/benchfib/Makefile +8 -0
  79. data/public/amber/examples/nodejs/benchfib/benchfib +1 -0
  80. data/public/amber/examples/nodejs/hello/Hello.st +9 -0
  81. data/public/amber/examples/nodejs/hello/Makefile +8 -0
  82. data/public/amber/examples/nodejs/hello/README +13 -0
  83. data/public/amber/examples/nodejs/hello/hello +1 -0
  84. data/public/amber/examples/nodejs/meta/Makefile +8 -0
  85. data/public/amber/examples/nodejs/meta/MyScript.st +27 -0
  86. data/public/amber/examples/nodejs/meta/meta +1 -0
  87. data/public/amber/examples/nodejs/pystone/Makefile +8 -0
  88. data/public/amber/examples/nodejs/pystone/Pystone.st +306 -0
  89. data/public/amber/examples/nodejs/pystone/pystone +1 -0
  90. data/public/amber/examples/nodejs/trivialserver/Makefile +8 -0
  91. data/public/amber/examples/nodejs/trivialserver/TrivialServer.st +51 -0
  92. data/public/amber/examples/nodejs/trivialserver/trivial +1 -0
  93. data/public/amber/examples/presentation/esug2011/images/asterix.png +0 -0
  94. data/public/amber/examples/presentation/esug2011/images/background_box.png +0 -0
  95. data/public/amber/examples/presentation/esug2011/images/background_header.png +0 -0
  96. data/public/amber/examples/presentation/esug2011/images/balloon.jpg +0 -0
  97. data/public/amber/examples/presentation/esug2011/images/balloon_header.png +0 -0
  98. data/public/amber/examples/presentation/esug2011/images/devices.jpg +0 -0
  99. data/public/amber/examples/presentation/esug2011/images/enyo.png +0 -0
  100. data/public/amber/examples/presentation/esug2011/images/ide_star_wars.png +0 -0
  101. data/public/amber/examples/presentation/esug2011/images/nodejs.png +0 -0
  102. data/public/amber/examples/presentation/esug2011/images/terminal.png +0 -0
  103. data/public/amber/examples/presentation/esug2011/images/webos.png +0 -0
  104. data/public/amber/examples/presentation/fosdem2012/images/amber.png +0 -0
  105. data/public/amber/examples/presentation/fosdem2012/images/ambrhino.jpg +0 -0
  106. data/public/amber/examples/presentation/fosdem2012/images/nodejs.png +0 -0
  107. data/public/amber/examples/presentation/fosdem2012/images/pharo.png +0 -0
  108. data/public/amber/examples/presentation/fosdem2012/images/php.gif +0 -0
  109. data/public/amber/examples/presentation/fosdem2012/images/rails.png +0 -0
  110. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-next.png +0 -0
  111. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/arrow-prev.png +0 -0
  112. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/closedhand.cur +0 -0
  113. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/openhand.cur +0 -0
  114. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-back.png +0 -0
  115. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow-top-forward.png +0 -0
  116. data/public/amber/examples/presentation/fosdem2012/lib/booklet/images/shadow.png +0 -0
  117. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.css +100 -0
  118. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.js +1232 -0
  119. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.booklet.1.2.0.min.js +13 -0
  120. data/public/amber/examples/presentation/fosdem2012/lib/booklet/jquery.easing.1.3.js +38 -0
  121. data/public/amber/examples/presentation/index.html +17 -0
  122. data/public/amber/examples/presentation/js/Presentation.deploy.js +1922 -0
  123. data/public/amber/examples/presentation/js/Presentation.js +2712 -0
  124. data/public/amber/examples/presentation/st/Presentation.st +1996 -0
  125. data/public/amber/examples/trysmalltalk/index.html +18 -0
  126. data/public/amber/examples/trysmalltalk/js/TrySmalltalk.deploy.js +837 -0
  127. data/public/amber/examples/trysmalltalk/js/TrySmalltalk.js +1206 -0
  128. data/public/amber/examples/trysmalltalk/st/TrySmalltalk.st +964 -0
  129. data/public/amber/examples/twitterwall/css/twitterwall.css +19 -0
  130. data/public/amber/examples/twitterwall/index.html +35 -0
  131. data/public/amber/examples/twitterwall/js/TwitterWall.deploy.js +116 -0
  132. data/public/amber/examples/twitterwall/js/TwitterWall.js +146 -0
  133. data/public/amber/examples/twitterwall/st/TwitterWall.st +91 -0
  134. data/public/amber/examples/webos/README +11 -0
  135. data/public/amber/examples/webos/eris/DuckQwaq.wav +0 -0
  136. data/public/amber/examples/webos/eris/EnyoAmber.st +36 -0
  137. data/public/amber/examples/webos/eris/Eris.css +0 -0
  138. data/public/amber/examples/webos/eris/Eris.st +86 -0
  139. data/public/amber/examples/webos/eris/Makefile +37 -0
  140. data/public/amber/examples/webos/eris/README +3 -0
  141. data/public/amber/examples/webos/eris/appinfo.json +10 -0
  142. data/public/amber/examples/webos/eris/index.html +12 -0
  143. data/public/amber/examples/webos/helloamber/EnyoAmber.st +36 -0
  144. data/public/amber/examples/webos/helloamber/HelloAmber.st +86 -0
  145. data/public/amber/examples/webos/helloamber/Makefile +38 -0
  146. data/public/amber/examples/webos/helloamber/README +5 -0
  147. data/public/amber/examples/webos/helloamber/appinfo.json +10 -0
  148. data/public/amber/examples/webos/helloamber/index.html +12 -0
  149. data/public/amber/favicon.ico +0 -0
  150. data/public/amber/images/amber.png +0 -0
  151. data/public/amber/images/amber.svg +706 -0
  152. data/public/amber/images/amber_small.png +0 -0
  153. data/public/amber/images/off.amber.png +0 -0
  154. data/public/amber/images/off.png +0 -0
  155. data/public/amber/images/offHover.amber.png +0 -0
  156. data/public/amber/images/offHover.png +0 -0
  157. data/public/amber/images/presentation.png +0 -0
  158. data/public/amber/images/profstef.png +0 -0
  159. data/public/amber/images/sprite.amber.png +0 -0
  160. data/public/amber/images/sprite.png +0 -0
  161. data/public/amber/images/tinylogo.amber.png +0 -0
  162. data/public/amber/images/tinylogo.png +0 -0
  163. data/public/amber/images/twitterwall.png +0 -0
  164. data/public/amber/index.html +55 -0
  165. data/public/amber/js/Additional-Examples.deploy.js +15 -0
  166. data/public/amber/js/Additional-Examples.js +21 -0
  167. data/public/amber/js/Benchfib.deploy.js +132 -0
  168. data/public/amber/js/Benchfib.js +167 -0
  169. data/public/amber/js/Canvas.deploy.js +2446 -0
  170. data/public/amber/js/Canvas.js +3547 -0
  171. data/public/amber/js/Compiler-Tests.deploy.js +97 -0
  172. data/public/amber/js/Compiler-Tests.js +137 -0
  173. data/public/amber/js/Compiler.deploy.js +1877 -0
  174. data/public/amber/js/Compiler.js +2622 -0
  175. data/public/amber/js/Documentation.deploy.js +961 -0
  176. data/public/amber/js/Documentation.js +1376 -0
  177. data/public/amber/js/Examples.deploy.js +53 -0
  178. data/public/amber/js/Examples.js +73 -0
  179. data/public/amber/js/IDE.deploy.js +3557 -0
  180. data/public/amber/js/IDE.js +5002 -0
  181. data/public/amber/js/Kernel-Announcements.deploy.js +107 -0
  182. data/public/amber/js/Kernel-Announcements.js +152 -0
  183. data/public/amber/js/Kernel-Classes.deploy.js +774 -0
  184. data/public/amber/js/Kernel-Classes.js +1095 -0
  185. data/public/amber/js/Kernel-Collections.deploy.js +3121 -0
  186. data/public/amber/js/Kernel-Collections.js +4427 -0
  187. data/public/amber/js/Kernel-Exceptions.deploy.js +244 -0
  188. data/public/amber/js/Kernel-Exceptions.js +349 -0
  189. data/public/amber/js/Kernel-Methods.deploy.js +573 -0
  190. data/public/amber/js/Kernel-Methods.js +807 -0
  191. data/public/amber/js/Kernel-Objects.deploy.js +2877 -0
  192. data/public/amber/js/Kernel-Objects.js +4107 -0
  193. data/public/amber/js/Kernel-Tests.deploy.js +1513 -0
  194. data/public/amber/js/Kernel-Tests.js +2053 -0
  195. data/public/amber/js/Kernel-Transcript.deploy.js +142 -0
  196. data/public/amber/js/Kernel-Transcript.js +202 -0
  197. data/public/amber/js/Maglev-Core.deploy.js +2996 -0
  198. data/public/amber/js/Maglev-Core.js +4246 -0
  199. data/public/amber/js/Maglev-Database-Explorer.deploy.js +4476 -0
  200. data/public/amber/js/Maglev-Database-Explorer.js +6232 -0
  201. data/public/amber/js/Maglev-Vendor.deploy.js +350 -0
  202. data/public/amber/js/Maglev-Vendor.js +465 -0
  203. data/public/amber/js/README.md +5 -0
  204. data/public/amber/js/SUnit.deploy.js +351 -0
  205. data/public/amber/js/SUnit.js +501 -0
  206. data/public/amber/js/amber.js +273 -0
  207. data/public/amber/js/boot.js +602 -0
  208. data/public/amber/js/compat.js +22 -0
  209. data/public/amber/js/init.js +9 -0
  210. data/public/amber/js/lib/CodeMirror/LICENSE +19 -0
  211. data/public/amber/js/lib/CodeMirror/active-line.js +39 -0
  212. data/public/amber/js/lib/CodeMirror/amber.css +21 -0
  213. data/public/amber/js/lib/CodeMirror/codemirror.css +67 -0
  214. data/public/amber/js/lib/CodeMirror/codemirror.js +2144 -0
  215. data/public/amber/js/lib/CodeMirror/smalltalk.js +134 -0
  216. data/public/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
  217. data/public/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
  218. data/public/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
  219. data/public/amber/js/lib/jQuery/jquery.textarea.js +267 -0
  220. data/public/amber/js/lib/peg-0.6.2.min.js +2 -0
  221. data/public/amber/js/lib/showdown.js +419 -0
  222. data/public/amber/js/parser.js +4222 -0
  223. data/public/amber/js/parser.pegjs +223 -0
  224. data/public/amber/learn.html +40 -0
  225. data/public/amber/repl/Makefile +8 -0
  226. data/public/amber/repl/REPL.js +124 -0
  227. data/public/amber/repl/REPL.st +56 -0
  228. data/public/amber/repl/amber.js +18085 -0
  229. data/public/amber/server/FileServer.st +576 -0
  230. data/public/amber/server/Makefile +8 -0
  231. data/public/amber/server/server.js +13049 -0
  232. data/public/amber/st/Benchfib.js +297 -0
  233. data/public/amber/st/Benchfib.st +124 -0
  234. data/public/amber/st/Canvas.st +968 -0
  235. data/public/amber/st/Compiler-Tests.st +471 -0
  236. data/public/amber/st/Compiler.st +1445 -0
  237. data/public/amber/st/Documentation.st +758 -0
  238. data/public/amber/st/Examples.js +100 -0
  239. data/public/amber/st/Examples.st +38 -0
  240. data/public/amber/st/IDE.st +2404 -0
  241. data/public/amber/st/Kernel-Announcements.st +61 -0
  242. data/public/amber/st/Kernel-Classes.st +462 -0
  243. data/public/amber/st/Kernel-Collections.st +1611 -0
  244. data/public/amber/st/Kernel-Exceptions.st +124 -0
  245. data/public/amber/st/Kernel-Methods.st +291 -0
  246. data/public/amber/st/Kernel-Objects.st +1587 -0
  247. data/public/amber/st/Kernel-Tests.st +953 -0
  248. data/public/amber/st/Kernel-Transcript.st +70 -0
  249. data/public/amber/st/Maglev-Core.st +1694 -0
  250. data/public/amber/st/Maglev-Database-Explorer.st +3148 -0
  251. data/public/amber/st/Maglev-Vendor.st +151 -0
  252. data/public/amber/st/Makefile +104 -0
  253. data/public/amber/st/README.md +4 -0
  254. data/public/amber/st/SUnit.st +172 -0
  255. data/public/css/bootstrap-combined.no-icons.min.css +731 -0
  256. data/public/css/bootstrap.css +6811 -0
  257. data/public/css/images/animated-overlay.gif +0 -0
  258. data/public/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  259. data/public/css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  260. data/public/css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  261. data/public/css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  262. data/public/css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  263. data/public/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  264. data/public/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  265. data/public/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  266. data/public/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  267. data/public/css/images/ui-icons_222222_256x240.png +0 -0
  268. data/public/css/images/ui-icons_228ef1_256x240.png +0 -0
  269. data/public/css/images/ui-icons_ef8c08_256x240.png +0 -0
  270. data/public/css/images/ui-icons_ffd27a_256x240.png +0 -0
  271. data/public/css/images/ui-icons_ffffff_256x240.png +0 -0
  272. data/public/css/jquery-ui.min.css +5 -0
  273. data/public/css/smalltalk_code.css +42 -0
  274. data/public/css/style.css +210 -0
  275. data/public/images/bg_tile.png +0 -0
  276. data/public/images/maglev-logo.gif +0 -0
  277. data/public/images/mchammer.gif +0 -0
  278. data/public/images/rails_tiny.png +0 -0
  279. data/public/images/ruby.png +0 -0
  280. data/public/images/ruby_smalltalk_bridge.png +0 -0
  281. data/public/images/smalltalk.png +0 -0
  282. data/public/img/glyphicons-halflings.png +0 -0
  283. data/public/index.html +118 -0
  284. data/public/libs/bootstrap.min.js +7 -0
  285. data/public/libs/codemirror/CONTRIBUTING.md +72 -0
  286. data/public/libs/codemirror/LICENSE +23 -0
  287. data/public/libs/codemirror/README.md +11 -0
  288. data/public/libs/codemirror/addon/dialog/dialog.css +32 -0
  289. data/public/libs/codemirror/addon/dialog/dialog.js +80 -0
  290. data/public/libs/codemirror/addon/display/placeholder.js +54 -0
  291. data/public/libs/codemirror/addon/edit/closebrackets.js +54 -0
  292. data/public/libs/codemirror/addon/edit/closetag.js +86 -0
  293. data/public/libs/codemirror/addon/edit/continuecomment.js +44 -0
  294. data/public/libs/codemirror/addon/edit/continuelist.js +25 -0
  295. data/public/libs/codemirror/addon/edit/matchbrackets.js +82 -0
  296. data/public/libs/codemirror/addon/fold/brace-fold.js +31 -0
  297. data/public/libs/codemirror/addon/fold/foldcode.js +32 -0
  298. data/public/libs/codemirror/addon/fold/indent-fold.js +11 -0
  299. data/public/libs/codemirror/addon/fold/xml-fold.js +64 -0
  300. data/public/libs/codemirror/addon/hint/html-hint.js +582 -0
  301. data/public/libs/codemirror/addon/hint/javascript-hint.js +142 -0
  302. data/public/libs/codemirror/addon/hint/pig-hint.js +117 -0
  303. data/public/libs/codemirror/addon/hint/python-hint.js +93 -0
  304. data/public/libs/codemirror/addon/hint/show-hint.css +38 -0
  305. data/public/libs/codemirror/addon/hint/show-hint.js +180 -0
  306. data/public/libs/codemirror/addon/hint/xml-hint.js +118 -0
  307. data/public/libs/codemirror/addon/lint/javascript-lint.js +127 -0
  308. data/public/libs/codemirror/addon/lint/json-lint.js +14 -0
  309. data/public/libs/codemirror/addon/lint/lint.css +96 -0
  310. data/public/libs/codemirror/addon/lint/lint.js +197 -0
  311. data/public/libs/codemirror/addon/mode/loadmode.js +51 -0
  312. data/public/libs/codemirror/addon/mode/multiplex.js +95 -0
  313. data/public/libs/codemirror/addon/mode/overlay.js +59 -0
  314. data/public/libs/codemirror/addon/runmode/colorize.js +29 -0
  315. data/public/libs/codemirror/addon/runmode/runmode-standalone.js +130 -0
  316. data/public/libs/codemirror/addon/runmode/runmode.js +52 -0
  317. data/public/libs/codemirror/addon/runmode/runmode.node.js +89 -0
  318. data/public/libs/codemirror/addon/search/match-highlighter.js +60 -0
  319. data/public/libs/codemirror/addon/search/search.js +131 -0
  320. data/public/libs/codemirror/addon/search/searchcursor.js +133 -0
  321. data/public/libs/codemirror/addon/selection/active-line.js +39 -0
  322. data/public/libs/codemirror/addon/selection/mark-selection.js +34 -0
  323. data/public/libs/codemirror/bin/compress +91 -0
  324. data/public/libs/codemirror/bin/lint +11 -0
  325. data/public/libs/codemirror/demo/activeline.html +70 -0
  326. data/public/libs/codemirror/demo/bidi.html +61 -0
  327. data/public/libs/codemirror/demo/btree.html +87 -0
  328. data/public/libs/codemirror/demo/buffers.html +98 -0
  329. data/public/libs/codemirror/demo/changemode.html +50 -0
  330. data/public/libs/codemirror/demo/closebrackets.html +63 -0
  331. data/public/libs/codemirror/demo/closetag.html +37 -0
  332. data/public/libs/codemirror/demo/complete.html +70 -0
  333. data/public/libs/codemirror/demo/emacs.html +60 -0
  334. data/public/libs/codemirror/demo/folding.html +69 -0
  335. data/public/libs/codemirror/demo/fullscreen.html +147 -0
  336. data/public/libs/codemirror/demo/html5complete.html +92 -0
  337. data/public/libs/codemirror/demo/indentwrap.html +49 -0
  338. data/public/libs/codemirror/demo/lint.html +90 -0
  339. data/public/libs/codemirror/demo/loadmode.html +40 -0
  340. data/public/libs/codemirror/demo/marker.html +59 -0
  341. data/public/libs/codemirror/demo/markselection.html +36 -0
  342. data/public/libs/codemirror/demo/matchhighlighter.html +38 -0
  343. data/public/libs/codemirror/demo/multiplex.html +60 -0
  344. data/public/libs/codemirror/demo/mustache.html +59 -0
  345. data/public/libs/codemirror/demo/placeholder.html +36 -0
  346. data/public/libs/codemirror/demo/preview.html +76 -0
  347. data/public/libs/codemirror/demo/resize.html +49 -0
  348. data/public/libs/codemirror/demo/runmode.html +50 -0
  349. data/public/libs/codemirror/demo/search.html +85 -0
  350. data/public/libs/codemirror/demo/spanaffectswrapping_shim.html +73 -0
  351. data/public/libs/codemirror/demo/theme.html +89 -0
  352. data/public/libs/codemirror/demo/variableheight.html +52 -0
  353. data/public/libs/codemirror/demo/vim.html +65 -0
  354. data/public/libs/codemirror/demo/visibletabs.html +53 -0
  355. data/public/libs/codemirror/demo/widget.html +74 -0
  356. data/public/libs/codemirror/demo/xmlcomplete.html +81 -0
  357. data/public/libs/codemirror/index.html +487 -0
  358. data/public/libs/codemirror/keymap/emacs.js +30 -0
  359. data/public/libs/codemirror/keymap/vim.js +3044 -0
  360. data/public/libs/codemirror/lib/codemirror.css +253 -0
  361. data/public/libs/codemirror/lib/codemirror.js +5585 -0
  362. data/public/libs/codemirror/mode/apl/apl.js +160 -0
  363. data/public/libs/codemirror/mode/apl/index.html +61 -0
  364. data/public/libs/codemirror/mode/asterisk/asterisk.js +183 -0
  365. data/public/libs/codemirror/mode/asterisk/index.html +142 -0
  366. data/public/libs/codemirror/mode/clike/clike.js +302 -0
  367. data/public/libs/codemirror/mode/clike/index.html +103 -0
  368. data/public/libs/codemirror/mode/clike/scala.html +767 -0
  369. data/public/libs/codemirror/mode/clojure/clojure.js +222 -0
  370. data/public/libs/codemirror/mode/clojure/index.html +76 -0
  371. data/public/libs/codemirror/mode/coffeescript/LICENSE +22 -0
  372. data/public/libs/codemirror/mode/coffeescript/coffeescript.js +346 -0
  373. data/public/libs/codemirror/mode/coffeescript/index.html +728 -0
  374. data/public/libs/codemirror/mode/commonlisp/commonlisp.js +101 -0
  375. data/public/libs/codemirror/mode/commonlisp/index.html +165 -0
  376. data/public/libs/codemirror/mode/css/css.js +567 -0
  377. data/public/libs/codemirror/mode/css/index.html +58 -0
  378. data/public/libs/codemirror/mode/css/scss.html +145 -0
  379. data/public/libs/codemirror/mode/css/scss_test.js +80 -0
  380. data/public/libs/codemirror/mode/css/test.js +113 -0
  381. data/public/libs/codemirror/mode/d/d.js +205 -0
  382. data/public/libs/codemirror/mode/d/index.html +262 -0
  383. data/public/libs/codemirror/mode/diff/diff.js +32 -0
  384. data/public/libs/codemirror/mode/diff/index.html +105 -0
  385. data/public/libs/codemirror/mode/ecl/ecl.js +192 -0
  386. data/public/libs/codemirror/mode/ecl/index.html +39 -0
  387. data/public/libs/codemirror/mode/erlang/erlang.js +463 -0
  388. data/public/libs/codemirror/mode/erlang/index.html +64 -0
  389. data/public/libs/codemirror/mode/gas/gas.js +326 -0
  390. data/public/libs/codemirror/mode/gas/index.html +57 -0
  391. data/public/libs/codemirror/mode/gfm/gfm.js +96 -0
  392. data/public/libs/codemirror/mode/gfm/index.html +74 -0
  393. data/public/libs/codemirror/mode/gfm/test.js +112 -0
  394. data/public/libs/codemirror/mode/go/go.js +165 -0
  395. data/public/libs/codemirror/mode/go/index.html +74 -0
  396. data/public/libs/codemirror/mode/groovy/groovy.js +210 -0
  397. data/public/libs/codemirror/mode/groovy/index.html +73 -0
  398. data/public/libs/codemirror/mode/haskell/haskell.js +242 -0
  399. data/public/libs/codemirror/mode/haskell/index.html +62 -0
  400. data/public/libs/codemirror/mode/haxe/haxe.js +429 -0
  401. data/public/libs/codemirror/mode/haxe/index.html +90 -0
  402. data/public/libs/codemirror/mode/htmlembedded/htmlembedded.js +73 -0
  403. data/public/libs/codemirror/mode/htmlembedded/index.html +49 -0
  404. data/public/libs/codemirror/mode/htmlmixed/htmlmixed.js +104 -0
  405. data/public/libs/codemirror/mode/htmlmixed/index.html +73 -0
  406. data/public/libs/codemirror/mode/http/http.js +98 -0
  407. data/public/libs/codemirror/mode/http/index.html +32 -0
  408. data/public/libs/codemirror/mode/javascript/index.html +92 -0
  409. data/public/libs/codemirror/mode/javascript/javascript.js +467 -0
  410. data/public/libs/codemirror/mode/javascript/typescript.html +48 -0
  411. data/public/libs/codemirror/mode/jinja2/index.html +38 -0
  412. data/public/libs/codemirror/mode/jinja2/jinja2.js +42 -0
  413. data/public/libs/codemirror/mode/less/index.html +741 -0
  414. data/public/libs/codemirror/mode/less/less.js +266 -0
  415. data/public/libs/codemirror/mode/livescript/LICENSE +23 -0
  416. data/public/libs/codemirror/mode/livescript/index.html +446 -0
  417. data/public/libs/codemirror/mode/livescript/livescript.js +267 -0
  418. data/public/libs/codemirror/mode/livescript/livescript.ls +266 -0
  419. data/public/libs/codemirror/mode/lua/index.html +74 -0
  420. data/public/libs/codemirror/mode/lua/lua.js +140 -0
  421. data/public/libs/codemirror/mode/markdown/index.html +344 -0
  422. data/public/libs/codemirror/mode/markdown/markdown.js +526 -0
  423. data/public/libs/codemirror/mode/markdown/test.js +636 -0
  424. data/public/libs/codemirror/mode/meta.js +75 -0
  425. data/public/libs/codemirror/mode/mirc/index.html +149 -0
  426. data/public/libs/codemirror/mode/mirc/mirc.js +177 -0
  427. data/public/libs/codemirror/mode/ntriples/index.html +33 -0
  428. data/public/libs/codemirror/mode/ntriples/ntriples.js +170 -0
  429. data/public/libs/codemirror/mode/ocaml/index.html +131 -0
  430. data/public/libs/codemirror/mode/ocaml/ocaml.js +113 -0
  431. data/public/libs/codemirror/mode/pascal/LICENSE +7 -0
  432. data/public/libs/codemirror/mode/pascal/index.html +48 -0
  433. data/public/libs/codemirror/mode/pascal/pascal.js +94 -0
  434. data/public/libs/codemirror/mode/perl/LICENSE +19 -0
  435. data/public/libs/codemirror/mode/perl/index.html +62 -0
  436. data/public/libs/codemirror/mode/perl/perl.js +816 -0
  437. data/public/libs/codemirror/mode/php/index.html +51 -0
  438. data/public/libs/codemirror/mode/php/php.js +129 -0
  439. data/public/libs/codemirror/mode/pig/index.html +42 -0
  440. data/public/libs/codemirror/mode/pig/pig.js +171 -0
  441. data/public/libs/codemirror/mode/properties/index.html +41 -0
  442. data/public/libs/codemirror/mode/properties/properties.js +63 -0
  443. data/public/libs/codemirror/mode/python/LICENSE.txt +21 -0
  444. data/public/libs/codemirror/mode/python/index.html +135 -0
  445. data/public/libs/codemirror/mode/python/python.js +340 -0
  446. data/public/libs/codemirror/mode/q/index.html +131 -0
  447. data/public/libs/codemirror/mode/q/q.js +124 -0
  448. data/public/libs/codemirror/mode/r/LICENSE +24 -0
  449. data/public/libs/codemirror/mode/r/index.html +74 -0
  450. data/public/libs/codemirror/mode/r/r.js +141 -0
  451. data/public/libs/codemirror/mode/rpm/changes/changes.js +19 -0
  452. data/public/libs/codemirror/mode/rpm/changes/index.html +53 -0
  453. data/public/libs/codemirror/mode/rpm/spec/index.html +99 -0
  454. data/public/libs/codemirror/mode/rpm/spec/spec.css +5 -0
  455. data/public/libs/codemirror/mode/rpm/spec/spec.js +66 -0
  456. data/public/libs/codemirror/mode/rst/LICENSE.txt +21 -0
  457. data/public/libs/codemirror/mode/rst/index.html +524 -0
  458. data/public/libs/codemirror/mode/rst/rst.js +550 -0
  459. data/public/libs/codemirror/mode/ruby/LICENSE +24 -0
  460. data/public/libs/codemirror/mode/ruby/index.html +173 -0
  461. data/public/libs/codemirror/mode/ruby/ruby.js +197 -0
  462. data/public/libs/codemirror/mode/rust/index.html +48 -0
  463. data/public/libs/codemirror/mode/rust/rust.js +432 -0
  464. data/public/libs/codemirror/mode/sass/index.html +54 -0
  465. data/public/libs/codemirror/mode/sass/sass.js +349 -0
  466. data/public/libs/codemirror/mode/scheme/index.html +65 -0
  467. data/public/libs/codemirror/mode/scheme/scheme.js +230 -0
  468. data/public/libs/codemirror/mode/shell/index.html +51 -0
  469. data/public/libs/codemirror/mode/shell/shell.js +118 -0
  470. data/public/libs/codemirror/mode/sieve/LICENSE +19 -0
  471. data/public/libs/codemirror/mode/sieve/index.html +81 -0
  472. data/public/libs/codemirror/mode/sieve/sieve.js +183 -0
  473. data/public/libs/codemirror/mode/smalltalk/index.html +57 -0
  474. data/public/libs/codemirror/mode/smalltalk/smalltalk.js +141 -0
  475. data/public/libs/codemirror/mode/smarty/index.html +83 -0
  476. data/public/libs/codemirror/mode/smarty/smarty.js +148 -0
  477. data/public/libs/codemirror/mode/sparql/index.html +42 -0
  478. data/public/libs/codemirror/mode/sparql/sparql.js +143 -0
  479. data/public/libs/codemirror/mode/sql/index.html +68 -0
  480. data/public/libs/codemirror/mode/sql/sql.js +268 -0
  481. data/public/libs/codemirror/mode/stex/index.html +98 -0
  482. data/public/libs/codemirror/mode/stex/stex.js +246 -0
  483. data/public/libs/codemirror/mode/stex/test.js +117 -0
  484. data/public/libs/codemirror/mode/tcl/index.html +129 -0
  485. data/public/libs/codemirror/mode/tcl/tcl.js +131 -0
  486. data/public/libs/codemirror/mode/tiddlywiki/index.html +142 -0
  487. data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  488. data/public/libs/codemirror/mode/tiddlywiki/tiddlywiki.js +353 -0
  489. data/public/libs/codemirror/mode/tiki/index.html +81 -0
  490. data/public/libs/codemirror/mode/tiki/tiki.css +26 -0
  491. data/public/libs/codemirror/mode/tiki/tiki.js +308 -0
  492. data/public/libs/codemirror/mode/turtle/index.html +39 -0
  493. data/public/libs/codemirror/mode/turtle/turtle.js +145 -0
  494. data/public/libs/codemirror/mode/vb/LICENSE.txt +21 -0
  495. data/public/libs/codemirror/mode/vb/index.html +88 -0
  496. data/public/libs/codemirror/mode/vb/vb.js +259 -0
  497. data/public/libs/codemirror/mode/vbscript/index.html +42 -0
  498. data/public/libs/codemirror/mode/vbscript/vbscript.js +26 -0
  499. data/public/libs/codemirror/mode/velocity/index.html +103 -0
  500. data/public/libs/codemirror/mode/velocity/velocity.js +144 -0
  501. data/public/libs/codemirror/mode/verilog/index.html +121 -0
  502. data/public/libs/codemirror/mode/verilog/verilog.js +182 -0
  503. data/public/libs/codemirror/mode/xml/index.html +45 -0
  504. data/public/libs/codemirror/mode/xml/xml.js +328 -0
  505. data/public/libs/codemirror/mode/xquery/LICENSE +20 -0
  506. data/public/libs/codemirror/mode/xquery/index.html +221 -0
  507. data/public/libs/codemirror/mode/xquery/test.js +64 -0
  508. data/public/libs/codemirror/mode/xquery/xquery.js +450 -0
  509. data/public/libs/codemirror/mode/yaml/index.html +68 -0
  510. data/public/libs/codemirror/mode/yaml/yaml.js +95 -0
  511. data/public/libs/codemirror/mode/z80/index.html +39 -0
  512. data/public/libs/codemirror/mode/z80/z80.js +85 -0
  513. data/public/libs/codemirror/package.json +21 -0
  514. data/public/libs/codemirror/test/doc_test.js +329 -0
  515. data/public/libs/codemirror/test/driver.js +138 -0
  516. data/public/libs/codemirror/test/index.html +182 -0
  517. data/public/libs/codemirror/test/lint/acorn.js +1593 -0
  518. data/public/libs/codemirror/test/lint/lint.js +112 -0
  519. data/public/libs/codemirror/test/lint/parse-js.js +1372 -0
  520. data/public/libs/codemirror/test/lint/walk.js +216 -0
  521. data/public/libs/codemirror/test/mode_test.css +10 -0
  522. data/public/libs/codemirror/test/mode_test.js +192 -0
  523. data/public/libs/codemirror/test/phantom_driver.js +31 -0
  524. data/public/libs/codemirror/test/run.js +33 -0
  525. data/public/libs/codemirror/test/test.js +1400 -0
  526. data/public/libs/codemirror/test/vim_test.js +1688 -0
  527. data/public/libs/codemirror/theme/ambiance-mobile.css +5 -0
  528. data/public/libs/codemirror/theme/ambiance.css +75 -0
  529. data/public/libs/codemirror/theme/blackboard.css +25 -0
  530. data/public/libs/codemirror/theme/cobalt.css +18 -0
  531. data/public/libs/codemirror/theme/eclipse.css +25 -0
  532. data/public/libs/codemirror/theme/elegant.css +10 -0
  533. data/public/libs/codemirror/theme/erlang-dark.css +21 -0
  534. data/public/libs/codemirror/theme/lesser-dark.css +44 -0
  535. data/public/libs/codemirror/theme/midnight.css +52 -0
  536. data/public/libs/codemirror/theme/monokai.css +28 -0
  537. data/public/libs/codemirror/theme/neat.css +9 -0
  538. data/public/libs/codemirror/theme/night.css +21 -0
  539. data/public/libs/codemirror/theme/rubyblue.css +21 -0
  540. data/public/libs/codemirror/theme/solarized.css +207 -0
  541. data/public/libs/codemirror/theme/twilight.css +26 -0
  542. data/public/libs/codemirror/theme/vibrant-ink.css +27 -0
  543. data/public/libs/codemirror/theme/xq-dark.css +46 -0
  544. data/public/libs/codemirror/theme/xq-light.css +43 -0
  545. data/public/libs/font-awesome/css/font-awesome-ie7.css +983 -0
  546. data/public/libs/font-awesome/css/font-awesome-ie7.min.css +24 -0
  547. data/public/libs/font-awesome/css/font-awesome.css +1268 -0
  548. data/public/libs/font-awesome/css/font-awesome.min.css +24 -0
  549. data/public/libs/font-awesome/font/FontAwesome.otf +0 -0
  550. data/public/libs/font-awesome/font/fontawesome-webfont.eot +0 -0
  551. data/public/libs/font-awesome/font/fontawesome-webfont.svg +339 -0
  552. data/public/libs/font-awesome/font/fontawesome-webfont.ttf +0 -0
  553. data/public/libs/font-awesome/font/fontawesome-webfont.woff +0 -0
  554. data/public/libs/font-awesome/less/bootstrap.less +78 -0
  555. data/public/libs/font-awesome/less/core.less +132 -0
  556. data/public/libs/font-awesome/less/extras.less +79 -0
  557. data/public/libs/font-awesome/less/font-awesome-ie7.less +413 -0
  558. data/public/libs/font-awesome/less/font-awesome.less +32 -0
  559. data/public/libs/font-awesome/less/icons.less +330 -0
  560. data/public/libs/font-awesome/less/mixins.less +34 -0
  561. data/public/libs/font-awesome/less/path.less +15 -0
  562. data/public/libs/font-awesome/less/variables.less +9 -0
  563. data/public/libs/jquery-1.10.0.min.js +6 -0
  564. data/public/libs/jquery-ui.min.js +12 -0
  565. data/public/libs/jquery.jsPlumb-1.4.0-all.js +9571 -0
  566. data/public/libs/jquery.livequery.js +226 -0
  567. data/public/libs/jsPlumbInitializer.js +72 -0
  568. data/public/libs/jstree/README.txt +10 -0
  569. data/public/libs/jstree/_demo/_dump.sql +20 -0
  570. data/public/libs/jstree/_demo/_inc/__mysql_errors.log +0 -0
  571. data/public/libs/jstree/_demo/_inc/class._database.php +146 -0
  572. data/public/libs/jstree/_demo/_inc/class._database_i.php +152 -0
  573. data/public/libs/jstree/_demo/_inc/class.tree.php +602 -0
  574. data/public/libs/jstree/_demo/_install.txt +6 -0
  575. data/public/libs/jstree/_demo/config.php +14 -0
  576. data/public/libs/jstree/_demo/file.png +0 -0
  577. data/public/libs/jstree/_demo/folder.png +0 -0
  578. data/public/libs/jstree/_demo/index.html +461 -0
  579. data/public/libs/jstree/_demo/root.png +0 -0
  580. data/public/libs/jstree/_demo/server.php +69 -0
  581. data/public/libs/jstree/_docs/!style.css +48 -0
  582. data/public/libs/jstree/_docs/_drive.png +0 -0
  583. data/public/libs/jstree/_docs/_html_data.html +2 -0
  584. data/public/libs/jstree/_docs/_json_data.json +4 -0
  585. data/public/libs/jstree/_docs/_search_data.json +6 -0
  586. data/public/libs/jstree/_docs/_search_result.json +1 -0
  587. data/public/libs/jstree/_docs/_xml_flat.xml +12 -0
  588. data/public/libs/jstree/_docs/_xml_nest.xml +18 -0
  589. data/public/libs/jstree/_docs/checkbox.html +171 -0
  590. data/public/libs/jstree/_docs/contextmenu.html +121 -0
  591. data/public/libs/jstree/_docs/cookies.html +97 -0
  592. data/public/libs/jstree/_docs/core.html +689 -0
  593. data/public/libs/jstree/_docs/crrm.html +316 -0
  594. data/public/libs/jstree/_docs/dnd.html +199 -0
  595. data/public/libs/jstree/_docs/hotkeys.html +82 -0
  596. data/public/libs/jstree/_docs/html_data.html +175 -0
  597. data/public/libs/jstree/_docs/index.html +86 -0
  598. data/public/libs/jstree/_docs/json_data.html +249 -0
  599. data/public/libs/jstree/_docs/languages.html +152 -0
  600. data/public/libs/jstree/_docs/logo.png +0 -0
  601. data/public/libs/jstree/_docs/search.html +153 -0
  602. data/public/libs/jstree/_docs/sort.html +85 -0
  603. data/public/libs/jstree/_docs/syntax/!script.js +2232 -0
  604. data/public/libs/jstree/_docs/syntax/!style.css +511 -0
  605. data/public/libs/jstree/_docs/syntax/clipboard.swf +0 -0
  606. data/public/libs/jstree/_docs/syntax/help.png +0 -0
  607. data/public/libs/jstree/_docs/syntax/magnifier.png +0 -0
  608. data/public/libs/jstree/_docs/syntax/page_white_code.png +0 -0
  609. data/public/libs/jstree/_docs/syntax/page_white_copy.png +0 -0
  610. data/public/libs/jstree/_docs/syntax/printer.png +0 -0
  611. data/public/libs/jstree/_docs/syntax/wrapping.png +0 -0
  612. data/public/libs/jstree/_docs/themeroller.html +107 -0
  613. data/public/libs/jstree/_docs/themes.html +127 -0
  614. data/public/libs/jstree/_docs/types.html +178 -0
  615. data/public/libs/jstree/_docs/ui.html +197 -0
  616. data/public/libs/jstree/_docs/unique.html +85 -0
  617. data/public/libs/jstree/_docs/xml_data.html +218 -0
  618. data/public/libs/jstree/_lib/jquery.cookie.js +96 -0
  619. data/public/libs/jstree/_lib/jquery.hotkeys.js +99 -0
  620. data/public/libs/jstree/_lib/jquery.js +5 -0
  621. data/public/libs/jstree/jquery.jstree.js +4564 -0
  622. data/public/libs/jstree/themes/apple/bg.jpg +0 -0
  623. data/public/libs/jstree/themes/apple/d.png +0 -0
  624. data/public/libs/jstree/themes/apple/dot_for_ie.gif +0 -0
  625. data/public/libs/jstree/themes/apple/style.css +61 -0
  626. data/public/libs/jstree/themes/apple/throbber.gif +0 -0
  627. data/public/libs/jstree/themes/classic/d.gif +0 -0
  628. data/public/libs/jstree/themes/classic/d.png +0 -0
  629. data/public/libs/jstree/themes/classic/dot_for_ie.gif +0 -0
  630. data/public/libs/jstree/themes/classic/style.css +77 -0
  631. data/public/libs/jstree/themes/classic/throbber.gif +0 -0
  632. data/public/libs/jstree/themes/default-rtl/d.gif +0 -0
  633. data/public/libs/jstree/themes/default-rtl/d.png +0 -0
  634. data/public/libs/jstree/themes/default-rtl/dots.gif +0 -0
  635. data/public/libs/jstree/themes/default-rtl/style.css +84 -0
  636. data/public/libs/jstree/themes/default-rtl/throbber.gif +0 -0
  637. data/public/libs/jstree/themes/default/d.gif +0 -0
  638. data/public/libs/jstree/themes/default/d.png +0 -0
  639. data/public/libs/jstree/themes/default/style.css +74 -0
  640. data/public/libs/jstree/themes/default/throbber.gif +0 -0
  641. data/public/themes/geo-bootstrap/README.md +25 -0
  642. data/public/themes/geo-bootstrap/img/flames.gif +0 -0
  643. data/public/themes/geo-bootstrap/img/glyphicons-halflings-white.png +0 -0
  644. data/public/themes/geo-bootstrap/img/glyphicons-halflings.png +0 -0
  645. data/public/themes/geo-bootstrap/img/microfab.gif +0 -0
  646. data/public/themes/geo-bootstrap/img/progress.gif +0 -0
  647. data/public/themes/geo-bootstrap/img/rainbow.gif +0 -0
  648. data/public/themes/geo-bootstrap/img/stars.gif +0 -0
  649. data/public/themes/geo-bootstrap/img/test/7upspot.gif +0 -0
  650. data/public/themes/geo-bootstrap/img/test/americanflag.gif +0 -0
  651. data/public/themes/geo-bootstrap/img/test/community.gif +0 -0
  652. data/public/themes/geo-bootstrap/img/test/computer-01.gif +0 -0
  653. data/public/themes/geo-bootstrap/img/test/computer.gif +0 -0
  654. data/public/themes/geo-bootstrap/img/test/construction.gif +0 -0
  655. data/public/themes/geo-bootstrap/img/test/counter.gif +0 -0
  656. data/public/themes/geo-bootstrap/img/test/counter2.gif +0 -0
  657. data/public/themes/geo-bootstrap/img/test/divider.gif +0 -0
  658. data/public/themes/geo-bootstrap/img/test/divider1.gif +0 -0
  659. data/public/themes/geo-bootstrap/img/test/divider2.gif +0 -0
  660. data/public/themes/geo-bootstrap/img/test/divider3.gif +0 -0
  661. data/public/themes/geo-bootstrap/img/test/divider4.gif +0 -0
  662. data/public/themes/geo-bootstrap/img/test/drudgesiren.gif +0 -0
  663. data/public/themes/geo-bootstrap/img/test/emailme.gif +0 -0
  664. data/public/themes/geo-bootstrap/img/test/funky.gif +0 -0
  665. data/public/themes/geo-bootstrap/img/test/geocities.jpg +0 -0
  666. data/public/themes/geo-bootstrap/img/test/hacker.gif +0 -0
  667. data/public/themes/geo-bootstrap/img/test/heart.gif +0 -0
  668. data/public/themes/geo-bootstrap/img/test/hot.gif +0 -0
  669. data/public/themes/geo-bootstrap/img/test/ie_logo.gif +0 -0
  670. data/public/themes/geo-bootstrap/img/test/mailkitten.gif +0 -0
  671. data/public/themes/geo-bootstrap/img/test/mchammer.gif +0 -0
  672. data/public/themes/geo-bootstrap/img/test/new.gif +0 -0
  673. data/public/themes/geo-bootstrap/img/test/new2.gif +0 -0
  674. data/public/themes/geo-bootstrap/img/test/noframes.gif +0 -0
  675. data/public/themes/geo-bootstrap/img/test/notepad.gif +0 -0
  676. data/public/themes/geo-bootstrap/img/test/ns_logo.gif +0 -0
  677. data/public/themes/geo-bootstrap/img/test/sign-in.gif +0 -0
  678. data/public/themes/geo-bootstrap/img/test/spinningearth.gif +0 -0
  679. data/public/themes/geo-bootstrap/img/test/underconstruction.gif +0 -0
  680. data/public/themes/geo-bootstrap/img/test/wabwalk.gif +0 -0
  681. data/public/themes/geo-bootstrap/img/test/webtrips.gif +0 -0
  682. data/public/themes/geo-bootstrap/img/test/yahooweek.gif +0 -0
  683. data/public/themes/geo-bootstrap/package.json +21 -0
  684. data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.css +1109 -0
  685. data/public/themes/geo-bootstrap/swatch/bootstrap-responsive.min.css +9 -0
  686. data/public/themes/geo-bootstrap/swatch/bootstrap.css +6462 -0
  687. data/public/themes/geo-bootstrap/swatch/bootstrap.min.css +9 -0
  688. metadata +791 -0
@@ -0,0 +1,2877 @@
1
+ smalltalk.addPackage('Kernel-Objects', {});
2
+ smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel-Objects');
3
+ smalltalk.addMethod(
4
+ unescape('__minus_gt'),
5
+ smalltalk.method({
6
+ selector: unescape('-%3E'),
7
+ fn: function (anObject){
8
+ var self=this;
9
+ return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
10
+ return self;}
11
+ }),
12
+ smalltalk.Object);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('__eq'),
16
+ smalltalk.method({
17
+ selector: unescape('%3D'),
18
+ fn: function (anObject){
19
+ var self=this;
20
+ return smalltalk.send(self, "__eq_eq", [anObject]);
21
+ return self;}
22
+ }),
23
+ smalltalk.Object);
24
+
25
+ smalltalk.addMethod(
26
+ unescape('__eq_eq'),
27
+ smalltalk.method({
28
+ selector: unescape('%3D%3D'),
29
+ fn: function (anObject){
30
+ var self=this;
31
+ return smalltalk.send(smalltalk.send(self, "_identityHash", []), "__eq", [smalltalk.send(anObject, "_identityHash", [])]);
32
+ return self;}
33
+ }),
34
+ smalltalk.Object);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_asJSON'),
38
+ smalltalk.method({
39
+ selector: unescape('asJSON'),
40
+ fn: function (){
41
+ var self=this;
42
+ var variables=nil;
43
+ (variables=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []));
44
+ smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSON", [])]);})]);
45
+ return variables;
46
+ return self;}
47
+ }),
48
+ smalltalk.Object);
49
+
50
+ smalltalk.addMethod(
51
+ unescape('_asJSONString'),
52
+ smalltalk.method({
53
+ selector: unescape('asJSONString'),
54
+ fn: function (){
55
+ var self=this;
56
+ return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [smalltalk.send(self, "_asJSON", [])]);
57
+ return self;}
58
+ }),
59
+ smalltalk.Object);
60
+
61
+ smalltalk.addMethod(
62
+ unescape('_asJavascript'),
63
+ smalltalk.method({
64
+ selector: unescape('asJavascript'),
65
+ fn: function (){
66
+ var self=this;
67
+ return smalltalk.send(self, "_asString", []);
68
+ return self;}
69
+ }),
70
+ smalltalk.Object);
71
+
72
+ smalltalk.addMethod(
73
+ unescape('_asString'),
74
+ smalltalk.method({
75
+ selector: unescape('asString'),
76
+ fn: function (){
77
+ var self=this;
78
+ return smalltalk.send(self, "_printString", []);
79
+ return self;}
80
+ }),
81
+ smalltalk.Object);
82
+
83
+ smalltalk.addMethod(
84
+ unescape('_basicAt_'),
85
+ smalltalk.method({
86
+ selector: unescape('basicAt%3A'),
87
+ fn: function (aString){
88
+ var self=this;
89
+ return self[aString];
90
+ return self;}
91
+ }),
92
+ smalltalk.Object);
93
+
94
+ smalltalk.addMethod(
95
+ unescape('_basicAt_put_'),
96
+ smalltalk.method({
97
+ selector: unescape('basicAt%3Aput%3A'),
98
+ fn: function (aString, anObject){
99
+ var self=this;
100
+ return self[aString] = anObject;
101
+ return self;}
102
+ }),
103
+ smalltalk.Object);
104
+
105
+ smalltalk.addMethod(
106
+ unescape('_basicDelete_'),
107
+ smalltalk.method({
108
+ selector: unescape('basicDelete%3A'),
109
+ fn: function (aString){
110
+ var self=this;
111
+ delete self[aString]; return aString;
112
+ return self;}
113
+ }),
114
+ smalltalk.Object);
115
+
116
+ smalltalk.addMethod(
117
+ unescape('_basicPerform_'),
118
+ smalltalk.method({
119
+ selector: unescape('basicPerform%3A'),
120
+ fn: function (aSymbol){
121
+ var self=this;
122
+ return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
123
+ return self;}
124
+ }),
125
+ smalltalk.Object);
126
+
127
+ smalltalk.addMethod(
128
+ unescape('_basicPerform_withArguments_'),
129
+ smalltalk.method({
130
+ selector: unescape('basicPerform%3AwithArguments%3A'),
131
+ fn: function (aSymbol, aCollection){
132
+ var self=this;
133
+ return self[aSymbol].apply(self, aCollection);;
134
+ return self;}
135
+ }),
136
+ smalltalk.Object);
137
+
138
+ smalltalk.addMethod(
139
+ unescape('_class'),
140
+ smalltalk.method({
141
+ selector: unescape('class'),
142
+ fn: function (){
143
+ var self=this;
144
+ return self.klass;
145
+ return self;}
146
+ }),
147
+ smalltalk.Object);
148
+
149
+ smalltalk.addMethod(
150
+ unescape('_copy'),
151
+ smalltalk.method({
152
+ selector: unescape('copy'),
153
+ fn: function (){
154
+ var self=this;
155
+ return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
156
+ return self;}
157
+ }),
158
+ smalltalk.Object);
159
+
160
+ smalltalk.addMethod(
161
+ unescape('_deepCopy'),
162
+ smalltalk.method({
163
+ selector: unescape('deepCopy'),
164
+ fn: function (){
165
+ var self=this;
166
+
167
+ var copy = self.klass._new();
168
+ for(var i in self) {
169
+ if(/^@.+/.test(i)) {
170
+ copy[i] = self[i]._deepCopy();
171
+ }
172
+ }
173
+ return copy;
174
+ ;
175
+ return self;}
176
+ }),
177
+ smalltalk.Object);
178
+
179
+ smalltalk.addMethod(
180
+ unescape('_deprecatedAPI'),
181
+ smalltalk.method({
182
+ selector: unescape('deprecatedAPI'),
183
+ fn: function (){
184
+ var self=this;
185
+ smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21%20%28in%20")]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_home", []), "_asString", [])]), "__comma", [unescape("%29")])]);
186
+ return self;}
187
+ }),
188
+ smalltalk.Object);
189
+
190
+ smalltalk.addMethod(
191
+ unescape('_doesNotUnderstand_'),
192
+ smalltalk.method({
193
+ selector: unescape('doesNotUnderstand%3A'),
194
+ fn: function (aMessage){
195
+ var self=this;
196
+ (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
197
+ return self;}
198
+ }),
199
+ smalltalk.Object);
200
+
201
+ smalltalk.addMethod(
202
+ unescape('_error_'),
203
+ smalltalk.method({
204
+ selector: unescape('error%3A'),
205
+ fn: function (aString){
206
+ var self=this;
207
+ smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
208
+ return self;}
209
+ }),
210
+ smalltalk.Object);
211
+
212
+ smalltalk.addMethod(
213
+ unescape('_halt'),
214
+ smalltalk.method({
215
+ selector: unescape('halt'),
216
+ fn: function (){
217
+ var self=this;
218
+ smalltalk.send(self, "_error_", ["Halt encountered"]);
219
+ return self;}
220
+ }),
221
+ smalltalk.Object);
222
+
223
+ smalltalk.addMethod(
224
+ unescape('_identityHash'),
225
+ smalltalk.method({
226
+ selector: unescape('identityHash'),
227
+ fn: function (){
228
+ var self=this;
229
+ return self.identityHash || (self.identityHash = smalltalk.nextId());;
230
+ return self;}
231
+ }),
232
+ smalltalk.Object);
233
+
234
+ smalltalk.addMethod(
235
+ unescape('_ifNil_'),
236
+ smalltalk.method({
237
+ selector: unescape('ifNil%3A'),
238
+ fn: function (aBlock){
239
+ var self=this;
240
+ return self;
241
+ return self;}
242
+ }),
243
+ smalltalk.Object);
244
+
245
+ smalltalk.addMethod(
246
+ unescape('_ifNil_ifNotNil_'),
247
+ smalltalk.method({
248
+ selector: unescape('ifNil%3AifNotNil%3A'),
249
+ fn: function (aBlock, anotherBlock){
250
+ var self=this;
251
+ return smalltalk.send(anotherBlock, "_value", []);
252
+ return self;}
253
+ }),
254
+ smalltalk.Object);
255
+
256
+ smalltalk.addMethod(
257
+ unescape('_ifNotNil_'),
258
+ smalltalk.method({
259
+ selector: unescape('ifNotNil%3A'),
260
+ fn: function (aBlock){
261
+ var self=this;
262
+ return smalltalk.send(aBlock, "_value", []);
263
+ return self;}
264
+ }),
265
+ smalltalk.Object);
266
+
267
+ smalltalk.addMethod(
268
+ unescape('_ifNotNil_ifNil_'),
269
+ smalltalk.method({
270
+ selector: unescape('ifNotNil%3AifNil%3A'),
271
+ fn: function (aBlock, anotherBlock){
272
+ var self=this;
273
+ return smalltalk.send(aBlock, "_value", []);
274
+ return self;}
275
+ }),
276
+ smalltalk.Object);
277
+
278
+ smalltalk.addMethod(
279
+ unescape('_initialize'),
280
+ smalltalk.method({
281
+ selector: unescape('initialize'),
282
+ fn: function (){
283
+ var self=this;
284
+
285
+ return self;}
286
+ }),
287
+ smalltalk.Object);
288
+
289
+ smalltalk.addMethod(
290
+ unescape('_inlineViewComponent'),
291
+ smalltalk.method({
292
+ selector: unescape('inlineViewComponent'),
293
+ fn: function (){
294
+ var self=this;
295
+ return smalltalk.send(self, "_asString", []);
296
+ return self;}
297
+ }),
298
+ smalltalk.Object);
299
+
300
+ smalltalk.addMethod(
301
+ unescape('_instVarAt_'),
302
+ smalltalk.method({
303
+ selector: unescape('instVarAt%3A'),
304
+ fn: function (aSymbol){
305
+ var self=this;
306
+ var varname=nil;
307
+ (varname=smalltalk.send(aSymbol, "_asString", []));
308
+ return self['@'+varname];
309
+ return self;}
310
+ }),
311
+ smalltalk.Object);
312
+
313
+ smalltalk.addMethod(
314
+ unescape('_instVarAt_put_'),
315
+ smalltalk.method({
316
+ selector: unescape('instVarAt%3Aput%3A'),
317
+ fn: function (aSymbol, anObject){
318
+ var self=this;
319
+ var varname=nil;
320
+ (varname=smalltalk.send(aSymbol, "_asString", []));
321
+ self['@' + varname] = anObject;
322
+ return self;}
323
+ }),
324
+ smalltalk.Object);
325
+
326
+ smalltalk.addMethod(
327
+ unescape('_isAssociation'),
328
+ smalltalk.method({
329
+ selector: unescape('isAssociation'),
330
+ fn: function (){
331
+ var self=this;
332
+ return false;
333
+ return self;}
334
+ }),
335
+ smalltalk.Object);
336
+
337
+ smalltalk.addMethod(
338
+ unescape('_isClass'),
339
+ smalltalk.method({
340
+ selector: unescape('isClass'),
341
+ fn: function (){
342
+ var self=this;
343
+ return false;
344
+ return self;}
345
+ }),
346
+ smalltalk.Object);
347
+
348
+ smalltalk.addMethod(
349
+ unescape('_isKindOf_'),
350
+ smalltalk.method({
351
+ selector: unescape('isKindOf%3A'),
352
+ fn: function (aClass){
353
+ var self=this;
354
+ return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
355
+ return self;}
356
+ }),
357
+ smalltalk.Object);
358
+
359
+ smalltalk.addMethod(
360
+ unescape('_isMemberOf_'),
361
+ smalltalk.method({
362
+ selector: unescape('isMemberOf%3A'),
363
+ fn: function (aClass){
364
+ var self=this;
365
+ return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
366
+ return self;}
367
+ }),
368
+ smalltalk.Object);
369
+
370
+ smalltalk.addMethod(
371
+ unescape('_isMetaclass'),
372
+ smalltalk.method({
373
+ selector: unescape('isMetaclass'),
374
+ fn: function (){
375
+ var self=this;
376
+ return false;
377
+ return self;}
378
+ }),
379
+ smalltalk.Object);
380
+
381
+ smalltalk.addMethod(
382
+ unescape('_isNil'),
383
+ smalltalk.method({
384
+ selector: unescape('isNil'),
385
+ fn: function (){
386
+ var self=this;
387
+ return false;
388
+ return self;}
389
+ }),
390
+ smalltalk.Object);
391
+
392
+ smalltalk.addMethod(
393
+ unescape('_isNumber'),
394
+ smalltalk.method({
395
+ selector: unescape('isNumber'),
396
+ fn: function (){
397
+ var self=this;
398
+ return false;
399
+ return self;}
400
+ }),
401
+ smalltalk.Object);
402
+
403
+ smalltalk.addMethod(
404
+ unescape('_isParseFailure'),
405
+ smalltalk.method({
406
+ selector: unescape('isParseFailure'),
407
+ fn: function (){
408
+ var self=this;
409
+ return false;
410
+ return self;}
411
+ }),
412
+ smalltalk.Object);
413
+
414
+ smalltalk.addMethod(
415
+ unescape('_isString'),
416
+ smalltalk.method({
417
+ selector: unescape('isString'),
418
+ fn: function (){
419
+ var self=this;
420
+ return false;
421
+ return self;}
422
+ }),
423
+ smalltalk.Object);
424
+
425
+ smalltalk.addMethod(
426
+ unescape('_isSymbol'),
427
+ smalltalk.method({
428
+ selector: unescape('isSymbol'),
429
+ fn: function (){
430
+ var self=this;
431
+ return false;
432
+ return self;}
433
+ }),
434
+ smalltalk.Object);
435
+
436
+ smalltalk.addMethod(
437
+ unescape('_log_block_'),
438
+ smalltalk.method({
439
+ selector: unescape('log%3Ablock%3A'),
440
+ fn: function (aString, aBlock){
441
+ var self=this;
442
+ var result=nil;
443
+ smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (result=smalltalk.send(aBlock, "_value", []));})]), "_printString", [])])]);
444
+ return result;
445
+ return self;}
446
+ }),
447
+ smalltalk.Object);
448
+
449
+ smalltalk.addMethod(
450
+ unescape('_notNil'),
451
+ smalltalk.method({
452
+ selector: unescape('notNil'),
453
+ fn: function (){
454
+ var self=this;
455
+ return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
456
+ return self;}
457
+ }),
458
+ smalltalk.Object);
459
+
460
+ smalltalk.addMethod(
461
+ unescape('_perform_'),
462
+ smalltalk.method({
463
+ selector: unescape('perform%3A'),
464
+ fn: function (aSymbol){
465
+ var self=this;
466
+ return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
467
+ return self;}
468
+ }),
469
+ smalltalk.Object);
470
+
471
+ smalltalk.addMethod(
472
+ unescape('_perform_withArguments_'),
473
+ smalltalk.method({
474
+ selector: unescape('perform%3AwithArguments%3A'),
475
+ fn: function (aSymbol, aCollection){
476
+ var self=this;
477
+ return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
478
+ return self;}
479
+ }),
480
+ smalltalk.Object);
481
+
482
+ smalltalk.addMethod(
483
+ unescape('_postCopy'),
484
+ smalltalk.method({
485
+ selector: unescape('postCopy'),
486
+ fn: function (){
487
+ var self=this;
488
+
489
+ return self;}
490
+ }),
491
+ smalltalk.Object);
492
+
493
+ smalltalk.addMethod(
494
+ unescape('_printNl'),
495
+ smalltalk.method({
496
+ selector: unescape('printNl'),
497
+ fn: function (){
498
+ var self=this;
499
+ console.log(self);
500
+ return self;}
501
+ }),
502
+ smalltalk.Object);
503
+
504
+ smalltalk.addMethod(
505
+ unescape('_printString'),
506
+ smalltalk.method({
507
+ selector: unescape('printString'),
508
+ fn: function (){
509
+ var self=this;
510
+ return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
511
+ return self;}
512
+ }),
513
+ smalltalk.Object);
514
+
515
+ smalltalk.addMethod(
516
+ unescape('_shallowCopy'),
517
+ smalltalk.method({
518
+ selector: unescape('shallowCopy'),
519
+ fn: function (){
520
+ var self=this;
521
+
522
+ var copy = self.klass._new();
523
+ for(var i in self) {
524
+ if(/^@.+/.test(i)) {
525
+ copy[i] = self[i];
526
+ }
527
+ }
528
+ return copy;
529
+ ;
530
+ return self;}
531
+ }),
532
+ smalltalk.Object);
533
+
534
+ smalltalk.addMethod(
535
+ unescape('_shouldNotImplement'),
536
+ smalltalk.method({
537
+ selector: unescape('shouldNotImplement'),
538
+ fn: function (){
539
+ var self=this;
540
+ smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
541
+ return self;}
542
+ }),
543
+ smalltalk.Object);
544
+
545
+ smalltalk.addMethod(
546
+ unescape('_size'),
547
+ smalltalk.method({
548
+ selector: unescape('size'),
549
+ fn: function (){
550
+ var self=this;
551
+ smalltalk.send(self, "_error_", ["Object not indexable"]);
552
+ return self;}
553
+ }),
554
+ smalltalk.Object);
555
+
556
+ smalltalk.addMethod(
557
+ unescape('_storeOn_'),
558
+ smalltalk.method({
559
+ selector: unescape('storeOn%3A'),
560
+ fn: function (aStream){
561
+ var self=this;
562
+ smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
563
+ return self;}
564
+ }),
565
+ smalltalk.Object);
566
+
567
+ smalltalk.addMethod(
568
+ unescape('_storeString'),
569
+ smalltalk.method({
570
+ selector: unescape('storeString'),
571
+ fn: function (){
572
+ var self=this;
573
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
574
+ return self;}
575
+ }),
576
+ smalltalk.Object);
577
+
578
+ smalltalk.addMethod(
579
+ unescape('_subclassResponsibility'),
580
+ smalltalk.method({
581
+ selector: unescape('subclassResponsibility'),
582
+ fn: function (){
583
+ var self=this;
584
+ smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
585
+ return self;}
586
+ }),
587
+ smalltalk.Object);
588
+
589
+ smalltalk.addMethod(
590
+ unescape('_try_catch_'),
591
+ smalltalk.method({
592
+ selector: unescape('try%3Acatch%3A'),
593
+ fn: function (aBlock, anotherBlock){
594
+ var self=this;
595
+ try{result = aBlock()} catch(e) {result = anotherBlock(e)};
596
+ return result;;
597
+ return self;}
598
+ }),
599
+ smalltalk.Object);
600
+
601
+ smalltalk.addMethod(
602
+ unescape('_yourself'),
603
+ smalltalk.method({
604
+ selector: unescape('yourself'),
605
+ fn: function (){
606
+ var self=this;
607
+ return self;
608
+ return self;}
609
+ }),
610
+ smalltalk.Object);
611
+
612
+ smalltalk.addMethod(
613
+ unescape('_%7E_eq'),
614
+ smalltalk.method({
615
+ selector: unescape('%7E%3D'),
616
+ fn: function (anObject){
617
+ var self=this;
618
+ return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
619
+ return self;}
620
+ }),
621
+ smalltalk.Object);
622
+
623
+ smalltalk.addMethod(
624
+ unescape('_%7E%7E'),
625
+ smalltalk.method({
626
+ selector: unescape('%7E%7E'),
627
+ fn: function (anObject){
628
+ var self=this;
629
+ return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
630
+ return self;}
631
+ }),
632
+ smalltalk.Object);
633
+
634
+
635
+ smalltalk.addMethod(
636
+ unescape('_initialize'),
637
+ smalltalk.method({
638
+ selector: unescape('initialize'),
639
+ fn: function (){
640
+ var self=this;
641
+
642
+ return self;}
643
+ }),
644
+ smalltalk.Object.klass);
645
+
646
+
647
+ smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel-Objects');
648
+ smalltalk.addMethod(
649
+ unescape('_%26'),
650
+ smalltalk.method({
651
+ selector: unescape('%26'),
652
+ fn: function (aBoolean){
653
+ var self=this;
654
+
655
+ if(self == true) {
656
+ return aBoolean;
657
+ } else {
658
+ return false;
659
+ }
660
+ ;
661
+ return self;}
662
+ }),
663
+ smalltalk.Boolean);
664
+
665
+ smalltalk.addMethod(
666
+ unescape('__eq'),
667
+ smalltalk.method({
668
+ selector: unescape('%3D'),
669
+ fn: function (aBoolean){
670
+ var self=this;
671
+ try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
672
+ return Boolean(self == true) == aBoolean;
673
+ return self;
674
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
675
+ }),
676
+ smalltalk.Boolean);
677
+
678
+ smalltalk.addMethod(
679
+ unescape('_and_'),
680
+ smalltalk.method({
681
+ selector: unescape('and%3A'),
682
+ fn: function (aBlock){
683
+ var self=this;
684
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
685
+ return self;}
686
+ }),
687
+ smalltalk.Boolean);
688
+
689
+ smalltalk.addMethod(
690
+ unescape('_asJSON'),
691
+ smalltalk.method({
692
+ selector: unescape('asJSON'),
693
+ fn: function (){
694
+ var self=this;
695
+ return self;
696
+ return self;}
697
+ }),
698
+ smalltalk.Boolean);
699
+
700
+ smalltalk.addMethod(
701
+ unescape('_deepCopy'),
702
+ smalltalk.method({
703
+ selector: unescape('deepCopy'),
704
+ fn: function (){
705
+ var self=this;
706
+ return self;
707
+ return self;}
708
+ }),
709
+ smalltalk.Boolean);
710
+
711
+ smalltalk.addMethod(
712
+ unescape('_ifFalse_'),
713
+ smalltalk.method({
714
+ selector: unescape('ifFalse%3A'),
715
+ fn: function (aBlock){
716
+ var self=this;
717
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
718
+ return self;}
719
+ }),
720
+ smalltalk.Boolean);
721
+
722
+ smalltalk.addMethod(
723
+ unescape('_ifFalse_ifTrue_'),
724
+ smalltalk.method({
725
+ selector: unescape('ifFalse%3AifTrue%3A'),
726
+ fn: function (aBlock, anotherBlock){
727
+ var self=this;
728
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
729
+ return self;}
730
+ }),
731
+ smalltalk.Boolean);
732
+
733
+ smalltalk.addMethod(
734
+ unescape('_ifTrue_'),
735
+ smalltalk.method({
736
+ selector: unescape('ifTrue%3A'),
737
+ fn: function (aBlock){
738
+ var self=this;
739
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
740
+ return self;}
741
+ }),
742
+ smalltalk.Boolean);
743
+
744
+ smalltalk.addMethod(
745
+ unescape('_ifTrue_ifFalse_'),
746
+ smalltalk.method({
747
+ selector: unescape('ifTrue%3AifFalse%3A'),
748
+ fn: function (aBlock, anotherBlock){
749
+ var self=this;
750
+
751
+ if(self == true) {
752
+ return aBlock();
753
+ } else {
754
+ return anotherBlock();
755
+ }
756
+ ;
757
+ return self;}
758
+ }),
759
+ smalltalk.Boolean);
760
+
761
+ smalltalk.addMethod(
762
+ unescape('_not'),
763
+ smalltalk.method({
764
+ selector: unescape('not'),
765
+ fn: function (){
766
+ var self=this;
767
+ return smalltalk.send(self, "__eq", [false]);
768
+ return self;}
769
+ }),
770
+ smalltalk.Boolean);
771
+
772
+ smalltalk.addMethod(
773
+ unescape('_or_'),
774
+ smalltalk.method({
775
+ selector: unescape('or%3A'),
776
+ fn: function (aBlock){
777
+ var self=this;
778
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
779
+ return self;}
780
+ }),
781
+ smalltalk.Boolean);
782
+
783
+ smalltalk.addMethod(
784
+ unescape('_printString'),
785
+ smalltalk.method({
786
+ selector: unescape('printString'),
787
+ fn: function (){
788
+ var self=this;
789
+ return self.toString();
790
+ return self;}
791
+ }),
792
+ smalltalk.Boolean);
793
+
794
+ smalltalk.addMethod(
795
+ unescape('_shallowCopy'),
796
+ smalltalk.method({
797
+ selector: unescape('shallowCopy'),
798
+ fn: function (){
799
+ var self=this;
800
+ return self;
801
+ return self;}
802
+ }),
803
+ smalltalk.Boolean);
804
+
805
+ smalltalk.addMethod(
806
+ unescape('_%7C'),
807
+ smalltalk.method({
808
+ selector: unescape('%7C'),
809
+ fn: function (aBoolean){
810
+ var self=this;
811
+
812
+ if(self == true) {
813
+ return true;
814
+ } else {
815
+ return aBoolean;
816
+ }
817
+ ;
818
+ return self;}
819
+ }),
820
+ smalltalk.Boolean);
821
+
822
+
823
+
824
+ smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel-Objects');
825
+ smalltalk.addMethod(
826
+ unescape('__plus'),
827
+ smalltalk.method({
828
+ selector: unescape('+'),
829
+ fn: function (aDate){
830
+ var self=this;
831
+ return self + aDate;
832
+ return self;}
833
+ }),
834
+ smalltalk.Date);
835
+
836
+ smalltalk.addMethod(
837
+ unescape('__minus'),
838
+ smalltalk.method({
839
+ selector: unescape('-'),
840
+ fn: function (aDate){
841
+ var self=this;
842
+ return self - aDate;
843
+ return self;}
844
+ }),
845
+ smalltalk.Date);
846
+
847
+ smalltalk.addMethod(
848
+ unescape('__lt'),
849
+ smalltalk.method({
850
+ selector: unescape('%3C'),
851
+ fn: function (aDate){
852
+ var self=this;
853
+ return self < aDate;
854
+ return self;}
855
+ }),
856
+ smalltalk.Date);
857
+
858
+ smalltalk.addMethod(
859
+ unescape('__lt_eq'),
860
+ smalltalk.method({
861
+ selector: unescape('%3C%3D'),
862
+ fn: function (aDate){
863
+ var self=this;
864
+ return self <= aDate;
865
+ return self;}
866
+ }),
867
+ smalltalk.Date);
868
+
869
+ smalltalk.addMethod(
870
+ unescape('__gt'),
871
+ smalltalk.method({
872
+ selector: unescape('%3E'),
873
+ fn: function (aDate){
874
+ var self=this;
875
+ return self > aDate;
876
+ return self;}
877
+ }),
878
+ smalltalk.Date);
879
+
880
+ smalltalk.addMethod(
881
+ unescape('__gt_eq'),
882
+ smalltalk.method({
883
+ selector: unescape('%3E%3D'),
884
+ fn: function (aDate){
885
+ var self=this;
886
+ return self >= aDate;
887
+ return self;}
888
+ }),
889
+ smalltalk.Date);
890
+
891
+ smalltalk.addMethod(
892
+ unescape('_asDateString'),
893
+ smalltalk.method({
894
+ selector: unescape('asDateString'),
895
+ fn: function (){
896
+ var self=this;
897
+ return self.toDateString();
898
+ return self;}
899
+ }),
900
+ smalltalk.Date);
901
+
902
+ smalltalk.addMethod(
903
+ unescape('_asLocaleString'),
904
+ smalltalk.method({
905
+ selector: unescape('asLocaleString'),
906
+ fn: function (){
907
+ var self=this;
908
+ return self.toLocaleString();
909
+ return self;}
910
+ }),
911
+ smalltalk.Date);
912
+
913
+ smalltalk.addMethod(
914
+ unescape('_asMilliseconds'),
915
+ smalltalk.method({
916
+ selector: unescape('asMilliseconds'),
917
+ fn: function (){
918
+ var self=this;
919
+ return smalltalk.send(self, "_time", []);
920
+ return self;}
921
+ }),
922
+ smalltalk.Date);
923
+
924
+ smalltalk.addMethod(
925
+ unescape('_asNumber'),
926
+ smalltalk.method({
927
+ selector: unescape('asNumber'),
928
+ fn: function (){
929
+ var self=this;
930
+ return smalltalk.send(self, "_asMilliseconds", []);
931
+ return self;}
932
+ }),
933
+ smalltalk.Date);
934
+
935
+ smalltalk.addMethod(
936
+ unescape('_asString'),
937
+ smalltalk.method({
938
+ selector: unescape('asString'),
939
+ fn: function (){
940
+ var self=this;
941
+ return self.toString();
942
+ return self;}
943
+ }),
944
+ smalltalk.Date);
945
+
946
+ smalltalk.addMethod(
947
+ unescape('_asTimeString'),
948
+ smalltalk.method({
949
+ selector: unescape('asTimeString'),
950
+ fn: function (){
951
+ var self=this;
952
+ return self.toTimeString();
953
+ return self;}
954
+ }),
955
+ smalltalk.Date);
956
+
957
+ smalltalk.addMethod(
958
+ unescape('_day'),
959
+ smalltalk.method({
960
+ selector: unescape('day'),
961
+ fn: function (){
962
+ var self=this;
963
+ return smalltalk.send(self, "_dayOfWeek", []);
964
+ return self;}
965
+ }),
966
+ smalltalk.Date);
967
+
968
+ smalltalk.addMethod(
969
+ unescape('_day_'),
970
+ smalltalk.method({
971
+ selector: unescape('day%3A'),
972
+ fn: function (aNumber){
973
+ var self=this;
974
+ smalltalk.send(self, "_day_", [aNumber]);
975
+ return self;}
976
+ }),
977
+ smalltalk.Date);
978
+
979
+ smalltalk.addMethod(
980
+ unescape('_dayOfMonth'),
981
+ smalltalk.method({
982
+ selector: unescape('dayOfMonth'),
983
+ fn: function (){
984
+ var self=this;
985
+ return self.getDate();
986
+ return self;}
987
+ }),
988
+ smalltalk.Date);
989
+
990
+ smalltalk.addMethod(
991
+ unescape('_dayOfMonth_'),
992
+ smalltalk.method({
993
+ selector: unescape('dayOfMonth%3A'),
994
+ fn: function (aNumber){
995
+ var self=this;
996
+ self.setDate(aNumber);
997
+ return self;}
998
+ }),
999
+ smalltalk.Date);
1000
+
1001
+ smalltalk.addMethod(
1002
+ unescape('_dayOfWeek'),
1003
+ smalltalk.method({
1004
+ selector: unescape('dayOfWeek'),
1005
+ fn: function (){
1006
+ var self=this;
1007
+ return self.getDay() + 1;
1008
+ return self;}
1009
+ }),
1010
+ smalltalk.Date);
1011
+
1012
+ smalltalk.addMethod(
1013
+ unescape('_dayOfWeek_'),
1014
+ smalltalk.method({
1015
+ selector: unescape('dayOfWeek%3A'),
1016
+ fn: function (aNumber){
1017
+ var self=this;
1018
+ return self.setDay(aNumber - 1);
1019
+ return self;}
1020
+ }),
1021
+ smalltalk.Date);
1022
+
1023
+ smalltalk.addMethod(
1024
+ unescape('_hours'),
1025
+ smalltalk.method({
1026
+ selector: unescape('hours'),
1027
+ fn: function (){
1028
+ var self=this;
1029
+ return self.getHours();
1030
+ return self;}
1031
+ }),
1032
+ smalltalk.Date);
1033
+
1034
+ smalltalk.addMethod(
1035
+ unescape('_hours_'),
1036
+ smalltalk.method({
1037
+ selector: unescape('hours%3A'),
1038
+ fn: function (aNumber){
1039
+ var self=this;
1040
+ self.setHours(aNumber);
1041
+ return self;}
1042
+ }),
1043
+ smalltalk.Date);
1044
+
1045
+ smalltalk.addMethod(
1046
+ unescape('_milliseconds'),
1047
+ smalltalk.method({
1048
+ selector: unescape('milliseconds'),
1049
+ fn: function (){
1050
+ var self=this;
1051
+ return self.getMilliseconds();
1052
+ return self;}
1053
+ }),
1054
+ smalltalk.Date);
1055
+
1056
+ smalltalk.addMethod(
1057
+ unescape('_milliseconds_'),
1058
+ smalltalk.method({
1059
+ selector: unescape('milliseconds%3A'),
1060
+ fn: function (aNumber){
1061
+ var self=this;
1062
+ self.setMilliseconds(aNumber);
1063
+ return self;}
1064
+ }),
1065
+ smalltalk.Date);
1066
+
1067
+ smalltalk.addMethod(
1068
+ unescape('_minutes'),
1069
+ smalltalk.method({
1070
+ selector: unescape('minutes'),
1071
+ fn: function (){
1072
+ var self=this;
1073
+ return self.getMinutes();
1074
+ return self;}
1075
+ }),
1076
+ smalltalk.Date);
1077
+
1078
+ smalltalk.addMethod(
1079
+ unescape('_minutes_'),
1080
+ smalltalk.method({
1081
+ selector: unescape('minutes%3A'),
1082
+ fn: function (aNumber){
1083
+ var self=this;
1084
+ self.setMinutes(aNumber);
1085
+ return self;}
1086
+ }),
1087
+ smalltalk.Date);
1088
+
1089
+ smalltalk.addMethod(
1090
+ unescape('_month'),
1091
+ smalltalk.method({
1092
+ selector: unescape('month'),
1093
+ fn: function (){
1094
+ var self=this;
1095
+ return self.getMonth() + 1;
1096
+ return self;}
1097
+ }),
1098
+ smalltalk.Date);
1099
+
1100
+ smalltalk.addMethod(
1101
+ unescape('_month_'),
1102
+ smalltalk.method({
1103
+ selector: unescape('month%3A'),
1104
+ fn: function (aNumber){
1105
+ var self=this;
1106
+ self.setMonth(aNumber - 1);
1107
+ return self;}
1108
+ }),
1109
+ smalltalk.Date);
1110
+
1111
+ smalltalk.addMethod(
1112
+ unescape('_printString'),
1113
+ smalltalk.method({
1114
+ selector: unescape('printString'),
1115
+ fn: function (){
1116
+ var self=this;
1117
+ return smalltalk.send(self, "_asString", []);
1118
+ return self;}
1119
+ }),
1120
+ smalltalk.Date);
1121
+
1122
+ smalltalk.addMethod(
1123
+ unescape('_seconds'),
1124
+ smalltalk.method({
1125
+ selector: unescape('seconds'),
1126
+ fn: function (){
1127
+ var self=this;
1128
+ return self.getSeconds();
1129
+ return self;}
1130
+ }),
1131
+ smalltalk.Date);
1132
+
1133
+ smalltalk.addMethod(
1134
+ unescape('_seconds_'),
1135
+ smalltalk.method({
1136
+ selector: unescape('seconds%3A'),
1137
+ fn: function (aNumber){
1138
+ var self=this;
1139
+ self.setSeconds(aNumber);
1140
+ return self;}
1141
+ }),
1142
+ smalltalk.Date);
1143
+
1144
+ smalltalk.addMethod(
1145
+ unescape('_time'),
1146
+ smalltalk.method({
1147
+ selector: unescape('time'),
1148
+ fn: function (){
1149
+ var self=this;
1150
+ return self.getTime();
1151
+ return self;}
1152
+ }),
1153
+ smalltalk.Date);
1154
+
1155
+ smalltalk.addMethod(
1156
+ unescape('_time_'),
1157
+ smalltalk.method({
1158
+ selector: unescape('time%3A'),
1159
+ fn: function (aNumber){
1160
+ var self=this;
1161
+ self.setTime(aNumber);
1162
+ return self;}
1163
+ }),
1164
+ smalltalk.Date);
1165
+
1166
+ smalltalk.addMethod(
1167
+ unescape('_year'),
1168
+ smalltalk.method({
1169
+ selector: unescape('year'),
1170
+ fn: function (){
1171
+ var self=this;
1172
+ return self.getFullYear();
1173
+ return self;}
1174
+ }),
1175
+ smalltalk.Date);
1176
+
1177
+ smalltalk.addMethod(
1178
+ unescape('_year_'),
1179
+ smalltalk.method({
1180
+ selector: unescape('year%3A'),
1181
+ fn: function (aNumber){
1182
+ var self=this;
1183
+ self.setFullYear(aNumber);
1184
+ return self;}
1185
+ }),
1186
+ smalltalk.Date);
1187
+
1188
+
1189
+ smalltalk.addMethod(
1190
+ unescape('_fromMilliseconds_'),
1191
+ smalltalk.method({
1192
+ selector: unescape('fromMilliseconds%3A'),
1193
+ fn: function (aNumber){
1194
+ var self=this;
1195
+ return smalltalk.send(self, "_new_", [aNumber]);
1196
+ return self;}
1197
+ }),
1198
+ smalltalk.Date.klass);
1199
+
1200
+ smalltalk.addMethod(
1201
+ unescape('_fromSeconds_'),
1202
+ smalltalk.method({
1203
+ selector: unescape('fromSeconds%3A'),
1204
+ fn: function (aNumber){
1205
+ var self=this;
1206
+ return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
1207
+ return self;}
1208
+ }),
1209
+ smalltalk.Date.klass);
1210
+
1211
+ smalltalk.addMethod(
1212
+ unescape('_fromString_'),
1213
+ smalltalk.method({
1214
+ selector: unescape('fromString%3A'),
1215
+ fn: function (aString){
1216
+ var self=this;
1217
+ return smalltalk.send(self, "_new_", [aString]);
1218
+ return self;}
1219
+ }),
1220
+ smalltalk.Date.klass);
1221
+
1222
+ smalltalk.addMethod(
1223
+ unescape('_millisecondsToRun_'),
1224
+ smalltalk.method({
1225
+ selector: unescape('millisecondsToRun%3A'),
1226
+ fn: function (aBlock){
1227
+ var self=this;
1228
+ var t=nil;
1229
+ (t=smalltalk.send((smalltalk.Date || Date), "_now", []));
1230
+ smalltalk.send(aBlock, "_value", []);
1231
+ return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
1232
+ return self;}
1233
+ }),
1234
+ smalltalk.Date.klass);
1235
+
1236
+ smalltalk.addMethod(
1237
+ unescape('_new_'),
1238
+ smalltalk.method({
1239
+ selector: unescape('new%3A'),
1240
+ fn: function (anObject){
1241
+ var self=this;
1242
+ return new Date(anObject);
1243
+ return self;}
1244
+ }),
1245
+ smalltalk.Date.klass);
1246
+
1247
+ smalltalk.addMethod(
1248
+ unescape('_now'),
1249
+ smalltalk.method({
1250
+ selector: unescape('now'),
1251
+ fn: function (){
1252
+ var self=this;
1253
+ return smalltalk.send(self, "_today", []);
1254
+ return self;}
1255
+ }),
1256
+ smalltalk.Date.klass);
1257
+
1258
+ smalltalk.addMethod(
1259
+ unescape('_today'),
1260
+ smalltalk.method({
1261
+ selector: unescape('today'),
1262
+ fn: function (){
1263
+ var self=this;
1264
+ return smalltalk.send(self, "_new", []);
1265
+ return self;}
1266
+ }),
1267
+ smalltalk.Date.klass);
1268
+
1269
+
1270
+ smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel-Objects');
1271
+ smalltalk.addMethod(
1272
+ unescape('_at_'),
1273
+ smalltalk.method({
1274
+ selector: unescape('at%3A'),
1275
+ fn: function (aSymbol){
1276
+ var self=this;
1277
+ var attr=nil;
1278
+ (attr=smalltalk.send(aSymbol, "_asString", []));
1279
+ return self['@jsObject'][attr];
1280
+ return self;}
1281
+ }),
1282
+ smalltalk.JSObjectProxy);
1283
+
1284
+ smalltalk.addMethod(
1285
+ unescape('_at_put_'),
1286
+ smalltalk.method({
1287
+ selector: unescape('at%3Aput%3A'),
1288
+ fn: function (aSymbol, anObject){
1289
+ var self=this;
1290
+ var attr=nil;
1291
+ (attr=smalltalk.send(aSymbol, "_asString", []));
1292
+ self['@jsObject'][attr] = anObject;
1293
+ return self;}
1294
+ }),
1295
+ smalltalk.JSObjectProxy);
1296
+
1297
+ smalltalk.addMethod(
1298
+ unescape('_doesNotUnderstand_'),
1299
+ smalltalk.method({
1300
+ selector: unescape('doesNotUnderstand%3A'),
1301
+ fn: function (aMessage){
1302
+ var self=this;
1303
+ var obj=nil;
1304
+ var selector=nil;
1305
+ var jsSelector=nil;
1306
+ var arguments=nil;
1307
+ (obj=smalltalk.send(self, "_jsObject", []));
1308
+ (selector=smalltalk.send(aMessage, "_selector", []));
1309
+ (jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []));
1310
+ (arguments=smalltalk.send(aMessage, "_arguments", []));
1311
+ if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
1312
+ smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
1313
+ return self;}
1314
+ }),
1315
+ smalltalk.JSObjectProxy);
1316
+
1317
+ smalltalk.addMethod(
1318
+ unescape('_inspectOn_'),
1319
+ smalltalk.method({
1320
+ selector: unescape('inspectOn%3A'),
1321
+ fn: function (anInspector){
1322
+ var self=this;
1323
+ var variables=nil;
1324
+ (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
1325
+ smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
1326
+ smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
1327
+ for(var i in self['@jsObject']) {
1328
+ variables._at_put_(i, self['@jsObject'][i]);
1329
+ };
1330
+ smalltalk.send(anInspector, "_setVariables_", [variables]);
1331
+ return self;}
1332
+ }),
1333
+ smalltalk.JSObjectProxy);
1334
+
1335
+ smalltalk.addMethod(
1336
+ unescape('_jsObject'),
1337
+ smalltalk.method({
1338
+ selector: unescape('jsObject'),
1339
+ fn: function (){
1340
+ var self=this;
1341
+ return self['@jsObject'];
1342
+ return self;}
1343
+ }),
1344
+ smalltalk.JSObjectProxy);
1345
+
1346
+ smalltalk.addMethod(
1347
+ unescape('_jsObject_'),
1348
+ smalltalk.method({
1349
+ selector: unescape('jsObject%3A'),
1350
+ fn: function (aJSObject){
1351
+ var self=this;
1352
+ (self['@jsObject']=aJSObject);
1353
+ return self;}
1354
+ }),
1355
+ smalltalk.JSObjectProxy);
1356
+
1357
+ smalltalk.addMethod(
1358
+ unescape('_keysAndValuesDo_'),
1359
+ smalltalk.method({
1360
+ selector: unescape('keysAndValuesDo%3A'),
1361
+ fn: function (aBlock){
1362
+ var self=this;
1363
+ for (var key in self['@jsObject']) {
1364
+ aBlock._value_value_(key, self['@jsObject'][key]);
1365
+ } ;
1366
+ return self;}
1367
+ }),
1368
+ smalltalk.JSObjectProxy);
1369
+
1370
+ smalltalk.addMethod(
1371
+ unescape('_printString'),
1372
+ smalltalk.method({
1373
+ selector: unescape('printString'),
1374
+ fn: function (){
1375
+ var self=this;
1376
+ return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
1377
+ return self;}
1378
+ }),
1379
+ smalltalk.JSObjectProxy);
1380
+
1381
+ smalltalk.addMethod(
1382
+ unescape('_size'),
1383
+ smalltalk.method({
1384
+ selector: unescape('size'),
1385
+ fn: function (){
1386
+ var self=this;
1387
+ var obj = self['@jsObject'];
1388
+ return Object.keys(obj).size; ;
1389
+ return self;}
1390
+ }),
1391
+ smalltalk.JSObjectProxy);
1392
+
1393
+
1394
+ smalltalk.addMethod(
1395
+ unescape('_on_'),
1396
+ smalltalk.method({
1397
+ selector: unescape('on%3A'),
1398
+ fn: function (aJSObject){
1399
+ var self=this;
1400
+ return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
1401
+ return self;}
1402
+ }),
1403
+ smalltalk.JSObjectProxy.klass);
1404
+
1405
+
1406
+ smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel-Objects');
1407
+ smalltalk.addMethod(
1408
+ unescape('__star'),
1409
+ smalltalk.method({
1410
+ selector: unescape('*'),
1411
+ fn: function (aNumber){
1412
+ var self=this;
1413
+ return self * aNumber;
1414
+ return self;}
1415
+ }),
1416
+ smalltalk.Number);
1417
+
1418
+ smalltalk.addMethod(
1419
+ unescape('__plus'),
1420
+ smalltalk.method({
1421
+ selector: unescape('+'),
1422
+ fn: function (aNumber){
1423
+ var self=this;
1424
+ return self + aNumber;
1425
+ return self;}
1426
+ }),
1427
+ smalltalk.Number);
1428
+
1429
+ smalltalk.addMethod(
1430
+ unescape('__minus'),
1431
+ smalltalk.method({
1432
+ selector: unescape('-'),
1433
+ fn: function (aNumber){
1434
+ var self=this;
1435
+ return self - aNumber;
1436
+ return self;}
1437
+ }),
1438
+ smalltalk.Number);
1439
+
1440
+ smalltalk.addMethod(
1441
+ unescape('__slash'),
1442
+ smalltalk.method({
1443
+ selector: unescape('/'),
1444
+ fn: function (aNumber){
1445
+ var self=this;
1446
+ return self / aNumber;
1447
+ return self;}
1448
+ }),
1449
+ smalltalk.Number);
1450
+
1451
+ smalltalk.addMethod(
1452
+ unescape('__lt'),
1453
+ smalltalk.method({
1454
+ selector: unescape('%3C'),
1455
+ fn: function (aNumber){
1456
+ var self=this;
1457
+ return self < aNumber;
1458
+ return self;}
1459
+ }),
1460
+ smalltalk.Number);
1461
+
1462
+ smalltalk.addMethod(
1463
+ unescape('__lt_eq'),
1464
+ smalltalk.method({
1465
+ selector: unescape('%3C%3D'),
1466
+ fn: function (aNumber){
1467
+ var self=this;
1468
+ return self <= aNumber;
1469
+ return self;}
1470
+ }),
1471
+ smalltalk.Number);
1472
+
1473
+ smalltalk.addMethod(
1474
+ unescape('__eq'),
1475
+ smalltalk.method({
1476
+ selector: unescape('%3D'),
1477
+ fn: function (aNumber){
1478
+ var self=this;
1479
+ try{((($receiver = smalltalk.send(aNumber, "_isNumber", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
1480
+ return Number(self) == aNumber;
1481
+ return self;
1482
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
1483
+ }),
1484
+ smalltalk.Number);
1485
+
1486
+ smalltalk.addMethod(
1487
+ unescape('__gt'),
1488
+ smalltalk.method({
1489
+ selector: unescape('%3E'),
1490
+ fn: function (aNumber){
1491
+ var self=this;
1492
+ return self > aNumber;
1493
+ return self;}
1494
+ }),
1495
+ smalltalk.Number);
1496
+
1497
+ smalltalk.addMethod(
1498
+ unescape('__gt_eq'),
1499
+ smalltalk.method({
1500
+ selector: unescape('%3E%3D'),
1501
+ fn: function (aNumber){
1502
+ var self=this;
1503
+ return self >= aNumber;
1504
+ return self;}
1505
+ }),
1506
+ smalltalk.Number);
1507
+
1508
+ smalltalk.addMethod(
1509
+ unescape('__at'),
1510
+ smalltalk.method({
1511
+ selector: unescape('@'),
1512
+ fn: function (aNumber){
1513
+ var self=this;
1514
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
1515
+ return self;}
1516
+ }),
1517
+ smalltalk.Number);
1518
+
1519
+ smalltalk.addMethod(
1520
+ unescape('_%5C%5C'),
1521
+ smalltalk.method({
1522
+ selector: unescape('%5C%5C'),
1523
+ fn: function (aNumber){
1524
+ var self=this;
1525
+ return self % aNumber;
1526
+ return self;}
1527
+ }),
1528
+ smalltalk.Number);
1529
+
1530
+ smalltalk.addMethod(
1531
+ unescape('_asHexString'),
1532
+ smalltalk.method({
1533
+ selector: unescape('asHexString'),
1534
+ fn: function (){
1535
+ var self=this;
1536
+ return self.toString(16); ;
1537
+ return self;}
1538
+ }),
1539
+ smalltalk.Number);
1540
+
1541
+ smalltalk.addMethod(
1542
+ unescape('_asJSON'),
1543
+ smalltalk.method({
1544
+ selector: unescape('asJSON'),
1545
+ fn: function (){
1546
+ var self=this;
1547
+ return self;
1548
+ return self;}
1549
+ }),
1550
+ smalltalk.Number);
1551
+
1552
+ smalltalk.addMethod(
1553
+ unescape('_asJavascript'),
1554
+ smalltalk.method({
1555
+ selector: unescape('asJavascript'),
1556
+ fn: function (){
1557
+ var self=this;
1558
+ return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
1559
+ return self;}
1560
+ }),
1561
+ smalltalk.Number);
1562
+
1563
+ smalltalk.addMethod(
1564
+ unescape('_asPoint'),
1565
+ smalltalk.method({
1566
+ selector: unescape('asPoint'),
1567
+ fn: function (){
1568
+ var self=this;
1569
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
1570
+ return self;}
1571
+ }),
1572
+ smalltalk.Number);
1573
+
1574
+ smalltalk.addMethod(
1575
+ unescape('_asString'),
1576
+ smalltalk.method({
1577
+ selector: unescape('asString'),
1578
+ fn: function (){
1579
+ var self=this;
1580
+ return smalltalk.send(self, "_printString", []);
1581
+ return self;}
1582
+ }),
1583
+ smalltalk.Number);
1584
+
1585
+ smalltalk.addMethod(
1586
+ unescape('_atRandom'),
1587
+ smalltalk.method({
1588
+ selector: unescape('atRandom'),
1589
+ fn: function (){
1590
+ var self=this;
1591
+ return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
1592
+ return self;}
1593
+ }),
1594
+ smalltalk.Number);
1595
+
1596
+ smalltalk.addMethod(
1597
+ unescape('_bitAnd_'),
1598
+ smalltalk.method({
1599
+ selector: unescape('bitAnd%3A'),
1600
+ fn: function (anInteger){
1601
+ var self=this;
1602
+ return self & anInteger; ;
1603
+ return self;}
1604
+ }),
1605
+ smalltalk.Number);
1606
+
1607
+ smalltalk.addMethod(
1608
+ unescape('_bitShift_'),
1609
+ smalltalk.method({
1610
+ selector: unescape('bitShift%3A'),
1611
+ fn: function (anInteger){
1612
+ var self=this;
1613
+ if (anInteger > 0) {
1614
+ return self << anInteger;
1615
+ }
1616
+ else {
1617
+ // bitshift might fail with big numbers
1618
+ return bitShiftRight(self, -1 * anInteger);
1619
+ } ;
1620
+ return self;}
1621
+ }),
1622
+ smalltalk.Number);
1623
+
1624
+ smalltalk.addMethod(
1625
+ unescape('_ceiled'),
1626
+ smalltalk.method({
1627
+ selector: unescape('ceiled'),
1628
+ fn: function (){
1629
+ var self=this;
1630
+ return Math.ceil(self); ;
1631
+ return self;}
1632
+ }),
1633
+ smalltalk.Number);
1634
+
1635
+ smalltalk.addMethod(
1636
+ unescape('_clearInterval'),
1637
+ smalltalk.method({
1638
+ selector: unescape('clearInterval'),
1639
+ fn: function (){
1640
+ var self=this;
1641
+ clearInterval(Number(self));
1642
+ return self;}
1643
+ }),
1644
+ smalltalk.Number);
1645
+
1646
+ smalltalk.addMethod(
1647
+ unescape('_clearTimeout'),
1648
+ smalltalk.method({
1649
+ selector: unescape('clearTimeout'),
1650
+ fn: function (){
1651
+ var self=this;
1652
+ clearTimeout(Number(self));
1653
+ return self;}
1654
+ }),
1655
+ smalltalk.Number);
1656
+
1657
+ smalltalk.addMethod(
1658
+ unescape('_copy'),
1659
+ smalltalk.method({
1660
+ selector: unescape('copy'),
1661
+ fn: function (){
1662
+ var self=this;
1663
+ return self;
1664
+ return self;}
1665
+ }),
1666
+ smalltalk.Number);
1667
+
1668
+ smalltalk.addMethod(
1669
+ unescape('_deepCopy'),
1670
+ smalltalk.method({
1671
+ selector: unescape('deepCopy'),
1672
+ fn: function (){
1673
+ var self=this;
1674
+ return smalltalk.send(self, "_copy", []);
1675
+ return self;}
1676
+ }),
1677
+ smalltalk.Number);
1678
+
1679
+ smalltalk.addMethod(
1680
+ unescape('_even'),
1681
+ smalltalk.method({
1682
+ selector: unescape('even'),
1683
+ fn: function (){
1684
+ var self=this;
1685
+ return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
1686
+ return self;}
1687
+ }),
1688
+ smalltalk.Number);
1689
+
1690
+ smalltalk.addMethod(
1691
+ unescape('_identityHash'),
1692
+ smalltalk.method({
1693
+ selector: unescape('identityHash'),
1694
+ fn: function (){
1695
+ var self=this;
1696
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", ["n"]);
1697
+ return self;}
1698
+ }),
1699
+ smalltalk.Number);
1700
+
1701
+ smalltalk.addMethod(
1702
+ unescape('_isNumber'),
1703
+ smalltalk.method({
1704
+ selector: unescape('isNumber'),
1705
+ fn: function (){
1706
+ var self=this;
1707
+ return true;
1708
+ return self;}
1709
+ }),
1710
+ smalltalk.Number);
1711
+
1712
+ smalltalk.addMethod(
1713
+ unescape('_isZero'),
1714
+ smalltalk.method({
1715
+ selector: unescape('isZero'),
1716
+ fn: function (){
1717
+ var self=this;
1718
+ return smalltalk.send(self, "__eq", [(0)]);
1719
+ return self;}
1720
+ }),
1721
+ smalltalk.Number);
1722
+
1723
+ smalltalk.addMethod(
1724
+ unescape('_max_'),
1725
+ smalltalk.method({
1726
+ selector: unescape('max%3A'),
1727
+ fn: function (aNumber){
1728
+ var self=this;
1729
+ return Math.max(self, aNumber);;
1730
+ return self;}
1731
+ }),
1732
+ smalltalk.Number);
1733
+
1734
+ smalltalk.addMethod(
1735
+ unescape('_min_'),
1736
+ smalltalk.method({
1737
+ selector: unescape('min%3A'),
1738
+ fn: function (aNumber){
1739
+ var self=this;
1740
+ return Math.min(self, aNumber);;
1741
+ return self;}
1742
+ }),
1743
+ smalltalk.Number);
1744
+
1745
+ smalltalk.addMethod(
1746
+ unescape('_negated'),
1747
+ smalltalk.method({
1748
+ selector: unescape('negated'),
1749
+ fn: function (){
1750
+ var self=this;
1751
+ return (0) - self;
1752
+ return self;}
1753
+ }),
1754
+ smalltalk.Number);
1755
+
1756
+ smalltalk.addMethod(
1757
+ unescape('_negative'),
1758
+ smalltalk.method({
1759
+ selector: unescape('negative'),
1760
+ fn: function (){
1761
+ var self=this;
1762
+ return self < (0);
1763
+ return self;}
1764
+ }),
1765
+ smalltalk.Number);
1766
+
1767
+ smalltalk.addMethod(
1768
+ unescape('_odd'),
1769
+ smalltalk.method({
1770
+ selector: unescape('odd'),
1771
+ fn: function (){
1772
+ var self=this;
1773
+ return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
1774
+ return self;}
1775
+ }),
1776
+ smalltalk.Number);
1777
+
1778
+ smalltalk.addMethod(
1779
+ unescape('_positive'),
1780
+ smalltalk.method({
1781
+ selector: unescape('positive'),
1782
+ fn: function (){
1783
+ var self=this;
1784
+ return self >= (0);
1785
+ return self;}
1786
+ }),
1787
+ smalltalk.Number);
1788
+
1789
+ smalltalk.addMethod(
1790
+ unescape('_printShowingDecimalPlaces_'),
1791
+ smalltalk.method({
1792
+ selector: unescape('printShowingDecimalPlaces%3A'),
1793
+ fn: function (placesDesired){
1794
+ var self=this;
1795
+ return self.toFixed(placesDesired);
1796
+ return self;}
1797
+ }),
1798
+ smalltalk.Number);
1799
+
1800
+ smalltalk.addMethod(
1801
+ unescape('_printString'),
1802
+ smalltalk.method({
1803
+ selector: unescape('printString'),
1804
+ fn: function (){
1805
+ var self=this;
1806
+ return String(self);
1807
+ return self;}
1808
+ }),
1809
+ smalltalk.Number);
1810
+
1811
+ smalltalk.addMethod(
1812
+ unescape('_rounded'),
1813
+ smalltalk.method({
1814
+ selector: unescape('rounded'),
1815
+ fn: function (){
1816
+ var self=this;
1817
+ return Math.round(self);;
1818
+ return self;}
1819
+ }),
1820
+ smalltalk.Number);
1821
+
1822
+ smalltalk.addMethod(
1823
+ unescape('_sqrt'),
1824
+ smalltalk.method({
1825
+ selector: unescape('sqrt'),
1826
+ fn: function (){
1827
+ var self=this;
1828
+ return Math.sqrt(self);
1829
+ return self;}
1830
+ }),
1831
+ smalltalk.Number);
1832
+
1833
+ smalltalk.addMethod(
1834
+ unescape('_squared'),
1835
+ smalltalk.method({
1836
+ selector: unescape('squared'),
1837
+ fn: function (){
1838
+ var self=this;
1839
+ return self * self;
1840
+ return self;}
1841
+ }),
1842
+ smalltalk.Number);
1843
+
1844
+ smalltalk.addMethod(
1845
+ unescape('_timesRepeat_'),
1846
+ smalltalk.method({
1847
+ selector: unescape('timesRepeat%3A'),
1848
+ fn: function (aBlock){
1849
+ var self=this;
1850
+ var integer=nil;
1851
+ var count=nil;
1852
+ (integer=smalltalk.send(self, "_truncated", []));
1853
+ (count=(1));
1854
+ (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1855
+ return self;}
1856
+ }),
1857
+ smalltalk.Number);
1858
+
1859
+ smalltalk.addMethod(
1860
+ unescape('_to_'),
1861
+ smalltalk.method({
1862
+ selector: unescape('to%3A'),
1863
+ fn: function (aNumber){
1864
+ var self=this;
1865
+ var array=nil;
1866
+ var first=nil;
1867
+ var last=nil;
1868
+ var count=nil;
1869
+ (first=smalltalk.send(self, "_truncated", []));
1870
+ (last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
1871
+ (count=(1));
1872
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1873
+ smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);(count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})]);
1874
+ return array;
1875
+ return self;}
1876
+ }),
1877
+ smalltalk.Number);
1878
+
1879
+ smalltalk.addMethod(
1880
+ unescape('_to_by_'),
1881
+ smalltalk.method({
1882
+ selector: unescape('to%3Aby%3A'),
1883
+ fn: function (stop, step){
1884
+ var self=this;
1885
+ var array=nil;
1886
+ var value=nil;
1887
+ var pos=nil;
1888
+ (value=self);
1889
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1890
+ (pos=(1));
1891
+ ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
1892
+ ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
1893
+ return array;
1894
+ return self;}
1895
+ }),
1896
+ smalltalk.Number);
1897
+
1898
+ smalltalk.addMethod(
1899
+ unescape('_to_by_do_'),
1900
+ smalltalk.method({
1901
+ selector: unescape('to%3Aby%3Ado%3A'),
1902
+ fn: function (stop, step, aBlock){
1903
+ var self=this;
1904
+ var value=nil;
1905
+ (value=self);
1906
+ ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
1907
+ ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
1908
+ return self;}
1909
+ }),
1910
+ smalltalk.Number);
1911
+
1912
+ smalltalk.addMethod(
1913
+ unescape('_to_do_'),
1914
+ smalltalk.method({
1915
+ selector: unescape('to%3Ado%3A'),
1916
+ fn: function (stop, aBlock){
1917
+ var self=this;
1918
+ var nextValue=nil;
1919
+ (nextValue=self);
1920
+ (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return (nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1921
+ return self;}
1922
+ }),
1923
+ smalltalk.Number);
1924
+
1925
+ smalltalk.addMethod(
1926
+ unescape('_truncated'),
1927
+ smalltalk.method({
1928
+ selector: unescape('truncated'),
1929
+ fn: function (){
1930
+ var self=this;
1931
+ var result=nil;
1932
+ ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
1933
+ return result;
1934
+ return self;}
1935
+ }),
1936
+ smalltalk.Number);
1937
+
1938
+
1939
+ smalltalk.addMethod(
1940
+ unescape('_pi'),
1941
+ smalltalk.method({
1942
+ selector: unescape('pi'),
1943
+ fn: function (){
1944
+ var self=this;
1945
+ return Math.PI;
1946
+ return self;}
1947
+ }),
1948
+ smalltalk.Number.klass);
1949
+
1950
+
1951
+ smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel-Objects');
1952
+ smalltalk.addMethod(
1953
+ unescape('_classes'),
1954
+ smalltalk.method({
1955
+ selector: unescape('classes'),
1956
+ fn: function (){
1957
+ var self=this;
1958
+ return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
1959
+ return self;}
1960
+ }),
1961
+ smalltalk.Package);
1962
+
1963
+ smalltalk.addMethod(
1964
+ unescape('_commitPathJs'),
1965
+ smalltalk.method({
1966
+ selector: unescape('commitPathJs'),
1967
+ fn: function (){
1968
+ var self=this;
1969
+ return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
1970
+ return self;}
1971
+ }),
1972
+ smalltalk.Package);
1973
+
1974
+ smalltalk.addMethod(
1975
+ unescape('_commitPathJs_'),
1976
+ smalltalk.method({
1977
+ selector: unescape('commitPathJs%3A'),
1978
+ fn: function (aString){
1979
+ var self=this;
1980
+ (self['@commitPathJs']=aString);
1981
+ return self;}
1982
+ }),
1983
+ smalltalk.Package);
1984
+
1985
+ smalltalk.addMethod(
1986
+ unescape('_commitPathSt'),
1987
+ smalltalk.method({
1988
+ selector: unescape('commitPathSt'),
1989
+ fn: function (){
1990
+ var self=this;
1991
+ return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
1992
+ return self;}
1993
+ }),
1994
+ smalltalk.Package);
1995
+
1996
+ smalltalk.addMethod(
1997
+ unescape('_commitPathSt_'),
1998
+ smalltalk.method({
1999
+ selector: unescape('commitPathSt%3A'),
2000
+ fn: function (aString){
2001
+ var self=this;
2002
+ (self['@commitPathSt']=aString);
2003
+ return self;}
2004
+ }),
2005
+ smalltalk.Package);
2006
+
2007
+ smalltalk.addMethod(
2008
+ unescape('_dependencies'),
2009
+ smalltalk.method({
2010
+ selector: unescape('dependencies'),
2011
+ fn: function (){
2012
+ var self=this;
2013
+ return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
2014
+ return self;}
2015
+ }),
2016
+ smalltalk.Package);
2017
+
2018
+ smalltalk.addMethod(
2019
+ unescape('_dependencies_'),
2020
+ smalltalk.method({
2021
+ selector: unescape('dependencies%3A'),
2022
+ fn: function (anArray){
2023
+ var self=this;
2024
+ return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
2025
+ return self;}
2026
+ }),
2027
+ smalltalk.Package);
2028
+
2029
+ smalltalk.addMethod(
2030
+ unescape('_jsProperties'),
2031
+ smalltalk.method({
2032
+ selector: unescape('jsProperties'),
2033
+ fn: function (){
2034
+ var self=this;
2035
+ return self.properties;
2036
+ return self;}
2037
+ }),
2038
+ smalltalk.Package);
2039
+
2040
+ smalltalk.addMethod(
2041
+ unescape('_jsProperties_'),
2042
+ smalltalk.method({
2043
+ selector: unescape('jsProperties%3A'),
2044
+ fn: function (aJSObject){
2045
+ var self=this;
2046
+ return self.properties = aJSObject;
2047
+ return self;}
2048
+ }),
2049
+ smalltalk.Package);
2050
+
2051
+ smalltalk.addMethod(
2052
+ unescape('_name'),
2053
+ smalltalk.method({
2054
+ selector: unescape('name'),
2055
+ fn: function (){
2056
+ var self=this;
2057
+ return self.pkgName;
2058
+ return self;}
2059
+ }),
2060
+ smalltalk.Package);
2061
+
2062
+ smalltalk.addMethod(
2063
+ unescape('_name_'),
2064
+ smalltalk.method({
2065
+ selector: unescape('name%3A'),
2066
+ fn: function (aString){
2067
+ var self=this;
2068
+ self.pkgName = aString;
2069
+ return self;}
2070
+ }),
2071
+ smalltalk.Package);
2072
+
2073
+ smalltalk.addMethod(
2074
+ unescape('_printString'),
2075
+ smalltalk.method({
2076
+ selector: unescape('printString'),
2077
+ fn: function (){
2078
+ var self=this;
2079
+ return smalltalk.send(self, "_name", []);
2080
+ return self;}
2081
+ }),
2082
+ smalltalk.Package);
2083
+
2084
+ smalltalk.addMethod(
2085
+ unescape('_properties'),
2086
+ smalltalk.method({
2087
+ selector: unescape('properties'),
2088
+ fn: function (){
2089
+ var self=this;
2090
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
2091
+ return self;}
2092
+ }),
2093
+ smalltalk.Package);
2094
+
2095
+ smalltalk.addMethod(
2096
+ unescape('_properties_'),
2097
+ smalltalk.method({
2098
+ selector: unescape('properties%3A'),
2099
+ fn: function (aDict){
2100
+ var self=this;
2101
+ var object=nil;
2102
+ object = {};;
2103
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
2104
+ return self.properties = object;
2105
+ return self;}
2106
+ }),
2107
+ smalltalk.Package);
2108
+
2109
+ smalltalk.addMethod(
2110
+ unescape('_propertiesAsJSON'),
2111
+ smalltalk.method({
2112
+ selector: unescape('propertiesAsJSON'),
2113
+ fn: function (){
2114
+ var self=this;
2115
+ return JSON.stringify(self.properties);
2116
+ return self;}
2117
+ }),
2118
+ smalltalk.Package);
2119
+
2120
+ smalltalk.addMethod(
2121
+ unescape('_propertyAt_'),
2122
+ smalltalk.method({
2123
+ selector: unescape('propertyAt%3A'),
2124
+ fn: function (key){
2125
+ var self=this;
2126
+ return self.properties[key];
2127
+ return self;}
2128
+ }),
2129
+ smalltalk.Package);
2130
+
2131
+ smalltalk.addMethod(
2132
+ unescape('_propertyAt_ifAbsent_'),
2133
+ smalltalk.method({
2134
+ selector: unescape('propertyAt%3AifAbsent%3A'),
2135
+ fn: function (key, block){
2136
+ var self=this;
2137
+ return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
2138
+ return self;}
2139
+ }),
2140
+ smalltalk.Package);
2141
+
2142
+ smalltalk.addMethod(
2143
+ unescape('_propertyAt_put_'),
2144
+ smalltalk.method({
2145
+ selector: unescape('propertyAt%3Aput%3A'),
2146
+ fn: function (key, value){
2147
+ var self=this;
2148
+ return self.properties[key] = value;
2149
+ return self;}
2150
+ }),
2151
+ smalltalk.Package);
2152
+
2153
+ smalltalk.addMethod(
2154
+ unescape('_sortedClasses'),
2155
+ smalltalk.method({
2156
+ selector: unescape('sortedClasses'),
2157
+ fn: function (){
2158
+ var self=this;
2159
+ return smalltalk.send(smalltalk.send(self, "_class", []), "_sortedClasses_", [smalltalk.send(self, "_classes", [])]);
2160
+ return self;}
2161
+ }),
2162
+ smalltalk.Package);
2163
+
2164
+
2165
+ smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
2166
+ smalltalk.addMethod(
2167
+ unescape('_commitToLocalStorage_'),
2168
+ smalltalk.method({
2169
+ selector: unescape('commitToLocalStorage%3A'),
2170
+ fn: function (aPackageName){
2171
+ var self=this;
2172
+ var key=nil;
2173
+ var sourceCode=nil;
2174
+ (key=smalltalk.send("smalltalk.packages.", "__comma", [aPackageName]));
2175
+ (sourceCode=smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [aPackageName]));
2176
+ localStorage[key] = escape(sourceCode);
2177
+ return self;}
2178
+ }),
2179
+ smalltalk.Package.klass);
2180
+
2181
+ smalltalk.addMethod(
2182
+ unescape('_defaultCommitPathJs'),
2183
+ smalltalk.method({
2184
+ selector: unescape('defaultCommitPathJs'),
2185
+ fn: function (){
2186
+ var self=this;
2187
+ return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathJs']="js");})() : $receiver;
2188
+ return self;}
2189
+ }),
2190
+ smalltalk.Package.klass);
2191
+
2192
+ smalltalk.addMethod(
2193
+ unescape('_defaultCommitPathJs_'),
2194
+ smalltalk.method({
2195
+ selector: unescape('defaultCommitPathJs%3A'),
2196
+ fn: function (aString){
2197
+ var self=this;
2198
+ (self['@defaultCommitPathJs']=aString);
2199
+ return self;}
2200
+ }),
2201
+ smalltalk.Package.klass);
2202
+
2203
+ smalltalk.addMethod(
2204
+ unescape('_defaultCommitPathSt'),
2205
+ smalltalk.method({
2206
+ selector: unescape('defaultCommitPathSt'),
2207
+ fn: function (){
2208
+ var self=this;
2209
+ return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathSt']="st");})() : $receiver;
2210
+ return self;}
2211
+ }),
2212
+ smalltalk.Package.klass);
2213
+
2214
+ smalltalk.addMethod(
2215
+ unescape('_defaultCommitPathSt_'),
2216
+ smalltalk.method({
2217
+ selector: unescape('defaultCommitPathSt%3A'),
2218
+ fn: function (aString){
2219
+ var self=this;
2220
+ (self['@defaultCommitPathSt']=aString);
2221
+ return self;}
2222
+ }),
2223
+ smalltalk.Package.klass);
2224
+
2225
+ smalltalk.addMethod(
2226
+ unescape('_fetch_'),
2227
+ smalltalk.method({
2228
+ selector: unescape('fetch%3A'),
2229
+ fn: function (aPackageName){
2230
+ var self=this;
2231
+ smalltalk.send(self, "_fetch_prefix_", [aPackageName, smalltalk.send(smalltalk.send(self, "_defaultCommitPathJs", []), "__comma", [unescape("/")])]);
2232
+ return self;}
2233
+ }),
2234
+ smalltalk.Package.klass);
2235
+
2236
+ smalltalk.addMethod(
2237
+ unescape('_fetch_prefix_'),
2238
+ smalltalk.method({
2239
+ selector: unescape('fetch%3Aprefix%3A'),
2240
+ fn: function (aPackageName, aPrefix){
2241
+ var self=this;
2242
+ smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_getScript_onSuccess_", [smalltalk.send(smalltalk.send(aPrefix, "__comma", [aPackageName]), "__comma", [".js"]), (function(){return smalltalk.send((smalltalk.Package || Package), "_init_", [aPackageName]);})]);
2243
+ return self;}
2244
+ }),
2245
+ smalltalk.Package.klass);
2246
+
2247
+ smalltalk.addMethod(
2248
+ unescape('_init_'),
2249
+ smalltalk.method({
2250
+ selector: unescape('init%3A'),
2251
+ fn: function (aPackageName){
2252
+ var self=this;
2253
+ (function($rec){smalltalk.send($rec, "_do_", [(function(each){return smalltalk.init(each);})]);return smalltalk.send($rec, "_do_", [(function(each){return smalltalk.send(each, "_initialize", []);})]);})(smalltalk.send(smalltalk.send((typeof smalltalk == 'undefined' ? nil : smalltalk), "_classes", []), "_select_", [(function(each){return each.pkg.pkgName == aPackageName;})]));
2254
+ return self;}
2255
+ }),
2256
+ smalltalk.Package.klass);
2257
+
2258
+ smalltalk.addMethod(
2259
+ unescape('_named_'),
2260
+ smalltalk.method({
2261
+ selector: unescape('named%3A'),
2262
+ fn: function (aPackageName){
2263
+ var self=this;
2264
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
2265
+ return self;}
2266
+ }),
2267
+ smalltalk.Package.klass);
2268
+
2269
+ smalltalk.addMethod(
2270
+ unescape('_named_ifAbsent_'),
2271
+ smalltalk.method({
2272
+ selector: unescape('named%3AifAbsent%3A'),
2273
+ fn: function (aPackageName, aBlock){
2274
+ var self=this;
2275
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
2276
+ return self;}
2277
+ }),
2278
+ smalltalk.Package.klass);
2279
+
2280
+ smalltalk.addMethod(
2281
+ unescape('_resetCommitPaths'),
2282
+ smalltalk.method({
2283
+ selector: unescape('resetCommitPaths'),
2284
+ fn: function (){
2285
+ var self=this;
2286
+ (self['@defaultCommitPathJs']=nil);
2287
+ (self['@defaultCommitPathSt']=nil);
2288
+ return self;}
2289
+ }),
2290
+ smalltalk.Package.klass);
2291
+
2292
+ smalltalk.addMethod(
2293
+ unescape('_sortedClasses_'),
2294
+ smalltalk.method({
2295
+ selector: unescape('sortedClasses%3A'),
2296
+ fn: function (classes){
2297
+ var self=this;
2298
+ var children=nil;
2299
+ var others=nil;
2300
+ var nodes=nil;
2301
+ var expandedClasses=nil;
2302
+ (children=[]);
2303
+ (others=[]);
2304
+ smalltalk.send(classes, "_do_", [(function(each){return ((($receiver = smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(children, "_add_", [each]);})() : (function(){return smalltalk.send(others, "_add_", [each]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]));})]);
2305
+ (nodes=smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassSorterNode || ClassSorterNode), "_on_classes_level_", [each, others, (0)]);})]));
2306
+ (nodes=smalltalk.send(nodes, "_sorted_", [(function(a, b){return ((($receiver = smalltalk.send(smalltalk.send(a, "_theClass", []), "_name", [])).klass === smalltalk.Number) ? $receiver <=smalltalk.send(smalltalk.send(b, "_theClass", []), "_name", []) : smalltalk.send($receiver, "__lt_eq", [smalltalk.send(smalltalk.send(b, "_theClass", []), "_name", [])]));})]));
2307
+ (expandedClasses=smalltalk.send((smalltalk.Array || Array), "_new", []));
2308
+ smalltalk.send(nodes, "_do_", [(function(aNode){return smalltalk.send(aNode, "_traverseClassesWith_", [expandedClasses]);})]);
2309
+ return expandedClasses;
2310
+ return self;}
2311
+ }),
2312
+ smalltalk.Package.klass);
2313
+
2314
+
2315
+ smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel-Objects');
2316
+ smalltalk.addMethod(
2317
+ unescape('__star'),
2318
+ smalltalk.method({
2319
+ selector: unescape('*'),
2320
+ fn: function (aPoint){
2321
+ var self=this;
2322
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2323
+ return self;}
2324
+ }),
2325
+ smalltalk.Point);
2326
+
2327
+ smalltalk.addMethod(
2328
+ unescape('__plus'),
2329
+ smalltalk.method({
2330
+ selector: unescape('+'),
2331
+ fn: function (aPoint){
2332
+ var self=this;
2333
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2334
+ return self;}
2335
+ }),
2336
+ smalltalk.Point);
2337
+
2338
+ smalltalk.addMethod(
2339
+ unescape('__minus'),
2340
+ smalltalk.method({
2341
+ selector: unescape('-'),
2342
+ fn: function (aPoint){
2343
+ var self=this;
2344
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2345
+ return self;}
2346
+ }),
2347
+ smalltalk.Point);
2348
+
2349
+ smalltalk.addMethod(
2350
+ unescape('__slash'),
2351
+ smalltalk.method({
2352
+ selector: unescape('/'),
2353
+ fn: function (aPoint){
2354
+ var self=this;
2355
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
2356
+ return self;}
2357
+ }),
2358
+ smalltalk.Point);
2359
+
2360
+ smalltalk.addMethod(
2361
+ unescape('__eq'),
2362
+ smalltalk.method({
2363
+ selector: unescape('%3D'),
2364
+ fn: function (aPoint){
2365
+ var self=this;
2366
+ return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);})]);
2367
+ return self;}
2368
+ }),
2369
+ smalltalk.Point);
2370
+
2371
+ smalltalk.addMethod(
2372
+ unescape('_asPoint'),
2373
+ smalltalk.method({
2374
+ selector: unescape('asPoint'),
2375
+ fn: function (){
2376
+ var self=this;
2377
+ return self;
2378
+ return self;}
2379
+ }),
2380
+ smalltalk.Point);
2381
+
2382
+ smalltalk.addMethod(
2383
+ unescape('_printString'),
2384
+ smalltalk.method({
2385
+ selector: unescape('printString'),
2386
+ fn: function (){
2387
+ var self=this;
2388
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@x'], "_printString", []), "__comma", [unescape("@")])]);((($receiver = smalltalk.send(smalltalk.send(self['@y'], "_notNil", []), "_and_", [(function(){return smalltalk.send(self['@y'], "_negative", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_space", []);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_space", []);})]));return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self['@y'], "_printString", [])]);})]);
2389
+ return self;}
2390
+ }),
2391
+ smalltalk.Point);
2392
+
2393
+ smalltalk.addMethod(
2394
+ unescape('_translateBy_'),
2395
+ smalltalk.method({
2396
+ selector: unescape('translateBy%3A'),
2397
+ fn: function (delta){
2398
+ var self=this;
2399
+ return smalltalk.send(((($receiver = smalltalk.send(delta, "_x", [])).klass === smalltalk.Number) ? $receiver +self['@x'] : smalltalk.send($receiver, "__plus", [self['@x']])), "__at", [((($receiver = smalltalk.send(delta, "_y", [])).klass === smalltalk.Number) ? $receiver +self['@y'] : smalltalk.send($receiver, "__plus", [self['@y']]))]);
2400
+ return self;}
2401
+ }),
2402
+ smalltalk.Point);
2403
+
2404
+ smalltalk.addMethod(
2405
+ unescape('_x'),
2406
+ smalltalk.method({
2407
+ selector: unescape('x'),
2408
+ fn: function (){
2409
+ var self=this;
2410
+ return self['@x'];
2411
+ return self;}
2412
+ }),
2413
+ smalltalk.Point);
2414
+
2415
+ smalltalk.addMethod(
2416
+ unescape('_x_'),
2417
+ smalltalk.method({
2418
+ selector: unescape('x%3A'),
2419
+ fn: function (aNumber){
2420
+ var self=this;
2421
+ (self['@x']=aNumber);
2422
+ return self;}
2423
+ }),
2424
+ smalltalk.Point);
2425
+
2426
+ smalltalk.addMethod(
2427
+ unescape('_y'),
2428
+ smalltalk.method({
2429
+ selector: unescape('y'),
2430
+ fn: function (){
2431
+ var self=this;
2432
+ return self['@y'];
2433
+ return self;}
2434
+ }),
2435
+ smalltalk.Point);
2436
+
2437
+ smalltalk.addMethod(
2438
+ unescape('_y_'),
2439
+ smalltalk.method({
2440
+ selector: unescape('y%3A'),
2441
+ fn: function (aNumber){
2442
+ var self=this;
2443
+ (self['@y']=aNumber);
2444
+ return self;}
2445
+ }),
2446
+ smalltalk.Point);
2447
+
2448
+
2449
+ smalltalk.addMethod(
2450
+ unescape('_x_y_'),
2451
+ smalltalk.method({
2452
+ selector: unescape('x%3Ay%3A'),
2453
+ fn: function (aNumber, anotherNumber){
2454
+ var self=this;
2455
+ return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
2456
+ return self;}
2457
+ }),
2458
+ smalltalk.Point.klass);
2459
+
2460
+
2461
+ smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel-Objects');
2462
+ smalltalk.addMethod(
2463
+ unescape('_next'),
2464
+ smalltalk.method({
2465
+ selector: unescape('next'),
2466
+ fn: function (){
2467
+ var self=this;
2468
+ return Math.random();
2469
+ return self;}
2470
+ }),
2471
+ smalltalk.Random);
2472
+
2473
+ smalltalk.addMethod(
2474
+ unescape('_next_'),
2475
+ smalltalk.method({
2476
+ selector: unescape('next%3A'),
2477
+ fn: function (anInteger){
2478
+ var self=this;
2479
+ return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
2480
+ return self;}
2481
+ }),
2482
+ smalltalk.Random);
2483
+
2484
+
2485
+
2486
+ smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel-Objects');
2487
+ smalltalk.addMethod(
2488
+ unescape('_at_'),
2489
+ smalltalk.method({
2490
+ selector: unescape('at%3A'),
2491
+ fn: function (aString){
2492
+ var self=this;
2493
+ return self[aString];
2494
+ return self;}
2495
+ }),
2496
+ smalltalk.Smalltalk);
2497
+
2498
+ smalltalk.addMethod(
2499
+ unescape('_basicParse_'),
2500
+ smalltalk.method({
2501
+ selector: unescape('basicParse%3A'),
2502
+ fn: function (aString){
2503
+ var self=this;
2504
+ return smalltalk.parser.parse(aString);
2505
+ return self;}
2506
+ }),
2507
+ smalltalk.Smalltalk);
2508
+
2509
+ smalltalk.addMethod(
2510
+ unescape('_classes'),
2511
+ smalltalk.method({
2512
+ selector: unescape('classes'),
2513
+ fn: function (){
2514
+ var self=this;
2515
+ return self.classes();
2516
+ return self;}
2517
+ }),
2518
+ smalltalk.Smalltalk);
2519
+
2520
+ smalltalk.addMethod(
2521
+ unescape('_createPackage_'),
2522
+ smalltalk.method({
2523
+ selector: unescape('createPackage%3A'),
2524
+ fn: function (packageName){
2525
+ var self=this;
2526
+ return smalltalk.addPackage(packageName, nil);
2527
+ return self;}
2528
+ }),
2529
+ smalltalk.Smalltalk);
2530
+
2531
+ smalltalk.addMethod(
2532
+ unescape('_createPackage_properties_'),
2533
+ smalltalk.method({
2534
+ selector: unescape('createPackage%3Aproperties%3A'),
2535
+ fn: function (packageName, aDict){
2536
+ var self=this;
2537
+ var object=nil;
2538
+ object = {};;
2539
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
2540
+ return smalltalk.addPackage(packageName, object);
2541
+ return self;}
2542
+ }),
2543
+ smalltalk.Smalltalk);
2544
+
2545
+ smalltalk.addMethod(
2546
+ unescape('_deletePackage_'),
2547
+ smalltalk.method({
2548
+ selector: unescape('deletePackage%3A'),
2549
+ fn: function (packageName){
2550
+ var self=this;
2551
+ delete smalltalk.packages[packageName];
2552
+ return self;}
2553
+ }),
2554
+ smalltalk.Smalltalk);
2555
+
2556
+ smalltalk.addMethod(
2557
+ unescape('_packageAt_'),
2558
+ smalltalk.method({
2559
+ selector: unescape('packageAt%3A'),
2560
+ fn: function (packageName){
2561
+ var self=this;
2562
+ return self.packages[packageName];
2563
+ return self;}
2564
+ }),
2565
+ smalltalk.Smalltalk);
2566
+
2567
+ smalltalk.addMethod(
2568
+ unescape('_packageAt_ifAbsent_'),
2569
+ smalltalk.method({
2570
+ selector: unescape('packageAt%3AifAbsent%3A'),
2571
+ fn: function (packageName, aBlock){
2572
+ var self=this;
2573
+ return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
2574
+ return self;}
2575
+ }),
2576
+ smalltalk.Smalltalk);
2577
+
2578
+ smalltalk.addMethod(
2579
+ unescape('_packages'),
2580
+ smalltalk.method({
2581
+ selector: unescape('packages'),
2582
+ fn: function (){
2583
+ var self=this;
2584
+ return self.packages.all();
2585
+ return self;}
2586
+ }),
2587
+ smalltalk.Smalltalk);
2588
+
2589
+ smalltalk.addMethod(
2590
+ unescape('_parse_'),
2591
+ smalltalk.method({
2592
+ selector: unescape('parse%3A'),
2593
+ fn: function (aString){
2594
+ var self=this;
2595
+ var result=nil;
2596
+ smalltalk.send(self, "_try_catch_", [(function(){return (result=smalltalk.send(self, "_basicParse_", [aString]));}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
2597
+ return result;
2598
+ return self;}
2599
+ }),
2600
+ smalltalk.Smalltalk);
2601
+
2602
+ smalltalk.addMethod(
2603
+ unescape('_parseError_parsing_'),
2604
+ smalltalk.method({
2605
+ selector: unescape('parseError%3Aparsing%3A'),
2606
+ fn: function (anException, aString){
2607
+ var self=this;
2608
+ var row=nil;
2609
+ var col=nil;
2610
+ var message=nil;
2611
+ var lines=nil;
2612
+ var badLine=nil;
2613
+ var code=nil;
2614
+ row = anException.line;
2615
+ col = anException.column;
2616
+ message = anException.message;;
2617
+ (lines=smalltalk.send(aString, "_lines", []));
2618
+ (badLine=smalltalk.send(lines, "_at_", [row]));
2619
+ (badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]));
2620
+ smalltalk.send(lines, "_at_put_", [row, badLine]);
2621
+ (code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]));
2622
+ return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
2623
+ return self;}
2624
+ }),
2625
+ smalltalk.Smalltalk);
2626
+
2627
+ smalltalk.addMethod(
2628
+ unescape('_readJSObject_'),
2629
+ smalltalk.method({
2630
+ selector: unescape('readJSObject%3A'),
2631
+ fn: function (anObject){
2632
+ var self=this;
2633
+ return self.readJSObject(anObject);
2634
+ return self;}
2635
+ }),
2636
+ smalltalk.Smalltalk);
2637
+
2638
+ smalltalk.addMethod(
2639
+ unescape('_removeClass_'),
2640
+ smalltalk.method({
2641
+ selector: unescape('removeClass%3A'),
2642
+ fn: function (aClass){
2643
+ var self=this;
2644
+ ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
2645
+ smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
2646
+ smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
2647
+ smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
2648
+ return self;}
2649
+ }),
2650
+ smalltalk.Smalltalk);
2651
+
2652
+ smalltalk.addMethod(
2653
+ unescape('_removePackage_'),
2654
+ smalltalk.method({
2655
+ selector: unescape('removePackage%3A'),
2656
+ fn: function (packageName){
2657
+ var self=this;
2658
+ var pkg=nil;
2659
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
2660
+ smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
2661
+ smalltalk.send(self, "_deletePackage_", [packageName]);
2662
+ return self;}
2663
+ }),
2664
+ smalltalk.Smalltalk);
2665
+
2666
+ smalltalk.addMethod(
2667
+ unescape('_renamePackage_to_'),
2668
+ smalltalk.method({
2669
+ selector: unescape('renamePackage%3Ato%3A'),
2670
+ fn: function (packageName, newName){
2671
+ var self=this;
2672
+ var pkg=nil;
2673
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
2674
+ (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
2675
+ smalltalk.packages[newName] = smalltalk.packages[packageName];
2676
+ smalltalk.send(pkg, "_name_", [newName]);
2677
+ smalltalk.send(self, "_deletePackage_", [packageName]);
2678
+ return self;}
2679
+ }),
2680
+ smalltalk.Smalltalk);
2681
+
2682
+ smalltalk.addMethod(
2683
+ unescape('_reservedWords'),
2684
+ smalltalk.method({
2685
+ selector: unescape('reservedWords'),
2686
+ fn: function (){
2687
+ var self=this;
2688
+ return self.reservedWords;
2689
+ return self;}
2690
+ }),
2691
+ smalltalk.Smalltalk);
2692
+
2693
+ smalltalk.addMethod(
2694
+ unescape('_send_to_arguments_'),
2695
+ smalltalk.method({
2696
+ selector: unescape('send%3Ato%3Aarguments%3A'),
2697
+ fn: function (aSelector, anObject, aCollection){
2698
+ var self=this;
2699
+ var selector=nil;
2700
+ (selector=smalltalk.send(smalltalk.send(aSelector, "_asString", []), "_asSelector", []));
2701
+ self.send(anObject, selector, aCollection);
2702
+ return self;}
2703
+ }),
2704
+ smalltalk.Smalltalk);
2705
+
2706
+
2707
+ smalltalk.Smalltalk.klass.iVarNames = ['current'];
2708
+ smalltalk.addMethod(
2709
+ unescape('_current'),
2710
+ smalltalk.method({
2711
+ selector: unescape('current'),
2712
+ fn: function (){
2713
+ var self=this;
2714
+ return smalltalk;
2715
+ return self;}
2716
+ }),
2717
+ smalltalk.Smalltalk.klass);
2718
+
2719
+
2720
+ smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel-Objects');
2721
+ smalltalk.addMethod(
2722
+ unescape('_asJSON'),
2723
+ smalltalk.method({
2724
+ selector: unescape('asJSON'),
2725
+ fn: function (){
2726
+ var self=this;
2727
+ return (typeof null == 'undefined' ? nil : null);
2728
+ return self;}
2729
+ }),
2730
+ smalltalk.UndefinedObject);
2731
+
2732
+ smalltalk.addMethod(
2733
+ unescape('_deepCopy'),
2734
+ smalltalk.method({
2735
+ selector: unescape('deepCopy'),
2736
+ fn: function (){
2737
+ var self=this;
2738
+ return self;
2739
+ return self;}
2740
+ }),
2741
+ smalltalk.UndefinedObject);
2742
+
2743
+ smalltalk.addMethod(
2744
+ unescape('_ifNil_'),
2745
+ smalltalk.method({
2746
+ selector: unescape('ifNil%3A'),
2747
+ fn: function (aBlock){
2748
+ var self=this;
2749
+ return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
2750
+ return self;}
2751
+ }),
2752
+ smalltalk.UndefinedObject);
2753
+
2754
+ smalltalk.addMethod(
2755
+ unescape('_ifNil_ifNotNil_'),
2756
+ smalltalk.method({
2757
+ selector: unescape('ifNil%3AifNotNil%3A'),
2758
+ fn: function (aBlock, anotherBlock){
2759
+ var self=this;
2760
+ return smalltalk.send(aBlock, "_value", []);
2761
+ return self;}
2762
+ }),
2763
+ smalltalk.UndefinedObject);
2764
+
2765
+ smalltalk.addMethod(
2766
+ unescape('_ifNotNil_'),
2767
+ smalltalk.method({
2768
+ selector: unescape('ifNotNil%3A'),
2769
+ fn: function (aBlock){
2770
+ var self=this;
2771
+ return self;
2772
+ return self;}
2773
+ }),
2774
+ smalltalk.UndefinedObject);
2775
+
2776
+ smalltalk.addMethod(
2777
+ unescape('_ifNotNil_ifNil_'),
2778
+ smalltalk.method({
2779
+ selector: unescape('ifNotNil%3AifNil%3A'),
2780
+ fn: function (aBlock, anotherBlock){
2781
+ var self=this;
2782
+ return smalltalk.send(anotherBlock, "_value", []);
2783
+ return self;}
2784
+ }),
2785
+ smalltalk.UndefinedObject);
2786
+
2787
+ smalltalk.addMethod(
2788
+ unescape('_isNil'),
2789
+ smalltalk.method({
2790
+ selector: unescape('isNil'),
2791
+ fn: function (){
2792
+ var self=this;
2793
+ return true;
2794
+ return self;}
2795
+ }),
2796
+ smalltalk.UndefinedObject);
2797
+
2798
+ smalltalk.addMethod(
2799
+ unescape('_notNil'),
2800
+ smalltalk.method({
2801
+ selector: unescape('notNil'),
2802
+ fn: function (){
2803
+ var self=this;
2804
+ return false;
2805
+ return self;}
2806
+ }),
2807
+ smalltalk.UndefinedObject);
2808
+
2809
+ smalltalk.addMethod(
2810
+ unescape('_printString'),
2811
+ smalltalk.method({
2812
+ selector: unescape('printString'),
2813
+ fn: function (){
2814
+ var self=this;
2815
+ return "nil";
2816
+ return self;}
2817
+ }),
2818
+ smalltalk.UndefinedObject);
2819
+
2820
+ smalltalk.addMethod(
2821
+ unescape('_shallowCopy'),
2822
+ smalltalk.method({
2823
+ selector: unescape('shallowCopy'),
2824
+ fn: function (){
2825
+ var self=this;
2826
+ return self;
2827
+ return self;}
2828
+ }),
2829
+ smalltalk.UndefinedObject);
2830
+
2831
+ smalltalk.addMethod(
2832
+ unescape('_subclass_instanceVariableNames_'),
2833
+ smalltalk.method({
2834
+ selector: unescape('subclass%3AinstanceVariableNames%3A'),
2835
+ fn: function (aString, anotherString){
2836
+ var self=this;
2837
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
2838
+ return self;}
2839
+ }),
2840
+ smalltalk.UndefinedObject);
2841
+
2842
+ smalltalk.addMethod(
2843
+ unescape('_subclass_instanceVariableNames_category_'),
2844
+ smalltalk.method({
2845
+ selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
2846
+ fn: function (aString, aString2, aString3){
2847
+ var self=this;
2848
+ smalltalk.send(self, "_deprecatedAPI", []);
2849
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
2850
+ return self;}
2851
+ }),
2852
+ smalltalk.UndefinedObject);
2853
+
2854
+ smalltalk.addMethod(
2855
+ unescape('_subclass_instanceVariableNames_package_'),
2856
+ smalltalk.method({
2857
+ selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
2858
+ fn: function (aString, aString2, aString3){
2859
+ var self=this;
2860
+ return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
2861
+ return self;}
2862
+ }),
2863
+ smalltalk.UndefinedObject);
2864
+
2865
+
2866
+ smalltalk.addMethod(
2867
+ unescape('_new'),
2868
+ smalltalk.method({
2869
+ selector: unescape('new'),
2870
+ fn: function (){
2871
+ var self=this;
2872
+ smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
2873
+ return self;}
2874
+ }),
2875
+ smalltalk.UndefinedObject.klass);
2876
+
2877
+