Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignore build artifacts again.

  • Loading branch information...
commit 9b6757f8479dd581dacc6055ea855438ac1dcd6c 1 parent 68878e1
@jcoglan authored
Showing with 2 additions and 10,773 deletions.
  1. +2 −3 .gitignore
  2. +0 −467 build/CHANGELOG.txt
  3. +0 −38 build/LICENSE.txt
  4. +0 −38 build/README.txt
  5. +0 −208 build/bin/jsbuild
  6. +0 −3  build/index.js
  7. BIN  build/min/assets/bullet_go.png
  8. +0 −183 build/min/assets/testui.css
  9. +0 −2  build/min/benchmark.js
  10. +0 −8 build/min/benchmark.js.map
  11. +0 −2  build/min/command.js
  12. +0 −8 build/min/command.js.map
  13. +0 −2  build/min/comparable.js
  14. +0 −8 build/min/comparable.js.map
  15. +0 −2  build/min/console.js
  16. +0 −8 build/min/console.js.map
  17. +0 −2  build/min/constant_scope.js
  18. +0 −8 build/min/constant_scope.js.map
  19. +0 −2  build/min/core.js
  20. +0 −8 build/min/core.js.map
  21. +0 −2  build/min/decorator.js
  22. +0 −8 build/min/decorator.js.map
  23. +0 −2  build/min/deferrable.js
  24. +0 −8 build/min/deferrable.js.map
  25. +0 −2  build/min/dom.js
  26. +0 −8 build/min/dom.js.map
  27. +0 −2  build/min/enumerable.js
  28. +0 −8 build/min/enumerable.js.map
  29. +0 −2  build/min/forwardable.js
  30. +0 −8 build/min/forwardable.js.map
  31. +0 −2  build/min/hash.js
  32. +0 −8 build/min/hash.js.map
  33. +0 −2  build/min/linked_list.js
  34. +0 −8 build/min/linked_list.js.map
  35. +0 −2  build/min/loader-browser.js
  36. +0 −8 build/min/loader-browser.js.map
  37. +0 −2  build/min/loader.js
  38. +0 −8 build/min/loader.js.map
  39. +0 −2  build/min/method_chain.js
  40. +0 −8 build/min/method_chain.js.map
  41. +0 −2  build/min/observable.js
  42. +0 −8 build/min/observable.js.map
  43. +0 −2  build/min/package-browser.js
  44. +0 −8 build/min/package-browser.js.map
  45. +0 −2  build/min/package.js
  46. +0 −8 build/min/package.js.map
  47. +0 −2  build/min/proxy.js
  48. +0 −8 build/min/proxy.js.map
  49. +0 −2  build/min/range.js
  50. +0 −8 build/min/range.js.map
  51. +0 −2  build/min/set.js
  52. +0 −8 build/min/set.js.map
  53. +0 −2  build/min/stack_trace.js
  54. +0 −8 build/min/stack_trace.js.map
  55. +0 −2  build/min/state.js
  56. +0 −8 build/min/state.js.map
  57. +0 −2  build/min/test.js
  58. +0 −8 build/min/test.js.map
  59. +0 −2  build/min/tsort.js
  60. +0 −8 build/min/tsort.js.map
  61. +0 −28 build/package.json
  62. BIN  build/src/assets/bullet_go.png
  63. +0 −183 build/src/assets/testui.css
  64. +0 −70 build/src/benchmark.js
  65. +0 −93 build/src/command.js
  66. +0 −37 build/src/comparable.js
  67. +0 −323 build/src/console.js
  68. +0 −44 build/src/constant_scope.js
  69. +0 −732 build/src/core.js
  70. +0 −50 build/src/decorator.js
  71. +0 −70 build/src/deferrable.js
  72. +0 −154 build/src/dom.js
  73. +0 −577 build/src/enumerable.js
  74. +0 −22 build/src/forwardable.js
  75. +0 −412 build/src/hash.js
  76. +0 −114 build/src/linked_list.js
  77. +0 −691 build/src/loader-browser.js
  78. +0 −828 build/src/loader.js
  79. +0 −229 build/src/method_chain.js
  80. +0 −56 build/src/observable.js
  81. +0 −556 build/src/package-browser.js
  82. +0 −693 build/src/package.js
  83. +0 −61 build/src/proxy.js
  84. +0 −142 build/src/range.js
  85. +0 −345 build/src/set.js
  86. +0 −177 build/src/stack_trace.js
  87. +0 −103 build/src/state.js
  88. +0 −2,707 build/src/test.js
  89. +0 −76 build/src/tsort.js
