traceur-rb 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +8 -8
  2. data/lib/traceur/configuration.rb +1 -1
  3. data/lib/traceur/version.rb +1 -1
  4. data/{vendor/node_modules → node_modules}/.bin/traceur +0 -0
  5. data/{vendor/node_modules → node_modules}/traceur/LICENSE +0 -0
  6. data/{vendor/node_modules → node_modules}/traceur/README.md +0 -0
  7. data/node_modules/traceur/bin/traceur-runtime.js +3420 -0
  8. data/node_modules/traceur/bin/traceur.js +30354 -0
  9. data/{vendor/node_modules → node_modules}/traceur/node_modules/.bin/semver +0 -0
  10. data/node_modules/traceur/node_modules/commander/History.md +256 -0
  11. data/node_modules/traceur/node_modules/commander/LICENSE +22 -0
  12. data/node_modules/traceur/node_modules/commander/Readme.md +342 -0
  13. data/node_modules/traceur/node_modules/commander/index.js +1103 -0
  14. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.npmignore +3 -0
  15. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.travis.yml +5 -0
  16. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/LICENSE +22 -0
  17. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/README.md +17 -0
  18. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/index.js +12 -0
  19. data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/package.json +48 -0
  20. data/node_modules/traceur/node_modules/commander/package.json +75 -0
  21. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/LICENSE +0 -0
  22. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/README.md +0 -0
  23. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/common.js +0 -0
  24. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/glob.js +0 -0
  25. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/.eslintrc +0 -0
  26. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/LICENSE +0 -0
  27. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/README.md +0 -0
  28. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/inflight.js +0 -0
  29. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +0 -0
  30. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -0
  31. data/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +52 -0
  32. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -0
  33. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -0
  34. data/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
  35. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/test.js +0 -0
  36. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/LICENSE +0 -0
  37. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/README.md +0 -0
  38. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits.js +0 -0
  39. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -0
  40. data/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +50 -0
  41. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/test.js +0 -0
  42. data/{vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy → node_modules/traceur/node_modules/glob/node_modules/minimatch}/LICENSE +0 -0
  43. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/README.md +0 -0
  44. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1159 -0
  45. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +912 -0
  46. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -0
  47. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +0 -0
  48. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -0
  49. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -0
  50. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -0
  51. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -0
  52. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -0
  53. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -0
  54. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -0
  55. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -0
  56. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -0
  57. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -0
  58. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -0
  59. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -0
  60. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -0
  61. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -0
  62. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -0
  63. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -0
  64. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -0
  65. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -0
  66. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -0
  67. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +0 -0
  68. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +0 -0
  69. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +0 -0
  70. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +0 -0
  71. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +0 -0
  72. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +0 -0
  73. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +0 -0
  74. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +0 -0
  75. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +0 -0
  76. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +0 -0
  77. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +0 -0
  78. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +0 -0
  79. data/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +63 -0
  80. data/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +15 -0
  81. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/README.md +0 -0
  82. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  83. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -0
  84. data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +52 -0
  85. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -0
  86. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -0
  87. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/once.js +0 -0
  88. data/node_modules/traceur/node_modules/glob/node_modules/once/package.json +60 -0
  89. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/test/once.js +0 -0
  90. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/package.json +0 -0
  91. data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/sync.js +0 -0
  92. data/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +255 -0
  93. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/LICENSE +0 -0
  94. data/node_modules/traceur/node_modules/rsvp/README.md +366 -0
  95. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1597 -0
  96. data/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
  97. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +70 -0
  98. data/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +51 -0
  99. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/-internal.js +0 -0
  100. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +73 -0
  101. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/all.js +0 -0
  102. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +112 -0
  103. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/config.js +0 -0
  104. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
  105. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +130 -0
  106. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +205 -0
  107. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/filter.js +0 -0
  108. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +126 -0
  109. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
  110. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
  111. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/map.js +0 -0
  112. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
  113. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/platform.js +14 -0
  114. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +52 -0
  115. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
  116. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +0 -0
  117. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
  118. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
  119. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
  120. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/race.js +0 -0
  121. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
  122. data/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
  123. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +0 -0
  124. data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/utils.js +0 -0
  125. data/node_modules/traceur/node_modules/rsvp/package.json +106 -0
  126. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/.npmignore +0 -0
  127. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/LICENSE +0 -0
  128. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/Makefile +0 -0
  129. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/README.md +0 -0
  130. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/bin/semver +0 -0
  131. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/foot.js +0 -0
  132. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/head.js +0 -0
  133. data/node_modules/traceur/node_modules/semver/package.json +50 -0
  134. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js +0 -0
  135. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js.gz +0 -0
  136. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.js +0 -0
  137. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js +0 -0
  138. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js.gz +0 -0
  139. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/amd.js +0 -0
  140. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/gtr.js +0 -0
  141. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/index.js +0 -0
  142. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/ltr.js +0 -0
  143. data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/no-module.js +0 -0
  144. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/.npmignore +0 -0
  145. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/LICENSE.md +0 -0
  146. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/README.md +0 -0
  147. data/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
  148. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/index.html +0 -0
  149. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/require.js +0 -0
  150. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.coffee +0 -0
  151. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.js +0 -0
  152. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.map +0 -0
  153. data/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
  154. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/index.html +0 -0
  155. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.coffee +0 -0
  156. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.js +0 -0
  157. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.map +0 -0
  158. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/build.js +0 -0
  159. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/index.html +0 -0
  160. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.coffee +0 -0
  161. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.js +0 -0
  162. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.map +0 -0
  163. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/server.js +0 -0
  164. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +0 -0
  165. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.travis.yml +0 -0
  166. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +0 -0
  167. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +0 -0
  168. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +0 -0
  169. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/README.md +0 -0
  170. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +0 -0
  171. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +0 -0
  172. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +0 -0
  173. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +0 -0
  174. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +0 -0
  175. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +0 -0
  176. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +0 -0
  177. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +0 -0
  178. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +0 -0
  179. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +0 -0
  180. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +0 -0
  181. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +0 -0
  182. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +0 -0
  183. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +0 -0
  184. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -0
  185. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +0 -0
  186. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +0 -0
  187. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +0 -0
  188. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
  189. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
  190. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +301 -0
  191. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +0 -0
  192. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +47 -0
  193. data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
  194. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +0 -0
  195. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +0 -0
  196. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +0 -0
  197. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -0
  198. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +0 -0
  199. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +0 -0
  200. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -0
  201. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -0
  202. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -0
  203. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +0 -0
  204. data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +0 -0
  205. data/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
  206. data/node_modules/traceur/node_modules/source-map-support/source-map-support.js +386 -0
  207. data/node_modules/traceur/node_modules/source-map-support/test.js +384 -0
  208. data/node_modules/traceur/package.json +286 -0
  209. data/node_modules/traceur/src/node/NodeCompiler.js +81 -0
  210. data/{vendor/node_modules → node_modules}/traceur/src/node/System.js +0 -0
  211. data/{vendor/node_modules → node_modules}/traceur/src/node/api.js +0 -0
  212. data/node_modules/traceur/src/node/command.js +203 -0
  213. data/{vendor/node_modules → node_modules}/traceur/src/node/compileAllJsFilesInDir.js +0 -0
  214. data/{vendor/node_modules → node_modules}/traceur/src/node/deferred.js +0 -0
  215. data/{vendor/node_modules → node_modules}/traceur/src/node/file-util.js +0 -0
  216. data/{vendor/node_modules → node_modules}/traceur/src/node/getopt.js +0 -0
  217. data/node_modules/traceur/src/node/interpreter.js +37 -0
  218. data/{vendor/node_modules → node_modules}/traceur/src/node/nodeLoader.js +0 -0
  219. data/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
  220. data/{vendor/node_modules → node_modules}/traceur/src/node/require.js +0 -0
  221. data/{vendor/node_modules → node_modules}/traceur/src/node/to-amd-compiler.js +0 -0
  222. data/{vendor/node_modules → node_modules}/traceur/src/node/to-closure-compiler.js +0 -0
  223. data/{vendor/node_modules → node_modules}/traceur/src/node/to-commonjs-compiler.js +0 -0
  224. data/{vendor/node_modules → node_modules}/traceur/src/node/traceur.js +0 -0
  225. data/{vendor/node_modules → node_modules}/traceur/traceur +0 -0
  226. data/package.json +15 -0
  227. data/spec/traceur/configuration_spec.rb +3 -3
  228. metadata +225 -161
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2Y5YmM4Y2FlODFkZGVhMzA4MDQ0NmU3NzY3YzU5ZGMwMTI2NGVmYg==
4
+ OWQ5NGE0M2ZjOWZlMGM1NjUzZTc0OGNjOTBiYzMwY2I3NmE0NmFhYw==
5
5
  data.tar.gz: !binary |-
6
- MzY4YzY3ZDMxZmY4MGEwMzNmNmRhYzcyYmE4NTY0Y2I5MzJjODNkMw==
6
+ OWI3NDU4ODU0MzFlMDQ3YTgzZmQ5OWE3NDA5ZTA1ZTBhNmMyOTJhYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjA3NmNmYzQ5OTgwYjAxZDU0ODBjNmMzMjk4ZDc5OWJhOGQxYjc2ZjY2NzM1
10
- Zjc1MjUwYjgwOGY1ZWUyZjU1MjMzMTQ5YjQyMzhkODNkZjRkMzdiN2U5ZmFk
11
- Zjc3NWU5NzdkNGNlZjhhOTMwYzYxMDY4MGFjNjljZjg1MGEyYzc=
9
+ ODhmMjgyNmI0YzM5NzBkMTM5Y2VkZWIwYjk2NWIzNjc2YmQ4YTJjM2Q2ODU3
10
+ NTAyMDZmNWNjZTU4YWIwOTFmZTcyZjM4NmFkZDc5ZGI4OWYzZTg3Y2FmYmZj
11
+ Y2IwZjBhMGFkMjVmMWMzNTUzNzRlYzVlZjYwMGIyMzJjN2RhOTg=
12
12
  data.tar.gz: !binary |-
13
- ODgzNTQxYTc3M2QxZDBiZGZjOWQ2MDJiNTE2YWY4Zjc3NzcwYTU0MWQ4OWM4
14
- NDBhOTU3Yzg1MjlhYzE1OGQ5NmU1MDUxOGUxYzU1OWVhZjc0MjUxNzU5NDVk
15
- NzMxNDliMmQyZGRiODI2MjFhZTk5YzJiOTQyNjA5YzJmNDAwMmQ=
13
+ NDczNTViOTM4MDE2YWI3OWZhN2NiNDg1YmE5NDFmYzk3Yzc0NmUzZGUxMGM2
14
+ ZjU3MzBlYzA4YmViZGRmYjQ1YmFmMzIzOTEzMDlmYjhhODdmMTNlZDFhZmY4
15
+ MTc2NDRjMjU4MjJiYTIxZmEzNGU5ZWFkOWZhZmU3MzUwMTcwYWE=
@@ -12,7 +12,7 @@ module Traceur
12
12
  end
13
13
 
14
14
  def node_modules_path
15
- @node_modules_path ||= root_dir.join("vendor", "node_modules")
15
+ @node_modules_path ||= root_dir.join("node_modules")
16
16
  end
17
17
 
18
18
  def traceur_runtime_path
