Compare commits
113 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8adb30b212 | ||
|
|
0730e78cf8 | ||
|
|
943579a239 | ||
|
|
8bb89d819b | ||
|
|
f301b0413c | ||
|
|
c5f43141dc | ||
|
|
1ad9c61bd0 | ||
|
|
249cc59008 | ||
|
|
e7073bc5d9 | ||
|
|
458440e57b | ||
|
|
6cea181ff1 | ||
|
|
e3c2c0397a | ||
|
|
27f21a34e2 | ||
|
|
799bc6e81c | ||
|
|
e4bf1631e1 | ||
|
|
9d82bf74f3 | ||
|
|
ebe8493020 | ||
|
|
b1b34d328a | ||
|
|
8234ce2712 | ||
|
|
48c7debe5a | ||
|
|
cd6daf0b79 | ||
|
|
f0e9837dca | ||
|
|
f661f91323 | ||
|
|
e00fa5d5f8 | ||
|
|
51c06574a0 | ||
|
|
26cb24acc8 | ||
|
|
ac1b2b5c30 | ||
|
|
96b6c5f65a | ||
|
|
bfce05438b | ||
|
|
ff60e6a6ce | ||
|
|
0da9d711c5 | ||
|
|
fecdbac291 | ||
|
|
473e8a1841 | ||
|
|
faf6d179be | ||
|
|
d141d5c9ae | ||
|
|
a36b45434f | ||
|
|
2ec1a1851d | ||
|
|
72cf485dce | ||
|
|
fb60070647 | ||
|
|
90ec761f95 | ||
|
|
050aaa40f8 | ||
|
|
c1e3c02d13 | ||
|
|
dde7b0d98a | ||
|
|
98d1644c5b | ||
|
|
ca0fd229e1 | ||
|
|
a9bd53d77f | ||
|
|
f8ce1a8183 | ||
|
|
cee1076e1d | ||
|
|
91e3f7255c | ||
|
|
664c7a4743 | ||
|
|
f018e94be9 | ||
|
|
79d38cc30b | ||
|
|
ee8f022317 | ||
|
|
98c1a3a045 | ||
|
|
d84c94dc6d | ||
|
|
4f714cc7f9 | ||
|
|
fbc77f7445 | ||
|
|
f757614334 | ||
|
|
94023d88ca | ||
|
|
4547cbac3a | ||
|
|
856bf5e68c | ||
|
|
f4a1172b6f | ||
|
|
9866224dba | ||
|
|
8a271995c7 | ||
|
|
c06a0584ff | ||
|
|
37e6513c02 | ||
|
|
3d0d04efe2 | ||
|
|
87e537c917 | ||
|
|
b61324058d | ||
|
|
635e207f3f | ||
|
|
e87d5749bd | ||
|
|
b89dd043d3 | ||
|
|
8ce7c30c49 | ||
|
|
45d0a7d01f | ||
|
|
729127735b | ||
|
|
6d27277ef6 | ||
|
|
3108244c20 | ||
|
|
d0ed2dee60 | ||
|
|
a61429c947 | ||
|
|
fbdfa65734 | ||
|
|
02198eb967 | ||
|
|
cd8be896c4 | ||
|
|
b398c8809a | ||
|
|
f4353fa797 | ||
|
|
e6f5b930bc | ||
|
|
87e70ee78b | ||
|
|
fc1d4edbfd | ||
|
|
5f00ccc362 | ||
|
|
1143ac0268 | ||
|
|
0a6aeef0c9 | ||
|
|
ebb56e08ca | ||
|
|
27e0914a0d | ||
|
|
de180dc81a | ||
|
|
e2a3a5b993 | ||
|
|
8c81c4ad39 | ||
|
|
e620434a2e | ||
|
|
be0f1cb8db | ||
|
|
07d6eb6af5 | ||
|
|
81174187f5 | ||
|
|
aee27fbff0 | ||
|
|
28585439d1 | ||
|
|
7704cf571e | ||
|
|
26cfd19862 | ||
|
|
6a678f23a5 | ||
|
|
04961afa36 | ||
|
|
6fc9e338a5 | ||
|
|
df5dd7e383 | ||
|
|
8fbe095e94 | ||
|
|
a80d74a672 | ||
|
|
88f2bf9fa5 | ||
|
|
3ea0481bbe | ||
|
|
03eceeb615 | ||
|
|
81b9fe34ff |
8
.gitignore
vendored
@@ -1,10 +1,10 @@
|
|||||||
raw
|
raw
|
||||||
presentation
|
presentation
|
||||||
test.coffee
|
test.coffee
|
||||||
|
test*.coffee
|
||||||
test.litcoffee
|
test.litcoffee
|
||||||
parser.output
|
test*.litcoffee
|
||||||
test/fixtures/underscore
|
|
||||||
test/*.js
|
test/*.js
|
||||||
examples/beautiful_code/parse.coffee
|
parser.output
|
||||||
*.gem
|
|
||||||
/node_modules
|
/node_modules
|
||||||
|
npm-debug.log*
|
||||||
|
|||||||
25
.travis.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- 0.8
|
||||||
|
- 0.10
|
||||||
|
- 0.12
|
||||||
|
- 4
|
||||||
|
- 6
|
||||||
|
- 8
|
||||||
|
- node
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) = '0' && npm install --global npm@2 && npm --version || true"
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
script:
|
||||||
|
- node ./bin/cake build:except-parser
|
||||||
|
- node ./bin/cake build:parser
|
||||||
|
- node --harmony ./bin/cake build:full
|
||||||
|
- node ./bin/cake build:browser
|
||||||
|
- node --harmony ./bin/cake test
|
||||||
|
- node --harmony ./bin/cake test:browser
|
||||||
392
Cakefile
@@ -1,4 +1,5 @@
|
|||||||
fs = require 'fs'
|
fs = require 'fs'
|
||||||
|
os = require 'os'
|
||||||
path = require 'path'
|
path = require 'path'
|
||||||
_ = require 'underscore'
|
_ = require 'underscore'
|
||||||
{ spawn, exec, execSync } = require 'child_process'
|
{ spawn, exec, execSync } = require 'child_process'
|
||||||
@@ -24,73 +25,104 @@ header = """
|
|||||||
*/
|
*/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Used in folder names like docs/v1
|
# Used in folder names like `docs/v1`.
|
||||||
majorVersion = CoffeeScript.VERSION.split('.')[0]
|
majorVersion = parseInt CoffeeScript.VERSION.split('.')[0], 10
|
||||||
|
|
||||||
# Build the CoffeeScript language from source.
|
|
||||||
build = (cb) ->
|
|
||||||
files = fs.readdirSync 'src'
|
|
||||||
files = ('src/' + file for file in files when file.match(/\.(lit)?coffee$/))
|
|
||||||
run ['-c', '-o', 'lib/coffee-script'].concat(files), cb
|
|
||||||
|
|
||||||
# Run a CoffeeScript through our node/coffee interpreter.
|
|
||||||
run = (args, cb) ->
|
|
||||||
proc = spawn 'node', ['bin/coffee'].concat(args)
|
|
||||||
proc.stderr.on 'data', (buffer) -> console.log buffer.toString()
|
|
||||||
proc.on 'exit', (status) ->
|
|
||||||
process.exit(1) if status isnt 0
|
|
||||||
cb() if typeof cb is 'function'
|
|
||||||
|
|
||||||
# Log a message with a color.
|
# Log a message with a color.
|
||||||
log = (message, color, explanation) ->
|
log = (message, color, explanation) ->
|
||||||
console.log color + message + reset + ' ' + (explanation or '')
|
console.log color + message + reset + ' ' + (explanation or '')
|
||||||
|
|
||||||
option '-p', '--prefix [DIR]', 'set the installation prefix for `cake install`'
|
|
||||||
|
|
||||||
task 'install', 'install CoffeeScript into /usr/local (or --prefix)', (options) ->
|
spawnNodeProcess = (args, output = 'stderr', callback) ->
|
||||||
base = options.prefix or '/usr/local'
|
relayOutput = (buffer) -> console.log buffer.toString()
|
||||||
lib = "#{base}/lib/coffee-script"
|
proc = spawn 'node', args
|
||||||
bin = "#{base}/bin"
|
proc.stdout.on 'data', relayOutput if output is 'both' or output is 'stdout'
|
||||||
node = "~/.node_libraries/coffee-script"
|
proc.stderr.on 'data', relayOutput if output is 'both' or output is 'stderr'
|
||||||
console.log "Installing CoffeeScript to #{lib}"
|
proc.on 'exit', (status) -> callback(status) if typeof callback is 'function'
|
||||||
console.log "Linking to #{node}"
|
|
||||||
console.log "Linking 'coffee' to #{bin}/coffee"
|
# Run a CoffeeScript through our node/coffee interpreter.
|
||||||
exec([
|
run = (args, callback) ->
|
||||||
"mkdir -p #{lib} #{bin}"
|
spawnNodeProcess ['bin/coffee'].concat(args), 'stderr', (status) ->
|
||||||
"cp -rf bin lib LICENSE README.md package.json src #{lib}"
|
process.exit(1) if status isnt 0
|
||||||
"ln -sfn #{lib}/bin/coffee #{bin}/coffee"
|
callback() if typeof callback is 'function'
|
||||||
"ln -sfn #{lib}/bin/cake #{bin}/cake"
|
|
||||||
"mkdir -p ~/.node_libraries"
|
|
||||||
"ln -sfn #{lib}/lib/coffee-script #{node}"
|
|
||||||
].join(' && '), (err, stdout, stderr) ->
|
|
||||||
if err then console.log stderr.trim() else log 'done', green
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
task 'build', 'build the CoffeeScript language from source', build
|
# Build the CoffeeScript language from source.
|
||||||
|
buildParser = ->
|
||||||
task 'build:full', 'rebuild the source twice, and run the tests', ->
|
|
||||||
build ->
|
|
||||||
build ->
|
|
||||||
csPath = './lib/coffee-script'
|
|
||||||
csDir = path.dirname require.resolve csPath
|
|
||||||
|
|
||||||
for mod of require.cache when csDir is mod[0 ... csDir.length]
|
|
||||||
delete require.cache[mod]
|
|
||||||
|
|
||||||
unless runTests require csPath
|
|
||||||
process.exit 1
|
|
||||||
|
|
||||||
|
|
||||||
task 'build:parser', 'rebuild the Jison parser (run build first)', ->
|
|
||||||
helpers.extend global, require 'util'
|
helpers.extend global, require 'util'
|
||||||
require 'jison'
|
require 'jison'
|
||||||
parser = require('./lib/coffee-script/grammar').parser
|
parser = require('./lib/coffee-script/grammar').parser.generate()
|
||||||
fs.writeFileSync 'lib/coffee-script/parser.js', parser.generate()
|
# Patch Jison’s output, until https://github.com/zaach/jison/pull/339 is accepted,
|
||||||
|
# to ensure that require('fs') is only called where it exists.
|
||||||
|
parser = parser.replace "var source = require('fs')", """
|
||||||
|
var source = '';
|
||||||
|
var fs = require('fs');
|
||||||
|
if (typeof fs !== 'undefined' && fs !== null)
|
||||||
|
source = fs"""
|
||||||
|
fs.writeFileSync 'lib/coffee-script/parser.js', parser
|
||||||
|
|
||||||
|
buildExceptParser = (callback) ->
|
||||||
|
files = fs.readdirSync 'src'
|
||||||
|
files = ('src/' + file for file in files when file.match(/\.(lit)?coffee$/))
|
||||||
|
run ['-c', '-o', 'lib/coffee-script'].concat(files), callback
|
||||||
|
|
||||||
|
build = (callback) ->
|
||||||
|
buildParser()
|
||||||
|
buildExceptParser callback
|
||||||
|
|
||||||
|
testBuiltCode = (watch = no) ->
|
||||||
|
csPath = './lib/coffee-script'
|
||||||
|
csDir = path.dirname require.resolve csPath
|
||||||
|
|
||||||
|
for mod of require.cache when csDir is mod[0 ... csDir.length]
|
||||||
|
delete require.cache[mod]
|
||||||
|
|
||||||
|
testResults = runTests require csPath
|
||||||
|
unless watch
|
||||||
|
process.exit 1 unless testResults
|
||||||
|
|
||||||
|
buildAndTest = (includingParser = yes, harmony = no) ->
|
||||||
|
process.stdout.write '\x1Bc' # Clear terminal screen.
|
||||||
|
execSync 'git checkout lib/*', stdio: [0,1,2] # Reset the generated compiler.
|
||||||
|
|
||||||
|
buildArgs = ['bin/cake']
|
||||||
|
buildArgs.push if includingParser then 'build' else 'build:except-parser'
|
||||||
|
log "building#{if includingParser then ', including parser' else ''}...", green
|
||||||
|
spawnNodeProcess buildArgs, 'both', ->
|
||||||
|
log 'testing...', green
|
||||||
|
testArgs = if harmony then ['--harmony'] else []
|
||||||
|
testArgs = testArgs.concat ['bin/cake', 'test']
|
||||||
|
spawnNodeProcess testArgs, 'both'
|
||||||
|
|
||||||
|
watchAndBuildAndTest = (harmony = no) ->
|
||||||
|
buildAndTest yes, harmony
|
||||||
|
fs.watch 'src/', interval: 200, (eventType, filename) ->
|
||||||
|
if eventType is 'change'
|
||||||
|
log "src/#{filename} changed, rebuilding..."
|
||||||
|
buildAndTest (filename is 'grammar.coffee'), harmony
|
||||||
|
fs.watch 'test/', {interval: 200, recursive: yes}, (eventType, filename) ->
|
||||||
|
if eventType is 'change'
|
||||||
|
log "test/#{filename} changed, rebuilding..."
|
||||||
|
buildAndTest no, harmony
|
||||||
|
|
||||||
|
|
||||||
task 'build:browser', 'rebuild the merged script for inclusion in the browser', ->
|
task 'build', 'build the CoffeeScript compiler from source', build
|
||||||
code = ''
|
|
||||||
|
task 'build:parser', 'build the Jison parser only', buildParser
|
||||||
|
|
||||||
|
task 'build:except-parser', 'build the CoffeeScript compiler, except for the Jison parser', buildExceptParser
|
||||||
|
|
||||||
|
task 'build:full', 'build the CoffeeScript compiler from source twice, and run the tests', ->
|
||||||
|
build ->
|
||||||
|
build testBuiltCode
|
||||||
|
|
||||||
|
task 'build:browser', 'merge the built scripts into a single file for use in a browser', ->
|
||||||
|
code = """
|
||||||
|
require['../../package.json'] = (function() {
|
||||||
|
return #{fs.readFileSync "./package.json"};
|
||||||
|
})();
|
||||||
|
"""
|
||||||
for name in ['helpers', 'rewriter', 'lexer', 'parser', 'scope', 'nodes', 'sourcemap', 'coffee-script', 'browser']
|
for name in ['helpers', 'rewriter', 'lexer', 'parser', 'scope', 'nodes', 'sourcemap', 'coffee-script', 'browser']
|
||||||
code += """
|
code += """
|
||||||
require['./#{name}'] = (function() {
|
require['./#{name}'] = (function() {
|
||||||
@@ -114,83 +146,131 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
|
|||||||
}
|
}
|
||||||
}(this));
|
}(this));
|
||||||
"""
|
"""
|
||||||
unless process.env.MINIFY is 'false'
|
unless process.env.MINIFY is 'false' or process.versions.node.split('.')[0] is '0'
|
||||||
{compiledCode} = require('google-closure-compiler-js').compile
|
# Google Closure Compiler needs Node >= 4
|
||||||
|
{compiledCode: code} = require('google-closure-compiler-js').compile
|
||||||
jsCode: [
|
jsCode: [
|
||||||
src: code
|
src: code
|
||||||
languageOut: if majorVersion is 1 then 'ES5' else 'ES6'
|
languageOut: if majorVersion is 1 then 'ES5' else 'ES6'
|
||||||
]
|
]
|
||||||
outputFolder = "docs/v#{majorVersion}/browser-compiler"
|
outputFolder = "docs/v#{majorVersion}/browser-compiler"
|
||||||
fs.mkdirSync outputFolder unless fs.existsSync outputFolder
|
fs.mkdirSync outputFolder unless fs.existsSync outputFolder
|
||||||
fs.writeFileSync "#{outputFolder}/coffee-script.js", header + '\n' + compiledCode
|
fs.writeFileSync "#{outputFolder}/coffee-script.js", header + '\n' + code
|
||||||
|
|
||||||
|
task 'build:browser:full', 'merge the built scripts into a single file for use in a browser, and test it', ->
|
||||||
|
invoke 'build:browser'
|
||||||
console.log "built ... running browser tests:"
|
console.log "built ... running browser tests:"
|
||||||
invoke 'test:browser'
|
invoke 'test:browser'
|
||||||
|
|
||||||
|
task 'build:watch', 'watch and continually rebuild the CoffeeScript compiler, running tests on each build', ->
|
||||||
|
watchAndBuildAndTest()
|
||||||
|
|
||||||
|
task 'build:watch:harmony', 'watch and continually rebuild the CoffeeScript compiler, running harmony tests on each build', ->
|
||||||
|
watchAndBuildAndTest yes
|
||||||
|
|
||||||
|
|
||||||
|
buildDocs = (watch = no) ->
|
||||||
|
# Constants
|
||||||
|
indexFile = 'documentation/index.html'
|
||||||
|
versionedSourceFolder = "documentation/v#{majorVersion}"
|
||||||
|
sectionsSourceFolder = 'documentation/sections'
|
||||||
|
examplesSourceFolder = 'documentation/examples'
|
||||||
|
outputFolder = "docs/v#{majorVersion}"
|
||||||
|
|
||||||
task 'doc:site', 'watch and continually rebuild the documentation for the website', ->
|
|
||||||
# Helpers
|
# Helpers
|
||||||
codeFor = ->
|
releaseHeader = (date, version, prevVersion) ->
|
||||||
counter = 0
|
monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
||||||
hljs = require 'highlight.js'
|
|
||||||
hljs.configure classPrefix: ''
|
|
||||||
(file, executable = false, showLoad = true) ->
|
|
||||||
counter++
|
|
||||||
return unless fs.existsSync "docs/v#{majorVersion}/examples/#{file}.js"
|
|
||||||
cs = fs.readFileSync "documentation/examples/#{file}.coffee", 'utf-8'
|
|
||||||
js = fs.readFileSync "docs/v#{majorVersion}/examples/#{file}.js", 'utf-8'
|
|
||||||
js = js.replace /^\/\/ generated.*?\n/i, ''
|
|
||||||
|
|
||||||
cshtml = "<pre><code>#{hljs.highlight('coffeescript', cs).value}</code></pre>"
|
formatDate = (date) ->
|
||||||
# Temporary fix until highlight.js adds support for newer CoffeeScript keywords
|
date.replace /^(\d\d\d\d)-(\d\d)-(\d\d)$/, (match, $1, $2, $3) ->
|
||||||
# Added in https://github.com/isagalaev/highlight.js/pull/1357, awaiting release
|
"#{monthNames[$2 - 1]} #{+$3}, #{$1}"
|
||||||
if file in ['generator_iteration', 'generators', 'modules']
|
|
||||||
cshtml = cshtml.replace /(yield|import|export|from|as|default) /g, '<span class="keyword">$1</span> '
|
|
||||||
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
|
|
||||||
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '"'
|
|
||||||
if executable and executable isnt yes
|
|
||||||
cs.replace /(\S)\s*\Z/m, "$1\n\nalert #{executable}"
|
|
||||||
run = if executable is true then 'run' else "run: #{executable}"
|
|
||||||
name = "example#{counter}"
|
|
||||||
script = "<script>window.#{name} = #{JSON.stringify cs}</script>"
|
|
||||||
load = if showLoad then "<div class='minibutton load' onclick='javascript: loadConsole(#{name});'>load</div>" else ''
|
|
||||||
button = if executable then """<div class="minibutton ok" onclick="javascript: #{js.replace /"/g, '"'};#{append}">#{run}</div>""" else ''
|
|
||||||
"<div class='code'>#{cshtml}#{jshtml}#{script}#{load}#{button}<br class='clear' /></div>"
|
|
||||||
|
|
||||||
monthNames = [
|
"""
|
||||||
'January'
|
<div class="anchor" id="#{version}"></div>
|
||||||
'February'
|
<h2 class="header">
|
||||||
'March'
|
#{prevVersion and "<a href=\"https://github.com/jashkenas/coffeescript/compare/#{prevVersion}...#{version}\">#{version}</a>" or version}
|
||||||
'April'
|
<span class="timestamp"> — <time datetime="#{date}">#{formatDate date}</time></span>
|
||||||
'May'
|
</h2>
|
||||||
'June'
|
"""
|
||||||
'July'
|
|
||||||
'August'
|
|
||||||
'September'
|
|
||||||
'October'
|
|
||||||
'November'
|
|
||||||
'December'
|
|
||||||
]
|
|
||||||
|
|
||||||
formatDate = (date) ->
|
codeFor = require "./documentation/v#{majorVersion}/code.coffee"
|
||||||
date.replace /^(\d\d\d\d)-(\d\d)-(\d\d)$/, (match, $1, $2, $3) ->
|
|
||||||
"#{monthNames[$2 - 1]} #{+$3}, #{$1}"
|
|
||||||
|
|
||||||
releaseHeader = (date, version, prevVersion) -> """
|
htmlFor = ->
|
||||||
<div class="anchor" id="#{version}"></div>
|
markdownRenderer = require('markdown-it')
|
||||||
<b class="header">
|
html: yes
|
||||||
#{prevVersion and "<a href=\"https://github.com/jashkenas/coffeescript/compare/#{prevVersion}...#{version}\">#{version}</a>" or version}
|
typographer: yes
|
||||||
<span class="timestamp"> — <time datetime="#{date}">#{formatDate date}</time></span>
|
|
||||||
</b>
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
# Add some custom overrides to Markdown-It’s rendering, per
|
||||||
|
# https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md#renderer
|
||||||
|
defaultFence = markdownRenderer.renderer.rules.fence
|
||||||
|
markdownRenderer.renderer.rules.fence = (tokens, idx, options, env, slf) ->
|
||||||
|
code = tokens[idx].content
|
||||||
|
if code.indexOf('codeFor(') is 0 or code.indexOf('releaseHeader(') is 0
|
||||||
|
"<%= #{code} %>"
|
||||||
|
else
|
||||||
|
"<blockquote class=\"uneditable-code-block\">#{defaultFence.apply @, arguments}</blockquote>"
|
||||||
|
|
||||||
|
(file, bookmark) ->
|
||||||
|
md = fs.readFileSync "#{sectionsSourceFolder}/#{file}.md", 'utf-8'
|
||||||
|
md = md.replace /<%= releaseHeader %>/g, releaseHeader
|
||||||
|
md = md.replace /<%= majorVersion %>/g, majorVersion
|
||||||
|
md = md.replace /<%= fullVersion %>/g, CoffeeScript.VERSION
|
||||||
|
html = markdownRenderer.render md
|
||||||
|
html = _.template(html)
|
||||||
|
codeFor: codeFor()
|
||||||
|
releaseHeader: releaseHeader
|
||||||
|
|
||||||
|
include = ->
|
||||||
|
(file) ->
|
||||||
|
file = "#{versionedSourceFolder}/#{file}" if file.indexOf('/') is -1
|
||||||
|
output = fs.readFileSync file, 'utf-8'
|
||||||
|
if /\.html$/.test(file)
|
||||||
|
render = _.template output
|
||||||
|
output = render
|
||||||
|
releaseHeader: releaseHeader
|
||||||
|
majorVersion: majorVersion
|
||||||
|
fullVersion: CoffeeScript.VERSION
|
||||||
|
htmlFor: htmlFor()
|
||||||
|
codeFor: codeFor()
|
||||||
|
include: include()
|
||||||
|
output
|
||||||
|
|
||||||
|
# Task
|
||||||
|
do renderIndex = ->
|
||||||
|
render = _.template fs.readFileSync(indexFile, 'utf-8')
|
||||||
|
output = render
|
||||||
|
include: include()
|
||||||
|
fs.writeFileSync "#{outputFolder}/index.html", output
|
||||||
|
log 'compiled', green, "#{indexFile} → #{outputFolder}/index.html"
|
||||||
|
try
|
||||||
|
fs.symlinkSync "v#{majorVersion}/index.html", 'docs/index.html'
|
||||||
|
catch exception
|
||||||
|
|
||||||
|
if watch
|
||||||
|
for target in [indexFile, versionedSourceFolder, examplesSourceFolder, sectionsSourceFolder]
|
||||||
|
fs.watch target, interval: 200, renderIndex
|
||||||
|
log 'watching...', green
|
||||||
|
|
||||||
|
task 'doc:site', 'build the documentation for the website', ->
|
||||||
|
buildDocs()
|
||||||
|
|
||||||
|
task 'doc:site:watch', 'watch and continually rebuild the documentation for the website', ->
|
||||||
|
buildDocs yes
|
||||||
|
|
||||||
|
|
||||||
|
buildDocTests = (watch = no) ->
|
||||||
|
# Constants
|
||||||
|
testFile = 'documentation/test.html'
|
||||||
|
testsSourceFolder = 'test'
|
||||||
|
outputFolder = "docs/v#{majorVersion}"
|
||||||
|
|
||||||
|
# Included in test.html
|
||||||
testHelpers = fs.readFileSync('test/support/helpers.coffee', 'utf-8').replace /exports\./g, '@'
|
testHelpers = fs.readFileSync('test/support/helpers.coffee', 'utf-8').replace /exports\./g, '@'
|
||||||
|
|
||||||
|
# Helpers
|
||||||
testsInScriptBlocks = ->
|
testsInScriptBlocks = ->
|
||||||
output = ''
|
output = ''
|
||||||
excludedTestFiles = ['error_messages.coffee']
|
for filename in fs.readdirSync testsSourceFolder
|
||||||
for filename in fs.readdirSync 'test'
|
|
||||||
continue if filename in excludedTestFiles
|
|
||||||
|
|
||||||
if filename.indexOf('.coffee') isnt -1
|
if filename.indexOf('.coffee') isnt -1
|
||||||
type = 'coffeescript'
|
type = 'coffeescript'
|
||||||
else if filename.indexOf('.litcoffee') isnt -1
|
else if filename.indexOf('.litcoffee') isnt -1
|
||||||
@@ -208,45 +288,48 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
|
|||||||
output
|
output
|
||||||
|
|
||||||
# Task
|
# Task
|
||||||
examplesSourceFolder = 'documentation/examples'
|
|
||||||
examplesOutputFolder = "docs/v#{majorVersion}/examples"
|
|
||||||
fs.mkdirSync examplesOutputFolder unless fs.existsSync examplesOutputFolder
|
|
||||||
do renderExamples = ->
|
|
||||||
execSync "bin/coffee -bc -o #{examplesOutputFolder} #{examplesSourceFolder}/*.coffee"
|
|
||||||
|
|
||||||
indexFile = 'documentation/index.html'
|
|
||||||
do renderIndex = ->
|
|
||||||
render = _.template fs.readFileSync(indexFile, 'utf-8')
|
|
||||||
output = render
|
|
||||||
codeFor: codeFor()
|
|
||||||
releaseHeader: releaseHeader
|
|
||||||
majorVersion: majorVersion
|
|
||||||
fullVersion: CoffeeScript.VERSION
|
|
||||||
fs.writeFileSync "docs/v#{majorVersion}/index.html", output
|
|
||||||
log 'compiled', green, "#{indexFile} → docs/v#{majorVersion}/index.html"
|
|
||||||
|
|
||||||
testFile = 'documentation/test.html'
|
|
||||||
do renderTest = ->
|
do renderTest = ->
|
||||||
render = _.template fs.readFileSync(testFile, 'utf-8')
|
render = _.template fs.readFileSync(testFile, 'utf-8')
|
||||||
output = render
|
output = render
|
||||||
testHelpers: testHelpers
|
testHelpers: testHelpers
|
||||||
tests: testsInScriptBlocks()
|
tests: testsInScriptBlocks()
|
||||||
majorVersion: majorVersion
|
fs.writeFileSync "#{outputFolder}/test.html", output
|
||||||
fs.writeFileSync "docs/v#{majorVersion}/test.html", output
|
log 'compiled', green, "#{testFile} → #{outputFolder}/test.html"
|
||||||
log 'compiled', green, "#{testFile} → docs/v#{majorVersion}/test.html"
|
|
||||||
|
|
||||||
fs.watch examplesSourceFolder, interval: 200, ->
|
if watch
|
||||||
renderExamples()
|
for target in [testFile, testsSourceFolder]
|
||||||
renderIndex()
|
fs.watch target, interval: 200, renderTest
|
||||||
fs.watch indexFile, interval: 200, renderIndex
|
log 'watching...', green
|
||||||
fs.watch testFile, interval: 200, renderTest
|
|
||||||
fs.watch 'test', interval: 200, renderTest
|
task 'doc:test', 'build the browser-based tests', ->
|
||||||
log 'watching...' , green
|
buildDocTests()
|
||||||
|
|
||||||
|
task 'doc:test:watch', 'watch and continually rebuild the browser-based tests', ->
|
||||||
|
buildDocTests yes
|
||||||
|
|
||||||
|
|
||||||
task 'doc:source', 'rebuild the annotated source documentation', ->
|
buildAnnotatedSource = (watch = no) ->
|
||||||
exec "node_modules/docco/bin/docco src/*.*coffee --output docs/v#{majorVersion}/annotated-source", (err) -> throw err if err
|
do generateAnnotatedSource = ->
|
||||||
|
exec "node_modules/docco/bin/docco src/*.*coffee --output docs/v#{majorVersion}/annotated-source", (err) -> throw err if err
|
||||||
|
log 'generated', green, "annotated source in docs/v#{majorVersion}/annotated-source/"
|
||||||
|
|
||||||
|
if watch
|
||||||
|
fs.watch 'src/', interval: 200, generateAnnotatedSource
|
||||||
|
log 'watching...', green
|
||||||
|
|
||||||
|
task 'doc:source', 'build the annotated source documentation', ->
|
||||||
|
buildAnnotatedSource()
|
||||||
|
|
||||||
|
task 'doc:source:watch', 'watch and continually rebuild the annotated source documentation', ->
|
||||||
|
buildAnnotatedSource yes
|
||||||
|
|
||||||
|
|
||||||
|
task 'release', 'build and test the CoffeeScript source, and build the documentation', ->
|
||||||
|
invoke 'build:full'
|
||||||
|
invoke 'build:browser:full'
|
||||||
|
invoke 'doc:site'
|
||||||
|
invoke 'doc:test'
|
||||||
|
invoke 'doc:source'
|
||||||
|
|
||||||
task 'bench', 'quick benchmark of compilation time', ->
|
task 'bench', 'quick benchmark of compilation time', ->
|
||||||
{Rewriter} = require './lib/coffee-script/rewriter'
|
{Rewriter} = require './lib/coffee-script/rewriter'
|
||||||
@@ -280,6 +363,9 @@ runTests = (CoffeeScript) ->
|
|||||||
|
|
||||||
global[name] = func for name, func of require 'assert'
|
global[name] = func for name, func of require 'assert'
|
||||||
|
|
||||||
|
# `os.tmpdir()` was added in Node 0.9.9, but we support 0.8+.
|
||||||
|
os.tmpdir ?= -> path.resolve process.env.TMPDIR
|
||||||
|
|
||||||
# Convenience aliases.
|
# Convenience aliases.
|
||||||
global.CoffeeScript = CoffeeScript
|
global.CoffeeScript = CoffeeScript
|
||||||
global.Repl = require './lib/coffee-script/repl'
|
global.Repl = require './lib/coffee-script/repl'
|
||||||
@@ -316,6 +402,24 @@ runTests = (CoffeeScript) ->
|
|||||||
|
|
||||||
# Run every test in the `test` folder, recording failures.
|
# Run every test in the `test` folder, recording failures.
|
||||||
files = fs.readdirSync 'test'
|
files = fs.readdirSync 'test'
|
||||||
|
# If generator syntax isn’t supported (Node < 0.12 harmony), filter out the tests that use it.
|
||||||
|
try
|
||||||
|
new Function('(function*(){}())')()
|
||||||
|
catch
|
||||||
|
files.splice files.indexOf('generators.coffee'), 1
|
||||||
|
# If `for-of` syntax isn’t supported (Node < 0.12), filter out the tests that use it.
|
||||||
|
try
|
||||||
|
new Function('for (a of []) {}')()
|
||||||
|
catch
|
||||||
|
files.splice files.indexOf('arrays.coffee'), 1
|
||||||
|
files.splice files.indexOf('ranges.coffee'), 1
|
||||||
|
files.splice files.indexOf('scope.coffee'), 1
|
||||||
|
# If template literal syntax isn’t supported (Node < 4), filter out the tests that use it.
|
||||||
|
try
|
||||||
|
new Function('var a = ``')()
|
||||||
|
catch
|
||||||
|
files.splice files.indexOf('javascript_literals.coffee'), 1
|
||||||
|
files.splice files.indexOf('tagged_template_literals.coffee'), 1
|
||||||
|
|
||||||
for file in files when helpers.isCoffee file
|
for file in files when helpers.isCoffee file
|
||||||
literate = helpers.isLiterate file
|
literate = helpers.isLiterate file
|
||||||
@@ -329,7 +433,8 @@ runTests = (CoffeeScript) ->
|
|||||||
|
|
||||||
|
|
||||||
task 'test', 'run the CoffeeScript language test suite', ->
|
task 'test', 'run the CoffeeScript language test suite', ->
|
||||||
runTests CoffeeScript
|
testResults = runTests CoffeeScript
|
||||||
|
process.exit 1 unless testResults
|
||||||
|
|
||||||
|
|
||||||
task 'test:browser', 'run the test suite against the merged browser script', ->
|
task 'test:browser', 'run the test suite against the merged browser script', ->
|
||||||
@@ -337,4 +442,5 @@ task 'test:browser', 'run the test suite against the merged browser script', ->
|
|||||||
result = {}
|
result = {}
|
||||||
global.testingBrowser = yes
|
global.testingBrowser = yes
|
||||||
(-> eval source).call result
|
(-> eval source).call result
|
||||||
runTests result.CoffeeScript
|
testResults = runTests result.CoffeeScript
|
||||||
|
process.exit 1 unless testResults
|
||||||
|
|||||||
2
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2009-2015 Jeremy Ashkenas
|
Copyright (c) 2009-2017 Jeremy Ashkenas
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation
|
obtaining a copy of this software and associated documentation
|
||||||
|
|||||||
63
README.md
@@ -1,62 +1,5 @@
|
|||||||
{
|
## CoffeeScript has moved!
|
||||||
} } {
|
|
||||||
{ { } }
|
|
||||||
} }{ {
|
|
||||||
{ }{ } } _____ __ __
|
|
||||||
{ }{ }{ { } / ____| / _|/ _|
|
|
||||||
.- { { } { }} -. | | ___ | |_| |_ ___ ___
|
|
||||||
( { } { } { } } ) | | / _ \| _| _/ _ \/ _ \
|
|
||||||
|`-..________ ..-'| | |___| (_) | | | || __/ __/
|
|
||||||
| | \_____\___/|_| |_| \___|\___|
|
|
||||||
| ;--.
|
|
||||||
| (__ \ _____ _ _
|
|
||||||
| | ) ) / ____| (_) | |
|
|
||||||
| |/ / | (___ ___ _ __ _ _ __ | |_
|
|
||||||
| ( / \___ \ / __| '__| | '_ \| __|
|
|
||||||
| |/ ____) | (__| | | | |_) | |_
|
|
||||||
| | |_____/ \___|_| |_| .__/ \__|
|
|
||||||
`-.._________..-' | |
|
|
||||||
|_|
|
|
||||||
|
|
||||||
CoffeeScript is a little language that compiles into JavaScript.
|
CoffeeScript on NPM has moved to `coffeescript` (no hyphen). Please update references to `coffee-script` to use `coffeescript` instead.
|
||||||
|
|
||||||
## Installation
|
Also, a new major version has been released under the `coffeescript` name. This new release targets modern JavaScript, with minimal breaking changes. Learn more at [http://coffeescript.org](http://coffeescript.org).
|
||||||
|
|
||||||
If you have the node package manager, npm, installed:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install -g coffee-script
|
|
||||||
```
|
|
||||||
|
|
||||||
Leave off the `-g` if you don't wish to install globally. If you don't wish to use npm:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git clone https://github.com/jashkenas/coffeescript.git
|
|
||||||
sudo coffeescript/bin/cake install
|
|
||||||
```
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
Execute a script:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
coffee /path/to/script.coffee
|
|
||||||
```
|
|
||||||
|
|
||||||
Compile a script:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
coffee -c /path/to/script.coffee
|
|
||||||
```
|
|
||||||
|
|
||||||
For documentation, usage, and examples, see: http://coffeescript.org/
|
|
||||||
|
|
||||||
To suggest a feature or report a bug: http://github.com/jashkenas/coffeescript/issues
|
|
||||||
|
|
||||||
If you'd like to chat, drop by #coffeescript on Freenode IRC.
|
|
||||||
|
|
||||||
The source repository: https://github.com/jashkenas/coffeescript.git
|
|
||||||
|
|
||||||
Changelog: http://coffeescript.org/#changelog
|
|
||||||
|
|
||||||
Our lovely and talented contributors are listed here: http://github.com/jashkenas/coffeescript/contributors
|
|
||||||
31
appveyor.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- nodejs_version: '0.8'
|
||||||
|
- nodejs_version: '0.10'
|
||||||
|
- nodejs_version: '0.12'
|
||||||
|
- nodejs_version: '4'
|
||||||
|
- nodejs_version: '6'
|
||||||
|
- nodejs_version: '8'
|
||||||
|
- nodejs_version: '' # Installs latest.
|
||||||
|
|
||||||
|
install:
|
||||||
|
- ps: Install-Product node $env:nodejs_version
|
||||||
|
- IF NOT [%nodejs_version%] == [] IF "%nodejs_version%" LSS 4 npm install --global npm@2
|
||||||
|
- node --version
|
||||||
|
- npm --version
|
||||||
|
- npm install
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- node ./bin/cake build:except-parser
|
||||||
|
- node ./bin/cake build:parser
|
||||||
|
- node --harmony ./bin/cake build:full
|
||||||
|
- node ./bin/cake build:browser
|
||||||
|
- node --harmony ./bin/cake test
|
||||||
|
- node --harmony ./bin/cake test:browser
|
||||||
|
|
||||||
|
build: off
|
||||||
|
|
||||||
|
version: "{build}"
|
||||||
15
bin/cake
@@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
|
|
||||||
|
|
||||||
require(lib + '/coffee-script/cake').run();
|
var potentialPaths = [
|
||||||
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffeescript'),
|
||||||
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffee-script'),
|
||||||
|
path.join(process.cwd(), 'node_modules/coffee-script/lib/coffee-script'),
|
||||||
|
path.join(__dirname, '../lib/coffee-script')
|
||||||
|
];
|
||||||
|
|
||||||
|
for (var i = 0, len = potentialPaths.length; i < len; i++) {
|
||||||
|
if (fs.existsSync(potentialPaths[i])) {
|
||||||
|
require(potentialPaths[i] + '/cake').run();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
15
bin/coffee
@@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
|
|
||||||
|
|
||||||
require(lib + '/coffee-script/command').run();
|
var potentialPaths = [
|
||||||
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffeescript'),
|
||||||
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffee-script'),
|
||||||
|
path.join(process.cwd(), 'node_modules/coffee-script/lib/coffee-script'),
|
||||||
|
path.join(__dirname, '../lib/coffee-script')
|
||||||
|
];
|
||||||
|
|
||||||
|
for (var i = 0, len = potentialPaths.length; i < len; i++) {
|
||||||
|
if (fs.existsSync(potentialPaths[i])) {
|
||||||
|
require(potentialPaths[i] + '/command').run();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
BIN
docs/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
docs/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
docs/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
9
docs/browserconfig.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig>
|
||||||
|
<msapplication>
|
||||||
|
<tile>
|
||||||
|
<square150x150logo src="/mstile-150x150.png"/>
|
||||||
|
<TileColor>#da532c</TileColor>
|
||||||
|
</tile>
|
||||||
|
</msapplication>
|
||||||
|
</browserconfig>
|
||||||
BIN
docs/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 987 B |
BIN
docs/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
docs/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
17
docs/manifest.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/android-chrome-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-chrome-512x512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image\/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"theme_color": "#ffffff",
|
||||||
|
"display": "standalone"
|
||||||
|
}
|
||||||
BIN
docs/mstile-150x150.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
44
docs/safari-pinned-tab.svg
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||||
|
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||||
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="916.000000pt" height="916.000000pt" viewBox="0 0 916.000000 916.000000"
|
||||||
|
preserveAspectRatio="xMidYMid meet">
|
||||||
|
<metadata>
|
||||||
|
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||||
|
</metadata>
|
||||||
|
<g transform="translate(0.000000,916.000000) scale(0.100000,-0.100000)"
|
||||||
|
fill="#000000" stroke="none">
|
||||||
|
<path d="M5555 8253 c-199 -8 -487 -49 -670 -94 -283 -70 -464 -155 -829 -387
|
||||||
|
-307 -196 -461 -259 -721 -297 -134 -20 -345 -19 -442 1 -160 33 -243 104
|
||||||
|
-243 208 0 59 38 103 118 139 159 72 516 78 707 11 l70 -24 40 28 c94 66 62
|
||||||
|
162 -73 213 -90 34 -196 48 -352 48 -404 1 -684 -104 -767 -286 -22 -48 -25
|
||||||
|
-65 -21 -138 8 -147 86 -267 241 -368 192 -125 402 -184 702 -194 248 -9 474
|
||||||
|
23 699 99 148 50 244 94 565 262 375 197 551 266 806 319 207 43 297 52 535
|
||||||
|
51 194 0 238 -3 319 -22 199 -46 311 -131 311 -235 0 -125 -160 -221 -435
|
||||||
|
-262 -333 -50 -606 26 -685 191 -25 50 -31 52 -128 29 -258 -61 -317 -257
|
||||||
|
-117 -390 157 -104 371 -149 700 -149 539 1 944 133 1084 352 108 171 68 386
|
||||||
|
-105 557 -195 192 -518 305 -959 335 -143 9 -193 10 -350 3z"/>
|
||||||
|
<path d="M1095 7556 c-323 -132 -512 -261 -576 -391 -35 -73 -33 -161 5 -235
|
||||||
|
139 -267 715 -511 1644 -696 1114 -222 2726 -285 4162 -163 584 49 1082 129
|
||||||
|
1590 255 590 146 1001 330 1155 518 135 165 92 351 -120 513 -68 52 -250 153
|
||||||
|
-276 153 -7 0 1 -15 18 -32 74 -77 93 -189 48 -286 -88 -189 -401 -351 -950
|
||||||
|
-491 -589 -149 -1176 -233 -2060 -293 -302 -21 -1490 -17 -1815 5 -988 68
|
||||||
|
-1692 183 -2240 366 -363 122 -575 252 -646 397 -58 118 -25 250 88 357 34 31
|
||||||
|
59 57 57 57 -2 -1 -40 -16 -84 -34z"/>
|
||||||
|
<path d="M554 6215 c42 -244 59 -335 76 -415 53 -243 141 -560 215 -779 19
|
||||||
|
-58 35 -108 35 -112 0 -4 -43 -38 -97 -75 -176 -126 -380 -340 -500 -527 -113
|
||||||
|
-176 -202 -394 -245 -602 -20 -96 -23 -139 -23 -330 0 -198 3 -229 24 -315 47
|
||||||
|
-189 122 -347 237 -500 235 -313 529 -501 879 -560 109 -19 341 -14 475 9 106
|
||||||
|
18 460 129 484 152 6 5 -15 9 -50 9 -158 0 -384 62 -556 152 -224 117 -495
|
||||||
|
354 -622 546 -119 178 -177 338 -216 592 -62 402 38 761 288 1030 l60 65 22
|
||||||
|
-50 c175 -407 322 -695 457 -894 59 -86 238 -340 398 -566 414 -584 421 -593
|
||||||
|
471 -701 97 -210 179 -432 220 -599 19 -80 58 -137 172 -252 180 -182 363
|
||||||
|
-282 727 -398 303 -96 462 -132 770 -177 128 -18 1029 -18 1175 0 304 39 499
|
||||||
|
81 780 169 266 83 422 160 600 294 77 58 207 185 257 251 15 20 35 38 43 41
|
||||||
|
10 2 21 34 33 93 37 180 111 402 199 595 23 50 146 230 360 530 518 724 597
|
||||||
|
846 743 1142 270 549 475 1133 614 1752 45 203 92 447 88 452 -2 2 -22 -19
|
||||||
|
-45 -46 -153 -181 -518 -355 -1007 -479 -1503 -383 -3714 -462 -5485 -196
|
||||||
|
-390 58 -751 129 -988 195 -511 141 -861 305 -1025 482 -46 50 -48 51 -43 22z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.7 KiB |
1
docs/v1/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
examples/
|
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
<a class="pilcrow" href="#section-1">¶</a>
|
<a class="pilcrow" href="#section-1">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p><code>cake</code> is a simplified version of <a href="http://www.gnu.org/software/make/">Make</a>
|
<p><code>cake</code> is a simplified version of <a href="http://www.gnu.org/software/make/">Make</a>
|
||||||
(<a href="http://rake.rubyforge.org/">Rake</a>, <a href="http://github.com/280north/jake">Jake</a>)
|
(<a href="http://rake.rubyforge.org/">Rake</a>, <a href="https://github.com/280north/jake">Jake</a>)
|
||||||
for CoffeeScript. You define tasks with names and descriptions in a Cakefile,
|
for CoffeeScript. You define tasks with names and descriptions in a Cakefile,
|
||||||
and can call them from the command line, or invoke them from other tasks.</p>
|
and can call them from the command line, or invoke them from other tasks.</p>
|
||||||
<p>Running <code>cake</code> with no arguments will print out a list of all the tasks in the
|
<p>Running <code>cake</code> with no arguments will print out a list of all the tasks in the
|
||||||
|
|||||||
@@ -140,13 +140,12 @@ SourceMap = <span class="hljs-built_in">require</span> <span class="hljs-str
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-2">¶</a>
|
<a class="pilcrow" href="#section-2">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The current CoffeeScript version number.</p>
|
<p>Require <code>package.json</code>, which is two levels above this file, as this file is
|
||||||
|
evaluated from <code>lib/coffee-script</code>.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre>exports.VERSION = <span class="hljs-string">'1.12.0'</span>
|
<div class="content"><div class='highlight'><pre>packageJson = <span class="hljs-built_in">require</span> <span class="hljs-string">'../../package.json'</span></pre></div></div>
|
||||||
|
|
||||||
exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span class="hljs-string">'.litcoffee'</span>, <span class="hljs-string">'.coffee.md'</span>]</pre></div></div>
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -157,11 +156,13 @@ exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span cla
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-3">¶</a>
|
<a class="pilcrow" href="#section-3">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Expose helpers for testing.</p>
|
<p>The current CoffeeScript version number.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre>exports.helpers = helpers</pre></div></div>
|
<div class="content"><div class='highlight'><pre>exports.VERSION = packageJson.version
|
||||||
|
|
||||||
|
exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span class="hljs-string">'.litcoffee'</span>, <span class="hljs-string">'.coffee.md'</span>]</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -172,6 +173,21 @@ exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span cla
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-4">¶</a>
|
<a class="pilcrow" href="#section-4">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
<p>Expose helpers for testing.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre>exports.helpers = helpers</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-5">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-5">¶</a>
|
||||||
|
</div>
|
||||||
<p>Function that allows for btoa in both nodejs and the browser.</p>
|
<p>Function that allows for btoa in both nodejs and the browser.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -184,11 +200,11 @@ exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span cla
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-5">
|
<li id="section-6">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-5">¶</a>
|
<a class="pilcrow" href="#section-6">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The contents of a <code><script></code> block are encoded via UTF-16, so if any extended
|
<p>The contents of a <code><script></code> block are encoded via UTF-16, so if any extended
|
||||||
characters are used in the block, btoa will fail as it maxes out at UTF-8.
|
characters are used in the block, btoa will fail as it maxes out at UTF-8.
|
||||||
@@ -205,11 +221,11 @@ for the gory details, and for the solution implemented here.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-6">
|
<li id="section-7">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-6">¶</a>
|
<a class="pilcrow" href="#section-7">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Function wrapper to add source file information to SyntaxErrors thrown by the
|
<p>Function wrapper to add source file information to SyntaxErrors thrown by the
|
||||||
lexer/parser/compiler.</p>
|
lexer/parser/compiler.</p>
|
||||||
@@ -227,40 +243,94 @@ lexer/parser/compiler.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-7">
|
<li id="section-8">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-7">¶</a>
|
<a class="pilcrow" href="#section-8">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>For each compiled file, save its source in memory in case we need to
|
||||||
|
recompile it later. We might need to recompile if the first compilation
|
||||||
|
didn’t create a source map (faster) but something went wrong and we need
|
||||||
|
a stack trace. Assuming that most of the time, code isn’t throwing
|
||||||
|
exceptions, it’s probably more efficient to compile twice only when we
|
||||||
|
need a stack trace, rather than always generating a source map even when
|
||||||
|
it’s not likely to be used. Save in form of <code>filename</code>: <code>(source)</code></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre>sources = {}</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-9">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-9">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Also save source maps if generated, in form of <code>filename</code>: <code>(source map)</code>.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre>sourceMaps = {}</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-10">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-10">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Compile CoffeeScript code to JavaScript, using the Coffee/Jison compiler.</p>
|
<p>Compile CoffeeScript code to JavaScript, using the Coffee/Jison compiler.</p>
|
||||||
<p>If <code>options.sourceMap</code> is specified, then <code>options.filename</code> must also be specified. All
|
<p>If <code>options.sourceMap</code> is specified, then <code>options.filename</code> must also be
|
||||||
options that can be passed to <code>SourceMap#generate</code> may also be passed here.</p>
|
specified. All options that can be passed to <code>SourceMap#generate</code> may also
|
||||||
|
be passed here.</p>
|
||||||
<p>This returns a javascript string, unless <code>options.sourceMap</code> is passed,
|
<p>This returns a javascript string, unless <code>options.sourceMap</code> is passed,
|
||||||
in which case this returns a <code>{js, v3SourceMap, sourceMap}</code>
|
in which case this returns a <code>{js, v3SourceMap, sourceMap}</code>
|
||||||
object, where sourceMap is a sourcemap.coffee#SourceMap object, handy for doing programatic
|
object, where sourceMap is a sourcemap.coffee#SourceMap object, handy for
|
||||||
lookups.</p>
|
doing programmatic lookups.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre>exports.compile = compile = withPrettyErrors (code, options) ->
|
<div class="content"><div class='highlight'><pre>exports.compile = compile = withPrettyErrors (code, options) ->
|
||||||
{merge, extend} = helpers
|
{merge, extend} = helpers
|
||||||
options = extend {}, options
|
options = extend {}, options</pre></div></div>
|
||||||
generateSourceMap = options.sourceMap <span class="hljs-keyword">or</span> options.inlineMap
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-11">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-11">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Always generate a source map if no filename is passed in, since without a
|
||||||
|
a filename we have no way to retrieve this source later in the event that
|
||||||
|
we need to recompile it to get a source map for <code>prepareStackTrace</code>.</p>
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> generateSourceMap
|
</div>
|
||||||
map = <span class="hljs-keyword">new</span> SourceMap
|
|
||||||
|
<div class="content"><div class='highlight'><pre> generateSourceMap = options.sourceMap <span class="hljs-keyword">or</span> options.inlineMap <span class="hljs-keyword">or</span> <span class="hljs-keyword">not</span> options.filename?
|
||||||
|
filename = options.filename <span class="hljs-keyword">or</span> <span class="hljs-string">'<anonymous>'</span>
|
||||||
|
|
||||||
|
sources[filename] = code
|
||||||
|
map = <span class="hljs-keyword">new</span> SourceMap <span class="hljs-keyword">if</span> generateSourceMap
|
||||||
|
|
||||||
tokens = lexer.tokenize code, options</pre></div></div>
|
tokens = lexer.tokenize code, options</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-8">
|
<li id="section-12">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-8">¶</a>
|
<a class="pilcrow" href="#section-12">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Pass a list of referenced variables, so that generated variables won’t get
|
<p>Pass a list of referenced variables, so that generated variables won’t get
|
||||||
the same name.</p>
|
the same name.</p>
|
||||||
@@ -274,13 +344,13 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-9">
|
<li id="section-13">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-9">¶</a>
|
<a class="pilcrow" href="#section-13">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Check for import or export; if found, force bare mode</p>
|
<p>Check for import or export; if found, force bare mode.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -302,13 +372,13 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-10">
|
<li id="section-14">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-10">¶</a>
|
<a class="pilcrow" href="#section-14">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Update the sourcemap with data from each fragment</p>
|
<p>Update the sourcemap with data from each fragment.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -317,11 +387,11 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-11">
|
<li id="section-15">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-11">¶</a>
|
<a class="pilcrow" href="#section-15">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Do not include empty, whitespace, or semicolon-only fragments.</p>
|
<p>Do not include empty, whitespace, or semicolon-only fragments.</p>
|
||||||
|
|
||||||
@@ -342,11 +412,11 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-12">
|
<li id="section-16">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-12">¶</a>
|
<a class="pilcrow" href="#section-16">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Copy the code from each fragment into the final JavaScript.</p>
|
<p>Copy the code from each fragment into the final JavaScript.</p>
|
||||||
|
|
||||||
@@ -360,6 +430,7 @@ the same name.</p>
|
|||||||
|
|
||||||
<span class="hljs-keyword">if</span> generateSourceMap
|
<span class="hljs-keyword">if</span> generateSourceMap
|
||||||
v3SourceMap = map.generate(options, code)
|
v3SourceMap = map.generate(options, code)
|
||||||
|
sourceMaps[filename] = map
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> options.inlineMap
|
<span class="hljs-keyword">if</span> options.inlineMap
|
||||||
encoded = base64encode JSON.stringify v3SourceMap
|
encoded = base64encode JSON.stringify v3SourceMap
|
||||||
@@ -379,11 +450,11 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-13">
|
<li id="section-17">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-13">¶</a>
|
<a class="pilcrow" href="#section-17">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokenize a string of CoffeeScript code, and return the array of tokens.</p>
|
<p>Tokenize a string of CoffeeScript code, and return the array of tokens.</p>
|
||||||
|
|
||||||
@@ -395,11 +466,11 @@ the same name.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-14">
|
<li id="section-18">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-14">¶</a>
|
<a class="pilcrow" href="#section-18">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Parse a string of CoffeeScript code or an array of lexed tokens, and
|
<p>Parse a string of CoffeeScript code or an array of lexed tokens, and
|
||||||
return the AST. You can then compile it by calling <code>.compile()</code> on the root,
|
return the AST. You can then compile it by calling <code>.compile()</code> on the root,
|
||||||
@@ -416,11 +487,11 @@ or traverse it by using <code>.traverseChildren()</code> with a callback.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-15">
|
<li id="section-19">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-15">¶</a>
|
<a class="pilcrow" href="#section-19">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Compile and execute a string of CoffeeScript (on the server), correctly
|
<p>Compile and execute a string of CoffeeScript (on the server), correctly
|
||||||
setting <code>__filename</code>, <code>__dirname</code>, and relative <code>require()</code>.</p>
|
setting <code>__filename</code>, <code>__dirname</code>, and relative <code>require()</code>.</p>
|
||||||
@@ -433,27 +504,27 @@ setting <code>__filename</code>, <code>__dirname</code>, and relative <code>requ
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-16">
|
<li id="section-20">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-16">¶</a>
|
<a class="pilcrow" href="#section-20">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Set the filename.</p>
|
<p>Set the filename.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> mainModule.filename = process.argv[<span class="hljs-number">1</span>] =
|
<div class="content"><div class='highlight'><pre> mainModule.filename = process.argv[<span class="hljs-number">1</span>] =
|
||||||
<span class="hljs-keyword">if</span> options.filename <span class="hljs-keyword">then</span> fs.realpathSync(options.filename) <span class="hljs-keyword">else</span> <span class="hljs-string">'.'</span></pre></div></div>
|
<span class="hljs-keyword">if</span> options.filename <span class="hljs-keyword">then</span> fs.realpathSync(options.filename) <span class="hljs-keyword">else</span> <span class="hljs-string">'<anonymous>'</span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-17">
|
<li id="section-21">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-17">¶</a>
|
<a class="pilcrow" href="#section-21">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Clear the module cache.</p>
|
<p>Clear the module cache.</p>
|
||||||
|
|
||||||
@@ -464,17 +535,17 @@ setting <code>__filename</code>, <code>__dirname</code>, and relative <code>requ
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-18">
|
<li id="section-22">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-18">¶</a>
|
<a class="pilcrow" href="#section-22">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Assign paths for node_modules loading</p>
|
<p>Assign paths for node_modules loading</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> dir = <span class="hljs-keyword">if</span> options.filename
|
<div class="content"><div class='highlight'><pre> dir = <span class="hljs-keyword">if</span> options.filename?
|
||||||
path.dirname fs.realpathSync options.filename
|
path.dirname fs.realpathSync options.filename
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
fs.realpathSync <span class="hljs-string">'.'</span>
|
fs.realpathSync <span class="hljs-string">'.'</span>
|
||||||
@@ -483,11 +554,11 @@ setting <code>__filename</code>, <code>__dirname</code>, and relative <code>requ
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-19">
|
<li id="section-23">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-19">¶</a>
|
<a class="pilcrow" href="#section-23">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Compile.</p>
|
<p>Compile.</p>
|
||||||
|
|
||||||
@@ -502,11 +573,11 @@ setting <code>__filename</code>, <code>__dirname</code>, and relative <code>requ
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-20">
|
<li id="section-24">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-20">¶</a>
|
<a class="pilcrow" href="#section-24">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Compile and evaluate a string of CoffeeScript (in a Node.js-like environment).
|
<p>Compile and evaluate a string of CoffeeScript (in a Node.js-like environment).
|
||||||
The CoffeeScript REPL uses this to run the input.</p>
|
The CoffeeScript REPL uses this to run the input.</p>
|
||||||
@@ -536,11 +607,11 @@ The CoffeeScript REPL uses this to run the input.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-21">
|
<li id="section-25">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-21">¶</a>
|
<a class="pilcrow" href="#section-25">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>define module/require only if they chose not to specify their own</p>
|
<p>define module/require only if they chose not to specify their own</p>
|
||||||
|
|
||||||
@@ -557,11 +628,11 @@ The CoffeeScript REPL uses this to run the input.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-22">
|
<li id="section-26">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-22">¶</a>
|
<a class="pilcrow" href="#section-26">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>use the same hack node currently uses for their own REPL</p>
|
<p>use the same hack node currently uses for their own REPL</p>
|
||||||
|
|
||||||
@@ -583,11 +654,11 @@ exports.register = <span class="hljs-function">-></span> <span class="hljs-bu
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-23">
|
<li id="section-27">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-23">¶</a>
|
<a class="pilcrow" href="#section-27">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Throw error with deprecation warning when depending upon implicit <code>require.extensions</code> registration</p>
|
<p>Throw error with deprecation warning when depending upon implicit <code>require.extensions</code> registration</p>
|
||||||
|
|
||||||
@@ -601,8 +672,22 @@ exports.register = <span class="hljs-function">-></span> <span class="hljs-bu
|
|||||||
"""</span>
|
"""</span>
|
||||||
|
|
||||||
exports._compileFile = <span class="hljs-function"><span class="hljs-params">(filename, sourceMap = <span class="hljs-literal">no</span>, inlineMap = <span class="hljs-literal">no</span>)</span> -></span>
|
exports._compileFile = <span class="hljs-function"><span class="hljs-params">(filename, sourceMap = <span class="hljs-literal">no</span>, inlineMap = <span class="hljs-literal">no</span>)</span> -></span>
|
||||||
raw = fs.readFileSync filename, <span class="hljs-string">'utf8'</span>
|
raw = fs.readFileSync filename, <span class="hljs-string">'utf8'</span></pre></div></div>
|
||||||
stripped = <span class="hljs-keyword">if</span> raw.charCodeAt(<span class="hljs-number">0</span>) <span class="hljs-keyword">is</span> <span class="hljs-number">0xFEFF</span> <span class="hljs-keyword">then</span> raw.substring <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> raw
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-28">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-28">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Strip the Unicode byte order mark, if this file begins with one.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> stripped = <span class="hljs-keyword">if</span> raw.charCodeAt(<span class="hljs-number">0</span>) <span class="hljs-keyword">is</span> <span class="hljs-number">0xFEFF</span> <span class="hljs-keyword">then</span> raw.substring <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> raw
|
||||||
|
|
||||||
<span class="hljs-keyword">try</span>
|
<span class="hljs-keyword">try</span>
|
||||||
answer = compile stripped, {
|
answer = compile stripped, {
|
||||||
@@ -615,11 +700,11 @@ exports._compileFile = <span class="hljs-function"><span class="hljs-params">(fi
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-24">
|
<li id="section-29">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-24">¶</a>
|
<a class="pilcrow" href="#section-29">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>As the filename and code of a dynamically loaded file will be different
|
<p>As the filename and code of a dynamically loaded file will be different
|
||||||
from the original file compiled with CoffeeScript.run, add that
|
from the original file compiled with CoffeeScript.run, add that
|
||||||
@@ -634,11 +719,11 @@ information to error so it can be pretty-printed later.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-25">
|
<li id="section-30">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-25">¶</a>
|
<a class="pilcrow" href="#section-30">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Instantiate a Lexer for our use here.</p>
|
<p>Instantiate a Lexer for our use here.</p>
|
||||||
|
|
||||||
@@ -649,11 +734,11 @@ information to error so it can be pretty-printed later.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-26">
|
<li id="section-31">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-26">¶</a>
|
<a class="pilcrow" href="#section-31">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The real Lexer produces a generic stream of tokens. This object provides a
|
<p>The real Lexer produces a generic stream of tokens. This object provides a
|
||||||
thin wrapper around it, compatible with the Jison API. We can then pass it
|
thin wrapper around it, compatible with the Jison API. We can then pass it
|
||||||
@@ -681,11 +766,11 @@ directly as a “Jison lexer”.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-27">
|
<li id="section-32">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-27">¶</a>
|
<a class="pilcrow" href="#section-32">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Make all the AST nodes visible to the parser.</p>
|
<p>Make all the AST nodes visible to the parser.</p>
|
||||||
|
|
||||||
@@ -696,11 +781,11 @@ directly as a “Jison lexer”.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-28">
|
<li id="section-33">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-28">¶</a>
|
<a class="pilcrow" href="#section-33">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Override Jison’s default error handling function.</p>
|
<p>Override Jison’s default error handling function.</p>
|
||||||
|
|
||||||
@@ -711,11 +796,11 @@ directly as a “Jison lexer”.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-29">
|
<li id="section-34">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-29">¶</a>
|
<a class="pilcrow" href="#section-34">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Disregard Jison’s message, it contains redundant line number information.
|
<p>Disregard Jison’s message, it contains redundant line number information.
|
||||||
Disregard the token, we take its value directly from the lexer in case
|
Disregard the token, we take its value directly from the lexer in case
|
||||||
@@ -739,11 +824,11 @@ the error is caused by a generated token which might refer to its origin.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-30">
|
<li id="section-35">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-30">¶</a>
|
<a class="pilcrow" href="#section-35">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The second argument has a <code>loc</code> property, which should have the location
|
<p>The second argument has a <code>loc</code> property, which should have the location
|
||||||
data for this token. Unfortunately, Jison seems to send an outdated <code>loc</code>
|
data for this token. Unfortunately, Jison seems to send an outdated <code>loc</code>
|
||||||
@@ -757,11 +842,11 @@ from the lexer.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-31">
|
<li id="section-36">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-31">¶</a>
|
<a class="pilcrow" href="#section-36">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Based on <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js">http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js</a>
|
<p>Based on <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js">http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js</a>
|
||||||
Modified to handle sourceMap</p>
|
Modified to handle sourceMap</p>
|
||||||
@@ -769,19 +854,19 @@ Modified to handle sourceMap</p>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">formatSourcePosition</span> = <span class="hljs-params">(frame, getSourceMapping)</span> -></span>
|
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">formatSourcePosition</span> = <span class="hljs-params">(frame, getSourceMapping)</span> -></span>
|
||||||
fileName = <span class="hljs-literal">undefined</span>
|
filename = <span class="hljs-literal">undefined</span>
|
||||||
fileLocation = <span class="hljs-string">''</span>
|
fileLocation = <span class="hljs-string">''</span>
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> frame.isNative()
|
<span class="hljs-keyword">if</span> frame.isNative()
|
||||||
fileLocation = <span class="hljs-string">"native"</span>
|
fileLocation = <span class="hljs-string">"native"</span>
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
<span class="hljs-keyword">if</span> frame.isEval()
|
<span class="hljs-keyword">if</span> frame.isEval()
|
||||||
fileName = frame.getScriptNameOrSourceURL()
|
filename = frame.getScriptNameOrSourceURL()
|
||||||
fileLocation = <span class="hljs-string">"<span class="hljs-subst">#{frame.getEvalOrigin()}</span>, "</span> <span class="hljs-keyword">unless</span> fileName
|
fileLocation = <span class="hljs-string">"<span class="hljs-subst">#{frame.getEvalOrigin()}</span>, "</span> <span class="hljs-keyword">unless</span> filename
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
fileName = frame.getFileName()
|
filename = frame.getFileName()
|
||||||
|
|
||||||
fileName <span class="hljs-keyword">or</span>= <span class="hljs-string">"<anonymous>"</span>
|
filename <span class="hljs-keyword">or</span>= <span class="hljs-string">"<anonymous>"</span>
|
||||||
|
|
||||||
line = frame.getLineNumber()
|
line = frame.getLineNumber()
|
||||||
column = frame.getColumnNumber()</pre></div></div>
|
column = frame.getColumnNumber()</pre></div></div>
|
||||||
@@ -789,22 +874,22 @@ Modified to handle sourceMap</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-32">
|
<li id="section-37">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-32">¶</a>
|
<a class="pilcrow" href="#section-37">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Check for a sourceMap position</p>
|
<p>Check for a sourceMap position</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> source = getSourceMapping fileName, line, column
|
<div class="content"><div class='highlight'><pre> source = getSourceMapping filename, line, column
|
||||||
fileLocation =
|
fileLocation =
|
||||||
<span class="hljs-keyword">if</span> source
|
<span class="hljs-keyword">if</span> source
|
||||||
<span class="hljs-string">"<span class="hljs-subst">#{fileName}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">0</span>]}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">1</span>]}</span>"</span>
|
<span class="hljs-string">"<span class="hljs-subst">#{filename}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">0</span>]}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">1</span>]}</span>"</span>
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
<span class="hljs-string">"<span class="hljs-subst">#{fileName}</span>:<span class="hljs-subst">#{line}</span>:<span class="hljs-subst">#{column}</span>"</span>
|
<span class="hljs-string">"<span class="hljs-subst">#{filename}</span>:<span class="hljs-subst">#{line}</span>:<span class="hljs-subst">#{column}</span>"</span>
|
||||||
|
|
||||||
functionName = frame.getFunctionName()
|
functionName = frame.getFunctionName()
|
||||||
isConstructor = frame.isConstructor()
|
isConstructor = frame.isConstructor()
|
||||||
@@ -829,52 +914,46 @@ Modified to handle sourceMap</p>
|
|||||||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> functionName
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> functionName
|
||||||
<span class="hljs-string">"<span class="hljs-subst">#{functionName}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
|
<span class="hljs-string">"<span class="hljs-subst">#{functionName}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
fileLocation</pre></div></div>
|
fileLocation
|
||||||
|
<span class="hljs-function">
|
||||||
|
<span class="hljs-title">getSourceMap</span> = <span class="hljs-params">(filename)</span> -></span>
|
||||||
|
<span class="hljs-keyword">if</span> sourceMaps[filename]?
|
||||||
|
sourceMaps[filename]</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-33">
|
<li id="section-38">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-33">¶</a>
|
<a class="pilcrow" href="#section-38">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Map of filenames -> sourceMap object.</p>
|
<p>CoffeeScript compiled in a browser may get compiled with <code>options.filename</code>
|
||||||
|
of <code><anonymous></code>, but the browser may request the stack trace with the
|
||||||
|
filename of the script file.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre>sourceMaps = {}</pre></div></div>
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> sourceMaps[<span class="hljs-string">'<anonymous>'</span>]?
|
||||||
|
sourceMaps[<span class="hljs-string">'<anonymous>'</span>]
|
||||||
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> sources[filename]?
|
||||||
|
answer = compile sources[filename],
|
||||||
|
filename: filename
|
||||||
|
sourceMap: <span class="hljs-literal">yes</span>
|
||||||
|
literate: helpers.isLiterate filename
|
||||||
|
answer.sourceMap
|
||||||
|
<span class="hljs-keyword">else</span>
|
||||||
|
<span class="hljs-literal">null</span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-34">
|
<li id="section-39">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-34">¶</a>
|
<a class="pilcrow" href="#section-39">¶</a>
|
||||||
</div>
|
|
||||||
<p>Generates the source map for a coffee file and stores it in the local cache variable.</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">getSourceMap</span> = <span class="hljs-params">(filename)</span> -></span>
|
|
||||||
<span class="hljs-keyword">return</span> sourceMaps[filename] <span class="hljs-keyword">if</span> sourceMaps[filename]
|
|
||||||
<span class="hljs-keyword">for</span> ext <span class="hljs-keyword">in</span> exports.FILE_EXTENSIONS
|
|
||||||
<span class="hljs-keyword">if</span> helpers.ends filename, ext
|
|
||||||
answer = exports._compileFile filename, <span class="hljs-literal">true</span>
|
|
||||||
<span class="hljs-keyword">return</span> sourceMaps[filename] = answer.sourceMap
|
|
||||||
<span class="hljs-keyword">return</span> <span class="hljs-literal">null</span></pre></div></div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
<li id="section-35">
|
|
||||||
<div class="annotation">
|
|
||||||
|
|
||||||
<div class="pilwrap ">
|
|
||||||
<a class="pilcrow" href="#section-35">¶</a>
|
|
||||||
</div>
|
</div>
|
||||||
<p>Based on <a href="http://goo.gl/ZTx1p">michaelficarra/CoffeeScriptRedux</a>
|
<p>Based on <a href="http://goo.gl/ZTx1p">michaelficarra/CoffeeScriptRedux</a>
|
||||||
NodeJS / V8 have no support for transforming positions in stack traces using
|
NodeJS / V8 have no support for transforming positions in stack traces using
|
||||||
@@ -886,12 +965,12 @@ positions.</p>
|
|||||||
<div class="content"><div class='highlight'><pre>Error.prepareStackTrace = <span class="hljs-function"><span class="hljs-params">(err, stack)</span> -></span>
|
<div class="content"><div class='highlight'><pre>Error.prepareStackTrace = <span class="hljs-function"><span class="hljs-params">(err, stack)</span> -></span>
|
||||||
<span class="hljs-function"> <span class="hljs-title">getSourceMapping</span> = <span class="hljs-params">(filename, line, column)</span> -></span>
|
<span class="hljs-function"> <span class="hljs-title">getSourceMapping</span> = <span class="hljs-params">(filename, line, column)</span> -></span>
|
||||||
sourceMap = getSourceMap filename
|
sourceMap = getSourceMap filename
|
||||||
answer = sourceMap.sourceLocation [line - <span class="hljs-number">1</span>, column - <span class="hljs-number">1</span>] <span class="hljs-keyword">if</span> sourceMap
|
answer = sourceMap.sourceLocation [line - <span class="hljs-number">1</span>, column - <span class="hljs-number">1</span>] <span class="hljs-keyword">if</span> sourceMap?
|
||||||
<span class="hljs-keyword">if</span> answer <span class="hljs-keyword">then</span> [answer[<span class="hljs-number">0</span>] + <span class="hljs-number">1</span>, answer[<span class="hljs-number">1</span>] + <span class="hljs-number">1</span>] <span class="hljs-keyword">else</span> <span class="hljs-literal">null</span>
|
<span class="hljs-keyword">if</span> answer? <span class="hljs-keyword">then</span> [answer[<span class="hljs-number">0</span>] + <span class="hljs-number">1</span>, answer[<span class="hljs-number">1</span>] + <span class="hljs-number">1</span>] <span class="hljs-keyword">else</span> <span class="hljs-literal">null</span>
|
||||||
|
|
||||||
frames = <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> stack
|
frames = <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> stack
|
||||||
<span class="hljs-keyword">break</span> <span class="hljs-keyword">if</span> frame.getFunction() <span class="hljs-keyword">is</span> exports.run
|
<span class="hljs-keyword">break</span> <span class="hljs-keyword">if</span> frame.getFunction() <span class="hljs-keyword">is</span> exports.run
|
||||||
<span class="hljs-string">" at <span class="hljs-subst">#{formatSourcePosition frame, getSourceMapping}</span>"</span>
|
<span class="hljs-string">" at <span class="hljs-subst">#{formatSourcePosition frame, getSourceMapping}</span>"</span>
|
||||||
|
|
||||||
<span class="hljs-string">"<span class="hljs-subst">#{err.toString()}</span>\n<span class="hljs-subst">#{frames.join <span class="hljs-string">'\n'</span>}</span>\n"</span></pre></div></div>
|
<span class="hljs-string">"<span class="hljs-subst">#{err.toString()}</span>\n<span class="hljs-subst">#{frames.join <span class="hljs-string">'\n'</span>}</span>\n"</span></pre></div></div>
|
||||||
|
|
||||||
|
|||||||
@@ -115,17 +115,17 @@
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-1">¶</a>
|
<a class="pilcrow" href="#section-1">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The CoffeeScript parser is generated by <a href="http://github.com/zaach/jison">Jison</a>
|
<p>The CoffeeScript parser is generated by <a href="https://github.com/zaach/jison">Jison</a>
|
||||||
from this grammar file. Jison is a bottom-up parser generator, similar in
|
from this grammar file. Jison is a bottom-up parser generator, similar in
|
||||||
style to <a href="http://www.gnu.org/software/bison">Bison</a>, implemented in JavaScript.
|
style to <a href="http://www.gnu.org/software/bison">Bison</a>, implemented in JavaScript.
|
||||||
It can recognize <a href="http://en.wikipedia.org/wiki/LR_grammar">LALR(1), LR(0), SLR(1), and LR(1)</a>
|
It can recognize <a href="https://en.wikipedia.org/wiki/LR_grammar">LALR(1), LR(0), SLR(1), and LR(1)</a>
|
||||||
type grammars. To create the Jison parser, we list the pattern to match
|
type grammars. To create the Jison parser, we list the pattern to match
|
||||||
on the left-hand side, and the action to take (usually the creation of syntax
|
on the left-hand side, and the action to take (usually the creation of syntax
|
||||||
tree nodes) on the right. As the parser runs, it
|
tree nodes) on the right. As the parser runs, it
|
||||||
shifts tokens from our token stream, from left to right, and
|
shifts tokens from our token stream, from left to right, and
|
||||||
<a href="http://en.wikipedia.org/wiki/Bottom-up_parsing">attempts to match</a>
|
<a href="https://en.wikipedia.org/wiki/Bottom-up_parsing">attempts to match</a>
|
||||||
the token sequence against the rules below. When a match can be made, it
|
the token sequence against the rules below. When a match can be made, it
|
||||||
reduces into the <a href="http://en.wikipedia.org/wiki/Terminal_and_nonterminal_symbols">nonterminal</a>
|
reduces into the <a href="https://en.wikipedia.org/wiki/Terminal_and_nonterminal_symbols">nonterminal</a>
|
||||||
(the enclosing name at the top), and we proceed from there.</p>
|
(the enclosing name at the top), and we proceed from there.</p>
|
||||||
<p>If you run the <code>cake build:parser</code> command, Jison constructs a parse table
|
<p>If you run the <code>cake build:parser</code> command, Jison constructs a parse table
|
||||||
from our rules and saves it into <code>lib/parser.js</code>.</p>
|
from our rules and saves it into <code>lib/parser.js</code>.</p>
|
||||||
@@ -199,7 +199,7 @@ wrapper and just returning the value directly.</p>
|
|||||||
<a class="pilcrow" href="#section-6">¶</a>
|
<a class="pilcrow" href="#section-6">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Our handy DSL for Jison grammar generation, thanks to
|
<p>Our handy DSL for Jison grammar generation, thanks to
|
||||||
<a href="http://github.com/creationix">Tim Caswell</a>. For every rule in the grammar,
|
<a href="https://github.com/creationix">Tim Caswell</a>. For every rule in the grammar,
|
||||||
we pass the pattern-defining string, the action to run, and extra options,
|
we pass the pattern-defining string, the action to run, and extra options,
|
||||||
optionally. If no action is specified, we simply pass the value of the
|
optionally. If no action is specified, we simply pass the value of the
|
||||||
previous nonterminal.</p>
|
previous nonterminal.</p>
|
||||||
@@ -575,6 +575,7 @@ the ordinary <strong>Assign</strong> is that these allow numbers and strings as
|
|||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> Return: [
|
<div class="content"><div class='highlight'><pre> Return: [
|
||||||
o <span class="hljs-string">'RETURN Expression'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> Return $<span class="hljs-number">2</span>
|
o <span class="hljs-string">'RETURN Expression'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> Return $<span class="hljs-number">2</span>
|
||||||
|
o <span class="hljs-string">'RETURN INDENT Object OUTDENT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> Return <span class="hljs-keyword">new</span> Value $<span class="hljs-number">3</span>
|
||||||
o <span class="hljs-string">'RETURN'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> Return
|
o <span class="hljs-string">'RETURN'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> Return
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -928,6 +929,8 @@ and optional references to the superclass.</p>
|
|||||||
ImportSpecifier: [
|
ImportSpecifier: [
|
||||||
o <span class="hljs-string">'Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier $<span class="hljs-number">1</span>
|
o <span class="hljs-string">'Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier $<span class="hljs-number">1</span>
|
||||||
o <span class="hljs-string">'Identifier AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier $<span class="hljs-number">1</span>, $<span class="hljs-number">3</span>
|
o <span class="hljs-string">'Identifier AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier $<span class="hljs-number">1</span>, $<span class="hljs-number">3</span>
|
||||||
|
o <span class="hljs-string">'DEFAULT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier <span class="hljs-keyword">new</span> Literal $<span class="hljs-number">1</span>
|
||||||
|
o <span class="hljs-string">'DEFAULT AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ImportSpecifier <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">1</span>), $<span class="hljs-number">3</span>
|
||||||
]
|
]
|
||||||
|
|
||||||
ImportDefaultSpecifier: [
|
ImportDefaultSpecifier: [
|
||||||
@@ -949,6 +952,7 @@ and optional references to the superclass.</p>
|
|||||||
o <span class="hljs-string">'EXPORT Identifier = INDENT Expression OUTDENT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportNamedDeclaration <span class="hljs-keyword">new</span> Assign $<span class="hljs-number">2</span>, $<span class="hljs-number">5</span>, <span class="hljs-literal">null</span>,
|
o <span class="hljs-string">'EXPORT Identifier = INDENT Expression OUTDENT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportNamedDeclaration <span class="hljs-keyword">new</span> Assign $<span class="hljs-number">2</span>, $<span class="hljs-number">5</span>, <span class="hljs-literal">null</span>,
|
||||||
moduleDeclaration: <span class="hljs-string">'export'</span>
|
moduleDeclaration: <span class="hljs-string">'export'</span>
|
||||||
o <span class="hljs-string">'EXPORT DEFAULT Expression'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportDefaultDeclaration $<span class="hljs-number">3</span>
|
o <span class="hljs-string">'EXPORT DEFAULT Expression'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportDefaultDeclaration $<span class="hljs-number">3</span>
|
||||||
|
o <span class="hljs-string">'EXPORT DEFAULT INDENT Object OUTDENT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportDefaultDeclaration <span class="hljs-keyword">new</span> Value $<span class="hljs-number">4</span>
|
||||||
o <span class="hljs-string">'EXPORT EXPORT_ALL FROM String'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportAllDeclaration <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">2</span>), $<span class="hljs-number">4</span>
|
o <span class="hljs-string">'EXPORT EXPORT_ALL FROM String'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportAllDeclaration <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">2</span>), $<span class="hljs-number">4</span>
|
||||||
o <span class="hljs-string">'EXPORT { ExportSpecifierList OptComma } FROM String'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportNamedDeclaration <span class="hljs-keyword">new</span> ExportSpecifierList($<span class="hljs-number">3</span>), $<span class="hljs-number">7</span>
|
o <span class="hljs-string">'EXPORT { ExportSpecifierList OptComma } FROM String'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportNamedDeclaration <span class="hljs-keyword">new</span> ExportSpecifierList($<span class="hljs-number">3</span>), $<span class="hljs-number">7</span>
|
||||||
]
|
]
|
||||||
@@ -965,6 +969,8 @@ and optional references to the superclass.</p>
|
|||||||
o <span class="hljs-string">'Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>
|
o <span class="hljs-string">'Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>
|
||||||
o <span class="hljs-string">'Identifier AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>, $<span class="hljs-number">3</span>
|
o <span class="hljs-string">'Identifier AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>, $<span class="hljs-number">3</span>
|
||||||
o <span class="hljs-string">'Identifier AS DEFAULT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>, <span class="hljs-keyword">new</span> Literal $<span class="hljs-number">3</span>
|
o <span class="hljs-string">'Identifier AS DEFAULT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier $<span class="hljs-number">1</span>, <span class="hljs-keyword">new</span> Literal $<span class="hljs-number">3</span>
|
||||||
|
o <span class="hljs-string">'DEFAULT'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier <span class="hljs-keyword">new</span> Literal $<span class="hljs-number">1</span>
|
||||||
|
o <span class="hljs-string">'DEFAULT AS Identifier'</span>, <span class="hljs-function">-></span> <span class="hljs-keyword">new</span> ExportSpecifier <span class="hljs-keyword">new</span> Literal($<span class="hljs-number">1</span>), $<span class="hljs-number">3</span>
|
||||||
]</pre></div></div>
|
]</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ a token is produced, we consume the match, and start again. Tokens are in the
|
|||||||
form:</p>
|
form:</p>
|
||||||
<pre><code>[tag, value, locationData]
|
<pre><code>[tag, value, locationData]
|
||||||
</code></pre><p>where locationData is {first_line, first_column, last_line, last_column}, which is a
|
</code></pre><p>where locationData is {first_line, first_column, last_line, last_column}, which is a
|
||||||
format that can be fed directly into <a href="http://github.com/zaach/jison">Jison</a>. These
|
format that can be fed directly into <a href="https://github.com/zaach/jison">Jison</a>. These
|
||||||
are read by jison in the <code>parser.lexer</code> function defined in coffee-script.coffee.</p>
|
are read by jison in the <code>parser.lexer</code> function defined in coffee-script.coffee.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -219,6 +219,7 @@ it has consumed.</p>
|
|||||||
@seenFor = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize FORIN, FOROF and FORFROM tokens.</span>
|
@seenFor = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize FORIN, FOROF and FORFROM tokens.</span>
|
||||||
@seenImport = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize IMPORT FROM? AS? tokens.</span>
|
@seenImport = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize IMPORT FROM? AS? tokens.</span>
|
||||||
@seenExport = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize EXPORT FROM? AS? tokens.</span>
|
@seenExport = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to recognize EXPORT FROM? AS? tokens.</span>
|
||||||
|
@importSpecifierList = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to identify when in an IMPORT {...} FROM? ...</span>
|
||||||
@exportSpecifierList = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to identify when in an EXPORT {...} FROM? ...</span>
|
@exportSpecifierList = <span class="hljs-literal">no</span> <span class="hljs-comment"># Used to identify when in an EXPORT {...} FROM? ...</span>
|
||||||
|
|
||||||
@chunkLine =
|
@chunkLine =
|
||||||
@@ -377,13 +378,13 @@ though <code>is</code> means <code>===</code> otherwise.</p>
|
|||||||
@tokens[@tokens.length - <span class="hljs-number">1</span>][<span class="hljs-number">0</span>] = <span class="hljs-string">'IMPORT_ALL'</span>
|
@tokens[@tokens.length - <span class="hljs-number">1</span>][<span class="hljs-number">0</span>] = <span class="hljs-string">'IMPORT_ALL'</span>
|
||||||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> @value() <span class="hljs-keyword">in</span> COFFEE_KEYWORDS
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> @value() <span class="hljs-keyword">in</span> COFFEE_KEYWORDS
|
||||||
@tokens[@tokens.length - <span class="hljs-number">1</span>][<span class="hljs-number">0</span>] = <span class="hljs-string">'IDENTIFIER'</span>
|
@tokens[@tokens.length - <span class="hljs-number">1</span>][<span class="hljs-number">0</span>] = <span class="hljs-string">'IDENTIFIER'</span>
|
||||||
<span class="hljs-keyword">if</span> @tag() <span class="hljs-keyword">in</span> [<span class="hljs-string">'IMPORT_ALL'</span>, <span class="hljs-string">'IDENTIFIER'</span>]
|
<span class="hljs-keyword">if</span> @tag() <span class="hljs-keyword">in</span> [<span class="hljs-string">'DEFAULT'</span>, <span class="hljs-string">'IMPORT_ALL'</span>, <span class="hljs-string">'IDENTIFIER'</span>]
|
||||||
@token <span class="hljs-string">'AS'</span>, id
|
@token <span class="hljs-string">'AS'</span>, id
|
||||||
<span class="hljs-keyword">return</span> id.length
|
<span class="hljs-keyword">return</span> id.length
|
||||||
<span class="hljs-keyword">if</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'as'</span> <span class="hljs-keyword">and</span> @seenExport <span class="hljs-keyword">and</span> @tag() <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span>
|
<span class="hljs-keyword">if</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'as'</span> <span class="hljs-keyword">and</span> @seenExport <span class="hljs-keyword">and</span> @tag() <span class="hljs-keyword">in</span> [<span class="hljs-string">'IDENTIFIER'</span>, <span class="hljs-string">'DEFAULT'</span>]
|
||||||
@token <span class="hljs-string">'AS'</span>, id
|
@token <span class="hljs-string">'AS'</span>, id
|
||||||
<span class="hljs-keyword">return</span> id.length
|
<span class="hljs-keyword">return</span> id.length
|
||||||
<span class="hljs-keyword">if</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'default'</span> <span class="hljs-keyword">and</span> @seenExport
|
<span class="hljs-keyword">if</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'default'</span> <span class="hljs-keyword">and</span> @seenExport <span class="hljs-keyword">and</span> @tag() <span class="hljs-keyword">in</span> [<span class="hljs-string">'EXPORT'</span>, <span class="hljs-string">'AS'</span>]
|
||||||
@token <span class="hljs-string">'DEFAULT'</span>, id
|
@token <span class="hljs-string">'DEFAULT'</span>, id
|
||||||
<span class="hljs-keyword">return</span> id.length
|
<span class="hljs-keyword">return</span> id.length
|
||||||
|
|
||||||
@@ -421,7 +422,8 @@ though <code>is</code> means <code>===</code> otherwise.</p>
|
|||||||
<span class="hljs-keyword">if</span> @value() <span class="hljs-keyword">is</span> <span class="hljs-string">'!'</span>
|
<span class="hljs-keyword">if</span> @value() <span class="hljs-keyword">is</span> <span class="hljs-string">'!'</span>
|
||||||
poppedToken = @tokens.pop()
|
poppedToken = @tokens.pop()
|
||||||
id = <span class="hljs-string">'!'</span> + id
|
id = <span class="hljs-string">'!'</span> + id
|
||||||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> tag <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span> <span class="hljs-keyword">and</span> @seenFor <span class="hljs-keyword">and</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'from'</span>
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> tag <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span> <span class="hljs-keyword">and</span> @seenFor <span class="hljs-keyword">and</span> id <span class="hljs-keyword">is</span> <span class="hljs-string">'from'</span> <span class="hljs-keyword">and</span>
|
||||||
|
isForFrom(prev)
|
||||||
tag = <span class="hljs-string">'FORFROM'</span>
|
tag = <span class="hljs-string">'FORFROM'</span>
|
||||||
@seenFor = <span class="hljs-literal">no</span>
|
@seenFor = <span class="hljs-literal">no</span>
|
||||||
|
|
||||||
@@ -564,14 +566,14 @@ properly tag the <code>from</code>.</p>
|
|||||||
indent = attempt <span class="hljs-keyword">if</span> indent <span class="hljs-keyword">is</span> <span class="hljs-literal">null</span> <span class="hljs-keyword">or</span> <span class="hljs-number">0</span> < attempt.length < indent.length
|
indent = attempt <span class="hljs-keyword">if</span> indent <span class="hljs-keyword">is</span> <span class="hljs-literal">null</span> <span class="hljs-keyword">or</span> <span class="hljs-number">0</span> < attempt.length < indent.length
|
||||||
indentRegex = <span class="hljs-regexp">/// \n<span class="hljs-subst">#{indent}</span> ///</span>g <span class="hljs-keyword">if</span> indent
|
indentRegex = <span class="hljs-regexp">/// \n<span class="hljs-subst">#{indent}</span> ///</span>g <span class="hljs-keyword">if</span> indent
|
||||||
@mergeInterpolationTokens tokens, {delimiter}, <span class="hljs-function"><span class="hljs-params">(value, i)</span> =></span>
|
@mergeInterpolationTokens tokens, {delimiter}, <span class="hljs-function"><span class="hljs-params">(value, i)</span> =></span>
|
||||||
value = @formatString value
|
value = @formatString value, delimiter: quote
|
||||||
value = value.replace indentRegex, <span class="hljs-string">'\n'</span> <span class="hljs-keyword">if</span> indentRegex
|
value = value.replace indentRegex, <span class="hljs-string">'\n'</span> <span class="hljs-keyword">if</span> indentRegex
|
||||||
value = value.replace LEADING_BLANK_LINE, <span class="hljs-string">''</span> <span class="hljs-keyword">if</span> i <span class="hljs-keyword">is</span> <span class="hljs-number">0</span>
|
value = value.replace LEADING_BLANK_LINE, <span class="hljs-string">''</span> <span class="hljs-keyword">if</span> i <span class="hljs-keyword">is</span> <span class="hljs-number">0</span>
|
||||||
value = value.replace TRAILING_BLANK_LINE, <span class="hljs-string">''</span> <span class="hljs-keyword">if</span> i <span class="hljs-keyword">is</span> $
|
value = value.replace TRAILING_BLANK_LINE, <span class="hljs-string">''</span> <span class="hljs-keyword">if</span> i <span class="hljs-keyword">is</span> $
|
||||||
value
|
value
|
||||||
<span class="hljs-keyword">else</span>
|
<span class="hljs-keyword">else</span>
|
||||||
@mergeInterpolationTokens tokens, {delimiter}, <span class="hljs-function"><span class="hljs-params">(value, i)</span> =></span>
|
@mergeInterpolationTokens tokens, {delimiter}, <span class="hljs-function"><span class="hljs-params">(value, i)</span> =></span>
|
||||||
value = @formatString value
|
value = @formatString value, delimiter: quote
|
||||||
value = value.replace SIMPLE_STRING_OMIT, <span class="hljs-function"><span class="hljs-params">(match, offset)</span> -></span>
|
value = value.replace SIMPLE_STRING_OMIT, <span class="hljs-function"><span class="hljs-params">(match, offset)</span> -></span>
|
||||||
<span class="hljs-keyword">if</span> (i <span class="hljs-keyword">is</span> <span class="hljs-number">0</span> <span class="hljs-keyword">and</span> offset <span class="hljs-keyword">is</span> <span class="hljs-number">0</span>) <span class="hljs-keyword">or</span>
|
<span class="hljs-keyword">if</span> (i <span class="hljs-keyword">is</span> <span class="hljs-number">0</span> <span class="hljs-keyword">and</span> offset <span class="hljs-keyword">is</span> <span class="hljs-number">0</span>) <span class="hljs-keyword">or</span>
|
||||||
(i <span class="hljs-keyword">is</span> $ <span class="hljs-keyword">and</span> offset + match.length <span class="hljs-keyword">is</span> value.length)
|
(i <span class="hljs-keyword">is</span> $ <span class="hljs-keyword">and</span> offset + match.length <span class="hljs-keyword">is</span> value.length)
|
||||||
@@ -683,6 +685,7 @@ borrow some basic heuristics from JavaScript and Ruby.</p>
|
|||||||
<span class="hljs-keyword">when</span> match = REGEX.exec @chunk
|
<span class="hljs-keyword">when</span> match = REGEX.exec @chunk
|
||||||
[regex, body, closed] = match
|
[regex, body, closed] = match
|
||||||
@validateEscapes body, isRegex: <span class="hljs-literal">yes</span>, offsetInChunk: <span class="hljs-number">1</span>
|
@validateEscapes body, isRegex: <span class="hljs-literal">yes</span>, offsetInChunk: <span class="hljs-number">1</span>
|
||||||
|
body = @formatRegex body, delimiter: <span class="hljs-string">'/'</span>
|
||||||
index = regex.length
|
index = regex.length
|
||||||
[..., prev] = @tokens
|
[..., prev] = @tokens
|
||||||
<span class="hljs-keyword">if</span> prev
|
<span class="hljs-keyword">if</span> prev
|
||||||
@@ -709,10 +712,10 @@ borrow some basic heuristics from JavaScript and Ruby.</p>
|
|||||||
@token <span class="hljs-string">'CALL_START'</span>, <span class="hljs-string">'('</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>
|
@token <span class="hljs-string">'CALL_START'</span>, <span class="hljs-string">'('</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>
|
||||||
@mergeInterpolationTokens tokens, {delimiter: <span class="hljs-string">'"'</span>, double: <span class="hljs-literal">yes</span>}, @formatHeregex
|
@mergeInterpolationTokens tokens, {delimiter: <span class="hljs-string">'"'</span>, double: <span class="hljs-literal">yes</span>}, @formatHeregex
|
||||||
<span class="hljs-keyword">if</span> flags
|
<span class="hljs-keyword">if</span> flags
|
||||||
@token <span class="hljs-string">','</span>, <span class="hljs-string">','</span>, index, <span class="hljs-number">0</span>
|
@token <span class="hljs-string">','</span>, <span class="hljs-string">','</span>, index - <span class="hljs-number">1</span>, <span class="hljs-number">0</span>
|
||||||
@token <span class="hljs-string">'STRING'</span>, <span class="hljs-string">'"'</span> + flags + <span class="hljs-string">'"'</span>, index, flags.length
|
@token <span class="hljs-string">'STRING'</span>, <span class="hljs-string">'"'</span> + flags + <span class="hljs-string">'"'</span>, index - <span class="hljs-number">1</span>, flags.length
|
||||||
@token <span class="hljs-string">')'</span>, <span class="hljs-string">')'</span>, end, <span class="hljs-number">0</span>
|
@token <span class="hljs-string">')'</span>, <span class="hljs-string">')'</span>, end - <span class="hljs-number">1</span>, <span class="hljs-number">0</span>
|
||||||
@token <span class="hljs-string">'REGEX_END'</span>, <span class="hljs-string">')'</span>, end, <span class="hljs-number">0</span>
|
@token <span class="hljs-string">'REGEX_END'</span>, <span class="hljs-string">')'</span>, end - <span class="hljs-number">1</span>, <span class="hljs-number">0</span>
|
||||||
|
|
||||||
end</pre></div></div>
|
end</pre></div></div>
|
||||||
|
|
||||||
@@ -741,6 +744,8 @@ can close multiple indents, so we need to know how far in we happen to be.</p>
|
|||||||
indent = match[<span class="hljs-number">0</span>]
|
indent = match[<span class="hljs-number">0</span>]
|
||||||
|
|
||||||
@seenFor = <span class="hljs-literal">no</span>
|
@seenFor = <span class="hljs-literal">no</span>
|
||||||
|
@seenImport = <span class="hljs-literal">no</span> <span class="hljs-keyword">unless</span> @importSpecifierList
|
||||||
|
@seenExport = <span class="hljs-literal">no</span> <span class="hljs-keyword">unless</span> @exportSpecifierList
|
||||||
|
|
||||||
size = indent.length - <span class="hljs-number">1</span> - indent.lastIndexOf <span class="hljs-string">'\n'</span>
|
size = indent.length - <span class="hljs-number">1</span> - indent.lastIndexOf <span class="hljs-string">'\n'</span>
|
||||||
noNewlines = @unfinished()
|
noNewlines = @unfinished()
|
||||||
@@ -922,7 +927,11 @@ parentheses that indicate a method call from regular parentheses, and so on.</p>
|
|||||||
@error message, origin[<span class="hljs-number">2</span>] <span class="hljs-keyword">if</span> message
|
@error message, origin[<span class="hljs-number">2</span>] <span class="hljs-keyword">if</span> message
|
||||||
<span class="hljs-keyword">return</span> value.length <span class="hljs-keyword">if</span> skipToken
|
<span class="hljs-keyword">return</span> value.length <span class="hljs-keyword">if</span> skipToken
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'{'</span> <span class="hljs-keyword">and</span> prev?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'EXPORT'</span>
|
<span class="hljs-keyword">if</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'{'</span> <span class="hljs-keyword">and</span> @seenImport
|
||||||
|
@importSpecifierList = <span class="hljs-literal">yes</span>
|
||||||
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> @importSpecifierList <span class="hljs-keyword">and</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'}'</span>
|
||||||
|
@importSpecifierList = <span class="hljs-literal">no</span>
|
||||||
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'{'</span> <span class="hljs-keyword">and</span> prev?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'EXPORT'</span>
|
||||||
@exportSpecifierList = <span class="hljs-literal">yes</span>
|
@exportSpecifierList = <span class="hljs-literal">yes</span>
|
||||||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> @exportSpecifierList <span class="hljs-keyword">and</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'}'</span>
|
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> @exportSpecifierList <span class="hljs-keyword">and</span> value <span class="hljs-keyword">is</span> <span class="hljs-string">'}'</span>
|
||||||
@exportSpecifierList = <span class="hljs-literal">no</span>
|
@exportSpecifierList = <span class="hljs-literal">no</span>
|
||||||
@@ -1254,7 +1263,7 @@ sane location data.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> converted = fn token[<span class="hljs-number">1</span>], i</pre></div></div>
|
<div class="content"><div class='highlight'><pre> converted = fn.call <span class="hljs-keyword">this</span>, token[<span class="hljs-number">1</span>], i</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -1546,15 +1555,22 @@ not specified, the length of <code>value</code> will be used.</p>
|
|||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> unfinished: <span class="hljs-function">-></span>
|
<div class="content"><div class='highlight'><pre> unfinished: <span class="hljs-function">-></span>
|
||||||
LINE_CONTINUER.test(@chunk) <span class="hljs-keyword">or</span>
|
LINE_CONTINUER.test(@chunk) <span class="hljs-keyword">or</span>
|
||||||
@tag() <span class="hljs-keyword">in</span> [<span class="hljs-string">'\\'</span>, <span class="hljs-string">'.'</span>, <span class="hljs-string">'?.'</span>, <span class="hljs-string">'?::'</span>, <span class="hljs-string">'UNARY'</span>, <span class="hljs-string">'MATH'</span>, <span class="hljs-string">'UNARY_MATH'</span>, <span class="hljs-string">'+'</span>, <span class="hljs-string">'-'</span>,
|
@tag() <span class="hljs-keyword">in</span> UNFINISHED
|
||||||
<span class="hljs-string">'**'</span>, <span class="hljs-string">'SHIFT'</span>, <span class="hljs-string">'RELATION'</span>, <span class="hljs-string">'COMPARE'</span>, <span class="hljs-string">'&'</span>, <span class="hljs-string">'^'</span>, <span class="hljs-string">'|'</span>, <span class="hljs-string">'&&'</span>, <span class="hljs-string">'||'</span>,
|
|
||||||
<span class="hljs-string">'BIN?'</span>, <span class="hljs-string">'THROW'</span>, <span class="hljs-string">'EXTENDS'</span>]
|
|
||||||
|
|
||||||
formatString: <span class="hljs-function"><span class="hljs-params">(str)</span> -></span>
|
formatString: <span class="hljs-function"><span class="hljs-params">(str, options)</span> -></span>
|
||||||
str.replace STRING_OMIT, <span class="hljs-string">'$1'</span>
|
@replaceUnicodeCodePointEscapes str.replace(STRING_OMIT, <span class="hljs-string">'$1'</span>), options
|
||||||
|
|
||||||
formatHeregex: <span class="hljs-function"><span class="hljs-params">(str)</span> -></span>
|
formatHeregex: <span class="hljs-function"><span class="hljs-params">(str)</span> -></span>
|
||||||
str.replace HEREGEX_OMIT, <span class="hljs-string">'$1$2'</span></pre></div></div>
|
@formatRegex str.replace(HEREGEX_OMIT, <span class="hljs-string">'$1$2'</span>), delimiter: <span class="hljs-string">'///'</span>
|
||||||
|
|
||||||
|
formatRegex: <span class="hljs-function"><span class="hljs-params">(str, options)</span> -></span>
|
||||||
|
@replaceUnicodeCodePointEscapes str, options
|
||||||
|
|
||||||
|
unicodeCodePointToUnicodeEscapes: <span class="hljs-function"><span class="hljs-params">(codePoint)</span> -></span>
|
||||||
|
<span class="hljs-function"> <span class="hljs-title">toUnicodeEscape</span> = <span class="hljs-params">(val)</span> -></span>
|
||||||
|
str = val.toString <span class="hljs-number">16</span>
|
||||||
|
<span class="hljs-string">"\\u<span class="hljs-subst">#{repeat <span class="hljs-string">'0'</span>, <span class="hljs-number">4</span> - str.length}</span><span class="hljs-subst">#{str}</span>"</span>
|
||||||
|
<span class="hljs-keyword">return</span> toUnicodeEscape(codePoint) <span class="hljs-keyword">if</span> codePoint < <span class="hljs-number">0x10000</span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -1565,24 +1581,13 @@ not specified, the length of <code>value</code> will be used.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-59">¶</a>
|
<a class="pilcrow" href="#section-59">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Validates escapes in strings and regexes.</p>
|
<p>surrogate pair</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> validateEscapes: <span class="hljs-function"><span class="hljs-params">(str, options = {})</span> -></span>
|
<div class="content"><div class='highlight'><pre> high = Math.floor((codePoint - <span class="hljs-number">0x10000</span>) / <span class="hljs-number">0x400</span>) + <span class="hljs-number">0xD800</span>
|
||||||
match = INVALID_ESCAPE.exec str
|
low = (codePoint - <span class="hljs-number">0x10000</span>) % <span class="hljs-number">0x400</span> + <span class="hljs-number">0xDC00</span>
|
||||||
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> match
|
<span class="hljs-string">"<span class="hljs-subst">#{toUnicodeEscape(high)}</span><span class="hljs-subst">#{toUnicodeEscape(low)}</span>"</span></pre></div></div>
|
||||||
[[], before, octal, hex, unicode] = match
|
|
||||||
<span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> options.isRegex <span class="hljs-keyword">and</span> octal <span class="hljs-keyword">and</span> octal.charAt(<span class="hljs-number">0</span>) <span class="hljs-keyword">isnt</span> <span class="hljs-string">'0'</span>
|
|
||||||
message =
|
|
||||||
<span class="hljs-keyword">if</span> octal
|
|
||||||
<span class="hljs-string">"octal escape sequences are not allowed"</span>
|
|
||||||
<span class="hljs-keyword">else</span>
|
|
||||||
<span class="hljs-string">"invalid escape sequence"</span>
|
|
||||||
invalidEscape = <span class="hljs-string">"\\<span class="hljs-subst">#{octal <span class="hljs-keyword">or</span> hex <span class="hljs-keyword">or</span> unicode}</span>"</span>
|
|
||||||
@error <span class="hljs-string">"<span class="hljs-subst">#{message}</span> <span class="hljs-subst">#{invalidEscape}</span>"</span>,
|
|
||||||
offset: (options.offsetInChunk ? <span class="hljs-number">0</span>) + match.index + before.length
|
|
||||||
length: invalidEscape.length</pre></div></div>
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -1593,6 +1598,63 @@ not specified, the length of <code>value</code> will be used.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-60">¶</a>
|
<a class="pilcrow" href="#section-60">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
<p>Replace \u{…} with \uxxxx[\uxxxx] in strings and regexes</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> replaceUnicodeCodePointEscapes: <span class="hljs-function"><span class="hljs-params">(str, options)</span> -></span>
|
||||||
|
str.replace UNICODE_CODE_POINT_ESCAPE, <span class="hljs-function"><span class="hljs-params">(match, escapedBackslash, codePointHex, offset)</span> =></span>
|
||||||
|
<span class="hljs-keyword">return</span> escapedBackslash <span class="hljs-keyword">if</span> escapedBackslash
|
||||||
|
|
||||||
|
codePointDecimal = parseInt codePointHex, <span class="hljs-number">16</span>
|
||||||
|
<span class="hljs-keyword">if</span> codePointDecimal > <span class="hljs-number">0x10ffff</span>
|
||||||
|
@error <span class="hljs-string">"unicode code point escapes greater than \\u{10ffff} are not allowed"</span>,
|
||||||
|
offset: offset + options.delimiter.length
|
||||||
|
length: codePointHex.length + <span class="hljs-number">4</span>
|
||||||
|
|
||||||
|
@unicodeCodePointToUnicodeEscapes codePointDecimal</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-61">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-61">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Validates escapes in strings and regexes.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> validateEscapes: <span class="hljs-function"><span class="hljs-params">(str, options = {})</span> -></span>
|
||||||
|
invalidEscapeRegex =
|
||||||
|
<span class="hljs-keyword">if</span> options.isRegex
|
||||||
|
REGEX_INVALID_ESCAPE
|
||||||
|
<span class="hljs-keyword">else</span>
|
||||||
|
STRING_INVALID_ESCAPE
|
||||||
|
match = invalidEscapeRegex.exec str
|
||||||
|
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> match
|
||||||
|
[[], before, octal, hex, unicodeCodePoint, unicode] = match
|
||||||
|
message =
|
||||||
|
<span class="hljs-keyword">if</span> octal
|
||||||
|
<span class="hljs-string">"octal escape sequences are not allowed"</span>
|
||||||
|
<span class="hljs-keyword">else</span>
|
||||||
|
<span class="hljs-string">"invalid escape sequence"</span>
|
||||||
|
invalidEscape = <span class="hljs-string">"\\<span class="hljs-subst">#{octal <span class="hljs-keyword">or</span> hex <span class="hljs-keyword">or</span> unicodeCodePoint <span class="hljs-keyword">or</span> unicode}</span>"</span>
|
||||||
|
@error <span class="hljs-string">"<span class="hljs-subst">#{message}</span> <span class="hljs-subst">#{invalidEscape}</span>"</span>,
|
||||||
|
offset: (options.offsetInChunk ? <span class="hljs-number">0</span>) + match.index + before.length
|
||||||
|
length: invalidEscape.length</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-62">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-62">¶</a>
|
||||||
|
</div>
|
||||||
<p>Constructs a string or regex by escaping certain characters.</p>
|
<p>Constructs a string or regex by escaping certain characters.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1611,11 +1673,11 @@ not specified, the length of <code>value</code> will be used.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-61">
|
<li id="section-63">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-61">¶</a>
|
<a class="pilcrow" href="#section-63">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Ignore escaped backslashes.</p>
|
<p>Ignore escaped backslashes.</p>
|
||||||
|
|
||||||
@@ -1634,11 +1696,11 @@ not specified, the length of <code>value</code> will be used.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-62">
|
<li id="section-64">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-62">¶</a>
|
<a class="pilcrow" href="#section-64">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Throws an error at either a given offset from the current chunk or at the
|
<p>Throws an error at either a given offset from the current chunk or at the
|
||||||
location of a token (<code>token[2]</code>).</p>
|
location of a token (<code>token[2]</code>).</p>
|
||||||
@@ -1657,11 +1719,11 @@ location of a token (<code>token[2]</code>).</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-63">
|
<li id="section-65">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-63">¶</a>
|
<a class="pilcrow" href="#section-65">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<h2 id="helper-functions">Helper functions</h2>
|
<h2 id="helper-functions">Helper functions</h2>
|
||||||
|
|
||||||
@@ -1670,11 +1732,11 @@ location of a token (<code>token[2]</code>).</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-64">
|
<li id="section-66">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-64">¶</a>
|
<a class="pilcrow" href="#section-66">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1695,11 +1757,96 @@ exports.isUnassignable = isUnassignable</pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-65">
|
<li id="section-67">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-65">¶</a>
|
<a class="pilcrow" href="#section-67">¶</a>
|
||||||
|
</div>
|
||||||
|
<p><code>from</code> isn’t a CoffeeScript keyword, but it behaves like one in <code>import</code> and
|
||||||
|
<code>export</code> statements (handled above) and in the declaration line of a <code>for</code>
|
||||||
|
loop. Try to detect when <code>from</code> is a variable identifier and when it is this
|
||||||
|
“sometimes” keyword.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">isForFrom</span> = <span class="hljs-params">(prev)</span> -></span>
|
||||||
|
<span class="hljs-keyword">if</span> prev[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-68">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-68">¶</a>
|
||||||
|
</div>
|
||||||
|
<p><code>for i from from</code>, <code>for from from iterable</code></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> prev[<span class="hljs-number">1</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'from'</span>
|
||||||
|
prev[<span class="hljs-number">1</span>][<span class="hljs-number">0</span>] = <span class="hljs-string">'IDENTIFIER'</span>
|
||||||
|
<span class="hljs-literal">yes</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-69">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-69">¶</a>
|
||||||
|
</div>
|
||||||
|
<p><code>for i from iterable</code></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> <span class="hljs-literal">yes</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-70">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-70">¶</a>
|
||||||
|
</div>
|
||||||
|
<p><code>for from…</code></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> prev[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'FOR'</span>
|
||||||
|
<span class="hljs-literal">no</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-71">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-71">¶</a>
|
||||||
|
</div>
|
||||||
|
<p><code>for {from}…</code>, <code>for [from]…</code>, <code>for {a, from}…</code>, <code>for {a: from}…</code></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> prev[<span class="hljs-number">1</span>] <span class="hljs-keyword">in</span> [<span class="hljs-string">'{'</span>, <span class="hljs-string">'['</span>, <span class="hljs-string">','</span>, <span class="hljs-string">':'</span>]
|
||||||
|
<span class="hljs-literal">no</span>
|
||||||
|
<span class="hljs-keyword">else</span>
|
||||||
|
<span class="hljs-literal">yes</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-72">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-72">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<h2 id="constants">Constants</h2>
|
<h2 id="constants">Constants</h2>
|
||||||
|
|
||||||
@@ -1708,11 +1855,11 @@ exports.isUnassignable = isUnassignable</pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-66">
|
<li id="section-73">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-66">¶</a>
|
<a class="pilcrow" href="#section-73">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1720,11 +1867,11 @@ exports.isUnassignable = isUnassignable</pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-67">
|
<li id="section-74">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-67">¶</a>
|
<a class="pilcrow" href="#section-74">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Keywords that CoffeeScript shares in common with JavaScript.</p>
|
<p>Keywords that CoffeeScript shares in common with JavaScript.</p>
|
||||||
|
|
||||||
@@ -1742,11 +1889,11 @@ exports.isUnassignable = isUnassignable</pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-68">
|
<li id="section-75">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-68">¶</a>
|
<a class="pilcrow" href="#section-75">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>CoffeeScript-only keywords.</p>
|
<p>CoffeeScript-only keywords.</p>
|
||||||
|
|
||||||
@@ -1774,11 +1921,11 @@ COFFEE_KEYWORDS = COFFEE_KEYWORDS.concat COFFEE_ALIASES</pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-69">
|
<li id="section-76">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-69">¶</a>
|
<a class="pilcrow" href="#section-76">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The list of keywords that are reserved by JavaScript, but not used, or are
|
<p>The list of keywords that are reserved by JavaScript, but not used, or are
|
||||||
used by CoffeeScript internally. We throw an error when these are encountered,
|
used by CoffeeScript internally. We throw an error when these are encountered,
|
||||||
@@ -1797,11 +1944,11 @@ STRICT_PROSCRIBED = [<span class="hljs-string">'arguments'</span>, <span class="
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-70">
|
<li id="section-77">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-70">¶</a>
|
<a class="pilcrow" href="#section-77">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The superset of both JavaScript keywords and reserved words, none of which may
|
<p>The superset of both JavaScript keywords and reserved words, none of which may
|
||||||
be used as identifiers or properties.</p>
|
be used as identifiers or properties.</p>
|
||||||
@@ -1813,11 +1960,11 @@ be used as identifiers or properties.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-71">
|
<li id="section-78">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-71">¶</a>
|
<a class="pilcrow" href="#section-78">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The character code of the nasty Microsoft madness otherwise known as the BOM.</p>
|
<p>The character code of the nasty Microsoft madness otherwise known as the BOM.</p>
|
||||||
|
|
||||||
@@ -1828,11 +1975,11 @@ be used as identifiers or properties.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-72">
|
<li id="section-79">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-72">¶</a>
|
<a class="pilcrow" href="#section-79">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Token matching regexes.</p>
|
<p>Token matching regexes.</p>
|
||||||
|
|
||||||
@@ -1875,11 +2022,11 @@ HERE_JSTOKEN = <span class="hljs-regexp">///^ ``` ((?: [^`\\] | \\[\s\S] | `
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-73">
|
<li id="section-80">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-73">¶</a>
|
<a class="pilcrow" href="#section-80">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>String-matching-regexes.</p>
|
<p>String-matching-regexes.</p>
|
||||||
|
|
||||||
@@ -1902,11 +2049,11 @@ HEREDOC_INDENT = <span class="hljs-regexp">/\n+([^\n\S]*)(?=\S)/g</span></pr
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-74">
|
<li id="section-81">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-74">¶</a>
|
<a class="pilcrow" href="#section-81">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Regex-matching-regexes.</p>
|
<p>Regex-matching-regexes.</p>
|
||||||
|
|
||||||
@@ -1923,7 +2070,7 @@ HEREDOC_INDENT = <span class="hljs-regexp">/\n+([^\n\S]*)(?=\S)/g</span></pr
|
|||||||
///</span>
|
///</span>
|
||||||
|
|
||||||
REGEX_FLAGS = <span class="hljs-regexp">/^\w*/</span>
|
REGEX_FLAGS = <span class="hljs-regexp">/^\w*/</span>
|
||||||
VALID_FLAGS = <span class="hljs-regexp">/^(?!.*(.).*\1)[imgy]*$/</span>
|
VALID_FLAGS = <span class="hljs-regexp">/^(?!.*(.).*\1)[imguy]*$/</span>
|
||||||
|
|
||||||
HEREGEX = <span class="hljs-regexp">/// ^(?: [^\\/<span class="hljs-comment">#] | \\[\s\S] | /(?!//) | \#(?!\{) )* ///</span>
|
HEREGEX = <span class="hljs-regexp">/// ^(?: [^\\/<span class="hljs-comment">#] | \\[\s\S] | /(?!//) | \#(?!\{) )* ///</span>
|
||||||
|
|
||||||
@@ -1940,11 +2087,11 @@ POSSIBLY_DIVISION = <span class="hljs-regexp">/// ^ /=?\s ///</span></pre></di
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-75">
|
<li id="section-82">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-75">¶</a>
|
<a class="pilcrow" href="#section-82">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Other regexes.</p>
|
<p>Other regexes.</p>
|
||||||
|
|
||||||
@@ -1954,14 +2101,30 @@ POSSIBLY_DIVISION = <span class="hljs-regexp">/// ^ /=?\s ///</span></pre></di
|
|||||||
|
|
||||||
LINE_CONTINUER = <span class="hljs-regexp">/// ^ \s* (?: , | \??\.(?![.\d]) | :: ) ///</span>
|
LINE_CONTINUER = <span class="hljs-regexp">/// ^ \s* (?: , | \??\.(?![.\d]) | :: ) ///</span>
|
||||||
|
|
||||||
INVALID_ESCAPE = <span class="hljs-regexp">///
|
STRING_INVALID_ESCAPE = <span class="hljs-regexp">///
|
||||||
( (?:^|[^\\]) (?:\\\\)* ) <span class="hljs-comment"># make sure the escape isn’t escaped</span>
|
( (?:^|[^\\]) (?:\\\\)* ) <span class="hljs-comment"># make sure the escape isn’t escaped</span>
|
||||||
\\ (
|
\\ (
|
||||||
?: (0[0-7]|[1-7]) <span class="hljs-comment"># octal escape</span>
|
?: (0[0-7]|[1-7]) <span class="hljs-comment"># octal escape</span>
|
||||||
| (x(?![\da-fA-F]{2}).{0,2}) <span class="hljs-comment"># hex escape</span>
|
| (x(?![\da-fA-F]{2}).{0,2}) <span class="hljs-comment"># hex escape</span>
|
||||||
| (u(?![\da-fA-F]{4}).{0,4}) <span class="hljs-comment"># unicode escape</span>
|
| (u\{(?![\da-fA-F]{1,}\})[^}]*\}?) <span class="hljs-comment"># unicode code point escape</span>
|
||||||
|
| (u(?!\{|[\da-fA-F]{4}).{0,4}) <span class="hljs-comment"># unicode escape</span>
|
||||||
)
|
)
|
||||||
///</span>
|
///</span>
|
||||||
|
REGEX_INVALID_ESCAPE = <span class="hljs-regexp">///
|
||||||
|
( (?:^|[^\\]) (?:\\\\)* ) <span class="hljs-comment"># make sure the escape isn’t escaped</span>
|
||||||
|
\\ (
|
||||||
|
?: (0[0-7]) <span class="hljs-comment"># octal escape</span>
|
||||||
|
| (x(?![\da-fA-F]{2}).{0,2}) <span class="hljs-comment"># hex escape</span>
|
||||||
|
| (u\{(?![\da-fA-F]{1,}\})[^}]*\}?) <span class="hljs-comment"># unicode code point escape</span>
|
||||||
|
| (u(?!\{|[\da-fA-F]{4}).{0,4}) <span class="hljs-comment"># unicode escape</span>
|
||||||
|
)
|
||||||
|
///</span>
|
||||||
|
|
||||||
|
UNICODE_CODE_POINT_ESCAPE = <span class="hljs-regexp">///
|
||||||
|
( \\\\ ) <span class="hljs-comment"># make sure the escape isn’t escaped</span>
|
||||||
|
|
|
||||||
|
\\u\{ ( [\da-fA-F]+ ) \}
|
||||||
|
///</span>g
|
||||||
|
|
||||||
LEADING_BLANK_LINE = <span class="hljs-regexp">/^[^\n\S]*\n/</span>
|
LEADING_BLANK_LINE = <span class="hljs-regexp">/^[^\n\S]*\n/</span>
|
||||||
TRAILING_BLANK_LINE = <span class="hljs-regexp">/\n[^\n\S]*$/</span>
|
TRAILING_BLANK_LINE = <span class="hljs-regexp">/\n[^\n\S]*$/</span>
|
||||||
@@ -1971,11 +2134,11 @@ TRAILING_SPACES = <span class="hljs-regexp">/\s+$/</span></pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-76">
|
<li id="section-83">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-76">¶</a>
|
<a class="pilcrow" href="#section-83">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Compound assignment tokens.</p>
|
<p>Compound assignment tokens.</p>
|
||||||
|
|
||||||
@@ -1989,11 +2152,11 @@ TRAILING_SPACES = <span class="hljs-regexp">/\s+$/</span></pre></div></div>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-77">
|
<li id="section-84">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-77">¶</a>
|
<a class="pilcrow" href="#section-84">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Unary tokens.</p>
|
<p>Unary tokens.</p>
|
||||||
|
|
||||||
@@ -2006,11 +2169,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-78">
|
<li id="section-85">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-78">¶</a>
|
<a class="pilcrow" href="#section-85">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Bit-shifting tokens.</p>
|
<p>Bit-shifting tokens.</p>
|
||||||
|
|
||||||
@@ -2021,11 +2184,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-79">
|
<li id="section-86">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-79">¶</a>
|
<a class="pilcrow" href="#section-86">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Comparison tokens.</p>
|
<p>Comparison tokens.</p>
|
||||||
|
|
||||||
@@ -2036,11 +2199,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-80">
|
<li id="section-87">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-80">¶</a>
|
<a class="pilcrow" href="#section-87">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Mathematical tokens.</p>
|
<p>Mathematical tokens.</p>
|
||||||
|
|
||||||
@@ -2051,11 +2214,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-81">
|
<li id="section-88">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-81">¶</a>
|
<a class="pilcrow" href="#section-88">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Relational tokens that are negatable with <code>not</code> prefix.</p>
|
<p>Relational tokens that are negatable with <code>not</code> prefix.</p>
|
||||||
|
|
||||||
@@ -2066,11 +2229,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-82">
|
<li id="section-89">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-82">¶</a>
|
<a class="pilcrow" href="#section-89">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Boolean tokens.</p>
|
<p>Boolean tokens.</p>
|
||||||
|
|
||||||
@@ -2081,11 +2244,11 @@ UNARY_MATH = [<span class="hljs-string">'!'</span>, <span class="hljs-string">'~
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-83">
|
<li id="section-90">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-83">¶</a>
|
<a class="pilcrow" href="#section-90">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens which could legitimately be invoked or indexed. An opening
|
<p>Tokens which could legitimately be invoked or indexed. An opening
|
||||||
parentheses or bracket following these tokens will be recorded as the start
|
parentheses or bracket following these tokens will be recorded as the start
|
||||||
@@ -2102,11 +2265,11 @@ INDEXABLE = CALLABLE.concat [
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-84">
|
<li id="section-91">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-84">¶</a>
|
<a class="pilcrow" href="#section-91">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens which a regular expression will never immediately follow (except spaced
|
<p>Tokens which a regular expression will never immediately follow (except spaced
|
||||||
CALLABLEs in some cases), but which a division operator can.</p>
|
CALLABLEs in some cases), but which a division operator can.</p>
|
||||||
@@ -2119,11 +2282,11 @@ CALLABLEs in some cases), but which a division operator can.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-85">
|
<li id="section-92">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-85">¶</a>
|
<a class="pilcrow" href="#section-92">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that, when immediately preceding a <code>WHEN</code>, indicate that the <code>WHEN</code>
|
<p>Tokens that, when immediately preceding a <code>WHEN</code>, indicate that the <code>WHEN</code>
|
||||||
occurs at the start of a line. We disambiguate these from trailing whens to
|
occurs at the start of a line. We disambiguate these from trailing whens to
|
||||||
@@ -2136,11 +2299,11 @@ avoid an ambiguity in the grammar.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-86">
|
<li id="section-93">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-86">¶</a>
|
<a class="pilcrow" href="#section-93">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Additional indent in front of these is ignored.</p>
|
<p>Additional indent in front of these is ignored.</p>
|
||||||
|
|
||||||
@@ -2150,6 +2313,23 @@ avoid an ambiguity in the grammar.</p>
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-94">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-94">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Tokens that, when appearing at the end of a line, suppress a following TERMINATOR/INDENT token</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre>UNFINISHED = [<span class="hljs-string">'\\'</span>, <span class="hljs-string">'.'</span>, <span class="hljs-string">'?.'</span>, <span class="hljs-string">'?::'</span>, <span class="hljs-string">'UNARY'</span>, <span class="hljs-string">'MATH'</span>, <span class="hljs-string">'UNARY_MATH'</span>, <span class="hljs-string">'+'</span>, <span class="hljs-string">'-'</span>,
|
||||||
|
<span class="hljs-string">'**'</span>, <span class="hljs-string">'SHIFT'</span>, <span class="hljs-string">'RELATION'</span>, <span class="hljs-string">'COMPARE'</span>, <span class="hljs-string">'&'</span>, <span class="hljs-string">'^'</span>, <span class="hljs-string">'|'</span>, <span class="hljs-string">'&&'</span>, <span class="hljs-string">'||'</span>,
|
||||||
|
<span class="hljs-string">'BIN?'</span>, <span class="hljs-string">'THROW'</span>, <span class="hljs-string">'EXTENDS'</span>]</pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -171,6 +171,22 @@ parens. Unwrap all that.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-4">¶</a>
|
<a class="pilcrow" href="#section-4">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
<p>Node’s REPL v6.9.1+ sends the input wrapped in a try/catch statement.
|
||||||
|
Unwrap that too.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> input = input.replace <span class="hljs-regexp">/^\s*try\s*{([\s\S]*)}\s*catch.*$/m</span>, <span class="hljs-string">'$1'</span></pre></div></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-5">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-5">¶</a>
|
||||||
|
</div>
|
||||||
<p>Require AST nodes to do some AST manipulation.</p>
|
<p>Require AST nodes to do some AST manipulation.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -182,11 +198,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-5">
|
<li id="section-6">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-5">¶</a>
|
<a class="pilcrow" href="#section-6">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokenize the clean input.</p>
|
<p>Tokenize the clean input.</p>
|
||||||
|
|
||||||
@@ -197,11 +213,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-6">
|
<li id="section-7">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-6">¶</a>
|
<a class="pilcrow" href="#section-7">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Collect referenced variable names just like in <code>CoffeeScript.compile</code>.</p>
|
<p>Collect referenced variable names just like in <code>CoffeeScript.compile</code>.</p>
|
||||||
|
|
||||||
@@ -214,11 +230,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-7">
|
<li id="section-8">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-7">¶</a>
|
<a class="pilcrow" href="#section-8">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Generate the AST of the tokens.</p>
|
<p>Generate the AST of the tokens.</p>
|
||||||
|
|
||||||
@@ -229,18 +245,18 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-8">
|
<li id="section-9">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-8">¶</a>
|
<a class="pilcrow" href="#section-9">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Add assignment to <code>_</code> variable to force the input to be an expression.</p>
|
<p>Add assignment to <code>_</code> variable to force the input to be an expression.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> ast = <span class="hljs-keyword">new</span> Block [
|
<div class="content"><div class='highlight'><pre> ast = <span class="hljs-keyword">new</span> Block [
|
||||||
<span class="hljs-keyword">new</span> Assign (<span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> Literal <span class="hljs-string">'_'</span>), ast, <span class="hljs-string">'='</span>
|
<span class="hljs-keyword">new</span> Assign (<span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> Literal <span class="hljs-string">'__'</span>), ast, <span class="hljs-string">'='</span>
|
||||||
]
|
]
|
||||||
js = ast.compile {bare: <span class="hljs-literal">yes</span>, locals: Object.keys(context), referencedVars}
|
js = ast.compile {bare: <span class="hljs-literal">yes</span>, locals: Object.keys(context), referencedVars}
|
||||||
cb <span class="hljs-literal">null</span>, runInContext js, context, filename
|
cb <span class="hljs-literal">null</span>, runInContext js, context, filename
|
||||||
@@ -249,11 +265,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-9">
|
<li id="section-10">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-9">¶</a>
|
<a class="pilcrow" href="#section-10">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>AST’s <code>compile</code> does not add source code information to syntax errors.</p>
|
<p>AST’s <code>compile</code> does not add source code information to syntax errors.</p>
|
||||||
|
|
||||||
@@ -274,11 +290,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-10">
|
<li id="section-11">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-10">¶</a>
|
<a class="pilcrow" href="#section-11">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Node 0.11.12 changed API, prompt is now _prompt.</p>
|
<p>Node 0.11.12 changed API, prompt is now _prompt.</p>
|
||||||
|
|
||||||
@@ -295,11 +311,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-11">
|
<li id="section-12">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-11">¶</a>
|
<a class="pilcrow" href="#section-12">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Proxy node’s line listener</p>
|
<p>Proxy node’s line listener</p>
|
||||||
|
|
||||||
@@ -320,11 +336,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-12">
|
<li id="section-13">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-12">¶</a>
|
<a class="pilcrow" href="#section-13">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Handle Ctrl-v</p>
|
<p>Handle Ctrl-v</p>
|
||||||
|
|
||||||
@@ -337,11 +353,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-13">
|
<li id="section-14">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-13">¶</a>
|
<a class="pilcrow" href="#section-14">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>allow arbitrarily switching between modes any time before multiple lines are entered</p>
|
<p>allow arbitrarily switching between modes any time before multiple lines are entered</p>
|
||||||
|
|
||||||
@@ -356,11 +372,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-14">
|
<li id="section-15">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-14">¶</a>
|
<a class="pilcrow" href="#section-15">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>no-op unless the current line is empty</p>
|
<p>no-op unless the current line is empty</p>
|
||||||
|
|
||||||
@@ -371,11 +387,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-15">
|
<li id="section-16">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-15">¶</a>
|
<a class="pilcrow" href="#section-16">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>eval, print, loop</p>
|
<p>eval, print, loop</p>
|
||||||
|
|
||||||
@@ -390,11 +406,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-16">
|
<li id="section-17">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-16">¶</a>
|
<a class="pilcrow" href="#section-17">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>XXX: multiline hack</p>
|
<p>XXX: multiline hack</p>
|
||||||
|
|
||||||
@@ -412,11 +428,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-17">
|
<li id="section-18">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-17">¶</a>
|
<a class="pilcrow" href="#section-18">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Store and load command history from a file</p>
|
<p>Store and load command history from a file</p>
|
||||||
|
|
||||||
@@ -429,11 +445,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-18">
|
<li id="section-19">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-18">¶</a>
|
<a class="pilcrow" href="#section-19">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Get file info and at most maxSize of command history</p>
|
<p>Get file info and at most maxSize of command history</p>
|
||||||
|
|
||||||
@@ -445,11 +461,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-19">
|
<li id="section-20">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-19">¶</a>
|
<a class="pilcrow" href="#section-20">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Read last <code>size</code> bytes from the file</p>
|
<p>Read last <code>size</code> bytes from the file</p>
|
||||||
|
|
||||||
@@ -463,11 +479,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-20">
|
<li id="section-21">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-20">¶</a>
|
<a class="pilcrow" href="#section-21">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Set the history on the interpreter</p>
|
<p>Set the history on the interpreter</p>
|
||||||
|
|
||||||
@@ -478,11 +494,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-21">
|
<li id="section-22">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-21">¶</a>
|
<a class="pilcrow" href="#section-22">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>If the history file was truncated we should pop off a potential partial line</p>
|
<p>If the history file was truncated we should pop off a potential partial line</p>
|
||||||
|
|
||||||
@@ -493,11 +509,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-22">
|
<li id="section-23">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-22">¶</a>
|
<a class="pilcrow" href="#section-23">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Shift off the final blank newline</p>
|
<p>Shift off the final blank newline</p>
|
||||||
|
|
||||||
@@ -515,11 +531,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-23">
|
<li id="section-24">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-23">¶</a>
|
<a class="pilcrow" href="#section-24">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Save the latest command in the file</p>
|
<p>Save the latest command in the file</p>
|
||||||
|
|
||||||
@@ -533,11 +549,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-24">
|
<li id="section-25">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-24">¶</a>
|
<a class="pilcrow" href="#section-25">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Add a command to show the history stack</p>
|
<p>Add a command to show the history stack</p>
|
||||||
|
|
||||||
@@ -554,11 +570,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-25">
|
<li id="section-26">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-25">¶</a>
|
<a class="pilcrow" href="#section-26">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Node 0.11 changed API, a command such as ‘.help’ is now stored as ‘help’</p>
|
<p>Node 0.11 changed API, a command such as ‘.help’ is now stored as ‘help’</p>
|
||||||
|
|
||||||
@@ -569,7 +585,7 @@ parens. Unwrap all that.</p>
|
|||||||
|
|
||||||
<span class="hljs-built_in">module</span>.exports =
|
<span class="hljs-built_in">module</span>.exports =
|
||||||
start: <span class="hljs-function"><span class="hljs-params">(opts = {})</span> -></span>
|
start: <span class="hljs-function"><span class="hljs-params">(opts = {})</span> -></span>
|
||||||
[major, minor, build] = process.versions.node.split(<span class="hljs-string">'.'</span>).map (n) -> parseInt(n)
|
[major, minor, build] = process.versions.node.split(<span class="hljs-string">'.'</span>).map (n) -> parseInt(n, <span class="hljs-number">10</span>)
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> major <span class="hljs-keyword">is</span> <span class="hljs-number">0</span> <span class="hljs-keyword">and</span> minor < <span class="hljs-number">8</span>
|
<span class="hljs-keyword">if</span> major <span class="hljs-keyword">is</span> <span class="hljs-number">0</span> <span class="hljs-keyword">and</span> minor < <span class="hljs-number">8</span>
|
||||||
<span class="hljs-built_in">console</span>.warn <span class="hljs-string">"Node 0.8.0+ required for CoffeeScript REPL"</span>
|
<span class="hljs-built_in">console</span>.warn <span class="hljs-string">"Node 0.8.0+ required for CoffeeScript REPL"</span>
|
||||||
@@ -587,11 +603,11 @@ parens. Unwrap all that.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-26">
|
<li id="section-27">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-26">¶</a>
|
<a class="pilcrow" href="#section-27">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Adapt help inherited from the node REPL</p>
|
<p>Adapt help inherited from the node REPL</p>
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ its internal array of tokens.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">exports</span>.<span class="hljs-title">Rewriter</span></span></pre></div></div>
|
<div class="content"><div class='highlight'><pre>exports.Rewriter = <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Rewriter</span></span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -168,11 +168,16 @@ its internal array of tokens.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-4">¶</a>
|
<a class="pilcrow" href="#section-4">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Helpful snippet for debugging:</p>
|
<p>Rewrite the token stream in multiple passes, one logical filter at
|
||||||
<pre><code><span class="hljs-built_in">console</span>.log (t[<span class="hljs-number">0</span>] + <span class="hljs-string">'/'</span> + t[<span class="hljs-number">1</span>] <span class="hljs-keyword">for</span> t <span class="hljs-keyword">in</span> @tokens).join <span class="hljs-string">' '</span>
|
a time. This could certainly be changed into a single pass through the
|
||||||
</code></pre>
|
stream, with a big ol’ efficient switch, but it’s much nicer to work with
|
||||||
|
like this. The order of these passes matters – indentation must be
|
||||||
|
corrected before implicit parentheses can be wrapped around blocks of code.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> rewrite: <span class="hljs-function"><span class="hljs-params">(@tokens)</span> -></span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
@@ -182,16 +187,12 @@ its internal array of tokens.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-5">¶</a>
|
<a class="pilcrow" href="#section-5">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Rewrite the token stream in multiple passes, one logical filter at
|
<p>Helpful snippet for debugging:
|
||||||
a time. This could certainly be changed into a single pass through the
|
console.log (t[0] + ‘/‘ + t[1] for t in @tokens).join ‘ ‘</p>
|
||||||
stream, with a big ol’ efficient switch, but it’s much nicer to work with
|
|
||||||
like this. The order of these passes matters – indentation must be
|
|
||||||
corrected before implicit parentheses can be wrapped around blocks of code.</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> rewrite: <span class="hljs-function"><span class="hljs-params">(@tokens)</span> -></span>
|
<div class="content"><div class='highlight'><pre> @removeLeadingNewlines()
|
||||||
@removeLeadingNewlines()
|
|
||||||
@closeOpenCalls()
|
@closeOpenCalls()
|
||||||
@closeOpenIndexes()
|
@closeOpenIndexes()
|
||||||
@normalizeLines()
|
@normalizeLines()
|
||||||
@@ -449,9 +450,12 @@ and spliced, when returning for getting a new token.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre><span class="hljs-function"> <span class="hljs-title">inImplicit</span> = -></span> stackTop()?[<span class="hljs-number">2</span>]?.ours
|
<div class="content"><div class='highlight'><pre><span class="hljs-function"> <span class="hljs-title">isImplicit</span> = <span class="hljs-params">(stackItem)</span> -></span> stackItem?[<span class="hljs-number">2</span>]?.ours
|
||||||
<span class="hljs-function"> <span class="hljs-title">inImplicitCall</span> = -></span> inImplicit() <span class="hljs-keyword">and</span> stackTop()?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'('</span>
|
<span class="hljs-function"> <span class="hljs-title">isImplicitObject</span> = <span class="hljs-params">(stackItem)</span> -></span> isImplicit(stackItem) <span class="hljs-keyword">and</span> stackItem?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'{'</span>
|
||||||
<span class="hljs-function"> <span class="hljs-title">inImplicitObject</span> = -></span> inImplicit() <span class="hljs-keyword">and</span> stackTop()?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'{'</span></pre></div></div>
|
<span class="hljs-function"> <span class="hljs-title">isImplicitCall</span> = <span class="hljs-params">(stackItem)</span> -></span> isImplicit(stackItem) <span class="hljs-keyword">and</span> stackItem?[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'('</span>
|
||||||
|
<span class="hljs-function"> <span class="hljs-title">inImplicit</span> = -></span> isImplicit stackTop()
|
||||||
|
<span class="hljs-function"> <span class="hljs-title">inImplicitCall</span> = -></span> isImplicitCall stackTop()
|
||||||
|
<span class="hljs-function"> <span class="hljs-title">inImplicitObject</span> = -></span> isImplicitObject stackTop()</pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -472,7 +476,7 @@ class declaration or if-conditionals)</p>
|
|||||||
<span class="hljs-title">startImplicitCall</span> = <span class="hljs-params">(j)</span> -></span>
|
<span class="hljs-title">startImplicitCall</span> = <span class="hljs-params">(j)</span> -></span>
|
||||||
idx = j ? i
|
idx = j ? i
|
||||||
stack.push [<span class="hljs-string">'('</span>, idx, ours: <span class="hljs-literal">yes</span>]
|
stack.push [<span class="hljs-string">'('</span>, idx, ours: <span class="hljs-literal">yes</span>]
|
||||||
tokens.splice idx, <span class="hljs-number">0</span>, generate <span class="hljs-string">'CALL_START'</span>, <span class="hljs-string">'('</span>
|
tokens.splice idx, <span class="hljs-number">0</span>, generate <span class="hljs-string">'CALL_START'</span>, <span class="hljs-string">'('</span>, [<span class="hljs-string">''</span>, <span class="hljs-string">'implicit function call'</span>, token[<span class="hljs-number">2</span>]]
|
||||||
i += <span class="hljs-number">1</span> <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> j?
|
i += <span class="hljs-number">1</span> <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> j?
|
||||||
<span class="hljs-function">
|
<span class="hljs-function">
|
||||||
<span class="hljs-title">endImplicitCall</span> = -></span>
|
<span class="hljs-title">endImplicitCall</span> = -></span>
|
||||||
@@ -509,7 +513,7 @@ class declaration or if-conditionals)</p>
|
|||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> inImplicitCall() <span class="hljs-keyword">and</span> tag <span class="hljs-keyword">in</span> [<span class="hljs-string">'IF'</span>, <span class="hljs-string">'TRY'</span>, <span class="hljs-string">'FINALLY'</span>, <span class="hljs-string">'CATCH'</span>,
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> inImplicitCall() <span class="hljs-keyword">and</span> tag <span class="hljs-keyword">in</span> [<span class="hljs-string">'IF'</span>, <span class="hljs-string">'TRY'</span>, <span class="hljs-string">'FINALLY'</span>, <span class="hljs-string">'CATCH'</span>,
|
||||||
<span class="hljs-string">'CLASS'</span>, <span class="hljs-string">'SWITCH'</span>]
|
<span class="hljs-string">'CLASS'</span>, <span class="hljs-string">'SWITCH'</span>]
|
||||||
stack.push [<span class="hljs-string">'CONTROL'</span>, i, ours: <span class="hljs-literal">true</span>]
|
stack.push [<span class="hljs-string">'CONTROL'</span>, i, ours: <span class="hljs-literal">yes</span>]
|
||||||
<span class="hljs-keyword">return</span> forward(<span class="hljs-number">1</span>)
|
<span class="hljs-keyword">return</span> forward(<span class="hljs-number">1</span>)
|
||||||
|
|
||||||
<span class="hljs-keyword">if</span> tag <span class="hljs-keyword">is</span> <span class="hljs-string">'INDENT'</span> <span class="hljs-keyword">and</span> inImplicit()</pre></div></div>
|
<span class="hljs-keyword">if</span> tag <span class="hljs-keyword">is</span> <span class="hljs-string">'INDENT'</span> <span class="hljs-keyword">and</span> inImplicit()</pre></div></div>
|
||||||
@@ -734,8 +738,23 @@ like e.g.:</p>
|
|||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre>
|
</li>
|
||||||
stackTop()[<span class="hljs-number">2</span>].sameLine = <span class="hljs-literal">no</span> <span class="hljs-keyword">if</span> inImplicitObject() <span class="hljs-keyword">and</span> tag <span class="hljs-keyword">in</span> LINEBREAKS
|
|
||||||
|
|
||||||
|
<li id="section-29">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-29">¶</a>
|
||||||
|
</div>
|
||||||
|
<p>Mark all enclosing objects as not sameLine</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> tag <span class="hljs-keyword">in</span> LINEBREAKS
|
||||||
|
<span class="hljs-keyword">for</span> stackItem <span class="hljs-keyword">in</span> stack <span class="hljs-keyword">by</span> <span class="hljs-number">-1</span>
|
||||||
|
<span class="hljs-keyword">break</span> <span class="hljs-keyword">unless</span> isImplicit stackItem
|
||||||
|
stackItem[<span class="hljs-number">2</span>].sameLine = <span class="hljs-literal">no</span> <span class="hljs-keyword">if</span> isImplicitObject stackItem
|
||||||
|
|
||||||
newLine = prevTag <span class="hljs-keyword">is</span> <span class="hljs-string">'OUTDENT'</span> <span class="hljs-keyword">or</span> prevToken.newLine
|
newLine = prevTag <span class="hljs-keyword">is</span> <span class="hljs-string">'OUTDENT'</span> <span class="hljs-keyword">or</span> prevToken.newLine
|
||||||
<span class="hljs-keyword">if</span> tag <span class="hljs-keyword">in</span> IMPLICIT_END <span class="hljs-keyword">or</span> tag <span class="hljs-keyword">in</span> CALL_CLOSERS <span class="hljs-keyword">and</span> newLine
|
<span class="hljs-keyword">if</span> tag <span class="hljs-keyword">in</span> IMPLICIT_END <span class="hljs-keyword">or</span> tag <span class="hljs-keyword">in</span> CALL_CLOSERS <span class="hljs-keyword">and</span> newLine
|
||||||
@@ -745,11 +764,11 @@ like e.g.:</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-29">
|
<li id="section-30">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-29">¶</a>
|
<a class="pilcrow" href="#section-30">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Close implicit calls when reached end of argument list</p>
|
<p>Close implicit calls when reached end of argument list</p>
|
||||||
|
|
||||||
@@ -761,11 +780,11 @@ like e.g.:</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-30">
|
<li id="section-31">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-30">¶</a>
|
<a class="pilcrow" href="#section-31">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Close implicit objects such as:
|
<p>Close implicit objects such as:
|
||||||
return a: 1, b: 2 unless true</p>
|
return a: 1, b: 2 unless true</p>
|
||||||
@@ -779,11 +798,11 @@ return a: 1, b: 2 unless true</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-31">
|
<li id="section-32">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-31">¶</a>
|
<a class="pilcrow" href="#section-32">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Close implicit objects when at end of line, line didn’t end with a comma
|
<p>Close implicit objects when at end of line, line didn’t end with a comma
|
||||||
and the implicit object didn’t start the line or the next line doesn’t look like
|
and the implicit object didn’t start the line or the next line doesn’t look like
|
||||||
@@ -801,11 +820,11 @@ the continuation of an object.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-32">
|
<li id="section-33">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-32">¶</a>
|
<a class="pilcrow" href="#section-33">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Close implicit object if comma is the last character
|
<p>Close implicit object if comma is the last character
|
||||||
and what comes after doesn’t look like it belongs.
|
and what comes after doesn’t look like it belongs.
|
||||||
@@ -826,11 +845,11 @@ e = <span class="hljs-number">2</span>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-33">
|
<li id="section-34">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-33">¶</a>
|
<a class="pilcrow" href="#section-34">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>When nextTag is OUTDENT the comma is insignificant and
|
<p>When nextTag is OUTDENT the comma is insignificant and
|
||||||
should just be ignored so embed it in the implicit object.</p>
|
should just be ignored so embed it in the implicit object.</p>
|
||||||
@@ -848,11 +867,11 @@ array further up the stack, so give it a chance.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-34">
|
<li id="section-35">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-34">¶</a>
|
<a class="pilcrow" href="#section-35">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Add location data to all tokens generated by the rewriter.</p>
|
<p>Add location data to all tokens generated by the rewriter.</p>
|
||||||
|
|
||||||
@@ -878,11 +897,11 @@ array further up the stack, so give it a chance.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-35">
|
<li id="section-36">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-35">¶</a>
|
<a class="pilcrow" href="#section-36">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>OUTDENT tokens should always be positioned at the last character of the
|
<p>OUTDENT tokens should always be positioned at the last character of the
|
||||||
previous token, so that AST nodes ending in an OUTDENT token end up with a
|
previous token, so that AST nodes ending in an OUTDENT token end up with a
|
||||||
@@ -906,11 +925,11 @@ location corresponding to the last “real” token under the node.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-36">
|
<li id="section-37">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-36">¶</a>
|
<a class="pilcrow" href="#section-37">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Because our grammar is LALR(1), it can’t handle some single-line
|
<p>Because our grammar is LALR(1), it can’t handle some single-line
|
||||||
expressions that lack ending delimiters. The <strong>Rewriter</strong> adds the implicit
|
expressions that lack ending delimiters. The <strong>Rewriter</strong> adds the implicit
|
||||||
@@ -928,7 +947,8 @@ blocks are added.</p>
|
|||||||
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'TERMINATOR'</span> <span class="hljs-keyword">and</span> @tag(i + <span class="hljs-number">1</span>) <span class="hljs-keyword">in</span> EXPRESSION_CLOSE) <span class="hljs-keyword">and</span>
|
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'TERMINATOR'</span> <span class="hljs-keyword">and</span> @tag(i + <span class="hljs-number">1</span>) <span class="hljs-keyword">in</span> EXPRESSION_CLOSE) <span class="hljs-keyword">and</span>
|
||||||
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'ELSE'</span> <span class="hljs-keyword">and</span> starter <span class="hljs-keyword">isnt</span> <span class="hljs-string">'THEN'</span>) <span class="hljs-keyword">and</span>
|
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'ELSE'</span> <span class="hljs-keyword">and</span> starter <span class="hljs-keyword">isnt</span> <span class="hljs-string">'THEN'</span>) <span class="hljs-keyword">and</span>
|
||||||
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">in</span> [<span class="hljs-string">'CATCH'</span>, <span class="hljs-string">'FINALLY'</span>] <span class="hljs-keyword">and</span> starter <span class="hljs-keyword">in</span> [<span class="hljs-string">'->'</span>, <span class="hljs-string">'=>'</span>]) <span class="hljs-keyword">or</span>
|
<span class="hljs-keyword">not</span> (token[<span class="hljs-number">0</span>] <span class="hljs-keyword">in</span> [<span class="hljs-string">'CATCH'</span>, <span class="hljs-string">'FINALLY'</span>] <span class="hljs-keyword">and</span> starter <span class="hljs-keyword">in</span> [<span class="hljs-string">'->'</span>, <span class="hljs-string">'=>'</span>]) <span class="hljs-keyword">or</span>
|
||||||
token[<span class="hljs-number">0</span>] <span class="hljs-keyword">in</span> CALL_CLOSERS <span class="hljs-keyword">and</span> @tokens[i - <span class="hljs-number">1</span>].newLine
|
token[<span class="hljs-number">0</span>] <span class="hljs-keyword">in</span> CALL_CLOSERS <span class="hljs-keyword">and</span>
|
||||||
|
(@tokens[i - <span class="hljs-number">1</span>].newLine <span class="hljs-keyword">or</span> @tokens[i - <span class="hljs-number">1</span>][<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'OUTDENT'</span>)
|
||||||
<span class="hljs-function">
|
<span class="hljs-function">
|
||||||
<span class="hljs-title">action</span> = <span class="hljs-params">(token, i)</span> -></span>
|
<span class="hljs-title">action</span> = <span class="hljs-params">(token, i)</span> -></span>
|
||||||
@tokens.splice (<span class="hljs-keyword">if</span> @tag(i - <span class="hljs-number">1</span>) <span class="hljs-keyword">is</span> <span class="hljs-string">','</span> <span class="hljs-keyword">then</span> i - <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> i), <span class="hljs-number">0</span>, outdent
|
@tokens.splice (<span class="hljs-keyword">if</span> @tag(i - <span class="hljs-number">1</span>) <span class="hljs-keyword">is</span> <span class="hljs-string">','</span> <span class="hljs-keyword">then</span> i - <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> i), <span class="hljs-number">0</span>, outdent
|
||||||
@@ -960,11 +980,11 @@ blocks are added.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-37">
|
<li id="section-38">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-37">¶</a>
|
<a class="pilcrow" href="#section-38">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tag postfix conditionals as such, so that we can parse them with a
|
<p>Tag postfix conditionals as such, so that we can parse them with a
|
||||||
different precedence.</p>
|
different precedence.</p>
|
||||||
@@ -993,11 +1013,11 @@ different precedence.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-38">
|
<li id="section-39">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-38">¶</a>
|
<a class="pilcrow" href="#section-39">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Generate the indentation tokens, based on another token on the same line.</p>
|
<p>Generate the indentation tokens, based on another token on the same line.</p>
|
||||||
|
|
||||||
@@ -1018,11 +1038,11 @@ different precedence.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-39">
|
<li id="section-40">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-39">¶</a>
|
<a class="pilcrow" href="#section-40">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Look up a tag by token index.</p>
|
<p>Look up a tag by token index.</p>
|
||||||
|
|
||||||
@@ -1033,26 +1053,14 @@ different precedence.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-40">
|
|
||||||
<div class="annotation">
|
|
||||||
|
|
||||||
<div class="pilwrap ">
|
|
||||||
<a class="pilcrow" href="#section-40">¶</a>
|
|
||||||
</div>
|
|
||||||
<h2 id="constants">Constants</h2>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
<li id="section-41">
|
<li id="section-41">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-41">¶</a>
|
<a class="pilcrow" href="#section-41">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
<h2 id="constants">Constants</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -1064,6 +1072,18 @@ different precedence.</p>
|
|||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-42">¶</a>
|
<a class="pilcrow" href="#section-42">¶</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="section-43">
|
||||||
|
<div class="annotation">
|
||||||
|
|
||||||
|
<div class="pilwrap ">
|
||||||
|
<a class="pilcrow" href="#section-43">¶</a>
|
||||||
|
</div>
|
||||||
<p>List of the token pairs that must be balanced.</p>
|
<p>List of the token pairs that must be balanced.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1083,11 +1103,11 @@ different precedence.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-43">
|
<li id="section-44">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-43">¶</a>
|
<a class="pilcrow" href="#section-44">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The inverse mappings of <code>BALANCED_PAIRS</code> we’re trying to fix up, so we can
|
<p>The inverse mappings of <code>BALANCED_PAIRS</code> we’re trying to fix up, so we can
|
||||||
look things up from either end.</p>
|
look things up from either end.</p>
|
||||||
@@ -1099,11 +1119,11 @@ look things up from either end.</p>
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-44">
|
<li id="section-45">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-44">¶</a>
|
<a class="pilcrow" href="#section-45">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>The tokens that signal the start/end of a balanced pair.</p>
|
<p>The tokens that signal the start/end of a balanced pair.</p>
|
||||||
|
|
||||||
@@ -1119,11 +1139,11 @@ EXPRESSION_END = []
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-45">
|
<li id="section-46">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-45">¶</a>
|
<a class="pilcrow" href="#section-46">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that indicate the close of a clause of an expression.</p>
|
<p>Tokens that indicate the close of a clause of an expression.</p>
|
||||||
|
|
||||||
@@ -1134,11 +1154,11 @@ EXPRESSION_END = []
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-46">
|
<li id="section-47">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-46">¶</a>
|
<a class="pilcrow" href="#section-47">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that, if followed by an <code>IMPLICIT_CALL</code>, indicate a function invocation.</p>
|
<p>Tokens that, if followed by an <code>IMPLICIT_CALL</code>, indicate a function invocation.</p>
|
||||||
|
|
||||||
@@ -1149,11 +1169,11 @@ EXPRESSION_END = []
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-47">
|
<li id="section-48">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-47">¶</a>
|
<a class="pilcrow" href="#section-48">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>If preceded by an <code>IMPLICIT_FUNC</code>, indicates a function invocation.</p>
|
<p>If preceded by an <code>IMPLICIT_FUNC</code>, indicates a function invocation.</p>
|
||||||
|
|
||||||
@@ -1173,11 +1193,11 @@ IMPLICIT_UNSPACED_CALL = [<span class="hljs-string">'+'</span>, <span class="hlj
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-48">
|
<li id="section-49">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-48">¶</a>
|
<a class="pilcrow" href="#section-49">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that always mark the end of an implicit call for single-liners.</p>
|
<p>Tokens that always mark the end of an implicit call for single-liners.</p>
|
||||||
|
|
||||||
@@ -1189,11 +1209,11 @@ IMPLICIT_UNSPACED_CALL = [<span class="hljs-string">'+'</span>, <span class="hlj
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-49">
|
<li id="section-50">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-49">¶</a>
|
<a class="pilcrow" href="#section-50">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Single-line flavors of block expressions that have unclosed endings.
|
<p>Single-line flavors of block expressions that have unclosed endings.
|
||||||
The grammar can’t disambiguate them, so we insert the implicit indentation.</p>
|
The grammar can’t disambiguate them, so we insert the implicit indentation.</p>
|
||||||
@@ -1206,11 +1226,11 @@ SINGLE_CLOSERS = [<span class="hljs-string">'TERMINATOR'</span>, <span class="
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-50">
|
<li id="section-51">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-50">¶</a>
|
<a class="pilcrow" href="#section-51">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that end a line.</p>
|
<p>Tokens that end a line.</p>
|
||||||
|
|
||||||
@@ -1221,11 +1241,11 @@ SINGLE_CLOSERS = [<span class="hljs-string">'TERMINATOR'</span>, <span class="
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="section-51">
|
<li id="section-52">
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
|
|
||||||
<div class="pilwrap ">
|
<div class="pilwrap ">
|
||||||
<a class="pilcrow" href="#section-51">¶</a>
|
<a class="pilcrow" href="#section-52">¶</a>
|
||||||
</div>
|
</div>
|
||||||
<p>Tokens that close open calls when they follow a newline.</p>
|
<p>Tokens that close open calls when they follow a newline.</p>
|
||||||
|
|
||||||
|
|||||||
@@ -218,9 +218,9 @@ already exist.</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content"><div class='highlight'><pre> find: <span class="hljs-function"><span class="hljs-params">(name)</span> -></span>
|
<div class="content"><div class='highlight'><pre> find: <span class="hljs-function"><span class="hljs-params">(name, type = <span class="hljs-string">'var'</span>)</span> -></span>
|
||||||
<span class="hljs-keyword">return</span> <span class="hljs-literal">yes</span> <span class="hljs-keyword">if</span> @check name
|
<span class="hljs-keyword">return</span> <span class="hljs-literal">yes</span> <span class="hljs-keyword">if</span> @check name
|
||||||
@add name, <span class="hljs-string">'var'</span>
|
@add name, type
|
||||||
<span class="hljs-literal">no</span></pre></div></div>
|
<span class="hljs-literal">no</span></pre></div></div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ column for the current line:</p>
|
|||||||
</div>
|
</div>
|
||||||
<p>Note that SourceMap VLQ encoding is “backwards”. MIDI-style VLQ encoding puts
|
<p>Note that SourceMap VLQ encoding is “backwards”. MIDI-style VLQ encoding puts
|
||||||
the most-significant-bit (MSB) from the original value into the MSB of the VLQ
|
the most-significant-bit (MSB) from the original value into the MSB of the VLQ
|
||||||
encoded value (see <a href="http://en.wikipedia.org/wiki/File:Uintvar_coding.svg">Wikipedia</a>).
|
encoded value (see <a href="https://en.wikipedia.org/wiki/File:Uintvar_coding.svg">Wikipedia</a>).
|
||||||
SourceMap VLQ does things the other way around, with the least significat four
|
SourceMap VLQ does things the other way around, with the least significat four
|
||||||
bits of the original value encoded into the first byte of the VLQ encoded value.</p>
|
bits of the original value encoded into the first byte of the VLQ encoded value.</p>
|
||||||
|
|
||||||
|
|||||||
@@ -1,395 +1,405 @@
|
|||||||
/**
|
/**
|
||||||
* CoffeeScript Compiler v1.12.0
|
* CoffeeScript Compiler v1.12.8
|
||||||
* http://coffeescript.org
|
* http://coffeescript.org
|
||||||
*
|
*
|
||||||
* Copyright 2011, Jeremy Ashkenas
|
* Copyright 2011, Jeremy Ashkenas
|
||||||
* Released under the MIT License
|
* Released under the MIT License
|
||||||
*/
|
*/
|
||||||
var $jscomp={scope:{},checkStringArgs:function(t,ya,pa){if(null==t)throw new TypeError("The 'this' value for String.prototype."+pa+" must not be null or undefined");if(ya instanceof RegExp)throw new TypeError("First argument to String.prototype."+pa+" must not be a regular expression");return t+""}};
|
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(u,xa,ya){if(null==u)throw new TypeError("The 'this' value for String.prototype."+ya+" must not be null or undefined");if(xa instanceof RegExp)throw new TypeError("First argument to String.prototype."+ya+" must not be a regular expression");return u+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
|
||||||
$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,ya,pa){if(pa.get||pa.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[ya]=pa.value)};$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t};$jscomp.global=$jscomp.getGlobal(this);
|
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(u,xa,ya){u!=Array.prototype&&u!=Object.prototype&&(u[xa]=ya.value)};$jscomp.getGlobal=function(u){return"undefined"!=typeof window&&window===u?u:"undefined"!=typeof global&&null!=global?global:u};$jscomp.global=$jscomp.getGlobal(this);
|
||||||
$jscomp.polyfill=function(t,ya,pa,f){if(ya){pa=$jscomp.global;t=t.split(".");for(f=0;f<t.length-1;f++){var ta=t[f];ta in pa||(pa[ta]={});pa=pa[ta]}t=t[t.length-1];f=pa[t];ya=ya(f);ya!=f&&null!=ya&&$jscomp.defineProperty(pa,t,{configurable:!0,writable:!0,value:ya})}};
|
$jscomp.polyfill=function(u,xa,ya,e){if(xa){ya=$jscomp.global;u=u.split(".");for(e=0;e<u.length-1;e++){var ra=u[e];ra in ya||(ya[ra]={});ya=ya[ra]}u=u[u.length-1];e=ya[u];xa=xa(e);xa!=e&&null!=xa&&$jscomp.defineProperty(ya,u,{configurable:!0,writable:!0,value:xa})}};
|
||||||
$jscomp.polyfill("String.prototype.repeat",function(t){return t?t:function(t){var pa=$jscomp.checkStringArgs(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var f="";t;)if(t&1&&(f+=pa),t>>>=1)pa+=pa;return f}},"es6-impl","es3");$jscomp.findInternal=function(t,ya,pa){t instanceof String&&(t=String(t));for(var f=t.length,ta=0;ta<f;ta++){var xa=t[ta];if(ya.call(pa,xa,ta,t))return{i:ta,v:xa}}return{i:-1,v:void 0}};
|
$jscomp.polyfill("String.prototype.repeat",function(u){return u?u:function(u){var ya=$jscomp.checkStringArgs(this,null,"repeat");if(0>u||1342177279<u)throw new RangeError("Invalid count value");u|=0;for(var e="";u;)if(u&1&&(e+=ya),u>>>=1)ya+=ya;return e}},"es6","es3");$jscomp.findInternal=function(u,xa,ya){u instanceof String&&(u=String(u));for(var e=u.length,ra=0;ra<e;ra++){var r=u[ra];if(xa.call(ya,r,ra,u))return{i:ra,v:r}}return{i:-1,v:void 0}};
|
||||||
$jscomp.polyfill("Array.prototype.find",function(t){return t?t:function(t,pa){return $jscomp.findInternal(this,t,pa).v}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++};
|
$jscomp.polyfill("Array.prototype.find",function(u){return u?u:function(u,ya){return $jscomp.findInternal(this,u,ya).v}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var u=0;return function(xa){return $jscomp.SYMBOL_PREFIX+(xa||"")+u++}}();
|
||||||
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
|
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var u=$jscomp.global.Symbol.iterator;u||(u=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[u]&&$jscomp.defineProperty(Array.prototype,u,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
|
||||||
$jscomp.arrayIterator=function(t){var ya=0;return $jscomp.iteratorPrototype(function(){return ya<t.length?{done:!1,value:t[ya++]}:{done:!0}})};$jscomp.iteratorPrototype=function(t){$jscomp.initSymbolIterator();t={next:t};t[$jscomp.global.Symbol.iterator]=function(){return this};return t};$jscomp.array=$jscomp.array||{};
|
$jscomp.arrayIterator=function(u){var xa=0;return $jscomp.iteratorPrototype(function(){return xa<u.length?{done:!1,value:u[xa++]}:{done:!0}})};$jscomp.iteratorPrototype=function(u){$jscomp.initSymbolIterator();u={next:u};u[$jscomp.global.Symbol.iterator]=function(){return this};return u};
|
||||||
$jscomp.iteratorFromArray=function(t,ya){$jscomp.initSymbolIterator();t instanceof String&&(t+="");var pa=0,f={next:function(){if(pa<t.length){var ta=pa++;return{value:ya(ta,t[ta]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};$jscomp.polyfill("Array.prototype.keys",function(t){return t?t:function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6-impl","es3");
|
$jscomp.iteratorFromArray=function(u,xa){$jscomp.initSymbolIterator();u instanceof String&&(u+="");var ya=0,e={next:function(){if(ya<u.length){var ra=ya++;return{value:xa(ra,u[ra]),done:!1}}e.next=function(){return{done:!0,value:void 0}};return e.next()}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.keys",function(u){return u?u:function(){return $jscomp.iteratorFromArray(this,function(u){return u})}},"es6","es3");
|
||||||
(function(t){var ya=function(){function t(f){return t[f]}t["./helpers"]=function(){var f={};(function(){var t,xa,D,a,c,Ca;f.starts=function(a,c,l){return c===a.substr(l,c.length)};f.ends=function(a,c,l){var d;d=c.length;return c===a.substr(a.length-d-(l||0),d)};f.repeat=c=function(a,c){var d;for(d="";0<c;)c&1&&(d+=a),c>>>=1,a+=a;return d};f.compact=function(a){var d,c,f,D;D=[];d=0;for(f=a.length;d<f;d++)(c=a[d])&&D.push(c);return D};f.count=function(a,c){var d,v;d=v=0;if(!c.length)return 1/0;for(;v=
|
(function(u){var xa=function(){function u(e){return u[e]}u["../../package.json"]={name:"coffee-script",description:"Unfancy JavaScript",keywords:["javascript","language","coffeescript","compiler"],author:"Jeremy Ashkenas",version:"1.12.8",license:"MIT",engines:{node:"\x3e\x3d0.8.0"},directories:{lib:"./lib/coffee-script"},main:"./lib/coffee-script/coffee-script",bin:{coffee:"./bin/coffee",cake:"./bin/cake"},files:["bin","lib","register.js","repl.js"],scripts:{postinstall:'node --eval \'if (require("./package.json").name \x3d\x3d\x3d "coffee-script") { var red, yellow, cyan, reset; red \x3d yellow \x3d cyan \x3d reset \x3d ""; if (!process.env.NODE_DISABLE_COLORS) { red \x3d "\\x1b[31m"; yellow \x3d "\\x1b[33m"; cyan \x3d "\\x1b[36m"; reset \x3d "\\x1b[0m"; } console.warn(red + "CoffeeScript has moved!" + reset + " Please update references to " + yellow + "\\"coffee-script\\"" + reset + " to use " + yellow + "\\"coffeescript\\"" + reset + " (no hyphen) instead."); console.warn("Also, a new major version has been released under the " + yellow + "coffeescript" + reset + " name on NPM. This new release targets modern JavaScript, with minimal breaking changes. Learn more at " + cyan + "http://coffeescript.org" + reset + "."); console.warn(""); }\'',
|
||||||
1+a.indexOf(c,v);)d++;return d};f.merge=function(a,c){return xa(xa({},a),c)};xa=f.extend=function(a,c){var d,v;for(d in c)v=c[d],a[d]=v;return a};f.flatten=D=function(a){var d,c,f,F;c=[];f=0;for(F=a.length;f<F;f++)d=a[f],"[object Array]"===Object.prototype.toString.call(d)?c=c.concat(D(d)):c.push(d);return c};f.del=function(a,c){var d;d=a[c];delete a[c];return d};f.some=null!=(a=Array.prototype.some)?a:function(a){var d,c,f;c=0;for(f=this.length;c<f;c++)if(d=this[c],a(d))return!0;return!1};f.invertLiterate=
|
test:"node ./bin/cake test","test-harmony":"node --harmony ./bin/cake test"},homepage:"http://coffeescript.org",bugs:"https://github.com/jashkenas/coffeescript/issues",repository:{type:"git",url:"git://github.com/jashkenas/coffeescript.git"},devDependencies:{docco:"~0.7.0","google-closure-compiler-js":"~20170910.0.1","highlight.js":"~9.12.0",jison:"~0.4.18","markdown-it":"~8.4.0",underscore:"~1.8.3"}};u["./helpers"]=function(){var e={};(function(){var u,r,x;e.starts=function(a,k,t){return k===a.substr(t,
|
||||||
function(a){var d;d=!0;var c,f,D,w;D=a.split("\n");w=[];c=0;for(f=D.length;c<f;c++)a=D[c],d&&/^([ ]{4}|[ ]{0,3}\t)/.test(a)?w.push(a):(d=/^\s*$/.test(a))?w.push(a):w.push("# "+a);return w.join("\n")};t=function(a,c){return c?{first_line:a.first_line,first_column:a.first_column,last_line:c.last_line,last_column:c.last_column}:a};f.addLocationDataFn=function(a,c){return function(d){"object"===typeof d&&d.updateLocationDataIfMissing&&d.updateLocationDataIfMissing(t(a,c));return d}};f.locationDataToString=
|
k.length)};e.ends=function(a,k,t){var f=k.length;return k===a.substr(a.length-f-(t||0),f)};e.repeat=x=function(a,k){var f;for(f="";0<k;)k&1&&(f+=a),k>>>=1,a+=a;return f};e.compact=function(a){var f,b;var p=[];var x=0;for(b=a.length;x<b;x++)(f=a[x])&&p.push(f);return p};e.count=function(a,k){var f;var b=f=0;if(!k.length)return 1/0;for(;f=1+a.indexOf(k,f);)b++;return b};e.merge=function(f,k){return a(a({},f),k)};var a=e.extend=function(a,k){var f;for(f in k){var b=k[f];a[f]=b}return a};e.flatten=u=
|
||||||
function(a){var d;"2"in a&&"first_line"in a[2]?d=a[2]:"first_line"in a&&(d=a);return d?d.first_line+1+":"+(d.first_column+1)+"-"+(d.last_line+1+":"+(d.last_column+1)):"No location data"};f.baseFileName=function(a,c,f){null==c&&(c=!1);null==f&&(f=!1);a=a.split(f?/\\|\//:/\//);a=a[a.length-1];if(!(c&&0<=a.indexOf(".")))return a;a=a.split(".");a.pop();"coffee"===a[a.length-1]&&1<a.length&&a.pop();return a.join(".")};f.isCoffee=function(a){return/\.((lit)?coffee|coffee\.md)$/.test(a)};f.isLiterate=function(a){return/\.(litcoffee|coffee\.md)$/.test(a)};
|
function(a){var f;var b=[];var x=0;for(f=a.length;x<f;x++){var e=a[x];"[object Array]"===Object.prototype.toString.call(e)?b=b.concat(u(e)):b.push(e)}return b};e.del=function(a,k){var f=a[k];delete a[k];return f};e.some=null!=(r=Array.prototype.some)?r:function(a){var f;var b=0;for(f=this.length;b<f;b++){var x=this[b];if(a(x))return!0}return!1};e.invertLiterate=function(a){var f=!0;var b;var x=a.split("\n");var e=[];var I=0;for(b=x.length;I<b;I++)a=x[I],f&&/^([ ]{4}|[ ]{0,3}\t)/.test(a)?e.push(a):
|
||||||
f.throwSyntaxError=function(a,c){a=new SyntaxError(a);a.location=c;a.toString=Ca;a.stack=a.toString();throw a;};f.updateSyntaxError=function(a,c,f){a.toString===Ca&&(a.code||(a.code=c),a.filename||(a.filename=f),a.stack=a.toString());return a};Ca=function(){var a,f,l,D,F,w,z,n,G,t;if(!this.code||!this.location)return Error.prototype.toString.call(this);a=this.location;w=a.first_line;F=a.first_column;l=a.last_line;z=a.last_column;null==l&&(l=w);null==z&&(z=F);D=this.filename||"[stdin]";a=this.code.split("\n")[w];
|
(f=/^\s*$/.test(a))?e.push(a):e.push("# "+a);return e.join("\n")};var b=function(a,b){return b?{first_line:a.first_line,first_column:a.first_column,last_line:b.last_line,last_column:b.last_column}:a};e.addLocationDataFn=function(a,k){return function(f){"object"===typeof f&&f.updateLocationDataIfMissing&&f.updateLocationDataIfMissing(b(a,k));return f}};e.locationDataToString=function(a){var f;"2"in a&&"first_line"in a[2]?f=a[2]:"first_line"in a&&(f=a);return f?f.first_line+1+":"+(f.first_column+1)+
|
||||||
l=w===l?z+1:a.length;z=a.slice(0,F).replace(/[^\s]/g," ")+c("^",l-F);"undefined"!==typeof process&&null!==process&&(f=(null!=(n=process.stdout)?n.isTTY:void 0)&&!(null!=(G=process.env)&&G.NODE_DISABLE_COLORS));if(null!=(t=this.colorful)?t:f)f=function(a){return"\u001b[1;31m"+a+"\u001b[0m"},a=a.slice(0,F)+f(a.slice(F,l))+a.slice(l),z=f(z);return D+":"+(w+1)+":"+(F+1)+": error: "+this.message+"\n"+a+"\n"+z};f.nameWhitespaceCharacter=function(a){switch(a){case " ":return"space";case "\n":return"newline";
|
"-"+(f.last_line+1+":"+(f.last_column+1)):"No location data"};e.baseFileName=function(a,b,x){null==b&&(b=!1);null==x&&(x=!1);a=a.split(x?/\\|\//:/\//);a=a[a.length-1];if(!(b&&0<=a.indexOf(".")))return a;a=a.split(".");a.pop();"coffee"===a[a.length-1]&&1<a.length&&a.pop();return a.join(".")};e.isCoffee=function(a){return/\.((lit)?coffee|coffee\.md)$/.test(a)};e.isLiterate=function(a){return/\.(litcoffee|coffee\.md)$/.test(a)};e.throwSyntaxError=function(a,b){a=new SyntaxError(a);a.location=b;a.toString=
|
||||||
case "\r":return"carriage return";case "\t":return"tab";default:return a}}}).call(this);return f}();t["./rewriter"]=function(){var f={};(function(){var t,xa,D,a,c,Ca,d,v,l,u,F,w,z,n,G,L,I,x,E=[].indexOf||function(a){for(var c=0,d=this.length;c<d;c++)if(c in this&&this[c]===a)return c;return-1},m=[].slice;n=function(a,c,d){a=[a,c];a.generated=!0;d&&(a.origin=d);return a};f.Rewriter=function(){function g(){}g.prototype.rewrite=function(a){this.tokens=a;this.removeLeadingNewlines();this.closeOpenCalls();
|
za;a.stack=a.toString();throw a;};e.updateSyntaxError=function(a,b,x){a.toString===za&&(a.code||(a.code=b),a.filename||(a.filename=x),a.stack=a.toString());return a};var za=function(){var a,b,e;if(!this.code||!this.location)return Error.prototype.toString.call(this);var p=this.location;var z=p.first_line;var I=p.first_column;var J=p.last_line;var F=p.last_column;null==J&&(J=z);null==F&&(F=I);var u=this.filename||"[stdin]";p=this.code.split("\n")[z];J=z===J?F+1:p.length;F=p.slice(0,I).replace(/[^\s]/g,
|
||||||
this.closeOpenIndexes();this.normalizeLines();this.tagPostfixConditionals();this.addImplicitBracesAndParens();this.addLocationDataToGeneratedTokens();this.fixOutdentLocationData();return this.tokens};g.prototype.scanTokens=function(a){var c,d,h;h=this.tokens;for(c=0;d=h[c];)c+=a.call(this,d,c,h);return!0};g.prototype.detectEnd=function(d,q,k){var h,r,g,f,m;m=this.tokens;for(h=0;f=m[d];){if(0===h&&q.call(this,f,d))return k.call(this,f,d);if(!f||0>h)return k.call(this,f,d-1);(r=f[0],0<=E.call(c,r))?
|
" ")+x("^",J-I);if("undefined"!==typeof process&&null!==process)var y=(null!=(a=process.stdout)?a.isTTY:void 0)&&!(null!=(b=process.env)&&b.NODE_DISABLE_COLORS);if(null!=(e=this.colorful)?e:y)y=function(a){return"\u001b[1;31m"+a+"\u001b[0m"},p=p.slice(0,I)+y(p.slice(I,J))+p.slice(J),F=y(F);return u+":"+(z+1)+":"+(I+1)+": error: "+this.message+"\n"+p+"\n"+F};e.nameWhitespaceCharacter=function(a){switch(a){case " ":return"space";case "\n":return"newline";case "\r":return"carriage return";case "\t":return"tab";
|
||||||
h+=1:(g=f[0],0<=E.call(a,g))&&--h;d+=1}return d-1};g.prototype.removeLeadingNewlines=function(){var a,c,d,h,g;h=this.tokens;a=c=0;for(d=h.length;c<d&&(g=h[a][0],"TERMINATOR"===g);a=++c);if(a)return this.tokens.splice(0,a)};g.prototype.closeOpenCalls=function(){var a,c;c=function(a,c){var h;return")"===(h=a[0])||"CALL_END"===h||"OUTDENT"===a[0]&&")"===this.tag(c-1)};a=function(a,c){return this.tokens["OUTDENT"===a[0]?c-1:c][0]="CALL_END"};return this.scanTokens(function(d,h){"CALL_START"===d[0]&&this.detectEnd(h+
|
default:return a}}}).call(this);return e}();u["./rewriter"]=function(){var e={};(function(){var u,r,x=[].indexOf||function(a){for(var c=0,b=this.length;c<b;c++)if(c in this&&this[c]===a)return c;return-1},a=[].slice;var b=function(a,c,b){a=[a,c];a.generated=!0;b&&(a.origin=b);return a};e.Rewriter=function(){function n(){}n.prototype.rewrite=function(a){this.tokens=a;this.removeLeadingNewlines();this.closeOpenCalls();this.closeOpenIndexes();this.normalizeLines();this.tagPostfixConditionals();this.addImplicitBracesAndParens();
|
||||||
1,c,a);return 1})};g.prototype.closeOpenIndexes=function(){var a,c;c=function(a,c){var h;return"]"===(h=a[0])||"INDEX_END"===h};a=function(a,c){return a[0]="INDEX_END"};return this.scanTokens(function(d,h){"INDEX_START"===d[0]&&this.detectEnd(h+1,c,a);return 1})};g.prototype.indexOfTag=function(){var a,c,d,h,g,f,H;c=arguments[0];g=2<=arguments.length?m.call(arguments,1):[];d=h=a=0;for(f=g.length;0<=f?h<f:h>f;d=0<=f?++h:--h){for(;"HERECOMMENT"===this.tag(c+d+a);)a+=2;if(null!=g[d]&&("string"===typeof g[d]&&
|
this.addLocationDataToGeneratedTokens();this.fixOutdentLocationData();return this.tokens};n.prototype.scanTokens=function(a){var c,b;var h=this.tokens;for(c=0;b=h[c];)c+=a.call(this,b,c,h);return!0};n.prototype.detectEnd=function(a,b,q){var c,w,n,L;var e=this.tokens;for(c=0;L=e[a];){if(0===c&&b.call(this,L,a))return q.call(this,L,a);if(!L||0>c)return q.call(this,L,a-1);(w=L[0],0<=x.call(f,w))?c+=1:(n=L[0],0<=x.call(k,n))&&--c;a+=1}return a-1};n.prototype.removeLeadingNewlines=function(){var a,b;var q=
|
||||||
(g[d]=[g[d]]),H=this.tag(c+d+a),0>E.call(g[d],H)))return-1}return c+d+a-1};g.prototype.looksObjectish=function(d){var g;if(-1<this.indexOfTag(d,"@",null,":")||-1<this.indexOfTag(d,null,":"))return!0;d=this.indexOfTag(d,c);return-1<d&&(g=null,this.detectEnd(d+1,function(c){var d;return d=c[0],0<=E.call(a,d)},function(a,c){return g=c}),":"===this.tag(g+1))?!0:!1};g.prototype.findTagsBackwards=function(d,g){var f,h,r,q,H,m,l;for(f=[];0<=d&&(f.length||(q=this.tag(d),0>E.call(g,q))&&((H=this.tag(d),0>
|
this.tokens;var h=a=0;for(b=q.length;a<b;h=++a){var f=q[h][0];if("TERMINATOR"!==f)break}if(h)return this.tokens.splice(0,h)};n.prototype.closeOpenCalls=function(){var a=function(a,c){var h;return")"===(h=a[0])||"CALL_END"===h||"OUTDENT"===a[0]&&")"===this.tag(c-1)};var b=function(a,c){return this.tokens["OUTDENT"===a[0]?c-1:c][0]="CALL_END"};return this.scanTokens(function(c,h){"CALL_START"===c[0]&&this.detectEnd(h+1,a,b);return 1})};n.prototype.closeOpenIndexes=function(){var a=function(a,c){var h;
|
||||||
E.call(c,H))||this.tokens[d].generated)&&(m=this.tag(d),0>E.call(F,m)));)(h=this.tag(d),0<=E.call(a,h))&&f.push(this.tag(d)),(r=this.tag(d),0<=E.call(c,r))&&f.length&&f.pop(),--d;return l=this.tag(d),0<=E.call(g,l)};g.prototype.addImplicitBracesAndParens=function(){var g,f;g=[];f=null;return this.scanTokens(function(q,h,r){var k,m,y,K,D,x,u,z,C,A,G,B,t,w,I,L,U,J;J=q[0];A=(G=0<h?r[h-1]:[])[0];C=(h<r.length-1?r[h+1]:[])[0];I=function(){return g[g.length-1]};L=h;y=function(a){return h-L+a};K=function(){var a,
|
return"]"===(h=a[0])||"INDEX_END"===h};var b=function(a,c){return a[0]="INDEX_END"};return this.scanTokens(function(c,h){"INDEX_START"===c[0]&&this.detectEnd(h+1,a,b);return 1})};n.prototype.indexOfTag=function(){var c,b,f,h;var n=arguments[0];var k=2<=arguments.length?a.call(arguments,1):[];var e=b=c=0;for(f=k.length;0<=f?b<f:b>f;e=0<=f?++b:--b){for(;"HERECOMMENT"===this.tag(n+e+c);)c+=2;if(null!=k[e]&&("string"===typeof k[e]&&(k[e]=[k[e]]),h=this.tag(n+e+c),0>x.call(k[e],h)))return-1}return n+e+
|
||||||
c;return null!=(a=I())?null!=(c=a[2])?c.ours:void 0:void 0};D=function(){var a;return K()&&"("===(null!=(a=I())?a[0]:void 0)};u=function(){var a;return K()&&"{"===(null!=(a=I())?a[0]:void 0)};x=function(){var a;return K&&"CONTROL"===(null!=(a=I())?a[0]:void 0)};U=function(a){var c;c=null!=a?a:h;g.push(["(",c,{ours:!0}]);r.splice(c,0,n("CALL_START","("));if(null==a)return h+=1};k=function(){g.pop();r.splice(h,0,n("CALL_END",")",["","end of input",q[2]]));return h+=1};z=function(a,c){var d;null==c&&
|
c-1};n.prototype.looksObjectish=function(a){if(-1<this.indexOfTag(a,"@",null,":")||-1<this.indexOfTag(a,null,":"))return!0;a=this.indexOfTag(a,f);if(-1<a){var c=null;this.detectEnd(a+1,function(a){var c;return c=a[0],0<=x.call(k,c)},function(a,b){return c=b});if(":"===this.tag(c+1))return!0}return!1};n.prototype.findTagsBackwards=function(a,b){var c,h,n,w,e,p,y;for(c=[];0<=a&&(c.length||(w=this.tag(a),0>x.call(b,w))&&((e=this.tag(a),0>x.call(f,e))||this.tokens[a].generated)&&(p=this.tag(a),0>x.call(Q,
|
||||||
(c=!0);d=null!=a?a:h;g.push(["{",d,{sameLine:!0,startsLine:c,ours:!0}]);c=new String("{");c.generated=!0;r.splice(d,0,n("{",c,q));if(null==a)return h+=1};m=function(a){a=null!=a?a:h;g.pop();r.splice(a,0,n("}","}",q));return h+=1};if(D()&&("IF"===J||"TRY"===J||"FINALLY"===J||"CATCH"===J||"CLASS"===J||"SWITCH"===J))return g.push(["CONTROL",h,{ours:!0}]),y(1);if("INDENT"===J&&K()){if("\x3d\x3e"!==A&&"-\x3e"!==A&&"["!==A&&"("!==A&&","!==A&&"{"!==A&&"TRY"!==A&&"ELSE"!==A&&"\x3d"!==A)for(;D();)k();x()&&
|
p)));)(h=this.tag(a),0<=x.call(k,h))&&c.push(this.tag(a)),(n=this.tag(a),0<=x.call(f,n))&&c.length&&c.pop(),--a;return y=this.tag(a),0<=x.call(b,y)};n.prototype.addImplicitBracesAndParens=function(){var a=[];var n=null;return this.scanTokens(function(c,h,e){var q,w,p,t;var H=c[0];var K=(q=0<h?e[h-1]:[])[0];var u=(h<e.length-1?e[h+1]:[])[0];var z=function(){return a[a.length-1]};var D=h;var A=function(a){return h-D+a};var I=function(a){var c;return null!=a?null!=(c=a[2])?c.ours:void 0:void 0};var E=
|
||||||
g.pop();g.push([J,h]);return y(1)}if(0<=E.call(c,J))return g.push([J,h]),y(1);if(0<=E.call(a,J)){for(;K();)D()?k():u()?m():g.pop();f=g.pop()}if((0<=E.call(v,J)&&q.spaced||"?"===J&&0<h&&!r[h-1].spaced)&&(0<=E.call(Ca,C)||0<=E.call(l,C)&&(null==(B=r[h+1])||!B.spaced)&&(null==(t=r[h+1])||!t.newLine)))return"?"===J&&(J=q[0]="FUNC_EXIST"),U(h+1),y(2);if(0<=E.call(v,J)&&-1<this.indexOfTag(h+1,"INDENT")&&this.looksObjectish(h+2)&&!this.findTagsBackwards(h,"CLASS EXTENDS IF CATCH SWITCH LEADING_WHEN FOR WHILE UNTIL".split(" ")))return U(h+
|
function(a){return I(a)&&"{"===(null!=a?a[0]:void 0)};var G=function(a){return I(a)&&"("===(null!=a?a[0]:void 0)};var O=function(){return I(z())};var C=function(){return G(z())};var S=function(){return E(z())};var v=function(){var a;return O&&"CONTROL"===(null!=(a=z())?a[0]:void 0)};var X=function(f){var n=null!=f?f:h;a.push(["(",n,{ours:!0}]);e.splice(n,0,b("CALL_START","(",["","implicit function call",c[2]]));if(null==f)return h+=1};var R=function(){a.pop();e.splice(h,0,b("CALL_END",")",["","end of input",
|
||||||
1),g.push(["INDENT",h+2]),y(3);if(":"===J){for(m=function(){var c;switch(!1){case c=this.tag(h-1),0>E.call(a,c):return f[1];case "@"!==this.tag(h-2):return h-2;default:return h-1}}.call(this);"HERECOMMENT"===this.tag(m-2);)m-=2;this.insideForDeclaration="FOR"===C;x=0===m||(w=this.tag(m-1),0<=E.call(F,w))||r[m-1].newLine;if(I()&&(u=I(),w=u[0],G=u[1],("{"===w||"INDENT"===w&&"{"===this.tag(G-1))&&(x||","===this.tag(m-1)||"{"===this.tag(m-1))))return y(1);z(m,!!x);return y(2)}u()&&0<=E.call(F,J)&&(I()[2].sameLine=
|
c[2]]));return h+=1};var M=function(f,n){null==n&&(n=!0);var q=null!=f?f:h;a.push(["{",q,{sameLine:!0,startsLine:n,ours:!0}]);n=new String("{");n.generated=!0;e.splice(q,0,b("{",n,c));if(null==f)return h+=1};var r=function(f){f=null!=f?f:h;a.pop();e.splice(f,0,b("}","}",c));return h+=1};if(C()&&("IF"===H||"TRY"===H||"FINALLY"===H||"CATCH"===H||"CLASS"===H||"SWITCH"===H))return a.push(["CONTROL",h,{ours:!0}]),A(1);if("INDENT"===H&&O()){if("\x3d\x3e"!==K&&"-\x3e"!==K&&"["!==K&&"("!==K&&","!==K&&"{"!==
|
||||||
!1);z="OUTDENT"===A||G.newLine;if(0<=E.call(d,J)||0<=E.call(xa,J)&&z)for(;K();)if(z=I(),w=z[0],G=z[1],w=z[2],z=w.sameLine,x=w.startsLine,D()&&","!==A)k();else if(u()&&!this.insideForDeclaration&&z&&"TERMINATOR"!==J&&":"!==A)m();else if(!u()||"TERMINATOR"!==J||","===A||x&&this.looksObjectish(h+1))break;else{if("HERECOMMENT"===C)return y(1);m()}if(!(","!==J||this.looksObjectish(h+1)||!u()||this.insideForDeclaration||"TERMINATOR"===C&&this.looksObjectish(h+2)))for(C="OUTDENT"===C?1:0;u();)m(h+C);return y(1)})};
|
K&&"TRY"!==K&&"ELSE"!==K&&"\x3d"!==K)for(;C();)R();v()&&a.pop();a.push([H,h]);return A(1)}if(0<=x.call(f,H))return a.push([H,h]),A(1);if(0<=x.call(k,H)){for(;O();)C()?R():S()?r():a.pop();n=a.pop()}if((0<=x.call(J,H)&&c.spaced||"?"===H&&0<h&&!e[h-1].spaced)&&(0<=x.call(F,u)||0<=x.call(N,u)&&(null==(w=e[h+1])||!w.spaced)&&(null==(p=e[h+1])||!p.newLine)))return"?"===H&&(H=c[0]="FUNC_EXIST"),X(h+1),A(2);if(0<=x.call(J,H)&&-1<this.indexOfTag(h+1,"INDENT")&&this.looksObjectish(h+2)&&!this.findTagsBackwards(h,
|
||||||
g.prototype.addLocationDataToGeneratedTokens=function(){return this.scanTokens(function(a,c,d){var h,g,f;if(a[2]||!a.generated&&!a.explicit)return 1;"{"===a[0]&&(h=null!=(f=d[c+1])?f[2]:void 0)?(g=h.first_line,h=h.first_column):(h=null!=(g=d[c-1])?g[2]:void 0)?(g=h.last_line,h=h.last_column):g=h=0;a[2]={first_line:g,first_column:h,last_line:g,last_column:h};return 1})};g.prototype.fixOutdentLocationData=function(){return this.scanTokens(function(a,c,d){if(!("OUTDENT"===a[0]||a.generated&&"CALL_END"===
|
"CLASS EXTENDS IF CATCH SWITCH LEADING_WHEN FOR WHILE UNTIL".split(" ")))return X(h+1),a.push(["INDENT",h+2]),A(3);if(":"===H){for(r=function(){var a;switch(!1){case a=this.tag(h-1),0>x.call(k,a):return n[1];case "@"!==this.tag(h-2):return h-2;default:return h-1}}.call(this);"HERECOMMENT"===this.tag(r-2);)r-=2;this.insideForDeclaration="FOR"===u;q=0===r||(t=this.tag(r-1),0<=x.call(Q,t))||e[r-1].newLine;if(z()&&(S=z(),t=S[0],v=S[1],("{"===t||"INDENT"===t&&"{"===this.tag(v-1))&&(q||","===this.tag(r-
|
||||||
a[0]||a.generated&&"}"===a[0]))return 1;c=d[c-1][2];a[2]={first_line:c.last_line,first_column:c.last_column,last_line:c.last_line,last_column:c.last_column};return 1})};g.prototype.normalizeLines=function(){var a,c,d,h,g;g=d=h=null;c=function(a,c){var d,h,f,m;return";"!==a[1]&&(d=a[0],0<=E.call(w,d))&&!("TERMINATOR"===a[0]&&(h=this.tag(c+1),0<=E.call(D,h)))&&!("ELSE"===a[0]&&"THEN"!==g)&&!!("CATCH"!==(f=a[0])&&"FINALLY"!==f||"-\x3e"!==g&&"\x3d\x3e"!==g)||(m=a[0],0<=E.call(xa,m))&&this.tokens[c-1].newLine};
|
1)||"{"===this.tag(r-1))))return A(1);M(r,!!q);return A(2)}if(0<=x.call(Q,H))for(M=a.length-1;0<=M;M+=-1){t=a[M];if(!I(t))break;E(t)&&(t[2].sameLine=!1)}M="OUTDENT"===K||q.newLine;if(0<=x.call(y,H)||0<=x.call(B,H)&&M)for(;O();)if(M=z(),t=M[0],v=M[1],q=M[2],M=q.sameLine,q=q.startsLine,C()&&","!==K)R();else if(S()&&!this.insideForDeclaration&&M&&"TERMINATOR"!==H&&":"!==K)r();else if(!S()||"TERMINATOR"!==H||","===K||q&&this.looksObjectish(h+1))break;else{if("HERECOMMENT"===u)return A(1);r()}if(!(","!==
|
||||||
a=function(a,c){return this.tokens.splice(","===this.tag(c-1)?c-1:c,0,h)};return this.scanTokens(function(f,q,r){var k,l,x;f=f[0];if("TERMINATOR"===f){if("ELSE"===this.tag(q+1)&&"OUTDENT"!==this.tag(q-1))return r.splice.apply(r,[q,1].concat(m.call(this.indentation()))),1;if(k=this.tag(q+1),0<=E.call(D,k))return r.splice(q,1),0}if("CATCH"===f)for(k=l=1;2>=l;k=++l)if("OUTDENT"===(x=this.tag(q+k))||"TERMINATOR"===x||"FINALLY"===x)return r.splice.apply(r,[q+k,0].concat(m.call(this.indentation()))),2+
|
H||this.looksObjectish(h+1)||!S()||this.insideForDeclaration||"TERMINATOR"===u&&this.looksObjectish(h+2)))for(u="OUTDENT"===u?1:0;S();)r(h+u);return A(1)})};n.prototype.addLocationDataToGeneratedTokens=function(){return this.scanTokens(function(a,b,f){var c,n;if(a[2]||!a.generated&&!a.explicit)return 1;if("{"===a[0]&&(c=null!=(n=f[b+1])?n[2]:void 0)){var q=c.first_line;c=c.first_column}else(c=null!=(q=f[b-1])?q[2]:void 0)?(q=c.last_line,c=c.last_column):q=c=0;a[2]={first_line:q,first_column:c,last_line:q,
|
||||||
k;0<=E.call(z,f)&&"INDENT"!==this.tag(q+1)&&("ELSE"!==f||"IF"!==this.tag(q+1))&&(g=f,x=this.indentation(r[q]),d=x[0],h=x[1],"THEN"===g&&(d.fromThen=!0),r.splice(q+1,0,d),this.detectEnd(q+2,c,a),"THEN"===f&&r.splice(q,1));return 1})};g.prototype.tagPostfixConditionals=function(){var a,c,d;d=null;c=function(a,c){a=a[0];c=this.tokens[c-1][0];return"TERMINATOR"===a||"INDENT"===a&&0>E.call(z,c)};a=function(a,c){if("INDENT"!==a[0]||a.generated&&!a.fromThen)return d[0]="POST_"+d[0]};return this.scanTokens(function(h,
|
last_column:c};return 1})};n.prototype.fixOutdentLocationData=function(){return this.scanTokens(function(a,b,f){if(!("OUTDENT"===a[0]||a.generated&&"CALL_END"===a[0]||a.generated&&"}"===a[0]))return 1;b=f[b-1][2];a[2]={first_line:b.last_line,first_column:b.last_column,last_line:b.last_line,last_column:b.last_column};return 1})};n.prototype.normalizeLines=function(){var b,f;var n=b=f=null;var h=function(a,b){var c,f,h,q;return";"!==a[1]&&(c=a[0],0<=x.call(O,c))&&!("TERMINATOR"===a[0]&&(f=this.tag(b+
|
||||||
g){if("IF"!==h[0])return 1;d=h;this.detectEnd(g+1,c,a);return 1})};g.prototype.indentation=function(a){var c,d;c=["INDENT",2];d=["OUTDENT",2];a?(c.generated=d.generated=!0,c.origin=d.origin=a):c.explicit=d.explicit=!0;return[c,d]};g.prototype.generate=n;g.prototype.tag=function(a){var c;return null!=(c=this.tokens[a])?c[0]:void 0};return g}();t=[["(",")"],["[","]"],["{","}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["STRING_START","STRING_END"],
|
1),0<=x.call(I,f)))&&!("ELSE"===a[0]&&"THEN"!==n)&&!!("CATCH"!==(h=a[0])&&"FINALLY"!==h||"-\x3e"!==n&&"\x3d\x3e"!==n)||(q=a[0],0<=x.call(B,q))&&(this.tokens[b-1].newLine||"OUTDENT"===this.tokens[b-1][0])};var e=function(a,b){return this.tokens.splice(","===this.tag(b-1)?b-1:b,0,f)};return this.scanTokens(function(c,q,k){var w,p,t;c=c[0];if("TERMINATOR"===c){if("ELSE"===this.tag(q+1)&&"OUTDENT"!==this.tag(q-1))return k.splice.apply(k,[q,1].concat(a.call(this.indentation()))),1;if(w=this.tag(q+1),0<=
|
||||||
["REGEX_START","REGEX_END"]];f.INVERSES=u={};c=[];a=[];G=0;for(I=t.length;G<I;G++)x=t[G],L=x[0],x=x[1],c.push(u[x]=L),a.push(u[L]=x);D=["CATCH","THEN","ELSE","FINALLY"].concat(a);v="IDENTIFIER PROPERTY SUPER ) CALL_END ] INDEX_END @ THIS".split(" ");Ca="IDENTIFIER PROPERTY NUMBER INFINITY NAN STRING STRING_START REGEX REGEX_START JS NEW PARAM_START CLASS IF TRY SWITCH THIS UNDEFINED NULL BOOL UNARY YIELD UNARY_MATH SUPER THROW @ -\x3e \x3d\x3e [ ( { -- ++".split(" ");l=["+","-"];d="POST_IF FOR WHILE UNTIL WHEN BY LOOP TERMINATOR".split(" ");
|
x.call(I,w))return k.splice(q,1),0}if("CATCH"===c)for(w=p=1;2>=p;w=++p)if("OUTDENT"===(t=this.tag(q+w))||"TERMINATOR"===t||"FINALLY"===t)return k.splice.apply(k,[q+w,0].concat(a.call(this.indentation()))),2+w;0<=x.call(G,c)&&"INDENT"!==this.tag(q+1)&&("ELSE"!==c||"IF"!==this.tag(q+1))&&(n=c,t=this.indentation(k[q]),b=t[0],f=t[1],"THEN"===n&&(b.fromThen=!0),k.splice(q+1,0,b),this.detectEnd(q+2,h,e),"THEN"===c&&k.splice(q,1));return 1})};n.prototype.tagPostfixConditionals=function(){var a=null;var b=
|
||||||
z="ELSE -\x3e \x3d\x3e TRY FINALLY THEN".split(" ");w="TERMINATOR CATCH FINALLY ELSE OUTDENT LEADING_WHEN".split(" ");F=["TERMINATOR","INDENT","OUTDENT"];xa=[".","?.","::","?::"]}).call(this);return f}();t["./lexer"]=function(){var f={};(function(){var ta,xa,D,a,c,Ca,d,v,l,u,F,w,z,n,G,L,I,x,E,m,g,r,q,k,h,K,O,H,y,T,S,P,Z,R,C,A,W,B,N,X,Y,V,U,J,aa,Q,pa,ya,Xa,ia,ba,da,ga,fa,ka,ja,M,ha,ca=[].indexOf||function(a){for(var c=0,d=this.length;c<d;c++)if(c in this&&this[c]===a)return c;return-1},oa=[].slice;
|
function(a,b){a=a[0];b=this.tokens[b-1][0];return"TERMINATOR"===a||"INDENT"===a&&0>x.call(G,b)};var f=function(b,c){if("INDENT"!==b[0]||b.generated&&!b.fromThen)return a[0]="POST_"+a[0]};return this.scanTokens(function(c,n){if("IF"!==c[0])return 1;a=c;this.detectEnd(n+1,b,f);return 1})};n.prototype.indentation=function(a){var b=["INDENT",2];var c=["OUTDENT",2];a?(b.generated=c.generated=!0,b.origin=c.origin=a):b.explicit=c.explicit=!0;return[b,c]};n.prototype.generate=b;n.prototype.tag=function(a){var b;
|
||||||
ja=t("./rewriter");B=ja.Rewriter;g=ja.INVERSES;ja=t("./helpers");da=ja.count;M=ja.repeat;ga=ja.invertLiterate;ha=ja.throwSyntaxError;f.Lexer=function(){function f(){}f.prototype.tokenize=function(a,c){var d,f,qa,h;null==c&&(c={});this.literate=c.literate;this.outdebt=this.indebt=this.baseIndent=this.indent=0;this.indents=[];this.ends=[];this.tokens=[];this.exportSpecifierList=this.seenExport=this.seenImport=this.seenFor=!1;this.chunkLine=c.line||0;this.chunkColumn=c.column||0;a=this.clean(a);for(qa=
|
return null!=(b=this.tokens[a])?b[0]:void 0};return n}();var za=[["(",")"],["[","]"],["{","}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["STRING_START","STRING_END"],["REGEX_START","REGEX_END"]];e.INVERSES=u={};var f=[];var k=[];var t=0;for(r=za.length;t<r;t++){var p=za[t];var z=p[0];p=p[1];f.push(u[p]=z);k.push(u[z]=p)}var I=["CATCH","THEN","ELSE","FINALLY"].concat(k);var J="IDENTIFIER PROPERTY SUPER ) CALL_END ] INDEX_END @ THIS".split(" ");
|
||||||
0;this.chunk=a.slice(qa);)if(d=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken(),h=this.getLineAndColumnFromChunk(d),this.chunkLine=h[0],this.chunkColumn=h[1],qa+=d,c.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:qa};this.closeIndentation();(f=this.ends.pop())&&this.error("missing "+f.tag,f.origin[2]);return!1===c.rewrite?this.tokens:(new B).rewrite(this.tokens)};
|
var F="IDENTIFIER PROPERTY NUMBER INFINITY NAN STRING STRING_START REGEX REGEX_START JS NEW PARAM_START CLASS IF TRY SWITCH THIS UNDEFINED NULL BOOL UNARY YIELD UNARY_MATH SUPER THROW @ -\x3e \x3d\x3e [ ( { -- ++".split(" ");var N=["+","-"];var y="POST_IF FOR WHILE UNTIL WHEN BY LOOP TERMINATOR".split(" ");var G="ELSE -\x3e \x3d\x3e TRY FINALLY THEN".split(" ");var O="TERMINATOR CATCH FINALLY ELSE OUTDENT LEADING_WHEN".split(" ");var Q=["TERMINATOR","INDENT","OUTDENT"];var B=[".","?.","::","?::"]}).call(this);
|
||||||
f.prototype.clean=function(a){a.charCodeAt(0)===ta&&(a=a.slice(1));a=a.replace(/\r/g,"").replace(pa,"");ba.test(a)&&(a="\n"+a,this.chunkLine--);this.literate&&(a=ga(a));return a};f.prototype.identifierToken=function(){var d,f,g,m,r,k,l,x,D,y,n;if(!(f=I.exec(this.chunk)))return 0;r=f[0];g=f[1];f=f[2];m=g.length;k=void 0;if("own"===g&&"FOR"===this.tag())return this.token("OWN",g),g.length;if("from"===g&&"YIELD"===this.tag())return this.token("FROM",g),g.length;if("as"===g&&this.seenImport){if("*"===
|
return e}();u["./lexer"]=function(){var e={};(function(){var ra,r=[].indexOf||function(a){for(var b=0,c=this.length;b<c;b++)if(b in this&&this[b]===a)return b;return-1},x=[].slice;var a=u("./rewriter");var b=a.Rewriter;var za=a.INVERSES;a=u("./helpers");var f=a.count;var k=a.repeat;var t=a.invertLiterate;var p=a.throwSyntaxError;e.Lexer=function(){function a(){}a.prototype.tokenize=function(a,c){var f,Da;null==c&&(c={});this.literate=c.literate;this.outdebt=this.indebt=this.baseIndent=this.indent=
|
||||||
this.value())this.tokens[this.tokens.length-1][0]="IMPORT_ALL";else if(l=this.value(),0<=ca.call(Ca,l))this.tokens[this.tokens.length-1][0]="IDENTIFIER";if("IMPORT_ALL"===(x=this.tag())||"IDENTIFIER"===x)return this.token("AS",g),g.length}if("as"===g&&this.seenExport&&"IDENTIFIER"===this.tag())return this.token("AS",g),g.length;if("default"===g&&this.seenExport)return this.token("DEFAULT",g),g.length;l=this.tokens;l=l[l.length-1];n=f||null!=l&&("."===(D=l[0])||"?."===D||"::"===D||"?::"===D||!l.spaced&&
|
0;this.indents=[];this.ends=[];this.tokens=[];this.exportSpecifierList=this.importSpecifierList=this.seenExport=this.seenImport=this.seenFor=!1;this.chunkLine=c.line||0;this.chunkColumn=c.column||0;a=this.clean(a);for(Da=0;this.chunk=a.slice(Da);){var n=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken();var h=this.getLineAndColumnFromChunk(n);this.chunkLine=h[0];this.chunkColumn=
|
||||||
"@"===l[0])?"PROPERTY":"IDENTIFIER";"IDENTIFIER"!==n||!(0<=ca.call(q,g)||0<=ca.call(Ca,g))||this.exportSpecifierList&&0<=ca.call(Ca,g)?"IDENTIFIER"===n&&this.seenFor&&"from"===g&&(n="FORFROM",this.seenFor=!1):(n=g.toUpperCase(),"WHEN"===n&&(y=this.tag(),0<=ca.call(h,y))?n="LEADING_WHEN":"FOR"===n?this.seenFor=!0:"UNLESS"===n?n="IF":"IMPORT"===n?this.seenImport=!0:"EXPORT"===n?this.seenExport=!0:0<=ca.call(ya,n)?n="UNARY":0<=ca.call(A,n)&&("INSTANCEOF"!==n&&this.seenFor?(n="FOR"+n,this.seenFor=!1):
|
h[1];Da+=n;if(c.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:Da}}this.closeIndentation();(f=this.ends.pop())&&this.error("missing "+f.tag,f.origin[2]);return!1===c.rewrite?this.tokens:(new b).rewrite(this.tokens)};a.prototype.clean=function(a){a.charCodeAt(0)===Q&&(a=a.slice(1));a=a.replace(/\r/g,"").replace(Y,"");w.test(a)&&(a="\n"+a,this.chunkLine--);this.literate&&(a=t(a));return a};a.prototype.identifierToken=function(){var a,b,c,f,n,h,q;if(!(a=B.exec(this.chunk)))return 0;
|
||||||
(n="RELATION","!"===this.value()&&(k=this.tokens.pop(),g="!"+g))));"IDENTIFIER"===n&&0<=ca.call(W,g)&&this.error("reserved word '"+g+"'",{length:g.length});"PROPERTY"!==n&&(0<=ca.call(a,g)&&(d=g,g=c[g]),n=function(){switch(g){case "!":return"UNARY";case "\x3d\x3d":case "!\x3d":return"COMPARE";case "true":case "false":return"BOOL";case "break":case "continue":case "debugger":return"STATEMENT";case "\x26\x26":case "||":return g;default:return n}}());D=this.token(n,g,0,m);d&&(D.origin=[n,d,D[2]]);k&&
|
var e=a[0];var k=a[1];a=a[2];var x=k.length;var w=void 0;if("own"===k&&"FOR"===this.tag())return this.token("OWN",k),k.length;if("from"===k&&"YIELD"===this.tag())return this.token("FROM",k),k.length;if("as"===k&&this.seenImport){if("*"===this.value())this.tokens[this.tokens.length-1][0]="IMPORT_ALL";else if(b=this.value(),0<=r.call(F,b))this.tokens[this.tokens.length-1][0]="IDENTIFIER";if("DEFAULT"===(c=this.tag())||"IMPORT_ALL"===c||"IDENTIFIER"===c)return this.token("AS",k),k.length}if("as"===k&&
|
||||||
(d=[k[2].first_line,k[2].first_column],D[2].first_line=d[0],D[2].first_column=d[1]);f&&(d=r.lastIndexOf(":"),this.token(":",":",d,f.length));return r.length};f.prototype.numberToken=function(){var a,c,d,g;if(!(c=T.exec(this.chunk)))return 0;d=c[0];c=d.length;switch(!1){case !/^0[BOX]/.test(d):this.error("radix prefix in '"+d+"' must be lowercase",{offset:1});break;case !/^(?!0x).*E/.test(d):this.error("exponential notation in '"+d+"' must be indicated with a lowercase 'e'",{offset:d.indexOf("E")});
|
this.seenExport&&("IDENTIFIER"===(f=this.tag())||"DEFAULT"===f))return this.token("AS",k),k.length;if("default"===k&&this.seenExport&&("EXPORT"===(n=this.tag())||"AS"===n))return this.token("DEFAULT",k),k.length;b=this.tokens;b=b[b.length-1];var p=a||null!=b&&("."===(h=b[0])||"?."===h||"::"===h||"?::"===h||!b.spaced&&"@"===b[0])?"PROPERTY":"IDENTIFIER";"IDENTIFIER"!==p||!(0<=r.call(J,k)||0<=r.call(F,k))||this.exportSpecifierList&&0<=r.call(F,k)?"IDENTIFIER"===p&&this.seenFor&&"from"===k&&I(b)&&(p=
|
||||||
break;case !/^0\d*[89]/.test(d):this.error("decimal literal '"+d+"' must not be prefixed with '0'",{length:c});break;case !/^0\d+/.test(d):this.error("octal literal '"+d+"' must be prefixed with '0o'",{length:c})}a=function(){switch(d.charAt(1)){case "b":return 2;case "o":return 8;case "x":return 16;default:return null}}();a=null!=a?parseInt(d.slice(2),a):parseFloat(d);if("b"===(g=d.charAt(1))||"o"===g)d="0x"+a.toString(16);this.token(Infinity===a?"INFINITY":"NUMBER",d,0,c);return c};f.prototype.stringToken=
|
"FORFROM",this.seenFor=!1):(p=k.toUpperCase(),"WHEN"===p&&(q=this.tag(),0<=r.call(sa,q))?p="LEADING_WHEN":"FOR"===p?this.seenFor=!0:"UNLESS"===p?p="IF":"IMPORT"===p?this.seenImport=!0:"EXPORT"===p?this.seenExport=!0:0<=r.call(ia,p)?p="UNARY":0<=r.call(qa,p)&&("INSTANCEOF"!==p&&this.seenFor?(p="FOR"+p,this.seenFor=!1):(p="RELATION","!"===this.value()&&(w=this.tokens.pop(),k="!"+k))));"IDENTIFIER"===p&&0<=r.call(G,k)&&this.error("reserved word '"+k+"'",{length:k.length});if("PROPERTY"!==p){if(0<=r.call(y,
|
||||||
function(){var a,c,d,g,f,h,m,q,r,n,l,D;r=(aa.exec(this.chunk)||[])[0];if(!r)return 0;this.tokens.length&&"from"===this.value()&&(this.seenImport||this.seenExport)&&(this.tokens[this.tokens.length-1][0]="FROM");d=function(){switch(r){case "'":return J;case '"':return V;case "'''":return z;case '"""':return F}}();g=3===r.length;d=this.matchWithInterpolations(d,r);D=d.tokens;f=d.index;a=D.length-1;d=r.charAt(0);if(g){m=null;for(g=function(){var a,c,d;d=[];h=a=0;for(c=D.length;a<c;h=++a)l=D[h],"NEOSTRING"===
|
k)){var t=k;k=N[k]}p=function(){switch(k){case "!":return"UNARY";case "\x3d\x3d":case "!\x3d":return"COMPARE";case "true":case "false":return"BOOL";case "break":case "continue":case "debugger":return"STATEMENT";case "\x26\x26":case "||":return k;default:return p}}()}h=this.token(p,k,0,x);t&&(h.origin=[p,t,h[2]]);w&&(t=[w[2].first_line,w[2].first_column],h[2].first_line=t[0],h[2].first_column=t[1]);a&&(t=e.lastIndexOf(":"),this.token(":",":",t,a.length));return e.length};a.prototype.numberToken=function(){var a,
|
||||||
l[0]&&d.push(l[1]);return d}().join("#{}");c=w.exec(g);)if(c=c[1],null===m||0<(n=c.length)&&n<m.length)m=c;m&&(q=RegExp("\\n"+m,"g"));this.mergeInterpolationTokens(D,{delimiter:d},function(c){return function(d,g){d=c.formatString(d);q&&(d=d.replace(q,"\n"));0===g&&(d=d.replace(k,""));g===a&&(d=d.replace(Q,""));return d}}(this))}else this.mergeInterpolationTokens(D,{delimiter:d},function(c){return function(d,g){d=c.formatString(d);return d=d.replace(X,function(c,f){return 0===g&&0===f||g===a&&f+c.length===
|
b;if(!(a=n.exec(this.chunk)))return 0;var c=a[0];a=c.length;switch(!1){case !/^0[BOX]/.test(c):this.error("radix prefix in '"+c+"' must be lowercase",{offset:1});break;case !/^(?!0x).*E/.test(c):this.error("exponential notation in '"+c+"' must be indicated with a lowercase 'e'",{offset:c.indexOf("E")});break;case !/^0\d*[89]/.test(c):this.error("decimal literal '"+c+"' must not be prefixed with '0'",{length:a});break;case !/^0\d+/.test(c):this.error("octal literal '"+c+"' must be prefixed with '0o'",
|
||||||
d.length?"":" "})}}(this));return f};f.prototype.commentToken=function(){var a,c,g;if(!(g=this.chunk.match(d)))return 0;a=g[0];if(c=g[1])(g=u.exec(a))&&this.error("block comments cannot contain "+g[0],{offset:g.index,length:g[0].length}),0<=c.indexOf("\n")&&(c=c.replace(RegExp("\\n"+M(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",c,0,a.length);return a.length};f.prototype.jsToken=function(){var a,c;if("`"!==this.chunk.charAt(0)||!(a=L.exec(this.chunk)||r.exec(this.chunk)))return 0;c=a[1].replace(/\\+(`|$)/g,
|
{length:a})}var f=function(){switch(c.charAt(1)){case "b":return 2;case "o":return 8;case "x":return 16;default:return null}}();f=null!=f?parseInt(c.slice(2),f):parseFloat(c);if("b"===(b=c.charAt(1))||"o"===b)c="0x"+f.toString(16);this.token(Infinity===f?"INFINITY":"NUMBER",c,0,a);return a};a.prototype.stringToken=function(){var a,b,c,f,n;var h=(U.exec(this.chunk)||[])[0];if(!h)return 0;this.tokens.length&&"from"===this.value()&&(this.seenImport||this.seenExport)&&(this.tokens[this.tokens.length-
|
||||||
function(a){return a.slice(-Math.ceil(a.length/2))});this.token("JS",c,0,a[0].length);return a[0].length};f.prototype.regexToken=function(){var a,c,d,g,f,h,m,r;switch(!1){case !(c=C.exec(this.chunk)):this.error("regular expressions cannot begin with "+c[2],{offset:c.index+c[1].length});break;case !(c=this.matchWithInterpolations(n,"///")):r=c.tokens;f=c.index;break;case !(c=Z.exec(this.chunk)):m=c[0];a=c[1];c=c[2];this.validateEscapes(a,{isRegex:!0,offsetInChunk:1});f=m.length;h=this.tokens;if(h=
|
1][0]="FROM");var k=function(){switch(h){case "'":return W;case '"':return H;case "'''":return Z;case '"""':return T}}();var q=3===h.length;k=this.matchWithInterpolations(k,h);var e=k.tokens;var p=k.index;var x=e.length-1;k=h.charAt(0);if(q){var w=null;for(q=function(){var a,c;var m=[];b=a=0;for(c=e.length;a<c;b=++a)n=e[b],"NEOSTRING"===n[0]&&m.push(n[1]);return m}().join("#{}");a=A.exec(q);)if(a=a[1],null===w||0<(f=a.length)&&f<w.length)w=a;w&&(c=RegExp("\\n"+w,"g"));this.mergeInterpolationTokens(e,
|
||||||
h[h.length-1])if(h.spaced&&(d=h[0],0<=ca.call(xa,d))){if(!c||P.test(m))return 0}else if(g=h[0],0<=ca.call(y,g))return 0;c||this.error("missing / (unclosed regex)");break;default:return 0}g=R.exec(this.chunk.slice(f))[0];d=f+g.length;c=this.makeToken("REGEX",null,0,d);switch(!1){case !!ia.test(g):this.error("invalid regular expression flags "+g,{offset:f,length:g.length});break;case !(m||1===r.length):null==a&&(a=this.formatHeregex(r[0][1]));this.token("REGEX",""+this.makeDelimitedLiteral(a,{delimiter:"/"})+
|
{delimiter:k},function(a){return function(b,m){b=a.formatString(b,{delimiter:h});c&&(b=b.replace(c,"\n"));0===m&&(b=b.replace(Aa,""));m===x&&(b=b.replace(ma,""));return b}}(this))}else this.mergeInterpolationTokens(e,{delimiter:k},function(a){return function(b,m){b=a.formatString(b,{delimiter:h});return b=b.replace(D,function(a,d){return 0===m&&0===d||m===x&&d+a.length===b.length?"":" "})}}(this));return p};a.prototype.commentToken=function(){var a,b;if(!(b=this.chunk.match(q)))return 0;var c=b[0];
|
||||||
g,0,d,c);break;default:this.token("REGEX_START","(",0,0,c),this.token("IDENTIFIER","RegExp",0,0),this.token("CALL_START","(",0,0),this.mergeInterpolationTokens(r,{delimiter:'"',double:!0},this.formatHeregex),g&&(this.token(",",",",f,0),this.token("STRING",'"'+g+'"',f,g.length)),this.token(")",")",d,0),this.token("REGEX_END",")",d,0)}return d};f.prototype.lineToken=function(){var a,c,d;if(!(c=H.exec(this.chunk)))return 0;c=c[0];this.seenFor=!1;d=c.length-1-c.lastIndexOf("\n");a=this.unfinished();if(d-
|
if(a=b[1])(b=X.exec(c))&&this.error("block comments cannot contain "+b[0],{offset:b.index,length:b[0].length}),0<=a.indexOf("\n")&&(a=a.replace(RegExp("\\n"+k(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",a,0,c.length);return c.length};a.prototype.jsToken=function(){var a;if("`"!==this.chunk.charAt(0)||!(a=L.exec(this.chunk)||P.exec(this.chunk)))return 0;var b=a[1].replace(/\\+(`|$)/g,function(a){return a.slice(-Math.ceil(a.length/2))});this.token("JS",b,0,a[0].length);return a[0].length};
|
||||||
this.indebt===this.indent)return a?this.suppressNewlines():this.newlineToken(0),c.length;if(d>this.indent){if(a)return this.indebt=d-this.indent,this.suppressNewlines(),c.length;if(!this.tokens.length)return this.baseIndent=this.indent=d,c.length;a=d-this.indent+this.outdebt;this.token("INDENT",a,c.length-d,d);this.indents.push(a);this.ends.push({tag:"OUTDENT"});this.outdebt=this.indebt=0;this.indent=d}else d<this.baseIndent?this.error("missing indentation",{offset:c.length}):(this.indebt=0,this.outdentToken(this.indent-
|
a.prototype.regexToken=function(){var a,b,c;switch(!1){case !(a=S.exec(this.chunk)):this.error("regular expressions cannot begin with "+a[2],{offset:a.index+a[1].length});break;case !(a=this.matchWithInterpolations(ba,"///")):var f=a.tokens;var h=a.index;break;case !(a=ic.exec(this.chunk)):var n=a[0];var k=a[1];a=a[2];this.validateEscapes(k,{isRegex:!0,offsetInChunk:1});k=this.formatRegex(k,{delimiter:"/"});h=n.length;var q=this.tokens;if(q=q[q.length-1])if(q.spaced&&(b=q[0],0<=r.call(ha,b))){if(!a||
|
||||||
d,a,c.length));return c.length};f.prototype.outdentToken=function(a,c,d){var g,f,h,m;for(g=this.indent-a;0<a;)(h=this.indents[this.indents.length-1])?h===this.outdebt?(a-=this.outdebt,this.outdebt=0):h<this.outdebt?(this.outdebt-=h,a-=h):(f=this.indents.pop()+this.outdebt,d&&(m=this.chunk[d],0<=ca.call(x,m))&&(g-=f-a,a=f),this.outdebt=0,this.pair("OUTDENT"),this.token("OUTDENT",a,0,d),a-=f):a=0;f&&(this.outdebt-=a);for(;";"===this.value();)this.tokens.pop();"TERMINATOR"===this.tag()||c||this.token("TERMINATOR",
|
v.test(n))return 0}else if(c=q[0],0<=r.call(oa,c))return 0;a||this.error("missing / (unclosed regex)");break;default:return 0}c=E.exec(this.chunk.slice(h))[0];b=h+c.length;a=this.makeToken("REGEX",null,0,b);switch(!1){case !!aa.test(c):this.error("invalid regular expression flags "+c,{offset:h,length:c.length});break;case !(n||1===f.length):null==k&&(k=this.formatHeregex(f[0][1]));this.token("REGEX",""+this.makeDelimitedLiteral(k,{delimiter:"/"})+c,0,b,a);break;default:this.token("REGEX_START","(",
|
||||||
"\n",d,0);this.indent=g;return this};f.prototype.whitespaceToken=function(){var a,c;if(!(a=ba.exec(this.chunk))&&"\n"!==this.chunk.charAt(0))return 0;c=this.tokens;(c=c[c.length-1])&&(c[a?"spaced":"newLine"]=!0);return a?a[0].length:0};f.prototype.newlineToken=function(a){for(;";"===this.value();)this.tokens.pop();"TERMINATOR"!==this.tag()&&this.token("TERMINATOR","\n",a,0);return this};f.prototype.suppressNewlines=function(){"\\"===this.value()&&this.tokens.pop();return this};f.prototype.literalToken=
|
0,0,a),this.token("IDENTIFIER","RegExp",0,0),this.token("CALL_START","(",0,0),this.mergeInterpolationTokens(f,{delimiter:'"',double:!0},this.formatHeregex),c&&(this.token(",",",",h-1,0),this.token("STRING",'"'+c+'"',h-1,c.length)),this.token(")",")",b-1,0),this.token("REGEX_END",")",b-1,0)}return b};a.prototype.lineToken=function(){var a;if(!(a=K.exec(this.chunk)))return 0;a=a[0];this.seenFor=!1;this.importSpecifierList||(this.seenImport=!1);this.exportSpecifierList||(this.seenExport=!1);var b=a.length-
|
||||||
function(){var a,c,d,f,h,m,r,q;(a=S.exec(this.chunk))?(a=a[0],D.test(a)&&this.tagParameters()):a=this.chunk.charAt(0);q=a;f=this.tokens;if((f=f[f.length-1])&&0<=ca.call(["\x3d"].concat(oa.call(l)),a)&&(r=!1,"\x3d"!==a||"||"!==(d=f[1])&&"\x26\x26"!==d||f.spaced||(f[0]="COMPOUND_ASSIGN",f[1]+="\x3d",f=this.tokens[this.tokens.length-2],r=!0),f&&"PROPERTY"!==f[0]&&(d=null!=(c=f.origin)?c:f,(c=fa(f[1],d[1]))&&this.error(c,d[2])),r))return a.length;"{"===a&&"EXPORT"===(null!=f?f[0]:void 0)?this.exportSpecifierList=
|
1-a.lastIndexOf("\n");var c=this.unfinished();if(b-this.indebt===this.indent)return c?this.suppressNewlines():this.newlineToken(0),a.length;if(b>this.indent){if(c)return this.indebt=b-this.indent,this.suppressNewlines(),a.length;if(!this.tokens.length)return this.baseIndent=this.indent=b,a.length;c=b-this.indent+this.outdebt;this.token("INDENT",c,a.length-b,b);this.indents.push(c);this.ends.push({tag:"OUTDENT"});this.outdebt=this.indebt=0;this.indent=b}else b<this.baseIndent?this.error("missing indentation",
|
||||||
!0:this.exportSpecifierList&&"}"===a&&(this.exportSpecifierList=!1);if(";"===a)this.seenFor=this.seenImport=this.seenExport=!1,q="TERMINATOR";else if("*"===a&&"EXPORT"===f[0])q="EXPORT_ALL";else if(0<=ca.call(O,a))q="MATH";else if(0<=ca.call(v,a))q="COMPARE";else if(0<=ca.call(l,a))q="COMPOUND_ASSIGN";else if(0<=ca.call(ya,a))q="UNARY";else if(0<=ca.call(Xa,a))q="UNARY_MATH";else if(0<=ca.call(N,a))q="SHIFT";else if("?"===a&&null!=f&&f.spaced)q="BIN?";else if(f&&!f.spaced)if("("===a&&(h=f[0],0<=ca.call(xa,
|
{offset:a.length}):(this.indebt=0,this.outdentToken(this.indent-b,c,a.length));return a.length};a.prototype.outdentToken=function(a,b,c){var f,h,n;for(f=this.indent-a;0<a;)if(h=this.indents[this.indents.length-1])if(h===this.outdebt)a-=this.outdebt,this.outdebt=0;else if(h<this.outdebt)this.outdebt-=h,a-=h;else{var k=this.indents.pop()+this.outdebt;c&&(n=this.chunk[c],0<=r.call(ca,n))&&(f-=k-a,a=k);this.outdebt=0;this.pair("OUTDENT");this.token("OUTDENT",a,0,c);a-=k}else a=0;k&&(this.outdebt-=a);
|
||||||
h)))"?"===f[0]&&(f[0]="FUNC_EXIST"),q="CALL_START";else if("["===a&&(m=f[0],0<=ca.call(E,m)))switch(q="INDEX_START",f[0]){case "?":f[0]="INDEX_SOAK"}h=this.makeToken(q,a);switch(a){case "(":case "{":case "[":this.ends.push({tag:g[a],origin:h});break;case ")":case "}":case "]":this.pair(a)}this.tokens.push(h);return a.length};f.prototype.tagParameters=function(){var a,c,d,f;if(")"!==this.tag())return this;c=[];f=this.tokens;a=f.length;for(f[--a][0]="PARAM_END";d=f[--a];)switch(d[0]){case ")":c.push(d);
|
for(;";"===this.value();)this.tokens.pop();"TERMINATOR"===this.tag()||b||this.token("TERMINATOR","\n",c,0);this.indent=f;return this};a.prototype.whitespaceToken=function(){var a;if(!(a=w.exec(this.chunk))&&"\n"!==this.chunk.charAt(0))return 0;var b=this.tokens;(b=b[b.length-1])&&(b[a?"spaced":"newLine"]=!0);return a?a[0].length:0};a.prototype.newlineToken=function(a){for(;";"===this.value();)this.tokens.pop();"TERMINATOR"!==this.tag()&&this.token("TERMINATOR","\n",a,0);return this};a.prototype.suppressNewlines=
|
||||||
break;case "(":case "CALL_START":if(c.length)c.pop();else return"("===d[0]&&(d[0]="PARAM_START"),this}return this};f.prototype.closeIndentation=function(){return this.outdentToken(this.indent)};f.prototype.matchWithInterpolations=function(a,c){var d,g,h,m,q,r,k,n;n=[];q=c.length;if(this.chunk.slice(0,q)!==c)return null;for(k=this.chunk.slice(q);;){m=a.exec(k)[0];this.validateEscapes(m,{isRegex:"/"===c.charAt(0),offsetInChunk:q});n.push(this.makeToken("NEOSTRING",m,q));k=k.slice(m.length);q+=m.length;
|
function(){"\\"===this.value()&&this.tokens.pop();return this};a.prototype.literalToken=function(){var a,b,f,n,k;(a=c.exec(this.chunk))?(a=a[0],h.test(a)&&this.tagParameters()):a=this.chunk.charAt(0);var q=a;var e=this.tokens;if((e=e[e.length-1])&&0<=r.call(["\x3d"].concat(x.call(ea)),a)){var p=!1;"\x3d"!==a||"||"!==(f=e[1])&&"\x26\x26"!==f||e.spaced||(e[0]="COMPOUND_ASSIGN",e[1]+="\x3d",e=this.tokens[this.tokens.length-2],p=!0);e&&"PROPERTY"!==e[0]&&(f=null!=(b=e.origin)?b:e,(b=z(e[1],f[1]))&&this.error(b,
|
||||||
if("#{"!==k.slice(0,2))break;d=this.getLineAndColumnFromChunk(q+1);m=d[0];d=d[1];d=(new f).tokenize(k.slice(1),{line:m,column:d,untilBalanced:!0});m=d.tokens;g=d.index;g+=1;r=m[0];d=m[m.length-1];r[0]=r[1]="(";d[0]=d[1]=")";d.origin=["","end of interpolation",d[2]];"TERMINATOR"===(null!=(h=m[1])?h[0]:void 0)&&m.splice(1,1);n.push(["TOKENS",m]);k=k.slice(g);q+=g}k.slice(0,c.length)!==c&&this.error("missing "+c,{length:c.length});a=n[0];h=n[n.length-1];a[2].first_column-=c.length;"\n"===h[1].substr(-1)?
|
f[2]));if(p)return a.length}"{"===a&&this.seenImport?this.importSpecifierList=!0:this.importSpecifierList&&"}"===a?this.importSpecifierList=!1:"{"===a&&"EXPORT"===(null!=e?e[0]:void 0)?this.exportSpecifierList=!0:this.exportSpecifierList&&"}"===a&&(this.exportSpecifierList=!1);if(";"===a)this.seenFor=this.seenImport=this.seenExport=!1,q="TERMINATOR";else if("*"===a&&"EXPORT"===e[0])q="EXPORT_ALL";else if(0<=r.call(pa,a))q="MATH";else if(0<=r.call(la,a))q="COMPARE";else if(0<=r.call(ea,a))q="COMPOUND_ASSIGN";
|
||||||
(h[2].last_line+=1,h[2].last_column=c.length-1):h[2].last_column+=c.length;0===h[1].length&&--h[2].last_column;return{tokens:n,index:q+c.length}};f.prototype.mergeInterpolationTokens=function(a,c,d){var f,g,h,m,q,r,k,n,l,D,x,y;1<a.length&&(n=this.token("STRING_START","(",0,0));h=this.tokens.length;m=q=0;for(r=a.length;q<r;m=++q){D=a[m];f=D[0];y=D[1];switch(f){case "TOKENS":if(2===y.length)continue;k=y[0];x=y;break;case "NEOSTRING":f=d(D[1],m);if(0===f.length)if(0===m)g=this.tokens.length;else continue;
|
else if(0<=r.call(ia,a))q="UNARY";else if(0<=r.call(fa,a))q="UNARY_MATH";else if(0<=r.call(ja,a))q="SHIFT";else if("?"===a&&null!=e&&e.spaced)q="BIN?";else if(e&&!e.spaced)if("("===a&&(n=e[0],0<=r.call(ha,n)))"?"===e[0]&&(e[0]="FUNC_EXIST"),q="CALL_START";else if("["===a&&(k=e[0],0<=r.call(ka,k)))switch(q="INDEX_START",e[0]){case "?":e[0]="INDEX_SOAK"}n=this.makeToken(q,a);switch(a){case "(":case "{":case "[":this.ends.push({tag:za[a],origin:n});break;case ")":case "}":case "]":this.pair(a)}this.tokens.push(n);
|
||||||
2===m&&null!=g&&this.tokens.splice(g,2);D[0]="STRING";D[1]=this.makeDelimitedLiteral(f,c);k=D;x=[D]}this.tokens.length>h&&(m=this.token("+","+"),m[2]={first_line:k[2].first_line,first_column:k[2].first_column,last_line:k[2].first_line,last_column:k[2].first_column});(l=this.tokens).push.apply(l,x)}if(n)return a=a[a.length-1],n.origin=["STRING",null,{first_line:n[2].first_line,first_column:n[2].first_column,last_line:a[2].last_line,last_column:a[2].last_column}],n=this.token("STRING_END",")"),n[2]=
|
return a.length};a.prototype.tagParameters=function(){var a;if(")"!==this.tag())return this;var b=[];var c=this.tokens;var f=c.length;for(c[--f][0]="PARAM_END";a=c[--f];)switch(a[0]){case ")":b.push(a);break;case "(":case "CALL_START":if(b.length)b.pop();else return"("===a[0]&&(a[0]="PARAM_START"),this}return this};a.prototype.closeIndentation=function(){return this.outdentToken(this.indent)};a.prototype.matchWithInterpolations=function(b,c){var f,h;var n=[];var k=c.length;if(this.chunk.slice(0,k)!==
|
||||||
{first_line:a[2].last_line,first_column:a[2].last_column,last_line:a[2].last_line,last_column:a[2].last_column}};f.prototype.pair=function(a){var c;c=this.ends;c=c[c.length-1];return a!==(c=null!=c?c.tag:void 0)?("OUTDENT"!==c&&this.error("unmatched "+a),c=this.indents,c=c[c.length-1],this.outdentToken(c,!0),this.pair(a)):this.ends.pop()};f.prototype.getLineAndColumnFromChunk=function(a){var c,d;if(0===a)return[this.chunkLine,this.chunkColumn];d=a>=this.chunk.length?this.chunk:this.chunk.slice(0,
|
c)return null;for(h=this.chunk.slice(k);;){var q=b.exec(h)[0];this.validateEscapes(q,{isRegex:"/"===c.charAt(0),offsetInChunk:k});n.push(this.makeToken("NEOSTRING",q,k));h=h.slice(q.length);k+=q.length;if("#{"!==h.slice(0,2))break;var e=this.getLineAndColumnFromChunk(k+1);q=e[0];e=e[1];e=(new a).tokenize(h.slice(1),{line:q,column:e,untilBalanced:!0});q=e.tokens;var p=e.index;p+=1;var x=q[0];e=q[q.length-1];x[0]=x[1]="(";e[0]=e[1]=")";e.origin=["","end of interpolation",e[2]];"TERMINATOR"===(null!=
|
||||||
+(a-1)+1||9E9);a=da(d,"\n");c=this.chunkColumn;0<a?(c=d.split("\n"),c=c[c.length-1],c=c.length):c+=d.length;return[this.chunkLine+a,c]};f.prototype.makeToken=function(a,c,d,f){var g,h;null==d&&(d=0);null==f&&(f=c.length);g={};h=this.getLineAndColumnFromChunk(d);g.first_line=h[0];g.first_column=h[1];d=this.getLineAndColumnFromChunk(d+(0<f?f-1:0));g.last_line=d[0];g.last_column=d[1];return[a,c,g]};f.prototype.token=function(a,c,d,f,g){a=this.makeToken(a,c,d,f);g&&(a.origin=g);this.tokens.push(a);return a};
|
(f=q[1])?f[0]:void 0)&&q.splice(1,1);n.push(["TOKENS",q]);h=h.slice(p);k+=p}h.slice(0,c.length)!==c&&this.error("missing "+c,{length:c.length});b=n[0];f=n[n.length-1];b[2].first_column-=c.length;"\n"===f[1].substr(-1)?(f[2].last_line+=1,f[2].last_column=c.length-1):f[2].last_column+=c.length;0===f[1].length&&--f[2].last_column;return{tokens:n,index:k+c.length}};a.prototype.mergeInterpolationTokens=function(a,b,c){var f,h,n,k;1<a.length&&(n=this.token("STRING_START","(",0,0));var q=this.tokens.length;
|
||||||
f.prototype.tag=function(){var a;a=this.tokens;a=a[a.length-1];return null!=a?a[0]:void 0};f.prototype.value=function(){var a;a=this.tokens;a=a[a.length-1];return null!=a?a[1]:void 0};f.prototype.unfinished=function(){var a;return K.test(this.chunk)||"\\"===(a=this.tag())||"."===a||"?."===a||"?::"===a||"UNARY"===a||"MATH"===a||"UNARY_MATH"===a||"+"===a||"-"===a||"**"===a||"SHIFT"===a||"RELATION"===a||"COMPARE"===a||"\x26"===a||"^"===a||"|"===a||"\x26\x26"===a||"||"===a||"BIN?"===a||"THROW"===a||"EXTENDS"===
|
var e=f=0;for(h=a.length;f<h;e=++f){var p=a[e];var x=p[0];var w=p[1];switch(x){case "TOKENS":if(2===w.length)continue;var t=w[0];var Ia=w;break;case "NEOSTRING":x=c.call(this,p[1],e);if(0===x.length)if(0===e)var m=this.tokens.length;else continue;2===e&&null!=m&&this.tokens.splice(m,2);p[0]="STRING";p[1]=this.makeDelimitedLiteral(x,b);t=p;Ia=[p]}this.tokens.length>q&&(e=this.token("+","+"),e[2]={first_line:t[2].first_line,first_column:t[2].first_column,last_line:t[2].first_line,last_column:t[2].first_column});
|
||||||
a};f.prototype.formatString=function(a){return a.replace(U,"$1")};f.prototype.formatHeregex=function(a){return a.replace(G,"$1$2")};f.prototype.validateEscapes=function(a,c){var d,f,g,h,q;null==c&&(c={});if(f=m.exec(a))if(f[0],a=f[1],g=f[2],d=f[3],q=f[4],!c.isRegex||!g||"0"===g.charAt(0))return d="\\"+(g||d||q),this.error((g?"octal escape sequences are not allowed":"invalid escape sequence")+" "+d,{offset:(null!=(h=c.offsetInChunk)?h:0)+f.index+a.length,length:d.length})};f.prototype.makeDelimitedLiteral=
|
(k=this.tokens).push.apply(k,Ia)}if(n)return a=a[a.length-1],n.origin=["STRING",null,{first_line:n[2].first_line,first_column:n[2].first_column,last_line:a[2].last_line,last_column:a[2].last_column}],n=this.token("STRING_END",")"),n[2]={first_line:a[2].last_line,first_column:a[2].last_column,last_line:a[2].last_line,last_column:a[2].last_column}};a.prototype.pair=function(a){var b=this.ends;b=b[b.length-1];return a!==(b=null!=b?b.tag:void 0)?("OUTDENT"!==b&&this.error("unmatched "+a),b=this.indents,
|
||||||
function(a,c){null==c&&(c={});""===a&&"/"===c.delimiter&&(a="(?:)");a=a.replace(RegExp("(\\\\\\\\)|(\\\\0(?\x3d[1-7]))|\\\\?("+c.delimiter+")|\\\\?(?:(\\n)|(\\r)|(\\u2028)|(\\u2029))|(\\\\.)","g"),function(a,d,f,g,h,m,q,r,k){switch(!1){case !d:return c.double?d+d:d;case !f:return"\\x00";case !g:return"\\"+g;case !h:return"\\n";case !m:return"\\r";case !q:return"\\u2028";case !r:return"\\u2029";case !k:return c.double?"\\"+k:k}});return""+c.delimiter+a+c.delimiter};f.prototype.error=function(a,c){var d,
|
b=b[b.length-1],this.outdentToken(b,!0),this.pair(a)):this.ends.pop()};a.prototype.getLineAndColumnFromChunk=function(a){if(0===a)return[this.chunkLine,this.chunkColumn];var b=a>=this.chunk.length?this.chunk:this.chunk.slice(0,+(a-1)+1||9E9);a=f(b,"\n");var c=this.chunkColumn;0<a?(c=b.split("\n"),c=c[c.length-1],c=c.length):c+=b.length;return[this.chunkLine+a,c]};a.prototype.makeToken=function(a,b,c,f){null==c&&(c=0);null==f&&(f=b.length);var h={};var n=this.getLineAndColumnFromChunk(c);h.first_line=
|
||||||
f,g,h,m;null==c&&(c={});c="first_line"in c?c:(h=this.getLineAndColumnFromChunk(null!=(g=c.offset)?g:0),f=h[0],d=h[1],h,{first_line:f,first_column:d,last_column:d+(null!=(m=c.length)?m:1)-1});return ha(a,c)};return f}();fa=function(a,c){null==c&&(c=a);switch(!1){case 0>ca.call(oa.call(q).concat(oa.call(Ca)),a):return"keyword '"+c+"' can't be assigned";case 0>ca.call(Y,a):return"'"+c+"' can't be assigned";case 0>ca.call(W,a):return"reserved word '"+c+"' can't be assigned";default:return!1}};f.isUnassignable=
|
n[0];h.first_column=n[1];c=this.getLineAndColumnFromChunk(c+(0<f?f-1:0));h.last_line=c[0];h.last_column=c[1];return[a,b,h]};a.prototype.token=function(a,b,c,f,h){a=this.makeToken(a,b,c,f);h&&(a.origin=h);this.tokens.push(a);return a};a.prototype.tag=function(){var a=this.tokens;a=a[a.length-1];return null!=a?a[0]:void 0};a.prototype.value=function(){var a=this.tokens;a=a[a.length-1];return null!=a?a[1]:void 0};a.prototype.unfinished=function(){var a;return R.test(this.chunk)||(a=this.tag(),0<=r.call(xa,
|
||||||
fa;q="true false null this new delete typeof in instanceof return throw break continue debugger yield if else switch for while do try catch finally class extends super import export default".split(" ");Ca="undefined Infinity NaN then unless until loop of by when".split(" ");c={and:"\x26\x26",or:"||",is:"\x3d\x3d",isnt:"!\x3d",not:"!",yes:"true",no:"false",on:"true",off:"false"};a=function(){var a;a=[];for(ka in c)a.push(ka);return a}();Ca=Ca.concat(a);W="case function var void with const let enum native implements interface package private protected public static".split(" ");
|
a))};a.prototype.formatString=function(a,b){return this.replaceUnicodeCodePointEscapes(a.replace(V,"$1"),b)};a.prototype.formatHeregex=function(a){return this.formatRegex(a.replace(C,"$1$2"),{delimiter:"///"})};a.prototype.formatRegex=function(a,b){return this.replaceUnicodeCodePointEscapes(a,b)};a.prototype.unicodeCodePointToUnicodeEscapes=function(a){var b=function(a){a=a.toString(16);return"\\u"+k("0",4-a.length)+a};if(65536>a)return b(a);var c=Math.floor((a-65536)/1024)+55296;a=(a-65536)%1024+
|
||||||
Y=["arguments","eval"];f.JS_FORBIDDEN=q.concat(W).concat(Y);ta=65279;I=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/;T=/^0b[01]+|^0o[0-7]+|^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i;S=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/;ba=/^[^\n\S]+/;d=/^###([^#][\s\S]*?)(?:###[^\n\S]*|###$)|^(?:\s*#(?!##[^#]).*)+/;D=/^[-=]>/;H=/^(?:\n[^\n\S]*)+/;r=/^`(?!``)((?:[^`\\]|\\[\s\S])*)`/;L=/^```((?:[^`\\]|\\[\s\S]|`(?!``))*)```/;aa=/^(?:'''|"""|'|")/;J=/^(?:[^\\']|\\[\s\S])*/;
|
56320;return""+b(c)+b(a)};a.prototype.replaceUnicodeCodePointEscapes=function(a,b){return a.replace(ta,function(a){return function(c,f,h,n){if(f)return f;c=parseInt(h,16);1114111<c&&a.error("unicode code point escapes greater than \\u{10ffff} are not allowed",{offset:n+b.delimiter.length,length:h.length+4});return a.unicodeCodePointToUnicodeEscapes(c)}}(this))};a.prototype.validateEscapes=function(a,b){var c,f;null==b&&(b={});if(c=(b.isRegex?ya:M).exec(a)){c[0];a=c[1];var h=c[2];var n=c[3];var k=
|
||||||
V=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/;z=/^(?:[^\\']|\\[\s\S]|'(?!''))*/;F=/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/;U=/((?:\\\\)+)|\\[^\S\n]*\n\s*/g;X=/\s*\n\s*/g;w=/\n+([^\n\S]*)(?=\S)/g;Z=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/;R=/^\w*/;ia=/^(?!.*(.).*\1)[imgy]*$/;n=/^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/;G=/((?:\\\\)+)|\\(\s)|\s+(?:#.*)?/g;C=/^(\/|\/{3}\s*)(\*)/;P=/^\/=?\s/;u=/\*\//;K=/^\s*(?:,|\??\.(?![.\d])|::)/;m=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u(?![\da-fA-F]{4}).{0,4}))/;
|
c[4];var e=c[5];n="\\"+(h||n||k||e);return this.error((h?"octal escape sequences are not allowed":"invalid escape sequence")+" "+n,{offset:(null!=(f=b.offsetInChunk)?f:0)+c.index+a.length,length:n.length})}};a.prototype.makeDelimitedLiteral=function(a,b){null==b&&(b={});""===a&&"/"===b.delimiter&&(a="(?:)");a=a.replace(RegExp("(\\\\\\\\)|(\\\\0(?\x3d[1-7]))|\\\\?("+b.delimiter+")|\\\\?(?:(\\n)|(\\r)|(\\u2028)|(\\u2029))|(\\\\.)","g"),function(a,c,f,h,n,k,e,q,p){switch(!1){case !c:return b.double?
|
||||||
k=/^[^\n\S]*\n/;Q=/\n[^\n\S]*$/;pa=/\s+$/;l="-\x3d +\x3d /\x3d *\x3d %\x3d ||\x3d \x26\x26\x3d ?\x3d \x3c\x3c\x3d \x3e\x3e\x3d \x3e\x3e\x3e\x3d \x26\x3d ^\x3d |\x3d **\x3d //\x3d %%\x3d".split(" ");ya=["NEW","TYPEOF","DELETE","DO"];Xa=["!","~"];N=["\x3c\x3c","\x3e\x3e","\x3e\x3e\x3e"];v="\x3d\x3d !\x3d \x3c \x3e \x3c\x3d \x3e\x3d".split(" ");O=["*","/","%","//","%%"];A=["IN","OF","INSTANCEOF"];xa="IDENTIFIER PROPERTY ) ] ? @ THIS SUPER".split(" ");E=xa.concat("NUMBER INFINITY NAN STRING STRING_END REGEX REGEX_END BOOL NULL UNDEFINED } ::".split(" "));
|
c+c:c;case !f:return"\\x00";case !h:return"\\"+h;case !n:return"\\n";case !k:return"\\r";case !e:return"\\u2028";case !q:return"\\u2029";case !p:return b.double?"\\"+p:p}});return""+b.delimiter+a+b.delimiter};a.prototype.error=function(a,b){var c,f,h,n,k;null==b&&(b={});b="first_line"in b?b:(n=this.getLineAndColumnFromChunk(null!=(h=b.offset)?h:0),f=n[0],c=n[1],n,{first_line:f,first_column:c,last_column:c+(null!=(k=b.length)?k:1)-1});return p(a,b)};return a}();var z=function(a,b){null==b&&(b=a);switch(!1){case 0>
|
||||||
y=E.concat(["++","--"]);h=["INDENT","OUTDENT","TERMINATOR"];x=[")","}","]"]}).call(this);return f}();t["./parser"]=function(){var f={},ta={exports:f},xa=function(){function f(){this.yy={}}var a=function(a,p,ra,b){ra=ra||{};for(b=a.length;b--;ra[a[b]]=p);return ra},c=[1,22],t=[1,25],d=[1,83],v=[1,79],l=[1,84],u=[1,85],F=[1,81],w=[1,82],z=[1,56],n=[1,58],G=[1,59],L=[1,60],I=[1,61],x=[1,62],E=[1,49],m=[1,50],g=[1,32],r=[1,68],q=[1,69],k=[1,78],h=[1,47],K=[1,51],O=[1,52],H=[1,67],y=[1,65],T=[1,66],S=
|
r.call(x.call(J).concat(x.call(F)),a):return"keyword '"+b+"' can't be assigned";case 0>r.call(O,a):return"'"+b+"' can't be assigned";case 0>r.call(G,a):return"reserved word '"+b+"' can't be assigned";default:return!1}};e.isUnassignable=z;var I=function(a){var b;return"IDENTIFIER"===a[0]?("from"===a[1]&&(a[1][0]="IDENTIFIER",!0),!0):"FOR"===a[0]?!1:"{"===(b=a[1])||"["===b||","===b||":"===b?!1:!0};var J="true false null this new delete typeof in instanceof return throw break continue debugger yield if else switch for while do try catch finally class extends super import export default".split(" ");
|
||||||
[1,64],P=[1,42],Z=[1,48],R=[1,63],C=[1,73],A=[1,74],W=[1,75],B=[1,76],N=[1,46],X=[1,72],Y=[1,34],V=[1,35],U=[1,36],J=[1,37],aa=[1,38],Q=[1,39],xa=[1,86],ta=[1,6,32,42,131],pa=[1,101],ia=[1,89],ba=[1,88],da=[1,87],ga=[1,90],fa=[1,91],ka=[1,92],ja=[1,93],M=[1,94],ha=[1,95],ca=[1,96],oa=[1,97],na=[1,98],qa=[1,99],la=[1,100],ya=[1,104],sa=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Ja=[2,162],Ta=[1,110],Ga=[1,111],Ua=[1,
|
var F="undefined Infinity NaN then unless until loop of by when".split(" ");var N={and:"\x26\x26",or:"||",is:"\x3d\x3d",isnt:"!\x3d",not:"!",yes:"true",no:"false",on:"true",off:"false"};var y=function(){var a=[];for(ra in N)a.push(ra);return a}();F=F.concat(y);var G="case function var void with const let enum native implements interface package private protected public static".split(" ");var O=["arguments","eval"];e.JS_FORBIDDEN=J.concat(G).concat(O);var Q=65279;var B=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/;
|
||||||
112],Fa=[1,113],Pa=[1,115],Qa=[1,116],Na=[1,109],za=[1,6,32,42,131,133,135,139,156],ma=[2,27],ea=[1,123],Ha=[1,121],Aa=[1,6,31,32,40,41,42,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Ia=[2,94],b=[1,6,31,32,42,46,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],p=[2,73],ra=[1,128],ua=[1,133],e=[1,134],va=[1,136],Ka=[1,
|
var n=/^0b[01]+|^0o[0-7]+|^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i;var c=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/;var w=/^[^\n\S]+/;var q=/^###([^#][\s\S]*?)(?:###[^\n\S]*|###$)|^(?:\s*#(?!##[^#]).*)+/;var h=/^[-=]>/;var K=/^(?:\n[^\n\S]*)+/;var P=/^`(?!``)((?:[^`\\]|\\[\s\S])*)`/;var L=/^```((?:[^`\\]|\\[\s\S]|`(?!``))*)```/;var U=/^(?:'''|"""|'|")/;var W=/^(?:[^\\']|\\[\s\S])*/;var H=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/;var Z=/^(?:[^\\']|\\[\s\S]|'(?!''))*/;var T=
|
||||||
6,31,32,40,41,42,55,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],wa=[2,91],Eb=[1,6,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],$a=[2,63],Fb=[1,166],ab=[1,178],Wa=[1,180],Gb=[1,175],Oa=[1,182],sb=[1,184],La=[1,6,31,32,40,41,42,55,65,70,73,82,83,84,85,87,89,90,94,96,113,114,115,120,122,131,133,134,135,139,140,156,159,160,161,162,163,164,
|
/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/;var V=/((?:\\\\)+)|\\[^\S\n]*\n\s*/g;var D=/\s*\n\s*/g;var A=/\n+([^\n\S]*)(?=\S)/g;var ic=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/;var E=/^\w*/;var aa=/^(?!.*(.).*\1)[imguy]*$/;var ba=/^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/;var C=/((?:\\\\)+)|\\(\s)|\s+(?:#.*)?/g;var S=/^(\/|\/{3}\s*)(\*)/;var v=/^\/=?\s/;var X=/\*\//;var R=/^\s*(?:,|\??\.(?![.\d])|::)/;var M=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/;
|
||||||
165,166,167,168,169,170,171,172,173,174,175],Hb=[2,110],Ib=[1,6,31,32,40,41,42,58,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Jb=[1,6,31,32,40,41,42,46,58,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Kb=[40,41,114],Lb=[1,241],tb=[1,240],Ma=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156],Ea=[2,
|
var ya=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/;var ta=/(\\\\)|\\u\{([\da-fA-F]+)\}/g;var Aa=/^[^\n\S]*\n/;var ma=/\n[^\n\S]*$/;var Y=/\s+$/;var ea="-\x3d +\x3d /\x3d *\x3d %\x3d ||\x3d \x26\x26\x3d ?\x3d \x3c\x3c\x3d \x3e\x3e\x3d \x3e\x3e\x3e\x3d \x26\x3d ^\x3d |\x3d **\x3d //\x3d %%\x3d".split(" ");var ia=["NEW","TYPEOF","DELETE","DO"];var fa=["!","~"];var ja=["\x3c\x3c","\x3e\x3e","\x3e\x3e\x3e"];var la="\x3d\x3d !\x3d \x3c \x3e \x3c\x3d \x3e\x3d".split(" ");
|
||||||
71],Mb=[1,250],Va=[6,31,32,65,70],fb=[6,31,32,55,65,70,73],bb=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,159,160,164,166,167,168,169,170,171,172,173,174],Nb=[40,41,82,83,84,85,87,90,113,114],gb=[1,269],cb=[2,62],hb=[1,279],ub=[1,285],Ob=[2,183],vb=[1,6,31,32,40,41,42,55,65,70,73,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],ib=[1,295],Ra=[6,31,32,70,115,120],Pb=[1,6,31,32,40,41,
|
var pa=["*","/","%","//","%%"];var qa=["IN","OF","INSTANCEOF"];var ha="IDENTIFIER PROPERTY ) ] ? @ THIS SUPER".split(" ");var ka=ha.concat("NUMBER INFINITY NAN STRING STRING_END REGEX REGEX_END BOOL NULL UNDEFINED } ::".split(" "));var oa=ka.concat(["++","--"]);var sa=["INDENT","OUTDENT","TERMINATOR"];var ca=[")","}","]"];var xa="\\ . ?. ?:: UNARY MATH UNARY_MATH + - ** SHIFT RELATION COMPARE \x26 ^ | \x26\x26 || BIN? THROW EXTENDS".split(" ")}).call(this);return e}();u["./parser"]=function(){var e=
|
||||||
42,55,58,65,70,73,82,83,84,85,87,89,90,94,96,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],Qb=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,140,156],Ya=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,134,140,156],jb=[146,147,148],kb=[70,146,147,148],lb=[6,31,94],Rb=[1,309],Ba=[6,31,32,70,94],Sb=[6,31,32,58,70,94],wb=[6,31,32,55,58,70,94],Tb=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,159,160,166,
|
{},ra={exports:e},r=function(){function e(){this.yy={}}var a=function(a,l,m,d){m=m||{};for(d=a.length;d--;m[a[d]]=l);return m},b=[1,22],u=[1,25],f=[1,83],k=[1,79],t=[1,84],p=[1,85],z=[1,81],I=[1,82],J=[1,56],F=[1,58],N=[1,59],y=[1,60],G=[1,61],O=[1,62],Q=[1,49],B=[1,50],n=[1,32],c=[1,68],w=[1,69],q=[1,78],h=[1,47],K=[1,51],P=[1,52],L=[1,67],U=[1,65],W=[1,66],H=[1,64],Z=[1,42],T=[1,48],V=[1,63],D=[1,73],A=[1,74],r=[1,75],E=[1,76],aa=[1,46],ba=[1,72],C=[1,34],S=[1,35],v=[1,36],X=[1,37],R=[1,38],M=[1,
|
||||||
167,168,169,170,171,172,173,174],Ub=[12,28,34,38,40,41,44,45,48,49,50,51,52,53,61,62,63,67,68,89,92,95,97,104,112,117,118,119,125,129,130,133,135,137,139,149,155,157,158,159,160,161,162],Vb=[2,172],Sa=[6,31,32],db=[2,72],Wb=[1,321],Xb=[1,322],Yb=[1,6,31,32,42,65,70,73,89,94,115,120,122,127,128,131,133,134,135,139,140,151,153,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],mb=[32,151,153],Zb=[1,6,32,42,65,70,73,89,94,115,120,122,131,134,140,156],nb=[1,348],xb=[1,353],yb=[1,6,32,42,131,
|
39],ra=[1,86],ta=[1,6,32,42,131],Aa=[1,101],ma=[1,89],Y=[1,88],ea=[1,87],ia=[1,90],fa=[1,91],ja=[1,92],la=[1,93],pa=[1,94],qa=[1,95],ha=[1,96],ka=[1,97],oa=[1,98],sa=[1,99],ca=[1,100],ya=[1,104],na=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Da=[2,168],va=[1,110],xa=[1,111],Ha=[1,112],Ka=[1,113],Fa=[1,115],Ra=[1,116],La=[1,109],Ga=[1,6,32,42,131,133,135,139,156],Wa=[2,27],da=[1,123],Za=[1,121],Ea=[1,6,31,32,40,41,42,
|
||||||
156],eb=[2,86],ob=[1,363],pb=[1,364],$b=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,151,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],zb=[1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,135,139,140,156],ac=[1,377],bc=[1,378],Ab=[6,31,32,94],cc=[6,31,32,70],Bb=[1,6,31,32,42,65,70,73,89,94,115,120,122,127,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],dc=[31,70],qb=[1,404],rb=[1,405],Cb=[1,410],Db=[1,411],ec={trace:function(){},
|
66,71,74,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Ia=[2,95],m=[1,6,31,32,42,46,66,71,74,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],l=[2,74],d=[1,128],Ca=[1,133],Ja=[1,134],ua=[1,136],Na=[1,6,31,32,40,41,42,55,66,71,74,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,
|
||||||
yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,Statement:8,YieldReturn:9,Return:10,Comment:11,STATEMENT:12,Import:13,Export:14,Value:15,Invocation:16,Code:17,Operation:18,Assign:19,If:20,Try:21,While:22,For:23,Switch:24,Class:25,Throw:26,Yield:27,YIELD:28,FROM:29,Block:30,INDENT:31,OUTDENT:32,Identifier:33,IDENTIFIER:34,Property:35,PROPERTY:36,AlphaNumeric:37,NUMBER:38,String:39,STRING:40,STRING_START:41,STRING_END:42,Regex:43,REGEX:44,REGEX_START:45,REGEX_END:46,Literal:47,
|
171,172,173,174],wa=[2,92],Gb=[1,6,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],$a=[2,64],Hb=[1,161],Ib=[1,167],ab=[1,179],Va=[1,181],Jb=[1,176],Qa=[1,183],ub=[1,185],Oa=[1,6,31,32,40,41,42,55,66,71,74,82,83,84,85,87,89,90,94,96,113,114,115,120,122,131,133,134,135,139,140,156,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],Kb=[2,111],Lb=[1,6,31,32,40,41,42,58,66,71,74,82,83,84,85,87,89,90,94,113,114,115,
|
||||||
JS:48,UNDEFINED:49,NULL:50,BOOL:51,INFINITY:52,NAN:53,Assignable:54,"\x3d":55,AssignObj:56,ObjAssignable:57,":":58,SimpleObjAssignable:59,ThisProperty:60,RETURN:61,HERECOMMENT:62,PARAM_START:63,ParamList:64,PARAM_END:65,FuncGlyph:66,"-\x3e":67,"\x3d\x3e":68,OptComma:69,",":70,Param:71,ParamVar:72,"...":73,Array:74,Object:75,Splat:76,SimpleAssignable:77,Accessor:78,Parenthetical:79,Range:80,This:81,".":82,"?.":83,"::":84,"?::":85,Index:86,INDEX_START:87,IndexValue:88,INDEX_END:89,INDEX_SOAK:90,Slice:91,
|
120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Mb=[1,6,31,32,40,41,42,46,58,66,71,74,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Nb=[40,41,114],Ob=[1,242],vb=[1,241],Pa=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156],Ma=[2,72],Pb=[1,251],Ua=[6,31,32,66,71],hb=[6,31,32,55,66,71,74],bb=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,
|
||||||
"{":92,AssignList:93,"}":94,CLASS:95,EXTENDS:96,IMPORT:97,ImportDefaultSpecifier:98,ImportNamespaceSpecifier:99,ImportSpecifierList:100,ImportSpecifier:101,AS:102,IMPORT_ALL:103,EXPORT:104,ExportSpecifierList:105,DEFAULT:106,EXPORT_ALL:107,ExportSpecifier:108,OptFuncExist:109,Arguments:110,Super:111,SUPER:112,FUNC_EXIST:113,CALL_START:114,CALL_END:115,ArgList:116,THIS:117,"@":118,"[":119,"]":120,RangeDots:121,"..":122,Arg:123,SimpleArgs:124,TRY:125,Catch:126,FINALLY:127,CATCH:128,THROW:129,"(":130,
|
156,159,160,164,166,167,168,169,170,171,172,173,174],Qb=[40,41,82,83,84,85,87,90,113,114],ib=[1,270],cb=[2,62],jb=[1,281],Xa=[1,283],wb=[1,288],db=[1,290],Rb=[2,189],xb=[1,6,31,32,40,41,42,55,66,71,74,82,83,84,85,87,89,90,94,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],kb=[1,300],Sa=[6,31,32,71,115,120],Sb=[1,6,31,32,40,41,42,55,58,66,71,74,82,83,84,85,87,89,90,94,96,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,
|
||||||
")":131,WhileSource:132,WHILE:133,WHEN:134,UNTIL:135,Loop:136,LOOP:137,ForBody:138,FOR:139,BY:140,ForStart:141,ForSource:142,ForVariables:143,OWN:144,ForValue:145,FORIN:146,FOROF:147,FORFROM:148,SWITCH:149,Whens:150,ELSE:151,When:152,LEADING_WHEN:153,IfBlock:154,IF:155,POST_IF:156,UNARY:157,UNARY_MATH:158,"-":159,"+":160,"--":161,"++":162,"?":163,MATH:164,"**":165,SHIFT:166,COMPARE:167,"\x26":168,"^":169,"|":170,"\x26\x26":171,"||":172,"BIN?":173,RELATION:174,COMPOUND_ASSIGN:175,$accept:0,$end:1},
|
159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],Tb=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,140,156],Ya=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,134,140,156],lb=[146,147,148],mb=[71,146,147,148],nb=[6,31,94],Ub=[1,314],Ba=[6,31,32,71,94],Vb=[6,31,32,58,71,94],yb=[6,31,32,55,58,71,94],Wb=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,159,160,166,167,168,169,170,171,172,173,174],Xb=[12,28,34,38,40,41,44,45,48,49,50,51,52,53,61,63,64,68,69,89,92,95,
|
||||||
terminals_:{2:"error",6:"TERMINATOR",12:"STATEMENT",28:"YIELD",29:"FROM",31:"INDENT",32:"OUTDENT",34:"IDENTIFIER",36:"PROPERTY",38:"NUMBER",40:"STRING",41:"STRING_START",42:"STRING_END",44:"REGEX",45:"REGEX_START",46:"REGEX_END",48:"JS",49:"UNDEFINED",50:"NULL",51:"BOOL",52:"INFINITY",53:"NAN",55:"\x3d",58:":",61:"RETURN",62:"HERECOMMENT",63:"PARAM_START",65:"PARAM_END",67:"-\x3e",68:"\x3d\x3e",70:",",73:"...",82:".",83:"?.",84:"::",85:"?::",87:"INDEX_START",89:"INDEX_END",90:"INDEX_SOAK",92:"{",
|
97,105,112,117,118,119,125,129,130,133,135,137,139,149,155,157,158,159,160,161,162],Yb=[2,178],Ta=[6,31,32],eb=[2,73],Zb=[1,326],$b=[1,327],ac=[1,6,31,32,42,66,71,74,89,94,115,120,122,127,128,131,133,134,135,139,140,151,153,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],ob=[32,151,153],bc=[1,6,32,42,66,71,74,89,94,115,120,122,131,134,140,156],pb=[1,354],zb=[1,360],Ab=[1,6,32,42,131,156],fb=[2,87],qb=[1,372],rb=[1,373],cc=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,
|
||||||
94:"}",95:"CLASS",96:"EXTENDS",97:"IMPORT",102:"AS",103:"IMPORT_ALL",104:"EXPORT",106:"DEFAULT",107:"EXPORT_ALL",112:"SUPER",113:"FUNC_EXIST",114:"CALL_START",115:"CALL_END",117:"THIS",118:"@",119:"[",120:"]",122:"..",125:"TRY",127:"FINALLY",128:"CATCH",129:"THROW",130:"(",131:")",133:"WHILE",134:"WHEN",135:"UNTIL",137:"LOOP",139:"FOR",140:"BY",144:"OWN",146:"FORIN",147:"FOROF",148:"FORFROM",149:"SWITCH",151:"ELSE",153:"LEADING_WHEN",155:"IF",156:"POST_IF",157:"UNARY",158:"UNARY_MATH",159:"-",160:"+",
|
151,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],Bb=[1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,135,139,140,156],dc=[1,386],ec=[1,387],Cb=[6,31,32,94],fc=[6,31,32,71],Db=[1,6,31,32,42,66,71,74,89,94,115,120,122,127,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],gc=[31,71],sb=[1,413],tb=[1,414],Eb=[1,420],Fb=[1,421],hc={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,Statement:8,YieldReturn:9,Return:10,
|
||||||
161:"--",162:"++",163:"?",164:"MATH",165:"**",166:"SHIFT",167:"COMPARE",168:"\x26",169:"^",170:"|",171:"\x26\x26",172:"||",173:"BIN?",174:"RELATION",175:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[5,1],[8,1],[8,1],[8,1],[8,1],[8,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[27,1],[27,2],[27,3],[30,2],[30,3],[33,1],[35,1],[37,1],[37,1],[39,1],[39,3],[43,1],[43,3],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[19,3],[19,
|
Comment:11,STATEMENT:12,Import:13,Export:14,Value:15,Invocation:16,Code:17,Operation:18,Assign:19,If:20,Try:21,While:22,For:23,Switch:24,Class:25,Throw:26,Yield:27,YIELD:28,FROM:29,Block:30,INDENT:31,OUTDENT:32,Identifier:33,IDENTIFIER:34,Property:35,PROPERTY:36,AlphaNumeric:37,NUMBER:38,String:39,STRING:40,STRING_START:41,STRING_END:42,Regex:43,REGEX:44,REGEX_START:45,REGEX_END:46,Literal:47,JS:48,UNDEFINED:49,NULL:50,BOOL:51,INFINITY:52,NAN:53,Assignable:54,"\x3d":55,AssignObj:56,ObjAssignable:57,
|
||||||
4],[19,5],[56,1],[56,3],[56,5],[56,3],[56,5],[56,1],[59,1],[59,1],[59,1],[57,1],[57,1],[10,2],[10,1],[9,3],[9,2],[11,1],[17,5],[17,2],[66,1],[66,1],[69,0],[69,1],[64,0],[64,1],[64,3],[64,4],[64,6],[71,1],[71,2],[71,3],[71,1],[72,1],[72,1],[72,1],[72,1],[76,2],[77,1],[77,2],[77,2],[77,1],[54,1],[54,1],[54,1],[15,1],[15,1],[15,1],[15,1],[15,1],[78,2],[78,2],[78,2],[78,2],[78,1],[78,1],[86,3],[86,2],[88,1],[88,1],[75,4],[93,0],[93,1],[93,3],[93,4],[93,6],[25,1],[25,2],[25,3],[25,4],[25,2],[25,3],[25,
|
":":58,SimpleObjAssignable:59,ThisProperty:60,RETURN:61,Object:62,HERECOMMENT:63,PARAM_START:64,ParamList:65,PARAM_END:66,FuncGlyph:67,"-\x3e":68,"\x3d\x3e":69,OptComma:70,",":71,Param:72,ParamVar:73,"...":74,Array:75,Splat:76,SimpleAssignable:77,Accessor:78,Parenthetical:79,Range:80,This:81,".":82,"?.":83,"::":84,"?::":85,Index:86,INDEX_START:87,IndexValue:88,INDEX_END:89,INDEX_SOAK:90,Slice:91,"{":92,AssignList:93,"}":94,CLASS:95,EXTENDS:96,IMPORT:97,ImportDefaultSpecifier:98,ImportNamespaceSpecifier:99,
|
||||||
4],[25,5],[13,2],[13,4],[13,4],[13,5],[13,7],[13,6],[13,9],[100,1],[100,3],[100,4],[100,4],[100,6],[101,1],[101,3],[98,1],[99,3],[14,3],[14,5],[14,2],[14,4],[14,5],[14,6],[14,3],[14,4],[14,7],[105,1],[105,3],[105,4],[105,4],[105,6],[108,1],[108,3],[108,3],[16,3],[16,3],[16,3],[16,1],[111,1],[111,2],[109,0],[109,1],[110,2],[110,4],[81,1],[81,1],[60,2],[74,2],[74,4],[121,1],[121,1],[80,5],[91,3],[91,2],[91,2],[91,1],[116,1],[116,3],[116,4],[116,4],[116,6],[123,1],[123,1],[123,1],[124,1],[124,3],[21,
|
ImportSpecifierList:100,ImportSpecifier:101,AS:102,DEFAULT:103,IMPORT_ALL:104,EXPORT:105,ExportSpecifierList:106,EXPORT_ALL:107,ExportSpecifier:108,OptFuncExist:109,Arguments:110,Super:111,SUPER:112,FUNC_EXIST:113,CALL_START:114,CALL_END:115,ArgList:116,THIS:117,"@":118,"[":119,"]":120,RangeDots:121,"..":122,Arg:123,SimpleArgs:124,TRY:125,Catch:126,FINALLY:127,CATCH:128,THROW:129,"(":130,")":131,WhileSource:132,WHILE:133,WHEN:134,UNTIL:135,Loop:136,LOOP:137,ForBody:138,FOR:139,BY:140,ForStart:141,
|
||||||
2],[21,3],[21,4],[21,5],[126,3],[126,3],[126,2],[26,2],[79,3],[79,5],[132,2],[132,4],[132,2],[132,4],[22,2],[22,2],[22,2],[22,1],[136,2],[136,2],[23,2],[23,2],[23,2],[138,2],[138,4],[138,2],[141,2],[141,3],[145,1],[145,1],[145,1],[145,1],[143,1],[143,3],[142,2],[142,2],[142,4],[142,4],[142,4],[142,6],[142,6],[142,2],[142,4],[24,5],[24,7],[24,4],[24,6],[150,1],[150,2],[152,3],[152,4],[154,3],[154,5],[20,1],[20,3],[20,3],[20,3],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,3],[18,
|
ForSource:142,ForVariables:143,OWN:144,ForValue:145,FORIN:146,FOROF:147,FORFROM:148,SWITCH:149,Whens:150,ELSE:151,When:152,LEADING_WHEN:153,IfBlock:154,IF:155,POST_IF:156,UNARY:157,UNARY_MATH:158,"-":159,"+":160,"--":161,"++":162,"?":163,MATH:164,"**":165,SHIFT:166,COMPARE:167,"\x26":168,"^":169,"|":170,"\x26\x26":171,"||":172,"BIN?":173,RELATION:174,COMPOUND_ASSIGN:175,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",12:"STATEMENT",28:"YIELD",29:"FROM",31:"INDENT",32:"OUTDENT",34:"IDENTIFIER",
|
||||||
3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,5],[18,4],[18,3]],performAction:function(a,p,ra,b,ua,c,e){a=c.length-1;switch(ua){case 1:return this.$=b.addLocationDataFn(e[a],e[a])(new b.Block);case 2:return this.$=c[a];case 3:this.$=b.addLocationDataFn(e[a],e[a])(b.Block.wrap([c[a]]));break;case 4:this.$=b.addLocationDataFn(e[a-2],e[a])(c[a-2].push(c[a]));break;case 5:this.$=c[a-1];break;case 6:case 7:case 8:case 9:case 10:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 35:case 40:case 42:case 56:case 57:case 58:case 59:case 60:case 61:case 71:case 72:case 82:case 83:case 84:case 85:case 90:case 91:case 94:case 98:case 104:case 159:case 183:case 184:case 186:case 216:case 217:case 235:case 241:this.$=
|
36:"PROPERTY",38:"NUMBER",40:"STRING",41:"STRING_START",42:"STRING_END",44:"REGEX",45:"REGEX_START",46:"REGEX_END",48:"JS",49:"UNDEFINED",50:"NULL",51:"BOOL",52:"INFINITY",53:"NAN",55:"\x3d",58:":",61:"RETURN",63:"HERECOMMENT",64:"PARAM_START",66:"PARAM_END",68:"-\x3e",69:"\x3d\x3e",71:",",74:"...",82:".",83:"?.",84:"::",85:"?::",87:"INDEX_START",89:"INDEX_END",90:"INDEX_SOAK",92:"{",94:"}",95:"CLASS",96:"EXTENDS",97:"IMPORT",102:"AS",103:"DEFAULT",104:"IMPORT_ALL",105:"EXPORT",107:"EXPORT_ALL",112:"SUPER",
|
||||||
c[a];break;case 11:this.$=b.addLocationDataFn(e[a],e[a])(new b.StatementLiteral(c[a]));break;case 27:this.$=b.addLocationDataFn(e[a],e[a])(new b.Op(c[a],new b.Value(new b.Literal(""))));break;case 28:case 245:case 246:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op(c[a-1],c[a]));break;case 29:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Op(c[a-2].concat(c[a-1]),c[a]));break;case 30:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Block);break;case 31:case 105:this.$=b.addLocationDataFn(e[a-2],e[a])(c[a-
|
113:"FUNC_EXIST",114:"CALL_START",115:"CALL_END",117:"THIS",118:"@",119:"[",120:"]",122:"..",125:"TRY",127:"FINALLY",128:"CATCH",129:"THROW",130:"(",131:")",133:"WHILE",134:"WHEN",135:"UNTIL",137:"LOOP",139:"FOR",140:"BY",144:"OWN",146:"FORIN",147:"FOROF",148:"FORFROM",149:"SWITCH",151:"ELSE",153:"LEADING_WHEN",155:"IF",156:"POST_IF",157:"UNARY",158:"UNARY_MATH",159:"-",160:"+",161:"--",162:"++",163:"?",164:"MATH",165:"**",166:"SHIFT",167:"COMPARE",168:"\x26",169:"^",170:"|",171:"\x26\x26",172:"||",
|
||||||
1]);break;case 32:this.$=b.addLocationDataFn(e[a],e[a])(new b.IdentifierLiteral(c[a]));break;case 33:this.$=b.addLocationDataFn(e[a],e[a])(new b.PropertyName(c[a]));break;case 34:this.$=b.addLocationDataFn(e[a],e[a])(new b.NumberLiteral(c[a]));break;case 36:this.$=b.addLocationDataFn(e[a],e[a])(new b.StringLiteral(c[a]));break;case 37:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.StringWithInterpolations(c[a-1]));break;case 38:this.$=b.addLocationDataFn(e[a],e[a])(new b.RegexLiteral(c[a]));break;
|
173:"BIN?",174:"RELATION",175:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[5,1],[8,1],[8,1],[8,1],[8,1],[8,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[27,1],[27,2],[27,3],[30,2],[30,3],[33,1],[35,1],[37,1],[37,1],[39,1],[39,3],[43,1],[43,3],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[47,1],[19,3],[19,4],[19,5],[56,1],[56,3],[56,5],[56,3],[56,5],[56,1],[59,1],[59,1],[59,1],[57,1],[57,1],[10,2],[10,4],[10,1],[9,3],[9,2],[11,
|
||||||
case 39:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.RegexWithInterpolations(c[a-1].args));break;case 41:this.$=b.addLocationDataFn(e[a],e[a])(new b.PassthroughLiteral(c[a]));break;case 43:this.$=b.addLocationDataFn(e[a],e[a])(new b.UndefinedLiteral);break;case 44:this.$=b.addLocationDataFn(e[a],e[a])(new b.NullLiteral);break;case 45:this.$=b.addLocationDataFn(e[a],e[a])(new b.BooleanLiteral(c[a]));break;case 46:this.$=b.addLocationDataFn(e[a],e[a])(new b.InfinityLiteral(c[a]));break;case 47:this.$=
|
1],[17,5],[17,2],[67,1],[67,1],[70,0],[70,1],[65,0],[65,1],[65,3],[65,4],[65,6],[72,1],[72,2],[72,3],[72,1],[73,1],[73,1],[73,1],[73,1],[76,2],[77,1],[77,2],[77,2],[77,1],[54,1],[54,1],[54,1],[15,1],[15,1],[15,1],[15,1],[15,1],[78,2],[78,2],[78,2],[78,2],[78,1],[78,1],[86,3],[86,2],[88,1],[88,1],[62,4],[93,0],[93,1],[93,3],[93,4],[93,6],[25,1],[25,2],[25,3],[25,4],[25,2],[25,3],[25,4],[25,5],[13,2],[13,4],[13,4],[13,5],[13,7],[13,6],[13,9],[100,1],[100,3],[100,4],[100,4],[100,6],[101,1],[101,3],[101,
|
||||||
b.addLocationDataFn(e[a],e[a])(new b.NaNLiteral);break;case 48:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Assign(c[a-2],c[a]));break;case 49:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Assign(c[a-3],c[a]));break;case 50:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Assign(c[a-4],c[a-1]));break;case 51:case 87:case 92:case 93:case 95:case 96:case 97:case 218:case 219:this.$=b.addLocationDataFn(e[a],e[a])(new b.Value(c[a]));break;case 52:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Assign(b.addLocationDataFn(e[a-
|
1],[101,3],[98,1],[99,3],[14,3],[14,5],[14,2],[14,4],[14,5],[14,6],[14,3],[14,5],[14,4],[14,7],[106,1],[106,3],[106,4],[106,4],[106,6],[108,1],[108,3],[108,3],[108,1],[108,3],[16,3],[16,3],[16,3],[16,1],[111,1],[111,2],[109,0],[109,1],[110,2],[110,4],[81,1],[81,1],[60,2],[75,2],[75,4],[121,1],[121,1],[80,5],[91,3],[91,2],[91,2],[91,1],[116,1],[116,3],[116,4],[116,4],[116,6],[123,1],[123,1],[123,1],[124,1],[124,3],[21,2],[21,3],[21,4],[21,5],[126,3],[126,3],[126,2],[26,2],[79,3],[79,5],[132,2],[132,
|
||||||
2])(new b.Value(c[a-2])),c[a],"object",{operatorToken:b.addLocationDataFn(e[a-1])(new b.Literal(c[a-1]))}));break;case 53:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Assign(b.addLocationDataFn(e[a-4])(new b.Value(c[a-4])),c[a-1],"object",{operatorToken:b.addLocationDataFn(e[a-3])(new b.Literal(c[a-3]))}));break;case 54:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Assign(b.addLocationDataFn(e[a-2])(new b.Value(c[a-2])),c[a],null,{operatorToken:b.addLocationDataFn(e[a-1])(new b.Literal(c[a-1]))}));
|
4],[132,2],[132,4],[22,2],[22,2],[22,2],[22,1],[136,2],[136,2],[23,2],[23,2],[23,2],[138,2],[138,4],[138,2],[141,2],[141,3],[145,1],[145,1],[145,1],[145,1],[143,1],[143,3],[142,2],[142,2],[142,4],[142,4],[142,4],[142,6],[142,6],[142,2],[142,4],[24,5],[24,7],[24,4],[24,6],[150,1],[150,2],[152,3],[152,4],[154,3],[154,5],[20,1],[20,3],[20,3],[20,3],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,2],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],[18,3],
|
||||||
break;case 55:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Assign(b.addLocationDataFn(e[a-4])(new b.Value(c[a-4])),c[a-1],null,{operatorToken:b.addLocationDataFn(e[a-3])(new b.Literal(c[a-3]))}));break;case 62:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Return(c[a]));break;case 63:this.$=b.addLocationDataFn(e[a],e[a])(new b.Return);break;case 64:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.YieldReturn(c[a]));break;case 65:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.YieldReturn);break;case 66:this.$=
|
[18,3],[18,5],[18,4],[18,3]],performAction:function(a,l,m,d,Ca,b,g){a=b.length-1;switch(Ca){case 1:return this.$=d.addLocationDataFn(g[a],g[a])(new d.Block);case 2:return this.$=b[a];case 3:this.$=d.addLocationDataFn(g[a],g[a])(d.Block.wrap([b[a]]));break;case 4:this.$=d.addLocationDataFn(g[a-2],g[a])(b[a-2].push(b[a]));break;case 5:this.$=b[a-1];break;case 6:case 7:case 8:case 9:case 10:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 35:case 40:case 42:case 56:case 57:case 58:case 59:case 60:case 61:case 72:case 73:case 83:case 84:case 85:case 86:case 91:case 92:case 95:case 99:case 105:case 165:case 189:case 190:case 192:case 222:case 223:case 241:case 247:this.$=
|
||||||
b.addLocationDataFn(e[a],e[a])(new b.Comment(c[a]));break;case 67:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Code(c[a-3],c[a],c[a-1]));break;case 68:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Code([],c[a],c[a-1]));break;case 69:this.$=b.addLocationDataFn(e[a],e[a])("func");break;case 70:this.$=b.addLocationDataFn(e[a],e[a])("boundfunc");break;case 73:case 110:this.$=b.addLocationDataFn(e[a],e[a])([]);break;case 74:case 111:case 130:case 148:case 178:case 220:this.$=b.addLocationDataFn(e[a],
|
b[a];break;case 11:this.$=d.addLocationDataFn(g[a],g[a])(new d.StatementLiteral(b[a]));break;case 27:this.$=d.addLocationDataFn(g[a],g[a])(new d.Op(b[a],new d.Value(new d.Literal(""))));break;case 28:case 251:case 252:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op(b[a-1],b[a]));break;case 29:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Op(b[a-2].concat(b[a-1]),b[a]));break;case 30:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Block);break;case 31:case 106:this.$=d.addLocationDataFn(g[a-2],g[a])(b[a-
|
||||||
e[a])([c[a]]);break;case 75:case 112:case 131:case 149:case 179:this.$=b.addLocationDataFn(e[a-2],e[a])(c[a-2].concat(c[a]));break;case 76:case 113:case 132:case 150:case 180:this.$=b.addLocationDataFn(e[a-3],e[a])(c[a-3].concat(c[a]));break;case 77:case 114:case 134:case 152:case 182:this.$=b.addLocationDataFn(e[a-5],e[a])(c[a-5].concat(c[a-2]));break;case 78:this.$=b.addLocationDataFn(e[a],e[a])(new b.Param(c[a]));break;case 79:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Param(c[a-1],null,!0));
|
1]);break;case 32:this.$=d.addLocationDataFn(g[a],g[a])(new d.IdentifierLiteral(b[a]));break;case 33:this.$=d.addLocationDataFn(g[a],g[a])(new d.PropertyName(b[a]));break;case 34:this.$=d.addLocationDataFn(g[a],g[a])(new d.NumberLiteral(b[a]));break;case 36:this.$=d.addLocationDataFn(g[a],g[a])(new d.StringLiteral(b[a]));break;case 37:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.StringWithInterpolations(b[a-1]));break;case 38:this.$=d.addLocationDataFn(g[a],g[a])(new d.RegexLiteral(b[a]));break;
|
||||||
break;case 80:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Param(c[a-2],c[a]));break;case 81:case 185:this.$=b.addLocationDataFn(e[a],e[a])(new b.Expansion);break;case 86:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Splat(c[a-1]));break;case 88:this.$=b.addLocationDataFn(e[a-1],e[a])(c[a-1].add(c[a]));break;case 89:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Value(c[a-1],[].concat(c[a])));break;case 99:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Access(c[a]));break;case 100:this.$=b.addLocationDataFn(e[a-
|
case 39:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.RegexWithInterpolations(b[a-1].args));break;case 41:this.$=d.addLocationDataFn(g[a],g[a])(new d.PassthroughLiteral(b[a]));break;case 43:this.$=d.addLocationDataFn(g[a],g[a])(new d.UndefinedLiteral);break;case 44:this.$=d.addLocationDataFn(g[a],g[a])(new d.NullLiteral);break;case 45:this.$=d.addLocationDataFn(g[a],g[a])(new d.BooleanLiteral(b[a]));break;case 46:this.$=d.addLocationDataFn(g[a],g[a])(new d.InfinityLiteral(b[a]));break;case 47:this.$=
|
||||||
1],e[a])(new b.Access(c[a],"soak"));break;case 101:this.$=b.addLocationDataFn(e[a-1],e[a])([b.addLocationDataFn(e[a-1])(new b.Access(new b.PropertyName("prototype"))),b.addLocationDataFn(e[a])(new b.Access(c[a]))]);break;case 102:this.$=b.addLocationDataFn(e[a-1],e[a])([b.addLocationDataFn(e[a-1])(new b.Access(new b.PropertyName("prototype"),"soak")),b.addLocationDataFn(e[a])(new b.Access(c[a]))]);break;case 103:this.$=b.addLocationDataFn(e[a],e[a])(new b.Access(new b.PropertyName("prototype")));
|
d.addLocationDataFn(g[a],g[a])(new d.NaNLiteral);break;case 48:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Assign(b[a-2],b[a]));break;case 49:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Assign(b[a-3],b[a]));break;case 50:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Assign(b[a-4],b[a-1]));break;case 51:case 88:case 93:case 94:case 96:case 97:case 98:case 224:case 225:this.$=d.addLocationDataFn(g[a],g[a])(new d.Value(b[a]));break;case 52:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Assign(d.addLocationDataFn(g[a-
|
||||||
break;case 106:this.$=b.addLocationDataFn(e[a-1],e[a])(b.extend(c[a],{soak:!0}));break;case 107:this.$=b.addLocationDataFn(e[a],e[a])(new b.Index(c[a]));break;case 108:this.$=b.addLocationDataFn(e[a],e[a])(new b.Slice(c[a]));break;case 109:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Obj(c[a-2],c[a-3].generated));break;case 115:this.$=b.addLocationDataFn(e[a],e[a])(new b.Class);break;case 116:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Class(null,null,c[a]));break;case 117:this.$=b.addLocationDataFn(e[a-
|
2])(new d.Value(b[a-2])),b[a],"object",{operatorToken:d.addLocationDataFn(g[a-1])(new d.Literal(b[a-1]))}));break;case 53:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Assign(d.addLocationDataFn(g[a-4])(new d.Value(b[a-4])),b[a-1],"object",{operatorToken:d.addLocationDataFn(g[a-3])(new d.Literal(b[a-3]))}));break;case 54:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Assign(d.addLocationDataFn(g[a-2])(new d.Value(b[a-2])),b[a],null,{operatorToken:d.addLocationDataFn(g[a-1])(new d.Literal(b[a-1]))}));
|
||||||
2],e[a])(new b.Class(null,c[a]));break;case 118:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Class(null,c[a-1],c[a]));break;case 119:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Class(c[a]));break;case 120:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Class(c[a-1],null,c[a]));break;case 121:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Class(c[a-2],c[a]));break;case 122:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Class(c[a-3],c[a-1],c[a]));break;case 123:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.ImportDeclaration(null,
|
break;case 55:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Assign(d.addLocationDataFn(g[a-4])(new d.Value(b[a-4])),b[a-1],null,{operatorToken:d.addLocationDataFn(g[a-3])(new d.Literal(b[a-3]))}));break;case 62:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Return(b[a]));break;case 63:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Return(new d.Value(b[a-1])));break;case 64:this.$=d.addLocationDataFn(g[a],g[a])(new d.Return);break;case 65:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.YieldReturn(b[a]));
|
||||||
c[a]));break;case 124:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.ImportDeclaration(new b.ImportClause(c[a-2],null),c[a]));break;case 125:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.ImportDeclaration(new b.ImportClause(null,c[a-2]),c[a]));break;case 126:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.ImportDeclaration(new b.ImportClause(null,new b.ImportSpecifierList([])),c[a]));break;case 127:this.$=b.addLocationDataFn(e[a-6],e[a])(new b.ImportDeclaration(new b.ImportClause(null,new b.ImportSpecifierList(c[a-
|
break;case 66:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.YieldReturn);break;case 67:this.$=d.addLocationDataFn(g[a],g[a])(new d.Comment(b[a]));break;case 68:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Code(b[a-3],b[a],b[a-1]));break;case 69:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Code([],b[a],b[a-1]));break;case 70:this.$=d.addLocationDataFn(g[a],g[a])("func");break;case 71:this.$=d.addLocationDataFn(g[a],g[a])("boundfunc");break;case 74:case 111:this.$=d.addLocationDataFn(g[a],g[a])([]);
|
||||||
4])),c[a]));break;case 128:this.$=b.addLocationDataFn(e[a-5],e[a])(new b.ImportDeclaration(new b.ImportClause(c[a-4],c[a-2]),c[a]));break;case 129:this.$=b.addLocationDataFn(e[a-8],e[a])(new b.ImportDeclaration(new b.ImportClause(c[a-7],new b.ImportSpecifierList(c[a-4])),c[a]));break;case 133:case 151:case 165:case 181:this.$=b.addLocationDataFn(e[a-3],e[a])(c[a-2]);break;case 135:this.$=b.addLocationDataFn(e[a],e[a])(new b.ImportSpecifier(c[a]));break;case 136:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ImportSpecifier(c[a-
|
break;case 75:case 112:case 131:case 152:case 184:case 226:this.$=d.addLocationDataFn(g[a],g[a])([b[a]]);break;case 76:case 113:case 132:case 153:case 185:this.$=d.addLocationDataFn(g[a-2],g[a])(b[a-2].concat(b[a]));break;case 77:case 114:case 133:case 154:case 186:this.$=d.addLocationDataFn(g[a-3],g[a])(b[a-3].concat(b[a]));break;case 78:case 115:case 135:case 156:case 188:this.$=d.addLocationDataFn(g[a-5],g[a])(b[a-5].concat(b[a-2]));break;case 79:this.$=d.addLocationDataFn(g[a],g[a])(new d.Param(b[a]));
|
||||||
2],c[a]));break;case 137:this.$=b.addLocationDataFn(e[a],e[a])(new b.ImportDefaultSpecifier(c[a]));break;case 138:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ImportNamespaceSpecifier(new b.Literal(c[a-2]),c[a]));break;case 139:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ExportNamedDeclaration(new b.ExportSpecifierList([])));break;case 140:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.ExportNamedDeclaration(new b.ExportSpecifierList(c[a-2])));break;case 141:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.ExportNamedDeclaration(c[a]));
|
break;case 80:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Param(b[a-1],null,!0));break;case 81:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Param(b[a-2],b[a]));break;case 82:case 191:this.$=d.addLocationDataFn(g[a],g[a])(new d.Expansion);break;case 87:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Splat(b[a-1]));break;case 89:this.$=d.addLocationDataFn(g[a-1],g[a])(b[a-1].add(b[a]));break;case 90:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Value(b[a-1],[].concat(b[a])));break;case 100:this.$=
|
||||||
break;case 142:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.ExportNamedDeclaration(new b.Assign(c[a-2],c[a],null,{moduleDeclaration:"export"})));break;case 143:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.ExportNamedDeclaration(new b.Assign(c[a-3],c[a],null,{moduleDeclaration:"export"})));break;case 144:this.$=b.addLocationDataFn(e[a-5],e[a])(new b.ExportNamedDeclaration(new b.Assign(c[a-4],c[a-1],null,{moduleDeclaration:"export"})));break;case 145:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ExportDefaultDeclaration(c[a]));
|
d.addLocationDataFn(g[a-1],g[a])(new d.Access(b[a]));break;case 101:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Access(b[a],"soak"));break;case 102:this.$=d.addLocationDataFn(g[a-1],g[a])([d.addLocationDataFn(g[a-1])(new d.Access(new d.PropertyName("prototype"))),d.addLocationDataFn(g[a])(new d.Access(b[a]))]);break;case 103:this.$=d.addLocationDataFn(g[a-1],g[a])([d.addLocationDataFn(g[a-1])(new d.Access(new d.PropertyName("prototype"),"soak")),d.addLocationDataFn(g[a])(new d.Access(b[a]))]);break;
|
||||||
break;case 146:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.ExportAllDeclaration(new b.Literal(c[a-2]),c[a]));break;case 147:this.$=b.addLocationDataFn(e[a-6],e[a])(new b.ExportNamedDeclaration(new b.ExportSpecifierList(c[a-4]),c[a]));break;case 153:this.$=b.addLocationDataFn(e[a],e[a])(new b.ExportSpecifier(c[a]));break;case 154:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ExportSpecifier(c[a-2],c[a]));break;case 155:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.ExportSpecifier(c[a-2],new b.Literal(c[a])));
|
case 104:this.$=d.addLocationDataFn(g[a],g[a])(new d.Access(new d.PropertyName("prototype")));break;case 107:this.$=d.addLocationDataFn(g[a-1],g[a])(d.extend(b[a],{soak:!0}));break;case 108:this.$=d.addLocationDataFn(g[a],g[a])(new d.Index(b[a]));break;case 109:this.$=d.addLocationDataFn(g[a],g[a])(new d.Slice(b[a]));break;case 110:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Obj(b[a-2],b[a-3].generated));break;case 116:this.$=d.addLocationDataFn(g[a],g[a])(new d.Class);break;case 117:this.$=d.addLocationDataFn(g[a-
|
||||||
break;case 156:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.TaggedTemplateCall(c[a-2],c[a],c[a-1]));break;case 157:case 158:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Call(c[a-2],c[a],c[a-1]));break;case 160:this.$=b.addLocationDataFn(e[a],e[a])(new b.SuperCall);break;case 161:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.SuperCall(c[a]));break;case 162:this.$=b.addLocationDataFn(e[a],e[a])(!1);break;case 163:this.$=b.addLocationDataFn(e[a],e[a])(!0);break;case 164:this.$=b.addLocationDataFn(e[a-
|
1],g[a])(new d.Class(null,null,b[a]));break;case 118:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Class(null,b[a]));break;case 119:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Class(null,b[a-1],b[a]));break;case 120:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Class(b[a]));break;case 121:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Class(b[a-1],null,b[a]));break;case 122:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Class(b[a-2],b[a]));break;case 123:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Class(b[a-
|
||||||
1],e[a])([]);break;case 166:case 167:this.$=b.addLocationDataFn(e[a],e[a])(new b.Value(new b.ThisLiteral));break;case 168:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Value(b.addLocationDataFn(e[a-1])(new b.ThisLiteral),[b.addLocationDataFn(e[a])(new b.Access(c[a]))],"this"));break;case 169:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Arr([]));break;case 170:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Arr(c[a-2]));break;case 171:this.$=b.addLocationDataFn(e[a],e[a])("inclusive");break;case 172:this.$=
|
3],b[a-1],b[a]));break;case 124:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.ImportDeclaration(null,b[a]));break;case 125:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.ImportDeclaration(new d.ImportClause(b[a-2],null),b[a]));break;case 126:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.ImportDeclaration(new d.ImportClause(null,b[a-2]),b[a]));break;case 127:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.ImportDeclaration(new d.ImportClause(null,new d.ImportSpecifierList([])),b[a]));break;case 128:this.$=
|
||||||
b.addLocationDataFn(e[a],e[a])("exclusive");break;case 173:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Range(c[a-3],c[a-1],c[a-2]));break;case 174:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Range(c[a-2],c[a],c[a-1]));break;case 175:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Range(c[a-1],null,c[a]));break;case 176:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Range(null,c[a],c[a-1]));break;case 177:this.$=b.addLocationDataFn(e[a],e[a])(new b.Range(null,null,c[a]));break;case 187:this.$=b.addLocationDataFn(e[a-
|
d.addLocationDataFn(g[a-6],g[a])(new d.ImportDeclaration(new d.ImportClause(null,new d.ImportSpecifierList(b[a-4])),b[a]));break;case 129:this.$=d.addLocationDataFn(g[a-5],g[a])(new d.ImportDeclaration(new d.ImportClause(b[a-4],b[a-2]),b[a]));break;case 130:this.$=d.addLocationDataFn(g[a-8],g[a])(new d.ImportDeclaration(new d.ImportClause(b[a-7],new d.ImportSpecifierList(b[a-4])),b[a]));break;case 134:case 155:case 171:case 187:this.$=d.addLocationDataFn(g[a-3],g[a])(b[a-2]);break;case 136:this.$=
|
||||||
2],e[a])([].concat(c[a-2],c[a]));break;case 188:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Try(c[a]));break;case 189:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Try(c[a-1],c[a][0],c[a][1]));break;case 190:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Try(c[a-2],null,null,c[a]));break;case 191:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Try(c[a-3],c[a-2][0],c[a-2][1],c[a]));break;case 192:this.$=b.addLocationDataFn(e[a-2],e[a])([c[a-1],c[a]]);break;case 193:this.$=b.addLocationDataFn(e[a-2],
|
d.addLocationDataFn(g[a],g[a])(new d.ImportSpecifier(b[a]));break;case 137:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ImportSpecifier(b[a-2],b[a]));break;case 138:this.$=d.addLocationDataFn(g[a],g[a])(new d.ImportSpecifier(new d.Literal(b[a])));break;case 139:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ImportSpecifier(new d.Literal(b[a-2]),b[a]));break;case 140:this.$=d.addLocationDataFn(g[a],g[a])(new d.ImportDefaultSpecifier(b[a]));break;case 141:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ImportNamespaceSpecifier(new d.Literal(b[a-
|
||||||
e[a])([b.addLocationDataFn(e[a-1])(new b.Value(c[a-1])),c[a]]);break;case 194:this.$=b.addLocationDataFn(e[a-1],e[a])([null,c[a]]);break;case 195:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Throw(c[a]));break;case 196:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Parens(c[a-1]));break;case 197:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Parens(c[a-2]));break;case 198:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.While(c[a]));break;case 199:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.While(c[a-
|
2]),b[a]));break;case 142:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList([])));break;case 143:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList(b[a-2])));break;case 144:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.ExportNamedDeclaration(b[a]));break;case 145:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.ExportNamedDeclaration(new d.Assign(b[a-2],b[a],null,{moduleDeclaration:"export"})));break;case 146:this.$=
|
||||||
2],{guard:c[a]}));break;case 200:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.While(c[a],{invert:!0}));break;case 201:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.While(c[a-2],{invert:!0,guard:c[a]}));break;case 202:this.$=b.addLocationDataFn(e[a-1],e[a])(c[a-1].addBody(c[a]));break;case 203:case 204:this.$=b.addLocationDataFn(e[a-1],e[a])(c[a].addBody(b.addLocationDataFn(e[a-1])(b.Block.wrap([c[a-1]]))));break;case 205:this.$=b.addLocationDataFn(e[a],e[a])(c[a]);break;case 206:this.$=b.addLocationDataFn(e[a-
|
d.addLocationDataFn(g[a-4],g[a])(new d.ExportNamedDeclaration(new d.Assign(b[a-3],b[a],null,{moduleDeclaration:"export"})));break;case 147:this.$=d.addLocationDataFn(g[a-5],g[a])(new d.ExportNamedDeclaration(new d.Assign(b[a-4],b[a-1],null,{moduleDeclaration:"export"})));break;case 148:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ExportDefaultDeclaration(b[a]));break;case 149:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.ExportDefaultDeclaration(new d.Value(b[a-1])));break;case 150:this.$=d.addLocationDataFn(g[a-
|
||||||
1],e[a])((new b.While(b.addLocationDataFn(e[a-1])(new b.BooleanLiteral("true")))).addBody(c[a]));break;case 207:this.$=b.addLocationDataFn(e[a-1],e[a])((new b.While(b.addLocationDataFn(e[a-1])(new b.BooleanLiteral("true")))).addBody(b.addLocationDataFn(e[a])(b.Block.wrap([c[a]]))));break;case 208:case 209:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.For(c[a-1],c[a]));break;case 210:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.For(c[a],c[a-1]));break;case 211:this.$=b.addLocationDataFn(e[a-1],e[a])({source:b.addLocationDataFn(e[a])(new b.Value(c[a]))});
|
3],g[a])(new d.ExportAllDeclaration(new d.Literal(b[a-2]),b[a]));break;case 151:this.$=d.addLocationDataFn(g[a-6],g[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList(b[a-4]),b[a]));break;case 157:this.$=d.addLocationDataFn(g[a],g[a])(new d.ExportSpecifier(b[a]));break;case 158:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ExportSpecifier(b[a-2],b[a]));break;case 159:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ExportSpecifier(b[a-2],new d.Literal(b[a])));break;case 160:this.$=d.addLocationDataFn(g[a],
|
||||||
break;case 212:this.$=b.addLocationDataFn(e[a-3],e[a])({source:b.addLocationDataFn(e[a-2])(new b.Value(c[a-2])),step:c[a]});break;case 213:b=b.addLocationDataFn(e[a-1],e[a]);c[a].own=c[a-1].own;c[a].ownTag=c[a-1].ownTag;c[a].name=c[a-1][0];c[a].index=c[a-1][1];this.$=b(c[a]);break;case 214:this.$=b.addLocationDataFn(e[a-1],e[a])(c[a]);break;case 215:ua=b.addLocationDataFn(e[a-2],e[a]);c[a].own=!0;c[a].ownTag=b.addLocationDataFn(e[a-1])(new b.Literal(c[a-1]));this.$=ua(c[a]);break;case 221:this.$=
|
g[a])(new d.ExportSpecifier(new d.Literal(b[a])));break;case 161:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.ExportSpecifier(new d.Literal(b[a-2]),b[a]));break;case 162:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.TaggedTemplateCall(b[a-2],b[a],b[a-1]));break;case 163:case 164:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Call(b[a-2],b[a],b[a-1]));break;case 166:this.$=d.addLocationDataFn(g[a],g[a])(new d.SuperCall);break;case 167:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.SuperCall(b[a]));
|
||||||
b.addLocationDataFn(e[a-2],e[a])([c[a-2],c[a]]);break;case 222:this.$=b.addLocationDataFn(e[a-1],e[a])({source:c[a]});break;case 223:this.$=b.addLocationDataFn(e[a-1],e[a])({source:c[a],object:!0});break;case 224:this.$=b.addLocationDataFn(e[a-3],e[a])({source:c[a-2],guard:c[a]});break;case 225:this.$=b.addLocationDataFn(e[a-3],e[a])({source:c[a-2],guard:c[a],object:!0});break;case 226:this.$=b.addLocationDataFn(e[a-3],e[a])({source:c[a-2],step:c[a]});break;case 227:this.$=b.addLocationDataFn(e[a-
|
break;case 168:this.$=d.addLocationDataFn(g[a],g[a])(!1);break;case 169:this.$=d.addLocationDataFn(g[a],g[a])(!0);break;case 170:this.$=d.addLocationDataFn(g[a-1],g[a])([]);break;case 172:case 173:this.$=d.addLocationDataFn(g[a],g[a])(new d.Value(new d.ThisLiteral));break;case 174:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Value(d.addLocationDataFn(g[a-1])(new d.ThisLiteral),[d.addLocationDataFn(g[a])(new d.Access(b[a]))],"this"));break;case 175:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Arr([]));
|
||||||
5],e[a])({source:c[a-4],guard:c[a-2],step:c[a]});break;case 228:this.$=b.addLocationDataFn(e[a-5],e[a])({source:c[a-4],step:c[a-2],guard:c[a]});break;case 229:this.$=b.addLocationDataFn(e[a-1],e[a])({source:c[a],from:!0});break;case 230:this.$=b.addLocationDataFn(e[a-3],e[a])({source:c[a-2],guard:c[a],from:!0});break;case 231:this.$=b.addLocationDataFn(e[a-4],e[a])(new b.Switch(c[a-3],c[a-1]));break;case 232:this.$=b.addLocationDataFn(e[a-6],e[a])(new b.Switch(c[a-5],c[a-3],c[a-1]));break;case 233:this.$=
|
break;case 176:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Arr(b[a-2]));break;case 177:this.$=d.addLocationDataFn(g[a],g[a])("inclusive");break;case 178:this.$=d.addLocationDataFn(g[a],g[a])("exclusive");break;case 179:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Range(b[a-3],b[a-1],b[a-2]));break;case 180:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Range(b[a-2],b[a],b[a-1]));break;case 181:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Range(b[a-1],null,b[a]));break;case 182:this.$=d.addLocationDataFn(g[a-
|
||||||
b.addLocationDataFn(e[a-3],e[a])(new b.Switch(null,c[a-1]));break;case 234:this.$=b.addLocationDataFn(e[a-5],e[a])(new b.Switch(null,c[a-3],c[a-1]));break;case 236:this.$=b.addLocationDataFn(e[a-1],e[a])(c[a-1].concat(c[a]));break;case 237:this.$=b.addLocationDataFn(e[a-2],e[a])([[c[a-1],c[a]]]);break;case 238:this.$=b.addLocationDataFn(e[a-3],e[a])([[c[a-2],c[a-1]]]);break;case 239:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.If(c[a-1],c[a],{type:c[a-2]}));break;case 240:this.$=b.addLocationDataFn(e[a-
|
1],g[a])(new d.Range(null,b[a],b[a-1]));break;case 183:this.$=d.addLocationDataFn(g[a],g[a])(new d.Range(null,null,b[a]));break;case 193:this.$=d.addLocationDataFn(g[a-2],g[a])([].concat(b[a-2],b[a]));break;case 194:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Try(b[a]));break;case 195:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Try(b[a-1],b[a][0],b[a][1]));break;case 196:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Try(b[a-2],null,null,b[a]));break;case 197:this.$=d.addLocationDataFn(g[a-4],
|
||||||
4],e[a])(c[a-4].addElse(b.addLocationDataFn(e[a-2],e[a])(new b.If(c[a-1],c[a],{type:c[a-2]}))));break;case 242:this.$=b.addLocationDataFn(e[a-2],e[a])(c[a-2].addElse(c[a]));break;case 243:case 244:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.If(c[a],b.addLocationDataFn(e[a-2])(b.Block.wrap([c[a-2]])),{type:c[a-1],statement:!0}));break;case 247:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op("-",c[a]));break;case 248:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op("+",c[a]));break;case 249:this.$=
|
g[a])(new d.Try(b[a-3],b[a-2][0],b[a-2][1],b[a]));break;case 198:this.$=d.addLocationDataFn(g[a-2],g[a])([b[a-1],b[a]]);break;case 199:this.$=d.addLocationDataFn(g[a-2],g[a])([d.addLocationDataFn(g[a-1])(new d.Value(b[a-1])),b[a]]);break;case 200:this.$=d.addLocationDataFn(g[a-1],g[a])([null,b[a]]);break;case 201:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Throw(b[a]));break;case 202:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Parens(b[a-1]));break;case 203:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Parens(b[a-
|
||||||
b.addLocationDataFn(e[a-1],e[a])(new b.Op("--",c[a]));break;case 250:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op("++",c[a]));break;case 251:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op("--",c[a-1],null,!0));break;case 252:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Op("++",c[a-1],null,!0));break;case 253:this.$=b.addLocationDataFn(e[a-1],e[a])(new b.Existence(c[a-1]));break;case 254:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Op("+",c[a-2],c[a]));break;case 255:this.$=b.addLocationDataFn(e[a-
|
2]));break;case 204:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.While(b[a]));break;case 205:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.While(b[a-2],{guard:b[a]}));break;case 206:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.While(b[a],{invert:!0}));break;case 207:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.While(b[a-2],{invert:!0,guard:b[a]}));break;case 208:this.$=d.addLocationDataFn(g[a-1],g[a])(b[a-1].addBody(b[a]));break;case 209:case 210:this.$=d.addLocationDataFn(g[a-1],g[a])(b[a].addBody(d.addLocationDataFn(g[a-
|
||||||
2],e[a])(new b.Op("-",c[a-2],c[a]));break;case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:case 265:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Op(c[a-1],c[a-2],c[a]));break;case 266:e=b.addLocationDataFn(e[a-2],e[a]);c="!"===c[a-1].charAt(0)?(new b.Op(c[a-1].slice(1),c[a-2],c[a])).invert():new b.Op(c[a-1],c[a-2],c[a]);this.$=e(c);break;case 267:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Assign(c[a-2],c[a],c[a-1]));break;case 268:this.$=b.addLocationDataFn(e[a-
|
1])(d.Block.wrap([b[a-1]]))));break;case 211:this.$=d.addLocationDataFn(g[a],g[a])(b[a]);break;case 212:this.$=d.addLocationDataFn(g[a-1],g[a])((new d.While(d.addLocationDataFn(g[a-1])(new d.BooleanLiteral("true")))).addBody(b[a]));break;case 213:this.$=d.addLocationDataFn(g[a-1],g[a])((new d.While(d.addLocationDataFn(g[a-1])(new d.BooleanLiteral("true")))).addBody(d.addLocationDataFn(g[a])(d.Block.wrap([b[a]]))));break;case 214:case 215:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.For(b[a-1],b[a]));
|
||||||
4],e[a])(new b.Assign(c[a-4],c[a-1],c[a-3]));break;case 269:this.$=b.addLocationDataFn(e[a-3],e[a])(new b.Assign(c[a-3],c[a],c[a-2]));break;case 270:this.$=b.addLocationDataFn(e[a-2],e[a])(new b.Extends(c[a-2],c[a]))}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:6,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:t,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,
|
break;case 216:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.For(b[a],b[a-1]));break;case 217:this.$=d.addLocationDataFn(g[a-1],g[a])({source:d.addLocationDataFn(g[a])(new d.Value(b[a]))});break;case 218:this.$=d.addLocationDataFn(g[a-3],g[a])({source:d.addLocationDataFn(g[a-2])(new d.Value(b[a-2])),step:b[a]});break;case 219:d=d.addLocationDataFn(g[a-1],g[a]);b[a].own=b[a-1].own;b[a].ownTag=b[a-1].ownTag;b[a].name=b[a-1][0];b[a].index=b[a-1][1];this.$=d(b[a]);break;case 220:this.$=d.addLocationDataFn(g[a-
|
||||||
74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{1:[3]},{1:[2,2],6:xa},a(ta,[2,3]),a(ta,[2,6],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(ta,[2,7],{141:77,132:105,138:106,133:C,135:A,139:B,156:ya}),a(ta,[2,8]),a(sa,[2,14],{109:107,
|
1],g[a])(b[a]);break;case 221:Ca=d.addLocationDataFn(g[a-2],g[a]);b[a].own=!0;b[a].ownTag=d.addLocationDataFn(g[a-1])(new d.Literal(b[a-1]));this.$=Ca(b[a]);break;case 227:this.$=d.addLocationDataFn(g[a-2],g[a])([b[a-2],b[a]]);break;case 228:this.$=d.addLocationDataFn(g[a-1],g[a])({source:b[a]});break;case 229:this.$=d.addLocationDataFn(g[a-1],g[a])({source:b[a],object:!0});break;case 230:this.$=d.addLocationDataFn(g[a-3],g[a])({source:b[a-2],guard:b[a]});break;case 231:this.$=d.addLocationDataFn(g[a-
|
||||||
78:108,86:114,40:Ja,41:Ja,114:Ja,82:Ta,83:Ga,84:Ua,85:Fa,87:Pa,90:Qa,113:Na}),a(sa,[2,15],{86:114,109:117,78:118,82:Ta,83:Ga,84:Ua,85:Fa,87:Pa,90:Qa,113:Na,114:Ja}),a(sa,[2,16]),a(sa,[2,17]),a(sa,[2,18]),a(sa,[2,19]),a(sa,[2,20]),a(sa,[2,21]),a(sa,[2,22]),a(sa,[2,23]),a(sa,[2,24]),a(sa,[2,25]),a(sa,[2,26]),a(za,[2,9]),a(za,[2,10]),a(za,[2,11]),a(za,[2,12]),a(za,[2,13]),a([1,6,32,42,131,133,135,139,156,163,164,165,166,167,168,169,170,171,172,173,174],ma,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,
|
3],g[a])({source:b[a-2],guard:b[a],object:!0});break;case 232:this.$=d.addLocationDataFn(g[a-3],g[a])({source:b[a-2],step:b[a]});break;case 233:this.$=d.addLocationDataFn(g[a-5],g[a])({source:b[a-4],guard:b[a-2],step:b[a]});break;case 234:this.$=d.addLocationDataFn(g[a-5],g[a])({source:b[a-4],step:b[a-2],guard:b[a]});break;case 235:this.$=d.addLocationDataFn(g[a-1],g[a])({source:b[a],from:!0});break;case 236:this.$=d.addLocationDataFn(g[a-3],g[a])({source:b[a-2],guard:b[a],from:!0});break;case 237:this.$=
|
||||||
23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,132:43,136:44,138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,7:120,8:122,12:c,28:ea,29:Ha,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,61:[1,119],62:m,63:g,67:r,68:q,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,137:W,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),a(Aa,Ia,{55:[1,124]}),a(Aa,[2,95]),a(Aa,[2,96]),a(Aa,[2,97]),a(Aa,[2,98]),a(b,[2,
|
d.addLocationDataFn(g[a-4],g[a])(new d.Switch(b[a-3],b[a-1]));break;case 238:this.$=d.addLocationDataFn(g[a-6],g[a])(new d.Switch(b[a-5],b[a-3],b[a-1]));break;case 239:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Switch(null,b[a-1]));break;case 240:this.$=d.addLocationDataFn(g[a-5],g[a])(new d.Switch(null,b[a-3],b[a-1]));break;case 242:this.$=d.addLocationDataFn(g[a-1],g[a])(b[a-1].concat(b[a]));break;case 243:this.$=d.addLocationDataFn(g[a-2],g[a])([[b[a-1],b[a]]]);break;case 244:this.$=d.addLocationDataFn(g[a-
|
||||||
159]),a([6,31,65,70],p,{64:125,71:126,72:127,33:129,60:130,74:131,75:132,34:d,73:ra,92:k,118:ua,119:e}),{30:135,31:va},{7:137,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,
|
3],g[a])([[b[a-2],b[a-1]]]);break;case 245:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.If(b[a-1],b[a],{type:b[a-2]}));break;case 246:this.$=d.addLocationDataFn(g[a-4],g[a])(b[a-4].addElse(d.addLocationDataFn(g[a-2],g[a])(new d.If(b[a-1],b[a],{type:b[a-2]}))));break;case 248:this.$=d.addLocationDataFn(g[a-2],g[a])(b[a-2].addElse(b[a]));break;case 249:case 250:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.If(b[a],d.addLocationDataFn(g[a-2])(d.Block.wrap([b[a-2]])),{type:b[a-1],statement:!0}));break;
|
||||||
137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:138,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,
|
case 253:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("-",b[a]));break;case 254:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("+",b[a]));break;case 255:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("--",b[a]));break;case 256:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("++",b[a]));break;case 257:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("--",b[a-1],null,!0));break;case 258:this.$=d.addLocationDataFn(g[a-1],g[a])(new d.Op("++",b[a-1],null,!0));break;case 259:this.$=d.addLocationDataFn(g[a-
|
||||||
154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:139,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,
|
1],g[a])(new d.Existence(b[a-1]));break;case 260:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Op("+",b[a-2],b[a]));break;case 261:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Op("-",b[a-2],b[a]));break;case 262:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:case 271:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Op(b[a-1],b[a-2],b[a]));break;case 272:g=d.addLocationDataFn(g[a-2],g[a]);b="!"===b[a-1].charAt(0)?(new d.Op(b[a-1].slice(1),b[a-2],b[a])).invert():new d.Op(b[a-
|
||||||
160:J,161:aa,162:Q},{7:140,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{15:142,16:143,
|
1],b[a-2],b[a]);this.$=g(b);break;case 273:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Assign(b[a-2],b[a],b[a-1]));break;case 274:this.$=d.addLocationDataFn(g[a-4],g[a])(new d.Assign(b[a-4],b[a-1],b[a-3]));break;case 275:this.$=d.addLocationDataFn(g[a-3],g[a])(new d.Assign(b[a-3],b[a],b[a-2]));break;case 276:this.$=d.addLocationDataFn(g[a-2],g[a])(new d.Extends(b[a-2],b[a]))}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:6,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,
|
||||||
33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:144,60:71,74:53,75:54,77:141,79:28,80:29,81:30,92:k,111:31,112:H,117:y,118:T,119:S,130:R},{15:142,16:143,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:144,60:71,74:53,75:54,77:145,79:28,80:29,81:30,92:k,111:31,112:H,117:y,118:T,119:S,130:R},a(Ka,wa,{96:[1,149],161:[1,146],162:[1,147],175:[1,148]}),a(sa,[2,241],{151:[1,150]}),{30:151,31:va},{30:152,31:va},a(sa,
|
24:16,25:17,26:18,27:19,28:u,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{1:[3]},{1:[2,2],6:ra},a(ta,[2,3]),a(ta,[2,6],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,
|
||||||
[2,205]),{30:153,31:va},{7:154,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,155],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},
|
166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(ta,[2,7],{141:77,132:105,138:106,133:D,135:A,139:E,156:ya}),a(ta,[2,8]),a(na,[2,14],{109:107,78:108,86:114,40:Da,41:Da,114:Da,82:va,83:xa,84:Ha,85:Ka,87:Fa,90:Ra,113:La}),a(na,[2,15],{86:114,109:117,78:118,82:va,83:xa,84:Ha,85:Ka,87:Fa,90:Ra,113:La,114:Da}),a(na,[2,16]),a(na,[2,17]),a(na,[2,18]),a(na,[2,19]),a(na,[2,20]),a(na,[2,21]),a(na,[2,22]),a(na,[2,23]),a(na,[2,24]),a(na,[2,25]),a(na,[2,26]),a(Ga,[2,9]),a(Ga,[2,10]),a(Ga,[2,
|
||||||
a(Eb,[2,115],{47:27,79:28,80:29,81:30,111:31,74:53,75:54,37:55,43:57,33:70,60:71,39:80,15:142,16:143,54:144,30:156,77:158,31:va,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,92:k,96:[1,157],112:H,117:y,118:T,119:S,130:R}),{7:159,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,
|
11]),a(Ga,[2,12]),a(Ga,[2,13]),a([1,6,32,42,131,133,135,139,156,163,164,165,166,167,168,169,170,171,172,173,174],Wa,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,141:77,39:80,7:120,8:122,12:b,28:da,29:Za,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:[1,119],63:B,64:n,68:c,69:w,92:q,95:h,97:K,105:P,112:L,117:U,118:W,
|
||||||
77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(za,$a,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,132:43,136:44,138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,8:122,7:160,12:c,28:ea,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,
|
119:H,125:Z,129:T,130:V,137:r,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,162:M}),a(Ea,Ia,{55:[1,124]}),a(Ea,[2,96]),a(Ea,[2,97]),a(Ea,[2,98]),a(Ea,[2,99]),a(m,[2,165]),a([6,31,66,71],l,{65:125,72:126,73:127,33:129,60:130,75:131,62:132,34:f,74:d,92:q,118:Ca,119:Ja}),{30:135,31:ua},{7:137,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,
|
||||||
51:L,52:I,53:x,61:E,62:m,63:g,67:r,68:q,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,137:W,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),a([1,6,31,32,42,70,94,131,133,135,139,156],[2,66]),{33:165,34:d,39:161,40:l,41:u,92:[1,164],98:162,99:163,103:Fb},{25:168,33:169,34:d,92:[1,167],95:h,106:[1,170],107:[1,171]},a(Ka,[2,92]),a(Ka,[2,93]),a(Aa,[2,40]),a(Aa,[2,41]),a(Aa,[2,42]),a(Aa,[2,43]),a(Aa,[2,44]),a(Aa,[2,45]),a(Aa,[2,46]),a(Aa,[2,47]),{4:172,5:3,7:4,8:5,9:6,10:20,11:21,12:c,
|
60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:138,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,
|
||||||
13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:t,31:[1,173],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:174,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,
|
68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:139,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,
|
||||||
17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:ab,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,116:176,117:y,118:T,119:S,120:Gb,123:177,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Aa,[2,166]),a(Aa,[2,167],{35:181,36:Oa}),
|
81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:140,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,
|
||||||
a([1,6,31,32,42,46,65,70,73,82,83,84,85,87,89,90,94,113,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],[2,160],{110:183,114:sb}),{31:[2,69]},{31:[2,70]},a(La,[2,87]),a(La,[2,90]),{7:185,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,
|
112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{15:142,16:143,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:144,60:71,62:54,75:53,77:141,79:28,80:29,81:30,92:q,111:31,112:L,117:U,118:W,119:H,130:V},{15:142,16:143,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:144,60:71,62:54,75:53,77:145,79:28,80:29,81:30,
|
||||||
79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:186,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,
|
92:q,111:31,112:L,117:U,118:W,119:H,130:V},a(Na,wa,{96:[1,149],161:[1,146],162:[1,147],175:[1,148]}),a(na,[2,247],{151:[1,150]}),{30:151,31:ua},{30:152,31:ua},a(na,[2,211]),{30:153,31:ua},{7:154,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,155],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,
|
||||||
104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:187,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,
|
97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Gb,[2,116],{47:27,79:28,80:29,81:30,111:31,75:53,62:54,37:55,43:57,33:70,60:71,39:80,15:142,16:143,54:144,30:156,77:158,31:ua,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,92:q,96:[1,157],112:L,117:U,118:W,119:H,130:V}),{7:159,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,
|
||||||
119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:189,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,30:188,31:va,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,
|
25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Ga,$a,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,
|
||||||
130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{33:194,34:d,60:195,74:196,75:197,80:190,92:k,118:ua,119:S,143:191,144:[1,192],145:193},{142:198,146:[1,199],147:[1,200],148:[1,201]},a([6,31,70,94],Hb,{39:80,93:202,56:203,57:204,59:205,11:206,37:207,33:208,35:209,60:210,34:d,36:Oa,38:v,40:l,41:u,62:m,118:ua}),a(Ib,[2,34]),a(Ib,[2,35]),a(Aa,[2,38]),{15:142,16:211,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,
|
81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,141:77,39:80,8:122,7:160,12:b,28:da,31:Hb,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:Q,63:B,64:n,68:c,69:w,92:q,95:h,97:K,105:P,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,137:r,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,162:M}),a([1,6,31,32,42,71,94,131,133,135,139,156],[2,67]),{33:166,34:f,39:162,40:t,41:p,92:[1,165],98:163,99:164,104:Ib},{25:169,33:170,34:f,92:[1,168],95:h,103:[1,171],107:[1,
|
||||||
50:G,51:L,52:I,53:x,54:144,60:71,74:53,75:54,77:212,79:28,80:29,81:30,92:k,111:31,112:H,117:y,118:T,119:S,130:R},a([1,6,29,31,32,40,41,42,55,58,65,70,73,82,83,84,85,87,89,90,94,96,102,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],[2,32]),a(Jb,[2,36]),{4:213,5:3,7:4,8:5,9:6,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:t,33:70,34:d,37:55,38:v,39:80,40:l,41:u,
|
172]},a(Na,[2,93]),a(Na,[2,94]),a(Ea,[2,40]),a(Ea,[2,41]),a(Ea,[2,42]),a(Ea,[2,43]),a(Ea,[2,44]),a(Ea,[2,45]),a(Ea,[2,46]),a(Ea,[2,47]),{4:173,5:3,7:4,8:5,9:6,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:u,31:[1,174],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,
|
||||||
43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(ta,[2,5],{7:4,8:5,9:6,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,132:43,136:44,
|
129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:175,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:ab,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,75:53,76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,116:177,117:U,118:W,119:H,120:Jb,123:178,
|
||||||
138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,5:214,12:c,28:t,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,61:E,62:m,63:g,67:r,68:q,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,133:C,135:A,137:W,139:B,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),a(sa,[2,253]),{7:215,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,
|
125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Ea,[2,172]),a(Ea,[2,173],{35:182,36:Qa}),a([1,6,31,32,42,46,66,71,74,82,83,84,85,87,89,90,94,113,115,120,122,131,133,134,135,139,140,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],[2,166],{110:184,114:ub}),{31:[2,70]},{31:[2,71]},a(Oa,[2,88]),a(Oa,[2,91]),{7:186,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,
|
||||||
50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:216,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,
|
26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:187,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,
|
||||||
61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:217,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,
|
37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:188,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,
|
||||||
74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:218,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,
|
44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:190,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,30:189,31:ua,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,
|
||||||
81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:219,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,
|
48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{33:195,34:f,60:196,62:198,75:197,80:191,92:q,118:Ca,119:H,143:192,144:[1,193],145:194},{142:199,146:[1,200],147:[1,201],148:[1,202]},a([6,31,71,94],Kb,{39:80,93:203,56:204,57:205,59:206,11:207,37:208,33:209,35:210,
|
||||||
112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:220,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,
|
60:211,34:f,36:Qa,38:k,40:t,41:p,63:B,118:Ca}),a(Lb,[2,34]),a(Lb,[2,35]),a(Ea,[2,38]),{15:142,16:212,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:144,60:71,62:54,75:53,77:213,79:28,80:29,81:30,92:q,111:31,112:L,117:U,118:W,119:H,130:V},a([1,6,29,31,32,40,41,42,55,58,66,71,74,82,83,84,85,87,89,90,94,96,102,113,114,115,120,122,131,133,134,135,139,140,146,147,148,156,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],[2,32]),a(Mb,[2,36]),
|
||||||
129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:221,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,
|
{4:214,5:3,7:4,8:5,9:6,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:u,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(ta,[2,5],{7:4,8:5,
|
||||||
136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:222,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,
|
9:6,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,141:77,39:80,5:215,12:b,28:u,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:Q,63:B,64:n,68:c,69:w,92:q,95:h,97:K,105:P,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,133:D,135:A,137:r,139:E,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,162:M}),a(na,[2,259]),{7:216,8:122,10:20,
|
||||||
149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:223,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,
|
11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:217,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,
|
||||||
159:U,160:J,161:aa,162:Q},{7:224,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:225,
|
17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:218,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,
|
||||||
8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:226,8:122,10:20,11:21,12:c,13:23,14:24,
|
22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:219,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,
|
||||||
15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:227,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,
|
27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:220,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,
|
||||||
21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:228,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,
|
38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:221,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,
|
||||||
26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(sa,[2,204]),a(sa,[2,209]),{7:229,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,
|
45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:222,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,
|
||||||
27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(sa,[2,203]),a(sa,[2,208]),{39:230,40:l,41:u,110:231,114:sb},a(La,[2,88]),a(Kb,[2,163]),{35:232,36:Oa},{35:233,36:Oa},a(La,[2,103],{35:234,36:Oa}),
|
52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:223,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,
|
||||||
{35:235,36:Oa},a(La,[2,104]),{7:237,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Lb,74:53,75:54,77:40,79:28,80:29,81:30,88:236,91:238,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,121:239,122:tb,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,
|
63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:224,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,
|
||||||
158:V,159:U,160:J,161:aa,162:Q},{86:242,87:Pa,90:Qa},{110:243,114:sb},a(La,[2,89]),a(ta,[2,65],{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,132:43,136:44,138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,8:122,7:244,12:c,28:ea,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,61:E,62:m,63:g,67:r,68:q,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,133:$a,135:$a,
|
77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:225,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,
|
||||||
139:$a,156:$a,137:W,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),a(Ma,[2,28],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:245,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,
|
95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:226,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,
|
||||||
95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{132:105,133:C,135:A,138:106,139:B,141:77,156:ya},a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,163,164,165,166,167,168,169,170,171,172,173,174],ma,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,
|
117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:227,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,
|
||||||
132:43,136:44,138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,7:120,8:122,12:c,28:ea,29:Ha,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,61:E,62:m,63:g,67:r,68:q,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,137:W,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),{6:[1,247],7:246,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,248],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,
|
130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:228,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,
|
||||||
47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a([6,31],Ea,{69:251,65:[1,249],70:Mb}),a(Va,[2,74]),a(Va,[2,78],{55:[1,253],73:[1,252]}),a(Va,[2,81]),a(fb,[2,82]),a(fb,[2,83]),a(fb,[2,84]),a(fb,[2,85]),{35:181,36:Oa},{7:254,8:122,10:20,11:21,12:c,13:23,14:24,
|
137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:229,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,
|
||||||
15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:ab,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,116:176,117:y,118:T,119:S,120:Gb,123:177,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(sa,[2,68]),{4:256,5:3,7:4,8:5,
|
154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(na,[2,210]),a(na,[2,215]),{7:230,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,
|
||||||
9:6,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:t,32:[1,255],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a([1,6,31,32,42,65,70,73,89,94,
|
155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(na,[2,209]),a(na,[2,214]),{39:231,40:t,41:p,110:232,114:ub},a(Oa,[2,89]),a(Nb,[2,169]),{35:233,36:Qa},{35:234,36:Qa},a(Oa,[2,104],{35:235,36:Qa}),{35:236,36:Qa},a(Oa,[2,105]),{7:238,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Ob,75:53,77:40,
|
||||||
115,120,122,131,133,134,135,139,140,156,159,160,164,165,166,167,168,169,170,171,172,173,174],[2,245],{141:77,132:102,138:103,163:da}),a(bb,[2,246],{141:77,132:102,138:103,163:da,165:fa}),a(bb,[2,247],{141:77,132:102,138:103,163:da,165:fa}),a(bb,[2,248],{141:77,132:102,138:103,163:da,165:fa}),a(sa,[2,249],{40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa}),a(Kb,Ja,{109:107,78:108,86:114,82:Ta,83:Ga,84:Ua,85:Fa,87:Pa,90:Qa,113:Na}),{78:118,82:Ta,83:Ga,84:Ua,85:Fa,86:114,87:Pa,90:Qa,109:117,
|
79:28,80:29,81:30,88:237,91:239,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,121:240,122:vb,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{86:243,87:Fa,90:Ra},{110:244,114:ub},a(Oa,[2,90]),a(ta,[2,66],{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,
|
||||||
113:Na,114:Ja},a(Nb,Ia),a(sa,[2,250],{40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa}),a(sa,[2,251]),a(sa,[2,252]),{6:[1,259],7:257,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,258],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,
|
141:77,39:80,8:122,7:245,12:b,28:da,31:Hb,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:Q,63:B,64:n,68:c,69:w,92:q,95:h,97:K,105:P,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,133:$a,135:$a,139:$a,156:$a,137:r,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,162:M}),a(Pa,[2,28],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{7:246,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,
|
||||||
129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:260,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,
|
24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{132:105,133:D,135:A,138:106,139:E,141:77,156:ya},a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,163,
|
||||||
136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{30:261,31:va,155:[1,262]},a(sa,[2,188],{126:263,127:[1,264],128:[1,265]}),a(sa,[2,202]),a(sa,[2,210]),{31:[1,266],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{150:267,152:268,153:gb},a(sa,[2,116]),{7:270,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,
|
164,165,166,167,168,169,170,171,172,173,174],Wa,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,141:77,39:80,7:120,8:122,12:b,28:da,29:Za,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:Q,63:B,64:n,68:c,69:w,92:q,95:h,97:K,105:P,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,137:r,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,
|
||||||
27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Eb,[2,119],{30:271,31:va,40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa,96:[1,272]}),a(Ma,[2,195],{141:77,132:102,138:103,159:ia,
|
162:M}),{6:[1,248],7:247,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,249],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},
|
||||||
160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(za,cb,{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(za,[2,123]),{29:[1,273],70:[1,274]},{29:[1,275]},{31:hb,33:280,34:d,94:[1,276],100:277,101:278},a([29,70],[2,137]),{102:[1,281]},{31:ub,33:286,34:d,94:[1,282],105:283,108:284},a(za,[2,141]),{55:[1,287]},{7:288,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,
|
a([6,31],Ma,{70:252,66:[1,250],71:Pb}),a(Ua,[2,75]),a(Ua,[2,79],{55:[1,254],74:[1,253]}),a(Ua,[2,82]),a(hb,[2,83]),a(hb,[2,84]),a(hb,[2,85]),a(hb,[2,86]),{35:182,36:Qa},{7:255,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:ab,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,75:53,76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,
|
||||||
21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{29:[1,289]},{6:xa,131:[1,290]},{4:291,5:3,7:4,8:5,9:6,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,
|
111:31,112:L,116:177,117:U,118:W,119:H,120:Jb,123:178,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(na,[2,69]),{4:257,5:3,7:4,8:5,9:6,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:u,32:[1,256],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,
|
||||||
19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:t,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a([6,31,70,120],Ob,{141:77,132:102,138:103,121:292,73:[1,293],122:tb,133:C,135:A,139:B,156:pa,
|
81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,159,160,164,165,166,167,168,169,170,171,172,173,174],[2,251],{141:77,132:102,138:103,163:ea}),a(bb,[2,252],{141:77,132:102,138:103,163:ea,165:fa}),a(bb,[2,253],{141:77,132:102,138:103,163:ea,165:fa}),a(bb,[2,254],{141:77,132:102,138:103,163:ea,
|
||||||
159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(vb,[2,169]),a([6,31,120],Ea,{69:294,70:ib}),a(Ra,[2,178]),{7:254,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:ab,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,
|
165:fa}),a(na,[2,255],{40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa}),a(Nb,Da,{109:107,78:108,86:114,82:va,83:xa,84:Ha,85:Ka,87:Fa,90:Ra,113:La}),{78:118,82:va,83:xa,84:Ha,85:Ka,86:114,87:Fa,90:Ra,109:117,113:La,114:Da},a(Qb,Ia),a(na,[2,256],{40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa}),a(na,[2,257]),a(na,[2,258]),{6:[1,260],7:258,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,259],33:70,
|
||||||
116:296,117:y,118:T,119:S,123:177,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ra,[2,184]),a(Ra,[2,185]),a(Pb,[2,168]),a(Pb,[2,33]),a(b,[2,161]),{7:254,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:ab,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,
|
34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:261,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,
|
||||||
75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,115:[1,297],116:298,117:y,118:T,119:S,123:177,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{30:299,31:va,132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(Qb,[2,198],{141:77,132:102,138:103,133:C,134:[1,300],135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,
|
43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{30:262,31:ua,155:[1,263]},a(na,[2,194],{126:264,127:[1,265],128:[1,266]}),a(na,[2,208]),a(na,[2,216]),{31:[1,267],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,
|
||||||
166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Qb,[2,200],{141:77,132:102,138:103,133:C,134:[1,301],135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(sa,[2,206]),a(Ya,[2,207],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,156,159,160,163,164,165,166,167,168,169,
|
165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{150:268,152:269,153:ib},a(na,[2,117]),{7:271,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,
|
||||||
170,171,172,173,174],[2,211],{140:[1,302]}),a(jb,[2,214]),{33:194,34:d,60:195,74:196,75:197,92:k,118:ua,119:e,143:303,145:193},a(jb,[2,220],{70:[1,304]}),a(kb,[2,216]),a(kb,[2,217]),a(kb,[2,218]),a(kb,[2,219]),a(sa,[2,213]),{7:305,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,
|
138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Gb,[2,120],{30:272,31:ua,40:wa,41:wa,82:wa,83:wa,84:wa,85:wa,87:wa,90:wa,113:wa,114:wa,96:[1,273]}),a(Pa,[2,201],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ga,cb,{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{62:274,92:q},a(Ga,[2,124]),{29:[1,275],71:[1,276]},{29:[1,
|
||||||
80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:306,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,
|
277]},{31:jb,33:282,34:f,94:[1,278],100:279,101:280,103:Xa},a([29,71],[2,140]),{102:[1,284]},{31:wb,33:289,34:f,94:[1,285],103:db,106:286,108:287},a(Ga,[2,144]),{55:[1,291]},{7:292,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,293],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,
|
||||||
111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:307,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,
|
112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{29:[1,294]},{6:ra,131:[1,295]},{4:296,5:3,7:4,8:5,9:6,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:u,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,
|
||||||
125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(lb,Ea,{69:308,70:Rb}),a(Ba,[2,111]),a(Ba,[2,51],{58:[1,310]}),a(Sb,[2,60],{55:[1,311]}),a(Ba,[2,56]),a(Sb,[2,61]),a(wb,[2,57]),a(wb,[2,58]),a(wb,[2,59]),{46:[1,312],78:118,82:Ta,83:Ga,84:Ua,85:Fa,86:114,87:Pa,90:Qa,109:117,113:Na,114:Ja},a(Nb,wa),{6:xa,42:[1,313]},a(ta,[2,4]),a(Tb,[2,254],{141:77,132:102,138:103,163:da,164:ga,165:fa}),a(Tb,[2,255],{141:77,132:102,138:103,
|
111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a([6,31,71,120],Rb,{141:77,132:102,138:103,121:297,74:[1,298],122:vb,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(xb,[2,175]),a([6,31,120],Ma,{70:299,71:kb}),a(Sa,[2,184]),{7:255,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,
|
||||||
163:da,164:ga,165:fa}),a(bb,[2,256],{141:77,132:102,138:103,163:da,165:fa}),a(bb,[2,257],{141:77,132:102,138:103,163:da,165:fa}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,166,167,168,169,170,171,172,173,174],[2,258],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,167,168,169,170,171,172,173],[2,259],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,174:la}),a([1,6,31,32,
|
24:16,25:17,26:18,27:19,28:da,31:ab,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,75:53,76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,116:301,117:U,118:W,119:H,123:178,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Sa,[2,190]),a(Sa,[2,191]),a(Sb,[2,174]),a(Sb,[2,33]),a(m,[2,167]),{7:255,8:122,10:20,
|
||||||
42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,168,169,170,171,172,173],[2,260],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,169,170,171,172,173],[2,261],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,170,171,172,173],[2,262],{141:77,132:102,138:103,159:ia,160:ba,163:da,
|
11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:ab,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,75:53,76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,115:[1,302],116:303,117:U,118:W,119:H,123:178,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{30:304,
|
||||||
164:ga,165:fa,166:ka,167:ja,168:M,169:ha,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,171,172,173],[2,263],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,172,173],[2,264],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,
|
31:ua,132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(Tb,[2,204],{141:77,132:102,138:103,133:D,134:[1,305],135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Tb,[2,206],{141:77,132:102,138:103,133:D,134:[1,306],135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(na,[2,212]),a(Ya,
|
||||||
140,156,173],[2,265],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,174:la}),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,140,156,167,168,169,170,171,172,173,174],[2,266],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka}),a(Ya,[2,244],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ya,[2,243],{141:77,132:102,138:103,
|
[2,213],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,156,159,160,163,164,165,166,167,168,169,170,171,172,173,174],[2,217],{140:[1,307]}),a(lb,[2,220]),{33:195,34:f,60:196,62:198,75:197,92:q,118:Ca,119:Ja,143:308,145:194},a(lb,[2,226],{71:[1,309]}),a(mb,[2,222]),a(mb,[2,223]),a(mb,[2,224]),a(mb,[2,225]),a(na,[2,219]),{7:310,8:122,10:20,11:21,
|
||||||
133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(b,[2,156]),a(b,[2,157]),a(La,[2,99]),a(La,[2,100]),a(La,[2,101]),a(La,[2,102]),{89:[1,314]},{73:Lb,89:[2,107],121:315,122:tb,132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{89:[2,108]},{7:316,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,
|
12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:311,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,
|
||||||
25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,89:[2,177],92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ub,[2,171]),a(Ub,Vb),a(La,[2,106]),a(b,[2,158]),a(ta,[2,64],{141:77,132:102,138:103,133:cb,135:cb,139:cb,156:cb,159:ia,
|
18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:312,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,
|
||||||
160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ma,[2,29],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ma,[2,48],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:317,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,
|
23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(nb,Ma,{70:313,71:Ub}),a(Ba,[2,112]),a(Ba,[2,51],{58:[1,315]}),a(Vb,[2,60],{55:[1,316]}),a(Ba,[2,56]),a(Vb,[2,61]),
|
||||||
38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:318,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,
|
a(yb,[2,57]),a(yb,[2,58]),a(yb,[2,59]),{46:[1,317],78:118,82:va,83:xa,84:Ha,85:Ka,86:114,87:Fa,90:Ra,109:117,113:La,114:Da},a(Qb,wa),{6:ra,42:[1,318]},a(ta,[2,4]),a(Wb,[2,260],{141:77,132:102,138:103,163:ea,164:ia,165:fa}),a(Wb,[2,261],{141:77,132:102,138:103,163:ea,164:ia,165:fa}),a(bb,[2,262],{141:77,132:102,138:103,163:ea,165:fa}),a(bb,[2,263],{141:77,132:102,138:103,163:ea,165:fa}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,166,167,168,169,170,171,172,173,174],[2,264],
|
||||||
45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{66:319,67:r,68:q},a(Sa,db,{72:127,33:129,60:130,74:131,75:132,71:320,34:d,73:ra,92:k,118:ua,119:e}),{6:Wb,31:Xb},a(Va,[2,79]),{7:323,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,
|
{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,167,168,169,170,171,172,173],[2,265],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,168,169,170,171,172,173],[2,266],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,169,
|
||||||
21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ra,Ob,{141:77,132:102,138:103,73:[1,324],133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,
|
170,171,172,173],[2,267],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,170,171,172,173],[2,268],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,171,172,173],[2,269],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,174:ca}),a([1,
|
||||||
167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Yb,[2,30]),{6:xa,32:[1,325]},a(Ma,[2,267],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:326,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,
|
6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,172,173],[2,270],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,173],[2,271],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,174:ca}),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,140,156,167,168,169,170,171,172,173,174],[2,272],
|
||||||
80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:327,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,
|
{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja}),a(Ya,[2,250],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ya,[2,249],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(m,[2,162]),a(m,[2,163]),a(Oa,[2,100]),a(Oa,[2,101]),a(Oa,[2,102]),a(Oa,[2,103]),{89:[1,319]},{74:Ob,89:[2,108],121:320,122:vb,
|
||||||
111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ma,[2,270],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(sa,[2,242]),{7:328,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,
|
132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{89:[2,109]},{7:321,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,89:[2,183],92:q,95:h,97:K,105:P,111:31,112:L,117:U,
|
||||||
50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(sa,[2,189],{127:[1,329]}),{30:330,31:va},{30:333,31:va,33:331,34:d,75:332,92:k},{150:334,152:268,153:gb},{32:[1,335],151:[1,336],152:337,153:gb},a(mb,[2,235]),{7:339,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,
|
118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Xb,[2,177]),a(Xb,Yb),a(Oa,[2,107]),a(m,[2,164]),a(ta,[2,65],{141:77,132:102,138:103,133:cb,135:cb,139:cb,156:cb,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Pa,[2,29],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Pa,[2,48],{141:77,
|
||||||
19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,124:338,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Zb,[2,117],{141:77,132:102,138:103,30:340,31:va,133:C,135:A,139:B,159:ia,160:ba,163:da,
|
132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{7:322,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,
|
||||||
164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(sa,[2,120]),{7:341,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,
|
137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:323,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,
|
||||||
149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{39:342,40:l,41:u},{92:[1,344],99:343,103:Fb},{39:345,40:l,41:u},{29:[1,346]},a(lb,Ea,{69:347,70:nb}),a(Ba,[2,130]),{31:hb,33:280,34:d,100:349,101:278},a(Ba,[2,135],{102:[1,350]}),{33:351,34:d},a(za,[2,139]),a(lb,Ea,{69:352,70:xb}),a(Ba,[2,148]),{31:ub,33:286,34:d,105:354,108:284},a(Ba,[2,153],{102:[1,355]}),{6:[1,357],7:356,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,
|
154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{67:324,68:c,69:w},a(Ta,eb,{73:127,33:129,60:130,75:131,62:132,72:325,34:f,74:d,92:q,118:Ca,119:Ja}),{6:Zb,31:$b},a(Ua,[2,80]),{7:328,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,
|
||||||
358],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(yb,[2,145],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),
|
117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Sa,Rb,{141:77,132:102,138:103,74:[1,329],133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(ac,[2,30]),{6:ra,32:[1,330]},a(Pa,[2,273],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{7:331,8:122,10:20,11:21,
|
||||||
{39:359,40:l,41:u},a(Aa,[2,196]),{6:xa,32:[1,360]},{7:361,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,
|
12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:332,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,
|
||||||
160:J,161:aa,162:Q},a([12,28,34,38,40,41,44,45,48,49,50,51,52,53,61,62,63,67,68,92,95,97,104,112,117,118,119,125,129,130,133,135,137,139,149,155,157,158,159,160,161,162],Vb,{6:eb,31:eb,70:eb,120:eb}),{6:ob,31:pb,120:[1,362]},a([6,31,32,115,120],db,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,66:33,77:40,154:41,132:43,136:44,138:45,74:53,75:54,37:55,43:57,33:70,60:71,141:77,39:80,8:122,76:179,7:254,123:365,
|
18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Pa,[2,276],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,
|
||||||
12:c,28:ea,34:d,38:v,40:l,41:u,44:F,45:w,48:z,49:n,50:G,51:L,52:I,53:x,61:E,62:m,63:g,67:r,68:q,73:Wa,92:k,95:h,97:K,104:O,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,133:C,135:A,137:W,139:B,149:N,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q}),a(Sa,Ea,{69:366,70:ib}),a(b,[2,164]),a([6,31,115],Ea,{69:367,70:ib}),a($b,[2,239]),{7:368,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,
|
169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(na,[2,248]),{7:333,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,
|
||||||
48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:369,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,
|
159:v,160:X,161:R,162:M},a(na,[2,195],{127:[1,334]}),{30:335,31:ua},{30:338,31:ua,33:336,34:f,62:337,92:q},{150:339,152:269,153:ib},{32:[1,340],151:[1,341],152:342,153:ib},a(ob,[2,241]),{7:344,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,
|
||||||
54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:370,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,
|
112:L,117:U,118:W,119:H,124:343,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(bc,[2,118],{141:77,132:102,138:103,30:345,31:ua,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(na,[2,121]),{7:346,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,
|
||||||
67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(jb,[2,215]),{33:194,34:d,60:195,74:196,75:197,92:k,118:ua,119:e,145:371},a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,135,139,156],[2,222],{141:77,132:102,138:103,134:[1,372],140:[1,373],159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,
|
43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{32:[1,347]},{39:348,40:t,41:p},{92:[1,350],99:349,104:Ib},{39:351,40:t,41:p},{29:[1,352]},a(nb,Ma,{70:353,71:pb}),a(Ba,[2,131]),{31:jb,33:282,34:f,100:355,101:280,103:Xa},a(Ba,[2,136],{102:[1,
|
||||||
173:qa,174:la}),a(zb,[2,223],{141:77,132:102,138:103,134:[1,374],159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(zb,[2,229],{141:77,132:102,138:103,134:[1,375],159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{6:ac,31:bc,94:[1,376]},a(Ab,db,{39:80,57:204,59:205,11:206,37:207,33:208,35:209,60:210,56:379,34:d,36:Oa,38:v,40:l,41:u,62:m,118:ua}),{7:380,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,
|
356]}),a(Ba,[2,138],{102:[1,357]}),{33:358,34:f},a(Ga,[2,142]),a(nb,Ma,{70:359,71:zb}),a(Ba,[2,152]),{31:wb,33:289,34:f,103:db,106:361,108:287},a(Ba,[2,157],{102:[1,362]}),a(Ba,[2,160],{102:[1,363]}),{6:[1,365],7:364,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,366],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,
|
||||||
18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,381],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:382,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,
|
80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Ab,[2,148],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{62:367,92:q},{39:368,40:t,41:p},a(Ea,[2,202]),{6:ra,32:[1,369]},{7:370,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,
|
||||||
22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:[1,383],33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Aa,[2,39]),a(Jb,[2,37]),a(La,[2,105]),{7:384,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,
|
24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a([12,28,34,38,40,41,44,45,48,49,50,51,52,53,61,63,64,68,69,92,95,97,105,112,117,118,119,125,129,130,133,135,137,139,149,155,
|
||||||
19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,89:[2,175],92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{89:[2,176],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,
|
157,158,159,160,161,162],Yb,{6:fb,31:fb,71:fb,120:fb}),{6:qb,31:rb,120:[1,371]},a([6,31,32,115,120],eb,{15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,10:20,11:21,13:23,14:24,54:26,47:27,79:28,80:29,81:30,111:31,67:33,77:40,154:41,132:43,136:44,138:45,75:53,62:54,37:55,43:57,33:70,60:71,141:77,39:80,8:122,76:180,7:255,123:374,12:b,28:da,34:f,38:k,40:t,41:p,44:z,45:I,48:J,49:F,50:N,51:y,52:G,53:O,61:Q,63:B,64:n,68:c,69:w,74:Va,92:q,95:h,97:K,105:P,112:L,117:U,118:W,119:H,
|
||||||
165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(Ma,[2,49],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{32:[1,385],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{30:386,31:va},a(Va,[2,75]),{33:129,34:d,60:130,71:387,72:127,73:ra,74:131,75:132,92:k,118:ua,119:e},a(cc,p,{71:126,72:127,33:129,60:130,74:131,
|
125:Z,129:T,130:V,133:D,135:A,137:r,139:E,149:aa,155:ba,157:C,158:S,159:v,160:X,161:R,162:M}),a(Ta,Ma,{70:375,71:kb}),a(m,[2,170]),a([6,31,115],Ma,{70:376,71:kb}),a(cc,[2,245]),{7:377,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,
|
||||||
75:132,64:388,34:d,73:ra,92:k,118:ua,119:e}),a(Va,[2,80],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ra,eb),a(Yb,[2,31]),{32:[1,389],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(Ma,[2,269],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,
|
117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:378,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,
|
||||||
173:qa,174:la}),{30:390,31:va,132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{30:391,31:va},a(sa,[2,190]),{30:392,31:va},{30:393,31:va},a(Bb,[2,194]),{32:[1,394],151:[1,395],152:337,153:gb},a(sa,[2,233]),{30:396,31:va},a(mb,[2,236]),{30:397,31:va,70:[1,398]},a(dc,[2,186],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,
|
130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:379,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,
|
||||||
173:qa,174:la}),a(sa,[2,118]),a(Zb,[2,121],{141:77,132:102,138:103,30:399,31:va,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(za,[2,124]),{29:[1,400]},{31:hb,33:280,34:d,100:401,101:278},a(za,[2,125]),{39:402,40:l,41:u},{6:qb,31:rb,94:[1,403]},a(Ab,db,{33:280,101:406,34:d}),a(Sa,Ea,{69:407,70:nb}),{33:408,34:d},{29:[2,138]},{6:Cb,31:Db,94:[1,409]},a(Ab,db,{33:286,108:412,34:d}),a(Sa,Ea,{69:413,70:xb}),{33:414,34:d,106:[1,415]},
|
137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(lb,[2,221]),{33:195,34:f,60:196,62:198,75:197,92:q,118:Ca,119:Ja,145:380},a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,135,139,156],[2,228],{141:77,132:102,138:103,134:[1,381],140:[1,382],159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Bb,[2,229],{141:77,132:102,138:103,134:[1,383],159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,
|
||||||
a(yb,[2,142],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:416,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,
|
172:oa,173:sa,174:ca}),a(Bb,[2,235],{141:77,132:102,138:103,134:[1,384],159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{6:dc,31:ec,94:[1,385]},a(Cb,eb,{39:80,57:205,59:206,11:207,37:208,33:209,35:210,60:211,56:388,34:f,36:Qa,38:k,40:t,41:p,63:B,118:Ca}),{7:389,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,390],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,
|
||||||
129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:417,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,
|
49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:391,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:[1,392],33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,
|
||||||
136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(za,[2,146]),{131:[1,418]},{120:[1,419],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(vb,[2,170]),{7:254,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,
|
53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Ea,[2,39]),a(Mb,[2,37]),a(Oa,[2,106]),{7:393,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,
|
||||||
54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,123:420,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:254,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,31:ab,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,
|
51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,89:[2,181],92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{89:[2,182],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(Pa,[2,49],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,
|
||||||
60:71,61:E,62:m,63:g,66:33,67:r,68:q,73:Wa,74:53,75:54,76:179,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,116:421,117:y,118:T,119:S,123:177,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ra,[2,179]),{6:ob,31:pb,32:[1,422]},{6:ob,31:pb,115:[1,423]},a(Ya,[2,199],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ya,
|
165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{32:[1,394],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{30:395,31:ua},a(Ua,[2,76]),{33:129,34:f,60:130,62:132,72:396,73:127,74:d,75:131,92:q,118:Ca,119:Ja},a(fc,l,{72:126,73:127,33:129,60:130,75:131,62:132,65:397,34:f,74:d,92:q,118:Ca,119:Ja}),a(Ua,[2,81],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,
|
||||||
[2,201],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ya,[2,212],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(jb,[2,221]),{7:424,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,
|
165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Sa,fb),a(ac,[2,31]),{32:[1,398],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(Pa,[2,275],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{30:399,31:ua,132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,
|
||||||
49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:425,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,
|
169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{30:400,31:ua},a(na,[2,196]),{30:401,31:ua},{30:402,31:ua},a(Db,[2,200]),{32:[1,403],151:[1,404],152:342,153:ib},a(na,[2,239]),{30:405,31:ua},a(ob,[2,242]),{30:406,31:ua,71:[1,407]},a(gc,[2,192],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(na,[2,119]),a(bc,[2,122],{141:77,132:102,138:103,30:408,31:ua,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,
|
||||||
60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:426,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,
|
166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ga,[2,63]),a(Ga,[2,125]),{29:[1,409]},{31:jb,33:282,34:f,100:410,101:280,103:Xa},a(Ga,[2,126]),{39:411,40:t,41:p},{6:sb,31:tb,94:[1,412]},a(Cb,eb,{33:282,101:415,34:f,103:Xa}),a(Ta,Ma,{70:416,71:pb}),{33:417,34:f},{33:418,34:f},{29:[2,141]},{6:Eb,31:Fb,94:[1,419]},a(Cb,eb,{33:289,108:422,34:f,103:db}),a(Ta,Ma,{70:423,71:zb}),{33:424,34:f,103:[1,425]},{33:426,34:f},a(Ab,[2,145],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,
|
||||||
68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:427,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,
|
163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{7:427,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,
|
||||||
81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(vb,[2,109]),{11:206,33:208,34:d,35:209,36:Oa,37:207,38:v,39:80,40:l,41:u,56:428,57:204,59:205,60:210,62:m,118:ua},a(cc,Hb,{39:80,56:203,57:204,59:205,11:206,37:207,33:208,35:209,60:210,93:429,34:d,36:Oa,38:v,40:l,41:u,62:m,118:ua}),a(Ba,[2,112]),a(Ba,[2,52],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,
|
154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:428,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,
|
||||||
160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:430,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,
|
160:X,161:R,162:M},{32:[1,429]},a(Ga,[2,150]),{131:[1,430]},{120:[1,431],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(xb,[2,176]),{7:255,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,
|
||||||
149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},a(Ba,[2,54],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),{7:431,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,
|
75:53,76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,123:432,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:255,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,31:ab,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,74:Va,75:53,
|
||||||
81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{89:[2,174],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(sa,[2,50]),a(sa,[2,67]),a(Va,[2,76]),a(Sa,Ea,{69:432,70:Mb}),a(sa,[2,268]),a($b,[2,240]),a(sa,[2,191]),a(Bb,[2,192]),a(Bb,[2,193]),a(sa,[2,231]),{30:433,31:va},
|
76:180,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,116:433,117:U,118:W,119:H,123:178,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(Sa,[2,185]),{6:qb,31:rb,32:[1,434]},{6:qb,31:rb,115:[1,435]},a(Ya,[2,205],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ya,[2,207],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,
|
||||||
{32:[1,434]},a(mb,[2,237],{6:[1,435]}),{7:436,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,
|
160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ya,[2,218],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(lb,[2,227]),{7:436,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,
|
||||||
162:Q},a(sa,[2,122]),{39:437,40:l,41:u},a(lb,Ea,{69:438,70:nb}),a(za,[2,126]),{29:[1,439]},{33:280,34:d,101:440},{31:hb,33:280,34:d,100:441,101:278},a(Ba,[2,131]),{6:qb,31:rb,32:[1,442]},a(Ba,[2,136]),a(za,[2,140],{29:[1,443]}),{33:286,34:d,108:444},{31:ub,33:286,34:d,105:445,108:284},a(Ba,[2,149]),{6:Cb,31:Db,32:[1,446]},a(Ba,[2,154]),a(Ba,[2,155]),a(yb,[2,143],{141:77,132:102,138:103,133:C,135:A,139:B,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),
|
64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:437,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,
|
||||||
{32:[1,447],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},a(Aa,[2,197]),a(Aa,[2,173]),a(Ra,[2,180]),a(Sa,Ea,{69:448,70:ib}),a(Ra,[2,181]),a(b,[2,165]),a([1,6,31,32,42,65,70,73,89,94,115,120,122,131,133,134,135,139,156],[2,224],{141:77,132:102,138:103,140:[1,449],159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(zb,[2,226],{141:77,132:102,138:103,134:[1,
|
79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:438,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,
|
||||||
450],159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ma,[2,225],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ma,[2,230],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ba,[2,113]),a(Sa,Ea,{69:451,70:Rb}),{32:[1,452],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,
|
105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:439,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,
|
||||||
165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{32:[1,453],132:102,133:C,135:A,138:103,139:B,141:77,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la},{6:Wb,31:Xb,32:[1,454]},{32:[1,455]},a(sa,[2,234]),a(mb,[2,238]),a(dc,[2,187],{141:77,132:102,138:103,133:C,135:A,139:B,156:pa,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(za,[2,128]),{6:qb,31:rb,94:[1,456]},{39:457,40:l,
|
119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(xb,[2,110]),{11:207,33:209,34:f,35:210,36:Qa,37:208,38:k,39:80,40:t,41:p,56:440,57:205,59:206,60:211,63:B,118:Ca},a(fc,Kb,{39:80,56:204,57:205,59:206,11:207,37:208,33:209,35:210,60:211,93:441,34:f,36:Qa,38:k,40:t,41:p,63:B,118:Ca}),a(Ba,[2,113]),a(Ba,[2,52],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,
|
||||||
41:u},a(Ba,[2,132]),a(Sa,Ea,{69:458,70:nb}),a(Ba,[2,133]),{39:459,40:l,41:u},a(Ba,[2,150]),a(Sa,Ea,{69:460,70:xb}),a(Ba,[2,151]),a(za,[2,144]),{6:ob,31:pb,32:[1,461]},{7:462,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,
|
170:ha,171:ka,172:oa,173:sa,174:ca}),{7:442,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,
|
||||||
119:S,125:P,129:Z,130:R,132:43,133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{7:463,8:122,10:20,11:21,12:c,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:ea,33:70,34:d,37:55,38:v,39:80,40:l,41:u,43:57,44:F,45:w,47:27,48:z,49:n,50:G,51:L,52:I,53:x,54:26,60:71,61:E,62:m,63:g,66:33,67:r,68:q,74:53,75:54,77:40,79:28,80:29,81:30,92:k,95:h,97:K,104:O,111:31,112:H,117:y,118:T,119:S,125:P,129:Z,130:R,132:43,
|
162:M},a(Ba,[2,54],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),{7:443,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,
|
||||||
133:C,135:A,136:44,137:W,138:45,139:B,141:77,149:N,154:41,155:X,157:Y,158:V,159:U,160:J,161:aa,162:Q},{6:ac,31:bc,32:[1,464]},a(Ba,[2,53]),a(Ba,[2,55]),a(Va,[2,77]),a(sa,[2,232]),{29:[1,465]},a(za,[2,127]),{6:qb,31:rb,32:[1,466]},a(za,[2,147]),{6:Cb,31:Db,32:[1,467]},a(Ra,[2,182]),a(Ma,[2,227],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ma,[2,228],{141:77,132:102,138:103,159:ia,160:ba,163:da,164:ga,165:fa,166:ka,167:ja,
|
119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{89:[2,180],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(na,[2,50]),a(na,[2,68]),a(Ua,[2,77]),a(Ta,Ma,{70:444,71:Pb}),a(na,[2,274]),a(cc,[2,246]),a(na,[2,197]),a(Db,[2,198]),a(Db,[2,199]),a(na,[2,237]),{30:445,31:ua},{32:[1,446]},a(ob,[2,243],{6:[1,447]}),{7:448,8:122,
|
||||||
168:M,169:ha,170:ca,171:oa,172:na,173:qa,174:la}),a(Ba,[2,114]),{39:468,40:l,41:u},a(Ba,[2,134]),a(Ba,[2,152]),a(za,[2,129])],defaultActions:{68:[2,69],69:[2,70],238:[2,108],351:[2,138]},parseError:function(a,b){if(b.recoverable)this.trace(a);else{var e=function(a,b){this.message=a;this.hash=b};e.prototype=Error;throw new e(a,b);}},parse:function(a){var b=[0],e=[null],c=[],p=this.table,ra="",ua=0,d=0,f=0,g=c.slice.call(arguments,1),va=Object.create(this.lexer),h={},Ka;for(Ka in this.yy)Object.prototype.hasOwnProperty.call(this.yy,
|
10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},a(na,[2,123]),{39:449,40:t,41:p},a(nb,Ma,{70:450,
|
||||||
Ka)&&(h[Ka]=this.yy[Ka]);va.setInput(a,h);h.lexer=va;h.parser=this;"undefined"==typeof va.yylloc&&(va.yylloc={});Ka=va.yylloc;c.push(Ka);var m=va.options&&va.options.ranges;this.parseError="function"===typeof h.parseError?h.parseError:Object.getPrototypeOf(this).parseError;for(var q,r,Ia,k,n={},l,D;;){Ia=b[b.length-1];if(this.defaultActions[Ia])k=this.defaultActions[Ia];else{if(null===q||"undefined"==typeof q)q=va.lex()||1,"number"!==typeof q&&(q=this.symbols_[q]||q);k=p[Ia]&&p[Ia][q]}if("undefined"===
|
71:pb}),a(Ga,[2,127]),{29:[1,451]},{33:282,34:f,101:452,103:Xa},{31:jb,33:282,34:f,100:453,101:280,103:Xa},a(Ba,[2,132]),{6:sb,31:tb,32:[1,454]},a(Ba,[2,137]),a(Ba,[2,139]),a(Ga,[2,143],{29:[1,455]}),{33:289,34:f,103:db,108:456},{31:wb,33:289,34:f,103:db,106:457,108:287},a(Ba,[2,153]),{6:Eb,31:Fb,32:[1,458]},a(Ba,[2,158]),a(Ba,[2,159]),a(Ba,[2,161]),a(Ab,[2,146],{141:77,132:102,138:103,133:D,135:A,139:E,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),
|
||||||
typeof k||!k.length||!k[0]){var wa;D=[];for(l in p[Ia])this.terminals_[l]&&2<l&&D.push("'"+this.terminals_[l]+"'");wa=va.showPosition?"Parse error on line "+(ua+1)+":\n"+va.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[q]||q)+"'":"Parse error on line "+(ua+1)+": Unexpected "+(1==q?"end of input":"'"+(this.terminals_[q]||q)+"'");this.parseError(wa,{text:va.match,token:this.terminals_[q]||q,line:va.yylineno,loc:Ka,expected:D})}if(k[0]instanceof Array&&1<k.length)throw Error("Parse Error: multiple actions possible at state: "+
|
{32:[1,459],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},a(Ga,[2,149]),a(Ea,[2,203]),a(Ea,[2,179]),a(Sa,[2,186]),a(Ta,Ma,{70:460,71:kb}),a(Sa,[2,187]),a(m,[2,171]),a([1,6,31,32,42,66,71,74,89,94,115,120,122,131,133,134,135,139,156],[2,230],{141:77,132:102,138:103,140:[1,461],159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Bb,[2,232],{141:77,132:102,
|
||||||
Ia+", token: "+q);switch(k[0]){case 1:b.push(q);e.push(va.yytext);c.push(va.yylloc);b.push(k[1]);q=null;r?(q=r,r=null):(d=va.yyleng,ra=va.yytext,ua=va.yylineno,Ka=va.yylloc,0<f&&f--);break;case 2:D=this.productions_[k[1]][1];n.$=e[e.length-D];n._$={first_line:c[c.length-(D||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(D||1)].first_column,last_column:c[c.length-1].last_column};m&&(n._$.range=[c[c.length-(D||1)].range[0],c[c.length-1].range[1]]);Ia=this.performAction.apply(n,
|
138:103,134:[1,462],159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Pa,[2,231],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Pa,[2,236],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ba,[2,114]),a(Ta,Ma,{70:463,71:Ub}),{32:[1,464],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,
|
||||||
[ra,d,ua,h,k[1],e,c].concat(g));if("undefined"!==typeof Ia)return Ia;D&&(b=b.slice(0,-2*D),e=e.slice(0,-1*D),c=c.slice(0,-1*D));b.push(this.productions_[k[1]][0]);e.push(n.$);c.push(n._$);k=p[b[b.length-2]][b[b.length-1]];b.push(k);break;case 3:return!0}}}};f.prototype=ec;ec.Parser=f;return new f}();"undefined"!==typeof t&&"undefined"!==typeof f&&(f.parser=xa,f.Parser=xa.Parser,f.parse=function(){return xa.parse.apply(xa,arguments)},f.main=function(D){D[1]||(console.log("Usage: "+D[0]+" FILE"),process.exit(1));
|
163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{32:[1,465],132:102,133:D,135:A,138:103,139:E,141:77,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca},{6:Zb,31:$b,32:[1,466]},{32:[1,467]},a(na,[2,240]),a(ob,[2,244]),a(gc,[2,193],{141:77,132:102,138:103,133:D,135:A,139:E,156:Aa,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ga,[2,129]),{6:sb,31:tb,94:[1,
|
||||||
D=t("fs").readFileSync(t("path").normalize(D[1]),"utf8");return f.parser.parse(D)},"undefined"!==typeof ta&&t.main===ta&&f.main(process.argv.slice(1)));return ta.exports}();t["./scope"]=function(){var f={};(function(){var t=[].indexOf||function(f){for(var D=0,a=this.length;D<a;D++)if(D in this&&this[D]===f)return D;return-1};f.Scope=function(){function f(f,a,c,t){var d,D;this.parent=f;this.expressions=a;this.method=c;this.referencedVars=t;this.variables=[{name:"arguments",type:"arguments"}];this.positions=
|
468]},{39:469,40:t,41:p},a(Ba,[2,133]),a(Ta,Ma,{70:470,71:pb}),a(Ba,[2,134]),{39:471,40:t,41:p},a(Ba,[2,154]),a(Ta,Ma,{70:472,71:zb}),a(Ba,[2,155]),a(Ga,[2,147]),{6:qb,31:rb,32:[1,473]},{7:474,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,
|
||||||
{};this.parent||(this.utilities={});this.root=null!=(d=null!=(D=this.parent)?D.root:void 0)?d:this}f.prototype.add=function(f,a,c){return this.shared&&!c?this.parent.add(f,a,c):Object.prototype.hasOwnProperty.call(this.positions,f)?this.variables[this.positions[f]].type=a:this.positions[f]=this.variables.push({name:f,type:a})-1};f.prototype.namedMethod=function(){var f;return null!=(f=this.method)&&f.name||!this.parent?this.method:this.parent.namedMethod()};f.prototype.find=function(f){if(this.check(f))return!0;
|
112:L,117:U,118:W,119:H,125:Z,129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{7:475,8:122,10:20,11:21,12:b,13:23,14:24,15:7,16:8,17:9,18:10,19:11,20:12,21:13,22:14,23:15,24:16,25:17,26:18,27:19,28:da,33:70,34:f,37:55,38:k,39:80,40:t,41:p,43:57,44:z,45:I,47:27,48:J,49:F,50:N,51:y,52:G,53:O,54:26,60:71,61:Q,62:54,63:B,64:n,67:33,68:c,69:w,75:53,77:40,79:28,80:29,81:30,92:q,95:h,97:K,105:P,111:31,112:L,117:U,118:W,119:H,125:Z,
|
||||||
this.add(f,"var");return!1};f.prototype.parameter=function(f){if(!this.shared||!this.parent.check(f,!0))return this.add(f,"param")};f.prototype.check=function(f){var a;return!!(this.type(f)||null!=(a=this.parent)&&a.check(f))};f.prototype.temporary=function(f,a,c){null==c&&(c=!1);return c?(c=f.charCodeAt(0),f=122-c,c=String.fromCharCode(c+a%(f+1)),a=Math.floor(a/(f+1)),""+c+(a||"")):""+f+(a||"")};f.prototype.type=function(f){var a,c,D,d;D=this.variables;a=0;for(c=D.length;a<c;a++)if(d=D[a],d.name===
|
129:T,130:V,132:43,133:D,135:A,136:44,137:r,138:45,139:E,141:77,149:aa,154:41,155:ba,157:C,158:S,159:v,160:X,161:R,162:M},{6:dc,31:ec,32:[1,476]},a(Ba,[2,53]),a(Ba,[2,55]),a(Ua,[2,78]),a(na,[2,238]),{29:[1,477]},a(Ga,[2,128]),{6:sb,31:tb,32:[1,478]},a(Ga,[2,151]),{6:Eb,31:Fb,32:[1,479]},a(Sa,[2,188]),a(Pa,[2,233],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Pa,[2,234],{141:77,132:102,138:103,159:ma,160:Y,163:ea,164:ia,
|
||||||
f)return d.type;return null};f.prototype.freeVariable=function(f,a){var c,D,d;null==a&&(a={});for(c=0;;){d=this.temporary(f,c,a.single);if(!(this.check(d)||0<=t.call(this.root.referencedVars,d)))break;c++}(null!=(D=a.reserve)?D:1)&&this.add(d,"var",!0);return d};f.prototype.assign=function(f,a){this.add(f,{value:a,assigned:!0},!0);return this.hasAssignments=!0};f.prototype.hasDeclarations=function(){return!!this.declaredVariables().length};f.prototype.declaredVariables=function(){var f,a,c,t,d;t=
|
165:fa,166:ja,167:la,168:pa,169:qa,170:ha,171:ka,172:oa,173:sa,174:ca}),a(Ba,[2,115]),{39:480,40:t,41:p},a(Ba,[2,135]),a(Ba,[2,156]),a(Ga,[2,130])],defaultActions:{68:[2,70],69:[2,71],239:[2,109],358:[2,141]},parseError:function(a,d){if(d.recoverable)this.trace(a);else throw a=Error(a),a.hash=d,a;},parse:function(a){var d=[0],b=[null],l=[],m=this.table,Ca="",g=0,Ja=0,c=0,f=l.slice.call(arguments,1),ua=Object.create(this.lexer),h={};for(n in this.yy)Object.prototype.hasOwnProperty.call(this.yy,n)&&
|
||||||
this.variables;d=[];a=0;for(c=t.length;a<c;a++)f=t[a],"var"===f.type&&d.push(f.name);return d.sort()};f.prototype.assignedVariables=function(){var f,a,c,t,d;c=this.variables;t=[];f=0;for(a=c.length;f<a;f++)d=c[f],d.type.assigned&&t.push(d.name+" \x3d "+d.type.value);return t};return f}()}).call(this);return f}();t["./nodes"]=function(){var f={};(function(){var ta,pa,D,a,c,Ca,d,v,l,u,F,w,z,n,G,L,I,x,E,m,g,r,q,k,h,K,O,H,y,T,S,P,Z,R,C,A,W,B,N,X,Y,V,U,J,aa,Q,ya,Za,Xa,ia,ba,da,ga,fa,ka,ja,M,ha,ca,oa,na,
|
(h[n]=this.yy[n]);ua.setInput(a,h);h.lexer=ua;h.parser=this;"undefined"==typeof ua.yylloc&&(ua.yylloc={});var n=ua.yylloc;l.push(n);var k=ua.options&&ua.options.ranges;this.parseError="function"===typeof h.parseError?h.parseError:Object.getPrototypeOf(this).parseError;for(var e,q,Na,Ia,p={},wa,x;;){Na=d[d.length-1];if(this.defaultActions[Na])Ia=this.defaultActions[Na];else{if(null===e||"undefined"==typeof e)e=ua.lex()||1,"number"!==typeof e&&(e=this.symbols_[e]||e);Ia=m[Na]&&m[Na][e]}if("undefined"===
|
||||||
qa,la,Da,sa,Ja,Ta,Ga,Ua,Fa,Pa,Qa,Na,za,ma=function(a,b){function c(){this.constructor=a}for(var ra in b)ea.call(b,ra)&&(a[ra]=b[ra]);c.prototype=b.prototype;a.prototype=new c;a.__super__=b.prototype;return a},ea={}.hasOwnProperty,Ha=[].indexOf||function(a){for(var b=0,c=this.length;b<c;b++)if(b in this&&this[b]===a)return b;return-1},Aa=[].slice;Error.stackTraceLimit=Infinity;J=t("./scope").Scope;a=t("./lexer");Ga=a.isUnassignable;r=a.JS_FORBIDDEN;n=t("./helpers");oa=n.compact;la=n.flatten;qa=n.extend;
|
typeof Ia||!Ia.length||!Ia[0]){x=[];for(wa in m[Na])this.terminals_[wa]&&2<wa&&x.push("'"+this.terminals_[wa]+"'");var w=ua.showPosition?"Parse error on line "+(g+1)+":\n"+ua.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[e]||e)+"'":"Parse error on line "+(g+1)+": Unexpected "+(1==e?"end of input":"'"+(this.terminals_[e]||e)+"'");this.parseError(w,{text:ua.match,token:this.terminals_[e]||e,line:ua.yylineno,loc:n,expected:x})}if(Ia[0]instanceof Array&&1<Ia.length)throw Error("Parse Error: multiple actions possible at state: "+
|
||||||
Fa=n.merge;na=n.del;a=n.addLocationDataFn;Ua=n.locationDataToString;Qa=n.throwSyntaxError;f.extend=qa;f.addLocationDataFn=a;ha=function(){return!0};P=function(){return!1};da=function(){return this};S=function(){this.negated=!this.negated;return this};f.CodeFragment=u=function(){function a(a,c){var b;this.code=""+c;this.locationData=null!=a?a.locationData:void 0;this.type=(null!=a?null!=(b=a.constructor)?b.name:void 0:void 0)||"unknown"}a.prototype.toString=function(){return""+this.code+(this.locationData?
|
Na+", token: "+e);switch(Ia[0]){case 1:d.push(e);b.push(ua.yytext);l.push(ua.yylloc);d.push(Ia[1]);e=null;q?(e=q,q=null):(Ja=ua.yyleng,Ca=ua.yytext,g=ua.yylineno,n=ua.yylloc,0<c&&c--);break;case 2:x=this.productions_[Ia[1]][1];p.$=b[b.length-x];p._$={first_line:l[l.length-(x||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(x||1)].first_column,last_column:l[l.length-1].last_column};k&&(p._$.range=[l[l.length-(x||1)].range[0],l[l.length-1].range[1]]);Na=this.performAction.apply(p,
|
||||||
": "+Ua(this.locationData):"")};return a}();Da=function(a){var b,c,ra,ua;ua=[];c=0;for(ra=a.length;c<ra;c++)b=a[c],ua.push(b.code);return ua.join("")};f.Base=a=function(){function a(){}a.prototype.compile=function(a,c){return Da(this.compileToFragments(a,c))};a.prototype.compileToFragments=function(a,c){a=qa({},a);c&&(a.level=c);c=this.unfoldSoak(a)||this;c.tab=a.indent;return a.level!==H&&c.isStatement(a)?c.compileClosure(a):c.compileNode(a)};a.prototype.compileClosure=function(a){var b,ra,ua,e;
|
[Ca,Ja,g,h,Ia[1],b,l].concat(f));if("undefined"!==typeof Na)return Na;x&&(d=d.slice(0,-2*x),b=b.slice(0,-1*x),l=l.slice(0,-1*x));d.push(this.productions_[Ia[1]][0]);b.push(p.$);l.push(p._$);Ia=m[d[d.length-2]][d[d.length-1]];d.push(Ia);break;case 3:return!0}}}};e.prototype=hc;hc.Parser=e;return new e}();"undefined"!==typeof u&&"undefined"!==typeof e&&(e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(x){x[1]||(console.log("Usage: "+x[0]+" FILE"),process.exit(1));
|
||||||
(ua=this.jumps())&&ua.error("cannot use a pure statement in an expression");a.sharedScope=!0;ua=new l([],c.wrap([this]));b=[];if((ra=this.contains(Ja))||this.contains(Ta))b=[new ga],ra?(ra="apply",b.push(new x("arguments"))):ra="call",ua=new M(ua,[new ta(new N(ra))]);a=(new d(ua,b)).compileNode(a);if(ua.isGenerator||null!=(e=ua.base)&&e.isGenerator)a.unshift(this.makeCode("(yield* ")),a.push(this.makeCode(")"));return a};a.prototype.cache=function(a,c,ra){var b;if(null!=ra?ra(this):this.isComplex())return ra=
|
var a="",b=u("fs");"undefined"!==typeof b&&null!==b&&(a=b.readFileSync(u("path").normalize(x[1]),"utf8"));return e.parser.parse(a)},"undefined"!==typeof ra&&u.main===ra&&e.main(process.argv.slice(1)));return ra.exports}();u["./scope"]=function(){var e={};(function(){var u=[].indexOf||function(e){for(var x=0,a=this.length;x<a;x++)if(x in this&&this[x]===e)return x;return-1};e.Scope=function(){function e(e,a,b,r){var f,k;this.parent=e;this.expressions=a;this.method=b;this.referencedVars=r;this.variables=
|
||||||
new x(a.scope.freeVariable("ref")),b=new D(ra,this),c?[b.compileToFragments(a,c),[this.makeCode(ra.value)]]:[b,ra];ra=c?this.compileToFragments(a,c):this;return[ra,ra]};a.prototype.cacheToCodeFragments=function(a){return[Da(a[0]),Da(a[1])]};a.prototype.makeReturn=function(a){var b;b=this.unwrapAll();return a?new d(new y(a+".push"),[b]):new V(b)};a.prototype.contains=function(a){var b;b=void 0;this.traverseChildren(!1,function(c){if(a(c))return b=c,!1});return b};a.prototype.lastNonComment=function(a){var b;
|
[{name:"arguments",type:"arguments"}];this.positions={};this.parent||(this.utilities={});this.root=null!=(f=null!=(k=this.parent)?k.root:void 0)?f:this}e.prototype.add=function(e,a,b){return this.shared&&!b?this.parent.add(e,a,b):Object.prototype.hasOwnProperty.call(this.positions,e)?this.variables[this.positions[e]].type=a:this.positions[e]=this.variables.push({name:e,type:a})-1};e.prototype.namedMethod=function(){var e;return null!=(e=this.method)&&e.name||!this.parent?this.method:this.parent.namedMethod()};
|
||||||
for(b=a.length;b--;)if(!(a[b]instanceof F))return a[b];return null};a.prototype.toString=function(a,c){var b;null==a&&(a="");null==c&&(c=this.constructor.name);b="\n"+a+c;this.soak&&(b+="?");this.eachChild(function(c){return b+=c.toString(a+ba)});return b};a.prototype.eachChild=function(a){var b,c,ua,e,d,f,g;if(!this.children)return this;f=this.children;c=0;for(e=f.length;c<e;c++)if(b=f[c],this[b])for(g=la([this[b]]),ua=0,d=g.length;ua<d;ua++)if(b=g[ua],!1===a(b))return this;return this};a.prototype.traverseChildren=
|
e.prototype.find=function(e,a){null==a&&(a="var");if(this.check(e))return!0;this.add(e,a);return!1};e.prototype.parameter=function(e){if(!this.shared||!this.parent.check(e,!0))return this.add(e,"param")};e.prototype.check=function(e){var a;return!!(this.type(e)||null!=(a=this.parent)&&a.check(e))};e.prototype.temporary=function(e,a,b){null==b&&(b=!1);return b?(b=e.charCodeAt(0),e=122-b,b=String.fromCharCode(b+a%(e+1)),a=Math.floor(a/(e+1)),""+b+(a||"")):""+e+(a||"")};e.prototype.type=function(e){var a;
|
||||||
function(a,c){return this.eachChild(function(b){if(!1!==c(b))return b.traverseChildren(a,c)})};a.prototype.invert=function(){return new A("!",this)};a.prototype.unwrapAll=function(){var a;for(a=this;a!==(a=a.unwrap()););return a};a.prototype.children=[];a.prototype.isStatement=P;a.prototype.jumps=P;a.prototype.isComplex=ha;a.prototype.isChainable=P;a.prototype.isAssignable=P;a.prototype.isNumber=P;a.prototype.unwrap=da;a.prototype.unfoldSoak=P;a.prototype.assigns=P;a.prototype.updateLocationDataIfMissing=
|
var b=this.variables;var x=0;for(a=b.length;x<a;x++){var f=b[x];if(f.name===e)return f.type}return null};e.prototype.freeVariable=function(e,a){var b,x;null==a&&(a={});for(b=0;;){var f=this.temporary(e,b,a.single);if(!(this.check(f)||0<=u.call(this.root.referencedVars,f)))break;b++}(null!=(x=a.reserve)?x:1)&&this.add(f,"var",!0);return f};e.prototype.assign=function(e,a){this.add(e,{value:a,assigned:!0},!0);return this.hasAssignments=!0};e.prototype.hasDeclarations=function(){return!!this.declaredVariables().length};
|
||||||
function(a){if(this.locationData)return this;this.locationData=a;return this.eachChild(function(b){return b.updateLocationDataIfMissing(a)})};a.prototype.error=function(a){return Qa(a,this.locationData)};a.prototype.makeCode=function(a){return new u(this,a)};a.prototype.wrapInBraces=function(a){return[].concat(this.makeCode("("),a,this.makeCode(")"))};a.prototype.joinFragmentArrays=function(a,c){var b,p,e,d,f;b=[];e=d=0;for(f=a.length;d<f;e=++d)p=a[e],e&&b.push(this.makeCode(c)),b=b.concat(p);return b};
|
e.prototype.declaredVariables=function(){var e;var a=this.variables;var b=[];var r=0;for(e=a.length;r<e;r++){var f=a[r];"var"===f.type&&b.push(f.name)}return b.sort()};e.prototype.assignedVariables=function(){var e;var a=this.variables;var b=[];var r=0;for(e=a.length;r<e;r++){var f=a[r];f.type.assigned&&b.push(f.name+" \x3d "+f.type.value)}return b};return e}()}).call(this);return e}();u["./nodes"]=function(){var e={};(function(){var ra,r,x,a,b,za,f,k,t,p,z,I,J,F,N,y,G,O,Q,B,n,c,w,q,h,K,P,L,U,W,H,
|
||||||
return a}();f.Block=c=function(a){function b(a){this.expressions=oa(la(a||[]))}ma(b,a);b.prototype.children=["expressions"];b.prototype.push=function(a){this.expressions.push(a);return this};b.prototype.pop=function(){return this.expressions.pop()};b.prototype.unshift=function(a){this.expressions.unshift(a);return this};b.prototype.unwrap=function(){return 1===this.expressions.length?this.expressions[0]:this};b.prototype.isEmpty=function(){return!this.expressions.length};b.prototype.isStatement=function(a){var b,
|
Z,T,V,D,A,xa,E,aa,ba,C,S,v=function(a,b){function l(){this.constructor=a}for(var d in b)X.call(b,d)&&(a[d]=b[d]);l.prototype=b.prototype;a.prototype=new l;a.__super__=b.prototype;return a},X={}.hasOwnProperty,R=[].indexOf||function(a){for(var b=0,l=this.length;b<l;b++)if(b in this&&this[b]===a)return b;return-1},M=[].slice;Error.stackTraceLimit=Infinity;var ya=u("./scope").Scope;var ta=u("./lexer");var Aa=ta.isUnassignable;var ma=ta.JS_FORBIDDEN;var Y=u("./helpers");var ea=Y.compact;var ia=Y.flatten;
|
||||||
c,e,p;p=this.expressions;c=0;for(e=p.length;c<e;c++)if(b=p[c],b.isStatement(a))return!0;return!1};b.prototype.jumps=function(a){var b,c,e,p;p=this.expressions;c=0;for(e=p.length;c<e;c++)if(b=p[c],b=b.jumps(a))return b};b.prototype.makeReturn=function(a){var b,c;for(c=this.expressions.length;c--;)if(b=this.expressions[c],!(b instanceof F)){this.expressions[c]=b.makeReturn(a);b instanceof V&&!b.expression&&this.expressions.splice(c,1);break}return this};b.prototype.compileToFragments=function(a,c){null==
|
var fa=Y.extend;var ja=Y.merge;var la=Y.del;ta=Y.addLocationDataFn;var pa=Y.locationDataToString;var qa=Y.throwSyntaxError;e.extend=fa;e.addLocationDataFn=ta;var ha=function(){return!0};var ka=function(){return!1};var oa=function(){return this};var sa=function(){this.negated=!this.negated;return this};e.CodeFragment=t=function(){function a(a,b){var d;this.code=""+b;this.locationData=null!=a?a.locationData:void 0;this.type=(null!=a?null!=(d=a.constructor)?d.name:void 0:void 0)||"unknown"}a.prototype.toString=
|
||||||
a&&(a={});return a.scope?b.__super__.compileToFragments.call(this,a,c):this.compileRoot(a)};b.prototype.compileNode=function(a){var c,p,e,d,f,g,m;this.tab=a.indent;m=a.level===H;p=[];g=this.expressions;e=c=0;for(d=g.length;c<d;e=++c)f=g[e],f=f.unwrapAll(),f=f.unfoldSoak(a)||f,f instanceof b?p.push(f.compileNode(a)):m?(f.front=!0,e=f.compileToFragments(a),f.isStatement(a)||(e.unshift(this.makeCode(""+this.tab)),e.push(this.makeCode(";"))),p.push(e)):p.push(f.compileToFragments(a,h));if(m)return this.spaced?
|
function(){return""+this.code+(this.locationData?": "+pa(this.locationData):"")};return a}();var ca=function(a){var b;var l=[];var d=0;for(b=a.length;d<b;d++){var Ca=a[d];l.push(Ca.code)}return l.join("")};e.Base=ta=function(){function b(){}b.prototype.compile=function(a,b){return ca(this.compileToFragments(a,b))};b.prototype.compileToFragments=function(a,b){a=fa({},a);b&&(a.level=b);b=this.unfoldSoak(a)||this;b.tab=a.indent;return a.level!==na&&b.isStatement(a)?b.compileClosure(a):b.compileNode(a)};
|
||||||
[].concat(this.joinFragmentArrays(p,"\n\n"),this.makeCode("\n")):this.joinFragmentArrays(p,"\n");c=p.length?this.joinFragmentArrays(p,", "):[this.makeCode("void 0")];return 1<p.length&&a.level>=h?this.wrapInBraces(c):c};b.prototype.compileRoot=function(a){var b,c,e,p,d;a.indent=a.bare?"":ba;a.level=H;this.spaced=!0;a.scope=new J(null,this,null,null!=(e=a.referencedVars)?e:[]);d=a.locals||[];e=0;for(c=d.length;e<c;e++)p=d[e],a.scope.parameter(p);e=[];if(!a.bare){var f;f=this.expressions;c=[];b=p=0;
|
b.prototype.compileClosure=function(b){var l,d,m;(d=this.jumps())&&d.error("cannot use a pure statement in an expression");b.sharedScope=!0;d=new k([],a.wrap([this]));var Ja=[];if((l=this.contains(Wa))||this.contains(da))Ja=[new E],l?(l="apply",Ja.push(new y("arguments"))):l="call",d=new C(d,[new ra(new L(l))]);b=(new za(d,Ja)).compileNode(b);if(d.isGenerator||null!=(m=d.base)&&m.isGenerator)b.unshift(this.makeCode("(yield* ")),b.push(this.makeCode(")"));return b};b.prototype.cache=function(a,b,d){if(null!=
|
||||||
for(d=f.length;p<d;b=++p){b=f[b];if(!(b.unwrap()instanceof F))break;c.push(b)}p=this.expressions.slice(c.length);this.expressions=c;c.length&&(e=this.compileNode(Fa(a,{indent:""})),e.push(this.makeCode("\n")));this.expressions=p}c=this.compileWithDeclarations(a);return a.bare?c:[].concat(e,this.makeCode("(function() {\n"),c,this.makeCode("\n}).call(this);\n"))};b.prototype.compileWithDeclarations=function(a){var b,c,e,p,d,f;e=[];f=this.expressions;p=d=0;for(b=f.length;d<b&&(c=f[p],c=c.unwrap(),c instanceof
|
d?d(this):this.isComplex()){d=new y(a.scope.freeVariable("ref"));var l=new x(d,this);return b?[l.compileToFragments(a,b),[this.makeCode(d.value)]]:[l,d]}d=b?this.compileToFragments(a,b):this;return[d,d]};b.prototype.cacheToCodeFragments=function(a){return[ca(a[0]),ca(a[1])]};b.prototype.makeReturn=function(a){var b=this.unwrapAll();return a?new za(new B(a+".push"),[b]):new H(b)};b.prototype.contains=function(a){var b=void 0;this.traverseChildren(!1,function(d){if(a(d))return b=d,!1});return b};b.prototype.lastNonComment=
|
||||||
F||c instanceof y);p=++d);a=Fa(a,{level:H});p&&(c=this.expressions.splice(p,9E9),e=[this.spaced,!1],d=e[0],this.spaced=e[1],d=[this.compileNode(a),d],e=d[0],this.spaced=d[1],this.expressions=c);c=this.compileNode(a);d=a.scope;d.expressions===this&&(b=a.scope.hasDeclarations(),a=d.hasAssignments,b||a?(p&&e.push(this.makeCode("\n")),e.push(this.makeCode(this.tab+"var ")),b&&e.push(this.makeCode(d.declaredVariables().join(", "))),a&&(b&&e.push(this.makeCode(",\n"+(this.tab+ba))),e.push(this.makeCode(d.assignedVariables().join(",\n"+
|
function(a){var b;for(b=a.length;b--;)if(!(a[b]instanceof p))return a[b];return null};b.prototype.toString=function(a,b){null==a&&(a="");null==b&&(b=this.constructor.name);var d="\n"+a+b;this.soak&&(d+="?");this.eachChild(function(b){return d+=b.toString(a+Fa)});return d};b.prototype.eachChild=function(a){var b,d;if(!this.children)return this;var m=this.children;var Ja=0;for(b=m.length;Ja<b;Ja++){var c=m[Ja];if(this[c]){var e=ia([this[c]]);var f=0;for(d=e.length;f<d;f++)if(c=e[f],!1===a(c))return this}}return this};
|
||||||
(this.tab+ba))))),e.push(this.makeCode(";\n"+(this.spaced?"\n":"")))):e.length&&c.length&&e.push(this.makeCode("\n")));return e.concat(c)};b.wrap=function(a){return 1===a.length&&a[0]instanceof b?a[0]:new b(a)};return b}(a);f.Literal=y=function(a){function b(a){this.value=a}ma(b,a);b.prototype.isComplex=P;b.prototype.assigns=function(a){return a===this.value};b.prototype.compileNode=function(a){return[this.makeCode(this.value)]};b.prototype.toString=function(){return" "+(this.isStatement()?b.__super__.toString.apply(this,
|
b.prototype.traverseChildren=function(a,b){return this.eachChild(function(d){if(!1!==b(d))return d.traverseChildren(a,b)})};b.prototype.invert=function(){return new h("!",this)};b.prototype.unwrapAll=function(){var a;for(a=this;a!==(a=a.unwrap()););return a};b.prototype.children=[];b.prototype.isStatement=ka;b.prototype.jumps=ka;b.prototype.isComplex=ha;b.prototype.isChainable=ka;b.prototype.isAssignable=ka;b.prototype.isNumber=ka;b.prototype.unwrap=oa;b.prototype.unfoldSoak=ka;b.prototype.assigns=
|
||||||
arguments):this.constructor.name)+": "+this.value};return b}(a);f.NumberLiteral=R=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(y);f.InfinityLiteral=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.compileNode=function(){return[this.makeCode("2e308")]};return b}(R);f.NaNLiteral=function(a){function b(){b.__super__.constructor.call(this,"NaN")}ma(b,a);b.prototype.compileNode=function(a){var b;b=[this.makeCode("0/0")];
|
ka;b.prototype.updateLocationDataIfMissing=function(a){if(this.locationData)return this;this.locationData=a;return this.eachChild(function(b){return b.updateLocationDataIfMissing(a)})};b.prototype.error=function(a){return qa(a,this.locationData)};b.prototype.makeCode=function(a){return new t(this,a)};b.prototype.wrapInBraces=function(a){return[].concat(this.makeCode("("),a,this.makeCode(")"))};b.prototype.joinFragmentArrays=function(a,b){var d,l;var m=[];var c=d=0;for(l=a.length;d<l;c=++d){var e=
|
||||||
return a.level>=K?this.wrapInBraces(b):b};return b}(R);f.StringLiteral=Za=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(y);f.RegexLiteral=Y=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(y);f.PassthroughLiteral=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(y);f.IdentifierLiteral=x=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}
|
a[c];c&&m.push(this.makeCode(b));m=m.concat(e)}return m};return b}();e.Block=a=function(a){function b(a){this.expressions=ea(ia(a||[]))}v(b,a);b.prototype.children=["expressions"];b.prototype.push=function(a){this.expressions.push(a);return this};b.prototype.pop=function(){return this.expressions.pop()};b.prototype.unshift=function(a){this.expressions.unshift(a);return this};b.prototype.unwrap=function(){return 1===this.expressions.length?this.expressions[0]:this};b.prototype.isEmpty=function(){return!this.expressions.length};
|
||||||
ma(b,a);b.prototype.isAssignable=ha;return b}(y);f.PropertyName=N=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.isAssignable=ha;return b}(y);f.StatementLiteral=ya=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.isStatement=ha;b.prototype.makeReturn=da;b.prototype.jumps=function(a){if("break"===this.value&&!(null!=a&&a.loop||null!=a&&a.block)||"continue"===this.value&&(null==a||!a.loop))return this};
|
b.prototype.isStatement=function(a){var d;var b=this.expressions;var l=0;for(d=b.length;l<d;l++){var m=b[l];if(m.isStatement(a))return!0}return!1};b.prototype.jumps=function(a){var d;var b=this.expressions;var l=0;for(d=b.length;l<d;l++){var m=b[l];if(m=m.jumps(a))return m}};b.prototype.makeReturn=function(a){var d;for(d=this.expressions.length;d--;){var b=this.expressions[d];if(!(b instanceof p)){this.expressions[d]=b.makeReturn(a);b instanceof H&&!b.expression&&this.expressions.splice(d,1);break}}return this};
|
||||||
b.prototype.compileNode=function(a){return[this.makeCode(""+this.tab+this.value+";")]};return b}(y);f.ThisLiteral=ga=function(a){function b(){b.__super__.constructor.call(this,"this")}ma(b,a);b.prototype.compileNode=function(a){var b;a=null!=(b=a.scope.method)&&b.bound?a.scope.method.context:this.value;return[this.makeCode(a)]};return b}(y);f.UndefinedLiteral=ja=function(a){function b(){b.__super__.constructor.call(this,"undefined")}ma(b,a);b.prototype.compileNode=function(a){return[this.makeCode(a.level>=
|
b.prototype.compileToFragments=function(a,d){null==a&&(a={});return a.scope?b.__super__.compileToFragments.call(this,a,d):this.compileRoot(a)};b.prototype.compileNode=function(a){var d,l;this.tab=a.indent;var m=a.level===na;var c=[];var e=this.expressions;var f=d=0;for(l=e.length;d<l;f=++d){var h=e[f];h=h.unwrapAll();h=h.unfoldSoak(a)||h;h instanceof b?c.push(h.compileNode(a)):m?(h.front=!0,f=h.compileToFragments(a),h.isStatement(a)||(f.unshift(this.makeCode(""+this.tab)),f.push(this.makeCode(";"))),
|
||||||
q?"(void 0)":"void 0")]};return b}(y);f.NullLiteral=Z=function(a){function b(){b.__super__.constructor.call(this,"null")}ma(b,a);return b}(y);f.BooleanLiteral=Ca=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(y);f.Return=V=function(a){function b(a){this.expression=a}ma(b,a);b.prototype.children=["expression"];b.prototype.isStatement=ha;b.prototype.makeReturn=da;b.prototype.jumps=da;b.prototype.compileToFragments=function(a,c){var ra,e;ra=null!=(e=this.expression)?
|
c.push(f)):c.push(h.compileToFragments(a,va))}if(m)return this.spaced?[].concat(this.joinFragmentArrays(c,"\n\n"),this.makeCode("\n")):this.joinFragmentArrays(c,"\n");d=c.length?this.joinFragmentArrays(c,", "):[this.makeCode("void 0")];return 1<c.length&&a.level>=va?this.wrapInBraces(d):d};b.prototype.compileRoot=function(a){var d,b;a.indent=a.bare?"":Fa;a.level=na;this.spaced=!0;a.scope=new ya(null,this,null,null!=(b=a.referencedVars)?b:[]);var l=a.locals||[];b=0;for(d=l.length;b<d;b++){var m=l[b];
|
||||||
e.makeReturn():void 0;return!ra||ra instanceof b?b.__super__.compileToFragments.call(this,a,c):ra.compileToFragments(a,c)};b.prototype.compileNode=function(a){var b;b=[];b.push(this.makeCode(this.tab+("return"+(this.expression?" ":""))));this.expression&&(b=b.concat(this.expression.compileToFragments(a,O)));b.push(this.makeCode(";"));return b};return b}(a);f.YieldReturn=ca=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.compileNode=function(a){null==
|
a.scope.parameter(m)}b=[];if(!a.bare){var c=this.expressions;d=[];var e=m=0;for(l=c.length;m<l;e=++m){e=c[e];if(!(e.unwrap()instanceof p))break;d.push(e)}m=this.expressions.slice(d.length);this.expressions=d;d.length&&(b=this.compileNode(ja(a,{indent:""})),b.push(this.makeCode("\n")));this.expressions=m}d=this.compileWithDeclarations(a);return a.bare?d:[].concat(b,this.makeCode("(function() {\n"),d,this.makeCode("\n}).call(this);\n"))};b.prototype.compileWithDeclarations=function(a){var d,b;var l=
|
||||||
a.scope.parent&&this.error("yield can only occur inside functions");return b.__super__.compileNode.apply(this,arguments)};return b}(V);f.Value=M=function(a){function b(a,c,d){if(!c&&a instanceof b)return a;this.base=a;this.properties=c||[];d&&(this[d]=!0);return this}ma(b,a);b.prototype.children=["base","properties"];b.prototype.add=function(a){this.properties=this.properties.concat(a);return this};b.prototype.hasProperties=function(){return!!this.properties.length};b.prototype.bareLiteral=function(a){return!this.properties.length&&
|
[];var m=this.expressions;var c=b=0;for(d=m.length;b<d;c=++b){var e=m[c];e=e.unwrap();if(!(e instanceof p||e instanceof B))break}a=ja(a,{level:na});c&&(e=this.expressions.splice(c,9E9),l=[this.spaced,!1],b=l[0],this.spaced=l[1],b=[this.compileNode(a),b],l=b[0],this.spaced=b[1],this.expressions=e);e=this.compileNode(a);b=a.scope;b.expressions===this&&(d=a.scope.hasDeclarations(),a=b.hasAssignments,d||a?(c&&l.push(this.makeCode("\n")),l.push(this.makeCode(this.tab+"var ")),d&&l.push(this.makeCode(b.declaredVariables().join(", "))),
|
||||||
this.base instanceof a};b.prototype.isArray=function(){return this.bareLiteral(pa)};b.prototype.isRange=function(){return this.bareLiteral(X)};b.prototype.isComplex=function(){return this.hasProperties()||this.base.isComplex()};b.prototype.isAssignable=function(){return this.hasProperties()||this.base.isAssignable()};b.prototype.isNumber=function(){return this.bareLiteral(R)};b.prototype.isString=function(){return this.bareLiteral(Za)};b.prototype.isRegex=function(){return this.bareLiteral(Y)};b.prototype.isUndefined=
|
a&&(d&&l.push(this.makeCode(",\n"+(this.tab+Fa))),l.push(this.makeCode(b.assignedVariables().join(",\n"+(this.tab+Fa))))),l.push(this.makeCode(";\n"+(this.spaced?"\n":"")))):l.length&&e.length&&l.push(this.makeCode("\n")));return l.concat(e)};b.wrap=function(a){return 1===a.length&&a[0]instanceof b?a[0]:new b(a)};return b}(ta);e.Literal=B=function(a){function b(a){this.value=a}v(b,a);b.prototype.isComplex=ka;b.prototype.assigns=function(a){return a===this.value};b.prototype.compileNode=function(a){return[this.makeCode(this.value)]};
|
||||||
function(){return this.bareLiteral(ja)};b.prototype.isNull=function(){return this.bareLiteral(Z)};b.prototype.isBoolean=function(){return this.bareLiteral(Ca)};b.prototype.isAtomic=function(){var a,b,c,e;e=this.properties.concat(this.base);a=0;for(b=e.length;a<b;a++)if(c=e[a],c.soak||c instanceof d)return!1;return!0};b.prototype.isNotCallable=function(){return this.isNumber()||this.isString()||this.isRegex()||this.isArray()||this.isRange()||this.isSplice()||this.isObject()||this.isUndefined()||this.isNull()||
|
b.prototype.toString=function(){return" "+(this.isStatement()?b.__super__.toString.apply(this,arguments):this.constructor.name)+": "+this.value};return b}(ta);e.NumberLiteral=w=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(B);e.InfinityLiteral=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.compileNode=function(){return[this.makeCode("2e308")]};return b}(w);e.NaNLiteral=function(a){function b(){b.__super__.constructor.call(this,
|
||||||
this.isBoolean()};b.prototype.isStatement=function(a){return!this.properties.length&&this.base.isStatement(a)};b.prototype.assigns=function(a){return!this.properties.length&&this.base.assigns(a)};b.prototype.jumps=function(a){return!this.properties.length&&this.base.jumps(a)};b.prototype.isObject=function(a){return this.properties.length?!1:this.base instanceof C&&(!a||this.base.generated)};b.prototype.isSplice=function(){var a;a=this.properties;return a[a.length-1]instanceof aa};b.prototype.looksStatic=
|
"NaN")}v(b,a);b.prototype.compileNode=function(a){var d=[this.makeCode("0/0")];return a.level>=Ha?this.wrapInBraces(d):d};return b}(w);e.StringLiteral=D=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(B);e.RegexLiteral=W=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(B);e.PassthroughLiteral=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(B);e.IdentifierLiteral=
|
||||||
function(a){var b;return this.base.value===a&&1===this.properties.length&&"prototype"!==(null!=(b=this.properties[0].name)?b.value:void 0)};b.prototype.unwrap=function(){return this.properties.length?this:this.base};b.prototype.cacheReference=function(a){var c,p,e,d;c=this.properties;e=c[c.length-1];if(2>this.properties.length&&!this.base.isComplex()&&(null==e||!e.isComplex()))return[this,this];c=new b(this.base,this.properties.slice(0,-1));c.isComplex()&&(p=new x(a.scope.freeVariable("base")),c=
|
y=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.isAssignable=ha;return b}(B);e.PropertyName=L=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.isAssignable=ha;return b}(B);e.StatementLiteral=V=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.isStatement=ha;b.prototype.makeReturn=oa;b.prototype.jumps=function(a){if("break"===this.value&&!(null!=a&&a.loop||
|
||||||
new b(new B(new D(p,c))));if(!e)return[c,p];e.isComplex()&&(d=new x(a.scope.freeVariable("name")),e=new g(new D(d,e.index)),d=new g(d));return[c.add(e),new b(p||c.base,[d||e])]};b.prototype.compileNode=function(a){var b,c,e,p,d;this.base.front=this.front;d=this.properties;b=this.base.compileToFragments(a,d.length?q:null);d.length&&U.test(Da(b))&&b.push(this.makeCode("."));c=0;for(e=d.length;c<e;c++)p=d[c],b.push.apply(b,p.compileToFragments(a));return b};b.prototype.unfoldSoak=function(a){return null!=
|
null!=a&&a.block)||"continue"===this.value&&(null==a||!a.loop))return this};b.prototype.compileNode=function(a){return[this.makeCode(""+this.tab+this.value+";")]};return b}(B);e.ThisLiteral=E=function(a){function b(){b.__super__.constructor.call(this,"this")}v(b,a);b.prototype.compileNode=function(a){var d;a=null!=(d=a.scope.method)&&d.bound?a.scope.method.context:this.value;return[this.makeCode(a)]};return b}(B);e.UndefinedLiteral=ba=function(a){function b(){b.__super__.constructor.call(this,"undefined")}
|
||||||
this.unfoldedSoak?this.unfoldedSoak:this.unfoldedSoak=function(c){return function(){var p,e,ra,d,f;if(e=c.base.unfoldSoak(a))return(p=e.body.properties).push.apply(p,c.properties),e;f=c.properties;e=p=0;for(ra=f.length;p<ra;e=++p)if(d=f[e],d.soak)return d.soak=!1,p=new b(c.base,c.properties.slice(0,e)),ra=new b(c.base,c.properties.slice(e)),p.isComplex()&&(e=new x(a.scope.freeVariable("ref")),p=new B(new D(e,p)),ra.base=e),new E(new w(p),ra,{soak:!0});return!1}}(this)()};return b}(a);f.Comment=F=
|
v(b,a);b.prototype.compileNode=function(a){return[this.makeCode(a.level>=Ka?"(void 0)":"void 0")]};return b}(B);e.NullLiteral=c=function(a){function b(){b.__super__.constructor.call(this,"null")}v(b,a);return b}(B);e.BooleanLiteral=b=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(B);e.Return=H=function(a){function b(a){this.expression=a}v(b,a);b.prototype.children=["expression"];b.prototype.isStatement=ha;b.prototype.makeReturn=oa;b.prototype.jumps=
|
||||||
function(a){function b(a){this.comment=a}ma(b,a);b.prototype.isStatement=ha;b.prototype.makeReturn=da;b.prototype.compileNode=function(a,b){var c;c=this.comment.replace(/^(\s*)#(?=\s)/gm,"$1 *");c="/*"+Pa(c,this.tab)+(0<=Ha.call(c,"\n")?"\n"+this.tab:"")+" */";(b||a.level)===H&&(c=a.indent+c);return[this.makeCode("\n"),this.makeCode(c)]};return b}(a);f.Call=d=function(a){function b(a,b,c){this.variable=a;this.args=null!=b?b:[];this.soak=c;this.isNew=!1;this.variable instanceof M&&this.variable.isNotCallable()&&
|
oa;b.prototype.compileToFragments=function(a,d){var l;var m=null!=(l=this.expression)?l.makeReturn():void 0;return!m||m instanceof b?b.__super__.compileToFragments.call(this,a,d):m.compileToFragments(a,d)};b.prototype.compileNode=function(a){var d=[];d.push(this.makeCode(this.tab+("return"+(this.expression?" ":""))));this.expression&&(d=d.concat(this.expression.compileToFragments(a,Da)));d.push(this.makeCode(";"));return d};return b}(ta);e.YieldReturn=S=function(a){function b(){return b.__super__.constructor.apply(this,
|
||||||
this.variable.error("literal is not a function")}ma(b,a);b.prototype.children=["variable","args"];b.prototype.newInstance=function(){var a,c;a=(null!=(c=this.variable)?c.base:void 0)||this.variable;a instanceof b&&!a.isNew?a.newInstance():this.isNew=!0;return this};b.prototype.unfoldSoak=function(a){var c,p,e,d,f;if(this.soak){if(this instanceof ia)c=new y(this.superReference(a)),p=new M(c);else{if(p=Na(a,this,"variable"))return p;p=(new M(this.variable)).cacheReference(a);c=p[0];p=p[1]}p=new b(p,
|
arguments)}v(b,a);b.prototype.compileNode=function(a){null==a.scope.parent&&this.error("yield can only occur inside functions");return b.__super__.compileNode.apply(this,arguments)};return b}(H);e.Value=C=function(a){function m(a,b,Ca){if(!b&&a instanceof m)return a;this.base=a;this.properties=b||[];Ca&&(this[Ca]=!0);return this}v(m,a);m.prototype.children=["base","properties"];m.prototype.add=function(a){this.properties=this.properties.concat(a);return this};m.prototype.hasProperties=function(){return!!this.properties.length};
|
||||||
this.args);p.isNew=this.isNew;c=new y("typeof "+c.compile(a)+' \x3d\x3d\x3d "function"');return new E(c,new M(p),{soak:!0})}c=this;for(e=[];;)if(c.variable instanceof b)e.push(c),c=c.variable;else{if(!(c.variable instanceof M))break;e.push(c);if(!((c=c.variable.base)instanceof b))break}f=e.reverse();e=0;for(d=f.length;e<d;e++)c=f[e],p&&(c.variable instanceof b?c.variable=p:c.variable.base=p),p=Na(a,c,"variable");return p};b.prototype.compileNode=function(a){var b,c,e,p,d,f;null!=(e=this.variable)&&
|
m.prototype.bareLiteral=function(a){return!this.properties.length&&this.base instanceof a};m.prototype.isArray=function(){return this.bareLiteral(r)};m.prototype.isRange=function(){return this.bareLiteral(U)};m.prototype.isComplex=function(){return this.hasProperties()||this.base.isComplex()};m.prototype.isAssignable=function(){return this.hasProperties()||this.base.isAssignable()};m.prototype.isNumber=function(){return this.bareLiteral(w)};m.prototype.isString=function(){return this.bareLiteral(D)};
|
||||||
(e.front=this.front);e=Q.compileSplattedArray(a,this.args,!0);if(e.length)return this.compileSplat(a,e);e=[];f=this.args;c=p=0;for(d=f.length;p<d;c=++p)b=f[c],c&&e.push(this.makeCode(", ")),e.push.apply(e,b.compileToFragments(a,h));b=[];this instanceof ia?(a=this.superReference(a)+(".call("+this.superThis(a)),e.length&&(a+=", "),b.push(this.makeCode(a))):(this.isNew&&b.push(this.makeCode("new ")),b.push.apply(b,this.variable.compileToFragments(a,q)),b.push(this.makeCode("(")));b.push.apply(b,e);b.push(this.makeCode(")"));
|
m.prototype.isRegex=function(){return this.bareLiteral(W)};m.prototype.isUndefined=function(){return this.bareLiteral(ba)};m.prototype.isNull=function(){return this.bareLiteral(c)};m.prototype.isBoolean=function(){return this.bareLiteral(b)};m.prototype.isAtomic=function(){var a;var b=this.properties.concat(this.base);var m=0;for(a=b.length;m<a;m++){var c=b[m];if(c.soak||c instanceof za)return!1}return!0};m.prototype.isNotCallable=function(){return this.isNumber()||this.isString()||this.isRegex()||
|
||||||
return b};b.prototype.compileSplat=function(a,b){var c,e,p,ra;if(this instanceof ia)return[].concat(this.makeCode(this.superReference(a)+".apply("+this.superThis(a)+", "),b,this.makeCode(")"));if(this.isNew)return c=this.tab+ba,[].concat(this.makeCode("(function(func, args, ctor) {\n"+c+"ctor.prototype \x3d func.prototype;\n"+c+"var child \x3d new ctor, result \x3d func.apply(child, args);\n"+c+"return Object(result) \x3d\x3d\x3d result ? result : child;\n"+this.tab+"})("),this.variable.compileToFragments(a,
|
this.isArray()||this.isRange()||this.isSplice()||this.isObject()||this.isUndefined()||this.isNull()||this.isBoolean()};m.prototype.isStatement=function(a){return!this.properties.length&&this.base.isStatement(a)};m.prototype.assigns=function(a){return!this.properties.length&&this.base.assigns(a)};m.prototype.jumps=function(a){return!this.properties.length&&this.base.jumps(a)};m.prototype.isObject=function(a){return this.properties.length?!1:this.base instanceof q&&(!a||this.base.generated)};m.prototype.isSplice=
|
||||||
h),this.makeCode(", "),b,this.makeCode(", function(){})"));c=[];e=new M(this.variable);(p=e.properties.pop())&&e.isComplex()?(ra=a.scope.freeVariable("ref"),c=c.concat(this.makeCode("("+ra+" \x3d "),e.compileToFragments(a,h),this.makeCode(")"),p.compileToFragments(a))):(e=e.compileToFragments(a,q),U.test(Da(e))&&(e=this.wrapInBraces(e)),p?(ra=Da(e),e.push.apply(e,p.compileToFragments(a))):ra="null",c=c.concat(e));return c.concat(this.makeCode(".apply("+ra+", "),b,this.makeCode(")"))};return b}(a);
|
function(){var a=this.properties;return a[a.length-1]instanceof Z};m.prototype.looksStatic=function(a){var b;return this.base.value===a&&1===this.properties.length&&"prototype"!==(null!=(b=this.properties[0].name)?b.value:void 0)};m.prototype.unwrap=function(){return this.properties.length?this:this.base};m.prototype.cacheReference=function(a){var b=this.properties;var l=b[b.length-1];if(2>this.properties.length&&!this.base.isComplex()&&(null==l||!l.isComplex()))return[this,this];b=new m(this.base,
|
||||||
f.SuperCall=ia=function(a){function b(a){b.__super__.constructor.call(this,null,null!=a?a:[new Q(new x("arguments"))]);this.isBare=null!=a}ma(b,a);b.prototype.superReference=function(a){var b,c,e,p,d,f,h;p=a.scope.namedMethod();if(null!=p&&p.klass){e=p.klass;d=p.name;h=p.variable;e.isComplex()&&(c=new x(a.scope.parent.freeVariable("base")),b=new M(new B(new D(c,e))),h.base=b,h.properties.splice(0,e.properties.length));if(d.isComplex()||d instanceof g&&d.index.isAssignable())f=new x(a.scope.parent.freeVariable("name")),
|
this.properties.slice(0,-1));if(b.isComplex()){var c=new y(a.scope.freeVariable("base"));b=new m(new P(new x(c,b)))}if(!l)return[b,c];if(l.isComplex()){var e=new y(a.scope.freeVariable("name"));l=new Q(new x(e,l.index));e=new Q(e)}return[b.add(l),new m(c||b.base,[e||l])]};m.prototype.compileNode=function(a){var b;this.base.front=this.front;var l=this.properties;var m=this.base.compileToFragments(a,l.length?Ka:null);l.length&&Ra.test(ca(m))&&m.push(this.makeCode("."));var c=0;for(b=l.length;c<b;c++){var e=
|
||||||
d=new g(new D(f,d.index)),h.properties.pop(),h.properties.push(d);b=[new ta(new N("__super__"))];p["static"]&&b.push(new ta(new N("constructor")));b.push(null!=f?new g(f):d);return(new M(null!=c?c:e,b)).compile(a)}return null!=p&&p.ctor?p.name+".__super__.constructor":this.error("cannot call super outside of an instance method.")};b.prototype.superThis=function(a){return(a=a.scope.method)&&!a.klass&&a.context||"this"};return b}(d);f.RegexWithInterpolations=function(a){function b(a){null==a&&(a=[]);
|
l[c];m.push.apply(m,e.compileToFragments(a))}return m};m.prototype.unfoldSoak=function(a){return null!=this.unfoldedSoak?this.unfoldedSoak:this.unfoldedSoak=function(b){return function(){var d,l,c;if(l=b.base.unfoldSoak(a))return(d=l.body.properties).push.apply(d,b.properties),l;var e=b.properties;l=d=0;for(c=e.length;d<c;l=++d){var f=e[l];if(f.soak)return f.soak=!1,d=new m(b.base,b.properties.slice(0,l)),c=new m(b.base,b.properties.slice(l)),d.isComplex()&&(l=new y(a.scope.freeVariable("ref")),d=
|
||||||
b.__super__.constructor.call(this,new M(new x("RegExp")),a,!1)}ma(b,a);return b}(d);f.TaggedTemplateCall=function(a){function b(a,d,f){d instanceof Za&&(d=new Xa(c.wrap([new M(d)])));b.__super__.constructor.call(this,a,[d],f)}ma(b,a);b.prototype.compileNode=function(a){a.inTaggedTemplateCall=!0;return this.variable.compileToFragments(a,q).concat(this.args[0].compileToFragments(a,h))};return b}(d);f.Extends=L=function(a){function b(a,b){this.child=a;this.parent=b}ma(b,a);b.prototype.children=["child",
|
new P(new x(l,d)),c.base=l),new G(new z(d),c,{soak:!0})}return!1}}(this)()};return m}(ta);e.Comment=p=function(a){function b(a){this.comment=a}v(b,a);b.prototype.isStatement=ha;b.prototype.makeReturn=oa;b.prototype.compileNode=function(a,b){var d=this.comment.replace(/^(\s*)#(?=\s)/gm,"$1 *");d="/*"+Ga(d,this.tab)+(0<=R.call(d,"\n")?"\n"+this.tab:"")+" */";(b||a.level)===na&&(d=a.indent+d);return[this.makeCode("\n"),this.makeCode(d)]};return b}(ta);e.Call=za=function(a){function b(a,b,m){this.variable=
|
||||||
"parent"];b.prototype.compileToFragments=function(a){return(new d(new M(new y(za("extend",a))),[this.child,this.parent])).compileToFragments(a)};return b}(a);f.Access=ta=function(a){function b(a,b){this.name=a;this.soak="soak"===b}ma(b,a);b.prototype.children=["name"];b.prototype.compileToFragments=function(a){var b,c;a=this.name.compileToFragments(a);b=this.name.unwrap();return b instanceof N?(c=b.value,0<=Ha.call(r,c))?[this.makeCode('["')].concat(Aa.call(a),[this.makeCode('"]')]):[this.makeCode(".")].concat(Aa.call(a)):
|
a;this.args=null!=b?b:[];this.soak=m;this.isNew=!1;this.variable instanceof C&&this.variable.isNotCallable()&&this.variable.error("literal is not a function")}v(b,a);b.prototype.children=["variable","args"];b.prototype.updateLocationDataIfMissing=function(a){var d;if(this.locationData&&this.needsUpdatedStartLocation){this.locationData.first_line=a.first_line;this.locationData.first_column=a.first_column;var l=(null!=(d=this.variable)?d.base:void 0)||this.variable;l.needsUpdatedStartLocation&&(this.variable.locationData.first_line=
|
||||||
[this.makeCode("[")].concat(Aa.call(a),[this.makeCode("]")])};b.prototype.isComplex=P;return b}(a);f.Index=g=function(a){function b(a){this.index=a}ma(b,a);b.prototype.children=["index"];b.prototype.compileToFragments=function(a){return[].concat(this.makeCode("["),this.index.compileToFragments(a,O),this.makeCode("]"))};b.prototype.isComplex=function(){return this.index.isComplex()};return b}(a);f.Range=X=function(a){function b(a,b,c){this.from=a;this.to=b;this.equals=(this.exclusive="exclusive"===
|
a.first_line,this.variable.locationData.first_column=a.first_column,l.updateLocationDataIfMissing(a));delete this.needsUpdatedStartLocation}return b.__super__.updateLocationDataIfMissing.apply(this,arguments)};b.prototype.newInstance=function(){var a;var d=(null!=(a=this.variable)?a.base:void 0)||this.variable;d instanceof b&&!d.isNew?d.newInstance():this.isNew=!0;this.needsUpdatedStartLocation=!0;return this};b.prototype.unfoldSoak=function(a){var d,l;if(this.soak){if(this instanceof xa){var m=new B(this.superReference(a));
|
||||||
c)?"":"\x3d"}ma(b,a);b.prototype.children=["from","to"];b.prototype.compileVariables=function(a){var b,c;a=Fa(a,{top:!0});b=na(a,"isComplex");c=this.cacheToCodeFragments(this.from.cache(a,h,b));this.fromC=c[0];this.fromVar=c[1];c=this.cacheToCodeFragments(this.to.cache(a,h,b));this.toC=c[0];this.toVar=c[1];if(c=na(a,"step"))a=this.cacheToCodeFragments(c.cache(a,h,b)),this.step=a[0],this.stepVar=a[1];this.fromNum=this.from.isNumber()?Number(this.fromVar):null;this.toNum=this.to.isNumber()?Number(this.toVar):
|
var c=new C(m)}else{if(c=Ea(a,this,"variable"))return c;c=(new C(this.variable)).cacheReference(a);m=c[0];c=c[1]}c=new b(c,this.args);c.isNew=this.isNew;m=new B("typeof "+m.compile(a)+' \x3d\x3d\x3d "function"');return new G(m,new C(c),{soak:!0})}m=this;for(d=[];;)if(m.variable instanceof b)d.push(m),m=m.variable;else{if(!(m.variable instanceof C))break;d.push(m);if(!((m=m.variable.base)instanceof b))break}var e=d.reverse();d=0;for(l=e.length;d<l;d++)m=e[d],c&&(m.variable instanceof b?m.variable=
|
||||||
null;return this.stepNum=null!=c&&c.isNumber()?Number(this.stepVar):null};b.prototype.compileNode=function(a){var b,c,e,d,p,f,g,h,m,q;this.fromVar||this.compileVariables(a);if(!a.index)return this.compileArray(a);f=null!=this.fromNum&&null!=this.toNum;p=na(a,"index");g=(a=na(a,"name"))&&a!==p;q=p+" \x3d "+this.fromC;this.toC!==this.toVar&&(q+=", "+this.toC);this.step!==this.stepVar&&(q+=", "+this.step);d=[p+" \x3c"+this.equals,p+" \x3e"+this.equals];c=d[0];d=d[1];c=null!=this.stepNum?0<this.stepNum?
|
c:m.variable.base=c),c=Ea(a,m,"variable");return c};b.prototype.compileNode=function(a){var b,l,m;null!=(b=this.variable)&&(b.front=this.front);b=T.compileSplattedArray(a,this.args,!0);if(b.length)return this.compileSplat(a,b);b=[];var c=this.args;var e=l=0;for(m=c.length;l<m;e=++l){var f=c[e];e&&b.push(this.makeCode(", "));b.push.apply(b,f.compileToFragments(a,va))}f=[];this instanceof xa?(a=this.superReference(a)+(".call("+this.superThis(a)),b.length&&(a+=", "),f.push(this.makeCode(a))):(this.isNew&&
|
||||||
c+" "+this.toVar:d+" "+this.toVar:f?(h=[this.fromNum,this.toNum],e=h[0],m=h[1],h,e<=m?c+" "+m:d+" "+m):(b=this.stepVar?this.stepVar+" \x3e 0":this.fromVar+" \x3c\x3d "+this.toVar,b+" ? "+c+" "+this.toVar+" : "+d+" "+this.toVar);b=this.stepVar?p+" +\x3d "+this.stepVar:f?g?e<=m?"++"+p:"--"+p:e<=m?p+"++":p+"--":g?b+" ? ++"+p+" : --"+p:b+" ? "+p+"++ : "+p+"--";g&&(q=a+" \x3d "+q);g&&(b=a+" \x3d "+b);return[this.makeCode(q+"; "+c+"; "+b)]};b.prototype.compileArray=function(a){var b,c,e,d,p,f,g,h,m;if((c=
|
f.push(this.makeCode("new ")),f.push.apply(f,this.variable.compileToFragments(a,Ka)),f.push(this.makeCode("(")));f.push.apply(f,b);f.push(this.makeCode(")"));return f};b.prototype.compileSplat=function(a,b){var d;if(this instanceof xa)return[].concat(this.makeCode(this.superReference(a)+".apply("+this.superThis(a)+", "),b,this.makeCode(")"));if(this.isNew){var l=this.tab+Fa;return[].concat(this.makeCode("(function(func, args, ctor) {\n"+l+"ctor.prototype \x3d func.prototype;\n"+l+"var child \x3d new ctor, result \x3d func.apply(child, args);\n"+
|
||||||
null!=this.fromNum&&null!=this.toNum)&&20>=Math.abs(this.fromNum-this.toNum))return b=function(){h=[];for(var a=f=this.fromNum,b=this.toNum;f<=b?a<=b:a>=b;f<=b?a++:a--)h.push(a);return h}.apply(this),this.exclusive&&b.pop(),[this.makeCode("["+b.join(", ")+"]")];d=this.tab+ba;e=a.scope.freeVariable("i",{single:!0});g=a.scope.freeVariable("results");p="\n"+d+g+" \x3d [];";c?(a.index=e,c=Da(this.compileNode(a))):(m=e+" \x3d "+this.fromC+(this.toC!==this.toVar?", "+this.toC:""),c=this.fromVar+" \x3c\x3d "+
|
l+"return Object(result) \x3d\x3d\x3d result ? result : child;\n"+this.tab+"})("),this.variable.compileToFragments(a,va),this.makeCode(", "),b,this.makeCode(", function(){})"))}l=[];var m=new C(this.variable);if((d=m.properties.pop())&&m.isComplex()){var c=a.scope.freeVariable("ref");l=l.concat(this.makeCode("("+c+" \x3d "),m.compileToFragments(a,va),this.makeCode(")"),d.compileToFragments(a))}else m=m.compileToFragments(a,Ka),Ra.test(ca(m))&&(m=this.wrapInBraces(m)),d?(c=ca(m),m.push.apply(m,d.compileToFragments(a))):
|
||||||
this.toVar,c="var "+m+"; "+c+" ? "+e+" \x3c"+this.equals+" "+this.toVar+" : "+e+" \x3e"+this.equals+" "+this.toVar+"; "+c+" ? "+e+"++ : "+e+"--");e="{ "+g+".push("+e+"); }\n"+d+"return "+g+";\n"+a.indent;a=function(a){return null!=a?a.contains(Ja):void 0};if(a(this.from)||a(this.to))b=", arguments";return[this.makeCode("(function() {"+p+"\n"+d+"for ("+c+")"+e+"}).apply(this"+(null!=b?b:"")+")")]};return b}(a);f.Slice=aa=function(a){function b(a){this.range=a;b.__super__.constructor.call(this)}ma(b,
|
c="null",l=l.concat(m);return l.concat(this.makeCode(".apply("+c+", "),b,this.makeCode(")"))};return b}(ta);e.SuperCall=xa=function(a){function b(a){b.__super__.constructor.call(this,null,null!=a?a:[new T(new y("arguments"))]);this.isBare=null!=a}v(b,a);b.prototype.superReference=function(a){var b=a.scope.namedMethod();if(null!=b&&b.klass){var l=b.klass;var m=b.name;var c=b.variable;if(l.isComplex()){var e=new y(a.scope.parent.freeVariable("base"));var f=new C(new P(new x(e,l)));c.base=f;c.properties.splice(0,
|
||||||
a);b.prototype.children=["range"];b.prototype.compileNode=function(a){var b,c,e,d,p;b=this.range;d=b.to;e=(b=b.from)&&b.compileToFragments(a,O)||[this.makeCode("0")];d&&(b=d.compileToFragments(a,O),c=Da(b),this.range.exclusive||-1!==+c)&&(p=", "+(this.range.exclusive?c:d.isNumber()?""+(+c+1):(b=d.compileToFragments(a,q),"+"+Da(b)+" + 1 || 9e9")));return[this.makeCode(".slice("+Da(e)+(p||"")+")")]};return b}(a);f.Obj=C=function(a){function b(a,b){this.generated=null!=b?b:!1;this.objects=this.properties=
|
l.properties.length)}if(m.isComplex()||m instanceof Q&&m.index.isAssignable()){var h=new y(a.scope.parent.freeVariable("name"));m=new Q(new x(h,m.index));c.properties.pop();c.properties.push(m)}f=[new ra(new L("__super__"))];b["static"]&&f.push(new ra(new L("constructor")));f.push(null!=h?new Q(h):m);return(new C(null!=e?e:l,f)).compile(a)}return null!=b&&b.ctor?b.name+".__super__.constructor":this.error("cannot call super outside of an instance method.")};b.prototype.superThis=function(a){return(a=
|
||||||
a||[]}ma(b,a);b.prototype.children=["properties"];b.prototype.compileNode=function(a){var b,c,e,d,p,f,g,h,m,q,r,k,n;n=this.properties;if(this.generated)for(c=0,b=n.length;c<b;c++)e=n[c],e instanceof M&&e.error("cannot have an implicit value in an implicit object");c=b=0;for(e=n.length;b<e&&!(k=n[c],(k.variable||k).base instanceof B);c=++b);e=c<n.length;p=a.indent+=ba;m=this.lastNonComment(this.properties);b=[];e&&(r=a.scope.freeVariable("obj"),b.push(this.makeCode("(\n"+p+r+" \x3d ")));b.push(this.makeCode("{"+
|
a.scope.method)&&!a.klass&&a.context||"this"};return b}(za);e.RegexWithInterpolations=function(a){function b(a){null==a&&(a=[]);b.__super__.constructor.call(this,new C(new y("RegExp")),a,!1)}v(b,a);return b}(za);e.TaggedTemplateCall=function(b){function m(b,d,c){d instanceof D&&(d=new A(a.wrap([new C(d)])));m.__super__.constructor.call(this,b,[d],c)}v(m,b);m.prototype.compileNode=function(a){a.inTaggedTemplateCall=!0;return this.variable.compileToFragments(a,Ka).concat(this.args[0].compileToFragments(a,
|
||||||
(0===n.length||0===c?"}":"\n")));d=h=0;for(q=n.length;h<q;d=++h)k=n[d],d===c&&(0!==d&&b.push(this.makeCode("\n"+p+"}")),b.push(this.makeCode(",\n"))),g=d===n.length-1||d===c-1?"":k===m||k instanceof F?"\n":",\n",f=k instanceof F?"":p,e&&d<c&&(f+=ba),k instanceof D&&("object"!==k.context&&k.operatorToken.error("unexpected "+k.operatorToken.value),k.variable instanceof M&&k.variable.hasProperties()&&k.variable.error("invalid object key")),k instanceof M&&k["this"]&&(k=new D(k.properties[0].name,k,"object")),
|
va))};return m}(za);e.Extends=F=function(a){function b(a,b){this.child=a;this.parent=b}v(b,a);b.prototype.children=["child","parent"];b.prototype.compileToFragments=function(a){return(new za(new C(new B(La("extend",a))),[this.child,this.parent])).compileToFragments(a)};return b}(ta);e.Access=ra=function(a){function b(a,b){this.name=a;this.soak="soak"===b}v(b,a);b.prototype.children=["name"];b.prototype.compileToFragments=function(a){var b;a=this.name.compileToFragments(a);var l=this.name.unwrap();
|
||||||
k instanceof F||(d<c?k instanceof D||(k=new D(k,k,"object")):(k instanceof D?(d=k.variable,k=k.value):(k=k.base.cache(a),d=k[0],k=k[1],d instanceof x&&(d=new N(d.value))),k=new D(new M(new x(r),[new ta(d)]),k))),f&&b.push(this.makeCode(f)),b.push.apply(b,k.compileToFragments(a,H)),g&&b.push(this.makeCode(g));e?b.push(this.makeCode(",\n"+p+r+"\n"+this.tab+")")):0!==n.length&&b.push(this.makeCode("\n"+this.tab+"}"));return this.front&&!e?this.wrapInBraces(b):b};b.prototype.assigns=function(a){var b,
|
return l instanceof L?(b=l.value,0<=R.call(ma,b))?[this.makeCode('["')].concat(M.call(a),[this.makeCode('"]')]):[this.makeCode(".")].concat(M.call(a)):[this.makeCode("[")].concat(M.call(a),[this.makeCode("]")])};b.prototype.isComplex=ka;return b}(ta);e.Index=Q=function(a){function b(a){this.index=a}v(b,a);b.prototype.children=["index"];b.prototype.compileToFragments=function(a){return[].concat(this.makeCode("["),this.index.compileToFragments(a,Da),this.makeCode("]"))};b.prototype.isComplex=function(){return this.index.isComplex()};
|
||||||
c,e,d;d=this.properties;b=0;for(c=d.length;b<c;b++)if(e=d[b],e.assigns(a))return!0;return!1};return b}(a);f.Arr=pa=function(a){function b(a){this.objects=a||[]}ma(b,a);b.prototype.children=["objects"];b.prototype.compileNode=function(a){var b,c,e,d,p;if(!this.objects.length)return[this.makeCode("[]")];a.indent+=ba;b=Q.compileSplattedArray(a,this.objects);if(b.length)return b;b=[];var f;p=this.objects;f=[];e=0;for(d=p.length;e<d;e++)c=p[e],f.push(c.compileToFragments(a,h));e=d=0;for(p=f.length;d<p;e=
|
return b}(ta);e.Range=U=function(a){function b(a,b,c){this.from=a;this.to=b;this.equals=(this.exclusive="exclusive"===c)?"":"\x3d"}v(b,a);b.prototype.children=["from","to"];b.prototype.compileVariables=function(a){a=ja(a,{top:!0});var b=la(a,"isComplex");var l=this.cacheToCodeFragments(this.from.cache(a,va,b));this.fromC=l[0];this.fromVar=l[1];l=this.cacheToCodeFragments(this.to.cache(a,va,b));this.toC=l[0];this.toVar=l[1];if(l=la(a,"step"))a=this.cacheToCodeFragments(l.cache(a,va,b)),this.step=a[0],
|
||||||
++d)c=f[e],e&&b.push(this.makeCode(", ")),b.push.apply(b,c);0<=Da(b).indexOf("\n")?(b.unshift(this.makeCode("[\n"+a.indent)),b.push(this.makeCode("\n"+this.tab+"]"))):(b.unshift(this.makeCode("[")),b.push(this.makeCode("]")));return b};b.prototype.assigns=function(a){var b,c,e,d;d=this.objects;b=0;for(c=d.length;b<c;b++)if(e=d[b],e.assigns(a))return!0;return!1};return b}(a);f.Class=v=function(a){function b(a,b,d){this.variable=a;this.parent=b;this.body=null!=d?d:new c;this.boundFuncs=[];this.body.classBody=
|
this.stepVar=a[1];this.fromNum=this.from.isNumber()?Number(this.fromVar):null;this.toNum=this.to.isNumber()?Number(this.toVar):null;return this.stepNum=null!=l&&l.isNumber()?Number(this.stepVar):null};b.prototype.compileNode=function(a){var b,l,c,m;this.fromVar||this.compileVariables(a);if(!a.index)return this.compileArray(a);var e=null!=this.fromNum&&null!=this.toNum;var f=la(a,"index");var h=(a=la(a,"name"))&&a!==f;var n=f+" \x3d "+this.fromC;this.toC!==this.toVar&&(n+=", "+this.toC);this.step!==
|
||||||
!0}ma(b,a);b.prototype.children=["variable","parent","body"];b.prototype.defaultClassVariableName="_Class";b.prototype.determineName=function(){var a,b;if(!this.variable)return this.defaultClassVariableName;b=this.variable.properties;b=(a=b[b.length-1])?a instanceof ta&&a.name:this.variable.base;if(!(b instanceof x||b instanceof N))return this.defaultClassVariableName;b=b.value;a||(a=Ga(b))&&this.variable.error(a);return 0<=Ha.call(r,b)?"_"+b:b};b.prototype.setContext=function(a){return this.body.traverseChildren(!1,
|
this.stepVar&&(n+=", "+this.step);var k=[f+" \x3c"+this.equals,f+" \x3e"+this.equals];var q=k[0];k=k[1];q=null!=this.stepNum?0<this.stepNum?q+" "+this.toVar:k+" "+this.toVar:e?(c=[this.fromNum,this.toNum],l=c[0],m=c[1],c,l<=m?q+" "+m:k+" "+m):(b=this.stepVar?this.stepVar+" \x3e 0":this.fromVar+" \x3c\x3d "+this.toVar,b+" ? "+q+" "+this.toVar+" : "+k+" "+this.toVar);b=this.stepVar?f+" +\x3d "+this.stepVar:e?h?l<=m?"++"+f:"--"+f:l<=m?f+"++":f+"--":h?b+" ? ++"+f+" : --"+f:b+" ? "+f+"++ : "+f+"--";h&&
|
||||||
function(b){if(b.classBody)return!1;if(b instanceof ga)return b.value=a;if(b instanceof l&&b.bound)return b.context=a})};b.prototype.addBoundFunctions=function(a){var b,c,e,d;d=this.boundFuncs;c=0;for(e=d.length;c<e;c++)b=d[c],b=(new M(new ga,[new ta(b)])).compile(a),this.ctor.body.unshift(new y(b+" \x3d "+za("bind",a)+"("+b+", this)"))};b.prototype.addProperties=function(a,b,c){var e,d,p,f;f=a.base.properties.slice(0);var ra;for(ra=[];e=f.shift();)e instanceof D&&(d=e.variable.base,delete e.context,
|
(n=a+" \x3d "+n);h&&(b=a+" \x3d "+b);return[this.makeCode(n+"; "+q+"; "+b)]};b.prototype.compileArray=function(a){var b,l,c;if((b=null!=this.fromNum&&null!=this.toNum)&&20>=Math.abs(this.fromNum-this.toNum)){var m=function(){c=[];for(var a=l=this.fromNum,b=this.toNum;l<=b?a<=b:a>=b;l<=b?a++:a--)c.push(a);return c}.apply(this);this.exclusive&&m.pop();return[this.makeCode("["+m.join(", ")+"]")]}var e=this.tab+Fa;var f=a.scope.freeVariable("i",{single:!0});var h=a.scope.freeVariable("results");var n=
|
||||||
p=e.value,"constructor"===d.value?(this.ctor&&e.error("cannot define more than one constructor in a class"),p.bound&&e.error("cannot define a constructor as a bound function"),p instanceof l?e=this.ctor=p:(this.externalCtor=c.classScope.freeVariable("ctor"),e=new D(new x(this.externalCtor),p))):e.variable["this"]?p["static"]=!0:(a=d.isComplex()?new g(d):new ta(d),e.variable=new M(new x(b),[new ta(new N("prototype")),a]),p instanceof l&&p.bound&&(this.boundFuncs.push(d),p.bound=!1))),ra.push(e);return oa(ra)};
|
"\n"+e+h+" \x3d [];";if(b)a.index=f,b=ca(this.compileNode(a));else{var k=f+" \x3d "+this.fromC+(this.toC!==this.toVar?", "+this.toC:"");b=this.fromVar+" \x3c\x3d "+this.toVar;b="var "+k+"; "+b+" ? "+f+" \x3c"+this.equals+" "+this.toVar+" : "+f+" \x3e"+this.equals+" "+this.toVar+"; "+b+" ? "+f+"++ : "+f+"--"}f="{ "+h+".push("+f+"); }\n"+e+"return "+h+";\n"+a.indent;a=function(a){return null!=a?a.contains(Wa):void 0};if(a(this.from)||a(this.to))m=", arguments";return[this.makeCode("(function() {"+n+
|
||||||
b.prototype.walkBody=function(a,d){return this.traverseChildren(!1,function(p){return function(e){var f,ra,g,h,ua,m,q;f=!0;if(e instanceof b)return!1;if(e instanceof c){q=ra=e.expressions;g=h=0;for(ua=q.length;h<ua;g=++h)m=q[g],m instanceof D&&m.variable.looksStatic(a)?m.value["static"]=!0:m instanceof M&&m.isObject(!0)&&(f=!1,ra[g]=p.addProperties(m,a,d));e.expressions=la(ra)}return f&&!(e instanceof b)}}(this))};b.prototype.hoistDirectivePrologue=function(){var a,b,c;b=0;for(a=this.body.expressions;(c=
|
"\n"+e+"for ("+b+")"+f+"}).apply(this"+(null!=m?m:"")+")")]};return b}(ta);e.Slice=Z=function(a){function b(a){this.range=a;b.__super__.constructor.call(this)}v(b,a);b.prototype.children=["range"];b.prototype.compileNode=function(a){var b=this.range;var l=b.to;var c=(b=b.from)&&b.compileToFragments(a,Da)||[this.makeCode("0")];if(l){b=l.compileToFragments(a,Da);var m=ca(b);if(this.range.exclusive||-1!==+m)var e=", "+(this.range.exclusive?m:l.isNumber()?""+(+m+1):(b=l.compileToFragments(a,Ka),"+"+ca(b)+
|
||||||
a[b])&&c instanceof F||c instanceof M&&c.isString();)++b;return this.directives=a.splice(0,b)};b.prototype.ensureConstructor=function(a){this.ctor||(this.ctor=new l,this.externalCtor?this.ctor.body.push(new y(this.externalCtor+".apply(this, arguments)")):this.parent&&this.ctor.body.push(new y(a+".__super__.constructor.apply(this, arguments)")),this.ctor.body.makeReturn(),this.body.expressions.unshift(this.ctor));this.ctor.ctor=this.ctor.name=a;this.ctor.klass=null;return this.ctor.noReturn=!0};b.prototype.compileNode=
|
" + 1 || 9e9"))}return[this.makeCode(".slice("+ca(c)+(e||"")+")")]};return b}(ta);e.Obj=q=function(a){function b(a,b){this.generated=null!=b?b:!1;this.objects=this.properties=a||[]}v(b,a);b.prototype.children=["properties"];b.prototype.compileNode=function(a){var b,l,c;var m=this.properties;if(this.generated){var e=0;for(b=m.length;e<b;e++){var f=m[e];f instanceof C&&f.error("cannot have an implicit value in an implicit object")}}e=b=0;for(f=m.length;b<f;e=++b){var h=m[e];if((h.variable||h).base instanceof
|
||||||
function(a){var b,p,e,f,g;(p=this.body.jumps())&&p.error("Class bodies cannot contain pure statements");(b=this.body.contains(Ja))&&b.error("Class bodies shouldn't reference arguments");g=this.determineName();f=new x(g);p=new l([],c.wrap([this.body]));b=[];a.classScope=p.makeScope(a.scope);this.hoistDirectivePrologue();this.setContext(g);this.walkBody(g,a);this.ensureConstructor(g);this.addBoundFunctions(a);this.body.spaced=!0;this.body.expressions.push(f);this.parent&&(g=new x(a.classScope.freeVariable("superClass",
|
P)break}f=e<m.length;var n=a.indent+=Fa;var k=this.lastNonComment(this.properties);b=[];if(f){var q=a.scope.freeVariable("obj");b.push(this.makeCode("(\n"+n+q+" \x3d "))}b.push(this.makeCode("{"+(0===m.length||0===e?"}":"\n")));var w=l=0;for(c=m.length;l<c;w=++l){h=m[w];w===e&&(0!==w&&b.push(this.makeCode("\n"+n+"}")),b.push(this.makeCode(",\n")));var t=w===m.length-1||w===e-1?"":h===k||h instanceof p?"\n":",\n";var r=h instanceof p?"":n;f&&w<e&&(r+=Fa);h instanceof x&&("object"!==h.context&&h.operatorToken.error("unexpected "+
|
||||||
{reserve:!1})),this.body.expressions.unshift(new L(f,g)),p.params.push(new W(g)),b.push(this.parent));(e=this.body.expressions).unshift.apply(e,this.directives);e=new B(new d(p,b));this.variable&&(e=new D(this.variable,e,null,{moduleDeclaration:this.moduleDeclaration}));return e.compileToFragments(a)};return b}(a);f.ModuleDeclaration=n=function(a){function b(a,b){this.clause=a;this.source=b;this.checkSource()}ma(b,a);b.prototype.children=["clause","source"];b.prototype.isStatement=ha;b.prototype.jumps=
|
h.operatorToken.value),h.variable instanceof C&&h.variable.hasProperties()&&h.variable.error("invalid object key"));h instanceof C&&h["this"]&&(h=new x(h.properties[0].name,h,"object"));h instanceof p||(w<e?h instanceof x||(h=new x(h,h,"object")):(h instanceof x?(w=h.variable,h=h.value):(h=h.base.cache(a),w=h[0],h=h[1],w instanceof y&&(w=new L(w.value))),h=new x(new C(new y(q),[new ra(w)]),h)));r&&b.push(this.makeCode(r));b.push.apply(b,h.compileToFragments(a,na));t&&b.push(this.makeCode(t))}f?b.push(this.makeCode(",\n"+
|
||||||
da;b.prototype.makeReturn=da;b.prototype.checkSource=function(){if(null!=this.source&&this.source instanceof Xa)return this.source.error("the name of the module to be imported from must be an uninterpolated string")};b.prototype.checkScope=function(a,b){if(0!==a.indent.length)return this.error(b+" statements must be at top-level scope")};return b}(a);f.ImportDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.compileNode=function(a){var b,
|
n+q+"\n"+this.tab+")")):0!==m.length&&b.push(this.makeCode("\n"+this.tab+"}"));return this.front&&!f?this.wrapInBraces(b):b};b.prototype.assigns=function(a){var b;var l=this.properties;var c=0;for(b=l.length;c<b;c++){var m=l[c];if(m.assigns(a))return!0}return!1};return b}(ta);e.Arr=r=function(a){function b(a){this.objects=a||[]}v(b,a);b.prototype.children=["objects"];b.prototype.compileNode=function(a){var b;if(!this.objects.length)return[this.makeCode("[]")];a.indent+=Fa;var l=T.compileSplattedArray(a,
|
||||||
c;this.checkScope(a,"import");a.importedSymbols=[];b=[];b.push(this.makeCode(this.tab+"import "));null!=this.clause&&b.push.apply(b,this.clause.compileNode(a));null!=(null!=(c=this.source)?c.value:void 0)&&(null!==this.clause&&b.push(this.makeCode(" from ")),b.push(this.makeCode(this.source.value)));b.push(this.makeCode(";"));return b};return b}(n);f.ImportClause=function(a){function b(a,b){this.defaultBinding=a;this.namedImports=b}ma(b,a);b.prototype.children=["defaultBinding","namedImports"];b.prototype.compileNode=
|
this.objects);if(l.length)return l;l=[];var c=this.objects;var m=[];var e=0;for(b=c.length;e<b;e++){var f=c[e];m.push(f.compileToFragments(a,va))}e=b=0;for(c=m.length;b<c;e=++b)f=m[e],e&&l.push(this.makeCode(", ")),l.push.apply(l,f);0<=ca(l).indexOf("\n")?(l.unshift(this.makeCode("[\n"+a.indent)),l.push(this.makeCode("\n"+this.tab+"]"))):(l.unshift(this.makeCode("[")),l.push(this.makeCode("]")));return l};b.prototype.assigns=function(a){var b;var l=this.objects;var c=0;for(b=l.length;c<b;c++){var m=
|
||||||
function(a){var b;b=[];null!=this.defaultBinding&&(b.push.apply(b,this.defaultBinding.compileNode(a)),null!=this.namedImports&&b.push(this.makeCode(", ")));null!=this.namedImports&&b.push.apply(b,this.namedImports.compileNode(a));return b};return b}(a);f.ExportDeclaration=n=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.compileNode=function(a){var b,d;this.checkScope(a,"export");b=[];b.push(this.makeCode(this.tab+"export "));this instanceof G&&b.push(this.makeCode("default "));
|
l[c];if(m.assigns(a))return!0}return!1};return b}(ta);e.Class=f=function(b){function c(b,d,c){this.variable=b;this.parent=d;this.body=null!=c?c:new a;this.boundFuncs=[];this.body.classBody=!0}v(c,b);c.prototype.children=["variable","parent","body"];c.prototype.defaultClassVariableName="_Class";c.prototype.determineName=function(){var a;if(!this.variable)return this.defaultClassVariableName;var b=this.variable.properties;b=(a=b[b.length-1])?a instanceof ra&&a.name:this.variable.base;if(!(b instanceof
|
||||||
this instanceof G||!(this.clause instanceof D||this.clause instanceof v)||(this.clause instanceof v&&!this.clause.variable&&this.clause.error("anonymous classes cannot be exported"),b.push(this.makeCode("var ")),this.clause.moduleDeclaration="export");b=null!=this.clause.body&&this.clause.body instanceof c?b.concat(this.clause.compileToFragments(a,H)):b.concat(this.clause.compileNode(a));null!=(null!=(d=this.source)?d.value:void 0)&&b.push(this.makeCode(" from "+this.source.value));b.push(this.makeCode(";"));
|
y||b instanceof L))return this.defaultClassVariableName;b=b.value;a||(a=Aa(b))&&this.variable.error(a);return 0<=R.call(ma,b)?"_"+b:b};c.prototype.setContext=function(a){return this.body.traverseChildren(!1,function(b){if(b.classBody)return!1;if(b instanceof E)return b.value=a;if(b instanceof k&&b.bound)return b.context=a})};c.prototype.addBoundFunctions=function(a){var b;var l=this.boundFuncs;var c=0;for(b=l.length;c<b;c++){var m=l[c];m=(new C(new E,[new ra(m)])).compile(a);this.ctor.body.unshift(new B(m+
|
||||||
return b};return b}(n);f.ExportNamedDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ExportDefaultDeclaration=G=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ExportAllDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ModuleSpecifierList=n=function(a){function b(a){this.specifiers=a}ma(b,a);b.prototype.children=["specifiers"];
|
" \x3d "+La("bind",a)+"("+m+", this)"))}};c.prototype.addProperties=function(a,b,c){var d;var l=a.base.properties.slice(0);var m;for(m=[];d=l.shift();){if(d instanceof x){var e=d.variable.base;delete d.context;var f=d.value;"constructor"===e.value?(this.ctor&&d.error("cannot define more than one constructor in a class"),f.bound&&d.error("cannot define a constructor as a bound function"),f instanceof k?d=this.ctor=f:(this.externalCtor=c.classScope.freeVariable("ctor"),d=new x(new y(this.externalCtor),
|
||||||
b.prototype.compileNode=function(a){var b,c,e,d,f;b=[];a.indent+=ba;var p;f=this.specifiers;p=[];e=0;for(d=f.length;e<d;e++)c=f[e],p.push(c.compileToFragments(a,h));if(0!==this.specifiers.length){b.push(this.makeCode("{\n"+a.indent));e=d=0;for(f=p.length;d<f;e=++d)c=p[e],e&&b.push(this.makeCode(",\n"+a.indent)),b.push.apply(b,c);b.push(this.makeCode("\n}"))}else b.push(this.makeCode("{}"));return b};return b}(a);f.ImportSpecifierList=function(a){function b(){return b.__super__.constructor.apply(this,
|
f))):d.variable["this"]?f["static"]=!0:(a=e.isComplex()?new Q(e):new ra(e),d.variable=new C(new y(b),[new ra(new L("prototype")),a]),f instanceof k&&f.bound&&(this.boundFuncs.push(e),f.bound=!1))}m.push(d)}return ea(m)};c.prototype.walkBody=function(b,d){return this.traverseChildren(!1,function(l){return function(m){var e,f,h;var Ca=!0;if(m instanceof c)return!1;if(m instanceof a){var n=e=m.expressions;var k=f=0;for(h=n.length;f<h;k=++f){var q=n[k];q instanceof x&&q.variable.looksStatic(b)?q.value["static"]=
|
||||||
arguments)}ma(b,a);return b}(n);f.ExportSpecifierList=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ModuleSpecifier=T=function(a){function b(a,b,c){this.original=a;this.alias=b;this.moduleDeclarationType=c;this.identifier=null!=this.alias?this.alias.value:this.original.value}ma(b,a);b.prototype.children=["original","alias"];b.prototype.compileNode=function(a){a.scope.add(this.identifier,this.moduleDeclarationType);a=[];a.push(this.makeCode(this.original.value));
|
!0:q instanceof C&&q.isObject(!0)&&(Ca=!1,e[k]=l.addProperties(q,b,d))}m.expressions=ia(e)}return Ca&&!(m instanceof c)}}(this))};c.prototype.hoistDirectivePrologue=function(){var a,b;var c=0;for(a=this.body.expressions;(b=a[c])&&b instanceof p||b instanceof C&&b.isString();)++c;return this.directives=a.splice(0,c)};c.prototype.ensureConstructor=function(a){this.ctor||(this.ctor=new k,this.externalCtor?this.ctor.body.push(new B(this.externalCtor+".apply(this, arguments)")):this.parent&&this.ctor.body.push(new B(a+
|
||||||
null!=this.alias&&a.push(this.makeCode(" as "+this.alias.value));return a};return b}(a);f.ImportSpecifier=n=function(a){function b(a,c){b.__super__.constructor.call(this,a,c,"import")}ma(b,a);b.prototype.compileNode=function(a){var c;(c=this.identifier,0<=Ha.call(a.importedSymbols,c))||a.scope.check(this.identifier)?this.error("'"+this.identifier+"' has already been declared"):a.importedSymbols.push(this.identifier);return b.__super__.compileNode.call(this,a)};return b}(T);f.ImportDefaultSpecifier=
|
".__super__.constructor.apply(this, arguments)")),this.ctor.body.makeReturn(),this.body.expressions.unshift(this.ctor));this.ctor.ctor=this.ctor.name=a;this.ctor.klass=null;return this.ctor.noReturn=!0};c.prototype.compileNode=function(b){var d,l,c;(l=this.body.jumps())&&l.error("Class bodies cannot contain pure statements");(d=this.body.contains(Wa))&&d.error("Class bodies shouldn't reference arguments");var m=this.determineName();var e=new y(m);l=new k([],a.wrap([this.body]));d=[];b.classScope=
|
||||||
function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ImportNamespaceSpecifier=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);return b}(n);f.ExportSpecifier=function(a){function b(a,c){b.__super__.constructor.call(this,a,c,"export")}ma(b,a);return b}(T);f.Assign=D=function(a){function b(a,b,c,e){this.variable=a;this.value=b;this.context=c;null==e&&(e={});this.param=e.param;this.subpattern=e.subpattern;this.operatorToken=
|
l.makeScope(b.scope);this.hoistDirectivePrologue();this.setContext(m);this.walkBody(m,b);this.ensureConstructor(m);this.addBoundFunctions(b);this.body.spaced=!0;this.body.expressions.push(e);this.parent&&(m=new y(b.classScope.freeVariable("superClass",{reserve:!1})),this.body.expressions.unshift(new F(e,m)),l.params.push(new K(m)),d.push(this.parent));(c=this.body.expressions).unshift.apply(c,this.directives);c=new P(new za(l,d));this.variable&&(c=new x(this.variable,c,null,{moduleDeclaration:this.moduleDeclaration}));
|
||||||
e.operatorToken;this.moduleDeclaration=e.moduleDeclaration}ma(b,a);b.prototype.children=["variable","value"];b.prototype.isStatement=function(a){return(null!=a?a.level:void 0)===H&&null!=this.context&&(this.moduleDeclaration||0<=Ha.call(this.context,"?"))};b.prototype.checkAssignability=function(a,b){if(Object.prototype.hasOwnProperty.call(a.scope.positions,b.value)&&"import"===a.scope.variables[a.scope.positions[b.value]].type)return b.error("'"+b.value+"' is read-only")};b.prototype.assigns=function(a){return this["object"===
|
return c.compileToFragments(b)};return c}(ta);e.ModuleDeclaration=Y=function(a){function b(a,b){this.clause=a;this.source=b;this.checkSource()}v(b,a);b.prototype.children=["clause","source"];b.prototype.isStatement=ha;b.prototype.jumps=oa;b.prototype.makeReturn=oa;b.prototype.checkSource=function(){if(null!=this.source&&this.source instanceof A)return this.source.error("the name of the module to be imported from must be an uninterpolated string")};b.prototype.checkScope=function(a,b){if(0!==a.indent.length)return this.error(b+
|
||||||
this.context?"value":"variable"].assigns(a)};b.prototype.unfoldSoak=function(a){return Na(a,this,"variable")};b.prototype.compileNode=function(a){var b,c,e,d,f,p,g;if(c=this.variable instanceof M){if(this.variable.isArray()||this.variable.isObject())return this.compilePatternMatch(a);if(this.variable.isSplice())return this.compileSplice(a);if("||\x3d"===(d=this.context)||"\x26\x26\x3d"===d||"?\x3d"===d)return this.compileConditional(a);if("**\x3d"===(f=this.context)||"//\x3d"===f||"%%\x3d"===f)return this.compileSpecialMath(a)}this.value instanceof
|
" statements must be at top-level scope")};return b}(ta);e.ImportDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.compileNode=function(a){var b;this.checkScope(a,"import");a.importedSymbols=[];var l=[];l.push(this.makeCode(this.tab+"import "));null!=this.clause&&l.push.apply(l,this.clause.compileNode(a));null!=(null!=(b=this.source)?b.value:void 0)&&(null!==this.clause&&l.push(this.makeCode(" from ")),l.push(this.makeCode(this.source.value)));
|
||||||
l&&(this.value["static"]?(this.value.klass=this.variable.base,this.value.name=this.variable.properties[0],this.value.variable=this.variable):2<=(null!=(p=this.variable.properties)?p.length:void 0)&&(p=this.variable.properties,d=3<=p.length?Aa.call(p,0,e=p.length-2):(e=0,[]),f=p[e++],e=p[e++],"prototype"===(null!=(g=f.name)?g.value:void 0)&&(this.value.klass=new M(this.variable.base,d),this.value.name=e,this.value.variable=this.variable)));this.context||(g=this.variable.unwrapAll(),g.isAssignable()||
|
l.push(this.makeCode(";"));return l};return b}(Y);e.ImportClause=function(a){function b(a,b){this.defaultBinding=a;this.namedImports=b}v(b,a);b.prototype.children=["defaultBinding","namedImports"];b.prototype.compileNode=function(a){var b=[];null!=this.defaultBinding&&(b.push.apply(b,this.defaultBinding.compileNode(a)),null!=this.namedImports&&b.push(this.makeCode(", ")));null!=this.namedImports&&b.push.apply(b,this.namedImports.compileNode(a));return b};return b}(ta);e.ExportDeclaration=Y=function(b){function c(){return c.__super__.constructor.apply(this,
|
||||||
this.variable.error("'"+this.variable.compile(a)+"' can't be assigned"),"function"===typeof g.hasProperties&&g.hasProperties()||(this.moduleDeclaration?(this.checkAssignability(a,g),a.scope.add(g.value,this.moduleDeclaration)):this.param?a.scope.add(g.value,"var"):(this.checkAssignability(a,g),a.scope.find(g.value))));g=this.value.compileToFragments(a,h);c&&this.variable.base instanceof C&&(this.variable.front=!0);c=this.variable.compileToFragments(a,h);if("object"===this.context){if(b=Da(c),0<=Ha.call(r,
|
arguments)}v(c,b);c.prototype.compileNode=function(b){var d;this.checkScope(b,"export");var l=[];l.push(this.makeCode(this.tab+"export "));this instanceof J&&l.push(this.makeCode("default "));this instanceof J||!(this.clause instanceof x||this.clause instanceof f)||(this.clause instanceof f&&!this.clause.variable&&this.clause.error("anonymous classes cannot be exported"),l.push(this.makeCode("var ")),this.clause.moduleDeclaration="export");l=null!=this.clause.body&&this.clause.body instanceof a?l.concat(this.clause.compileToFragments(b,
|
||||||
b))c.unshift(this.makeCode('"')),c.push(this.makeCode('"'));return c.concat(this.makeCode(": "),g)}b=c.concat(this.makeCode(" "+(this.context||"\x3d")+" "),g);return a.level<=h?b:this.wrapInBraces(b)};b.prototype.compilePatternMatch=function(a){var c,d,e,f,p,m,q,k,r,n,l,D,t,u,B,v;u=a.level===H;k=this.value;D=this.variable.base.objects;if(!(t=D.length))return d=k.compileToFragments(a),a.level>=K?this.wrapInBraces(d):d;l=D[0];1===t&&l instanceof z&&l.error("Destructuring assignment has no target");
|
na)):l.concat(this.clause.compileNode(b));null!=(null!=(d=this.source)?d.value:void 0)&&l.push(this.makeCode(" from "+this.source.value));l.push(this.makeCode(";"));return l};return c}(Y);e.ExportNamedDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ExportDefaultDeclaration=J=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ExportAllDeclaration=function(a){function b(){return b.__super__.constructor.apply(this,
|
||||||
m=this.variable.isObject();if(u&&1===t&&!(l instanceof Q))return e=null,l instanceof b&&"object"===l.context?(d=l,f=d.variable,p=f.base,l=d.value,l instanceof b&&(e=l.value,l=l.variable)):(l instanceof b&&(e=l.value,l=l.variable),p=m?l["this"]?l.properties[0].name:new N(l.unwrap().value):new R(0)),c=p.unwrap()instanceof N,k=new M(k),k.properties.push(new (c?ta:g)(p)),(n=Ga(l.unwrap().value))&&l.error(n),e&&(k=new A("?",k,e)),(new b(l,k,null,{param:this.param})).compileToFragments(a,H);B=k.compileToFragments(a,
|
arguments)}v(b,a);return b}(Y);e.ModuleSpecifierList=Y=function(a){function b(a){this.specifiers=a}v(b,a);b.prototype.children=["specifiers"];b.prototype.compileNode=function(a){var b;var l=[];a.indent+=Fa;var c=this.specifiers;var m=[];var e=0;for(b=c.length;e<b;e++){var f=c[e];m.push(f.compileToFragments(a,va))}if(0!==this.specifiers.length){l.push(this.makeCode("{\n"+a.indent));e=b=0;for(c=m.length;b<c;e=++b)f=m[e],e&&l.push(this.makeCode(",\n"+a.indent)),l.push.apply(l,f);l.push(this.makeCode("\n}"))}else l.push(this.makeCode("{}"));
|
||||||
h);v=Da(B);d=[];f=!1;k.unwrap()instanceof x&&!this.variable.assigns(v)||(d.push([this.makeCode((e=a.scope.freeVariable("ref"))+" \x3d ")].concat(Aa.call(B))),B=[this.makeCode(e)],v=e);e=k=0;for(r=D.length;k<r;e=++k){l=D[e];p=e;if(!f&&l instanceof Q)n=l.name.unwrap().value,l=l.unwrap(),p=t+" \x3c\x3d "+v+".length ? "+za("slice",a)+".call("+v+", "+e,(c=t-e-1)?(q=a.scope.freeVariable("i",{single:!0}),p+=", "+q+" \x3d "+v+".length - "+c+") : ("+q+" \x3d "+e+", [])"):p+=") : []",p=new y(p),f=q+"++";else if(!f&&
|
return l};return b}(ta);e.ImportSpecifierList=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ExportSpecifierList=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ModuleSpecifier=n=function(a){function b(a,b,c){this.original=a;this.alias=b;this.moduleDeclarationType=c;this.identifier=null!=this.alias?this.alias.value:this.original.value}v(b,a);b.prototype.children=["original","alias"];b.prototype.compileNode=
|
||||||
l instanceof z){if(c=t-e-1)1===c?f=v+".length - 1":(q=a.scope.freeVariable("i",{single:!0}),p=new y(q+" \x3d "+v+".length - "+c),f=q+"++",d.push(p.compileToFragments(a,h)));continue}else(l instanceof Q||l instanceof z)&&l.error("multiple splats/expansions are disallowed in an assignment"),e=null,l instanceof b&&"object"===l.context?(p=l.variable,p=p.base,l=l.value,l instanceof b&&(e=l.value,l=l.variable)):(l instanceof b&&(e=l.value,l=l.variable),p=m?l["this"]?l.properties[0].name:new N(l.unwrap().value):
|
function(a){a.scope.find(this.identifier,this.moduleDeclarationType);a=[];a.push(this.makeCode(this.original.value));null!=this.alias&&a.push(this.makeCode(" as "+this.alias.value));return a};return b}(ta);e.ImportSpecifier=Y=function(a){function b(a,d){b.__super__.constructor.call(this,a,d,"import")}v(b,a);b.prototype.compileNode=function(a){var d;(d=this.identifier,0<=R.call(a.importedSymbols,d))||a.scope.check(this.identifier)?this.error("'"+this.identifier+"' has already been declared"):a.importedSymbols.push(this.identifier);
|
||||||
new y(f||p)),n=l.unwrap().value,c=p.unwrap()instanceof N,p=new M(new y(v),[new (c?ta:g)(p)]),e&&(p=new A("?",p,e));null!=n&&(n=Ga(n))&&l.error(n);d.push((new b(l,p,null,{param:this.param,subpattern:!0})).compileToFragments(a,h))}u||this.subpattern||d.push(B);d=this.joinFragmentArrays(d,", ");return a.level<h?d:this.wrapInBraces(d)};b.prototype.compileConditional=function(a){var c,d;d=this.variable.cacheReference(a);c=d[0];d=d[1];c.properties.length||!(c.base instanceof y)||c.base instanceof ga||a.scope.check(c.base.value)||
|
return b.__super__.compileNode.call(this,a)};return b}(n);e.ImportDefaultSpecifier=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ImportNamespaceSpecifier=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);return b}(Y);e.ExportSpecifier=function(a){function b(a,d){b.__super__.constructor.call(this,a,d,"export")}v(b,a);return b}(n);e.Assign=x=function(a){function b(a,b,c,e){this.variable=a;this.value=b;this.context=
|
||||||
this.variable.error('the variable "'+c.base.value+"\" can't be assigned with "+this.context+" because it has not been declared before");if(0<=Ha.call(this.context,"?"))return a.isExistentialEquals=!0,(new E(new w(c),d,{type:"if"})).addElse(new b(d,this.value,"\x3d")).compileToFragments(a);c=(new A(this.context.slice(0,-1),c,new b(d,this.value,"\x3d"))).compileToFragments(a);return a.level<=h?c:this.wrapInBraces(c)};b.prototype.compileSpecialMath=function(a){var c,d;d=this.variable.cacheReference(a);
|
c;null==e&&(e={});this.param=e.param;this.subpattern=e.subpattern;this.operatorToken=e.operatorToken;this.moduleDeclaration=e.moduleDeclaration}v(b,a);b.prototype.children=["variable","value"];b.prototype.isStatement=function(a){return(null!=a?a.level:void 0)===na&&null!=this.context&&(this.moduleDeclaration||0<=R.call(this.context,"?"))};b.prototype.checkAssignability=function(a,b){if(Object.prototype.hasOwnProperty.call(a.scope.positions,b.value)&&"import"===a.scope.variables[a.scope.positions[b.value]].type)return b.error("'"+
|
||||||
c=d[0];d=d[1];return(new b(c,new A(this.context.slice(0,-1),d,this.value))).compileToFragments(a)};b.prototype.compileSplice=function(a){var b,c,e,d,f,p;d=this.variable.properties.pop().range;e=d.from;b=d.to;c=d.exclusive;p=this.variable.compile(a);e?(f=this.cacheToCodeFragments(e.cache(a,K)),d=f[0],f=f[1]):d=f="0";b?null!=e&&e.isNumber()&&b.isNumber()?(b=b.compile(a)-f,c||(b+=1)):(b=b.compile(a,q)+" - "+f,c||(b+=" + 1")):b="9e9";c=this.value.cache(a,h);e=c[0];c=c[1];b=[].concat(this.makeCode("[].splice.apply("+
|
b.value+"' is read-only")};b.prototype.assigns=function(a){return this["object"===this.context?"value":"variable"].assigns(a)};b.prototype.unfoldSoak=function(a){return Ea(a,this,"variable")};b.prototype.compileNode=function(a){var b,c,l,e,f,m,h;if(c=this.variable instanceof C){if(this.variable.isArray()||this.variable.isObject())return this.compilePatternMatch(a);if(this.variable.isSplice())return this.compileSplice(a);if("||\x3d"===(e=this.context)||"\x26\x26\x3d"===e||"?\x3d"===e)return this.compileConditional(a);
|
||||||
p+", ["+d+", "+b+"].concat("),e,this.makeCode(")), "),c);return a.level>H?this.wrapInBraces(b):b};return b}(a);f.Code=l=function(a){function b(a,b,d){this.params=a||[];this.body=b||new c;this.bound="boundfunc"===d;this.isGenerator=!!this.body.contains(function(a){return a instanceof A&&a.isYield()||a instanceof ca})}ma(b,a);b.prototype.children=["params","body"];b.prototype.isStatement=function(){return!!this.ctor};b.prototype.jumps=P;b.prototype.makeScope=function(a){return new J(a,this.body,this)};
|
if("**\x3d"===(f=this.context)||"//\x3d"===f||"%%\x3d"===f)return this.compileSpecialMath(a)}this.value instanceof k&&(this.value["static"]?(this.value.klass=this.variable.base,this.value.name=this.variable.properties[0],this.value.variable=this.variable):2<=(null!=(m=this.variable.properties)?m.length:void 0)&&(m=this.variable.properties,e=3<=m.length?M.call(m,0,l=m.length-2):(l=0,[]),f=m[l++],l=m[l++],"prototype"===(null!=(h=f.name)?h.value:void 0)&&(this.value.klass=new C(this.variable.base,e),
|
||||||
b.prototype.compileNode=function(a){var f,p,e,g,h,m,k,l,r,n,t,u,v;this.bound&&null!=(p=a.scope.method)&&p.bound&&(this.context=a.scope.method.context);if(this.bound&&!this.context)return this.context="_this",p=new b([new W(new x(this.context))],new c([this])),p=new d(p,[new ga]),p.updateLocationDataIfMissing(this.locationData),p.compileNode(a);a.scope=na(a,"classScope")||this.makeScope(a.scope);a.scope.shared=na(a,"sharedScope");a.indent+=ba;delete a.bare;delete a.isExistentialEquals;p=[];f=[];l=
|
this.value.name=l,this.value.variable=this.variable)));this.context||(h=this.variable.unwrapAll(),h.isAssignable()||this.variable.error("'"+this.variable.compile(a)+"' can't be assigned"),"function"===typeof h.hasProperties&&h.hasProperties()||(this.moduleDeclaration?(this.checkAssignability(a,h),a.scope.add(h.value,this.moduleDeclaration)):this.param?a.scope.add(h.value,"var"):(this.checkAssignability(a,h),a.scope.find(h.value))));h=this.value.compileToFragments(a,va);c&&this.variable.base instanceof
|
||||||
this.params;g=0;for(m=l.length;g<m;g++)k=l[g],k instanceof z||a.scope.parameter(k.asReference(a));l=this.params;g=0;for(m=l.length;g<m;g++)if(k=l[g],k.splat||k instanceof z){g=this.params;h=0;for(k=g.length;h<k;h++)r=g[h],r instanceof z||!r.name.value||a.scope.add(r.name.value,"var",!0);h=new D(new M(new pa(function(){var b,c,e,d;e=this.params;d=[];c=0;for(b=e.length;c<b;c++)r=e[c],d.push(r.asReference(a));return d}.call(this))),new M(new x("arguments")));break}t=this.params;l=0;for(g=t.length;l<
|
q&&(this.variable.front=!0);c=this.variable.compileToFragments(a,va);if("object"===this.context){if(b=ca(c),0<=R.call(ma,b))c.unshift(this.makeCode('"')),c.push(this.makeCode('"'));return c.concat(this.makeCode(": "),h)}b=c.concat(this.makeCode(" "+(this.context||"\x3d")+" "),h);return a.level<=va?b:this.wrapInBraces(b)};b.prototype.compilePatternMatch=function(a){var d,c,l;var e=a.level===na;var f=this.value;var m=this.variable.base.objects;if(!(l=m.length)){var n=f.compileToFragments(a);return a.level>=
|
||||||
g;l++)k=t[l],k.isComplex()?(v=n=k.asReference(a),k.value&&(v=new A("?",n,k.value)),f.push(new D(new M(k.name),v,"\x3d",{param:!0}))):(n=k,k.value&&(m=new y(n.name.value+" \x3d\x3d null"),v=new D(new M(k.name),k.value,"\x3d"),f.push(new E(m,v)))),h||p.push(n);k=this.body.isEmpty();h&&f.unshift(h);f.length&&(e=this.body.expressions).unshift.apply(e,f);e=h=0;for(f=p.length;h<f;e=++h)r=p[e],p[e]=r.compileToFragments(a),a.scope.parameter(Da(p[e]));u=[];this.eachParamName(function(a,b){0<=Ha.call(u,a)&&
|
Ha?this.wrapInBraces(n):n}var k=m[0];1===l&&k instanceof I&&k.error("Destructuring assignment has no target");var q=this.variable.isObject();if(e&&1===l&&!(k instanceof T)){var p=null;if(k instanceof b&&"object"===k.context){n=k;var t=n.variable;var r=t.base;k=n.value;k instanceof b&&(p=k.value,k=k.variable)}else k instanceof b&&(p=k.value,k=k.variable),r=q?k["this"]?k.properties[0].name:new L(k.unwrap().value):new w(0);var x=r.unwrap()instanceof L;f=new C(f);f.properties.push(new (x?ra:Q)(r));(c=
|
||||||
b.error("multiple parameters named "+a);return u.push(a)});k||this.noReturn||this.body.makeReturn();e="function";this.isGenerator&&(e+="*");this.ctor&&(e+=" "+this.name);f=[this.makeCode(e+"(")];e=k=0;for(h=p.length;k<h;e=++k)r=p[e],e&&f.push(this.makeCode(", ")),f.push.apply(f,r);f.push(this.makeCode(") {"));this.body.isEmpty()||(f=f.concat(this.makeCode("\n"),this.body.compileWithDeclarations(a),this.makeCode("\n"+this.tab)));f.push(this.makeCode("}"));return this.ctor?[this.makeCode(this.tab)].concat(Aa.call(f)):
|
Aa(k.unwrap().value))&&k.error(c);p&&(f=new h("?",f,p));return(new b(k,f,null,{param:this.param})).compileToFragments(a,na)}var v=f.compileToFragments(a,va);var u=ca(v);n=[];t=!1;f.unwrap()instanceof y&&!this.variable.assigns(u)||(n.push([this.makeCode((p=a.scope.freeVariable("ref"))+" \x3d ")].concat(M.call(v))),v=[this.makeCode(p)],u=p);p=f=0;for(d=m.length;f<d;p=++f){k=m[p];r=p;if(!t&&k instanceof T){c=k.name.unwrap().value;k=k.unwrap();r=l+" \x3c\x3d "+u+".length ? "+La("slice",a)+".call("+u+
|
||||||
this.front||a.level>=q?this.wrapInBraces(f):f};b.prototype.eachParamName=function(a){var b,c,e,d,f;d=this.params;f=[];b=0;for(c=d.length;b<c;b++)e=d[b],f.push(e.eachName(a));return f};b.prototype.traverseChildren=function(a,c){if(a)return b.__super__.traverseChildren.call(this,a,c)};return b}(a);f.Param=W=function(a){function b(a,b,c){this.name=a;this.value=b;this.splat=c;(a=Ga(this.name.unwrapAll().value))&&this.name.error(a);this.name instanceof C&&this.name.generated&&(a=this.name.objects[0].operatorToken,
|
", "+p;if(x=l-p-1){var K=a.scope.freeVariable("i",{single:!0});r+=", "+K+" \x3d "+u+".length - "+x+") : ("+K+" \x3d "+p+", [])"}else r+=") : []";r=new B(r);t=K+"++"}else if(!t&&k instanceof I){if(x=l-p-1)1===x?t=u+".length - 1":(K=a.scope.freeVariable("i",{single:!0}),r=new B(K+" \x3d "+u+".length - "+x),t=K+"++",n.push(r.compileToFragments(a,va)));continue}else(k instanceof T||k instanceof I)&&k.error("multiple splats/expansions are disallowed in an assignment"),p=null,k instanceof b&&"object"===
|
||||||
a.error("unexpected "+a.value))}ma(b,a);b.prototype.children=["name","value"];b.prototype.compileToFragments=function(a){return this.name.compileToFragments(a,h)};b.prototype.asReference=function(a){var b;if(this.reference)return this.reference;b=this.name;b["this"]?(b=b.properties[0].name.value,0<=Ha.call(r,b)&&(b="_"+b),b=new x(a.scope.freeVariable(b))):b.isComplex()&&(b=new x(a.scope.freeVariable("arg")));b=new M(b);this.splat&&(b=new Q(b));b.updateLocationDataIfMissing(this.locationData);return this.reference=
|
k.context?(r=k.variable,r=r.base,k=k.value,k instanceof b&&(p=k.value,k=k.variable)):(k instanceof b&&(p=k.value,k=k.variable),r=q?k["this"]?k.properties[0].name:new L(k.unwrap().value):new B(t||r)),c=k.unwrap().value,x=r.unwrap()instanceof L,r=new C(new B(u),[new (x?ra:Q)(r)]),p&&(r=new h("?",r,p));null!=c&&(c=Aa(c))&&k.error(c);n.push((new b(k,r,null,{param:this.param,subpattern:!0})).compileToFragments(a,va))}e||this.subpattern||n.push(v);n=this.joinFragmentArrays(n,", ");return a.level<va?n:this.wrapInBraces(n)};
|
||||||
b};b.prototype.isComplex=function(){return this.name.isComplex()};b.prototype.eachName=function(a,b){var c,e,d,f;null==b&&(b=this.name);c=function(b){return a("@"+b.properties[0].name.value,b)};if(b instanceof y)return a(b.value,b);if(b instanceof M)return c(b);b=null!=(e=b.objects)?e:[];e=0;for(d=b.length;e<d;e++)f=b[e],f instanceof D&&null==f.context&&(f=f.variable),f instanceof D?(f.value instanceof D&&(f=f.value),this.eachName(a,f.value.unwrap())):f instanceof Q?(f=f.name.unwrap(),a(f.value,f)):
|
b.prototype.compileConditional=function(a){var d=this.variable.cacheReference(a);var c=d[0];d=d[1];c.properties.length||!(c.base instanceof B)||c.base instanceof E||a.scope.check(c.base.value)||this.variable.error('the variable "'+c.base.value+"\" can't be assigned with "+this.context+" because it has not been declared before");if(0<=R.call(this.context,"?"))return a.isExistentialEquals=!0,(new G(new z(c),d,{type:"if"})).addElse(new b(d,this.value,"\x3d")).compileToFragments(a);c=(new h(this.context.slice(0,
|
||||||
f instanceof M?f.isArray()||f.isObject()?this.eachName(a,f.base):f["this"]?c(f):a(f.base.value,f.base):f instanceof z||f.error("illegal parameter "+f.compile())};return b}(a);f.Splat=Q=function(a){function b(a){this.name=a.compile?a:new y(a)}ma(b,a);b.prototype.children=["name"];b.prototype.isAssignable=ha;b.prototype.assigns=function(a){return this.name.assigns(a)};b.prototype.compileToFragments=function(a){return this.name.compileToFragments(a)};b.prototype.unwrap=function(){return this.name};b.compileSplattedArray=
|
-1),c,new b(d,this.value,"\x3d"))).compileToFragments(a);return a.level<=va?c:this.wrapInBraces(c)};b.prototype.compileSpecialMath=function(a){var d=this.variable.cacheReference(a);var c=d[0];d=d[1];return(new b(c,new h(this.context.slice(0,-1),d,this.value))).compileToFragments(a)};b.prototype.compileSplice=function(a){var b=this.variable.properties.pop().range;var c=b.from;var l=b.to;var e=b.exclusive;var f=this.variable.compile(a);if(c){var m=this.cacheToCodeFragments(c.cache(a,Ha));b=m[0];m=m[1]}else b=
|
||||||
function(a,c,d){var e,f,g,p,k,m;for(p=-1;(e=c[++p])&&!(e instanceof b););if(p>=c.length)return[];if(1===c.length)return e=c[0],c=e.compileToFragments(a,h),d?c:[].concat(e.makeCode(za("slice",a)+".call("),c,e.makeCode(")"));d=c.slice(p);g=k=0;for(m=d.length;k<m;g=++k)e=d[g],f=e.compileToFragments(a,h),d[g]=e instanceof b?[].concat(e.makeCode(za("slice",a)+".call("),f,e.makeCode(")")):[].concat(e.makeCode("["),f,e.makeCode("]"));if(0===p)return e=c[0],a=e.joinFragmentArrays(d.slice(1),", "),d[0].concat(e.makeCode(".concat("),
|
m="0";l?null!=c&&c.isNumber()&&l.isNumber()?(l=l.compile(a)-m,e||(l+=1)):(l=l.compile(a,Ka)+" - "+m,e||(l+=" + 1")):l="9e9";e=this.value.cache(a,va);c=e[0];e=e[1];l=[].concat(this.makeCode("[].splice.apply("+f+", ["+b+", "+l+"].concat("),c,this.makeCode(")), "),e);return a.level>na?this.wrapInBraces(l):l};return b}(ta);e.Code=k=function(b){function c(b,d,c){this.params=b||[];this.body=d||new a;this.bound="boundfunc"===c;this.isGenerator=!!this.body.contains(function(a){return a instanceof h&&a.isYield()||
|
||||||
a,e.makeCode(")"));k=c.slice(0,p);m=[];f=0;for(g=k.length;f<g;f++)e=k[f],m.push(e.compileToFragments(a,h));e=c[0].joinFragmentArrays(m,", ");a=c[p].joinFragmentArrays(d,", ");d=c[c.length-1];return[].concat(c[0].makeCode("["),e,c[p].makeCode("].concat("),a,d.makeCode(")"))};return b}(a);f.Expansion=z=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.isComplex=P;b.prototype.compileNode=function(a){return this.error("Expansion must be used inside a destructuring assignment or parameter list")};
|
a instanceof S})}v(c,b);c.prototype.children=["params","body"];c.prototype.isStatement=function(){return!!this.ctor};c.prototype.jumps=ka;c.prototype.makeScope=function(a){return new ya(a,this.body,this)};c.prototype.compileNode=function(b){var d,l,e,f;this.bound&&null!=(d=b.scope.method)&&d.bound&&(this.context=b.scope.method.context);if(this.bound&&!this.context)return this.context="_this",d=new c([new K(new y(this.context))],new a([this])),d=new za(d,[new E]),d.updateLocationDataIfMissing(this.locationData),
|
||||||
b.prototype.asReference=function(a){return this};b.prototype.eachName=function(a){};return b}(a);f.While=n=function(a){function b(a,b){this.condition=null!=b&&b.invert?a.invert():a;this.guard=null!=b?b.guard:void 0}ma(b,a);b.prototype.children=["condition","guard","body"];b.prototype.isStatement=ha;b.prototype.makeReturn=function(a){if(a)return b.__super__.makeReturn.apply(this,arguments);this.returns=!this.jumps({loop:!0});return this};b.prototype.addBody=function(a){this.body=a;return this};b.prototype.jumps=
|
d.compileNode(b);b.scope=la(b,"classScope")||this.makeScope(b.scope);b.scope.shared=la(b,"sharedScope");b.indent+=Fa;delete b.bare;delete b.isExistentialEquals;d=[];var m=[];var k=this.params;var n=0;for(e=k.length;n<e;n++){var q=k[n];q instanceof I||b.scope.parameter(q.asReference(b))}k=this.params;n=0;for(e=k.length;n<e;n++)if(q=k[n],q.splat||q instanceof I){n=this.params;var p=0;for(q=n.length;p<q;p++){var w=n[p];w instanceof I||!w.name.value||b.scope.add(w.name.value,"var",!0)}p=new x(new C(new r(function(){var a;
|
||||||
function(){var a,b,c,e;a=this.body.expressions;if(!a.length)return!1;b=0;for(e=a.length;b<e;b++)if(c=a[b],c=c.jumps({loop:!0}))return c;return!1};b.prototype.compileNode=function(a){var b,d,e;a.indent+=ba;e="";b=this.body;b.isEmpty()?b=this.makeCode(""):(this.returns&&(b.makeReturn(d=a.scope.freeVariable("results")),e=""+this.tab+d+" \x3d [];\n"),this.guard&&(1<b.expressions.length?b.expressions.unshift(new E((new B(this.guard)).invert(),new ya("continue"))):this.guard&&(b=c.wrap([new E(this.guard,
|
var d=this.params;var c=[];var l=0;for(a=d.length;l<a;l++)w=d[l],c.push(w.asReference(b));return c}.call(this))),new C(new y("arguments")));break}var t=this.params;k=0;for(n=t.length;k<n;k++){q=t[k];if(q.isComplex()){var v=f=q.asReference(b);q.value&&(v=new h("?",f,q.value));m.push(new x(new C(q.name),v,"\x3d",{param:!0}))}else f=q,q.value&&(e=new B(f.name.value+" \x3d\x3d null"),v=new x(new C(q.name),q.value,"\x3d"),m.push(new G(e,v)));p||d.push(f)}q=this.body.isEmpty();p&&m.unshift(p);m.length&&
|
||||||
b)]))),b=[].concat(this.makeCode("\n"),b.compileToFragments(a,H),this.makeCode("\n"+this.tab)));a=[].concat(this.makeCode(e+this.tab+"while ("),this.condition.compileToFragments(a,O),this.makeCode(") {"),b,this.makeCode("}"));this.returns&&a.push(this.makeCode("\n"+this.tab+"return "+d+";"));return a};return b}(a);f.Op=A=function(a){function b(a,b,f,g){if("in"===a)return new m(b,f);if("do"===a)return this.generateDo(b);if("new"===a){if(b instanceof d&&!b["do"]&&!b.isNew)return b.newInstance();if(b instanceof
|
(l=this.body.expressions).unshift.apply(l,m);l=p=0;for(m=d.length;p<m;l=++p)w=d[l],d[l]=w.compileToFragments(b),b.scope.parameter(ca(d[l]));var u=[];this.eachParamName(function(a,b){0<=R.call(u,a)&&b.error("multiple parameters named "+a);return u.push(a)});q||this.noReturn||this.body.makeReturn();l="function";this.isGenerator&&(l+="*");this.ctor&&(l+=" "+this.name);m=[this.makeCode(l+"(")];l=q=0;for(p=d.length;q<p;l=++q)w=d[l],l&&m.push(this.makeCode(", ")),m.push.apply(m,w);m.push(this.makeCode(") {"));
|
||||||
l&&b.bound||b["do"])b=new B(b)}this.operator=c[a]||a;this.first=b;this.second=f;this.flip=!!g;return this}var c,f;ma(b,a);c={"\x3d\x3d":"\x3d\x3d\x3d","!\x3d":"!\x3d\x3d",of:"in",yieldfrom:"yield*"};f={"!\x3d\x3d":"\x3d\x3d\x3d","\x3d\x3d\x3d":"!\x3d\x3d"};b.prototype.children=["first","second"];b.prototype.isNumber=function(){var a;return this.isUnary()&&("+"===(a=this.operator)||"-"===a)&&this.first instanceof M&&this.first.isNumber()};b.prototype.isYield=function(){var a;return"yield"===(a=this.operator)||
|
this.body.isEmpty()||(m=m.concat(this.makeCode("\n"),this.body.compileWithDeclarations(b),this.makeCode("\n"+this.tab)));m.push(this.makeCode("}"));return this.ctor?[this.makeCode(this.tab)].concat(M.call(m)):this.front||b.level>=Ka?this.wrapInBraces(m):m};c.prototype.eachParamName=function(a){var b;var c=this.params;var l=[];var e=0;for(b=c.length;e<b;e++){var f=c[e];l.push(f.eachName(a))}return l};c.prototype.traverseChildren=function(a,b){if(a)return c.__super__.traverseChildren.call(this,a,b)};
|
||||||
"yield*"===a};b.prototype.isUnary=function(){return!this.second};b.prototype.isComplex=function(){return!this.isNumber()};b.prototype.isChainable=function(){var a;return"\x3c"===(a=this.operator)||"\x3e"===a||"\x3e\x3d"===a||"\x3c\x3d"===a||"\x3d\x3d\x3d"===a||"!\x3d\x3d"===a};b.prototype.invert=function(){var a,c,d;if(this.isChainable()&&this.first.isChainable()){a=!0;for(c=this;c&&c.operator;)a&&(a=c.operator in f),c=c.first;if(!a)return(new B(this)).invert();for(c=this;c&&c.operator;)c.invert=
|
return c}(ta);e.Param=K=function(a){function b(a,b,c){this.name=a;this.value=b;this.splat=c;(a=Aa(this.name.unwrapAll().value))&&this.name.error(a);this.name instanceof q&&this.name.generated&&(a=this.name.objects[0].operatorToken,a.error("unexpected "+a.value))}v(b,a);b.prototype.children=["name","value"];b.prototype.compileToFragments=function(a){return this.name.compileToFragments(a,va)};b.prototype.asReference=function(a){if(this.reference)return this.reference;var b=this.name;b["this"]?(b=b.properties[0].name.value,
|
||||||
!c.invert,c.operator=f[c.operator],c=c.first;return this}return(c=f[this.operator])?(this.operator=c,this.first.unwrap()instanceof b&&this.first.invert(),this):this.second?(new B(this)).invert():"!"===this.operator&&(a=this.first.unwrap())instanceof b&&("!"===(d=a.operator)||"in"===d||"instanceof"===d)?a:new b("!",this)};b.prototype.unfoldSoak=function(a){var b;return("++"===(b=this.operator)||"--"===b||"delete"===b)&&Na(a,this,"first")};b.prototype.generateDo=function(a){var b,c,f,g,p;g=[];p=(a instanceof
|
0<=R.call(ma,b)&&(b="_"+b),b=new y(a.scope.freeVariable(b))):b.isComplex()&&(b=new y(a.scope.freeVariable("arg")));b=new C(b);this.splat&&(b=new T(b));b.updateLocationDataIfMissing(this.locationData);return this.reference=b};b.prototype.isComplex=function(){return this.name.isComplex()};b.prototype.eachName=function(a,b){var d,c;null==b&&(b=this.name);var l=function(b){return a("@"+b.properties[0].name.value,b)};if(b instanceof B)return a(b.value,b);if(b instanceof C)return l(b);b=null!=(d=b.objects)?
|
||||||
D&&(b=a.value.unwrap())instanceof l?b:a).params||[];b=0;for(c=p.length;b<c;b++)f=p[b],f.value?(g.push(f.value),delete f.value):g.push(f);a=new d(a,g);a["do"]=!0;return a};b.prototype.compileNode=function(a){var b,c;b=this.isChainable()&&this.first.isChainable();b||(this.first.front=this.front);"delete"===this.operator&&a.scope.check(this.first.unwrapAll().value)&&this.error("delete operand may not be argument or var");("--"===(c=this.operator)||"++"===c)&&(c=Ga(this.first.unwrapAll().value))&&this.first.error(c);
|
d:[];d=0;for(c=b.length;d<c;d++){var e=b[d];e instanceof x&&null==e.context&&(e=e.variable);e instanceof x?(e.value instanceof x&&(e=e.value),this.eachName(a,e.value.unwrap())):e instanceof T?(e=e.name.unwrap(),a(e.value,e)):e instanceof C?e.isArray()||e.isObject()?this.eachName(a,e.base):e["this"]?l(e):a(e.base.value,e.base):e instanceof I||e.error("illegal parameter "+e.compile())}};return b}(ta);e.Splat=T=function(a){function b(a){this.name=a.compile?a:new B(a)}v(b,a);b.prototype.children=["name"];
|
||||||
if(this.isYield())return this.compileYield(a);if(this.isUnary())return this.compileUnary(a);if(b)return this.compileChain(a);switch(this.operator){case "?":return this.compileExistence(a);case "**":return this.compilePower(a);case "//":return this.compileFloorDivision(a);case "%%":return this.compileModulo(a);default:return b=this.first.compileToFragments(a,K),c=this.second.compileToFragments(a,K),b=[].concat(b,this.makeCode(" "+this.operator+" "),c),a.level<=K?b:this.wrapInBraces(b)}};b.prototype.compileChain=
|
b.prototype.isAssignable=ha;b.prototype.assigns=function(a){return this.name.assigns(a)};b.prototype.compileNode=function(a){return this.name.compileToFragments(a)};b.prototype.unwrap=function(){return this.name};b.compileSplattedArray=function(a,d,c){var e,l,f,m;for(l=-1;(e=d[++l])&&!(e instanceof b););if(l>=d.length)return[];if(1===d.length)return e=d[0],d=e.compileToFragments(a,va),c?d:[].concat(e.makeCode(La("slice",a)+".call("),d,e.makeCode(")"));c=d.slice(l);var h=f=0;for(m=c.length;f<m;h=++f){e=
|
||||||
function(a){var b;b=this.first.second.cache(a);this.first.second=b[0];b=b[1];a=this.first.compileToFragments(a,K).concat(this.makeCode(" "+(this.invert?"\x26\x26":"||")+" "),b.compileToFragments(a),this.makeCode(" "+this.operator+" "),this.second.compileToFragments(a,K));return this.wrapInBraces(a)};b.prototype.compileExistence=function(a){var b,c;this.first.isComplex()?(c=new x(a.scope.freeVariable("ref")),b=new B(new D(c,this.first))):c=b=this.first;return(new E(new w(b),c,{type:"if"})).addElse(this.second).compileToFragments(a)};
|
c[h];var k=e.compileToFragments(a,va);c[h]=e instanceof b?[].concat(e.makeCode(La("slice",a)+".call("),k,e.makeCode(")")):[].concat(e.makeCode("["),k,e.makeCode("]"))}if(0===l)return e=d[0],a=e.joinFragmentArrays(c.slice(1),", "),c[0].concat(e.makeCode(".concat("),a,e.makeCode(")"));f=d.slice(0,l);m=[];k=0;for(h=f.length;k<h;k++)e=f[k],m.push(e.compileToFragments(a,va));e=d[0].joinFragmentArrays(m,", ");a=d[l].joinFragmentArrays(c,", ");c=d[d.length-1];return[].concat(d[0].makeCode("["),e,d[l].makeCode("].concat("),
|
||||||
b.prototype.compileUnary=function(a){var c,d,f;d=[];c=this.operator;d.push([this.makeCode(c)]);if("!"===c&&this.first instanceof w)return this.first.negated=!this.first.negated,this.first.compileToFragments(a);if(a.level>=q)return(new B(this)).compileToFragments(a);f="+"===c||"-"===c;("new"===c||"typeof"===c||"delete"===c||f&&this.first instanceof b&&this.first.operator===c)&&d.push([this.makeCode(" ")]);if(f&&this.first instanceof b||"new"===c&&this.first.isStatement(a))this.first=new B(this.first);
|
a,c.makeCode(")"))};return b}(ta);e.Expansion=I=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.isComplex=ka;b.prototype.compileNode=function(a){return this.error("Expansion must be used inside a destructuring assignment or parameter list")};b.prototype.asReference=function(a){return this};b.prototype.eachName=function(a){};return b}(ta);e.While=Y=function(b){function c(a,b){this.condition=null!=b&&b.invert?a.invert():a;this.guard=null!=b?b.guard:void 0}
|
||||||
d.push(this.first.compileToFragments(a,K));this.flip&&d.reverse();return this.joinFragmentArrays(d,"")};b.prototype.compileYield=function(a){var b,c,d;c=[];b=this.operator;null==a.scope.parent&&this.error("yield can only occur inside functions");0<=Ha.call(Object.keys(this.first),"expression")&&!(this.first instanceof fa)?null!=this.first.expression&&c.push(this.first.expression.compileToFragments(a,K)):(a.level>=O&&c.push([this.makeCode("(")]),c.push([this.makeCode(b)]),""!==(null!=(d=this.first.base)?
|
v(c,b);c.prototype.children=["condition","guard","body"];c.prototype.isStatement=ha;c.prototype.makeReturn=function(a){if(a)return c.__super__.makeReturn.apply(this,arguments);this.returns=!this.jumps({loop:!0});return this};c.prototype.addBody=function(a){this.body=a;return this};c.prototype.jumps=function(){var a;var b=this.body.expressions;if(!b.length)return!1;var c=0;for(a=b.length;c<a;c++){var e=b[c];if(e=e.jumps({loop:!0}))return e}return!1};c.prototype.compileNode=function(b){var d;b.indent+=
|
||||||
d.value:void 0)&&c.push([this.makeCode(" ")]),c.push(this.first.compileToFragments(a,K)),a.level>=O&&c.push([this.makeCode(")")]));return this.joinFragmentArrays(c,"")};b.prototype.compilePower=function(a){var b;b=new M(new x("Math"),[new ta(new N("pow"))]);return(new d(b,[this.first,this.second])).compileToFragments(a)};b.prototype.compileFloorDivision=function(a){var c,f;f=new M(new x("Math"),[new ta(new N("floor"))]);c=new b("/",this.first,this.second);return(new d(f,[c])).compileToFragments(a)};
|
Fa;var c="";var e=this.body;e.isEmpty()?e=this.makeCode(""):(this.returns&&(e.makeReturn(d=b.scope.freeVariable("results")),c=""+this.tab+d+" \x3d [];\n"),this.guard&&(1<e.expressions.length?e.expressions.unshift(new G((new P(this.guard)).invert(),new V("continue"))):this.guard&&(e=a.wrap([new G(this.guard,e)]))),e=[].concat(this.makeCode("\n"),e.compileToFragments(b,na),this.makeCode("\n"+this.tab)));b=[].concat(this.makeCode(c+this.tab+"while ("),this.condition.compileToFragments(b,Da),this.makeCode(") {"),
|
||||||
b.prototype.compileModulo=function(a){var b;b=new M(new y(za("modulo",a)));return(new d(b,[this.first,this.second])).compileToFragments(a)};b.prototype.toString=function(a){return b.__super__.toString.call(this,a,this.constructor.name+" "+this.operator)};return b}(a);f.In=m=function(a){function b(a,b){this.object=a;this.array=b}ma(b,a);b.prototype.children=["object","array"];b.prototype.invert=S;b.prototype.compileNode=function(a){var b,c,e,d,f;if(this.array instanceof M&&this.array.isArray()&&this.array.base.objects.length){f=
|
e,this.makeCode("}"));this.returns&&b.push(this.makeCode("\n"+this.tab+"return "+d+";"));return b};return c}(ta);e.Op=h=function(a){function b(a,b,d,e){if("in"===a)return new O(b,d);if("do"===a)return this.generateDo(b);if("new"===a){if(b instanceof za&&!b["do"]&&!b.isNew)return b.newInstance();if(b instanceof k&&b.bound||b["do"])b=new P(b)}this.operator=c[a]||a;this.first=b;this.second=d;this.flip=!!e;return this}v(b,a);var c={"\x3d\x3d":"\x3d\x3d\x3d","!\x3d":"!\x3d\x3d",of:"in",yieldfrom:"yield*"};
|
||||||
this.array.base.objects;c=0;for(e=f.length;c<e;c++)if(d=f[c],d instanceof Q){b=!0;break}if(!b)return this.compileOrTest(a)}return this.compileLoopTest(a)};b.prototype.compileOrTest=function(a){var b,c,e,d,f,g,p,h,k,m;b=this.object.cache(a,K);k=b[0];p=b[1];c=this.negated?[" !\x3d\x3d "," \x26\x26 "]:[" \x3d\x3d\x3d "," || "];b=c[0];c=c[1];m=[];h=this.array.base.objects;e=f=0;for(g=h.length;f<g;e=++f)d=h[e],e&&m.push(this.makeCode(c)),m=m.concat(e?p:k,this.makeCode(b),d.compileToFragments(a,q));return a.level<
|
var d={"!\x3d\x3d":"\x3d\x3d\x3d","\x3d\x3d\x3d":"!\x3d\x3d"};b.prototype.children=["first","second"];b.prototype.isNumber=function(){var a;return this.isUnary()&&("+"===(a=this.operator)||"-"===a)&&this.first instanceof C&&this.first.isNumber()};b.prototype.isYield=function(){var a;return"yield"===(a=this.operator)||"yield*"===a};b.prototype.isUnary=function(){return!this.second};b.prototype.isComplex=function(){return!this.isNumber()};b.prototype.isChainable=function(){var a;return"\x3c"===(a=this.operator)||
|
||||||
K?m:this.wrapInBraces(m)};b.prototype.compileLoopTest=function(a){var b,c,e;b=this.object.cache(a,h);e=b[0];c=b[1];b=[].concat(this.makeCode(za("indexOf",a)+".call("),this.array.compileToFragments(a,h),this.makeCode(", "),c,this.makeCode(") "+(this.negated?"\x3c 0":"\x3e\x3d 0")));if(Da(e)===Da(c))return b;b=e.concat(this.makeCode(", "),b);return a.level<h?b:this.wrapInBraces(b)};b.prototype.toString=function(a){return b.__super__.toString.call(this,a,this.constructor.name+(this.negated?"!":""))};
|
"\x3e"===a||"\x3e\x3d"===a||"\x3c\x3d"===a||"\x3d\x3d\x3d"===a||"!\x3d\x3d"===a};b.prototype.invert=function(){var a,c;if(this.isChainable()&&this.first.isChainable()){var e=!0;for(a=this;a&&a.operator;)e&&(e=a.operator in d),a=a.first;if(!e)return(new P(this)).invert();for(a=this;a&&a.operator;)a.invert=!a.invert,a.operator=d[a.operator],a=a.first;return this}return(a=d[this.operator])?(this.operator=a,this.first.unwrap()instanceof b&&this.first.invert(),this):this.second?(new P(this)).invert():
|
||||||
return b}(a);f.Try=function(a){function b(a,b,c,e){this.attempt=a;this.errorVariable=b;this.recovery=c;this.ensure=e}ma(b,a);b.prototype.children=["attempt","recovery","ensure"];b.prototype.isStatement=ha;b.prototype.jumps=function(a){var b;return this.attempt.jumps(a)||(null!=(b=this.recovery)?b.jumps(a):void 0)};b.prototype.makeReturn=function(a){this.attempt&&(this.attempt=this.attempt.makeReturn(a));this.recovery&&(this.recovery=this.recovery.makeReturn(a));return this};b.prototype.compileNode=
|
"!"===this.operator&&(e=this.first.unwrap())instanceof b&&("!"===(c=e.operator)||"in"===c||"instanceof"===c)?e:new b("!",this)};b.prototype.unfoldSoak=function(a){var b;return("++"===(b=this.operator)||"--"===b||"delete"===b)&&Ea(a,this,"first")};b.prototype.generateDo=function(a){var b,d;var c=[];var e=(a instanceof x&&(b=a.value.unwrap())instanceof k?b:a).params||[];b=0;for(d=e.length;b<d;b++){var l=e[b];l.value?(c.push(l.value),delete l.value):c.push(l)}a=new za(a,c);a["do"]=!0;return a};b.prototype.compileNode=
|
||||||
function(a){var b,c,e,d,f;a.indent+=ba;f=this.attempt.compileToFragments(a,H);b=this.recovery?(c=a.scope.freeVariable("error",{reserve:!1}),d=new x(c),this.errorVariable?(e=Ga(this.errorVariable.unwrapAll().value),e?this.errorVariable.error(e):void 0,this.recovery.unshift(new D(this.errorVariable,d))):void 0,[].concat(this.makeCode(" catch ("),d.compileToFragments(a),this.makeCode(") {\n"),this.recovery.compileToFragments(a,H),this.makeCode("\n"+this.tab+"}"))):this.ensure||this.recovery?[]:(c=a.scope.freeVariable("error",
|
function(a){var b;var d=this.isChainable()&&this.first.isChainable();d||(this.first.front=this.front);"delete"===this.operator&&a.scope.check(this.first.unwrapAll().value)&&this.error("delete operand may not be argument or var");("--"===(b=this.operator)||"++"===b)&&(b=Aa(this.first.unwrapAll().value))&&this.first.error(b);if(this.isYield())return this.compileYield(a);if(this.isUnary())return this.compileUnary(a);if(d)return this.compileChain(a);switch(this.operator){case "?":return this.compileExistence(a);
|
||||||
{reserve:!1}),[this.makeCode(" catch ("+c+") {}")]);a=this.ensure?[].concat(this.makeCode(" finally {\n"),this.ensure.compileToFragments(a,H),this.makeCode("\n"+this.tab+"}")):[];return[].concat(this.makeCode(this.tab+"try {\n"),f,this.makeCode("\n"+this.tab+"}"),b,a)};return b}(a);f.Throw=fa=function(a){function b(a){this.expression=a}ma(b,a);b.prototype.children=["expression"];b.prototype.isStatement=ha;b.prototype.jumps=P;b.prototype.makeReturn=da;b.prototype.compileNode=function(a){return[].concat(this.makeCode(this.tab+
|
case "**":return this.compilePower(a);case "//":return this.compileFloorDivision(a);case "%%":return this.compileModulo(a);default:return d=this.first.compileToFragments(a,Ha),b=this.second.compileToFragments(a,Ha),d=[].concat(d,this.makeCode(" "+this.operator+" "),b),a.level<=Ha?d:this.wrapInBraces(d)}};b.prototype.compileChain=function(a){var b=this.first.second.cache(a);this.first.second=b[0];b=b[1];a=this.first.compileToFragments(a,Ha).concat(this.makeCode(" "+(this.invert?"\x26\x26":"||")+" "),
|
||||||
"throw "),this.expression.compileToFragments(a),this.makeCode(";"))};return b}(a);f.Existence=w=function(a){function b(a){this.expression=a}ma(b,a);b.prototype.children=["expression"];b.prototype.invert=S;b.prototype.compileNode=function(a){var b,c,e;this.expression.front=this.front;e=this.expression.compile(a,K);this.expression.unwrap()instanceof x&&!a.scope.check(e)?(c=this.negated?["\x3d\x3d\x3d","||"]:["!\x3d\x3d","\x26\x26"],b=c[0],c=c[1],e="typeof "+e+" "+b+' "undefined" '+c+" "+e+" "+b+" null"):
|
b.compileToFragments(a),this.makeCode(" "+this.operator+" "),this.second.compileToFragments(a,Ha));return this.wrapInBraces(a)};b.prototype.compileExistence=function(a){if(this.first.isComplex()){var b=new y(a.scope.freeVariable("ref"));var d=new P(new x(b,this.first))}else b=d=this.first;return(new G(new z(d),b,{type:"if"})).addElse(this.second).compileToFragments(a)};b.prototype.compileUnary=function(a){var d=[];var c=this.operator;d.push([this.makeCode(c)]);if("!"===c&&this.first instanceof z)return this.first.negated=
|
||||||
e=e+" "+(this.negated?"\x3d\x3d":"!\x3d")+" null";return[this.makeCode(a.level<=k?e:"("+e+")")]};return b}(a);f.Parens=B=function(a){function b(a){this.body=a}ma(b,a);b.prototype.children=["body"];b.prototype.unwrap=function(){return this.body};b.prototype.isComplex=function(){return this.body.isComplex()};b.prototype.compileNode=function(a){var b,c;b=this.body.unwrap();if(b instanceof M&&b.isAtomic())return b.front=this.front,b.compileToFragments(a);c=b.compileToFragments(a,O);return a.level<K&&
|
!this.first.negated,this.first.compileToFragments(a);if(a.level>=Ka)return(new P(this)).compileToFragments(a);var e="+"===c||"-"===c;("new"===c||"typeof"===c||"delete"===c||e&&this.first instanceof b&&this.first.operator===c)&&d.push([this.makeCode(" ")]);if(e&&this.first instanceof b||"new"===c&&this.first.isStatement(a))this.first=new P(this.first);d.push(this.first.compileToFragments(a,Ha));this.flip&&d.reverse();return this.joinFragmentArrays(d,"")};b.prototype.compileYield=function(a){var b;
|
||||||
(b instanceof A||b instanceof d||b instanceof I&&b.returns)?c:this.wrapInBraces(c)};return b}(a);f.StringWithInterpolations=Xa=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}ma(b,a);b.prototype.compileNode=function(a){var c,d,e,f,g;if(!a.inTaggedTemplateCall)return b.__super__.compileNode.apply(this,arguments);e=this.body.unwrap();d=[];e.traverseChildren(!1,function(a){if(a instanceof Za)d.push(a);else if(a instanceof B)return d.push(a),!1;return!0});e=[];e.push(this.makeCode("`"));
|
var d=[];var c=this.operator;null==a.scope.parent&&this.error("yield can only occur inside functions");0<=R.call(Object.keys(this.first),"expression")&&!(this.first instanceof aa)?null!=this.first.expression&&d.push(this.first.expression.compileToFragments(a,Ha)):(a.level>=Da&&d.push([this.makeCode("(")]),d.push([this.makeCode(c)]),""!==(null!=(b=this.first.base)?b.value:void 0)&&d.push([this.makeCode(" ")]),d.push(this.first.compileToFragments(a,Ha)),a.level>=Da&&d.push([this.makeCode(")")]));return this.joinFragmentArrays(d,
|
||||||
f=0;for(g=d.length;f<g;f++)c=d[f],c instanceof Za?(c=c.value.slice(1,-1),c=c.replace(/(\\*)(`|\$\{)/g,function(a,b,c){return 0===b.length%2?b+"\\"+c:a}),e.push(this.makeCode(c))):(e.push(this.makeCode("${")),e.push.apply(e,c.compileToFragments(a,O)),e.push(this.makeCode("}")));e.push(this.makeCode("`"));return e};return b}(B);f.For=I=function(a){function b(a,b){this.source=b.source;this.guard=b.guard;this.step=b.step;this.name=b.name;this.index=b.index;this.body=c.wrap([a]);this.own=!!b.own;this.object=
|
"")};b.prototype.compilePower=function(a){var b=new C(new y("Math"),[new ra(new L("pow"))]);return(new za(b,[this.first,this.second])).compileToFragments(a)};b.prototype.compileFloorDivision=function(a){var d=new C(new y("Math"),[new ra(new L("floor"))]);var c=this.second.isComplex()?new P(this.second):this.second;c=new b("/",this.first,c);return(new za(d,[c])).compileToFragments(a)};b.prototype.compileModulo=function(a){var b=new C(new B(La("modulo",a)));return(new za(b,[this.first,this.second])).compileToFragments(a)};
|
||||||
!!b.object;(this.from=!!b.from)&&this.index&&this.index.error("cannot use index with for-from");this.own&&!this.object&&b.ownTag.error("cannot use own with for-"+(this.from?"from":"in"));this.object&&(a=[this.index,this.name],this.name=a[0],this.index=a[1]);this.index instanceof M&&this.index.error("index cannot be a pattern matching expression");this.range=this.source instanceof M&&this.source.base instanceof X&&!this.source.properties.length&&!this.from;this.pattern=this.name instanceof M;this.range&&
|
b.prototype.toString=function(a){return b.__super__.toString.call(this,a,this.constructor.name+" "+this.operator)};return b}(ta);e.In=O=function(a){function b(a,b){this.object=a;this.array=b}v(b,a);b.prototype.children=["object","array"];b.prototype.invert=sa;b.prototype.compileNode=function(a){var b;if(this.array instanceof C&&this.array.isArray()&&this.array.base.objects.length){var c=this.array.base.objects;var e=0;for(b=c.length;e<b;e++){var l=c[e];if(l instanceof T){var f=!0;break}}if(!f)return this.compileOrTest(a)}return this.compileLoopTest(a)};
|
||||||
this.index&&this.index.error("indexes do not apply to range loops");this.range&&this.pattern&&this.name.error("cannot pattern match over range loops");this.returns=!1}ma(b,a);b.prototype.children=["body","source","guard","step"];b.prototype.compileNode=function(a){var b,d,e,f,g,p,k,m,q,l,r,n,t,v,u,K,A,z,C,w,G;b=c.wrap([this.body]);q=b.expressions;q=q[q.length-1];(null!=q?q.jumps():void 0)instanceof V&&(this.returns=!1);u=this.range?this.source.base:this.source;e=a.scope;this.pattern||(m=this.name&&
|
b.prototype.compileOrTest=function(a){var b,c;var e=this.object.cache(a,Ha);var f=e[0];var l=e[1];var h=this.negated?[" !\x3d\x3d "," \x26\x26 "]:[" \x3d\x3d\x3d "," || "];e=h[0];h=h[1];var m=[];var k=this.array.base.objects;var n=b=0;for(c=k.length;b<c;n=++b){var q=k[n];n&&m.push(this.makeCode(h));m=m.concat(n?l:f,this.makeCode(e),q.compileToFragments(a,Ka))}return a.level<Ha?m:this.wrapInBraces(m)};b.prototype.compileLoopTest=function(a){var b=this.object.cache(a,va);var c=b[0];var e=b[1];b=[].concat(this.makeCode(La("indexOf",
|
||||||
this.name.compile(a,h));q=this.index&&this.index.compile(a,h);m&&!this.pattern&&e.find(m);q&&e.find(q);this.returns&&(k=e.freeVariable("results"));this.from?this.pattern&&(r=e.freeVariable("x",{single:!0})):r=this.object&&q||e.freeVariable("i",{single:!0});n=(this.range||this.from)&&m||q||r;t=n!==r?n+" \x3d ":"";this.step&&!this.range&&(q=this.cacheToCodeFragments(this.step.cache(a,h,sa)),g=q[0],C=q[1],this.step.isNumber()&&(z=Number(C)));this.pattern&&(m=r);p=q=G="";l=this.tab+ba;this.range?f=u.compileToFragments(Fa(a,
|
a)+".call("),this.array.compileToFragments(a,va),this.makeCode(", "),e,this.makeCode(") "+(this.negated?"\x3c 0":"\x3e\x3d 0")));if(ca(c)===ca(e))return b;b=c.concat(this.makeCode(", "),b);return a.level<va?b:this.wrapInBraces(b)};b.prototype.toString=function(a){return b.__super__.toString.call(this,a,this.constructor.name+(this.negated?"!":""))};return b}(ta);e.Try=function(a){function b(a,b,c,e){this.attempt=a;this.errorVariable=b;this.recovery=c;this.ensure=e}v(b,a);b.prototype.children=["attempt",
|
||||||
{index:r,name:m,step:this.step,isComplex:sa})):(w=this.source.compile(a,h),!m&&!this.own||this.source.unwrap()instanceof x||(p+=""+this.tab+(u=e.freeVariable("ref"))+" \x3d "+w+";\n",w=u),!m||this.pattern||this.from||(v=m+" \x3d "+w+"["+n+"]"),this.object||this.from||(g!==C&&(p+=""+this.tab+g+";\n"),m=0>z,this.step&&null!=z&&m||(d=e.freeVariable("len")),f=""+t+r+" \x3d 0, "+d+" \x3d "+w+".length",g=""+t+r+" \x3d "+w+".length - 1",d=r+" \x3c "+d,e=r+" \x3e\x3d 0",this.step?(null!=z?m&&(d=e,f=g):(d=
|
"recovery","ensure"];b.prototype.isStatement=ha;b.prototype.jumps=function(a){var b;return this.attempt.jumps(a)||(null!=(b=this.recovery)?b.jumps(a):void 0)};b.prototype.makeReturn=function(a){this.attempt&&(this.attempt=this.attempt.makeReturn(a));this.recovery&&(this.recovery=this.recovery.makeReturn(a));return this};b.prototype.compileNode=function(a){var b,c,e;a.indent+=Fa;var f=this.attempt.compileToFragments(a,na);var l=this.recovery?(b=a.scope.freeVariable("error",{reserve:!1}),e=new y(b),
|
||||||
C+" \x3e 0 ? "+d+" : "+e,f="("+C+" \x3e 0 ? ("+f+") : "+g+")"),r=r+" +\x3d "+C):r=""+(n!==r?"++"+r:r+"++"),f=[this.makeCode(f+"; "+d+"; "+t+r)]));this.returns&&(K=""+this.tab+k+" \x3d [];\n",A="\n"+this.tab+"return "+k+";",b.makeReturn(k));this.guard&&(1<b.expressions.length?b.expressions.unshift(new E((new B(this.guard)).invert(),new ya("continue"))):this.guard&&(b=c.wrap([new E(this.guard,b)])));this.pattern&&b.expressions.unshift(new D(this.name,this.from?new x(n):new y(w+"["+n+"]")));k=[].concat(this.makeCode(p),
|
this.errorVariable?(c=Aa(this.errorVariable.unwrapAll().value),c?this.errorVariable.error(c):void 0,this.recovery.unshift(new x(this.errorVariable,e))):void 0,[].concat(this.makeCode(" catch ("),e.compileToFragments(a),this.makeCode(") {\n"),this.recovery.compileToFragments(a,na),this.makeCode("\n"+this.tab+"}"))):this.ensure||this.recovery?[]:(b=a.scope.freeVariable("error",{reserve:!1}),[this.makeCode(" catch ("+b+") {}")]);a=this.ensure?[].concat(this.makeCode(" finally {\n"),this.ensure.compileToFragments(a,
|
||||||
this.pluckDirectCall(a,b));v&&(G="\n"+l+v+";");this.object?(f=[this.makeCode(n+" in "+w)],this.own&&(q="\n"+l+"if (!"+za("hasProp",a)+".call("+w+", "+n+")) continue;")):this.from&&(f=[this.makeCode(n+" of "+w)]);(a=b.compileToFragments(Fa(a,{indent:l}),H))&&0<a.length&&(a=[].concat(this.makeCode("\n"),a,this.makeCode("\n")));return[].concat(k,this.makeCode(""+(K||"")+this.tab+"for ("),f,this.makeCode(") {"+q+G),a,this.makeCode(this.tab+"}"+(A||"")))};b.prototype.pluckDirectCall=function(a,b){var c,
|
na),this.makeCode("\n"+this.tab+"}")):[];return[].concat(this.makeCode(this.tab+"try {\n"),f,this.makeCode("\n"+this.tab+"}"),l,a)};return b}(ta);e.Throw=aa=function(a){function b(a){this.expression=a}v(b,a);b.prototype.children=["expression"];b.prototype.isStatement=ha;b.prototype.jumps=ka;b.prototype.makeReturn=oa;b.prototype.compileNode=function(a){return[].concat(this.makeCode(this.tab+"throw "),this.expression.compileToFragments(a),this.makeCode(";"))};return b}(ta);e.Existence=z=function(a){function b(a){this.expression=
|
||||||
e,f,g,h,m,p,k,q,r,n,t,y,v,u;e=[];q=b.expressions;h=m=0;for(p=q.length;m<p;h=++m)if(f=q[h],f=f.unwrapAll(),f instanceof d&&(u=null!=(r=f.variable)?r.unwrapAll():void 0,u instanceof l||u instanceof M&&(null!=(n=u.base)?n.unwrapAll():void 0)instanceof l&&1===u.properties.length&&("call"===(t=null!=(y=u.properties[0].name)?y.value:void 0)||"apply"===t)))g=(null!=(v=u.base)?v.unwrapAll():void 0)||u,k=new x(a.scope.freeVariable("fn")),c=new M(k),u.base&&(c=[c,u],u.base=c[0],c=c[1]),b.expressions[h]=new d(c,
|
a}v(b,a);b.prototype.children=["expression"];b.prototype.invert=sa;b.prototype.compileNode=function(a){this.expression.front=this.front;var b=this.expression.compile(a,Ha);if(this.expression.unwrap()instanceof y&&!a.scope.check(b)){var c=this.negated?["\x3d\x3d\x3d","||"]:["!\x3d\x3d","\x26\x26"];var e=c[0];c=c[1];b="typeof "+b+" "+e+' "undefined" '+c+" "+b+" "+e+" null"}else b=b+" "+(this.negated?"\x3d\x3d":"!\x3d")+" null";return[this.makeCode(a.level<=gb?b:"("+b+")")]};return b}(ta);e.Parens=P=
|
||||||
f.args),e=e.concat(this.makeCode(this.tab),(new D(k,g)).compileToFragments(a,H),this.makeCode(";\n"));return e};return b}(n);f.Switch=function(a){function b(a,b,c){this.subject=a;this.cases=b;this.otherwise=c}ma(b,a);b.prototype.children=["subject","cases","otherwise"];b.prototype.isStatement=ha;b.prototype.jumps=function(a){var b,c,e,d,f;null==a&&(a={block:!0});d=this.cases;c=0;for(e=d.length;c<e;c++)if(b=d[c],b=b[1],b=b.jumps(a))return b;return null!=(f=this.otherwise)?f.jumps(a):void 0};b.prototype.makeReturn=
|
function(a){function b(a){this.body=a}v(b,a);b.prototype.children=["body"];b.prototype.unwrap=function(){return this.body};b.prototype.isComplex=function(){return this.body.isComplex()};b.prototype.compileNode=function(a){var b=this.body.unwrap();if(b instanceof C&&b.isAtomic())return b.front=this.front,b.compileToFragments(a);var c=b.compileToFragments(a,Da);return a.level<Ha&&(b instanceof h||b instanceof za||b instanceof N&&b.returns)&&(a.level<gb||3>=c.length)?c:this.wrapInBraces(c)};return b}(ta);
|
||||||
function(a){var b,d,e,f,g;f=this.cases;b=0;for(d=f.length;b<d;b++)e=f[b],e[1].makeReturn(a);a&&(this.otherwise||(this.otherwise=new c([new y("void 0")])));null!=(g=this.otherwise)&&g.makeReturn(a);return this};b.prototype.compileNode=function(a){var b,c,e,d,f,g,h,m,k,p,q,r,l;h=a.indent+ba;m=a.indent=h+ba;g=[].concat(this.makeCode(this.tab+"switch ("),this.subject?this.subject.compileToFragments(a,O):this.makeCode("false"),this.makeCode(") {\n"));r=this.cases;f=k=0;for(p=r.length;k<p;f=++k){b=r[f];
|
e.StringWithInterpolations=A=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}v(b,a);b.prototype.compileNode=function(a){var d;if(!a.inTaggedTemplateCall)return b.__super__.compileNode.apply(this,arguments);var c=this.body.unwrap();var e=[];c.traverseChildren(!1,function(a){if(a instanceof D)e.push(a);else if(a instanceof P)return e.push(a),!1;return!0});c=[];c.push(this.makeCode("`"));var f=0;for(d=e.length;f<d;f++){var l=e[f];l instanceof D?(l=l.value.slice(1,-1),l=
|
||||||
d=b[0];b=b[1];l=la([d]);d=0;for(q=l.length;d<q;d++)e=l[d],this.subject||(e=e.invert()),g=g.concat(this.makeCode(h+"case "),e.compileToFragments(a,O),this.makeCode(":\n"));0<(c=b.compileToFragments(a,H)).length&&(g=g.concat(c,this.makeCode("\n")));if(f===this.cases.length-1&&!this.otherwise)break;f=this.lastNonComment(b.expressions);f instanceof V||f instanceof y&&f.jumps()&&"debugger"!==f.value||g.push(e.makeCode(m+"break;\n"))}this.otherwise&&this.otherwise.expressions.length&&g.push.apply(g,[this.makeCode(h+
|
l.replace(/(\\*)(`|\$\{)/g,function(a,b,d){return 0===b.length%2?b+"\\"+d:a}),c.push(this.makeCode(l))):(c.push(this.makeCode("${")),c.push.apply(c,l.compileToFragments(a,Da)),c.push(this.makeCode("}")))}c.push(this.makeCode("`"));return c};return b}(P);e.For=N=function(b){function c(b,d){this.source=d.source;this.guard=d.guard;this.step=d.step;this.name=d.name;this.index=d.index;this.body=a.wrap([b]);this.own=!!d.own;this.object=!!d.object;(this.from=!!d.from)&&this.index&&this.index.error("cannot use index with for-from");
|
||||||
"default:\n")].concat(Aa.call(this.otherwise.compileToFragments(a,H)),[this.makeCode("\n")]));g.push(this.makeCode(this.tab+"}"));return g};return b}(a);f.If=E=function(a){function b(a,b,c){this.body=b;null==c&&(c={});this.condition="unless"===c.type?a.invert():a;this.elseBody=null;this.isChain=!1;this.soak=c.soak}ma(b,a);b.prototype.children=["condition","body","elseBody"];b.prototype.bodyNode=function(){var a;return null!=(a=this.body)?a.unwrap():void 0};b.prototype.elseBodyNode=function(){var a;
|
this.own&&!this.object&&d.ownTag.error("cannot use own with for-"+(this.from?"from":"in"));this.object&&(b=[this.index,this.name],this.name=b[0],this.index=b[1]);this.index instanceof C&&!this.index.isAssignable()&&this.index.error("index cannot be a pattern matching expression");this.range=this.source instanceof C&&this.source.base instanceof U&&!this.source.properties.length&&!this.from;this.pattern=this.name instanceof C;this.range&&this.index&&this.index.error("indexes do not apply to range loops");
|
||||||
return null!=(a=this.elseBody)?a.unwrap():void 0};b.prototype.addElse=function(a){this.isChain?this.elseBodyNode().addElse(a):(this.isChain=a instanceof b,this.elseBody=this.ensureBlock(a),this.elseBody.updateLocationDataIfMissing(a.locationData));return this};b.prototype.isStatement=function(a){var b;return(null!=a?a.level:void 0)===H||this.bodyNode().isStatement(a)||(null!=(b=this.elseBodyNode())?b.isStatement(a):void 0)};b.prototype.jumps=function(a){var b;return this.body.jumps(a)||(null!=(b=
|
this.range&&this.pattern&&this.name.error("cannot pattern match over range loops");this.returns=!1}v(c,b);c.prototype.children=["body","source","guard","step"];c.prototype.compileNode=function(b){var d,c,e,f,l,h,k;var n=a.wrap([this.body]);var m=n.expressions;m=m[m.length-1];(null!=m?m.jumps():void 0)instanceof H&&(this.returns=!1);var q=this.range?this.source.base:this.source;var p=b.scope;this.pattern||(e=this.name&&this.name.compile(b,va));m=this.index&&this.index.compile(b,va);e&&!this.pattern&&
|
||||||
this.elseBody)?b.jumps(a):void 0)};b.prototype.compileNode=function(a){return this.isStatement(a)?this.compileStatement(a):this.compileExpression(a)};b.prototype.makeReturn=function(a){a&&(this.elseBody||(this.elseBody=new c([new y("void 0")])));this.body&&(this.body=new c([this.body.makeReturn(a)]));this.elseBody&&(this.elseBody=new c([this.elseBody.makeReturn(a)]));return this};b.prototype.ensureBlock=function(a){return a instanceof c?a:new c([a])};b.prototype.compileStatement=function(a){var c,
|
p.find(e);!m||this.index instanceof C||p.find(m);this.returns&&(c=p.freeVariable("results"));this.from?this.pattern&&(f=p.freeVariable("x",{single:!0})):f=this.object&&m||p.freeVariable("i",{single:!0});var w=(this.range||this.from)&&e||m||f;var r=w!==f?w+" \x3d ":"";if(this.step&&!this.range){m=this.cacheToCodeFragments(this.step.cache(b,va,Za));var t=m[0];var v=m[1];this.step.isNumber()&&(h=Number(v))}this.pattern&&(e=f);var u=m=k="";var K=this.tab+Fa;if(this.range)var A=q.compileToFragments(ja(b,
|
||||||
d,e,f;c=na(a,"chainChild");if(na(a,"isExistentialEquals"))return(new b(this.condition.invert(),this.elseBodyNode(),{type:"if"})).compileToFragments(a);f=a.indent+ba;e=this.condition.compileToFragments(a,O);d=this.ensureBlock(this.body).compileToFragments(Fa(a,{indent:f}));d=[].concat(this.makeCode("if ("),e,this.makeCode(") {\n"),d,this.makeCode("\n"+this.tab+"}"));c||d.unshift(this.makeCode(this.tab));if(!this.elseBody)return d;c=d.concat(this.makeCode(" else "));this.isChain?(a.chainChild=!0,c=
|
{index:f,name:e,step:this.step,isComplex:Za}));else{var z=this.source.compile(b,va);!e&&!this.own||this.source.unwrap()instanceof y||(u+=""+this.tab+(q=p.freeVariable("ref"))+" \x3d "+z+";\n",z=q);!e||this.pattern||this.from||(l=e+" \x3d "+z+"["+w+"]");this.object||this.from||(t!==v&&(u+=""+this.tab+t+";\n"),e=0>h,this.step&&null!=h&&e||(d=p.freeVariable("len")),A=""+r+f+" \x3d 0, "+d+" \x3d "+z+".length",t=""+r+f+" \x3d "+z+".length - 1",d=f+" \x3c "+d,p=f+" \x3e\x3d 0",this.step?(null!=h?e&&(d=
|
||||||
c.concat(this.elseBody.unwrap().compileToFragments(a,H))):c=c.concat(this.makeCode("{\n"),this.elseBody.compileToFragments(Fa(a,{indent:f}),H),this.makeCode("\n"+this.tab+"}"));return c};b.prototype.compileExpression=function(a){var b,c,e;e=this.condition.compileToFragments(a,k);c=this.bodyNode().compileToFragments(a,h);b=this.elseBodyNode()?this.elseBodyNode().compileToFragments(a,h):[this.makeCode("void 0")];b=e.concat(this.makeCode(" ? "),c,this.makeCode(" : "),b);return a.level>=k?this.wrapInBraces(b):
|
p,A=t):(d=v+" \x3e 0 ? "+d+" : "+p,A="("+v+" \x3e 0 ? ("+A+") : "+t+")"),f=f+" +\x3d "+v):f=""+(w!==f?"++"+f:f+"++"),A=[this.makeCode(A+"; "+d+"; "+r+f)])}if(this.returns){var U=""+this.tab+c+" \x3d [];\n";var D="\n"+this.tab+"return "+c+";";n.makeReturn(c)}this.guard&&(1<n.expressions.length?n.expressions.unshift(new G((new P(this.guard)).invert(),new V("continue"))):this.guard&&(n=a.wrap([new G(this.guard,n)])));this.pattern&&n.expressions.unshift(new x(this.name,this.from?new y(w):new B(z+"["+
|
||||||
b};b.prototype.unfoldSoak=function(){return this.soak&&this};return b}(a);ka={extend:function(a){return"function(child, parent) { for (var key in parent) { if ("+za("hasProp",a)+".call(parent, key)) child[key] \x3d parent[key]; } function ctor() { this.constructor \x3d child; } ctor.prototype \x3d parent.prototype; child.prototype \x3d new ctor(); child.__super__ \x3d parent.prototype; return child; }"},bind:function(){return"function(fn, me){ return function(){ return fn.apply(me, arguments); }; }"},
|
w+"]")));c=[].concat(this.makeCode(u),this.pluckDirectCall(b,n));l&&(k="\n"+K+l+";");this.object?(A=[this.makeCode(w+" in "+z)],this.own&&(m="\n"+K+"if (!"+La("hasProp",b)+".call("+z+", "+w+")) continue;")):this.from&&(A=[this.makeCode(w+" of "+z)]);(b=n.compileToFragments(ja(b,{indent:K}),na))&&0<b.length&&(b=[].concat(this.makeCode("\n"),b,this.makeCode("\n")));return[].concat(c,this.makeCode(""+(U||"")+this.tab+"for ("),A,this.makeCode(") {"+m+k),b,this.makeCode(this.tab+"}"+(D||"")))};c.prototype.pluckDirectCall=
|
||||||
indexOf:function(){return"[].indexOf || function(item) { for (var i \x3d 0, l \x3d this.length; i \x3c l; i++) { if (i in this \x26\x26 this[i] \x3d\x3d\x3d item) return i; } return -1; }"},modulo:function(){return"function(a, b) { return (+a % (b \x3d +b) + b) % b; }"},hasProp:function(){return"{}.hasOwnProperty"},slice:function(){return"[].slice"}};H=1;O=2;h=3;k=4;K=5;q=6;ba=" ";U=/^[+-]?\d+$/;za=function(a,b){var c,d;d=b.scope.root;if(a in d.utilities)return d.utilities[a];c=d.freeVariable(a);
|
function(a,b){var d,c,e,f,h,l,n;var m=[];var q=b.expressions;var p=d=0;for(c=q.length;d<c;p=++d){var w=q[p];w=w.unwrapAll();if(w instanceof za){var r=null!=(e=w.variable)?e.unwrapAll():void 0;if(r instanceof k||r instanceof C&&(null!=(f=r.base)?f.unwrapAll():void 0)instanceof k&&1===r.properties.length&&("call"===(h=null!=(l=r.properties[0].name)?l.value:void 0)||"apply"===h)){var t=(null!=(n=r.base)?n.unwrapAll():void 0)||r;var v=new y(a.scope.freeVariable("fn"));var u=new C(v);r.base&&(u=[u,r],
|
||||||
d.assign(c,ka[a](b));return d.utilities[a]=c};Pa=function(a,b){a=a.replace(/\n/g,"$\x26"+b);return a.replace(/\s+$/,"")};Ja=function(a){return a instanceof x&&"arguments"===a.value};Ta=function(a){return a instanceof ga||a instanceof l&&a.bound||a instanceof ia};sa=function(a){return a.isComplex()||("function"===typeof a.isAssignable?a.isAssignable():void 0)};Na=function(a,b,c){if(a=b[c].unfoldSoak(a))return b[c]=a.body,a.body=new M(b),a}}).call(this);return f}();t["./sourcemap"]=function(){var f=
|
r.base=u[0],u=u[1]);b.expressions[p]=new za(u,w.args);m=m.concat(this.makeCode(this.tab),(new x(v,t)).compileToFragments(a,na),this.makeCode(";\n"))}}}return m};return c}(Y);e.Switch=function(b){function c(a,b,c){this.subject=a;this.cases=b;this.otherwise=c}v(c,b);c.prototype.children=["subject","cases","otherwise"];c.prototype.isStatement=ha;c.prototype.jumps=function(a){var b,c;null==a&&(a={block:!0});var e=this.cases;var f=0;for(b=e.length;f<b;f++){var h=e[f];h=h[1];if(h=h.jumps(a))return h}return null!=
|
||||||
{};(function(){var t;t=function(){function f(f){this.line=f;this.columns=[]}f.prototype.add=function(f,a,c){var t;t=a[0];a=a[1];null==c&&(c={});if(!this.columns[f]||!c.noReplace)return this.columns[f]={line:this.line,column:f,sourceLine:t,sourceColumn:a}};f.prototype.sourceLocation=function(f){for(var a;!((a=this.columns[f])||0>=f);)f--;return a&&[a.sourceLine,a.sourceColumn]};return f}();f=function(){function f(){this.lines=[]}f.prototype.add=function(f,a,c){var D,d;null==c&&(c={});d=a[0];a=a[1];
|
(c=this.otherwise)?c.jumps(a):void 0};c.prototype.makeReturn=function(b){var d,c;var e=this.cases;var f=0;for(d=e.length;f<d;f++){var h=e[f];h[1].makeReturn(b)}b&&(this.otherwise||(this.otherwise=new a([new B("void 0")])));null!=(c=this.otherwise)&&c.makeReturn(b);return this};c.prototype.compileNode=function(a){var b,c,e,f;var h=a.indent+Fa;var l=a.indent=h+Fa;var k=[].concat(this.makeCode(this.tab+"switch ("),this.subject?this.subject.compileToFragments(a,Da):this.makeCode("false"),this.makeCode(") {\n"));
|
||||||
return((D=this.lines)[d]||(D[d]=new t(d))).add(a,f,c)};f.prototype.sourceLocation=function(f){var a,c;a=f[0];for(f=f[1];!((c=this.lines[a])||0>=a);)a--;return c&&c.sourceLocation(f)};f.prototype.generate=function(f,a){var c,t,d,v,l,u,D,w,z,n,G,L,I;null==f&&(f={});null==a&&(a=null);l=u=v=I=0;n=!1;c="";G=this.lines;d=t=0;for(D=G.length;t<D;d=++t)if(d=G[d])for(L=d.columns,d=0,w=L.length;d<w;d++)if(z=L[d]){for(;I<z.line;)v=0,n=!1,c+=";",I++;n&&(c+=",");c+=this.encodeVlq(z.column-v);v=z.column;c+=this.encodeVlq(0);
|
var n=this.cases;var m=c=0;for(e=n.length;c<e;m=++c){var q=n[m];var p=q[0];q=q[1];var w=ia([p]);p=0;for(f=w.length;p<f;p++){var r=w[p];this.subject||(r=r.invert());k=k.concat(this.makeCode(h+"case "),r.compileToFragments(a,Da),this.makeCode(":\n"))}0<(b=q.compileToFragments(a,na)).length&&(k=k.concat(b,this.makeCode("\n")));if(m===this.cases.length-1&&!this.otherwise)break;m=this.lastNonComment(q.expressions);m instanceof H||m instanceof B&&m.jumps()&&"debugger"!==m.value||k.push(r.makeCode(l+"break;\n"))}this.otherwise&&
|
||||||
c+=this.encodeVlq(z.sourceLine-u);u=z.sourceLine;c+=this.encodeVlq(z.sourceColumn-l);l=z.sourceColumn;n=!0}c={version:3,file:f.generatedFile||"",sourceRoot:f.sourceRoot||"",sources:f.sourceFiles||[""],names:[],mappings:c};f.inlineMap&&(c.sourcesContent=[a]);return c};f.prototype.encodeVlq=function(f){var a,c;a="";for(c=(Math.abs(f)<<1)+(0>f?1:0);c||!a;)f=c&31,(c>>=5)&&(f|=32),a+=this.encodeBase64(f);return a};f.prototype.encodeBase64=function(f){var a;if(!(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f]))throw Error("Cannot Base64 encode value: "+
|
this.otherwise.expressions.length&&k.push.apply(k,[this.makeCode(h+"default:\n")].concat(M.call(this.otherwise.compileToFragments(a,na)),[this.makeCode("\n")]));k.push(this.makeCode(this.tab+"}"));return k};return c}(ta);e.If=G=function(b){function c(a,b,c){this.body=b;null==c&&(c={});this.condition="unless"===c.type?a.invert():a;this.elseBody=null;this.isChain=!1;this.soak=c.soak}v(c,b);c.prototype.children=["condition","body","elseBody"];c.prototype.bodyNode=function(){var a;return null!=(a=this.body)?
|
||||||
f);return a};return f}()}).call(this);return f}();t["./coffee-script"]=function(){var f={};(function(){var pa,xa,D,a,c,Ca,d,v,l,u,F,w,z,n,G,L,I,x,E={}.hasOwnProperty;v=t("fs");x=t("vm");G=t("path");pa=t("./lexer").Lexer;n=t("./parser").parser;u=t("./helpers");xa=t("./sourcemap");f.VERSION="1.12.0";f.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"];f.helpers=u;D=function(a){switch(!1){case "function"!==typeof Buffer:return(new Buffer(a)).toString("base64");case "function"!==typeof btoa:return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,
|
a.unwrap():void 0};c.prototype.elseBodyNode=function(){var a;return null!=(a=this.elseBody)?a.unwrap():void 0};c.prototype.addElse=function(a){this.isChain?this.elseBodyNode().addElse(a):(this.isChain=a instanceof c,this.elseBody=this.ensureBlock(a),this.elseBody.updateLocationDataIfMissing(a.locationData));return this};c.prototype.isStatement=function(a){var b;return(null!=a?a.level:void 0)===na||this.bodyNode().isStatement(a)||(null!=(b=this.elseBodyNode())?b.isStatement(a):void 0)};c.prototype.jumps=
|
||||||
function(a,c){return String.fromCharCode("0x"+c)}));default:throw Error("Unable to base64 encode inline sourcemap.");}};Ca=function(a){return function(c,d){null==d&&(d={});try{return a.call(this,c,d)}catch(q){if("string"!==typeof c)throw q;throw u.updateSyntaxError(q,c,d.filename);}}};f.compile=a=Ca(function(a,c){var d,f,g,h,m,l,t,x,v,w,G,E;g=u.extend;c=g({},c);(g=c.sourceMap||c.inlineMap)&&(v=new xa);f=z.tokenize(a,c);h=c;x=[];m=0;for(l=f.length;m<l;m++)d=f[m],"IDENTIFIER"===d[0]&&x.push(d[1]);h.referencedVars=
|
function(a){var b;return this.body.jumps(a)||(null!=(b=this.elseBody)?b.jumps(a):void 0)};c.prototype.compileNode=function(a){return this.isStatement(a)?this.compileStatement(a):this.compileExpression(a)};c.prototype.makeReturn=function(b){b&&(this.elseBody||(this.elseBody=new a([new B("void 0")])));this.body&&(this.body=new a([this.body.makeReturn(b)]));this.elseBody&&(this.elseBody=new a([this.elseBody.makeReturn(b)]));return this};c.prototype.ensureBlock=function(b){return b instanceof a?b:new a([b])};
|
||||||
x;if(null==c.bare||!0!==c.bare)for(h=0,m=f.length;h<m;h++)if(d=f[h],"IMPORT"===(t=d[0])||"EXPORT"===t){c.bare=!0;break}m=n.parse(f).compileToFragments(c);f=0;c.header&&(f+=1);c.shiftLine&&(f+=1);d=0;t="";l=0;for(x=m.length;l<x;l++)h=m[l],g&&(h.locationData&&!/^[;\s]*$/.test(h.code)&&v.add([h.locationData.first_line,h.locationData.first_column],[f,d],{noReplace:!0}),w=u.count(h.code,"\n"),f+=w,d=w?h.code.length-(h.code.lastIndexOf("\n")+1):d+h.code.length),t+=h.code;c.header&&(d="Generated by CoffeeScript "+
|
c.prototype.compileStatement=function(a){var b=la(a,"chainChild");if(la(a,"isExistentialEquals"))return(new c(this.condition.invert(),this.elseBodyNode(),{type:"if"})).compileToFragments(a);var e=a.indent+Fa;var f=this.condition.compileToFragments(a,Da);var h=this.ensureBlock(this.body).compileToFragments(ja(a,{indent:e}));h=[].concat(this.makeCode("if ("),f,this.makeCode(") {\n"),h,this.makeCode("\n"+this.tab+"}"));b||h.unshift(this.makeCode(this.tab));if(!this.elseBody)return h;b=h.concat(this.makeCode(" else "));
|
||||||
this.VERSION,t="// "+d+"\n"+t);g&&(E=v.generate(c,a));c.inlineMap&&(a=D(JSON.stringify(E)),g="//# sourceURL\x3d"+(null!=(G=c.filename)?G:"coffeescript"),t=t+"\n"+("//# sourceMappingURL\x3ddata:application/json;base64,"+a)+"\n"+g);return c.sourceMap?{js:t,sourceMap:v,v3SourceMap:JSON.stringify(E,null,2)}:t});f.tokens=Ca(function(a,c){return z.tokenize(a,c)});f.nodes=Ca(function(a,c){return"string"===typeof a?n.parse(z.tokenize(a,c)):n.parse(a)});f.run=function(c,d){var f,g,k;null==d&&(d={});g=t.main;
|
this.isChain?(a.chainChild=!0,b=b.concat(this.elseBody.unwrap().compileToFragments(a,na))):b=b.concat(this.makeCode("{\n"),this.elseBody.compileToFragments(ja(a,{indent:e}),na),this.makeCode("\n"+this.tab+"}"));return b};c.prototype.compileExpression=function(a){var b=this.condition.compileToFragments(a,gb);var c=this.bodyNode().compileToFragments(a,va);var e=this.elseBodyNode()?this.elseBodyNode().compileToFragments(a,va):[this.makeCode("void 0")];e=b.concat(this.makeCode(" ? "),c,this.makeCode(" : "),
|
||||||
g.filename=process.argv[1]=d.filename?v.realpathSync(d.filename):".";g.moduleCache&&(g.moduleCache={});f=d.filename?G.dirname(v.realpathSync(d.filename)):v.realpathSync(".");g.paths=t("module")._nodeModulePaths(f);if(!u.isCoffee(g.filename)||t.extensions)c=a(c,d),c=null!=(k=c.js)?k:c;return g._compile(c,g.filename)};f.eval=function(c,d){var f,g,k,h,m,l,n,u,v,w;null==d&&(d={});if(c=c.trim()){h=null!=(m=x.Script.createContext)?m:x.createContext;m=null!=(k=x.isContext)?k:function(a){return d.sandbox instanceof
|
e);return a.level>=gb?this.wrapInBraces(e):e};c.prototype.unfoldSoak=function(){return this.soak&&this};return c}(ta);var jc={extend:function(a){return"function(child, parent) { for (var key in parent) { if ("+La("hasProp",a)+".call(parent, key)) child[key] \x3d parent[key]; } function ctor() { this.constructor \x3d child; } ctor.prototype \x3d parent.prototype; child.prototype \x3d new ctor(); child.__super__ \x3d parent.prototype; return child; }"},bind:function(){return"function(fn, me){ return function(){ return fn.apply(me, arguments); }; }"},
|
||||||
h().constructor};if(h){if(null!=d.sandbox){if(m(d.sandbox))w=d.sandbox;else for(l in w=h(),m=d.sandbox,m)E.call(m,l)&&(k=m[l],w[l]=k);w.global=w.root=w.GLOBAL=w}else w=global;w.__filename=d.filename||"eval";w.__dirname=G.dirname(w.__filename);if(w===global&&!w.module&&!w.require){f=t("module");w.module=g=new f(d.modulename||"eval");w.require=k=function(a){return f._load(a,g,!0)};g.filename=w.__filename;v=Object.getOwnPropertyNames(t);m=0;for(n=v.length;m<n;m++)u=v[m],"paths"!==u&&"arguments"!==u&&
|
indexOf:function(){return"[].indexOf || function(item) { for (var i \x3d 0, l \x3d this.length; i \x3c l; i++) { if (i in this \x26\x26 this[i] \x3d\x3d\x3d item) return i; } return -1; }"},modulo:function(){return"function(a, b) { return (+a % (b \x3d +b) + b) % b; }"},hasProp:function(){return"{}.hasOwnProperty"},slice:function(){return"[].slice"}};var na=1;var Da=2;var va=3;var gb=4;var Ha=5;var Ka=6;var Fa=" ";var Ra=/^[+-]?\d+$/;var La=function(a,b){var c=b.scope.root;if(a in c.utilities)return c.utilities[a];
|
||||||
"caller"!==u&&(k[u]=t[u]);k.paths=g.paths=f._nodeModulePaths(process.cwd());k.resolve=function(a){return f._resolveFilename(a,g)}}}m={};for(l in d)E.call(d,l)&&(k=d[l],m[l]=k);m.bare=!0;c=a(c,m);return w===global?x.runInThisContext(c):x.runInContext(c,w)}};f.register=function(){return t("./register")};if(t.extensions)for(L=this.FILE_EXTENSIONS,Ca=function(a){var c;return null!=(c=t.extensions)[a]?c[a]:c[a]=function(){throw Error("Use CoffeeScript.register() or require the coffee-script/register module to require "+
|
var d=c.freeVariable(a);c.assign(d,jc[a](b));return c.utilities[a]=d};var Ga=function(a,b){a=a.replace(/\n/g,"$\x26"+b);return a.replace(/\s+$/,"")};var Wa=function(a){return a instanceof y&&"arguments"===a.value};var da=function(a){return a instanceof E||a instanceof k&&a.bound||a instanceof xa};var Za=function(a){return a.isComplex()||("function"===typeof a.isAssignable?a.isAssignable():void 0)};var Ea=function(a,b,c){if(a=b[c].unfoldSoak(a))return b[c]=a.body,a.body=new C(b),a}}).call(this);return e}();
|
||||||
a+" files.");}},F=0,w=L.length;F<w;F++)c=L[F],Ca(c);f._compileFile=function(c,d,f){var g,k;null==d&&(d=!1);null==f&&(f=!1);k=v.readFileSync(c,"utf8");k=65279===k.charCodeAt(0)?k.substring(1):k;try{g=a(k,{filename:c,sourceMap:d,inlineMap:f,sourceFiles:[c],literate:u.isLiterate(c)})}catch(h){throw u.updateSyntaxError(h,k,c);}return g};z=new pa;n.lexer={lex:function(){var a,c;(c=n.tokens[this.pos++])?(a=c[0],this.yytext=c[1],this.yylloc=c[2],n.errorToken=c.origin||c,this.yylineno=this.yylloc.first_line):
|
u["./sourcemap"]=function(){var e={};(function(){var u=function(){function e(e){this.line=e;this.columns=[]}e.prototype.add=function(e,a,b){var r=a[0];a=a[1];null==b&&(b={});if(!this.columns[e]||!b.noReplace)return this.columns[e]={line:this.line,column:e,sourceLine:r,sourceColumn:a}};e.prototype.sourceLocation=function(e){for(var a;!((a=this.columns[e])||0>=e);)e--;return a&&[a.sourceLine,a.sourceColumn]};return e}();e=function(){function e(){this.lines=[]}e.prototype.add=function(e,a,b){var r;null==
|
||||||
a="";return a},setInput:function(a){n.tokens=a;return this.pos=0},upcomingInput:function(){return""}};n.yy=t("./nodes");n.yy.parseError=function(a,c){var d,f,g,h;g=n.errorToken;h=n.tokens;d=g[0];f=g[1];a=g[2];f=function(){switch(!1){case g!==h[h.length-1]:return"end of input";case "INDENT"!==d&&"OUTDENT"!==d:return"indentation";case "IDENTIFIER"!==d&&"NUMBER"!==d&&"INFINITY"!==d&&"STRING"!==d&&"STRING_START"!==d&&"REGEX"!==d&&"REGEX_START"!==d:return d.replace(/_START$/,"").toLowerCase();default:return u.nameWhitespaceCharacter(f)}}();
|
b&&(b={});var f=a[0];a=a[1];return((r=this.lines)[f]||(r[f]=new u(f))).add(a,e,b)};e.prototype.sourceLocation=function(e){var a;var b=e[0];for(e=e[1];!((a=this.lines[b])||0>=b);)b--;return a&&a.sourceLocation(e)};e.prototype.generate=function(e,a){var b,r,f,k,t,p,u;null==e&&(e={});null==a&&(a=null);var x=f=r=u=0;var J=!1;var F="";var N=this.lines;var y=b=0;for(k=N.length;b<k;y=++b)if(y=N[y]){var G=y.columns;y=0;for(t=G.length;y<t;y++)if(p=G[y]){for(;u<p.line;)r=0,J=!1,F+=";",u++;J&&(F+=",");F+=this.encodeVlq(p.column-
|
||||||
return u.throwSyntaxError("unexpected "+f,a)};d=function(a,c){var d,f,g,h;a.isNative()?d="native":(a.isEval()?(f=a.getScriptNameOrSourceURL())||a.getEvalOrigin():f=a.getFileName(),f||(f="\x3canonymous\x3e"),g=a.getLineNumber(),d=a.getColumnNumber(),d=(c=c(f,g,d))?f+":"+c[0]+":"+c[1]:f+":"+g+":"+d);f=a.getFunctionName();g=a.isConstructor();if(a.isToplevel()||g)return g?"new "+(f||"\x3canonymous\x3e")+" ("+d+")":f?f+" ("+d+")":d;g=a.getMethodName();h=a.getTypeName();return f?(c=a="",h&&f.indexOf(h)&&
|
r);r=p.column;F+=this.encodeVlq(0);F+=this.encodeVlq(p.sourceLine-f);f=p.sourceLine;F+=this.encodeVlq(p.sourceColumn-x);x=p.sourceColumn;J=!0}}F={version:3,file:e.generatedFile||"",sourceRoot:e.sourceRoot||"",sources:e.sourceFiles||[""],names:[],mappings:F};e.inlineMap&&(F.sourcesContent=[a]);return F};e.prototype.encodeVlq=function(e){var a;var b="";for(a=(Math.abs(e)<<1)+(0>e?1:0);a||!b;)e=a&31,(a>>=5)&&(e|=32),b+=this.encodeBase64(e);return b};e.prototype.encodeBase64=function(e){var a;if(!(a=
|
||||||
(c=h+"."),g&&f.indexOf("."+g)!==f.length-g.length-1&&(a=" [as "+g+"]"),""+c+f+a+" ("+d+")"):h+"."+(g||"\x3canonymous\x3e")+" ("+d+")"};I={};l=function(a){var d,m,l;if(I[a])return I[a];l=f.FILE_EXTENSIONS;d=0;for(m=l.length;d<m;d++)if(c=l[d],u.ends(a,c))return d=f._compileFile(a,!0),I[a]=d.sourceMap;return null};Error.prepareStackTrace=function(a,c){var g,m,k;k=function(a,c,d){var f;(a=l(a))&&(f=a.sourceLocation([c-1,d-1]));return f?[f[0]+1,f[1]+1]:null};m=function(){var a,m,l;l=[];a=0;for(m=c.length;a<
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e]))throw Error("Cannot Base64 encode value: "+e);return a};return e}()}).call(this);return e}();u["./coffee-script"]=function(){var e={};(function(){var ra,r,x={}.hasOwnProperty;var a=u("fs");var b=u("vm");var za=u("path");var f=u("./lexer").Lexer;var k=u("./parser").parser;var t=u("./helpers");var p=u("./sourcemap");var z=u("../../package.json");e.VERSION=z.version;e.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"];e.helpers=
|
||||||
m;a++){g=c[a];if(g.getFunction()===f.run)break;l.push(" at "+d(g,k))}return l}();return a.toString()+"\n"+m.join("\n")+"\n"}}).call(this);return f}();t["./browser"]=function(){(function(){var f,pa,xa,D=[].indexOf||function(a){for(var c=0,f=this.length;c<f;c++)if(c in this&&this[c]===a)return c;return-1};f=t("./coffee-script");f.require=t;pa=f.compile;f.eval=function(a,c){null==c&&(c={});null==c.bare&&(c.bare=!0);return eval(pa(a,c))};f.run=function(a,c){null==c&&(c={});c.bare=!0;c.shiftLine=!0;return Function(pa(a,
|
t;var I=function(a){switch(!1){case "function"!==typeof Buffer:return(new Buffer(a)).toString("base64");case "function"!==typeof btoa:return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(a,b){return String.fromCharCode("0x"+b)}));default:throw Error("Unable to base64 encode inline sourcemap.");}};z=function(a){return function(b,e){null==e&&(e={});try{return a.call(this,b,e)}catch(h){var c=h;if("string"!==typeof b)throw c;throw t.updateSyntaxError(c,b,e.filename);}}};var J={};var F=
|
||||||
c))()};"undefined"!==typeof window&&null!==window&&("undefined"!==typeof btoa&&null!==btoa&&"undefined"!==typeof JSON&&null!==JSON&&(pa=function(a,c){null==c&&(c={});c.inlineMap=!0;return f.compile(a,c)}),f.load=function(a,c,t,d){var v;null==t&&(t={});null==d&&(d=!1);t.sourceFiles=[a];v=window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest;v.open("GET",a,!0);"overrideMimeType"in v&&v.overrideMimeType("text/plain");v.onreadystatechange=function(){var l;if(4===
|
{};e.compile=ra=z(function(a,b){var c,e,f,n;var r=t.extend;b=r({},b);var u=b.sourceMap||b.inlineMap||null==b.filename;r=b.filename||"\x3canonymous\x3e";J[r]=a;u&&(f=new p);var y=O.tokenize(a,b);var x=b;var z=[];var B=0;for(c=y.length;B<c;B++){var G=y[B];"IDENTIFIER"===G[0]&&z.push(G[1])}x.referencedVars=z;if(null==b.bare||!0!==b.bare)for(x=0,B=y.length;x<B;x++)if(G=y[x],"IMPORT"===(e=G[0])||"EXPORT"===e){b.bare=!0;break}B=k.parse(y).compileToFragments(b);y=0;b.header&&(y+=1);b.shiftLine&&(y+=1);G=
|
||||||
v.readyState){if(0===(l=v.status)||200===l)l=[v.responseText,t],d||f.run.apply(f,l);else throw Error("Could not load "+a);if(c)return c(l)}};return v.send(null)},xa=function(){var a,c,t,d,v,l,u,F,w,z,n;n=window.document.getElementsByTagName("script");c=["text/coffeescript","text/literate-coffeescript"];a=function(){var a,d,f,l;l=[];a=0;for(d=n.length;a<d;a++)w=n[a],(f=w.type,0<=D.call(c,f))&&l.push(w);return l}();l=0;t=function(){var c;c=a[l];if(c instanceof Array)return f.run.apply(f,c),l++,t()};
|
0;e="";c=0;for(z=B.length;c<z;c++){x=B[c];if(u){x.locationData&&!/^[;\s]*$/.test(x.code)&&f.add([x.locationData.first_line,x.locationData.first_column],[y,G],{noReplace:!0});var N=t.count(x.code,"\n");y+=N;G=N?x.code.length-(x.code.lastIndexOf("\n")+1):G+x.code.length}e+=x.code}b.header&&(G="Generated by CoffeeScript "+this.VERSION,e="// "+G+"\n"+e);if(u){var D=f.generate(b,a);F[r]=f}b.inlineMap&&(a=I(JSON.stringify(D)),r="//# sourceURL\x3d"+(null!=(n=b.filename)?n:"coffeescript"),e=e+"\n"+("//# sourceMappingURL\x3ddata:application/json;base64,"+
|
||||||
d=function(d,l){var n,u;n={literate:d.type===c[1]};if(u=d.src||d.getAttribute("data-src"))return f.load(u,function(c){a[l]=c;return t()},n,!0);n.sourceFiles=["embedded"];return a[l]=[d.innerHTML,n]};v=u=0;for(F=a.length;u<F;v=++u)z=a[v],d(z,v);return t()},window.addEventListener?window.addEventListener("DOMContentLoaded",xa,!1):window.attachEvent("onload",xa))}).call(this);return{}}();return t["./coffee-script"]}();"function"===typeof define&&define.amd?define(function(){return ya}):t.CoffeeScript=
|
a)+"\n"+r);return b.sourceMap?{js:e,sourceMap:f,v3SourceMap:JSON.stringify(D,null,2)}:e});e.tokens=z(function(a,b){return O.tokenize(a,b)});e.nodes=z(function(a,b){return"string"===typeof a?k.parse(O.tokenize(a,b)):k.parse(a)});e.run=function(b,c){var e;null==c&&(c={});var f=u.main;f.filename=process.argv[1]=c.filename?a.realpathSync(c.filename):"\x3canonymous\x3e";f.moduleCache&&(f.moduleCache={});var h=null!=c.filename?za.dirname(a.realpathSync(c.filename)):a.realpathSync(".");f.paths=u("module")._nodeModulePaths(h);
|
||||||
ya})(this);
|
if(!t.isCoffee(f.filename)||u.extensions)b=ra(b,c),b=null!=(e=b.js)?e:b;return f._compile(b,f.filename)};e.eval=function(a,c){var e,f,h,k,n;null==c&&(c={});if(a=a.trim()){var p=null!=(h=b.Script.createContext)?h:b.createContext;h=null!=(f=b.isContext)?f:function(a){return c.sandbox instanceof p().constructor};if(p){if(null!=c.sandbox){if(h(c.sandbox))var r=c.sandbox;else for(k in r=p(),h=c.sandbox,h)x.call(h,k)&&(f=h[k],r[k]=f);r.global=r.root=r.GLOBAL=r}else r=global;r.__filename=c.filename||"eval";
|
||||||
|
r.__dirname=za.dirname(r.__filename);if(r===global&&!r.module&&!r.require){var t=u("module");r.module=e=new t(c.modulename||"eval");r.require=f=function(a){return t._load(a,e,!0)};e.filename=r.__filename;var y=Object.getOwnPropertyNames(u);h=0;for(n=y.length;h<n;h++){var z=y[h];"paths"!==z&&"arguments"!==z&&"caller"!==z&&(f[z]=u[z])}f.paths=e.paths=t._nodeModulePaths(process.cwd());f.resolve=function(a){return t._resolveFilename(a,e)}}}h={};for(k in c)x.call(c,k)&&(f=c[k],h[k]=f);h.bare=!0;a=ra(a,
|
||||||
|
h);return r===global?b.runInThisContext(a):b.runInContext(a,r)}};e.register=function(){return u("./register")};if(u.extensions){var N=this.FILE_EXTENSIONS;var y=function(a){var b;return null!=(b=u.extensions)[a]?b[a]:b[a]=function(){throw Error("Use CoffeeScript.register() or require the coffee-script/register module to require "+a+" files.");}};var G=0;for(r=N.length;G<r;G++)z=N[G],y(z)}e._compileFile=function(b,c,e){null==c&&(c=!1);null==e&&(e=!1);var f=a.readFileSync(b,"utf8");f=65279===f.charCodeAt(0)?
|
||||||
|
f.substring(1):f;try{var h=ra(f,{filename:b,sourceMap:c,inlineMap:e,sourceFiles:[b],literate:t.isLiterate(b)})}catch(K){throw c=K,t.updateSyntaxError(c,f,b);}return h};var O=new f;k.lexer={lex:function(){var a;if(a=k.tokens[this.pos++]){var b=a[0];this.yytext=a[1];this.yylloc=a[2];k.errorToken=a.origin||a;this.yylineno=this.yylloc.first_line}else b="";return b},setInput:function(a){k.tokens=a;return this.pos=0},upcomingInput:function(){return""}};k.yy=u("./nodes");k.yy.parseError=function(a,b){var c=
|
||||||
|
k.errorToken;var e=k.tokens;var f=c[0];var n=c[1];a=c[2];n=function(){switch(!1){case c!==e[e.length-1]:return"end of input";case "INDENT"!==f&&"OUTDENT"!==f:return"indentation";case "IDENTIFIER"!==f&&"NUMBER"!==f&&"INFINITY"!==f&&"STRING"!==f&&"STRING_START"!==f&&"REGEX"!==f&&"REGEX_START"!==f:return f.replace(/_START$/,"").toLowerCase();default:return t.nameWhitespaceCharacter(n)}}();return t.throwSyntaxError("unexpected "+n,a)};var Q=function(a,b){var c;if(a.isNative())var e="native";else{a.isEval()?
|
||||||
|
(c=a.getScriptNameOrSourceURL())||a.getEvalOrigin():c=a.getFileName();c||(c="\x3canonymous\x3e");var f=a.getLineNumber();e=a.getColumnNumber();e=(b=b(c,f,e))?c+":"+b[0]+":"+b[1]:c+":"+f+":"+e}c=a.getFunctionName();f=a.isConstructor();if(a.isToplevel()||f)return f?"new "+(c||"\x3canonymous\x3e")+" ("+e+")":c?c+" ("+e+")":e;f=a.getMethodName();var k=a.getTypeName();return c?(b=a="",k&&c.indexOf(k)&&(b=k+"."),f&&c.indexOf("."+f)!==c.length-f.length-1&&(a=" [as "+f+"]"),""+b+c+a+" ("+e+")"):k+"."+(f||
|
||||||
|
"\x3canonymous\x3e")+" ("+e+")"};var B=function(a){return null!=F[a]?F[a]:null!=F["\x3canonymous\x3e"]?F["\x3canonymous\x3e"]:null!=J[a]?(a=ra(J[a],{filename:a,sourceMap:!0,literate:t.isLiterate(a)}),a.sourceMap):null};Error.prepareStackTrace=function(a,b){var c;var f=function(a,b,c){var e;a=B(a);null!=a&&(e=a.sourceLocation([b-1,c-1]));return null!=e?[e[0]+1,e[1]+1]:null};var h=function(){var a;var h=[];var k=0;for(a=b.length;k<a;k++){c=b[k];if(c.getFunction()===e.run)break;h.push(" at "+Q(c,
|
||||||
|
f))}return h}();return a.toString()+"\n"+h.join("\n")+"\n"}}).call(this);return e}();u["./browser"]=function(){(function(){var e=[].indexOf||function(a){for(var b=0,e=this.length;b<e;b++)if(b in this&&this[b]===a)return b;return-1};var ra=u("./coffee-script");ra.require=u;var r=ra.compile;ra.eval=function(a,b){null==b&&(b={});null==b.bare&&(b.bare=!0);return eval(r(a,b))};ra.run=function(a,b){null==b&&(b={});b.bare=!0;b.shiftLine=!0;return Function(r(a,b))()};if("undefined"!==typeof window&&null!==
|
||||||
|
window){"undefined"!==typeof btoa&&null!==btoa&&"undefined"!==typeof JSON&&null!==JSON&&(r=function(a,b){null==b&&(b={});b.inlineMap=!0;return ra.compile(a,b)});ra.load=function(a,b,e,f){null==e&&(e={});null==f&&(f=!1);e.sourceFiles=[a];var k=window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest;k.open("GET",a,!0);"overrideMimeType"in k&&k.overrideMimeType("text/plain");k.onreadystatechange=function(){var r;if(4===k.readyState){if(0===(r=k.status)||200===r)r=
|
||||||
|
[k.responseText,e],f||ra.run.apply(ra,r);else throw Error("Could not load "+a);if(b)return b(r)}};return k.send(null)};var x=function(){var a,b,r;var f=window.document.getElementsByTagName("script");var k=["text/coffeescript","text/literate-coffeescript"];var t=function(){var a,b;var p=[];var t=0;for(a=f.length;t<a;t++)r=f[t],(b=r.type,0<=e.call(k,b))&&p.push(r);return p}();var p=0;var u=function(){var a=t[p];if(a instanceof Array)return ra.run.apply(ra,a),p++,u()};var x=function(a,b){var e;var f=
|
||||||
|
{literate:a.type===k[1]};if(e=a.src||a.getAttribute("data-src"))return ra.load(e,function(a){t[b]=a;return u()},f,!0);f.sourceFiles=["embedded"];return t[b]=[a.innerHTML,f]};var J=a=0;for(b=t.length;a<b;J=++a){var F=t[J];x(F,J)}return u()};window.addEventListener?window.addEventListener("DOMContentLoaded",x,!1):window.attachEvent("onload",x)}}).call(this);return{}}();return u["./coffee-script"]}();"function"===typeof define&&define.amd?define(function(){return xa}):u.CoffeeScript=xa})(this);
|
||||||
|
Before Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 148 B |
|
Before Width: | Height: | Size: 95 B |
|
Before Width: | Height: | Size: 6.4 KiB |
@@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="-76 212 458 369" enable-background="new -76 212 458 369" xml:space="preserve">
|
|
||||||
<title>CoffeeScript Logo</title>
|
|
||||||
<g>
|
|
||||||
<g>
|
|
||||||
<path fill="#28334C" d="M106,228.6c0.5,2.3-0.9,4.4-5,6.5c-5.5-3.1-16.9-4.4-26.7-3.5c-10.4,0.9-19.4,4.2-17.9,11.3
|
|
||||||
c1.5,7.1,11.7,11,29.5,9.5c43.6-3.8,43.4-33.3,107.4-39c49.8-4.4,77.8,11,81.8,29.7c3.1,14.7-9.1,28.6-45.2,31.8
|
|
||||||
c-32,2.8-50.7-5.6-52.6-14.6c-1-4.5,1.8-11.3,17.2-13.1c1.5,7,10.6,14.4,31.1,12.6c14.8-1.3,27.6-6.6,25.9-14.9
|
|
||||||
c-1.8-8.6-17.7-13.7-42.6-11.5c-50.7,4.5-63.2,32.5-106.8,36.3c-30.8,2.7-55.9-8.5-59.4-25.1c-1.3-6.1-1.4-21,31.2-23.9
|
|
||||||
C91,219.2,104.6,222.2,106,228.6L106,228.6z M-56.4,402.5c-14.3,18-20.4,38.8-19.2,59.2c1.2,20.4,11.4,37.1,26.9,50.2
|
|
||||||
C-32,525-14,528.6,6.4,525c7.8-1.2,16.7-5.3,24.5-7.8c-16.7,0-31-5.3-44.9-16.7c-15.5-11.4-25.7-26.9-28.2-46.1
|
|
||||||
c-3.7-18,0-34.7,10.2-49c11.4-14.3,25.7-22,44.9-24.5c19.2-1.2,35.9,3.7,52.6,15.5c-3.7-5.3-9-9-14.3-14.3
|
|
||||||
c-16.7-11.4-34.7-16.7-56.7-11.4C-25.4,374.3-42.2,384.5-56.4,402.5z M167.2,306.2c-53.9,0-101.6-5.3-136.3-13.1
|
|
||||||
c-37.1-9-56.7-19.2-56.7-32.2c0-5.3,2.4-10.2,10.2-15.5c-23.3,9-35.9,16.7-35.9,28.2c1.2,13.1,22,25.7,64.5,35.9
|
|
||||||
c40,10.2,91.4,15.5,153,15.5c62.8,0,113-5.3,153-15.5c42.4-10.2,62.8-23.3,62.8-35.9c0-9-9-18-25.7-24.5c3.7,2.4,6.5,6.5,6.5,11.4
|
|
||||||
c0,13.1-19.2,23.3-57.9,32.2C268.7,300.9,222.6,306.2,167.2,306.2L167.2,306.2z M320.2,342.1c-40,9-91.4,15.5-153,15.5
|
|
||||||
c-62.8,0-114.2-6.5-154.2-15.5c-35.9-9-55.1-19.2-61.6-29.4c6.5,44.9,22,87.3,42.4,124.8c15.5,23.3,31,43.7,46.1,65.7
|
|
||||||
c6.5,13.1,11.4,25.7,14.3,38.8c10.2,14.3,24.5,23.3,42.4,28.2c22,7.8,44.9,11.4,68.1,10.2h2.4c23.3,1.2,47.7-2.4,70.6-10.2
|
|
||||||
c16.7-5.3,31-14.3,41.2-28.2h1.2c2.4-13.1,6.5-25.7,13.1-38.8c15.5-22,31-42.4,46.1-65.7c20.4-37.1,34.7-79.6,42.4-124.8
|
|
||||||
C374,324.1,354.8,334.3,320.2,342.1L320.2,342.1z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,59 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="-22 347 566 100" enable-background="new -22 347 566 100" xml:space="preserve">
|
|
||||||
<title>CoffeeScript Logo</title>
|
|
||||||
<g>
|
|
||||||
<g>
|
|
||||||
<path id="Shape" fill="#28334C" d="M21.7,351.1c0.1,0.6-0.2,1.1-1.2,1.6c-1.3-0.7-4.1-1.1-6.4-0.9c-2.5,0.2-4.6,1-4.3,2.7
|
|
||||||
c0.4,1.7,2.8,2.7,7.1,2.3c10.5-0.9,10.4-8,25.8-9.4c12-1.1,18.7,2.6,19.6,7.1c0.7,3.5-2.2,6.9-10.9,7.6
|
|
||||||
c-7.7,0.7-12.2-1.4-12.6-3.5c-0.2-1.1,0.4-2.7,4.1-3.1c0.4,1.7,2.5,3.5,7.5,3c3.6-0.3,6.6-1.6,6.2-3.6c-0.4-2.1-4.2-3.3-10.2-2.8
|
|
||||||
c-12.2,1.1-15.2,7.8-25.6,8.7c-7.4,0.7-13.4-2-14.2-6c-0.3-1.5-0.3-5,7.5-5.7C18.1,348.8,21.3,349.5,21.7,351.1z M-17.3,392.9
|
|
||||||
c-3.4,4.3-4.9,9.3-4.6,14.2c0.3,4.9,2.7,8.9,6.5,12c4,3.1,8.3,4,13.2,3.1c1.9-0.3,4-1.3,5.9-1.9c-4,0-7.4-1.3-10.8-4
|
|
||||||
c-3.7-2.7-6.2-6.5-6.8-11.1c-0.9-4.3,0-8.3,2.4-11.8c2.7-3.4,6.2-5.3,10.8-5.9c4.6-0.3,8.6,0.9,12.6,3.7c-0.9-1.3-2.2-2.2-3.4-3.4
|
|
||||||
c-4-2.7-8.3-4-13.6-2.7C-9.9,386.1-13.9,388.6-17.3,392.9z M36.3,369.8c-12.9,0-24.4-1.3-32.7-3.1c-8.9-2.2-13.6-4.6-13.6-7.7
|
|
||||||
c0-1.3,0.6-2.4,2.4-3.7c-5.6,2.2-8.6,4-8.6,6.8c0.3,3.1,5.3,6.2,15.5,8.6c9.6,2.4,21.9,3.7,36.7,3.7c15.1,0,27.1-1.3,36.7-3.7
|
|
||||||
c10.2-2.4,15.1-5.6,15.1-8.6c0-2.2-2.2-4.3-6.2-5.9c0.9,0.6,1.6,1.6,1.6,2.7c0,3.1-4.6,5.6-13.9,7.7
|
|
||||||
C60.7,368.5,49.7,369.8,36.3,369.8z M73.1,378.4c-9.6,2.2-21.9,3.7-36.7,3.7c-15.1,0-27.4-1.6-37-3.7c-8.6-2.2-13.2-4.6-14.8-7.1
|
|
||||||
c1.6,10.8,5.3,21,10.2,30c3.7,5.6,7.4,10.5,11.1,15.8c1.6,3.1,2.7,6.2,3.4,9.3c2.4,3.4,5.9,5.6,10.2,6.8
|
|
||||||
c5.3,1.9,10.8,2.7,16.4,2.4h0.6c5.6,0.3,11.5-0.6,16.9-2.4c4-1.3,7.4-3.4,9.9-6.8h0.3c0.6-3.1,1.6-6.2,3.1-9.3
|
|
||||||
c3.7-5.3,7.4-10.2,11.1-15.8c4.9-8.9,8.3-19.1,10.2-30C86,374.1,81.4,376.5,73.1,378.4z"/>
|
|
||||||
<g>
|
|
||||||
<path fill="#28334C" d="M179.3,408.5c-4.8,12.1-17.6,16.9-25.9,16.9c-13.4,0-19.9-6-19.9-22.3c0-16.5,7.9-47.3,31.7-47.3
|
|
||||||
c8.5,0,15.2,3.3,15.2,12.1c0,4.8-1.8,8.3-6.4,8.3c-1.5,0-3.4-0.4-5.2-2.4c2.2-1.1,4.2-4.9,4.2-8.3c0-2.9-1.5-5.6-5.6-5.6
|
|
||||||
c-10,0-18.9,23.9-18.9,42.4c0,8.3,2.2,14.2,10.9,14.2c7.1,0,13.5-3.4,17.7-9.1L179.3,408.5z M212.2,392.2c0.4,0.2,0.7,0.2,1,0.2
|
|
||||||
c4.2,0,10.1-2.7,14-5.5l0.8,2.4c-3.4,3.7-9.5,6.5-16.1,7.5c-1.5,16.8-10.6,27.3-21.7,27.3c-8.4,0-14.5-4-14.5-14.4
|
|
||||||
c0-10.5,6.2-32.2,24.9-32.2C208.4,377.8,212.2,382.8,212.2,392.2z M204.5,397.2c-1.9-0.5-2.4-2-2.4-3.8c0-2.5,1.2-4.2,2.8-4.9
|
|
||||||
c-0.2-3.8-1.1-5.3-3.4-5.3c-6.5,0-12,16.6-12,25.6c0,6,1.2,7.3,4.6,7.3C198.3,416.2,203,408.1,204.5,397.2L204.5,397.2z
|
|
||||||
M197.9,436.9c0-8.3,7.1-11,15.8-13.6l10.9-51.9c2.7-13,10.6-15.5,16.5-15.5c4.1,0,8,2.2,9.7,5.7c3.6-4.6,8.4-5.7,12.4-5.7
|
|
||||||
c5.6,0,10.8,3.9,10.8,9.8c0,1.5-0.1,2.6-0.3,3.7h-4.3c0.1-0.9,0.2-1.7,0.2-2.4c0-2.1-1.7-3.1-3.4-3.1c-2,0-4.8,1.1-6.2,7.1
|
|
||||||
l-1.7,7.4h9.1l-0.8,3.6h-9l-10.3,49.1c-2.7,13-10.6,15.5-16.5,15.5c-5.2,0-8.3-2.3-9.8-5.7c-3.5,4.6-8.3,5.7-12.3,5.7
|
|
||||||
C203.1,446.7,197.9,442.8,197.9,436.9L197.9,436.9z M207,438.7c1.9,0,4.2-1.8,5.4-7.1l1.1-5.3c-5.7,2-10.1,4.4-10.1,9.4
|
|
||||||
C203.4,436.9,205.1,438.7,207,438.7z M228.7,438.7c1.9,0,4.2-1.8,5.4-7.1l2.2-10.4l-9.4,1.8l-1.8,8.3c-0.5,2.1-1.1,4-1.8,5.6
|
|
||||||
C224.2,438.2,226.3,438.7,228.7,438.7L228.7,438.7z M227.3,420.7l9.4-1.7l7.7-36.8h-9L227.3,420.7L227.3,420.7z M243.9,364
|
|
||||||
c-2,0-4.8,1.1-6.2,7.1l-1.7,7.4h9l2.1-9.5c0.2-0.7,0.2-1.3,0.2-2C247.4,365,245.8,364,243.9,364z M281.8,417
|
|
||||||
c7.1,0,11.6-4,16.1-9.2h3.1c-5.2,8.3-12.9,16.8-25,16.8c-8.5,0-14.2-4.2-14.2-14.5c0-10.5,5.9-32.3,24.6-32.3
|
|
||||||
c8.1,0,10,4.2,10,8.7c0,10.5-10,18.5-20.9,19.2c-0.1,1.3-0.2,2.5-0.2,3.6C275.3,415.5,277.5,417,281.8,417z M287.1,382.6
|
|
||||||
c-4.6,0-9.1,9.7-10.9,18.7c7-0.5,13.2-7.4,13.2-15C289.4,384.1,288.9,382.6,287.1,382.6L287.1,382.6z M315.7,416
|
|
||||||
c3.4,0,7.8-2.3,10.8-4.8c-2,10.4-8.4,13.4-15.8,13.4c-8.4,0-14.1-4.2-14.1-14.5c0-10.5,5.9-32.3,24.6-32.3c8.1,0,10,4.2,10,8.7
|
|
||||||
c0,10.6-10,18.5-20.9,19.2c-0.1,0.9-0.2,2-0.2,2.7C310.1,414.1,312.6,416,315.7,416z M321.9,382.6c-4.5,0-9.1,10.1-11,18.7
|
|
||||||
c7.1-0.4,13.3-7.3,13.3-15C324.2,384.1,323.6,382.6,321.9,382.6z M373.2,375.9c-1.7,0-3-0.6-4.2-1.9c2.4-1.5,4.1-4.8,4.1-7.8
|
|
||||||
c0-3.1-1.8-6.1-6.8-6.1s-8.3,2.8-8.3,8.2c0,13.3,20.5,15.2,20.5,34.8c0,15.3-12.3,22.7-25.6,22.7c-10.4,0-19.3-4.5-19.3-15.7
|
|
||||||
c0-9.8,7-14.9,13.3-14.9c3.1,0,7.7,1.3,8,6c-4.9,0-10.7,2.3-10.7,8.5c0,4.5,2.9,8.7,8.7,8.7c6.1,0,10.6-4.4,10.6-12
|
|
||||||
c0-15.6-18.6-21.1-18.6-34.5c0-9.5,9.3-16.3,21-16.3c4.3,0,14.6,0.9,14.6,10.9C380.6,372,377.7,375.9,373.2,375.9L373.2,375.9z
|
|
||||||
M409.4,386.2c0-2.3-0.8-3.7-2.5-3.7c-5.7,0-11.7,16.6-11.7,26.7c0,6.2,2.2,7.6,6.6,7.6c7.1,0,11.6-4,16.1-9.2h3.1
|
|
||||||
c-5.2,8.3-12.9,16.8-25,16.8c-8.5,0-14.2-4.2-14.2-14.5c0-10.6,6-32.3,24.5-32.3c8.1,0,10.1,4.2,10.1,8.3c0,4.4-2.2,6.7-4.8,6.7
|
|
||||||
c-1,0-2.1-0.4-3.1-1.1C409,389.6,409.4,387.9,409.4,386.2z M437.1,378.6l-1.2,5.7c3.1-2.7,6.7-5.7,11-5.7c4.1,0,6.3,3.3,6.3,6.9
|
|
||||||
c0,3.1-2.1,6.7-6.6,6.7c-5.1,0-2.5-6-5.3-6c-2.7,0-4.4,1.4-6.7,3.4l-7.2,34.6h-13.1l9.6-45.4L437.1,378.6L437.1,378.6z
|
|
||||||
M471.3,378.6l-6.6,30.9c-0.3,1.2-0.4,2.1-0.4,2.9c0,2.5,1.2,3.3,3.7,3.3c3.5,0,6.9-3.4,8.1-8h3.8c-5.2,14.8-14.2,16.8-19.1,16.8
|
|
||||||
c-5.5,0-9.7-3.2-9.7-10.9c0-1.8,0.3-3.7,0.7-5.9l6.2-29.2C458,378.5,471.3,378.6,471.3,378.6z M467.2,359.2c4,0,7.2,3.2,7.2,7.2
|
|
||||||
s-3.2,7.1-7.2,7.1s-7.1-3.1-7.1-7.1C460,362.4,463.3,359.2,467.2,359.2z M496.3,375.2l-1.5,6.9c2.6-2.3,6.1-3.9,10.7-3.9
|
|
||||||
c6.2,0,11.1,3.5,11.1,14.4c0,12.2-4.7,32.1-22.3,32.1c-4.5,0-6.8-1.6-7.7-3.2l-4.7,22.1l-13.7,3.2l15.2-71.5
|
|
||||||
C483.4,375.3,496.3,375.2,496.3,375.2z M504.1,392.2c0-7-2.9-7.5-4.5-7.5c-2,0-4.5,1.6-6.3,4.4l-5.4,25.5c0.4,1,1.4,2.1,3.4,2.1
|
|
||||||
C501,416.7,504.1,400.8,504.1,392.2z M531.9,409.5c-0.3,1.1-0.5,2.2-0.5,3.1c0,1.9,0.7,3.2,3.1,3.2c0.7,0,1.7,0,2.4-0.3
|
|
||||||
c-2.5,7.8-6.6,8.9-9.6,8.9c-6.4,0-9.1-4.4-9.1-10.3c0-1.6,0.2-3.1,0.6-4.8l5.8-27.2h-3l0.7-3.6h3L528,366l13.4-1.9
|
|
||||||
c0,0-1.4,6.2-3.1,14.4h5.5l-0.7,3.6h-5.5L531.9,409.5z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
4314
docs/v1/index.html
1938
docs/v1/test.html
@@ -1,5 +1,5 @@
|
|||||||
import 'local-file.coffee'
|
import 'local-file.coffee'
|
||||||
import 'coffee-script'
|
import 'coffeescript'
|
||||||
|
|
||||||
import _ from 'underscore'
|
import _ from 'underscore'
|
||||||
import * as underscore from 'underscore'
|
import * as underscore from 'underscore'
|
||||||
|
|||||||
@@ -8,4 +8,6 @@ futurists =
|
|||||||
"Bellagio, Italy 22021"
|
"Bellagio, Italy 22021"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{sculptor} = futurists
|
||||||
|
|
||||||
{poet: {name, address: [street, city]}} = futurists
|
{poet: {name, address: [street, city]}} = futurists
|
||||||
|
|||||||
6
documentation/images/icon.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-76 212 458 369">
|
||||||
|
<title>
|
||||||
|
CoffeeScript Logo
|
||||||
|
</title>
|
||||||
|
<path d="M106 228.6c.5 2.3-.9 4.4-5 6.5-5.5-3.1-16.9-4.4-26.7-3.5-10.4.9-19.4 4.2-17.9 11.3 1.5 7.1 11.7 11 29.5 9.5 43.6-3.8 43.4-33.3 107.4-39 49.8-4.4 77.8 11 81.8 29.7 3.1 14.7-9.1 28.6-45.2 31.8-32 2.8-50.7-5.6-52.6-14.6-1-4.5 1.8-11.3 17.2-13.1 1.5 7 10.6 14.4 31.1 12.6 14.8-1.3 27.6-6.6 25.9-14.9-1.8-8.6-17.7-13.7-42.6-11.5-50.7 4.5-63.2 32.5-106.8 36.3-30.8 2.7-55.9-8.5-59.4-25.1-1.3-6.1-1.4-21 31.2-23.9 17.1-1.5 30.7 1.5 32.1 7.9zM-56.4 402.5c-14.3 18-20.4 38.8-19.2 59.2 1.2 20.4 11.4 37.1 26.9 50.2C-32 525-14 528.6 6.4 525c7.8-1.2 16.7-5.3 24.5-7.8-16.7 0-31-5.3-44.9-16.7-15.5-11.4-25.7-26.9-28.2-46.1-3.7-18 0-34.7 10.2-49 11.4-14.3 25.7-22 44.9-24.5 19.2-1.2 35.9 3.7 52.6 15.5-3.7-5.3-9-9-14.3-14.3-16.7-11.4-34.7-16.7-56.7-11.4-19.9 3.6-36.7 13.8-50.9 31.8zm223.6-96.3c-53.9 0-101.6-5.3-136.3-13.1-37.1-9-56.7-19.2-56.7-32.2 0-5.3 2.4-10.2 10.2-15.5-23.3 9-35.9 16.7-35.9 28.2 1.2 13.1 22 25.7 64.5 35.9 40 10.2 91.4 15.5 153 15.5 62.8 0 113-5.3 153-15.5 42.4-10.2 62.8-23.3 62.8-35.9 0-9-9-18-25.7-24.5 3.7 2.4 6.5 6.5 6.5 11.4 0 13.1-19.2 23.3-57.9 32.2-36 8.2-82.1 13.5-137.5 13.5zm153 35.9c-40 9-91.4 15.5-153 15.5-62.8 0-114.2-6.5-154.2-15.5-35.9-9-55.1-19.2-61.6-29.4 6.5 44.9 22 87.3 42.4 124.8 15.5 23.3 31 43.7 46.1 65.7 6.5 13.1 11.4 25.7 14.3 38.8 10.2 14.3 24.5 23.3 42.4 28.2 22 7.8 44.9 11.4 68.1 10.2h2.4c23.3 1.2 47.7-2.4 70.6-10.2 16.7-5.3 31-14.3 41.2-28.2h1.2c2.4-13.1 6.5-25.7 13.1-38.8 15.5-22 31-42.4 46.1-65.7 20.4-37.1 34.7-79.6 42.4-124.8-7.7 11.4-26.9 21.6-61.5 29.4z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
6
documentation/images/logo.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-22 347 566 100">
|
||||||
|
<title>
|
||||||
|
CoffeeScript Logo
|
||||||
|
</title>
|
||||||
|
<path d="M21.7 351.1c.1.6-.2 1.1-1.2 1.6-1.3-.7-4.1-1.1-6.4-.9-2.5.2-4.6 1-4.3 2.7.4 1.7 2.8 2.7 7.1 2.3 10.5-.9 10.4-8 25.8-9.4 12-1.1 18.7 2.6 19.6 7.1.7 3.5-2.2 6.9-10.9 7.6-7.7.7-12.2-1.4-12.6-3.5-.2-1.1.4-2.7 4.1-3.1.4 1.7 2.5 3.5 7.5 3 3.6-.3 6.6-1.6 6.2-3.6-.4-2.1-4.2-3.3-10.2-2.8-12.2 1.1-15.2 7.8-25.6 8.7-7.4.7-13.4-2-14.2-6-.3-1.5-.3-5 7.5-5.7 4-.3 7.2.4 7.6 2zm-39 41.8c-3.4 4.3-4.9 9.3-4.6 14.2.3 4.9 2.7 8.9 6.5 12 4 3.1 8.3 4 13.2 3.1 1.9-.3 4-1.3 5.9-1.9-4 0-7.4-1.3-10.8-4-3.7-2.7-6.2-6.5-6.8-11.1-.9-4.3 0-8.3 2.4-11.8 2.7-3.4 6.2-5.3 10.8-5.9 4.6-.3 8.6.9 12.6 3.7-.9-1.3-2.2-2.2-3.4-3.4-4-2.7-8.3-4-13.6-2.7-4.8 1-8.8 3.5-12.2 7.8zm53.6-23.1c-12.9 0-24.4-1.3-32.7-3.1-8.9-2.2-13.6-4.6-13.6-7.7 0-1.3.6-2.4 2.4-3.7-5.6 2.2-8.6 4-8.6 6.8.3 3.1 5.3 6.2 15.5 8.6 9.6 2.4 21.9 3.7 36.7 3.7 15.1 0 27.1-1.3 36.7-3.7 10.2-2.4 15.1-5.6 15.1-8.6 0-2.2-2.2-4.3-6.2-5.9.9.6 1.6 1.6 1.6 2.7 0 3.1-4.6 5.6-13.9 7.7-8.6 1.9-19.6 3.2-33 3.2zm36.8 8.6c-9.6 2.2-21.9 3.7-36.7 3.7-15.1 0-27.4-1.6-37-3.7-8.6-2.2-13.2-4.6-14.8-7.1 1.6 10.8 5.3 21 10.2 30 3.7 5.6 7.4 10.5 11.1 15.8 1.6 3.1 2.7 6.2 3.4 9.3 2.4 3.4 5.9 5.6 10.2 6.8 5.3 1.9 10.8 2.7 16.4 2.4h.6c5.6.3 11.5-.6 16.9-2.4 4-1.3 7.4-3.4 9.9-6.8h.3c.6-3.1 1.6-6.2 3.1-9.3 3.7-5.3 7.4-10.2 11.1-15.8 4.9-8.9 8.3-19.1 10.2-30-2 2.8-6.6 5.2-14.9 7.1zm106.2 30.1c-4.8 12.1-17.6 16.9-25.9 16.9-13.4 0-19.9-6-19.9-22.3 0-16.5 7.9-47.3 31.7-47.3 8.5 0 15.2 3.3 15.2 12.1 0 4.8-1.8 8.3-6.4 8.3-1.5 0-3.4-.4-5.2-2.4 2.2-1.1 4.2-4.9 4.2-8.3 0-2.9-1.5-5.6-5.6-5.6-10 0-18.9 23.9-18.9 42.4 0 8.3 2.2 14.2 10.9 14.2 7.1 0 13.5-3.4 17.7-9.1l2.2 1.1zm32.9-16.3c.4.2.7.2 1 .2 4.2 0 10.1-2.7 14-5.5l.8 2.4c-3.4 3.7-9.5 6.5-16.1 7.5-1.5 16.8-10.6 27.3-21.7 27.3-8.4 0-14.5-4-14.5-14.4 0-10.5 6.2-32.2 24.9-32.2 7.8.3 11.6 5.3 11.6 14.7zm-7.7 5c-1.9-.5-2.4-2-2.4-3.8 0-2.5 1.2-4.2 2.8-4.9-.2-3.8-1.1-5.3-3.4-5.3-6.5 0-12 16.6-12 25.6 0 6 1.2 7.3 4.6 7.3 4.2.1 8.9-8 10.4-18.9zm-6.6 39.7c0-8.3 7.1-11 15.8-13.6l10.9-51.9c2.7-13 10.6-15.5 16.5-15.5 4.1 0 8 2.2 9.7 5.7 3.6-4.6 8.4-5.7 12.4-5.7 5.6 0 10.8 3.9 10.8 9.8 0 1.5-.1 2.6-.3 3.7h-4.3c.1-.9.2-1.7.2-2.4 0-2.1-1.7-3.1-3.4-3.1-2 0-4.8 1.1-6.2 7.1l-1.7 7.4h9.1l-.8 3.6h-9l-10.3 49.1c-2.7 13-10.6 15.5-16.5 15.5-5.2 0-8.3-2.3-9.8-5.7-3.5 4.6-8.3 5.7-12.3 5.7-5.6.1-10.8-3.8-10.8-9.7zm9.1 1.8c1.9 0 4.2-1.8 5.4-7.1l1.1-5.3c-5.7 2-10.1 4.4-10.1 9.4 0 1.2 1.7 3 3.6 3zm21.7 0c1.9 0 4.2-1.8 5.4-7.1l2.2-10.4-9.4 1.8-1.8 8.3c-.5 2.1-1.1 4-1.8 5.6.9 1.3 3 1.8 5.4 1.8zm-1.4-18l9.4-1.7 7.7-36.8h-9l-8.1 38.5zm16.6-56.7c-2 0-4.8 1.1-6.2 7.1l-1.7 7.4h9l2.1-9.5c.2-.7.2-1.3.2-2 .1-2-1.5-3-3.4-3zm37.9 53c7.1 0 11.6-4 16.1-9.2h3.1c-5.2 8.3-12.9 16.8-25 16.8-8.5 0-14.2-4.2-14.2-14.5 0-10.5 5.9-32.3 24.6-32.3 8.1 0 10 4.2 10 8.7 0 10.5-10 18.5-20.9 19.2-.1 1.3-.2 2.5-.2 3.6 0 6.2 2.2 7.7 6.5 7.7zm5.3-34.4c-4.6 0-9.1 9.7-10.9 18.7 7-.5 13.2-7.4 13.2-15 0-2.2-.5-3.7-2.3-3.7zm28.6 33.4c3.4 0 7.8-2.3 10.8-4.8-2 10.4-8.4 13.4-15.8 13.4-8.4 0-14.1-4.2-14.1-14.5 0-10.5 5.9-32.3 24.6-32.3 8.1 0 10 4.2 10 8.7 0 10.6-10 18.5-20.9 19.2-.1.9-.2 2-.2 2.7 0 5.7 2.5 7.6 5.6 7.6zm6.2-33.4c-4.5 0-9.1 10.1-11 18.7 7.1-.4 13.3-7.3 13.3-15 0-2.2-.6-3.7-2.3-3.7zm51.3-6.7c-1.7 0-3-.6-4.2-1.9 2.4-1.5 4.1-4.8 4.1-7.8 0-3.1-1.8-6.1-6.8-6.1s-8.3 2.8-8.3 8.2c0 13.3 20.5 15.2 20.5 34.8 0 15.3-12.3 22.7-25.6 22.7-10.4 0-19.3-4.5-19.3-15.7 0-9.8 7-14.9 13.3-14.9 3.1 0 7.7 1.3 8 6-4.9 0-10.7 2.3-10.7 8.5 0 4.5 2.9 8.7 8.7 8.7 6.1 0 10.6-4.4 10.6-12 0-15.6-18.6-21.1-18.6-34.5 0-9.5 9.3-16.3 21-16.3 4.3 0 14.6.9 14.6 10.9.1 5.5-2.8 9.4-7.3 9.4zm36.2 10.3c0-2.3-.8-3.7-2.5-3.7-5.7 0-11.7 16.6-11.7 26.7 0 6.2 2.2 7.6 6.6 7.6 7.1 0 11.6-4 16.1-9.2h3.1c-5.2 8.3-12.9 16.8-25 16.8-8.5 0-14.2-4.2-14.2-14.5 0-10.6 6-32.3 24.5-32.3 8.1 0 10.1 4.2 10.1 8.3 0 4.4-2.2 6.7-4.8 6.7-1 0-2.1-.4-3.1-1.1.5-1.9.9-3.6.9-5.3zm27.7-7.6l-1.2 5.7c3.1-2.7 6.7-5.7 11-5.7 4.1 0 6.3 3.3 6.3 6.9 0 3.1-2.1 6.7-6.6 6.7-5.1 0-2.5-6-5.3-6-2.7 0-4.4 1.4-6.7 3.4l-7.2 34.6h-13.1l9.6-45.4 13.2-.2zm34.2 0l-6.6 30.9c-.3 1.2-.4 2.1-.4 2.9 0 2.5 1.2 3.3 3.7 3.3 3.5 0 6.9-3.4 8.1-8h3.8c-5.2 14.8-14.2 16.8-19.1 16.8-5.5 0-9.7-3.2-9.7-10.9 0-1.8.3-3.7.7-5.9l6.2-29.2 13.3.1zm-4.1-19.4c4 0 7.2 3.2 7.2 7.2s-3.2 7.1-7.2 7.1-7.1-3.1-7.1-7.1c-.1-4 3.2-7.2 7.1-7.2zm29.1 16l-1.5 6.9c2.6-2.3 6.1-3.9 10.7-3.9 6.2 0 11.1 3.5 11.1 14.4 0 12.2-4.7 32.1-22.3 32.1-4.5 0-6.8-1.6-7.7-3.2l-4.7 22.1-13.7 3.2 15.2-71.5 12.9-.1zm7.8 17c0-7-2.9-7.5-4.5-7.5-2 0-4.5 1.6-6.3 4.4l-5.4 25.5c.4 1 1.4 2.1 3.4 2.1 9.7 0 12.8-15.9 12.8-24.5zm27.8 17.3c-.3 1.1-.5 2.2-.5 3.1 0 1.9.7 3.2 3.1 3.2.7 0 1.7 0 2.4-.3-2.5 7.8-6.6 8.9-9.6 8.9-6.4 0-9.1-4.4-9.1-10.3 0-1.6.2-3.1.6-4.8l5.8-27.2h-3l.7-3.6h3L528 366l13.4-1.9s-1.4 6.2-3.1 14.4h5.5l-.7 3.6h-5.5l-5.7 27.4z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 4.7 KiB |
13
documentation/sections/books.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
## Books
|
||||||
|
|
||||||
|
There are a number of excellent resources to help you get started with CoffeeScript, some of which are freely available online.
|
||||||
|
|
||||||
|
* [The Little Book on CoffeeScript](http://arcturo.github.io/library/coffeescript/) is a brief 5-chapter introduction to CoffeeScript, written with great clarity and precision by [Alex MacCaw](http://alexmaccaw.co.uk/).
|
||||||
|
* [Smooth CoffeeScript](http://autotelicum.github.io/Smooth-CoffeeScript/) is a reimagination of the excellent book [Eloquent JavaScript](http://eloquentjavascript.net/), as if it had been written in CoffeeScript instead. Covers language features as well as the functional and object oriented programming styles. By [E. Hoigaard](https://github.com/autotelicum).
|
||||||
|
* [CoffeeScript: Accelerated JavaScript Development](http://pragprog.com/book/tbcoffee/coffeescript) is [Trevor Burnham](http://trevorburnham.com/)’s thorough introduction to the language. By the end of the book, you’ll have built a fast-paced multiplayer word game, writing both the client-side and Node.js portions in CoffeeScript.
|
||||||
|
* [CoffeeScript Programming with jQuery, Rails, and Node.js](https://www.packtpub.com/web-development/coffeescript-programming-jquery-rails-and-nodejs) is a new book by Michael Erasmus that covers CoffeeScript with an eye towards real-world usage both in the browser (jQuery) and on the server-side (Rails, Node).
|
||||||
|
* [CoffeeScript Ristretto](https://leanpub.com/coffeescript-ristretto/read) is a deep dive into CoffeeScript’s semantics from simple functions up through closures, higher-order functions, objects, classes, combinators, and decorators. By [Reg Braithwaite](http://braythwayt.com/).
|
||||||
|
* [Testing with CoffeeScript](https://efendibooks.com/minibooks/testing-with-coffeescript) is a succinct and freely downloadable guide to building testable applications with CoffeeScript and Jasmine.
|
||||||
|
* [CoffeeScript Application Development](https://www.packtpub.com/web-development/coffeescript-application-development) from Packt, introduces CoffeeScript while walking through the process of building a demonstration web application. A [CoffeeScript Application Development Coookbook](https://www.packtpub.com/web-development/coffeescript-application-development-cookbook) with over 90 “recipes” is also available.
|
||||||
|
* [CoffeeScript in Action](https://www.manning.com/books/coffeescript-in-action) from Manning Publications, covers CoffeeScript syntax, composition techniques and application development.
|
||||||
|
* [CoffeeScript: Die Alternative zu JavaScript](https://www.dpunkt.de/buecher/4021/coffeescript.html) from dpunkt.verlag, is the first CoffeeScript book in Deutsch.
|
||||||
11
documentation/sections/cake.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
## Cake, and Cakefiles
|
||||||
|
|
||||||
|
CoffeeScript includes a (very) simple build system similar to [Make](http://www.gnu.org/software/make/) and [Rake](http://rake.rubyforge.org/). Naturally, it’s called Cake, and is used for the tasks that build and test the CoffeeScript language itself. Tasks are defined in a file named `Cakefile`, and can be invoked by running `cake [task]` from within the directory. To print a list of all the tasks and options, just type `cake`.
|
||||||
|
|
||||||
|
Task definitions are written in CoffeeScript, so you can put arbitrary code in your Cakefile. Define a task with a name, a long description, and the function to invoke when the task is run. If your task takes a command-line option, you can define the option with short and long flags, and it will be made available in the `options` object. Here’s a task that uses the Node.js API to rebuild CoffeeScript’s parser:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('cake_tasks')
|
||||||
|
```
|
||||||
|
|
||||||
|
If you need to invoke one task before another — for example, running `build` before `test`, you can use the `invoke` function: `invoke 'build'`. Cake tasks are a minimal way to expose your CoffeeScript functions to the command line, so [don’t expect any fanciness built-in](annotated-source/cake.html). If you need dependencies, or async callbacks, it’s best to put them in your code itself — not the cake task.
|
||||||
567
documentation/sections/changelog.md
Normal file
@@ -0,0 +1,567 @@
|
|||||||
|
## Change Log
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-11-29', '1.12.8', '1.12.7')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Added install message on `coffee-script` package encouraging people to use the `coffeescript` NPM package instead.
|
||||||
|
* Backported bugfix for `export default` followed by an implicit object that contains an explicit object, for example `exportedMember: { obj... }`.
|
||||||
|
* Backported bugfix for splats after existential operator soaks in arrays (`[a?.b...]`) or expressions.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-07-16', '1.12.7', '1.12.6')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Fix regressions in 1.12.6 related to chained function calls and indented `return` and `throw` arguments.
|
||||||
|
* The REPL no longer warns about assigning to `_`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-05-15', '1.12.6', '1.12.5')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The `return` and `export` keywords can now accept implicit objects (defined by indentation, without needing braces).
|
||||||
|
* Support Unicode code point escapes (e.g. `\u{1F4A9}`).
|
||||||
|
* The `coffee` command now first looks to see if CoffeeScript is installed under `node_modules` in the current folder, and executes the `coffee` binary there if so; or otherwise it runs the globally installed one. This allows you to have one version of CoffeeScript installed globally and a different one installed locally for a particular project. (Likewise for the `cake` command.)
|
||||||
|
* Bugfixes for chained function calls not closing implicit objects or ternaries.
|
||||||
|
* Bugfixes for incorrect code generated by the `?` operator within a termary `if` statement.
|
||||||
|
* Fixed some tests, and failing tests now result in a nonzero exit code.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-04-10', '1.12.5', '1.12.4')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Better handling of `default`, `from`, `as` and `*` within `import` and `export` statements. You can now import or export a member named `default` and the compiler won’t interpret it as the `default` keyword.
|
||||||
|
* Fixed a bug where invalid octal escape sequences weren’t throwing errors in the compiler.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-02-18', '1.12.4', '1.12.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The `cake` commands have been updated, with new `watch` options for most tasks. Clone the [CoffeeScript repo](https://github.com/jashkenas/coffeescript) and run `cake` at the root of the repo to see the options.
|
||||||
|
* Fixed a bug where `export`ing a referenced variable was preventing the variable from being declared.
|
||||||
|
* Fixed a bug where the `coffee` command wasn’t working for a `.litcoffee` file.
|
||||||
|
* Bugfixes related to tokens and location data, for better source maps and improved compatibility with downstream tools.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2017-01-24', '1.12.3', '1.12.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
* `@` values can now be used as indices in `for` expressions. This loosens the compilation of `for` expressions to allow the index variable to be an `@` value, e.g. `do @visit for @node, @index in nodes`. Within `@visit`, the index of the current node (`@node`) would be available as `@index`.
|
||||||
|
* CoffeeScript’s patched `Error.prepareStackTrace` has been restored, with some revisions that should prevent the erroneous exceptions that were making life difficult for some downstream projects. This fixes the incorrect line numbers in stack traces since 1.12.2.
|
||||||
|
* The `//=` operator’s output now wraps parentheses around the right operand, like the other assignment operators.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2016-12-16', '1.12.2', '1.12.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The browser compiler can once again be built unminified via `MINIFY=false cake build:browser`.
|
||||||
|
* The error-prone patched version of `Error.prepareStackTrace` has been removed.
|
||||||
|
* Command completion in the REPL (pressing tab to get suggestions) has been fixed for Node 6.9.1+.
|
||||||
|
* The [browser-based tests](test.html) now include all the tests as the Node-based version.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2016-12-07', '1.12.1', '1.12.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* You can now import a module member named `default`, e.g. `import { default } from 'lib'`. Though like in ES2015, you cannot import an entire module and name it `default` (so `import default from 'lib'` is not allowed).
|
||||||
|
* Fix regression where `from` as a variable name was breaking `for` loop declarations. For the record, `from` is not a reserved word in CoffeeScript; you may use it for variable names. `from` behaves like a keyword within the context of `import` and `export` statements, and in the declaration of a `for` loop; though you should also be able to use variables named `from` in those contexts, and the compiler should be able to tell the difference.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2016-12-04', '1.12.0', '1.11.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* CoffeeScript now supports ES2015 [tagged template literals](#tagged-template-literals). Note that using tagged template literals in your code makes you responsible for ensuring that either your runtime supports tagged template literals or that you transpile the output JavaScript further to a version your target runtime(s) support.
|
||||||
|
* CoffeeScript now provides a [`for…from`](#generator-iteration) syntax for outputting ES2015 [`for…of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of). (Sorry they couldn’t match, but we came up with `for…of` first for something else.) This allows iterating over generators or any other iterable object. Note that using `for…from` in your code makes you responsible for ensuring that either your runtime supports `for…of` or that you transpile the output JavaScript further to a version your target runtime(s) support.
|
||||||
|
* Triple backticks (`` `````) allow the creation of embedded JavaScript blocks where escaping single backticks is not required, which should improve interoperability with ES2015 template literals and with Markdown.
|
||||||
|
* Within single-backtick embedded JavaScript, backticks can now be escaped via `` \```.
|
||||||
|
* The browser tests now run in the browser again, and are accessible [here](test.html) if you would like to test your browser.
|
||||||
|
* CoffeeScript-only keywords in ES2015 `import`s and `export`s are now ignored.
|
||||||
|
* The compiler now throws an error on trying to export an anonymous class.
|
||||||
|
* Bugfixes related to tokens and location data, for better source maps and improved compatibility with downstream tools.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2016-10-02', '1.11.1', '1.11.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Bugfix for shorthand object syntax after interpolated keys.
|
||||||
|
* Bugfix for indentation-stripping in `"""` strings.
|
||||||
|
* Bugfix for not being able to use the name “arguments” for a prototype property of class.
|
||||||
|
* Correctly compile large hexadecimal numbers literals to `2e308` (just like all other large number literals do).
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2016-09-24', '1.11.0', '1.10.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* CoffeeScript now supports ES2015 [`import` and `export` syntax](#modules).
|
||||||
|
* Added the `-M, --inline-map` flag to the compiler, allowing you embed the source map directly into the output JavaScript, rather than as a separate file.
|
||||||
|
* A bunch of fixes for `yield`:
|
||||||
|
|
||||||
|
* `yield return` can no longer mistakenly be used as an expression.
|
||||||
|
* `yield` now mirrors `return` in that it can be used stand-alone as well as with expressions. Where you previously wrote `yield undefined`, you may now write simply `yield`. However, this means also inheriting the same syntax limitations that `return` has, so these examples no longer compile:
|
||||||
|
```
|
||||||
|
doubles = ->
|
||||||
|
yield for i in [1..3]
|
||||||
|
i * 2
|
||||||
|
six = ->
|
||||||
|
yield
|
||||||
|
2 * 3
|
||||||
|
```
|
||||||
|
|
||||||
|
* The JavaScript output is a bit nicer, with unnecessary parentheses and spaces, double indentation and double semicolons around `yield` no longer present.
|
||||||
|
* `&&=`, `||=`, `and=` and `or=` no longer accidentally allow a space before the equals sign.
|
||||||
|
* Improved several error messages.
|
||||||
|
* Just like `undefined` compiles to `void 0`, `NaN` now compiles into `0/0` and `Infinity` into `2e308`.
|
||||||
|
* Bugfix for renamed destructured parameters with defaults. `({a: b = 1}) ->` no longer crashes the compiler.
|
||||||
|
* Improved the internal representation of a CoffeeScript program. This is only noticeable to tools that use `CoffeeScript.tokens` or `CoffeeScript.nodes`. Such tools need to update to take account for changed or added tokens and nodes.
|
||||||
|
* Several minor bug fixes, including:
|
||||||
|
|
||||||
|
* The caught error in `catch` blocks is no longer declared unnecessarily, and no longer mistakenly named `undefined` for `catch`-less `try` blocks.
|
||||||
|
* Unassignable parameter destructuring no longer crashes the compiler.
|
||||||
|
* Source maps are now used correctly for errors thrown from .coffee.md files.
|
||||||
|
* `coffee -e 'throw null'` no longer crashes.
|
||||||
|
* The REPL no longer crashes when using `.exit` to exit it.
|
||||||
|
* Invalid JavaScript is no longer output when lots of `for` loops are used in the same scope.
|
||||||
|
* A unicode issue when using stdin with the CLI.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2015-09-03', '1.10.0', '1.9.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
* CoffeeScript now supports ES2015-style destructuring defaults.
|
||||||
|
* `(offsetHeight: height) ->` no longer compiles. That syntax was accidental and partly broken. Use `({offsetHeight: height}) ->` instead. Object destructuring always requires braces.
|
||||||
|
* Several minor bug fixes, including:
|
||||||
|
|
||||||
|
* A bug where the REPL would sometimes report valid code as invalid, based on what you had typed earlier.
|
||||||
|
* A problem with multiple JS contexts in the jest test framework.
|
||||||
|
* An error in io.js where strict mode is set on internal modules.
|
||||||
|
* A variable name clash for the caught error in `catch` blocks.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2015-05-27', '1.9.3', '1.9.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Bugfix for interpolation in the first key of an object literal in an implicit call.
|
||||||
|
* Fixed broken error messages in the REPL, as well as a few minor bugs with the REPL.
|
||||||
|
* Fixed source mappings for tokens at the beginning of lines when compiling with the `--bare` option. This has the nice side effect of generating smaller source maps.
|
||||||
|
* Slight formatting improvement of compiled block comments.
|
||||||
|
* Better error messages for `on`, `off`, `yes` and `no`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2015-04-15', '1.9.2', '1.9.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Fixed a **watch** mode error introduced in 1.9.1 when compiling multiple files with the same filename.
|
||||||
|
* Bugfix for `yield` around expressions containing `this`.
|
||||||
|
* Added a Ruby-style `-r` option to the REPL, which allows requiring a module before execution with `--eval` or `--interactive`.
|
||||||
|
* In `<script type="text/coffeescript">` tags, to avoid possible duplicate browser requests for .coffee files, you can now use the `data-src` attribute instead of `src`.
|
||||||
|
* Minor bug fixes for IE8, strict ES5 regular expressions and Browserify.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2015-02-18', '1.9.1', '1.9.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Interpolation now works in object literal keys (again). You can use this to dynamically name properties.
|
||||||
|
* Internal compiler variable names no longer start with underscores. This makes the generated JavaScript a bit prettier, and also fixes an issue with the completely broken and ungodly way that AngularJS “parses” function arguments.
|
||||||
|
* Fixed a few `yield`-related edge cases with `yield return` and `yield throw`.
|
||||||
|
* Minor bug fixes and various improvements to compiler error messages.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2015-01-29', '1.9.0', '1.8.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* CoffeeScript now supports ES2015 generators. A generator is simply a function that `yield`s.
|
||||||
|
* More robust parsing and improved error messages for strings and regexes — especially with respect to interpolation.
|
||||||
|
* Changed strategy for the generation of internal compiler variable names. Note that this means that `@example` function parameters are no longer available as naked `example` variables within the function body.
|
||||||
|
* Fixed REPL compatibility with latest versions of Node and Io.js.
|
||||||
|
* Various minor bug fixes.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2014-08-26', '1.8.0', '1.7.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The `--join` option of the CLI is now deprecated.
|
||||||
|
* Source maps now use `.js.map` as file extension, instead of just `.map`.
|
||||||
|
* The CLI now exits with the exit code 1 when it fails to write a file to disk.
|
||||||
|
* The compiler no longer crashes on unterminated, single-quoted strings.
|
||||||
|
* Fixed location data for string interpolations, which made source maps out of sync.
|
||||||
|
* The error marker in error messages is now correctly positioned if the code is indented with tabs.
|
||||||
|
* Fixed a slight formatting error in CoffeeScript’s source map-patched stack traces.
|
||||||
|
* The `%%` operator now coerces its right operand only once.
|
||||||
|
* It is now possible to require CoffeeScript files from Cakefiles without having to register the compiler first.
|
||||||
|
* The CoffeeScript REPL is now exported and can be required using `require 'coffee-script/repl'`.
|
||||||
|
* Fixes for the REPL in Node 0.11.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2014-01-29', '1.7.1', '1.7.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Fixed a typo that broke node module lookup when running a script directly with the `coffee` binary.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2014-01-28', '1.7.0', '1.6.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
* When requiring CoffeeScript files in Node you must now explicitly register the compiler. This can be done with `require 'coffee-script/register'` or `CoffeeScript.register()`. Also for configuration such as Mocha’s, use **coffee-script/register**.
|
||||||
|
* Improved error messages, source maps and stack traces. Source maps now use the updated `//#` syntax.
|
||||||
|
* Leading `.` now closes all open calls, allowing for simpler chaining syntax.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('chaining')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Added `**`, `//` and `%%` operators and `...` expansion in parameter lists and destructuring expressions.
|
||||||
|
* Multiline strings are now joined by a single space and ignore all indentation. A backslash at the end of a line can denote the amount of whitespace between lines, in both strings and heredocs. Backslashes correctly escape whitespace in block regexes.
|
||||||
|
* Closing brackets can now be indented and therefore no longer cause unexpected error.
|
||||||
|
* Several breaking compilation fixes. Non-callable literals (strings, numbers etc.) don’t compile in a call now and multiple postfix conditionals compile properly. Postfix conditionals and loops always bind object literals. Conditional assignment compiles properly in subexpressions. `super` is disallowed outside of methods and works correctly inside `for` loops.
|
||||||
|
* Formatting of compiled block comments has been improved.
|
||||||
|
* No more `-p` folders on Windows.
|
||||||
|
* The `options` object passed to CoffeeScript is no longer mutated.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2013-06-02', '1.6.3', '1.6.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The CoffeeScript REPL now remembers your history between sessions. Just like a proper REPL should.
|
||||||
|
* You can now use `require` in Node to load `.coffee.md` Literate CoffeeScript files. In the browser, `text/literate-coffeescript` script tags.
|
||||||
|
* The old `coffee --lint` command has been removed. It was useful while originally working on the compiler, but has been surpassed by JSHint. You may now use `-l` to pass literate files in over **stdio**.
|
||||||
|
* Bugfixes for Windows path separators, `catch` without naming the error, and executable-class-bodies-with- prototypal-property-attachment.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2013-03-18', '1.6.2', '1.6.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Source maps have been used to provide automatic line-mapping when running CoffeeScript directly via the `coffee` command, and for automatic line-mapping when running CoffeeScript directly in the browser. Also, to provide better error messages for semantic errors thrown by the compiler — [with colors, even](http://cl.ly/NdOA).
|
||||||
|
* Improved support for mixed literate/vanilla-style CoffeeScript projects, and generating source maps for both at the same time.
|
||||||
|
* Fixes for **1.6.x** regressions with overriding inherited bound functions, and for Windows file path management.
|
||||||
|
* The `coffee` command can now correctly `fork()` both `.coffee` and `.js` files. (Requires Node.js 0.9+)
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2013-03-05', '1.6.1', '1.5.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* First release of [source maps](#source-maps). Pass the `--map` flag to the compiler, and off you go. Direct all your thanks over to [Jason Walton](https://github.com/jwalton).
|
||||||
|
* Fixed a 1.5.0 regression with multiple implicit calls against an indented implicit object. Combinations of implicit function calls and implicit objects should generally be parsed better now — but it still isn’t good _style_ to nest them too heavily.
|
||||||
|
* `.coffee.md` is now also supported as a Literate CoffeeScript file extension, for existing tooling. `.litcoffee` remains the canonical one.
|
||||||
|
* Several minor fixes surrounding member properties, bound methods and `super` in class declarations.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2013-02-25', '1.5.0', '1.4.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* First release of [Literate CoffeeScript](#literate).
|
||||||
|
* The CoffeeScript REPL is now based on the Node.js REPL, and should work better and more familiarly.
|
||||||
|
* Returning explicit values from constructors is now forbidden. If you want to return an arbitrary value, use a function, not a constructor.
|
||||||
|
* You can now loop over an array backwards, without having to manually deal with the indexes: `for item in list by -1`
|
||||||
|
* Source locations are now preserved in the CoffeeScript AST, although source maps are not yet being emitted.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2012-10-23', '1.4.0', '1.3.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
* The CoffeeScript compiler now strips Microsoft’s UTF-8 BOM if it exists, allowing you to compile BOM-borked source files.
|
||||||
|
* Fix Node/compiler deprecation warnings by removing `registerExtension`, and moving from `path.exists` to `fs.exists`.
|
||||||
|
* Small tweaks to splat compilation, backticks, slicing, and the error for duplicate keys in object literals.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2012-05-15', '1.3.3', '1.3.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Due to the new semantics of JavaScript’s strict mode, CoffeeScript no longer guarantees that constructor functions have names in all runtimes. See [#2052](https://github.com/jashkenas/coffeescript/issues/2052) for discussion.
|
||||||
|
* Inside of a nested function inside of an instance method, it’s now possible to call `super` more reliably (walks recursively up).
|
||||||
|
* Named loop variables no longer have different scoping heuristics than other local variables. (Reverts #643)
|
||||||
|
* Fix for splats nested within the LHS of destructuring assignment.
|
||||||
|
* Corrections to our compile time strict mode forbidding of octal literals.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2012-04-10', '1.3.1', '1.2.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
* CoffeeScript now enforces all of JavaScript’s **Strict Mode** early syntax errors at compile time. This includes old-style octal literals, duplicate property names in object literals, duplicate parameters in a function definition, deleting naked variables, setting the value of `eval` or `arguments`, and more. See a full discussion at [#1547](https://github.com/jashkenas/coffeescript/issues/1547).
|
||||||
|
* The REPL now has a handy new multi-line mode for entering large blocks of code. It’s useful when copy-and-pasting examples into the REPL. Enter multi-line mode with `Ctrl-V`. You may also now pipe input directly into the REPL.
|
||||||
|
* CoffeeScript now prints a `Generated by CoffeeScript VERSION` header at the top of each compiled file.
|
||||||
|
* Conditional assignment of previously undefined variables `a or= b` is now considered a syntax error.
|
||||||
|
* A tweak to the semantics of `do`, which can now be used to more easily simulate a namespace: `do (x = 1, y = 2) -> …`
|
||||||
|
* Loop indices are now mutable within a loop iteration, and immutable between them.
|
||||||
|
* Both endpoints of a slice are now allowed to be omitted for consistency, effectively creating a shallow copy of the list.
|
||||||
|
* Additional tweaks and improvements to `coffee --watch` under Node’s “new” file watching API. Watch will now beep by default if you introduce a syntax error into a watched script. We also now ignore hidden directories by default when watching recursively.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-12-18', '1.2.0', '1.1.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Multiple improvements to `coffee --watch` and `--join`. You may now use both together, as well as add and remove files and directories within a `--watch`’d folder.
|
||||||
|
* The `throw` statement can now be used as part of an expression.
|
||||||
|
* Block comments at the top of the file will now appear outside of the safety closure wrapper.
|
||||||
|
* Fixed a number of minor 1.1.3 regressions having to do with trailing operators and unfinished lines, and a more major 1.1.3 regression that caused bound functions _within_ bound class functions to have the incorrect `this`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-11-08', '1.1.3', '1.1.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
* Ahh, whitespace. CoffeeScript’s compiled JS now tries to space things out and keep it readable, as you can see in the examples on this page.
|
||||||
|
* You can now call `super` in class level methods in class bodies, and bound class methods now preserve their correct context.
|
||||||
|
* JavaScript has always supported octal numbers `010 is 8`, and hexadecimal numbers `0xf is 15`, but CoffeeScript now also supports binary numbers: `0b10 is 2`.
|
||||||
|
* The CoffeeScript module has been nested under a subdirectory to make it easier to `require` individual components separately, without having to use **npm**. For example, after adding the CoffeeScript folder to your path: `require('coffee-script/lexer')`
|
||||||
|
* There’s a new “link” feature in Try CoffeeScript on this webpage. Use it to get a shareable permalink for your example script.
|
||||||
|
* The `coffee --watch` feature now only works on Node.js 0.6.0 and higher, but now also works properly on Windows.
|
||||||
|
* Lots of small bug fixes from **[@michaelficarra](https://github.com/michaelficarra)**, **[@geraldalewis](https://github.com/geraldalewis)**, **[@satyr](https://github.com/satyr)**, and **[@trevorburnham](https://github.com/trevorburnham)**.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-08-04', '1.1.2', '1.1.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
Fixes for block comment formatting, `?=` compilation, implicit calls against control structures, implicit invocation of a try/catch block, variadic arguments leaking from local scope, line numbers in syntax errors following heregexes, property access on parenthesized number literals, bound class methods and super with reserved names, a REPL overhaul, consecutive compiled semicolons, block comments in implicitly called objects, and a Chrome bug.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-05-10', '1.1.1', '1.1.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Bugfix release for classes with external constructor functions, see issue #1182.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-05-01', '1.1.0', '1.0.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
When running via the `coffee` executable, `process.argv` and friends now report `coffee` instead of `node`. Better compatibility with **Node.js 0.4.x** module lookup changes. The output in the REPL is now colorized, like Node’s is. Giving your concatenated CoffeeScripts a name when using `--join` is now mandatory. Fix for lexing compound division `/=` as a regex accidentally. All `text/coffeescript` tags should now execute in the order they’re included. Fixed an issue with extended subclasses using external constructor functions. Fixed an edge-case infinite loop in `addImplicitParentheses`. Fixed exponential slowdown with long chains of function calls. Globals no longer leak into the CoffeeScript REPL. Splatted parameters are declared local to the function.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2011-01-31', '1.0.1', '1.0.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Fixed a lexer bug with Unicode identifiers. Updated REPL for compatibility with Node.js 0.3.7\. Fixed requiring relative paths in the REPL. Trailing `return` and `return undefined` are now optimized away. Stopped requiring the core Node.js `util` module for back-compatibility with Node.js 0.2.5\. Fixed a case where a conditional `return` would cause fallthrough in a `switch` statement. Optimized empty objects in destructuring assignment.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-12-24', '1.0.0', '0.9.6')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript loops no longer try to preserve block scope when functions are being generated within the loop body. Instead, you can use the `do` keyword to create a convenient closure wrapper. Added a `--nodejs` flag for passing through options directly to the `node` executable. Better behavior around the use of pure statements within expressions. Fixed inclusive slicing through `-1`, for all browsers, and splicing with arbitrary expressions as endpoints.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-12-06', '0.9.6', '0.9.5')
|
||||||
|
```
|
||||||
|
|
||||||
|
The REPL now properly formats stacktraces, and stays alive through asynchronous exceptions. Using `--watch` now prints timestamps as files are compiled. Fixed some accidentally-leaking variables within plucked closure-loops. Constructors now maintain their declaration location within a class body. Dynamic object keys were removed. Nested classes are now supported. Fixes execution context for naked splatted functions. Bugfix for inversion of chained comparisons. Chained class instantiation now works properly with splats.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-11-21', '0.9.5', '0.9.4')
|
||||||
|
```
|
||||||
|
|
||||||
|
0.9.5 should be considered the first release candidate for CoffeeScript 1.0. There have been a large number of internal changes since the previous release, many contributed from **satyr**’s [Coco](https://github.com/satyr/coco) dialect of CoffeeScript. Heregexes (extended regexes) were added. Functions can now have default arguments. Class bodies are now executable code. Improved syntax errors for invalid CoffeeScript. `undefined` now works like `null`, and cannot be assigned a new value. There was a precedence change with respect to single-line comprehensions: `result = i for i in list`
|
||||||
|
used to parse as `result = (i for i in list)` by default … it now parses as
|
||||||
|
`(result = i) for i in list`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-09-21', '0.9.4', '0.9.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript now uses appropriately-named temporary variables, and recycles their references after use. Added `require.extensions` support for **Node.js 0.3**. Loading CoffeeScript in the browser now adds just a single `CoffeeScript` object to global scope. Fixes for implicit object and block comment edge cases.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-09-16', '0.9.3', '0.9.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript `switch` statements now compile into JS `switch` statements — they previously compiled into `if/else` chains for JavaScript 1.3 compatibility. Soaking a function invocation is now supported. Users of the RubyMine editor should now be able to use `--watch` mode.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-08-23', '0.9.2', '0.9.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
Specifying the start and end of a range literal is now optional, eg. `array[3..]`. You can now say `a not instanceof b`. Fixed important bugs with nested significant and non-significant indentation (Issue #637). Added a `--require` flag that allows you to hook into the `coffee` command. Added a custom `jsl.conf` file for our preferred JavaScriptLint setup. Sped up Jison grammar compilation time by flattening rules for operations. Block comments can now be used with JavaScript-minifier-friendly syntax. Added JavaScript’s compound assignment bitwise operators. Bugfixes to implicit object literals with leading number and string keys, as the subject of implicit calls, and as part of compound assignment.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-08-11', '0.9.1', '0.9.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Bugfix release for **0.9.1**. Greatly improves the handling of mixed implicit objects, implicit function calls, and implicit indentation. String and regex interpolation is now strictly `#{ … }` (Ruby style). The compiler now takes a `--require` flag, which specifies scripts to run before compilation.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-08-04', '0.9.0', '0.7.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
The CoffeeScript **0.9** series is considered to be a release candidate for **1.0**; let’s give her a shakedown cruise. **0.9.0** introduces a massive backwards-incompatible change: Assignment now uses `=`, and object literals use `:`, as in JavaScript. This allows us to have implicit object literals, and YAML-style object definitions. Half assignments are removed, in favor of `+=`, `or=`, and friends. Interpolation now uses a hash mark `#` instead of the dollar sign `$` — because dollar signs may be part of a valid JS identifier. Downwards range comprehensions are now safe again, and are optimized to straight for loops when created with integer endpoints. A fast, unguarded form of object comprehension was added: `for all key, value of object`. Mentioning the `super` keyword with no arguments now forwards all arguments passed to the function, as in Ruby. If you extend class `B` from parent class `A`, if `A` has an `extended` method defined, it will be called, passing in `B` — this enables static inheritance, among other things. Cleaner output for functions bound with the fat arrow. `@variables` can now be used in parameter lists, with the parameter being automatically set as a property on the object — useful in constructors and setter functions. Constructor functions can now take splats.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-07-12', '0.7.2', '0.7.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
Quick bugfix (right after 0.7.1) for a problem that prevented `coffee` command-line options from being parsed in some circumstances.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-07-11', '0.7.1', '0.7.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Block-style comments are now passed through and printed as JavaScript block comments – making them useful for licenses and copyright headers. Better support for running coffee scripts standalone via hashbangs. Improved syntax errors for tokens that are not in the grammar.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-06-28', '0.7.0', '0.6.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
Official CoffeeScript variable style is now camelCase, as in JavaScript. Reserved words are now allowed as object keys, and will be quoted for you. Range comprehensions now generate cleaner code, but you have to specify `by -1` if you’d like to iterate downward. Reporting of syntax errors is greatly improved from the previous release. Running `coffee` with no arguments now launches the REPL, with Readline support. The `<-` bind operator has been removed from CoffeeScript. The `loop` keyword was added, which is equivalent to a `while true` loop. Comprehensions that contain closures will now close over their variables, like the semantics of a `forEach`. You can now use bound function in class definitions (bound to the instance). For consistency, `a in b` is now an array presence check, and `a of b` is an object-key check. Comments are no longer passed through to the generated JavaScript.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-05-15', '0.6.2', '0.6.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
The `coffee` command will now preserve directory structure when compiling a directory full of scripts. Fixed two omissions that were preventing the CoffeeScript compiler from running live within Internet Explorer. There’s now a syntax for block comments, similar in spirit to CoffeeScript’s heredocs. ECMA Harmony DRY-style pattern matching is now supported, where the name of the property is the same as the name of the value: `{name, length}: func`. Pattern matching is now allowed within comprehension variables. `unless` is now allowed in block form. `until` loops were added, as the inverse of `while` loops. `switch` statements are now allowed without switch object clauses. Compatible with Node.js **v0.1.95**.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-04-12', '0.6.1', '0.6.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Upgraded CoffeeScript for compatibility with the new Node.js **v0.1.90** series.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-04-03', '0.6.0', '0.5.6')
|
||||||
|
```
|
||||||
|
|
||||||
|
Trailing commas are now allowed, a-la Python. Static properties may be assigned directly within class definitions, using `@property` notation.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-03-23', '0.5.6', '0.5.5')
|
||||||
|
```
|
||||||
|
|
||||||
|
Interpolation can now be used within regular expressions and heredocs, as well as strings. Added the `<-` bind operator. Allowing assignment to half-expressions instead of special `||=`-style operators. The arguments object is no longer automatically converted into an array. After requiring `coffee-script`, Node.js can now directly load `.coffee` files, thanks to **registerExtension**. Multiple splats can now be used in function calls, arrays, and pattern matching.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-03-08', '0.5.5', '0.5.4')
|
||||||
|
```
|
||||||
|
|
||||||
|
String interpolation, contributed by [Stan Angeloff](https://github.com/StanAngeloff). Since `--run` has been the default since **0.5.3**, updating `--stdio` and `--eval` to run by default, pass `--compile` as well if you’d like to print the result.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-03-03', '0.5.4', '0.5.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
Bugfix that corrects the Node.js global constants `__filename` and `__dirname`. Tweaks for more flexible parsing of nested function literals and improperly-indented comments. Updates for the latest Node.js API.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-02-27', '0.5.3', '0.5.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript now has a syntax for defining classes. Many of the core components (Nodes, Lexer, Rewriter, Scope, Optparse) are using them. Cakefiles can use `optparse.coffee` to define options for tasks. `--run` is now the default flag for the `coffee` command, use `--compile` to save JavaScripts. Bugfix for an ambiguity between RegExp literals and chained divisions.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-02-25', '0.5.2', '0.5.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
Added a compressed version of the compiler for inclusion in web pages as
|
||||||
|
`browser-compiler/coffee-script.js`. It’ll automatically run any script tags with type `text/coffeescript` for you. Added a `--stdio` option to the `coffee` command, for piped-in compiles.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-02-24', '0.5.1', '0.5.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Improvements to null soaking with the existential operator, including soaks on indexed properties. Added conditions to `while` loops, so you can use them as filters with `when`, in the same manner as comprehensions.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-02-21', '0.5.0', '0.3.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript 0.5.0 is a major release, While there are no language changes, the Ruby compiler has been removed in favor of a self-hosting compiler written in pure CoffeeScript.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-02-08', '0.3.2', '0.3.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
`@property` is now a shorthand for `this.property`.
|
||||||
|
Switched the default JavaScript engine from Narwhal to Node.js. Pass the `--narwhal` flag if you’d like to continue using it.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-26', '0.3.0', '0.2.6')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript 0.3 includes major syntax changes:
|
||||||
|
The function symbol was changed to `->`, and the bound function symbol is now `=>`.
|
||||||
|
Parameter lists in function definitions must now be wrapped in parentheses.
|
||||||
|
Added property soaking, with the `?.` operator.
|
||||||
|
Made parentheses optional, when invoking functions with arguments.
|
||||||
|
Removed the obsolete block literal syntax.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-17', '0.2.6', '0.2.5')
|
||||||
|
```
|
||||||
|
|
||||||
|
Added Python-style chained comparisons, the conditional existence operator `?=`, and some examples from _Beautiful Code_. Bugfixes relating to statement-to-expression conversion, arguments-to-array conversion, and the TextMate syntax highlighter.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-13', '0.2.5', '0.2.4')
|
||||||
|
```
|
||||||
|
|
||||||
|
The conditions in switch statements can now take multiple values at once — If any of them are true, the case will run. Added the long arrow `==>`, which defines and immediately binds a function to `this`. While loops can now be used as expressions, in the same way that comprehensions can. Splats can be used within pattern matches to soak up the rest of an array.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-12', '0.2.4', '0.2.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
Added ECMAScript Harmony style destructuring assignment, for dealing with extracting values from nested arrays and objects. Added indentation-sensitive heredocs for nicely formatted strings or chunks of code.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-11', '0.2.3', '0.2.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
Axed the unsatisfactory `ino` keyword, replacing it with `of` for object comprehensions. They now look like: `for prop, value of object`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-10', '0.2.2', '0.2.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
When performing a comprehension over an object, use `ino`, instead of `in`, which helps us generate smaller, more efficient code at compile time.
|
||||||
|
Added `::` as a shorthand for saying `.prototype.`
|
||||||
|
The “splat” symbol has been changed from a prefix asterisk `*`, to a postfix ellipsis `...`
|
||||||
|
Added JavaScript’s `in` operator, empty `return` statements, and empty `while` loops.
|
||||||
|
Constructor functions that start with capital letters now include a safety check to make sure that the new instance of the object is returned.
|
||||||
|
The `extends` keyword now functions identically to `goog.inherits` in Google’s Closure Library.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-05', '0.2.1', '0.2.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Arguments objects are now converted into real arrays when referenced.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2010-01-05', '0.2.0', '0.1.6')
|
||||||
|
```
|
||||||
|
|
||||||
|
Major release. Significant whitespace. Better statement-to-expression conversion. Splats. Splice literals. Object comprehensions. Blocks. The existential operator. Many thanks to all the folks who posted issues, with special thanks to [Liam O’Connor-Davis](https://github.com/liamoc) for whitespace and expression help.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-27', '0.1.6', '0.1.5')
|
||||||
|
```
|
||||||
|
|
||||||
|
Bugfix for running `coffee --interactive` and `--run` from outside of the CoffeeScript directory. Bugfix for nested function/if-statements.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-26', '0.1.5', '0.1.4')
|
||||||
|
```
|
||||||
|
|
||||||
|
Array slice literals and array comprehensions can now both take Ruby-style ranges to specify the start and end. JavaScript variable declaration is now pushed up to the top of the scope, making all assignment statements into expressions. You can use `\` to escape newlines. The `coffee-script` command is now called `coffee`.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-25', '0.1.4', '0.1.3')
|
||||||
|
```
|
||||||
|
|
||||||
|
The official CoffeeScript extension is now `.coffee` instead of `.cs`, which properly belongs to [C#](https://en.wikipedia.org/wiki/C_Sharp_(programming_language)). Due to popular demand, you can now also use `=` to assign. Unlike JavaScript, `=` can also be used within object literals, interchangeably with `:`. Made a grammatical fix for chained function calls like `func(1)(2)(3)(4)`. Inheritance and super no longer use `__proto__`, so they should be IE-compatible now.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-25', '0.1.3', '0.1.2')
|
||||||
|
```
|
||||||
|
|
||||||
|
The `coffee` command now includes `--interactive`, which launches an interactive CoffeeScript session, and `--run`, which directly compiles and executes a script. Both options depend on a working installation of Narwhal. The `aint` keyword has been replaced by `isnt`, which goes together a little smoother with `is`. Quoted strings are now allowed as identifiers within object literals: eg. `{"5+5": 10}`. All assignment operators now use a colon: `+:`, `-:`, `*:`, etc.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-24', '0.1.2', '0.1.1')
|
||||||
|
```
|
||||||
|
|
||||||
|
Fixed a bug with calling `super()` through more than one level of inheritance, with the re-addition of the `extends` keyword. Added experimental [Narwhal](http://narwhaljs.org/) support (as a Tusk package), contributed by [Tom Robinson](http://blog.tlrobinson.net/), including **bin/cs** as a CoffeeScript REPL and interpreter. New `--no-wrap` option to suppress the safety function wrapper.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-24', '0.1.1', '0.1.0')
|
||||||
|
```
|
||||||
|
|
||||||
|
Added `instanceof` and `typeof` as operators.
|
||||||
|
|
||||||
|
```
|
||||||
|
releaseHeader('2009-12-24', '0.1.0', '8e9d637985d2dc9b44922076ad54ffef7fa8e9c2')
|
||||||
|
```
|
||||||
|
|
||||||
|
Initial CoffeeScript release.
|
||||||
5
documentation/sections/chat.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Web Chat (IRC)
|
||||||
|
|
||||||
|
Quick help and advice can usually be found in the CoffeeScript IRC room. Join `#coffeescript` on `irc.freenode.net`, or click the button below to open a webchat session on this page.
|
||||||
|
|
||||||
|
<button id="open_webchat">click to open #coffeescript</button>
|
||||||
20
documentation/sections/classes.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
## Classes, Inheritance, and Super
|
||||||
|
|
||||||
|
JavaScript’s prototypal inheritance has always been a bit of a brain-bender, with a whole family tree of libraries that provide a cleaner syntax for classical inheritance on top of JavaScript’s prototypes: [Base2](https://code.google.com/p/base2/), [Prototype.js](http://prototypejs.org/), [JS.Class](http://jsclass.jcoglan.com/), etc. The libraries provide syntactic sugar, but the built-in inheritance would be completely usable if it weren’t for a couple of small exceptions: it’s awkward to call **super** (the prototype object’s implementation of the current function), and it’s awkward to correctly set the prototype chain.
|
||||||
|
|
||||||
|
Instead of repetitively attaching functions to a prototype, CoffeeScript provides a basic `class` structure that allows you to name your class, set the superclass, assign prototypal properties, and define the constructor, in a single assignable expression.
|
||||||
|
|
||||||
|
Constructor functions are named, to better support helpful stack traces. In the first class in the example below, `this.constructor.name is "Animal"`.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('classes', true)
|
||||||
|
```
|
||||||
|
|
||||||
|
If structuring your prototypes classically isn’t your cup of tea, CoffeeScript provides a couple of lower-level conveniences. The `extends` operator helps with proper prototype setup, and can be used to create an inheritance chain between any pair of constructor functions; `::` gives you quick access to an object’s prototype; and `super()` is converted into a call against the immediate ancestor’s method of the same name.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('prototypes', '"one_two".dasherize()')
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, class definitions are blocks of executable code, which make for interesting metaprogramming possibilities. Because in the context of a class definition, `this` is the class object itself (the constructor function), you can assign static properties by using
|
||||||
|
`@property: value`, and call functions defined in parent classes: `@attr 'title', type: 'text'`
|
||||||
7
documentation/sections/comparisons.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Chained Comparisons
|
||||||
|
|
||||||
|
CoffeeScript borrows [chained comparisons](https://docs.python.org/3/reference/expressions.html#not-in) from Python — making it easy to test if a value falls within a certain range.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('comparisons', 'healthy')
|
||||||
|
```
|
||||||
9
documentation/sections/conditionals.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
## If, Else, Unless, and Conditional Assignment
|
||||||
|
|
||||||
|
**If/else** statements can be written without the use of parentheses and curly brackets. As with functions and other block expressions, multi-line conditionals are delimited by indentation. There’s also a handy postfix form, with the `if` or `unless` at the end.
|
||||||
|
|
||||||
|
CoffeeScript can compile **if** statements into JavaScript expressions, using the ternary operator when possible, and closure wrapping otherwise. There is no explicit ternary statement in CoffeeScript — you simply use a regular **if** statement on a single line.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('conditionals')
|
||||||
|
```
|
||||||
39
documentation/sections/destructuring.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
## Destructuring Assignment
|
||||||
|
|
||||||
|
Just like JavaScript (since ES2015), CoffeeScript has destructuring assignment syntax. When you assign an array or object literal to a value, CoffeeScript breaks up and matches both sides against each other, assigning the values on the right to the variables on the left. In the simplest case, it can be used for parallel assignment:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('parallel_assignment', 'theBait')
|
||||||
|
```
|
||||||
|
|
||||||
|
But it’s also helpful for dealing with functions that return multiple values.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('multiple_return_values', 'forecast')
|
||||||
|
```
|
||||||
|
|
||||||
|
Destructuring assignment can be used with any depth of array and object nesting, to help pull out deeply nested properties.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('object_extraction', 'name + "-" + street')
|
||||||
|
```
|
||||||
|
|
||||||
|
Destructuring assignment can even be combined with splats.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('patterns_and_splats', 'contents.join("")')
|
||||||
|
```
|
||||||
|
|
||||||
|
Expansion can be used to retrieve elements from the end of an array without having to assign the rest of its values. It works in function parameter lists as well.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('expansion', 'first + " " + last')
|
||||||
|
```
|
||||||
|
|
||||||
|
Destructuring assignment is also useful when combined with class constructors to assign properties to your instance from an options object passed to the constructor.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('constructor_destructuring', 'tim.age + " " + tim.height')
|
||||||
|
```
|
||||||
|
|
||||||
|
The above example also demonstrates that if properties are missing in the destructured object or array, you can, just like in JavaScript, provide defaults. The difference with JavaScript is that CoffeeScript, as always, treats both null and undefined the same.
|
||||||
21
documentation/sections/embedded.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
## Embedded JavaScript
|
||||||
|
|
||||||
|
Hopefully, you’ll never need to use it, but if you ever need to intersperse snippets of JavaScript within your CoffeeScript, you can use backticks to pass it straight through.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('embedded', 'hi()')
|
||||||
|
```
|
||||||
|
|
||||||
|
Escape backticks with backslashes: `` \``` becomes `` ```.
|
||||||
|
|
||||||
|
Escape backslashes before backticks with more backslashes: `` \\\``` becomes `` \```.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('embedded_escaped', 'markdown()')
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also embed blocks of JavaScript using triple backticks. That’s easier than escaping backticks, if you need them inside your JavaScript block.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('embedded_block', 'time()')
|
||||||
|
```
|
||||||
10
documentation/sections/examples.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## Examples
|
||||||
|
|
||||||
|
The [best list of open-source CoffeeScript examples](https://github.com/trending?l=coffeescript&since=monthly) can be found on GitHub. But just to throw out a few more:
|
||||||
|
|
||||||
|
* **GitHub**’s [Hubot](https://hubot.github.com/), a friendly IRC robot that can perform any number of useful and useless tasks.
|
||||||
|
* **sstephenson**’s [Pow](http://pow.cx/), a zero-configuration Rack server, with comprehensive annotated source.
|
||||||
|
* **technoweenie**’s [Coffee-Resque](https://github.com/technoweenie/coffee-resque), a port of [Resque](https://github.com/defunkt/resque) for Node.js.
|
||||||
|
* **stephank**’s [Orona](https://github.com/stephank/orona), a remake of the Bolo tank game for modern browsers.
|
||||||
|
* **GitHub**’s [Atom](https://atom.io/), a hackable text editor built on web technologies.
|
||||||
|
* **Basecamp**’s [Trix](https://trix-editor.org/), a rich text editor for web apps.
|
||||||
17
documentation/sections/existential_operator.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
## The Existential Operator
|
||||||
|
|
||||||
|
It’s a little difficult to check for the existence of a variable in JavaScript. `if (variable) …` comes close, but fails for zero, the empty string, and false. CoffeeScript’s existential operator `?` returns true unless a variable is **null** or **undefined**, which makes it analogous to Ruby’s `nil?`
|
||||||
|
|
||||||
|
It can also be used for safer conditional assignment than `||=` provides, for cases where you may be handling numbers or strings.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('existence', 'footprints')
|
||||||
|
```
|
||||||
|
|
||||||
|
The accessor variant of the existential operator `?.` can be used to soak up null references in a chain of properties. Use it instead of the dot accessor `.` in cases where the base value may be **null** or **undefined**. If all of the properties exist then you’ll get the expected result, if the chain is broken, **undefined** is returned instead of the **TypeError** that would be raised otherwise.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('soaks')
|
||||||
|
```
|
||||||
|
|
||||||
|
Soaking up nulls is similar to Ruby’s [andand gem](https://rubygems.org/gems/andand), and to the [safe navigation operator](http://docs.groovy-lang.org/latest/html/documentation/index.html#_safe_navigation_operator) in Groovy.
|
||||||
29
documentation/sections/expressions.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
## Everything is an Expression (at least, as much as possible)
|
||||||
|
|
||||||
|
You might have noticed how even though we don’t add return statements to CoffeeScript functions, they nonetheless return their final value. The CoffeeScript compiler tries to make sure that all statements in the language can be used as expressions. Watch how the `return` gets pushed down into each possible branch of execution in the function below.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('expressions', 'eldest')
|
||||||
|
```
|
||||||
|
|
||||||
|
Even though functions will always return their final value, it’s both possible and encouraged to return early from a function body writing out the explicit return (`return value`), when you know that you’re done.
|
||||||
|
|
||||||
|
Because variable declarations occur at the top of scope, assignment can be used within expressions, even for variables that haven’t been seen before:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('expressions_assignment', 'six')
|
||||||
|
```
|
||||||
|
|
||||||
|
Things that would otherwise be statements in JavaScript, when used as part of an expression in CoffeeScript, are converted into expressions by wrapping them in a closure. This lets you do useful things, like assign the result of a comprehension to a variable:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('expressions_comprehension', 'globals')
|
||||||
|
```
|
||||||
|
|
||||||
|
As well as silly things, like passing a **try/catch** statement directly into a function call:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('expressions_try', true)
|
||||||
|
```
|
||||||
|
|
||||||
|
There are a handful of statements in JavaScript that can’t be meaningfully converted into expressions, namely `break`, `continue`, and `return`. If you make use of them within a block of code, CoffeeScript won’t try to perform the conversion.
|
||||||
31
documentation/sections/fat_arrow.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
## Bound Functions, Generator Functions
|
||||||
|
|
||||||
|
In JavaScript, the `this` keyword is dynamically scoped to mean the object that the current function is attached to. If you pass a function as a callback or attach it to a different object, the original value of `this` will be lost. If you’re not familiar with this behavior, [this Digital Web article](http://64.13.255.16/articles/scope_in_javascript/) gives a good overview of the quirks.
|
||||||
|
|
||||||
|
The fat arrow `=>` can be used to both define a function, and to bind it to the current value of `this`, right on the spot. This is helpful when using callback-based libraries like Prototype or jQuery, for creating iterator functions to pass to `each`, or event-handler functions to use with `on`. Functions created with the fat arrow are able to access properties of the `this` where they’re defined.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('fat_arrow')
|
||||||
|
```
|
||||||
|
|
||||||
|
If we had used `->` in the callback above, `@customer` would have referred to the undefined “customer” property of the DOM element, and trying to call `purchase()` on it would have raised an exception.
|
||||||
|
|
||||||
|
When used in a class definition, methods declared with the fat arrow will be automatically bound to each instance of the class when the instance is constructed.
|
||||||
|
|
||||||
|
<div id="generator-functions" class="bookmark"></div>
|
||||||
|
|
||||||
|
CoffeeScript functions also support [ES2015 generator functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) through the `yield` keyword. There’s no `function*(){}` nonsense — a generator in CoffeeScript is simply a function that yields.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('generators', 'ps.next().value')
|
||||||
|
```
|
||||||
|
|
||||||
|
`yield*` is called `yield from`, and `yield return` may be used if you need to force a generator that doesn’t yield.
|
||||||
|
|
||||||
|
<div id="generator-iteration" class="bookmark"></div>
|
||||||
|
|
||||||
|
You can iterate over a generator function using `for…from`.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('generator_iteration', 'getFibonacciNumbers(10)')
|
||||||
|
```
|
||||||
13
documentation/sections/functions.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
## Functions
|
||||||
|
|
||||||
|
Functions are defined by an optional list of parameters in parentheses, an arrow, and the function body. The empty function looks like this: `->`
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('functions', 'cube(5)')
|
||||||
|
```
|
||||||
|
|
||||||
|
Functions may also have default values for arguments, which will be used if the incoming argument is missing (`null` or `undefined`).
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('default_args', 'fill("cup")')
|
||||||
|
```
|
||||||
7
documentation/sections/heregexes.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Block Regular Expressions
|
||||||
|
|
||||||
|
Similar to block strings and comments, CoffeeScript supports block regexes — extended regular expressions that ignore internal whitespace and can contain comments and interpolation. Modeled after Perl’s `/x` modifier, CoffeeScript’s block regexes are delimited by `///` and go a long way towards making complex regular expressions readable. To quote from the CoffeeScript source:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('heregexes')
|
||||||
|
```
|
||||||
19
documentation/sections/installation.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
## Installation
|
||||||
|
|
||||||
|
The command-line version of `coffee` is available as a [Node.js](https://nodejs.org/) utility. The [core compiler](browser-compiler/coffee-script.js) however, does not depend on Node, and can be run in any JavaScript environment, or in the browser (see [Try CoffeeScript](#try)).
|
||||||
|
|
||||||
|
To install, first make sure you have a working copy of the latest stable version of [Node.js](https://nodejs.org/). You can then install CoffeeScript globally with [npm](https://www.npmjs.com/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install --global coffeescript
|
||||||
|
```
|
||||||
|
|
||||||
|
This will make the `coffee` and `cake` commands available globally.
|
||||||
|
|
||||||
|
When you need CoffeeScript as a dependency of a project, within that project’s folder you can install it locally:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install --save coffeescript
|
||||||
|
```
|
||||||
|
|
||||||
|
The `coffee` and `cake` commands will first look in the current folder to see if CoffeeScript is installed locally, and use that version if so. This allows different versions of CoffeeScript to be installed globally and locally.
|
||||||
13
documentation/sections/introduction.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
**CoffeeScript is a little language that compiles into JavaScript.** Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
|
||||||
|
|
||||||
|
The golden rule of CoffeeScript is: _“It’s just JavaScript”_. The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.
|
||||||
|
|
||||||
|
The CoffeeScript compiler goes to great lengths to generate output JavaScript that runs in every JavaScript runtime, but there are exceptions. Use [generator functions](#generator-functions), [`for…from`](#generator-iteration), or [tagged template literals](#tagged-template-literals) only if you know that your [target runtimes can support them](http://kangax.github.io/compat-table/es6/). If you use [modules](#modules), you will need to [use an additional tool to resolve them](#modules-note).
|
||||||
|
|
||||||
|
**Latest 1.x Version:** [<%= fullVersion %>](https://github.com/jashkenas/coffeescript/tarball/<%= fullVersion %>)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install -g coffeescript
|
||||||
|
```
|
||||||
|
|
||||||
|
**Upgrade to CoffeeScript 2!** It adds support for [ES2015 classes](/#classes), [`async`/`await`](/#async-functions), [JSX](/#jsx), <span class="nowrap">[object rest/spread syntax](/#splats)</span>, and [JavaScript generated using modern syntax](/#coffeescript-2). [Learn more](/announcing-coffeescript-2/).
|
||||||
10
documentation/sections/language.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## Language Reference
|
||||||
|
|
||||||
|
_This reference is structured so that it can be read from top to bottom, if you like. Later sections use ideas and syntax previously introduced. Familiarity with JavaScript is assumed. In all of the following examples, the source CoffeeScript is provided on the left, and the direct compilation into JavaScript is on the right._
|
||||||
|
|
||||||
|
_Many of the examples can be run (where it makes sense) by pressing the **run** button on the right, and can be loaded into the “Try CoffeeScript” console by pressing the **load** button on the left._
|
||||||
|
|
||||||
|
First, the basics: CoffeeScript uses significant whitespace to delimit blocks of code. You don’t need to use semicolons `;` to terminate expressions, ending the line will do just as well (although semicolons can still be used to fit multiple expressions onto a single line). Instead of using curly braces `{ }` to surround blocks of code in [functions](#literals), [if-statements](#conditionals), [switch](#switch), and [try/catch](#try), use indentation.
|
||||||
|
|
||||||
|
You don’t need to use parentheses to invoke a function if you’re passing arguments. The implicit call wraps forward to the end of the line or block expression.<br>
|
||||||
|
`console.log sys.inspect object` → `console.log(sys.inspect(object));`
|
||||||
15
documentation/sections/lexical_scope.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
## Lexical Scoping and Variable Safety
|
||||||
|
|
||||||
|
The CoffeeScript compiler takes care to make sure that all of your variables are properly declared within lexical scope — you never need to write `var` yourself.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('scope', 'inner')
|
||||||
|
```
|
||||||
|
|
||||||
|
Notice how all of the variable declarations have been pushed up to the top of the closest scope, the first time they appear. **outer** is not redeclared within the inner function, because it’s already in scope; **inner** within the function, on the other hand, should not be able to change the value of the external variable of the same name, and therefore has a declaration of its own.
|
||||||
|
|
||||||
|
This behavior is effectively identical to Ruby’s scope for local variables. Because you don’t have direct access to the `var` keyword, it’s impossible to shadow an outer variable on purpose, you may only refer to it. So be careful that you’re not reusing the name of an external variable accidentally, if you’re writing a deeply nested function.
|
||||||
|
|
||||||
|
Although suppressed within this documentation for clarity, all CoffeeScript output is wrapped in an anonymous function: `(function(){ … })();` This safety wrapper, combined with the automatic generation of the `var` keyword, make it exceedingly difficult to pollute the global namespace by accident.
|
||||||
|
|
||||||
|
If you’d like to create top-level variables for other scripts to use, attach them as properties on **window**; attach them as properties on the **exports** object in CommonJS; or use an [`export` statement](#modules). If you’re targeting both CommonJS and the browser, the **existential operator** (covered below), gives you a reliable way to figure out where to add them: `exports ? this`
|
||||||
5
documentation/sections/literate.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Literate CoffeeScript
|
||||||
|
|
||||||
|
Besides being used as an ordinary programming language, CoffeeScript may also be written in “literate” mode. If you name your file with a `.litcoffee` extension, you can write it as a Markdown document — a document that also happens to be executable CoffeeScript code. The compiler will treat any indented blocks (Markdown’s way of indicating source code) as code, and ignore the rest as comments.
|
||||||
|
|
||||||
|
Just for kicks, a little bit of the compiler is currently implemented in this fashion: See it [as a document](https://gist.github.com/jashkenas/3fc3c1a8b1009c00d9df), [raw](https://raw.githubusercontent.com/jashkenas/coffeescript/master/src/scope.litcoffee), and [properly highlighted in a text editor](http://cl.ly/LxEu).
|
||||||
47
documentation/sections/loops.md
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
## Loops and Comprehensions
|
||||||
|
|
||||||
|
Most of the loops you’ll write in CoffeeScript will be **comprehensions** over arrays, objects, and ranges. Comprehensions replace (and compile into) **for** loops, with optional guard clauses and the value of the current array index. Unlike for loops, array comprehensions are expressions, and can be returned and assigned.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('array_comprehensions')
|
||||||
|
```
|
||||||
|
|
||||||
|
Comprehensions should be able to handle most places where you otherwise would use a loop, **each**/**forEach**, **map**, or **select**/**filter**, for example:<br>
|
||||||
|
`shortNames = (name for name in list when name.length < 5)`<br>
|
||||||
|
If you know the start and end of your loop, or would like to step through in fixed-size increments, you can use a range to specify the start and end of your comprehension.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('range_comprehensions', 'countdown')
|
||||||
|
```
|
||||||
|
|
||||||
|
Note how because we are assigning the value of the comprehensions to a variable in the example above, CoffeeScript is collecting the result of each iteration into an array. Sometimes functions end with loops that are intended to run only for their side-effects. Be careful that you’re not accidentally returning the results of the comprehension in these cases, by adding a meaningful return value — like `true` — or `null`, to the bottom of your function.
|
||||||
|
|
||||||
|
To step through a range comprehension in fixed-size chunks, use `by`, for example:
|
||||||
|
`evens = (x for x in [0..10] by 2)`
|
||||||
|
|
||||||
|
If you don’t need the current iteration value you may omit it:
|
||||||
|
`browser.closeCurrentTab() for [0...count]`
|
||||||
|
|
||||||
|
Comprehensions can also be used to iterate over the keys and values in an object. Use `of` to signal comprehension over the properties of an object instead of the values in an array.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('object_comprehensions', 'ages.join(", ")')
|
||||||
|
```
|
||||||
|
|
||||||
|
If you would like to iterate over just the keys that are defined on the object itself, by adding a `hasOwnProperty` check to avoid properties that may be inherited from the prototype, use `for own key, value of object`.
|
||||||
|
|
||||||
|
To iterate a generator function, use `from`. See [Generator Functions](#generator-iteration).
|
||||||
|
|
||||||
|
The only low-level loop that CoffeeScript provides is the **while** loop. The main difference from JavaScript is that the **while** loop can be used as an expression, returning an array containing the result of each iteration through the loop.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('while', 'lyrics.join("\\n")')
|
||||||
|
```
|
||||||
|
|
||||||
|
For readability, the **until** keyword is equivalent to `while not`, and the **loop** keyword is equivalent to `while true`.
|
||||||
|
|
||||||
|
When using a JavaScript loop to generate functions, it’s common to insert a closure wrapper in order to ensure that loop variables are closed over, and all the generated functions don’t just share the final values. CoffeeScript provides the `do` keyword, which immediately invokes a passed function, forwarding any arguments.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('do')
|
||||||
|
```
|
||||||
13
documentation/sections/modules.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
## Modules
|
||||||
|
|
||||||
|
ES2015 modules are supported in CoffeeScript, with very similar `import` and `export` syntax:
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('modules')
|
||||||
|
```
|
||||||
|
|
||||||
|
<div id="modules-note" class="bookmark"></div>
|
||||||
|
|
||||||
|
Note that the CoffeeScript compiler **does not resolve modules**; writing an `import` or `export` statement in CoffeeScript will produce an `import` or `export` statement in the resulting output. It is your responsibility attach another transpiler, such as [Traceur Compiler](https://github.com/google/traceur-compiler), [Babel](http://babeljs.io/) or [Rollup](https://github.com/rollup/rollup), to convert this ES2015 syntax into code that will work in your target runtimes.
|
||||||
|
|
||||||
|
Also note that any file with an `import` or `export` statement will be output without a [top-level function safety wrapper](#lexical-scope); in other words, importing or exporting modules will automatically trigger [bare](#usage) mode for that file. This is because per the ES2015 spec, `import` or `export` statements must occur at the topmost scope.
|
||||||
19
documentation/sections/objects_and_arrays.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
## Objects and Arrays
|
||||||
|
|
||||||
|
The CoffeeScript literals for objects and arrays look very similar to their JavaScript cousins. When each property is listed on its own line, the commas are optional. Objects may be created using indentation instead of explicit braces, similar to [YAML](http://yaml.org).
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('objects_and_arrays', 'song.join(" … ")')
|
||||||
|
```
|
||||||
|
|
||||||
|
In JavaScript, you can’t use reserved words, like `class`, as properties of an object, without quoting them as strings. CoffeeScript notices reserved words used as keys in objects and quotes them for you, so you don’t have to worry about it (say, when using jQuery).
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('objects_reserved')
|
||||||
|
```
|
||||||
|
|
||||||
|
CoffeeScript has a shortcut for creating objects when you want the key to be set with a variable of the same name.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('objects_shorthand')
|
||||||
|
```
|
||||||
45
documentation/sections/operators.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
## Operators and Aliases
|
||||||
|
|
||||||
|
Because the `==` operator frequently causes undesirable coercion, is intransitive, and has a different meaning than in other languages, CoffeeScript compiles `==` into `===`, and `!=` into `!==`. In addition, `is` compiles into `===`, and `isnt` into `!==`.
|
||||||
|
|
||||||
|
You can use `not` as an alias for `!`.
|
||||||
|
|
||||||
|
For logic, `and` compiles to `&&`, and `or` into `||`.
|
||||||
|
|
||||||
|
Instead of a newline or semicolon, `then` can be used to separate conditions from expressions, in **while**, **if**/**else**, and **switch**/**when** statements.
|
||||||
|
|
||||||
|
As in [YAML](http://yaml.org/), `on` and `yes` are the same as boolean `true`, while `off` and `no` are boolean `false`.
|
||||||
|
|
||||||
|
`unless` can be used as the inverse of `if`.
|
||||||
|
|
||||||
|
As a shortcut for `this.property`, you can use `@property`.
|
||||||
|
|
||||||
|
You can use `in` to test for array presence, and `of` to test for JavaScript object-key presence.
|
||||||
|
|
||||||
|
To simplify math expressions, `**` can be used for exponentiation and `//` performs integer division. `%` works just like in JavaScript, while `%%` provides [“dividend dependent modulo”](https://en.wikipedia.org/wiki/Modulo_operation):
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('modulo')
|
||||||
|
```
|
||||||
|
|
||||||
|
All together now:
|
||||||
|
|
||||||
|
| CoffeeScript | JavaScript |
|
||||||
|
| --- | --- |
|
||||||
|
| `is` | `===` |
|
||||||
|
| `isnt` | `!==` |
|
||||||
|
| `not` | `!` |
|
||||||
|
| `and` | `&&` |
|
||||||
|
| `or` | `||` |
|
||||||
|
| `true`, `yes`, `on` | `true` |
|
||||||
|
| `false`, `no`, `off`  | `false` |
|
||||||
|
| `@`, `this` | `this` |
|
||||||
|
| `of` | `in` |
|
||||||
|
| `in` | _no JS equivalent_ |
|
||||||
|
| `a ** b` | `Math.pow(a, b)` |
|
||||||
|
| `a // b` | `Math.floor(a / b)` |
|
||||||
|
| `a %% b` | `(a % b + b) % b` |
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('aliases')
|
||||||
|
```
|
||||||
7
documentation/sections/overview.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Overview
|
||||||
|
|
||||||
|
_CoffeeScript on the left, compiled JavaScript output on the right._
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('overview', 'cubes', false)
|
||||||
|
```
|
||||||
23
documentation/sections/resources.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Resources
|
||||||
|
|
||||||
|
* [Source Code](https://github.com/jashkenas/coffeescript/)<br>
|
||||||
|
Use `bin/coffee` to test your changes,<br>
|
||||||
|
`bin/cake test` to run the test suite,<br>
|
||||||
|
`bin/cake build` to rebuild the full CoffeeScript compiler, and<br>
|
||||||
|
`bin/cake build:except-parser` to recompile much faster if you’re not editing `grammar.coffee`.
|
||||||
|
|
||||||
|
`git checkout lib && bin/cake build:full` is a good command to run when you’re working on the core language. It’ll refresh the `lib` folder (in case you broke something), build your altered compiler, use that to rebuild itself (a good sanity test) and then run all of the tests. If they pass, there’s a good chance you’ve made a successful change.
|
||||||
|
* [Browser Tests](test.html)<br>
|
||||||
|
Run CoffeeScript’s test suite in your current browser.
|
||||||
|
* [CoffeeScript Issues](https://github.com/jashkenas/coffeescript/issues)<br>
|
||||||
|
Bug reports, feature proposals, and ideas for changes to the language belong here.
|
||||||
|
* [CoffeeScript Google Group](https://groups.google.com/forum/#!forum/coffeescript)<br>
|
||||||
|
If you’d like to ask a question, the mailing list is a good place to get help.
|
||||||
|
* [The CoffeeScript Wiki](https://github.com/jashkenas/coffeescript/wiki)<br>
|
||||||
|
If you’ve ever learned a neat CoffeeScript tip or trick, or ran into a gotcha — share it on the wiki. The wiki also serves as a directory of handy [text editor extensions](https://github.com/jashkenas/coffeescript/wiki/Text-editor-plugins), [web framework plugins](https://github.com/jashkenas/coffeescript/wiki/Web-framework-plugins), and general [CoffeeScript build tools](https://github.com/jashkenas/coffeescript/wiki/Build-tools).
|
||||||
|
* [The FAQ](https://github.com/jashkenas/coffeescript/wiki/FAQ)<br>
|
||||||
|
Perhaps your CoffeeScript-related question has been asked before. Check the FAQ first.
|
||||||
|
* [JS2Coffee](http://js2coffee.org)<br>
|
||||||
|
Is a very well done reverse JavaScript-to-CoffeeScript compiler. It’s not going to be perfect (infer what your JavaScript classes are, when you need bound functions, and so on…) — but it’s a great starting point for converting simple scripts.
|
||||||
|
* [High-Rez Logo](https://github.com/jashkenas/coffeescript/tree/master/documentation/images)<br>
|
||||||
|
The CoffeeScript logo is available in SVG for use in presentations.
|
||||||
5
documentation/sections/screencasts.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Screencasts
|
||||||
|
|
||||||
|
* [A Sip of CoffeeScript](http://coffeescript.codeschool.com/) is a [Code School Course](https://www.codeschool.com) which combines 6 screencasts with in-browser coding to make learning fun. The first level is free to try out.
|
||||||
|
* [Meet CoffeeScript](https://www.pluralsight.com/courses/meet-coffeescript) is a 75-minute long screencast by PeepCode, now [PluralSight](https://www.pluralsight.com/). Highly memorable for its animations which demonstrate transforming CoffeeScript into the equivalent JS.
|
||||||
|
* If you’re looking for less of a time commitment, RailsCasts’ [CoffeeScript Basics](http://railscasts.com/episodes/267-coffeescript-basics) should have you covered, hitting all of the important notes about CoffeeScript in 11 minutes.
|
||||||
7
documentation/sections/scripts.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## "text/coffeescript" Script Tags
|
||||||
|
|
||||||
|
While it’s not recommended for serious use, CoffeeScripts may be included directly within the browser using `<script type="text/coffeescript">` tags. The source includes a compressed and minified version of the compiler ([Download current version here, 51k when gzipped](browser-compiler/coffee-script.js)) as `docs/v1/browser-compiler/coffee-script.js`. Include this file on a page with inline CoffeeScript tags, and it will compile and evaluate them in order.
|
||||||
|
|
||||||
|
In fact, the little bit of glue script that runs “Try CoffeeScript” above, as well as the jQuery for the menu, is implemented in just this way. View source and look at the bottom of the page to see the example. Including the script also gives you access to `CoffeeScript.compile()` so you can pop open Firebug and try compiling some strings.
|
||||||
|
|
||||||
|
The usual caveats about CoffeeScript apply — your inline scripts will run within a closure wrapper, so if you want to expose global variables or functions, attach them to the `window` object.
|
||||||
15
documentation/sections/slices.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
## Array Slicing and Splicing with Ranges
|
||||||
|
|
||||||
|
Ranges can also be used to extract slices of arrays. With two dots (`3..6`), the range is inclusive (`3, 4, 5, 6`); with three dots (`3...6`), the range excludes the end (`3, 4, 5`). Slices indices have useful defaults. An omitted first index defaults to zero and an omitted second index defaults to the size of the array.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('slices', 'middle')
|
||||||
|
```
|
||||||
|
|
||||||
|
The same syntax can be used with assignment to replace a segment of an array with new values, splicing it.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('splices', 'numbers')
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that JavaScript strings are immutable, and can’t be spliced.
|
||||||
5
documentation/sections/source_maps.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
## Source Maps
|
||||||
|
|
||||||
|
CoffeeScript 1.6.1 and above include support for generating source maps, a way to tell your JavaScript engine what part of your CoffeeScript program matches up with the code being evaluated. Browsers that support it can automatically use source maps to show your original source code in the debugger. To generate source maps alongside your JavaScript files, pass the `--map` or `-m` flag to the compiler.
|
||||||
|
|
||||||
|
For a full introduction to source maps, how they work, and how to hook them up in your browser, read the [HTML5 Tutorial](https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/).
|
||||||
7
documentation/sections/splats.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Splats…
|
||||||
|
|
||||||
|
The JavaScript **arguments object** is a useful way to work with functions that accept variable numbers of arguments. CoffeeScript provides splats `...`, both for function definition as well as invocation, making variable numbers of arguments a little bit more palatable.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('splats', true)
|
||||||
|
```
|
||||||
27
documentation/sections/strings.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
## String Interpolation, Block Strings, and Block Comments
|
||||||
|
|
||||||
|
Ruby-style string interpolation is included in CoffeeScript. Double-quoted strings allow for interpolated values, using `#{ … }`, and single-quoted strings are literal. You may even use interpolation in object keys.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('interpolation', 'sentence')
|
||||||
|
```
|
||||||
|
|
||||||
|
Multiline strings are allowed in CoffeeScript. Lines are joined by a single space unless they end with a backslash. Indentation is ignored.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('strings', 'mobyDick')
|
||||||
|
```
|
||||||
|
|
||||||
|
Block strings can be used to hold formatted or indentation-sensitive text (or, if you just don’t feel like escaping quotes and apostrophes). The indentation level that begins the block is maintained throughout, so you can keep it all aligned with the body of your code.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('heredocs', 'html')
|
||||||
|
```
|
||||||
|
|
||||||
|
Double-quoted block strings, like other double-quoted strings, allow interpolation.
|
||||||
|
|
||||||
|
Sometimes you’d like to pass a block comment through to the generated JavaScript. For example, when you need to embed a licensing header at the top of a file. Block comments, which mirror the syntax for block strings, are preserved in the generated code.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('block_comment')
|
||||||
|
```
|
||||||
15
documentation/sections/switch.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
## Switch/When/Else
|
||||||
|
|
||||||
|
**Switch** statements in JavaScript are a bit awkward. You need to remember to **break** at the end of every **case** statement to avoid accidentally falling through to the default case. CoffeeScript prevents accidental fall-through, and can convert the `switch` into a returnable, assignable expression. The format is: `switch` condition, `when` clauses, `else` the default case.
|
||||||
|
|
||||||
|
As in Ruby, **switch** statements in CoffeeScript can take multiple values for each **when** clause. If any of the values match, the clause runs.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('switch')
|
||||||
|
```
|
||||||
|
|
||||||
|
Switch statements can also be used without a control expression, turning them in to a cleaner alternative to if/else chains.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('switch_with_no_expression')
|
||||||
|
```
|
||||||
9
documentation/sections/tagged_template_literals.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
## Tagged Template Literals
|
||||||
|
|
||||||
|
CoffeeScript supports [ES2015 tagged template literals](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals), which enable customized string interpolation. If you immediately prefix a string with a function name (no space between the two), CoffeeScript will output this “function plus string” combination as an ES2015 tagged template literal, which will [behave accordingly](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals#Tagged_template_literals): the function is called, with the parameters being the input text and expression parts that make up the interpolated string. The function can then assemble these parts into an output string, providing custom string interpolation.
|
||||||
|
|
||||||
|
Be aware that the CoffeeScript compiler is outputting ES2015 syntax for this feature, so your target JavaScript runtime(s) must support this syntax for your code to work; or you could use tools like [Babel](http://babeljs.io/) or [Traceur Compiler](https://github.com/google/traceur-compiler) to convert this ES2015 syntax into compatible JavaScript.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('tagged_template_literals', 'greet("greg", "awesome")')
|
||||||
|
```
|
||||||
7
documentation/sections/try.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Try/Catch/Finally
|
||||||
|
|
||||||
|
Try-expressions have the same semantics as try-statements in JavaScript, though in CoffeeScript, you may omit _both_ the catch and finally parts. The catch part may also omit the error parameter if it is not needed.
|
||||||
|
|
||||||
|
```
|
||||||
|
codeFor('try')
|
||||||
|
```
|
||||||
37
documentation/sections/usage.md
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
## Usage
|
||||||
|
|
||||||
|
Once installed, you should have access to the `coffee` command, which can execute scripts, compile `.coffee` files into `.js`, and provide an interactive REPL. The `coffee` command takes the following options:
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| `-c, --compile` | Compile a `.coffee` script into a `.js` JavaScript file of the same name. |
|
||||||
|
| `-m, --map` | Generate source maps alongside the compiled JavaScript files. Adds `sourceMappingURL` directives to the JavaScript as well. |
|
||||||
|
| `-M, --inline-map` | Just like `--map`, but include the source map directly in the compiled JavaScript files, rather than in a separate file. |
|
||||||
|
| `-i, --interactive` | Launch an interactive CoffeeScript session to try short snippets. Identical to calling `coffee` with no arguments. |
|
||||||
|
| `-o, --output [DIR]` | Write out all compiled JavaScript files into the specified directory. Use in conjunction with `--compile` or `--watch`. |
|
||||||
|
| `-w, --watch` | Watch files for changes, rerunning the specified command when any file is updated. |
|
||||||
|
| `-p, --print` | Instead of writing out the JavaScript as a file, print it directly to **stdout**. |
|
||||||
|
| `-s, --stdio` | Pipe in CoffeeScript to STDIN and get back JavaScript over STDOUT. Good for use with processes written in other languages. An example:<br>`cat src/cake.coffee | coffee -sc` |
|
||||||
|
| `-l, --literate` | Parses the code as Literate CoffeeScript. You only need to specify this when passing in code directly over **stdio**, or using some sort of extension-less file name. |
|
||||||
|
| `-e, --eval` | Compile and print a little snippet of CoffeeScript directly from the command line. For example:<br>`coffee -e "console.log num for num in [10..1]"` |
|
||||||
|
| `-r, --require [MODULE]`  | `require()` the given module before starting the REPL or evaluating the code given with the `--eval` flag. |
|
||||||
|
| `-b, --bare` | Compile the JavaScript without the [top-level function safety wrapper](#lexical-scope). |
|
||||||
|
| `-t, --tokens` | Instead of parsing the CoffeeScript, just lex it, and print out the token stream. Used for debugging the compiler. |
|
||||||
|
| `-n, --nodes` | Instead of compiling the CoffeeScript, just lex and parse it, and print out the parse tree. Used for debugging the compiler. |
|
||||||
|
| `--nodejs` | The `node` executable has some useful options you can set, such as `--debug`, `--debug-brk`, `--max-stack-size`, and `--expose-gc`. Use this flag to forward options directly to Node.js. To pass multiple flags, use `--nodejs` multiple times. |
|
||||||
|
| `--no-header` | Suppress the “Generated by CoffeeScript” header. |
|
||||||
|
|
||||||
|
### Examples:
|
||||||
|
|
||||||
|
* Compile a directory tree of `.coffee` files in `src` into a parallel tree of `.js` files in `lib`:<br>
|
||||||
|
`coffee --compile --output lib/ src/`
|
||||||
|
* Watch a file for changes, and recompile it every time the file is saved:<br>
|
||||||
|
`coffee --watch --compile experimental.coffee`
|
||||||
|
* Concatenate a list of files into a single script:<br>
|
||||||
|
`coffee --join project.js --compile src/*.coffee`
|
||||||
|
* Print out the compiled JS from a one-liner:<br>
|
||||||
|
`coffee -bpe "alert i for i in [0..10]"`
|
||||||
|
* All together now, watch and recompile an entire project as you work on it:<br>
|
||||||
|
`coffee -o lib/ -cw src/`
|
||||||
|
* Start the CoffeeScript REPL (`Ctrl-D` to exit, `Ctrl-V`for multi-line):<br>
|
||||||
|
`coffee`
|
||||||
@@ -85,6 +85,8 @@ say = (msg, className) ->
|
|||||||
if err
|
if err
|
||||||
if typeof err is 'function' and e instanceof err # Handle comparing exceptions
|
if typeof err is 'function' and e instanceof err # Handle comparing exceptions
|
||||||
ok yes
|
ok yes
|
||||||
|
else if e.toString().indexOf('[stdin]') is 0 # Handle comparing error messages
|
||||||
|
ok err e
|
||||||
else
|
else
|
||||||
eq e, err
|
eq e, err
|
||||||
else
|
else
|
||||||
|
|||||||
155
documentation/v1/body.html
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
<div id="fadeout"></div>
|
||||||
|
|
||||||
|
<div id="flybar">
|
||||||
|
<a id="logo" href="#top"><%= include('documentation/images/logo.svg') %></a>
|
||||||
|
<div class="navigation toc">
|
||||||
|
<div class="button">
|
||||||
|
Table of Contents
|
||||||
|
</div>
|
||||||
|
<div class="contents menu">
|
||||||
|
<a href="#overview">Overview</a>
|
||||||
|
<a href="#installation">Installation</a>
|
||||||
|
<a href="#usage">Usage</a>
|
||||||
|
<a href="#literate">Literate CoffeeScript</a>
|
||||||
|
<a href="#language">Language Reference</a>
|
||||||
|
<a href="#literals">Literals: Functions, Objects and Arrays</a>
|
||||||
|
<a href="#lexical-scope">Lexical Scoping and Variable Safety</a>
|
||||||
|
<a href="#conditionals">If, Else, Unless, and Conditional Assignment</a>
|
||||||
|
<a href="#splats">Splats…</a>
|
||||||
|
<a href="#loops">Loops and Comprehensions</a>
|
||||||
|
<a href="#slices">Array Slicing and Splicing</a>
|
||||||
|
<a href="#expressions">Everything is an Expression</a>
|
||||||
|
<a href="#operators">Operators and Aliases</a>
|
||||||
|
<a href="#existential-operator">Existential Operator</a>
|
||||||
|
<a href="#classes">Classes, Inheritance, and Super</a>
|
||||||
|
<a href="#destructuring">Destructuring Assignment</a>
|
||||||
|
<a href="#fat-arrow">Bound and Generator Functions</a>
|
||||||
|
<a href="#embedded">Embedded JavaScript</a>
|
||||||
|
<a href="#switch">Switch and Try/Catch</a>
|
||||||
|
<a href="#comparisons">Chained Comparisons</a>
|
||||||
|
<a href="#strings">String Interpolation, Block Strings, and Block Comments</a>
|
||||||
|
<a href="#tagged-template-literals">Tagged Template Literals</a>
|
||||||
|
<a href="#regexes">Block Regular Expressions</a>
|
||||||
|
<a href="#modules">Modules</a>
|
||||||
|
<a href="#cake">Cake, and Cakefiles</a>
|
||||||
|
<a href="#source-maps">Source Maps</a>
|
||||||
|
<a href="#scripts">"text/coffeescript" Script Tags</a>
|
||||||
|
<a href="#resources">Books, Screencasts, Examples and Resources</a>
|
||||||
|
<a href="#changelog">Change Log</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="navigation try">
|
||||||
|
<div class="button">
|
||||||
|
Try CoffeeScript
|
||||||
|
<div class="repl_bridge"></div>
|
||||||
|
</div>
|
||||||
|
<div class="contents repl_wrapper">
|
||||||
|
<div class="code">
|
||||||
|
<div class="screenshadow tl"></div>
|
||||||
|
<div class="screenshadow tr"></div>
|
||||||
|
<div class="screenshadow bl"></div>
|
||||||
|
<div class="screenshadow br"></div>
|
||||||
|
<div id="repl_source_wrap">
|
||||||
|
<textarea id="repl_source" rows="100" spellcheck="false">alert "Hello CoffeeScript!"</textarea>
|
||||||
|
</div>
|
||||||
|
<div id="repl_results_wrap"><pre id="repl_results"></pre></div>
|
||||||
|
<div class="minibutton dark run" title="Ctrl-Enter">Run</div>
|
||||||
|
<a class="minibutton permalink" id="repl_permalink">Link</a>
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="navigation annotated">
|
||||||
|
<div class="button">
|
||||||
|
Annotated Source
|
||||||
|
</div>
|
||||||
|
<div class="contents menu">
|
||||||
|
<a href="annotated-source/grammar.html">Grammar Rules — src/grammar</a>
|
||||||
|
<a href="annotated-source/lexer.html">Lexing Tokens — src/lexer</a>
|
||||||
|
<a href="annotated-source/rewriter.html">The Rewriter — src/rewriter</a>
|
||||||
|
<a href="annotated-source/nodes.html">The Syntax Tree — src/nodes</a>
|
||||||
|
<a href="annotated-source/scope.html">Lexical Scope — src/scope</a>
|
||||||
|
<a href="annotated-source/helpers.html">Helpers & Utility Functions — src/helpers</a>
|
||||||
|
<a href="annotated-source/coffee-script.html">The CoffeeScript Module — src/coffee-script</a>
|
||||||
|
<a href="annotated-source/cake.html">Cake & Cakefiles — src/cake</a>
|
||||||
|
<a href="annotated-source/command.html">“coffee” Command-Line Utility — src/command</a>
|
||||||
|
<a href="annotated-source/optparse.html">Option Parsing — src/optparse</a>
|
||||||
|
<a href="annotated-source/repl.html">Interactive REPL — src/repl</a>
|
||||||
|
<a href="annotated-source/sourcemap.html">Source Maps — src/sourcemap</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="top" class="container">
|
||||||
|
<span class="bookmark" id="overview"></span>
|
||||||
|
<%= htmlFor('introduction') %>
|
||||||
|
<%= htmlFor('overview') %>
|
||||||
|
<span class="bookmark" id="installation"></span>
|
||||||
|
<%= htmlFor('installation') %>
|
||||||
|
<span class="bookmark" id="usage"></span>
|
||||||
|
<%= htmlFor('usage') %>
|
||||||
|
<span class="bookmark" id="literate"></span>
|
||||||
|
<%= htmlFor('literate') %>
|
||||||
|
<span class="bookmark" id="language"></span>
|
||||||
|
<%= htmlFor('language') %>
|
||||||
|
<span class="bookmark" id="literals"></span>
|
||||||
|
<%= htmlFor('functions') %>
|
||||||
|
<span class="bookmark" id="objects-and-arrays"></span>
|
||||||
|
<%= htmlFor('objects_and_arrays') %>
|
||||||
|
<span class="bookmark" id="lexical-scope"></span>
|
||||||
|
<%= htmlFor('lexical_scope') %>
|
||||||
|
<span class="bookmark" id="conditionals"></span>
|
||||||
|
<%= htmlFor('conditionals') %>
|
||||||
|
<span class="bookmark" id="splats"></span>
|
||||||
|
<%= htmlFor('splats') %>
|
||||||
|
<span class="bookmark" id="loops"></span>
|
||||||
|
<%= htmlFor('loops') %>
|
||||||
|
<span class="bookmark" id="slices"></span>
|
||||||
|
<%= htmlFor('slices') %>
|
||||||
|
<span class="bookmark" id="expressions"></span>
|
||||||
|
<%= htmlFor('expressions') %>
|
||||||
|
<span class="bookmark" id="operators"></span>
|
||||||
|
<%= htmlFor('operators') %>
|
||||||
|
<span class="bookmark" id="existential-operator"></span>
|
||||||
|
<%= htmlFor('existential_operator') %>
|
||||||
|
<span class="bookmark" id="classes"></span>
|
||||||
|
<%= htmlFor('classes') %>
|
||||||
|
<span class="bookmark" id="destructuring"></span>
|
||||||
|
<%= htmlFor('destructuring') %>
|
||||||
|
<span class="bookmark" id="fat-arrow"></span>
|
||||||
|
<%= htmlFor('fat_arrow') %>
|
||||||
|
<span class="bookmark" id="embedded"></span>
|
||||||
|
<%= htmlFor('embedded') %>
|
||||||
|
<span class="bookmark" id="switch"></span>
|
||||||
|
<%= htmlFor('switch') %>
|
||||||
|
<span class="bookmark" id="try-catch"></span>
|
||||||
|
<%= htmlFor('try') %>
|
||||||
|
<span class="bookmark" id="comparisons"></span>
|
||||||
|
<%= htmlFor('comparisons') %>
|
||||||
|
<span class="bookmark" id="strings"></span>
|
||||||
|
<%= htmlFor('strings') %>
|
||||||
|
<span class="bookmark" id="tagged-template-literals"></span>
|
||||||
|
<%= htmlFor('tagged_template_literals') %>
|
||||||
|
<span class="bookmark" id="regexes"></span>
|
||||||
|
<%= htmlFor('heregexes') %>
|
||||||
|
<span class="bookmark" id="modules"></span>
|
||||||
|
<%= htmlFor('modules') %>
|
||||||
|
<span class="bookmark" id="cake"></span>
|
||||||
|
<%= htmlFor('cake') %>
|
||||||
|
<span class="bookmark" id="source-maps"></span>
|
||||||
|
<%= htmlFor('source_maps') %>
|
||||||
|
<span class="bookmark" id="scripts"></span>
|
||||||
|
<%= htmlFor('scripts') %>
|
||||||
|
<span class="bookmark" id="resources"></span>
|
||||||
|
<%= htmlFor('books') %>
|
||||||
|
<span class="bookmark" id="screencasts"></span>
|
||||||
|
<%= htmlFor('screencasts') %>
|
||||||
|
<span class="bookmark" id="examples"></span>
|
||||||
|
<%= htmlFor('examples') %>
|
||||||
|
<span class="bookmark" id="additional-resources"></span>
|
||||||
|
<%= htmlFor('resources') %>
|
||||||
|
<span class="bookmark" id="chat"></span>
|
||||||
|
<%= htmlFor('chat') %>
|
||||||
|
<span class="bookmark" id="changelog"></span>
|
||||||
|
<%= htmlFor('changelog') %>
|
||||||
|
</div>
|
||||||
25
documentation/v1/code.coffee
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
fs = require 'fs'
|
||||||
|
CoffeeScript = require '../../lib/coffee-script'
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = ->
|
||||||
|
counter = 0
|
||||||
|
hljs = require 'highlight.js'
|
||||||
|
hljs.configure classPrefix: ''
|
||||||
|
(file, executable = no, showLoad = yes) ->
|
||||||
|
counter++
|
||||||
|
cs = fs.readFileSync "documentation/examples/#{file}.coffee", 'utf-8'
|
||||||
|
js = CoffeeScript.compile cs, bare: yes
|
||||||
|
js = js.replace /^\/\/ generated.*?\n/i, ''
|
||||||
|
|
||||||
|
cshtml = "<pre><code>#{hljs.highlight('coffeescript', cs).value}</code></pre>"
|
||||||
|
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
|
||||||
|
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '"'
|
||||||
|
if executable and executable isnt yes
|
||||||
|
cs.replace /(\S)\s*\Z/m, "$1\n\nalert #{executable}"
|
||||||
|
run = if executable is yes then 'run' else "run: #{executable}"
|
||||||
|
name = "example#{counter}"
|
||||||
|
script = "<script>window.#{name} = #{JSON.stringify cs}</script>"
|
||||||
|
load = if showLoad then "<div class='minibutton load' onclick='javascript: loadConsole(#{name});'>load</div>" else ''
|
||||||
|
button = if executable then """<div class="minibutton ok" onclick="javascript: #{js.replace /"/g, '"'};#{append}">#{run}</div>""" else ''
|
||||||
|
"<div class='code'>#{cshtml}#{jshtml}#{script}#{load}#{button}<br class='clear' /></div>"
|
||||||
95
documentation/v1/docs.coffee
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
sourceFragment = "try:"
|
||||||
|
|
||||||
|
# Set up the compilation function, to run when you stop typing.
|
||||||
|
compileSource = ->
|
||||||
|
source = $('#repl_source').val()
|
||||||
|
results = $('#repl_results')
|
||||||
|
window.compiledJS = ''
|
||||||
|
try
|
||||||
|
window.compiledJS = CoffeeScript.compile source, bare: on
|
||||||
|
el = results[0]
|
||||||
|
if el.innerText
|
||||||
|
el.innerText = window.compiledJS
|
||||||
|
else
|
||||||
|
results.text(window.compiledJS)
|
||||||
|
results.removeClass 'error'
|
||||||
|
$('.minibutton.run').removeClass 'error'
|
||||||
|
catch {location, message}
|
||||||
|
if location?
|
||||||
|
message = "Error on line #{location.first_line + 1}: #{message}"
|
||||||
|
results.text(message).addClass 'error'
|
||||||
|
$('.minibutton.run').addClass 'error'
|
||||||
|
|
||||||
|
# Update permalink
|
||||||
|
$('#repl_permalink').attr 'href', "##{sourceFragment}#{encodeURIComponent source}"
|
||||||
|
|
||||||
|
# Listen for keypresses and recompile.
|
||||||
|
$('#repl_source').keyup -> compileSource()
|
||||||
|
|
||||||
|
# Use tab key to insert tabs
|
||||||
|
$('#repl_source').keydown (e) ->
|
||||||
|
if e.keyCode is 9
|
||||||
|
e.preventDefault()
|
||||||
|
textbox = e.target
|
||||||
|
# Insert tab character at caret or in selection
|
||||||
|
textbox.value = textbox.value[0...textbox.selectionStart] + "\t" + textbox.value[textbox.selectionEnd...]
|
||||||
|
# Put caret in correct position
|
||||||
|
textbox.selectionEnd = ++textbox.selectionStart
|
||||||
|
|
||||||
|
# Eval the compiled js.
|
||||||
|
evalJS = ->
|
||||||
|
try
|
||||||
|
eval window.compiledJS
|
||||||
|
catch error then alert error
|
||||||
|
|
||||||
|
# Load the console with a string of CoffeeScript.
|
||||||
|
window.loadConsole = (coffee) ->
|
||||||
|
$('#repl_source').val coffee
|
||||||
|
compileSource()
|
||||||
|
$('.navigation.try').addClass('active')
|
||||||
|
false
|
||||||
|
|
||||||
|
# Helper to hide the menus.
|
||||||
|
closeMenus = ->
|
||||||
|
$('.navigation.active').removeClass 'active'
|
||||||
|
|
||||||
|
$('.minibutton.run').click -> evalJS()
|
||||||
|
|
||||||
|
# Bind navigation buttons to open the menus.
|
||||||
|
$('.navigation').click (e) ->
|
||||||
|
return if e.target.tagName.toLowerCase() is 'a'
|
||||||
|
return false if $(e.target).closest('.repl_wrapper').length
|
||||||
|
if $(this).hasClass('active')
|
||||||
|
closeMenus()
|
||||||
|
else
|
||||||
|
closeMenus()
|
||||||
|
$(this).addClass 'active'
|
||||||
|
false
|
||||||
|
|
||||||
|
$(document).on 'click', '[href="#try"]', (e) ->
|
||||||
|
$('.navigation.try').addClass 'active'
|
||||||
|
|
||||||
|
# Dismiss console if Escape pressed or click falls outside console
|
||||||
|
# Trigger Run button on Ctrl-Enter
|
||||||
|
$(document.body)
|
||||||
|
.keydown (e) ->
|
||||||
|
closeMenus() if e.which == 27
|
||||||
|
evalJS() if e.which == 13 and (e.metaKey or e.ctrlKey) and $('.minibutton.run:visible').length
|
||||||
|
.click (e) ->
|
||||||
|
return false if $(e.target).hasClass('minibutton')
|
||||||
|
closeMenus()
|
||||||
|
|
||||||
|
$('#open_webchat').click ->
|
||||||
|
$(this).replaceWith $('<iframe src="http://webchat.freenode.net/?channels=coffeescript" width="625" height="400"></iframe>')
|
||||||
|
|
||||||
|
$("#repl_permalink").click (e) ->
|
||||||
|
window.location = $(this).attr("href")
|
||||||
|
false
|
||||||
|
|
||||||
|
# If source code is included in location.hash, display it.
|
||||||
|
hash = decodeURIComponent location.hash.replace(/^#/, '')
|
||||||
|
if hash.indexOf(sourceFragment) == 0
|
||||||
|
src = hash.substr sourceFragment.length
|
||||||
|
loadConsole src
|
||||||
|
|
||||||
|
compileSource()
|
||||||
6
documentation/v1/scripts.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<script type="text/coffeescript">
|
||||||
|
<%= include('docs.coffee') %>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||||
|
<script src="browser-compiler/coffee-script.js"></script>
|
||||||
4
documentation/v1/styles.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<style>
|
||||||
|
<%= include('docs.css') %>
|
||||||
|
<%= include('tomorrow.css') %>
|
||||||
|
</style>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
|
/* Highlight.js syntax highlighting */
|
||||||
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
|
||||||
/* Original code:; http://softwaremaniacs.org/media/soft/highlight/styles/tomorrow.css */
|
/* Forked from http://softwaremaniacs.org/media/soft/highlight/styles/tomorrow.css */
|
||||||
/* But forked for CoffeeScript */
|
|
||||||
.tomorrow-comment, pre .comment, pre .title {
|
.tomorrow-comment, pre .comment, pre .title {
|
||||||
color: #8e908c;
|
color: #8e908c;
|
||||||
}
|
}
|
||||||
@@ -49,12 +49,6 @@ pre .class .title {
|
|||||||
color: #21439C;
|
color: #21439C;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code {
|
|
||||||
display: block;
|
|
||||||
background: white;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre .coffeescript .javascript,
|
pre .coffeescript .javascript,
|
||||||
pre .javascript .xml,
|
pre .javascript .xml,
|
||||||
pre .tex .formula,
|
pre .tex .formula,
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var CoffeeScript, compile, runScripts,
|
var CoffeeScript, compile, runScripts,
|
||||||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;
|
var CoffeeScript, cakefileDirectory, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var Lexer, SourceMap, base64encode, compile, ext, fn1, formatSourcePosition, fs, getSourceMap, helpers, i, len, lexer, parser, path, ref, sourceMaps, vm, withPrettyErrors,
|
var Lexer, SourceMap, base64encode, compile, ext, fn1, formatSourcePosition, fs, getSourceMap, helpers, i, len, lexer, packageJson, parser, path, ref, sourceMaps, sources, vm, withPrettyErrors,
|
||||||
hasProp = {}.hasOwnProperty;
|
hasProp = {}.hasOwnProperty;
|
||||||
|
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
@@ -17,7 +17,9 @@
|
|||||||
|
|
||||||
SourceMap = require('./sourcemap');
|
SourceMap = require('./sourcemap');
|
||||||
|
|
||||||
exports.VERSION = '1.12.0';
|
packageJson = require('../../package.json');
|
||||||
|
|
||||||
|
exports.VERSION = packageJson.version;
|
||||||
|
|
||||||
exports.FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md'];
|
exports.FILE_EXTENSIONS = ['.coffee', '.litcoffee', '.coffee.md'];
|
||||||
|
|
||||||
@@ -54,11 +56,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sources = {};
|
||||||
|
|
||||||
|
sourceMaps = {};
|
||||||
|
|
||||||
exports.compile = compile = withPrettyErrors(function(code, options) {
|
exports.compile = compile = withPrettyErrors(function(code, options) {
|
||||||
var currentColumn, currentLine, encoded, extend, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, merge, newLines, ref, ref1, sourceMapDataURI, sourceURL, token, tokens, v3SourceMap;
|
var currentColumn, currentLine, encoded, extend, filename, fragment, fragments, generateSourceMap, header, i, j, js, len, len1, map, merge, newLines, ref, ref1, sourceMapDataURI, sourceURL, token, tokens, v3SourceMap;
|
||||||
merge = helpers.merge, extend = helpers.extend;
|
merge = helpers.merge, extend = helpers.extend;
|
||||||
options = extend({}, options);
|
options = extend({}, options);
|
||||||
generateSourceMap = options.sourceMap || options.inlineMap;
|
generateSourceMap = options.sourceMap || options.inlineMap || (options.filename == null);
|
||||||
|
filename = options.filename || '<anonymous>';
|
||||||
|
sources[filename] = code;
|
||||||
if (generateSourceMap) {
|
if (generateSourceMap) {
|
||||||
map = new SourceMap;
|
map = new SourceMap;
|
||||||
}
|
}
|
||||||
@@ -117,6 +125,7 @@
|
|||||||
}
|
}
|
||||||
if (generateSourceMap) {
|
if (generateSourceMap) {
|
||||||
v3SourceMap = map.generate(options, code);
|
v3SourceMap = map.generate(options, code);
|
||||||
|
sourceMaps[filename] = map;
|
||||||
}
|
}
|
||||||
if (options.inlineMap) {
|
if (options.inlineMap) {
|
||||||
encoded = base64encode(JSON.stringify(v3SourceMap));
|
encoded = base64encode(JSON.stringify(v3SourceMap));
|
||||||
@@ -153,9 +162,9 @@
|
|||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
mainModule = require.main;
|
mainModule = require.main;
|
||||||
mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : '.';
|
mainModule.filename = process.argv[1] = options.filename ? fs.realpathSync(options.filename) : '<anonymous>';
|
||||||
mainModule.moduleCache && (mainModule.moduleCache = {});
|
mainModule.moduleCache && (mainModule.moduleCache = {});
|
||||||
dir = options.filename ? path.dirname(fs.realpathSync(options.filename)) : fs.realpathSync('.');
|
dir = options.filename != null ? path.dirname(fs.realpathSync(options.filename)) : fs.realpathSync('.');
|
||||||
mainModule.paths = require('module')._nodeModulePaths(dir);
|
mainModule.paths = require('module')._nodeModulePaths(dir);
|
||||||
if (!helpers.isCoffee(mainModule.filename) || require.extensions) {
|
if (!helpers.isCoffee(mainModule.filename) || require.extensions) {
|
||||||
answer = compile(code, options);
|
answer = compile(code, options);
|
||||||
@@ -320,25 +329,25 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
formatSourcePosition = function(frame, getSourceMapping) {
|
formatSourcePosition = function(frame, getSourceMapping) {
|
||||||
var as, column, fileLocation, fileName, functionName, isConstructor, isMethodCall, line, methodName, source, tp, typeName;
|
var as, column, fileLocation, filename, functionName, isConstructor, isMethodCall, line, methodName, source, tp, typeName;
|
||||||
fileName = void 0;
|
filename = void 0;
|
||||||
fileLocation = '';
|
fileLocation = '';
|
||||||
if (frame.isNative()) {
|
if (frame.isNative()) {
|
||||||
fileLocation = "native";
|
fileLocation = "native";
|
||||||
} else {
|
} else {
|
||||||
if (frame.isEval()) {
|
if (frame.isEval()) {
|
||||||
fileName = frame.getScriptNameOrSourceURL();
|
filename = frame.getScriptNameOrSourceURL();
|
||||||
if (!fileName) {
|
if (!filename) {
|
||||||
fileLocation = (frame.getEvalOrigin()) + ", ";
|
fileLocation = (frame.getEvalOrigin()) + ", ";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fileName = frame.getFileName();
|
filename = frame.getFileName();
|
||||||
}
|
}
|
||||||
fileName || (fileName = "<anonymous>");
|
filename || (filename = "<anonymous>");
|
||||||
line = frame.getLineNumber();
|
line = frame.getLineNumber();
|
||||||
column = frame.getColumnNumber();
|
column = frame.getColumnNumber();
|
||||||
source = getSourceMapping(fileName, line, column);
|
source = getSourceMapping(filename, line, column);
|
||||||
fileLocation = source ? fileName + ":" + source[0] + ":" + source[1] : fileName + ":" + line + ":" + column;
|
fileLocation = source ? filename + ":" + source[0] + ":" + source[1] : filename + ":" + line + ":" + column;
|
||||||
}
|
}
|
||||||
functionName = frame.getFunctionName();
|
functionName = frame.getFunctionName();
|
||||||
isConstructor = frame.isConstructor();
|
isConstructor = frame.isConstructor();
|
||||||
@@ -367,22 +376,22 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceMaps = {};
|
|
||||||
|
|
||||||
getSourceMap = function(filename) {
|
getSourceMap = function(filename) {
|
||||||
var answer, j, len1, ref1;
|
var answer;
|
||||||
if (sourceMaps[filename]) {
|
if (sourceMaps[filename] != null) {
|
||||||
return sourceMaps[filename];
|
return sourceMaps[filename];
|
||||||
|
} else if (sourceMaps['<anonymous>'] != null) {
|
||||||
|
return sourceMaps['<anonymous>'];
|
||||||
|
} else if (sources[filename] != null) {
|
||||||
|
answer = compile(sources[filename], {
|
||||||
|
filename: filename,
|
||||||
|
sourceMap: true,
|
||||||
|
literate: helpers.isLiterate(filename)
|
||||||
|
});
|
||||||
|
return answer.sourceMap;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
ref1 = exports.FILE_EXTENSIONS;
|
|
||||||
for (j = 0, len1 = ref1.length; j < len1; j++) {
|
|
||||||
ext = ref1[j];
|
|
||||||
if (helpers.ends(filename, ext)) {
|
|
||||||
answer = exports._compileFile(filename, true);
|
|
||||||
return sourceMaps[filename] = answer.sourceMap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Error.prepareStackTrace = function(err, stack) {
|
Error.prepareStackTrace = function(err, stack) {
|
||||||
@@ -390,10 +399,10 @@
|
|||||||
getSourceMapping = function(filename, line, column) {
|
getSourceMapping = function(filename, line, column) {
|
||||||
var answer, sourceMap;
|
var answer, sourceMap;
|
||||||
sourceMap = getSourceMap(filename);
|
sourceMap = getSourceMap(filename);
|
||||||
if (sourceMap) {
|
if (sourceMap != null) {
|
||||||
answer = sourceMap.sourceLocation([line - 1, column - 1]);
|
answer = sourceMap.sourceLocation([line - 1, column - 1]);
|
||||||
}
|
}
|
||||||
if (answer) {
|
if (answer != null) {
|
||||||
return [answer[0] + 1, answer[1] + 1];
|
return [answer[0] + 1, answer[1] + 1];
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
@@ -407,7 +416,7 @@
|
|||||||
if (frame.getFunction() === exports.run) {
|
if (frame.getFunction() === exports.run) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
results.push(" at " + (formatSourcePosition(frame, getSourceMapping)));
|
results.push(" at " + (formatSourcePosition(frame, getSourceMapping)));
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, findDirectoryIndex, forkNode, fs, helpers, hidden, joinTimeout, makePrelude, mkdirp, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, ref, removeSource, removeSourceDir, silentUnlink, sourceCode, sources, spawn, timeLog, usage, useWinPathSep, version, wait, watch, watchDir, watchedDirs, writeJs,
|
var BANNER, CoffeeScript, EventEmitter, SWITCHES, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, findDirectoryIndex, forkNode, fs, helpers, hidden, joinTimeout, makePrelude, mkdirp, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, ref, removeSource, removeSourceDir, silentUnlink, sourceCode, sources, spawn, timeLog, usage, useWinPathSep, version, wait, watch, watchDir, watchedDirs, writeJs,
|
||||||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
|
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
|
||||||
|
|
||||||
@@ -143,6 +143,8 @@
|
|||||||
Return: [
|
Return: [
|
||||||
o('RETURN Expression', function() {
|
o('RETURN Expression', function() {
|
||||||
return new Return($2);
|
return new Return($2);
|
||||||
|
}), o('RETURN INDENT Object OUTDENT', function() {
|
||||||
|
return new Return(new Value($3));
|
||||||
}), o('RETURN', function() {
|
}), o('RETURN', function() {
|
||||||
return new Return;
|
return new Return;
|
||||||
})
|
})
|
||||||
@@ -330,6 +332,10 @@
|
|||||||
return new ImportSpecifier($1);
|
return new ImportSpecifier($1);
|
||||||
}), o('Identifier AS Identifier', function() {
|
}), o('Identifier AS Identifier', function() {
|
||||||
return new ImportSpecifier($1, $3);
|
return new ImportSpecifier($1, $3);
|
||||||
|
}), o('DEFAULT', function() {
|
||||||
|
return new ImportSpecifier(new Literal($1));
|
||||||
|
}), o('DEFAULT AS Identifier', function() {
|
||||||
|
return new ImportSpecifier(new Literal($1), $3);
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
ImportDefaultSpecifier: [
|
ImportDefaultSpecifier: [
|
||||||
@@ -363,6 +369,8 @@
|
|||||||
}));
|
}));
|
||||||
}), o('EXPORT DEFAULT Expression', function() {
|
}), o('EXPORT DEFAULT Expression', function() {
|
||||||
return new ExportDefaultDeclaration($3);
|
return new ExportDefaultDeclaration($3);
|
||||||
|
}), o('EXPORT DEFAULT INDENT Object OUTDENT', function() {
|
||||||
|
return new ExportDefaultDeclaration(new Value($4));
|
||||||
}), o('EXPORT EXPORT_ALL FROM String', function() {
|
}), o('EXPORT EXPORT_ALL FROM String', function() {
|
||||||
return new ExportAllDeclaration(new Literal($2), $4);
|
return new ExportAllDeclaration(new Literal($2), $4);
|
||||||
}), o('EXPORT { ExportSpecifierList OptComma } FROM String', function() {
|
}), o('EXPORT { ExportSpecifierList OptComma } FROM String', function() {
|
||||||
@@ -389,6 +397,10 @@
|
|||||||
return new ExportSpecifier($1, $3);
|
return new ExportSpecifier($1, $3);
|
||||||
}), o('Identifier AS DEFAULT', function() {
|
}), o('Identifier AS DEFAULT', function() {
|
||||||
return new ExportSpecifier($1, new Literal($3));
|
return new ExportSpecifier($1, new Literal($3));
|
||||||
|
}), o('DEFAULT', function() {
|
||||||
|
return new ExportSpecifier(new Literal($1));
|
||||||
|
}), o('DEFAULT AS Identifier', function() {
|
||||||
|
return new ExportSpecifier(new Literal($1), $3);
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
Invocation: [
|
Invocation: [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var buildLocationData, extend, flatten, ref, repeat, syntaxErrorToString;
|
var buildLocationData, extend, flatten, ref, repeat, syntaxErrorToString;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var key, ref, val;
|
var key, ref, val;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HERECOMMENT_ILLEGAL, HEREDOC_DOUBLE, HEREDOC_INDENT, HEREDOC_SINGLE, HEREGEX, HEREGEX_OMIT, HERE_JSTOKEN, IDENTIFIER, INDENTABLE_CLOSERS, INDEXABLE, INVALID_ESCAPE, INVERSES, JSTOKEN, JS_KEYWORDS, LEADING_BLANK_LINE, LINE_BREAK, LINE_CONTINUER, Lexer, MATH, MULTI_DENT, NOT_REGEX, NUMBER, OPERATOR, POSSIBLY_DIVISION, REGEX, REGEX_FLAGS, REGEX_ILLEGAL, RELATION, RESERVED, Rewriter, SHIFT, SIMPLE_STRING_OMIT, STRICT_PROSCRIBED, STRING_DOUBLE, STRING_OMIT, STRING_SINGLE, STRING_START, TRAILING_BLANK_LINE, TRAILING_SPACES, UNARY, UNARY_MATH, VALID_FLAGS, WHITESPACE, compact, count, invertLiterate, isUnassignable, key, locationDataToString, ref, ref1, repeat, starts, throwSyntaxError,
|
var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HERECOMMENT_ILLEGAL, HEREDOC_DOUBLE, HEREDOC_INDENT, HEREDOC_SINGLE, HEREGEX, HEREGEX_OMIT, HERE_JSTOKEN, IDENTIFIER, INDENTABLE_CLOSERS, INDEXABLE, INVERSES, JSTOKEN, JS_KEYWORDS, LEADING_BLANK_LINE, LINE_BREAK, LINE_CONTINUER, Lexer, MATH, MULTI_DENT, NOT_REGEX, NUMBER, OPERATOR, POSSIBLY_DIVISION, REGEX, REGEX_FLAGS, REGEX_ILLEGAL, REGEX_INVALID_ESCAPE, RELATION, RESERVED, Rewriter, SHIFT, SIMPLE_STRING_OMIT, STRICT_PROSCRIBED, STRING_DOUBLE, STRING_INVALID_ESCAPE, STRING_OMIT, STRING_SINGLE, STRING_START, TRAILING_BLANK_LINE, TRAILING_SPACES, UNARY, UNARY_MATH, UNFINISHED, UNICODE_CODE_POINT_ESCAPE, VALID_FLAGS, WHITESPACE, compact, count, invertLiterate, isForFrom, isUnassignable, key, locationDataToString, ref, ref1, repeat, starts, throwSyntaxError,
|
||||||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
|
||||||
slice = [].slice;
|
slice = [].slice;
|
||||||
|
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
this.seenFor = false;
|
this.seenFor = false;
|
||||||
this.seenImport = false;
|
this.seenImport = false;
|
||||||
this.seenExport = false;
|
this.seenExport = false;
|
||||||
|
this.importSpecifierList = false;
|
||||||
this.exportSpecifierList = false;
|
this.exportSpecifierList = false;
|
||||||
this.chunkLine = opts.line || 0;
|
this.chunkLine = opts.line || 0;
|
||||||
this.chunkColumn = opts.column || 0;
|
this.chunkColumn = opts.column || 0;
|
||||||
@@ -69,7 +70,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
Lexer.prototype.identifierToken = function() {
|
Lexer.prototype.identifierToken = function() {
|
||||||
var alias, colon, colonOffset, id, idLength, input, match, poppedToken, prev, ref2, ref3, ref4, ref5, ref6, ref7, tag, tagToken;
|
var alias, colon, colonOffset, id, idLength, input, match, poppedToken, prev, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9, tag, tagToken;
|
||||||
if (!(match = IDENTIFIER.exec(this.chunk))) {
|
if (!(match = IDENTIFIER.exec(this.chunk))) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -90,24 +91,24 @@
|
|||||||
} else if (ref2 = this.value(), indexOf.call(COFFEE_KEYWORDS, ref2) >= 0) {
|
} else if (ref2 = this.value(), indexOf.call(COFFEE_KEYWORDS, ref2) >= 0) {
|
||||||
this.tokens[this.tokens.length - 1][0] = 'IDENTIFIER';
|
this.tokens[this.tokens.length - 1][0] = 'IDENTIFIER';
|
||||||
}
|
}
|
||||||
if ((ref3 = this.tag()) === 'IMPORT_ALL' || ref3 === 'IDENTIFIER') {
|
if ((ref3 = this.tag()) === 'DEFAULT' || ref3 === 'IMPORT_ALL' || ref3 === 'IDENTIFIER') {
|
||||||
this.token('AS', id);
|
this.token('AS', id);
|
||||||
return id.length;
|
return id.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (id === 'as' && this.seenExport && this.tag() === 'IDENTIFIER') {
|
if (id === 'as' && this.seenExport && ((ref4 = this.tag()) === 'IDENTIFIER' || ref4 === 'DEFAULT')) {
|
||||||
this.token('AS', id);
|
this.token('AS', id);
|
||||||
return id.length;
|
return id.length;
|
||||||
}
|
}
|
||||||
if (id === 'default' && this.seenExport) {
|
if (id === 'default' && this.seenExport && ((ref5 = this.tag()) === 'EXPORT' || ref5 === 'AS')) {
|
||||||
this.token('DEFAULT', id);
|
this.token('DEFAULT', id);
|
||||||
return id.length;
|
return id.length;
|
||||||
}
|
}
|
||||||
ref4 = this.tokens, prev = ref4[ref4.length - 1];
|
ref6 = this.tokens, prev = ref6[ref6.length - 1];
|
||||||
tag = colon || (prev != null) && (((ref5 = prev[0]) === '.' || ref5 === '?.' || ref5 === '::' || ref5 === '?::') || !prev.spaced && prev[0] === '@') ? 'PROPERTY' : 'IDENTIFIER';
|
tag = colon || (prev != null) && (((ref7 = prev[0]) === '.' || ref7 === '?.' || ref7 === '::' || ref7 === '?::') || !prev.spaced && prev[0] === '@') ? 'PROPERTY' : 'IDENTIFIER';
|
||||||
if (tag === 'IDENTIFIER' && (indexOf.call(JS_KEYWORDS, id) >= 0 || indexOf.call(COFFEE_KEYWORDS, id) >= 0) && !(this.exportSpecifierList && indexOf.call(COFFEE_KEYWORDS, id) >= 0)) {
|
if (tag === 'IDENTIFIER' && (indexOf.call(JS_KEYWORDS, id) >= 0 || indexOf.call(COFFEE_KEYWORDS, id) >= 0) && !(this.exportSpecifierList && indexOf.call(COFFEE_KEYWORDS, id) >= 0)) {
|
||||||
tag = id.toUpperCase();
|
tag = id.toUpperCase();
|
||||||
if (tag === 'WHEN' && (ref6 = this.tag(), indexOf.call(LINE_BREAK, ref6) >= 0)) {
|
if (tag === 'WHEN' && (ref8 = this.tag(), indexOf.call(LINE_BREAK, ref8) >= 0)) {
|
||||||
tag = 'LEADING_WHEN';
|
tag = 'LEADING_WHEN';
|
||||||
} else if (tag === 'FOR') {
|
} else if (tag === 'FOR') {
|
||||||
this.seenFor = true;
|
this.seenFor = true;
|
||||||
@@ -131,7 +132,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (tag === 'IDENTIFIER' && this.seenFor && id === 'from') {
|
} else if (tag === 'IDENTIFIER' && this.seenFor && id === 'from' && isForFrom(prev)) {
|
||||||
tag = 'FORFROM';
|
tag = 'FORFROM';
|
||||||
this.seenFor = false;
|
this.seenFor = false;
|
||||||
}
|
}
|
||||||
@@ -172,7 +173,7 @@
|
|||||||
tagToken.origin = [tag, alias, tagToken[2]];
|
tagToken.origin = [tag, alias, tagToken[2]];
|
||||||
}
|
}
|
||||||
if (poppedToken) {
|
if (poppedToken) {
|
||||||
ref7 = [poppedToken[2].first_line, poppedToken[2].first_column], tagToken[2].first_line = ref7[0], tagToken[2].first_column = ref7[1];
|
ref9 = [poppedToken[2].first_line, poppedToken[2].first_column], tagToken[2].first_line = ref9[0], tagToken[2].first_column = ref9[1];
|
||||||
}
|
}
|
||||||
if (colon) {
|
if (colon) {
|
||||||
colonOffset = input.lastIndexOf(':');
|
colonOffset = input.lastIndexOf(':');
|
||||||
@@ -281,7 +282,9 @@
|
|||||||
delimiter: delimiter
|
delimiter: delimiter
|
||||||
}, (function(_this) {
|
}, (function(_this) {
|
||||||
return function(value, i) {
|
return function(value, i) {
|
||||||
value = _this.formatString(value);
|
value = _this.formatString(value, {
|
||||||
|
delimiter: quote
|
||||||
|
});
|
||||||
if (indentRegex) {
|
if (indentRegex) {
|
||||||
value = value.replace(indentRegex, '\n');
|
value = value.replace(indentRegex, '\n');
|
||||||
}
|
}
|
||||||
@@ -299,7 +302,9 @@
|
|||||||
delimiter: delimiter
|
delimiter: delimiter
|
||||||
}, (function(_this) {
|
}, (function(_this) {
|
||||||
return function(value, i) {
|
return function(value, i) {
|
||||||
value = _this.formatString(value);
|
value = _this.formatString(value, {
|
||||||
|
delimiter: quote
|
||||||
|
});
|
||||||
value = value.replace(SIMPLE_STRING_OMIT, function(match, offset) {
|
value = value.replace(SIMPLE_STRING_OMIT, function(match, offset) {
|
||||||
if ((i === 0 && offset === 0) || (i === $ && offset + match.length === value.length)) {
|
if ((i === 0 && offset === 0) || (i === $ && offset + match.length === value.length)) {
|
||||||
return '';
|
return '';
|
||||||
@@ -364,6 +369,9 @@
|
|||||||
isRegex: true,
|
isRegex: true,
|
||||||
offsetInChunk: 1
|
offsetInChunk: 1
|
||||||
});
|
});
|
||||||
|
body = this.formatRegex(body, {
|
||||||
|
delimiter: '/'
|
||||||
|
});
|
||||||
index = regex.length;
|
index = regex.length;
|
||||||
ref2 = this.tokens, prev = ref2[ref2.length - 1];
|
ref2 = this.tokens, prev = ref2[ref2.length - 1];
|
||||||
if (prev) {
|
if (prev) {
|
||||||
@@ -409,11 +417,11 @@
|
|||||||
double: true
|
double: true
|
||||||
}, this.formatHeregex);
|
}, this.formatHeregex);
|
||||||
if (flags) {
|
if (flags) {
|
||||||
this.token(',', ',', index, 0);
|
this.token(',', ',', index - 1, 0);
|
||||||
this.token('STRING', '"' + flags + '"', index, flags.length);
|
this.token('STRING', '"' + flags + '"', index - 1, flags.length);
|
||||||
}
|
}
|
||||||
this.token(')', ')', end, 0);
|
this.token(')', ')', end - 1, 0);
|
||||||
this.token('REGEX_END', ')', end, 0);
|
this.token('REGEX_END', ')', end - 1, 0);
|
||||||
}
|
}
|
||||||
return end;
|
return end;
|
||||||
};
|
};
|
||||||
@@ -425,6 +433,12 @@
|
|||||||
}
|
}
|
||||||
indent = match[0];
|
indent = match[0];
|
||||||
this.seenFor = false;
|
this.seenFor = false;
|
||||||
|
if (!this.importSpecifierList) {
|
||||||
|
this.seenImport = false;
|
||||||
|
}
|
||||||
|
if (!this.exportSpecifierList) {
|
||||||
|
this.seenExport = false;
|
||||||
|
}
|
||||||
size = indent.length - 1 - indent.lastIndexOf('\n');
|
size = indent.length - 1 - indent.lastIndexOf('\n');
|
||||||
noNewlines = this.unfinished();
|
noNewlines = this.unfinished();
|
||||||
if (size - this.indebt === this.indent) {
|
if (size - this.indebt === this.indent) {
|
||||||
@@ -566,7 +580,11 @@
|
|||||||
return value.length;
|
return value.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (value === '{' && (prev != null ? prev[0] : void 0) === 'EXPORT') {
|
if (value === '{' && this.seenImport) {
|
||||||
|
this.importSpecifierList = true;
|
||||||
|
} else if (this.importSpecifierList && value === '}') {
|
||||||
|
this.importSpecifierList = false;
|
||||||
|
} else if (value === '{' && (prev != null ? prev[0] : void 0) === 'EXPORT') {
|
||||||
this.exportSpecifierList = true;
|
this.exportSpecifierList = true;
|
||||||
} else if (this.exportSpecifierList && value === '}') {
|
} else if (this.exportSpecifierList && value === '}') {
|
||||||
this.exportSpecifierList = false;
|
this.exportSpecifierList = false;
|
||||||
@@ -734,7 +752,7 @@
|
|||||||
tokensToPush = value;
|
tokensToPush = value;
|
||||||
break;
|
break;
|
||||||
case 'NEOSTRING':
|
case 'NEOSTRING':
|
||||||
converted = fn(token[1], i);
|
converted = fn.call(this, token[1], i);
|
||||||
if (converted.length === 0) {
|
if (converted.length === 0) {
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
firstEmptyStringIndex = this.tokens.length;
|
firstEmptyStringIndex = this.tokens.length;
|
||||||
@@ -856,32 +874,70 @@
|
|||||||
|
|
||||||
Lexer.prototype.unfinished = function() {
|
Lexer.prototype.unfinished = function() {
|
||||||
var ref2;
|
var ref2;
|
||||||
return LINE_CONTINUER.test(this.chunk) || ((ref2 = this.tag()) === '\\' || ref2 === '.' || ref2 === '?.' || ref2 === '?::' || ref2 === 'UNARY' || ref2 === 'MATH' || ref2 === 'UNARY_MATH' || ref2 === '+' || ref2 === '-' || ref2 === '**' || ref2 === 'SHIFT' || ref2 === 'RELATION' || ref2 === 'COMPARE' || ref2 === '&' || ref2 === '^' || ref2 === '|' || ref2 === '&&' || ref2 === '||' || ref2 === 'BIN?' || ref2 === 'THROW' || ref2 === 'EXTENDS');
|
return LINE_CONTINUER.test(this.chunk) || (ref2 = this.tag(), indexOf.call(UNFINISHED, ref2) >= 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
Lexer.prototype.formatString = function(str) {
|
Lexer.prototype.formatString = function(str, options) {
|
||||||
return str.replace(STRING_OMIT, '$1');
|
return this.replaceUnicodeCodePointEscapes(str.replace(STRING_OMIT, '$1'), options);
|
||||||
};
|
};
|
||||||
|
|
||||||
Lexer.prototype.formatHeregex = function(str) {
|
Lexer.prototype.formatHeregex = function(str) {
|
||||||
return str.replace(HEREGEX_OMIT, '$1$2');
|
return this.formatRegex(str.replace(HEREGEX_OMIT, '$1$2'), {
|
||||||
|
delimiter: '///'
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
Lexer.prototype.formatRegex = function(str, options) {
|
||||||
|
return this.replaceUnicodeCodePointEscapes(str, options);
|
||||||
|
};
|
||||||
|
|
||||||
|
Lexer.prototype.unicodeCodePointToUnicodeEscapes = function(codePoint) {
|
||||||
|
var high, low, toUnicodeEscape;
|
||||||
|
toUnicodeEscape = function(val) {
|
||||||
|
var str;
|
||||||
|
str = val.toString(16);
|
||||||
|
return "\\u" + (repeat('0', 4 - str.length)) + str;
|
||||||
|
};
|
||||||
|
if (codePoint < 0x10000) {
|
||||||
|
return toUnicodeEscape(codePoint);
|
||||||
|
}
|
||||||
|
high = Math.floor((codePoint - 0x10000) / 0x400) + 0xD800;
|
||||||
|
low = (codePoint - 0x10000) % 0x400 + 0xDC00;
|
||||||
|
return "" + (toUnicodeEscape(high)) + (toUnicodeEscape(low));
|
||||||
|
};
|
||||||
|
|
||||||
|
Lexer.prototype.replaceUnicodeCodePointEscapes = function(str, options) {
|
||||||
|
return str.replace(UNICODE_CODE_POINT_ESCAPE, (function(_this) {
|
||||||
|
return function(match, escapedBackslash, codePointHex, offset) {
|
||||||
|
var codePointDecimal;
|
||||||
|
if (escapedBackslash) {
|
||||||
|
return escapedBackslash;
|
||||||
|
}
|
||||||
|
codePointDecimal = parseInt(codePointHex, 16);
|
||||||
|
if (codePointDecimal > 0x10ffff) {
|
||||||
|
_this.error("unicode code point escapes greater than \\u{10ffff} are not allowed", {
|
||||||
|
offset: offset + options.delimiter.length,
|
||||||
|
length: codePointHex.length + 4
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return _this.unicodeCodePointToUnicodeEscapes(codePointDecimal);
|
||||||
|
};
|
||||||
|
})(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
Lexer.prototype.validateEscapes = function(str, options) {
|
Lexer.prototype.validateEscapes = function(str, options) {
|
||||||
var before, hex, invalidEscape, match, message, octal, ref2, unicode;
|
var before, hex, invalidEscape, invalidEscapeRegex, match, message, octal, ref2, unicode, unicodeCodePoint;
|
||||||
if (options == null) {
|
if (options == null) {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
match = INVALID_ESCAPE.exec(str);
|
invalidEscapeRegex = options.isRegex ? REGEX_INVALID_ESCAPE : STRING_INVALID_ESCAPE;
|
||||||
|
match = invalidEscapeRegex.exec(str);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
match[0], before = match[1], octal = match[2], hex = match[3], unicode = match[4];
|
match[0], before = match[1], octal = match[2], hex = match[3], unicodeCodePoint = match[4], unicode = match[5];
|
||||||
if (options.isRegex && octal && octal.charAt(0) !== '0') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
message = octal ? "octal escape sequences are not allowed" : "invalid escape sequence";
|
message = octal ? "octal escape sequences are not allowed" : "invalid escape sequence";
|
||||||
invalidEscape = "\\" + (octal || hex || unicode);
|
invalidEscape = "\\" + (octal || hex || unicodeCodePoint || unicode);
|
||||||
return this.error(message + " " + invalidEscape, {
|
return this.error(message + " " + invalidEscape, {
|
||||||
offset: ((ref2 = options.offsetInChunk) != null ? ref2 : 0) + match.index + before.length,
|
offset: ((ref2 = options.offsetInChunk) != null ? ref2 : 0) + match.index + before.length,
|
||||||
length: invalidEscape.length
|
length: invalidEscape.length
|
||||||
@@ -963,6 +1019,23 @@
|
|||||||
|
|
||||||
exports.isUnassignable = isUnassignable;
|
exports.isUnassignable = isUnassignable;
|
||||||
|
|
||||||
|
isForFrom = function(prev) {
|
||||||
|
var ref2;
|
||||||
|
if (prev[0] === 'IDENTIFIER') {
|
||||||
|
if (prev[1] === 'from') {
|
||||||
|
prev[1][0] = 'IDENTIFIER';
|
||||||
|
true;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
} else if (prev[0] === 'FOR') {
|
||||||
|
return false;
|
||||||
|
} else if ((ref2 = prev[1]) === '{' || ref2 === '[' || ref2 === ',' || ref2 === ':') {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
JS_KEYWORDS = ['true', 'false', 'null', 'this', 'new', 'delete', 'typeof', 'in', 'instanceof', 'return', 'throw', 'break', 'continue', 'debugger', 'yield', 'if', 'else', 'switch', 'for', 'while', 'do', 'try', 'catch', 'finally', 'class', 'extends', 'super', 'import', 'export', 'default'];
|
JS_KEYWORDS = ['true', 'false', 'null', 'this', 'new', 'delete', 'typeof', 'in', 'instanceof', 'return', 'throw', 'break', 'continue', 'debugger', 'yield', 'if', 'else', 'switch', 'for', 'while', 'do', 'try', 'catch', 'finally', 'class', 'extends', 'super', 'import', 'export', 'default'];
|
||||||
|
|
||||||
COFFEE_KEYWORDS = ['undefined', 'Infinity', 'NaN', 'then', 'unless', 'until', 'loop', 'of', 'by', 'when'];
|
COFFEE_KEYWORDS = ['undefined', 'Infinity', 'NaN', 'then', 'unless', 'until', 'loop', 'of', 'by', 'when'];
|
||||||
@@ -1036,7 +1109,7 @@
|
|||||||
|
|
||||||
REGEX_FLAGS = /^\w*/;
|
REGEX_FLAGS = /^\w*/;
|
||||||
|
|
||||||
VALID_FLAGS = /^(?!.*(.).*\1)[imgy]*$/;
|
VALID_FLAGS = /^(?!.*(.).*\1)[imguy]*$/;
|
||||||
|
|
||||||
HEREGEX = /^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/;
|
HEREGEX = /^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/;
|
||||||
|
|
||||||
@@ -1050,7 +1123,11 @@
|
|||||||
|
|
||||||
LINE_CONTINUER = /^\s*(?:,|\??\.(?![.\d])|::)/;
|
LINE_CONTINUER = /^\s*(?:,|\??\.(?![.\d])|::)/;
|
||||||
|
|
||||||
INVALID_ESCAPE = /((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u(?![\da-fA-F]{4}).{0,4}))/;
|
STRING_INVALID_ESCAPE = /((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/;
|
||||||
|
|
||||||
|
REGEX_INVALID_ESCAPE = /((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7])|(x(?![\da-fA-F]{2}).{0,2})|(u\{(?![\da-fA-F]{1,}\})[^}]*\}?)|(u(?!\{|[\da-fA-F]{4}).{0,4}))/;
|
||||||
|
|
||||||
|
UNICODE_CODE_POINT_ESCAPE = /(\\\\)|\\u\{([\da-fA-F]+)\}/g;
|
||||||
|
|
||||||
LEADING_BLANK_LINE = /^[^\n\S]*\n/;
|
LEADING_BLANK_LINE = /^[^\n\S]*\n/;
|
||||||
|
|
||||||
@@ -1084,4 +1161,6 @@
|
|||||||
|
|
||||||
INDENTABLE_CLOSERS = [')', '}', ']'];
|
INDENTABLE_CLOSERS = [')', '}', ']'];
|
||||||
|
|
||||||
|
UNFINISHED = ['\\', '.', '?.', '?::', 'UNARY', 'MATH', 'UNARY_MATH', '+', '-', '**', 'SHIFT', 'RELATION', 'COMPARE', '&', '^', '|', '&&', '||', 'BIN?', 'THROW', 'EXTENDS'];
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var Access, Arr, Assign, Base, Block, BooleanLiteral, Call, Class, Code, CodeFragment, Comment, Existence, Expansion, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ExportSpecifier, ExportSpecifierList, Extends, For, IdentifierLiteral, If, ImportClause, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, ImportSpecifierList, In, Index, InfinityLiteral, JS_FORBIDDEN, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, ModuleDeclaration, ModuleSpecifier, ModuleSpecifierList, NEGATE, NO, NaNLiteral, NullLiteral, NumberLiteral, Obj, Op, Param, Parens, PassthroughLiteral, PropertyName, Range, RegexLiteral, RegexWithInterpolations, Return, SIMPLENUM, Scope, Slice, Splat, StatementLiteral, StringLiteral, StringWithInterpolations, SuperCall, Switch, TAB, THIS, TaggedTemplateCall, ThisLiteral, Throw, Try, UTILITIES, UndefinedLiteral, Value, While, YES, YieldReturn, addLocationDataFn, compact, del, ends, extend, flatten, fragmentsToText, isComplexOrAssignable, isLiteralArguments, isLiteralThis, isUnassignable, locationDataToString, merge, multident, ref1, ref2, some, starts, throwSyntaxError, unfoldSoak, utility,
|
var Access, Arr, Assign, Base, Block, BooleanLiteral, Call, Class, Code, CodeFragment, Comment, Existence, Expansion, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ExportSpecifier, ExportSpecifierList, Extends, For, IdentifierLiteral, If, ImportClause, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, ImportSpecifierList, In, Index, InfinityLiteral, JS_FORBIDDEN, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, ModuleDeclaration, ModuleSpecifier, ModuleSpecifierList, NEGATE, NO, NaNLiteral, NullLiteral, NumberLiteral, Obj, Op, Param, Parens, PassthroughLiteral, PropertyName, Range, RegexLiteral, RegexWithInterpolations, Return, SIMPLENUM, Scope, Slice, Splat, StatementLiteral, StringLiteral, StringWithInterpolations, SuperCall, Switch, TAB, THIS, TaggedTemplateCall, ThisLiteral, Throw, Try, UTILITIES, UndefinedLiteral, Value, While, YES, YieldReturn, addLocationDataFn, compact, del, ends, extend, flatten, fragmentsToText, isComplexOrAssignable, isLiteralArguments, isLiteralThis, isUnassignable, locationDataToString, merge, multident, ref1, ref2, some, starts, throwSyntaxError, unfoldSoak, utility,
|
||||||
extend1 = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
extend1 = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
||||||
@@ -1024,6 +1024,22 @@
|
|||||||
|
|
||||||
Call.prototype.children = ['variable', 'args'];
|
Call.prototype.children = ['variable', 'args'];
|
||||||
|
|
||||||
|
Call.prototype.updateLocationDataIfMissing = function(locationData) {
|
||||||
|
var base, ref3;
|
||||||
|
if (this.locationData && this.needsUpdatedStartLocation) {
|
||||||
|
this.locationData.first_line = locationData.first_line;
|
||||||
|
this.locationData.first_column = locationData.first_column;
|
||||||
|
base = ((ref3 = this.variable) != null ? ref3.base : void 0) || this.variable;
|
||||||
|
if (base.needsUpdatedStartLocation) {
|
||||||
|
this.variable.locationData.first_line = locationData.first_line;
|
||||||
|
this.variable.locationData.first_column = locationData.first_column;
|
||||||
|
base.updateLocationDataIfMissing(locationData);
|
||||||
|
}
|
||||||
|
delete this.needsUpdatedStartLocation;
|
||||||
|
}
|
||||||
|
return Call.__super__.updateLocationDataIfMissing.apply(this, arguments);
|
||||||
|
};
|
||||||
|
|
||||||
Call.prototype.newInstance = function() {
|
Call.prototype.newInstance = function() {
|
||||||
var base, ref3;
|
var base, ref3;
|
||||||
base = ((ref3 = this.variable) != null ? ref3.base : void 0) || this.variable;
|
base = ((ref3 = this.variable) != null ? ref3.base : void 0) || this.variable;
|
||||||
@@ -1032,6 +1048,7 @@
|
|||||||
} else {
|
} else {
|
||||||
this.isNew = true;
|
this.isNew = true;
|
||||||
}
|
}
|
||||||
|
this.needsUpdatedStartLocation = true;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2059,7 +2076,7 @@
|
|||||||
|
|
||||||
ModuleSpecifier.prototype.compileNode = function(o) {
|
ModuleSpecifier.prototype.compileNode = function(o) {
|
||||||
var code;
|
var code;
|
||||||
o.scope.add(this.identifier, this.moduleDeclarationType);
|
o.scope.find(this.identifier, this.moduleDeclarationType);
|
||||||
code = [];
|
code = [];
|
||||||
code.push(this.makeCode(this.original.value));
|
code.push(this.makeCode(this.original.value));
|
||||||
if (this.alias != null) {
|
if (this.alias != null) {
|
||||||
@@ -2708,7 +2725,7 @@
|
|||||||
return this.name.assigns(name);
|
return this.name.assigns(name);
|
||||||
};
|
};
|
||||||
|
|
||||||
Splat.prototype.compileToFragments = function(o) {
|
Splat.prototype.compileNode = function(o) {
|
||||||
return this.name.compileToFragments(o);
|
return this.name.compileToFragments(o);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3115,9 +3132,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
Op.prototype.compileFloorDivision = function(o) {
|
Op.prototype.compileFloorDivision = function(o) {
|
||||||
var div, floor;
|
var div, floor, second;
|
||||||
floor = new Value(new IdentifierLiteral('Math'), [new Access(new PropertyName('floor'))]);
|
floor = new Value(new IdentifierLiteral('Math'), [new Access(new PropertyName('floor'))]);
|
||||||
div = new Op('/', this.first, this.second);
|
second = this.second.isComplex() ? new Parens(this.second) : this.second;
|
||||||
|
div = new Op('/', this.first, second);
|
||||||
return new Call(floor, [div]).compileToFragments(o);
|
return new Call(floor, [div]).compileToFragments(o);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3331,7 +3349,7 @@
|
|||||||
return expr.compileToFragments(o);
|
return expr.compileToFragments(o);
|
||||||
}
|
}
|
||||||
fragments = expr.compileToFragments(o, LEVEL_PAREN);
|
fragments = expr.compileToFragments(o, LEVEL_PAREN);
|
||||||
bare = o.level < LEVEL_OP && (expr instanceof Op || expr instanceof Call || (expr instanceof For && expr.returns));
|
bare = o.level < LEVEL_OP && (expr instanceof Op || expr instanceof Call || (expr instanceof For && expr.returns)) && (o.level < LEVEL_COND || fragments.length <= 3);
|
||||||
if (bare) {
|
if (bare) {
|
||||||
return fragments;
|
return fragments;
|
||||||
} else {
|
} else {
|
||||||
@@ -3414,7 +3432,7 @@
|
|||||||
if (this.object) {
|
if (this.object) {
|
||||||
ref3 = [this.index, this.name], this.name = ref3[0], this.index = ref3[1];
|
ref3 = [this.index, this.name], this.name = ref3[0], this.index = ref3[1];
|
||||||
}
|
}
|
||||||
if (this.index instanceof Value) {
|
if (this.index instanceof Value && !this.index.isAssignable()) {
|
||||||
this.index.error('index cannot be a pattern matching expression');
|
this.index.error('index cannot be a pattern matching expression');
|
||||||
}
|
}
|
||||||
this.range = this.source instanceof Value && this.source.base instanceof Range && !this.source.properties.length && !this.from;
|
this.range = this.source instanceof Value && this.source.base instanceof Range && !this.source.properties.length && !this.from;
|
||||||
@@ -3446,7 +3464,7 @@
|
|||||||
if (name && !this.pattern) {
|
if (name && !this.pattern) {
|
||||||
scope.find(name);
|
scope.find(name);
|
||||||
}
|
}
|
||||||
if (index) {
|
if (index && !(this.index instanceof Value)) {
|
||||||
scope.find(index);
|
scope.find(index);
|
||||||
}
|
}
|
||||||
if (this.returns) {
|
if (this.returns) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Generated by CoffeeScript 1.12.0
|
// Generated by CoffeeScript 1.12.8
|
||||||
(function() {
|
(function() {
|
||||||
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat;
|
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat;
|
||||||
|
|
||||||
|
|||||||