├── .gitignore
├── .travis.yml
├── preview.png
├── .editorconfig
├── _readme.md
├── browser
├── app.js
├── index.jade
├── index.html
├── basic.jade
└── bundle.js
├── test.js
├── bin
└── markdown2confluence.js
├── demo.md
├── package.json
├── readme.md
├── index.js
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | branches:
3 | only:
4 | - gh-pages
5 |
--------------------------------------------------------------------------------
/preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chunpu/markdown2confluence/HEAD/preview.png
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome:
2 |
3 | root = true
4 |
5 | [*]
6 | charset = utf-8
7 | indent_style = tab
8 | end_of_line = lf
9 | insert_final_newline = true
10 | trim_trailing_whitespace = true
11 |
--------------------------------------------------------------------------------
/_readme.md:
--------------------------------------------------------------------------------
1 | Usage
2 | ---
3 |
4 | ```sh
5 | markdown2confluence markdown.md
6 | ```
7 |
8 | or
9 |
10 | Try in browser
11 |
12 | Document
13 | ---
14 |
15 | [Confluence Wiki Markup](https://confluence.atlassian.com/display/CONF42/Confluence+Wiki+Markup)
16 |
17 | 
18 |
--------------------------------------------------------------------------------
/browser/app.js:
--------------------------------------------------------------------------------
1 | var convert = require('../')
2 | var demoMarkdown = require('raw-loader!../demo.md')
3 |
4 | $('#convert').click(function() {
5 | var markdown = $('#markdown').val()
6 | $('#markup').val(convert(markdown))
7 | })
8 |
9 | $(init)
10 |
11 | function init() {
12 | $('#markdown').val(demoMarkdown)
13 | $('#convert').trigger('click')
14 | }
15 |
--------------------------------------------------------------------------------
/test.js:
--------------------------------------------------------------------------------
1 | var md2conflu = require('./')
2 | var assert = require('assert')
3 |
4 | var pairs = [
5 | ['# h1', 'h1. h1\n\n']
6 | , ['head1\n===', 'h1. head1\n\n']
7 | , ['### h3', 'h3. h3\n\n']
8 | ]
9 |
10 | pairs.forEach(function(arr, i) {
11 | assert.equal(md2conflu(arr[0]), arr[1], i + ': ' + arr[0] + ' = ' + arr[1])
12 | })
13 |
14 | console.log('all pass!')
15 |
--------------------------------------------------------------------------------
/bin/markdown2confluence.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var md2conflu = require('../')
3 | var fs = require('fs')
4 | var path = require('path')
5 | var assert = require('assert')
6 |
7 | var filename = process.argv[2]
8 | assert(filename, 'should have filename')
9 |
10 | fs.readFile(path.resolve(process.cwd(), filename), function(err, buf) {
11 | assert(!err, 'read file ' + filename + ' error!')
12 | console.log(md2conflu(buf + ''))
13 | })
14 |
--------------------------------------------------------------------------------
/browser/index.jade:
--------------------------------------------------------------------------------
1 | block title
2 | title markdown2confluence
3 |
4 | extend layout/basic
5 |
6 | block style
7 | style.
8 | textarea {
9 | width: 600px;
10 | height: 400px;
11 | }
12 |
13 | block main
14 | h1 put markdown here
15 | textarea#markdown
16 | p
17 | button#convert convert
18 | h1 generated confluence markup
19 | textarea#markup
20 |
21 | block script
22 | script(src='//code.jquery.com/jquery-1.11.2.min.js')
23 | script(src='./bundle.js')
24 |
--------------------------------------------------------------------------------
/browser/index.html:
--------------------------------------------------------------------------------
1 |
markdown2confluenceput markdown here
generated confluence markup
--------------------------------------------------------------------------------
/demo.md:
--------------------------------------------------------------------------------
1 | # h1
2 |
3 | head1
4 | ===
5 |
6 | head2
7 | ---
8 |
9 | ### head3 ###
10 |
11 | - **strong**
12 | - *emphasis*
13 | - ~~del~~
14 | - `code inline`
15 |
16 | > block quote
17 |
18 | [github link address](https://github.com/chunpu/markdown2confluence)
19 |
20 | ```javascript
21 | var i = 1 // comment
22 | console.log("This is code block")
23 | ```
24 |
25 | 
26 |
27 | ## GFM support
28 |
29 | First Header | Second Header
30 | ------------- | -------------
31 | Content Cell | Content Cell
32 | Content Cell | Content Cell
33 | *inline style* | **inline style**
34 |
35 | :)
36 |
--------------------------------------------------------------------------------
/browser/basic.jade:
--------------------------------------------------------------------------------
1 | //- basic layout
2 |
3 | //- use this by extend layout/basic
4 | //- init mixin
5 | include ../mixin/all
6 |
7 | doctype html
8 | html
9 |
10 | head
11 | //- set charset, should before title
12 | meta(charset='utf-8')
13 |
14 | //- `IE=edge` tells IE to use the most recent standard
15 | //- `chrome=1` means site to render in ChromeFrame
16 | meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')
17 |
18 | title= title
19 |
20 | block meta
21 | +meta({
22 | keywords: keywords
23 | , description: description
24 | , viewport: 'width=device-width'
25 | , renderer: 'webkit' // for double core browsers like 360 use webkit first
26 | })
27 |
28 | block style
29 | link(rel='stylesheet' href='/style.css')
30 |
31 | block icon
32 |
33 | //- old browser compat
34 | block compat
35 |
36 | body
37 | block header
38 | block main
39 | main(role='main')
40 | block footer
41 | block script
42 | script(src='/app.js')
43 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "markdown2confluence",
3 | "version": "1.3.0",
4 | "description": "convert markdown to confluence markup",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "node test.js",
8 | "build": "npm run build-html && npm run build-js",
9 | "build-html": "jade -p node_modules/jade-gist/. < browser/index.jade > browser/index.html",
10 | "build-js": "webpack browser/app.js --output-filename=browser/bundle.js",
11 | "readme": "pretty-readme > readme.md"
12 | },
13 | "author": "ft",
14 | "license": "ISC",
15 | "dependencies": {
16 | "jade": "^1.11.0",
17 | "jade-gist": "^1.0.3",
18 | "marked": "^0.3.2",
19 | "min-qs": "^1.3.0",
20 | "min-util": "^2.3.0",
21 | "raw-loader": "^0.5.1",
22 | "webpack": "^1.14.0"
23 | },
24 | "bin": {
25 | "markdown2confluence": "bin/markdown2confluence.js"
26 | },
27 | "devDependencies": {},
28 | "repository": {
29 | "type": "git",
30 | "url": "https://github.com/chunpu/markdown2confluence.git"
31 | },
32 | "keywords": [
33 | "markdown",
34 | "confluence",
35 | "markup",
36 | "convert"
37 | ],
38 | "bugs": {
39 | "url": "https://github.com/chunpu/markdown2confluence/issues"
40 | },
41 | "homepage": "https://github.com/chunpu/markdown2confluence"
42 | }
43 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | markdown2confluence
2 | ===
3 |
4 | [![Build status][travis-image]][travis-url]
5 | [![NPM version][npm-image]][npm-url]
6 | [![Downloads][downloads-image]][downloads-url]
7 | [![Dependency Status][david-image]][david-url]
8 |
9 | [npm-image]: https://img.shields.io/npm/v/markdown2confluence.svg?style=flat-square
10 | [npm-url]: https://npmjs.org/package/markdown2confluence
11 | [downloads-image]: http://img.shields.io/npm/dm/markdown2confluence.svg?style=flat-square
12 | [downloads-url]: https://npmjs.org/package/markdown2confluence
13 | [david-image]: http://img.shields.io/david/chunpu/markdown2confluence.svg?style=flat-square
14 | [david-url]: https://david-dm.org/chunpu/markdown2confluence
15 |
16 |
17 | convert markdown to confluence markup
18 |
19 | Installation
20 | ---
21 |
22 | ```sh
23 | npm i markdown2confluence -g
24 | ```
25 |
26 | Usage
27 | ---
28 |
29 | ```sh
30 | markdown2confluence markdown.md
31 | ```
32 |
33 | or
34 |
35 | Try in browser
36 |
37 | Document
38 | ---
39 |
40 | [Confluence Wiki Markup](https://confluence.atlassian.com/display/CONF42/Confluence+Wiki+Markup)
41 |
42 | 
43 |
44 | License
45 | ---
46 |
47 | [![License][license-image]][license-url]
48 |
49 | [travis-image]: https://img.shields.io/travis/chunpu/markdown2confluence.svg?style=flat-square
50 | [travis-url]: https://travis-ci.org/chunpu/markdown2confluence
51 | [license-image]: http://img.shields.io/npm/l/markdown2confluence.svg?style=flat-square
52 | [license-url]: #
53 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | var marked = require('marked')
2 | var _ = require('min-util')
3 | var qs = require('min-qs')
4 | var inlineLexer = marked.inlineLexer
5 |
6 | module.exports = exports = markdown2confluence
7 |
8 | // https://roundcorner.atlassian.net/secure/WikiRendererHelpAction.jspa?section=all
9 | // https://confluence.atlassian.com/display/DOC/Confluence+Wiki+Markup
10 | // http://blogs.atlassian.com/2011/11/why-we-removed-wiki-markup-editor-in-confluence-4/
11 |
12 | var MAX_CODE_LINE = 20
13 |
14 | function Renderer() {}
15 |
16 | var rawRenderer = marked.Renderer
17 |
18 | var langArr = 'actionscript3 bash csharp coldfusion cpp css delphi diff erlang groovy java javafx javascript perl php none powershell python ruby scala sql vb html/xml'.split(/\s+/)
19 | var langMap = {
20 | shell: 'bash',
21 | html: 'html',
22 | xml: 'xml'
23 | }
24 | for (var i = 0, x; x = langArr[i++];) {
25 | langMap[x] = x
26 | }
27 |
28 | _.extend(Renderer.prototype, rawRenderer.prototype, {
29 | paragraph: function(text) {
30 | return text + '\n\n'
31 | }
32 | , html: function(html) {
33 | return html
34 | }
35 | , heading: function(text, level, raw) {
36 | return 'h' + level + '. ' + text + '\n\n'
37 | }
38 | , strong: function(text) {
39 | return '*' + text + '*'
40 | }
41 | , em: function(text) {
42 | return '_' + text + '_'
43 | }
44 | , del: function(text) {
45 | return '-' + text + '-'
46 | }
47 | , codespan: function(text) {
48 | return '{{' + text + '}}'
49 | }
50 | , blockquote: function(quote) {
51 | return '{quote}' + quote + '{quote}'
52 | }
53 | , br: function() {
54 | return '\n'
55 | }
56 | , hr: function() {
57 | return '----'
58 | }
59 | , link: function(href, title, text) {
60 | var arr = [href]
61 | if (text) {
62 | arr.unshift(text)
63 | }
64 | return '[' + arr.join('|') + ']'
65 | }
66 | , list: function(body, ordered) {
67 | var arr = _.filter(_.trim(body).split('\n'), function(line) {
68 | return line
69 | })
70 | var type = ordered ? '#' : '*'
71 | return _.map(arr, function(line) {
72 | return type + ' ' + line
73 | }).join('\n') + '\n\n'
74 |
75 | }
76 | , listitem: function(body, ordered) {
77 | return body + '\n'
78 | }
79 | , image: function(href, title, text) {
80 | return '!' + href + '!'
81 | }
82 | , table: function(header, body) {
83 | return header + body + '\n'
84 | }
85 | , tablerow: function(content, flags) {
86 | return content + '\n'
87 | }
88 | , tablecell: function(content, flags) {
89 | var type = flags.header ? '||' : '|'
90 | return type + content
91 | }
92 | , code: function(code, lang) {
93 | // {code:language=java|borderStyle=solid|theme=RDark|linenumbers=true|collapse=true}
94 | if(lang) {
95 | lang = lang.toLowerCase()
96 | }
97 | lang = langMap[lang] || 'none'
98 | var param = {
99 | language: lang,
100 | borderStyle: 'solid',
101 | theme: 'RDark', // dark is good
102 | linenumbers: true,
103 | collapse: false
104 | }
105 | var lineCount = _.split(code, '\n').length
106 | if (lineCount > MAX_CODE_LINE) {
107 | // code is too long
108 | param.collapse = true
109 | }
110 | param = qs.stringify(param, '|', '=')
111 | return '{code:' + param + '}\n' + code + '\n{code}\n\n'
112 | }
113 | })
114 |
115 | var renderer = new Renderer()
116 |
117 | function markdown2confluence(markdown) {
118 | return marked(markdown, {renderer: renderer})
119 | }
120 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | abbrev@1:
6 | version "1.0.9"
7 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
8 |
9 | acorn-globals@^1.0.3:
10 | version "1.0.9"
11 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-1.0.9.tgz#55bb5e98691507b74579d0513413217c380c54cf"
12 | dependencies:
13 | acorn "^2.1.0"
14 |
15 | acorn@^1.0.1:
16 | version "1.2.2"
17 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-1.2.2.tgz#c8ce27de0acc76d896d2b1fad3df588d9e82f014"
18 |
19 | acorn@^2.1.0:
20 | version "2.7.0"
21 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-2.7.0.tgz#ab6e7d9d886aaca8b085bc3312b79a198433f0e7"
22 |
23 | acorn@^3.0.0:
24 | version "3.3.0"
25 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a"
26 |
27 | align-text@^0.1.1, align-text@^0.1.3:
28 | version "0.1.4"
29 | resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
30 | dependencies:
31 | kind-of "^3.0.2"
32 | longest "^1.0.1"
33 | repeat-string "^1.5.2"
34 |
35 | amdefine@>=0.0.4:
36 | version "1.0.1"
37 | resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
38 |
39 | ansi-regex@^2.0.0:
40 | version "2.1.1"
41 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
42 |
43 | ansi-styles@^2.2.1:
44 | version "2.2.1"
45 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
46 |
47 | anymatch@^1.3.0:
48 | version "1.3.0"
49 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507"
50 | dependencies:
51 | arrify "^1.0.0"
52 | micromatch "^2.1.5"
53 |
54 | aproba@^1.0.3:
55 | version "1.0.4"
56 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.0.4.tgz#2713680775e7614c8ba186c065d4e2e52d1072c0"
57 |
58 | are-we-there-yet@~1.1.2:
59 | version "1.1.2"
60 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3"
61 | dependencies:
62 | delegates "^1.0.0"
63 | readable-stream "^2.0.0 || ^1.1.13"
64 |
65 | arr-diff@^2.0.0:
66 | version "2.0.0"
67 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
68 | dependencies:
69 | arr-flatten "^1.0.1"
70 |
71 | arr-flatten@^1.0.1:
72 | version "1.0.1"
73 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b"
74 |
75 | array-unique@^0.2.1:
76 | version "0.2.1"
77 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
78 |
79 | arrify@^1.0.0:
80 | version "1.0.1"
81 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
82 |
83 | asap@~1.0.0:
84 | version "1.0.0"
85 | resolved "https://registry.yarnpkg.com/asap/-/asap-1.0.0.tgz#b2a45da5fdfa20b0496fc3768cc27c12fa916a7d"
86 |
87 | asn1@~0.2.3:
88 | version "0.2.3"
89 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
90 |
91 | assert-plus@^0.2.0:
92 | version "0.2.0"
93 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
94 |
95 | assert-plus@^1.0.0:
96 | version "1.0.0"
97 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
98 |
99 | assert@^1.1.1:
100 | version "1.4.1"
101 | resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91"
102 | dependencies:
103 | util "0.10.3"
104 |
105 | async-each@^1.0.0:
106 | version "1.0.1"
107 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
108 |
109 | async@^0.9.0:
110 | version "0.9.2"
111 | resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
112 |
113 | async@^1.3.0:
114 | version "1.5.2"
115 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
116 |
117 | async@~0.2.6:
118 | version "0.2.10"
119 | resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1"
120 |
121 | asynckit@^0.4.0:
122 | version "0.4.0"
123 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
124 |
125 | aws-sign2@~0.6.0:
126 | version "0.6.0"
127 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
128 |
129 | aws4@^1.2.1:
130 | version "1.5.0"
131 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.5.0.tgz#0a29ffb79c31c9e712eeb087e8e7a64b4a56d755"
132 |
133 | balanced-match@^0.4.1:
134 | version "0.4.2"
135 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"
136 |
137 | base64-js@^1.0.2:
138 | version "1.2.0"
139 | resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1"
140 |
141 | bcrypt-pbkdf@^1.0.0:
142 | version "1.0.0"
143 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.0.tgz#3ca76b85241c7170bf7d9703e7b9aa74630040d4"
144 | dependencies:
145 | tweetnacl "^0.14.3"
146 |
147 | big.js@^3.1.3:
148 | version "3.1.3"
149 | resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978"
150 |
151 | binary-extensions@^1.0.0:
152 | version "1.8.0"
153 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774"
154 |
155 | block-stream@*:
156 | version "0.0.9"
157 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a"
158 | dependencies:
159 | inherits "~2.0.0"
160 |
161 | boom@2.x.x:
162 | version "2.10.1"
163 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f"
164 | dependencies:
165 | hoek "2.x.x"
166 |
167 | brace-expansion@^1.0.0:
168 | version "1.1.6"
169 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9"
170 | dependencies:
171 | balanced-match "^0.4.1"
172 | concat-map "0.0.1"
173 |
174 | braces@^1.8.2:
175 | version "1.8.5"
176 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
177 | dependencies:
178 | expand-range "^1.8.1"
179 | preserve "^0.2.0"
180 | repeat-element "^1.1.2"
181 |
182 | browserify-aes@0.4.0:
183 | version "0.4.0"
184 | resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-0.4.0.tgz#067149b668df31c4b58533e02d01e806d8608e2c"
185 | dependencies:
186 | inherits "^2.0.1"
187 |
188 | browserify-zlib@^0.1.4:
189 | version "0.1.4"
190 | resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d"
191 | dependencies:
192 | pako "~0.2.0"
193 |
194 | buffer-shims@^1.0.0:
195 | version "1.0.0"
196 | resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
197 |
198 | buffer@^4.9.0:
199 | version "4.9.1"
200 | resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298"
201 | dependencies:
202 | base64-js "^1.0.2"
203 | ieee754 "^1.1.4"
204 | isarray "^1.0.0"
205 |
206 | builtin-status-codes@^3.0.0:
207 | version "3.0.0"
208 | resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
209 |
210 | camelcase@^1.0.2:
211 | version "1.2.1"
212 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
213 |
214 | caseless@~0.11.0:
215 | version "0.11.0"
216 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
217 |
218 | center-align@^0.1.1:
219 | version "0.1.3"
220 | resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
221 | dependencies:
222 | align-text "^0.1.3"
223 | lazy-cache "^1.0.3"
224 |
225 | chalk@^1.1.1:
226 | version "1.1.3"
227 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
228 | dependencies:
229 | ansi-styles "^2.2.1"
230 | escape-string-regexp "^1.0.2"
231 | has-ansi "^2.0.0"
232 | strip-ansi "^3.0.0"
233 | supports-color "^2.0.0"
234 |
235 | character-parser@1.2.1:
236 | version "1.2.1"
237 | resolved "https://registry.yarnpkg.com/character-parser/-/character-parser-1.2.1.tgz#c0dde4ab182713b919b970959a123ecc1a30fcd6"
238 |
239 | chokidar@^1.0.0:
240 | version "1.6.1"
241 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2"
242 | dependencies:
243 | anymatch "^1.3.0"
244 | async-each "^1.0.0"
245 | glob-parent "^2.0.0"
246 | inherits "^2.0.1"
247 | is-binary-path "^1.0.0"
248 | is-glob "^2.0.0"
249 | path-is-absolute "^1.0.0"
250 | readdirp "^2.0.0"
251 | optionalDependencies:
252 | fsevents "^1.0.0"
253 |
254 | clean-css@^3.1.9:
255 | version "3.4.24"
256 | resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-3.4.24.tgz#89f5a5e9da37ae02394fe049a41388abbe72c3b5"
257 | dependencies:
258 | commander "2.8.x"
259 | source-map "0.4.x"
260 |
261 | cliui@^2.1.0:
262 | version "2.1.0"
263 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
264 | dependencies:
265 | center-align "^0.1.1"
266 | right-align "^0.1.1"
267 | wordwrap "0.0.2"
268 |
269 | clone@^1.0.2:
270 | version "1.0.2"
271 | resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149"
272 |
273 | code-point-at@^1.0.0:
274 | version "1.1.0"
275 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
276 |
277 | combined-stream@^1.0.5, combined-stream@~1.0.5:
278 | version "1.0.5"
279 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009"
280 | dependencies:
281 | delayed-stream "~1.0.0"
282 |
283 | commander@2.8.x:
284 | version "2.8.1"
285 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.8.1.tgz#06be367febfda0c330aa1e2a072d3dc9762425d4"
286 | dependencies:
287 | graceful-readlink ">= 1.0.0"
288 |
289 | commander@^2.9.0:
290 | version "2.9.0"
291 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
292 | dependencies:
293 | graceful-readlink ">= 1.0.0"
294 |
295 | commander@~2.6.0:
296 | version "2.6.0"
297 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d"
298 |
299 | concat-map@0.0.1:
300 | version "0.0.1"
301 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
302 |
303 | console-browserify@^1.1.0:
304 | version "1.1.0"
305 | resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
306 | dependencies:
307 | date-now "^0.1.4"
308 |
309 | console-control-strings@^1.0.0, console-control-strings@~1.1.0:
310 | version "1.1.0"
311 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
312 |
313 | constantinople@~3.0.1:
314 | version "3.0.2"
315 | resolved "https://registry.yarnpkg.com/constantinople/-/constantinople-3.0.2.tgz#4b945d9937907bcd98ee575122c3817516544141"
316 | dependencies:
317 | acorn "^2.1.0"
318 |
319 | constants-browserify@^1.0.0:
320 | version "1.0.0"
321 | resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
322 |
323 | core-util-is@~1.0.0:
324 | version "1.0.2"
325 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
326 |
327 | cou@latest:
328 | version "1.3.0"
329 | resolved "https://registry.yarnpkg.com/cou/-/cou-1.3.0.tgz#4f357957da3f44f759e93614e450ba05e9e00918"
330 | dependencies:
331 | min-is latest
332 |
333 | cryptiles@2.x.x:
334 | version "2.0.5"
335 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
336 | dependencies:
337 | boom "2.x.x"
338 |
339 | crypto-browserify@3.3.0:
340 | version "3.3.0"
341 | resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.3.0.tgz#b9fc75bb4a0ed61dcf1cd5dae96eb30c9c3e506c"
342 | dependencies:
343 | browserify-aes "0.4.0"
344 | pbkdf2-compat "2.0.1"
345 | ripemd160 "0.2.0"
346 | sha.js "2.2.6"
347 |
348 | css-parse@1.0.4:
349 | version "1.0.4"
350 | resolved "https://registry.yarnpkg.com/css-parse/-/css-parse-1.0.4.tgz#38b0503fbf9da9f54e9c1dbda60e145c77117bdd"
351 |
352 | css-stringify@1.0.5:
353 | version "1.0.5"
354 | resolved "https://registry.yarnpkg.com/css-stringify/-/css-stringify-1.0.5.tgz#b0d042946db2953bb9d292900a6cb5f6d0122031"
355 |
356 | css@~1.0.8:
357 | version "1.0.8"
358 | resolved "https://registry.yarnpkg.com/css/-/css-1.0.8.tgz#9386811ca82bccc9ee7fb5a732b1e2a317c8a3e7"
359 | dependencies:
360 | css-parse "1.0.4"
361 | css-stringify "1.0.5"
362 |
363 | dashdash@^1.12.0:
364 | version "1.14.1"
365 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
366 | dependencies:
367 | assert-plus "^1.0.0"
368 |
369 | date-now@^0.1.4:
370 | version "0.1.4"
371 | resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
372 |
373 | debug@~2.2.0:
374 | version "2.2.0"
375 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da"
376 | dependencies:
377 | ms "0.7.1"
378 |
379 | decamelize@^1.0.0:
380 | version "1.2.0"
381 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
382 |
383 | deep-extend@~0.4.0:
384 | version "0.4.1"
385 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253"
386 |
387 | delayed-stream@~1.0.0:
388 | version "1.0.0"
389 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
390 |
391 | delegates@^1.0.0:
392 | version "1.0.0"
393 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
394 |
395 | domain-browser@^1.1.1:
396 | version "1.1.7"
397 | resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc"
398 |
399 | ecc-jsbn@~0.1.1:
400 | version "0.1.1"
401 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
402 | dependencies:
403 | jsbn "~0.1.0"
404 |
405 | emojis-list@^2.0.0:
406 | version "2.1.0"
407 | resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
408 |
409 | enhanced-resolve@~0.9.0:
410 | version "0.9.1"
411 | resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e"
412 | dependencies:
413 | graceful-fs "^4.1.2"
414 | memory-fs "^0.2.0"
415 | tapable "^0.1.8"
416 |
417 | errno@^0.1.3:
418 | version "0.1.4"
419 | resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d"
420 | dependencies:
421 | prr "~0.0.0"
422 |
423 | escape-string-regexp@^1.0.2:
424 | version "1.0.5"
425 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
426 |
427 | events@^1.0.0:
428 | version "1.1.1"
429 | resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
430 |
431 | expand-brackets@^0.1.4:
432 | version "0.1.5"
433 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
434 | dependencies:
435 | is-posix-bracket "^0.1.0"
436 |
437 | expand-range@^1.8.1:
438 | version "1.8.2"
439 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
440 | dependencies:
441 | fill-range "^2.1.0"
442 |
443 | extend@~3.0.0:
444 | version "3.0.0"
445 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4"
446 |
447 | extglob@^0.3.1:
448 | version "0.3.2"
449 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
450 | dependencies:
451 | is-extglob "^1.0.0"
452 |
453 | extsprintf@1.0.2:
454 | version "1.0.2"
455 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550"
456 |
457 | filename-regex@^2.0.0:
458 | version "2.0.0"
459 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775"
460 |
461 | fill-range@^2.1.0:
462 | version "2.2.3"
463 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
464 | dependencies:
465 | is-number "^2.1.0"
466 | isobject "^2.0.0"
467 | randomatic "^1.1.3"
468 | repeat-element "^1.1.2"
469 | repeat-string "^1.5.2"
470 |
471 | for-in@^0.1.5:
472 | version "0.1.6"
473 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.6.tgz#c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8"
474 |
475 | for-own@^0.1.4:
476 | version "0.1.4"
477 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.4.tgz#0149b41a39088c7515f51ebe1c1386d45f935072"
478 | dependencies:
479 | for-in "^0.1.5"
480 |
481 | forever-agent@~0.6.1:
482 | version "0.6.1"
483 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
484 |
485 | form-data@~2.1.1:
486 | version "2.1.2"
487 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4"
488 | dependencies:
489 | asynckit "^0.4.0"
490 | combined-stream "^1.0.5"
491 | mime-types "^2.1.12"
492 |
493 | fs.realpath@^1.0.0:
494 | version "1.0.0"
495 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
496 |
497 | fsevents@^1.0.0:
498 | version "1.0.17"
499 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.0.17.tgz#8537f3f12272678765b4fd6528c0f1f66f8f4558"
500 | dependencies:
501 | nan "^2.3.0"
502 | node-pre-gyp "^0.6.29"
503 |
504 | fstream-ignore@~1.0.5:
505 | version "1.0.5"
506 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105"
507 | dependencies:
508 | fstream "^1.0.0"
509 | inherits "2"
510 | minimatch "^3.0.0"
511 |
512 | fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10:
513 | version "1.0.10"
514 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.10.tgz#604e8a92fe26ffd9f6fae30399d4984e1ab22822"
515 | dependencies:
516 | graceful-fs "^4.1.2"
517 | inherits "~2.0.0"
518 | mkdirp ">=0.5 0"
519 | rimraf "2"
520 |
521 | gauge@~2.7.1:
522 | version "2.7.2"
523 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.2.tgz#15cecc31b02d05345a5d6b0e171cdb3ad2307774"
524 | dependencies:
525 | aproba "^1.0.3"
526 | console-control-strings "^1.0.0"
527 | has-unicode "^2.0.0"
528 | object-assign "^4.1.0"
529 | signal-exit "^3.0.0"
530 | string-width "^1.0.1"
531 | strip-ansi "^3.0.1"
532 | supports-color "^0.2.0"
533 | wide-align "^1.1.0"
534 |
535 | generate-function@^2.0.0:
536 | version "2.0.0"
537 | resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74"
538 |
539 | generate-object-property@^1.1.0:
540 | version "1.2.0"
541 | resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
542 | dependencies:
543 | is-property "^1.0.0"
544 |
545 | getpass@^0.1.1:
546 | version "0.1.6"
547 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6"
548 | dependencies:
549 | assert-plus "^1.0.0"
550 |
551 | glob-base@^0.3.0:
552 | version "0.3.0"
553 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
554 | dependencies:
555 | glob-parent "^2.0.0"
556 | is-glob "^2.0.0"
557 |
558 | glob-parent@^2.0.0:
559 | version "2.0.0"
560 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
561 | dependencies:
562 | is-glob "^2.0.0"
563 |
564 | glob@^7.0.5:
565 | version "7.1.1"
566 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
567 | dependencies:
568 | fs.realpath "^1.0.0"
569 | inflight "^1.0.4"
570 | inherits "2"
571 | minimatch "^3.0.2"
572 | once "^1.3.0"
573 | path-is-absolute "^1.0.0"
574 |
575 | graceful-fs@^4.1.2:
576 | version "4.1.11"
577 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
578 |
579 | "graceful-readlink@>= 1.0.0":
580 | version "1.0.1"
581 | resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
582 |
583 | har-validator@~2.0.6:
584 | version "2.0.6"
585 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
586 | dependencies:
587 | chalk "^1.1.1"
588 | commander "^2.9.0"
589 | is-my-json-valid "^2.12.4"
590 | pinkie-promise "^2.0.0"
591 |
592 | has-ansi@^2.0.0:
593 | version "2.0.0"
594 | resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
595 | dependencies:
596 | ansi-regex "^2.0.0"
597 |
598 | has-flag@^1.0.0:
599 | version "1.0.0"
600 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
601 |
602 | has-unicode@^2.0.0:
603 | version "2.0.1"
604 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
605 |
606 | hawk@~3.1.3:
607 | version "3.1.3"
608 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
609 | dependencies:
610 | boom "2.x.x"
611 | cryptiles "2.x.x"
612 | hoek "2.x.x"
613 | sntp "1.x.x"
614 |
615 | hoek@2.x.x:
616 | version "2.16.3"
617 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
618 |
619 | http-signature@~1.1.0:
620 | version "1.1.1"
621 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
622 | dependencies:
623 | assert-plus "^0.2.0"
624 | jsprim "^1.2.2"
625 | sshpk "^1.7.0"
626 |
627 | https-browserify@0.0.1:
628 | version "0.0.1"
629 | resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82"
630 |
631 | ieee754@^1.1.4:
632 | version "1.1.8"
633 | resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4"
634 |
635 | indexof@0.0.1:
636 | version "0.0.1"
637 | resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"
638 |
639 | inflight@^1.0.4:
640 | version "1.0.6"
641 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
642 | dependencies:
643 | once "^1.3.0"
644 | wrappy "1"
645 |
646 | inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1:
647 | version "2.0.3"
648 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
649 |
650 | inherits@2.0.1:
651 | version "2.0.1"
652 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1"
653 |
654 | ini@~1.3.0:
655 | version "1.3.4"
656 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e"
657 |
658 | interpret@^0.6.4:
659 | version "0.6.6"
660 | resolved "https://registry.yarnpkg.com/interpret/-/interpret-0.6.6.tgz#fecd7a18e7ce5ca6abfb953e1f86213a49f1625b"
661 |
662 | is-binary-path@^1.0.0:
663 | version "1.0.1"
664 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
665 | dependencies:
666 | binary-extensions "^1.0.0"
667 |
668 | is-buffer@^1.0.2:
669 | version "1.1.4"
670 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.4.tgz#cfc86ccd5dc5a52fa80489111c6920c457e2d98b"
671 |
672 | is-dotfile@^1.0.0:
673 | version "1.0.2"
674 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d"
675 |
676 | is-equal-shallow@^0.1.3:
677 | version "0.1.3"
678 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
679 | dependencies:
680 | is-primitive "^2.0.0"
681 |
682 | is-extendable@^0.1.1:
683 | version "0.1.1"
684 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
685 |
686 | is-extglob@^1.0.0:
687 | version "1.0.0"
688 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
689 |
690 | is-fullwidth-code-point@^1.0.0:
691 | version "1.0.0"
692 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
693 | dependencies:
694 | number-is-nan "^1.0.0"
695 |
696 | is-glob@^2.0.0, is-glob@^2.0.1:
697 | version "2.0.1"
698 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
699 | dependencies:
700 | is-extglob "^1.0.0"
701 |
702 | is-my-json-valid@^2.12.4:
703 | version "2.15.0"
704 | resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b"
705 | dependencies:
706 | generate-function "^2.0.0"
707 | generate-object-property "^1.1.0"
708 | jsonpointer "^4.0.0"
709 | xtend "^4.0.0"
710 |
711 | is-number@^2.0.2, is-number@^2.1.0:
712 | version "2.1.0"
713 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
714 | dependencies:
715 | kind-of "^3.0.2"
716 |
717 | is-posix-bracket@^0.1.0:
718 | version "0.1.1"
719 | resolved "http://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
720 |
721 | is-primitive@^2.0.0:
722 | version "2.0.0"
723 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
724 |
725 | is-promise@^2.0.0:
726 | version "2.1.0"
727 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
728 |
729 | is-promise@~1:
730 | version "1.0.1"
731 | resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-1.0.1.tgz#31573761c057e33c2e91aab9e96da08cefbe76e5"
732 |
733 | is-property@^1.0.0:
734 | version "1.0.2"
735 | resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
736 |
737 | is-typedarray@~1.0.0:
738 | version "1.0.0"
739 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
740 |
741 | isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
742 | version "1.0.0"
743 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
744 |
745 | isobject@^2.0.0:
746 | version "2.1.0"
747 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
748 | dependencies:
749 | isarray "1.0.0"
750 |
751 | isstream@~0.1.2:
752 | version "0.1.2"
753 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
754 |
755 | jade-gist@^1.0.3:
756 | version "1.0.5"
757 | resolved "https://registry.yarnpkg.com/jade-gist/-/jade-gist-1.0.5.tgz#fa3c6fcb5e10ed7ae2a32fc3bc729e0f9ba9a61a"
758 |
759 | jade@^1.11.0:
760 | version "1.11.0"
761 | resolved "https://registry.yarnpkg.com/jade/-/jade-1.11.0.tgz#9c80e538c12d3fb95c8d9bb9559fa0cc040405fd"
762 | dependencies:
763 | character-parser "1.2.1"
764 | clean-css "^3.1.9"
765 | commander "~2.6.0"
766 | constantinople "~3.0.1"
767 | jstransformer "0.0.2"
768 | mkdirp "~0.5.0"
769 | transformers "2.1.0"
770 | void-elements "~2.0.1"
771 | with "~4.0.0"
772 |
773 | jodid25519@^1.0.0:
774 | version "1.0.2"
775 | resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967"
776 | dependencies:
777 | jsbn "~0.1.0"
778 |
779 | jsbn@~0.1.0:
780 | version "0.1.0"
781 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd"
782 |
783 | json-schema@0.2.3:
784 | version "0.2.3"
785 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
786 |
787 | json-stringify-safe@~5.0.1:
788 | version "5.0.1"
789 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
790 |
791 | json5@^0.5.0:
792 | version "0.5.1"
793 | resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
794 |
795 | jsonpointer@^4.0.0:
796 | version "4.0.1"
797 | resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
798 |
799 | jsprim@^1.2.2:
800 | version "1.3.1"
801 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.3.1.tgz#2a7256f70412a29ee3670aaca625994c4dcff252"
802 | dependencies:
803 | extsprintf "1.0.2"
804 | json-schema "0.2.3"
805 | verror "1.3.6"
806 |
807 | jstransformer@0.0.2:
808 | version "0.0.2"
809 | resolved "https://registry.yarnpkg.com/jstransformer/-/jstransformer-0.0.2.tgz#7aae29a903d196cfa0973d885d3e47947ecd76ab"
810 | dependencies:
811 | is-promise "^2.0.0"
812 | promise "^6.0.1"
813 |
814 | kind-of@^3.0.2:
815 | version "3.1.0"
816 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47"
817 | dependencies:
818 | is-buffer "^1.0.2"
819 |
820 | lazy-cache@^1.0.3:
821 | version "1.0.4"
822 | resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
823 |
824 | loader-utils@^0.2.11:
825 | version "0.2.16"
826 | resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.16.tgz#f08632066ed8282835dff88dfb52704765adee6d"
827 | dependencies:
828 | big.js "^3.1.3"
829 | emojis-list "^2.0.0"
830 | json5 "^0.5.0"
831 | object-assign "^4.0.1"
832 |
833 | longest@^1.0.1:
834 | version "1.0.1"
835 | resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
836 |
837 | marked@^0.3.2:
838 | version "0.3.6"
839 | resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
840 |
841 | memory-fs@^0.2.0:
842 | version "0.2.0"
843 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290"
844 |
845 | memory-fs@~0.3.0:
846 | version "0.3.0"
847 | resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.3.0.tgz#7bcc6b629e3a43e871d7e29aca6ae8a7f15cbb20"
848 | dependencies:
849 | errno "^0.1.3"
850 | readable-stream "^2.0.1"
851 |
852 | micromatch@^2.1.5:
853 | version "2.3.11"
854 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
855 | dependencies:
856 | arr-diff "^2.0.0"
857 | array-unique "^0.2.1"
858 | braces "^1.8.2"
859 | expand-brackets "^0.1.4"
860 | extglob "^0.3.1"
861 | filename-regex "^2.0.0"
862 | is-extglob "^1.0.0"
863 | is-glob "^2.0.1"
864 | kind-of "^3.0.2"
865 | normalize-path "^2.0.1"
866 | object.omit "^2.0.0"
867 | parse-glob "^3.0.4"
868 | regex-cache "^0.4.2"
869 |
870 | mime-db@~1.26.0:
871 | version "1.26.0"
872 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff"
873 |
874 | mime-types@^2.1.12, mime-types@~2.1.7:
875 | version "2.1.14"
876 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee"
877 | dependencies:
878 | mime-db "~1.26.0"
879 |
880 | min-is@latest:
881 | version "2.2.0"
882 | resolved "https://registry.yarnpkg.com/min-is/-/min-is-2.2.0.tgz#2d84ba26b7be7554afd470108f7265d4ce4b39b0"
883 |
884 | min-qs@^1.3.0:
885 | version "1.3.0"
886 | resolved "https://registry.yarnpkg.com/min-qs/-/min-qs-1.3.0.tgz#3e1e50a94238656436748ff8b1da3ac9bde7b05d"
887 | dependencies:
888 | min-util latest
889 |
890 | min-util@^2.3.0, min-util@latest:
891 | version "2.3.0"
892 | resolved "https://registry.yarnpkg.com/min-util/-/min-util-2.3.0.tgz#95b7244de1ad8788cf3f1224dedd689176f64538"
893 | dependencies:
894 | cou latest
895 |
896 | minimatch@^3.0.0, minimatch@^3.0.2:
897 | version "3.0.3"
898 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774"
899 | dependencies:
900 | brace-expansion "^1.0.0"
901 |
902 | minimist@0.0.8, minimist@~0.0.1:
903 | version "0.0.8"
904 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
905 |
906 | minimist@^1.2.0:
907 | version "1.2.0"
908 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
909 |
910 | "mkdirp@>=0.5 0", mkdirp@~0.5.0, mkdirp@~0.5.1:
911 | version "0.5.1"
912 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
913 | dependencies:
914 | minimist "0.0.8"
915 |
916 | ms@0.7.1:
917 | version "0.7.1"
918 | resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098"
919 |
920 | nan@^2.3.0:
921 | version "2.5.1"
922 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.1.tgz#d5b01691253326a97a2bbee9e61c55d8d60351e2"
923 |
924 | node-libs-browser@^0.7.0:
925 | version "0.7.0"
926 | resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-0.7.0.tgz#3e272c0819e308935e26674408d7af0e1491b83b"
927 | dependencies:
928 | assert "^1.1.1"
929 | browserify-zlib "^0.1.4"
930 | buffer "^4.9.0"
931 | console-browserify "^1.1.0"
932 | constants-browserify "^1.0.0"
933 | crypto-browserify "3.3.0"
934 | domain-browser "^1.1.1"
935 | events "^1.0.0"
936 | https-browserify "0.0.1"
937 | os-browserify "^0.2.0"
938 | path-browserify "0.0.0"
939 | process "^0.11.0"
940 | punycode "^1.2.4"
941 | querystring-es3 "^0.2.0"
942 | readable-stream "^2.0.5"
943 | stream-browserify "^2.0.1"
944 | stream-http "^2.3.1"
945 | string_decoder "^0.10.25"
946 | timers-browserify "^2.0.2"
947 | tty-browserify "0.0.0"
948 | url "^0.11.0"
949 | util "^0.10.3"
950 | vm-browserify "0.0.4"
951 |
952 | node-pre-gyp@^0.6.29:
953 | version "0.6.32"
954 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.32.tgz#fc452b376e7319b3d255f5f34853ef6fd8fe1fd5"
955 | dependencies:
956 | mkdirp "~0.5.1"
957 | nopt "~3.0.6"
958 | npmlog "^4.0.1"
959 | rc "~1.1.6"
960 | request "^2.79.0"
961 | rimraf "~2.5.4"
962 | semver "~5.3.0"
963 | tar "~2.2.1"
964 | tar-pack "~3.3.0"
965 |
966 | nopt@~3.0.6:
967 | version "3.0.6"
968 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
969 | dependencies:
970 | abbrev "1"
971 |
972 | normalize-path@^2.0.1:
973 | version "2.0.1"
974 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a"
975 |
976 | npmlog@^4.0.1:
977 | version "4.0.2"
978 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f"
979 | dependencies:
980 | are-we-there-yet "~1.1.2"
981 | console-control-strings "~1.1.0"
982 | gauge "~2.7.1"
983 | set-blocking "~2.0.0"
984 |
985 | number-is-nan@^1.0.0:
986 | version "1.0.1"
987 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
988 |
989 | oauth-sign@~0.8.1:
990 | version "0.8.2"
991 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
992 |
993 | object-assign@^4.0.1, object-assign@^4.1.0:
994 | version "4.1.1"
995 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
996 |
997 | object.omit@^2.0.0:
998 | version "2.0.1"
999 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
1000 | dependencies:
1001 | for-own "^0.1.4"
1002 | is-extendable "^0.1.1"
1003 |
1004 | once@^1.3.0, once@~1.3.3:
1005 | version "1.3.3"
1006 | resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20"
1007 | dependencies:
1008 | wrappy "1"
1009 |
1010 | optimist@~0.3.5:
1011 | version "0.3.7"
1012 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.3.7.tgz#c90941ad59e4273328923074d2cf2e7cbc6ec0d9"
1013 | dependencies:
1014 | wordwrap "~0.0.2"
1015 |
1016 | optimist@~0.6.0:
1017 | version "0.6.1"
1018 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
1019 | dependencies:
1020 | minimist "~0.0.1"
1021 | wordwrap "~0.0.2"
1022 |
1023 | os-browserify@^0.2.0:
1024 | version "0.2.1"
1025 | resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f"
1026 |
1027 | pako@~0.2.0:
1028 | version "0.2.9"
1029 | resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75"
1030 |
1031 | parse-glob@^3.0.4:
1032 | version "3.0.4"
1033 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
1034 | dependencies:
1035 | glob-base "^0.3.0"
1036 | is-dotfile "^1.0.0"
1037 | is-extglob "^1.0.0"
1038 | is-glob "^2.0.0"
1039 |
1040 | path-browserify@0.0.0:
1041 | version "0.0.0"
1042 | resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a"
1043 |
1044 | path-is-absolute@^1.0.0:
1045 | version "1.0.1"
1046 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
1047 |
1048 | pbkdf2-compat@2.0.1:
1049 | version "2.0.1"
1050 | resolved "https://registry.yarnpkg.com/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz#b6e0c8fa99494d94e0511575802a59a5c142f288"
1051 |
1052 | pinkie-promise@^2.0.0:
1053 | version "2.0.1"
1054 | resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
1055 | dependencies:
1056 | pinkie "^2.0.0"
1057 |
1058 | pinkie@^2.0.0:
1059 | version "2.0.4"
1060 | resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
1061 |
1062 | preserve@^0.2.0:
1063 | version "0.2.0"
1064 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
1065 |
1066 | process-nextick-args@~1.0.6:
1067 | version "1.0.7"
1068 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
1069 |
1070 | process@^0.11.0:
1071 | version "0.11.9"
1072 | resolved "https://registry.yarnpkg.com/process/-/process-0.11.9.tgz#7bd5ad21aa6253e7da8682264f1e11d11c0318c1"
1073 |
1074 | promise@^6.0.1:
1075 | version "6.1.0"
1076 | resolved "https://registry.yarnpkg.com/promise/-/promise-6.1.0.tgz#2ce729f6b94b45c26891ad0602c5c90e04c6eef6"
1077 | dependencies:
1078 | asap "~1.0.0"
1079 |
1080 | promise@~2.0:
1081 | version "2.0.0"
1082 | resolved "https://registry.yarnpkg.com/promise/-/promise-2.0.0.tgz#46648aa9d605af5d2e70c3024bf59436da02b80e"
1083 | dependencies:
1084 | is-promise "~1"
1085 |
1086 | prr@~0.0.0:
1087 | version "0.0.0"
1088 | resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a"
1089 |
1090 | punycode@1.3.2:
1091 | version "1.3.2"
1092 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
1093 |
1094 | punycode@^1.2.4, punycode@^1.4.1:
1095 | version "1.4.1"
1096 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
1097 |
1098 | qs@~6.3.0:
1099 | version "6.3.0"
1100 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.0.tgz#f403b264f23bc01228c74131b407f18d5ea5d442"
1101 |
1102 | querystring-es3@^0.2.0:
1103 | version "0.2.1"
1104 | resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
1105 |
1106 | querystring@0.2.0:
1107 | version "0.2.0"
1108 | resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
1109 |
1110 | randomatic@^1.1.3:
1111 | version "1.1.6"
1112 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb"
1113 | dependencies:
1114 | is-number "^2.0.2"
1115 | kind-of "^3.0.2"
1116 |
1117 | raw-loader@^0.5.1:
1118 | version "0.5.1"
1119 | resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-0.5.1.tgz#0c3d0beaed8a01c966d9787bf778281252a979aa"
1120 |
1121 | rc@~1.1.6:
1122 | version "1.1.6"
1123 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.6.tgz#43651b76b6ae53b5c802f1151fa3fc3b059969c9"
1124 | dependencies:
1125 | deep-extend "~0.4.0"
1126 | ini "~1.3.0"
1127 | minimist "^1.2.0"
1128 | strip-json-comments "~1.0.4"
1129 |
1130 | "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.0:
1131 | version "2.2.2"
1132 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.2.tgz#a9e6fec3c7dda85f8bb1b3ba7028604556fc825e"
1133 | dependencies:
1134 | buffer-shims "^1.0.0"
1135 | core-util-is "~1.0.0"
1136 | inherits "~2.0.1"
1137 | isarray "~1.0.0"
1138 | process-nextick-args "~1.0.6"
1139 | string_decoder "~0.10.x"
1140 | util-deprecate "~1.0.1"
1141 |
1142 | readable-stream@~2.1.4:
1143 | version "2.1.5"
1144 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0"
1145 | dependencies:
1146 | buffer-shims "^1.0.0"
1147 | core-util-is "~1.0.0"
1148 | inherits "~2.0.1"
1149 | isarray "~1.0.0"
1150 | process-nextick-args "~1.0.6"
1151 | string_decoder "~0.10.x"
1152 | util-deprecate "~1.0.1"
1153 |
1154 | readdirp@^2.0.0:
1155 | version "2.1.0"
1156 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
1157 | dependencies:
1158 | graceful-fs "^4.1.2"
1159 | minimatch "^3.0.2"
1160 | readable-stream "^2.0.2"
1161 | set-immediate-shim "^1.0.1"
1162 |
1163 | regex-cache@^0.4.2:
1164 | version "0.4.3"
1165 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145"
1166 | dependencies:
1167 | is-equal-shallow "^0.1.3"
1168 | is-primitive "^2.0.0"
1169 |
1170 | repeat-element@^1.1.2:
1171 | version "1.1.2"
1172 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
1173 |
1174 | repeat-string@^1.5.2:
1175 | version "1.6.1"
1176 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
1177 |
1178 | request@^2.79.0:
1179 | version "2.79.0"
1180 | resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
1181 | dependencies:
1182 | aws-sign2 "~0.6.0"
1183 | aws4 "^1.2.1"
1184 | caseless "~0.11.0"
1185 | combined-stream "~1.0.5"
1186 | extend "~3.0.0"
1187 | forever-agent "~0.6.1"
1188 | form-data "~2.1.1"
1189 | har-validator "~2.0.6"
1190 | hawk "~3.1.3"
1191 | http-signature "~1.1.0"
1192 | is-typedarray "~1.0.0"
1193 | isstream "~0.1.2"
1194 | json-stringify-safe "~5.0.1"
1195 | mime-types "~2.1.7"
1196 | oauth-sign "~0.8.1"
1197 | qs "~6.3.0"
1198 | stringstream "~0.0.4"
1199 | tough-cookie "~2.3.0"
1200 | tunnel-agent "~0.4.1"
1201 | uuid "^3.0.0"
1202 |
1203 | right-align@^0.1.1:
1204 | version "0.1.3"
1205 | resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
1206 | dependencies:
1207 | align-text "^0.1.1"
1208 |
1209 | rimraf@2, rimraf@~2.5.1, rimraf@~2.5.4:
1210 | version "2.5.4"
1211 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04"
1212 | dependencies:
1213 | glob "^7.0.5"
1214 |
1215 | ripemd160@0.2.0:
1216 | version "0.2.0"
1217 | resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-0.2.0.tgz#2bf198bde167cacfa51c0a928e84b68bbe171fce"
1218 |
1219 | semver@~5.3.0:
1220 | version "5.3.0"
1221 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
1222 |
1223 | set-blocking@~2.0.0:
1224 | version "2.0.0"
1225 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
1226 |
1227 | set-immediate-shim@^1.0.1:
1228 | version "1.0.1"
1229 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
1230 |
1231 | setimmediate@^1.0.4:
1232 | version "1.0.5"
1233 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
1234 |
1235 | sha.js@2.2.6:
1236 | version "2.2.6"
1237 | resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.2.6.tgz#17ddeddc5f722fb66501658895461977867315ba"
1238 |
1239 | signal-exit@^3.0.0:
1240 | version "3.0.2"
1241 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
1242 |
1243 | sntp@1.x.x:
1244 | version "1.0.9"
1245 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
1246 | dependencies:
1247 | hoek "2.x.x"
1248 |
1249 | source-list-map@~0.1.7:
1250 | version "0.1.8"
1251 | resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106"
1252 |
1253 | source-map@0.4.x, source-map@~0.4.1:
1254 | version "0.4.4"
1255 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
1256 | dependencies:
1257 | amdefine ">=0.0.4"
1258 |
1259 | source-map@~0.1.7:
1260 | version "0.1.43"
1261 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346"
1262 | dependencies:
1263 | amdefine ">=0.0.4"
1264 |
1265 | source-map@~0.5.1:
1266 | version "0.5.6"
1267 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
1268 |
1269 | sshpk@^1.7.0:
1270 | version "1.10.2"
1271 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.10.2.tgz#d5a804ce22695515638e798dbe23273de070a5fa"
1272 | dependencies:
1273 | asn1 "~0.2.3"
1274 | assert-plus "^1.0.0"
1275 | dashdash "^1.12.0"
1276 | getpass "^0.1.1"
1277 | optionalDependencies:
1278 | bcrypt-pbkdf "^1.0.0"
1279 | ecc-jsbn "~0.1.1"
1280 | jodid25519 "^1.0.0"
1281 | jsbn "~0.1.0"
1282 | tweetnacl "~0.14.0"
1283 |
1284 | stream-browserify@^2.0.1:
1285 | version "2.0.1"
1286 | resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db"
1287 | dependencies:
1288 | inherits "~2.0.1"
1289 | readable-stream "^2.0.2"
1290 |
1291 | stream-http@^2.3.1:
1292 | version "2.6.3"
1293 | resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.6.3.tgz#4c3ddbf9635968ea2cfd4e48d43de5def2625ac3"
1294 | dependencies:
1295 | builtin-status-codes "^3.0.0"
1296 | inherits "^2.0.1"
1297 | readable-stream "^2.1.0"
1298 | to-arraybuffer "^1.0.0"
1299 | xtend "^4.0.0"
1300 |
1301 | string-width@^1.0.1:
1302 | version "1.0.2"
1303 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
1304 | dependencies:
1305 | code-point-at "^1.0.0"
1306 | is-fullwidth-code-point "^1.0.0"
1307 | strip-ansi "^3.0.0"
1308 |
1309 | string_decoder@^0.10.25, string_decoder@~0.10.x:
1310 | version "0.10.31"
1311 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
1312 |
1313 | stringstream@~0.0.4:
1314 | version "0.0.5"
1315 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
1316 |
1317 | strip-ansi@^3.0.0, strip-ansi@^3.0.1:
1318 | version "3.0.1"
1319 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
1320 | dependencies:
1321 | ansi-regex "^2.0.0"
1322 |
1323 | strip-json-comments@~1.0.4:
1324 | version "1.0.4"
1325 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91"
1326 |
1327 | supports-color@^0.2.0:
1328 | version "0.2.0"
1329 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"
1330 |
1331 | supports-color@^2.0.0:
1332 | version "2.0.0"
1333 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
1334 |
1335 | supports-color@^3.1.0:
1336 | version "3.2.3"
1337 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
1338 | dependencies:
1339 | has-flag "^1.0.0"
1340 |
1341 | tapable@^0.1.8, tapable@~0.1.8:
1342 | version "0.1.10"
1343 | resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4"
1344 |
1345 | tar-pack@~3.3.0:
1346 | version "3.3.0"
1347 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae"
1348 | dependencies:
1349 | debug "~2.2.0"
1350 | fstream "~1.0.10"
1351 | fstream-ignore "~1.0.5"
1352 | once "~1.3.3"
1353 | readable-stream "~2.1.4"
1354 | rimraf "~2.5.1"
1355 | tar "~2.2.1"
1356 | uid-number "~0.0.6"
1357 |
1358 | tar@~2.2.1:
1359 | version "2.2.1"
1360 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1"
1361 | dependencies:
1362 | block-stream "*"
1363 | fstream "^1.0.2"
1364 | inherits "2"
1365 |
1366 | timers-browserify@^2.0.2:
1367 | version "2.0.2"
1368 | resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.2.tgz#ab4883cf597dcd50af211349a00fbca56ac86b86"
1369 | dependencies:
1370 | setimmediate "^1.0.4"
1371 |
1372 | to-arraybuffer@^1.0.0:
1373 | version "1.0.1"
1374 | resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"
1375 |
1376 | tough-cookie@~2.3.0:
1377 | version "2.3.2"
1378 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a"
1379 | dependencies:
1380 | punycode "^1.4.1"
1381 |
1382 | transformers@2.1.0:
1383 | version "2.1.0"
1384 | resolved "https://registry.yarnpkg.com/transformers/-/transformers-2.1.0.tgz#5d23cb35561dd85dc67fb8482309b47d53cce9a7"
1385 | dependencies:
1386 | css "~1.0.8"
1387 | promise "~2.0"
1388 | uglify-js "~2.2.5"
1389 |
1390 | tty-browserify@0.0.0:
1391 | version "0.0.0"
1392 | resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
1393 |
1394 | tunnel-agent@~0.4.1:
1395 | version "0.4.3"
1396 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
1397 |
1398 | tweetnacl@^0.14.3, tweetnacl@~0.14.0:
1399 | version "0.14.5"
1400 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
1401 |
1402 | uglify-js@~2.2.5:
1403 | version "2.2.5"
1404 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.2.5.tgz#a6e02a70d839792b9780488b7b8b184c095c99c7"
1405 | dependencies:
1406 | optimist "~0.3.5"
1407 | source-map "~0.1.7"
1408 |
1409 | uglify-js@~2.7.3:
1410 | version "2.7.5"
1411 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8"
1412 | dependencies:
1413 | async "~0.2.6"
1414 | source-map "~0.5.1"
1415 | uglify-to-browserify "~1.0.0"
1416 | yargs "~3.10.0"
1417 |
1418 | uglify-to-browserify@~1.0.0:
1419 | version "1.0.2"
1420 | resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
1421 |
1422 | uid-number@~0.0.6:
1423 | version "0.0.6"
1424 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
1425 |
1426 | url@^0.11.0:
1427 | version "0.11.0"
1428 | resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
1429 | dependencies:
1430 | punycode "1.3.2"
1431 | querystring "0.2.0"
1432 |
1433 | util-deprecate@~1.0.1:
1434 | version "1.0.2"
1435 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
1436 |
1437 | util@0.10.3, util@^0.10.3:
1438 | version "0.10.3"
1439 | resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"
1440 | dependencies:
1441 | inherits "2.0.1"
1442 |
1443 | uuid@^3.0.0:
1444 | version "3.0.1"
1445 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1"
1446 |
1447 | verror@1.3.6:
1448 | version "1.3.6"
1449 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c"
1450 | dependencies:
1451 | extsprintf "1.0.2"
1452 |
1453 | vm-browserify@0.0.4:
1454 | version "0.0.4"
1455 | resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73"
1456 | dependencies:
1457 | indexof "0.0.1"
1458 |
1459 | void-elements@~2.0.1:
1460 | version "2.0.1"
1461 | resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec"
1462 |
1463 | watchpack@^0.2.1:
1464 | version "0.2.9"
1465 | resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-0.2.9.tgz#62eaa4ab5e5ba35fdfc018275626e3c0f5e3fb0b"
1466 | dependencies:
1467 | async "^0.9.0"
1468 | chokidar "^1.0.0"
1469 | graceful-fs "^4.1.2"
1470 |
1471 | webpack-core@~0.6.9:
1472 | version "0.6.9"
1473 | resolved "https://registry.yarnpkg.com/webpack-core/-/webpack-core-0.6.9.tgz#fc571588c8558da77be9efb6debdc5a3b172bdc2"
1474 | dependencies:
1475 | source-list-map "~0.1.7"
1476 | source-map "~0.4.1"
1477 |
1478 | webpack@^1.14.0:
1479 | version "1.14.0"
1480 | resolved "https://registry.yarnpkg.com/webpack/-/webpack-1.14.0.tgz#54f1ffb92051a328a5b2057d6ae33c289462c823"
1481 | dependencies:
1482 | acorn "^3.0.0"
1483 | async "^1.3.0"
1484 | clone "^1.0.2"
1485 | enhanced-resolve "~0.9.0"
1486 | interpret "^0.6.4"
1487 | loader-utils "^0.2.11"
1488 | memory-fs "~0.3.0"
1489 | mkdirp "~0.5.0"
1490 | node-libs-browser "^0.7.0"
1491 | optimist "~0.6.0"
1492 | supports-color "^3.1.0"
1493 | tapable "~0.1.8"
1494 | uglify-js "~2.7.3"
1495 | watchpack "^0.2.1"
1496 | webpack-core "~0.6.9"
1497 |
1498 | wide-align@^1.1.0:
1499 | version "1.1.0"
1500 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad"
1501 | dependencies:
1502 | string-width "^1.0.1"
1503 |
1504 | window-size@0.1.0:
1505 | version "0.1.0"
1506 | resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
1507 |
1508 | with@~4.0.0:
1509 | version "4.0.3"
1510 | resolved "https://registry.yarnpkg.com/with/-/with-4.0.3.tgz#eefd154e9e79d2c8d3417b647a8f14d9fecce14e"
1511 | dependencies:
1512 | acorn "^1.0.1"
1513 | acorn-globals "^1.0.3"
1514 |
1515 | wordwrap@0.0.2:
1516 | version "0.0.2"
1517 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
1518 |
1519 | wordwrap@~0.0.2:
1520 | version "0.0.3"
1521 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
1522 |
1523 | wrappy@1:
1524 | version "1.0.2"
1525 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
1526 |
1527 | xtend@^4.0.0:
1528 | version "4.0.1"
1529 | resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
1530 |
1531 | yargs@~3.10.0:
1532 | version "3.10.0"
1533 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
1534 | dependencies:
1535 | camelcase "^1.0.2"
1536 | cliui "^2.1.0"
1537 | decamelize "^1.0.0"
1538 | window-size "0.1.0"
1539 |
--------------------------------------------------------------------------------
/browser/bundle.js:
--------------------------------------------------------------------------------
1 | /******/ (function(modules) { // webpackBootstrap
2 | /******/ // The module cache
3 | /******/ var installedModules = {};
4 |
5 | /******/ // The require function
6 | /******/ function __webpack_require__(moduleId) {
7 |
8 | /******/ // Check if module is in cache
9 | /******/ if(installedModules[moduleId])
10 | /******/ return installedModules[moduleId].exports;
11 |
12 | /******/ // Create a new module (and put it into the cache)
13 | /******/ var module = installedModules[moduleId] = {
14 | /******/ exports: {},
15 | /******/ id: moduleId,
16 | /******/ loaded: false
17 | /******/ };
18 |
19 | /******/ // Execute the module function
20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21 |
22 | /******/ // Flag the module as loaded
23 | /******/ module.loaded = true;
24 |
25 | /******/ // Return the exports of the module
26 | /******/ return module.exports;
27 | /******/ }
28 |
29 |
30 | /******/ // expose the modules object (__webpack_modules__)
31 | /******/ __webpack_require__.m = modules;
32 |
33 | /******/ // expose the module cache
34 | /******/ __webpack_require__.c = installedModules;
35 |
36 | /******/ // __webpack_public_path__
37 | /******/ __webpack_require__.p = "";
38 |
39 | /******/ // Load entry module and return exports
40 | /******/ return __webpack_require__(0);
41 | /******/ })
42 | /************************************************************************/
43 | /******/ ([
44 | /* 0 */
45 | /***/ function(module, exports, __webpack_require__) {
46 |
47 | var convert = __webpack_require__(1)
48 | var demoMarkdown = __webpack_require__(15)
49 |
50 | $('#convert').click(function() {
51 | var markdown = $('#markdown').val()
52 | $('#markup').val(convert(markdown))
53 | })
54 |
55 | $(init)
56 |
57 | function init() {
58 | $('#markdown').val(demoMarkdown)
59 | $('#convert').trigger('click')
60 | }
61 |
62 |
63 | /***/ },
64 | /* 1 */
65 | /***/ function(module, exports, __webpack_require__) {
66 |
67 | var marked = __webpack_require__(2)
68 | var _ = __webpack_require__(3)
69 | var qs = __webpack_require__(14)
70 | var inlineLexer = marked.inlineLexer
71 |
72 | module.exports = exports = markdown2confluence
73 |
74 | // https://roundcorner.atlassian.net/secure/WikiRendererHelpAction.jspa?section=all
75 | // https://confluence.atlassian.com/display/DOC/Confluence+Wiki+Markup
76 | // http://blogs.atlassian.com/2011/11/why-we-removed-wiki-markup-editor-in-confluence-4/
77 |
78 | var MAX_CODE_LINE = 20
79 |
80 | function Renderer() {}
81 |
82 | var rawRenderer = marked.Renderer
83 |
84 | var langArr = 'actionscript3 bash csharp coldfusion cpp css delphi diff erlang groovy java javafx javascript perl php none powershell python ruby scala sql vb html/xml'.split(/\s+/)
85 | var langMap = {
86 | shell: 'bash'
87 | }
88 | for (var i = 0, x; x = langArr[i++];) {
89 | langMap[x] = x
90 | }
91 |
92 | _.extend(Renderer.prototype, rawRenderer.prototype, {
93 | paragraph: function(text) {
94 | return text + '\n\n'
95 | }
96 | , html: function(html) {
97 | return html
98 | }
99 | , heading: function(text, level, raw) {
100 | return 'h' + level + '. ' + text + '\n\n'
101 | }
102 | , strong: function(text) {
103 | return '*' + text + '*'
104 | }
105 | , em: function(text) {
106 | return '_' + text + '_'
107 | }
108 | , del: function(text) {
109 | return '-' + text + '-'
110 | }
111 | , codespan: function(text) {
112 | return '{{' + text + '}}'
113 | }
114 | , blockquote: function(quote) {
115 | return '{quote}' + quote + '{quote}'
116 | }
117 | , br: function() {
118 | return '\n'
119 | }
120 | , hr: function() {
121 | return '----'
122 | }
123 | , link: function(href, title, text) {
124 | var arr = [href]
125 | if (text) {
126 | arr.unshift(text)
127 | }
128 | return '[' + arr.join('|') + ']'
129 | }
130 | , list: function(body, ordered) {
131 | var arr = _.filter(_.trim(body).split('\n'), function(line) {
132 | return line
133 | })
134 | var type = ordered ? '#' : '*'
135 | return _.map(arr, function(line) {
136 | return type + ' ' + line
137 | }).join('\n') + '\n\n'
138 |
139 | }
140 | , listitem: function(body, ordered) {
141 | return body + '\n'
142 | }
143 | , image: function(href, title, text) {
144 | return '!' + href + '!'
145 | }
146 | , table: function(header, body) {
147 | return header + body + '\n'
148 | }
149 | , tablerow: function(content, flags) {
150 | return content + '\n'
151 | }
152 | , tablecell: function(content, flags) {
153 | var type = flags.header ? '||' : '|'
154 | return type + content
155 | }
156 | , code: function(code, lang) {
157 | // {code:language=java|borderStyle=solid|theme=RDark|linenumbers=true|collapse=true}
158 | lang = langMap[lang] || ''
159 | var param = {
160 | language: lang,
161 | borderStyle: 'solid',
162 | theme: 'RDark', // dark is good
163 | linenumbers: true,
164 | collapse: false
165 | }
166 | var lineCount = _.split(code, '\n').length
167 | if (lineCount > MAX_CODE_LINE) {
168 | // code is too long
169 | param.collapse = true
170 | }
171 | param = qs.stringify(param, '|', '=')
172 | return '{code:' + param + '}\n' + code + '\n{code}\n\n'
173 | }
174 | })
175 |
176 | var renderer = new Renderer()
177 |
178 | function markdown2confluence(markdown) {
179 | return marked(markdown, {renderer: renderer})
180 | }
181 |
182 |
183 | /***/ },
184 | /* 2 */
185 | /***/ function(module, exports, __webpack_require__) {
186 |
187 | /* WEBPACK VAR INJECTION */(function(global) {/**
188 | * marked - a markdown parser
189 | * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
190 | * https://github.com/chjj/marked
191 | */
192 |
193 | ;(function() {
194 |
195 | /**
196 | * Block-Level Grammar
197 | */
198 |
199 | var block = {
200 | newline: /^\n+/,
201 | code: /^( {4}[^\n]+\n*)+/,
202 | fences: noop,
203 | hr: /^( *[-*_]){3,} *(?:\n+|$)/,
204 | heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
205 | nptable: noop,
206 | lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
207 | blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,
208 | list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
209 | html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
210 | def: /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
211 | table: noop,
212 | paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,
213 | text: /^[^\n]+/
214 | };
215 |
216 | block.bullet = /(?:[*+-]|\d+\.)/;
217 | block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;
218 | block.item = replace(block.item, 'gm')
219 | (/bull/g, block.bullet)
220 | ();
221 |
222 | block.list = replace(block.list)
223 | (/bull/g, block.bullet)
224 | ('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))')
225 | ('def', '\\n+(?=' + block.def.source + ')')
226 | ();
227 |
228 | block.blockquote = replace(block.blockquote)
229 | ('def', block.def)
230 | ();
231 |
232 | block._tag = '(?!(?:'
233 | + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'
234 | + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'
235 | + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b';
236 |
237 | block.html = replace(block.html)
238 | ('comment', //)
239 | ('closed', /<(tag)[\s\S]+?<\/\1>/)
240 | ('closing', /])*?>/)
241 | (/tag/g, block._tag)
242 | ();
243 |
244 | block.paragraph = replace(block.paragraph)
245 | ('hr', block.hr)
246 | ('heading', block.heading)
247 | ('lheading', block.lheading)
248 | ('blockquote', block.blockquote)
249 | ('tag', '<' + block._tag)
250 | ('def', block.def)
251 | ();
252 |
253 | /**
254 | * Normal Block Grammar
255 | */
256 |
257 | block.normal = merge({}, block);
258 |
259 | /**
260 | * GFM Block Grammar
261 | */
262 |
263 | block.gfm = merge({}, block.normal, {
264 | fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,
265 | paragraph: /^/,
266 | heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/
267 | });
268 |
269 | block.gfm.paragraph = replace(block.paragraph)
270 | ('(?!', '(?!'
271 | + block.gfm.fences.source.replace('\\1', '\\2') + '|'
272 | + block.list.source.replace('\\1', '\\3') + '|')
273 | ();
274 |
275 | /**
276 | * GFM + Tables Block Grammar
277 | */
278 |
279 | block.tables = merge({}, block.gfm, {
280 | nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,
281 | table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/
282 | });
283 |
284 | /**
285 | * Block Lexer
286 | */
287 |
288 | function Lexer(options) {
289 | this.tokens = [];
290 | this.tokens.links = {};
291 | this.options = options || marked.defaults;
292 | this.rules = block.normal;
293 |
294 | if (this.options.gfm) {
295 | if (this.options.tables) {
296 | this.rules = block.tables;
297 | } else {
298 | this.rules = block.gfm;
299 | }
300 | }
301 | }
302 |
303 | /**
304 | * Expose Block Rules
305 | */
306 |
307 | Lexer.rules = block;
308 |
309 | /**
310 | * Static Lex Method
311 | */
312 |
313 | Lexer.lex = function(src, options) {
314 | var lexer = new Lexer(options);
315 | return lexer.lex(src);
316 | };
317 |
318 | /**
319 | * Preprocessing
320 | */
321 |
322 | Lexer.prototype.lex = function(src) {
323 | src = src
324 | .replace(/\r\n|\r/g, '\n')
325 | .replace(/\t/g, ' ')
326 | .replace(/\u00a0/g, ' ')
327 | .replace(/\u2424/g, '\n');
328 |
329 | return this.token(src, true);
330 | };
331 |
332 | /**
333 | * Lexing
334 | */
335 |
336 | Lexer.prototype.token = function(src, top, bq) {
337 | var src = src.replace(/^ +$/gm, '')
338 | , next
339 | , loose
340 | , cap
341 | , bull
342 | , b
343 | , item
344 | , space
345 | , i
346 | , l;
347 |
348 | while (src) {
349 | // newline
350 | if (cap = this.rules.newline.exec(src)) {
351 | src = src.substring(cap[0].length);
352 | if (cap[0].length > 1) {
353 | this.tokens.push({
354 | type: 'space'
355 | });
356 | }
357 | }
358 |
359 | // code
360 | if (cap = this.rules.code.exec(src)) {
361 | src = src.substring(cap[0].length);
362 | cap = cap[0].replace(/^ {4}/gm, '');
363 | this.tokens.push({
364 | type: 'code',
365 | text: !this.options.pedantic
366 | ? cap.replace(/\n+$/, '')
367 | : cap
368 | });
369 | continue;
370 | }
371 |
372 | // fences (gfm)
373 | if (cap = this.rules.fences.exec(src)) {
374 | src = src.substring(cap[0].length);
375 | this.tokens.push({
376 | type: 'code',
377 | lang: cap[2],
378 | text: cap[3] || ''
379 | });
380 | continue;
381 | }
382 |
383 | // heading
384 | if (cap = this.rules.heading.exec(src)) {
385 | src = src.substring(cap[0].length);
386 | this.tokens.push({
387 | type: 'heading',
388 | depth: cap[1].length,
389 | text: cap[2]
390 | });
391 | continue;
392 | }
393 |
394 | // table no leading pipe (gfm)
395 | if (top && (cap = this.rules.nptable.exec(src))) {
396 | src = src.substring(cap[0].length);
397 |
398 | item = {
399 | type: 'table',
400 | header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
401 | align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
402 | cells: cap[3].replace(/\n$/, '').split('\n')
403 | };
404 |
405 | for (i = 0; i < item.align.length; i++) {
406 | if (/^ *-+: *$/.test(item.align[i])) {
407 | item.align[i] = 'right';
408 | } else if (/^ *:-+: *$/.test(item.align[i])) {
409 | item.align[i] = 'center';
410 | } else if (/^ *:-+ *$/.test(item.align[i])) {
411 | item.align[i] = 'left';
412 | } else {
413 | item.align[i] = null;
414 | }
415 | }
416 |
417 | for (i = 0; i < item.cells.length; i++) {
418 | item.cells[i] = item.cells[i].split(/ *\| */);
419 | }
420 |
421 | this.tokens.push(item);
422 |
423 | continue;
424 | }
425 |
426 | // lheading
427 | if (cap = this.rules.lheading.exec(src)) {
428 | src = src.substring(cap[0].length);
429 | this.tokens.push({
430 | type: 'heading',
431 | depth: cap[2] === '=' ? 1 : 2,
432 | text: cap[1]
433 | });
434 | continue;
435 | }
436 |
437 | // hr
438 | if (cap = this.rules.hr.exec(src)) {
439 | src = src.substring(cap[0].length);
440 | this.tokens.push({
441 | type: 'hr'
442 | });
443 | continue;
444 | }
445 |
446 | // blockquote
447 | if (cap = this.rules.blockquote.exec(src)) {
448 | src = src.substring(cap[0].length);
449 |
450 | this.tokens.push({
451 | type: 'blockquote_start'
452 | });
453 |
454 | cap = cap[0].replace(/^ *> ?/gm, '');
455 |
456 | // Pass `top` to keep the current
457 | // "toplevel" state. This is exactly
458 | // how markdown.pl works.
459 | this.token(cap, top, true);
460 |
461 | this.tokens.push({
462 | type: 'blockquote_end'
463 | });
464 |
465 | continue;
466 | }
467 |
468 | // list
469 | if (cap = this.rules.list.exec(src)) {
470 | src = src.substring(cap[0].length);
471 | bull = cap[2];
472 |
473 | this.tokens.push({
474 | type: 'list_start',
475 | ordered: bull.length > 1
476 | });
477 |
478 | // Get each top-level item.
479 | cap = cap[0].match(this.rules.item);
480 |
481 | next = false;
482 | l = cap.length;
483 | i = 0;
484 |
485 | for (; i < l; i++) {
486 | item = cap[i];
487 |
488 | // Remove the list item's bullet
489 | // so it is seen as the next token.
490 | space = item.length;
491 | item = item.replace(/^ *([*+-]|\d+\.) +/, '');
492 |
493 | // Outdent whatever the
494 | // list item contains. Hacky.
495 | if (~item.indexOf('\n ')) {
496 | space -= item.length;
497 | item = !this.options.pedantic
498 | ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')
499 | : item.replace(/^ {1,4}/gm, '');
500 | }
501 |
502 | // Determine whether the next list item belongs here.
503 | // Backpedal if it does not belong in this list.
504 | if (this.options.smartLists && i !== l - 1) {
505 | b = block.bullet.exec(cap[i + 1])[0];
506 | if (bull !== b && !(bull.length > 1 && b.length > 1)) {
507 | src = cap.slice(i + 1).join('\n') + src;
508 | i = l - 1;
509 | }
510 | }
511 |
512 | // Determine whether item is loose or not.
513 | // Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/
514 | // for discount behavior.
515 | loose = next || /\n\n(?!\s*$)/.test(item);
516 | if (i !== l - 1) {
517 | next = item.charAt(item.length - 1) === '\n';
518 | if (!loose) loose = next;
519 | }
520 |
521 | this.tokens.push({
522 | type: loose
523 | ? 'loose_item_start'
524 | : 'list_item_start'
525 | });
526 |
527 | // Recurse.
528 | this.token(item, false, bq);
529 |
530 | this.tokens.push({
531 | type: 'list_item_end'
532 | });
533 | }
534 |
535 | this.tokens.push({
536 | type: 'list_end'
537 | });
538 |
539 | continue;
540 | }
541 |
542 | // html
543 | if (cap = this.rules.html.exec(src)) {
544 | src = src.substring(cap[0].length);
545 | this.tokens.push({
546 | type: this.options.sanitize
547 | ? 'paragraph'
548 | : 'html',
549 | pre: !this.options.sanitizer
550 | && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),
551 | text: cap[0]
552 | });
553 | continue;
554 | }
555 |
556 | // def
557 | if ((!bq && top) && (cap = this.rules.def.exec(src))) {
558 | src = src.substring(cap[0].length);
559 | this.tokens.links[cap[1].toLowerCase()] = {
560 | href: cap[2],
561 | title: cap[3]
562 | };
563 | continue;
564 | }
565 |
566 | // table (gfm)
567 | if (top && (cap = this.rules.table.exec(src))) {
568 | src = src.substring(cap[0].length);
569 |
570 | item = {
571 | type: 'table',
572 | header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */),
573 | align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
574 | cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n')
575 | };
576 |
577 | for (i = 0; i < item.align.length; i++) {
578 | if (/^ *-+: *$/.test(item.align[i])) {
579 | item.align[i] = 'right';
580 | } else if (/^ *:-+: *$/.test(item.align[i])) {
581 | item.align[i] = 'center';
582 | } else if (/^ *:-+ *$/.test(item.align[i])) {
583 | item.align[i] = 'left';
584 | } else {
585 | item.align[i] = null;
586 | }
587 | }
588 |
589 | for (i = 0; i < item.cells.length; i++) {
590 | item.cells[i] = item.cells[i]
591 | .replace(/^ *\| *| *\| *$/g, '')
592 | .split(/ *\| */);
593 | }
594 |
595 | this.tokens.push(item);
596 |
597 | continue;
598 | }
599 |
600 | // top-level paragraph
601 | if (top && (cap = this.rules.paragraph.exec(src))) {
602 | src = src.substring(cap[0].length);
603 | this.tokens.push({
604 | type: 'paragraph',
605 | text: cap[1].charAt(cap[1].length - 1) === '\n'
606 | ? cap[1].slice(0, -1)
607 | : cap[1]
608 | });
609 | continue;
610 | }
611 |
612 | // text
613 | if (cap = this.rules.text.exec(src)) {
614 | // Top-level should never reach here.
615 | src = src.substring(cap[0].length);
616 | this.tokens.push({
617 | type: 'text',
618 | text: cap[0]
619 | });
620 | continue;
621 | }
622 |
623 | if (src) {
624 | throw new
625 | Error('Infinite loop on byte: ' + src.charCodeAt(0));
626 | }
627 | }
628 |
629 | return this.tokens;
630 | };
631 |
632 | /**
633 | * Inline-Level Grammar
634 | */
635 |
636 | var inline = {
637 | escape: /^\\([\\`*{}\[\]()#+\-.!_>])/,
638 | autolink: /^<([^ >]+(@|:\/)[^ >]+)>/,
639 | url: noop,
640 | tag: /^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
641 | link: /^!?\[(inside)\]\(href\)/,
642 | reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
643 | nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
644 | strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
645 | em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
646 | code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
647 | br: /^ {2,}\n(?!\s*$)/,
648 | del: noop,
649 | text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;
654 |
655 | inline.link = replace(inline.link)
656 | ('inside', inline._inside)
657 | ('href', inline._href)
658 | ();
659 |
660 | inline.reflink = replace(inline.reflink)
661 | ('inside', inline._inside)
662 | ();
663 |
664 | /**
665 | * Normal Inline Grammar
666 | */
667 |
668 | inline.normal = merge({}, inline);
669 |
670 | /**
671 | * Pedantic Inline Grammar
672 | */
673 |
674 | inline.pedantic = merge({}, inline.normal, {
675 | strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
676 | em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/
677 | });
678 |
679 | /**
680 | * GFM Inline Grammar
681 | */
682 |
683 | inline.gfm = merge({}, inline.normal, {
684 | escape: replace(inline.escape)('])', '~|])')(),
685 | url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
686 | del: /^~~(?=\S)([\s\S]*?\S)~~/,
687 | text: replace(inline.text)
688 | (']|', '~]|')
689 | ('|', '|https?://|')
690 | ()
691 | });
692 |
693 | /**
694 | * GFM + Line Breaks Inline Grammar
695 | */
696 |
697 | inline.breaks = merge({}, inline.gfm, {
698 | br: replace(inline.br)('{2,}', '*')(),
699 | text: replace(inline.gfm.text)('{2,}', '*')()
700 | });
701 |
702 | /**
703 | * Inline Lexer & Compiler
704 | */
705 |
706 | function InlineLexer(links, options) {
707 | this.options = options || marked.defaults;
708 | this.links = links;
709 | this.rules = inline.normal;
710 | this.renderer = this.options.renderer || new Renderer;
711 | this.renderer.options = this.options;
712 |
713 | if (!this.links) {
714 | throw new
715 | Error('Tokens array requires a `links` property.');
716 | }
717 |
718 | if (this.options.gfm) {
719 | if (this.options.breaks) {
720 | this.rules = inline.breaks;
721 | } else {
722 | this.rules = inline.gfm;
723 | }
724 | } else if (this.options.pedantic) {
725 | this.rules = inline.pedantic;
726 | }
727 | }
728 |
729 | /**
730 | * Expose Inline Rules
731 | */
732 |
733 | InlineLexer.rules = inline;
734 |
735 | /**
736 | * Static Lexing/Compiling Method
737 | */
738 |
739 | InlineLexer.output = function(src, links, options) {
740 | var inline = new InlineLexer(links, options);
741 | return inline.output(src);
742 | };
743 |
744 | /**
745 | * Lexing/Compiling
746 | */
747 |
748 | InlineLexer.prototype.output = function(src) {
749 | var out = ''
750 | , link
751 | , text
752 | , href
753 | , cap;
754 |
755 | while (src) {
756 | // escape
757 | if (cap = this.rules.escape.exec(src)) {
758 | src = src.substring(cap[0].length);
759 | out += cap[1];
760 | continue;
761 | }
762 |
763 | // autolink
764 | if (cap = this.rules.autolink.exec(src)) {
765 | src = src.substring(cap[0].length);
766 | if (cap[2] === '@') {
767 | text = cap[1].charAt(6) === ':'
768 | ? this.mangle(cap[1].substring(7))
769 | : this.mangle(cap[1]);
770 | href = this.mangle('mailto:') + text;
771 | } else {
772 | text = escape(cap[1]);
773 | href = text;
774 | }
775 | out += this.renderer.link(href, null, text);
776 | continue;
777 | }
778 |
779 | // url (gfm)
780 | if (!this.inLink && (cap = this.rules.url.exec(src))) {
781 | src = src.substring(cap[0].length);
782 | text = escape(cap[1]);
783 | href = text;
784 | out += this.renderer.link(href, null, text);
785 | continue;
786 | }
787 |
788 | // tag
789 | if (cap = this.rules.tag.exec(src)) {
790 | if (!this.inLink && /^/i.test(cap[0])) {
793 | this.inLink = false;
794 | }
795 | src = src.substring(cap[0].length);
796 | out += this.options.sanitize
797 | ? this.options.sanitizer
798 | ? this.options.sanitizer(cap[0])
799 | : escape(cap[0])
800 | : cap[0]
801 | continue;
802 | }
803 |
804 | // link
805 | if (cap = this.rules.link.exec(src)) {
806 | src = src.substring(cap[0].length);
807 | this.inLink = true;
808 | out += this.outputLink(cap, {
809 | href: cap[2],
810 | title: cap[3]
811 | });
812 | this.inLink = false;
813 | continue;
814 | }
815 |
816 | // reflink, nolink
817 | if ((cap = this.rules.reflink.exec(src))
818 | || (cap = this.rules.nolink.exec(src))) {
819 | src = src.substring(cap[0].length);
820 | link = (cap[2] || cap[1]).replace(/\s+/g, ' ');
821 | link = this.links[link.toLowerCase()];
822 | if (!link || !link.href) {
823 | out += cap[0].charAt(0);
824 | src = cap[0].substring(1) + src;
825 | continue;
826 | }
827 | this.inLink = true;
828 | out += this.outputLink(cap, link);
829 | this.inLink = false;
830 | continue;
831 | }
832 |
833 | // strong
834 | if (cap = this.rules.strong.exec(src)) {
835 | src = src.substring(cap[0].length);
836 | out += this.renderer.strong(this.output(cap[2] || cap[1]));
837 | continue;
838 | }
839 |
840 | // em
841 | if (cap = this.rules.em.exec(src)) {
842 | src = src.substring(cap[0].length);
843 | out += this.renderer.em(this.output(cap[2] || cap[1]));
844 | continue;
845 | }
846 |
847 | // code
848 | if (cap = this.rules.code.exec(src)) {
849 | src = src.substring(cap[0].length);
850 | out += this.renderer.codespan(escape(cap[2], true));
851 | continue;
852 | }
853 |
854 | // br
855 | if (cap = this.rules.br.exec(src)) {
856 | src = src.substring(cap[0].length);
857 | out += this.renderer.br();
858 | continue;
859 | }
860 |
861 | // del (gfm)
862 | if (cap = this.rules.del.exec(src)) {
863 | src = src.substring(cap[0].length);
864 | out += this.renderer.del(this.output(cap[1]));
865 | continue;
866 | }
867 |
868 | // text
869 | if (cap = this.rules.text.exec(src)) {
870 | src = src.substring(cap[0].length);
871 | out += this.renderer.text(escape(this.smartypants(cap[0])));
872 | continue;
873 | }
874 |
875 | if (src) {
876 | throw new
877 | Error('Infinite loop on byte: ' + src.charCodeAt(0));
878 | }
879 | }
880 |
881 | return out;
882 | };
883 |
884 | /**
885 | * Compile Link
886 | */
887 |
888 | InlineLexer.prototype.outputLink = function(cap, link) {
889 | var href = escape(link.href)
890 | , title = link.title ? escape(link.title) : null;
891 |
892 | return cap[0].charAt(0) !== '!'
893 | ? this.renderer.link(href, title, this.output(cap[1]))
894 | : this.renderer.image(href, title, escape(cap[1]));
895 | };
896 |
897 | /**
898 | * Smartypants Transformations
899 | */
900 |
901 | InlineLexer.prototype.smartypants = function(text) {
902 | if (!this.options.smartypants) return text;
903 | return text
904 | // em-dashes
905 | .replace(/---/g, '\u2014')
906 | // en-dashes
907 | .replace(/--/g, '\u2013')
908 | // opening singles
909 | .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018')
910 | // closing singles & apostrophes
911 | .replace(/'/g, '\u2019')
912 | // opening doubles
913 | .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c')
914 | // closing doubles
915 | .replace(/"/g, '\u201d')
916 | // ellipses
917 | .replace(/\.{3}/g, '\u2026');
918 | };
919 |
920 | /**
921 | * Mangle Links
922 | */
923 |
924 | InlineLexer.prototype.mangle = function(text) {
925 | if (!this.options.mangle) return text;
926 | var out = ''
927 | , l = text.length
928 | , i = 0
929 | , ch;
930 |
931 | for (; i < l; i++) {
932 | ch = text.charCodeAt(i);
933 | if (Math.random() > 0.5) {
934 | ch = 'x' + ch.toString(16);
935 | }
936 | out += '' + ch + ';';
937 | }
938 |
939 | return out;
940 | };
941 |
942 | /**
943 | * Renderer
944 | */
945 |
946 | function Renderer(options) {
947 | this.options = options || {};
948 | }
949 |
950 | Renderer.prototype.code = function(code, lang, escaped) {
951 | if (this.options.highlight) {
952 | var out = this.options.highlight(code, lang);
953 | if (out != null && out !== code) {
954 | escaped = true;
955 | code = out;
956 | }
957 | }
958 |
959 | if (!lang) {
960 | return ''
961 | + (escaped ? code : escape(code, true))
962 | + '\n
';
963 | }
964 |
965 | return ''
969 | + (escaped ? code : escape(code, true))
970 | + '\n
\n';
971 | };
972 |
973 | Renderer.prototype.blockquote = function(quote) {
974 | return '\n' + quote + '
\n';
975 | };
976 |
977 | Renderer.prototype.html = function(html) {
978 | return html;
979 | };
980 |
981 | Renderer.prototype.heading = function(text, level, raw) {
982 | return '\n';
992 | };
993 |
994 | Renderer.prototype.hr = function() {
995 | return this.options.xhtml ? '
\n' : '
\n';
996 | };
997 |
998 | Renderer.prototype.list = function(body, ordered) {
999 | var type = ordered ? 'ol' : 'ul';
1000 | return '<' + type + '>\n' + body + '' + type + '>\n';
1001 | };
1002 |
1003 | Renderer.prototype.listitem = function(text) {
1004 | return '' + text + '\n';
1005 | };
1006 |
1007 | Renderer.prototype.paragraph = function(text) {
1008 | return '' + text + '
\n';
1009 | };
1010 |
1011 | Renderer.prototype.table = function(header, body) {
1012 | return '\n'
1013 | + '\n'
1014 | + header
1015 | + '\n'
1016 | + '\n'
1017 | + body
1018 | + '\n'
1019 | + '
\n';
1020 | };
1021 |
1022 | Renderer.prototype.tablerow = function(content) {
1023 | return '\n' + content + '
\n';
1024 | };
1025 |
1026 | Renderer.prototype.tablecell = function(content, flags) {
1027 | var type = flags.header ? 'th' : 'td';
1028 | var tag = flags.align
1029 | ? '<' + type + ' style="text-align:' + flags.align + '">'
1030 | : '<' + type + '>';
1031 | return tag + content + '' + type + '>\n';
1032 | };
1033 |
1034 | // span level renderer
1035 | Renderer.prototype.strong = function(text) {
1036 | return '' + text + '';
1037 | };
1038 |
1039 | Renderer.prototype.em = function(text) {
1040 | return '' + text + '';
1041 | };
1042 |
1043 | Renderer.prototype.codespan = function(text) {
1044 | return '' + text + '';
1045 | };
1046 |
1047 | Renderer.prototype.br = function() {
1048 | return this.options.xhtml ? '
' : '
';
1049 | };
1050 |
1051 | Renderer.prototype.del = function(text) {
1052 | return '' + text + '';
1053 | };
1054 |
1055 | Renderer.prototype.link = function(href, title, text) {
1056 | if (this.options.sanitize) {
1057 | try {
1058 | var prot = decodeURIComponent(unescape(href))
1059 | .replace(/[^\w:]/g, '')
1060 | .toLowerCase();
1061 | } catch (e) {
1062 | return '';
1063 | }
1064 | if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {
1065 | return '';
1066 | }
1067 | }
1068 | var out = '' + text + '';
1073 | return out;
1074 | };
1075 |
1076 | Renderer.prototype.image = function(href, title, text) {
1077 | var out = '
' : '>';
1082 | return out;
1083 | };
1084 |
1085 | Renderer.prototype.text = function(text) {
1086 | return text;
1087 | };
1088 |
1089 | /**
1090 | * Parsing & Compiling
1091 | */
1092 |
1093 | function Parser(options) {
1094 | this.tokens = [];
1095 | this.token = null;
1096 | this.options = options || marked.defaults;
1097 | this.options.renderer = this.options.renderer || new Renderer;
1098 | this.renderer = this.options.renderer;
1099 | this.renderer.options = this.options;
1100 | }
1101 |
1102 | /**
1103 | * Static Parse Method
1104 | */
1105 |
1106 | Parser.parse = function(src, options, renderer) {
1107 | var parser = new Parser(options, renderer);
1108 | return parser.parse(src);
1109 | };
1110 |
1111 | /**
1112 | * Parse Loop
1113 | */
1114 |
1115 | Parser.prototype.parse = function(src) {
1116 | this.inline = new InlineLexer(src.links, this.options, this.renderer);
1117 | this.tokens = src.reverse();
1118 |
1119 | var out = '';
1120 | while (this.next()) {
1121 | out += this.tok();
1122 | }
1123 |
1124 | return out;
1125 | };
1126 |
1127 | /**
1128 | * Next Token
1129 | */
1130 |
1131 | Parser.prototype.next = function() {
1132 | return this.token = this.tokens.pop();
1133 | };
1134 |
1135 | /**
1136 | * Preview Next Token
1137 | */
1138 |
1139 | Parser.prototype.peek = function() {
1140 | return this.tokens[this.tokens.length - 1] || 0;
1141 | };
1142 |
1143 | /**
1144 | * Parse Text Tokens
1145 | */
1146 |
1147 | Parser.prototype.parseText = function() {
1148 | var body = this.token.text;
1149 |
1150 | while (this.peek().type === 'text') {
1151 | body += '\n' + this.next().text;
1152 | }
1153 |
1154 | return this.inline.output(body);
1155 | };
1156 |
1157 | /**
1158 | * Parse Current Token
1159 | */
1160 |
1161 | Parser.prototype.tok = function() {
1162 | switch (this.token.type) {
1163 | case 'space': {
1164 | return '';
1165 | }
1166 | case 'hr': {
1167 | return this.renderer.hr();
1168 | }
1169 | case 'heading': {
1170 | return this.renderer.heading(
1171 | this.inline.output(this.token.text),
1172 | this.token.depth,
1173 | this.token.text);
1174 | }
1175 | case 'code': {
1176 | return this.renderer.code(this.token.text,
1177 | this.token.lang,
1178 | this.token.escaped);
1179 | }
1180 | case 'table': {
1181 | var header = ''
1182 | , body = ''
1183 | , i
1184 | , row
1185 | , cell
1186 | , flags
1187 | , j;
1188 |
1189 | // header
1190 | cell = '';
1191 | for (i = 0; i < this.token.header.length; i++) {
1192 | flags = { header: true, align: this.token.align[i] };
1193 | cell += this.renderer.tablecell(
1194 | this.inline.output(this.token.header[i]),
1195 | { header: true, align: this.token.align[i] }
1196 | );
1197 | }
1198 | header += this.renderer.tablerow(cell);
1199 |
1200 | for (i = 0; i < this.token.cells.length; i++) {
1201 | row = this.token.cells[i];
1202 |
1203 | cell = '';
1204 | for (j = 0; j < row.length; j++) {
1205 | cell += this.renderer.tablecell(
1206 | this.inline.output(row[j]),
1207 | { header: false, align: this.token.align[j] }
1208 | );
1209 | }
1210 |
1211 | body += this.renderer.tablerow(cell);
1212 | }
1213 | return this.renderer.table(header, body);
1214 | }
1215 | case 'blockquote_start': {
1216 | var body = '';
1217 |
1218 | while (this.next().type !== 'blockquote_end') {
1219 | body += this.tok();
1220 | }
1221 |
1222 | return this.renderer.blockquote(body);
1223 | }
1224 | case 'list_start': {
1225 | var body = ''
1226 | , ordered = this.token.ordered;
1227 |
1228 | while (this.next().type !== 'list_end') {
1229 | body += this.tok();
1230 | }
1231 |
1232 | return this.renderer.list(body, ordered);
1233 | }
1234 | case 'list_item_start': {
1235 | var body = '';
1236 |
1237 | while (this.next().type !== 'list_item_end') {
1238 | body += this.token.type === 'text'
1239 | ? this.parseText()
1240 | : this.tok();
1241 | }
1242 |
1243 | return this.renderer.listitem(body);
1244 | }
1245 | case 'loose_item_start': {
1246 | var body = '';
1247 |
1248 | while (this.next().type !== 'list_item_end') {
1249 | body += this.tok();
1250 | }
1251 |
1252 | return this.renderer.listitem(body);
1253 | }
1254 | case 'html': {
1255 | var html = !this.token.pre && !this.options.pedantic
1256 | ? this.inline.output(this.token.text)
1257 | : this.token.text;
1258 | return this.renderer.html(html);
1259 | }
1260 | case 'paragraph': {
1261 | return this.renderer.paragraph(this.inline.output(this.token.text));
1262 | }
1263 | case 'text': {
1264 | return this.renderer.paragraph(this.parseText());
1265 | }
1266 | }
1267 | };
1268 |
1269 | /**
1270 | * Helpers
1271 | */
1272 |
1273 | function escape(html, encode) {
1274 | return html
1275 | .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&')
1276 | .replace(//g, '>')
1278 | .replace(/"/g, '"')
1279 | .replace(/'/g, ''');
1280 | }
1281 |
1282 | function unescape(html) {
1283 | // explicitly match decimal, hex, and named HTML entities
1284 | return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g, function(_, n) {
1285 | n = n.toLowerCase();
1286 | if (n === 'colon') return ':';
1287 | if (n.charAt(0) === '#') {
1288 | return n.charAt(1) === 'x'
1289 | ? String.fromCharCode(parseInt(n.substring(2), 16))
1290 | : String.fromCharCode(+n.substring(1));
1291 | }
1292 | return '';
1293 | });
1294 | }
1295 |
1296 | function replace(regex, opt) {
1297 | regex = regex.source;
1298 | opt = opt || '';
1299 | return function self(name, val) {
1300 | if (!name) return new RegExp(regex, opt);
1301 | val = val.source || val;
1302 | val = val.replace(/(^|[^\[])\^/g, '$1');
1303 | regex = regex.replace(name, val);
1304 | return self;
1305 | };
1306 | }
1307 |
1308 | function noop() {}
1309 | noop.exec = noop;
1310 |
1311 | function merge(obj) {
1312 | var i = 1
1313 | , target
1314 | , key;
1315 |
1316 | for (; i < arguments.length; i++) {
1317 | target = arguments[i];
1318 | for (key in target) {
1319 | if (Object.prototype.hasOwnProperty.call(target, key)) {
1320 | obj[key] = target[key];
1321 | }
1322 | }
1323 | }
1324 |
1325 | return obj;
1326 | }
1327 |
1328 |
1329 | /**
1330 | * Marked
1331 | */
1332 |
1333 | function marked(src, opt, callback) {
1334 | if (callback || typeof opt === 'function') {
1335 | if (!callback) {
1336 | callback = opt;
1337 | opt = null;
1338 | }
1339 |
1340 | opt = merge({}, marked.defaults, opt || {});
1341 |
1342 | var highlight = opt.highlight
1343 | , tokens
1344 | , pending
1345 | , i = 0;
1346 |
1347 | try {
1348 | tokens = Lexer.lex(src, opt)
1349 | } catch (e) {
1350 | return callback(e);
1351 | }
1352 |
1353 | pending = tokens.length;
1354 |
1355 | var done = function(err) {
1356 | if (err) {
1357 | opt.highlight = highlight;
1358 | return callback(err);
1359 | }
1360 |
1361 | var out;
1362 |
1363 | try {
1364 | out = Parser.parse(tokens, opt);
1365 | } catch (e) {
1366 | err = e;
1367 | }
1368 |
1369 | opt.highlight = highlight;
1370 |
1371 | return err
1372 | ? callback(err)
1373 | : callback(null, out);
1374 | };
1375 |
1376 | if (!highlight || highlight.length < 3) {
1377 | return done();
1378 | }
1379 |
1380 | delete opt.highlight;
1381 |
1382 | if (!pending) return done();
1383 |
1384 | for (; i < tokens.length; i++) {
1385 | (function(token) {
1386 | if (token.type !== 'code') {
1387 | return --pending || done();
1388 | }
1389 | return highlight(token.text, token.lang, function(err, code) {
1390 | if (err) return done(err);
1391 | if (code == null || code === token.text) {
1392 | return --pending || done();
1393 | }
1394 | token.text = code;
1395 | token.escaped = true;
1396 | --pending || done();
1397 | });
1398 | })(tokens[i]);
1399 | }
1400 |
1401 | return;
1402 | }
1403 | try {
1404 | if (opt) opt = merge({}, marked.defaults, opt);
1405 | return Parser.parse(Lexer.lex(src, opt), opt);
1406 | } catch (e) {
1407 | e.message += '\nPlease report this to https://github.com/chjj/marked.';
1408 | if ((opt || marked.defaults).silent) {
1409 | return 'An error occured:
'
1410 | + escape(e.message + '', true)
1411 | + '
';
1412 | }
1413 | throw e;
1414 | }
1415 | }
1416 |
1417 | /**
1418 | * Options
1419 | */
1420 |
1421 | marked.options =
1422 | marked.setOptions = function(opt) {
1423 | merge(marked.defaults, opt);
1424 | return marked;
1425 | };
1426 |
1427 | marked.defaults = {
1428 | gfm: true,
1429 | tables: true,
1430 | breaks: false,
1431 | pedantic: false,
1432 | sanitize: false,
1433 | sanitizer: null,
1434 | mangle: true,
1435 | smartLists: false,
1436 | silent: false,
1437 | highlight: null,
1438 | langPrefix: 'lang-',
1439 | smartypants: false,
1440 | headerPrefix: '',
1441 | renderer: new Renderer,
1442 | xhtml: false
1443 | };
1444 |
1445 | /**
1446 | * Expose
1447 | */
1448 |
1449 | marked.Parser = Parser;
1450 | marked.parser = Parser.parse;
1451 |
1452 | marked.Renderer = Renderer;
1453 |
1454 | marked.Lexer = Lexer;
1455 | marked.lexer = Lexer.lex;
1456 |
1457 | marked.InlineLexer = InlineLexer;
1458 | marked.inlineLexer = InlineLexer.output;
1459 |
1460 | marked.parse = marked;
1461 |
1462 | if (true) {
1463 | module.exports = marked;
1464 | } else if (typeof define === 'function' && define.amd) {
1465 | define(function() { return marked; });
1466 | } else {
1467 | this.marked = marked;
1468 | }
1469 |
1470 | }).call(function() {
1471 | return this || (typeof window !== 'undefined' ? window : global);
1472 | }());
1473 |
1474 | /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
1475 |
1476 | /***/ },
1477 | /* 3 */
1478 | /***/ function(module, exports, __webpack_require__) {
1479 |
1480 | module.exports = __webpack_require__(4)
1481 |
1482 | /* webpack only
1483 | if (DEBUG && global.console) {
1484 | console.debug('debug mode')
1485 | }
1486 | */
1487 |
1488 |
1489 | /***/ },
1490 | /* 4 */
1491 | /***/ function(module, exports, __webpack_require__) {
1492 |
1493 | var cou = __webpack_require__(5)
1494 |
1495 | module.exports = cou.extend(_, cou)
1496 |
1497 | __webpack_require__(7)
1498 | __webpack_require__(8)
1499 | __webpack_require__(9)
1500 | __webpack_require__(11)
1501 | __webpack_require__(12)
1502 | __webpack_require__(13)
1503 |
1504 | _.mixin(_, _)
1505 |
1506 | function _(val) {
1507 | if (!(this instanceof _)) return new _(val)
1508 | this.__value = val
1509 | this.__chain = false
1510 | }
1511 |
1512 |
1513 |
1514 | /***/ },
1515 | /* 5 */
1516 | /***/ function(module, exports, __webpack_require__) {
1517 |
1518 | var is = __webpack_require__(6)
1519 |
1520 | var slice = [].slice
1521 |
1522 | var _ = exports
1523 |
1524 | _.is = is
1525 |
1526 | _.extend = _.assign = extend
1527 |
1528 | _.each = each
1529 |
1530 | _.map = function(arr, fn) {
1531 | var ret = []
1532 | each(arr, function(item, i, arr) {
1533 | ret[i] = fn(item, i, arr)
1534 | })
1535 | return ret
1536 | }
1537 |
1538 | _.filter = function(arr, fn) {
1539 | var ret = []
1540 | each(arr, function(item, i, arr) {
1541 | var val = fn(item, i, arr)
1542 | if (val) ret.push(item)
1543 | })
1544 | return ret
1545 | }
1546 |
1547 | _.some = function(arr, fn) {
1548 | return -1 != findIndex(arr, fn)
1549 | }
1550 |
1551 | _.every = function(arr, fn) {
1552 | return -1 == findIndex(arr, negate(fn))
1553 | }
1554 |
1555 | _.reduce = reduce
1556 |
1557 | _.findIndex = findIndex
1558 |
1559 | _.find = function(arr, fn) {
1560 | var index = _.findIndex(arr, fn)
1561 | if (-1 != index) {
1562 | return arr[index]
1563 | }
1564 | }
1565 |
1566 | _.indexOf = indexOf
1567 |
1568 | _.includes = function(val, sub) {
1569 | return -1 != indexOf(val, sub)
1570 | }
1571 |
1572 | _.toArray = toArray
1573 |
1574 | _.slice = function(arr, start, end) {
1575 | // support array and string
1576 | var ret = [] // default return array
1577 | var len = getLength(arr)
1578 | if (len >= 0) {
1579 | start = start || 0
1580 | end = end || len
1581 | // raw array and string use self slice
1582 | if (!is.fn(arr.slice)) {
1583 | arr = toArray(arr)
1584 | }
1585 | ret = arr.slice(start, end)
1586 | }
1587 | return ret
1588 | }
1589 |
1590 | _.negate = negate
1591 |
1592 | _.forIn = forIn
1593 |
1594 | _.keys = keys
1595 |
1596 | var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
1597 |
1598 | _.trim = function(str) {
1599 | if (null == str) return ''
1600 | return ('' + str).replace(rtrim, '')
1601 | }
1602 |
1603 | _.noop = function() {}
1604 |
1605 | _.len = getLength
1606 |
1607 | function getLength(arr) {
1608 | if (null != arr) return arr.length
1609 | }
1610 |
1611 | function each(arr, fn) {
1612 | var len = getLength(arr)
1613 | if (len && is.fn(fn)) {
1614 | for (var i = 0; i < len; i++) {
1615 | if (false === fn(arr[i], i, arr)) break
1616 | }
1617 | }
1618 | return arr
1619 | }
1620 |
1621 | function findIndex(arr, fn) {
1622 | var ret = -1
1623 | each(arr, function(item, i, arr) {
1624 | if (fn(item, i, arr)) {
1625 | ret = i
1626 | return false
1627 | }
1628 | })
1629 | return ret
1630 | }
1631 |
1632 | function toArray(arr) {
1633 | var ret = []
1634 | each(arr, function(item) {
1635 | ret.push(item)
1636 | })
1637 | return ret
1638 | }
1639 |
1640 |
1641 | function extend(target) {
1642 | if (target) {
1643 | var sources = slice.call(arguments, 1)
1644 | each(sources, function(src) {
1645 | forIn(src, function(val, key) {
1646 | if (!is.undef(val)) {
1647 | target[key] = val
1648 | }
1649 | })
1650 | })
1651 | }
1652 | return target
1653 | }
1654 |
1655 | function negate(fn) {
1656 | return function() {
1657 | return !fn.apply(this, arguments)
1658 | }
1659 | }
1660 |
1661 | function indexOf(val, sub) {
1662 | if (is.string(val)) return val.indexOf(sub)
1663 |
1664 | return findIndex(val, function(item) {
1665 | // important!
1666 | return sub === item
1667 | })
1668 | }
1669 |
1670 | function reduce(arr, fn, prev) {
1671 | each(arr, function(item, i) {
1672 | prev = fn(prev, item, i, arr)
1673 | })
1674 | return prev
1675 | }
1676 |
1677 | function forIn(hash, fn) {
1678 | if (hash) {
1679 | for (var key in hash) {
1680 | if (is.owns(hash, key)) {
1681 | if (false === fn(hash[key], key, hash)) break
1682 | }
1683 | }
1684 | }
1685 | return hash
1686 | }
1687 |
1688 | function keys(hash) {
1689 | var ret = []
1690 | forIn(hash, function(val, key) {
1691 | ret.push(key)
1692 | })
1693 | return ret
1694 | }
1695 |
1696 |
1697 |
1698 | /***/ },
1699 | /* 6 */
1700 | /***/ function(module, exports) {
1701 |
1702 | /* WEBPACK VAR INJECTION */(function(global) {var is = exports
1703 |
1704 | var obj = Object.prototype
1705 |
1706 | var navigator = global.navigator
1707 |
1708 | // reserved words in es3: instanceof null undefined arguments boolean false true function int
1709 | // only have is.string and is.object, not is.str and is.obj
1710 | // instanceof null undefined arguments boolean false true function int
1711 |
1712 | is.browser = function() {
1713 | if (!is.wechatApp()) {
1714 | if (navigator && global.window == global) {
1715 | return true
1716 | }
1717 | }
1718 | return false
1719 | }
1720 |
1721 | // simple modern browser detect
1722 | is.h5 = function() {
1723 | if (is.browser() && navigator.geolocation) {
1724 | return true
1725 | }
1726 | return false
1727 | }
1728 |
1729 | is.mobile = function() {
1730 | if (is.browser() && /mobile/i.test(navigator.userAgent)) {
1731 | return true
1732 | }
1733 | return false
1734 | }
1735 |
1736 | is.wechatApp = function() {
1737 | if ('object' == typeof wx) {
1738 | if (wx && is.fn(wx.createVideoContext)) {
1739 | // wechat js sdk has no createVideoContext
1740 | return true
1741 | }
1742 | }
1743 | return false
1744 | }
1745 |
1746 | function _class(val) {
1747 | var name = obj.toString.call(val)
1748 | // [object Class]
1749 | return name.substring(8, name.length - 1).toLowerCase()
1750 | }
1751 |
1752 | function _type(val) {
1753 | // undefined object boolean number string symbol function
1754 | return typeof val
1755 | }
1756 |
1757 | function owns(owner, key) {
1758 | return obj.hasOwnProperty.call(owner, key)
1759 | }
1760 |
1761 | is._class = _class
1762 |
1763 | is._type = _type
1764 |
1765 | is.owns = owns
1766 |
1767 | // not a number
1768 | is.nan = function(val) {
1769 | return val !== val
1770 | }
1771 |
1772 | is.bool = function(val) {
1773 | return 'boolean' == _class(val)
1774 | }
1775 |
1776 | is.infinite = function(val) {
1777 | return val == Infinity || val == -Infinity
1778 | }
1779 |
1780 | is.number = function(num) {
1781 | return !isNaN(num) && 'number' == _class(num)
1782 | }
1783 |
1784 | // integer or decimal
1785 | is.iod = function(val) {
1786 | if (is.number(val) && !is.infinite(val)) {
1787 | return true
1788 | }
1789 | return false
1790 | }
1791 |
1792 | is.decimal = function(val) {
1793 | if (is.iod(val)) {
1794 | return 0 != val % 1
1795 | }
1796 | return false
1797 | }
1798 |
1799 | is.integer = function(val) {
1800 | if (is.iod(val)) {
1801 | return 0 == val % 1
1802 | }
1803 | return false
1804 | }
1805 |
1806 | // object or function
1807 | is.oof = function(val) {
1808 | if (val) {
1809 | var tp = _type(val)
1810 | return 'object' == tp || 'function' == tp
1811 | }
1812 | return false
1813 | }
1814 |
1815 | // regexp should return object
1816 | is.object = function(obj) {
1817 | return is.oof(obj) && 'function' != _class(obj)
1818 | }
1819 |
1820 | is.hash = is.plainObject = function(hash) {
1821 | if (hash) {
1822 | if ('object' == _class(hash)) {
1823 | // old window is object
1824 | if (hash.nodeType || hash.setInterval) {
1825 | return false
1826 | }
1827 | return true
1828 | }
1829 | }
1830 | return false
1831 | }
1832 |
1833 | is.undef = function(val) {
1834 | return 'undefined' == _type(val)
1835 | }
1836 |
1837 | // host function should return function, e.g. alert
1838 | is.fn = function(fn) {
1839 | return 'function' == _class(fn)
1840 | }
1841 |
1842 | is.string = function(str) {
1843 | return 'string' == _class(str)
1844 | }
1845 |
1846 | // number or string
1847 | is.nos = function(val) {
1848 | return is.iod(val) || is.string(val)
1849 | }
1850 |
1851 | is.array = function(arr) {
1852 | return 'array' == _class(arr)
1853 | }
1854 |
1855 | is.arraylike = function(arr) {
1856 | // window has length for iframe too, but it is not arraylike
1857 | if (!is.window(arr) && is.object(arr)) {
1858 | var len = arr.length
1859 | if (is.integer(len) && len >= 0) {
1860 | return true
1861 | }
1862 | }
1863 | return false
1864 | }
1865 |
1866 | is.window = function(val) {
1867 | if (val && val.window == val) {
1868 | return true
1869 | }
1870 | return false
1871 | }
1872 |
1873 | is.empty = function(val) {
1874 | if (is.string(val) || is.arraylike(val)) {
1875 | return 0 === val.length
1876 | }
1877 | if (is.hash(val)) {
1878 | for (var key in val) {
1879 | if (owns(val, key)) {
1880 | return false
1881 | }
1882 | }
1883 | }
1884 | return true
1885 | }
1886 |
1887 | is.element = function(elem) {
1888 | if (elem && 1 === elem.nodeType) {
1889 | return true
1890 | }
1891 | return false
1892 | }
1893 |
1894 | is.regexp = function(val) {
1895 | return 'regexp' == _class(val)
1896 | }
1897 |
1898 |
1899 | /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
1900 |
1901 | /***/ },
1902 | /* 7 */
1903 | /***/ function(module, exports, __webpack_require__) {
1904 |
1905 | var _ = module.exports = __webpack_require__(4)
1906 |
1907 | var each = _.each
1908 | var includes = _.includes
1909 | var is = _.is
1910 | var proto = Array.prototype
1911 |
1912 | _.reject = function(arr, fn) {
1913 | return _.filter(arr, function(val, i, arr) {
1914 | return !fn(val, i, arr)
1915 | })
1916 | }
1917 |
1918 | _.without = function(arr) {
1919 | var other = _.slice(arguments, 1)
1920 | return _.difference(arr, other)
1921 | }
1922 |
1923 | _.difference = function(arr, other) {
1924 | var ret = []
1925 | _.each(arr, function(val) {
1926 | if (!includes(other, val)) {
1927 | ret.push(val)
1928 | }
1929 | })
1930 | return ret
1931 | }
1932 |
1933 | _.pluck = function(arr, key) {
1934 | return _.map(arr, function(item) {
1935 | if (item) return item[key]
1936 | })
1937 | }
1938 |
1939 | _.size = function(arr) {
1940 | var len = _.len(arr)
1941 | if (null == len) {
1942 | len = _.keys(arr).length
1943 | }
1944 | return len
1945 | }
1946 |
1947 | _.first = function(arr) {
1948 | if (arr) return arr[0]
1949 | }
1950 |
1951 | _.last = function(arr) {
1952 | var len = _.len(arr)
1953 | if (len) {
1954 | return arr[len - 1]
1955 | }
1956 | }
1957 |
1958 | _.asyncMap = function(arr, fn, cb) {
1959 | // desperate
1960 | var ret = []
1961 | var count = 0
1962 | var hasDone, hasStart
1963 |
1964 | each(arr, function(arg, i) {
1965 | hasStart = true
1966 | fn(arg, function(err, val) {
1967 | if (hasDone) return
1968 | count++
1969 | if (err) {
1970 | hasDone = true
1971 | return cb(err)
1972 | }
1973 | ret[i] = val
1974 | if (count == arr.length) {
1975 | hasDone = true
1976 | cb(null, ret)
1977 | }
1978 | })
1979 | })
1980 |
1981 | if (!hasStart) cb(null) // empty
1982 | }
1983 |
1984 | _.uniq = function(arr) {
1985 | return _.uniqBy(arr)
1986 | }
1987 |
1988 | _.uniqBy = function(arr, fn) {
1989 | var ret = []
1990 | var pool = []
1991 | if (!is.fn(fn)) {
1992 | fn = null
1993 | }
1994 | each(arr, function(item) {
1995 | var val = item
1996 | if (fn) {
1997 | val = fn(item)
1998 | }
1999 | if (!includes(pool, val)) {
2000 | pool.push(val)
2001 | ret.push(item)
2002 | }
2003 | })
2004 | return ret
2005 | }
2006 |
2007 | _.flatten = function(arrs) {
2008 | var ret = []
2009 | each(arrs, function(arr) {
2010 | if (is.arraylike(arr)) {
2011 | each(arr, function(item) {
2012 | ret.push(item)
2013 | })
2014 | } else ret.push(arr)
2015 | })
2016 | return ret
2017 | }
2018 |
2019 | _.union = function() {
2020 | return _.uniq(_.flatten(arguments))
2021 | }
2022 |
2023 | _.sample = function(arr, n) {
2024 | var ret = _.toArray(arr)
2025 | var len = ret.length
2026 | var need = Math.min(n || 1, len)
2027 | for (var i = 0; i < len; i++) {
2028 | var rand = _.random(i, len - 1)
2029 | var tmp = ret[rand]
2030 | ret[rand] = ret[i]
2031 | ret[i] = tmp
2032 | }
2033 | ret.length = need
2034 | if (null == n) {
2035 | return ret[0]
2036 | }
2037 | return ret
2038 | }
2039 |
2040 | _.shuffle = function(arr) {
2041 | return _.sample(arr, Infinity)
2042 | }
2043 |
2044 | _.compact = function(arr) {
2045 | return _.filter(arr, _.identity)
2046 | }
2047 |
2048 | _.rest = function(arr) {
2049 | return _.slice(arr, 1)
2050 | }
2051 |
2052 | _.invoke = function() {
2053 | var args = arguments
2054 | var arr = args[0]
2055 | var fn = args[1]
2056 | var isFunc = is.fn(fn)
2057 | args = _.slice(args, 2)
2058 |
2059 | return _.map(arr, function(item) {
2060 | if (isFunc) {
2061 | return fn.apply(item, args)
2062 | }
2063 | if (null != item) {
2064 | var method = item[fn]
2065 | if (is.fn(method)) {
2066 | return method.apply(item, args)
2067 | }
2068 | }
2069 | })
2070 | }
2071 |
2072 | _.partition = function(arr, fn) {
2073 | var hash = _.groupBy(arr, function(val, i, arr) {
2074 | var ret = fn(val, i, arr)
2075 | if (ret) return 1
2076 | return 2
2077 | })
2078 | return [hash[1] || [], hash[2] || []]
2079 | }
2080 |
2081 | _.groupBy = function(arr, fn) {
2082 | var hash = {}
2083 | _.each(arr, function(val, i, arr) {
2084 | var ret = fn(val, i, arr)
2085 | hash[ret] = hash[ret] || []
2086 | hash[ret].push(val)
2087 | })
2088 | return hash
2089 | }
2090 |
2091 | _.range = function() {
2092 | var args = arguments
2093 | if (args.length < 2) {
2094 | return _.range(args[1], args[0])
2095 | }
2096 | var start = args[0] || 0
2097 | var last = args[1] || 0
2098 | var step = args[2]
2099 | if (!is.number(step)) {
2100 | step = 1
2101 | }
2102 | var count = last - start
2103 | if (0 != step) {
2104 | count = count / step
2105 | }
2106 | var ret = []
2107 | var val = start
2108 | for (var i = 0; i < count; i++) {
2109 | ret.push(val)
2110 | val += step
2111 | }
2112 | return ret
2113 | }
2114 |
2115 | _.pullAt = function(arr) {
2116 | // `_.at` but mutate
2117 | var indexes = _.slice(arguments, 1)
2118 | return mutateDifference(arr, indexes)
2119 | }
2120 |
2121 | function mutateDifference(arr, indexes) {
2122 | var ret = []
2123 | var len = _.len(indexes)
2124 | if (len) {
2125 | indexes = indexes.sort(function(a, b) {
2126 | return a - b
2127 | })
2128 | while (len--) {
2129 | var index = indexes[len]
2130 | ret.push(proto.splice.call(arr, index, 1)[0])
2131 | }
2132 | }
2133 | ret.reverse()
2134 | return ret
2135 | }
2136 |
2137 | _.remove = function(arr, fn) {
2138 | // `_.filter` but mutate
2139 | var len = _.len(arr) || 0
2140 | var indexes = []
2141 | while (len--) {
2142 | if (fn(arr[len], len, arr)) {
2143 | indexes.push(len)
2144 | }
2145 | }
2146 | return mutateDifference(arr, indexes)
2147 | }
2148 |
2149 | _.fill = function(val, start, end) {
2150 | // TODO
2151 | }
2152 |
2153 |
2154 | /***/ },
2155 | /* 8 */
2156 | /***/ function(module, exports, __webpack_require__) {
2157 |
2158 | var _ = module.exports = __webpack_require__(4)
2159 |
2160 | var is = _.is
2161 | var each = _.each
2162 | var forIn = _.forIn
2163 |
2164 | _.only = function(obj, keys) {
2165 | obj = obj || {}
2166 | if (is.string(keys)) keys = keys.split(/ +/)
2167 | return _.reduce(keys, function(ret, key) {
2168 | if (null != obj[key]) ret[key] = obj[key]
2169 | return ret
2170 | }, {})
2171 | }
2172 |
2173 | _.values = function(obj) {
2174 | return _.map(_.keys(obj), function(key) {
2175 | return obj[key]
2176 | })
2177 | }
2178 |
2179 | _.pick = function(obj, fn) {
2180 | if (!is.fn(fn)) {
2181 | return _.pick(obj, function(val, key) {
2182 | return key == fn
2183 | })
2184 | }
2185 | var ret = {}
2186 | forIn(obj, function(val, key, obj) {
2187 | if (fn(val, key, obj)) {
2188 | ret[key] = val
2189 | }
2190 | })
2191 | return ret
2192 | }
2193 |
2194 | _.functions = function(obj) {
2195 | return _.keys(_.pick(obj, function(val) {
2196 | return is.fn(val)
2197 | }))
2198 | }
2199 |
2200 | _.mapKeys = function(obj, fn) {
2201 | var ret = {}
2202 | forIn(obj, function(val, key, obj) {
2203 | var newKey = fn(val, key, obj)
2204 | ret[newKey] = val
2205 | })
2206 | return ret
2207 | }
2208 |
2209 | _.mapObject = _.mapValues = function(obj, fn) {
2210 | var ret = {}
2211 | forIn(obj, function(val, key, obj) {
2212 | ret[key] = fn(val, key, obj)
2213 | })
2214 | return ret
2215 | }
2216 |
2217 | // return value when walk through path, otherwise return empty
2218 | _.get = function(obj, path) {
2219 | path = toPath(path)
2220 | if (path.length) {
2221 | var flag = _.every(path, function(key) {
2222 | if (null != obj) { // obj can be indexed
2223 | obj = obj[key]
2224 | return true
2225 | }
2226 | })
2227 | if (flag) return obj
2228 | }
2229 | }
2230 |
2231 | _.has = function(obj, path) {
2232 | path = toPath(path)
2233 | if (path.length) {
2234 | var flag = _.every(path, function(key) {
2235 | if (null != obj && is.owns(obj, key)) {
2236 | obj = obj[key]
2237 | return true
2238 | }
2239 | })
2240 | if (flag) return true
2241 | }
2242 | return false
2243 | }
2244 |
2245 | _.set = function(obj, path, val) {
2246 | path = toPath(path)
2247 | var cur = obj
2248 | _.every(path, function(key, i) {
2249 | if (is.oof(cur)) {
2250 | if (i + 1 == path.length) {
2251 | cur[key] = val
2252 | } else {
2253 | var item = cur[key]
2254 | if (null == item) {
2255 | // fill value with {} or []
2256 | var item = {}
2257 | if (~~key == key) {
2258 | item = []
2259 | }
2260 | }
2261 | cur = cur[key] = item
2262 | return true
2263 | }
2264 | }
2265 | })
2266 | return obj
2267 | }
2268 |
2269 | _.create = (function() {
2270 | function Object() {} // so it seems like Object.create
2271 | return function(proto, property) {
2272 | // not same as Object.create, Object.create(proto, propertyDescription)
2273 | if ('object' != typeof proto) {
2274 | // null is ok
2275 | proto = null
2276 | }
2277 | Object.prototype = proto
2278 | return _.extend(new Object, property)
2279 | }
2280 | })()
2281 |
2282 | _.defaults = function() {
2283 | var args = arguments
2284 | var target = args[0]
2285 | var sources = _.slice(args, 1)
2286 | if (target) {
2287 | _.each(sources, function(src) {
2288 | _.mapObject(src, function(val, key) {
2289 | if (is.undef(target[key])) {
2290 | target[key] = val
2291 | }
2292 | })
2293 | })
2294 | }
2295 | return target
2296 | }
2297 |
2298 | _.isMatch = function(obj, src) {
2299 | var ret = true
2300 | obj = obj || {}
2301 | forIn(src, function(val, key) {
2302 | if (val !== obj[key]) {
2303 | ret = false
2304 | return false
2305 | }
2306 | })
2307 | return ret
2308 | }
2309 |
2310 | _.toPlainObject = function(val) {
2311 | var ret = {}
2312 | forIn(val, function(val, key) {
2313 | ret[key] = val
2314 | })
2315 | return ret
2316 | }
2317 |
2318 | _.invert = function(obj) {
2319 | var ret = {}
2320 | forIn(obj, function(val, key) {
2321 | ret[val] = key
2322 | })
2323 | return ret
2324 | }
2325 |
2326 | // topath, copy from lodash
2327 |
2328 | var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g
2329 | var reEscapeChar = /\\(\\)?/g;
2330 |
2331 | function toPath(val) {
2332 | if (is.array(val)) return val
2333 | var ret = []
2334 | _.tostr(val).replace(rePropName, function(match, number, quote, string) {
2335 | var item = number || match
2336 | if (quote) {
2337 | item = string.replace(reEscapeChar, '$1')
2338 | }
2339 | ret.push(item)
2340 | })
2341 | return ret
2342 | }
2343 |
2344 |
2345 | /***/ },
2346 | /* 9 */
2347 | /***/ function(module, exports, __webpack_require__) {
2348 |
2349 | var _ = module.exports = __webpack_require__(4)
2350 |
2351 | var is = _.is
2352 | var slice = _.slice
2353 |
2354 | _.bind = function(fn, ctx) {
2355 | if (is.string(ctx)) {
2356 | var obj = fn
2357 | fn = obj[ctx]
2358 | ctx = obj
2359 | }
2360 | if (!is.fn(fn)) return fn
2361 | var args = slice(arguments, 2)
2362 | ctx = ctx || this
2363 | return function() {
2364 | return fn.apply(ctx, _.flatten([args, arguments]))
2365 | }
2366 | }
2367 |
2368 | // from lang.js `Function.prototype.inherits`
2369 | // so belong to function
2370 | _.inherits = function(ctor, superCtor) {
2371 | ctor.super_ = superCtor
2372 | ctor.prototype = _.create(superCtor.prototype, {
2373 | constructor: ctor
2374 | })
2375 | }
2376 |
2377 | _.delay = function(fn, wait) {
2378 | var args = _.slice(arguments, 2)
2379 | return setTimeout(function() {
2380 | fn.apply(this, args)
2381 | }, wait)
2382 | }
2383 |
2384 | _.before = function(n, fn) {
2385 | return function() {
2386 | if (n > 1) {
2387 | n--
2388 | return fn.apply(this, arguments)
2389 | }
2390 | }
2391 | }
2392 |
2393 | _.once = function(fn) {
2394 | return _.before(2, fn)
2395 | }
2396 |
2397 | _.after = function(n, fn) {
2398 | return function() {
2399 | if (n > 1) {
2400 | n--
2401 | } else {
2402 | return fn.apply(this, arguments)
2403 | }
2404 | }
2405 | }
2406 |
2407 | _.throttle = function(fn, wait, opt) {
2408 | wait = wait || 0
2409 | opt = _.extend({
2410 | leading: true,
2411 | trailing: true,
2412 | maxWait: wait
2413 | }, opt)
2414 | return _.debounce(fn, wait, opt)
2415 | }
2416 |
2417 | _.debounce = function(fn, wait, opt) {
2418 | wait = wait || 0
2419 | opt = _.extend({
2420 | leading: false,
2421 | trailing: true
2422 | }, opt)
2423 | var maxWait = opt.maxWait
2424 | var lastExec = 0 // wait
2425 | var lastCall = 0 // just for maxWait
2426 | var now = _.now()
2427 | var timer
2428 |
2429 | if (!opt.leading) {
2430 | lastExec = now
2431 | }
2432 |
2433 | function ifIsCD() {
2434 | if (now - lastExec > wait) return false
2435 | if (maxWait && now - lastCall > maxWait) return false
2436 | return true
2437 | }
2438 |
2439 | function exec(fn, ctx, args) {
2440 | lastExec = _.now() // update last exec
2441 | return fn.apply(ctx, args)
2442 | }
2443 |
2444 | function cancel() {
2445 | if (timer) {
2446 | clearTimeout(timer)
2447 | timer = null
2448 | }
2449 | }
2450 |
2451 | function debounced() {
2452 | now = _.now() // update now
2453 | var isCD = ifIsCD()
2454 | lastCall = now // update last call
2455 | var me = this
2456 | var args = arguments
2457 |
2458 | cancel()
2459 |
2460 | if (!isCD) {
2461 | exec(fn, me, args)
2462 | } else {
2463 | if (opt.trailing) {
2464 | timer = _.delay(function() {
2465 | exec(fn, me, args)
2466 | }, wait)
2467 | }
2468 | }
2469 | }
2470 |
2471 | debounced.cancel = cancel
2472 |
2473 | return debounced
2474 | }
2475 |
2476 | function memoize(fn) {
2477 | var cache = new memoize.Cache
2478 | function memoized() {
2479 | var args = arguments
2480 | var key = args[0]
2481 | if (!cache.has(key)) {
2482 | var ret = fn.apply(this, args)
2483 | cache.set(key, ret)
2484 | }
2485 | return cache.get(key)
2486 | }
2487 | memoized.cache = cache
2488 | return memoized
2489 | }
2490 |
2491 | memoize.Cache = __webpack_require__(10)
2492 |
2493 | _.memoize = memoize
2494 |
2495 | _.wrap = function(val, fn) {
2496 | return function() {
2497 | var args = [val]
2498 | args.push.apply(args, arguments)
2499 | return fn.apply(this, args)
2500 | }
2501 | }
2502 |
2503 | _.curry = function(fn) {
2504 | var len = fn.length
2505 | return setter([])
2506 |
2507 | function setter(args) {
2508 | return function() {
2509 | var arr = args.concat(_.slice(arguments))
2510 | if (arr.length >= len) {
2511 | arr.length = len
2512 | return fn.apply(this, arr)
2513 | }
2514 | return setter(arr)
2515 | }
2516 | }
2517 | }
2518 |
2519 |
2520 | /***/ },
2521 | /* 10 */
2522 | /***/ function(module, exports, __webpack_require__) {
2523 |
2524 | var _ = __webpack_require__(4)
2525 | var is = _.is
2526 |
2527 | module.exports = Cache
2528 |
2529 | function Cache() {
2530 | this.data = {}
2531 | }
2532 |
2533 | var proto = Cache.prototype
2534 |
2535 | proto.has = function(key) {
2536 | return is.owns(this.data, key)
2537 | }
2538 |
2539 | proto.get = function(key) {
2540 | return this.data[key]
2541 | }
2542 |
2543 | proto.set = function(key, val) {
2544 | this.data[key] = val
2545 | }
2546 |
2547 | proto['delete'] = function(key) {
2548 | delete this.data[key]
2549 | }
2550 |
2551 |
2552 | /***/ },
2553 | /* 11 */
2554 | /***/ function(module, exports, __webpack_require__) {
2555 |
2556 | var _ = module.exports = __webpack_require__(4)
2557 | var is = _.is
2558 |
2559 | _.now = function() {
2560 | return +new Date
2561 | }
2562 |
2563 | _.constant = function(val) {
2564 | return function() {
2565 | return val
2566 | }
2567 | }
2568 |
2569 | _.identity = function(val) {
2570 | return val
2571 | }
2572 |
2573 | _.random = function(min, max) {
2574 | return min + Math.floor(Math.random() * (max - min + 1))
2575 | }
2576 |
2577 | _.mixin = function(dst, src, opt) {
2578 | var keys = _.functions(src)
2579 | if (dst) {
2580 | if (is.fn(dst)) {
2581 | opt = opt || {}
2582 | var isChain = !!opt.chain
2583 | // add to prototype
2584 | var proto = dst.prototype
2585 | _.each(keys, function(key) {
2586 | var fn = src[key]
2587 | proto[key] = function() {
2588 | var me = this
2589 | var args = [me.__value]
2590 | args.push.apply(args, arguments)
2591 | var ret = fn.apply(me, args)
2592 | if (me.__chain) {
2593 | me.__value = ret
2594 | return me
2595 | }
2596 | return ret
2597 | }
2598 | })
2599 | } else {
2600 | _.each(keys, function(key) {
2601 | dst[key] = src[key]
2602 | })
2603 | }
2604 | }
2605 | return dst
2606 | }
2607 |
2608 | _.chain = function(val) {
2609 | var ret = _(val)
2610 | ret.__chain = true
2611 | return ret
2612 | }
2613 |
2614 | _.value = function() {
2615 | this.__chain = false
2616 | return this.__value
2617 | }
2618 |
2619 |
2620 | /***/ },
2621 | /* 12 */
2622 | /***/ function(module, exports, __webpack_require__) {
2623 |
2624 | var _ = module.exports = __webpack_require__(4)
2625 |
2626 | _.tostr = tostr // lodash toString
2627 |
2628 | var indexOf = _.indexOf
2629 |
2630 | _.split = function(str, separator, limit) {
2631 | str = tostr(str)
2632 | return str.split(separator, limit)
2633 | }
2634 |
2635 | _.capitalize = function(str) {
2636 | str = tostr(str)
2637 | return str.charAt(0).toUpperCase() + str.substr(1)
2638 | }
2639 |
2640 | _.decapitalize = function(str) {
2641 | str = tostr(str)
2642 | return str.charAt(0).toLowerCase() + str.substr(1)
2643 | }
2644 |
2645 | _.camelCase = function(str) {
2646 | str = tostr(str)
2647 | var arr = str.split(/[^\w]|_+/)
2648 | arr = _.map(arr, function(val) {
2649 | return _.capitalize(val)
2650 | })
2651 | return _.decapitalize(arr.join(''))
2652 | }
2653 |
2654 | _.startsWith = function(str, val) {
2655 | return 0 == indexOf(str, val)
2656 | }
2657 |
2658 | _.endsWith = function(str, val) {
2659 | val += '' // null => 'null'
2660 | return val == _.slice(str, _.len(str) - _.len(val))
2661 | }
2662 |
2663 | _.lower = function(str) {
2664 | // lodash toLower
2665 | return tostr(str).toLowerCase()
2666 | }
2667 |
2668 | _.upper = function(str) {
2669 | // lodash toUpper
2670 | return tostr(str).toUpperCase()
2671 | }
2672 |
2673 | _.repeat = function(str, count) {
2674 | return _.map(_.range(count), function() {
2675 | return str
2676 | }).join('')
2677 | }
2678 |
2679 | _.padStart = function(str, len, chars) {
2680 | str = _.tostr(str)
2681 | len = len || 0
2682 | var delta = len - str.length
2683 | return getPadStr(chars, delta) + str
2684 | }
2685 |
2686 | _.padEnd = function(str, len, chars) {
2687 | str = _.tostr(str)
2688 | len = len || 0
2689 | var delta = len - str.length
2690 | return str + getPadStr(chars, delta)
2691 | }
2692 |
2693 | function getPadStr(chars, len) {
2694 | chars = _.tostr(chars) || ' ' // '' will never end
2695 | var count = Math.floor(len / chars.length) + 1
2696 | return _.repeat(chars, count).slice(0, len)
2697 | }
2698 |
2699 | function tostr(str) {
2700 | if (str || 0 == str) return str + ''
2701 | return ''
2702 | }
2703 |
2704 |
2705 | /***/ },
2706 | /* 13 */
2707 | /***/ function(module, exports, __webpack_require__) {
2708 |
2709 | var _ = module.exports = __webpack_require__(4)
2710 |
2711 | _.sum = function(arr) {
2712 | return _.reduce(arr, function(sum, val) {
2713 | return sum + val
2714 | }, 0)
2715 | }
2716 |
2717 | _.max = function(arr, fn) {
2718 | var index = -1
2719 | var data = -Infinity
2720 | fn = fn || _.identity
2721 | _.each(arr, function(val, i) {
2722 | val = fn(val)
2723 | if (val > data) {
2724 | data = val
2725 | index = i
2726 | }
2727 | })
2728 | if (index > -1) {
2729 | return arr[index]
2730 | }
2731 | return data
2732 | }
2733 |
2734 | _.min = function(arr, fn) {
2735 | var index = -1
2736 | var data = Infinity
2737 | fn = fn || _.identity
2738 | _.each(arr, function(val, i) {
2739 | val = fn(val)
2740 | if (val < data) {
2741 | data = val
2742 | index = i
2743 | }
2744 | })
2745 | if (index > -1) {
2746 | return arr[index]
2747 | }
2748 | return data
2749 | }
2750 |
2751 |
2752 | /***/ },
2753 | /* 14 */
2754 | /***/ function(module, exports, __webpack_require__) {
2755 |
2756 | var _ = __webpack_require__(3)
2757 | var is = _.is
2758 |
2759 | var defaultOption = {
2760 | sep: '&',
2761 | eq: '=',
2762 | encode: encodeURIComponent,
2763 | decode: decodeURIComponent,
2764 | keepRaw: false,
2765 | sort: null,
2766 | ignoreValues: [undefined]
2767 | }
2768 |
2769 | exports.parse = function(qs, sep, eq, opt) {
2770 | qs += ''
2771 | opt = getOpt(sep, eq, opt)
2772 | var decode = opt.decode
2773 | // var ret = {}
2774 | qs = qs.split(opt.sep)
2775 |
2776 | return _.reduce(qs, function(ret, arr) {
2777 | arr = arr.split(opt.eq)
2778 | if (2 == arr.length) {
2779 | var k = arr[0]
2780 | var v = arr[1]
2781 | if (!opt.keepRaw) {
2782 | try {
2783 | k = decode(k)
2784 | v = decode(v)
2785 | } catch (ignore) {}
2786 | }
2787 | ret[k] = v
2788 | }
2789 | return ret
2790 | }, {})
2791 | }
2792 |
2793 | exports.stringify = function(obj, sep, eq, opt) {
2794 | opt = getOpt(sep, eq, opt)
2795 |
2796 | var keys = _.keys(obj)
2797 |
2798 | var sort = opt.sort
2799 | if (sort) {
2800 | if (is.fn(sort)) {
2801 | keys.sort(sort)
2802 | } else {
2803 | keys.sort()
2804 | }
2805 | }
2806 |
2807 | var encode = opt.encode
2808 |
2809 | var arr = []
2810 | _.each(keys, function(key) {
2811 | var val = obj[key]
2812 | if (!_.includes(opt.ignoreValues, val)) {
2813 | if (is.nan(val) || null == val) {
2814 | val = ''
2815 | }
2816 | if (!opt.keepRaw) {
2817 | key = encode(key)
2818 | val = encode(val)
2819 | }
2820 | arr.push(key + opt.eq + val)
2821 | }
2822 | })
2823 | return arr.join(opt.sep)
2824 | }
2825 |
2826 | function getOpt(sep, eq, opt) {
2827 | // can be
2828 | // _
2829 | // opt
2830 | // sep, opt
2831 | // sep, eq, opt
2832 | opt = _.find(arguments, function(val) {
2833 | return is.object(val)
2834 | })
2835 | sep = is.nos(sep) ? sep : undefined
2836 | eq = is.nos(eq) ? eq : undefined
2837 | opt = _.extend({}, defaultOption, opt, {sep: sep, eq: eq})
2838 | return opt
2839 | }
2840 |
2841 |
2842 |
2843 | /***/ },
2844 | /* 15 */
2845 | /***/ function(module, exports) {
2846 |
2847 | module.exports = "# h1\n\nhead1\n===\n\nhead2\n---\n\n### head3 ###\n\n- **strong**\n- *emphasis*\n- ~~del~~\n- `code inline`\n\n> block quote\n\n[github link address](https://github.com/chunpu/markdown2confluence)\n\n```javascript\nvar i = 1 // comment\nconsole.log(\"This is code block\")\n```\n\n\n\n## GFM support\n\nFirst Header | Second Header\n------------- | -------------\nContent Cell | Content Cell\nContent Cell | Content Cell\n*inline style* | **inline style**\n\n:)\n"
2848 |
2849 | /***/ }
2850 | /******/ ]);
--------------------------------------------------------------------------------