@@ -1,3 +1,3 @@
1
1
  module Traceur
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,3420 @@
1
+ (function(global) {
2
+ 'use strict';
3
+ if (global.$traceurRuntime) {
4
+ return ;
5
+ }
6
+ var $Object = Object;
7
+ var $TypeError = TypeError;
8
+ var $create = $Object.create;
9
+ var $defineProperties = $Object.defineProperties;
10
+ var $defineProperty = $Object.defineProperty;
11
+ var $freeze = $Object.freeze;
12
+ var $getOwnPropertyDescriptor = $Object.getOwnPropertyDescriptor;
13
+ var $getOwnPropertyNames = $Object.getOwnPropertyNames;
14
+ var $keys = $Object.keys;
15
+ var $hasOwnProperty = $Object.prototype.hasOwnProperty;
16
+ var $toString = $Object.prototype.toString;
17
+ var $preventExtensions = Object.preventExtensions;
18
+ var $seal = Object.seal;
19
+ var $isExtensible = Object.isExtensible;
20
+ var $apply = Function.prototype.call.bind(Function.prototype.apply);
21
+ function $bind(operand, thisArg, args) {
22
+ var argArray = [thisArg];
23
+ for (var i = 0; i < args.length; i++) {
24
+ argArray[i + 1] = args[i];
25
+ }
26
+ var func = $apply(Function.prototype.bind, operand, argArray);
27
+ return func;
28
+ }
29
+ function $construct(func, argArray) {
30
+ var object = new ($bind(func, null, argArray));
31
+ return object;
32
+ }
33
+ var counter = 0;
34
+ function newUniqueString() {
35
+ return '__$' + Math.floor(Math.random() * 1e9) + '$' + ++counter + '$__';
36
+ }
37
+ var privateNames = $create(null);
38
+ function isPrivateName(s) {
39
+ return privateNames[s];
40
+ }
41
+ function createPrivateName() {
42
+ var s = newUniqueString();
43
+ privateNames[s] = true;
44
+ return s;
45
+ }
46
+ var CONTINUATION_TYPE = Object.create(null);
47
+ function createContinuation(operand, thisArg, argsArray) {
48
+ return [CONTINUATION_TYPE, operand, thisArg, argsArray];
49
+ }
50
+ function isContinuation(object) {
51
+ return object && object[0] === CONTINUATION_TYPE;
52
+ }
53
+ var isTailRecursiveName = null;
54
+ function setupProperTailCalls() {
55
+ isTailRecursiveName = createPrivateName();
56
+ Function.prototype.call = initTailRecursiveFunction(function call(thisArg) {
57
+ var result = tailCall(function(thisArg) {
58
+ var argArray = [];
59
+ for (var i = 1; i < arguments.length; ++i) {
60
+ argArray[i - 1] = arguments[i];
61
+ }
62
+ var continuation = createContinuation(this, thisArg, argArray);
63
+ return continuation;
64
+ }, this, arguments);
65
+ return result;
66
+ });
67
+ Function.prototype.apply = initTailRecursiveFunction(function apply(thisArg, argArray) {
68
+ var result = tailCall(function(thisArg, argArray) {
69
+ var continuation = createContinuation(this, thisArg, argArray);
70
+ return continuation;
71
+ }, this, arguments);
72
+ return result;
73
+ });
74
+ }
75
+ function initTailRecursiveFunction(func) {
76
+ if (isTailRecursiveName === null) {
77
+ setupProperTailCalls();
78
+ }
79
+ func[isTailRecursiveName] = true;
80
+ return func;
81
+ }
82
+ function isTailRecursive(func) {
83
+ return !!func[isTailRecursiveName];
84
+ }
85
+ function tailCall(func, thisArg, argArray) {
86
+ var continuation = argArray[0];
87
+ if (isContinuation(continuation)) {
88
+ continuation = $apply(func, thisArg, continuation[3]);
89
+ return continuation;
90
+ }
91
+ continuation = createContinuation(func, thisArg, argArray);
92
+ while (true) {
93
+ if (isTailRecursive(func)) {
94
+ continuation = $apply(func, continuation[2], [continuation]);
95
+ } else {
96
+ continuation = $apply(func, continuation[2], continuation[3]);
97
+ }
98
+ if (!isContinuation(continuation)) {
99
+ return continuation;
100
+ }
101
+ func = continuation[1];
102
+ }
103
+ }
104
+ function construct() {
105
+ var object;
106
+ if (isTailRecursive(this)) {
107
+ object = $construct(this, [createContinuation(null, null, arguments)]);
108
+ } else {
109
+ object = $construct(this, arguments);
110
+ }
111
+ return object;
112
+ }
113
+ var $traceurRuntime = {
114
+ initTailRecursiveFunction: initTailRecursiveFunction,
115
+ call: tailCall,
116
+ continuation: createContinuation,
117
+ construct: construct
118
+ };
119
+ (function() {
120
+ function nonEnum(value) {
121
+ return {
122
+ configurable: true,
123
+ enumerable: false,
124
+ value: value,
125
+ writable: true
126
+ };
127
+ }
128
+ var method = nonEnum;
129
+ var symbolInternalProperty = newUniqueString();
130
+ var symbolDescriptionProperty = newUniqueString();
131
+ var symbolDataProperty = newUniqueString();
132
+ var symbolValues = $create(null);
133
+ function isShimSymbol(symbol) {
134
+ return typeof symbol === 'object' && symbol instanceof SymbolValue;
135
+ }
136
+ function typeOf(v) {
137
+ if (isShimSymbol(v))
138
+ return 'symbol';
139
+ return typeof v;
140
+ }
141
+ function Symbol(description) {
142
+ var value = new SymbolValue(description);
143
+ if (!(this instanceof Symbol))
144
+ return value;
145
+ throw new TypeError('Symbol cannot be new\'ed');
146
+ }
147
+ $defineProperty(Symbol.prototype, 'constructor', nonEnum(Symbol));
148
+ $defineProperty(Symbol.prototype, 'toString', method(function() {
149
+ var symbolValue = this[symbolDataProperty];
150
+ return symbolValue[symbolInternalProperty];
151
+ }));
152
+ $defineProperty(Symbol.prototype, 'valueOf', method(function() {
153
+ var symbolValue = this[symbolDataProperty];
154
+ if (!symbolValue)
155
+ throw TypeError('Conversion from symbol to string');
156
+ if (!getOption('symbols'))
157
+ return symbolValue[symbolInternalProperty];
158
+ return symbolValue;
159
+ }));
160
+ function SymbolValue(description) {
161
+ var key = newUniqueString();
162
+ $defineProperty(this, symbolDataProperty, {value: this});
163
+ $defineProperty(this, symbolInternalProperty, {value: key});
164
+ $defineProperty(this, symbolDescriptionProperty, {value: description});
165
+ freeze(this);
166
+ symbolValues[key] = this;
167
+ }
168
+ $defineProperty(SymbolValue.prototype, 'constructor', nonEnum(Symbol));
169
+ $defineProperty(SymbolValue.prototype, 'toString', {
170
+ value: Symbol.prototype.toString,
171
+ enumerable: false
172
+ });
173
+ $defineProperty(SymbolValue.prototype, 'valueOf', {
174
+ value: Symbol.prototype.valueOf,
175
+ enumerable: false
176
+ });
177
+ var hashProperty = createPrivateName();
178
+ var hashPropertyDescriptor = {value: undefined};
179
+ var hashObjectProperties = {
180
+ hash: {value: undefined},
181
+ self: {value: undefined}
182
+ };
183
+ var hashCounter = 0;
184
+ function getOwnHashObject(object) {
185
+ var hashObject = object[hashProperty];
186
+ if (hashObject && hashObject.self === object)
187
+ return hashObject;
188
+ if ($isExtensible(object)) {
189
+ hashObjectProperties.hash.value = hashCounter++;
190
+ hashObjectProperties.self.value = object;
191
+ hashPropertyDescriptor.value = $create(null, hashObjectProperties);
192
+ $defineProperty(object, hashProperty, hashPropertyDescriptor);
193
+ return hashPropertyDescriptor.value;
194
+ }
195
+ return undefined;
196
+ }
197
+ function freeze(object) {
198
+ getOwnHashObject(object);
199
+ return $freeze.apply(this, arguments);
200
+ }
201
+ function preventExtensions(object) {
202
+ getOwnHashObject(object);
203
+ return $preventExtensions.apply(this, arguments);
204
+ }
205
+ function seal(object) {
206
+ getOwnHashObject(object);
207
+ return $seal.apply(this, arguments);
208
+ }
209
+ freeze(SymbolValue.prototype);
210
+ function isSymbolString(s) {
211
+ return symbolValues[s] || privateNames[s];
212
+ }
213
+ function toProperty(name) {
214
+ if (isShimSymbol(name))
215
+ return name[symbolInternalProperty];
216
+ return name;
217
+ }
218
+ function removeSymbolKeys(array) {
219
+ var rv = [];
220
+ for (var i = 0; i < array.length; i++) {
221
+ if (!isSymbolString(array[i])) {
222
+ rv.push(array[i]);
223
+ }
224
+ }
225
+ return rv;
226
+ }
227
+ function getOwnPropertyNames(object) {
228
+ return removeSymbolKeys($getOwnPropertyNames(object));
229
+ }
230
+ function keys(object) {
231
+ return removeSymbolKeys($keys(object));
232
+ }
233
+ function getOwnPropertySymbols(object) {
234
+ var rv = [];
235
+ var names = $getOwnPropertyNames(object);
236
+ for (var i = 0; i < names.length; i++) {
237
+ var symbol = symbolValues[names[i]];
238
+ if (symbol) {
239
+ rv.push(symbol);
240
+ }
241
+ }
242
+ return rv;
243
+ }
244
+ function getOwnPropertyDescriptor(object, name) {
245
+ return $getOwnPropertyDescriptor(object, toProperty(name));
246
+ }
247
+ function hasOwnProperty(name) {
248
+ return $hasOwnProperty.call(this, toProperty(name));
249
+ }
250
+ function getOption(name) {
251
+ return global.$traceurRuntime.options[name];
252
+ }
253
+ function defineProperty(object, name, descriptor) {
254
+ if (isShimSymbol(name)) {
255
+ name = name[symbolInternalProperty];
256
+ }
257
+ $defineProperty(object, name, descriptor);
258
+ return object;
259
+ }
260
+ function polyfillObject(Object) {
261
+ $defineProperty(Object, 'defineProperty', {value: defineProperty});
262
+ $defineProperty(Object, 'getOwnPropertyNames', {value: getOwnPropertyNames});
263
+ $defineProperty(Object, 'getOwnPropertyDescriptor', {value: getOwnPropertyDescriptor});
264
+ $defineProperty(Object.prototype, 'hasOwnProperty', {value: hasOwnProperty});
265
+ $defineProperty(Object, 'freeze', {value: freeze});
266
+ $defineProperty(Object, 'preventExtensions', {value: preventExtensions});
267
+ $defineProperty(Object, 'seal', {value: seal});
268
+ $defineProperty(Object, 'keys', {value: keys});
269
+ }
270
+ function exportStar(object) {
271
+ for (var i = 1; i < arguments.length; i++) {
272
+ var names = $getOwnPropertyNames(arguments[i]);
273
+ for (var j = 0; j < names.length; j++) {
274
+ var name = names[j];
275
+ if (isSymbolString(name))
276
+ continue;
277
+ (function(mod, name) {
278
+ $defineProperty(object, name, {
279
+ get: function() {
280
+ return mod[name];
281
+ },
282
+ enumerable: true
283
+ });
284
+ })(arguments[i], names[j]);
285
+ }
286
+ }
287
+ return object;
288
+ }
289
+ function isObject(x) {
290
+ return x != null && (typeof x === 'object' || typeof x === 'function');
291
+ }
292
+ function toObject(x) {
293
+ if (x == null)
294
+ throw $TypeError();
295
+ return $Object(x);
296
+ }
297
+ function checkObjectCoercible(argument) {
298
+ if (argument == null) {
299
+ throw new TypeError('Value cannot be converted to an Object');
300
+ }
301
+ return argument;
302
+ }
303
+ function polyfillSymbol(global, Symbol) {
304
+ if (!global.Symbol) {
305
+ global.Symbol = Symbol;
306
+ Object.getOwnPropertySymbols = getOwnPropertySymbols;
307
+ }
308
+ if (!global.Symbol.iterator) {
309
+ global.Symbol.iterator = Symbol('Symbol.iterator');
310
+ }
311
+ if (!global.Symbol.observer) {
312
+ global.Symbol.observer = Symbol('Symbol.observer');
313
+ }
314
+ }
315
+ function setupGlobals(global) {
316
+ polyfillSymbol(global, Symbol);
317
+ global.Reflect = global.Reflect || {};
318
+ global.Reflect.global = global.Reflect.global || global;
319
+ polyfillObject(global.Object);
320
+ }
321
+ setupGlobals(global);
322
+ global.$traceurRuntime = {
323
+ call: tailCall,
324
+ checkObjectCoercible: checkObjectCoercible,
325
+ construct: construct,
326
+ continuation: createContinuation,
327
+ createPrivateName: createPrivateName,
328
+ defineProperties: $defineProperties,
329
+ defineProperty: $defineProperty,
330
+ exportStar: exportStar,
331
+ getOwnHashObject: getOwnHashObject,
332
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
333
+ getOwnPropertyNames: $getOwnPropertyNames,
334
+ initTailRecursiveFunction: initTailRecursiveFunction,
335
+ isObject: isObject,
336
+ isPrivateName: isPrivateName,
337
+ isSymbolString: isSymbolString,
338
+ keys: $keys,
339
+ options: {},
340
+ setupGlobals: setupGlobals,
341
+ toObject: toObject,
342
+ toProperty: toProperty,
343
+ typeof: typeOf
344
+ };
345
+ })();
346
+ })(typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this);
347
+ (function() {
348
+ function buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {
349
+ var out = [];
350
+ if (opt_scheme) {
351
+ out.push(opt_scheme, ':');
352
+ }
353
+ if (opt_domain) {
354
+ out.push('//');
355
+ if (opt_userInfo) {
356
+ out.push(opt_userInfo, '@');
357
+ }
358
+ out.push(opt_domain);
359
+ if (opt_port) {
360
+ out.push(':', opt_port);
361
+ }
362
+ }
363
+ if (opt_path) {
364
+ out.push(opt_path);
365
+ }
366
+ if (opt_queryData) {
367
+ out.push('?', opt_queryData);
368
+ }
369
+ if (opt_fragment) {
370
+ out.push('#', opt_fragment);
371
+ }
372
+ return out.join('');
373
+ }
374
+ ;
375
+ var splitRe = new RegExp('^' + '(?:' + '([^:/?#.]+)' + ':)?' + '(?://' + '(?:([^/?#]*)@)?' + '([\\w\\d\\-\\u0100-\\uffff.%]*)' + '(?::([0-9]+))?' + ')?' + '([^?#]+)?' + '(?:\\?([^#]*))?' + '(?:#(.*))?' + '$');
376
+ var ComponentIndex = {
377
+ SCHEME: 1,
378
+ USER_INFO: 2,
379
+ DOMAIN: 3,
380
+ PORT: 4,
381
+ PATH: 5,
382
+ QUERY_DATA: 6,
383
+ FRAGMENT: 7
384
+ };
385
+ function split(uri) {
386
+ return (uri.match(splitRe));
387
+ }
388
+ function removeDotSegments(path) {
389
+ if (path === '/')
390
+ return '/';
391
+ var leadingSlash = path[0] === '/' ? '/' : '';
392
+ var trailingSlash = path.slice(-1) === '/' ? '/' : '';
393
+ var segments = path.split('/');
394
+ var out = [];
395
+ var up = 0;
396
+ for (var pos = 0; pos < segments.length; pos++) {
397
+ var segment = segments[pos];
398
+ switch (segment) {
399
+ case '':
400
+ case '.':
401
+ break;
402
+ case '..':
403
+ if (out.length)
404
+ out.pop();
405
+ else
406
+ up++;
407
+ break;
408
+ default:
409
+ out.push(segment);
410
+ }
411
+ }
412
+ if (!leadingSlash) {
413
+ while (up-- > 0) {
414
+ out.unshift('..');
415
+ }
416
+ if (out.length === 0)
417
+ out.push('.');
418
+ }
419
+ return leadingSlash + out.join('/') + trailingSlash;
420
+ }
421
+ function joinAndCanonicalizePath(parts) {
422
+ var path = parts[ComponentIndex.PATH] || '';
423
+ path = removeDotSegments(path);
424
+ parts[ComponentIndex.PATH] = path;
425
+ return buildFromEncodedParts(parts[ComponentIndex.SCHEME], parts[ComponentIndex.USER_INFO], parts[ComponentIndex.DOMAIN], parts[ComponentIndex.PORT], parts[ComponentIndex.PATH], parts[ComponentIndex.QUERY_DATA], parts[ComponentIndex.FRAGMENT]);
426
+ }
427
+ function canonicalizeUrl(url) {
428
+ var parts = split(url);
429
+ return joinAndCanonicalizePath(parts);
430
+ }
431
+ function resolveUrl(base, url) {
432
+ var parts = split(url);
433
+ var baseParts = split(base);
434
+ if (parts[ComponentIndex.SCHEME]) {
435
+ return joinAndCanonicalizePath(parts);
436
+ } else {
437
+ parts[ComponentIndex.SCHEME] = baseParts[ComponentIndex.SCHEME];
438
+ }
439
+ for (var i = ComponentIndex.SCHEME; i <= ComponentIndex.PORT; i++) {
440
+ if (!parts[i]) {
441
+ parts[i] = baseParts[i];
442
+ }
443
+ }
444
+ if (parts[ComponentIndex.PATH][0] == '/') {
445
+ return joinAndCanonicalizePath(parts);
446
+ }
447
+ var path = baseParts[ComponentIndex.PATH];
448
+ var index = path.lastIndexOf('/');
449
+ path = path.slice(0, index + 1) + parts[ComponentIndex.PATH];
450
+ parts[ComponentIndex.PATH] = path;
451
+ return joinAndCanonicalizePath(parts);
452
+ }
453
+ function isAbsolute(name) {
454
+ if (!name)
455
+ return false;
456
+ if (name[0] === '/')
457
+ return true;
458
+ var parts = split(name);
459
+ if (parts[ComponentIndex.SCHEME])
460
+ return true;
461
+ return false;
462
+ }
463
+ $traceurRuntime.canonicalizeUrl = canonicalizeUrl;
464
+ $traceurRuntime.isAbsolute = isAbsolute;
465
+ $traceurRuntime.removeDotSegments = removeDotSegments;
466
+ $traceurRuntime.resolveUrl = resolveUrl;
467
+ })();
468
+ (function(global) {
469
+ 'use strict';
470
+ var $__1 = $traceurRuntime,
471
+ canonicalizeUrl = $__1.canonicalizeUrl,
472
+ resolveUrl = $__1.resolveUrl,
473
+ isAbsolute = $__1.isAbsolute;
474
+ var moduleInstantiators = Object.create(null);
475
+ var baseURL;
476
+ if (global.location && global.location.href)
477
+ baseURL = resolveUrl(global.location.href, './');
478
+ else
479
+ baseURL = '';
480
+ function UncoatedModuleEntry(url, uncoatedModule) {
481
+ this.url = url;
482
+ this.value_ = uncoatedModule;
483
+ }
484
+ function ModuleEvaluationError(erroneousModuleName, cause) {
485
+ this.message = this.constructor.name + ': ' + this.stripCause(cause) + ' in ' + erroneousModuleName;
486
+ if (!(cause instanceof ModuleEvaluationError) && cause.stack)
487
+ this.stack = this.stripStack(cause.stack);
488
+ else
489
+ this.stack = '';
490
+ }
491
+ ModuleEvaluationError.prototype = Object.create(Error.prototype);
492
+ ModuleEvaluationError.prototype.constructor = ModuleEvaluationError;
493
+ ModuleEvaluationError.prototype.stripError = function(message) {
494
+ return message.replace(/.*Error:/, this.constructor.name + ':');
495
+ };
496
+ ModuleEvaluationError.prototype.stripCause = function(cause) {
497
+ if (!cause)
498
+ return '';
499
+ if (!cause.message)
500
+ return cause + '';
501
+ return this.stripError(cause.message);
502
+ };
503
+ ModuleEvaluationError.prototype.loadedBy = function(moduleName) {
504
+ this.stack += '\n loaded by ' + moduleName;
505
+ };
506
+ ModuleEvaluationError.prototype.stripStack = function(causeStack) {
507
+ var stack = [];
508
+ causeStack.split('\n').some((function(frame) {
509
+ if (/UncoatedModuleInstantiator/.test(frame))
510
+ return true;
511
+ stack.push(frame);
512
+ }));
513
+ stack[0] = this.stripError(stack[0]);
514
+ return stack.join('\n');
515
+ };
516
+ function beforeLines(lines, number) {
517
+ var result = [];
518
+ var first = number - 3;
519
+ if (first < 0)
520
+ first = 0;
521
+ for (var i = first; i < number; i++) {
522
+ result.push(lines[i]);
523
+ }
524
+ return result;
525
+ }
526
+ function afterLines(lines, number) {
527
+ var last = number + 1;
528
+ if (last > lines.length - 1)
529
+ last = lines.length - 1;
530
+ var result = [];
531
+ for (var i = number; i <= last; i++) {
532
+ result.push(lines[i]);
533
+ }
534
+ return result;
535
+ }
536
+ function columnSpacing(columns) {
537
+ var result = '';
538
+ for (var i = 0; i < columns - 1; i++) {
539
+ result += '-';
540
+ }
541
+ return result;
542
+ }
543
+ function UncoatedModuleInstantiator(url, func) {
544
+ UncoatedModuleEntry.call(this, url, null);
545
+ this.func = func;
546
+ }
547
+ UncoatedModuleInstantiator.prototype = Object.create(UncoatedModuleEntry.prototype);
548
+ UncoatedModuleInstantiator.prototype.getUncoatedModule = function() {
549
+ if (this.value_)
550
+ return this.value_;
551
+ try {
552
+ var relativeRequire;
553
+ if (typeof $traceurRuntime !== undefined && $traceurRuntime.require) {
554
+ relativeRequire = $traceurRuntime.require.bind(null, this.url);
555
+ }
556
+ return this.value_ = this.func.call(global, relativeRequire);
557
+ } catch (ex) {
558
+ if (ex instanceof ModuleEvaluationError) {
559
+ ex.loadedBy(this.url);
560
+ throw ex;
561
+ }
562
+ if (ex.stack) {
563
+ var lines = this.func.toString().split('\n');
564
+ var evaled = [];
565
+ ex.stack.split('\n').some(function(frame) {
566
+ if (frame.indexOf('UncoatedModuleInstantiator.getUncoatedModule') > 0)
567
+ return true;
568
+ var m = /(at\s[^\s]*\s).*>:(\d*):(\d*)\)/.exec(frame);
569
+ if (m) {
570
+ var line = parseInt(m[2], 10);
571
+ evaled = evaled.concat(beforeLines(lines, line));
572
+ evaled.push(columnSpacing(m[3]) + '^');
573
+ evaled = evaled.concat(afterLines(lines, line));
574
+ evaled.push('= = = = = = = = =');
575
+ } else {
576
+ evaled.push(frame);
577
+ }
578
+ });
579
+ ex.stack = evaled.join('\n');
580
+ }
581
+ throw new ModuleEvaluationError(this.url, ex);
582
+ }
583
+ };
584
+ function getUncoatedModuleInstantiator(name) {
585
+ if (!name)
586
+ return ;
587
+ var url = ModuleStore.normalize(name);
588
+ return moduleInstantiators[url];
589
+ }
590
+ ;
591
+ var moduleInstances = Object.create(null);
592
+ var liveModuleSentinel = {};
593
+ function Module(uncoatedModule) {
594
+ var isLive = arguments[1];
595
+ var coatedModule = Object.create(null);
596
+ Object.getOwnPropertyNames(uncoatedModule).forEach((function(name) {
597
+ var getter,
598
+ value;
599
+ if (isLive === liveModuleSentinel) {
600
+ var descr = Object.getOwnPropertyDescriptor(uncoatedModule, name);
601
+ if (descr.get)
602
+ getter = descr.get;
603
+ }
604
+ if (!getter) {
605
+ value = uncoatedModule[name];
606
+ getter = function() {
607
+ return value;
608
+ };
609
+ }
610
+ Object.defineProperty(coatedModule, name, {
611
+ get: getter,
612
+ enumerable: true
613
+ });
614
+ }));
615
+ Object.preventExtensions(coatedModule);
616
+ return coatedModule;
617
+ }
618
+ var ModuleStore = {
619
+ normalize: function(name, refererName, refererAddress) {
620
+ if (typeof name !== 'string')
621
+ throw new TypeError('module name must be a string, not ' + typeof name);
622
+ if (isAbsolute(name))
623
+ return canonicalizeUrl(name);
624
+ if (/[^\.]\/\.\.\//.test(name)) {
625
+ throw new Error('module name embeds /../: ' + name);
626
+ }
627
+ if (name[0] === '.' && refererName)
628
+ return resolveUrl(refererName, name);
629
+ return canonicalizeUrl(name);
630
+ },
631
+ get: function(normalizedName) {
632
+ var m = getUncoatedModuleInstantiator(normalizedName);
633
+ if (!m)
634
+ return undefined;
635
+ var moduleInstance = moduleInstances[m.url];
636
+ if (moduleInstance)
637
+ return moduleInstance;
638
+ moduleInstance = Module(m.getUncoatedModule(), liveModuleSentinel);
639
+ return moduleInstances[m.url] = moduleInstance;
640
+ },
641
+ set: function(normalizedName, module) {
642
+ normalizedName = String(normalizedName);
643
+ moduleInstantiators[normalizedName] = new UncoatedModuleInstantiator(normalizedName, (function() {
644
+ return module;
645
+ }));
646
+ moduleInstances[normalizedName] = module;
647
+ },
648
+ get baseURL() {
649
+ return baseURL;
650
+ },
651
+ set baseURL(v) {
652
+ baseURL = String(v);
653
+ },
654
+ registerModule: function(name, deps, func) {
655
+ var normalizedName = ModuleStore.normalize(name);
656
+ if (moduleInstantiators[normalizedName])
657
+ throw new Error('duplicate module named ' + normalizedName);
658
+ moduleInstantiators[normalizedName] = new UncoatedModuleInstantiator(normalizedName, func);
659
+ },
660
+ bundleStore: Object.create(null),
661
+ register: function(name, deps, func) {
662
+ if (!deps || !deps.length && !func.length) {
663
+ this.registerModule(name, deps, func);
664
+ } else {
665
+ this.bundleStore[name] = {
666
+ deps: deps,
667
+ execute: function() {
668
+ var $__0 = arguments;
669
+ var depMap = {};
670
+ deps.forEach((function(dep, index) {
671
+ return depMap[dep] = $__0[index];
672
+ }));
673
+ var registryEntry = func.call(this, depMap);
674
+ registryEntry.execute.call(this);
675
+ return registryEntry.exports;
676
+ }
677
+ };
678
+ }
679
+ },
680
+ getAnonymousModule: function(func) {
681
+ return new Module(func.call(global), liveModuleSentinel);
682
+ },
683
+ getForTesting: function(name) {
684
+ var $__0 = this;
685
+ if (!this.testingPrefix_) {
686
+ Object.keys(moduleInstances).some((function(key) {
687
+ var m = /(traceur@[^\/]*\/)/.exec(key);
688
+ if (m) {
689
+ $__0.testingPrefix_ = m[1];
690
+ return true;
691
+ }
692
+ }));
693
+ }
694
+ return this.get(this.testingPrefix_ + name);
695
+ }
696
+ };
697
+ var moduleStoreModule = new Module({ModuleStore: ModuleStore});
698
+ ModuleStore.set('@traceur/src/runtime/ModuleStore', moduleStoreModule);
699
+ ModuleStore.set('@traceur/src/runtime/ModuleStore.js', moduleStoreModule);
700
+ var setupGlobals = $traceurRuntime.setupGlobals;
701
+ $traceurRuntime.setupGlobals = function(global) {
702
+ setupGlobals(global);
703
+ };
704
+ $traceurRuntime.ModuleStore = ModuleStore;
705
+ global.System = {
706
+ register: ModuleStore.register.bind(ModuleStore),
707
+ registerModule: ModuleStore.registerModule.bind(ModuleStore),
708
+ get: ModuleStore.get,
709
+ set: ModuleStore.set,
710
+ normalize: ModuleStore.normalize
711
+ };
712
+ $traceurRuntime.getModuleImpl = function(name) {
713
+ var instantiator = getUncoatedModuleInstantiator(name);
714
+ return instantiator && instantiator.getUncoatedModule();
715
+ };
716
+ })(typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : this);
717
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/async.js", [], function() {
718
+ "use strict";
719
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/async.js";
720
+ if (typeof $traceurRuntime !== 'object') {
721
+ throw new Error('traceur runtime not found.');
722
+ }
723
+ var $createPrivateName = $traceurRuntime.createPrivateName;
724
+ var $defineProperty = $traceurRuntime.defineProperty;
725
+ var $defineProperties = $traceurRuntime.defineProperties;
726
+ var $create = Object.create;
727
+ var thisName = $createPrivateName();
728
+ var argsName = $createPrivateName();
729
+ var observeName = $createPrivateName();
730
+ function AsyncGeneratorFunction() {}
731
+ function AsyncGeneratorFunctionPrototype() {}
732
+ AsyncGeneratorFunction.prototype = AsyncGeneratorFunctionPrototype;
733
+ AsyncGeneratorFunctionPrototype.constructor = AsyncGeneratorFunction;
734
+ $defineProperty(AsyncGeneratorFunctionPrototype, 'constructor', {enumerable: false});
735
+ var AsyncGeneratorContext = function AsyncGeneratorContext(observer) {
736
+ var $__0 = this;
737
+ this.decoratedObserver = $traceurRuntime.createDecoratedGenerator(observer, (function() {
738
+ $__0.done = true;
739
+ }));
740
+ this.done = false;
741
+ this.inReturn = false;
742
+ };
743
+ ($traceurRuntime.createClass)(AsyncGeneratorContext, {
744
+ throw: function(error) {
745
+ if (!this.inReturn) {
746
+ throw error;
747
+ }
748
+ },
749
+ yield: function(value) {
750
+ if (this.done) {
751
+ this.inReturn = true;
752
+ throw undefined;
753
+ }
754
+ var result;
755
+ try {
756
+ result = this.decoratedObserver.next(value);
757
+ } catch (e) {
758
+ this.done = true;
759
+ throw e;
760
+ }
761
+ if (result === undefined) {
762
+ return ;
763
+ }
764
+ if (result.done) {
765
+ this.done = true;
766
+ this.inReturn = true;
767
+ throw undefined;
768
+ }
769
+ return result.value;
770
+ },
771
+ yieldFor: function(observable) {
772
+ var ctx = this;
773
+ return $traceurRuntime.observeForEach(observable[$traceurRuntime.toProperty(Symbol.observer)].bind(observable), function(value) {
774
+ if (ctx.done) {
775
+ this.return();
776
+ return ;
777
+ }
778
+ var result;
779
+ try {
780
+ result = ctx.decoratedObserver.next(value);
781
+ } catch (e) {
782
+ ctx.done = true;
783
+ throw e;
784
+ }
785
+ if (result === undefined) {
786
+ return ;
787
+ }
788
+ if (result.done) {
789
+ ctx.done = true;
790
+ }
791
+ return result;
792
+ });
793
+ }
794
+ }, {});
795
+ AsyncGeneratorFunctionPrototype.prototype[Symbol.observer] = function(observer) {
796
+ var observe = this[observeName];
797
+ var ctx = new AsyncGeneratorContext(observer);
798
+ $traceurRuntime.schedule((function() {
799
+ return observe(ctx);
800
+ })).then((function(value) {
801
+ if (!ctx.done) {
802
+ ctx.decoratedObserver.return(value);
803
+ }
804
+ })).catch((function(error) {
805
+ if (!ctx.done) {
806
+ ctx.decoratedObserver.throw(error);
807
+ }
808
+ }));
809
+ return ctx.decoratedObserver;
810
+ };
811
+ $defineProperty(AsyncGeneratorFunctionPrototype.prototype, Symbol.observer, {enumerable: false});
812
+ function initAsyncGeneratorFunction(functionObject) {
813
+ functionObject.prototype = $create(AsyncGeneratorFunctionPrototype.prototype);
814
+ functionObject.__proto__ = AsyncGeneratorFunctionPrototype;
815
+ return functionObject;
816
+ }
817
+ function createAsyncGeneratorInstance(observe, functionObject) {
818
+ for (var args = [],
819
+ $__2 = 2; $__2 < arguments.length; $__2++)
820
+ args[$__2 - 2] = arguments[$__2];
821
+ var object = $create(functionObject.prototype);
822
+ object[thisName] = this;
823
+ object[argsName] = args;
824
+ object[observeName] = observe;
825
+ return object;
826
+ }
827
+ function observeForEach(observe, next) {
828
+ return new Promise((function(resolve, reject) {
829
+ var generator = observe({
830
+ next: function(value) {
831
+ return next.call(generator, value);
832
+ },
833
+ throw: function(error) {
834
+ reject(error);
835
+ },
836
+ return: function(value) {
837
+ resolve(value);
838
+ }
839
+ });
840
+ }));
841
+ }
842
+ function schedule(asyncF) {
843
+ return Promise.resolve().then(asyncF);
844
+ }
845
+ var generator = Symbol();
846
+ var onDone = Symbol();
847
+ var DecoratedGenerator = function DecoratedGenerator(_generator, _onDone) {
848
+ this[generator] = _generator;
849
+ this[onDone] = _onDone;
850
+ };
851
+ ($traceurRuntime.createClass)(DecoratedGenerator, {
852
+ next: function(value) {
853
+ var result = this[generator].next(value);
854
+ if (result !== undefined && result.done) {
855
+ this[onDone].call(this);
856
+ }
857
+ return result;
858
+ },
859
+ throw: function(error) {
860
+ this[onDone].call(this);
861
+ return this[generator].throw(error);
862
+ },
863
+ return: function(value) {
864
+ this[onDone].call(this);
865
+ return this[generator].return(value);
866
+ }
867
+ }, {});
868
+ function createDecoratedGenerator(generator, onDone) {
869
+ return new DecoratedGenerator(generator, onDone);
870
+ }
871
+ $traceurRuntime.initAsyncGeneratorFunction = initAsyncGeneratorFunction;
872
+ $traceurRuntime.createAsyncGeneratorInstance = createAsyncGeneratorInstance;
873
+ $traceurRuntime.observeForEach = observeForEach;
874
+ $traceurRuntime.schedule = schedule;
875
+ $traceurRuntime.createDecoratedGenerator = createDecoratedGenerator;
876
+ return {};
877
+ });
878
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/classes.js", [], function() {
879
+ "use strict";
880
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/classes.js";
881
+ var $Object = Object;
882
+ var $TypeError = TypeError;
883
+ var $create = $Object.create;
884
+ var $defineProperties = $traceurRuntime.defineProperties;
885
+ var $defineProperty = $traceurRuntime.defineProperty;
886
+ var $getOwnPropertyDescriptor = $traceurRuntime.getOwnPropertyDescriptor;
887
+ var $getOwnPropertyNames = $traceurRuntime.getOwnPropertyNames;
888
+ var $getPrototypeOf = Object.getPrototypeOf;
889
+ var $__0 = Object,
890
+ getOwnPropertyNames = $__0.getOwnPropertyNames,
891
+ getOwnPropertySymbols = $__0.getOwnPropertySymbols;
892
+ function superDescriptor(homeObject, name) {
893
+ var proto = $getPrototypeOf(homeObject);
894
+ do {
895
+ var result = $getOwnPropertyDescriptor(proto, name);
896
+ if (result)
897
+ return result;
898
+ proto = $getPrototypeOf(proto);
899
+ } while (proto);
900
+ return undefined;
901
+ }
902
+ function superConstructor(ctor) {
903
+ return ctor.__proto__;
904
+ }
905
+ function superGet(self, homeObject, name) {
906
+ var descriptor = superDescriptor(homeObject, name);
907
+ if (descriptor) {
908
+ if (!descriptor.get)
909
+ return descriptor.value;
910
+ return descriptor.get.call(self);
911
+ }
912
+ return undefined;
913
+ }
914
+ function superSet(self, homeObject, name, value) {
915
+ var descriptor = superDescriptor(homeObject, name);
916
+ if (descriptor && descriptor.set) {
917
+ descriptor.set.call(self, value);
918
+ return value;
919
+ }
920
+ throw $TypeError(("super has no setter '" + name + "'."));
921
+ }
922
+ function getDescriptors(object) {
923
+ var descriptors = {};
924
+ var names = getOwnPropertyNames(object);
925
+ for (var i = 0; i < names.length; i++) {
926
+ var name = names[i];
927
+ descriptors[name] = $getOwnPropertyDescriptor(object, name);
928
+ }
929
+ var symbols = getOwnPropertySymbols(object);
930
+ for (var i = 0; i < symbols.length; i++) {
931
+ var symbol = symbols[i];
932
+ descriptors[$traceurRuntime.toProperty(symbol)] = $getOwnPropertyDescriptor(object, $traceurRuntime.toProperty(symbol));
933
+ }
934
+ return descriptors;
935
+ }
936
+ function createClass(ctor, object, staticObject, superClass) {
937
+ $defineProperty(object, 'constructor', {
938
+ value: ctor,
939
+ configurable: true,
940
+ enumerable: false,
941
+ writable: true
942
+ });
943
+ if (arguments.length > 3) {
944
+ if (typeof superClass === 'function')
945
+ ctor.__proto__ = superClass;
946
+ ctor.prototype = $create(getProtoParent(superClass), getDescriptors(object));
947
+ } else {
948
+ ctor.prototype = object;
949
+ }
950
+ $defineProperty(ctor, 'prototype', {
951
+ configurable: false,
952
+ writable: false
953
+ });
954
+ return $defineProperties(ctor, getDescriptors(staticObject));
955
+ }
956
+ function getProtoParent(superClass) {
957
+ if (typeof superClass === 'function') {
958
+ var prototype = superClass.prototype;
959
+ if ($Object(prototype) === prototype || prototype === null)
960
+ return superClass.prototype;
961
+ throw new $TypeError('super prototype must be an Object or null');
962
+ }
963
+ if (superClass === null)
964
+ return null;
965
+ throw new $TypeError(("Super expression must either be null or a function, not " + typeof superClass + "."));
966
+ }
967
+ $traceurRuntime.createClass = createClass;
968
+ $traceurRuntime.superConstructor = superConstructor;
969
+ $traceurRuntime.superGet = superGet;
970
+ $traceurRuntime.superSet = superSet;
971
+ return {};
972
+ });
973
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/destructuring.js", [], function() {
974
+ "use strict";
975
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/destructuring.js";
976
+ function iteratorToArray(iter) {
977
+ var rv = [];
978
+ var i = 0;
979
+ var tmp;
980
+ while (!(tmp = iter.next()).done) {
981
+ rv[i++] = tmp.value;
982
+ }
983
+ return rv;
984
+ }
985
+ $traceurRuntime.iteratorToArray = iteratorToArray;
986
+ return {};
987
+ });
988
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/generators.js", [], function() {
989
+ "use strict";
990
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/generators.js";
991
+ if (typeof $traceurRuntime !== 'object') {
992
+ throw new Error('traceur runtime not found.');
993
+ }
994
+ var createPrivateName = $traceurRuntime.createPrivateName;
995
+ var $defineProperties = $traceurRuntime.defineProperties;
996
+ var $defineProperty = $traceurRuntime.defineProperty;
997
+ var $create = Object.create;
998
+ var $TypeError = TypeError;
999
+ function nonEnum(value) {
1000
+ return {
1001
+ configurable: true,
1002
+ enumerable: false,
1003
+ value: value,
1004
+ writable: true
1005
+ };
1006
+ }
1007
+ var ST_NEWBORN = 0;
1008
+ var ST_EXECUTING = 1;
1009
+ var ST_SUSPENDED = 2;
1010
+ var ST_CLOSED = 3;
1011
+ var END_STATE = -2;
1012
+ var RETHROW_STATE = -3;
1013
+ function getInternalError(state) {
1014
+ return new Error('Traceur compiler bug: invalid state in state machine: ' + state);
1015
+ }
1016
+ var RETURN_SENTINEL = {};
1017
+ function GeneratorContext() {
1018
+ this.state = 0;
1019
+ this.GState = ST_NEWBORN;
1020
+ this.storedException = undefined;
1021
+ this.finallyFallThrough = undefined;
1022
+ this.sent_ = undefined;
1023
+ this.returnValue = undefined;
1024
+ this.oldReturnValue = undefined;
1025
+ this.tryStack_ = [];
1026
+ }
1027
+ GeneratorContext.prototype = {
1028
+ pushTry: function(catchState, finallyState) {
1029
+ if (finallyState !== null) {
1030
+ var finallyFallThrough = null;
1031
+ for (var i = this.tryStack_.length - 1; i >= 0; i--) {
1032
+ if (this.tryStack_[i].catch !== undefined) {
1033
+ finallyFallThrough = this.tryStack_[i].catch;
1034
+ break;
1035
+ }
1036
+ }
1037
+ if (finallyFallThrough === null)
1038
+ finallyFallThrough = RETHROW_STATE;
1039
+ this.tryStack_.push({
1040
+ finally: finallyState,
1041
+ finallyFallThrough: finallyFallThrough
1042
+ });
1043
+ }
1044
+ if (catchState !== null) {
1045
+ this.tryStack_.push({catch: catchState});
1046
+ }
1047
+ },
1048
+ popTry: function() {
1049
+ this.tryStack_.pop();
1050
+ },
1051
+ maybeUncatchable: function() {
1052
+ if (this.storedException === RETURN_SENTINEL) {
1053
+ throw RETURN_SENTINEL;
1054
+ }
1055
+ },
1056
+ get sent() {
1057
+ this.maybeThrow();
1058
+ return this.sent_;
1059
+ },
1060
+ set sent(v) {
1061
+ this.sent_ = v;
1062
+ },
1063
+ get sentIgnoreThrow() {
1064
+ return this.sent_;
1065
+ },
1066
+ maybeThrow: function() {
1067
+ if (this.action === 'throw') {
1068
+ this.action = 'next';
1069
+ throw this.sent_;
1070
+ }
1071
+ },
1072
+ end: function() {
1073
+ switch (this.state) {
1074
+ case END_STATE:
1075
+ return this;
1076
+ case RETHROW_STATE:
1077
+ throw this.storedException;
1078
+ default:
1079
+ throw getInternalError(this.state);
1080
+ }
1081
+ },
1082
+ handleException: function(ex) {
1083
+ this.GState = ST_CLOSED;
1084
+ this.state = END_STATE;
1085
+ throw ex;
1086
+ },
1087
+ wrapYieldStar: function(iterator) {
1088
+ var ctx = this;
1089
+ return {
1090
+ next: function(v) {
1091
+ return iterator.next(v);
1092
+ },
1093
+ throw: function(e) {
1094
+ var result;
1095
+ if (e === RETURN_SENTINEL) {
1096
+ if (iterator.return) {
1097
+ result = iterator.return(ctx.returnValue);
1098
+ if (!result.done) {
1099
+ ctx.returnValue = ctx.oldReturnValue;
1100
+ return result;
1101
+ }
1102
+ ctx.returnValue = result.value;
1103
+ }
1104
+ throw e;
1105
+ }
1106
+ if (iterator.throw) {
1107
+ return iterator.throw(e);
1108
+ }
1109
+ iterator.return && iterator.return();
1110
+ throw $TypeError('Inner iterator does not have a throw method');
1111
+ }
1112
+ };
1113
+ }
1114
+ };
1115
+ function nextOrThrow(ctx, moveNext, action, x) {
1116
+ switch (ctx.GState) {
1117
+ case ST_EXECUTING:
1118
+ throw new Error(("\"" + action + "\" on executing generator"));
1119
+ case ST_CLOSED:
1120
+ if (action == 'next') {
1121
+ return {
1122
+ value: undefined,
1123
+ done: true
1124
+ };
1125
+ }
1126
+ if (x === RETURN_SENTINEL) {
1127
+ return {
1128
+ value: ctx.returnValue,
1129
+ done: true
1130
+ };
1131
+ }
1132
+ throw x;
1133
+ case ST_NEWBORN:
1134
+ if (action === 'throw') {
1135
+ ctx.GState = ST_CLOSED;
1136
+ if (x === RETURN_SENTINEL) {
1137
+ return {
1138
+ value: ctx.returnValue,
1139
+ done: true
1140
+ };
1141
+ }
1142
+ throw x;
1143
+ }
1144
+ if (x !== undefined)
1145
+ throw $TypeError('Sent value to newborn generator');
1146
+ case ST_SUSPENDED:
1147
+ ctx.GState = ST_EXECUTING;
1148
+ ctx.action = action;
1149
+ ctx.sent = x;
1150
+ var value;
1151
+ try {
1152
+ value = moveNext(ctx);
1153
+ } catch (ex) {
1154
+ if (ex === RETURN_SENTINEL) {
1155
+ value = ctx;
1156
+ } else {
1157
+ throw ex;
1158
+ }
1159
+ }
1160
+ var done = value === ctx;
1161
+ if (done)
1162
+ value = ctx.returnValue;
1163
+ ctx.GState = done ? ST_CLOSED : ST_SUSPENDED;
1164
+ return {
1165
+ value: value,
1166
+ done: done
1167
+ };
1168
+ }
1169
+ }
1170
+ var ctxName = createPrivateName();
1171
+ var moveNextName = createPrivateName();
1172
+ function GeneratorFunction() {}
1173
+ function GeneratorFunctionPrototype() {}
1174
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
1175
+ $defineProperty(GeneratorFunctionPrototype, 'constructor', nonEnum(GeneratorFunction));
1176
+ GeneratorFunctionPrototype.prototype = {
1177
+ constructor: GeneratorFunctionPrototype,
1178
+ next: function(v) {
1179
+ return nextOrThrow(this[ctxName], this[moveNextName], 'next', v);
1180
+ },
1181
+ throw: function(v) {
1182
+ return nextOrThrow(this[ctxName], this[moveNextName], 'throw', v);
1183
+ },
1184
+ return: function(v) {
1185
+ this[ctxName].oldReturnValue = this[ctxName].returnValue;
1186
+ this[ctxName].returnValue = v;
1187
+ return nextOrThrow(this[ctxName], this[moveNextName], 'throw', RETURN_SENTINEL);
1188
+ }
1189
+ };
1190
+ $defineProperties(GeneratorFunctionPrototype.prototype, {
1191
+ constructor: {enumerable: false},
1192
+ next: {enumerable: false},
1193
+ throw: {enumerable: false},
1194
+ return: {enumerable: false}
1195
+ });
1196
+ Object.defineProperty(GeneratorFunctionPrototype.prototype, Symbol.iterator, nonEnum(function() {
1197
+ return this;
1198
+ }));
1199
+ function createGeneratorInstance(innerFunction, functionObject, self) {
1200
+ var moveNext = getMoveNext(innerFunction, self);
1201
+ var ctx = new GeneratorContext();
1202
+ var object = $create(functionObject.prototype);
1203
+ object[ctxName] = ctx;
1204
+ object[moveNextName] = moveNext;
1205
+ return object;
1206
+ }
1207
+ function initGeneratorFunction(functionObject) {
1208
+ functionObject.prototype = $create(GeneratorFunctionPrototype.prototype);
1209
+ functionObject.__proto__ = GeneratorFunctionPrototype;
1210
+ return functionObject;
1211
+ }
1212
+ function AsyncFunctionContext() {
1213
+ GeneratorContext.call(this);
1214
+ this.err = undefined;
1215
+ var ctx = this;
1216
+ ctx.result = new Promise(function(resolve, reject) {
1217
+ ctx.resolve = resolve;
1218
+ ctx.reject = reject;
1219
+ });
1220
+ }
1221
+ AsyncFunctionContext.prototype = $create(GeneratorContext.prototype);
1222
+ AsyncFunctionContext.prototype.end = function() {
1223
+ switch (this.state) {
1224
+ case END_STATE:
1225
+ this.resolve(this.returnValue);
1226
+ break;
1227
+ case RETHROW_STATE:
1228
+ this.reject(this.storedException);
1229
+ break;
1230
+ default:
1231
+ this.reject(getInternalError(this.state));
1232
+ }
1233
+ };
1234
+ AsyncFunctionContext.prototype.handleException = function() {
1235
+ this.state = RETHROW_STATE;
1236
+ };
1237
+ function asyncWrap(innerFunction, self) {
1238
+ var moveNext = getMoveNext(innerFunction, self);
1239
+ var ctx = new AsyncFunctionContext();
1240
+ ctx.createCallback = function(newState) {
1241
+ return function(value) {
1242
+ ctx.state = newState;
1243
+ ctx.value = value;
1244
+ moveNext(ctx);
1245
+ };
1246
+ };
1247
+ ctx.errback = function(err) {
1248
+ handleCatch(ctx, err);
1249
+ moveNext(ctx);
1250
+ };
1251
+ moveNext(ctx);
1252
+ return ctx.result;
1253
+ }
1254
+ function getMoveNext(innerFunction, self) {
1255
+ return function(ctx) {
1256
+ while (true) {
1257
+ try {
1258
+ return innerFunction.call(self, ctx);
1259
+ } catch (ex) {
1260
+ handleCatch(ctx, ex);
1261
+ }
1262
+ }
1263
+ };
1264
+ }
1265
+ function handleCatch(ctx, ex) {
1266
+ ctx.storedException = ex;
1267
+ var last = ctx.tryStack_[ctx.tryStack_.length - 1];
1268
+ if (!last) {
1269
+ ctx.handleException(ex);
1270
+ return ;
1271
+ }
1272
+ ctx.state = last.catch !== undefined ? last.catch : last.finally;
1273
+ if (last.finallyFallThrough !== undefined)
1274
+ ctx.finallyFallThrough = last.finallyFallThrough;
1275
+ }
1276
+ $traceurRuntime.asyncWrap = asyncWrap;
1277
+ $traceurRuntime.initGeneratorFunction = initGeneratorFunction;
1278
+ $traceurRuntime.createGeneratorInstance = createGeneratorInstance;
1279
+ return {};
1280
+ });
1281
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/relativeRequire.js", [], function() {
1282
+ "use strict";
1283
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/relativeRequire.js";
1284
+ var path;
1285
+ function relativeRequire(callerPath, requiredPath) {
1286
+ path = path || typeof require !== 'undefined' && require('path');
1287
+ function isDirectory(path) {
1288
+ return path.slice(-1) === '/';
1289
+ }
1290
+ function isAbsolute(path) {
1291
+ return path[0] === '/';
1292
+ }
1293
+ function isRelative(path) {
1294
+ return path[0] === '.';
1295
+ }
1296
+ if (isDirectory(requiredPath) || isAbsolute(requiredPath))
1297
+ return ;
1298
+ return isRelative(requiredPath) ? require(path.resolve(path.dirname(callerPath), requiredPath)) : require(requiredPath);
1299
+ }
1300
+ $traceurRuntime.require = relativeRequire;
1301
+ return {};
1302
+ });
1303
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/spread.js", [], function() {
1304
+ "use strict";
1305
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/spread.js";
1306
+ function spread() {
1307
+ var rv = [],
1308
+ j = 0,
1309
+ iterResult;
1310
+ for (var i = 0; i < arguments.length; i++) {
1311
+ var valueToSpread = $traceurRuntime.checkObjectCoercible(arguments[i]);
1312
+ if (typeof valueToSpread[$traceurRuntime.toProperty(Symbol.iterator)] !== 'function') {
1313
+ throw new TypeError('Cannot spread non-iterable object.');
1314
+ }
1315
+ var iter = valueToSpread[$traceurRuntime.toProperty(Symbol.iterator)]();
1316
+ while (!(iterResult = iter.next()).done) {
1317
+ rv[j++] = iterResult.value;
1318
+ }
1319
+ }
1320
+ return rv;
1321
+ }
1322
+ $traceurRuntime.spread = spread;
1323
+ return {};
1324
+ });
1325
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/type-assertions.js", [], function() {
1326
+ "use strict";
1327
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/type-assertions.js";
1328
+ var types = {
1329
+ any: {name: 'any'},
1330
+ boolean: {name: 'boolean'},
1331
+ number: {name: 'number'},
1332
+ string: {name: 'string'},
1333
+ symbol: {name: 'symbol'},
1334
+ void: {name: 'void'}
1335
+ };
1336
+ var GenericType = function GenericType(type, argumentTypes) {
1337
+ this.type = type;
1338
+ this.argumentTypes = argumentTypes;
1339
+ };
1340
+ ($traceurRuntime.createClass)(GenericType, {}, {});
1341
+ var typeRegister = Object.create(null);
1342
+ function genericType(type) {
1343
+ for (var argumentTypes = [],
1344
+ $__1 = 1; $__1 < arguments.length; $__1++)
1345
+ argumentTypes[$__1 - 1] = arguments[$__1];
1346
+ var typeMap = typeRegister;
1347
+ var key = $traceurRuntime.getOwnHashObject(type).hash;
1348
+ if (!typeMap[key]) {
1349
+ typeMap[key] = Object.create(null);
1350
+ }
1351
+ typeMap = typeMap[key];
1352
+ for (var i = 0; i < argumentTypes.length - 1; i++) {
1353
+ key = $traceurRuntime.getOwnHashObject(argumentTypes[i]).hash;
1354
+ if (!typeMap[key]) {
1355
+ typeMap[key] = Object.create(null);
1356
+ }
1357
+ typeMap = typeMap[key];
1358
+ }
1359
+ var tail = argumentTypes[argumentTypes.length - 1];
1360
+ key = $traceurRuntime.getOwnHashObject(tail).hash;
1361
+ if (!typeMap[key]) {
1362
+ typeMap[key] = new GenericType(type, argumentTypes);
1363
+ }
1364
+ return typeMap[key];
1365
+ }
1366
+ $traceurRuntime.GenericType = GenericType;
1367
+ $traceurRuntime.genericType = genericType;
1368
+ $traceurRuntime.type = types;
1369
+ return {};
1370
+ });
1371
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/runtime-modules.js", [], function() {
1372
+ "use strict";
1373
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/runtime-modules.js";
1374
+ System.get("traceur-runtime@0.0.85/src/runtime/relativeRequire.js");
1375
+ System.get("traceur-runtime@0.0.85/src/runtime/spread.js");
1376
+ System.get("traceur-runtime@0.0.85/src/runtime/destructuring.js");
1377
+ System.get("traceur-runtime@0.0.85/src/runtime/classes.js");
1378
+ System.get("traceur-runtime@0.0.85/src/runtime/async.js");
1379
+ System.get("traceur-runtime@0.0.85/src/runtime/generators.js");
1380
+ System.get("traceur-runtime@0.0.85/src/runtime/type-assertions.js");
1381
+ return {};
1382
+ });
1383
+ System.get("traceur-runtime@0.0.85/src/runtime/runtime-modules.js" + '');
1384
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js", [], function() {
1385
+ "use strict";
1386
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/utils.js";
1387
+ var $ceil = Math.ceil;
1388
+ var $floor = Math.floor;
1389
+ var $isFinite = isFinite;
1390
+ var $isNaN = isNaN;
1391
+ var $pow = Math.pow;
1392
+ var $min = Math.min;
1393
+ var toObject = $traceurRuntime.toObject;
1394
+ function toUint32(x) {
1395
+ return x >>> 0;
1396
+ }
1397
+ function isObject(x) {
1398
+ return x && (typeof x === 'object' || typeof x === 'function');
1399
+ }
1400
+ function isCallable(x) {
1401
+ return typeof x === 'function';
1402
+ }
1403
+ function isNumber(x) {
1404
+ return typeof x === 'number';
1405
+ }
1406
+ function toInteger(x) {
1407
+ x = +x;
1408
+ if ($isNaN(x))
1409
+ return 0;
1410
+ if (x === 0 || !$isFinite(x))
1411
+ return x;
1412
+ return x > 0 ? $floor(x) : $ceil(x);
1413
+ }
1414
+ var MAX_SAFE_LENGTH = $pow(2, 53) - 1;
1415
+ function toLength(x) {
1416
+ var len = toInteger(x);
1417
+ return len < 0 ? 0 : $min(len, MAX_SAFE_LENGTH);
1418
+ }
1419
+ function checkIterable(x) {
1420
+ return !isObject(x) ? undefined : x[Symbol.iterator];
1421
+ }
1422
+ function isConstructor(x) {
1423
+ return isCallable(x);
1424
+ }
1425
+ function createIteratorResultObject(value, done) {
1426
+ return {
1427
+ value: value,
1428
+ done: done
1429
+ };
1430
+ }
1431
+ function maybeDefine(object, name, descr) {
1432
+ if (!(name in object)) {
1433
+ Object.defineProperty(object, name, descr);
1434
+ }
1435
+ }
1436
+ function maybeDefineMethod(object, name, value) {
1437
+ maybeDefine(object, name, {
1438
+ value: value,
1439
+ configurable: true,
1440
+ enumerable: false,
1441
+ writable: true
1442
+ });
1443
+ }
1444
+ function maybeDefineConst(object, name, value) {
1445
+ maybeDefine(object, name, {
1446
+ value: value,
1447
+ configurable: false,
1448
+ enumerable: false,
1449
+ writable: false
1450
+ });
1451
+ }
1452
+ function maybeAddFunctions(object, functions) {
1453
+ for (var i = 0; i < functions.length; i += 2) {
1454
+ var name = functions[i];
1455
+ var value = functions[i + 1];
1456
+ maybeDefineMethod(object, name, value);
1457
+ }
1458
+ }
1459
+ function maybeAddConsts(object, consts) {
1460
+ for (var i = 0; i < consts.length; i += 2) {
1461
+ var name = consts[i];
1462
+ var value = consts[i + 1];
1463
+ maybeDefineConst(object, name, value);
1464
+ }
1465
+ }
1466
+ function maybeAddIterator(object, func, Symbol) {
1467
+ if (!Symbol || !Symbol.iterator || object[Symbol.iterator])
1468
+ return ;
1469
+ if (object['@@iterator'])
1470
+ func = object['@@iterator'];
1471
+ Object.defineProperty(object, Symbol.iterator, {
1472
+ value: func,
1473
+ configurable: true,
1474
+ enumerable: false,
1475
+ writable: true
1476
+ });
1477
+ }
1478
+ var polyfills = [];
1479
+ function registerPolyfill(func) {
1480
+ polyfills.push(func);
1481
+ }
1482
+ function polyfillAll(global) {
1483
+ polyfills.forEach((function(f) {
1484
+ return f(global);
1485
+ }));
1486
+ }
1487
+ return {
1488
+ get toObject() {
1489
+ return toObject;
1490
+ },
1491
+ get toUint32() {
1492
+ return toUint32;
1493
+ },
1494
+ get isObject() {
1495
+ return isObject;
1496
+ },
1497
+ get isCallable() {
1498
+ return isCallable;
1499
+ },
1500
+ get isNumber() {
1501
+ return isNumber;
1502
+ },
1503
+ get toInteger() {
1504
+ return toInteger;
1505
+ },
1506
+ get toLength() {
1507
+ return toLength;
1508
+ },
1509
+ get checkIterable() {
1510
+ return checkIterable;
1511
+ },
1512
+ get isConstructor() {
1513
+ return isConstructor;
1514
+ },
1515
+ get createIteratorResultObject() {
1516
+ return createIteratorResultObject;
1517
+ },
1518
+ get maybeDefine() {
1519
+ return maybeDefine;
1520
+ },
1521
+ get maybeDefineMethod() {
1522
+ return maybeDefineMethod;
1523
+ },
1524
+ get maybeDefineConst() {
1525
+ return maybeDefineConst;
1526
+ },
1527
+ get maybeAddFunctions() {
1528
+ return maybeAddFunctions;
1529
+ },
1530
+ get maybeAddConsts() {
1531
+ return maybeAddConsts;
1532
+ },
1533
+ get maybeAddIterator() {
1534
+ return maybeAddIterator;
1535
+ },
1536
+ get registerPolyfill() {
1537
+ return registerPolyfill;
1538
+ },
1539
+ get polyfillAll() {
1540
+ return polyfillAll;
1541
+ }
1542
+ };
1543
+ });
1544
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Map.js", [], function() {
1545
+ "use strict";
1546
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Map.js";
1547
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
1548
+ isObject = $__0.isObject,
1549
+ maybeAddIterator = $__0.maybeAddIterator,
1550
+ registerPolyfill = $__0.registerPolyfill;
1551
+ var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1552
+ var $hasOwnProperty = Object.prototype.hasOwnProperty;
1553
+ var deletedSentinel = {};
1554
+ function lookupIndex(map, key) {
1555
+ if (isObject(key)) {
1556
+ var hashObject = getOwnHashObject(key);
1557
+ return hashObject && map.objectIndex_[hashObject.hash];
1558
+ }
1559
+ if (typeof key === 'string')
1560
+ return map.stringIndex_[key];
1561
+ return map.primitiveIndex_[key];
1562
+ }
1563
+ function initMap(map) {
1564
+ map.entries_ = [];
1565
+ map.objectIndex_ = Object.create(null);
1566
+ map.stringIndex_ = Object.create(null);
1567
+ map.primitiveIndex_ = Object.create(null);
1568
+ map.deletedCount_ = 0;
1569
+ }
1570
+ var Map = function Map() {
1571
+ var $__10,
1572
+ $__11;
1573
+ var iterable = arguments[0];
1574
+ if (!isObject(this))
1575
+ throw new TypeError('Map called on incompatible type');
1576
+ if ($hasOwnProperty.call(this, 'entries_')) {
1577
+ throw new TypeError('Map can not be reentrantly initialised');
1578
+ }
1579
+ initMap(this);
1580
+ if (iterable !== null && iterable !== undefined) {
1581
+ var $__5 = true;
1582
+ var $__6 = false;
1583
+ var $__7 = undefined;
1584
+ try {
1585
+ for (var $__3 = void 0,
1586
+ $__2 = (iterable)[$traceurRuntime.toProperty(Symbol.iterator)](); !($__5 = ($__3 = $__2.next()).done); $__5 = true) {
1587
+ var $__9 = $__3.value,
1588
+ key = ($__10 = $__9[$traceurRuntime.toProperty(Symbol.iterator)](), ($__11 = $__10.next()).done ? void 0 : $__11.value),
1589
+ value = ($__11 = $__10.next()).done ? void 0 : $__11.value;
1590
+ {
1591
+ this.set(key, value);
1592
+ }
1593
+ }
1594
+ } catch ($__8) {
1595
+ $__6 = true;
1596
+ $__7 = $__8;
1597
+ } finally {
1598
+ try {
1599
+ if (!$__5 && $__2.return != null) {
1600
+ $__2.return();
1601
+ }
1602
+ } finally {
1603
+ if ($__6) {
1604
+ throw $__7;
1605
+ }
1606
+ }
1607
+ }
1608
+ }
1609
+ };
1610
+ ($traceurRuntime.createClass)(Map, {
1611
+ get size() {
1612
+ return this.entries_.length / 2 - this.deletedCount_;
1613
+ },
1614
+ get: function(key) {
1615
+ var index = lookupIndex(this, key);
1616
+ if (index !== undefined)
1617
+ return this.entries_[index + 1];
1618
+ },
1619
+ set: function(key, value) {
1620
+ var objectMode = isObject(key);
1621
+ var stringMode = typeof key === 'string';
1622
+ var index = lookupIndex(this, key);
1623
+ if (index !== undefined) {
1624
+ this.entries_[index + 1] = value;
1625
+ } else {
1626
+ index = this.entries_.length;
1627
+ this.entries_[index] = key;
1628
+ this.entries_[index + 1] = value;
1629
+ if (objectMode) {
1630
+ var hashObject = getOwnHashObject(key);
1631
+ var hash = hashObject.hash;
1632
+ this.objectIndex_[hash] = index;
1633
+ } else if (stringMode) {
1634
+ this.stringIndex_[key] = index;
1635
+ } else {
1636
+ this.primitiveIndex_[key] = index;
1637
+ }
1638
+ }
1639
+ return this;
1640
+ },
1641
+ has: function(key) {
1642
+ return lookupIndex(this, key) !== undefined;
1643
+ },
1644
+ delete: function(key) {
1645
+ var objectMode = isObject(key);
1646
+ var stringMode = typeof key === 'string';
1647
+ var index;
1648
+ var hash;
1649
+ if (objectMode) {
1650
+ var hashObject = getOwnHashObject(key);
1651
+ if (hashObject) {
1652
+ index = this.objectIndex_[hash = hashObject.hash];
1653
+ delete this.objectIndex_[hash];
1654
+ }
1655
+ } else if (stringMode) {
1656
+ index = this.stringIndex_[key];
1657
+ delete this.stringIndex_[key];
1658
+ } else {
1659
+ index = this.primitiveIndex_[key];
1660
+ delete this.primitiveIndex_[key];
1661
+ }
1662
+ if (index !== undefined) {
1663
+ this.entries_[index] = deletedSentinel;
1664
+ this.entries_[index + 1] = undefined;
1665
+ this.deletedCount_++;
1666
+ return true;
1667
+ }
1668
+ return false;
1669
+ },
1670
+ clear: function() {
1671
+ initMap(this);
1672
+ },
1673
+ forEach: function(callbackFn) {
1674
+ var thisArg = arguments[1];
1675
+ for (var i = 0; i < this.entries_.length; i += 2) {
1676
+ var key = this.entries_[i];
1677
+ var value = this.entries_[i + 1];
1678
+ if (key === deletedSentinel)
1679
+ continue;
1680
+ callbackFn.call(thisArg, value, key, this);
1681
+ }
1682
+ },
1683
+ entries: $traceurRuntime.initGeneratorFunction(function $__12() {
1684
+ var i,
1685
+ key,
1686
+ value;
1687
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1688
+ while (true)
1689
+ switch ($ctx.state) {
1690
+ case 0:
1691
+ i = 0;
1692
+ $ctx.state = 12;
1693
+ break;
1694
+ case 12:
1695
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1696
+ break;
1697
+ case 4:
1698
+ i += 2;
1699
+ $ctx.state = 12;
1700
+ break;
1701
+ case 8:
1702
+ key = this.entries_[i];
1703
+ value = this.entries_[i + 1];
1704
+ $ctx.state = 9;
1705
+ break;
1706
+ case 9:
1707
+ $ctx.state = (key === deletedSentinel) ? 4 : 6;
1708
+ break;
1709
+ case 6:
1710
+ $ctx.state = 2;
1711
+ return [key, value];
1712
+ case 2:
1713
+ $ctx.maybeThrow();
1714
+ $ctx.state = 4;
1715
+ break;
1716
+ default:
1717
+ return $ctx.end();
1718
+ }
1719
+ }, $__12, this);
1720
+ }),
1721
+ keys: $traceurRuntime.initGeneratorFunction(function $__13() {
1722
+ var i,
1723
+ key,
1724
+ value;
1725
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1726
+ while (true)
1727
+ switch ($ctx.state) {
1728
+ case 0:
1729
+ i = 0;
1730
+ $ctx.state = 12;
1731
+ break;
1732
+ case 12:
1733
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1734
+ break;
1735
+ case 4:
1736
+ i += 2;
1737
+ $ctx.state = 12;
1738
+ break;
1739
+ case 8:
1740
+ key = this.entries_[i];
1741
+ value = this.entries_[i + 1];
1742
+ $ctx.state = 9;
1743
+ break;
1744
+ case 9:
1745
+ $ctx.state = (key === deletedSentinel) ? 4 : 6;
1746
+ break;
1747
+ case 6:
1748
+ $ctx.state = 2;
1749
+ return key;
1750
+ case 2:
1751
+ $ctx.maybeThrow();
1752
+ $ctx.state = 4;
1753
+ break;
1754
+ default:
1755
+ return $ctx.end();
1756
+ }
1757
+ }, $__13, this);
1758
+ }),
1759
+ values: $traceurRuntime.initGeneratorFunction(function $__14() {
1760
+ var i,
1761
+ key,
1762
+ value;
1763
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1764
+ while (true)
1765
+ switch ($ctx.state) {
1766
+ case 0:
1767
+ i = 0;
1768
+ $ctx.state = 12;
1769
+ break;
1770
+ case 12:
1771
+ $ctx.state = (i < this.entries_.length) ? 8 : -2;
1772
+ break;
1773
+ case 4:
1774
+ i += 2;
1775
+ $ctx.state = 12;
1776
+ break;
1777
+ case 8:
1778
+ key = this.entries_[i];
1779
+ value = this.entries_[i + 1];
1780
+ $ctx.state = 9;
1781
+ break;
1782
+ case 9:
1783
+ $ctx.state = (key === deletedSentinel) ? 4 : 6;
1784
+ break;
1785
+ case 6:
1786
+ $ctx.state = 2;
1787
+ return value;
1788
+ case 2:
1789
+ $ctx.maybeThrow();
1790
+ $ctx.state = 4;
1791
+ break;
1792
+ default:
1793
+ return $ctx.end();
1794
+ }
1795
+ }, $__14, this);
1796
+ })
1797
+ }, {});
1798
+ Object.defineProperty(Map.prototype, Symbol.iterator, {
1799
+ configurable: true,
1800
+ writable: true,
1801
+ value: Map.prototype.entries
1802
+ });
1803
+ function polyfillMap(global) {
1804
+ var $__9 = global,
1805
+ Object = $__9.Object,
1806
+ Symbol = $__9.Symbol;
1807
+ if (!global.Map)
1808
+ global.Map = Map;
1809
+ var mapPrototype = global.Map.prototype;
1810
+ if (mapPrototype.entries === undefined)
1811
+ global.Map = Map;
1812
+ if (mapPrototype.entries) {
1813
+ maybeAddIterator(mapPrototype, mapPrototype.entries, Symbol);
1814
+ maybeAddIterator(Object.getPrototypeOf(new global.Map().entries()), function() {
1815
+ return this;
1816
+ }, Symbol);
1817
+ }
1818
+ }
1819
+ registerPolyfill(polyfillMap);
1820
+ return {
1821
+ get Map() {
1822
+ return Map;
1823
+ },
1824
+ get polyfillMap() {
1825
+ return polyfillMap;
1826
+ }
1827
+ };
1828
+ });
1829
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Map.js" + '');
1830
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Set.js", [], function() {
1831
+ "use strict";
1832
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Set.js";
1833
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
1834
+ isObject = $__0.isObject,
1835
+ maybeAddIterator = $__0.maybeAddIterator,
1836
+ registerPolyfill = $__0.registerPolyfill;
1837
+ var Map = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Map.js").Map;
1838
+ var getOwnHashObject = $traceurRuntime.getOwnHashObject;
1839
+ var $hasOwnProperty = Object.prototype.hasOwnProperty;
1840
+ function initSet(set) {
1841
+ set.map_ = new Map();
1842
+ }
1843
+ var Set = function Set() {
1844
+ var iterable = arguments[0];
1845
+ if (!isObject(this))
1846
+ throw new TypeError('Set called on incompatible type');
1847
+ if ($hasOwnProperty.call(this, 'map_')) {
1848
+ throw new TypeError('Set can not be reentrantly initialised');
1849
+ }
1850
+ initSet(this);
1851
+ if (iterable !== null && iterable !== undefined) {
1852
+ var $__7 = true;
1853
+ var $__8 = false;
1854
+ var $__9 = undefined;
1855
+ try {
1856
+ for (var $__5 = void 0,
1857
+ $__4 = (iterable)[$traceurRuntime.toProperty(Symbol.iterator)](); !($__7 = ($__5 = $__4.next()).done); $__7 = true) {
1858
+ var item = $__5.value;
1859
+ {
1860
+ this.add(item);
1861
+ }
1862
+ }
1863
+ } catch ($__10) {
1864
+ $__8 = true;
1865
+ $__9 = $__10;
1866
+ } finally {
1867
+ try {
1868
+ if (!$__7 && $__4.return != null) {
1869
+ $__4.return();
1870
+ }
1871
+ } finally {
1872
+ if ($__8) {
1873
+ throw $__9;
1874
+ }
1875
+ }
1876
+ }
1877
+ }
1878
+ };
1879
+ ($traceurRuntime.createClass)(Set, {
1880
+ get size() {
1881
+ return this.map_.size;
1882
+ },
1883
+ has: function(key) {
1884
+ return this.map_.has(key);
1885
+ },
1886
+ add: function(key) {
1887
+ this.map_.set(key, key);
1888
+ return this;
1889
+ },
1890
+ delete: function(key) {
1891
+ return this.map_.delete(key);
1892
+ },
1893
+ clear: function() {
1894
+ return this.map_.clear();
1895
+ },
1896
+ forEach: function(callbackFn) {
1897
+ var thisArg = arguments[1];
1898
+ var $__2 = this;
1899
+ return this.map_.forEach((function(value, key) {
1900
+ callbackFn.call(thisArg, key, key, $__2);
1901
+ }));
1902
+ },
1903
+ values: $traceurRuntime.initGeneratorFunction(function $__12() {
1904
+ var $__13,
1905
+ $__14;
1906
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1907
+ while (true)
1908
+ switch ($ctx.state) {
1909
+ case 0:
1910
+ $__13 = $ctx.wrapYieldStar(this.map_.keys()[Symbol.iterator]());
1911
+ $ctx.sent = void 0;
1912
+ $ctx.action = 'next';
1913
+ $ctx.state = 12;
1914
+ break;
1915
+ case 12:
1916
+ $__14 = $__13[$ctx.action]($ctx.sentIgnoreThrow);
1917
+ $ctx.state = 9;
1918
+ break;
1919
+ case 9:
1920
+ $ctx.state = ($__14.done) ? 3 : 2;
1921
+ break;
1922
+ case 3:
1923
+ $ctx.sent = $__14.value;
1924
+ $ctx.state = -2;
1925
+ break;
1926
+ case 2:
1927
+ $ctx.state = 12;
1928
+ return $__14.value;
1929
+ default:
1930
+ return $ctx.end();
1931
+ }
1932
+ }, $__12, this);
1933
+ }),
1934
+ entries: $traceurRuntime.initGeneratorFunction(function $__15() {
1935
+ var $__16,
1936
+ $__17;
1937
+ return $traceurRuntime.createGeneratorInstance(function($ctx) {
1938
+ while (true)
1939
+ switch ($ctx.state) {
1940
+ case 0:
1941
+ $__16 = $ctx.wrapYieldStar(this.map_.entries()[Symbol.iterator]());
1942
+ $ctx.sent = void 0;
1943
+ $ctx.action = 'next';
1944
+ $ctx.state = 12;
1945
+ break;
1946
+ case 12:
1947
+ $__17 = $__16[$ctx.action]($ctx.sentIgnoreThrow);
1948
+ $ctx.state = 9;
1949
+ break;
1950
+ case 9:
1951
+ $ctx.state = ($__17.done) ? 3 : 2;
1952
+ break;
1953
+ case 3:
1954
+ $ctx.sent = $__17.value;
1955
+ $ctx.state = -2;
1956
+ break;
1957
+ case 2:
1958
+ $ctx.state = 12;
1959
+ return $__17.value;
1960
+ default:
1961
+ return $ctx.end();
1962
+ }
1963
+ }, $__15, this);
1964
+ })
1965
+ }, {});
1966
+ Object.defineProperty(Set.prototype, Symbol.iterator, {
1967
+ configurable: true,
1968
+ writable: true,
1969
+ value: Set.prototype.values
1970
+ });
1971
+ Object.defineProperty(Set.prototype, 'keys', {
1972
+ configurable: true,
1973
+ writable: true,
1974
+ value: Set.prototype.values
1975
+ });
1976
+ function polyfillSet(global) {
1977
+ var $__11 = global,
1978
+ Object = $__11.Object,
1979
+ Symbol = $__11.Symbol;
1980
+ if (!global.Set)
1981
+ global.Set = Set;
1982
+ var setPrototype = global.Set.prototype;
1983
+ if (setPrototype.values) {
1984
+ maybeAddIterator(setPrototype, setPrototype.values, Symbol);
1985
+ maybeAddIterator(Object.getPrototypeOf(new global.Set().values()), function() {
1986
+ return this;
1987
+ }, Symbol);
1988
+ }
1989
+ }
1990
+ registerPolyfill(polyfillSet);
1991
+ return {
1992
+ get Set() {
1993
+ return Set;
1994
+ },
1995
+ get polyfillSet() {
1996
+ return polyfillSet;
1997
+ }
1998
+ };
1999
+ });
2000
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Set.js" + '');
2001
+ System.registerModule("traceur-runtime@0.0.85/node_modules/rsvp/lib/rsvp/asap.js", [], function() {
2002
+ "use strict";
2003
+ var __moduleName = "traceur-runtime@0.0.85/node_modules/rsvp/lib/rsvp/asap.js";
2004
+ var len = 0;
2005
+ function asap(callback, arg) {
2006
+ queue[len] = callback;
2007
+ queue[len + 1] = arg;
2008
+ len += 2;
2009
+ if (len === 2) {
2010
+ scheduleFlush();
2011
+ }
2012
+ }
2013
+ var $__default = asap;
2014
+ var browserGlobal = (typeof window !== 'undefined') ? window : {};
2015
+ var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
2016
+ var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
2017
+ function useNextTick() {
2018
+ return function() {
2019
+ process.nextTick(flush);
2020
+ };
2021
+ }
2022
+ function useMutationObserver() {
2023
+ var iterations = 0;
2024
+ var observer = new BrowserMutationObserver(flush);
2025
+ var node = document.createTextNode('');
2026
+ observer.observe(node, {characterData: true});
2027
+ return function() {
2028
+ node.data = (iterations = ++iterations % 2);
2029
+ };
2030
+ }
2031
+ function useMessageChannel() {
2032
+ var channel = new MessageChannel();
2033
+ channel.port1.onmessage = flush;
2034
+ return function() {
2035
+ channel.port2.postMessage(0);
2036
+ };
2037
+ }
2038
+ function useSetTimeout() {
2039
+ return function() {
2040
+ setTimeout(flush, 1);
2041
+ };
2042
+ }
2043
+ var queue = new Array(1000);
2044
+ function flush() {
2045
+ for (var i = 0; i < len; i += 2) {
2046
+ var callback = queue[i];
2047
+ var arg = queue[i + 1];
2048
+ callback(arg);
2049
+ queue[i] = undefined;
2050
+ queue[i + 1] = undefined;
2051
+ }
2052
+ len = 0;
2053
+ }
2054
+ var scheduleFlush;
2055
+ if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') {
2056
+ scheduleFlush = useNextTick();
2057
+ } else if (BrowserMutationObserver) {
2058
+ scheduleFlush = useMutationObserver();
2059
+ } else if (isWorker) {
2060
+ scheduleFlush = useMessageChannel();
2061
+ } else {
2062
+ scheduleFlush = useSetTimeout();
2063
+ }
2064
+ return {get default() {
2065
+ return $__default;
2066
+ }};
2067
+ });
2068
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Promise.js", [], function() {
2069
+ "use strict";
2070
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Promise.js";
2071
+ var async = System.get("traceur-runtime@0.0.85/node_modules/rsvp/lib/rsvp/asap.js").default;
2072
+ var registerPolyfill = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js").registerPolyfill;
2073
+ var promiseRaw = {};
2074
+ function isPromise(x) {
2075
+ return x && typeof x === 'object' && x.status_ !== undefined;
2076
+ }
2077
+ function idResolveHandler(x) {
2078
+ return x;
2079
+ }
2080
+ function idRejectHandler(x) {
2081
+ throw x;
2082
+ }
2083
+ function chain(promise) {
2084
+ var onResolve = arguments[1] !== (void 0) ? arguments[1] : idResolveHandler;
2085
+ var onReject = arguments[2] !== (void 0) ? arguments[2] : idRejectHandler;
2086
+ var deferred = getDeferred(promise.constructor);
2087
+ switch (promise.status_) {
2088
+ case undefined:
2089
+ throw TypeError;
2090
+ case 0:
2091
+ promise.onResolve_.push(onResolve, deferred);
2092
+ promise.onReject_.push(onReject, deferred);
2093
+ break;
2094
+ case +1:
2095
+ promiseEnqueue(promise.value_, [onResolve, deferred]);
2096
+ break;
2097
+ case -1:
2098
+ promiseEnqueue(promise.value_, [onReject, deferred]);
2099
+ break;
2100
+ }
2101
+ return deferred.promise;
2102
+ }
2103
+ function getDeferred(C) {
2104
+ if (this === $Promise) {
2105
+ var promise = promiseInit(new $Promise(promiseRaw));
2106
+ return {
2107
+ promise: promise,
2108
+ resolve: (function(x) {
2109
+ promiseResolve(promise, x);
2110
+ }),
2111
+ reject: (function(r) {
2112
+ promiseReject(promise, r);
2113
+ })
2114
+ };
2115
+ } else {
2116
+ var result = {};
2117
+ result.promise = new C((function(resolve, reject) {
2118
+ result.resolve = resolve;
2119
+ result.reject = reject;
2120
+ }));
2121
+ return result;
2122
+ }
2123
+ }
2124
+ function promiseSet(promise, status, value, onResolve, onReject) {
2125
+ promise.status_ = status;
2126
+ promise.value_ = value;
2127
+ promise.onResolve_ = onResolve;
2128
+ promise.onReject_ = onReject;
2129
+ return promise;
2130
+ }
2131
+ function promiseInit(promise) {
2132
+ return promiseSet(promise, 0, undefined, [], []);
2133
+ }
2134
+ var Promise = function Promise(resolver) {
2135
+ if (resolver === promiseRaw)
2136
+ return ;
2137
+ if (typeof resolver !== 'function')
2138
+ throw new TypeError;
2139
+ var promise = promiseInit(this);
2140
+ try {
2141
+ resolver((function(x) {
2142
+ promiseResolve(promise, x);
2143
+ }), (function(r) {
2144
+ promiseReject(promise, r);
2145
+ }));
2146
+ } catch (e) {
2147
+ promiseReject(promise, e);
2148
+ }
2149
+ };
2150
+ ($traceurRuntime.createClass)(Promise, {
2151
+ catch: function(onReject) {
2152
+ return this.then(undefined, onReject);
2153
+ },
2154
+ then: function(onResolve, onReject) {
2155
+ if (typeof onResolve !== 'function')
2156
+ onResolve = idResolveHandler;
2157
+ if (typeof onReject !== 'function')
2158
+ onReject = idRejectHandler;
2159
+ var that = this;
2160
+ var constructor = this.constructor;
2161
+ return chain(this, function(x) {
2162
+ x = promiseCoerce(constructor, x);
2163
+ return x === that ? onReject(new TypeError) : isPromise(x) ? x.then(onResolve, onReject) : onResolve(x);
2164
+ }, onReject);
2165
+ }
2166
+ }, {
2167
+ resolve: function(x) {
2168
+ if (this === $Promise) {
2169
+ if (isPromise(x)) {
2170
+ return x;
2171
+ }
2172
+ return promiseSet(new $Promise(promiseRaw), +1, x);
2173
+ } else {
2174
+ return new this(function(resolve, reject) {
2175
+ resolve(x);
2176
+ });
2177
+ }
2178
+ },
2179
+ reject: function(r) {
2180
+ if (this === $Promise) {
2181
+ return promiseSet(new $Promise(promiseRaw), -1, r);
2182
+ } else {
2183
+ return new this((function(resolve, reject) {
2184
+ reject(r);
2185
+ }));
2186
+ }
2187
+ },
2188
+ all: function(values) {
2189
+ var deferred = getDeferred(this);
2190
+ var resolutions = [];
2191
+ try {
2192
+ var makeCountdownFunction = function(i) {
2193
+ return (function(x) {
2194
+ resolutions[i] = x;
2195
+ if (--count === 0)
2196
+ deferred.resolve(resolutions);
2197
+ });
2198
+ };
2199
+ var count = 0;
2200
+ var i = 0;
2201
+ var $__6 = true;
2202
+ var $__7 = false;
2203
+ var $__8 = undefined;
2204
+ try {
2205
+ for (var $__4 = void 0,
2206
+ $__3 = (values)[$traceurRuntime.toProperty(Symbol.iterator)](); !($__6 = ($__4 = $__3.next()).done); $__6 = true) {
2207
+ var value = $__4.value;
2208
+ {
2209
+ var countdownFunction = makeCountdownFunction(i);
2210
+ this.resolve(value).then(countdownFunction, (function(r) {
2211
+ deferred.reject(r);
2212
+ }));
2213
+ ++i;
2214
+ ++count;
2215
+ }
2216
+ }
2217
+ } catch ($__9) {
2218
+ $__7 = true;
2219
+ $__8 = $__9;
2220
+ } finally {
2221
+ try {
2222
+ if (!$__6 && $__3.return != null) {
2223
+ $__3.return();
2224
+ }
2225
+ } finally {
2226
+ if ($__7) {
2227
+ throw $__8;
2228
+ }
2229
+ }
2230
+ }
2231
+ if (count === 0) {
2232
+ deferred.resolve(resolutions);
2233
+ }
2234
+ } catch (e) {
2235
+ deferred.reject(e);
2236
+ }
2237
+ return deferred.promise;
2238
+ },
2239
+ race: function(values) {
2240
+ var deferred = getDeferred(this);
2241
+ try {
2242
+ for (var i = 0; i < values.length; i++) {
2243
+ this.resolve(values[i]).then((function(x) {
2244
+ deferred.resolve(x);
2245
+ }), (function(r) {
2246
+ deferred.reject(r);
2247
+ }));
2248
+ }
2249
+ } catch (e) {
2250
+ deferred.reject(e);
2251
+ }
2252
+ return deferred.promise;
2253
+ }
2254
+ });
2255
+ var $Promise = Promise;
2256
+ var $PromiseReject = $Promise.reject;
2257
+ function promiseResolve(promise, x) {
2258
+ promiseDone(promise, +1, x, promise.onResolve_);
2259
+ }
2260
+ function promiseReject(promise, r) {
2261
+ promiseDone(promise, -1, r, promise.onReject_);
2262
+ }
2263
+ function promiseDone(promise, status, value, reactions) {
2264
+ if (promise.status_ !== 0)
2265
+ return ;
2266
+ promiseEnqueue(value, reactions);
2267
+ promiseSet(promise, status, value);
2268
+ }
2269
+ function promiseEnqueue(value, tasks) {
2270
+ async((function() {
2271
+ for (var i = 0; i < tasks.length; i += 2) {
2272
+ promiseHandle(value, tasks[i], tasks[i + 1]);
2273
+ }
2274
+ }));
2275
+ }
2276
+ function promiseHandle(value, handler, deferred) {
2277
+ try {
2278
+ var result = handler(value);
2279
+ if (result === deferred.promise)
2280
+ throw new TypeError;
2281
+ else if (isPromise(result))
2282
+ chain(result, deferred.resolve, deferred.reject);
2283
+ else
2284
+ deferred.resolve(result);
2285
+ } catch (e) {
2286
+ try {
2287
+ deferred.reject(e);
2288
+ } catch (e) {}
2289
+ }
2290
+ }
2291
+ var thenableSymbol = '@@thenable';
2292
+ function isObject(x) {
2293
+ return x && (typeof x === 'object' || typeof x === 'function');
2294
+ }
2295
+ function promiseCoerce(constructor, x) {
2296
+ if (!isPromise(x) && isObject(x)) {
2297
+ var then;
2298
+ try {
2299
+ then = x.then;
2300
+ } catch (r) {
2301
+ var promise = $PromiseReject.call(constructor, r);
2302
+ x[thenableSymbol] = promise;
2303
+ return promise;
2304
+ }
2305
+ if (typeof then === 'function') {
2306
+ var p = x[thenableSymbol];
2307
+ if (p) {
2308
+ return p;
2309
+ } else {
2310
+ var deferred = getDeferred(constructor);
2311
+ x[thenableSymbol] = deferred.promise;
2312
+ try {
2313
+ then.call(x, deferred.resolve, deferred.reject);
2314
+ } catch (r) {
2315
+ deferred.reject(r);
2316
+ }
2317
+ return deferred.promise;
2318
+ }
2319
+ }
2320
+ }
2321
+ return x;
2322
+ }
2323
+ function polyfillPromise(global) {
2324
+ if (!global.Promise)
2325
+ global.Promise = Promise;
2326
+ }
2327
+ registerPolyfill(polyfillPromise);
2328
+ return {
2329
+ get Promise() {
2330
+ return Promise;
2331
+ },
2332
+ get polyfillPromise() {
2333
+ return polyfillPromise;
2334
+ }
2335
+ };
2336
+ });
2337
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Promise.js" + '');
2338
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/StringIterator.js", [], function() {
2339
+ "use strict";
2340
+ var $__2;
2341
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/StringIterator.js";
2342
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2343
+ createIteratorResultObject = $__0.createIteratorResultObject,
2344
+ isObject = $__0.isObject;
2345
+ var toProperty = $traceurRuntime.toProperty;
2346
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2347
+ var iteratedString = Symbol('iteratedString');
2348
+ var stringIteratorNextIndex = Symbol('stringIteratorNextIndex');
2349
+ var StringIterator = function StringIterator() {};
2350
+ ($traceurRuntime.createClass)(StringIterator, ($__2 = {}, Object.defineProperty($__2, "next", {
2351
+ value: function() {
2352
+ var o = this;
2353
+ if (!isObject(o) || !hasOwnProperty.call(o, iteratedString)) {
2354
+ throw new TypeError('this must be a StringIterator object');
2355
+ }
2356
+ var s = o[toProperty(iteratedString)];
2357
+ if (s === undefined) {
2358
+ return createIteratorResultObject(undefined, true);
2359
+ }
2360
+ var position = o[toProperty(stringIteratorNextIndex)];
2361
+ var len = s.length;
2362
+ if (position >= len) {
2363
+ o[toProperty(iteratedString)] = undefined;
2364
+ return createIteratorResultObject(undefined, true);
2365
+ }
2366
+ var first = s.charCodeAt(position);
2367
+ var resultString;
2368
+ if (first < 0xD800 || first > 0xDBFF || position + 1 === len) {
2369
+ resultString = String.fromCharCode(first);
2370
+ } else {
2371
+ var second = s.charCodeAt(position + 1);
2372
+ if (second < 0xDC00 || second > 0xDFFF) {
2373
+ resultString = String.fromCharCode(first);
2374
+ } else {
2375
+ resultString = String.fromCharCode(first) + String.fromCharCode(second);
2376
+ }
2377
+ }
2378
+ o[toProperty(stringIteratorNextIndex)] = position + resultString.length;
2379
+ return createIteratorResultObject(resultString, false);
2380
+ },
2381
+ configurable: true,
2382
+ enumerable: true,
2383
+ writable: true
2384
+ }), Object.defineProperty($__2, Symbol.iterator, {
2385
+ value: function() {
2386
+ return this;
2387
+ },
2388
+ configurable: true,
2389
+ enumerable: true,
2390
+ writable: true
2391
+ }), $__2), {});
2392
+ function createStringIterator(string) {
2393
+ var s = String(string);
2394
+ var iterator = Object.create(StringIterator.prototype);
2395
+ iterator[toProperty(iteratedString)] = s;
2396
+ iterator[toProperty(stringIteratorNextIndex)] = 0;
2397
+ return iterator;
2398
+ }
2399
+ return {get createStringIterator() {
2400
+ return createStringIterator;
2401
+ }};
2402
+ });
2403
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/String.js", [], function() {
2404
+ "use strict";
2405
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/String.js";
2406
+ var createStringIterator = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/StringIterator.js").createStringIterator;
2407
+ var $__1 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2408
+ maybeAddFunctions = $__1.maybeAddFunctions,
2409
+ maybeAddIterator = $__1.maybeAddIterator,
2410
+ registerPolyfill = $__1.registerPolyfill;
2411
+ var $toString = Object.prototype.toString;
2412
+ var $indexOf = String.prototype.indexOf;
2413
+ var $lastIndexOf = String.prototype.lastIndexOf;
2414
+ function startsWith(search) {
2415
+ var string = String(this);
2416
+ if (this == null || $toString.call(search) == '[object RegExp]') {
2417
+ throw TypeError();
2418
+ }
2419
+ var stringLength = string.length;
2420
+ var searchString = String(search);
2421
+ var searchLength = searchString.length;
2422
+ var position = arguments.length > 1 ? arguments[1] : undefined;
2423
+ var pos = position ? Number(position) : 0;
2424
+ if (isNaN(pos)) {
2425
+ pos = 0;
2426
+ }
2427
+ var start = Math.min(Math.max(pos, 0), stringLength);
2428
+ return $indexOf.call(string, searchString, pos) == start;
2429
+ }
2430
+ function endsWith(search) {
2431
+ var string = String(this);
2432
+ if (this == null || $toString.call(search) == '[object RegExp]') {
2433
+ throw TypeError();
2434
+ }
2435
+ var stringLength = string.length;
2436
+ var searchString = String(search);
2437
+ var searchLength = searchString.length;
2438
+ var pos = stringLength;
2439
+ if (arguments.length > 1) {
2440
+ var position = arguments[1];
2441
+ if (position !== undefined) {
2442
+ pos = position ? Number(position) : 0;
2443
+ if (isNaN(pos)) {
2444
+ pos = 0;
2445
+ }
2446
+ }
2447
+ }
2448
+ var end = Math.min(Math.max(pos, 0), stringLength);
2449
+ var start = end - searchLength;
2450
+ if (start < 0) {
2451
+ return false;
2452
+ }
2453
+ return $lastIndexOf.call(string, searchString, start) == start;
2454
+ }
2455
+ function includes(search) {
2456
+ if (this == null) {
2457
+ throw TypeError();
2458
+ }
2459
+ var string = String(this);
2460
+ if (search && $toString.call(search) == '[object RegExp]') {
2461
+ throw TypeError();
2462
+ }
2463
+ var stringLength = string.length;
2464
+ var searchString = String(search);
2465
+ var searchLength = searchString.length;
2466
+ var position = arguments.length > 1 ? arguments[1] : undefined;
2467
+ var pos = position ? Number(position) : 0;
2468
+ if (pos != pos) {
2469
+ pos = 0;
2470
+ }
2471
+ var start = Math.min(Math.max(pos, 0), stringLength);
2472
+ if (searchLength + start > stringLength) {
2473
+ return false;
2474
+ }
2475
+ return $indexOf.call(string, searchString, pos) != -1;
2476
+ }
2477
+ function repeat(count) {
2478
+ if (this == null) {
2479
+ throw TypeError();
2480
+ }
2481
+ var string = String(this);
2482
+ var n = count ? Number(count) : 0;
2483
+ if (isNaN(n)) {
2484
+ n = 0;
2485
+ }
2486
+ if (n < 0 || n == Infinity) {
2487
+ throw RangeError();
2488
+ }
2489
+ if (n == 0) {
2490
+ return '';
2491
+ }
2492
+ var result = '';
2493
+ while (n--) {
2494
+ result += string;
2495
+ }
2496
+ return result;
2497
+ }
2498
+ function codePointAt(position) {
2499
+ if (this == null) {
2500
+ throw TypeError();
2501
+ }
2502
+ var string = String(this);
2503
+ var size = string.length;
2504
+ var index = position ? Number(position) : 0;
2505
+ if (isNaN(index)) {
2506
+ index = 0;
2507
+ }
2508
+ if (index < 0 || index >= size) {
2509
+ return undefined;
2510
+ }
2511
+ var first = string.charCodeAt(index);
2512
+ var second;
2513
+ if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
2514
+ second = string.charCodeAt(index + 1);
2515
+ if (second >= 0xDC00 && second <= 0xDFFF) {
2516
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
2517
+ }
2518
+ }
2519
+ return first;
2520
+ }
2521
+ function raw(callsite) {
2522
+ var raw = callsite.raw;
2523
+ var len = raw.length >>> 0;
2524
+ if (len === 0)
2525
+ return '';
2526
+ var s = '';
2527
+ var i = 0;
2528
+ while (true) {
2529
+ s += raw[i];
2530
+ if (i + 1 === len)
2531
+ return s;
2532
+ s += arguments[++i];
2533
+ }
2534
+ }
2535
+ function fromCodePoint(_) {
2536
+ var codeUnits = [];
2537
+ var floor = Math.floor;
2538
+ var highSurrogate;
2539
+ var lowSurrogate;
2540
+ var index = -1;
2541
+ var length = arguments.length;
2542
+ if (!length) {
2543
+ return '';
2544
+ }
2545
+ while (++index < length) {
2546
+ var codePoint = Number(arguments[index]);
2547
+ if (!isFinite(codePoint) || codePoint < 0 || codePoint > 0x10FFFF || floor(codePoint) != codePoint) {
2548
+ throw RangeError('Invalid code point: ' + codePoint);
2549
+ }
2550
+ if (codePoint <= 0xFFFF) {
2551
+ codeUnits.push(codePoint);
2552
+ } else {
2553
+ codePoint -= 0x10000;
2554
+ highSurrogate = (codePoint >> 10) + 0xD800;
2555
+ lowSurrogate = (codePoint % 0x400) + 0xDC00;
2556
+ codeUnits.push(highSurrogate, lowSurrogate);
2557
+ }
2558
+ }
2559
+ return String.fromCharCode.apply(null, codeUnits);
2560
+ }
2561
+ function stringPrototypeIterator() {
2562
+ var o = $traceurRuntime.checkObjectCoercible(this);
2563
+ var s = String(o);
2564
+ return createStringIterator(s);
2565
+ }
2566
+ function polyfillString(global) {
2567
+ var String = global.String;
2568
+ maybeAddFunctions(String.prototype, ['codePointAt', codePointAt, 'endsWith', endsWith, 'includes', includes, 'repeat', repeat, 'startsWith', startsWith]);
2569
+ maybeAddFunctions(String, ['fromCodePoint', fromCodePoint, 'raw', raw]);
2570
+ maybeAddIterator(String.prototype, stringPrototypeIterator, Symbol);
2571
+ }
2572
+ registerPolyfill(polyfillString);
2573
+ return {
2574
+ get startsWith() {
2575
+ return startsWith;
2576
+ },
2577
+ get endsWith() {
2578
+ return endsWith;
2579
+ },
2580
+ get includes() {
2581
+ return includes;
2582
+ },
2583
+ get repeat() {
2584
+ return repeat;
2585
+ },
2586
+ get codePointAt() {
2587
+ return codePointAt;
2588
+ },
2589
+ get raw() {
2590
+ return raw;
2591
+ },
2592
+ get fromCodePoint() {
2593
+ return fromCodePoint;
2594
+ },
2595
+ get stringPrototypeIterator() {
2596
+ return stringPrototypeIterator;
2597
+ },
2598
+ get polyfillString() {
2599
+ return polyfillString;
2600
+ }
2601
+ };
2602
+ });
2603
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/String.js" + '');
2604
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/ArrayIterator.js", [], function() {
2605
+ "use strict";
2606
+ var $__2;
2607
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/ArrayIterator.js";
2608
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2609
+ toObject = $__0.toObject,
2610
+ toUint32 = $__0.toUint32,
2611
+ createIteratorResultObject = $__0.createIteratorResultObject;
2612
+ var ARRAY_ITERATOR_KIND_KEYS = 1;
2613
+ var ARRAY_ITERATOR_KIND_VALUES = 2;
2614
+ var ARRAY_ITERATOR_KIND_ENTRIES = 3;
2615
+ var ArrayIterator = function ArrayIterator() {};
2616
+ ($traceurRuntime.createClass)(ArrayIterator, ($__2 = {}, Object.defineProperty($__2, "next", {
2617
+ value: function() {
2618
+ var iterator = toObject(this);
2619
+ var array = iterator.iteratorObject_;
2620
+ if (!array) {
2621
+ throw new TypeError('Object is not an ArrayIterator');
2622
+ }
2623
+ var index = iterator.arrayIteratorNextIndex_;
2624
+ var itemKind = iterator.arrayIterationKind_;
2625
+ var length = toUint32(array.length);
2626
+ if (index >= length) {
2627
+ iterator.arrayIteratorNextIndex_ = Infinity;
2628
+ return createIteratorResultObject(undefined, true);
2629
+ }
2630
+ iterator.arrayIteratorNextIndex_ = index + 1;
2631
+ if (itemKind == ARRAY_ITERATOR_KIND_VALUES)
2632
+ return createIteratorResultObject(array[index], false);
2633
+ if (itemKind == ARRAY_ITERATOR_KIND_ENTRIES)
2634
+ return createIteratorResultObject([index, array[index]], false);
2635
+ return createIteratorResultObject(index, false);
2636
+ },
2637
+ configurable: true,
2638
+ enumerable: true,
2639
+ writable: true
2640
+ }), Object.defineProperty($__2, Symbol.iterator, {
2641
+ value: function() {
2642
+ return this;
2643
+ },
2644
+ configurable: true,
2645
+ enumerable: true,
2646
+ writable: true
2647
+ }), $__2), {});
2648
+ function createArrayIterator(array, kind) {
2649
+ var object = toObject(array);
2650
+ var iterator = new ArrayIterator;
2651
+ iterator.iteratorObject_ = object;
2652
+ iterator.arrayIteratorNextIndex_ = 0;
2653
+ iterator.arrayIterationKind_ = kind;
2654
+ return iterator;
2655
+ }
2656
+ function entries() {
2657
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_ENTRIES);
2658
+ }
2659
+ function keys() {
2660
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_KEYS);
2661
+ }
2662
+ function values() {
2663
+ return createArrayIterator(this, ARRAY_ITERATOR_KIND_VALUES);
2664
+ }
2665
+ return {
2666
+ get entries() {
2667
+ return entries;
2668
+ },
2669
+ get keys() {
2670
+ return keys;
2671
+ },
2672
+ get values() {
2673
+ return values;
2674
+ }
2675
+ };
2676
+ });
2677
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Array.js", [], function() {
2678
+ "use strict";
2679
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Array.js";
2680
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/ArrayIterator.js"),
2681
+ entries = $__0.entries,
2682
+ keys = $__0.keys,
2683
+ jsValues = $__0.values;
2684
+ var $__1 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2685
+ checkIterable = $__1.checkIterable,
2686
+ isCallable = $__1.isCallable,
2687
+ isConstructor = $__1.isConstructor,
2688
+ maybeAddFunctions = $__1.maybeAddFunctions,
2689
+ maybeAddIterator = $__1.maybeAddIterator,
2690
+ registerPolyfill = $__1.registerPolyfill,
2691
+ toInteger = $__1.toInteger,
2692
+ toLength = $__1.toLength,
2693
+ toObject = $__1.toObject;
2694
+ function from(arrLike) {
2695
+ var mapFn = arguments[1];
2696
+ var thisArg = arguments[2];
2697
+ var C = this;
2698
+ var items = toObject(arrLike);
2699
+ var mapping = mapFn !== undefined;
2700
+ var k = 0;
2701
+ var arr,
2702
+ len;
2703
+ if (mapping && !isCallable(mapFn)) {
2704
+ throw TypeError();
2705
+ }
2706
+ if (checkIterable(items)) {
2707
+ arr = isConstructor(C) ? new C() : [];
2708
+ var $__5 = true;
2709
+ var $__6 = false;
2710
+ var $__7 = undefined;
2711
+ try {
2712
+ for (var $__3 = void 0,
2713
+ $__2 = (items)[$traceurRuntime.toProperty(Symbol.iterator)](); !($__5 = ($__3 = $__2.next()).done); $__5 = true) {
2714
+ var item = $__3.value;
2715
+ {
2716
+ if (mapping) {
2717
+ arr[k] = mapFn.call(thisArg, item, k);
2718
+ } else {
2719
+ arr[k] = item;
2720
+ }
2721
+ k++;
2722
+ }
2723
+ }
2724
+ } catch ($__8) {
2725
+ $__6 = true;
2726
+ $__7 = $__8;
2727
+ } finally {
2728
+ try {
2729
+ if (!$__5 && $__2.return != null) {
2730
+ $__2.return();
2731
+ }
2732
+ } finally {
2733
+ if ($__6) {
2734
+ throw $__7;
2735
+ }
2736
+ }
2737
+ }
2738
+ arr.length = k;
2739
+ return arr;
2740
+ }
2741
+ len = toLength(items.length);
2742
+ arr = isConstructor(C) ? new C(len) : new Array(len);
2743
+ for (; k < len; k++) {
2744
+ if (mapping) {
2745
+ arr[k] = typeof thisArg === 'undefined' ? mapFn(items[k], k) : mapFn.call(thisArg, items[k], k);
2746
+ } else {
2747
+ arr[k] = items[k];
2748
+ }
2749
+ }
2750
+ arr.length = len;
2751
+ return arr;
2752
+ }
2753
+ function of() {
2754
+ for (var items = [],
2755
+ $__9 = 0; $__9 < arguments.length; $__9++)
2756
+ items[$__9] = arguments[$__9];
2757
+ var C = this;
2758
+ var len = items.length;
2759
+ var arr = isConstructor(C) ? new C(len) : new Array(len);
2760
+ for (var k = 0; k < len; k++) {
2761
+ arr[k] = items[k];
2762
+ }
2763
+ arr.length = len;
2764
+ return arr;
2765
+ }
2766
+ function fill(value) {
2767
+ var start = arguments[1] !== (void 0) ? arguments[1] : 0;
2768
+ var end = arguments[2];
2769
+ var object = toObject(this);
2770
+ var len = toLength(object.length);
2771
+ var fillStart = toInteger(start);
2772
+ var fillEnd = end !== undefined ? toInteger(end) : len;
2773
+ fillStart = fillStart < 0 ? Math.max(len + fillStart, 0) : Math.min(fillStart, len);
2774
+ fillEnd = fillEnd < 0 ? Math.max(len + fillEnd, 0) : Math.min(fillEnd, len);
2775
+ while (fillStart < fillEnd) {
2776
+ object[fillStart] = value;
2777
+ fillStart++;
2778
+ }
2779
+ return object;
2780
+ }
2781
+ function find(predicate) {
2782
+ var thisArg = arguments[1];
2783
+ return findHelper(this, predicate, thisArg);
2784
+ }
2785
+ function findIndex(predicate) {
2786
+ var thisArg = arguments[1];
2787
+ return findHelper(this, predicate, thisArg, true);
2788
+ }
2789
+ function findHelper(self, predicate) {
2790
+ var thisArg = arguments[2];
2791
+ var returnIndex = arguments[3] !== (void 0) ? arguments[3] : false;
2792
+ var object = toObject(self);
2793
+ var len = toLength(object.length);
2794
+ if (!isCallable(predicate)) {
2795
+ throw TypeError();
2796
+ }
2797
+ for (var i = 0; i < len; i++) {
2798
+ var value = object[i];
2799
+ if (predicate.call(thisArg, value, i, object)) {
2800
+ return returnIndex ? i : value;
2801
+ }
2802
+ }
2803
+ return returnIndex ? -1 : undefined;
2804
+ }
2805
+ function polyfillArray(global) {
2806
+ var $__10 = global,
2807
+ Array = $__10.Array,
2808
+ Object = $__10.Object,
2809
+ Symbol = $__10.Symbol;
2810
+ var values = jsValues;
2811
+ if (Symbol && Symbol.iterator && Array.prototype[Symbol.iterator]) {
2812
+ values = Array.prototype[Symbol.iterator];
2813
+ }
2814
+ maybeAddFunctions(Array.prototype, ['entries', entries, 'keys', keys, 'values', values, 'fill', fill, 'find', find, 'findIndex', findIndex]);
2815
+ maybeAddFunctions(Array, ['from', from, 'of', of]);
2816
+ maybeAddIterator(Array.prototype, values, Symbol);
2817
+ maybeAddIterator(Object.getPrototypeOf([].values()), function() {
2818
+ return this;
2819
+ }, Symbol);
2820
+ }
2821
+ registerPolyfill(polyfillArray);
2822
+ return {
2823
+ get from() {
2824
+ return from;
2825
+ },
2826
+ get of() {
2827
+ return of;
2828
+ },
2829
+ get fill() {
2830
+ return fill;
2831
+ },
2832
+ get find() {
2833
+ return find;
2834
+ },
2835
+ get findIndex() {
2836
+ return findIndex;
2837
+ },
2838
+ get polyfillArray() {
2839
+ return polyfillArray;
2840
+ }
2841
+ };
2842
+ });
2843
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Array.js" + '');
2844
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Object.js", [], function() {
2845
+ "use strict";
2846
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Object.js";
2847
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2848
+ maybeAddFunctions = $__0.maybeAddFunctions,
2849
+ registerPolyfill = $__0.registerPolyfill;
2850
+ var $__1 = $traceurRuntime,
2851
+ defineProperty = $__1.defineProperty,
2852
+ getOwnPropertyDescriptor = $__1.getOwnPropertyDescriptor,
2853
+ getOwnPropertyNames = $__1.getOwnPropertyNames,
2854
+ isPrivateName = $__1.isPrivateName,
2855
+ keys = $__1.keys;
2856
+ function is(left, right) {
2857
+ if (left === right)
2858
+ return left !== 0 || 1 / left === 1 / right;
2859
+ return left !== left && right !== right;
2860
+ }
2861
+ function assign(target) {
2862
+ for (var i = 1; i < arguments.length; i++) {
2863
+ var source = arguments[i];
2864
+ var props = source == null ? [] : keys(source);
2865
+ var p = void 0,
2866
+ length = props.length;
2867
+ for (p = 0; p < length; p++) {
2868
+ var name = props[p];
2869
+ if (isPrivateName(name))
2870
+ continue;
2871
+ target[name] = source[name];
2872
+ }
2873
+ }
2874
+ return target;
2875
+ }
2876
+ function mixin(target, source) {
2877
+ var props = getOwnPropertyNames(source);
2878
+ var p,
2879
+ descriptor,
2880
+ length = props.length;
2881
+ for (p = 0; p < length; p++) {
2882
+ var name = props[p];
2883
+ if (isPrivateName(name))
2884
+ continue;
2885
+ descriptor = getOwnPropertyDescriptor(source, props[p]);
2886
+ defineProperty(target, props[p], descriptor);
2887
+ }
2888
+ return target;
2889
+ }
2890
+ function polyfillObject(global) {
2891
+ var Object = global.Object;
2892
+ maybeAddFunctions(Object, ['assign', assign, 'is', is, 'mixin', mixin]);
2893
+ }
2894
+ registerPolyfill(polyfillObject);
2895
+ return {
2896
+ get is() {
2897
+ return is;
2898
+ },
2899
+ get assign() {
2900
+ return assign;
2901
+ },
2902
+ get mixin() {
2903
+ return mixin;
2904
+ },
2905
+ get polyfillObject() {
2906
+ return polyfillObject;
2907
+ }
2908
+ };
2909
+ });
2910
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Object.js" + '');
2911
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Number.js", [], function() {
2912
+ "use strict";
2913
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Number.js";
2914
+ var $__0 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
2915
+ isNumber = $__0.isNumber,
2916
+ maybeAddConsts = $__0.maybeAddConsts,
2917
+ maybeAddFunctions = $__0.maybeAddFunctions,
2918
+ registerPolyfill = $__0.registerPolyfill,
2919
+ toInteger = $__0.toInteger;
2920
+ var $abs = Math.abs;
2921
+ var $isFinite = isFinite;
2922
+ var $isNaN = isNaN;
2923
+ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
2924
+ var MIN_SAFE_INTEGER = -Math.pow(2, 53) + 1;
2925
+ var EPSILON = Math.pow(2, -52);
2926
+ function NumberIsFinite(number) {
2927
+ return isNumber(number) && $isFinite(number);
2928
+ }
2929
+ ;
2930
+ function isInteger(number) {
2931
+ return NumberIsFinite(number) && toInteger(number) === number;
2932
+ }
2933
+ function NumberIsNaN(number) {
2934
+ return isNumber(number) && $isNaN(number);
2935
+ }
2936
+ ;
2937
+ function isSafeInteger(number) {
2938
+ if (NumberIsFinite(number)) {
2939
+ var integral = toInteger(number);
2940
+ if (integral === number)
2941
+ return $abs(integral) <= MAX_SAFE_INTEGER;
2942
+ }
2943
+ return false;
2944
+ }
2945
+ function polyfillNumber(global) {
2946
+ var Number = global.Number;
2947
+ maybeAddConsts(Number, ['MAX_SAFE_INTEGER', MAX_SAFE_INTEGER, 'MIN_SAFE_INTEGER', MIN_SAFE_INTEGER, 'EPSILON', EPSILON]);
2948
+ maybeAddFunctions(Number, ['isFinite', NumberIsFinite, 'isInteger', isInteger, 'isNaN', NumberIsNaN, 'isSafeInteger', isSafeInteger]);
2949
+ }
2950
+ registerPolyfill(polyfillNumber);
2951
+ return {
2952
+ get MAX_SAFE_INTEGER() {
2953
+ return MAX_SAFE_INTEGER;
2954
+ },
2955
+ get MIN_SAFE_INTEGER() {
2956
+ return MIN_SAFE_INTEGER;
2957
+ },
2958
+ get EPSILON() {
2959
+ return EPSILON;
2960
+ },
2961
+ get isFinite() {
2962
+ return NumberIsFinite;
2963
+ },
2964
+ get isInteger() {
2965
+ return isInteger;
2966
+ },
2967
+ get isNaN() {
2968
+ return NumberIsNaN;
2969
+ },
2970
+ get isSafeInteger() {
2971
+ return isSafeInteger;
2972
+ },
2973
+ get polyfillNumber() {
2974
+ return polyfillNumber;
2975
+ }
2976
+ };
2977
+ });
2978
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Number.js" + '');
2979
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/fround.js", [], function() {
2980
+ "use strict";
2981
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/fround.js";
2982
+ var $isFinite = isFinite;
2983
+ var $isNaN = isNaN;
2984
+ var $__0 = Math,
2985
+ LN2 = $__0.LN2,
2986
+ abs = $__0.abs,
2987
+ floor = $__0.floor,
2988
+ log = $__0.log,
2989
+ min = $__0.min,
2990
+ pow = $__0.pow;
2991
+ function packIEEE754(v, ebits, fbits) {
2992
+ var bias = (1 << (ebits - 1)) - 1,
2993
+ s,
2994
+ e,
2995
+ f,
2996
+ ln,
2997
+ i,
2998
+ bits,
2999
+ str,
3000
+ bytes;
3001
+ function roundToEven(n) {
3002
+ var w = floor(n),
3003
+ f = n - w;
3004
+ if (f < 0.5)
3005
+ return w;
3006
+ if (f > 0.5)
3007
+ return w + 1;
3008
+ return w % 2 ? w + 1 : w;
3009
+ }
3010
+ if (v !== v) {
3011
+ e = (1 << ebits) - 1;
3012
+ f = pow(2, fbits - 1);
3013
+ s = 0;
3014
+ } else if (v === Infinity || v === -Infinity) {
3015
+ e = (1 << ebits) - 1;
3016
+ f = 0;
3017
+ s = (v < 0) ? 1 : 0;
3018
+ } else if (v === 0) {
3019
+ e = 0;
3020
+ f = 0;
3021
+ s = (1 / v === -Infinity) ? 1 : 0;
3022
+ } else {
3023
+ s = v < 0;
3024
+ v = abs(v);
3025
+ if (v >= pow(2, 1 - bias)) {
3026
+ e = min(floor(log(v) / LN2), 1023);
3027
+ f = roundToEven(v / pow(2, e) * pow(2, fbits));
3028
+ if (f / pow(2, fbits) >= 2) {
3029
+ e = e + 1;
3030
+ f = 1;
3031
+ }
3032
+ if (e > bias) {
3033
+ e = (1 << ebits) - 1;
3034
+ f = 0;
3035
+ } else {
3036
+ e = e + bias;
3037
+ f = f - pow(2, fbits);
3038
+ }
3039
+ } else {
3040
+ e = 0;
3041
+ f = roundToEven(v / pow(2, 1 - bias - fbits));
3042
+ }
3043
+ }
3044
+ bits = [];
3045
+ for (i = fbits; i; i -= 1) {
3046
+ bits.push(f % 2 ? 1 : 0);
3047
+ f = floor(f / 2);
3048
+ }
3049
+ for (i = ebits; i; i -= 1) {
3050
+ bits.push(e % 2 ? 1 : 0);
3051
+ e = floor(e / 2);
3052
+ }
3053
+ bits.push(s ? 1 : 0);
3054
+ bits.reverse();
3055
+ str = bits.join('');
3056
+ bytes = [];
3057
+ while (str.length) {
3058
+ bytes.push(parseInt(str.substring(0, 8), 2));
3059
+ str = str.substring(8);
3060
+ }
3061
+ return bytes;
3062
+ }
3063
+ function unpackIEEE754(bytes, ebits, fbits) {
3064
+ var bits = [],
3065
+ i,
3066
+ j,
3067
+ b,
3068
+ str,
3069
+ bias,
3070
+ s,
3071
+ e,
3072
+ f;
3073
+ for (i = bytes.length; i; i -= 1) {
3074
+ b = bytes[i - 1];
3075
+ for (j = 8; j; j -= 1) {
3076
+ bits.push(b % 2 ? 1 : 0);
3077
+ b = b >> 1;
3078
+ }
3079
+ }
3080
+ bits.reverse();
3081
+ str = bits.join('');
3082
+ bias = (1 << (ebits - 1)) - 1;
3083
+ s = parseInt(str.substring(0, 1), 2) ? -1 : 1;
3084
+ e = parseInt(str.substring(1, 1 + ebits), 2);
3085
+ f = parseInt(str.substring(1 + ebits), 2);
3086
+ if (e === (1 << ebits) - 1) {
3087
+ return f !== 0 ? NaN : s * Infinity;
3088
+ } else if (e > 0) {
3089
+ return s * pow(2, e - bias) * (1 + f / pow(2, fbits));
3090
+ } else if (f !== 0) {
3091
+ return s * pow(2, -(bias - 1)) * (f / pow(2, fbits));
3092
+ } else {
3093
+ return s < 0 ? -0 : 0;
3094
+ }
3095
+ }
3096
+ function unpackF32(b) {
3097
+ return unpackIEEE754(b, 8, 23);
3098
+ }
3099
+ function packF32(v) {
3100
+ return packIEEE754(v, 8, 23);
3101
+ }
3102
+ function fround(x) {
3103
+ if (x === 0 || !$isFinite(x) || $isNaN(x)) {
3104
+ return x;
3105
+ }
3106
+ return unpackF32(packF32(Number(x)));
3107
+ }
3108
+ return {get fround() {
3109
+ return fround;
3110
+ }};
3111
+ });
3112
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/Math.js", [], function() {
3113
+ "use strict";
3114
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/Math.js";
3115
+ var jsFround = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/fround.js").fround;
3116
+ var $__1 = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js"),
3117
+ maybeAddFunctions = $__1.maybeAddFunctions,
3118
+ registerPolyfill = $__1.registerPolyfill,
3119
+ toUint32 = $__1.toUint32;
3120
+ var $isFinite = isFinite;
3121
+ var $isNaN = isNaN;
3122
+ var $__2 = Math,
3123
+ abs = $__2.abs,
3124
+ ceil = $__2.ceil,
3125
+ exp = $__2.exp,
3126
+ floor = $__2.floor,
3127
+ log = $__2.log,
3128
+ pow = $__2.pow,
3129
+ sqrt = $__2.sqrt;
3130
+ function clz32(x) {
3131
+ x = toUint32(+x);
3132
+ if (x == 0)
3133
+ return 32;
3134
+ var result = 0;
3135
+ if ((x & 0xFFFF0000) === 0) {
3136
+ x <<= 16;
3137
+ result += 16;
3138
+ }
3139
+ ;
3140
+ if ((x & 0xFF000000) === 0) {
3141
+ x <<= 8;
3142
+ result += 8;
3143
+ }
3144
+ ;
3145
+ if ((x & 0xF0000000) === 0) {
3146
+ x <<= 4;
3147
+ result += 4;
3148
+ }
3149
+ ;
3150
+ if ((x & 0xC0000000) === 0) {
3151
+ x <<= 2;
3152
+ result += 2;
3153
+ }
3154
+ ;
3155
+ if ((x & 0x80000000) === 0) {
3156
+ x <<= 1;
3157
+ result += 1;
3158
+ }
3159
+ ;
3160
+ return result;
3161
+ }
3162
+ function imul(x, y) {
3163
+ x = toUint32(+x);
3164
+ y = toUint32(+y);
3165
+ var xh = (x >>> 16) & 0xffff;
3166
+ var xl = x & 0xffff;
3167
+ var yh = (y >>> 16) & 0xffff;
3168
+ var yl = y & 0xffff;
3169
+ return xl * yl + (((xh * yl + xl * yh) << 16) >>> 0) | 0;
3170
+ }
3171
+ function sign(x) {
3172
+ x = +x;
3173
+ if (x > 0)
3174
+ return 1;
3175
+ if (x < 0)
3176
+ return -1;
3177
+ return x;
3178
+ }
3179
+ function log10(x) {
3180
+ return log(x) * 0.434294481903251828;
3181
+ }
3182
+ function log2(x) {
3183
+ return log(x) * 1.442695040888963407;
3184
+ }
3185
+ function log1p(x) {
3186
+ x = +x;
3187
+ if (x < -1 || $isNaN(x)) {
3188
+ return NaN;
3189
+ }
3190
+ if (x === 0 || x === Infinity) {
3191
+ return x;
3192
+ }
3193
+ if (x === -1) {
3194
+ return -Infinity;
3195
+ }
3196
+ var result = 0;
3197
+ var n = 50;
3198
+ if (x < 0 || x > 1) {
3199
+ return log(1 + x);
3200
+ }
3201
+ for (var i = 1; i < n; i++) {
3202
+ if ((i % 2) === 0) {
3203
+ result -= pow(x, i) / i;
3204
+ } else {
3205
+ result += pow(x, i) / i;
3206
+ }
3207
+ }
3208
+ return result;
3209
+ }
3210
+ function expm1(x) {
3211
+ x = +x;
3212
+ if (x === -Infinity) {
3213
+ return -1;
3214
+ }
3215
+ if (!$isFinite(x) || x === 0) {
3216
+ return x;
3217
+ }
3218
+ return exp(x) - 1;
3219
+ }
3220
+ function cosh(x) {
3221
+ x = +x;
3222
+ if (x === 0) {
3223
+ return 1;
3224
+ }
3225
+ if ($isNaN(x)) {
3226
+ return NaN;
3227
+ }
3228
+ if (!$isFinite(x)) {
3229
+ return Infinity;
3230
+ }
3231
+ if (x < 0) {
3232
+ x = -x;
3233
+ }
3234
+ if (x > 21) {
3235
+ return exp(x) / 2;
3236
+ }
3237
+ return (exp(x) + exp(-x)) / 2;
3238
+ }
3239
+ function sinh(x) {
3240
+ x = +x;
3241
+ if (!$isFinite(x) || x === 0) {
3242
+ return x;
3243
+ }
3244
+ return (exp(x) - exp(-x)) / 2;
3245
+ }
3246
+ function tanh(x) {
3247
+ x = +x;
3248
+ if (x === 0)
3249
+ return x;
3250
+ if (!$isFinite(x))
3251
+ return sign(x);
3252
+ var exp1 = exp(x);
3253
+ var exp2 = exp(-x);
3254
+ return (exp1 - exp2) / (exp1 + exp2);
3255
+ }
3256
+ function acosh(x) {
3257
+ x = +x;
3258
+ if (x < 1)
3259
+ return NaN;
3260
+ if (!$isFinite(x))
3261
+ return x;
3262
+ return log(x + sqrt(x + 1) * sqrt(x - 1));
3263
+ }
3264
+ function asinh(x) {
3265
+ x = +x;
3266
+ if (x === 0 || !$isFinite(x))
3267
+ return x;
3268
+ if (x > 0)
3269
+ return log(x + sqrt(x * x + 1));
3270
+ return -log(-x + sqrt(x * x + 1));
3271
+ }
3272
+ function atanh(x) {
3273
+ x = +x;
3274
+ if (x === -1) {
3275
+ return -Infinity;
3276
+ }
3277
+ if (x === 1) {
3278
+ return Infinity;
3279
+ }
3280
+ if (x === 0) {
3281
+ return x;
3282
+ }
3283
+ if ($isNaN(x) || x < -1 || x > 1) {
3284
+ return NaN;
3285
+ }
3286
+ return 0.5 * log((1 + x) / (1 - x));
3287
+ }
3288
+ function hypot(x, y) {
3289
+ var length = arguments.length;
3290
+ var args = new Array(length);
3291
+ var max = 0;
3292
+ for (var i = 0; i < length; i++) {
3293
+ var n = arguments[i];
3294
+ n = +n;
3295
+ if (n === Infinity || n === -Infinity)
3296
+ return Infinity;
3297
+ n = abs(n);
3298
+ if (n > max)
3299
+ max = n;
3300
+ args[i] = n;
3301
+ }
3302
+ if (max === 0)
3303
+ max = 1;
3304
+ var sum = 0;
3305
+ var compensation = 0;
3306
+ for (var i = 0; i < length; i++) {
3307
+ var n = args[i] / max;
3308
+ var summand = n * n - compensation;
3309
+ var preliminary = sum + summand;
3310
+ compensation = (preliminary - sum) - summand;
3311
+ sum = preliminary;
3312
+ }
3313
+ return sqrt(sum) * max;
3314
+ }
3315
+ function trunc(x) {
3316
+ x = +x;
3317
+ if (x > 0)
3318
+ return floor(x);
3319
+ if (x < 0)
3320
+ return ceil(x);
3321
+ return x;
3322
+ }
3323
+ var fround,
3324
+ f32;
3325
+ if (typeof Float32Array === 'function') {
3326
+ f32 = new Float32Array(1);
3327
+ fround = function(x) {
3328
+ f32[0] = Number(x);
3329
+ return f32[0];
3330
+ };
3331
+ } else {
3332
+ fround = jsFround;
3333
+ }
3334
+ ;
3335
+ function cbrt(x) {
3336
+ x = +x;
3337
+ if (x === 0)
3338
+ return x;
3339
+ var negate = x < 0;
3340
+ if (negate)
3341
+ x = -x;
3342
+ var result = pow(x, 1 / 3);
3343
+ return negate ? -result : result;
3344
+ }
3345
+ function polyfillMath(global) {
3346
+ var Math = global.Math;
3347
+ maybeAddFunctions(Math, ['acosh', acosh, 'asinh', asinh, 'atanh', atanh, 'cbrt', cbrt, 'clz32', clz32, 'cosh', cosh, 'expm1', expm1, 'fround', fround, 'hypot', hypot, 'imul', imul, 'log10', log10, 'log1p', log1p, 'log2', log2, 'sign', sign, 'sinh', sinh, 'tanh', tanh, 'trunc', trunc]);
3348
+ }
3349
+ registerPolyfill(polyfillMath);
3350
+ return {
3351
+ get clz32() {
3352
+ return clz32;
3353
+ },
3354
+ get imul() {
3355
+ return imul;
3356
+ },
3357
+ get sign() {
3358
+ return sign;
3359
+ },
3360
+ get log10() {
3361
+ return log10;
3362
+ },
3363
+ get log2() {
3364
+ return log2;
3365
+ },
3366
+ get log1p() {
3367
+ return log1p;
3368
+ },
3369
+ get expm1() {
3370
+ return expm1;
3371
+ },
3372
+ get cosh() {
3373
+ return cosh;
3374
+ },
3375
+ get sinh() {
3376
+ return sinh;
3377
+ },
3378
+ get tanh() {
3379
+ return tanh;
3380
+ },
3381
+ get acosh() {
3382
+ return acosh;
3383
+ },
3384
+ get asinh() {
3385
+ return asinh;
3386
+ },
3387
+ get atanh() {
3388
+ return atanh;
3389
+ },
3390
+ get hypot() {
3391
+ return hypot;
3392
+ },
3393
+ get trunc() {
3394
+ return trunc;
3395
+ },
3396
+ get fround() {
3397
+ return fround;
3398
+ },
3399
+ get cbrt() {
3400
+ return cbrt;
3401
+ },
3402
+ get polyfillMath() {
3403
+ return polyfillMath;
3404
+ }
3405
+ };
3406
+ });
3407
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/Math.js" + '');
3408
+ System.registerModule("traceur-runtime@0.0.85/src/runtime/polyfills/polyfills.js", [], function() {
3409
+ "use strict";
3410
+ var __moduleName = "traceur-runtime@0.0.85/src/runtime/polyfills/polyfills.js";
3411
+ var polyfillAll = System.get("traceur-runtime@0.0.85/src/runtime/polyfills/utils.js").polyfillAll;
3412
+ polyfillAll(Reflect.global);
3413
+ var setupGlobals = $traceurRuntime.setupGlobals;
3414
+ $traceurRuntime.setupGlobals = function(global) {
3415
+ setupGlobals(global);
3416
+ polyfillAll(global);
3417
+ };
3418
+ return {};
3419
+ });
3420
+ System.get("traceur-runtime@0.0.85/src/runtime/polyfills/polyfills.js" + '');