View
5 .gitignore
@@ -1,5 +1,4 @@
Gemfile.lock
+build
node_modules
-pdoc
-*~
-.redcar
+
View
467 build/CHANGELOG.txt
@@ -1,467 +0,0 @@
-Version 3.0.9
-August 9 2012
-================================================================
-
-* Correct the name of 'directory' param to jsbuild
-
-
-Version 3.0.8
-August 4 2012
-================================================================
-
-* Ship source maps for minified JavaScript files
-
-* Fix a bug in stubbing library that makes it easier to stub
- methods on prototypes
-
-* Catch uncaught errors on Node and in the browser, so errors
- that happen in async code don't crash the test process
-
-* Make assertEqual() work with Date() objects
-
-
-Version 3.0.7
-TestSwarm build: http://swarm.jcoglan.com/job/121/
-February 22 2012
-================================================================
-
-* Fix a race condition in the AsyncSteps scheduling code
-
-* Make JS.Console stringify DOM nodes successfully in Chrome
-
-
-Version 3.0.6
-TestSwarm build: http://swarm.jcoglan.com/job/119/
-February 20 2012
-================================================================
-
-* Allow packages to contain multiple files as a convenience
- for loading 3rd-party libraries
-
-* Fix script loading on Adobe AIR
-
-* Fix fetching of scripts over HTTPS in jsbuild, and fail if
- requests return a non-200 status
-
-* Make sure Module and Method have all the Kernel methods
-
-* Make tests raise an error if a block takes a resume-callback
- but doesn't call it after 10 seconds
-
-* Change TestSuite.forEach so that test suites run much faster
-
-* Show stack traces for errors during tests, and use sourceURL
- mapping to improve reporting of errors from scripts loaded
- over XHR
-
-
-Version 3.0.5
-TestSwarm build: http://swarm.jcoglan.com/job/109/
-December 6 2011
-================================================================
-
-* Allow yields() and returns() to be used on the same stub
-
-* Remove deprecation warnings about Node's sys module
-
-
-Version 3.0.4
-TestSwarm build: http://swarm.jcoglan.com/job/97/
-August 18 2011
-================================================================
-
-* Add JS.load() function as shorthand method for loading files,
- and JS.cacheBust setting for bypassing the browser cache
-
-* Make jsbuild error output nicer, e.g. don't show Node backtrace
-
-
-Version 3.0.3
-TestSwarm build: http://swarm.jcoglan.com/job/90/
-August 15 2011
-================================================================
-
-* Allow constructors expected to be called with 'new' to be mocked
- and stubbed in JS.Test
-
-* Enhance browser UI with user agent and success indicator and
- provide controls for running individual groups of tests
-
-* Send entire test UI snapshot to TestSwarm rather than just a
- short status summary
-
-* Fix serialization of objects containing circular references
- in JS.Console.convert()
-
-* Improvements to jsbuild for managing bundles of scripts
-
-
-Version 3.0.2
-TestSwarm build: http://swarm.jcoglan.com/job/70/
-July 16 2011
-================================================================
-
-* Exit with non-zero exit status from JS.Test.autorun() if there
- are any test failures
-
-* Log test progress at JSON so we can pick up test results using
- PhantomJS (http://www.phantomjs.org)
-
-* Allow post-test reports to cause the build to fail by returning
- false from report(). e.g. Coverage can cause a red build if it
- finds methods that were not called
-
-* Use synchronous console.warn() to produce output in Node, and
- System.out.print[ln] on Rhino platforms
-
-
-Version 3.0.1
-TestSwarm build: http://swarm.jcoglan.com/job/31/
-June 17 2011
-================================================================
-
-* Adds NPM package and jsbuild command-line program for bundling
- required modules for deployment, see
- http://jsclass.jcoglan.com/packages/bundling.html
-
-* When using JS.require(), scripts from the same domain are
- prefetched over XHR to maximize parallel downloading
-
-* Fixes support for negative mock expectations, e.g.
- expect(object, 'm').exactly(0)
-
-* Fixes scheduling bugs in FakeClock so that current time remains
- correct when removing and restoring timers
-
-* Avoids stubbing of setTimeout() inside AsyncSteps, otherwise
- it becomes very hard to use with FakeClock
-
-
-Version 3.0.0
-TestSwarm build: http://swarm.jcoglan.com/job/19/
-February 28 2011
-================================================================
-
-* All components now run on a much wider array of platforms,
- see http://jsclass.jcoglan.com/platforms.html
-
-* JS.Class is now tested using its own test framework, JS.Test.
- See http://jsclass.jcoglan.com/testing.html
-
-* New libraries: Benchmark, Console, Deferrable, OrderedHash,
- Range, OrderedSet, TSort
-
-* HashSet has become the base Set implementation, and the
- original Set implementation has been removed
-
-* StackTrace has been totally overhauled to support extensible
- user-defined tracing functionality
-
-* New core method Module#alias() for aliasing methods
-
-* User-defined keyword methods using Method.keyword()
-
-* JS.Class no longer supports subclassing the Class class
-
-* Module#instanceMethod() returns a Method, not a Function
-
-* Enumerable#grep() now supports selecting by type, e.g.
- items.grep(Array). It does not support functional predicates
- like items.grep(function(x) { return x == 0 }), you should use
- Enumerable#select() for this
-
-* Objects with the same properties, and Arrays with the same
- elements are now considered equal when used as Hash keys
-
-* MethodChain#fire() is now called MethodChain#__exec__()
-
-* JS.Ruby has been removed
-
-* JS.State now adds states() as a class method, rather than a
- macro in the class body. All classes using 'inline' states
- MUST call this method to declare and resolve their states
-
-
-Version 2.1.5
-June 5 2010
-================================================================
-
-* Adds support for Node, Narwhal and Windows Script Host to the
- JS.Package loading system.
-
-* Adds an `autoload` macro to the package system for quickly
- configuring modules using filename conventions.
-
-* Renames `require()` to `JS.require()` so as not to conflict
- with CommonJS module API.
-
-
-Version 2.1.4
-March 9 2010
-================================================================
-
-* Rewritten the package loader to use event listeners to trigger
- loading of dependencies rather than polling for readiness.
-
-* package.js and loader.js no longer depend on or include the
- JS.Class core; you must call `require()` to use JS.Class,
- JS.Module, JS.Interface or JS.Singleton.
-
-* Fix bug in browser package loader in environments that have
- a global `console` object with no `info()` method.
-
-
-Version 2.1.3
-October 10 2009
-================================================================
-
-* Fixes the load() function in the Packages DSL, and adds some
- caching to improve lookup times for finding a package by the
- name of its provided objects.
-
-* Non-existent package errors are now defered until you require()
- an object rather than being thrown at package definition time.
- This means require() won't complain about being passed native
- objects or objects loaded by other means, as long as the
- required object does actually exist.
-
-* MethodChain now adds instance methods from Modules, and adds
- methods that were defined *before* MethodChain was loaded.
-
-* State now supports callSuper() to state methods imported from
- mixins; previously you could only callSuper() to the superclass.
-
-
-Version 2.1.2
-August 11 2009
-================================================================
-
-* LinkedList was defined twice in the stdlib.js bundle; this
- is now fixed [thanks @skim].
-
-
-Version 2.1.1
-July 6 2009
-================================================================
-
-* Fixes a couple of Set bugs: Set#isProperSuperset had a missing
- argument, and incomparable objects were being allowed into
- SortedSet collections.
-
-
-Version 2.1.0
-June 8 2009
-================================================================
-
-* New libraries: ConstantScope, Hash, HashSet.
-
-* Improved package manager, supports parallel downloads in
- web browsers and now also works on server-side platforms
- (tested on SpiderMonkey, Rhino and V8). Also supports custom
- loader functions for integration with Google, YUI etc.
-
-* Enumerable updated with Ruby 1.9 methods, enumerators, and
- Symbol#to_proc functionality when passing strings to iterators.
- Any object with a toFunction() method can be used as an iterator.
- Search methods now use equals() where possible.
-
-* ObjectMethods module is now called Kernel.
-
-* New Kernel methods: tap(), equals(), hash(), enumFor() and methods(),
- and new Module methods: instanceMethods() and match().
-
-* The double inclusion problem is now fixed, i.e. the following
- works in JS.Class 2.1:
-
- A = new JS.Module();
- C = new JS.Class({ include: A });
- B = new JS.Module({ foo: function() { return 'B#foo' } });
- A.include(B);
- D = new JS.Class({ include: A });
-
- new C().foo() // -> 'B#foo'
- new D().foo() // -> 'B#foo'
-
- (See http://eigenclass.org/hiki/The+double+inclusion+problem)
-
-* Ancestor and method lookups are cached for improved performance.
-
-* Automatic generation of displayName on methods for integration
- with the WebKit debugger.
-
-* API change: Set#classify now returns a Hash, not an Object.
-
-* PDoc documentation for the core classes.
-
-
-Version 1.6.3
-March 4 2009
-================================================================
-
-* Fixes a bug caused by Function#prototype becoming a non-
- enumerable property in Safari 4, causing classes to inherit
- from themselves and leading to stack overflows.
-
-
-Version 2.0.2
-October 1 2008
-================================================================
-
-* The function returned by object.method('callSuper') now behaves
- correctly when called after the containing method has returned.
-
-
-Version 1.6.2
-October 1 2008
-================================================================
-
-* Fixes some bugs to make various forEach() methods more robust.
-
-
-Version 2.0.1
-September 14 2008
-================================================================
-
-* Fixes a super()-related bug in Command.
-
-* Better handling of 'include' and 'extend' directives such
- that these are processed before all the other methods are
- added. This allows mixins to override parts of the including
- class to affect future method definitions.
-
-* Module#include() has been fixed so that overriding it produces
- more sane behaviour with respect to classes that delegate to
- a module behind the scenes to store methods.
-
-
-Version 2.0.0
-August 12 2008
-================================================================
-
-* Complete rewrite of the core, including a proper implementation
- of Modules with all inheritance semantics based around this.
- Ruby-style multiple inheritance now works correctly, and
- callSuper() can call methods from mixins.
-
-* Class and Module are now classes, and must be created using
- the 'new' keyword.
-
-* Some backward compatibility breaks; see http://jsclass.jcoglan.com/upgrade.html
-
-* New method: Object#__eigen__() returns an object's metaclass.
-
-* Performance of super() calls is much improved.
-
-* New libraries: Package, Set, SortedSet and StackTrace.
-
-* Package provides a dependency-aware system for loading new
- JavaScript files on demand.
-
-
-Version 1.6.1
-April 17 2008
-================================================================
-
-* Fixes bug in Decorator and Proxy.Virtual caused by the 'klass'
- property being treated as a method and delegated.
-
-
-Version 1.6.0
-April 10 2008
-================================================================
-
-* Adds a DSL for defining classes in a more Ruby-like way using
- procedures rather than declarations (experimental).
-
-* New libraries: Forwardable, State.
-
-* The extended() hook is now supported.
-
-* The 'implement' directive is no longer supported.
-
-
-Version 1.5.0
-February 25 2008
-================================================================
-
-* Adds a standard library, including Command, Comparable,
- Decorator, Enumerable, LinkedList, MethodChain, Observable
- and Proxy.Virtual.
-
-* Renames _super() to callSuper() to avoid problems with PackR's
- private variable shrinking.
-
-* Adds an Object#wait() method that calls a MethodChain on the
- object using setTimeout().
-
-
-Version 1.0.1
-January 14 2008
-================================================================
-
-* Memoizes calls to Object#method() so that the same function
- object is returned each time.
-
-
-Version 1.0.0
-January 4 2008
-================================================================
-
-* Singleton methods that call super() are now supported.
-
-* Object#is_a() has been renamed to Object#isA().
-
-* Classes now support inherited() and included() hooks.
-
-* Adds Interface class for easier duck-typing checks across
- several methods.
-
-* New directive 'implement' can be used to check that a class
- implements some interfaces.
-
-* Singletons are now supported as class-like definitions that
- yield a single object.
-
-* Module has been added as a way to protect sets of methods by
- wrapping them in a closure.
-
-* Removes the bindMethods class flag in favour of the more
- efficient and Ruby-like Ojbect#method(). This can also be
- used on classes to get bound class methods.
-
-* Exceptions thrown while calling super are no longer swallowed
- inside the framework.
-
-* Class#method() is now Class#instanceMethod.
-
-
-Version 0.9.2
-November 13 2007
-================================================================
-
-* Fixes bug caused by multiple methods in the same call stack
- clobbering _super().
-
-* Fixes some inheritance bugs related to class methods and
- built-in instance methods.
-
-* Improves performance by bootstrapping JavaScript's prototypes
- for instance method inheritance.
-
-* Allows inheritance from non-JS.Class-based classes.
-
-
-Version 0.9.1
-November 12 2007
-================================================================
-
-* Improves performance by checking whether methods use _super()
- and only wrapping where necessary.
-
-
-Version 0.9.0
-November 11 2007
-================================================================
-
-* Initial release. Features single inheritance and _super().
-
View
38 build/LICENSE.txt
@@ -1,38 +0,0 @@
-JS.Class: Ruby-style JavaScript
-http://jsclass.jcoglan.com
-Copyright (c) 2007-2012 James Coglan and contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-Parts of the Software build on techniques from the following open-source
-projects:
-
-* The Prototype framework, (c) 2005-2010 Sam Stephenson (MIT license)
-* Alex Arnell's Inheritance library, (c) 2006 Alex Arnell (MIT license)
-* Base, (c) 2006-2010 Dean Edwards (MIT license)
-
-The Software contains direct translations to JavaScript of these open-source
-Ruby libraries:
-
-* Ruby standard library modules, (c) Yukihiro Matsumoto and contributors (Ruby license)
-* Test::Unit, (c) 2000-2003 Nathaniel Talbott (Ruby license)
-* Context, (c) 2008 Jeremy McAnally (MIT license)
-* EventMachine::Deferrable, (c) 2006-07 Francis Cianfrocca (Ruby license)
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
View
38 build/README.txt
@@ -1,38 +0,0 @@
-JS.Class - Ruby-style JavaScript
-===
-
-http://jsclass.jcoglan.com
-
-JS.Class is a JavaScript library for building object-oriented programs using
-Ruby idioms. It implements Ruby's core object/module/class system in JavaScript,
-as well as several standard Ruby libraries and various other extensions.
-
-
-Development
----
-
-To hack on JS.Class you'll need to be able to build it and run the tests. You
-need Ruby and Jake to do this:
-
- gem install jake
- cd path/to/js.class
- jake
-
-This will build the project and create files in the `build` directory. To run
-the tests:
-
-* Run `test/console.js` with a command-line interpreter
-* Open `test/browser.html` in a web browser
-* For XULRunner run `xulrunner -app test/xulenv/application.ini`
-* For AIR run `adl test/airenv/app.xml`
-
-Some interpreters will skip the tests that use asynchronous APIs, but the tests
-should work using all the platforms listed in `site/src/pages/platforms.haml`.
-
-
-License
----
-
-Distributed under the MIT license.
-Copyright (c) 2007-2012 James Coglan
-
View
208 build/bin/jsbuild
@@ -1,208 +0,0 @@
-#!/usr/bin/env node
-
-var fs = require('fs'),
- http = require('http'),
- https = require('https'),
- path = require('path'),
- url = require('url'),
-
- nopt = require('nopt'),
-
- options = { manifest: path,
- root: path,
- external: Boolean,
- packages: Boolean,
- bundles: path,
- output: String,
- directory: path
- },
-
- shorts = { 'm': '--manifest',
- 'r': '--root',
- 'e': '--external',
- 'p': '--packages',
- 'P': '--no-packages',
- 'b': '--bundles',
- 'o': '--output',
- 'd': '--directory'
- },
-
- outputs = ['code', 'paths'],
-
- params = nopt(options, shorts),
- include = params.argv.remain.slice(),
- dir = new RegExp('^' + path.resolve(params.directory || '.') + '/')
-
-JSCLASS_PATH = path.dirname(__filename) + '/../src'
-require(JSCLASS_PATH + '/loader')
-JS.require('JS.Console')
-var C = JS.Console
-
-var die = function(message) {
- C.consoleFormat('white', 'bgred')
- C.print('ERROR')
- C.reset()
- C.puts(' ' + message)
- process.exit(1)
-};
-
-if (params.output && outputs.indexOf(params.output) < 0)
- die('--output must be one of: ' + outputs.join(', '))
-
-if (include.length === 0) {
- C.bold()
- C.puts('\nUsage: jsbuild --manifest MANIFEST --root ROOT [OPTIONS] module1 [module2 ...]')
- C.reset()
-
- C.puts('\nOptions: --manifest, -m : path to JS.Packages manifest script')
- C.puts(' --root, -r : directory containing your JavaScripts')
- C.puts(' --external, -e : include external scripts from the web')
- C.puts(' --no-packages, -P : don\'t include JS.Package system in build')
- C.puts(' --bundles, -b : path to bundle definitions file')
- C.puts(' --output, -o : select output type: \'code\' or \'paths\'')
- C.puts(' --directory, -d : directory for paths to print relative to')
-
- C.puts('\ne.g. jsbuild -m path/to/js/manifest.js -r path/to/js/ -eP jQuery JS.Set\n')
-
- process.exit()
-}
-
-HTTP_REGEX = /^https?:\/\//
-
-JS.Package.DSL.file = function(filename) {
- if (!HTTP_REGEX.test(filename))
- filename = path.join(params.root || '.', filename)
-
- return JS.Package._getByPath(filename)
-}
-
-if (params.manifest) require(params.manifest)
-
-var packages = [],
- excluded = [],
- bundles = params.bundles ? JSON.parse(fs.readFileSync(params.bundles)) : {},
- source = [],
- output = function() { console.log(source.join('\n\n')) }
-
-var expand = function(name, list) {
- var pkg = JS.Package._getByName(name),
- deps = list || []
-
- pkg._deps.list.forEach(function(p) { expand(p, deps) })
- if (deps.indexOf(pkg) === -1) deps.push(pkg)
- pkg._uses.list.forEach(function(p) { expand(p, deps) })
-
- return deps
-}
-
-var array = function(object) {
- if (object === undefined) return []
- return [].concat(object)
-}
-
-var expandBundle = function(name) {
- var bundle = bundles[name]
-
- array(bundle.include).forEach(function(p) { expand(p, packages) })
-
- var expandExcluded = function(excl) {
- var exclBundle = bundles[excl]
- if (!exclBundle) return expand(excl, excluded)
-
- array(exclBundle.include).forEach(function(p) { expand(p, excluded) })
- array(exclBundle.exclude).forEach(expandExcluded)
- }
- array(bundle.exclude).forEach(expandExcluded)
-}
-
-var packageFiles = function(packages) {
- var files = []
- packages.forEach(function(pkg) {
- var paths = pkg._loader
-
- if (!(paths instanceof Array))
- die('Cannot bundle ' + pkg + ': no path specified in your manifest')
-
- files = files.concat(paths.map(function(loader) {
- return HTTP_REGEX.test(loader)
- ? loader
- : path.resolve(loader)
- }))
- })
- return files
-}
-
-include.forEach(function(inc) {
- if (bundles[inc]) expandBundle(inc)
- else expand(inc, packages)
-})
-
-var includedFiles = packageFiles(packages),
- excludedFiles = packageFiles(excluded),
- files = includedFiles.slice()
-
-excludedFiles.forEach(function(exclude) {
- var index = files.indexOf(exclude)
- if (index >= 0) files.splice(index, 1)
-})
-
-if (params.output === 'paths') {
- var formatPath = function(s) { return s.replace(dir, '') }
- console.log(files.map(formatPath).join('\n'))
- process.exit()
-}
-
-if (params.packages !== false)
- source.push(fs.readFileSync(JSCLASS_PATH + '/package-browser.js'))
-
-var bundle = function(i) {
- if (i >= files.length) return output()
- var file = files[i]
-
- if (HTTP_REGEX.test(file))
- bundleRemote(file, i)
- else
- bundleLocal(file, i)
-}
-
-var bundleLocal = function(file, i) {
- fs.readFile(file, function(error, content) {
- if (error)
- die('Cannot find file ' + file + ', please check your --root setting')
-
- source.push(content.toString())
- bundle(i + 1)
- })
-}
-
-var bundleRemote = function(file, i) {
- if (!params.external) {
- console.error('Warning: skipping ' + file + ', pass --external to include it')
- return bundle(i + 1)
- }
-
- var uri = url.parse(file),
- client = (uri.protocol === 'https:') ? https : http,
- port = uri.port || (client === https ? '443' : '80'),
- options = {host: uri.hostname, port: port, path: uri.pathname},
- body = ''
-
- var end = function() {
- source.push(body)
- bundle(i + 1)
- }
- client.get(options, function(response) {
- if (response.statusCode < 200 || response.statusCode >= 300)
- die('Request unsuccessful: ' + file)
-
- response.addListener('data', function(c) { body += c.toString('utf8', 0, c.length) })
- response.addListener('close', end)
- response.addListener('end', end)
- })
- .on('error', function() {
- die('Request unsuccessful: ' + file)
- })
-}
-
-bundle(0)
-
View
3  build/index.js
@@ -1,3 +0,0 @@
-var path = require('path');
-JSCLASS_PATH = path.dirname(__filename) + '/src';
-require(JSCLASS_PATH + '/loader');
View
BIN  build/min/assets/bullet_go.png
Deleted file not rendered
View
183 build/min/assets/testui.css
@@ -1,183 +0,0 @@
-.test-result-container {
- background: #fff;
- border: 2px solid #444;
- color: #444;
- font: normal 15px FreeSans, Helvetica, Arial, sans-serif;
- overflow: hidden;
- position: absolute;
- right: 30px;
- top: 30px;
- width: 640px;
-
- -webkit-border-radius: 16px;
- -moz-border-radius: 16px;
- border-radius: 16px;
-}
-
-.test-result-container p,
-.test-result-container ul,
-.test-result-container li {
- list-style: circle outside;
- margin: 0;
- padding: 0;
-}
-
-.test-result-container .report {
- border-collapse: collapse;
- margin: 0;
- padding: 0;
-}
-
-.test-result-container .report th:first-child {
- -webkit-border-top-left-radius: 14px;
- -moz-border-radius-topleft: 14px;
- border-top-left-radius: 14px;
-}
-
-.test-result-container .report th:last-child {
- -webkit-border-top-right-radius: 14px;
- -moz-border-radius-topright: 14px;
- border-top-right-radius: 14px;
-}
-
-.test-result-container .report th,
-.test-result-container .report td {
- border-left: 1px solid #ccc;
- border-right: 1px solid #ccc;
- font-weight: bold;
- padding: 0 8px;
- text-align: right;
- width: 144px;
-}
-
-.test-result-container .report th:first-child,
-.test-result-container .report td:first-child {
- border-left: none;
-}
-
-.test-result-container .report th:last-child,
-.test-result-container .report td:last-child {
- border-right: none;
-}
-
-.test-result-container .report th {
- background: #eee;
- padding: 4px 8px;
-}
-
-.test-result-container .report td {
- color: #999;
- font-size: 300%;
-}
-
-.test-result-container .light {
- font-size: 0;
- height: 6px;
- overflow: hidden;
-}
-.test-result-container .light-pending {
- background: #fc6;
-}
-.test-result-container .light-passed {
- background: #6c3;
-}
-.test-result-container .light-failed {
- background: #e40;
-}
-
-.test-result-container .user-agent {
- background: #444;
- color: #fff;
- font-size: 80%;
- list-style: none;
- padding: 4px 12px;
-}
-
-.test-result-container .specs .spec,
-.test-result-container .specs .test {
- position: relative;
-}
-
-.test-result-container .specs .spec-name,
-.test-result-container .specs .test-name {
- cursor: pointer;
-}
-
-.test-result-container .spec-name {
- border-top: 1px solid #ddd;
- cursor: pointer;
- font-weight: bold;
-}
-
-.test-result-container .specs ul {
- margin-left: 32px;
-}
-
-.test-result-container .specs p {
- padding: 4px 12px;
-}
-
-.test-result-container .specs .runner {
- cursor: pointer;
- display: block;
- float: left;
- height: 0;
- margin-right: 6px;
- overflow: hidden;
- padding-top: 18px;
- width: 16px;
-}
-
-.test-result-container .specs .fault {
- font-size: 75%;
-}
-
-.test-result-container .specs .failed {
- color: #e40;
-}
-
-.test-result-container .specs .closed ul.children {
- display: none;
-}
-
-.test-result-container .test .stats {
- display: none;
-}
-
-.test-result-container .stats {
- float: right;
- list-style: none;
- right: 0;
- top: 0;
-}
-
-.test-result-container .stats li {
- border-left: 1px solid #eee;
- display: block;
- float: left;
- list-style: none;
- padding: 4px 8px;
- width: 64px;
-}
-
-.test-result-container .stats .number {
- color: #666;
- font-weight: bold;
-}
-
-.test-result-container .stats .label {
- color: #999;
- font-size: 80%;
-}
-
-.test-result-container .passed .number {
- color: #6c3;
-}
-
-.test-result-container .summary {
- border-top: 1px solid #999;
- color: #666;
- margin: 0;
- padding: 4px 12px;
-}
-
View
2  build/min/benchmark.js
@@ -1,2 +0,0 @@
-JS.Benchmark=new JS.Module('Benchmark',{include:JS.Console,N:5,measure:function(a,b,c){var e=[],d,f=[],j=c.test;var g=b*JS.Benchmark.N;while(g--){d={};if(c.setup)c.setup.call(d);e.push(d)}var k=JS.Benchmark.N,h,i;while(k--){g=b;h=new Date().getTime();while(g--)j.call(e.pop());i=new Date().getTime();f.push(i-h)}this.printResult(a,f)},printResult:function(a,b){var c=this.average(b);this.reset();this.print(' ');this.consoleFormat('bgblack','white');this.print('BENCHMARK');this.reset();this.print(' ['+this.format(c)+']');this.consoleFormat('cyan');this.puts(' '+a);this.reset()},format:function(a){var b=(a.value===0)?0:100*a.error/a.value;return Math.round(a.value)+'ms +/- '+Math.round(b)+'%'},average:function(a){return{value:this.mean(a),error:this.stddev(a)}},mean:function(b,c){var e=[],c=c||function(a){return a},d=b.length,f=0;while(d--)e.push(c(b[d]));d=e.length;while(d--)f+=e[d];return f/e.length},stddev:function(b){var c=function(a){return a*a};return Math.sqrt(this.mean(b,c)-c(this.mean(b)))}});JS.Benchmark.extend(JS.Benchmark);
-//@ sourceMappingURL=benchmark.js.map
View
8 build/min/benchmark.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "benchmark.js",
- "sourceRoot": "",
- "sources": ["../src/benchmark.js"],
- "names": ["average", "block", "end", "env", "envs", "error", "functions", "i", "list", "mapper", "n", "name", "runs", "square", "start", "sum", "times", "values", "x"],
- "mappings": "AAAA,GAAG,UAAY,IAAI,GAAG,QAAQ,YAC5B,QAAS,GAAG,QACZ,IAEA,QAAS,SAASW,EAAMC,EAAMN,GAC5B,IAAIF,KAAYD,EACZa,KACAf,EAAQK,EAAU,KAEtB,IAAIC,EAAIK,EAAO,GAAG,UAAU,EAC5B,MAAOL,KACLJ,KACA,GAAIG,EAAU,MAAOA,EAAU,MAAM,KAAKH,GAC1CC,EAAK,KAAKD,GAGZ,IAAIO,EAAI,GAAG,UAAU,EAAGI,EAAOZ,EAC/B,MAAOQ,KACLH,EAAIK,EACJE,EAAQ,IAAI,OAAO,UACnB,MAAOP,IAAKN,EAAM,KAAKG,EAAK,OAC5BF,EAAM,IAAI,OAAO,UACjBc,EAAM,KAAKd,EAAMY,GAEnB,KAAK,YAAYH,EAAMK,IAGzB,YAAa,SAASL,EAAMK,GAC1B,IAAIhB,EAAU,KAAK,QAAQgB,GAC3B,KAAK,QACL,KAAK,WACL,KAAK,eAAe,UAAW,QAC/B,KAAK,OAAO,YACZ,KAAK,QACL,KAAK,WAAa,KAAK,OAAOhB,QAC9B,KAAK,eAAe,OACpB,KAAK,SAAWW,GAChB,KAAK,SAGP,OAAQ,SAASX,GACf,IAAIK,GAASL,EAAQ,iBAAyBA,EAAQ,MAAQA,EAAQ,MACtE,OAAO,KAAK,MAAMA,EAAQ,QAClB,SAAW,KAAK,MAAMK,QAGhC,QAAS,SAASG,GAChB,OAAS,MAAO,KAAK,KAAKA,GAAO,MAAO,KAAK,OAAOA,KAGtD,KAAM,SAASA,EAAMC,GACnB,IAAIQ,KACAR,EAASA,GAAU,SAASS,GAAK,OAAOA,GACxCR,EAASF,EAAK,OACdO,IAEJ,MAAOL,IAAKO,EAAO,KAAKR,EAAOD,EAAKE,KAEpCA,EAAIO,EAAO,OACX,MAAOP,IAAKK,GAAOE,EAAOP,GAC1B,OAAOK,EAAME,EAAO,QAGtB,OAAQ,SAAST,GACf,IAAIK,EAAS,SAASK,GAAK,OAAOA,EAAEA,GACpC,OAAO,KAAK,KAAK,KAAK,KAAKV,EAAMK,GAAUA,EAAO,KAAK,KAAKL,QAIhE,GAAG,UAAU,OAAO,GAAG;"
-}
View
2  build/min/command.js
@@ -1,2 +0,0 @@
-JS.Command=new JS.Class('Command',{initialize:function(a){if(typeof a==='function')a={execute:a};this._2=a;this._0=this._2.stack||null},execute:function(a){if(this._0)this._0._3();var b=this._2.execute;if(b)b.apply(this);if(this._0&&a!==false)this._0.push(this)},undo:function(){var exec=this._2.undo;if(exec)exec.apply(this)},extend:{Stack:new JS.Class({include:[JS.Observable||{},JS.Enumerable||{}],initialize:function(a){a=a||{};this._1=a.redo||null;this.clear()},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);for(var c=0,d=this._0.length;c<d;c++){if(this._0[c]!==undefined)a.call(b||null,this._0[c],c)}return this},clear:function(){this._0=[];this.length=this.pointer=0},_3:function(){if(this.pointer===0&&this._1&&this._1.execute)this._1.execute()},push:function(a){this._0.splice(this.pointer,this.length);this._0.push(a);this.length=this.pointer=this._0.length;if(this.notifyObservers)this.notifyObservers(this)},stepTo:function(a){if(a<0||a>this.length)return;var b,c;switch(true){case a>this.pointer:for(b=this.pointer,c=a;b<c;b++)this._0[b].execute(false);break;case a<this.pointer:if(this._1&&this._1.execute){this._1.execute();for(b=0,c=a;b<c;b++)this._0[b].execute(false)}else{for(b=0,c=this.pointer-a;b<c;b++)this._0[this.pointer-b-1].undo()}break}this.pointer=a;if(this.notifyObservers)this.notifyObservers(this)},undo:function(){this.stepTo(this.pointer-1)},redo:function(){this.stepTo(this.pointer+1)}})}});
-//@ sourceMappingURL=command.js.map
View
8 build/min/command.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "command.js",
- "sourceRoot": "",
- "sources": ["../src/command.js"],
- "names": ["_functions", "_redo", "_restart", "_stack", "block", "command", "context", "exec", "functions", "i", "n", "options", "position", "push"],
- "mappings": "AAAA,GAAG,QAAU,IAAI,GAAG,OAAO,UACzB,WAAY,SAASQ,GACnB,GAAI,OAAOA,KAAe,UACxBA,GAAa,QAASA,GACxB,KAAKR,GAAaQ,EAClB,KAAKL,GAAS,KAAKH,GAAW,OAAS,MAGzC,QAAS,SAASa,GAChB,GAAI,KAAKV,GAAQ,KAAKA,GAAOD,KAC7B,IAAIK,EAAO,KAAKP,GAAW,QAC3B,GAAIO,EAAMA,EAAK,MAAM,MACrB,GAAI,KAAKJ,IAAUU,IAAS,MAAO,KAAKV,GAAO,KAAK,OAGtD,KAAM,WACJ,IAAI,KAAO,KAAKH,GAAW,KAC3B,GAAI,KAAM,KAAK,MAAM,OAGvB,QACE,MAAO,IAAI,GAAG,OACZ,SAAU,GAAG,eAAkB,GAAG,gBAElC,WAAY,SAASW,GACnBA,EAAUA,MACV,KAAKV,GAAQU,EAAQ,MAAQ,KAC7B,KAAK,SAGP,QAAS,SAASP,EAAOE,GACvB,IAAKF,EAAO,OAAO,KAAK,SAAS,UACjCA,EAAQ,GAAG,WAAW,KAAKA,GAE3B,IAAK,IAAIK,IAAOC,EAAI,KAAKP,GAAO,OAAQM,EAAIC,EAAGD,KAC7C,GAAI,KAAKN,GAAOM,KAAO,UACrBL,EAAM,KAAKE,GAAW,KAAM,KAAKH,GAAOM,GAAIA,GAEhD,OAAO,MAGT,MAAO,WACL,KAAKN,MACL,KAAK,OAAS,KAAK,WAGrBD,GAAU,WACR,GAAI,KAAK,aAAiB,KAAKD,IAAS,KAAKA,GAAM,QACjD,KAAKA,GAAM,WAGf,KAAM,SAASI,GACb,KAAKF,GAAO,OAAO,KAAK,QAAS,KAAK,QACtC,KAAKA,GAAO,KAAKE,GACjB,KAAK,OAAS,KAAK,QAAU,KAAKF,GAAO,OACzC,GAAI,KAAK,gBAAiB,KAAK,gBAAgB,OAGjD,OAAQ,SAASS,GACf,GAAIA,KAAgBA,EAAW,KAAK,OAAQ,OAC5C,IAAIH,EAAGC,EAEP,OAAQ,MACN,KAAKE,EAAW,KAAK,QACnB,IAAKH,EAAI,KAAK,QAASC,EAAIE,EAAUH,EAAIC,EAAGD,IAC1C,KAAKN,GAAOM,GAAG,QAAQ,OACzB,MAEF,KAAKG,EAAW,KAAK,QACnB,GAAI,KAAKX,IAAS,KAAKA,GAAM,SAC3B,KAAKA,GAAM,UACX,IAAKQ,IAAOC,EAAIE,EAAUH,EAAIC,EAAGD,IAC/B,KAAKN,GAAOM,GAAG,QAAQ,OACzB,KACA,IAAKA,IAAOC,EAAI,KAAK,QAAUE,EAAUH,EAAIC,EAAGD,IAC9C,KAAKN,GAAO,KAAK,QAAUM,KAAO,OAEtC,MAEJ,KAAK,QAAUG,EACf,GAAI,KAAK,gBAAiB,KAAK,gBAAgB,OAGjD,KAAM,WACJ,KAAK,OAAO,KAAK,YAGnB,KAAM,WACJ,KAAK,OAAO,KAAK;"
-}
View
2  build/min/comparable.js
@@ -1,2 +0,0 @@
-JS.Comparable=new JS.Module('Comparable',{extend:{ClassMethods:new JS.Module({compare:function(a,b){return a.compareTo(b)}}),included:function(a){a.extend(this.ClassMethods)}},lt:function(a){return this.compareTo(a)<0},lte:function(a){return this.compareTo(a)<1},gt:function(a){return this.compareTo(a)>0},gte:function(a){return this.compareTo(a)>-1},eq:function(a){return this.compareTo(a)===0},between:function(a,b){return this.gte(a)&&this.lte(b)}});
-//@ sourceMappingURL=comparable.js.map
View
8 build/min/comparable.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "comparable.js",
- "sourceRoot": "",
- "sources": ["../src/comparable.js"],
- "names": ["another", "base", "one", "other"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,QAAQ,aAC7B,QACE,aAAc,IAAI,GAAG,QACnB,QAAS,SAASE,EAAKF,GACrB,OAAOE,EAAI,UAAUF,MAIzB,SAAU,SAASC,GACjBA,EAAK,OAAO,KAAK,gBAIrB,GAAI,SAASE,GACX,OAAO,KAAK,UAAUA,MAGxB,IAAK,SAASA,GACZ,OAAO,KAAK,UAAUA,MAGxB,GAAI,SAASA,GACX,OAAO,KAAK,UAAUA,MAGxB,IAAK,SAASA,GACZ,OAAO,KAAK,UAAUA,OAGxB,GAAI,SAASA,GACX,OAAO,KAAK,UAAUA,QAGxB,QAAS,SAAS,EAAG,GACnB,OAAO,KAAK,IAAI,IAAM,KAAK,IAAI;"
-}
View
2  build/min/console.js
@@ -1,2 +0,0 @@
-JS.Console=new JS.Module('Console',{extend:{nameOf:function(a,b){var c=[],e,f,d,g;if(JS.isType(a,Array)){for(e=0,f=a.length;e<f;e++)c.push(this.nameOf(a[e]));return c}if(a.displayName)return a.displayName;d=[{name:null,o:b||JS.ENV}];g=0;while(typeof d==='object'&&g<this.MAX_DEPTH){g+=1;d=this.descend(d,a)}if(typeof d=='string'){d=d.replace(/\.prototype\./g,'#');a.displayName=d;if(a.__meta__)a.__meta__.displayName=d+'.__meta__'}return a.displayName},descend:function(a,b){var c=[],e=a.length,f=e,d,g,h;while(f--){g=a[f];if(JS.isType(g.o,Array))continue;h=g.name?g.name+'.':'';for(d in g.o){if(b&&g.o[d]===b)return h+d;c.push({name:h+d,o:g.o[d]})}}return c},convert:function(b,c){if(b===null||b===undefined)return String(b);var e=JS.Enumerable,c=c||[],f;if(JS.indexOf(c,b)>=0)return'#circular';if(b instanceof Error){return(typeof b.message==='string'&&!b.message)?b.name:b.name+(b.message?': '+b.message:'')}if(b instanceof Array){c.push(b);f=new e.Collection(b).map(function(a){return this.convert(a,c)},this).join(', ');c.pop();return f?'[ '+f+' ]':'[]'}if(b instanceof String||typeof b==='string')return'"'+b+'"';if(b instanceof Function)return b.displayName||b.name||(b.toString().match(/^\s*function ([^\(]+)\(/)||[])[1]||'#function';if(b instanceof Date)return b.toGMTString();if(b.toString&&b.toString!==Object.prototype.toString&&!b.toString.__traced__)return b.toString();if(b.nodeType!==undefined)return b.toString();c.push(b);f=new e.Collection(e.objectKeys(b,false).sort()).map(function(a){return this.convert(a,c)+': '+this.convert(b[a],c)},this).join(', ');c.pop();return f?'{ '+f+' }':'{}'},filterBacktrace:function(a){if(!a)return a;a=a.split('\n').slice(1).join('\n');if(this.BROWSER){var b=new RegExp(window.location.href.replace(/(\/[^\/]+)/g,'($1)?')+'/?','g');return a.replace(b,'')}else if(this.RHINO){var b=java.lang.System.getProperty('user.dir')+'/';return a.replace(new RegExp(b,'g'),'')}else if(this.NODE){var b=process.cwd()+'/';return a.replace(new RegExp(b,'g'),'')}else if(typeof version==='function'&&version()>100){return''}else{return a}},ANSI_CSI:String.fromCharCode(0x1B)+'[',MAX_BUFFER_LENGTH:78,MAX_DEPTH:4,BROWSER:(typeof window!=='undefined'),NODE:(typeof process==='object'),RHINO:(typeof java!=='undefined'&&typeof java.lang!=='undefined'),WINDOZE:(typeof window!=='undefined'||typeof WScript!=='undefined'),WSH:(typeof WScript!=='undefined'),coloring:function(){if(this.NODE)return require('tty').isatty(1);if(this.WINDOZE)return false;return!(this.BROWSER&&!window.runtime)},__buffer__:'',__format__:'',ESCAPE_CODES:{reset:0,bold:1,normal:22,underline:4,noline:24,blink:5,noblink:25,black:30,bgblack:40,red:31,bgred:41,green:32,bggreen:42,yellow:33,bgyellow:43,blue:34,bgblue:44,magenta:35,bgmagenta:45,cyan:36,bgcyan:46,white:37,bgwhite:47,nocolor:39,bgnocolor:49},escape:function(a){return this.ANSI_CSI+a},repeat:function(a,b){var c='';while(b--)c+=a;return c},pad:function(a,b){a=(a===undefined?'':a).toString();return a+this.repeat(' ',b-a.length)},flushFormat:function(){var a=this.__format__;this.__format__='';return a},output:function(a,b){var c=this.coloring();while(a.length>0){var e=this.__buffer__.length,f=this.BROWSER?1000:this.MAX_BUFFER_LENGTH,d=(e>0&&c),g=d?this.escape('1F')+this.escape((e+1)+'G'):'',h=a.substr(0,f-e);this.__buffer__+=h;if(c)this.writeToStdout(g+this.flushFormat()+h);else if(this.__buffer__.length===f)this.writeToStdout(this.__buffer__);if(this.__buffer__.length===f)this.__buffer__='';a=a.substr(f-e)}if(!b){if(a===''&&!this.__buffer__)this.writeToStdout(this.flushFormat()+'');if(!c&&this.__buffer__)this.writeToStdout(this.__buffer__);this.__buffer__=''}},writeToStdout:function(a){if(this.BROWSER&&window.runtime)return window.runtime.trace(a);if(this.NODE)return process.stdout.write(a+'\n');if(this.RHINO)return java.lang.System.out.println(a);if(this.WSH)return WScript.Echo(a);if(typeof console!=='undefined')return console.log(a);if(typeof alert==='function')return alert(a);if(typeof print==='function')return print(a)},exit:function(a){if(this.WSH)WScript.Quit(a);if(this.NODE)process.exit(a);if(typeof system==='object'&&system.exit)system.exit(a);if(typeof quit=='function')quit(a)}},consoleFormat:function(){if(!JS.Console.coloring())return;this.reset();var a=arguments.length;while(a--)this[arguments[a]]()},puts:function(a){a=(a===undefined?'':a).toString();var b=JS.Console;if(b.NODE||b.RHINO){b.writeToStdout(b.flushFormat()+a);b.__print__=false}else{b.output(a,false)}},print:function(a){a=(a===undefined?'':a).toString();var b=JS.Console,c;if(b.NODE){process.stdout.write(b.flushFormat()+a);b.__print__=true}else if(b.RHINO){java.lang.System.out.print(b.flushFormat()+a);b.__print__=true}else{b.output(a,true)}},printTable:function(d,g){var h=[],d=[['Method','Calls']].concat(d),l=JS.Console,j=d.length,i,m;while(j--){i=d[j].length;while(i--){h[i]=h[i]||0;m=(d[j][i]===undefined?'':d[j][i]).toString();h[i]=Math.max(m.length,h[i])}}var k='+',i=h.length;while(i--)k='+'+l.repeat('-',h[i]+2)+k;k=' '+k;this.reset();this.puts();this.puts(k);var n=function(a,b){var c=d[a];this.reset();this.print(' ');for(var e=0,f=c.length;e<f;e++){this.reset();this.print('|');this.consoleFormat.apply(this,b);this.print(' '+l.pad(c[e],h[e])+' ')}this.reset();this.puts('|')};n.call(this,0,['bold']);this.reset();this.puts(k);for(var j=1,o=d.length;j<o;j++){var p=g?g(d[j],j):[];n.call(this,j,p)}this.reset();this.puts(k)}});(function(){var c=JS.Console;for(var e in c.ESCAPE_CODES)(function(b){c.define(b,function(){if(!JS.Console.coloring())return;var a=c.ESCAPE_CODES[b];c.__format__+=c.escape(a+'m')})})(e);c.extend(c)})();
-//@ sourceMappingURL=console.js.map
View
8 build/min/console.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "console.js",
- "sourceRoot": "",
- "sources": ["../src/console.js"],
- "names": ["C", "E", "coloring", "cwd", "data", "divider", "escape", "field", "followon", "format", "formatter", "i", "item", "items", "j", "key", "l", "length", "line", "list", "max", "movable", "n", "name", "needle", "object", "printRow", "result", "results", "root", "row", "stack", "status", "string", "sys", "table", "width", "widths"],
- "mappings": "AAAA,GAAG,QAAU,IAAI,GAAG,QAAQ,UAC1B,QACE,OAAQ,SAASyB,EAAQI,GACvB,IAAID,KAAcjB,EAAGW,EAAGf,EAAOS,EAE/B,GAAI,GAAG,OAAOS,EAAQ,QACpB,IAAKd,IAAOW,EAAIG,EAAO,OAAQd,EAAIW,EAAGX,IACpCiB,EAAQ,KAAK,KAAK,OAAOH,EAAOd,KAClC,OAAOiB,EAGT,GAAIH,EAAO,YAAa,OAAOA,EAAO,YAEtClB,IAAU,KAAM,KAAM,EAAGsB,GAAQ,GAAG,MACpCb,IACA,MAAO,OAAOT,KAAW,SAAWS,EAAI,KAAK,WAC3CA,KACAT,EAAQ,KAAK,QAAQA,EAAOkB,GAE9B,GAAI,OAAOlB,IAAU,SACnBA,EAAQA,EAAM,WAAW,YAAY,OACrCkB,EAAO,YAAclB,EACrB,GAAIkB,EAAO,SAAUA,EAAO,SAAS,YAAclB,IAAU,UAE/D,OAAOkB,EAAO,aAGhB,QAAS,SAASN,EAAMK,GACtB,IAAII,KACAN,EAAUH,EAAK,OACfR,EAAUW,EACVP,EAAKH,EAAMW,EAEf,MAAOZ,KACLC,EAAOO,EAAKR,GACZ,GAAI,GAA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AAO+B,EAAML,GACjB,KAAK,QACL,KAAK,YACL,IAAK,IAAInB,IAAOW,EAAIlB,EAAK,OAAQO,EAAIW,EAAGX,KACtC,KAAK,QACL,KAAK,WACL,KAAK,cAAc,MAAM,KAAMF,GAC/B,KAAK,UAAYT,EAAE,IAAII,EAAKO,GAAI0B,EAAO1B,SAEzC,KAAK,QACL,KAAK,WAEPe,EAAS,KAAK,SAAW,QACzB,KAAK,QACL,KAAK,KAAKrB,GAEV,IAAK,IAAIM,IAAOW,EAAIa,EAAM,OAAQxB,EAAIW,EAAGX,KACvC,IAAIF,EAASC,EAAYA,EAAUyB,EAAMxB,GAAIA,MAC7Ce,EAAS,KAAK,KAAMf,EAAGF,GAEzB,KAAK,QACL,KAAK,KAAKJ,OAIb,WACC,IAAIL,EAAI,GAAG,QAEX,IAAK,IAAIe,EAAI,GAAGf,EAAE,cAAe,SAASe,GACxCf,EAAE,OAAOe,EAAK,WACZ,IAAK,GAAG,QAAQ,WAAY,OAC5B,IAAIT,EAASN,EAAE,aAAae,GAC5Bf,EAAE,YAAcA,EAAE,OAAOM,GAAU,QAEpCS,GAEHf,EAAE,OAAOA;"
-}
View
2  build/min/constant_scope.js
@@ -1,2 +0,0 @@
-JS.ConstantScope=new JS.Module('ConstantScope',{extend:{included:function(a){a.__consts__=new JS.Module();a.extend(this.ClassMethods);a.__eigen__().extend(this.ClassMethods);a.include(a.__consts__);a.extend(a.__consts__);a.include(this.extract(a.__fns__));a.extend(this.extract(a.__eigen__().__fns__))},ClassMethods:new JS.Module({define:function(a,b){var c=this.__consts__||this.__tgt__.__consts__;if(/^[A-Z]/.test(a))c.define(a,b);else this.callSuper();if(JS.isType(b,JS.Module)){b.include(JS.ConstantScope);b.__consts__.include(c)}}}),extract:function(a,b){var c={},d,e;for(d in a){if(!/^[A-Z]/.test(d))continue;e=a[d];c[d]=e;delete a[d]}return c}}});
-//@ sourceMappingURL=constant_scope.js.map
View
8 build/min/constant_scope.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "constant_scope.js",
- "sourceRoot": "",
- "sources": ["../src/constant_scope.js"],
- "names": ["base", "callable", "constants", "key", "methods", "name", "object"],
- "mappings": "AAAA,GAAG,cAAgB,IAAI,GAAG,QAAQ,gBAChC,QACE,SAAU,SAASA,GACjBA,EAAK,WAAa,IAAI,GAAG,SACzBA,EAAK,OAAO,KAAK,cACjBA,EAAK,YAAY,OAAO,KAAK,cAE7BA,EAAK,QAAQA,EAAK,YAClBA,EAAK,OAAOA,EAAK,YAEjBA,EAAK,QAAQ,KAAK,QAAQA,EAAK,UAC/BA,EAAK,OAAO,KAAK,QAAQA,EAAK,YAAY,WAG5C,aAAc,IAAI,GAAG,QACnB,OAAQ,SAASK,EAAMJ,GACrB,IAAIC,EAAY,KAAK,YAAc,KAAK,QAAQ,WAEhD,MAAO,EAAE,IAAI,KAAKG,GAChBH,EAAU,OAAOG,EAAMJ,GACzB,KACE,KAAK,YAEP,GAAI,GAAG,OAAOA,EAAU,GAAG,SACzBA,EAAS,QAAQ,GAAG,eACpBA,EAAS,WAAW,QAAQC,OAKlC,QAAS,SAASE,EAASJ,GACzB,IAAIE,KAAgBC,EAAKG,EACzB,IAAKH,EAAI,GAAGC,GACV,OAAQ,EAAE,IAAI,KAAKD,GAAM,SAEzBG,EAASF,EAAQD,GACjBD,EAAUC,GAAOG,EACjB,OAAOF,EAAQD,GAEjB,OAAOD;"
-}
View
2  build/min/core.js
@@ -1,2 +0,0 @@
-(function(){var a=(typeof this.global==='object')?this.global:this;a.JS=a.JS||{};JS.ENV=a})();JS.END_WITHOUT_DOT=/([^\.])$/;JS.array=function(a){var b=[],c=a.length;while(c--)b[c]=a[c];return b};JS.bind=function(a,b){return function(){return a.apply(b,arguments)}};JS.extend=function(a,b,c){if(!a||!b)return a;for(var d in b){if(a[d]===b[d])continue;if(c===false&&a.hasOwnProperty(d))continue;a[d]=b[d]}return a};JS.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);var c=a.length;while(c--){if(a[c]===b)return c}return-1};JS.isType=function(a,b){if(typeof b==='string')return typeof a===b;if(a===null||a===undefined)return false;return(typeof b==='function'&&a instanceof b)||(a.isA&&a.isA(b))||a.constructor===b};JS.makeBridge=function(a){var b=function(){};b.prototype=a.prototype;return new b()};JS.makeClass=function(a){a=a||Object;var b=function(){return this.initialize?this.initialize.apply(this,arguments)||this:this};b.prototype=JS.makeBridge(a);b.superclass=a;b.subclasses=[];if(a.subclasses)a.subclasses.push(b);return b};JS.match=function(a,b){if(b===undefined)return false;return typeof a.test==='function'?a.test(b):a.match(b)};JS.Method=JS.makeClass();JS.extend(JS.Method.prototype,{initialize:function(a,b,c){this.module=a;this.name=b;this.callable=c;this._1={};if(typeof c!=='function')return;this.arity=c.length;var d=c.toString().match(/\b[a-z\_\$][a-z0-9\_\$]*\b/ig),e=d.length;while(e--)this._1[d[e]]=true},setName:function(a){this.callable.displayName=this.displayName=a},contains:function(a){return this._1.hasOwnProperty(a)},call:function(){return this.callable.call.apply(this.callable,arguments)},apply:function(a,b){return this.callable.apply(a,b)},compile:function(h){var i=this,j=i.module.__trace__||h.__trace__,k=i.callable,q=i._1,n=JS.Method._3,o=n.length,l=[],m;while(o--){m=n[o];if(q[m.name])l.push(m)}if(l.length===0&&!j)return k;var p=function(){var a=l.length,b=a,c={},d,e,f;while(b--){d=l[b];e=this[d.name];if(e&&!e.__kwd__)continue;c[d.name]={_2:e,_4:this.hasOwnProperty(d.name)};f=d.filter(i,h,this,arguments);f.__kwd__=true;this[d.name]=f}var g=k.apply(this,arguments),b=a;while(b--){d=l[b];if(!c[d.name])continue;if(c[d.name]._4)this[d.name]=c[d.name]._2;else delete this[d.name]}return g};if(j)return JS.StackTrace.wrap(p,i,h);return p},toString:function(){var a=this.displayName||(this.module.toString()+'#'+this.name);return'#<Method:'+a+'>'}});JS.Method.create=function(a,b,c){if(c&&c.__inc__&&c.__fns__)return c;var d=(typeof c!=='function')?c:new this(a,b,c);this.notify(d);return d};JS.Method.compile=function(a,b){return a&&a.compile?a.compile(b):a};JS.Method.__listeners__=[];JS.Method.added=function(a,b){this.__listeners__.push([a,b])};JS.Method.notify=function(a){var b=this.__listeners__,c=b.length,d;while(c--){d=b[c];d[0].call(d[1],a)}};JS.Method._3=[];JS.Method.keyword=function(a,b){this._3.push({name:a,filter:b})};JS.Method.tracing=function(c,d,e){JS.require('JS.StackTrace',function(){var a=JS.StackTrace.logger,b=a.active;c=[].concat(c);this.trace(c);a.active=true;d.call(e);this.untrace(c);a.active=b},this)};JS.Method.trace=function(a){var b=a.length;while(b--){a[b].__trace__=true;a[b].resolve()}};JS.Method.untrace=function(a){var b=a.length;while(b--){a[b].__trace__=false;a[b].resolve()}};JS.Module=JS.makeClass();JS.Module.__queue__=[];JS.extend(JS.Module.prototype,{initialize:function(a,b,c){if(typeof a!=='string'){c=arguments[1];b=arguments[0];a=undefined}c=c||{};this.__inc__=[];this.__dep__=[];this.__fns__={};this.__tgt__=c._5;this.__anc__=null;this.__mct__={};this.setName(a);this.include(b,{_0:false});if(JS.Module.__queue__)JS.Module.__queue__.push(this)},setName:function(a){this.displayName=a||'';for(var b in this.__fns__)this.__name__(b);if(a&&this.__meta__)this.__meta__.setName(a+'.')},__name__:function(a){if(!this.displayName)return;var b=this.__fns__[a];if(!b)return;a=this.displayName.replace(JS.END_WITHOUT_DOT,'$1#')+a;if(typeof b.setName==='function')return b.setName(a);if(typeof b==='function')b.displayName=a},define:function(a,b,c){var d=JS.Method.create(this,a,b),e=(c||{})._0;this.__fns__[a]=d;this.__name__(a);if(e!==false)this.resolve()},include:function(a,b){if(!a)return this;var b=b||{},c=b._0!==false,d=a.extend,e=a.include,f,g,h,i,j,k;if(a.__fns__&&a.__inc__){this.__inc__.push(a);if((a.__dep__||{}).push)a.__dep__.push(this);if(f=b._6){if(typeof a.extended==='function')a.extended(f)}else{if(typeof a.included==='function')a.included(this)}}else{if(this.shouldIgnore('extend',d)){i=[].concat(d);for(j=0,k=i.length;j<k;j++)this.extend(i[j])}if(this.shouldIgnore('include',e)){i=[].concat(e);for(j=0,k=i.length;j<k;j++)this.include(i[j],{_0:false})}for(g in a){if(!a.hasOwnProperty(g))continue;h=a[g];if(this.shouldIgnore(g,h))continue;this.define(g,h,{_0:false})}if(a.hasOwnProperty('toString'))this.define('toString',a.toString,{_0:false})}if(c)this.resolve();return this},alias:function(a){for(var b in a){if(!a.hasOwnProperty(b))continue;this.define(b,this.instanceMethod(a[b]),{_0:false})}this.resolve()},resolve:function(a){var a=a||this,b=a.__tgt__,c=this.__inc__,d=this.__fns__,e,f,g,h;if(a===this){this.__anc__=null;this.__mct__={};e=this.__dep__.length;while(e--)this.__dep__[e].resolve()}if(!b)return;for(e=0,f=c.length;e<f;e++)c[e].resolve(a);for(g in d){h=JS.Method.compile(d[g],a);if(b[g]!==h)b[g]=h}if(d.hasOwnProperty('toString'))b.toString=JS.Method.compile(d.toString,a)},shouldIgnore:function(a,b){return(a==='extend'||a==='include')&&(typeof b!=='function'||(b.__fns__&&b.__inc__))},ancestors:function(a){var b=!a,a=a||[],c=this.__inc__;if(b&&this.__anc__)return this.__anc__.slice();for(var d=0,e=c.length;d<e;d++)c[d].ancestors(a);if(JS.indexOf(a,this)<0)a.push(this);if(b)this.__anc__=a.slice();return a},lookup:function(a){var b=this.__mct__[a];if(b&&b.slice)return b.slice();var c=this.ancestors(),d=[],e;for(var f=0,g=c.length;f<g;f++){e=c[f].__fns__;if(e.hasOwnProperty(a))d.push(e[a])}this.__mct__[a]=d.slice();return d},includes:function(a){if(a===this)return true;var b=this.__inc__;for(var c=0,d=b.length;c<d;c++){if(b[c].includes(a))return true}return false},instanceMethod:function(a){return this.lookup(a).pop()},instanceMethods:function(a,b){var c=b||[],d=this.__fns__,e;for(e in d){if(!JS.isType(this.__fns__[e],JS.Method))continue;if(JS.indexOf(c,e)>=0)continue;c.push(e)}if(a!==false){var f=this.ancestors(),g=f.length;while(g--)f[g].instanceMethods(false,c)}return c},match:function(a){return a&&a.isA&&a.isA(this)},toString:function(){return this.displayName}});JS.Kernel=new JS.Module('Kernel',{__eigen__:function(){if(this.__meta__)return this.__meta__;var a=this.toString()+'.';this.__meta__=new JS.Module(a,null,{_5:this});return this.__meta__.include(this.klass,{_0:false})},equals:function(a){return this===a},extend:function(a,b){var c=(b||{})._0;this.__eigen__().include(a,{_6:this,_0:c});return this},hash:function(){return JS.Kernel.hashFor(this)},isA:function(a){return(typeof a==='function'&&this instanceof a)||this.__eigen__().includes(a)},method:function(a){var b=this.__mct__=this.__mct__||{},c=b[a],d=this[a];if(typeof d!=='function')return d;if(c&&d===c._2)return c._7;var e=JS.bind(d,this);b[a]={_2:d,_7:e};return e},methods:function(){return this.__eigen__().instanceMethods()},tap:function(a,b){a.call(b||null,this);return this},toString:function(){if(this.displayName)return this.displayName;var a=this.klass.displayName||this.klass.toString();return'#<'+a+':'+this.hash()+'>'}});(function(){var b=1;JS.Kernel.hashFor=function(a){if(a.__hash__!==undefined)return a.__hash__;a.__hash__=(new Date().getTime()+b).toString(16);b+=1;return a.__hash__}})();JS.Class=JS.makeClass(JS.Module);JS.extend(JS.Class.prototype,{initialize:function(a,b,c,d){if(typeof a!=='string'){d=arguments[2];c=arguments[1];b=arguments[0];a=undefined}if(typeof b!=='function'){d=c;c=b;b=Object}JS.Module.prototype.initialize.call(this,a);d=d||{};var e=JS.makeClass(b);JS.extend(e,this);e.prototype.constructor=e.prototype.klass=e;e.__eigen__().include(b.__meta__,{_0:d._0});e.setName(a);e.__tgt__=e.prototype;var f=(b===Object)?{}:(b.__fns__?b:new JS.Module(b.prototype,{_0:false}));e.include(JS.Kernel,{_0:false}).include(f,{_0:false}).include(c,{_0:false});if(d._0!==false)e.resolve();if(typeof b.inherited==='function')b.inherited(e);return e}});(function(){var e=function(a){var b={},c=a.prototype;for(var d in c){if(!c.hasOwnProperty(d))continue;b[d]=JS.Method.create(a,d,c[d])}return b};var f=function(a,b){var c=JS[a],d=JS[b];c.__inc__=[];c.__dep__=[];c.__fns__=e(c);c.__tgt__=c.prototype;c.prototype.constructor=c.prototype.klass=c;JS.extend(c,JS.Class.prototype);c.include(d||JS.Kernel);c.setName(a);c.constructor=c.klass=JS.Class};f('Method');f('Module');f('Class','Module');var g=JS.Kernel.instanceMethod('__eigen__');g.call(JS.Method).resolve();g.call(JS.Module).resolve();g.call(JS.Class).include(JS.Module.__meta__)})();JS.NotImplementedError=new JS.Class('NotImplementedError',Error);JS.Method.keyword('callSuper',function(c,d,e,f){var g=d.lookup(c.name),h=g.length-1,i=JS.array(f);return function(){var a=arguments.length;while(a--)i[a]=arguments[a];h-=1;var b=g[h].apply(e,i);h+=1;return b}});JS.Method.keyword('blockGiven',function(a,b,c,d){var e=Array.prototype.slice.call(d,a.arity),f=(typeof e[0]==='function');return function(){return f}});JS.Method.keyword('yieldWith',function(a,b,c,d){var e=Array.prototype.slice.call(d,a.arity);return function(){if(typeof e[0]!=='function')return;return e[0].apply(e[1]||null,arguments)}});JS.Interface=new JS.Class('Interface',{initialize:function(d){this.test=function(a,b){var c=d.length;while(c--){if(typeof a[d[c]]!=='function')return b?d[c]:false}return true}},extend:{ensure:function(){var a=JS.array(arguments),b=a.shift(),c,d;while(c=a.shift()){d=c.test(b,true);if(d!==true)throw new Error('object does not implement '+d+'()');}}}});JS.Singleton=new JS.Class('Singleton',{initialize:function(a,b,c){return new(new JS.Class(a,b,c))}});
-//@ sourceMappingURL=core.js.map
View
8 build/min/core.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "core.js",
- "sourceRoot": "",
- "sources": ["../src/core.js"],
- "names": ["$", "N", "_bound", "_extended", "_keywords", "_own", "_resolve", "_target", "_value", "_words", "active", "aliases", "allWords", "ancestors", "args", "array", "block", "bound", "bridge", "cachable", "cache", "cached", "callable", "category", "classes", "classify", "compiled", "constructor", "context", "destination", "eigen", "enumerable", "env", "environment", "existing", "extend", "extended", "face", "field", "filter", "fns", "hasBlock", "host", "i", "id", "inc", "include", "item", "j", "key", "keyword", "keywords", "klass", "kwd", "list", "listener", "listeners", "logger", "matches", "method", "methods", "methodsFromPrototype", "mixins", "module", "n", "name", "object", "options", "other", "overwrite", "params", "parent", "parentModule", "parentName", "previous", "proto", "receiver", "recursive", "resolve", "result", "returnName", "returnValue", "source", "stackIndex", "target", "trace", "type", "value", "word", "words"],
- "mappings": "CAuCC,WACC,IAAIA,GAAK,OAAO,KAAK,UAAY,SAAW,KAAK,OAAS,KAC1DA,EAAE,GAAKA,EAAE,OACT,GAAG,IAAMA,MAGX,GAAG,wBAA0B,GAE7B,GAAG,MAAQ,SAAS+B,GAClB,IAAIhB,KAAY4B,EAAIZ,EAAW,OAC/B,MAAOY,IAAK5B,EAAM4B,GAAKZ,EAAWY,GAClC,OAAO5B,GAGT,GAAG,KAAO,SAAS4C,EAAQO,GACzB,OAAO,WACL,OAAOP,EAAO,MAAMO,EAAQ,aAIhC,GAAG,OAAS,SAASrC,EAAaqD,EAAQb,GACxC,IAAKxC,IAAgBqD,EAAQ,OAAOrD,EACpC,IAAK,IAAIS,EAAM,GAAG4C,GAChB,GAAIrD,EAAYS,KAAW4C,EAAO5C,GAAQ,SAC1C,GAAI+B,IAAc,OAASxC,EAAY,eAAeS,GAAQ,SAC9DT,EAAYS,GAAS4C,EAAO5C,GAE9B,OAAOT,GAGT,GAAG,QAAU,SAASyB,EAAMP,GAC1B,GAAIO,EAAK,QAAS,OAAOA,EAAK,QAAQP,GACtC,IAAIJ,EAAIW,EAAK,OACb,MAAOX,KACL,GAAIW,EAAKX,KAAOI,EAAM,OAAOJ,EAE/B,UAGF,GAAG,OAAS,SAASuB,EAAQoB,GAC3B,GAAI,OAAOA,KAAU,QACnB,OAAO,OAAOpB,IAAWoB,EAE3B,GAAIpB,IAAW,MAAQA,IAAW,UAChC,OAAO,MAET,OAAQ,OAAOoB,KAAU,WAAapB,EAAO,WAAWoB,KAChDpB,EAAO,KAAOA,EAAO,IAAIoB,KAC1BpB,EAAO,cAAgBoB,GAGhC,GAAG,WAAa,SAASf,GACvB,IAAIrD,EAAS,aAC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EAAQ3B,EAAK4C,EAAU9D,GAC7D,IAAIE,EAAQ,MAAM,UAAU,MAAM,KAAKF,EAAM6C,EAAO,OAEpD,OAAO,WACL,GAAI,OAAO3C,QAAc,UAAW,OACpC,OAAOA,KAAS,MAAMA,MAAY,KAAM,cAK5C,GAAG,UAAY,IAAI,GAAG,OAAO,YAC3B,WAAY,SAAS4C,GACnB,KAAK,KAAO,SAASM,EAAQc,GAC3B,IAAIhB,EAAIJ,EAAQ,OAChB,MAAOI,KACL,GAAI,OAAOE,EAAON,EAAQI,OAAS,UACjC,OAAOgB,EAAapB,EAAQI,GAAK,MAErC,OAAO,OAIX,QACE,OAAQ,WACN,IAAIlD,EAAO,GAAG,MAAM,WAAYoD,EAASpD,EAAK,QAASuB,EAAM0C,EAC7D,MAAO1C,EAAOvB,EAAK,SACjBiE,EAAS1C,EAAK,KAAK6B,EAAQ,MAC3B,GAAIa,IAAW,KAAM,MAAM,IAAI,OAAO,OAAO,KAAK,IAAI,YAAcA,cAO5E,GAAG,UAAY,IAAI,GAAG,OAAO,YAC3B,WAAY,SAASd,EAAMM,EAAQX,GACjC,OAAO,IAAK,IAAI,GAAG,MAAMK,EAAMM,EAAQX;"
-}
View
2  build/min/decorator.js
@@ -1,2 +0,0 @@
-JS.Decorator=new JS.Class('Decorator',{initialize:function(a,c){var b=new JS.Class(),f={},e,d;for(e in a.prototype){d=a.prototype[e];if(typeof d==='function'&&d!==a)d=this.klass.delegate(e);f[e]=d}b.include(new JS.Module(f),{_0:false});b.include(this.klass.InstanceMethods,{_0:false});b.include(c);return b},extend:{delegate:function(a){return function(){return this.component[a].apply(this.component,arguments)}},InstanceMethods:new JS.Module({initialize:function(a){this.component=a;this.klass=this.constructor=a.klass;var c,b;for(c in a){if(this[c])continue;b=a[c];if(typeof b==='function')b=JS.Decorator.delegate(c);this[c]=b}},extend:function(a){this.component.extend(a);var c,b;for(c in a){b=a[c];if(typeof b==='function')b=JS.Decorator.delegate(c);this[c]=b}}})}});
-//@ sourceMappingURL=decorator.js.map
View
8 build/min/decorator.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "decorator.js",
- "sourceRoot": "",
- "sources": ["../src/decorator.js"],
- "names": ["_resolve", "component", "decorator", "decoree", "delegators", "func", "method", "methods", "name", "source"],
- "mappings": "AAAA,GAAG,UAAY,IAAI,GAAG,OAAO,YAC3B,WAAY,SAASG,EAASI,GAC5B,IAAIL,EAAa,IAAI,GAAG,QACpBE,KACAE,EAAQD,EAEZ,IAAKC,EAAO,GAAGH,EAAQ,WACrBE,EAAOF,EAAQ,UAAUG,GACzB,GAAI,OAAOD,KAAU,WAAaA,IAASF,EAASE,EAAO,KAAK,MAAM,SAASC,GAC/EF,EAAWE,GAAUD,EAGvBH,EAAU,QAAQ,IAAI,GAAG,OAAOE,IAAcJ,GAAU,QACxDE,EAAU,QAAQ,KAAK,MAAM,iBAAkBF,GAAU,QACzDE,EAAU,QAAQK,GAClB,OAAOL,GAGT,QACE,SAAU,SAASM,GACjB,OAAO,WACL,OAAO,KAAK,UAAUA,GAAM,MAAM,KAAK,UAAW,aAItD,gBAAiB,IAAI,GAAG,QACtB,WAAY,SAASP,GACnB,KAAK,UAAYA,EACjB,KAAK,MAAQ,KAAK,YAAcA,EAAU,MAC1C,IAAIK,EAAQD,EACZ,IAAKC,EAAO,GAAGL,GACb,GAAI,KAAKK,GAAS,SAClBD,EAAOJ,EAAUK,GACjB,GAAI,OAAOD,KAAU,UAAWA,EAAO,GAAG,UAAU,SAASC,GAC7D,KAAKA,GAAUD,IAInB,OAAQ,SAASI,GACf,KAAK,UAAU,OAAOA,GACtB,IAAIH,EAAQD,EACZ,IAAKC,EAAO,GAAGG,GACbJ,EAAOI,EAAOH,GACd,GAAI,OAAOD,KAAU,UAAWA,EAAO,GAAG,UAAU,SAASC,GAC7D,KAAKA,GAAUD;"
-}
View
2  build/min/deferrable.js
@@ -1,2 +0,0 @@
-JS.Deferrable=new JS.Module('Deferrable',{extend:{Timeout:new JS.Class(Error)},callback:function(b,a){if(this.__deferredStatus__==='success')return b.apply(a||null,this.__deferredValue__);if(this.__deferredStatus__==='failure')return;this.__callbacks__=this.__callbacks__||[];this.__callbacks__.push([b,a||null])},errback:function(b,a){if(this.__deferredStatus__==='failure')return b.apply(a||null,this.__deferredValue__);if(this.__deferredStatus__==='success')return;this.__errbacks__=this.__errbacks__||[];this.__errbacks__.push([b,a||null])},timeout:function(b){this.cancelTimeout();var a=this,c=new JS.Deferrable.Timeout();this.__timeout__=JS.ENV.setTimeout(function(){a.fail(c)},b)},cancelTimeout:function(){if(!this.__timeout__)return;JS.ENV.clearTimeout(this.__timeout__);delete this.__timeout__},setDeferredStatus:function(b,a){this.__deferredStatus__=b;this.__deferredValue__=a;this.cancelTimeout();switch(b){case'success':if(!this.__callbacks__)return;var c;while(c=this.__callbacks__.pop())c[0].apply(c[1],a);break;case'failure':if(!this.__errbacks__)return;var d;while(d=this.__errbacks__.pop())d[0].apply(d[1],a);break}},succeed:function(){return this.setDeferredStatus('success',arguments)},fail:function(){return this.setDeferredStatus('failure',arguments)}});
-//@ sourceMappingURL=deferrable.js.map
View
8 build/min/deferrable.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "deferrable.js",
- "sourceRoot": "",
- "sources": ["../src/deferrable.js"],
- "names": ["args", "block", "callback", "context", "errback", "error", "milliseconds", "self", "status"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,QAAQ,aAC7B,QACE,QAAS,IAAI,GAAG,MAAM,QAGxB,SAAU,SAASC,EAAOE,GACxB,GAAI,KAAK,sBAAwB,SAC/B,OAAOF,EAAM,MAAME,GAAW,KAAM,KAAK,mBAE3C,GAAI,KAAK,sBAAwB,SAC/B,OAEF,KAAK,cAAgB,KAAK,kBAC1B,KAAK,cAAc,MAAMF,EAAOE,GAAW,QAG7C,QAAS,SAASF,EAAOE,GACvB,GAAI,KAAK,sBAAwB,SAC/B,OAAOF,EAAM,MAAME,GAAW,KAAM,KAAK,mBAE3C,GAAI,KAAK,sBAAwB,SAC/B,OAEF,KAAK,aAAe,KAAK,iBACzB,KAAK,aAAa,MAAMF,EAAOE,GAAW,QAG5C,QAAS,SAASG,GAChB,KAAK,gBACL,IAAIC,EAAO,KAAMF,EAAQ,IAAI,GAAG,WAAW,UAC3C,KAAK,YAAc,GAAG,IAAI,WAAW,WAAaE,EAAK,KAAKF,IAAUC,IAGxE,cAAe,WACb,IAAK,KAAK,YAAa,OACvB,GAAG,IAAI,aAAa,KAAK,aACzB,OAAO,KAAK,aAGd,kBAAmB,SAASE,EAAQR,GAClC,KAAK,mBAAqBQ,EAC1B,KAAK,kBAAqBR,EAE1B,KAAK,gBAEL,OAAQQ,GACN,KAAM,SACJ,IAAK,KAAK,cAAe,OACzB,IAAIN,EACJ,MAAOA,EAAW,KAAK,cAAc,MACnCA,KAAY,MAAMA,KAAaF,GACjC,MAEF,KAAM,SACJ,IAAK,KAAK,aAAc,OACxB,IAAII,EACJ,MAAOA,EAAU,KAAK,aAAa,MACjCA,KAAW,MAAMA,KAAYJ,GAC/B,QAIN,QAAS,WACP,OAAO,KAAK,mBAAmB,SAAU,YAG3C,KAAM,WACJ,OAAO,KAAK,mBAAmB,SAAU;"
-}
View
2  build/min/dom.js
@@ -1,2 +0,0 @@
-JS.DOM={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12,ENV:this,toggleClass:function(a,b){if(this.hasClass(a,b))this.removeClass(a,b);else this.addClass(a,b)},hasClass:function(a,b){var d=a.className.split(/\s+/);return JS.indexOf(d,b)>=0},addClass:function(a,b){if(this.hasClass(a,b))return;a.className=a.className+' '+b},removeClass:function(a,b){var d=new RegExp('\\b'+b+'\\b\\s*','g');a.className=a.className.replace(d,'')}};JS.DOM.Builder=new JS.Class('DOM.Builder',{extend:{addElement:function(a){this.define(a,function(){return this.makeElement(a,arguments)});JS.DOM[a]=function(){return new JS.DOM.Builder().makeElement(a,arguments)}},addElements:function(a){var b=a.length;while(b--)this.addElement(a[b])}},initialize:function(a){this._1=a},makeElement:function(a,b){var d,e,f;if(document.createElementNS){d=document.createElementNS('http://www.w3.org/1999/xhtml',a)}else{d=document.createElement(a)}for(var c=0,g=b.length;c<g;c++){e=b[c];if(typeof e==='function'){e(new this.klass(d))}else if(JS.isType(e,'string')){d.appendChild(document.createTextNode(e))}else{for(f in e)d[f]=e[f]}}if(this._1)this._1.appendChild(d);return d},concat:function(a){if(!this._1)return;this._1.appendChild(document.createTextNode(a))}});JS.DOM.Builder.addElements(['a','abbr','address','applet','area','article','aside','audio','b','base','bdo','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','command','datalist','dd','del','details','device','dfn','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','map','mark','marquee','menu','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','pre','progress','q','rp','rt','ruby','samp','script','section','select','small','source','span','strong','style','sub','sup','summary','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','ul','var','video','wbr']);JS.DOM.Event={_2:[],on:function(a,b,d,e){if(a!==JS.DOM.ENV&&a.nodeType!==JS.DOM.ELEMENT_NODE&&a.nodeType!==JS.DOM.DOCUMENT_NODE)return;var f=function(){d.call(e,a)};if(a.addEventListener)a.addEventListener(b,f,false);else if(a.attachEvent)a.attachEvent('on'+b,f);this._2.push({_0:a,_3:b,_5:d,_6:e,_4:f})},detach:function(a,b,d,e){var f=this._2.length,c;while(f--){c=this._2[f];if((a&&a!==c._0)||(b&&b!==c._3)||(d&&d!==c._5)||(e&&e!==c._6))continue;if(c._0.removeEventListener)c._0.removeEventListener(c._3,c._4,false);else if(c._0.detachEvent)c._0.detachEvent('on'+c._3,c._4);this._2.splice(f,1);c=null}}};JS.DOM.Event.on(JS.DOM.ENV,'unload',JS.DOM.Event.detach,JS.DOM.Event);
-//@ sourceMappingURL=dom.js.map
View
8 build/min/dom.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "dom.js",
- "sourceRoot": "",
- "sources": ["../src/dom.js"],
- "names": ["_callback", "_context", "_element", "_handler", "_parentNode", "_registry", "_type", "attribute", "callback", "child", "children", "className", "classes", "context", "element", "eventName", "i", "list", "n", "name", "node", "parent", "pattern", "register", "text", "wrapped"],
- "mappings": "AAAA,GAAG,KACD,eACA,iBACA,YACA,qBACA,wBACA,cACA,8BACA,eACA,gBACA,sBACA,0BACA,iBAEA,IAAK,KAEL,YAAa,SAASoB,EAAMT,GAC1B,GAAI,KAAK,SAASS,EAAMT,GAAY,KAAK,YAAYS,EAAMT,GAC3D,KAAK,KAAK,SAASS,EAAMT,IAG3B,SAAU,SAASS,EAAMT,GACvB,IAAIC,EAAUQ,EAAK,UAAU,QAAQ,KACrC,OAAO,GAAG,QAAQR,EAASD,OAG7B,SAAU,SAASS,EAAMT,GACvB,GAAI,KAAK,SAASS,EAAMT,GAAY,OACpCS,EAAK,UAAYA,EAAK,cAAkBT,GAG1C,YAAa,SAASS,EAAMT,GAC1B,IAAIW,EAAU,IAAI,UAAU,GAAKX,KAAe,GAAG,KAAM,IACzDS,EAAK,UAAYA,EAAK,UAAU,QAAQE,QAK5C,GAAG,IAAI,QAAU,IAAI,GAAG,OAAO,IAAI,UACjC,QACE,WAAY,SAASH,GACnB,KAAK,OAAOA,EAAM,WAChB,OAAO,KAAK,YAAYA,EAAM,aAEhC,GAAG,IAAIA,GAAQ,WACb,OAAO,IAAI,GAAG,IAAI,UAAU,YAAYA,EAAM,aAIlD,YAAa,SAASF,GACpB,IAAID,EAAIC,EAAK,OACb,MAAOD,IAAK,KAAK,WAAWC,EAAKD,MAIrC,WAAY,SAASK,G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tE,WAAY,QAAS,KAAM,QAAS,OAAQ,QAAS,KAAM,QAAS,KACpE,MAAO,QAAS,OAInB,GAAG,IAAI,OACLnB,MAEA,GAAI,SAASS,EAASC,EAAWP,EAAUK,GACzC,GAAIC,IAAY,GAAG,IAAI,KACnBA,EAAQ,WAAa,GAAG,IAAI,cAC5BA,EAAQ,WAAa,GAAG,IAAI,cAC9B,OAEF,IAAIW,EAAU,WAAajB,EAAS,KAAKK,EAASC,IAElD,GAAIA,EAAQ,iBACVA,EAAQ,iBAAiBC,EAAWU,EAAS,OAC/C,KAAK,GAAIX,EAAQ,YACfA,EAAQ,aAAa,IAAMC,EAAWU,GAExC,KAAKpB,GAAU,MACbH,GAAYY,EACZR,GAAYS,EACZf,GAAYQ,EACZP,GAAYY,EACZV,GAAYsB,KAIhB,OAAQ,SAASX,EAASC,EAAWP,EAAUK,GAC7C,IAAIG,EAAI,KAAKX,GAAU,OAAQkB,EAC/B,MAAOP,KACLO,EAAW,KAAKlB,GAAUW,GAE1B,IAAKF,GAAcA,IAAeS,EAASrB,MACtCa,GAAcA,IAAeQ,EAASjB,MACtCE,GAAcA,IAAee,EAASvB,MACtCa,GAAcA,IAAeU,EAAStB,IACzC,SAEF,GAAIsB,EAASrB,GAAS,oBACpBqB,EAASrB,GAAS,oBAAoBqB,EAASjB,GAAOiB,EAASpB,GAAU,OAC3E,KAAK,GAAIoB,EAASrB,GAAS,YACzBqB,EAASrB,GAAS,aAAa,IAAMqB,EAASjB,GAAOiB,EAASpB,IAEhE,KAAKE,GAAU,OAAOW,KACtBO,EAAW,QAKjB,GAAG,IAAI,MAAM,GAAG,GAAG,IAAI,KAAM,QAAS,GAAG,IAAI,MAAM,OAAQ,GAAG,IAAI;"
-}
View
2  build/min/enumerable.js
@@ -1,2 +0,0 @@
-JS.Enumerable=new JS.Module('Enumerable',{extend:{ALL_EQUAL:{},forEach:function(a,b){if(!a)return new JS.Enumerator(this,'forEach');for(var c=0;c<this.length;c++)a.call(b||null,this[c]);return this},isComparable:function(b){return b.all(function(a){return typeof a.compareTo==='function'})},areEqual:function(a,b){var c;if(a===b)return true;if(a&&typeof a.equals==='function')return a.equals(b);if(a instanceof Function)return a===b;if(a instanceof Array){if(!(b instanceof Array))return false;for(var d=0,e=a.length;d<e;d++){c=this.areEqual(a[d],b[d]);if(c===this.ALL_EQUAL)return true;if(!c)return false}if(a.length!==b.length)return false;return true}if(a instanceof Date){if(!(b instanceof Date))return false;if(a.getTime()!==b.getTime())return false;return true}if(a instanceof Object){if(!(b instanceof Object))return false;if(this.objectSize(a)!==this.objectSize(b))return false;for(var f in a){if(!this.areEqual(a[f],b[f]))return false}return true}return false},objectKeys:function(a,b){var c=[];for(var d in a){if(a.hasOwnProperty(d)||b!==false)c.push(d)}return c},objectSize:function(a){return this.objectKeys(a).length},Collection:new JS.Class({initialize:function(a){this.length=0;JS.Enumerable.forEach.call(a,this.push,this)},push:function(a){Array.prototype.push.call(this,a)},clear:function(){var a=this.length;while(a--)delete this[a];this.length=0}})},all:function(b,c){b=JS.Enumerable.toFn(b);var d=true;this.forEach(function(a){d=d&&(b?b.apply(c||null,arguments):a)});return!!d},any:function(b,c){b=JS.Enumerable.toFn(b);var d=false;this.forEach(function(a){d=d||(b?b.apply(c||null,arguments):a)});return!!d},count:function(a,b){if(typeof this.size==='function')return this.size();var c=0,d=a;if(a&&typeof a!=='function')a=function(x){return JS.Enumerable.areEqual(x,d)};this.forEach(function(){if(!a||a.apply(b||null,arguments))c+=1});return c},cycle:function(a,b,c){if(!b)return this.enumFor('cycle',a);b=JS.Enumerable.toFn(b);while(a--)this.forEach(b,c)},drop:function(c){var d=[];this.forEachWithIndex(function(a,b){if(b>=c)d.push(a)});return d},dropWhile:function(b,c){if(!b)return this.enumFor('dropWhile');b=JS.Enumerable.toFn(b);var d=[],e=true;this.forEach(function(a){if(e)e=e&&b.apply(c||null,arguments);if(!e)d.push(a)});return d},forEachCons:function(a,b,c){if(!b)return this.enumFor('forEachCons',a);b=JS.Enumerable.toFn(b);var d=this.toArray(),e=d.length,f=e-a,g;for(g=0;g<=f;g++)b.call(c||null,d.slice(g,g+a));return this},forEachSlice:function(a,b,c){if(!b)return this.enumFor('forEachSlice',a);b=JS.Enumerable.toFn(b);var d=this.toArray(),e=d.length,f=Math.ceil(e/a),g;for(g=0;g<f;g++)b.call(c||null,d.slice(g*a,(g+1)*a));return this},forEachWithIndex:function(c,d,e){if(typeof c==='function'){e=d;d=c;c=0}c=c||0;if(!d)return this.enumFor('forEachWithIndex',c);d=JS.Enumerable.toFn(d);return this.forEach(function(a){var b=d.call(e||null,a,c);c+=1;return b})},forEachWithObject:function(b,c,d){if(!c)return this.enumFor('forEachWithObject',b);c=JS.Enumerable.toFn(c);this.forEach(function(){var a=[b].concat(JS.array(arguments));c.apply(d||null,a)});return b},find:function(b,c){if(!b)return this.enumFor('find');b=JS.Enumerable.toFn(b);var d={},e=d;this.forEach(function(a){if(d!==e)return;d=b.apply(c||null,arguments)?a:d});return d===e?null:d},findIndex:function(c,d){if(c===undefined)return this.enumFor('findIndex');var e=null,f=(typeof c==='function');this.forEachWithIndex(function(a,b){if(e!==null)return;if(JS.Enumerable.areEqual(c,a)||(f&&c.apply(d||null,arguments)))e=b});return e},first:function(a){var b=this.toArray();return(a===undefined)?b[0]:b.slice(0,a)},grep:function(c,d,e){d=JS.Enumerable.toFn(d);var f=[];this.forEach(function(a){var b=(typeof c.match==='function')?c.match(a):(typeof c.test==='function')?c.test(a):JS.isType(a,c);if(!b)return;if(d)a=d.apply(e||null,arguments);f.push(a)});return f},groupBy:function(c,d){if(!c)return this.enumFor('groupBy');c=JS.Enumerable.toFn(c);var e=new JS.Hash();this.forEach(function(a){var b=c.apply(d||null,arguments);if(!e.hasKey(b))e.store(b,[]);e.get(b).push(a)});return e},inject:function(c,d,e){var f=JS.array(arguments),g=0,h={};switch(f.length){case 1:c=h;d=f[0];break;case 2:if(typeof c==='function'){c=h;d=f[0];e=f[1]}}d=JS.Enumerable.toFn(d);this.forEach(function(a){if(!g++&&c===h)return c=a;var b=[c].concat(JS.array(arguments));c=d.apply(e||null,b)});return c},map:function(a,b){if(!a)return this.enumFor('map');a=JS.Enumerable.toFn(a);var c=[];this.forEach(function(){c.push(a.apply(b||null,arguments))});return c},max:function(a,b){return this.minmax(a,b)[1]},maxBy:function(a,b){if(!a)return this.enumFor('maxBy');return this.minmaxBy(a,b)[1]},member:function(b){return this.any(function(a){return JS.Enumerable.areEqual(a,b)})},min:function(a,b){return this.minmax(a,b)[0]},minBy:function(a,b){if(!a)return this.enumFor('minBy');return this.minmaxBy(a,b)[0]},minmax:function(a,b){var c=this.sort(a,b);return[c[0],c[c.length-1]]},minmaxBy:function(a,b){if(!a)return this.enumFor('minmaxBy');var c=this.sortBy(a,b);return[c[0],c[c.length-1]]},none:function(a,b){return!this.any(a,b)},one:function(b,c){b=JS.Enumerable.toFn(b);var d=0;this.forEach(function(a){if(b?b.apply(c||null,arguments):a)d+=1});return d===1},partition:function(b,c){if(!b)return this.enumFor('partition');b=JS.Enumerable.toFn(b);var d=[],e=[];this.forEach(function(a){(b.apply(c||null,arguments)?d:e).push(a)});return[d,e]},reject:function(b,c){if(!b)return this.enumFor('reject');b=JS.Enumerable.toFn(b);var d=[];this.forEach(function(a){if(!b.apply(c||null,arguments))d.push(a)});return d},reverseForEach:function(a,b){if(!a)return this.enumFor('reverseForEach');a=JS.Enumerable.toFn(a);var c=this.toArray(),d=c.length;while(d--)a.call(b||null,c[d]);return this},select:function(b,c){if(!b)return this.enumFor('select');b=JS.Enumerable.toFn(b);var d=[];this.forEach(function(a){if(b.apply(c||null,arguments))d.push(a)});return d},sort:function(c,d){var e=JS.Enumerable.isComparable(this),f=this.toArray();c=c||(e?function(a,b){return a.compareTo(b)}:null);return c?f.sort(function(a,b){return c.call(d||null,a,b)}):f.sort()},sortBy:function(c,d){if(!c)return this.enumFor('sortBy');c=JS.Enumerable.toFn(c);var e=JS.Enumerable,f=new e.Collection(this.map(c,d)),g=e.isComparable(f);return new e.Collection(f.zip(this).sort(function(a,b){a=a[0];b=b[0];return g?a.compareTo(b):(a<b?-1:(a>b?1:0))})).map(function(a){return a[1]})},take:function(c){var d=[];this.forEachWithIndex(function(a,b){if(b<c)d.push(a)});return d},takeWhile:function(b,c){if(!b)return this.enumFor('takeWhile');b=JS.Enumerable.toFn(b);var d=[],e=true;this.forEach(function(a){if(e)e=e&&b.apply(c||null,arguments);if(e)d.push(a)});return d},toArray:function(){return this.drop(0)},zip:function(){var d=JS.Enumerable,e=[],f=0,g=arguments.length,h,i;if(typeof arguments[g-1]==='function'){h=arguments[g-1];i={}}if(typeof arguments[g-2]==='function'){h=arguments[g-2];i=arguments[g-1]}d.forEach.call(arguments,function(a){if(a===h||a===i)return;if(a.toArray)a=a.toArray();if(JS.isType(a,Array))e.push(a)});var j=this.map(function(b){var c=[b];d.forEach.call(e,function(a){c.push(a[f]===undefined?null:a[f])});return++f&&c});if(!h)return j;d.forEach.call(j,h,i)}});JS.Enumerable.define('forEach',JS.Enumerable.forEach);JS.Enumerable.alias({collect:'map',detect:'find',entries:'toArray',every:'all',findAll:'select',filter:'select',some:'any'});JS.Enumerable.extend({toFn:function(a){if(!a)return a;if(a.toFunction)return a.toFunction();if(this.OPS[a])return this.OPS[a];if(JS.isType(a,'string')||JS.isType(a,String))return function(){var b=JS.array(arguments),c=b.shift(),d=c[a];return(typeof d==='function')?d.apply(c,b):d};return a},OPS:{'+':function(a,b){return a+b},'-':function(a,b){return a-b},'*':function(a,b){return a*b},'/':function(a,b){return a/b},'%':function(a,b){return a%b},'^':function(a,b){return a^b},'&':function(a,b){return a&b},'&&':function(a,b){return a&&b},'|':function(a,b){return a|b},'||':function(a,b){return a||b},'==':function(a,b){return a==b},'!=':function(a,b){return a!=b},'>':function(a,b){return a>b},'>=':function(a,b){return a>=b},'<':function(a,b){return a<b},'<=':function(a,b){return a<=b},'===':function(a,b){return a===b},'!==':function(a,b){return a!==b},'[]':function(a,b){return a[b]},'()':function(a,b){return a(b)}},Enumerator:new JS.Class({include:JS.Enumerable,extend:{DEFAULT_METHOD:'forEach'},initialize:function(a,b,c){this._0=a;this._1=b||this.klass.DEFAULT_METHOD;this._2=(c||[]).slice()},equals:function(a){return JS.isType(a,this.klass)&&this._0===a._0&&this._1===a._1&&JS.Enumerable.areEqual(this._2,a._2)},forEach:function(a,b){if(!a)return this;var c=this._2.slice();c.push(a);if(b)c.push(b);return this._0[this._1].apply(this._0,c)}})});JS.Enumerable.Enumerator.alias({cons:'forEachCons',reverse:'reverseForEach',slice:'forEachSlice',withIndex:'forEachWithIndex',withObject:'forEachWithObject'});JS.Enumerable.Collection.include(JS.Enumerable);JS.Kernel.include({enumFor:function(a){var b=JS.array(arguments),a=b.shift();return new JS.Enumerable.Enumerator(this,a,b)}},{_3:false});JS.Kernel.alias({toEnum:'enumFor'});
-//@ sourceMappingURL=enumerable.js.map
View
8 build/min/enumerable.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "enumerable.js",
- "sourceRoot": "",
- "sources": ["../src/enumerable.js"],
- "names": ["K", "_args", "_method", "_object", "_resolve", "actual", "arg", "args", "array", "ayes", "block", "comparable", "context", "count", "counter", "drop", "entries", "enumerator", "expected", "hash", "i", "includeProto", "index", "item", "key", "keys", "limit", "list", "m", "map", "match", "memo", "method", "n", "needle", "noes", "object", "offset", "pattern", "result", "results", "size", "take", "target", "truth", "util", "value", "zip"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,QAAQ,aAC7B,QACE,aAEA,QAAS,SAASU,EAAOE,GACvB,IAAKF,EAAO,OAAO,IAAI,GAAG,WAAW,MAAO,UAC5C,IAAK,IAAIU,IAAOA,EAAI,KAAK,OAAQA,IAC/BV,EAAM,KAAKE,GAAW,KAAM,KAAKQ,IACnC,OAAO,MAGT,aAAc,SAASO,GACrB,OAAOA,EAAK,IAAI,SAASJ,GAAQ,OAAO,OAAOA,EAAK,aAAe,aAGrE,SAAU,SAASL,EAAUb,GAC3B,IAAIkC,EAEJ,GAAIrB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yB,EAAQzB,MAElDH,GAAU,QAEd,GAAG,OAAO,OAAO,QAAS;"
-}
View
2  build/min/forwardable.js
@@ -1,2 +0,0 @@
-JS.Forwardable=new JS.Module('Forwardable',{defineDelegator:function(b,e,d,f){d=d||e;this.define(d,function(){var a=this[b],c=a[e];return(typeof c==='function')?c.apply(a,arguments):c},{_0:f!==false})},defineDelegators:function(){var a=JS.array(arguments),c=a.shift(),b=a.length;while(b--)this.defineDelegator(c,a[b],a[b],false);this.resolve()}});
-//@ sourceMappingURL=forwardable.js.map
View
8 build/min/forwardable.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "forwardable.js",
- "sourceRoot": "",
- "sources": ["../src/forwardable.js"],
- "names": ["_resolve", "alias", "i", "method", "methods", "object", "property", "resolve", "subject"],
- "mappings": "AAAA,GAAG,YAAc,IAAI,GAAG,QAAQ,cAC9B,gBAAiB,SAASQ,EAASL,EAAQF,EAAOM,GAChDN,EAAQA,GAASE,EACjB,KAAK,OAAOF,EAAO,WACjB,IAAII,EAAW,KAAKG,GAChBF,EAAWD,EAAOF,GAEtB,OAAQ,OAAOG,KAAc,WACvBA,EAAS,MAAMD,EAAQ,WACvBC,IACJN,GAAUO,IAAY,SAG5B,iBAAkB,WAChB,IAAIH,EAAU,GAAG,MAAM,WACnBI,EAAUJ,EAAQ,QAClBF,EAAUE,EAAQ,OAEtB,MAAOF,IAAK,KAAK,gBAAgBM,EAASJ,EAAQF,GAAIE,EAAQF,GAAI,OAClE,KAAK;"
-}
View
2  build/min/hash.js
@@ -1,2 +0,0 @@
-JS.Hash=new JS.Class('Hash',{include:JS.Enumerable||{},extend:{Pair:new JS.Class({include:JS.Comparable||{},length:2,setKey:function(a){this[0]=this.key=a},hasKey:function(a){return JS.Enumerable.areEqual(this.key,a)},setValue:function(a){this[1]=this.value=a},hasValue:function(a){return JS.Enumerable.areEqual(this.value,a)},compareTo:function(a){return this.key.compareTo?this.key.compareTo(a.key):(this.key<a.key?-1:(this.key>a.key?1:0))},hash:function(){var a=JS.Hash.codeFor(this.key),b=JS.Hash.codeFor(this.value);return[a,b].sort().join('/')}}),codeFor:function(a){if(typeof a!=='object')return String(a);return(typeof a.hash==='function')?a.hash():a.toString()}},initialize:function(a){this.clear();if(!JS.isType(a,Array))return this.setDefault(a);for(var b=0,c=a.length;b<c;b+=2)this.store(a[b],a[b+1])},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);var c,d,e;for(c in this._0){if(!this._0.hasOwnProperty(c))continue;d=this._0[c];e=d.length;while(e--)a.call(b||null,d[e])}return this},_7:function(a,b){var c=this.klass.codeFor(a),d=this._0[c];if(!d&&b)d=this._0[c]=[];return d},_8:function(a,b){var c=a.length,d=!!this._5;while(c--){if(d?(a[c].key===b):a[c].hasKey(b))return c}return-1},assoc:function(a,b){var c,d,e;c=this._7(a,b);if(!c)return null;d=this._8(c,a);if(d>-1)return c[d];if(!b)return null;this.size+=1;this.length+=1;e=new this.klass.Pair;e.setKey(a);c.push(e);return e},rassoc:function(a){var b=this.key(a);return b?this.assoc(b):null},clear:function(){this._0={};this.length=this.size=0},compareByIdentity:function(){this._5=true;return this},comparesByIdentity:function(){return!!this._5},setDefault:function(a){this._6=a;return this},getDefault:function(a){return(typeof this._6==='function')?this._6(this,a):(this._6||null)},equals:function(c){if(!JS.isType(c,JS.Hash)||this.length!==c.length)return false;var d=true;this.forEach(function(a){if(!d)return;var b=c.assoc(a.key);if(b===null||!b.hasValue(a.value))d=false});return d},hash:function(){var b=[];this.forEach(function(a){b.push(a.hash())});return b.sort().join('')},fetch:function(a,b,c){var d=this.assoc(a);if(d)return d.value;if(b===undefined)throw new Error('key not found');if(typeof b==='function')return b.call(c||null,a);return b},forEachKey:function(b,c){if(!b)return this.enumFor('forEachKey');b=JS.Enumerable.toFn(b);this.forEach(function(a){b.call(c||null,a.key)});return this},forEachPair:function(b,c){if(!b)return this.enumFor('forEachPair');b=JS.Enumerable.toFn(b);this.forEach(function(a){b.call(c||null,a.key,a.value)});return this},forEachValue:function(b,c){if(!b)return this.enumFor('forEachValue');b=JS.Enumerable.toFn(b);this.forEach(function(a){b.call(c||null,a.value)});return this},get:function(a){var b=this.assoc(a);return b?b.value:this.getDefault(a)},hasKey:function(a){return!!this.assoc(a)},hasValue:function(b){var c=false,d=!!this._5;this.forEach(function(a){if(c)return;if(d?b===a.value:JS.Enumerable.areEqual(b,a.value))c=true});return c},invert:function(){var b=new this.klass;this.forEach(function(a){b.store(a.value,a.key)});return b},isEmpty:function(){for(var a in this._0){if(this._0.hasOwnProperty(a)&&this._0[a].length>0)return false}return true},key:function(b){var c=null;this.forEach(function(a){if(!c&&JS.Enumerable.areEqual(b,a.value))c=a.key});return c},keys:function(){var b=[];this.forEach(function(a){b.push(a.key)});return b},merge:function(a,b,c){var d=new this.klass;d.update(this);d.update(a,b,c);return d},rehash:function(){var a=new this.klass;a._0=this._0;this.clear();this.update(a)},remove:function(a,b){if(b===undefined)b=null;var c,d,e;c=this._7(a);if(!c)return(typeof b==='function')?this.fetch(a,b):this.getDefault(a);d=this._8(c,a);if(d<0)return(typeof b==='function')?this.fetch(a,b):this.getDefault(a);e=c[d].value;this._9(c,d);this.size-=1;this.length-=1;if(c.length===0)delete this._0[this.klass.codeFor(a)];return e},_9:function(a,b){a.splice(b,1)},removeIf:function(b,c){if(!b)return this.enumFor('removeIf');b=JS.Enumerable.toFn(b);var d=[];this.forEach(function(a){if(b.call(c||null,a))d.push(a.key)},this);var e=d.length;while(e--)this.remove(d[e]);return this},replace:function(a){this.clear();this.update(a)},shift:function(){var a=this.keys();if(a.length===0)return this.getDefault();var b=this.assoc(a[0]);this.remove(b.key);return b},store:function(a,b){this.assoc(a,true).setValue(b);return b},toString:function(){return'Hash:{'+this.map(function(a){return a.key.toString()+'=>'+a.value.toString()}).join(',')+'}'},update:function(d,e,f){var g=(typeof e==='function');d.forEach(function(a){var b=a.key,c=a.value;if(g&&this.hasKey(b))c=e.call(f||null,b,this.get(b),c);this.store(b,c)},this)},values:function(){var b=[];this.forEach(function(a){b.push(a.value)});return b},valuesAt:function(){var a=arguments.length,b=[];while(a--)b.push(this.get(arguments[a]));return b}});JS.Hash.alias({includes:'hasKey',index:'key',put:'store'});JS.OrderedHash=new JS.Class('OrderedHash',JS.Hash,{assoc:function(a,b){var c=JS.Hash.prototype.assoc;var d=c.call(this,a,false);if(d||!b)return d;var e=c.call(this,a,true);if(!this._2){this._2=this._3=e}else{this._3._1=e;e._4=this._3;this._3=e}return e},clear:function(){this.callSuper();this._2=this._3=null},_9:function(a,b){var c=a[b];if(c._4)c._4._1=c._1;if(c._1)c._1._4=c._4;if(c===this._2)this._2=c._1;if(c===this._3)this._3=c._4;return this.callSuper()},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);var c=this._2;while(c){a.call(b||null,c);c=c._1}},rehash:function(){var a=this._2;this.clear();while(a){this.store(a.key,a.value);a=a._1}}});
-//@ sourceMappingURL=hash.js.map
View
8 build/min/hash.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "hash.js",
- "sourceRoot": "",
- "sources": ["../src/hash.js"],
- "names": ["_bucketForKey", "_buckets", "_compareByIdentity", "_default", "_delete", "_first", "_indexInBucket", "_last", "_next", "_prev", "_super", "block", "bucket", "context", "createIfAbsent", "defaultValue", "existing", "givenBlock", "has", "hash", "hashes", "i", "ident", "index", "key", "keys", "n", "newHash", "object", "other", "otherPair", "pair", "result", "results", "temp", "toRemove", "value", "values"],
- "mappings": "AAAA,GAAG,KAAO,IAAI,GAAG,OAAO,OACtB,QAAS,GAAG,eAEZ,QACE,KAAM,IAAI,GAAG,OACX,QAAS,GAAG,eACZ,SAEA,OAAQ,SAASwB,GACf,QAAU,KAAK,IAAMA,GAGvB,OAAQ,SAASA,GACf,OAAO,GAAG,WAAW,SAAS,KAAK,IAAKA,IAG1C,SAAU,SAASY,GACjB,QAAU,KAAK,MAAQA,GAGzB,SAAU,SAASA,GACjB,OAAO,GAAG,WAAW,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AAIe,EAAOrB,EAAO,KAAK,KAAMc,EAAK,MAElC,IAAK,KAAKnB,IACR,KAAKA,GAAS,KAAKE,GAAQwB,EAC3B,KACA,KAAKxB,GAAMC,GAAQuB,EACnBA,EAAKtB,GAAQ,KAAKF,GAClB,KAAKA,GAAQwB,EAEf,OAAOA,GAGT,MAAO,WACL,KAAK,YACL,KAAK1B,GAAS,KAAKE,GAAQ,MAG7BH,GAAS,SAASQ,EAAQW,GACxB,IAAIQ,EAAOnB,EAAOW,GAElB,GAAIQ,EAAKtB,GAAOsB,EAAKtB,GAAMD,GAAQuB,EAAKvB,GACxC,GAAIuB,EAAKvB,GAAOuB,EAAKvB,GAAMC,GAAQsB,EAAKtB,GAExC,GAAIsB,IAAS,KAAK1B,GAAQ,KAAKA,GAAS0B,EAAKvB,GAC7C,GAAIuB,IAAS,KAAKxB,GAAO,KAAKA,GAAQwB,EAAKtB,GAE3C,OAAO,KAAK,aAGd,QAAS,SAASE,EAAOE,GACvB,IAAKF,EAAO,OAAO,KAAK,SAAS,UACjCA,EAAQ,GAAG,WAAW,KAAKA,GAE3B,IAAIoB,EAAO,KAAK1B,GAChB,MAAO0B,GACLpB,EAAM,KAAKE,GAAW,KAAMkB,GAC5BA,EAAOA,EAAKvB,KAIhB,OAAQ,WACN,IAAIuB,EAAO,KAAK1B,GAChB,KAAK,QACL,MAAO0B,GACL,KAAK,MAAMA,EAAK,IAAKA,EAAK,OAC1BA,EAAOA,EAAKvB;"
-}
View
2  build/min/linked_list.js
@@ -1,2 +0,0 @@
-JS.LinkedList=new JS.Class('LinkedList',{include:JS.Enumerable||{},initialize:function(a,b){this.length=0;this.first=this.last=null;if(!a)return;for(var c=0,d=a.length;c<d;c++)this.push(b?new this.klass.Node(a[c]):a[c])},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);var c=this.first,d,e,f;for(e=0,f=this.length;e<f;e++){d=c.next;a.call(b||null,c,e);if(c===this.last)break;c=d}return this},at:function(a){if(a<0||a>=this.length)return undefined;var b=this.first;while(a--)b=b.next;return b},pop:function(){return this.length?this.remove(this.last):undefined},shift:function(){return this.length?this.remove(this.first):undefined},insertAfter:function(){},push:function(){},remove:function(){},extend:{Node:new JS.Class({initialize:function(a){this.data=a;this.prev=this.next=this.list=null}})}});JS.LinkedList.Doubly=new JS.Class('LinkedList.Doubly',JS.LinkedList,{insertAt:function(a,b){if(a<0||a>=this.length)return;this.insertBefore(this.at(a),b)},unshift:function(a){this.length>0?this.insertBefore(this.first,a):this.push(a)},insertBefore:function(){}});JS.LinkedList.insertTemplate=function(c,d,e){return function(a,b){if(a.list!==this)return;b[c]=a;b[d]=a[d];a[d]=(a[d][c]=b);if(b[c]===this[e])this[e]=b;b.list=this;this.length++}};JS.LinkedList.Doubly.Circular=new JS.Class('LinkedList.Doubly.Circular',JS.LinkedList.Doubly,{insertAfter:JS.LinkedList.insertTemplate('prev','next','last'),insertBefore:JS.LinkedList.insertTemplate('next','prev','first'),push:function(a){if(this.length)return this.insertAfter(this.last,a);this.first=this.last=a.prev=a.next=a;a.list=this;this.length=1},remove:function(a){if(a.list!==this||this.length===0)return null;if(this.length>1){a.prev.next=a.next;a.next.prev=a.prev;if(a===this.first)this.first=a.next;if(a===this.last)this.last=a.prev}else{this.first=this.last=null}a.prev=a.next=a.list=null;this.length--;return a}});
-//@ sourceMappingURL=linked_list.js.map
View
8 build/min/linked_list.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "linked_list.js",
- "sourceRoot": "",
- "sources": ["../src/linked_list.js"],
- "names": ["array", "block", "context", "data", "i", "n", "newNode", "next", "node", "pos", "prev", "removed", "useNodes"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,OAAO,aAC5B,QAAS,GAAG,eAEZ,WAAY,SAASA,EAAOY,GAC1B,KAAK,SACL,KAAK,MAAQ,KAAK,KAAO,KACzB,IAAKZ,EAAO,OACZ,IAAK,IAAII,IAAOC,EAAIL,EAAM,OAAQI,EAAIC,EA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GAAMG,GAAQJ,GACjC,GAAIA,EAAQI,KAAU,KAAKD,GAAM,KAAKA,GAAOH,EAC7CA,EAAQ,KAAO,KACf,KAAK,WAIT,GAAG,WAAW,OAAO,SAAW,IAAI,GAAG,OAAO,WAAW,OAAO,UAAW,GAAG,WAAW,QACvF,YAAa,GAAG,WAAW,gBAAgB,OAAQ,OAAQ,OAC3D,aAAc,GAAG,WAAW,gBAAgB,OAAQ,OAAQ,QAE5D,KAAM,SAASA,GACb,GAAI,KAAK,OACP,OAAO,KAAK,YAAY,KAAK,KAAMA,GAErC,KAAK,MAAQ,KAAK,KACdA,EAAQ,KAAOA,EAAQ,KAAOA,EAElCA,EAAQ,KAAO,KACf,KAAK,UAGP,OAAQ,SAASK,GACf,GAAIA,EAAQ,OAAS,MAAQ,KAAK,WAAc,OAAO,KACvD,GAAI,KAAK,UACPA,EAAQ,KAAK,KAAOA,EAAQ,KAC5BA,EAAQ,KAAK,KAAOA,EAAQ,KAC5B,GAAIA,IAAY,KAAK,MAAO,KAAK,MAAQA,EAAQ,KACjD,GAAIA,IAAY,KAAK,KAAM,KAAK,KAAOA,EAAQ,KAC/C,KACA,KAAK,MAAQ,KAAK,KAAO,KAE3BA,EAAQ,KAAOA,EAAQ,KAAOA,EAAQ,KAAO,KAC7C,KAAK,SACL,OAAOA;"
-}
View
2  build/min/loader-browser.js
@@ -1,2 +0,0 @@
-(function(){var a=(typeof this.global==='object')?this.global:this;a.JS=a.JS||{};JS.ENV=a})();JS.Package=function(a){var b=JS.Package.OrderedSet;JS.Package._5(this);this._0=a;this._2=new b();this._6=new b();this._d=new b();this._e=new b();this._3={};this._7={}};(function(e){e.displayName='Package';e.toString=function(){return e.displayName};e.log=function(a){if(typeof window==='undefined')return;if(typeof window.runtime==='object')window.runtime.trace(a);if(window.console&&console.info)console.info(a)};var p=e.OrderedSet=function(a){this._f=this.list=[];this._5={};if(!a)return;for(var b=0,c=a.length;b<c;b++)this.push(a[b])};p.prototype.push=function(a){var b=(a.id!==undefined)?a.id:a,c=this._5;if(c.hasOwnProperty(b))return;c[b]=this._f.length;this._f.push(a)};var m=e.Deferred=function(){this._g='deferred';this._h=null;this._i=[]};m.prototype.callback=function(a,b){if(this._g==='succeeded')a.call(b,this._h);else this._i.push([a,b])};m.prototype.succeed=function(a){this._g='succeeded';this._h=a;var b;while(b=this._i.shift())b[0].call(b[1],a)};e.ENV=JS.ENV;e.onerror=function(a){throw a};e._j=function(a){e.onerror(new Error(a));};var l=e.prototype,n=[['requires','_6'],['uses','_d'],['styling','_e']],o=n.length;while(o--)(function(pair){var q=pair[0],r=pair[1];l[q]=function(){var a=arguments.length,b;for(b=0;b<a;b++)this[r].push(arguments[b]);return this}})(n[o]);l.provides=function(){var a=arguments.length,b;for(b=0;b<a;b++){this._2.push(arguments[b]);e._8(arguments[b]).pkg=this}return this};l.setup=function(a){this._k=a;return this};l._r=function(a,b,c){if(this._7[a])return b.call(c);var d=this._3[a]=this._3[a]||[];d.push([b,c]);this._s()};l._1=function(a){if(this._7[a])return false;this._7[a]=true;var b=this._3[a];if(!b)return true;delete this._3[a];for(var c=0,d=b.length;c<d;c++)b[c][0].call(b[c][1]);return true};l._l=function(a){if(!a&&this.__isLoaded!==undefined)return this.__isLoaded;var b=this._2.list,c=b.length,d,h;while(c--){d=b[c];h=e._4(d,this._m);if(h!==undefined)continue;if(a)return e._j('Expected package at '+this._0+' to define '+d);else return this.__isLoaded=false}return this.__isLoaded=true};l._s=function(){if(!this._1('request'))return;this._t();var i=this._6.list.concat(this._d.list),g=this._9||[],k=(this._0||{}).length,j=this;e.when({load:i});e.when({complete:this._6.list},function(){e.when({complete:i,load:[this]},function(){this._1('complete')},this);var c=function(a){if(k===0)return d(a);k-=1;var b=j._0.length-k-1;e.Loader.loadFile(j._0[b],c,g[b])};var d=function(a){j._m=a;if(j._k)j._k();j._l(true);j._1('load')};if(this._l()){this._1('download');return this._1('load')}if(this._0===undefined)return e._j('No load path found for '+this._2.list[0]);if(typeof this._0==='function')this._0(d);else c();if(!e.Loader.loadStyle)return;var h=this._e.list,f=h.length;while(f--)e.Loader.loadStyle(h[f]);this._1('download')},this)};l._t=function(){if(this._9||!(this._0 instanceof Array)||!e.Loader.fetch)return;this._9=[];for(var a=0,b=this._0.length;a<b;a++)this._9[a]=e.Loader.fetch(this._0[a])};l.toString=function(){return'Package:'+this._2.list.join(',')};e.when=function(a,b,c){var d=[],h={},f,i,g;for(f in a){if(!a.hasOwnProperty(f))continue;h[f]=[];i=new e.OrderedSet(a[f]);g=i.list.length;while(g--)d.push([f,i.list[g],g])}var k=g=d.length;if(k===0)return b&&b.call(c,h);while(g--)(function(f){var j=e._a(f[1]);j._r(f[0],function(){h[f[0]][f[2]]=e._4(f[1],j._m);k-=1;if(k===0&&b)b.call(c,h)})})(d[g])};e._n=1;e._b={};e._c={};e._o=[];e._5=function(a){a.id=this._n;this._n+=1};e._p=function(a){var b=a.toString(),c=this._b[b];if(c)return c;if(typeof a==='string')a=[].slice.call(arguments);c=this._b[b]=new this(a);return c};e._a=function(a){if(typeof a!=='string')return a;var b=this._8(a);if(b.pkg)return b.pkg;var c=this._u(a);if(c)return c;var d=new this();d.provides(a);return d};e.remove=function(a){var b=this._a(a);delete this._c[a];delete this._b[b._0]};e._v=function(a,b){this._o.push([a,b])};e._u=function(d){var h=this._o,f=h.length,i,g,k;for(i=0;i<f;i++){g=h[i];if(!g[0].test(d))continue;k=g[1].from+'/'+d.replace(/([a-z])([A-Z])/g,function(a,b,c){return b+'_'+c}).replace(/\./g,'/').toLowerCase()+'.js';var j=new this([k]);j.provides(d);if(k=g[1].require)j.requires(d.replace(g[0],k));return j}return null};e._8=function(a){return this._c[a]=this._c[a]||{}};e._4=function(a,b){if(typeof a!=='string')return undefined;var c=b?{}:this._8(a);if(c.obj!==undefined)return c.obj;var d=b||this.ENV,h=a.split('.'),f;while(f=h.shift())d=d&&d[f];if(b&&d===undefined)return this._4(a);return c.obj=d}})(JS.Package);JS.Package.DomLoader={HOST_REGEX:/^https?\:\/\/[^\/]+/i,usable:function(){return!!JS.Package._4('window.document.getElementsByTagName')},__FILE__:function(){var a=document.getElementsByTagName('script');src=a[a.length-1].src,url=window.location.href;if(/^\w+\:\/+/.test(src))return src;if(/^\//.test(src))return window.location.origin+src;return url.replace(/[^\/]*$/g,'')+src},cacheBust:function(a){var b=new Date().getTime();return a+(/\?/.test(a)?'&':'?')+b},fetch:function(a){var b=a;if(JS.cacheBust)a=this.cacheBust(a);this.HOST=this.HOST||this.HOST_REGEX.exec(window.location.href);var c=this.HOST_REGEX.exec(a);if(!this.HOST||(c&&c[0]!==this.HOST[0]))return null;JS.Package.log('Loading '+a);var d=new JS.Package.Deferred(),h=this,f=window.ActiveXObject?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();f.open('GET',a,true);f.onreadystatechange=function(){if(f.readyState!==4)return;f.onreadystatechange=h._q;d.succeed(f.responseText+'\n//@ sourceURL='+b);f=null};f.send(null);return d},loadFile:function(c,d,h){if(JS.cacheBust&&!h)c=this.cacheBust(c);var f=this,i=document.getElementsByTagName('head')[0],g=document.createElement('script');g.type='text/javascript';if(h)return h.callback(function(code){JS.Package.log('Executing '+c);eval(code);d()});JS.Package.log('Loading and executing '+c);g.src=c;g.onload=g.onreadystatechange=function(){var a=g.readyState,b=g.status;if(!a||a==='loaded'||a==='complete'||(a===4&&b===200)){d();g.onload=g.onreadystatechange=f._q;i=null;g=null}};i.appendChild(g)},loadStyle:function(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href=a;document.getElementsByTagName('head')[0].appendChild(b)},_q:function(){}};JS.Package.Loader=JS.Package.DomLoader;JS.Package.DSL={__FILE__:function(){return JS.Package.Loader.__FILE__()},pkg:function(a,b){var c=b?JS.Package._p(b):JS.Package._a(a);c.provides(a);return c},file:function(){return JS.Package._p.apply(JS.Package,arguments)},load:function(a,b){JS.Package.Loader.loadFile(a,b)},autoload:function(a,b){JS.Package._v(a,b)}};JS.Package.DSL.files=JS.Package.DSL.file;JS.Package.DSL.loader=JS.Package.DSL.file;JS.Packages=function(a){a.call(JS.Package.DSL)};JS.cacheBust=false;JS.load=function(a,b){JS.Package.Loader.loadFile(a,function(){if(typeof b==='function')b()});return this};JS.require=function(){var b=[],c=0;while(typeof arguments[c]==='string'){b.push(arguments[c]);c+=1}var d=arguments[c],h=arguments[c+1];JS.Package.when({complete:b},function(a){if(!d)return;d.apply(h||null,a&&a.complete)});return this};JS.Packages(function(){with(this){JS.Package.ENV.JSCLASS_PATH=JS.Package.ENV.JSCLASS_PATH||__FILE__().replace(/[^\/]*$/g,'');var b=JS.Package.ENV.JSCLASS_PATH;if(!/\/$/.test(b))b=b+'/';var c=function(a){return file(b+a+'.js')};c('core').provides('JS.Module','JS.Class','JS.Method','JS.Kernel','JS.Singleton','JS.Interface');var d='JS.Test.Unit';c('test').provides('JS.Test','JS.Test.Context','JS.Test.Mocking','JS.Test.FakeClock','JS.Test.AsyncSteps','JS.Test.Helpers',d,d+'.Assertions',d+'.TestCase',d+'.TestSuite',d+'.TestResult').requires('JS.Module','JS.Class','JS.Console','JS.DOM','JS.Enumerable','JS.SortedSet','JS.Comparable','JS.StackTrace').styling(b+'assets/testui.css');c('dom').provides('JS.DOM','JS.DOM.Builder').requires('JS.Class');c('console').provides('JS.Console').requires('JS.Module','JS.Enumerable');c('benchmark').provides('JS.Benchmark').requires('JS.Module').requires('JS.Console');c('comparable').provides('JS.Comparable').requires('JS.Module');c('constant_scope').provides('JS.ConstantScope').requires('JS.Module');c('forwardable').provides('JS.Forwardable').requires('JS.Module');c('enumerable').provides('JS.Enumerable').requires('JS.Module','JS.Class');c('deferrable').provides('JS.Deferrable').requires('JS.Module');c('observable').provides('JS.Observable').requires('JS.Module');c('hash').provides('JS.Hash','JS.OrderedHash').requires('JS.Class','JS.Enumerable','JS.Comparable');c('range').provides('JS.Range').requires('JS.Class','JS.Enumerable');c('set').provides('JS.Set','JS.HashSet','JS.OrderedSet','JS.SortedSet').requires('JS.Class','JS.Enumerable').uses('JS.Hash');c('linked_list').provides('JS.LinkedList','JS.LinkedList.Doubly','JS.LinkedList.Doubly.Circular').requires('JS.Class','JS.Enumerable');c('command').provides('JS.Command','JS.Command.Stack').requires('JS.Class','JS.Enumerable','JS.Observable');c('decorator').provides('JS.Decorator').requires('JS.Module','JS.Class');c('method_chain').provides('JS.MethodChain').requires('JS.Module','JS.Kernel');c('proxy').provides('JS.Proxy','JS.Proxy.Virtual').requires('JS.Module','JS.Class');c('stack_trace').provides('JS.StackTrace').requires('JS.Module','JS.Singleton','JS.Observable','JS.Enumerable','JS.Console');c('state').provides('JS.State').requires('JS.Module','JS.Class');c('tsort').provides('JS.TSort').requires('JS.Module').requires('JS.Class').requires('JS.Hash')}});
-//@ sourceMappingURL=loader-browser.js.map
View
8 build/min/loader-browser.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "loader-browser.js",
- "sourceRoot": "",
- "sources": ["../src/loader-browser.js"],
- "names": ["$", "Deferred", "PATH", "Set", "_K", "_autoIncrement", "_autoload", "_autoloaders", "_callbacks", "_deps", "_events", "_exports", "_fire", "_getByName", "_getByPath", "_getFromCache", "_getObject", "_index", "_indexByName", "_indexByPath", "_isLoaded", "_load", "_loader", "_manufacture", "_members", "_names", "_observers", "_on", "_onload", "_prefetch", "_source", "_status", "_styles", "_throw", "_uses", "_value", "a", "allDeps", "autoloaded", "autoloader", "autoloaders", "b", "block", "cached", "callback", "context", "declaration", "e", "event", "eventList", "eventTable", "eventType", "exports", "fireCallbacks", "fireOnLoad", "head", "host", "i", "index", "instance", "item", "key", "klass", "link", "list", "loadNext", "loader", "m", "message", "method", "methods", "module", "n", "name", "names", "object", "objects", "options", "originalPath", "packages", "part", "parts", "path", "pattern", "pkg", "placeholder", "requirements", "rootObject", "script", "scripts", "self", "source", "state", "status", "styles", "test", "token", "url", "value", "waiting", "withExceptions", "xhr"],
- "mappings": "CAuCC,WACC,IAAIA,GAAK,OAAO,KAAK,UAAY,SAAW,KAAK,OAAS,KAC1DA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AAG,aAEtCA,GAAQ,UAAiB,UAAU,GAAG,UACH,GAAG,QAAQ,QACrB,UAAU,GAAG,QACH,GAAG,aACH,GAAG,aAEtCA,GAAQ,YAAiB,UAAU,GAAG,YACb,UAAU,GAAG,SACH,GAAG,QAEtCA,GAAQ,eAAiB,UAAU,GAAG,cACb,UAAU,GAAG,SACH,GAAG,SAEtCA,GAAQ,QAAiB,UAAU,GAAG,QACH,GAAG,MAAM,UACnB,UAAU,GAAG,SACH,GAAG,QAEtCA,GAAQ,cAAiB,UAAU,GAAG,aACb,UAAU,GAAG,SACH,GAAG,YACH,GAAG,aACH,GAAG,aACH,GAAG,UAEtCA,GAAQ,QAAiB,UAAU,GAAG,QACb,UAAU,GAAG,SACH,GAAG,QAEtCA,GAAQ,QAAiB,UAAU,GAAG,QACb,UAAU,GAAG,SACb,UAAU,GAAG,QACb,UAAU,GAAG;"
-}
View
2  build/min/loader.js
@@ -1,2 +0,0 @@
-(function(){var a=(typeof this.global==='object')?this.global:this;a.JS=a.JS||{};JS.ENV=a})();JS.Package=function(a){var b=JS.Package.OrderedSet;JS.Package._6(this);this._0=a;this._4=new b();this._7=new b();this._e=new b();this._f=new b();this._5={};this._8={}};(function(f){f.displayName='Package';f.toString=function(){return f.displayName};f.log=function(a){if(typeof window==='undefined')return;if(typeof window.runtime==='object')window.runtime.trace(a);if(window.console&&console.info)console.info(a)};var q=f.OrderedSet=function(a){this._g=this.list=[];this._6={};if(!a)return;for(var b=0,c=a.length;b<c;b++)this.push(a[b])};q.prototype.push=function(a){var b=(a.id!==undefined)?a.id:a,c=this._6;if(c.hasOwnProperty(b))return;c[b]=this._g.length;this._g.push(a)};var n=f.Deferred=function(){this._h='deferred';this._i=null;this._j=[]};n.prototype.callback=function(a,b){if(this._h==='succeeded')a.call(b,this._i);else this._j.push([a,b])};n.prototype.succeed=function(a){this._h='succeeded';this._i=a;var b;while(b=this._j.shift())b[0].call(b[1],a)};f.ENV=JS.ENV;f.onerror=function(a){throw a};f._k=function(a){f.onerror(new Error(a));};var m=f.prototype,o=[['requires','_7'],['uses','_e'],['styling','_f']],p=o.length;while(p--)(function(pair){var r=pair[0],s=pair[1];m[r]=function(){var a=arguments.length,b;for(b=0;b<a;b++)this[s].push(arguments[b]);return this}})(o[p]);m.provides=function(){var a=arguments.length,b;for(b=0;b<a;b++){this._4.push(arguments[b]);f._9(arguments[b]).pkg=this}return this};m.setup=function(a){this._l=a;return this};m._s=function(a,b,c){if(this._8[a])return b.call(c);var d=this._5[a]=this._5[a]||[];d.push([b,c]);this._t()};m._3=function(a){if(this._8[a])return false;this._8[a]=true;var b=this._5[a];if(!b)return true;delete this._5[a];for(var c=0,d=b.length;c<d;c++)b[c][0].call(b[c][1]);return true};m._m=function(a){if(!a&&this.__isLoaded!==undefined)return this.__isLoaded;var b=this._4.list,c=b.length,d,g;while(c--){d=b[c];g=f._1(d,this._n);if(g!==undefined)continue;if(a)return f._k('Expected package at '+this._0+' to define '+d);else return this.__isLoaded=false}return this.__isLoaded=true};m._t=function(){if(!this._3('request'))return;this._u();var j=this._7.list.concat(this._e.list),i=this._a||[],l=(this._0||{}).length,k=this;f.when({load:j});f.when({complete:this._7.list},function(){f.when({complete:j,load:[this]},function(){this._3('complete')},this);var c=function(a){if(l===0)return d(a);l-=1;var b=k._0.length-l-1;f.Loader.loadFile(k._0[b],c,i[b])};var d=function(a){k._n=a;if(k._l)k._l();k._m(true);k._3('load')};if(this._m()){this._3('download');return this._3('load')}if(this._0===undefined)return f._k('No load path found for '+this._4.list[0]);if(typeof this._0==='function')this._0(d);else c();if(!f.Loader.loadStyle)return;var g=this._f.list,h=g.length;while(h--)f.Loader.loadStyle(g[h]);this._3('download')},this)};m._u=function(){if(this._a||!(this._0 instanceof Array)||!f.Loader.fetch)return;this._a=[];for(var a=0,b=this._0.length;a<b;a++)this._a[a]=f.Loader.fetch(this._0[a])};m.toString=function(){return'Package:'+this._4.list.join(',')};f.when=function(a,b,c){var d=[],g={},h,j,i;for(h in a){if(!a.hasOwnProperty(h))continue;g[h]=[];j=new f.OrderedSet(a[h]);i=j.list.length;while(i--)d.push([h,j.list[i],i])}var l=i=d.length;if(l===0)return b&&b.call(c,g);while(i--)(function(h){var k=f._b(h[1]);k._s(h[0],function(){g[h[0]][h[2]]=f._1(h[1],k._n);l-=1;if(l===0&&b)b.call(c,g)})})(d[i])};f._o=1;f._c={};f._d={};f._p=[];f._6=function(a){a.id=this._o;this._o+=1};f._q=function(a){var b=a.toString(),c=this._c[b];if(c)return c;if(typeof a==='string')a=[].slice.call(arguments);c=this._c[b]=new this(a);return c};f._b=function(a){if(typeof a!=='string')return a;var b=this._9(a);if(b.pkg)return b.pkg;var c=this._v(a);if(c)return c;var d=new this();d.provides(a);return d};f.remove=function(a){var b=this._b(a);delete this._d[a];delete this._c[b._0]};f._w=function(a,b){this._p.push([a,b])};f._v=function(d){var g=this._p,h=g.length,j,i,l;for(j=0;j<h;j++){i=g[j];if(!i[0].test(d))continue;l=i[1].from+'/'+d.replace(/([a-z])([A-Z])/g,function(a,b,c){return b+'_'+c}).replace(/\./g,'/').toLowerCase()+'.js';var k=new this([l]);k.provides(d);if(l=i[1].require)k.requires(d.replace(i[0],l));return k}return null};f._9=function(a){return this._d[a]=this._d[a]||{}};f._1=function(a,b){if(typeof a!=='string')return undefined;var c=b?{}:this._9(a);if(c.obj!==undefined)return c.obj;var d=b||this.ENV,g=a.split('.'),h;while(h=g.shift())d=d&&d[h];if(b&&d===undefined)return this._1(a);return c.obj=d}})(JS.Package);JS.Package.CommonJSLoader={usable:function(){return typeof require==='function'&&typeof exports==='object'},__FILE__:function(){return this._2},loadFile:function(a,b){var c=process.cwd(),d=a.replace(/\.[^\.]+$/g,''),a=require('path'),g=a.resolve(d);this._2=g+'.js';b(require(g))}};JS.Package.DomLoader={HOST_REGEX:/^https?\:\/\/[^\/]+/i,usable:function(){return!!JS.Package._1('window.document.getElementsByTagName')},__FILE__:function(){var a=document.getElementsByTagName('script');src=a[a.length-1].src,url=window.location.href;if(/^\w+\:\/+/.test(src))return src;if(/^\//.test(src))return window.location.origin+src;return url.replace(/[^\/]*$/g,'')+src},cacheBust:function(a){var b=new Date().getTime();return a+(/\?/.test(a)?'&':'?')+b},fetch:function(a){var b=a;if(JS.cacheBust)a=this.cacheBust(a);this.HOST=this.HOST||this.HOST_REGEX.exec(window.location.href);var c=this.HOST_REGEX.exec(a);if(!this.HOST||(c&&c[0]!==this.HOST[0]))return null;JS.Package.log('Loading '+a);var d=new JS.Package.Deferred(),g=this,h=window.ActiveXObject?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();h.open('GET',a,true);h.onreadystatechange=function(){if(h.readyState!==4)return;h.onreadystatechange=g._r;d.succeed(h.responseText+'\n//@ sourceURL='+b);h=null};h.send(null);return d},loadFile:function(c,d,g){if(JS.cacheBust&&!g)c=this.cacheBust(c);var h=this,j=document.getElementsByTagName('head')[0],i=document.createElement('script');i.type='text/javascript';if(g)return g.callback(function(code){JS.Package.log('Executing '+c);eval(code);d()});JS.Package.log('Loading and executing '+c);i.src=c;i.onload=i.onreadystatechange=function(){var a=i.readyState,b=i.status;if(!a||a==='loaded'||a==='complete'||(a===4&&b===200)){d();i.onload=i.onreadystatechange=h._r;j=null;i=null}};j.appendChild(i)},loadStyle:function(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href=a;document.getElementsByTagName('head')[0].appendChild(b)},_r:function(){}};JS.Package.RhinoLoader={usable:function(){return typeof java==='object'&&typeof require==='function'},__FILE__:function(){return this._2},loadFile:function(a,b){var c=java.lang.System.getProperty('user.dir'),d=a.replace(/\.[^\.]+$/g,'');var g=new java.io.File(c,d).toString();this._2=g+'.js';b(require(g))}};JS.Package.ServerLoader={usable:function(){return typeof JS.Package._1('load')==='function'&&typeof JS.Package._1('version')==='function'},__FILE__:function(){return this._2},loadFile:function(a,b){this._2=a;load(a);b()}};JS.Package.WshLoader={usable:function(){return!!JS.Package._1('ActiveXObject')&&!!JS.Package._1('WScript')},__FILE__:function(){return this._2},loadFile:function(a,b){this._2=a;var c=new ActiveXObject('Scripting.FileSystemObject'),d,g;try{d=c.OpenTextFile(a);g=function(){eval(d.ReadAll())};g();b()}finally{try{if(d)d.Close()}catch(e){}}}};JS.Package.XULRunnerLoader={jsloader:'@mozilla.org/moz/jssubscript-loader;1',cssservice:'@mozilla.org/content/style-sheet-service;1',ioservice:'@mozilla.org/network/io-service;1',usable:function(){try{var a=(Components||{}).classes;return!!(a&&a[this.jsloader]&&a[this.jsloader].getService)}catch(e){return false}},setup:function(){var a=Components.classes,b=Components.interfaces;this.ssl=a[this.jsloader].getService(b.mozIJSSubScriptLoader);this.sss=a[this.cssservice].getService(b.nsIStyleSheetService);this.ios=a[this.ioservice].getService(b.nsIIOService)},loadFile:function(a,b){if(window.console&&console.info)console.info('Loading '+a);this.ssl.loadSubScript(a);b()},loadStyle:function(a){var b=this.ios.newURI(a,null,null);this.sss.loadAndRegisterSheet(b,this.sss.USER_SHEET)}};(function(){var a=[JS.Package.XULRunnerLoader,JS.Package.DomLoader,JS.Package.RhinoLoader,JS.Package.CommonJSLoader,JS.Package.ServerLoader,JS.Package.WshLoader],b=a.length,c,d;for(c=0;c<b;c++){d=a[c];if(d.usable()){JS.Package.Loader=d;if(d.setup)d.setup();break}}})();JS.Package.DSL={__FILE__:function(){return JS.Package.Loader.__FILE__()},pkg:function(a,b){var c=b?JS.Package._q(b):JS.Package._b(a);c.provides(a);return c},file:function(){return JS.Package._q.apply(JS.Package,arguments)},load:function(a,b){JS.Package.Loader.loadFile(a,b)},autoload:function(a,b){JS.Package._w(a,b)}};JS.Package.DSL.files=JS.Package.DSL.file;JS.Package.DSL.loader=JS.Package.DSL.file;JS.Packages=function(a){a.call(JS.Package.DSL)};JS.cacheBust=false;JS.load=function(a,b){JS.Package.Loader.loadFile(a,function(){if(typeof b==='function')b()});return this};JS.require=function(){var b=[],c=0;while(typeof arguments[c]==='string'){b.push(arguments[c]);c+=1}var d=arguments[c],g=arguments[c+1];JS.Package.when({complete:b},function(a){if(!d)return;d.apply(g||null,a&&a.complete)});return this};JS.Packages(function(){with(this){JS.Package.ENV.JSCLASS_PATH=JS.Package.ENV.JSCLASS_PATH||__FILE__().replace(/[^\/]*$/g,'');var b=JS.Package.ENV.JSCLASS_PATH;if(!/\/$/.test(b))b=b+'/';var c=function(a){return file(b+a+'.js')};c('core').provides('JS.Module','JS.Class','JS.Method','JS.Kernel','JS.Singleton','JS.Interface');var d='JS.Test.Unit';c('test').provides('JS.Test','JS.Test.Context','JS.Test.Mocking','JS.Test.FakeClock','JS.Test.AsyncSteps','JS.Test.Helpers',d,d+'.Assertions',d+'.TestCase',d+'.TestSuite',d+'.TestResult').requires('JS.Module','JS.Class','JS.Console','JS.DOM','JS.Enumerable','JS.SortedSet','JS.Comparable','JS.StackTrace').styling(b+'assets/testui.css');c('dom').provides('JS.DOM','JS.DOM.Builder').requires('JS.Class');c('console').provides('JS.Console').requires('JS.Module','JS.Enumerable');c('benchmark').provides('JS.Benchmark').requires('JS.Module').requires('JS.Console');c('comparable').provides('JS.Comparable').requires('JS.Module');c('constant_scope').provides('JS.ConstantScope').requires('JS.Module');c('forwardable').provides('JS.Forwardable').requires('JS.Module');c('enumerable').provides('JS.Enumerable').requires('JS.Module','JS.Class');c('deferrable').provides('JS.Deferrable').requires('JS.Module');c('observable').provides('JS.Observable').requires('JS.Module');c('hash').provides('JS.Hash','JS.OrderedHash').requires('JS.Class','JS.Enumerable','JS.Comparable');c('range').provides('JS.Range').requires('JS.Class','JS.Enumerable');c('set').provides('JS.Set','JS.HashSet','JS.OrderedSet','JS.SortedSet').requires('JS.Class','JS.Enumerable').uses('JS.Hash');c('linked_list').provides('JS.LinkedList','JS.LinkedList.Doubly','JS.LinkedList.Doubly.Circular').requires('JS.Class','JS.Enumerable');c('command').provides('JS.Command','JS.Command.Stack').requires('JS.Class','JS.Enumerable','JS.Observable');c('decorator').provides('JS.Decorator').requires('JS.Module','JS.Class');c('method_chain').provides('JS.MethodChain').requires('JS.Module','JS.Kernel');c('proxy').provides('JS.Proxy','JS.Proxy.Virtual').requires('JS.Module','JS.Class');c('stack_trace').provides('JS.StackTrace').requires('JS.Module','JS.Singleton','JS.Observable','JS.Enumerable','JS.Console');c('state').provides('JS.State').requires('JS.Module','JS.Class');c('tsort').provides('JS.TSort').requires('JS.Module').requires('JS.Class').requires('JS.Hash')}});
-//@ sourceMappingURL=loader.js.map
View
8 build/min/loader.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "loader.js",
- "sourceRoot": "",
- "sources": ["../src/loader.js"],
- "names": ["$", "CC", "Cc", "Ci", "Deferred", "PATH", "Set", "_K", "_autoIncrement", "_autoload", "_autoloaders", "_callbacks", "_currentPath", "_deps", "_events", "_exports", "_fire", "_getByName", "_getByPath", "_getFromCache", "_getObject", "_index", "_indexByName", "_indexByPath", "_isLoaded", "_load", "_loader", "_manufacture", "_members", "_names", "_observers", "_on", "_onload", "_prefetch", "_source", "_status", "_styles", "_throw", "_uses", "_value", "a", "allDeps", "autoloaded", "autoloader", "autoloaders", "b", "block", "cached", "callback", "candidate", "candidates", "context", "cwd", "declaration", "e", "event", "eventList", "eventTable", "eventType", "exports", "file", "fireCallbacks", "fireOnLoad", "fso", "head", "host", "i", "index", "instance", "item", "key", "klass", "link", "list", "loadNext", "loader", "m", "message", "method", "methods", "module", "n", "name", "names", "object", "objects", "options", "originalPath", "packages", "part", "parts", "path", "pattern", "pkg", "placeholder", "requirePath", "requirements", "rootObject", "runner", "script", "scripts", "self", "source", "state", "status", "styles", "test", "token", "uri", "url", "value", "waiting", "withExceptions", "xhr"],
- "mappings": "CAuCC,WACC,IAAIA,GAAK,OAAO,KAAK,UAAY,SAAW,KAAK,OAAS,KAC1DA,EAAE,GAAKA,EAAE,OACT,GAAG,IAAMA,MAGX,GAAG,QAAU,SAAS2E,GACpB,IAAIrE,EAAM,GAAG,QAAQ,WACrB,GAAG,QAAQe,GAAO,MAElB,KAAKK,GAAaiD,EAClB,KAAK9C,GAAa,I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,UAEtCA,GAAQ,QAAiB,UAAU,GAAG,QACb,UAAU,GAAG,SACH,GAAG,QAEtCA,GAAQ,QAAiB,UAAU,GAAG,QACb,UAAU,GAAG,SACb,UAAU,GAAG,QACb,UAAU,GAAG;"
-}
View
2  build/min/method_chain.js
@@ -1,2 +0,0 @@
-JS.MethodChain=function(c){var d=[],e=c||{};this.____=function(a,b){d.push({func:a,args:b})};this.__exec__=function(a){return JS.MethodChain.exec(d,a||e)}};JS.MethodChain.exec=function(a,b){var c,d,e,f;loop:for(e=0,f=a.length;e<f;e++){c=a[e];if(b instanceof JS.MethodChain){b.____(c.func,c.args);continue}switch(typeof c.func){case'string':d=b[c.func];break;case'function':d=c.func;break;case'object':b=c.func;continue loop;break}b=(typeof d==='function')?d.apply(b,c.args):d}return b};JS.MethodChain.displayName='MethodChain';JS.MethodChain.toString=function(){return'MethodChain'};JS.MethodChain.prototype={_:function(){var a=arguments[0],b,c,d;switch(typeof a){case'object':case'function':b=[];for(c=1,d=arguments.length;c<d;c++)b.push(arguments[c]);this.____(a,b)}return this},toFunction:function(){var b=this;return function(a){return b.__exec__(a)}}};JS.MethodChain.reserved=(function(){var a=[],b;for(b in new JS.MethodChain)a.push(b);return new RegExp('^(?:'+a.join('|')+')$')})();JS.MethodChain.addMethod=function(a){if(this.reserved.test(a))return;var b=this.prototype[a]=function(){this.____(a,arguments);return this};b.displayName='MethodChain#'+a};JS.MethodChain.addMethods=function(a){var b=[],c,d;for(c in a){if(Number(c)!==c)b.push(c)}if(a instanceof Array){d=a.length;while(d--){if(typeof a[d]==='string')b.push(a[d])}}d=b.length;while(d--)this.addMethod(b[d]);a.__fns__&&this.addMethods(a.__fns__);a.prototype&&this.addMethods(a.prototype)};JS.ENV.it=JS.ENV.its=function(){return new JS.MethodChain()};JS.Method.added(function(a){if(a&&a.name)JS.MethodChain.addMethod(a.name)});JS.Kernel.include({wait:function(a){var b=new JS.MethodChain(),c=this;if(typeof a==='number')setTimeout(function(){b.__exec__(c)},a*1000);if(this.forEach&&typeof a==='function')this.forEach(function(item){setTimeout(function(){b.__exec__(item)},a.apply(this,arguments)*1000)});return b},_:function(){var a=arguments[0],b=[],c,d;for(c=1,d=arguments.length;c<d;c++)b.push(arguments[c]);return(typeof a==='object'&&a)||(typeof a==='function'&&a.apply(this,b))||this}});(function(){var a=JS.Module.__queue__,b=a.length;while(b--)JS.MethodChain.addMethods(a[b]);delete JS.Module.__queue__})();JS.MethodChain.addMethods(['abs','accept','acceptCharset','accesskey','acos','action','add','addEventListener','alt','altKey','anchor','appendChild','apply','archive','arguments','arity','asin','atan','atan2','attributes','autocomplete','autofocus','azimuth','background','backgroundAttachment','backgroundColor','backgroundImage','backgroundPosition','backgroundRepeat','baseURI','baseURIObject','big','bind','blink','blur','bold','border','borderBottom','borderBottomColor','borderBottomStyle','borderBottomWidth','borderCollapse','borderColor','borderLeft','borderLeftColor','borderLeftStyle','borderLeftWidth','borderRight','borderRightColor','borderRightStyle','borderRightWidth','borderSpacing','borderStyle','borderTop','borderTopColor','borderTopStyle','borderTopWidth','borderWidth','bottom','bubbles','button','call','caller','cancelBubble','cancelable','captionSide','ceil','charAt','charCode','charCodeAt','checkValidity','childNodes','classList','className','clear','click','clientHeight','clientLeft','clientTop','clientWidth','clientX','clientY','clip','cloneNode','codebase','codetype','color','cols','compareDocumentPosition','concat','constructor','content','cos','counterIncrement','counterReset','create','cssFloat','ctrlKey','cue','cueAfter','cueBefore','currentTarget','cursor','data','declare','defineProperties','defineProperty','description','detail','dir','direction','disabled','dispatchEvent','display','elements','elevation','emptyCells','encoding','enctype','eval','eventPhase','every','exec','exp','explicitOriginalTarget','fileName','filter','firstChild','fixed','floor','focus','font','fontFamily','fontSize','fontSizeAdjust','fontStretch','fontStyle','fontVariant','fontWeight','fontcolor','fontsize','for','forEach','formaction','formenctype','formmethod','formnovalidate','formtarget','freeze','fromCharCode','getAttribute','getAttributeNS','getAttributeNode','getAttributeNodeNS','getDate','getDay','getElementsByClassName','getElementsByTagName','getElementsByTagNameNS','getFullYear','getHours','getMilliseconds','getMinutes','getMonth','getOwnPropertyDescriptor','getOwnPropertyNames','getPrototypeOf','getSeconds','getTime','getTimezoneOffset','getUTCDate','getUTCDay','getUTCFullYear','getUTCHours','getUTCMilliseconds','getUTCMinutes','getUTCMonth','getUTCSeconds','getYear','global','hasAttribute','hasAttributeNS','hasAttributes','hasChildNodes','hasOwnProperty','height','href','id','ignoreCase','imeMode','index','indexOf','initEvent','initKeyEvent','initMessageEvent','initMouseEvent','initUIEvent','innerHTML','input','insertBefore','isArray','isChar','isDefaultNamespace','isExtensible','isFrozen','isPrototypeOf','isSameNode','isSealed','isSupported','ismap','italics','item','join','keyCode','keys','lang','lastChild','lastIndex','lastIndexOf','layerX','layerY','left','length','letterSpacing','lineHeight','lineNumber','link','listStyle','listStyleImage','listStylePosition','listStyleType','localName','localeCompare','log','map','margin','marginBottom','marginLeft','marginRight','marginTop','markerOffset','marks','match','max','maxHeight','maxWidth','maxlength','message','metaKey','method','min','minHeight','minWidth','mozGetFileNameArray','mozInputSource','mozMatchesSelector','mozSetFileNameArray','multiline','multiple','name','namedItem','namespaceURI','nextSibling','nodeArg','nodeName','nodePrincipal','nodeType','nodeValue','normalize','novalidate','now','nsIDOMNodeList','nsIPrincipal','nsIURI','number','offsetHeight','offsetLeft','offsetParent','offsetTop','offsetWidth','onafterprint','onbeforeprint','onbeforeunload','onhashchange','onmessage','onoffline','ononline','onpopstate','onredo','onresize','onundo','onunload','opacity','originalTarget','orphans','otherNode','outline','outlineColor','outlineOffset','outlineStyle','outlineWidth','overflow','overflowX','overflowY','ownerDocument','padding','paddingBottom','paddingLeft','paddingRight','paddingTop','page','pageBreakAfter','pageBreakBefore','pageBreakInside','pageX','pageY','parentNode','parse','pattern','pause','pauseAfter','pauseBefore','pitch','pitchRange','placeholder','playDuring','pop','position','pow','prefix','preventBubble','preventCapture','preventDefault','preventExtensions','previousSibling','propertyIsEnumerable','prototype','push','querySelector','querySelectorAll','quote','quotes','random','readonly','reduce','reduceRight','relatedTarget','remove','removeAttribute','removeAttributeNS','removeAttributeNode','removeChild','removeEventListener','replace','replaceChild','required','reset','reverse','richness','right','round','rows','screenX','screenY','scrollHeight','scrollIntoView','scrollLeft','scrollTop','scrollWidth','seal','search','select','setAttribute','setAttributeNS','setAttributeNode','setAttributeNodeNS','setCapture','setCustomValidity','setDate','setFullYear','setHours','setMilliseconds','setMinutes','setMonth','setSeconds','setSelectionRange','setTime','setUTCDate','setUTCFullYear','setUTCHours','setUTCMilliseconds','setUTCMinutes','setUTCMonth','setUTCSeconds','setYear','shift','shiftKey','sin','size','slice','small','some','sort','source','speak','speakHeader','speakNumeral','speakPunctuation','speechRate','spellcheck','splice','split','sqrt','src','stack','standby','step','sticky','stopPropagation','stress','strike','style','sub','submit','substr','substring','sup','tabIndex','tableLayout','tagName','tan','target','test','textAlign','textContent','textDecoration','textIndent','textShadow','textTransform','timeStamp','title','toDateString','toExponential','toFixed','toGMTString','toJSON','toLocaleDateString','toLocaleFormat','toLocaleLowerCase','toLocaleString','toLocaleTimeString','toLocaleUpperCase','toLowerCase','toPrecision','toSource','toString','toTimeString','toUTCString','toUpperCase','top','trim','trimLeft','trimRight','type','unicodeBidi','unshift','unwatch','usemap','valueOf','verticalAlign','view','visibility','voiceFamily','volume','watch','which','whiteSpace','widows','width','wordSpacing','wordWrap','wrap','zIndex']);
-//@ sourceMappingURL=method_chain.js.map
View
8 build/min/method_chain.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "method_chain.js",
- "sourceRoot": "",
- "sources": ["../src/method_chain.js"],
- "names": ["args", "base", "baseObject", "chain", "func", "i", "key", "method", "methods", "n", "name", "names", "object", "property", "queue", "self", "time"],
- "mappings": "AAAA,GAAG,YAAc,SAASC,GACxB,IAAIa,KACAZ,EAAaD,MAEjB,KAAK,KAAO,SAASM,EAAQP,GAC3Bc,EAAM,MAAM,KAAMP,EAAQ,KAAMP,KAGlC,KAAK,SAAW,SAASC,GACvB,OAAO,GA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,qBAAsB,aAAc,oBACxD,UAAW,cAAe,WAAY,kBAAmB,aACzD,WAAY,aAAc,oBAAqB,UAAW,aAC1D,iBAAkB,cAAe,qBAAsB,gBACvD,cAAe,gBAAiB,UAAW,QAAS,WAAY,MAAO,OACvE,QAAS,QAAS,OAAQ,OAAQ,SAAU,QAAS,cACrD,eAAgB,mBAAoB,aAAc,aAAc,SAChE,QAAS,OAAQ,MAAO,QAAS,UAAW,OAAQ,SACpD,kBAAmB,SAAU,SAAU,QAAS,MAAO,SAAU,SACjE,YAAa,MAAO,WAAY,cAAe,UAAW,MAAO,SACjE,OAAQ,YAAa,cAAe,iBAAkB,aACtD,aAAc,gBAAiB,YAAa,QAAS,eACrD,gBAAiB,UAAW,cAAe,SAAU,qBACrD,iBAAkB,oBAAqB,iBAAkB,qBACzD,oBAAqB,cAAe,cAAe,WAAY,WAC/D,eAAgB,cAAe,cAAe,MAAO,OAAQ,WAC7D,YAAa,OAAQ,cAAe,UAAW,UAAW,SAAU,UACpE,gBAAiB,OAAQ,aAAc,cAAe,SAAU,QAChE,QAAS,aAAc,SAAU,QAAS,cAAe,WAAY,OACrE;"
-}
View
2  build/min/observable.js
@@ -1,2 +0,0 @@
-JS.Observable=new JS.Module('Observable',{extend:{DEFAULT_METHOD:'update'},addObserver:function(c,b){(this.__observers__=this.__observers__||[]).push({_0:c,_1:b||null})},removeObserver:function(c,b){this.__observers__=this.__observers__||[];b=b||null;var a=this.countObservers();while(a--){if(this.__observers__[a]._0===c&&this.__observers__[a]._1===b){this.__observers__.splice(a,1);return}}},removeObservers:function(){this.__observers__=[]},countObservers:function(){return(this.__observers__=this.__observers__||[]).length},notifyObservers:function(){if(!this.isChanged())return;var c=this.countObservers(),b,a,d;while(c--){b=this.__observers__[c];a=b._0;d=b._1;if(typeof a==='function')a.apply(d||null,arguments);else a[d||JS.Observable.DEFAULT_METHOD].apply(a,arguments)}},setChanged:function(c){this.__changed__=!(c===false)},isChanged:function(){if(this.__changed__===undefined)this.__changed__=true;return!!this.__changed__}});JS.Observable.alias({subscribe:'addObserver',unsubscribe:'removeObserver'},true);
-//@ sourceMappingURL=observable.js.map
View
8 build/min/observable.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "observable.js",
- "sourceRoot": "",
- "sources": ["../src/observable.js"],
- "names": ["_block", "_context", "block", "context", "i", "observer", "state"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,QAAQ,aAC7B,QACE,gBAAiB,SAGnB,YAAa,SAASK,EAAUF,IAC7B,KAAK,cAAgB,KAAK,mBAAqB,MAAMH,GAAQK,EAAUJ,GAAUE,GAAW,QAG/F,eAAgB,SAASE,EAAUF,GACjC,KAAK,cAAgB,KAAK,kBAC1BA,EAAUA,GAAW,KACrB,IAAIC,EAAI,KAAK,iBACb,MAAOA,KACL,GAAI,KAAK,cAAcA,GAAGJ,KAAWK,GAAY,KAAK,cAAcD,GAAGH,KAAaE,GAClF,KAAK,cAAc,OAAOC,KAC1B,UAKN,gBAAiB,WACf,KAAK,kBAGP,eAAgB,WACd,OAAQ,KAAK,cAAgB,KAAK,mBAAqB,QAGzD,gBAAiB,WACf,IAAK,KAAK,YAAa,OACvB,IAAIA,EAAI,KAAK,iBAAkBC,EAAUH,EAAOC,EAChD,MAAOC,KACLC,EAAW,KAAK,cAAcD,GAC9BF,EAAWG,EAASL,GACpBG,EAAWE,EAASJ,GACpB,GAAI,OAAOC,KAAW,UAAWA,EAAM,MAAMC,GAAW,KAAM,WAC9D,KAAKD,EAAMC,GAAW,GAAG,WAAW,gBAAgB,MAAMD,EAAO,aAIrE,WAAY,SAASI,GACnB,KAAK,cAAgBA,IAAU,QAGjC,UAAW,WACT,GAAI,KAAK,cAAgB,UAAW,KAAK,YAAc,KACvD,QAAS,KAAK,eAIlB,GAAG,WAAW,OACZ,WAAe,aACf,aAAe,iBACd;"
-}
View
2  build/min/package-browser.js
@@ -1,2 +0,0 @@
-(function(){var a=(typeof this.global==='object')?this.global:this;a.JS=a.JS||{};JS.ENV=a})();JS.Package=function(a){var b=JS.Package.OrderedSet;JS.Package._5(this);this._0=a;this._2=new b();this._6=new b();this._d=new b();this._e=new b();this._3={};this._7={}};(function(d){d.displayName='Package';d.toString=function(){return d.displayName};d.log=function(a){if(typeof window==='undefined')return;if(typeof window.runtime==='object')window.runtime.trace(a);if(window.console&&console.info)console.info(a)};var p=d.OrderedSet=function(a){this._f=this.list=[];this._5={};if(!a)return;for(var b=0,c=a.length;b<c;b++)this.push(a[b])};p.prototype.push=function(a){var b=(a.id!==undefined)?a.id:a,c=this._5;if(c.hasOwnProperty(b))return;c[b]=this._f.length;this._f.push(a)};var m=d.Deferred=function(){this._g='deferred';this._h=null;this._i=[]};m.prototype.callback=function(a,b){if(this._g==='succeeded')a.call(b,this._h);else this._i.push([a,b])};m.prototype.succeed=function(a){this._g='succeeded';this._h=a;var b;while(b=this._i.shift())b[0].call(b[1],a)};d.ENV=JS.ENV;d.onerror=function(a){throw a};d._j=function(a){d.onerror(new Error(a));};var l=d.prototype,n=[['requires','_6'],['uses','_d'],['styling','_e']],o=n.length;while(o--)(function(pair){var q=pair[0],r=pair[1];l[q]=function(){var a=arguments.length,b;for(b=0;b<a;b++)this[r].push(arguments[b]);return this}})(n[o]);l.provides=function(){var a=arguments.length,b;for(b=0;b<a;b++){this._2.push(arguments[b]);d._8(arguments[b]).pkg=this}return this};l.setup=function(a){this._k=a;return this};l._r=function(a,b,c){if(this._7[a])return b.call(c);var e=this._3[a]=this._3[a]||[];e.push([b,c]);this._s()};l._1=function(a){if(this._7[a])return false;this._7[a]=true;var b=this._3[a];if(!b)return true;delete this._3[a];for(var c=0,e=b.length;c<e;c++)b[c][0].call(b[c][1]);return true};l._l=function(a){if(!a&&this.__isLoaded!==undefined)return this.__isLoaded;var b=this._2.list,c=b.length,e,h;while(c--){e=b[c];h=d._4(e,this._m);if(h!==undefined)continue;if(a)return d._j('Expected package at '+this._0+' to define '+e);else return this.__isLoaded=false}return this.__isLoaded=true};l._s=function(){if(!this._1('request'))return;this._t();var i=this._6.list.concat(this._d.list),g=this._9||[],k=(this._0||{}).length,j=this;d.when({load:i});d.when({complete:this._6.list},function(){d.when({complete:i,load:[this]},function(){this._1('complete')},this);var c=function(a){if(k===0)return e(a);k-=1;var b=j._0.length-k-1;d.Loader.loadFile(j._0[b],c,g[b])};var e=function(a){j._m=a;if(j._k)j._k();j._l(true);j._1('load')};if(this._l()){this._1('download');return this._1('load')}if(this._0===undefined)return d._j('No load path found for '+this._2.list[0]);if(typeof this._0==='function')this._0(e);else c();if(!d.Loader.loadStyle)return;var h=this._e.list,f=h.length;while(f--)d.Loader.loadStyle(h[f]);this._1('download')},this)};l._t=function(){if(this._9||!(this._0 instanceof Array)||!d.Loader.fetch)return;this._9=[];for(var a=0,b=this._0.length;a<b;a++)this._9[a]=d.Loader.fetch(this._0[a])};l.toString=function(){return'Package:'+this._2.list.join(',')};d.when=function(a,b,c){var e=[],h={},f,i,g;for(f in a){if(!a.hasOwnProperty(f))continue;h[f]=[];i=new d.OrderedSet(a[f]);g=i.list.length;while(g--)e.push([f,i.list[g],g])}var k=g=e.length;if(k===0)return b&&b.call(c,h);while(g--)(function(f){var j=d._a(f[1]);j._r(f[0],function(){h[f[0]][f[2]]=d._4(f[1],j._m);k-=1;if(k===0&&b)b.call(c,h)})})(e[g])};d._n=1;d._b={};d._c={};d._o=[];d._5=function(a){a.id=this._n;this._n+=1};d._p=function(a){var b=a.toString(),c=this._b[b];if(c)return c;if(typeof a==='string')a=[].slice.call(arguments);c=this._b[b]=new this(a);return c};d._a=function(a){if(typeof a!=='string')return a;var b=this._8(a);if(b.pkg)return b.pkg;var c=this._u(a);if(c)return c;var e=new this();e.provides(a);return e};d.remove=function(a){var b=this._a(a);delete this._c[a];delete this._b[b._0]};d._v=function(a,b){this._o.push([a,b])};d._u=function(e){var h=this._o,f=h.length,i,g,k;for(i=0;i<f;i++){g=h[i];if(!g[0].test(e))continue;k=g[1].from+'/'+e.replace(/([a-z])([A-Z])/g,function(a,b,c){return b+'_'+c}).replace(/\./g,'/').toLowerCase()+'.js';var j=new this([k]);j.provides(e);if(k=g[1].require)j.requires(e.replace(g[0],k));return j}return null};d._8=function(a){return this._c[a]=this._c[a]||{}};d._4=function(a,b){if(typeof a!=='string')return undefined;var c=b?{}:this._8(a);if(c.obj!==undefined)return c.obj;var e=b||this.ENV,h=a.split('.'),f;while(f=h.shift())e=e&&e[f];if(b&&e===undefined)return this._4(a);return c.obj=e}})(JS.Package);JS.Package.DomLoader={HOST_REGEX:/^https?\:\/\/[^\/]+/i,usable:function(){return!!JS.Package._4('window.document.getElementsByTagName')},__FILE__:function(){var a=document.getElementsByTagName('script');src=a[a.length-1].src,url=window.location.href;if(/^\w+\:\/+/.test(src))return src;if(/^\//.test(src))return window.location.origin+src;return url.replace(/[^\/]*$/g,'')+src},cacheBust:function(a){var b=new Date().getTime();return a+(/\?/.test(a)?'&':'?')+b},fetch:function(a){var b=a;if(JS.cacheBust)a=this.cacheBust(a);this.HOST=this.HOST||this.HOST_REGEX.exec(window.location.href);var c=this.HOST_REGEX.exec(a);if(!this.HOST||(c&&c[0]!==this.HOST[0]))return null;JS.Package.log('Loading '+a);var e=new JS.Package.Deferred(),h=this,f=window.ActiveXObject?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();f.open('GET',a,true);f.onreadystatechange=function(){if(f.readyState!==4)return;f.onreadystatechange=h._q;e.succeed(f.responseText+'\n//@ sourceURL='+b);f=null};f.send(null);return e},loadFile:function(c,e,h){if(JS.cacheBust&&!h)c=this.cacheBust(c);var f=this,i=document.getElementsByTagName('head')[0],g=document.createElement('script');g.type='text/javascript';if(h)return h.callback(function(code){JS.Package.log('Executing '+c);eval(code);e()});JS.Package.log('Loading and executing '+c);g.src=c;g.onload=g.onreadystatechange=function(){var a=g.readyState,b=g.status;if(!a||a==='loaded'||a==='complete'||(a===4&&b===200)){e();g.onload=g.onreadystatechange=f._q;i=null;g=null}};i.appendChild(g)},loadStyle:function(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href=a;document.getElementsByTagName('head')[0].appendChild(b)},_q:function(){}};JS.Package.Loader=JS.Package.DomLoader;JS.Package.DSL={__FILE__:function(){return JS.Package.Loader.__FILE__()},pkg:function(a,b){var c=b?JS.Package._p(b):JS.Package._a(a);c.provides(a);return c},file:function(){return JS.Package._p.apply(JS.Package,arguments)},load:function(a,b){JS.Package.Loader.loadFile(a,b)},autoload:function(a,b){JS.Package._v(a,b)}};JS.Package.DSL.files=JS.Package.DSL.file;JS.Package.DSL.loader=JS.Package.DSL.file;JS.Packages=function(a){a.call(JS.Package.DSL)};JS.cacheBust=false;JS.load=function(a,b){JS.Package.Loader.loadFile(a,function(){if(typeof b==='function')b()});return this};JS.require=function(){var b=[],c=0;while(typeof arguments[c]==='string'){b.push(arguments[c]);c+=1}var e=arguments[c],h=arguments[c+1];JS.Package.when({complete:b},function(a){if(!e)return;e.apply(h||null,a&&a.complete)});return this};
-//@ sourceMappingURL=package-browser.js.map
View
8 build/min/package-browser.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "package-browser.js",
- "sourceRoot": "",
- "sources": ["../src/package-browser.js"],
- "names": ["$", "Deferred", "Set", "_K", "_autoIncrement", "_autoload", "_autoloaders", "_callbacks", "_deps", "_events", "_exports", "_fire", "_getByName", "_getByPath", "_getFromCache", "_getObject", "_index", "_indexByName", "_indexByPath", "_isLoaded", "_load", "_loader", "_manufacture", "_members", "_names", "_observers", "_on", "_onload", "_prefetch", "_source", "_status", "_styles", "_throw", "_uses", "_value", "a", "allDeps", "autoloaded", "autoloader", "autoloaders", "b", "block", "cached", "callback", "context", "declaration", "e", "event", "eventList", "eventTable", "eventType", "exports", "fireCallbacks", "fireOnLoad", "head", "host", "i", "index", "instance", "item", "key", "klass", "link", "list", "loadNext", "loader", "m", "message", "method", "methods", "n", "name", "names", "object", "objects", "options", "originalPath", "packages", "part", "parts", "path", "pattern", "pkg", "placeholder", "requirements", "rootObject", "script", "scripts",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AI,cAGN,GAAG,QAAQ,OAAS,GAAG,QAAQ,UAE/B,GAAG,QAAQ,KACT,SAAU,WACR,OAAO,GAAG,QAAQ,OAAO,YAG3B,IAAK,SAASoE,EAAMS,GAClB,IAAIE,EAAMF,EACJ,GAAG,QAAQnE,GAAWmE,GACtB,GAAG,QAAQpE,GAAW2D,GAC5BW,EAAI,SAASX,GACb,OAAOW,GAGT,KAAM,WACJ,OAAO,GAAG,QAAQrE,GAAW,MAAM,GAAG,QAAS,YAGjD,KAAM,SAASmE,EAAM5B,GACnB,GAAG,QAAQ,OAAO,SAAS4B,EAAM5B,IAGnC,SAAU,SAAS6B,EAASN,GAC1B,GAAG,QAAQtE,GAAU4E,EAASN,KAIlC,GAAG,QAAQ,IAAI,MAAS,GAAG,QAAQ,IAAI,KACvC,GAAG,QAAQ,IAAI,OAAS,GAAG,QAAQ,IAAI,KAEvC,GAAG,SAAW,SAAS9B,GACrBA,EAAY,KAAK,GAAG,QAAQ,MAG9B,GAAG,UAAY,MAEf,GAAG,KAAO,SAASiD,EAAKnD,GACtB,GAAG,QAAQ,OAAO,SAASmD,EAAK,WAC9B,GAAI,OAAOnD,KAAc,UAAWA,MAEtC,OAAO,MAGT,GAAG,QAAU,WACX,IAAIyC,KAAmB5B,IAEvB,MAAO,OAAO,UAAUA,MAAQ,SAC9B4B,EAAa,KAAK,UAAU5B,IAC5BA,KAEF,IAAIb,EAAW,UAAUa,GAAIZ,EAAU,UAAUY,KAEjD,GAAG,QAAQ,MAAM,SAAU4B,GAAe,SAASV,GACjD,IAAK/B,EAAU,OACfA,EAAS,MAAMC,GAAW,KAAM8B,GAAWA,EAAQ,YAGrD,OAAO;"
-}
View
2  build/min/package.js
@@ -1,2 +0,0 @@
-(function(){var a=(typeof this.global==='object')?this.global:this;a.JS=a.JS||{};JS.ENV=a})();JS.Package=function(a){var b=JS.Package.OrderedSet;JS.Package._6(this);this._0=a;this._4=new b();this._7=new b();this._e=new b();this._f=new b();this._5={};this._8={}};(function(f){f.displayName='Package';f.toString=function(){return f.displayName};f.log=function(a){if(typeof window==='undefined')return;if(typeof window.runtime==='object')window.runtime.trace(a);if(window.console&&console.info)console.info(a)};var q=f.OrderedSet=function(a){this._g=this.list=[];this._6={};if(!a)return;for(var b=0,c=a.length;b<c;b++)this.push(a[b])};q.prototype.push=function(a){var b=(a.id!==undefined)?a.id:a,c=this._6;if(c.hasOwnProperty(b))return;c[b]=this._g.length;this._g.push(a)};var n=f.Deferred=function(){this._h='deferred';this._i=null;this._j=[]};n.prototype.callback=function(a,b){if(this._h==='succeeded')a.call(b,this._i);else this._j.push([a,b])};n.prototype.succeed=function(a){this._h='succeeded';this._i=a;var b;while(b=this._j.shift())b[0].call(b[1],a)};f.ENV=JS.ENV;f.onerror=function(a){throw a};f._k=function(a){f.onerror(new Error(a));};var m=f.prototype,o=[['requires','_7'],['uses','_e'],['styling','_f']],p=o.length;while(p--)(function(pair){var r=pair[0],s=pair[1];m[r]=function(){var a=arguments.length,b;for(b=0;b<a;b++)this[s].push(arguments[b]);return this}})(o[p]);m.provides=function(){var a=arguments.length,b;for(b=0;b<a;b++){this._4.push(arguments[b]);f._9(arguments[b]).pkg=this}return this};m.setup=function(a){this._l=a;return this};m._s=function(a,b,c){if(this._8[a])return b.call(c);var d=this._5[a]=this._5[a]||[];d.push([b,c]);this._t()};m._3=function(a){if(this._8[a])return false;this._8[a]=true;var b=this._5[a];if(!b)return true;delete this._5[a];for(var c=0,d=b.length;c<d;c++)b[c][0].call(b[c][1]);return true};m._m=function(a){if(!a&&this.__isLoaded!==undefined)return this.__isLoaded;var b=this._4.list,c=b.length,d,g;while(c--){d=b[c];g=f._1(d,this._n);if(g!==undefined)continue;if(a)return f._k('Expected package at '+this._0+' to define '+d);else return this.__isLoaded=false}return this.__isLoaded=true};m._t=function(){if(!this._3('request'))return;this._u();var j=this._7.list.concat(this._e.list),i=this._a||[],l=(this._0||{}).length,k=this;f.when({load:j});f.when({complete:this._7.list},function(){f.when({complete:j,load:[this]},function(){this._3('complete')},this);var c=function(a){if(l===0)return d(a);l-=1;var b=k._0.length-l-1;f.Loader.loadFile(k._0[b],c,i[b])};var d=function(a){k._n=a;if(k._l)k._l();k._m(true);k._3('load')};if(this._m()){this._3('download');return this._3('load')}if(this._0===undefined)return f._k('No load path found for '+this._4.list[0]);if(typeof this._0==='function')this._0(d);else c();if(!f.Loader.loadStyle)return;var g=this._f.list,h=g.length;while(h--)f.Loader.loadStyle(g[h]);this._3('download')},this)};m._u=function(){if(this._a||!(this._0 instanceof Array)||!f.Loader.fetch)return;this._a=[];for(var a=0,b=this._0.length;a<b;a++)this._a[a]=f.Loader.fetch(this._0[a])};m.toString=function(){return'Package:'+this._4.list.join(',')};f.when=function(a,b,c){var d=[],g={},h,j,i;for(h in a){if(!a.hasOwnProperty(h))continue;g[h]=[];j=new f.OrderedSet(a[h]);i=j.list.length;while(i--)d.push([h,j.list[i],i])}var l=i=d.length;if(l===0)return b&&b.call(c,g);while(i--)(function(h){var k=f._b(h[1]);k._s(h[0],function(){g[h[0]][h[2]]=f._1(h[1],k._n);l-=1;if(l===0&&b)b.call(c,g)})})(d[i])};f._o=1;f._c={};f._d={};f._p=[];f._6=function(a){a.id=this._o;this._o+=1};f._q=function(a){var b=a.toString(),c=this._c[b];if(c)return c;if(typeof a==='string')a=[].slice.call(arguments);c=this._c[b]=new this(a);return c};f._b=function(a){if(typeof a!=='string')return a;var b=this._9(a);if(b.pkg)return b.pkg;var c=this._v(a);if(c)return c;var d=new this();d.provides(a);return d};f.remove=function(a){var b=this._b(a);delete this._d[a];delete this._c[b._0]};f._w=function(a,b){this._p.push([a,b])};f._v=function(d){var g=this._p,h=g.length,j,i,l;for(j=0;j<h;j++){i=g[j];if(!i[0].test(d))continue;l=i[1].from+'/'+d.replace(/([a-z])([A-Z])/g,function(a,b,c){return b+'_'+c}).replace(/\./g,'/').toLowerCase()+'.js';var k=new this([l]);k.provides(d);if(l=i[1].require)k.requires(d.replace(i[0],l));return k}return null};f._9=function(a){return this._d[a]=this._d[a]||{}};f._1=function(a,b){if(typeof a!=='string')return undefined;var c=b?{}:this._9(a);if(c.obj!==undefined)return c.obj;var d=b||this.ENV,g=a.split('.'),h;while(h=g.shift())d=d&&d[h];if(b&&d===undefined)return this._1(a);return c.obj=d}})(JS.Package);JS.Package.CommonJSLoader={usable:function(){return typeof require==='function'&&typeof exports==='object'},__FILE__:function(){return this._2},loadFile:function(a,b){var c=process.cwd(),d=a.replace(/\.[^\.]+$/g,''),a=require('path'),g=a.resolve(d);this._2=g+'.js';b(require(g))}};JS.Package.DomLoader={HOST_REGEX:/^https?\:\/\/[^\/]+/i,usable:function(){return!!JS.Package._1('window.document.getElementsByTagName')},__FILE__:function(){var a=document.getElementsByTagName('script');src=a[a.length-1].src,url=window.location.href;if(/^\w+\:\/+/.test(src))return src;if(/^\//.test(src))return window.location.origin+src;return url.replace(/[^\/]*$/g,'')+src},cacheBust:function(a){var b=new Date().getTime();return a+(/\?/.test(a)?'&':'?')+b},fetch:function(a){var b=a;if(JS.cacheBust)a=this.cacheBust(a);this.HOST=this.HOST||this.HOST_REGEX.exec(window.location.href);var c=this.HOST_REGEX.exec(a);if(!this.HOST||(c&&c[0]!==this.HOST[0]))return null;JS.Package.log('Loading '+a);var d=new JS.Package.Deferred(),g=this,h=window.ActiveXObject?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();h.open('GET',a,true);h.onreadystatechange=function(){if(h.readyState!==4)return;h.onreadystatechange=g._r;d.succeed(h.responseText+'\n//@ sourceURL='+b);h=null};h.send(null);return d},loadFile:function(c,d,g){if(JS.cacheBust&&!g)c=this.cacheBust(c);var h=this,j=document.getElementsByTagName('head')[0],i=document.createElement('script');i.type='text/javascript';if(g)return g.callback(function(code){JS.Package.log('Executing '+c);eval(code);d()});JS.Package.log('Loading and executing '+c);i.src=c;i.onload=i.onreadystatechange=function(){var a=i.readyState,b=i.status;if(!a||a==='loaded'||a==='complete'||(a===4&&b===200)){d();i.onload=i.onreadystatechange=h._r;j=null;i=null}};j.appendChild(i)},loadStyle:function(a){var b=document.createElement('link');b.rel='stylesheet';b.type='text/css';b.href=a;document.getElementsByTagName('head')[0].appendChild(b)},_r:function(){}};JS.Package.RhinoLoader={usable:function(){return typeof java==='object'&&typeof require==='function'},__FILE__:function(){return this._2},loadFile:function(a,b){var c=java.lang.System.getProperty('user.dir'),d=a.replace(/\.[^\.]+$/g,'');var g=new java.io.File(c,d).toString();this._2=g+'.js';b(require(g))}};JS.Package.ServerLoader={usable:function(){return typeof JS.Package._1('load')==='function'&&typeof JS.Package._1('version')==='function'},__FILE__:function(){return this._2},loadFile:function(a,b){this._2=a;load(a);b()}};JS.Package.WshLoader={usable:function(){return!!JS.Package._1('ActiveXObject')&&!!JS.Package._1('WScript')},__FILE__:function(){return this._2},loadFile:function(a,b){this._2=a;var c=new ActiveXObject('Scripting.FileSystemObject'),d,g;try{d=c.OpenTextFile(a);g=function(){eval(d.ReadAll())};g();b()}finally{try{if(d)d.Close()}catch(e){}}}};JS.Package.XULRunnerLoader={jsloader:'@mozilla.org/moz/jssubscript-loader;1',cssservice:'@mozilla.org/content/style-sheet-service;1',ioservice:'@mozilla.org/network/io-service;1',usable:function(){try{var a=(Components||{}).classes;return!!(a&&a[this.jsloader]&&a[this.jsloader].getService)}catch(e){return false}},setup:function(){var a=Components.classes,b=Components.interfaces;this.ssl=a[this.jsloader].getService(b.mozIJSSubScriptLoader);this.sss=a[this.cssservice].getService(b.nsIStyleSheetService);this.ios=a[this.ioservice].getService(b.nsIIOService)},loadFile:function(a,b){if(window.console&&console.info)console.info('Loading '+a);this.ssl.loadSubScript(a);b()},loadStyle:function(a){var b=this.ios.newURI(a,null,null);this.sss.loadAndRegisterSheet(b,this.sss.USER_SHEET)}};(function(){var a=[JS.Package.XULRunnerLoader,JS.Package.DomLoader,JS.Package.RhinoLoader,JS.Package.CommonJSLoader,JS.Package.ServerLoader,JS.Package.WshLoader],b=a.length,c,d;for(c=0;c<b;c++){d=a[c];if(d.usable()){JS.Package.Loader=d;if(d.setup)d.setup();break}}})();JS.Package.DSL={__FILE__:function(){return JS.Package.Loader.__FILE__()},pkg:function(a,b){var c=b?JS.Package._q(b):JS.Package._b(a);c.provides(a);return c},file:function(){return JS.Package._q.apply(JS.Package,arguments)},load:function(a,b){JS.Package.Loader.loadFile(a,b)},autoload:function(a,b){JS.Package._w(a,b)}};JS.Package.DSL.files=JS.Package.DSL.file;JS.Package.DSL.loader=JS.Package.DSL.file;JS.Packages=function(a){a.call(JS.Package.DSL)};JS.cacheBust=false;JS.load=function(a,b){JS.Package.Loader.loadFile(a,function(){if(typeof b==='function')b()});return this};JS.require=function(){var b=[],c=0;while(typeof arguments[c]==='string'){b.push(arguments[c]);c+=1}var d=arguments[c],g=arguments[c+1];JS.Package.when({complete:b},function(a){if(!d)return;d.apply(g||null,a&&a.complete)});return this};
-//@ sourceMappingURL=package.js.map
View
8 build/min/package.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "package.js",
- "sourceRoot": "",
- "sources": ["../src/package.js"],
- "names": ["$", "CC", "Cc", "Ci", "Deferred", "Set", "_K", "_autoIncrement", "_autoload", "_autoloaders", "_callbacks", "_currentPath", "_deps", "_events", "_exports", "_fire", "_getByName", "_getByPath", "_getFromCache", "_getObject", "_index", "_indexByName", "_indexByPath", "_isLoaded", "_load", "_loader", "_manufacture", "_members", "_names", "_observers", "_on", "_onload", "_prefetch", "_source", "_status", "_styles", "_throw", "_uses", "_value", "a", "allDeps", "autoloaded", "autoloader", "autoloaders", "b", "block", "cached", "callback", "candidate", "candidates", "context", "cwd", "declaration", "e", "event", "eventList", "eventTable", "eventType", "exports", "file", "fireCallbacks", "fireOnLoad", "fso", "head", "host", "i", "index", "instance", "item", "key", "klass", "link", "list", "loadNext", "loader", "m", "message", "method", "methods", "module", "n", "name", "names", "object", "objects", "options", "originalPath", "packages", "part", "parts", "path", "pattern", "pkg", "placeholder", "requirePath", "requirements", "rootObject", "runner", "script", "scripts", "self", "source", "state", "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KAAM,WACJ,OAAO,GAAG,QAAQ3E,GAAW,MAAM,GAAG,QAAS,YAGjD,KAAM,SAASyE,EAAM9B,GACnB,GAAG,QAAQ,OAAO,SAAS8B,EAAM9B,IAGnC,SAAU,SAAS+B,EAASN,GAC1B,GAAG,QAAQ7E,GAAUmF,EAASN,KAIlC,GAAG,QAAQ,IAAI,MAAS,GAAG,QAAQ,IAAI,KACvC,GAAG,QAAQ,IAAI,OAAS,GAAG,QAAQ,IAAI,KAEvC,GAAG,SAAW,SAASjC,GACrBA,EAAY,KAAK,GAAG,QAAQ,MAG9B,GAAG,UAAY,MAEf,GAAG,KAAO,SAASuD,EAAK5D,GACtB,GAAG,QAAQ,OAAO,SAAS4D,EAAK,WAC9B,GAAI,OAAO5D,KAAc,UAAWA,MAEtC,OAAO,MAGT,GAAG,QAAU,WACX,IAAIgD,KAAmB9B,IAEvB,MAAO,OAAO,UAAUA,MAAQ,SAC9B8B,EAAa,KAAK,UAAU9B,IAC5BA,KAEF,IAAIlB,EAAW,UAAUkB,GAAIf,EAAU,UAAUe,KAEjD,GAAG,QAAQ,MAAM,SAAU8B,GAAe,SAASX,GACjD,IAAKrC,EAAU,OACfA,EAAS,MAAMG,GAAW,KAAMkC,GAAWA,EAAQ,YAGrD,OAAO;"
-}
View
2  build/min/proxy.js
@@ -1,2 +0,0 @@
-JS.Proxy=new JS.Module('Proxy',{extend:{Virtual:new JS.Class({initialize:function(a){var g=function(){},e=new JS.Class(),h={},f,d;g.prototype=a.prototype;for(f in a.prototype){d=a.prototype[f];if(typeof d==='function'&&d!==a)d=this.klass.forward(f);h[f]=d}e.include({initialize:function(){var c=arguments,b=null;this.__getSubject__=function(){b=new g;a.apply(b,c);return(this.__getSubject__=function(){return b})()}},klass:a,constructor:a},{_0:false});e.include(new JS.Module(h),{_0:false});e.include(this.klass.InstanceMethods);return e},extend:{forward:function(b){return function(){var c=this.__getSubject__();return c[b].apply(c,arguments)}},InstanceMethods:new JS.Module({extend:function(c){this.__getSubject__().extend(c);var b,a;for(b in c){a=c[b];if(typeof a==='function')a=JS.Proxy.Virtual.forward(b);this[b]=a}}})}})}});
-//@ sourceMappingURL=proxy.js.map
View
8 build/min/proxy.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "proxy.js",
- "sourceRoot": "",
- "sources": ["../src/proxy.js"],
- "names": ["_resolve", "args", "bridge", "delegators", "func", "klass", "method", "name", "proxy", "source", "subject"],
- "mappings": "AAAA,GAAG,MAAQ,IAAI,GAAG,QAAQ,QACxB,QACE,QAAS,IAAI,GAAG,OACd,WAAY,SAASK,GACnB,IAAIH,EAAa,aACbM,EAAa,IAAI,GAAG,QACpBL,KACAG,EAAQF,EAEZF,EAAO,UAAYG,EAAM,UAEzB,IAAKC,EAAO,GAAGD,EAAM,WACnBD,EAAOC,EAAM,UAAUC,GACvB,GAAI,OAAOF,KAAU,WAAaA,IAASC,EAAOD,EAAO,KAAK,MAAM,QAAQE,GAC5EH,EAAWG,GAAUF,EAGvBI,EAAM,SACJ,WAAY,WACV,IAAIP,EAAU,UACVS,EAAU,KAEd,KAAK,eAAiB,WACpBA,EAAU,IAAIR,EACdG,EAAM,MAAMK,EAAST,GACrB,OAAQ,KAAK,eAAiB,WAAa,OAAOS,QAGtD,MAAOL,EACP,YAAaA,IACXL,GAAU,QAEdQ,EAAM,QAAQ,IAAI,GAAG,OAAOL,IAAcH,GAAU,QACpDQ,EAAM,QAAQ,KAAK,MAAM,iBACzB,OAAOA,GAGT,QACE,QAAS,SAASD,GAChB,OAAO,WACL,IAAIG,EAAU,KAAK,iBACnB,OAAOA,EAAQH,GAAM,MAAMG,EAAS,aAIxC,gBAAiB,IAAI,GAAG,QACtB,OAAQ,SAASD,GACf,KAAK,iBAAiB,OAAOA,GAC7B,IAAIH,EAAQF,EACZ,IAAKE,EAAO,GAAGG,GACbL,EAAOK,EAAOH,GACd,GAAI,OAAOF,KAAW,UAAWA,EAAO,GAAG,MAAM,QAAQ,QAAQE,GACjE,KAAKA,GAAUF;"
-}
View
2  build/min/range.js
@@ -1,2 +0,0 @@
-JS.Range=new JS.Class('Range',{include:JS.Enumerable||{},extend:{compare:function(a,c){return JS.isType(a,Object)?a.compareTo(c):(a<c?-1:(a>c?1:0))},succ:function(b){if(JS.isType(b,'string')){var e=b.split(''),d=e.length,f=null,g=null,h=true;while(h&&d--){f=null;JS.Enumerable.forEach.call(this.SETS,function(a){var c=this[a];if(e[d]!==c._0)return;g=c;f=c._1},this);if(f===null){f=String.fromCharCode(e[d].charCodeAt(0)+1);h=false}e[d]=f}if(h)e.unshift(g._1==='0'?'1':g._1);return e.join('')}if(JS.isType(b,'number'))return b+1;if(typeof b.succ==='function')return b.succ();return null}},initialize:function(a,c,b){this._1=a;this._0=c;this._2=!!b},forEach:function(b,e){if(!b)return this.enumFor('forEach');b=JS.Enumerable.toFn(b);var d=this._1,f=this._2;if(this.klass.compare(d,this._0)>0)return;var g=JS.isType(d,Object)?function(a,c){return a.compareTo(c)<0}:function(a,c){return a!==c};while(g(d,this._0)){b.call(e||null,d);d=this.klass.succ(d);if(JS.isType(d,'string')&&d.length>this._0.length){f=true;break}}if(this.klass.compare(d,this._0)>0)return;if(!f)b.call(e||null,d)},equals:function(a){return JS.isType(a,JS.Range)&&JS.Enumerable.areEqual(a._1,this._1)&&JS.Enumerable.areEqual(a._0,this._0)&&a._2===this._2},hash:function(){var a=JS.Hash.codeFor(this._1)+'..';if(this._2)a+='.';a+=JS.Hash.codeFor(this._0);return a},first:function(){return this._1},last:function(){return this._0},excludesEnd:function(){return this._2},includes:function(a){var c=this.klass.compare(a,this._1),b=this.klass.compare(a,this._0);return c>=0&&(this._2?b<0:b<=0)},step:function(c,b,e){if(!b)return this.enumFor('step',c);b=JS.Enumerable.toFn(b);var d=0;this.forEach(function(a){if(d%c===0)b.call(e||null,a);d+=1})},toString:function(){var a=this._1.toString()+'..';if(this._2)a+='.';a+=this._0.toString();return a}});JS.Range.extend({DIGITS:new JS.Range('0','9'),LOWERCASE:new JS.Range('a','z'),UPPERCASE:new JS.Range('A','Z'),SETS:['DIGITS','LOWERCASE','UPPERCASE']});JS.Range.alias({begin:'first',end:'last',covers:'includes',match:'includes',member:'includes'});
-//@ sourceMappingURL=range.js.map
View
8 build/min/range.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "range.js",
- "sourceRoot": "",
- "sources": ["../src/range.js"],
- "names": ["_excludeEnd", "_first", "_last", "a", "another", "b", "block", "chars", "check", "context", "exclude", "excludeEnd", "first", "hash", "i", "last", "member", "n", "name", "needle", "next", "object", "one", "other", "range", "roll", "set", "str"],
- "mappings": "AAAA,GAAG,MAAQ,IAAI,GAAG,OAAO,QACvB,QAAS,GAAG,eAEZ,QACE,QAAS,SAASsB,EAAKlB,GACrB,OAAO,GAAG,OAAOkB,EAAK,QAChBA,EAAI,UAAUlB,IACbkB,EAAMlB,MAAgBkB,EAAMlB,SAGrC,KAAM,SAASiB,GACb,GAAI,GAAG,OAAOA,GAAS,UACrB,IAAId,EAAQc,EAAO,UACfP,EAAQP,EAAM,OACda,EAAQ,KACRM,EAAQ,KACRD,EAAQ,KAEZ,MAAOA,GAAQX,KACbM,EAAO,KAEP,GAAG,WAAW,QAAQ,KAAK,KAAK,KAAM,SAASF,GAC7C,IAAIM,EAAQ,KAAKN,GACjB,GAAIX,EAAMO,KAAOU,EAAMtB,GAAO,OAC9BwB,EAAOF,EACPJ,EAAOI,EAAMvB,IACZ,MAEH,GAAImB,IAAS,MACXA,EAAO,OAAO,aAAab,EAAMO,GAAG,iBACpCW,EAAO,MAETlB,EAAMO,GAAKM,EAGb,GAAIK,EAAMlB,EAAM,QAASmB,EAAIzB,aAAuByB,EAAIzB,IAExD,OAAOM,EAAM,SAGf,GAAI,GAAG,OAAOc,GAAS,SAAU,OAAOA,IACxC,GAAI,OAAOA,EAAO,QAAU,UAAW,OAAOA,EAAO,OACrD,OAAO,OAIX,WAAY,SAAST,EAAOG,EAAMJ,GAChC,KAAKV,GAASW,EACd,KAAKV,GAASa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,KAAM,SAASiB,EAAGX,EAAOG,GACvB,IAAKH,EAAO,OAAO,KAAK,SAAS,MAAOW,GACxCX,EAAQ,GAAG,WAAW,KAAKA,GAE3B,IAAIQ,IACJ,KAAK,QAAQ,SAASE,GACpB,GAAIF,EAAIG,MAASX,EAAM,KAAKG,GAAW,KAAMO,GAC7CF,QAIJ,SAAU,WACR,IAAIa,EAAM,KAAK1B,GAAO,gBACtB,GAAI,KAAKD,GAAa2B,OACtBA,GAAO,KAAKzB,GAAM,WAClB,OAAOyB,KAIX,GAAG,MAAM,QACP,OAAY,IAAI,GAAG,eACnB,UAAY,IAAI,GAAG,OAAO,IAAI,IAC9B,UAAY,IAAI,GAAG,OAAO,IAAI,IAC9B,OAAc,SAAU,YAAa,cAGvC,GAAG,MAAM,OACP,OAAS,OACT,KAAS,MACT,QAAS,UACT,OAAS,UACT,QAAS;"
-}
View
2  build/min/set.js
@@ -1,2 +0,0 @@
-JS.Set=new JS.Class('Set',{extend:{forEach:function(a,b,c){if(!a||!b)return;if(a.forEach)return a.forEach(b,c);for(var d=0,e=a.length;d<e;d++){if(a[d]!==undefined)b.call(c||null,a[d],d)}}},include:JS.Enumerable||{},initialize:function(a,b,c){this.clear();if(b)this.klass.forEach(a,function(item){this.add(b.call(c||null,item))},this);else this.merge(a)},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);this._0.forEachKey(a,b);return this},add:function(a){if(this.contains(a))return false;this._0.store(a,true);this.length=this.size=this._0.length;return true},classify:function(c,d){if(!c)return this.enumFor('classify');c=JS.Enumerable.toFn(c);var e=new JS.Hash();this.forEach(function(a){var b=c.call(d||null,a);if(!e.hasKey(b))e.store(b,new this.klass);e.get(b).add(a)},this);return e},clear:function(){this._0=new JS.Hash();this.size=this.length=0},complement:function(b){var c=new this.klass;this.klass.forEach(b,function(a){if(!this.contains(a))c.add(a)},this);return c},contains:function(a){return this._0.hasKey(a)},difference:function(b){b=JS.isType(b,JS.Set)?b:new JS.Set(b);var c=new this.klass;this.forEach(function(a){if(!b.contains(a))c.add(a)});return c},divide:function(a,b){if(!a)return this.enumFor('divide');a=JS.Enumerable.toFn(a);var c=this.classify(a,b),d=new JS.Set;c.forEachValue(d.method('add'));return d},equals:function(b){if(this.length!==b.length||!JS.isType(b,JS.Set))return false;var c=true;this.forEach(function(a){if(!c)return;if(!b.contains(a))c=false});return c},hash:function(){var b=[];this.forEach(function(a){b.push(JS.Hash.codeFor(a))});return b.sort().join('')},flatten:function(b){var c=new this.klass;c._0=this._0;if(!b){b=this;b.clear()}c.forEach(function(a){if(JS.isType(a,JS.Set))a.flatten(b);else b.add(a)});return b},inspect:function(){return this.toString()},intersection:function(b){var c=new this.klass;this.klass.forEach(b,function(a){if(this.contains(a))c.add(a)},this);return c},isEmpty:function(){return this._0.length===0},isProperSubset:function(a){return this._0.length<a._0.length&&this.isSubset(a)},isProperSuperset:function(a){return this._0.length>a._0.length&&this.isSuperset(a)},isSubset:function(b){var c=true;this.forEach(function(a){if(!c)return;if(!b.contains(a))c=false});return c},isSuperset:function(a){return a.isSubset(this)},merge:function(b){this.klass.forEach(b,function(a){this.add(a)},this)},product:function(c){var d=new JS.Set;this.forEach(function(b){this.klass.forEach(c,function(a){d.add([b,a])})},this);return d},rebuild:function(){this._0.rehash();this.length=this.size=this._0.length},remove:function(a){this._0.remove(a);this.length=this.size=this._0.length},removeIf:function(b,c){if(!b)return this.enumFor('removeIf');b=JS.Enumerable.toFn(b);this._0.removeIf(function(a){return b.call(c||null,a.key)});this.length=this.size=this._0.length;return this},replace:function(a){this.clear();this.merge(a)},subtract:function(b){this.klass.forEach(b,function(a){this.remove(a)},this)},toString:function(){var b=[];this.forEach(function(a){b.push(a.toString())});return this.klass.displayName+':{'+b.join(',')+'}'},union:function(a){var b=new this.klass;b.merge(this);b.merge(a);return b},xor:function(b){var c=new this.klass(b);this.forEach(function(a){c[c.contains(a)?'remove':'add'](a)});return c},_1:function(a){var b=this._0.length,c=JS.Enumerable;while(b--){if(c.areEqual(a,this._0[b]))return b}return-1}});JS.Set.alias({n:'intersection',u:'union',x:'product'});JS.HashSet=JS.Set;JS.OrderedSet=new JS.Class('OrderedSet',JS.Set,{clear:function(){this._0=new JS.OrderedHash();this.size=this.length=0}});JS.SortedSet=new JS.Class('SortedSet',JS.Set,{extend:{compare:function(a,b){return JS.isType(a,Object)?a.compareTo(b):(a<b?-1:(a>b?1:0))}},forEach:function(a,b){if(!a)return this.enumFor('forEach');a=JS.Enumerable.toFn(a);this.klass.forEach(this._0,a,b);return this},add:function(a){var b=this._1(a,true);if(b===null)return false;this._0.splice(b,0,a);this.length=this.size=this._0.length;return true},clear:function(){this._0=[];this.size=this.length=0},contains:function(a){return this._1(a)!==-1},rebuild:function(){var a=this._0;this.clear();this.merge(a)},remove:function(a){var b=this._1(a);if(b===-1)return;this._0.splice(b,1);this.length=this.size=this._0.length},removeIf:function(a,b){if(!a)return this.enumFor('removeIf');a=JS.Enumerable.toFn(a);var c=this._0,d=c.length;while(d--){if(a.call(b||null,c[d]))this.remove(c[d])}return this},_1:function(a,b){var c=this._0,d=c.length,e=0,f=d,g=this.klass.compare,h=JS.Enumerable,i;if(d===0)return b?0:-1;if(g(a,c[0])<1){f=0;e=0}if(g(a,c[d-1])>0){f=0;e=d}while(!h.areEqual(a,c[e])&&f>0.5){f=f/2;e+=(g(a,c[e])>0?1:-1)*Math.round(f);if(e>0&&g(a,c[e-1])>0&&g(a,c[e])<1)f=0}while(c[e]&&!h.areEqual(a,c[e])&&g(a,c[e])===0)e+=1;i=h.areEqual(a,c[e]);return b?(i?null:e):(i?e:-1)}});JS.Enumerable.include({toSet:function(a,b,c){a=a||JS.Set;return new a(this,b,c)}});
-//@ sourceMappingURL=set.js.map
View
8 build/min/set.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "set.js",
- "sourceRoot": "",
- "sources": ["../src/set.js"],
- "names": ["Enum", "_indexOf", "_members", "another", "block", "classes", "compare", "context", "copy", "d", "found", "hashes", "i", "index", "insertionPoint", "item", "items", "klass", "list", "members", "n", "object", "one", "other", "pair", "pairs", "partner", "point", "result", "set", "sets", "value"],
- "mappings": "AAAA,GAAG,IAAM,IAAI,GAAG,OAAO,MACrB,QACE,QAAS,SAASkB,EAAMd,EAAOG,GAC7B,IAAKW,IAASd,EAAO,OACrB,GAAIc,EAAK,QAAS,OAAOA,EAAK,QAAQd,EAAOG,GAC7C,IAAK,IAAIK,IAAOQ,EAAIF,EAAK,OAAQN,EAAIQ,EAAGR,KACtC,GAAIM,EAAKN,KAAO,UACdR,EAAM,KAAKG,GAAW,KAAMW,EAAKN,GAAIA,MAK7C,QAAS,GAAG,eAEZ,WAAY,SAASM,EAAMd,EAAOG,GAChC,KAAK,QACL,GAAIH,EAAO,KAAK,MAAM,QAAQc,EAAM,SAAS,MAC3C,KAAK,IAAId,EAAM,KAAKG,GAAW,KAAM,QACpC,MACH,KAAK,KAAK,MAAMW,IAGlB,QAAS,SAASd,EAAOG,GACvB,IAAKH,EAAO,OAAO,KAAK,SAAS,UACjCA,EAAQ,GAAG,WAAW,KAAKA,GAE3B,KAAKF,GAAS,WAAWE,EAAOG,GAChC,OAAO,MAGT,IAAK,SAASQ,GACZ,GAAI,KAAK,SAASA,GAAO,OAAO,MAChC,KAAKb,GAAS,MAAMa,EAAM,MAC1B,KAAK,OAAS,KAAK,KAAO,KAAKb,GAAS,OACxC,OAAO,MAGT,SAAU,SAASE,EAAOG,GACxB,IAAKH,EAAO,OAAO,KAAK,SAAS,WACjCA,EAAQ,GAAG,WAAW,KAAKA,GAE3B,IAAIC,EAAU,IAAI,GAAG,OACrB,KAAK,QAAQ,SAASU,GACpB,IAAIgB,EAAQ3B,EAAM,KAAKG,GAAW,KAAMQ,GACxC,IAAKV,EAAQ,OAAO0B,GAAQ1B,EAAQ,MAAM0B,EAAO,IAAI,KAAK,OAC1D1B,EAAQ,IAAI0B,GAAO,IAAIhB,IACtB,MACH,OAAOV,GAGT,MAAO,WACL,KAAKH,GAAW,IAAI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,EAAK,SAASe,EAAMC,EAAMJ,IAClC,OAAOE,GACAJ,EAAQ,KAAOE,IACfF,EAAQE,SAInB,GAAG,WAAW,SACZ,MAAO,SAASK,EAAOb,EAAOG,GAC5BU,EAAQA,GAAS,GAAG,IACpB,OAAO,IAAIA,EAAM,KAAMb,EAAOG;"
-}
View
2  build/min/stack_trace.js
@@ -1,2 +0,0 @@
-JS.StackTrace=new JS.Module('StackTrace',{extend:{logger:new JS.Singleton({include:JS.Console,active:false,update:function(a,b){if(!this.active)return;switch(a){case'call':return this.logEnter(b);case'return':return this.logExit(b);case'error':return this.logError(b)}},indent:function(){var a=' ';JS.StackTrace.forEach(function(){a+='| '});return a},fullName:function(a){var b=JS.Console,f=a.method,g=a.env,d=f.name,c=f.module;return b.nameOf(g)+(c===g?'':'('+b.nameOf(c)+')')+'#'+d},logEnter:function(a){var b=this.fullName(a),f=JS.Console.convert(a.args).replace(/^\[/,'(').replace(/\]$/,')');if(this._0)this.puts();this.reset();this.print(' ');this.consoleFormat('bgblack','white');this.print('TRACE');this.reset();this.print(this.indent());this.blue();this.print(b);this.red();this.print(f);this.reset();this._0=true},logExit:function(a){var b=this.fullName(a);if(a.leaf){this.consoleFormat('red');this.print(' --> ')}else{this.reset();this.print(' ');this.consoleFormat('bgblack','white');this.print('TRACE');this.reset();this.print(this.indent());this.blue();this.print(b);this.red();this.print(' --> ')}this.consoleFormat('yellow');this.puts(JS.Console.convert(a.result));this.reset();this.print('');this._0=false},logError:function(a){this.puts();this.reset();this.print(' ');this.consoleFormat('bgred','white');this.print('ERROR');this.consoleFormat('bold','red');this.print(' '+JS.Console.convert(a));this.reset();this.print(' thrown by ');this.bold();this.print(JS.StackTrace.top().name);this.reset();this.puts('. Backtrace:');this.backtrace()},backtrace:function(){JS.StackTrace.reverseForEach(function(a){var b=JS.Console.convert(a.args).replace(/^\[/,'(').replace(/\]$/,')');this.print(' | ');this.consoleFormat('blue');this.print(a.name);this.red();this.print(b);this.reset();this.puts(' in ');this.print(' | ');this.bold();this.puts(JS.Console.convert(a.object))},this);this.reset();this.puts()}}),include:[JS.Observable,JS.Enumerable],wrap:function(b,f,g){var d=JS.StackTrace;var c=function(){var a;d.push(this,f,g,Array.prototype.slice.call(arguments));try{a=b.apply(this,arguments)}catch(e){d.error(e)}d.pop(a);return a};c.toString=function(){return b.toString()};c.__traced__=true;return c},stack:[],forEach:function(a,b){JS.Enumerable.forEach.call(this.stack,a,b)},top:function(){return this.stack[this.stack.length-1]||{}},push:function(a,b,f,g){var d=this.stack;if(d.length>0)d[d.length-1].leaf=false;var c={object:a,method:b,env:f,args:g,leaf:true};c.name=this.logger.fullName(c);this.notifyObservers('call',c);d.push(c)},pop:function(a){var b=this.stack.pop();b.result=a;this.notifyObservers('return',b)},error:function(a){if(a.logged)throw a;a.logged=true;this.notifyObservers('error',a);this.stack=[];throw a;}}});JS.StackTrace.addObserver(JS.StackTrace.logger);
-//@ sourceMappingURL=stack_trace.js.map
View
8 build/min/stack_trace.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "stack_trace.js",
- "sourceRoot": "",
- "sources": ["../src/stack_trace.js"],
- "names": ["C", "_open", "args", "block", "context", "data", "e", "env", "event", "frame", "fullName", "func", "indent", "method", "module", "name", "object", "result", "self", "stack", "wrapper"],
- "mappings": "AAAA,GAAG,WAAa,IAAI,GAAG,QAAQ,aAC7B,QACE,OAAQ,IAAI,GAAG,WACb,QAAS,GAAG,QACZ,OAAQ,MAER,OAAQ,SAASQ,EAAOH,GACtB,IAAK,KAAK,OAAQ,OAClB,OAAQG,GACN,KAAM,MAAU,OAAO,KAAK,SAASH,GACrC,KAAM,QAAU,OAAO,KAAK,QAAQA,GACpC,KAAM,OAAU,OAAO,KAAK,SAASA,KAIzC,OAAQ,WACN,IAAIO,MACJ,GAAG,WAAW,QAAQ,WAAaA,WACnC,OAAOA,GAGT,SAAU,SAASH,GACjB,IAAIT,EAAW,GAAG,QACda,EAAWJ,EAAM,OACjBF,EAAWE,EAAM,I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@@
-JS.State=new JS.Module('State',{__getState__:function(a){if(typeof a==='object')return a;if(typeof a==='string')return(this.states||{})[a];return{}},setState:function(a){this.__state__=this.__getState__(a);JS.State.addMethods(this.__state__,this.klass)},inState:function(){var a=arguments.length;while(a--){if(this.__state__===this.__getState__(arguments[a]))return true}return false},extend:{ClassMethods:new JS.Module({states:function(a){this.define('states',JS.State.buildCollection(this,a))}}),included:function(a){a.extend(this.ClassMethods)},stub:function(){return this},buildStubs:function(a,c,d){var b,e;for(b in d){c[b]={};for(e in d[b])a[e]=this.stub}},findStates:function(a,c){var d=a.length,b=[];while(d--){if(a[d].hasOwnProperty(c))b.push(a[d][c])}return b},buildCollection:function(a,c){var d={},b={},e=a.lookup('states'),h,g,k,i,j,f,l;this.buildStubs(d,b,c);for(f=0,l=e.length;f<l;f++)this.buildStubs(d,b,e[f]);for(h in b){g=new JS.Class(c[h]);j=this.findStates(e,h);f=j.length;while(f--){if(j[f])g.include(j[f].klass)}k={};for(i in d){if(!g.prototype[i])k[i]=d[i]}g.include(k);b[h]=new g}if(a.__tgt__)this.addMethods(d,a.__tgt__.klass);return b},addMethods:function(a,c){if(!c)return;var d={},b=c.prototype,e;for(e in a){if(b[e])continue;c.define(e,this.wrapped(e))}},wrapped:function(c){return function(){var a=(this.__state__||{})[c];return a?a.apply(this,arguments):this}}}});
-//@ sourceMappingURL=state.js.map
View
8 build/min/state.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "state.js",
- "sourceRoot": "",
- "sources": ["../src/state.js"],
- "names": ["block", "collection", "collections", "func", "i", "klass", "method", "methods", "mixins", "module", "n", "name", "proto", "results", "state", "states", "stubs", "superstates"],
- "mappings": "AAAA,GAAG,MAAQ,IAAI,GAAG,QAAQ,QACxB,aAAc,SAASc,GACrB,GAAI,OAAOA,KAAW,QAAS,OAAOA,EACtC,GAAI,OAAOA,KAAW,QAAS,OAAQ,KAAK,YAAcA,GAC1D,UAGF,SAAU,SAASA,GACjB,KAAK,UAAY,KA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IAAIT,EAE1B,GAAII,EAAO,QAAS,KAAK,WAAWO,EAAOP,EAAO,QAAQ,OAC1D,OAAOR,GAGT,WAAY,SAASa,EAAOT,GAC1B,IAAKA,EAAO,OAEZ,IAAIE,KACAK,EAAUP,EAAM,UAChBC,EAEJ,IAAKA,EAAO,GAAGQ,GACb,GAAIF,EAAMN,GAAS,SACnBD,EAAM,OAAOC,EAAQ,KAAK,QAAQA,MAItC,QAAS,SAASA,GAChB,OAAO,WACL,IAAIH,GAAQ,KAAK,eAAiBG,GAClC,OAAOH,EAAOA,EAAK,MAAM,KAAM,WAAa;"
-}
View
2  build/min/test.js
@@ -1,2 +0,0 @@
-JS.Test=new JS.Module('Test',{extend:{Unit:new JS.Module({}),asyncTimeout:10,filter:function(a,b){return JS.Test.Runner.filter(a,b)},UI:new JS.Module({}),Reporters:new JS.Module({extend:{METHODS:['startRun','startSuite','startTest','update','addFault','endTest','endSuite','endRun'],_K:{},register:function(a,b){this._K[a]=b},find:function(a){if(!a)return null;return this._K[a]||null}}}),addReporter:function(a){var b=this.reporter;if(!(a instanceof JS.Test.Reporters.Composite)){this.reporter=new JS.Test.Reporters.Composite();this.reporter.addReporter(b)}this.reporter.addReporter(a)},setReporter:function(a,b){if(this.reporter&&b!==false)return;this.reporter=a}}});JS.Test.Unit.extend({Observable:new JS.Module({addListener:function(a,b,c){if(b===undefined)throw new Error('No callback was passed as a listener');this.channels()[a]=this.channels()[a]||[];this.channels()[a].push([b,c]);return b},removeListener:function(a,b,c){var d=this.channels()[a];if(!d)return;var f=d.length;while(f--){if(d[f][0]===b){d.splice(f,1);return b}}return null},notifyListeners:function(a,b){var b=JS.array(arguments),a=b.shift(),c=this.channels()[a];if(!c)return 0;for(var d=0,f=c.length;d<f;d++)c[d][0].apply(c[d][1]||null,b);return c.length},channels:function(){return this.__channels__=this.__channels__||[]}})});JS.Test.Unit.extend({AssertionFailedError:new JS.Class(Error,{initialize:function(a){this.message=a.toString()}}),Assertions:new JS.Module({assertBlock:function(a,b,c){if(typeof a==='function'){c=b;b=a;a=null}this.__wrapAssertion__(function(){if(!b.call(c||null)){a=this.buildMessage(a||'assertBlock failed');throw new JS.Test.Unit.AssertionFailedError(a);}})},flunk:function(a){this.assertBlock(this.buildMessage(a||'Flunked'),function(){return false})},assert:function(a,b){this.__wrapAssertion__(function(){this.assertBlock(this.buildMessage(b,'<?> is not true',a),function(){return a})})},assertEqual:function(a,b,c){var d=this.buildMessage(c,'<?> expected but was\n<?>',a,b);this.assertBlock(d,function(){return JS.Enumerable.areEqual(a,b)})},assertNotEqual:function(a,b,c){var d=this.buildMessage(c,'<?> expected not to be equal to\n<?>',a,b);this.assertBlock(d,function(){return!JS.Enumerable.areEqual(a,b)})},assertNull:function(a,b){this.assertEqual(null,a,b)},assertNotNull:function(a,b){var c=this.buildMessage(b,'<?> expected not to be null',a);this.assertBlock(c,function(){return a!==null})},assertKindOf:function(c,d,f){this.__wrapAssertion__(function(){var a=(!d||typeof c==='string')?typeof d:(d.klass||d.constructor);var b=this.buildMessage(f,'<?> expected to be an instance of\n<?> but was\n<?>',d,c,a);this.assertBlock(b,function(){return JS.isType(d,c)})})},assertRespondTo:function(c,d,f){this.__wrapAssertion__(function(){var a=this.buildMessage('','<?>\ngiven as the method name argument to #assertRespondTo must be a String',d);this.assertBlock(a,function(){return typeof d==='string'});var b=c?c.constructor:typeof c;a=this.buildMessage(f,'<?>\nof type <?>\nexpected to respond to <?>',c,b,d);this.assertBlock(a,function(){return c&&c[d]!==undefined})})},assertMatch:function(b,c,d){this.__wrapAssertion__(function(){var a=this.buildMessage(d,'<?> expected to match\n<?>',c,b);this.assertBlock(a,function(){return JS.match(b,c)})})},assertNoMatch:function(b,c,d){this.__wrapAssertion__(function(){var a=this.buildMessage(d,'<?> expected not to match\n<?>',c,b);this.assertBlock(a,function(){return(typeof b.test==='function')?!b.test(c):!b.match(c)})})},assertSame:function(a,b,c){var d=this.buildMessage(c,'<?> expected to be the same as\n<?>',a,b);this.assertBlock(d,function(){return b===a})},assertNotSame:function(a,b,c){var d=this.buildMessage(c,'<?> expected not to be the same as\n<?>',a,b);this.assertBlock(d,function(){return b!==a})},assertInDelta:function(b,c,d,f){this.__wrapAssertion__(function(){this.assertKindOf('number',b);this.assertKindOf('number',c);this.assertKindOf('number',d);this.assert(d>=0,'The delta should not be negative');var a=this.buildMessage(f,'<?> and\n<?> expected to be within\n<?> of each other',b,c,d);this.assertBlock(a,function(){return Math.abs(b-c)<=d})})},assertSend:function(b,c){this.__wrapAssertion__(function(){this.assertKindOf(Array,b,'assertSend requires an array of send information');this.assert(b.length>=2,'assertSend requires at least a receiver and a message name');var a=this.buildMessage(c,'<?> expected to respond to\n<?(?)> with a true value',b[0],JS.Test.Unit.AssertionMessage.literal(b[1]),b.slice(2));this.assertBlock(a,function(){return b[0][b[1]].apply(b[0],b.slice(2))})})},__processExceptionArgs__:function(a){var a=JS.array(a),b=(typeof a[a.length-1]==='function')?null:a.pop(),c=a.pop(),d=JS.isType(a[a.length-1],'string')?a.pop():'',f=new JS.Enumerable.Collection(a);return[a,f,d,c,b]},assertThrow:function(){var d=this.__processExceptionArgs__(arguments),f=d[0],g=d[1],h=d[2],j=d[3],k=d[4];this.__wrapAssertion__(function(){var b=this.buildMessage(h,'<?> exception expected but none was thrown',f),c;this.assertBlock(b,function(){try{j.call(k)}catch(e){c=e;return true}return false});b=this.buildMessage(h,'<?> exception expected but was\n?',f,c);this.assertBlock(b,function(){return g.any(function(a){return JS.isType(c,a)||(c.name&&c.name===a.name)})})})},assertThrows:function(){return this.assertThrow.apply(this,arguments)},assertNothingThrown:function(){var a=this.__processExceptionArgs__(arguments),b=a[0],c=a[1],d=a[2],f=a[3],g=a[4];this.__wrapAssertion__(function(){try{f.call(g)}catch(e){if((b.length===0&&!JS.isType(e,JS.Test.Unit.AssertionFailedError))||c.any(function(type){return JS.isType(e,type)}))this.assertBlock(this.buildMessage(d,'Exception thrown:\n?',e),function(){return false});else throw e;}})},buildMessage:function(){var a=JS.array(arguments),b=a.shift(),c=a.shift();return new JS.Test.Unit.AssertionMessage(b,c,a)},__wrapAssertion__:function(a){if(this.__assertionWrapped__===undefined)this.__assertionWrapped__=false;if(!this.__assertionWrapped__){this.__assertionWrapped__=true;try{this.addAssertion();return a.call(this)}finally{this.__assertionWrapped__=false}}else{return a.call(this)}},addAssertion:function(){}})});JS.Test.Unit.extend({AssertionMessage:new JS.Class({extend:{Literal:new JS.Class({initialize:function(a){this._13=a;this.toString=this.inspect},inspect:function(){return this._13.toString()}}),literal:function(a){return new this.Literal(a)},Template:new JS.Class({extend:{create:function(a){var b=a?a.match(/\(\?\)|(?=[^\\])\?|(?:(?!\(\?\))(?:\\\?|[^\?]))+/g):[];return new this(b)}},initialize:function(b){this._L=new JS.Enumerable.Collection(b);this.count=this._L.findAll(function(a){return a==='?'||a==='(?)'}).length},result:function(b){if(b.length!==this.count)throw'The number of parameters does not match the number of substitutions';var c=JS.array(b);return this._L.collect(function(a){if(a==='(?)')return c.shift().replace(/^\[/,'(').replace(/\]$/,')');if(a==='?')return c.shift();return a.replace(/\\\?/g,'?')}).join('')}})},initialize:function(a,b,c){this._M=a;this._14=b;this._15=new JS.Enumerable.Collection(c)},template:function(){return this._16=this._16||this.klass.Template.create(this._14)},toString:function(){var b=[],c,d;if(this._M)b.push(this._M);d=this.template().result(this._15.collect(function(a){return JS.Console.convert(a)},this));if(d!=='')b.push(d);return b.join('\n')}})});JS.Test.Unit.extend({Failure:new JS.Class({initialize:function(a,b){this._y=a;this._17=b},metadata:function(){return{test:this.testMetadata(),error:this.errorMetadata()}},testMetadata:function(){return this._y.metadata()},errorMetadata:function(){return{type:'failure',message:this._17}}})});JS.Test.Unit.extend({Error:new JS.Class({initialize:function(a,b){this._y=a;this._b=b},metadata:function(){return{test:this.testMetadata(),error:this.errorMetadata()}},testMetadata:function(){return this._y.metadata()},errorMetadata:function(){return{type:'error',message:this._b.name+': '+this._b.message,backtrace:JS.Console.filterBacktrace(this._b.stack)}}})});JS.Test.Unit.extend({TestResult:new JS.Class({include:JS.Test.Unit.Observable,extend:{CHANGED:'Test.Unit.TestResult.CHANGED',FAULT:'Test.Unit.TestResult.FAULT'},initialize:function(){this._N=this._O=0;this._8=[];this._j=[]},addRun:function(){this._N+=1;this.notifyListeners(this.klass.CHANGED,this)},addFailure:function(a){this._8.push(a);this.notifyListeners(this.klass.FAULT,a);this.notifyListeners(this.klass.CHANGED,this)},addError:function(a){this._j.push(a);this.notifyListeners(this.klass.FAULT,a);this.notifyListeners(this.klass.CHANGED,this)},addAssertion:function(){this._O+=1;this.notifyListeners(this.klass.CHANGED,this)},passed:function(){return this._8.length===0&&this._j.length===0},runCount:function(){return this._N},assertionCount:function(){return this._O},failureCount:function(){return this._8.length},errorCount:function(){return this._j.length},metadata:function(){return{passed:this.passed(),tests:this.runCount(),assertions:this.assertionCount(),failures:this.failureCount(),errors:this.errorCount()}}})});JS.Test.Unit.extend({TestSuite:new JS.Class({include:JS.Enumerable,extend:{STARTED:'Test.Unit.TestSuite.STARTED',FINISHED:'Test.Unit.TestSuite.FINISHED',forEach:function(b,c,d,f){var g=false,h=false,j=b.length,k=-1,l=new Date().getTime(),m=this.setTimeout;var n=function(){h=true;var a=new Date().getTime();if(JS.Console.BROWSER&&(a-l)>1000){l=a;g=false;m(o,0)}else if(!g){g=true;while(g)o()}};var o=function(){k+=1;if(k===j){g=false;return d&&d.call(f||null)}h=false;c.call(f||null,b[k],n);if(!h)g=false};n()},setTimeout:(function(){return(typeof setTimeout==='undefined')?undefined:setTimeout})()},initialize:function(a){this._k=a||'Unnamed TestSuite';this._1=[]},forEach:function(a,b,c){this.klass.forEach(this._1,a,b,c)},run:function(c,d,f,g){f.call(g||null,this.klass.STARTED,this);this.forEach(function(a,b){a.run(c,b,f,g)},function(){f.call(g||null,this.klass.FINISHED,this);d.call(g||null)},this)},push:function(a){this._1.push(a);return this},remove:function(a){var b=this._1.length;while(b--){if(this._1[b]===a)this._1.splice(b,1)}},size:function(){var a=0,b=this._1.length;while(b--){a+=this._1[b].size()}return a},empty:function(){return this._1.length===0},toString:function(){return this._k}})});JS.Test.Unit.extend({TestCase:new JS.Class({include:JS.Test.Unit.Assertions,extend:[JS.Enumerable,{STARTED:'Test.Unit.TestCase.STARTED',FINISHED:'Test.Unit.TestCase.FINISHED',testCases:[],reports:[],handlers:[],clear:function(){this.testCases=[]},inherited:function(a){this.testCases.push(a)},forEach:function(a,b){for(var c=0,d=this.testCases.length;c<d;c++)a.call(b||null,this.testCases[c])},metadata:function(){var a=this._c||this.displayName,b=[],c=this.superclass;while(c!==JS.Test.Unit.TestCase){b.unshift(c._c||c.displayName);c=c.superclass}return{fullName:b.concat(a).join(' '),shortName:a,context:b}},suite:function(b,c,d){var f=this.metadata().fullName,g=new JS.Enumerable.Collection(this.instanceMethods(c)),h=g.select(function(a){return/^test./.test(a)&&this.filter(f+' '+a,b)},this).sort(),j=new JS.Test.Unit.TestSuite(this.displayName);for(var k=0,l=h.length;k<l;k++){try{j.push(new this(h[k]))}catch(e){}}if(j.empty()&&d){try{j.push(new this('defaultTest'))}catch(e){}}return j},filter:function(a,b){if(!b||b.length===0)return true;return a.indexOf(b)>=0}}],initialize:function(a){if(typeof this[a]!=='function')throw'invalid_test';this._0=a;this._2=true},run:function(a,b,c,d){c.call(d||null,this.klass.STARTED,this);this._z=a;var f=function(){this.exec('teardown',function(){this.exec(function(){JS.Test.Unit.mocking.verify()},function(){a.addRun();c.call(d||null,this.klass.FINISHED,this);b()})})};this.exec('setup',function(){this.exec(this._0,f)},f)},exec:function(b,c,d){if(!b)return c.call(this);if(!d)d=c;var f=(typeof b==='function')?b.length:this.__eigen__().instanceMethod(b).arity,g=(typeof b==='function')?b:this[b],h=null,j=false,k=false,l=this;if(f===0)return this._P(function(){g.call(this);c.call(this)},this._Q(d));var m=function(a){l.exec(function(){j=true;this._m();if(h)JS.ENV.clearTimeout(h);throw a;},c,d)};this._R(m);this._P(function(){g.call(this,function(a){k=true;l._m();if(h)JS.ENV.clearTimeout(h);if(!j)l.exec(a,c,d)})},this._Q(d));if(!k&&JS.ENV.setTimeout)h=JS.ENV.setTimeout(function(){l.exec(function(){j=true;this._m();throw new Error('Timed out after waiting '+JS.Test.asyncTimeout+' seconds for test to resume');},c,d)},JS.Test.asyncTimeout*1000)},_R:function(a,b){if(!a)return;this._m(false);if(JS.Console.NODE)process.addListener('uncaughtException',a);else if(JS.Console.BROWSER)window.onerror=a;if(b!==false)this.klass.handlers.push(a);return a},_m:function(a){var b=this.klass.handlers,c=b[b.length-1];if(!c)return;if(JS.Console.NODE)process.removeListener('uncaughtException',c);else if(JS.Console.BROWSER)window.onerror=null;if(a!==false){b.pop();this._R(b[b.length-1],false)}},_Q:function(b){return function(a){if(JS.isType(a,JS.Test.Unit.AssertionFailedError))this.addFailure(a.message);else this.addError(a);if(b)b.call(this)}},_P:function(a,b,c){try{a.call(this)}catch(e){if(b)b.call(this,e)}finally{if(c)c.call(this)}},setup:function(a){a()},teardown:function(a){a()},defaultTest:function(){return this.flunk('No tests were specified')},passed:function(){return this._2},size:function(){return 1},addAssertion:function(){this._z.addAssertion()},addFailure:function(a){this._2=false;this._z.addFailure(new JS.Test.Unit.Failure(this,a))},addError:function(a){this._2=false;this._z.addError(new JS.Test.Unit.Error(this,a))},name:function(){var a=this._0.replace(/^test\W*/ig,'');if(a.replace(this.klass.displayName,'')===a)return this._0+'('+this.klass.displayName+')';else return a},metadata:function(){var a=this._0.replace(/^test:\W*/ig,''),b=[],c=this.klass;while(c!==JS.Test.Unit.TestCase){b.unshift(c._c||c.displayName);c=c.superclass}return{fullName:b.concat(a).join(' '),shortName:a,context:b}},toString:function(){return this.name()}})});JS.Test.UI.extend({Terminal:new JS.Class({OPTIONS:{format:String,test:String},SHORTS:{'f':'--format','t':'--test'},prepare:function(a,b){a.call(b||null,this)},getOptions:function(){var a={};if(JS.Console.NODE){a=require('nopt')(this.OPTIONS,this.SHORTS);if(process.env.TAP)a.format='tap';delete a.argv}return a},getReporters:function(a){var b=[],c=JS.Test.Reporters;var d=c.find(a.format)||c.Progress;b.push(new d(a));b.push(new c.ExitStatus(a));return b}})});JS.Test.UI.extend({Browser:new JS.Class({prepare:function(a,b){var c=(window.location.hash||'').replace(/^#/,''),d=this;if(c==='testem'){JS.Package.Loader.loadFile('/testem.js',function(){a.call(b||null,d)})}else{a.call(b||null,d)}},getOptions:function(){var a=(window.location.search||'').replace(/^\?/,''),b=a.split('&'),c={},d;for(var f=0,g=b.length;f<g;f++){d=b[f].split('=');c[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return c},getReporters:function(a){var b=[],c=JS.Test.Reporters,d=new c.Browser(a);b.push(d);if(JS.ENV.TestSwarm)b.push(new c.TestSwarm(a,d));else if(JS.ENV.Testem)b.push(new c.Testem(a));else b.push(new c.Console(a));return b}})});JS.Test.Reporters.extend({Progress:new JS.Class({include:JS.Console,SYMBOLS:{failure:'F',error:'E'},NAMES:{failure:'Failure',error:'Error'},initialize:function(){this._3=[]},startRun:function(a){this.consoleFormat('bold');this.puts('Loaded suite: '+a.suites.join(', '));this.puts('');this.reset();this.puts('Started')},startSuite:function(a){},startTest:function(a){this._A=false},addFault:function(a){this._3.push(a);if(this._A)return;this._A=true;this.consoleFormat('bold','red');this.print(this.SYMBOLS[a.error.type]);this.reset()},endTest:function(a){if(this._A)return;this.consoleFormat('green');this.print('.');this.reset()},endSuite:function(a){},update:function(a){},endRun:function(a){for(var b=0,c=this._3.length;b<c;b++)this._18(b+1,this._3[b]);this.reset();this.puts('');this.puts('Finished in '+a.runtime+' seconds');this._19(a)},_18:function(a,b){this.puts('');this.consoleFormat('bold','red');this.puts('\n'+a+') '+this.NAMES[b.error.type]+': '+b.test.fullName);this.reset();this.puts(b.error.message);if(b.error.backtrace)this.puts(b.error.backtrace);this.reset()},_19:function(a){var b=a.passed?'green':'red';this.consoleFormat(b);this.puts(this._n(a.tests,'test')+', '+this._n(a.assertions,'assertion')+', '+this._n(a.failures,'failure')+', '+this._n(a.errors,'error'));this.reset();this.puts('')},_n:function(a,b){return a+' '+b+(a===1?'':'s')}})});JS.Test.Reporters.register('progress',JS.Test.Reporters.Progress);JS.Test.Reporters.extend({TAP:new JS.Class({include:JS.Console,startRun:function(a){this._B=0},startSuite:function(a){},startTest:function(a){this._2=true;this._3=[]},addFault:function(a){this._2=false;this._3.push(a)},endTest:function(a){var b=this._2?'ok':'not ok';b+=' '+ ++this._B+' '+a.fullName;this.puts(b);var c,d,f,g,h;for(var j=0,k=this._3.length;j<k;j++){c=this._3[j];var d=c.error.message;if(c.error.backtrace)d+='\n'+c.error.backtrace;f=d.split(/[\r\n]/);for(g=0,h=f.length;g<h;g++)this.puts(' '+f[g])}},endSuite:function(a){},update:function(a){},endRun:function(a){}})});JS.Test.Reporters.register('tap',JS.Test.Reporters.TAP);JS.Test.Reporters.extend({ExitStatus:new JS.Class({startRun:function(a){},startSuite:function(a){},startTest:function(a){},addFault:function(a){},endTest:function(a){},endSuite:function(a){},update:function(a){},endRun:function(a){JS.Console.exit(a.passed?0:1)}})});JS.Test.Reporters.extend({Browser:new JS.Class({initialize:function(){var f=this;this._1a=JS.DOM.div({className:'test-result-container'},function(d){d.table({className:'report'},function(c){c.thead(function(b){b.tr(function(a){a.th({scope:'col'},'Tests');a.th({scope:'col'},'Assertions');a.th({scope:'col'},'Failures');a.th({scope:'col'},'Errors')})});c.tbody(function(b){b.tr(function(a){f._1=a.td();f._1b=a.td();f._8=a.td();f._j=a.td()})})});f._S=d.div({className:'light light-pending'});d.p({className:'user-agent'},window.navigator.userAgent);f._1c=new f.klass.Context('spec',d.ul({className:'specs'}));f._1d=d.p({className:'summary'})});document.body.insertBefore(this._1a,document.body.firstChild)},_T:function(a){var b=this._1c,c=a.context;for(var d=0,f=c.length;d<f;d++)b=b.child(c[d]);return b},startRun:function(a){this.update({tests:0,assertions:0,failures:0,errors:0})},startSuite:function(a){},startTest:function(a){this._T(a).addTest(a.shortName)},addFault:function(a){this._T(a.test).child(a.test.shortName).addFault(a.error)},endTest:function(a){},endSuite:function(a){},update:function(a){this._1.innerHTML=String(a.tests);this._1b.innerHTML=String(a.assertions);this._8.innerHTML=String(a.failures);this._j.innerHTML=String(a.errors)},endRun:function(a){this.update(a);JS.DOM.removeClass(this._S,'light-pending');JS.DOM.addClass(this._S,a.passed?'light-passed':'light-failed');this._1d.innerHTML='Finished in '+a.runtime+' seconds'},serialize:function(){var a=document.getElementsByTagName('li'),b=a.length;while(b--)JS.DOM.removeClass(a[b],'closed');var a=document.getElementsByTagName('script'),b=a.length;while(b--)a[b].parentNode.removeChild(a[b]);var c=document.getElementsByTagName('html')[0];return'<!doctype html><html>'+c.innerHTML+'</html>'}})});JS.Test.Reporters.Browser.extend({Context:new JS.Class({initialize:function(f,g,h){this._5=g;this._6=f;this._k=h;this._C=[];if(h===undefined){this._D=g;return}var j=this._5._D||this._5,k={_1:'Tests',_8:'Failed'},l=this;this._o=new JS.DOM.Builder(j).li({className:this._6+' passed'},function(d){d.ul({className:'stats'},function(b){for(var c in k)b.li(function(a){a.span({className:'label'},k[c]+': ');l[c]=a.span({className:'number'},'0')})});if(h){l._p=d.p({className:l._6+'-name'},h);if(l._6==='spec'){l._q=JS.DOM.span({className:'runner'},'Run');l._q.style.background='url("'+JSCLASS_PATH+'assets/bullet_go.png") center center no-repeat';l._p.insertBefore(l._q,l._p.firstChild)}}l._D=d.ul({className:'children'})});var m=/\btest=/;if(!m.test(window.location.search))JS.DOM.addClass(this._o,'closed');JS.DOM.Event.on(this._p,'click',function(){JS.DOM.toggleClass(this._o,'closed')},this);if(this._q)JS.DOM.Event.on(this._q,'click',this.runTest,this)},ping:function(a){if(!this[a])return;this[a].innerHTML=parseInt(this[a].innerHTML)+1;if(this._5.ping)this._5.ping(a)},fail:function(){if(!this._o)return;JS.DOM.removeClass(this._o,'passed');JS.DOM.addClass(this._p,'failed');if(this._5.fail)this._5.fail()},child:function(a){return this._C[a]=this._C[a]||new this.klass('spec',this,a)},addTest:function(a){var b=this._C[a]=new this.klass('test',this,a);b.ping('_1')},addFault:function(g){var h=g.message;if(g.backtrace)h+='\n'+g.backtrace;var j=JS.DOM.li({className:'fault'},function(f){f.p(function(a){var b=h.split(/[\r\n]+/);for(var c=0,d=b.length;c<d;c++){if(c>0)a.br();a.concat(b[c])}})});this._D.appendChild(j);this.ping('_8');this.fail()},getName:function(){var a=[],b=this._5&&this._5.getName&&this._5.getName();if(b)a.push(b);a.push(this._k);return a.join(' ')},runTest:function(){window.location.search='test='+encodeURIComponent(this.getName())}})});JS.Test.Reporters.extend({Console:new JS.Class({_1e:function(a,b){if(!window.console||!window.console.log||!window.JSON)return;console.log(JSON.stringify({jstest:[a,b]}))}})});(function(){var b=JS.Test.Reporters.METHODS,c=b.length;while(c--)(function(i){var d=b[i];JS.Test.Reporters.Console.define(d,function(a){this._1e(d,a)})})(c)})();JS.Test.Reporters.extend({Testem:new JS.Class({initialize:function(){var b=this;Testem.useCustomAdapter(function(a){b._E=a})},startRun:function(a){this._U=[];this._B=0;this._E.emit('tests-start')},startSuite:function(a){},startTest:function(a){this._2=true;this._3=[]},addFault:function(a){this._2=false;this._3.push({passed:false,message:a.error.message,stacktrace:a.error.backtrace})},endTest:function(a){var b={passed:this._2?1:0,failed:this._2?0:1,total:1,id:++this._B,name:a.fullName,items:this._3};this._U.push(b);this._E.emit('test-result',b)},endSuite:function(a){},update:function(a){},endRun:function(a){this._E.emit('all-test-results',{passed:a.tests-a.failures-a.errors,failed:a.failures,total:a.tests,tests:this._U})}})});JS.Test.Reporters.extend({TestSwarm:new JS.Class({initialize:function(a,b){this._1l=b;TestSwarm.serialize=function(){return b.serialize()}},startRun:function(a){},startSuite:function(a){},startTest:function(a){},addFault:function(a){},endTest:function(a){TestSwarm.heartbeat()},endSuite:function(a){},update:function(a){},endRun:function(a){TestSwarm.submit({fail:a.failures,error:a.errors,total:a.tests})}})});JS.Test.Reporters.extend({Composite:new JS.Class({initialize:function(a){this._d=a||[]},addReporter:function(a){this._d.push(a)},removeReporter:function(a){var b=JS.indexOf(this._d,a);if(b>=0)this._d.splice(b,1)}})});(function(){var f=JS.Test.Reporters.METHODS,g=f.length;while(g--)(function(i){var h=f[i];JS.Test.Reporters.Composite.define(h,function(a){var b;for(var c=0,d=this._d.length;c<d;c++){b=this._d[c][h];if(b)b.call(this._d[c],a)}})})(g)})();JS.Test.extend({Context:new JS.Module({extend:{included:function(a){a.extend(JS.Test.Context.Context,{_e:false});a.include(JS.Test.Context.LifeCycle,{_e:false});a.extend(JS.Test.Context.Test,{_e:false});a.include(JS.Console)},Context:new JS.Module({getContextName:function(){this._c=this._c||'';return(typeof this.superclass.getContextName==='function')?(this.superclass.getContextName()+' '+this._c).replace(/^\s+/,''):this.displayName},setContextName:function(a){this._c=a},context:function(a,b){var c=new JS.Class(this,{},{_e:false});c.__eigen__().resolve();c.setContextName(a.toString());c.setName(c.getContextName());b.call(c);return c},cover:function(a){var b=new JS.Test.Coverage(a);this.before_all_callbacks.push(b.method('attach'));this.after_all_callbacks.push(b.method('detach'));JS.Test.Unit.TestCase.reports.push(b)}})}}),describe:function(a,b){var c=new JS.Class(a.toString(),JS.Test.Unit.TestCase,{},{_e:false});c.include(JS.Test.Context,{_e:false});c.__eigen__().resolve();b.call(c);return c}});JS.Test.Context.Context.alias({describe:'context'});JS.Test.extend({context:JS.Test.describe});JS.Test.Context.LifeCycle=new JS.Module({extend:{included:function(b){b.extend(this.ClassMethods);b.before_all_callbacks=[];b.before_each_callbacks=[];b.after_all_callbacks=[];b.after_each_callbacks=[];b.before_should_callbacks={};b.extend({inherited:function(a){this.callSuper();a.before_all_callbacks=[];a.before_each_callbacks=[];a.after_all_callbacks=[];a.after_each_callbacks=[];a.before_should_callbacks={}}})},ClassMethods:new JS.Module({before:function(a,b){if((typeof a==='function')||!b){b=a;a='each'}this['before_'+(a+'_')+'callbacks'].push(b)},after:function(a,b){if((typeof a==='function')||!b){b=a;a='each'}this['after_'+(a+'_')+'callbacks'].push(b)},gatherCallbacks:function(a,b){var c=(typeof this.superclass.gatherCallbacks==='function')?this.superclass.gatherCallbacks(a,b):[];var d=this[a+'_'+(b+'_')+'callbacks'];return(a==='before')?c.concat(d):d.concat(c)}})},setup:function(a){var b=this;this.callSuper(function(){if(b.klass.before_should_callbacks[b._0])b.klass.before_should_callbacks[b._0].call(b);b.runCallbacks('before','each',a)})},teardown:function(a){var b=this;this.callSuper(function(){b.runCallbacks('after','each',a)})},runCallbacks:function(c,d,f){var g=this.klass.gatherCallbacks(c,d);JS.Test.Unit.TestSuite.forEach(g,function(a,b){this.exec(a,b)},f,this)},runAllCallbacks:function(d,f,g){var h=this.instanceVariables();this.runCallbacks(d,'all',function(){var c=this.instanceVariables().inject({},function(a,b){if(h.member(b))return a;a[b]=this[b];return a},this);if(f)f.call(g||null,c)})},setValuesFromCallbacks:function(a){for(var b in a)this[b]=a[b]},instanceVariables:function(){var a=[];for(var b in this){if(this.hasOwnProperty(b))a.push(b)}return new JS.Enumerable.Collection(a)}});(function(){var a=JS.Test.Context.LifeCycle.ClassMethods.method('instanceMethod');JS.Test.Context.LifeCycle.ClassMethods.include({setup:a('before'),teardown:a('after')})})();JS.Test.Context.extend({SharedBehavior:new JS.Class(JS.Module,{extend:{createFromBehavior:function(a){var b=new this();b._1f=a;return b},moduleName:function(c){return c.toLowerCase().replace(/[\s:',\.~;!#=\(\)&]+/g,'_').replace(/\/(.?)/g,function(a,b){return'.'+b.toUpperCase()}).replace(/(?:^|_)(.)/g,function(a,b){return b.toUpperCase()})}},included:function(a){this._1f.call(a)}})});JS.Test.Unit.TestCase.extend({shared:function(a,b){a=JS.Test.Context.SharedBehavior.moduleName(a);JS.ENV[a]=JS.Test.Context.SharedBehavior.createFromBehavior(b)},use:function(a){if(JS.isType(a,JS.Test.Context.SharedBehavior)||JS.isType(a,JS.Module))this.include(a);else if(JS.isType(a,'string')){var b=JS.Test.Context.SharedBehavior.moduleName(a),c=JS.ENV[b];if(!c)throw new Error('Could not find example group named "'+a+'"');this.include(c)}}});(function(){var g=function(a,b){var c={};for(var d=0,f=b.length;d<f;d++)c[b[d]]=JS.Test.Unit.TestCase[a];JS.Test.Unit.TestCase.extend(c)};g('shared',['sharedBehavior','shareAs','shareBehaviorAs','sharedExamplesFor']);g('use',['uses','itShouldBehaveLike','behavesLike','usesExamplesFrom'])})();JS.Test.Context.Test=new JS.Module({test:function(a,b,c){var d='test: '+a;if(JS.indexOf(this.instanceMethods(false),d)>=0)throw new Error(d+' is already defined in '+this.displayName);b=b||{};if(typeof b==='function'){c=b}else{if(b.before!==undefined)this.before_should_callbacks[d]=b.before}this.define(d,c,{_e:false})},beforeTest:function(a,b){this.test(a,{before:b},function(){})}});JS.Test.Context.Test.alias({it:'test',should:'test',tests:'test',beforeIt:'beforeTest',beforeShould:'beforeTest',beforeTests:'beforeTest'});(function(){var b=JS.Test.Unit.TestCase.suite;JS.Test.Unit.TestCase.extend({suite:function(a){return b.call(this,a,false,false)}})})();JS.Test.Unit.TestSuite.include({run:function(d,f,g,h){g.call(h||null,this.klass.STARTED,this._k);var j=function(c){this.forEach(function(a,b){if(c)a.setValuesFromCallbacks(c);a.run(d,b,g,h)},function(){var a=function(){g.call(h||null,this.klass.FINISHED,this._k);f()};if(c)k.runAllCallbacks('after',a,this);else a.call(this)},this)};var k=this._1[0],l=null;if(k&&k.runAllCallbacks)k.runAllCallbacks('before',j,this);else j.call(this,null)}});JS.Test.extend({Mocking:new JS.Module({extend:{ExpectationError:new JS.Class(JS.Test.Unit.AssertionFailedError),UnexpectedCallError:new JS.Class(Error,{initialize:function(a){this.message=a.toString()}}),__activeStubs__:[],stub:function(a,b,c){var d=false;if(a==='new'){a=b;b=c;c=undefined;d=true}if(JS.isType(a,'string')){c=b;b=a;a=JS.ENV}var f=this.__activeStubs__,g=f.length;while(g--){if(f[g]._9===a&&f[g]._0===b)return f[g].defaultMatcher(c)}var h=new JS.Test.Mocking.Stub(a,b,d);f.push(h);return h.defaultMatcher(c)},removeStubs:function(){var a=this.__activeStubs__,b=a.length;while(b--)a[b].revoke();this.__activeStubs__=[]},verify:function(){try{var a=this.__activeStubs__;for(var b=0,c=a.length;b<c;b++)a[b]._1g()}finally{this.removeStubs()}},Stub:new JS.Class({initialize:function(a,b,c){this._9=a;this._0=b;this._r=c;this._f=a[b];this._1h=a.hasOwnProperty?a.hasOwnProperty(b):(typeof this._f!=='undefined');var d=JS.Test.Mocking;this._s=[];this._g=new d.Parameters([new d.AnyArgs()]);this._7=false;this.apply()},defaultMatcher:function(a){if(a!==undefined&&typeof a!=='function'){this._9[this._0]=a;return this}this._V();this._4=this._g;if(typeof a==='function')this._4._W=a;return this},apply:function(){var a=this._9,b=this._0;if(a[b]!==this._f)return;var c=this;this._X=function(){return c._1i(this,arguments)};a[b]=this._X},revoke:function(){if(this._1h)this._9[this._0]=this._f;else try{delete this._9[this._0]}catch(e){this._9[this._0]=undefined}},expected:function(){this._7=true;this._g._7=true},_V:function(){if(this._4)this._4._Y=true},_1i:function(a,b){this._V();var c=this._s.concat(this._g),d,f,g;if(this._r&&!(a instanceof this._X)){g=new JS.Test.Unit.AssertionMessage('','<?> expected to be a constructor but called without `new`',[this._f]);throw new JS.Test.Mocking.UnexpectedCallError(g);}this._g.ping();for(var h=0,j=c.length;h<j;h++){d=c[h];f=d.match(b);if(!f)continue;if(d!==this._g)d.ping();if(f.fake)return f.fake.apply(a,b);if(f.exception)throw f.exception;if(f.hasOwnProperty('callback')){if(!f.callback)continue;f.callback.apply(f.context,d.nextYieldArgs())}if(f)return d.nextReturnValue()}if(this._r){g=new JS.Test.Unit.AssertionMessage('','<?> constructed with unexpected arguments:\n(?)',[this._f,JS.array(b)])}else{g=new JS.Test.Unit.AssertionMessage('','<?> received call to '+this._0+'() with unexpected arguments:\n(?)',[a,JS.array(b)])}throw new JS.Test.Mocking.UnexpectedCallError(g);},_1g:function(){if(!this._7)return;for(var a=0,b=this._s.length;a<b;a++)this._Z(this._s[a]);this._Z(this._g)},_Z:function(a){var b=this._r?this._f:this._9;a.verify(b,this._0,this._r)}})}})});JS.Test.Mocking.extend({Parameters:new JS.Class({initialize:function(a,b){this._10=JS.array(a);this._7=b;this._Y=false;this._h=0},toArray:function(){var a=this._10.slice();if(this._i)a.push(new JS.Test.Mocking.InstanceOf(Function));return a},returns:function(a){this._F=0;this._G=a},nextReturnValue:function(){if(!this._G)return undefined;var a=this._G[this._F];this._F=(this._F+1)%this._G.length;return a},yields:function(a){this._H=0;this._i=a},nextYieldArgs:function(){if(!this._i)return undefined;var a=this._i[this._H];this._H=(this._H+1)%this._i.length;return a},setMinimum:function(a){this._7=true;this._I=a},setMaximum:function(a){this._7=true;this._t=a},setExpected:function(a){this._7=true;this._u=a},match:function(a){if(!this._Y)return false;var b=JS.array(a),c,d;if(this._i){if(typeof b[b.length-2]==='function'){d=b.pop();c=b.pop()}else if(typeof b[b.length-1]==='function'){d=null;c=b.pop()}}if(!JS.Enumerable.areEqual(this._10,b))return false;var f={};if(this._b){f.exception=this._b}if(this._i){f.callback=c;f.context=d}if(this._W){f.fake=this._W}return f},ping:function(){this._h+=1},verify:function(a,b,c){if(!this._7)return;var d=true,f;if(this._h===0&&this._t===undefined&&this._u===undefined){d=false}else if(this._u!==undefined&&this._h!==this._u){f=this._J('exactly');d=false}else if(this._t!==undefined&&this._h>this._t){f=this._J('at most');d=false}else if(this._I!==undefined&&this._h<this._I){f=this._J('at least');d=false}if(d)return;var g;if(c){g=new JS.Test.Unit.AssertionMessage('Mock expectation not met','<?> expected to be constructed with\n(?)'+(f?'\n'+f:''),[a,this.toArray()])}else{g=new JS.Test.Unit.AssertionMessage('Mock expectation not met','<?> expected to receive call\n'+b+'(?)'+(f?'\n'+f:''),[a,this.toArray()])}throw new JS.Test.Mocking.ExpectationError(g);},_J:function(a){var b=this._h,c='but '+b+' call'+(b===1?' was':'s were')+' made';var d={'exactly':this._u,'at most':this._t,'at least':this._I};return a+' '+d[a]+' times\n'+c}})});JS.Test.Mocking.extend({Anything:new JS.Class({equals:function(){return true},toString:function(){return'anything'}}),AnyArgs:new JS.Class({equals:function(){return JS.Enumerable.ALL_EQUAL},toString:function(){return'*arguments'}}),ArrayIncluding:new JS.Class({initialize:function(a){this._a=Array.prototype.slice.call(a)},equals:function(a){if(!JS.isType(a,Array))return false;var b=this._a.length,c;loop:while(b--){c=a.length;while(c--){if(JS.Enumerable.areEqual(this._a[b],a[c]))continue loop}return false}return true},toString:function(){var a=JS.Console.convert(this._a);return'arrayIncluding('+a+')'}}),ObjectIncluding:new JS.Class({initialize:function(a){this._a=a},equals:function(a){if(!JS.isType(a,Object))return false;for(var b in this._a){if(!JS.Enumerable.areEqual(this._a[b],a[b]))return false}return true},toString:function(){var a=JS.Console.convert(this._a);return'objectIncluding('+a+')'}}),InstanceOf:new JS.Class({initialize:function(a){this._6=a},equals:function(a){return JS.isType(a,this._6)},toString:function(){var a=JS.Console.convert(this._6),b=/^[aeiou]/i.test(a)?'an':'a';return b+'('+a+')'}}),Matcher:new JS.Class({initialize:function(a){this._6=a},equals:function(a){return JS.match(this._6,a)},toString:function(){var a=JS.Console.convert(this._6);return'matching('+a+')'}})});JS.Test.Mocking.Stub.include({given:function(){var a=new JS.Test.Mocking.Parameters(arguments,this._7);this._s.push(a);this._4=a;return this},raises:function(a){this._4._b=a;return this},returns:function(){this._4.returns(arguments);return this},yields:function(){this._4.yields(arguments);return this},atLeast:function(a){this._4.setMinimum(a);return this},atMost:function(a){this._4.setMaximum(a);return this},exactly:function(a){this._4.setExpected(a);return this}});JS.Test.Mocking.Stub.alias({raising:'raises',returning:'returns',yielding:'yields'});JS.Test.Mocking.extend({DSL:new JS.Module({stub:function(){return JS.Test.Mocking.stub.apply(JS.Test.Mocking,arguments)},expect:function(){var a=JS.Test.Mocking.stub.apply(JS.Test.Mocking,arguments);a.expected();this.addAssertion();return a},anything:function(){return new JS.Test.Mocking.Anything()},anyArgs:function(){return new JS.Test.Mocking.AnyArgs()},instanceOf:function(a){return new JS.Test.Mocking.InstanceOf(a)},match:function(a){return new JS.Test.Mocking.Matcher(a)},arrayIncluding:function(){return new JS.Test.Mocking.ArrayIncluding(arguments)},objectIncluding:function(a){return new JS.Test.Mocking.ObjectIncluding(a)}})});JS.Test.Unit.TestCase.include(JS.Test.Mocking.DSL);JS.Test.Unit.mocking=JS.Test.Mocking;JS.Test.extend({AsyncSteps:new JS.Class(JS.Module,{define:function(b,c){this.callSuper(b,function(){var a=[b,c].concat(JS.array(arguments));this.__enqueue__(a)})},included:function(d){d.include(JS.Test.AsyncSteps.Sync);if(!d.includes(JS.Test.Context))return;d.after(function(a){this.sync(a)});d.extend({after:function(b,c){if((typeof b==='function')||!c){c=b;b='each'}this.callSuper(function(a){this.sync(function(){this.exec(c,a)})})}})},extend:{Sync:new JS.Module({__enqueue__:function(a){this.__stepQueue__=this.__stepQueue__||[];this.__stepQueue__.push(a);if(this.__runningSteps__)return;this.__runningSteps__=true;var b=JS.Test.Unit.TestSuite.setTimeout;b(this.method('__runNextStep__'),1)},__runNextStep__:function(){var a=this.__stepQueue__.shift(),b;if(!a){this.__runningSteps__=false;if(!this.__stepCallbacks__)return;b=this.__stepCallbacks__.length;while(b--)this.__stepCallbacks__.shift().call(this);return}var c=a.shift(),d=a.shift(),f=a.slice(),g=function(){d.apply(this,f)};f[d.length-1]=this.method('__runNextStep__');if(!this.exec)return g.call(this);this.exec(g,function(){},this.method('__endSteps__'))},__endSteps__:function(){this.__stepQueue__=[];this.__runNextStep__()},addError:function(){this.callSuper();this.__endSteps__()},sync:function(a){if(!this.__runningSteps__)return a.call(this);this.__stepCallbacks__=this.__stepCallbacks__||[];this.__stepCallbacks__.push(a)}})}}),asyncSteps:function(a){return new this.AsyncSteps(a)}});JS.Test.extend({FakeClock:new JS.Module({extend:{API:new JS.Singleton({stub:function(){var a=JS.Test.Mocking,b=['Date','setTimeout','clearTimeout','setInterval','clearInterval'],c=b.length;JS.Test.FakeClock.reset();while(c--)a.stub(b[c],JS.Test.FakeClock.method(b[c]));Date.now=function(){return new Date()}},reset:function(){return JS.Test.FakeClock.reset()},tick:function(a){return JS.Test.FakeClock.tick(a)}}),JSDate:Date,Schedule:new JS.Class(JS.SortedSet,{nextScheduledAt:function(b){return this.find(function(a){return a.time<=b})}}),Timeout:new JS.Class({include:JS.Comparable,initialize:function(a,b,c){this.callback=a;this.interval=b;this.repeat=c},compareTo:function(a){return this.time-a.time},toString:function(){return(this.repeat?'Interval':'Timeout')+'('+this.interval+'):'+this.time}}),reset:function(){this._v=new Date().getTime();this._w=this._v;this._l=new this.Schedule()},tick:function(a){this._v+=a;var b;while(b=this._l.nextScheduledAt(this._v))this._1j(b);this._w=this._v},_1j:function(a){this._w=a.time;a.callback();if(a.repeat){a.time+=a.interval;this._l.rebuild()}else{this.clearTimeout(a)}},_11:function(a,b,c){var d=new this.Timeout(a,b,c);d.time=this._w+b;this._l.add(d);return d},Date:function(){var a=new this.JSDate();a.setTime(this._w);return a},setTimeout:function(a,b){return this._11(a,b,false)},setInterval:function(a,b){return this._11(a,b,true)},clearTimeout:function(a){this._l.remove(a)},clearInterval:function(a){this._l.remove(a)}}})});JS.Test.FakeClock.include({clock:JS.Test.FakeClock.API});JS.Test.extend({Coverage:new JS.Class({initialize:function(d){this._12=d;this._x=new JS.Hash([]);var f=function(a){var b=a.instanceMethods(false),c=b.length;while(c--)this._x.store(a.instanceMethod(b[c]),0)};f.call(this,d);f.call(this,d.__eigen__())},attach:function(){var a=this._12;JS.StackTrace.addObserver(this);JS.Method.trace([a,a.__eigen__()])},detach:function(){var a=this._12;JS.Method.untrace([a,a.__eigen__()]);JS.StackTrace.removeObserver(this)},update:function(a,b){if(a!=='call')return;var c=this._x.assoc(b.method);if(c)c.setValue(c.value+1)},report:function(){var c=this._x.entries().sort(function(a,b){return b.value-a.value});var d=this._x.all(function(a){return a.value>0});JS.Console.printTable(c,function(a,b){if(a[1]===0)return['bgred','white'];return(b%2===0)?['bold']:[]});return d}})});JS.Test.extend({Helpers:new JS.Module({$R:function(a,b){return new JS.Range(a,b)},$w:function(a){return a.split(/\s+/)},forEach:function(a,b,c){for(var d=0,f=a.length;d<f;d++){b.call(c||null,a[d],d)}},its:function(){return new JS.MethodChain()},map:function(a,b,c){return new JS.Enumerable.Collection(a).map(b,c)},repeat:function(a,b,c){while(a--)b.call(c)}})});JS.Test.extend({Runner:new JS.Class({initialize:function(a){this._1k=(typeof a==='string')?{format:a}:(a||{})},run:function(){var a=this.getUI(this._1k);a.prepare(this.start,this)},start:function(d){var f=d.getOptions(),g=d.getReporters(f),h=this.getSuite(f);JS.Test.setReporter(new JS.Test.Reporters.Composite(g),false);var j=new Date().getTime();testResult=new JS.Test.Unit.TestResult(),TR=JS.Test.Unit.TestResult,TS=JS.Test.Unit.TestSuite,TC=JS.Test.Unit.TestCase;var k=testResult.addListener(TR.CHANGED,function(){var a=testResult.metadata(),b=new Date().getTime();a.runtime=(b-j)/1000;JS.Test.reporter.update(a)});var l=testResult.addListener(TR.FAULT,function(a){JS.Test.reporter.addFault(a.metadata())});var m=function(){testResult.removeListener(TR.CHANGED,k);testResult.removeListener(TR.FAULT,l);var a=new Date().getTime(),b=(a-j)/1000;var c=testResult.metadata();c.runtime=b;JS.Test.reporter.endRun(c)};var n=function(a,b){if(a===TS.STARTED)JS.Test.reporter.startSuite();else if(a===TC.STARTED)JS.Test.reporter.startTest(b.metadata());else if(a===TC.FINISHED)JS.Test.reporter.endTest(b.metadata());else if(a===TS.FINISHED)JS.Test.reporter.endSuite()};JS.Test.reporter.startRun({suites:h.toString()});h.run(testResult,m,n,this)},getUI:function(a){if(JS.Console.BROWSER)return new JS.Test.UI.Browser(a);else return new JS.Test.UI.Terminal(a)},getSuite:function(c){var d=c.test,f=[],g=[];JS.Test.Unit.TestCase.resolve();JS.Test.Unit.TestCase.forEach(function(a){var b=a.suite(d);if(b.size()>0)g.push(b);if(a.superclass===JS.Test.Unit.TestCase)f.push(a.displayName)});var h=new JS.Test.Unit.TestSuite(f);for(var j=0,k=g.length;j<k;j++)h.push(g[j]);JS.Test.Unit.TestCase.clear();return h},extend:{filter:function(a,b){var c=[],d=[],f=c.length,g,h;if(f===0)return a;while(f--){g=a.length;while(g--){h=a[g].replace(new RegExp(b+'$'),'');if(c[f].substr(0,h.length)===h)d.push(a[g])}}return d}}}),autorun:function(a){var b=new JS.Test.Runner(a);b.run()}});
-//@ sourceMappingURL=test.js.map
View
8 build/min/test.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "test.js",
- "sourceRoot": "",
- "sources": ["../src/test.js"],
- "names": ["$", "$R", "$w", "A", "ALL_EQUAL", "API", "AnyArgs", "Anything", "Array", "ArrayIncluding", "AssertionFailedError", "AssertionMessage", "Assertions", "AsyncSteps", "BROWSER", "Browser", "Builder", "CHANGED", "Class", "ClassMethods", "Collection", "Comparable", "Composite", "Console", "Context", "Could", "Coverage", "DOM", "DSL", "Date", "E", "ENV", "Enumerable", "Error", "Errors", "Event", "Exception", "ExitStatus", "ExpectationError", "F", "FAULT", "FINISHED", "Failed", "Failure", "Failures", "FakeClock", "Finished", "Function", "Hash", "Helpers", "InstanceOf", "Interval", "JS", "JSCLASS_PATH", "JSDate", "JSON", "LifeCycle", "Literal", "Loaded", "Loader", "METHODS", "Matcher", "Math", "Method", "MethodChain", "Mock", "Mocking", "Module", "NAMES", "NODE", "No", "OPTIONS", "Object", "ObjectIncluding", "Observable", "Package", "Parameters", "Printer", "Progress", "R", "Range", "RegExp", "Reporters", "Run", "Runner", "SHORTS", "STARTED", "SYMBOLS", "Schedule", "SharedBehavior", "Singleton", "SortedSet", "StackTrace", "Started", "String", "Stub", "Sync", "TAP", "TC", "TR", "TS", "Template", "Terminal", "Test", "TestCase", "TestResult", "TestSuite", "TestSwarm", "Testem", "Tests", "The", "Timed", "Timeout", "UI", "UnexpectedCallError", "Unit", "Unnamed", "W", "_", "__activeStubs__", "__assertionWrapped__", "__eigen__", "__endSteps__", "__enqueue__", "__processExceptionArgs__", "__runNextStep__", "__runningSteps__", "__stepCallbacks__", "__stepQueue__", "__wrapAssertion__", "_activateLastMatcher", "_active", "_addErrorCatcher", "_anyArgs", "_argMatchers", "_assertionCount", "_assertions", "_behavior", "_browserReporter", "_callTime", "_callsMade", "_catch", "_children", "_constructor", "_container", "_context", "_contextFor", "_contextName", "_createMessage", "_currentMatcher", "_currentTime", "_dispatch", "_elements", "_errors", "_exception", "_expected", "_expectedCalls", "_failures", "_fake", "_faults", "_finally", "_head", "_li", "_light", "_log", "_maximumCalls", "_message", "_methodName", "_methods", "_minimumCalls", "_module", "_name", "_object", "_original", "_outputFault", "_ownProperty", "_parameters", "_params", "_parent", "_parts", "_plural", "_printFault", "_printSummary", "_processError", "_registry", "_removeErrorCatcher", "_reporters", "_resolve", "_result", "_results", "_returnIndex", "_returnValues", "_run", "_runCount", "_runWithExceptionHandlers", "_runner", "_schedule", "_settings", "_shim", "_socket", "_summary", "_template", "_templateString", "_testCase", "_testId", "_testPassed", "_tests", "_timer", "_toggle", "_try", "_type", "_ul", "_value", "_verify", "_verifyParameters", "_yieldArgs", "_yieldIndex", "a", "abs", "actual", "actualException", "add", "addAssertion", "addClass", "addError", "addFailure", "addFault", "addListener", "addObserver", "addReporter", "addRun", "addTest", "aeiou", "after", "afterCallbacks", "after_", "after_all_callbacks", "after_each_callbacks", "agent", "alias", "aliases", "all", "already", "an", "and", "any", "anyArgs", "anything", "appendChild", "apply", "areEqual", "arg", "args", "argsCopy", "arguments", "argv", "arity", "array", "arrayIncluding", "as", "assert", "assertBlock", "assertInDelta", "assertKindOf", "assertMatch", "assertNoMatch", "assertNotSame", "assertNothingThrown", "assertSame", "assertSend", "assertThrow", "assertThrows", "assertion", "assertionCount", "assertions", "assets", "assoc", "asyncBlock", "asyncSteps", "asyncTimeout", "at", "atLeast", "atMost", "attach", "autorun", "b", "background", "backtrace", "base", "be", "before", "beforeIt", "beforeShould", "beforeTest", "beforeTests", "before_", "before_all_callbacks", "before_each_callbacks", "before_should_callbacks", "beh", "behavesLike", "bgred", "block", "body", "bold", "bool", "br", "breakTime", "browser", "browserReporter", "btest", "buildMessage", "bullet_go", "but", "call", "callSuper", "callable", "callback", "callbackType", "callbacks", "called", "catch", "center", "channel", "channelName", "child", "children", "className", "clear", "clearInterval", "clearTimeout", "click", "clock", "closed", "col", "collect", "color", "compareTo", "concat", "console", "consoleFormat", "constructed", "constructor", "container", "context", "continuation", "continue", "convert", "copy", "count", "cover", "covered", "create", "createFromBehavior", "current", "data", "date", "decodeURIComponent", "defaultMatcher", "defaultTest", "define", "defined", "delete", "delta", "describe", "detach", "displayName", "div", "doNext", "doctype", "document", "does", "e", "each", "elapsedTime", "elements", "else", "emit", "empty", "encodeURIComponent", "end", "endRun", "endSuite", "endTest", "endTime", "entries", "env", "equals", "error", "errorCount", "errorMetadata", "errors", "event", "eventName", "exactly", "example", "exception", "exec", "exit", "expect", "expectation", "expected", "extend", "extension", "extraMessage", "f", "fail", "failed", "failure", "failureCount", "failures", "fake", "false", "fault", "faultListener", "field", "fields", "filter", "filterBacktrace", "finally", "find", "findAll", "first", "firstChild", "flunk", "fn", "for", "forEach", "format", "frame", "fullMessage", "fullName", "function", "g", "gatherCallbacks", "getContextName", "getElementsByTagName", "getName", "getOptions", "getReporters", "getSuite", "getTime", "getUI", "given", "green", "group", "handler", "handlers", "hasOwnProperty", "hash", "head", "heartbeat", "html", "i", "id", "if", "ig", "implementation", "in", "include", "included", "includes", "index", "indexOf", "information", "inherit", "inherited", "initialize", "inject", "innerHTML", "insertBefore", "inspect", "instanceMethod", "instanceMethods", "instanceOf", "instanceVariables", "instanceof", "interval", "invalid_test", "is", "isType", "it", "itShouldBehaveLike", "item", "items", "iterate", "its", "ivar", "ivars", "ivarsFromCallback", "j", "join", "js", "jstest", "key", "klass", "label", "least", "length", "li", "light", "line", "list", "literal", "loadFile", "location", "log", "logger", "loop", "looping", "m", "made", "map", "match", "matcher", "matchers", "matching", "member", "message", "messageParts", "met", "metadata", "method", "methodName", "methodNames", "methods", "milliseconds", "mine", "mocking", "mod", "module", "moduleName", "most", "n", "name", "named", "names", "navigator", "negative", "new", "nextReturnValue", "nextScheduledAt", "nextYieldArgs", "no", "none", "nopt", "not", "notifyListeners", "noun", "now", "null", "number", "object", "objectIncluding", "objects", "of", "ok", "okay", "on", "onError", "onSuccess", "onUncaughtError", "onerror", "options", "opts", "other", "out", "outerCallbacks", "output", "p", "pair", "pairs", "parameters", "params", "parent", "parentNode", "parseInt", "parts", "passed", "pattern", "pending", "period", "ping", "pinged", "png", "pop", "prepare", "previousIvars", "print", "printTable", "process", "progress", "prototype", "push", "puts", "qs", "r", "raises", "raising", "rebuild", "receive", "received", "receiver", "red", "register", "remove", "removeChild", "removeClass", "removeListener", "removeObserver", "removeReporter", "removeStubs", "repeat", "replace", "report", "reportEvent", "reportResult", "reporter", "reporters", "reports", "require", "requires", "reset", "resolve", "respond", "result", "resultListener", "results", "resume", "resumed", "return", "returnValues", "returning", "returns", "revoke", "row", "run", "runAllCallbacks", "runCallbacks", "runCount", "runTest", "runner", "runtime", "s", "same", "scope", "scopes", "script", "search", "seconds", "select", "self", "send", "sendArray", "serialize", "setContextName", "setExpected", "setInterval", "setMaximum", "setMinimum", "setName", "setReporter", "setTime", "setTimeout", "setValue", "setValuesFromCallbacks", "settings", "setup", "shareAs", "shareBehaviorAs", "shared", "sharedBehavior", "sharedExamplesFor", "sharedName", "shift", "shortName", "should", "size", "slice", "socket", "sort", "span", "spec", "specified", "specs", "splice", "split", "stack", "stacktrace", "start", "startRun", "startSuite", "startTest", "startTime", "stats", "step", "store", "storeMethods", "string", "stringify", "stub", "stubs", "style", "submit", "substitutions", "substr", "suffix", "suite", "suites", "summary", "superclass", "sync", "t", "table", "tail", "tap", "tbody", "td", "teardown", "template", "test", "testCase", "testCases", "testMetadata", "testMethodName", "testName", "testResult", "testcase", "testem", "tests", "th", "the", "thead", "this", "throw", "thrown", "tick", "time", "timeout", "times", "to", "toArray", "toLowerCase", "toString", "toUpperCase", "toggleClass", "total", "totalSize", "tr", "trace", "true", "try", "type", "typeof", "ui", "ul", "uncaughtException", "undefined", "unexpected", "unshift", "untrace", "update", "url", "use", "useCustomAdapter", "useDefault", "user", "userAgent", "uses", "usesExamplesFrom", "value", "values", "var", "verify", "waiting", "was", "were", "while", "white", "window", "with", "withIvars", "within", "without", "yieldValues", "yielding", "yields"],
- "mappings": "AAAA,GAAG,KAAO,IAAI,GAAG,QAAQ,OACvB,QACE,KAAM,IAAI,GAAG,WAEb,gBAEA,OAAQ,SAAS0iB,EAASwJ,GACxB,OAAO,GAAG,KAAK,OAAO,OAAOxJ,EAASwJ,IAGxC,GAAI,IAAI,GAAG,WAEX,UAAW,IAAI,GAAG,QAChB,QACE,UAAW,WAAY,aAAc,YAC1B,SAAU,WACV,UAAW,WAAY,SAElC1gB,MAEA,SAAU,SAAS8V,EAAMvC,GACvB,KAAKvT,GAAU8V,GAAQvC,GAGzB,KAAM,SAASuC,GACb,IAAKA,EAAM,OAAO,KAClB,OAAO,KAAK9V,GAAU8V,IAAS,SAKrC,YAAa,SAASmF,GACpB,IAAIvQ,EAAU,KAAK,SACnB,KAAMuQ,EAAS,WAAW,GAAG,KAAK,UAAU,YAC1C,KAAK,SAAW,IAAI,GAAG,KAAK,UAAU,YACtC,KAAK,SAAS,YAAYvQ,GAE5B,KAAK,SAAS,YAAYuQ,IAG5B,YAAa,SAASA,EAAUJ,GAC9B,GAAI,KAAK,UAAYA,IAAY,MAAO,OACxC,KAAK,SAAWI,MAMtB,GAAG,KAAK,KAAK,QACX,WAAY,IAAI,GAAG,QACjB,YAAa,SAASrS,EAAatB,EAAO0C,GACxC,GAAI1C,IAAU,UAAW,MAAM,IAAI,OAAO,GAAG,SAAS,IAAI,OAAO,GAAG,EAAE,WAEtE,KAAK,WAAWsB,GAAe,KAAK,WAAWA,OAC/C,KAAK,WAAWA,GAAa,MAAMtB,EAAO0C,IAE1C,OAAO1C,GAGT,eAAgB,SAASsB,EAAatB,EAAO0C,GAC3C,IAAIrB,EAAU,KAAK,WAAWC,GAC9B,IAAKD,EAAS,OAEd,IAAIkI,EAAIlI,EAAQ,OAChB,MAAOkI,KACL,GAAIlI,EAAQkI,QAAUvJ,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KAAY+B,GAAOnH,GAAKkH,EAClC5P,aAAIgR,GAASjB,KAAelpB,KAAGmD,SAAKY,EAAKX,KACvCgb,EAAMyD,eAAKsI,IAASzW,EAGxBsZ,IAAIjE,GAAQxK,KAAIve,KAAGmD,UAAKY,GAAKT,IAAU8a,IACvC9G,IAAK0V,EAAI/T,EAAOgF,OAAI+K,EAAOlN,EAAQ7C,IAAIgF,EAAGhF,KACxC8P,EAAMlH,IAAKmH,GAAO/P,KAEpBjZ,KAAGmD,SAAKY,QAAKX,OAASgO,GACtB8S,QAAO6E,OAGTjT,SACEe,EAAQe,GAAS0H,IAASwJ,KACxBkE,KAAInW,EACAuJ,EACAnC,OAASpH,EAAOiF,EAChBY,GAAG0C,MAEPjG,OAAI8E,EAASiG,MAAO5E,KAEpB+N,EAAOpP,EACLvB,OAAI4C,MAAQxD,KACZuR,EAAO3Q,EACL0C,GAASE,QAAQ5C,IAAGuG,OAAQ1E,GAAI1c,QAAOinB,GAAUlsB,EACjDuc,GAAItC,SAAOoH,EAAG4K,UAAUzJ,EAAOtD,EAAYsD,KACzCgB,EAAOyB,KAAKvC,OAAQ5C,MAG1BwH,QAAO9D,SAKb5R,GAASoJ,IAASmI,EAChBiN,IAAInI,GAAStG,KAAIve,OAAGmD,GAAKnB,EAAO+d;"
-}
View
2  build/min/tsort.js
@@ -1,2 +0,0 @@
-JS.TSort=new JS.Module('TSort',{extend:{Cyclic:new JS.Class(Error)},tsort:function(){var a=[];this.tsortEach(a.push,a);return a},tsortEach:function(c,e){this.eachStronglyConnectedComponent(function(a){if(a.length===1)c.call(e||null,a[0]);else throw new JS.TSort.Cyclic('topological sort failed: '+a.toString());})},stronglyConnectedComponents:function(){var a=[];this.eachStronglyConnectedComponent(a.push,a);return a},eachStronglyConnectedComponent:function(e,g){var b=new JS.Hash(),d=[];this.tsortEachNode(function(c){if(b.hasKey(c))return;this.eachStronglyConnectedComponentFrom(c,b,d,function(a){e.call(g||null,a)})},this)},eachStronglyConnectedComponentFrom:function(g,b,d,k,l){var i=b.size,m=d.length,f=i,h,j;b.store(g,i);d.push(g);this.tsortEachChild(g,function(a){if(b.hasKey(a)){var c=b.get(a);if(a!==undefined&&c<f)f=c}else{var e=this.eachStronglyConnectedComponentFrom(a,b,d,k,l);if(e<f)f=e}},this);if(i===f){h=d.splice(m,d.length-m);j=h.length;while(j--)b.store(h[j],undefined);k.call(l||null,h)}return f},tsortEachNode:function(){throw new JS.NotImplementedError('tsortEachNode');},tsortEachChild:function(){throw new JS.NotImplementedError('tsortEachChild');}});
-//@ sourceMappingURL=tsort.js.map
View
8 build/min/tsort.js.map
@@ -1,8 +0,0 @@
-{
- "version": 3,
- "file": "tsort.js",
- "sourceRoot": "",
- "sources": ["../src/tsort.js"],
- "names": ["block", "child", "childId", "component", "context", "i", "idMap", "minimumId", "node", "nodeId", "result", "stack", "stackLength", "subMinimumId"],
- "mappings": "AAAA,GAAG,MAAQ,IAAI,GAAG,QAAQ,QACxB,QACE,OAAQ,IAAI,GAAG,MAAM,QAGvB,MAAO,WACL,IAAIU,KACJ,KAAK,UAAUA,EAAO,KAAMA,GAC5B,OAAOA,GAGT,UAAW,SAASV,EAAOI,GACzB,KAAK,+BAA+B,SAASD,GAC3C,GAAIA,EAAU,WACZH,EAAM,KAAKI,GAAW,KAAMD,MAC9B,KACE,MAAM,IAAI,GAAG,MAAM,QAAQ,YAAY,KAAK,UAAYA,EAAU,gBAIxE,4BAA6B,WAC3B,IAAIO,KACJ,KAAK,+BAA+BA,EAAO,KAAMA,GACjD,OAAOA,GAGT,+BAAgC,SAASV,EAAOI,GAC9C,IAAIE,EAAQ,IAAI,GAAG,OACfK,KAEJ,KAAK,cAAc,SAASH,GAC1B,GAAIF,EAAM,OAAOE,GAAO,OACxB,KAAK,mCAAmCA,EAAMF,EAAOK,EAAO,SAASV,GACnED,EAAM,KAAKI,GAAW,KAAMH,MAE7B,OAGL,mCAAoC,SAASO,EAAMF,EAAOK,EAAOX,EAAOI,GACtE,IAAIK,EAAcH,EAAM,KACpBM,EAAcD,EAAM,OACpBJ,EAAcE,EACdN,EAAWE,EAEfC,EAAM,MAAME,EAAMC,GAClBE,EAAM,KAAKH,GAEX,KAAK,eAAeA,EAAM,SAASP,GACjC,GAAIK,EAAM,OAAOL,IACf,IAAIC,EAAUI,EAAM,IAAIL,GACxB,GAAIA,IAAU,WAAaC,EAAUK,EAAWA,EAAYL,EAC5D,KACA,IAAIW,EAAe,KAAK,mCAAmCZ,EAAOK,EAAOK,EAAOX,EAAOI,GACvF,GAAIS,EAAeN,EAAWA,EAAYM,IAE3C,MAEH,GAAIJ,IAAWF,GACbJ,EAAYQ,EAAM,OAAOC,EAAaD,EAAM,OAASC,GACrDP,EAAIF,EAAU,OACd,MAAOE,IAAKC,EAAM,MAAMH,EAAUE,GAAI,WACtCL,EAAM,KAAKI,GAAW,KAAMD,GAG9B,OAAOI,GAGT,cAAe,WACb,MAAM,IAAI,GAAG,qBAAqB,kBAGpC,eAAgB,WACd,MAAM,IAAI,GAAG,qBAAqB;"
-}
View
28 build/package.json
@@ -1,28 +0,0 @@
-{ "name" : "jsclass"
-, "description" : "Portable class library for JavaScript"
-, "homepage" : "http://jsclass.jcoglan.com"
-, "author" : "James Coglan <jcoglan@gmail.com> (http://jcoglan.com/)"
-, "keywords" : ["oop", "class", "data-structures", "testing"]
-
-, "version" : "3.0.9"
-, "engines" : {"node": ">=0.4.0"}
-, "main" : "./index"
-, "bin" : {"jsbuild": "./bin/jsbuild"}
-, "dependencies" : {"nopt": ""}
-, "devDependencies" : {"buster": "", "testem": ""}
-
-, "scripts" : {"test": "TAP=1 node test/console.js"}
-
-, "bugs" : "http://github.com/jcoglan/js.class/issues"
-
-, "licenses" : [ { "type" : "MIT"