dolt 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1414f588cba634d0a92547366a8e87ca66583cc3
4
+ data.tar.gz: 84a32ef1845e4d7795c5f706fef6deb5f6606d65
5
+ SHA512:
6
+ metadata.gz: a929c197c1ec49786da76fd7854e1c752cb39b6e192835f5ab9edd9a7c786879d8fb3d0e947df2a46feae49aa6674cfb50fe5f38c5013615c23a7090e42020b8
7
+ data.tar.gz: c8312562974affc44b68a8f1495611b93847b9b7707ded37049695d2229be4ebe363ff785d8c5fdf91a04719527c24ee1c648f89e146911fca1dbfec7474bb6d
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ gemspec
4
4
 
5
5
  gem "ci_reporter"
6
6
  gem "rcov", :platforms => :ruby_18
7
- gem "simplecov", :platforms => :ruby_19
7
+ gem "simplecov", :platforms => [:ruby_19, :ruby_20]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dolt (0.26.0)
4
+ dolt (0.27.0)
5
5
  json (~> 1.5)
6
6
  libdolt (~> 0.26)
7
7
  sinatra (~> 1.0)
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  Gem::Specification.new do |s|
13
13
  s.name = "dolt"
14
- s.version = "0.26.0"
14
+ s.version = "0.27.0"
15
15
  s.authors = ["Christian Johansen"]
16
16
  s.email = ["christian@gitorious.org"]
17
17
  s.homepage = "http://gitorious.org/gitorious/dolt"
@@ -35,6 +35,9 @@ module Dolt
35
35
  end
36
36
 
37
37
  def render_error(error, repo, ref, data = {})
38
+ $stderr.puts(error.message)
39
+ $stderr.puts(error.backtrace)
40
+
38
41
  if error.class.to_s == "Rugged::ReferenceError" && ref == "HEAD"
39
42
  return app.body(renderer.render("empty", {
40
43
  :repository => repo,
@@ -176,13 +179,13 @@ module Dolt
176
179
 
177
180
  def add_headers(response, headers = {})
178
181
  default_ct = "text/html; charset=utf-8"
179
- response["Content-Type"] = headers[:content_type] || default_ct
180
- response["X-UA-Compatible"] = "IE=edge"
182
+ app.response["Content-Type"] = headers[:content_type] || default_ct
183
+ app.response["X-UA-Compatible"] = "IE=edge"
181
184
 
182
185
  if headers[:ref] && headers[:ref].length == 40
183
- response["Cache-Control"] = "max-age=315360000, public"
186
+ app.response["Cache-Control"] = "max-age=315360000, public"
184
187
  year = 60*60*24*365
185
- response["Expires"] = (Time.now + year).httpdate
188
+ app.response["Expires"] = (Time.now + year).httpdate
186
189
  end
187
190
  end
188
191
  end
@@ -31,7 +31,6 @@ module Dolt
31
31
  def initialize(lookup, renderer)
32
32
  @lookup = lookup
33
33
  @renderer = renderer
34
- @dolt = Dolt::Sinatra::Actions.new(self, lookup, renderer)
35
34
  super()
36
35
  end
37
36
 
@@ -129,7 +128,11 @@ module Dolt
129
128
  end
130
129
 
131
130
  private
132
- attr_reader :repo, :lookup, :renderer, :dolt
131
+ attr_reader :repo, :lookup, :renderer
132
+
133
+ def dolt
134
+ @dolt ||= Dolt::Sinatra::Actions.new(self, lookup, renderer)
135
+ end
133
136
 
134
137
  def force_ref(args, action, ref)
135
138
  redirect(args.shift + "/#{action}/#{ref}:" + args.join)
@@ -32,7 +32,6 @@ module Dolt
32
32
  @repo = repo
33
33
  @lookup = lookup
34
34
  @renderer = renderer
35
- @dolt = Dolt::Sinatra::Actions.new(self, lookup, renderer)
36
35
  super()
37
36
  end
38
37
 
@@ -125,7 +124,11 @@ module Dolt
125
124
  end
126
125
 
127
126
  private
128
- attr_reader :repo, :lookup, :renderer, :dolt
127
+ attr_reader :repo, :lookup, :renderer
128
+
129
+ def dolt
130
+ @dolt ||= Dolt::Sinatra::Actions.new(self, lookup, renderer)
131
+ end
129
132
 
130
133
  def force_ref(args, action, ref)
131
134
  redirect("/#{action}/#{ref}:" + args.join)
@@ -2,7 +2,7 @@ GTS3_DEPS=js/lib/spin.js/spin.js js/lib/when/when.js js/lib/bane/lib/bane.js js/
2
2
 
3
3
  GTS3_UTILS=js/src/app.js js/src/cache.js js/src/json-request.js
4
4
 
5
- GTS3_COMPONENTS=js/src/components/dropdown.js js/src/components/ganalytics.js js/src/components/abbrev.js js/src/components/url.js js/src/components/ref-selector.js js/src/components/tree-history.js js/src/components/commit-linker.js js/src/components/user-repo-view-state.js js/src/components/profile-menu.js js/src/components/clone-url-selection.js js/src/components/blob.js js/src/components/live-markdown-preview.js js/src/components/timeago.js js/src/components/collapse.js js/src/components/repository.js js/src/components/rails-links.js js/src/components/clone-name-suggestion.js js/src/components/loading.js js/src/components/oid-ref-interpolator.js js/src/components/comments.js
5
+ GTS3_COMPONENTS=js/src/components/dropdown.js js/src/components/ganalytics.js js/src/components/abbrev.js js/src/components/url.js js/src/components/ref-selector.js js/src/components/tree-history.js js/src/components/commit-linker.js js/src/components/user-repo-view-state.js js/src/components/profile-menu.js js/src/components/clone-url-selection.js js/src/components/blob.js js/src/components/live-markdown-preview.js js/src/components/timeago.js js/src/components/collapse.js js/src/components/repository.js js/src/components/rails-links.js js/src/components/clone-name-suggestion.js js/src/components/loading.js js/src/components/oid-ref-interpolator.js js/src/components/comments.js js/src/components/slugify.js js/src/components/select-details.js
6
6
 
7
7
  CAPILLARY_SOURCES=js/lib/raphael/raphael-min.js js/src/spacer.js js/lib/capillary/lib/capillary.js js/lib/capillary/lib/capillary/branch.js js/lib/capillary/lib/capillary/graph.js js/lib/capillary/lib/capillary/formatters/scale.js js/lib/capillary/lib/capillary/formatters/svg-data.js js/lib/capillary/lib/capillary/formatters/raphael.js js/lib/capillary/lib/capillary/formatters/message-markup.js js/src/components/capillary.js js/src/capillary.js
8
8
 
@@ -10,28 +10,31 @@ all: dist/gitorious3.min.css dist/gitorious3-capillary.min.js dist/gitorious3.mi
10
10
 
11
11
  rebuild: clean all
12
12
 
13
+ node_modules/.bin/uglifyjs:
14
+ npm install uglify-js
15
+
13
16
  js/lib/culljs/dist/cull.js:
14
17
  cd js/lib/culljs && npm install && node build -s -n
15
18
 
16
19
  js/lib/dome/dist/dome.js:
17
20
  cd js/lib/dome && npm install && node build -s -n
18
21
 
19
- dist/gitorious3-dependencies.min.js: $(GTS3_DEPS) js/lib/culljs/dist/cull.js js/lib/dome/dist/dome.js
22
+ dist/gitorious3-dependencies.min.js: $(GTS3_DEPS) js/lib/culljs/dist/cull.js js/lib/dome/dist/dome.js node_modules/.bin/uglifyjs
20
23
  cat js/lib/culljs/dist/cull.js \
21
24
  js/lib/dome/dist/dome.js \
22
- $(GTS3_DEPS) | ./node_modules/.bin/uglifyjs > dist/gitorious3-dependencies.min.js
25
+ $(GTS3_DEPS) | ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-dependencies.min.js
23
26
  du -h dist/gitorious3-dependencies.min.js
24
27
 
25
- dist/gitorious3-components.min.js: $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js
26
- cat $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js | ./node_modules/.bin/uglifyjs > dist/gitorious3-components.min.js
28
+ dist/gitorious3-components.min.js: $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js node_modules/.bin/uglifyjs
29
+ cat $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js | ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-components.min.js
27
30
  du -h dist/gitorious3-components.min.js
28
31
 
29
32
  dist/gitorious3.min.js: dist/gitorious3-dependencies.min.js dist/gitorious3-components.min.js
30
33
  cat dist/gitorious3-dependencies.min.js dist/gitorious3-components.min.js > dist/gitorious3.min.js
31
34
  du -h dist/gitorious3.min.js
32
35
 
33
- dist/gitorious3-capillary.min.js: $(CAPILLARY_SOURCES)
34
- cat $(CAPILLARY_SOURCES) ./node_modules/.bin/uglifyjs > dist/gitorious3-capillary.min.js
36
+ dist/gitorious3-capillary.min.js: $(CAPILLARY_SOURCES) node_modules/.bin/uglifyjs
37
+ cat $(CAPILLARY_SOURCES) ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-capillary.min.js
35
38
  du -h dist/gitorious3-capillary.min.js
36
39
 
37
40
  dist/gitorious3.min.css: css/gitorious.css css/syntax-highlight.css
@@ -43,4 +46,3 @@ clean:
43
46
  rm -fr js/lib/culljs/dist
44
47
  rm -fr js/lib/dome/dist
45
48
 
46
-
@@ -26,6 +26,10 @@ body h1 {
26
26
  max-height: 2000px;
27
27
  }
28
28
 
29
+ .span8 .input-xxlarge {
30
+ width: 95%;
31
+ }
32
+
29
33
  /** Header */
30
34
  body .gts-masthead {
31
35
  margin-bottom: 0;
@@ -53,7 +57,7 @@ body .gts-masthead {
53
57
  }
54
58
 
55
59
  /** Repo "boxes" */
56
- .gts-repo-header {
60
+ .gts-site-header {
57
61
  background: #f5f5f5;
58
62
  border-bottom: 1px solid #ddd;
59
63
  margin-bottom: 20px;
@@ -68,7 +72,7 @@ tt {
68
72
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
69
73
  }
70
74
 
71
- .gts-private .gts-repo-header {
75
+ .gts-private .gts-site-header {
72
76
  background: url(../images/f5f5f5-980x1.png) repeat-y 50% 0 #222;
73
77
  border-bottom: none;
74
78
  }
@@ -77,7 +81,7 @@ tt {
77
81
  padding-bottom: 40px;
78
82
  }
79
83
 
80
- .gts-repo-header + .footer {
84
+ .gts-site-header + .footer {
81
85
  margin-top: -21px;
82
86
  }
83
87
 
@@ -87,7 +91,7 @@ tt {
87
91
  padding: 20px 0 0;
88
92
  }
89
93
 
90
- .gts-repo-header .nav-tabs {
94
+ .gts-site-header .nav-tabs {
91
95
  margin-bottom: -1px;
92
96
  }
93
97
 
@@ -124,17 +128,17 @@ li + .dropdown-label {
124
128
  color: #000;
125
129
  }
126
130
 
127
- .gts-repo-header .row,
131
+ .gts-site-header .row,
128
132
  .gts-description {
129
133
  margin-bottom: 10px;
130
134
  }
131
135
 
132
- .gts-repo-header .gts-help {
136
+ .gts-site-header .gts-help {
133
137
  clear: both;
134
138
  margin-bottom: 0;
135
139
  }
136
140
 
137
- .gts-repo-header .gts-branch-selector +
141
+ .gts-site-header .gts-branch-selector +
138
142
  .gts-branch-selector {
139
143
  padding-left: 0;
140
144
  }
@@ -236,7 +240,8 @@ ul.gts-blob-view li {
236
240
  }
237
241
 
238
242
  /* Allocate as much space as possible to the commit column */
239
- .gts-tree-explorer .gts-col-commit {
243
+ .gts-tree-explorer .gts-col-commit,
244
+ .gts-cell-big {
240
245
  width: 80%;
241
246
  }
242
247
 
@@ -257,7 +262,7 @@ ul.gts-blob-view li {
257
262
  background: url(../images/white-980x1.png) repeat-y 50% 0 #222;
258
263
  }
259
264
 
260
- .gts-private .gts-repo-header .container {
265
+ .gts-private .gts-site-header .container {
261
266
  background-image: url(../iconic/lock_stroke.svg);
262
267
  background-repeat: no-repeat;
263
268
  background-position: 100% 0;
@@ -483,6 +488,7 @@ input[type=url].gts-current-repo-url {
483
488
  text-decoration: none;
484
489
  }
485
490
 
491
+ .gts-neg,
486
492
  .gts-diff-summary .gts-diff-rm {
487
493
  color: #9d261d;
488
494
  }
@@ -496,6 +502,7 @@ input[type=url].gts-current-repo-url {
496
502
  text-decoration: none;
497
503
  }
498
504
 
505
+ .gts-pos,
499
506
  .gts-diff-summary .gts-diff-add {
500
507
  color: #46a546;
501
508
  }
@@ -608,7 +615,8 @@ input[type=text].gts-ref-input {
608
615
  margin-top: -1px;
609
616
  }
610
617
 
611
- .gts-commit-date {
618
+ .gts-commit-date,
619
+ .table .gts-cell-small {
612
620
  white-space: nowrap;
613
621
  }
614
622
 
@@ -1 +1 @@
1
- .prettyprint{background-color:#f7f7f9;border:1px solid #e1e1e8;padding:8px}.gts-file .prettyprint{background:#fefefe}.prettyprint.linenums{box-shadow:47px 0 0 #fbfbfc inset,48px 0 0 #ececf0 inset}ol.linenums{margin:0 0 0 40px}ol.linenums li{color:#bebec5;line-height:18px;padding-left:12px;text-shadow:0 1px 0 #fff}.linenums .line{display:block;min-height:18px}.c,.cm,.c1,.cs{color:#93a1a1}.k,.kc,.kd,.kn,.kr,.kp,.nb,.sx,.bp{color:#1e347b}.nc,.nn,.nf,.no{color:#dc322f}.s,.sb,.sc,.sd,.s2,.sh,.s1,.se,.si{color:#d14}.nt,.m,.mf,.mh,.mi,.mo,.il,.vi,.ow,.na,.n,.nx,.p,.line{color:#48484c}.vc,.vg,.nv{color:#a74e4c}.ss,.sr,.cp{color:#bc7a00}.sd{font-style:italic}.vi,.k,.kc,.kd,.kn,.kr,.nt,.nc,.nn,.no,.nb,.nf,.ow,.si{font-weight:bold}.html-erb .cp{color:#48484c}.common-lisp .nv{color:#48484c}.hll{background-color:#ffc}.err{border:1px solid #f00}.o{color:#666}.gd{color:#a00000}.ge{font-style:italic}.gr{color:#f00}.gh{color:#000080;font-weight:bold}.gi{color:#00a000}.go{color:#888}.gp{color:#000080;font-weight:bold}.gs{font-weight:bold}.gu{color:#800080;font-weight:bold}.gt{color:#04d}.kt{color:#b00040}.nd{color:#a2f}.ni{color:#999;font-weight:bold}.ne{color:#d2413a;font-weight:bold}.nl{color:#a0a000}.w{color:#bbb}ol.linenums li.region .line{background:#ffd}ol.linenums li.focus{color:#48484e;border-right:1px solid #e1e1e8}.linenums li.region .line,ol.linenums li.focus .line{background:#ffc;margin-left:-60px;padding-left:60px;margin-right:-8px;padding-right:8px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{max-width:940px}body h1{margin-bottom:.25em}.collapse{max-height:0;-webkit-transition:max-height 1.35s ease;-moz-transition:max-height 1.35s ease;-ms-transition:max-height 1.35s ease;-o-transition:max-height 1.35s ease;transition:max-height 1.35s ease}.collapse.in{max-height:2000px}body .gts-masthead{margin-bottom:0}.gts-masthead .navbar-inner{border-radius:0;background-image:-moz-linear-gradient(center top,#201e1e,#222);background-color:#201e1e}.gts-masthead .container{padding-bottom:8px;padding-top:20px}.gts-logo{float:left;margin:-4px 20px 6px 0}.gts-masthead .navbar-inner .btn-group{padding-right:0}.gts-repo-header{background:#f5f5f5;border-bottom:1px solid #ddd;margin-bottom:20px;padding:20px 0 0}.gts-clone-source{margin-left:30px}tt{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}.gts-private .gts-repo-header{background:url(../images/f5f5f5-980x1.png?jcb=1349199357) repeat-y 50% 0 #222;border-bottom:0}.gts-new-repo{padding-bottom:40px}.gts-repo-header+.footer{margin-top:-21px}.gts-notification{background:#fff;border-bottom:1px solid #ddd;padding:20px 0 0}.gts-repo-header .nav-tabs{margin-bottom:-1px}.nav-tabs .dropdown-menu{margin-top:-1px}.dropdown-label{border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;margin-top:-5px;overflow:hidden}.dropdown-label strong{background:#f5f5f5;border-bottom:1px solid #ccc;border-top:1px solid #ccc;display:block;padding:3px 15px}li+.dropdown-label{border-radius:0;margin-top:12px}.dropdown-toggle em{font-style:normal;color:#48484c}.open .dropdown-toggle em{color:#000}.gts-repo-header .row,.gts-description{margin-bottom:10px}.gts-repo-header .gts-help{clear:both;margin-bottom:0}.gts-repo-header .gts-branch-selector+.gts-branch-selector{padding-left:0}.gts-branch-selector .disabled{color:#999}.gts-branch-selector{margin:0 12px 12px 0;position:relative;z-index:1}.gts-browser .gts-branch-selector{margin-top:8px}.gts-file{margin-bottom:12px}.gts-file h1{margin:12px 0}.gts-download{padding-right:12px}.gts-file .breadcrumb{margin:0 0 -2px;position:relative}.gts-inline{display:inline-block;line-height:1;padding-right:12px;vertical-align:middle}.gts-markup{font-size:1.1em;line-height:1.5}.gts-markup h1{margin-top:1em}.gts-markup h1,.gts-markup h2,.gts-markup h3,.gts-markup h4,.gts-markup h5,.gts-markup h6{margin-bottom:.25em}.gts-markup p,.gts-markup ul,.gts-markup ol,.gts-markup pre{margin-bottom:1em}.prettyprint ol.linenums{margin-bottom:0}.table td ul{margin-left:15px}.gts-blob-view{margin-right:12px;margin-top:8px;min-height:21px;position:relative;z-index:1}ul.gts-blob-view li{display:inline-block;padding:0 6px}.gts-tree-explorer{display:inline-table;position:relative;top:-8px}.gts-branch-selector+.gts-tree-explorer{display:inline-table;position:relative;top:-38px}.gts-tree-explorer .gts-col-commit{width:80%}.gts-tree-explorer .icon{padding-right:6px}.gts-tree-explorer .gts-name{white-space:nowrap}.gts-tree-explorer .gts-commit-oid{padding-right:0}.gts-private{background:url(../images/white-980x1.png?jcb=1349199357) repeat-y 50% 0 #222}.gts-private .gts-repo-header .container{background-image:url(../iconic/lock_stroke.svg?jcb=1349199357);background-repeat:no-repeat;background-position:100% 0}.gts-repo-url{position:relative;z-index:1}.gts-repo-url .url{display:none}input[type=url].gts-current-repo-url{float:left;left:-2px;padding-left:6px;position:relative;z-index:0}.gts-repo-urls button.gts-repo-url-help{float:right;margin-left:-4px}.gts-body{margin-bottom:35px}.gts-date-heading{background-color:#f7f7f9;border-bottom:1px solid #e1e1e8;clear:both;font-weight:bold}.gts-date-heading-inner{background-color:#f7f7f9;border-bottom:1px solid #fff;color:#333;display:block;padding:4px 8px;text-shadow:0 1px 0 #fff}.gts-avatar{margin:0 6px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.gts-comment-summary{color:#48484c;padding-left:10px}.gts-log-message{font-size:1.2em}.gts-commit{padding:6px 6px 8px}.gts-commit+.gts-commit{border-top:1px solid #e1e1e8;padding-top:12px}.gts-commit .gts-avatar{margin-left:0}.gts-commit-linker .gts-commit-oid{color:#08c;cursor:pointer}.gts-commit-linker .gts-commit-oid:hover{color:#005580;text-decoration:underline}.footer{border-top:1px solid #e5e5e5;margin-top:45px}.footer .container{padding:20px 0}.gts-private .footer{border-color:#222}.gts-footer-blurb{border-top:1px solid #f5f5f5;margin-top:12px;padding-top:12px}.capillary p{white-space:normal}.capillary li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capillary .ref-name{background:#ddd;color:#4e4e4e;border-radius:4px;display:inline-block;margin:0 5px 0 0;padding:0 5px}.capillary .ref-type-tag{background:#eeb}.capillary a.ref-name:hover{text-decoration:underline}.capillary li .msg{color:#48484c}.capillary li a:hover{text-decoration:underline}.capillary{margin-left:-10px}.gts-code-listing{border:1px solid #e1e1e8;position:relative;top:-5px;width:100%}.gts-code-listing tr:first-child td{padding-top:6px}.gts-code-listing tr:last-child td{padding-bottom:6px}.gts-code-listing td{padding:0;vertical-align:top}.gts-code-listing .gts-code{background:#fefefe}.gts-code-listing code{background:transparent;border:0;color:#48484c;display:block;line-height:18px;min-height:18px;padding:0 0 0 12px;white-space:pre-wrap}.gts-code-listing .linenum{background-color:#f7f7f9;border:1px solid #e1e1e8;color:#bebec5;padding:0 12px;text-align:right;text-shadow:0 1px 0 #fff;width:10px}.gts-code-listing .gts-commit-oid{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}.gts-code-listing .gts-annotated{border-top:1px solid #e1e1e8}.gts-code-listing .gts-blame-annotation{white-space:nowrap;background:#f0f0f0;padding-left:12px;padding-right:12px}.gts-code-listing .line{white-space:nowrap}.gts-code-listing .gts-diff-rm .gts-code{background:#fdd}.gts-code-listing del{background:#f2acad;text-decoration:none}.gts-diff-summary .gts-diff-rm{color:#9d261d}.gts-code-listing .gts-diff-add .gts-code{background:#dfd}.gts-code-listing ins{background:#bafbad;text-decoration:none}.gts-diff-summary .gts-diff-add{color:#46a546}.gts-diff-summary .gts-diff-rm,.gts-diff-summary .gts-diff-add{font-weight:bold}.gts-diffs h1{margin-bottom:18px}.gts-commit blockquote p{margin-bottom:12px}.gts-commit-sha1{float:left;font-size:13px;line-height:18px}.gts-commit-parent{float:right}.gts-commit h1{clear:both}.gts-side-by-side .gts-code{width:50%}.gts-commit-summary{margin-bottom:12px}.gts-comment{padding-top:8px;margin-bottom:12px}.gts-comment+.gts-comment{border-top:1px solid #e5e5e5}.gts-bordered-row{background:#f5f5f5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5;padding:8px}.form-horizontal div.gts-markdown-preview{margin:-12px 160px 24px}.gts-help .table{width:auto}.gts-item-author,.gts-item-status,.gts-item-age{white-space:nowrap}.form-horizontal legend+p{margin:-20px 0 27px}.gts-ref-input,input[type=text].gts-ref-input{border:0;border-radius:0;-moz-border-radius:0;box-shadow:0;display:inline;height:18px;margin:0;padding:1px 4px 3px;position:relative;top:0;width:10em}.gts-branch-selector .dropdown-menu{min-width:246px}.gts-dropdown-input{border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;margin-top:-5px;overflow:hidden}.gts-dropdown-input strong{background:#f5f5f5;border-bottom:1px solid #ccc;border-top:1px solid #ccc;display:block;padding:0 15px}.gts-dropdown-input+.dropdown-label{margin-top:-1px}.gts-commit-date{white-space:nowrap}.table td.gts-commit-oid{width:1em}.gts-markup code{border:0;color:inherit;font-size:.9em;padding:2px}.gts-markup pre code{font-size:inherit}.gts-readme{background-color:#fff;border:1px solid #e3e3e3;border-radius:4px 4px 4px 4px;box-shadow:0 1px 1px rgba(0,0,0,0.05) inset;margin-bottom:20px;min-height:20px;padding:19px}.gts-readme .gts-page-header{background-color:#f5f5f5;border-radius:4px 0 0 4px;margin:-19px -19px 10px -19px;padding:10px 20px 10px 20px}.gts-placeholder{display:none}
1
+ .prettyprint{background-color:#f7f7f9;border:1px solid #e1e1e8;padding:8px}.gts-file .prettyprint{background:#fefefe}.prettyprint.linenums{box-shadow:47px 0 0 #fbfbfc inset,48px 0 0 #ececf0 inset}ol.linenums{margin:0 0 0 40px}ol.linenums li{color:#bebec5;line-height:18px;padding-left:12px;text-shadow:0 1px 0 #fff}.linenums .line{display:block;min-height:18px}.c,.cm,.c1,.cs{color:#93a1a1}.k,.kc,.kd,.kn,.kr,.kp,.nb,.sx,.bp{color:#1e347b}.nc,.nn,.nf,.no{color:#dc322f}.s,.sb,.sc,.sd,.s2,.sh,.s1,.se,.si{color:#d14}.nt,.m,.mf,.mh,.mi,.mo,.il,.vi,.ow,.na,.n,.nx,.p,.line{color:#48484c}.vc,.vg,.nv{color:#a74e4c}.ss,.sr,.cp{color:#bc7a00}.sd{font-style:italic}.vi,.k,.kc,.kd,.kn,.kr,.nt,.nc,.nn,.no,.nb,.nf,.ow,.si{font-weight:bold}.html-erb .cp{color:#48484c}.common-lisp .nv{color:#48484c}.hll{background-color:#ffc}.err{border:1px solid #f00}.o{color:#666}.gd{color:#a00000}.ge{font-style:italic}.gr{color:#f00}.gh{color:#000080;font-weight:bold}.gi{color:#00a000}.go{color:#888}.gp{color:#000080;font-weight:bold}.gs{font-weight:bold}.gu{color:#800080;font-weight:bold}.gt{color:#04d}.kt{color:#b00040}.nd{color:#a2f}.ni{color:#999;font-weight:bold}.ne{color:#d2413a;font-weight:bold}.nl{color:#a0a000}.w{color:#bbb}ol.linenums li.region .line{background:#ffd}ol.linenums li.focus{color:#48484e;border-right:1px solid #e1e1e8}.linenums li.region .line,ol.linenums li.focus .line{background:#ffc;margin-left:-60px;padding-left:60px;margin-right:-8px;padding-right:8px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{max-width:940px}body h1{margin-bottom:.25em}.collapse{max-height:0;-webkit-transition:max-height 1.35s ease;-moz-transition:max-height 1.35s ease;-ms-transition:max-height 1.35s ease;-o-transition:max-height 1.35s ease;transition:max-height 1.35s ease}.collapse.in{max-height:2000px}.span8 .input-xxlarge{width:95%}body .gts-masthead{margin-bottom:0}.gts-masthead .navbar-inner{border-radius:0;background-image:-moz-linear-gradient(center top,#201e1e,#222);background-color:#201e1e}.gts-masthead .container{padding-bottom:8px;padding-top:20px}.gts-logo{float:left;margin:-4px 20px 6px 0}.gts-masthead .navbar-inner .btn-group{padding-right:0}.gts-site-header{background:#f5f5f5;border-bottom:1px solid #ddd;margin-bottom:20px;padding:20px 0 0}.gts-clone-source{margin-left:30px}tt{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}.gts-private .gts-site-header{background:url(../images/f5f5f5-980x1.png?jcb=1349199357) repeat-y 50% 0 #222;border-bottom:0}.gts-new-repo{padding-bottom:40px}.gts-site-header+.footer{margin-top:-21px}.gts-notification{background:#fff;border-bottom:1px solid #ddd;padding:20px 0 0}.gts-site-header .nav-tabs{margin-bottom:-1px}.nav-tabs .dropdown-menu{margin-top:-1px}.dropdown-label{border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;margin-top:-5px;overflow:hidden}.dropdown-label strong{background:#f5f5f5;border-bottom:1px solid #ccc;border-top:1px solid #ccc;display:block;padding:3px 15px}li+.dropdown-label{border-radius:0;margin-top:12px}.dropdown-toggle em{font-style:normal;color:#48484c}.open .dropdown-toggle em{color:#000}.gts-site-header .row,.gts-description{margin-bottom:10px}.gts-site-header .gts-help{clear:both;margin-bottom:0}.gts-site-header .gts-branch-selector+.gts-branch-selector{padding-left:0}.gts-branch-selector .disabled{color:#999}.gts-branch-selector{margin:0 12px 12px 0;position:relative;z-index:1}.gts-browser .gts-branch-selector{margin-top:8px}.gts-file{margin-bottom:12px}.gts-file h1{margin:12px 0}.gts-download{padding-right:12px}.gts-file .breadcrumb{margin:0 0 -2px;position:relative}.gts-inline{display:inline-block;line-height:1;padding-right:12px;vertical-align:middle}.gts-markup{font-size:1.1em;line-height:1.5}.gts-markup h1{margin-top:1em}.gts-markup h1,.gts-markup h2,.gts-markup h3,.gts-markup h4,.gts-markup h5,.gts-markup h6{margin-bottom:.25em}.gts-markup p,.gts-markup ul,.gts-markup ol,.gts-markup pre{margin-bottom:1em}.prettyprint ol.linenums{margin-bottom:0}.table td ul{margin-left:15px}.gts-blob-view{margin-right:12px;margin-top:8px;min-height:21px;position:relative;z-index:1}ul.gts-blob-view li{display:inline-block;padding:0 6px}.gts-tree-explorer{display:inline-table;position:relative;top:-8px}.gts-branch-selector+.gts-tree-explorer{display:inline-table;position:relative;top:-38px}.gts-tree-explorer .gts-col-commit,.gts-cell-big{width:80%}.gts-tree-explorer .icon{padding-right:6px}.gts-tree-explorer .gts-name{white-space:nowrap}.gts-tree-explorer .gts-commit-oid{padding-right:0}.gts-private{background:url(../images/white-980x1.png?jcb=1349199357) repeat-y 50% 0 #222}.gts-private .gts-site-header .container{background-image:url(../iconic/lock_stroke.svg?jcb=1349199357);background-repeat:no-repeat;background-position:100% 0}.gts-repo-url{position:relative;z-index:1}.gts-repo-url .url{display:none}input[type=url].gts-current-repo-url{float:left;left:-2px;padding-left:6px;position:relative;z-index:0}.gts-repo-urls button.gts-repo-url-help{float:right;margin-left:-4px}.gts-body{margin-bottom:35px}.gts-date-heading{background-color:#f7f7f9;border-bottom:1px solid #e1e1e8;clear:both;font-weight:bold}.gts-date-heading-inner{background-color:#f7f7f9;border-bottom:1px solid #fff;color:#333;display:block;padding:4px 8px;text-shadow:0 1px 0 #fff}.gts-avatar{margin:0 6px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.gts-comment-summary{color:#48484c;padding-left:10px}.gts-log-message{font-size:1.2em}.gts-commit{padding:6px 6px 8px}.gts-commit+.gts-commit{border-top:1px solid #e1e1e8;padding-top:12px}.gts-commit .gts-avatar{margin-left:0}.gts-commit-linker .gts-commit-oid{color:#08c;cursor:pointer}.gts-commit-linker .gts-commit-oid:hover{color:#005580;text-decoration:underline}.footer{border-top:1px solid #e5e5e5;margin-top:45px}.footer .container{padding:20px 0}.gts-private .footer{border-color:#222}.gts-footer-blurb{border-top:1px solid #f5f5f5;margin-top:12px;padding-top:12px}.capillary p{white-space:normal}.capillary li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capillary .ref-name{background:#ddd;color:#4e4e4e;border-radius:4px;display:inline-block;margin:0 5px 0 0;padding:0 5px}.capillary .ref-type-tag{background:#eeb}.capillary a.ref-name:hover{text-decoration:underline}.capillary li .msg{color:#48484c}.capillary li a:hover{text-decoration:underline}.capillary{margin-left:-10px}.gts-code-listing{border:1px solid #e1e1e8;position:relative;top:-5px;width:100%}.gts-code-listing tr:first-child td{padding-top:6px}.gts-code-listing tr:last-child td{padding-bottom:6px}.gts-code-listing td{padding:0;vertical-align:top}.gts-code-listing .gts-code{background:#fefefe}.gts-code-listing code{background:transparent;border:0;color:#48484c;display:block;line-height:18px;min-height:18px;padding:0 0 0 12px;white-space:pre-wrap}.gts-code-listing .linenum{background-color:#f7f7f9;border:1px solid #e1e1e8;color:#bebec5;padding:0 12px;text-align:right;text-shadow:0 1px 0 #fff;width:10px}.gts-code-listing .gts-commit-oid{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}.gts-code-listing .gts-annotated{border-top:1px solid #e1e1e8}.gts-code-listing .gts-blame-annotation{white-space:nowrap;background:#f0f0f0;padding-left:12px;padding-right:12px}.gts-code-listing .line{white-space:nowrap}.gts-code-listing .gts-diff-rm .gts-code{background:#fdd}.gts-code-listing del{background:#f2acad;text-decoration:none}.gts-neg,.gts-diff-summary .gts-diff-rm{color:#9d261d}.gts-code-listing .gts-diff-add .gts-code{background:#dfd}.gts-code-listing ins{background:#bafbad;text-decoration:none}.gts-pos,.gts-diff-summary .gts-diff-add{color:#46a546}.gts-diff-summary .gts-diff-rm,.gts-diff-summary .gts-diff-add{font-weight:bold}.gts-diffs h1{margin-bottom:18px}.gts-commit blockquote p{margin-bottom:12px}.gts-commit-sha1{float:left;font-size:13px;line-height:18px}.gts-commit-parent{float:right}.gts-commit h1{clear:both}.gts-side-by-side .gts-code{width:50%}.gts-commit-summary{margin-bottom:12px}.gts-comment{padding-top:8px;margin-bottom:12px}.gts-comment+.gts-comment{border-top:1px solid #e5e5e5}.gts-bordered-row{background:#f5f5f5;border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5;padding:8px}.form-horizontal div.gts-markdown-preview{margin:-12px 160px 24px}.gts-help .table{width:auto}.gts-item-author,.gts-item-status,.gts-item-age{white-space:nowrap}.form-horizontal legend+p{margin:-20px 0 27px}.gts-ref-input,input[type=text].gts-ref-input{border:0;border-radius:0;-moz-border-radius:0;box-shadow:0;display:inline;height:18px;margin:0;padding:1px 4px 3px;position:relative;top:0;width:10em}.gts-branch-selector .dropdown-menu{min-width:246px}.gts-dropdown-input{border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;margin-top:-5px;overflow:hidden}.gts-dropdown-input strong{background:#f5f5f5;border-bottom:1px solid #ccc;border-top:1px solid #ccc;display:block;padding:0 15px}.gts-dropdown-input+.dropdown-label{margin-top:-1px}.gts-commit-date,.table .gts-cell-small{white-space:nowrap}.table td.gts-commit-oid{width:1em}.gts-markup code{border:0;color:inherit;font-size:.9em;padding:2px}.gts-markup pre code{font-size:inherit}.gts-readme{background-color:#fff;border:1px solid #e3e3e3;border-radius:4px 4px 4px 4px;box-shadow:0 1px 1px rgba(0,0,0,0.05) inset;margin-bottom:20px;min-height:20px;padding:19px}.gts-readme .gts-page-header{background-color:#f5f5f5;border-radius:4px 0 0 4px;margin:-19px -19px 10px -19px;padding:10px 20px 10px 20px}.gts-placeholder{display:none}
@@ -1,3 +1,3 @@
1
- var cull=function(e){"use strict";function r(e){return!!e&&typeof e=="object"&&typeof e.length=="number"&&!e.tagName}function i(e){return n.call(e)==="[object Array]"?e:n.call(e)==="[object Arguments]"?t.call(e):typeof e=="undefined"||e===null?[]:t.call(arguments)}function s(e,t){var n,r;for(n=0,r=t.length;n<r;++n)e(t[n],n,t);return t}function o(e){return typeof e=="function"}function u(e,t,n){var r=0,i,s=n,o=t;arguments.length===2&&(s=t,o=s[0],r=1),typeof s=="string"&&(s=s.split(""));for(i=s.length;r<i;++r)o=e(o,s[r]);return o}function a(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}function f(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(e(t[n]))return!0;return!1}function l(e,t){var n,r,i,s;for(n=0,r=t.length;n<r;++n){e(t[n])?i=!0:s=!0;if(i&&s)return!0}return!1}function c(e){return e.trim&&e.trim()||e.replace(/^\s+|\s+$/,"")}function h(e){return e}function p(e){return typeof e!="undefined"&&e!==null}function d(e){return function(t){return e.call(this,t)}}function v(e){return function(t){return t[e]}}function m(e,t){return function(n){return n[e].apply(n,i(t))}}function g(e){return function(t){return e===t}}function b(e,t){var n=i(e);return function(){var e=n.length,r=arguments;while(e--)r=[n[e].apply(t||this,r)];return r[0]}}function w(){var e=arguments;return function(t){return t.apply(this,e)}}function E(e){var n=t.call(arguments,1);return function(){return e.apply(this,n.concat(t.call(arguments)))}}function S(e,n){var r=typeof n=="string"?e[n]:n,i=t.call(arguments,2);return function(){return r.apply(e,i.concat(t.call(arguments)))}}function x(e){var t=[],n,i;for(n=0,i=e.length;n<i;n++)t=t.concat(r(e[n])?x(e[n]):e[n]);return t}function T(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(e===t[n])return n;return-1}function N(e){var t=[],n,r;for(n=0,r=e.length;n<r;++n)T(e[n],t)<0&&t.push(e[n]);return t}function C(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(e(t[n]))return t[n]}function k(e,t){var n=[],r,i;for(r=0,i=t.length;r<i;++r)e(t[r])&&n.push(t[r]);return n}function L(e,t){return k(function(e){return T(e,t)<0},e)}function A(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);return n}function O(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}function _(e,t){var n=[],r,i;for(r=0,i=t.length;r<i;r++)n.push(e(t[r]));return n}function D(e){return function(){return!e.apply(this,arguments)}}function P(e,t){return k(D(e),t)}function H(e,t){return i(e).concat(i(t))}function B(e,t){var n=[],r,i;for(r=0,i=t.length;r<i;r+=e)n.push(t.slice(r,r+e));return n}function j(e,t){return M(_(e,M(t)))}function F(e,t){return u(H,_(e,t))}function I(e,t){var n=[],r,i;for(r=0,i=t.length;r<i;r+=1)n.push(t[r]),r<i-1&&n.push(e);return n}function q(e,n,r){var i=e[n];e[n]=function(){var e=i.apply(this,arguments),n=r.apply(this,[e].concat(t.call(arguments)));return typeof n!="undefined"?n:e}}function R(e,t,n){var r=e[t];e[t]=function(){return n.apply(this,arguments),r.apply(this,arguments)}}function U(e,t,n){var r=E(n,e[t]);e[t]=function(){return r.apply(this,arguments)}}var t=Array.prototype.slice,n=Object.prototype.toString,y="compose takes func|[funcs] and optional thisp object",M=E(k,p);return{trim:c,doall:s,reduce:u,all:a,some:f,onlySome:l,isFunction:o,isList:r,toList:i,identity:h,defined:p,unary:d,prop:v,func:m,eq:g,compose:b,callWith:w,partial:E,bind:S,keys:A,values:O,concat:H,flatten:x,uniq:N,first:C,select:k,negate:D,reject:P,seldef:M,map:_,mapdef:j,mapcat:F,partition:B,difference:L,interpose:I,indexOf:T,after:q,before:R,around:U}}(this);typeof require=="function"&&typeof module!="undefined"&&(module.exports=cull);var dome=function(e){function t(n){if(e.isList(n))return e.flatten(e.map(t,n));var r=[],i=n.firstChild;while(i)i.nodeType===1&&r.push(i),i=i.nextSibling;return r}function n(e){return document.getElementById(e)}function r(e,t){var n=t||document;if(n.getElementsByClassName)return n.getElementsByClassName(e);var r=n.getElementsByTagName("*"),i,s,o=[],u=new RegExp("(^|\\s)"+e+"(\\s|$)");for(i=0,s=r.length;i<s;++i)u.test(r[i].className)&&o.push(r[i]);return o}function i(e){e.parentNode.removeChild(e)}function s(e,t){if(!e.parentNode)return;e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e)}function o(e,t){var n=new RegExp("(^|\\s)"+e+"(\\s|$)");return n.test(t.className)}function u(t,n){if(e.isList(n))return e.doall(e.partial(u,t),n);if(o(t,n))return;n.className=e.trim(n.className+" "+t)}function a(t,n){if(e.isList(n))return e.doall(e.partial(a,t),n);if(!o(t,n))return;var r=new RegExp("\\b"+t+"\\b","g");n.className=e.trim(n.className.replace(r,""))}function f(e){var t=e.nodeType;if(t===1||t===9||t===11){if(typeof e.textContent=="string")return e.textContent;var n="";for(e=e.firstChild;e;e=e.nextSibling)n+=f(e);return n}return t===3||t===4?e.nodeValue:""}function l(t){var n=document.createDocumentFragment();return e.doall(e.bind(n,"appendChild"),e.toList(t)),n}function h(e){return e?(typeof e._dome_uuid!="number"&&(e._dome_uuid=c++),e._dome_uuid):null}function d(e,t){if(!t||!e)return!1;var n=h(e);p[n]||(p[n]={});if(p[n][h(t)])return!0;var r=[];while(t&&t!==e)r.push(h(t)),t=t.parentNode;var i=!!t;for(var s=0,o=r.length;s<o;s++)p[n][r[s]]=i;return i}function g(e,t){var n;e=e||{};for(n in e)e.hasOwnProperty(n)&&(t.setAttribute("data-"+n,e[n]),t["data-"+n]=e[n])}function y(e,t){return t.getAttribute("data-"+e)}function w(e,t){var n,r;e=e||{};for(n in e)e.hasOwnProperty(n)&&(r=b[n],r?r(t,e[n]):t[n]=e[n])}function E(t,n){t=e.toList(t);var r,i;for(r=0,i=t.length;r<i;++r)typeof t[r]=="string"?n.appendChild(document.createTextNode(t[r])):n.appendChild(t[r])}function S(e,t){t.innerHTML="",E(e,t)}var c=0,p={},v,m=function(t){return t!==null&&typeof t!="undefined"&&(typeof t.nodeType!="undefined"||typeof t=="string"||e.isList(t))},b={style:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},data:function(e,t){g(t,e)}};return v=function(e,t,n){if(!n&&m(t))return v(e,{},t);var r=document.createElement(e);return w(t,r),E(n||[],r),r},v.toString=function(){return"dome.el()"},e.doall(function(t){v[t]=e.partial(v,t)},["a","br","div","fieldset","form","h2","h3","h4","h5","img","input","label","li","p","span","strong","textarea","ul","span","select","option","ol","iframe","table","tr","td","pre","button","i"]),{propmap:b,el:v,setProp:w,append:E,setContent:S,children:t,id:n,byClass:r,remove:i,replace:s,frag:l,text:f,data:{get:y,set:g},cn:{has:o,add:u,rm:a},uuid:h,contains:d}}(this.cull);(function(e,t){function n(e,t){return/^(?:function|object|unknown)$/.test(typeof e[t])}function a(e,t){return function(n){t.call(i[e],n||window.event)}}function f(e,t){return{handler:t,wrappedHandler:a(e,t)}}function c(e,t,n,r){s(t,n,function(t){e(t.target,n,t)&&r.call(t.target,t)})}var r=function(){if(typeof document.documentElement.uniqueID!="undefined")return function(e){return e.uniqueID};var e=0;return function(t){return t.__uniqueID||(t.__uniqueID="uniqueID__"+e,e+=1),t.__uniqueID}}(),i={},s,o,u=document.documentElement;if(n(u,"addEventListener")&&n(u,"removeEventListener")&&n(window,"addEventListener")&&n(window,"removeEventListener"))s=function(e,t,n){return e.addEventListener(t,n,!1),{cancel:function(){o(e,t,n)}}},o=function(e,t,n){e.removeEventListener(t,n,!1)};else if(n(u,"attachEvent")&&n(u,"detachEvent")&&n(window,"attachEvent")&&n("detachEvent")){var l={};s=function(e,t,n){var s=r(e);i[s]=e,l[s]||(l[s]={}),l[s][t]||(l[s][t]=[]);var u=f(s,n);return l[s][t].push(u),e.attachEvent("on"+t,u.wrappedHandler),{cancel:function(){o(e,t,n)}}},o=function(t,n,i){var s=r(t);if(!l[s]||!l[s][n])return;l[s][n]=e.select(function(e){if(e.handler!==i)return!0;t.detachEvent("on"+n,e.wrappedHandler)},l[s][n])}}c.bycn=function(n,r,i,s){c(e.partial(t.cn.has,n),r,i,s)},dome.events={mouseenter:function(e,t){var n=null,r=s(e,"mouseover",function(r){n!==e&&(t.call(e,r),n=e)}),i=s(e,"mouseout",function(t){var r=t.relatedTarget||t.toElement;try{r&&!r.nodeName&&(r=r.parentNode)}catch(t){return}e!==r&&!dome.contains(e,r)&&(n=null)});return{cancel:function(){r.cancel(),i.cancel()}}},mouseleave:function(e,t){return s(e,"mouseout",function(n){!dome.contains(e,n.relatedTarget)&&e!==n.relatedTarget&&t.call(e,n)})}},dome.on=function(e,t,n){return dome.events[t]?dome.events[t](e,n):s(e,t,n)},dome.off=o,dome.delegate=c,dome.propmap.events=function(t,n){e.doall(function(e){s(t,e,n[e])},e.keys(n))}})(cull,dome),!function(e,t,n){function o(e,n){var r=t.createElement(e||"div"),i;for(i in n)r[i]=n[i];return r}function u(e){for(var t=1,n=arguments.length;t<n;t++)e.appendChild(arguments[t]);return e}function f(e,t,n,r){var o=["opacity",t,~~(e*100),n,r].join("-"),u=.01+n/r*100,f=Math.max(1-(1-e)/t*(100-u),e),l=s.substring(0,s.indexOf("Animation")).toLowerCase(),c=l&&"-"+l+"-"||"";return i[o]||(a.insertRule("@"+c+"keyframes "+o+"{"+"0%{opacity:"+f+"}"+u+"%{opacity:"+e+"}"+(u+.01)+"%{opacity:1}"+(u+t)%100+"%{opacity:"+e+"}"+"100%{opacity:"+f+"}"+"}",a.cssRules.length),i[o]=1),o}function l(e,t){var i=e.style,s,o;if(i[t]!==n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(o=0;o<r.length;o++){s=r[o]+t;if(i[s]!==n)return s}}function c(e,t){for(var n in t)e.style[l(e,n)||n]=t[n];return e}function h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]===n&&(e[i]=r[i])}return e}function p(e){var t={x:e.offsetLeft,y:e.offsetTop};while(e=e.offsetParent)t.x+=e.offsetLeft,t.y+=e.offsetTop;return t}function v(e){if(!this.spin)return new v(e);this.opts=h(e||{},v.defaults,d)}var r=["webkit","Moz","ms","O"],i={},s,a=function(){var e=o("style",{type:"text/css"});return u(t.getElementsByTagName("head")[0],e),e.sheet||e.styleSheet}(),d={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};v.defaults={},h(v.prototype,{spin:function(e){this.stop();var t=this,n=t.opts,r=t.el=c(o(0,{className:n.className}),{position:n.position,width:0,zIndex:n.zIndex}),i=n.radius+n.length+n.width,u,a;e&&(e.insertBefore(r,e.firstChild||null),a=p(e),u=p(r),c(r,{left:(n.left=="auto"?a.x-u.x+(e.offsetWidth>>1):parseInt(n.left,10)+i)+"px",top:(n.top=="auto"?a.y-u.y+(e.offsetHeight>>1):parseInt(n.top,10)+i)+"px"})),r.setAttribute("aria-role","progressbar"),t.lines(r,t.opts);if(!s){var f=0,l=n.fps,h=l/n.speed,d=(1-n.opacity)/(h*n.trail/100),v=h/n.lines;(function m(){f++;for(var e=n.lines;e;e--){var i=Math.max(1-(f+e*v)%h*d,n.opacity);t.opacity(r,n.lines-e,i,n)}t.timeout=t.el&&setTimeout(m,~~(1e3/l))})()}return t},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=n),this},lines:function(e,t){function i(e,r){return c(o(),{position:"absolute",width:t.length+t.width+"px",height:t.width+"px",background:e,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/t.lines*n+t.rotate)+"deg) translate("+t.radius+"px"+",0)",borderRadius:(t.corners*t.width>>1)+"px"})}var n=0,r;for(;n<t.lines;n++)r=c(o(),{position:"absolute",top:1+~(t.width/2)+"px",transform:t.hwaccel?"translate3d(0,0,0)":"",opacity:t.opacity,animation:s&&f(t.opacity,t.trail,n,t.lines)+" "+1/t.speed+"s linear infinite"}),t.shadow&&u(r,c(i("#000","0 0 4px #000"),{top:"2px"})),u(e,u(r,i(t.color,"0 0 1px rgba(0,0,0,.1)")));return e},opacity:function(e,t,n){t<e.childNodes.length&&(e.childNodes[t].style.opacity=n)}}),function(){function e(e,t){return o("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}var t=c(o("group"),{behavior:"url(#default#VML)"});!l(t,"transform")&&t.adj?(a.addRule(".spin-vml","behavior:url(#default#VML)"),v.prototype.lines=function(t,n){function s(){return c(e("group",{coordsize:i+" "+i,coordorigin:-r+" "+ -r}),{width:i,height:i})}function l(t,i,o){u(a,u(c(s(),{rotation:360/n.lines*t+"deg",left:~~i}),u(c(e("roundrect",{arcsize:n.corners}),{width:r,height:n.width,left:n.radius,top:-n.width>>1,filter:o}),e("fill",{color:n.color,opacity:n.opacity}),e("stroke",{opacity:0}))))}var r=n.length+n.width,i=2*r,o=-(n.width+n.length)*2+"px",a=c(s(),{position:"absolute",top:o,left:o}),f;if(n.shadow)for(f=1;f<=n.lines;f++)l(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=n.lines;f++)l(f);return u(t,a)},v.prototype.opacity=function(e,t,n,r){var i=e.firstChild;r=r.shadow&&r.lines||0,i&&t+r<i.childNodes.length&&(i=i.childNodes[t+r],i=i&&i.firstChild,i=i&&i.firstChild,i&&(i.opacity=n))}):s=l(t,"animation")}(),typeof define=="function"&&define.amd?define(function(){return v}):e.Spinner=v}(window,document),function(e){"use strict";e(function(){function r(e,t,n,r){return i(e).then(t,n,r)}function i(e){var t,n;return e instanceof o?t=e:l(e)?(n=f(),e.then(function(e){n.resolve(e)},function(e){n.reject(e)},function(e){n.progress(e)}),t=n.promise):t=u(e),t}function s(e){return r(e,a)}function o(e){this.then=e}function u(e){var t=new o(function(t){try{return i(typeof t=="function"?t(e):e)}catch(n){return a(n)}});return t}function a(e){var t=new o(function(t,n){try{return i(typeof n=="function"?n(e):a(e))}catch(r){return a(r)}});return t}function f(){function h(e,t,n){return u(e,t,n)}function p(e){return c(i(e))}function d(e){return c(a(e))}function v(e){return l(e)}var e,t,r,s,u,l,c;return t=new o(h),e={then:h,resolve:p,reject:d,progress:v,promise:t,resolver:{resolve:p,reject:d,progress:v}},r=[],s=[],u=function(e,t,n){var i,o;return i=f(),o=typeof n=="function"?function(e){try{i.progress(n(e))}catch(t){i.progress(t)}}:function(e){i.progress(e)},r.push(function(n){n.then(e,t).then(i.resolve,i.reject,o)}),s.push(o),i.promise},l=function(e){return y(s,e),e},c=function(e){return u=e.then,c=i,l=E,y(r,e),s=r=n,e},e}function l(e){return e&&typeof e.then=="function"}function c(e,t,n,i,s){return b(2,arguments),r(e,function(e){function g(e){p(e)}function y(e){h(e)}var o,u,a,l,c,h,p,d,v,m;v=e.length>>>0,o=Math.max(0,Math.min(t,v)),a=[],u=v-o+1,l=[],c=f();if(!o)c.resolve(a);else{d=c.progress,p=function(e){l.push(e),--u||(h=p=w,c.reject(l))},h=function(e){a.push(e),--o||(h=p=w,c.resolve(a))};for(m=0;m<v;++m)m in e&&r(e[m],y,g,d)}return c.promise.then(n,i,s)})}function h(e,t,n,r){function i(e){return t?t(e[0]):e[0]}return c(e,1,i,n,r)}function p(e,t,n,r){return b(1,arguments),v(e,E).then(t,n,r)}function d(){return v(arguments,E)}function v(e,t){return r(e,function(e){var n,i,s,o,u,a;s=i=e.length>>>0,n=[],a=f();if(!s)a.resolve(n);else{o=function(i,o){r(i,t).then(function(e){n[o]=e,--s||a.resolve(n)},a.reject)};for(u=0;u<i;u++)u in e?o(e[u],u):--s}return a.promise})}function m(n,i){var s=t.call(arguments,1);return r(n,function(t){var n;return n=t.length,s[0]=function(e,t,s){return r(e,function(e){return r(t,function(t){return i(e,t,s,n)})})},e.apply(t,s)})}function g(e,t,n){var i=arguments.length>2;return r(e,function(e){return e=i?n:e,t.resolve(e),e},function(e){return t.reject(e),a(e)},t.progress)}function y(e,t){var n,r=0;while(n=e[r++])n(t)}function b(e,t){var n,r=t.length;while(r>e){n=t[--r];if(n!=null&&typeof n!="function")throw new Error("arg "+r+" must be a function")}}function w(){}function E(e){return e}var e,t,n;return r.defer=f,r.resolve=i,r.reject=s,r.join=d,r.all=p,r.map=v,r.reduce=m,r.any=h,r.some=c,r.chain=g,r.isPromise=l,o.prototype={always:function(e,t){return this.then(e,e,t)},otherwise:function(e){return this.then(n,e)},yield:function(e){return this.then(function(){return e})},spread:function(e){return this.then(function(t){return p(t,function(t){return e.apply(n,t)})})}},t=[].slice,e=[].reduce||function(e){var t,n,r,i,s;s=0,t=Object(this),i=t.length>>>0,n=arguments;if(n.length<=1)for(;;){if(s in t){r=t[s++];break}if(++s>=i)throw new TypeError}else r=n[1];for(;s<i;++s)s in t&&(r=e(r,t[s],s,t));return r},r})}(typeof define=="function"&&define.amd?define:function(e){typeof exports=="object"?module.exports=e():this.when=e()}),(typeof define=="function"&&define.amd&&function(e){define(e)}||typeof module=="object"&&function(e){module.exports=e()}||function(e){this.bane=e()})(function(){"use strict";function t(e,t,n){var r,i=n.length;if(i>0){for(r=0;r<i;++r)n[r](e,t);return}setTimeout(function(){throw t.message=e+" listener threw error: "+t.message,t},0)}function n(e){if(typeof e!="function")throw new TypeError("Listener is not function");return e}function r(e){return e.supervisors||(e.supervisors=[]),e.supervisors}function i(e,t){return e.listeners||(e.listeners={}),t&&!e.listeners[t]&&(e.listeners[t]=[]),t?e.listeners[t]:e.listeners}function s(e){return e.errbacks||(e.errbacks=[]),e.errbacks}function o(o){function u(e,n,r){try{n.listener.apply(n.thisp||o,r)}catch(i){t(e,i,s(o))}}return o=o||{},o.on=function(e,t,s){if(typeof e=="function")return r(this).push({listener:e,thisp:t});i(this,e).push({listener:n(t),thisp:s})},o.off=function(e,t){var n,o,u,a;if(!e){n=r(this),n.splice(0,n.length),o=i(this);for(u in o)o.hasOwnProperty(u)&&(n=i(this,u),n.splice(0,n.length));n=s(this),n.splice(0,n.length);return}typeof e=="function"?(n=r(this),t=e):n=i(this,e);if(!t){n.splice(0,n.length);return}for(u=0,a=n.length;u<a;++u)if(n[u].listener===t){n.splice(u,1);return}},o.once=function(e,t,n){var r=function(){o.off(e,r),t.apply(this,arguments)};o.on(e,r,n)},o.bind=function(e,t){var n,r,i;if(!t)for(n in e)typeof e[n]=="function"&&this.on(n,e[n],e);else for(r=0,i=t.length;r<i;++r){if(typeof e[t[r]]!="function")throw new Error("No such method "+t[r]);this.on(t[r],e[t[r]],e)}return e},o.emit=function(t){var n=r(this),s=e.call(arguments),o,a;for(o=0,a=n.length;o<a;++o)u(t,n[o],s);n=i(this,t).slice(),s=e.call(arguments,1);for(o=0,a=n.length;o<a;++o)u(t,n[o],s)},o.errback=function(e){this.errbacks||(this.errbacks=[]),this.errbacks.push(n(e))},o}var e=Array.prototype.slice;return{createEventEmitter:o}}),function(e,t,n){typeof module!="undefined"&&module.exports?module.exports=n():typeof define=="function"&&define.amd?define(n):t[e]=n()}("reqwest",this,function(){function handleReadyState(e,t,n){return function(){e&&e[readyState]==4&&(e.onreadystatechange=noop,twoHundo.test(e.status)?t(e):n(e))}}function setHeaders(e,t){var n=t.headers||{},r;n.Accept=n.Accept||defaultHeaders.accept[t.type]||defaultHeaders.accept["*"],!t.crossOrigin&&!n[requestedWith]&&(n[requestedWith]=defaultHeaders.requestedWith),n[contentType]||(n[contentType]=t.contentType||defaultHeaders.contentType);for(r in n)n.hasOwnProperty(r)&&e.setRequestHeader(r,n[r])}function setCredentials(e,t){typeof t.withCredentials!="undefined"&&typeof e.withCredentials!="undefined"&&(e.withCredentials=!!t.withCredentials)}function generalCallback(e){lastValue=e}function urlappend(e,t){return e+(/\?/.test(e)?"&":"?")+t}function handleJsonp(e,t,n,r){var i=uniqid++,s=e.jsonpCallback||"callback",o=e.jsonpCallbackName||reqwest.getcallbackPrefix(i),u=new RegExp("((^|\\?|&)"+s+")=([^&]+)"),a=r.match(u),f=doc.createElement("script"),l=0,c=navigator.userAgent.indexOf("MSIE 10.0")!==-1;a?a[3]==="?"?r=r.replace(u,"$1="+o):o=a[3]:r=urlappend(r,s+"="+o),win[o]=generalCallback,f.type="text/javascript",f.src=r,f.async=!0,typeof f.onreadystatechange!="undefined"&&!c&&(f.event="onclick",f.htmlFor=f.id="_reqwest_"+i),f.onload=f.onreadystatechange=function(){if(f[readyState]&&f[readyState]!=="complete"&&f[readyState]!=="loaded"||l)return!1;f.onload=f.onreadystatechange=null,f.onclick&&f.onclick(),e.success&&e.success(lastValue),lastValue=undefined,head.removeChild(f),l=1},head.appendChild(f)}function getRequest(e,t,n){var r=(e.method||"GET").toUpperCase(),i=typeof e=="string"?e:e.url,s=e.processData!==!1&&e.data&&typeof e.data!="string"?reqwest.toQueryString(e.data):e.data||null,o;return(e.type=="jsonp"||r=="GET")&&s&&(i=urlappend(i,s),s=null),e.type=="jsonp"?handleJsonp(e,t,n,i):(o=xhr(),o.open(r,i,!0),setHeaders(o,e),setCredentials(o,e),o.onreadystatechange=handleReadyState(o,t,n),e.before&&e.before(o),o.send(s),o)}function Reqwest(e,t){this.o=e,this.fn=t,init.apply(this,arguments)}function setType(e){var t=e.match(/\.(json|jsonp|html|xml)(\?|$)/);return t?t[1]:"js"}function init(o,fn){function complete(e){o.timeout&&clearTimeout(self.timeout),self.timeout=null;while(self._completeHandlers.length>0)self._completeHandlers.shift()(e)}function success(resp){var r=resp.responseText;if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML}self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp);while(self._fulfillmentHandlers.length>0)self._fulfillmentHandlers.shift()(resp);complete(resp)}function error(e,t,n){self._responseArgs.resp=e,self._responseArgs.msg=t,self._responseArgs.t=n,self._erred=!0;while(self._errorHandlers.length>0)self._errorHandlers.shift()(e,t,n);complete(e)}this.url=typeof o=="string"?o:o.url,this.timeout=null,this._fulfilled=!1,this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this,type=o.type||setType(this.url);fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),o.success&&this._fulfillmentHandlers.push(function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest(o,success,error)}function reqwest(e,t){return new Reqwest(e,t)}function normalize(e){return e?e.replace(/\r?\n/g,"\r\n"):""}function serial(e,t){var n=e.name,r=e.tagName.toLowerCase(),i=function(e){e&&!e.disabled&&t(n,normalize(e.attributes.value&&e.attributes.value.specified?e.value:e.text))};if(e.disabled||!n)return;switch(r){case"input":if(!/reset|button|image|file/i.test(e.type)){var s=/checkbox/i.test(e.type),o=/radio/i.test(e.type),u=e.value;(!s&&!o||e.checked)&&t(n,normalize(s&&u===""?"on":u))}break;case"textarea":t(n,normalize(e.value));break;case"select":if(e.type.toLowerCase()==="select-one")i(e.selectedIndex>=0?e.options[e.selectedIndex]:null);else for(var a=0;e.length&&a<e.length;a++)e.options[a].selected&&i(e.options[a])}}function eachFormElement(){var e=this,t,n,r,i=function(t,n){for(var i=0;i<n.length;i++){var s=t[byTag](n[i]);for(r=0;r<s.length;r++)serial(s[r],e)}};for(n=0;n<arguments.length;n++)t=arguments[n],/input|select|textarea/i.test(t.tagName)&&serial(t,e),i(t,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var e={};return eachFormElement.apply(function(t,n){t in e?(e[t]&&!isArray(e[t])&&(e[t]=[e[t]]),e[t].push(n)):e[t]=n},arguments),e}var win=window,doc=document,twoHundo=/^20\d$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",head=doc[byTag]("head")[0],uniqid=0,callbackPrefix="reqwest_"+ +(new Date),lastValue,xmlHttpRequest="XMLHttpRequest",noop=function(){},isArray=typeof Array.isArray=="function"?Array.isArray:function(e){return e instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",requestedWith:xmlHttpRequest,accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"}},xhr=win[xmlHttpRequest]?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")};return Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)},then:function(e,t){return this._fulfilled?e(this._responseArgs.resp):this._erred?t(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):(this._fulfillmentHandlers.push(e),this._errorHandlers.push(t)),this},always:function(e){return this._fulfilled||this._erred?e(this._responseArgs.resp):this._completeHandlers.push(e),this},fail:function(e){return this._erred?e(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):this._errorHandlers.push(e),this}},reqwest.serializeArray=function(){var e=[];return eachFormElement.apply(function(t,n){e.push({name:t,value:n})},arguments),e},reqwest.serialize=function(){if(arguments.length===0)return"";var e,t,n=Array.prototype.slice.call(arguments,0);return e=n.pop(),e&&e.nodeType&&n.push(e)&&(e=null),e&&(e=e.type),e=="map"?t=serializeHash:e=="array"?t=reqwest.serializeArray:t=serializeQueryString,t.apply(null,n)},reqwest.toQueryString=function(e){var t="",n,r=encodeURIComponent,i=function(e,n){t+=r(e)+"="+r(n)+"&"};if(isArray(e))for(n=0;e&&n<e.length;n++)i(e[n].name,e[n].value);else for(var s in e){if(!Object.hasOwnProperty.call(e,s))continue;var o=e[s];if(isArray(o))for(n=0;n<o.length;n++)i(s,o[n]);else i(s,e[s])}return t.replace(/&$/,"").replace(/%20/g,"+")},reqwest.getcallbackPrefix=function(e){return callbackPrefix},reqwest.compat=function(e,t){return e&&(e.type&&(e.method=e.type)&&delete e.type,e.dataType&&(e.type=e.dataType),e.jsonpCallback&&(e.jsonpCallbackName=e.jsonpCallback)&&delete e.jsonpCallback,e.jsonp&&(e.jsonpCallback=e.jsonp)),new Reqwest(e,t)},reqwest}),this.uinit=function(){function t(t,n){return e.reduce(function(e,n){return e&&t[n]&&t[n].loaded},!0,n.depends||[])}function n(t,n){return e.map(function(e){return t[e].result},n)}function r(e,t){r.cache[e.name]=t}function i(e,t){var n=r.cache[e.name];if(!n)return!1;for(var i=0,s=t.length;i<s;++i)if(!uinit.areEqual(t[i],n[i]))return!1;return!0}function s(e,t,s,o){s.reloading?e.emit("reloading",s):e.emit("loading",s);var u=n(t,s.depends||[]),a=when.defer();return when.all(u).then(function(t){var n=(o?[o]:[]).concat(t),u=s.serializeArgs.apply(s,n);if(s.reloading&&i(s,u))return e.emit("skip",s),a.resolve();r(s,u);try{var f=s.action.apply(null,n);if(f||s.nullable)s.loaded=!0,s.result=f,e.emit("loaded",s,f)}catch(l){e.emit("error",s,l)}a.resolve()},function(t){e.emit("error",s,t),a.resolve()}),a.promise}function o(t,n){var r=e.partial(s,t,t.features,n);return n.elements?when.all(e.map(r,dome.byClass(n.elements,t.context))):r()}function u(e,n){return!n.lazy&&!n.loaded&&n.action&&t(e,n)}function a(e){return e&&e.lazy&&!e.loaded}function f(t,n){var r=function(e){return t[e]};return e.uniq(e.reduce(function(t,n){return t.concat(e.select(a,e.map(r,n.depends||[])))},[],n))}function l(t,n){return e.doall(function(t){e.doall(function(e){t[e]=n[e]},e.keys(n))},t)}function c(e){return l(e,{lazy:!1,wasLazy:!0})}function h(t){e.doall(function(e){e.action&&(e.loaded=!1,delete e.reloading),e.wasLazy&&(delete e.wasLazy,e.lazy=!0)},t)}function p(t,n){if(!t.listeners||!t.listeners.pending)return;e.doall(e.bind(t,"emit","pending"),e.select(function(e){return!e.ready&&!e.loaded&&!e.reloading},n))}function d(t,n,r){function l(){var i=e.first(s,a);if(!i)return p(t,n),typeof r=="function"?r():null;o(t,i).then(function(){if(!i.loaded){var t=e.indexOf(i,a);a=a.slice(0,t).concat(a.slice(t+1))}l()})}var i=c(f(t.features,n)),s=e.partial(u,t.features),a=e.uniq(i.concat(n));l()}function v(e,t){if(e[t])throw new Error("Cannot add duplicate "+t)}function g(){return e.map(function(e){return m.features[e]||{name:e,type:"Unknown"}},this.depends||[])}function y(t,n){n.hasOwnProperty("nullable")||(n.nullable=!0),n.hasOwnProperty("serializeArgs")||(n.serializeArgs=function(){return e.map(function(e){return e&&e.tagName&&e.appendChild?dome.uuid(e):e},arguments)}),n.dependencies=g,t.features[n.name]=n,t.tryPending()}function b(t,n){var r=[],i,s=e.values(n);do i=r.length,cull.doall(function(t){r=r.concat(e.select(function(n){return e.indexOf(t,n.depends||[])>=0},s))},t),r=e.uniq(r),t=e.map(e.prop("name"),r);while(i!==r.length);return r}function w(e,t,n){typeof e=="function"&&(n=t,t=e,e=t.name);if(!e)throw new Error("Name cannot be blank");var r=n||{};return r.name=e,r.action=t,r}function E(t,n){var r=b([n],t.features);h(r),e.doall(function(e){e.reloading=!0},r),d(t,r)}var e=cull;r.cache={};var m;return m=bane.createEventEmitter({features:{},env:function(e,t){if(t===null||t===undefined)return;this.nullableEnv(e,t)},nullableEnv:function(e,t){var n=!!this.env[e];n||v(this.features,e);var r=t!==this.env[e];this.env[e]=t,y(this,{name:e,result:t,loaded:!0}),n&&this.loaded&&r&&E(this,e)},data:function(e,t,n){var r=w(e,t,n);return v(this.features,r.name),typeof r.lazy!="boolean"&&(r.lazy=!0),typeof r.nullable!="boolean"&&(r.nullable=!1),y(this,r)},feature:function(e,t,n){var r=w(e,t,n);v(this.features,r.name);if(typeof r.action!="function")throw new Error("Cannot add feature "+r.name+", action is not a function ("+typeof r.action+")");y(this,r)},scanEnvAttrs:function(e,t){var n=e.getElementsByTagName("*"),r=[e].concat([].slice.call(n,0)),i,s,o,u;for(var a=0,f=r.length;a<f;++a){s=r[a].attributes;for(o=0,u=s.length;o<u;++o)i=s.item(o),i.nodeName.indexOf(t)===0&&this.env(i.nodeName.slice(t.length),i.nodeValue)}},load:function(t){this.loaded&&h(e.values(this.features)),this.loaded=!0,this.context=t,this.tryPending()},tryPending:function(){if(!this.loaded)return;this.emit("init"),d(this,e.values(this.features))}}),m},this.uinit.areEqual=function(e,t){return e===t};var Showdown={extensions:{}},forEach=Showdown.forEach=function(e,t){if(typeof e.forEach=="function")e.forEach(t);else{var n,r=e.length;for(n=0;n<r;n++)t(e[n],n,e)}},stdExtName=function(e){return e.replace(/[_-]||\s/g,"").toLowerCase()};Showdown.converter=function(e){var t,n,r,i=0,s=[],o=[];if(typeof module!="undefind"&&typeof exports!="undefined"&&typeof require!="undefind"){var u=require("fs");if(u){var a=u.readdirSync((__dirname||".")+"/extensions").filter(function(e){return~e.indexOf(".js")}).map(function(e){return e.replace(/\.js$/,"")});Showdown.forEach(a,function(e){var t=stdExtName(e);Showdown.extensions[t]=require("./extensions/"+e)})}}this.makeHtml=function(e){return t={},n={},r=[],e=e.replace(/~/g,"~T"),e=e.replace(/\$/g,"~D"),e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n"),e="\n\n"+e+"\n\n",e=F(e),e=e.replace(/^[ \t]+$/mg,""),Showdown.forEach(s,function(t){e=l(t,e)}),e=N(e),e=h(e),e=c(e),e=d(e),e=B(e),e=e.replace(/~D/g,"$$"),e=e.replace(/~T/g,"~"),Showdown.forEach(o,function(t){e=l(t,e)}),e};if(e&&e.extensions){var f=this;Showdown.forEach(e.extensions,function(e){typeof e=="string"&&(e=Showdown.extensions[stdExtName(e)]);if(typeof e!="function")throw"Extension '"+e+"' could not be loaded. It was either not found or is not a valid extension.";Showdown.forEach(e(f),function(e){e.type?e.type==="language"||e.type==="lang"?s.push(e):(e.type==="output"||e.type==="html")&&o.push(e):o.push(e)})})}var l=function(e,t){if(e.regex){var n=new RegExp(e.regex,"g");return t.replace(n,e.replace)}if(e.filter)return e.filter(t)},c=function(e){return e+="~0",e=e.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|(?=~0))/gm,function(e,r,i,s,o){return r=r.toLowerCase(),t[r]=_(i),s?s+o:(o&&(n[r]=o.replace(/"/g,"&quot;")),"")}),e=e.replace(/~0/,""),e},h=function(e){e=e.replace(/\n/g,"\n\n");var t="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del|style|section|header|footer|nav|article|aside",n="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style|section|header|footer|nav|article|aside";return e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,p),e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style|section|header|footer|nav|article|aside)\b[^\r]*?<\/\2>[ \t]*(?=\n+)\n)/gm,p),e=e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,p),e=e.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,p),e=e.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,p),e=e.replace(/\n\n/g,"\n"),e},p=function(e,t){var n=t;return n=n.replace(/\n\n/g,"\n"),n=n.replace(/^\n/,""),n=n.replace(/\n+$/g,""),n="\n\n~K"+(r.push(n)-1)+"K\n\n",n},d=function(e){e=E(e);var t=C("<hr />");return e=e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,t),e=e.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,t),e=e.replace(/^[ ]{0,2}([ ]?\_[ ]?){3,}[ \t]*$/gm,t),e=x(e),e=T(e),e=O(e),e=h(e),e=M(e),e},v=function(e){return e=k(e),e=m(e),e=D(e),e=b(e),e=g(e),e=P(e),e=_(e),e=A(e),e=e.replace(/ +\n/g," <br />\n"),e},m=function(e){var t=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi;return e=e.replace(t,function(e){var t=e.replace(/(.)<\/?code>(?=.)/g,"$1`");return t=I(t,"\\`*_"),t}),e},g=function(e){return e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,y),e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?(?:\(.*?\).*?)?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,y),e=e.replace(/(\[([^\[\]]+)\])()()()()()/g,y),e
2
- },y=function(e,r,i,s,o,u,a,f){f==undefined&&(f="");var l=r,c=i,h=s.toLowerCase(),p=o,d=f;if(p==""){h==""&&(h=c.toLowerCase().replace(/ ?\n/g," ")),p="#"+h;if(t[h]!=undefined)p=t[h],n[h]!=undefined&&(d=n[h]);else{if(!(l.search(/\(\s*\)$/m)>-1))return l;p=""}}p=I(p,"*_");var v='<a href="'+p+'"';return d!=""&&(d=d.replace(/"/g,"&quot;"),d=I(d,"*_"),v+=' title="'+d+'"'),v+=">"+c+"</a>",v},b=function(e){return e=e.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,w),e=e.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,w),e},w=function(e,r,i,s,o,u,a,f){var l=r,c=i,h=s.toLowerCase(),p=o,d=f;d||(d="");if(p==""){h==""&&(h=c.toLowerCase().replace(/ ?\n/g," ")),p="#"+h;if(t[h]==undefined)return l;p=t[h],n[h]!=undefined&&(d=n[h])}c=c.replace(/"/g,"&quot;"),p=I(p,"*_");var v='<img src="'+p+'" alt="'+c+'"';return d=d.replace(/"/g,"&quot;"),d=I(d,"*_"),v+=' title="'+d+'"',v+=" />",v},E=function(e){function t(e){return e.replace(/[^\w]/g,"").toLowerCase()}return e=e.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(e,n){return C('<h1 id="'+t(n)+'">'+v(n)+"</h1>")}),e=e.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(e,n){return C('<h2 id="'+t(n)+'">'+v(n)+"</h2>")}),e=e.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(e,n,r){var i=n.length;return C("<h"+i+' id="'+t(r)+'">'+v(r)+"</h"+i+">")}),e},S,x=function(e){e+="~0";var t=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;return i?e=e.replace(t,function(e,t,n){var r=t,i=n.search(/[*+-]/g)>-1?"ul":"ol";r=r.replace(/\n{2,}/g,"\n\n\n");var s=S(r);return s=s.replace(/\s+$/,""),s="<"+i+">"+s+"</"+i+">\n",s}):(t=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g,e=e.replace(t,function(e,t,n,r){var i=t,s=n,o=r.search(/[*+-]/g)>-1?"ul":"ol",s=s.replace(/\n{2,}/g,"\n\n\n"),u=S(s);return u=i+"<"+o+">\n"+u+"</"+o+">\n",u})),e=e.replace(/~0/,""),e};S=function(e){return i++,e=e.replace(/\n{2,}$/,"\n"),e+="~0",e=e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(e,t,n,r,i){var s=i,o=t,u=n;return o||s.search(/\n{2,}/)>-1?s=d(j(s)):(s=x(j(s)),s=s.replace(/\n$/,""),s=v(s)),"<li>"+s+"</li>\n"}),e=e.replace(/~0/g,""),i--,e};var T=function(e){return e+="~0",e=e.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(e,t,n){var r=t,i=n;return r=L(j(r)),r=F(r),r=r.replace(/^\n+/g,""),r=r.replace(/\n+$/g,""),r="<pre><code>"+r+"\n</code></pre>",C(r)+i}),e=e.replace(/~0/,""),e},N=function(e){return e+="~0",e=e.replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g,function(e,t,n){var r=t,i=n;return i=L(i),i=F(i),i=i.replace(/^\n+/g,""),i=i.replace(/\n+$/g,""),i="<pre><code"+(r?' class="'+r+'"':"")+">"+i+"\n</code></pre>",C(i)}),e=e.replace(/~0/,""),e},C=function(e){return e=e.replace(/(^\n+|\n+$)/g,""),"\n\n~K"+(r.push(e)-1)+"K\n\n"},k=function(e){return e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,t,n,r,i){var s=r;return s=s.replace(/^([ \t]*)/g,""),s=s.replace(/[ \t]*$/g,""),s=L(s),t+"<code>"+s+"</code>"}),e},L=function(e){return e=e.replace(/&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=I(e,"*_{}[]\\",!1),e},A=function(e){return e=e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"<strong>$2</strong>"),e=e.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>"),e},O=function(e){return e=e.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(e,t){var n=t;return n=n.replace(/^[ \t]*>[ \t]?/gm,"~0"),n=n.replace(/~0/g,""),n=n.replace(/^[ \t]+$/gm,""),n=d(n),n=n.replace(/(^|\n)/g,"$1 "),n=n.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,t){var n=t;return n=n.replace(/^ /mg,"~0"),n=n.replace(/~0/g,""),n}),C("<blockquote>\n"+n+"\n</blockquote>")}),e},M=function(e){e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,"");var t=e.split(/\n{2,}/g),n=[],i=t.length;for(var s=0;s<i;s++){var o=t[s];o.search(/~K(\d+)K/g)>=0?n.push(o):o.search(/\S/)>=0&&(o=v(o),o=o.replace(/^([ \t]*)/g,"<p>"),o+="</p>",n.push(o))}i=n.length;for(var s=0;s<i;s++)while(n[s].search(/~K(\d+)K/)>=0){var u=r[RegExp.$1];u=u.replace(/\$/g,"$$$$"),n[s]=n[s].replace(/~K\d+K/,u)}return n.join("\n\n")},_=function(e){return e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),e=e.replace(/<(?![a-z\/?\$!])/gi,"&lt;"),e},D=function(e){return e=e.replace(/\\(\\)/g,q),e=e.replace(/\\([`*_{}\[\]()>#+-.!])/g,q),e},P=function(e){return e=e.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'<a href="$1">$1</a>'),e=e.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(e,t){return H(B(t))}),e},H=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e="mailto:"+e,e=e.replace(/./g,function(e){if(e=="@")e=t[Math.floor(Math.random()*2)](e);else if(e!=":"){var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}),e='<a href="'+e+'">'+e+"</a>",e=e.replace(/">.+:/g,'">'),e},B=function(e){return e=e.replace(/~E(\d+)E/g,function(e,t){var n=parseInt(t);return String.fromCharCode(n)}),e},j=function(e){return e=e.replace(/^(\t|[ ]{1,4})/gm,"~0"),e=e.replace(/~0/g,""),e},F=function(e){return e=e.replace(/\t(?=\t)/g," "),e=e.replace(/\t/g,"~A~B"),e=e.replace(/~B(.+?)~A/g,function(e,t,n){var r=t,i=4-r.length%4;for(var s=0;s<i;s++)r+=" ";return r}),e=e.replace(/~A/g," "),e=e.replace(/~B/g,""),e},I=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=new RegExp(r,"g");return e=e.replace(i,q),e},q=function(e,t){var n=t.charCodeAt(0);return"~E"+n+"E"}},typeof module!="undefined"&&(module.exports=Showdown),typeof define=="function"&&define.amd&&define("showdown",function(){return Showdown}),function(e){typeof define=="function"&&define.amd?define([],e):this.timeago=e()}(function(){function t(e,t,n,r){var i=typeof t=="function"?t(r,n):t,s=e.numbers&&e.numbers[r]||r;return i.replace(/%d/i,s)}function n(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function i(e){this.locale=e;for(var t in r)typeof this.locale[t]=="undefined"&&(this.locale[t]=r[t])}var e,r={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]};return i.prototype=e={locale:r,locales:{en:r},configure:function(t){var n=new i(t||e.locales.en);return n},relative:function(e){return this.inWords((new Date).getTime()-e.getTime())},inWords:function(e){var r=this.locale,i=r.prefixAgo,s=r.suffixAgo;e<0&&(i=r.prefixFromNow,s=r.suffixFromNow);var o=Math.abs(e)/1e3,u=o/60,a=u/60,f=a/24,l=f/365,c=o<45&&t(r,r.seconds,e,Math.round(o))||o<90&&t(r,r.minute,e,1)||u<45&&t(r,r.minutes,e,Math.round(u))||u<90&&t(r,r.hour,e,1)||a<24&&t(r,r.hours,e,Math.round(a))||a<42&&t(r,r.day,e,1)||f<30&&t(r,r.days,e,Math.round(f))||f<45&&t(r,r.month,e,1)||f<365&&t(r,r.months,e,Math.round(f/30))||l<1.5&&t(r,r.year,e,1)||t(r,r.years,e,Math.round(l));return c=[i,c,s].join(typeof r.wordSeparator=="string"?r.wordSeparator:""),n(c)},parse:function(e){var t=n(e);return t=t.replace(/\.\d+/,""),t=t.replace(/-/,"/").replace(/-/,"/"),t=t.replace(/T/," ").replace(/Z/," UTC"),t=t.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(t)}},e});// Set up a global, shared app instance
3
- this.gts=this.gts||{},this.gts.app=this.uinit(),function(){var e=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};this.uinit.areEqual=function t(n,r){if(n===r)return!0;if(e(n)||!e(r))return n.length!==r.length;var i,s;for(i=0,s=n.length;i<s;++i)if(!t(n[i],r[i]))return!1;return!0}}(),this.gts=this.gts||{},this.gts.cache=function(e){function n(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;++n)if(e[n]!==t[n])return!1;return!0}var t=[];return function(){var r=[].slice.call(arguments),i,s,o,u,a;for(i=0,s=t.length;i<s;++i)if(n(t[i].args,r))return t[i].result;return a=e.apply(self,r),t.push({args:r,result:a}),a}},this.gts=this.gts||{},this.gts.jsonRequest=function(e){return reqwest({url:e,type:"json"})},this.gts.dropdown=function(e){return function(n){function s(){r&&(r.parentNode.removeChild(r),r=null),e.cn.rm("open",n),i=!1}function o(t){if(i)return s();document.documentElement.hasOwnProperty("ontouchstart")&&(r=e.el("div",{className:"dropdown-backdrop",events:{click:s}}),t.insertBefore(r,t)),e.cn.add("open",t),i=!0}var r,i=!1;e.on(n,"click",function(e){var t=e.target.tagName==="A"?e.target:e.target.parentNode;if(!dome.cn.has("dropdown-toggle",t))return;o(this),e.preventDefault(),e.stopPropagation()}),e.on(document.body,"click",s),e.on(document.body,"keydown",function(e){if(e.keyCode!==27)return;s(),e.preventDefault(),e.stopPropagation()})}}(dome);var gts=this.gts||{};gts.googleAnalytics=function(e,t){window._gaq=window._gaq||[],window._gaq.push(["_setAccount",e]),t&&window._gaq.push(["_setDomainName",t]),window._gaq.push(["_trackPageview"]);var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=("https:"===document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(n)},this.gts=this.gts||{},this.gts.abbrev=function(e,t,n){return e.length<=t?e:(n=n||"",cull.reduce(function(e,r){return e.join(" ").length+r.length+n.length<=t&&e.push(r),e},[],e.split(" ")).join(" ")+n)},this.gts=this.gts||{},this.gts.url=function(){function e(e){var t=e.split("/");return t.shift(),t.shift(),t.shift(),"/"+t.join("/")}function t(t,n){return cull.reduce(function(e,t){return e.replace(new RegExp(n[t],"g"),"#{"+t+"}")},e(t),cull.keys(n))}function n(e,t){return cull.reduce(function(e,n){return e.replace(new RegExp("#{"+n+"}","g"),t[n])},e,cull.keys(t))}function r(e){var t=/(blame|blob|tree|history|raw|source|readme|commits)\//,n=e.split(t)[2];return n&&n.split(":")[0]||null}return{templatize:t,render:n,currentRef:r}}(),this.gts=this.gts||{},this.gts.refSelector=function(e){function t(e,t){return(e||"#{ref}").replace(/#\{ref\}/g,t)}function n(e,t,n){return cull.select(function(e){return e[0]===t||e[1]===t},n[e]||[])[0]}function r(t,r){var i=n("heads",r,t),s="branch";return i||(i=n("tags",r,t),s="tag"),i||(s="ref"),e.a({href:"#",className:"dropdown-toggle",innerHTML:'<span class="caret"></span> <em>'+s+":</em> "+(i&&i[0]||r)})}function i(n){var r=e.input({type:"text",className:"gts-ref-input"}),i=e.form({className:"gts-ref-input",events:{submit:function(e){e.preventDefault(),window.location=t(n,r.value)}}},[r]);return e.li({className:"gts-dropdown-input",events:{click:function(e){e.stopPropagation()}}},[e.strong(["Enter ref: ",i])])}function s(n,r,i){var s=[e.li({className:"dropdown-label"},[e.strong(n)])];return cull.reduce(function(n,r){var s=t(i,r[1]);return n.push(e.li(e.a({href:s},r[0]))),n},s,r.sort())}function o(t,n){return e.ul({className:"dropdown-menu"},[i(n)].concat(s("Branches",t.heads||[],n)).concat(s("Tags",t.tags||[],n)))}function u(t,n,i){return e.div({className:"dropdown gts-branch-selector pull-right"},[r(t,n),o(t,i)])}function a(e,t,n,r){var i=u(t,n,r);e.parentNode.insertBefore(i,e),e.parentNode.removeChild(e),this.gts.dropdown(i)}return a.build=u,a.getCurrentRef=n,a}(dome.el),this.gts=this.gts||{},this.gts.treeHistory=function(e,t){function n(e,t){return e.getElementsByTagName(t)}function s(t,n){return e.select(function(e){return e.name===t},n)[0]}function o(e){if(!Date.parse)return"";var t=new Date(Date.parse(e));return i[t.getMonth()]+" "+t.getDate()+" "+t.getFullYear()}function u(e){var t,n;for(t=0,n=e.length;t<n;++t)if(dome.cn.has("gts-name",e[t]))return t;return t}function a(e){return(e&&dome.text(e)||"").trim()}var r=function(e,t){var i=n(n(e,"tbody")[0],"td")[2],s=(new Spinner({lines:13,length:1,width:2,radius:6,corners:1,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!0,className:"spinner",zIndex:2e9,top:"auto",left:"auto"})).spin(i);reqwest({url:t,type:"json",success:function(t){s.stop(),r.annotate(e,t)}})},i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dev"];return r.annotateRow=function(e,t){var r=n(t,"td"),i=u(r),f=s(a(r[i]),e);if(!f)return;var l=f.history[0];r[i+1].innerHTML=o(l.date),dome.data.set({"gts-commit-oid":l.oid},r[i+2]),r[i+2].innerHTML="#"+l.oid.slice(0,7);var c=l.summary.trim();r[i+3].innerHTML=gts.abbrev(c,50," [...]")+" ("+l.author.name+")"},r.annotate=function(t,i){e.doall(e.partial(function(e,t){r.annotateRow(e,t)},i),n(n(t,"tbody")[0],"tr"))},r}(cull);var gts=this.gts||{};(function(e,t){gts.commitLinker=function(e,n,r){t.cn.add("gts-commit-linker",e),t.delegate.bycn("gts-commit-oid",e,"click",function(e){r(gts.url.render(n,{oid:dome.data.get("gts-commit-oid",this)}))})}})(cull.partial,dome),this.gts.userRepoViewState=function(e){return reqwest({url:e,type:"json"})};var gts=this.gts||{};(function(e,t){function n(e,n,r){e=" "+e;var i=r?[t.i({className:"icon-"+r}),e]:[e];return t.li(t.a({href:n},i))}gts.profileMenu=function(r,i){if(!i)return;e.setContent([t.a({className:"btn btn-inverse",href:i.dashboardPath},[t.i({className:"icon-user icon-white"}),i.login]),t.a({className:"btn btn-inverse dropdown-toggle",href:"#",data:{toggle:"dropdown"}},t.span({className:"caret"}," ")),t.ul({className:"dropdown-menu"},[n("Edit",i.editPath,"pencil"),n("Messages",i.messagesPath,"envelope"),t.li({className:"divider"}),n("Dashboard",i.dashboardPath),n("Public profile",i.profilePath),n("Log out",i.logoutPath)])],r),gts.dropdown(r)}})(dome,dome.el),this.gts=this.gts||{},this.gts.cloneUrlSelection=function(){function e(e,t){var n=dome.byClass("gts-repo-url",e);cull.doall(cull.partial(dome.cn.rm,"active"),n);if(t){dome.cn.add("active",t);var r=dome.byClass("gts-current-repo-url",e)[0];r.value=t.getAttribute("href").replace("ssh://",""),r.focus()}}function t(t){var n=t.getElementsByTagName("input")[0];n&&dome.on(n,"focus",function(e){this.select()}),dome.delegate.bycn("gts-repo-url",t,"click",function(n){n.preventDefault(),n.stopPropagation(),e(t,n.target)})}return t.select=e,t}(),this.gts=this.gts||{},this.gts.blob=function(){function e(e,t){var n=t[0]-1,r=t[1]-1,i=e.getElementsByTagName("li");cull.doall(function(e,t){var i=n<=t&&t<=r;dome.cn[i?"add":"rm"]("region",e)},e.getElementsByTagName("li"))}function t(e){while(e&&e.tagName!=="LI")e=e.parentNode;var t=e&&e.className.match(/L(\d+)/)[1];if(!t)return;return parseInt(t,10)}function n(t,n,r){var i=n[0];i+=n[1]!==n[0]?"-"+n[1]:"",r("#L"+i),e(t,n)}function r(e,t){return t=typeof t=="number"?t:e,[Math.min(e,t),Math.max(e,t)]}function i(e,i){var s=!1,o,u=[];dome.on(document.body,"keydown",function(e){s=e.which===16}),dome.on(document.body,"keyup",function(e){s=e.which!==16}),dome.on(e,"click",function(u){var a,f=t(u.target);if(!s||!o)o=u.target;o&&s?(a=r(t(o),f),u.preventDefault()):a=[f,f],n(e,a,i)})}function s(e,t){var n=function(){dome.cn.add("focus",this)},r=function(){dome.cn.rm("focus",this)};cull.doall(function(e){dome.on(e,"mouseenter",n),dome.on(e,"mouseleave",r)},e.getElementsByTagName("li")),i(e,t)}function o(e){var t=e.match(/\#l(\d+)(?:-(\d+))?/i);if(!t)return;return r(t[1],t[2]&&Number(t[2]))}return{trackFocus:s,regionFromUrl:o,highlightRegion:e}}(),this.gts.liveMarkdownPreview=function(t){function u(e){r.style.display=e?"block":"none",r.getElementsByTagName("div")[0].innerHTML=e}function a(){o=t.value,o!==s&&(s=o,u(i.makeHtml(o))),setTimeout(a,20)}var n=t.getAttribute("data-gts-preview-target"),r=document.getElementById(n);if(!r||typeof Showdown=="undefined")return;var i=new Showdown.converter,s,o;a()},this.gts=this.gts||{},this.gts.timeago=function(e){function t(t,n){var r=e.parse(n||t.title);if(isNaN(r.getTime()))return t;var i=t.innerHTML.trim()||t.title;return t.innerHTML=e.relative(r),t.title=i,t}var n={};return t.periodic=function(e){return n[e]||(n[e]=[],setInterval(function(){for(var t=0,r=n[e].length,i;t<r;++t)i=n[e][t],gts.timeago(i.element,i.time)},e)),function(r){return n[e].push({element:r,time:r.title}),t(r,r.title)}},t}(timeago),this.gts.collapse=function(){dome.on(document.body,"click",function(e){if(dome.data.get("toggle",e.target)!=="collapse")return;var t=dome.id(dome.data.get("target",e.target).slice(1));if(!t)return;dome.cn[dome.cn.has("in",t)?"rm":"add"]("in",t),e.preventDefault(),e.stopPropagation()})},this.gts=this.gts||{},this.gts.repository=function(e){function t(t,n){return[e.i({className:t})," "+n]}function n(n,r,i){return e.a({href:n},t(r,i))}function r(r,i){return e[i||"li"]({className:"pull-right dropdown"},[e.a({href:"#","data-toggle":"dropdown",className:"dropdown-toggle"},t("icon-cog","Admin")),e.ul({className:"dropdown-menu"},[e.li(n(r.editPath,"icon-pencil","Edit repository")),e.li(n(r.destroyPath,"icon-trash","Delete repository")),e.li({className:"divider"}),e.li(n(r.ownershipPath,"i","Transfer ownership")),e.li(n(r.committershipsPath,"i","Manage collaborators"))])])}function i(e,t){var n=r(t,e.tagName.toLowerCase());dome.replace(e,n),this.gts.dropdown(n),dome.data.get("gts-active",n.parentNode)==="admin"&&dome.cn.add("active",n)}function s(e,t){t.watching?(e.innerHTML='<i class="icon icon-star"></i> Unwatch',e.href=t.unwatchPath):(e.innerHTML='<i class="icon icon-star-empty"></i> Watch',e.href=t.watchPath)}function o(e,t){gts.request({url:t.unwatchPath,method:"delete",type:"js",headers:{Accept:"application/javascript, text/javascript"},success:function(n){t.watching=!1,s(e,t)},error:function(){e.innerHTML="Failed, try watching again"}})}function u(e,t){gts.request({url:t.watchPath,method:"post",type:"text",headers:{Accept:"application/javascript, text/javascript"},success:function(n){t.watching=!0,t.unwatchPath=n.getResponseHeader("location"),s(e,t)},error:function(){e.innerHTML="Failed, try unwatching again"}})}function a(e,t){gts.loading(e),t.watching?o(e,t):u(e,t)}function f(e,t){var n=dome.el("a",{className:"btn"});dome.replace(e,n),s(n,t),dome.on(n,"click",function(e){e.preventDefault(),e.stopPropagation(),a(n,t)})}function l(e,t){if(!t.clonePath)return;dome.replace(e,dome.el("a",{href:t.clonePath,className:"btn"},"Clone"))}function c(e,t){if(!t.requestMergePath)return;dome.replace(e,dome.el("li",{className:"pull-right"},[dome.el("a",{href:t.requestMergePath},[dome.el("i",{className:"icon icon-random"})," Request merge"])]))}return i.build=r,f.watch=u,f.unwatch=o,f.toggleState=a,f.render=s,{admin:i,watching:f,cloning:l,mergeRequest:c}}(dome.el),this.gts=this.gts||{},this.gts.railsLinks=function(e,t){dome.on(document.body,"click",function(n){var r=dome.data.get("method",n.target);if(!r||r==="get")return!0;n.preventDefault(),n.stopPropagation();var i=n.target.href,s=dome.el("form",{method:"post",action:i,style:{display:"none"}},[dome.el("input",{name:"_method",value:r,type:"hidden"}),dome.el("input",{name:e,value:t,type:"hidden"})]);document.body.appendChild(s),s.submit()})},this.gts=this.gts||{},this.gts.cloneNameSuggestion=function(){function e(e,t){var n=/s$/.test(e)?e:e+"s";return n+"-"+t}return function(n){function f(){if(u.value&&cull.indexOf(u.value,a)<0)return;if(i.checked){u.value=a[0];return}if(s.checked){var t=o.options[o.selectedIndex];u.value=e(t.innerHTML,r)}}var r=dome.data.get("gts-repository-to-clone",n),i=dome.id("repository_owner_type_user"),s=dome.id("repository_owner_type_group"),o=dome.id("repository_owner_id_group_select"),u=dome.id("repository_name"),a=cull.reduce(function(t,n){return t.concat(e(n.innerHTML,r))},[e(dome.data.get("gts-cloning-user",i),r)],o.options);dome.on(i,"click",f),dome.on(s,"click",f),dome.on(o,"change",f),f()}}(),this.gts=this.gts||{},this.gts.loading=function(e,t){dome.cn.add("loading",e),e.innerHTML="",t=t||{};var n=(new Spinner({lines:t.hasOwnProperty("lines")?t.lines:8,length:t.hasOwnProperty("length")?t.length:2,width:t.hasOwnProperty("width")?t.width:2,radius:t.hasOwnProperty("radius")?t.radius:3,color:t.color||"#000",speed:t.hasOwnProperty("speed")?t.speed:1,trail:t.hasOwnProperty("trail")?t.trail:100,shadow:t.hasOwnProperty("shadow")?t.shadow:!1})).spin();n.el.style.top=t.topPos||"10px",e.appendChild(n.el);var r=t.hasOwnProperty("text")?t.text:"Loading...";if(r){var i=document.createElement("span");i.innerHTML=r,e.appendChild(i)}},this.gts=this.gts||{},this.gts.oidRefInterpolator=function(e,t,n){var r=this.gts.refSelector.getCurrentRef("heads",e.innerHTML,t);r&&(e.title=r[1],e.innerHTML=r[0])},this.gts=this.gts||{},this.gts.comments=function(e){function t(t){var n=this.gts.timeago(e.span({title:t.createdAt}));return t.createdAt===t.updatedAt?n:e.span([n,"(edited ",this.gts.timeago(e.span({title:t.updatedAt})),")"])}function n(e){console.log("Edit")}function r(t){if(!t.editPath)return"";var r=e.a({href:t.editPath,events:{click:function(e){e.preventDefault(),e.stopPropagation(),n(r.parentNode.parentNode)}}},"Edit comment");return r}function i(n){var i=n.author;return e.div({className:"gts-comment"},[e.p({innerHTML:n.body}),e.p([e.img({src:i.avatarPath}),e.a({href:i.profilePath},i.name),t(n),r(n)])])}function s(e,t){if(e.length===0)return;t.style.display="block";var n=document.createElement("div");t.appendChild(n),dome.setContent(cull.map(i,e),n)}function o(e){return e<10?"0"+e:e}function u(t,n){n.style.display="block";var r=dome.byClass("gts-comment-author-ph",n)[0];if(!r)return r;var i=new Date;return dome.replace(r,e.p([e.img({src:t.avatarPath}),e.a({href:t.profilePath},t.name)," "+o(i.getHours())+":"+o(i.getMinutes())]))}return{renderComments:s,renderComment:i,personalizeForm:u}}(dome.el),gts.app.env("url",window.location.href),gts.app.env("redirect",function(e){window.location=e}),window.hasOwnProperty("onpopstate")&&(window.onpopstate=function(e){gts.app.env("url",window.location.href)}),cull.doall(function(e){e.name==="csrf-param"&&gts.app.env("csrf-param",e.content),e.name==="csrf-token"&&gts.app.env("csrf-token",e.content)},document.getElementsByTagName("meta")),gts.request=function(e){e.headers=e.headers||{},e.headers["X-CSRF-Token"]=gts.app.env["csrf-token"],reqwest(e)},gts.app.data("ref-url-template",function(e,t){return gts.url.templatize(e,{ref:t})},{depends:["url","current-ref"],serializeArgs:function(e,t){return[e.split("#")[0],t]}}),gts.app.data("repository-refs",this.gts.jsonRequest,{depends:["repository-refs-url"]}),gts.app.data("current-ref",gts.url.currentRef,{depends:["url"]}),gts.app.data("user-repo-view-state",gts.cache(gts.userRepoViewState),{depends:["user-repository-path"]}),gts.app.data("current-user",cull.prop("user"),{depends:["user-repo-view-state"]}),gts.app.data("current-repository",cull.prop("repository"),{depends:["user-repo-view-state"]}),gts.app.data("repository-watch",cull.prop("watch"),{depends:["current-repository"]}),gts.app.data("repository-admin",cull.prop("admin"),{depends:["current-repository"]}),gts.app.data("blob-region",gts.blob.regionFromUrl,{depends:["url"]}),gts.app.feature("google-analytics",gts.googleAnalytics,{depends:["analytics-account","analytics-domain-name"]}),gts.app.feature("dropdown",gts.dropdown,{elements:["dropdown"]}),gts.app.feature("ref-selector",gts.refSelector,{elements:["gts-ref-selector-ph"],depends:["repository-refs","current-ref","ref-url-template"]}),gts.app.feature("oid-ref-interpolator",gts.oidRefInterpolator,{elements:["gts-oid"],depends:["repository-refs","ref-url-template"]}),gts.app.feature("tree-history",gts.treeHistory,{elements:["gts-tree-explorer"],depends:["tree-history-url"]}),gts.app.feature("commit-linker",gts.commitLinker,{elements:["gts-body"],depends:["commit-url-template","redirect"]}),gts.app.feature("profile-menu",gts.profileMenu,{elements:["login_button"],depends:["current-user"]}),gts.app.feature("clone-url-selection",gts.cloneUrlSelection,{elements:["gts-repo-urls"]}),gts.app.feature("highlight-region",gts.blob.highlightRegion,{elements:["gts-lines"],depends:["blob-region"]}),gts.app.feature("track-blob-focus",gts.blob.trackFocus,{elements:["gts-lines"],depends:["redirect"]}),gts.app.feature("live-markdown-preview",gts.liveMarkdownPreview,{elements:["gts-live-markdown-preview"]}),gts.app.feature("timeago",gts.timeago.periodic(6e4),{elements:["timeago"]}),gts.app.feature("collapse",gts.collapse),gts.app.feature("clone-name-suggestion",gts.cloneNameSuggestion,{elements:["clone-repository-form"]}),gts.app.feature("loading",gts.loading,{elements:["loading"]}),gts.app.feature("rails-links",gts.railsLinks,{depends:["csrf-param","csrf-token"]}),gts.app.feature("repository-admin-menu",gts.repository.admin,{elements:["gts-repository-admin-ph"],depends:["repository-admin"]}),gts.app.feature("repository-watching",gts.repository.watching,{elements:["gts-watch-repository-ph"],depends:["repository-watch"]}),gts.app.feature("repository-cloning",gts.repository.cloning,{elements:["gts-clone-repository-ph"],depends:["current-repository"]}),gts.app.feature("repository-merge-request",gts.repository.mergeRequest,{elements:["gts-request-merge-ph"],depends:["current-repository"]}),setTimeout(function(){gts.app.scanEnvAttrs(document.body,"data-gts-env-"),gts.app.load(document.documentElement)},10);
1
+ var cull=function(){"use strict";function e(e){return!!e&&"object"==typeof e&&"number"==typeof e.length&&!e.tagName}function n(e){return"[object Array]"===P.call(e)?e:"[object Arguments]"===P.call(e)?M.call(e):"undefined"==typeof e||null===e?[]:M.call(arguments)}function t(e,n){var t,r;for(t=0,r=n.length;r>t;++t)e(n[t],t,n);return n}function r(e){return"function"==typeof e}function o(e,n,t){var r,o=0,i=t,a=n;for(2===arguments.length&&(i=n,a=i[0],o=1),"string"==typeof i&&(i=i.split("")),r=i.length;r>o;++o)a=e(a,i[o]);return a}function i(e,n){var t,r;for(t=0,r=n.length;r>t;++t)if(!e(n[t]))return!1;return!0}function a(e,n){var t,r;for(t=0,r=n.length;r>t;++t)if(e(n[t]))return!0;return!1}function u(e,n){var t,r,o,i;for(t=0,r=n.length;r>t;++t)if(e(n[t])?o=!0:i=!0,o&&i)return!0;return!1}function s(e){return e.trim&&e.trim()||e.replace(/^\s+|\s+$/,"")}function c(e){return e}function l(e){return"undefined"!=typeof e&&null!==e}function f(e){return function(n){return e.call(this,n)}}function p(e){return function(n){return n[e]}}function d(e,t){return function(r){return r[e].apply(r,n(t))}}function h(e){return function(n){return e===n}}function m(e,t){var r=n(e);return function(){for(var e=r.length,n=arguments;e--;)n=[r[e].apply(t||this,n)];return n[0]}}function g(){var e=arguments;return function(n){return n.apply(this,e)}}function v(e){var n=M.call(arguments,1);return function(){return e.apply(this,n.concat(M.call(arguments)))}}function y(e,n){var t="string"==typeof n?e[n]:n,r=M.call(arguments,2);return function(){return t.apply(e,r.concat(M.call(arguments)))}}function w(n){var t,r,o=[];for(t=0,r=n.length;r>t;t++)o=o.concat(e(n[t])?w(n[t]):n[t]);return o}function b(e,n){var t,r;for(t=0,r=n.length;r>t;++t)if(e===n[t])return t;return-1}function x(e){var n,t,r=[];for(n=0,t=e.length;t>n;++n)b(e[n],r)<0&&r.push(e[n]);return r}function E(e,n){var t,r;for(t=0,r=n.length;r>t;++t)if(e(n[t]))return n[t]}function _(e,n){var t,r,o=[];for(t=0,r=n.length;r>t;++t)e(n[t])&&o.push(n[t]);return o}function q(e,n){return _(function(e){return b(e,n)<0},e)}function C(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(n);return t}function A(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function S(e,n){var t,r,o=[];for(t=0,r=n.length;r>t;t++)o.push(e(n[t]));return o}function j(e){return function(){return!e.apply(this,arguments)}}function k(e,n){return _(j(e),n)}function N(e,t){return n(e).concat(n(t))}function T(e,n){var t,r,o=[];for(t=0,r=n.length;r>t;t+=e)o.push(n.slice(t,t+e));return o}function $(e,n){return I(S(e,I(n)))}function H(e,n){return o(N,S(e,n))}function L(e,n){var t,r,o=[];for(t=0,r=n.length;r>t;t+=1)o.push(n[t]),r-1>t&&o.push(e);return o}function z(e,n,t){var r=e[n];e[n]=function(){var e=r.apply(this,arguments),n=t.apply(this,[e].concat(M.call(arguments)));return"undefined"!=typeof n?n:e}}function O(e,n,t){var r=e[n];e[n]=function(){return t.apply(this,arguments),r.apply(this,arguments)}}function R(e,n,t){var r=v(t,e[n]);e[n]=function(){return r.apply(this,arguments)}}var M=Array.prototype.slice,P=Object.prototype.toString,I=v(_,l);return{trim:s,doall:t,reduce:o,all:i,some:a,onlySome:u,isFunction:r,isList:e,toList:n,identity:c,defined:l,unary:f,prop:p,func:d,eq:h,compose:m,callWith:g,partial:v,bind:y,keys:C,values:A,concat:N,flatten:w,uniq:x,first:E,select:_,negate:j,reject:k,seldef:I,map:S,mapdef:$,mapcat:H,partition:T,difference:q,interpose:L,indexOf:b,after:z,before:O,around:R}}(this);"function"==typeof require&&"undefined"!=typeof module&&(module.exports=cull);var dome=function(e){function n(t){if(e.isList(t))return e.flatten(e.map(n,t));for(var r=[],o=t.firstChild;o;)1===o.nodeType&&r.push(o),o=o.nextSibling;return r}function t(e){return document.getElementById(e)}function r(e,n){var t=n||document;if(t.getElementsByClassName)return t.getElementsByClassName(e);var r,o,i=t.getElementsByTagName("*"),a=[],u=new RegExp("(^|\\s)"+e+"(\\s|$)");for(r=0,o=i.length;o>r;++r)u.test(i[r].className)&&a.push(i[r]);return a}function o(e){e.parentNode.removeChild(e)}function i(e,n){e.parentNode&&(e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e))}function a(e,n){var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return t.test(n.className)}function u(n,t){return e.isList(t)?e.doall(e.partial(u,n),t):(a(n,t)||(t.className=e.trim(t.className+" "+n)),void 0)}function s(n,t){if(e.isList(t))return e.doall(e.partial(s,n),t);if(a(n,t)){var r=new RegExp("\\b"+n+"\\b","g");t.className=e.trim(t.className.replace(r,""))}}function c(e){var n=e.nodeType;if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;var t="";for(e=e.firstChild;e;e=e.nextSibling)t+=c(e);return t}return 3===n||4===n?e.nodeValue:""}function l(n){var t=document.createDocumentFragment();return e.doall(e.bind(t,"appendChild"),e.toList(n)),t}function f(e){return e?("number"!=typeof e._dome_uuid&&(e._dome_uuid=w++),e._dome_uuid):null}function p(e,n){if(!n||!e)return!1;var t=f(e);if(b[t]||(b[t]={}),b[t][f(n)])return!0;for(var r=[];n&&n!==e;)r.push(f(n)),n=n.parentNode;for(var o=!!n,i=0,a=r.length;a>i;i++)b[t][r[i]]=o;return o}function d(e,n){var t;e=e||{};for(t in e)e.hasOwnProperty(t)&&(n.setAttribute("data-"+t,e[t]),n["data-"+t]=e[t])}function h(e,n){return n.getAttribute("data-"+e)}function m(e,n){var t,r;e=e||{};for(t in e)e.hasOwnProperty(t)&&(r=E[t],r?r(n,e[t]):n[t]=e[t])}function g(n,t){n=e.toList(n);var r,o;for(r=0,o=n.length;o>r;++r)"string"==typeof n[r]?t.appendChild(document.createTextNode(n[r])):t.appendChild(n[r])}function v(e,n){n.innerHTML="",g(e,n)}var y,w=0,b={},x=function(n){return null!==n&&"undefined"!=typeof n&&("undefined"!=typeof n.nodeType||"string"==typeof n||e.isList(n))},E={style:function(e,n){var t;for(t in n)n.hasOwnProperty(t)&&(e.style[t]=n[t])},data:function(e,n){d(n,e)}};return y=function(e,n,t){if(!t&&x(n))return y(e,{},n);var r=document.createElement(e);return m(n,r),g(t||[],r),r},y.toString=function(){return"dome.el()"},e.doall(function(n){y[n]=e.partial(y,n)},["a","br","div","fieldset","form","h2","h3","h4","h5","img","input","label","li","p","span","strong","textarea","ul","span","select","option","ol","iframe","table","tr","td","pre","button","i"]),{propmap:E,el:y,setProp:m,append:g,setContent:v,children:n,id:t,byClass:r,remove:o,replace:i,frag:l,text:c,data:{get:h,set:d},cn:{has:a,add:u,rm:s},uuid:f,contains:p}}(this.cull);!function(e,n){function t(e,n){return/^(?:function|object|unknown)$/.test(typeof e[n])}function r(e,n){return function(t){n.call(c[e],t||window.event)}}function o(e,n){return{handler:n,wrappedHandler:r(e,n)}}function i(e,n,t,r){a(n,t,function(n){e(n.target,t,n)&&r.call(n.target,n)})}var a,u,s=function(){if("undefined"!=typeof document.documentElement.uniqueID)return function(e){return e.uniqueID};var e=0;return function(n){return n.__uniqueID||(n.__uniqueID="uniqueID__"+e,e+=1),n.__uniqueID}}(),c={},l=document.documentElement;if(t(l,"addEventListener")&&t(l,"removeEventListener")&&t(window,"addEventListener")&&t(window,"removeEventListener"))a=function(e,n,t){return e.addEventListener(n,t,!1),{cancel:function(){u(e,n,t)}}},u=function(e,n,t){e.removeEventListener(n,t,!1)};else if(t(l,"attachEvent")&&t(l,"detachEvent")&&t(window,"attachEvent")&&t("detachEvent")){var f={};a=function(e,n,t){var r=s(e);c[r]=e,f[r]||(f[r]={}),f[r][n]||(f[r][n]=[]);var i=o(r,t);return f[r][n].push(i),e.attachEvent("on"+n,i.wrappedHandler),{cancel:function(){u(e,n,t)}}},u=function(n,t,r){var o=s(n);f[o]&&f[o][t]&&(f[o][t]=e.select(function(e){return e.handler!==r?!0:(n.detachEvent("on"+t,e.wrappedHandler),void 0)},f[o][t]))}}i.bycn=function(t,r,o,a){i(e.partial(n.cn.has,t),r,o,a)},dome.events={mouseenter:function(e,n){var t=null,r=a(e,"mouseover",function(r){t!==e&&(n.call(e,r),t=e)}),o=a(e,"mouseout",function(n){var r=n.relatedTarget||n.toElement;try{r&&!r.nodeName&&(r=r.parentNode)}catch(n){return}e===r||dome.contains(e,r)||(t=null)});return{cancel:function(){r.cancel(),o.cancel()}}},mouseleave:function(e,n){return a(e,"mouseout",function(t){dome.contains(e,t.relatedTarget)||e===t.relatedTarget||n.call(e,t)})}},dome.on=function(e,n,t){return dome.events[n]?dome.events[n](e,t):a(e,n,t)},dome.off=u,dome.delegate=i,dome.propmap.events=function(n,t){e.doall(function(e){a(n,e,t[e])},e.keys(t))}}(cull,dome),!function(e,n,t){function r(e,t){var r,o=n.createElement(e||"div");for(r in t)o[r]=t[r];return o}function o(e){for(var n=1,t=arguments.length;t>n;n++)e.appendChild(arguments[n]);return e}function i(e,n,t,r){var o=["opacity",n,~~(100*e),t,r].join("-"),i=.01+100*(t/r),a=Math.max(1-(1-e)/n*(100-i),e),u=f.substring(0,f.indexOf("Animation")).toLowerCase(),s=u&&"-"+u+"-"||"";return d[o]||(h.insertRule("@"+s+"keyframes "+o+"{"+"0%{opacity:"+a+"}"+i+"%{opacity:"+e+"}"+(i+.01)+"%{opacity:1}"+(i+n)%100+"%{opacity:"+e+"}"+"100%{opacity:"+a+"}"+"}",h.cssRules.length),d[o]=1),o}function a(e,n){var r,o,i=e.style;if(i[n]!==t)return n;for(n=n.charAt(0).toUpperCase()+n.slice(1),o=0;o<p.length;o++)if(r=p[o]+n,i[r]!==t)return r}function u(e,n){for(var t in n)e.style[a(e,t)||t]=n[t];return e}function s(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)e[o]===t&&(e[o]=r[o])}return e}function c(e){for(var n={x:e.offsetLeft,y:e.offsetTop};e=e.offsetParent;)n.x+=e.offsetLeft,n.y+=e.offsetTop;return n}function l(e){return this.spin?(this.opts=s(e||{},l.defaults,m),void 0):new l(e)}var f,p=["webkit","Moz","ms","O"],d={},h=function(){var e=r("style",{type:"text/css"});return o(n.getElementsByTagName("head")[0],e),e.sheet||e.styleSheet}(),m={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};l.defaults={},s(l.prototype,{spin:function(e){this.stop();var n,t,o=this,i=o.opts,a=o.el=u(r(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex}),s=i.radius+i.length+i.width;if(e&&(e.insertBefore(a,e.firstChild||null),t=c(e),n=c(a),u(a,{left:("auto"==i.left?t.x-n.x+(e.offsetWidth>>1):parseInt(i.left,10)+s)+"px",top:("auto"==i.top?t.y-n.y+(e.offsetHeight>>1):parseInt(i.top,10)+s)+"px"})),a.setAttribute("aria-role","progressbar"),o.lines(a,o.opts),!f){var l=0,p=i.fps,d=p/i.speed,h=(1-i.opacity)/(d*i.trail/100),m=d/i.lines;!function g(){l++;for(var e=i.lines;e;e--){var n=Math.max(1-(l+e*m)%d*h,i.opacity);o.opacity(a,i.lines-e,n,i)}o.timeout=o.el&&setTimeout(g,~~(1e3/p))}()}return o},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=t),this},lines:function(e,n){function t(e,t){return u(r(),{position:"absolute",width:n.length+n.width+"px",height:n.width+"px",background:e,boxShadow:t,transformOrigin:"left",transform:"rotate("+~~(360/n.lines*s+n.rotate)+"deg) translate("+n.radius+"px"+",0)",borderRadius:(n.corners*n.width>>1)+"px"})}for(var a,s=0;s<n.lines;s++)a=u(r(),{position:"absolute",top:1+~(n.width/2)+"px",transform:n.hwaccel?"translate3d(0,0,0)":"",opacity:n.opacity,animation:f&&i(n.opacity,n.trail,s,n.lines)+" "+1/n.speed+"s linear infinite"}),n.shadow&&o(a,u(t("#000","0 0 4px #000"),{top:"2px"})),o(e,o(a,t(n.color,"0 0 1px rgba(0,0,0,.1)")));return e},opacity:function(e,n,t){n<e.childNodes.length&&(e.childNodes[n].style.opacity=t)}}),function(){function e(e,n){return r("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}var n=u(r("group"),{behavior:"url(#default#VML)"});!a(n,"transform")&&n.adj?(h.addRule(".spin-vml","behavior:url(#default#VML)"),l.prototype.lines=function(n,t){function r(){return u(e("group",{coordsize:c+" "+c,coordorigin:-s+" "+-s}),{width:c,height:c})}function i(n,i,a){o(f,o(u(r(),{rotation:360/t.lines*n+"deg",left:~~i}),o(u(e("roundrect",{arcsize:t.corners}),{width:s,height:t.width,left:t.radius,top:-t.width>>1,filter:a}),e("fill",{color:t.color,opacity:t.opacity}),e("stroke",{opacity:0}))))}var a,s=t.length+t.width,c=2*s,l=2*-(t.width+t.length)+"px",f=u(r(),{position:"absolute",top:l,left:l});if(t.shadow)for(a=1;a<=t.lines;a++)i(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=t.lines;a++)i(a);return o(n,f)},l.prototype.opacity=function(e,n,t,r){var o=e.firstChild;r=r.shadow&&r.lines||0,o&&n+r<o.childNodes.length&&(o=o.childNodes[n+r],o=o&&o.firstChild,o=o&&o.firstChild,o&&(o.opacity=t))}):f=a(n,"animation")}(),"function"==typeof define&&define.amd?define(function(){return l}):e.Spinner=l}(window,document),function(e){"use strict";e(function(){function e(e,t,r,o){return n(e).then(t,r,o)}function n(e){var n,t;return e instanceof r?n=e:u(e)?(t=a(),e.then(function(e){t.resolve(e)},function(e){t.reject(e)},function(e){t.progress(e)}),n=t.promise):n=o(e),n}function t(n){return e(n,i)}function r(e){this.then=e}function o(e){var t=new r(function(t){try{return n("function"==typeof t?t(e):e)}catch(r){return i(r)}});return t}function i(e){var t=new r(function(t,r){try{return n("function"==typeof r?r(e):i(e))}catch(o){return i(o)}});return t}function a(){function e(e,n,t){return p(e,n,t)}function t(e){return h(n(e))}function o(e){return h(i(e))}function u(e){return d(e)}var s,c,l,f,p,d,h;return c=new r(e),s={then:e,resolve:t,reject:o,progress:u,promise:c,resolver:{resolve:t,reject:o,progress:u}},l=[],f=[],p=function(e,n,t){var r,o;return r=a(),o="function"==typeof t?function(e){try{r.progress(t(e))}catch(n){r.progress(n)}}:function(e){r.progress(e)},l.push(function(t){t.then(e,n).then(r.resolve,r.reject,o)}),f.push(o),r.promise},d=function(e){return m(f,e),e},h=function(e){return p=e.then,h=n,d=y,m(l,e),f=l=x,e},s}function u(e){return e&&"function"==typeof e.then}function s(n,t,r,o,i){return g(2,arguments),e(n,function(n){function u(e){m(e)}function s(e){h(e)}var c,l,f,p,d,h,m,g,y,w;if(y=n.length>>>0,c=Math.max(0,Math.min(t,y)),f=[],l=y-c+1,p=[],d=a(),c)for(g=d.progress,m=function(e){p.push(e),--l||(h=m=v,d.reject(p))},h=function(e){f.push(e),--c||(h=m=v,d.resolve(f))},w=0;y>w;++w)w in n&&e(n[w],s,u,g);else d.resolve(f);return d.promise.then(r,o,i)})}function c(e,n,t,r){function o(e){return n?n(e[0]):e[0]}return s(e,1,o,t,r)}function l(e,n,t,r){return g(1,arguments),p(e,y).then(n,t,r)}function f(){return p(arguments,y)}function p(n,t){return e(n,function(n){var r,o,i,u,s,c;if(i=o=n.length>>>0,r=[],c=a(),i)for(u=function(n,o){e(n,t).then(function(e){r[o]=e,--i||c.resolve(r)},c.reject)},s=0;o>s;s++)s in n?u(n[s],s):--i;else c.resolve(r);return c.promise})}function d(n,t){var r=b.call(arguments,1);return e(n,function(n){var o;return o=n.length,r[0]=function(n,r,i){return e(n,function(n){return e(r,function(e){return t(n,e,i,o)})})},w.apply(n,r)})}function h(n,t,r){var o=arguments.length>2;return e(n,function(e){return e=o?r:e,t.resolve(e),e},function(e){return t.reject(e),i(e)},t.progress)}function m(e,n){for(var t,r=0;t=e[r++];)t(n)}function g(e,n){for(var t,r=n.length;r>e;)if(t=n[--r],null!=t&&"function"!=typeof t)throw new Error("arg "+r+" must be a function")}function v(){}function y(e){return e}var w,b,x;return e.defer=a,e.resolve=n,e.reject=t,e.join=f,e.all=l,e.map=p,e.reduce=d,e.any=c,e.some=s,e.chain=h,e.isPromise=u,r.prototype={always:function(e,n){return this.then(e,e,n)},otherwise:function(e){return this.then(x,e)},yield:function(e){return this.then(function(){return e})},spread:function(e){return this.then(function(n){return l(n,function(n){return e.apply(x,n)})})}},b=[].slice,w=[].reduce||function(e){var n,t,r,o,i;if(i=0,n=Object(this),o=n.length>>>0,t=arguments,t.length<=1)for(;;){if(i in n){r=n[i++];break}if(++i>=o)throw new TypeError}else r=t[1];for(;o>i;++i)i in n&&(r=e(r,n[i],i,n));return r},e})}("function"==typeof define&&define.amd?define:function(e){"object"==typeof exports?module.exports=e():this.when=e()}),("function"==typeof define&&define.amd&&function(e){define(e)}||"object"==typeof module&&function(e){module.exports=e()}||function(e){this.bane=e()})(function(){"use strict";function e(e,n,t){var r,o=t.length;if(o>0)for(r=0;o>r;++r)t[r](e,n);else setTimeout(function(){throw n.message=e+" listener threw error: "+n.message,n},0)}function n(e){if("function"!=typeof e)throw new TypeError("Listener is not function");return e}function t(e){return e.supervisors||(e.supervisors=[]),e.supervisors}function r(e,n){return e.listeners||(e.listeners={}),n&&!e.listeners[n]&&(e.listeners[n]=[]),n?e.listeners[n]:e.listeners}function o(e){return e.errbacks||(e.errbacks=[]),e.errbacks}function i(i){function u(n,t,r){try{t.listener.apply(t.thisp||i,r)}catch(a){e(n,a,o(i))}}return i=i||{},i.on=function(e,o,i){return"function"==typeof e?t(this).push({listener:e,thisp:o}):(r(this,e).push({listener:n(o),thisp:i}),void 0)},i.off=function(e,n){var i,a,u,s;if(!e){i=t(this),i.splice(0,i.length),a=r(this);for(u in a)a.hasOwnProperty(u)&&(i=r(this,u),i.splice(0,i.length));return i=o(this),i.splice(0,i.length),void 0}if("function"==typeof e?(i=t(this),n=e):i=r(this,e),!n)return i.splice(0,i.length),void 0;for(u=0,s=i.length;s>u;++u)if(i[u].listener===n)return i.splice(u,1),void 0},i.once=function(e,n,t){var r=function(){i.off(e,r),n.apply(this,arguments)};i.on(e,r,t)},i.bind=function(e,n){var t,r,o;if(n)for(r=0,o=n.length;o>r;++r){if("function"!=typeof e[n[r]])throw new Error("No such method "+n[r]);this.on(n[r],e[n[r]],e)}else for(t in e)"function"==typeof e[t]&&this.on(t,e[t],e);return e},i.emit=function(e){var n,o,i=t(this),s=a.call(arguments);for(n=0,o=i.length;o>n;++n)u(e,i[n],s);for(i=r(this,e).slice(),s=a.call(arguments,1),n=0,o=i.length;o>n;++n)u(e,i[n],s)},i.errback=function(e){this.errbacks||(this.errbacks=[]),this.errbacks.push(n(e))},i}var a=Array.prototype.slice;return{createEventEmitter:i}}),function(e,n,t){"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):n[e]=t()}("reqwest",this,function(){function handleReadyState(e,n,t){return function(){e&&4==e[readyState]&&(e.onreadystatechange=noop,twoHundo.test(e.status)?n(e):t(e))}}function setHeaders(e,n){var t,r=n.headers||{};r.Accept=r.Accept||defaultHeaders.accept[n.type]||defaultHeaders.accept["*"],n.crossOrigin||r[requestedWith]||(r[requestedWith]=defaultHeaders.requestedWith),r[contentType]||(r[contentType]=n.contentType||defaultHeaders.contentType);for(t in r)r.hasOwnProperty(t)&&e.setRequestHeader(t,r[t])}function setCredentials(e,n){"undefined"!=typeof n.withCredentials&&"undefined"!=typeof e.withCredentials&&(e.withCredentials=!!n.withCredentials)}function generalCallback(e){lastValue=e}function urlappend(e,n){return e+(/\?/.test(e)?"&":"?")+n}function handleJsonp(e,n,t,r){var o=uniqid++,i=e.jsonpCallback||"callback",a=e.jsonpCallbackName||reqwest.getcallbackPrefix(o),u=new RegExp("((^|\\?|&)"+i+")=([^&]+)"),s=r.match(u),c=doc.createElement("script"),l=0,f=-1!==navigator.userAgent.indexOf("MSIE 10.0");s?"?"===s[3]?r=r.replace(u,"$1="+a):a=s[3]:r=urlappend(r,i+"="+a),win[a]=generalCallback,c.type="text/javascript",c.src=r,c.async=!0,"undefined"==typeof c.onreadystatechange||f||(c.event="onclick",c.htmlFor=c.id="_reqwest_"+o),c.onload=c.onreadystatechange=function(){return c[readyState]&&"complete"!==c[readyState]&&"loaded"!==c[readyState]||l?!1:(c.onload=c.onreadystatechange=null,c.onclick&&c.onclick(),e.success&&e.success(lastValue),lastValue=void 0,head.removeChild(c),l=1,void 0)},head.appendChild(c)}function getRequest(e,n,t){var r,o=(e.method||"GET").toUpperCase(),i="string"==typeof e?e:e.url,a=e.processData!==!1&&e.data&&"string"!=typeof e.data?reqwest.toQueryString(e.data):e.data||null;return"jsonp"!=e.type&&"GET"!=o||!a||(i=urlappend(i,a),a=null),"jsonp"==e.type?handleJsonp(e,n,t,i):(r=xhr(),r.open(o,i,!0),setHeaders(r,e),setCredentials(r,e),r.onreadystatechange=handleReadyState(r,n,t),e.before&&e.before(r),r.send(a),r)}function Reqwest(e,n){this.o=e,this.fn=n,init.apply(this,arguments)}function setType(e){var n=e.match(/\.(json|jsonp|html|xml)(\?|$)/);return n?n[1]:"js"}function init(o,fn){function complete(e){for(o.timeout&&clearTimeout(self.timeout),self.timeout=null;self._completeHandlers.length>0;)self._completeHandlers.shift()(e)}function success(resp){var r=resp.responseText;if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML}for(self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp);self._fulfillmentHandlers.length>0;)self._fulfillmentHandlers.shift()(resp);complete(resp)}function error(e,n,t){for(self._responseArgs.resp=e,self._responseArgs.msg=n,self._responseArgs.t=t,self._erred=!0;self._errorHandlers.length>0;)self._errorHandlers.shift()(e,n,t);complete(e)}this.url="string"==typeof o?o:o.url,this.timeout=null,this._fulfilled=!1,this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this,type=o.type||setType(this.url);fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),o.success&&this._fulfillmentHandlers.push(function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest(o,success,error)}function reqwest(e,n){return new Reqwest(e,n)}function normalize(e){return e?e.replace(/\r?\n/g,"\r\n"):""}function serial(e,n){var t=e.name,r=e.tagName.toLowerCase(),o=function(e){e&&!e.disabled&&n(t,normalize(e.attributes.value&&e.attributes.value.specified?e.value:e.text))};if(!e.disabled&&t)switch(r){case"input":if(!/reset|button|image|file/i.test(e.type)){var i=/checkbox/i.test(e.type),a=/radio/i.test(e.type),u=e.value;(!(i||a)||e.checked)&&n(t,normalize(i&&""===u?"on":u))}break;case"textarea":n(t,normalize(e.value));break;case"select":if("select-one"===e.type.toLowerCase())o(e.selectedIndex>=0?e.options[e.selectedIndex]:null);else for(var s=0;e.length&&s<e.length;s++)e.options[s].selected&&o(e.options[s])}}function eachFormElement(){var e,n,t,r=this,o=function(e,n){for(var o=0;o<n.length;o++){var i=e[byTag](n[o]);for(t=0;t<i.length;t++)serial(i[t],r)}};for(n=0;n<arguments.length;n++)e=arguments[n],/input|select|textarea/i.test(e.tagName)&&serial(e,r),o(e,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var e={};return eachFormElement.apply(function(n,t){n in e?(e[n]&&!isArray(e[n])&&(e[n]=[e[n]]),e[n].push(t)):e[n]=t},arguments),e}var win=window,doc=document,twoHundo=/^20\d$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",head=doc[byTag]("head")[0],uniqid=0,callbackPrefix="reqwest_"+ +new Date,lastValue,xmlHttpRequest="XMLHttpRequest",noop=function(){},isArray="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",requestedWith:xmlHttpRequest,accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"}},xhr=win[xmlHttpRequest]?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")};return Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)},then:function(e,n){return this._fulfilled?e(this._responseArgs.resp):this._erred?n(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):(this._fulfillmentHandlers.push(e),this._errorHandlers.push(n)),this},always:function(e){return this._fulfilled||this._erred?e(this._responseArgs.resp):this._completeHandlers.push(e),this},fail:function(e){return this._erred?e(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):this._errorHandlers.push(e),this}},reqwest.serializeArray=function(){var e=[];return eachFormElement.apply(function(n,t){e.push({name:n,value:t})},arguments),e},reqwest.serialize=function(){if(0===arguments.length)return"";var e,n,t=Array.prototype.slice.call(arguments,0);return e=t.pop(),e&&e.nodeType&&t.push(e)&&(e=null),e&&(e=e.type),n="map"==e?serializeHash:"array"==e?reqwest.serializeArray:serializeQueryString,n.apply(null,t)},reqwest.toQueryString=function(e){var n,t="",r=encodeURIComponent,o=function(e,n){t+=r(e)+"="+r(n)+"&"};if(isArray(e))for(n=0;e&&n<e.length;n++)o(e[n].name,e[n].value);else for(var i in e)if(Object.hasOwnProperty.call(e,i)){var a=e[i];if(isArray(a))for(n=0;n<a.length;n++)o(i,a[n]);else o(i,e[i])}return t.replace(/&$/,"").replace(/%20/g,"+")},reqwest.getcallbackPrefix=function(){return callbackPrefix},reqwest.compat=function(e,n){return e&&(e.type&&(e.method=e.type)&&delete e.type,e.dataType&&(e.type=e.dataType),e.jsonpCallback&&(e.jsonpCallbackName=e.jsonpCallback)&&delete e.jsonpCallback,e.jsonp&&(e.jsonpCallback=e.jsonp)),new Reqwest(e,n)},reqwest}),this.uinit=function(){function e(e,n){return b.reduce(function(n,t){return n&&e[t]&&e[t].loaded},!0,n.depends||[])}function n(e,n){return b.map(function(n){return e[n].result},n)}function t(e,n){t.cache[e.name]=n}function r(e,n){var r=t.cache[e.name];if(!r)return!1;for(var o=0,i=n.length;i>o;++o)if(!uinit.areEqual(n[o],r[o]))return!1;return!0}function o(e,o,i,a){i.reloading?e.emit("reloading",i):e.emit("loading",i);var u=n(o,i.depends||[]),s=when.defer();return when.all(u).then(function(n){var o=(a?[a]:[]).concat(n),u=i.serializeArgs.apply(i,o);if(i.reloading&&r(i,u))return e.emit("skip",i),s.resolve();t(i,u);try{var c=i.action.apply(null,o);(c||i.nullable)&&(i.loaded=!0,i.result=c,e.emit("loaded",i,c))}catch(l){e.emit("error",i,l)}s.resolve()},function(n){e.emit("error",i,n),s.resolve()}),s.promise}function i(e,n){var t=b.partial(o,e,e.features,n);return n.elements?when.all(b.map(t,dome.byClass(n.elements,e.context))):t()}function a(n,t){return!t.lazy&&!t.loaded&&t.action&&e(n,t)}function u(e){return e&&e.lazy&&!e.loaded}function s(e,n){var t=function(n){return e[n]};return b.uniq(b.reduce(function(e,n){return e.concat(b.select(u,b.map(t,n.depends||[])))},[],n))}function c(e,n){return b.doall(function(e){b.doall(function(t){e[t]=n[t]},b.keys(n))},e)}function l(e){return c(e,{lazy:!1,wasLazy:!0})}function f(e){b.doall(function(e){e.action&&(e.loaded=!1,delete e.reloading),e.wasLazy&&(delete e.wasLazy,e.lazy=!0)},e)}function p(e,n){e.listeners&&e.listeners.pending&&b.doall(b.bind(e,"emit","pending"),b.select(function(e){return!e.ready&&!e.loaded&&!e.reloading},n))}function d(e,n,t){function r(){var o=b.first(u,c);return o?(i(e,o).then(function(){if(!o.loaded){var e=b.indexOf(o,c);c=c.slice(0,e).concat(c.slice(e+1))}r()}),void 0):(p(e,n),"function"==typeof t?t():null)}var o=l(s(e.features,n)),u=b.partial(a,e.features),c=b.uniq(o.concat(n));r()}function h(e,n){if(e[n])throw new Error("Cannot add duplicate "+n)}function m(){return b.map(function(e){return x.features[e]||{name:e,type:"Unknown"}},this.depends||[])}function g(e,n){n.hasOwnProperty("nullable")||(n.nullable=!0),n.hasOwnProperty("serializeArgs")||(n.serializeArgs=function(){return b.map(function(e){return e&&e.tagName&&e.appendChild?dome.uuid(e):e},arguments)}),n.dependencies=m,e.features[n.name]=n,e.tryPending()}function v(e,n){var t,r=[],o=b.values(n);do t=r.length,cull.doall(function(e){r=r.concat(b.select(function(n){return b.indexOf(e,n.depends||[])>=0},o))},e),r=b.uniq(r),e=b.map(b.prop("name"),r);while(t!==r.length);return r}function y(e,n,t){if("function"==typeof e&&(t=n,n=e,e=n.name),!e)throw new Error("Name cannot be blank");var r=t||{};return r.name=e,r.action=n,r}function w(e,n){var t=v([n],e.features);f(t),b.doall(function(e){e.reloading=!0},t),d(e,t)}var b=cull;t.cache={};var x;return x=bane.createEventEmitter({features:{},env:function(e,n){null!==n&&void 0!==n&&this.nullableEnv(e,n)},nullableEnv:function(e,n){var t=!!this.env[e];t||h(this.features,e);var r=n!==this.env[e];this.env[e]=n,g(this,{name:e,result:n,loaded:!0}),t&&this.loaded&&r&&w(this,e)},data:function(e,n,t){var r=y(e,n,t);return h(this.features,r.name),"boolean"!=typeof r.lazy&&(r.lazy=!0),"boolean"!=typeof r.nullable&&(r.nullable=!1),g(this,r)},feature:function(e,n,t){var r=y(e,n,t);if(h(this.features,r.name),"function"!=typeof r.action)throw new Error("Cannot add feature "+r.name+", action is not a function ("+typeof r.action+")");g(this,r)},scanEnvAttrs:function(e,n){for(var t,r,o,i,a=e.getElementsByTagName("*"),u=[e].concat([].slice.call(a,0)),s=0,c=u.length;c>s;++s)for(r=u[s].attributes,o=0,i=r.length;i>o;++o)t=r.item(o),0===t.nodeName.indexOf(n)&&this.env(t.nodeName.slice(n.length),t.nodeValue)},load:function(e){this.loaded&&f(b.values(this.features)),this.loaded=!0,this.context=e,this.tryPending()},tryPending:function(){this.loaded&&(this.emit("init"),d(this,b.values(this.features)))}})},this.uinit.areEqual=function(e,n){return e===n};var Showdown={extensions:{}},forEach=Showdown.forEach=function(e,n){if("function"==typeof e.forEach)e.forEach(n);else{var t,r=e.length;for(t=0;r>t;t++)n(e[t],t,e)}},stdExtName=function(e){return e.replace(/[_-]||\s/g,"").toLowerCase()};Showdown.converter=function(e){var n,t,r,o=0,i=[],a=[];if("undefind"!=typeof module&&"undefined"!=typeof exports&&"undefind"!=typeof require){var u=require("fs");if(u){var s=u.readdirSync((__dirname||".")+"/extensions").filter(function(e){return~e.indexOf(".js")}).map(function(e){return e.replace(/\.js$/,"")});Showdown.forEach(s,function(e){var n=stdExtName(e);Showdown.extensions[n]=require("./extensions/"+e)})}}if(this.makeHtml=function(e){return n={},t={},r=[],e=e.replace(/~/g,"~T"),e=e.replace(/\$/g,"~D"),e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n"),e="\n\n"+e+"\n\n",e=M(e),e=e.replace(/^[ \t]+$/gm,""),Showdown.forEach(i,function(n){e=f(n,e)}),e=C(e),e=d(e),e=p(e),e=m(e),e=O(e),e=e.replace(/~D/g,"$$"),e=e.replace(/~T/g,"~"),Showdown.forEach(a,function(n){e=f(n,e)}),e},e&&e.extensions){var c=this;Showdown.forEach(e.extensions,function(e){if("string"==typeof e&&(e=Showdown.extensions[stdExtName(e)]),"function"!=typeof e)throw"Extension '"+e+"' could not be loaded. It was either not found or is not a valid extension.";Showdown.forEach(e(c),function(e){e.type?"language"===e.type||"lang"===e.type?i.push(e):("output"===e.type||"html"===e.type)&&a.push(e):a.push(e)})})}var l,f=function(e,n){if(e.regex){var t=new RegExp(e.regex,"g");return n.replace(t,e.replace)}return e.filter?e.filter(n):void 0},p=function(e){return e+="~0",e=e.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|(?=~0))/gm,function(e,r,o,i,a){return r=r.toLowerCase(),n[r]=$(o),i?i+a:(a&&(t[r]=a.replace(/"/g,"&quot;")),"")}),e=e.replace(/~0/,"")},d=function(e){return e=e.replace(/\n/g,"\n\n"),e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,h),e=e.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style|section|header|footer|nav|article|aside)\b[^\r]*?<\/\2>[ \t]*(?=\n+)\n)/gm,h),e=e.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,h),e=e.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,h),e=e.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,h),e=e.replace(/\n\n/g,"\n")},h=function(e,n){var t=n;return t=t.replace(/\n\n/g,"\n"),t=t.replace(/^\n/,""),t=t.replace(/\n+$/g,""),t="\n\n~K"+(r.push(t)-1)+"K\n\n"},m=function(e){e=E(e);var n=A("<hr />");return e=e.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,n),e=e.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,n),e=e.replace(/^[ ]{0,2}([ ]?\_[ ]?){3,}[ \t]*$/gm,n),e=_(e),e=q(e),e=N(e),e=d(e),e=T(e)},g=function(e){return e=S(e),e=v(e),e=H(e),e=b(e),e=y(e),e=L(e),e=$(e),e=k(e),e=e.replace(/ +\n/g," <br />\n")},v=function(e){var n=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi;return e=e.replace(n,function(e){var n=e.replace(/(.)<\/?code>(?=.)/g,"$1`");
2
+ return n=P(n,"\\`*_")})},y=function(e){return e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,w),e=e.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?(?:\(.*?\).*?)?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,w),e=e.replace(/(\[([^\[\]]+)\])()()()()()/g,w)},w=function(e,r,o,i,a,u,s,c){void 0==c&&(c="");var l=r,f=o,p=i.toLowerCase(),d=a,h=c;if(""==d)if(""==p&&(p=f.toLowerCase().replace(/ ?\n/g," ")),d="#"+p,void 0!=n[p])d=n[p],void 0!=t[p]&&(h=t[p]);else{if(!(l.search(/\(\s*\)$/m)>-1))return l;d=""}d=P(d,"*_");var m='<a href="'+d+'"';return""!=h&&(h=h.replace(/"/g,"&quot;"),h=P(h,"*_"),m+=' title="'+h+'"'),m+=">"+f+"</a>"},b=function(e){return e=e.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,x),e=e.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,x)},x=function(e,r,o,i,a,u,s,c){var l=r,f=o,p=i.toLowerCase(),d=a,h=c;if(h||(h=""),""==d){if(""==p&&(p=f.toLowerCase().replace(/ ?\n/g," ")),d="#"+p,void 0==n[p])return l;d=n[p],void 0!=t[p]&&(h=t[p])}f=f.replace(/"/g,"&quot;"),d=P(d,"*_");var m='<img src="'+d+'" alt="'+f+'"';return h=h.replace(/"/g,"&quot;"),h=P(h,"*_"),m+=' title="'+h+'"',m+=" />"},E=function(e){function n(e){return e.replace(/[^\w]/g,"").toLowerCase()}return e=e.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(e,t){return A('<h1 id="'+n(t)+'">'+g(t)+"</h1>")}),e=e.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(e,t){return A('<h2 id="'+n(t)+'">'+g(t)+"</h2>")}),e=e.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(e,t,r){var o=t.length;return A("<h"+o+' id="'+n(r)+'">'+g(r)+"</h"+o+">")})},_=function(e){e+="~0";var n=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;return o?e=e.replace(n,function(e,n,t){var r=n,o=t.search(/[*+-]/g)>-1?"ul":"ol";r=r.replace(/\n{2,}/g,"\n\n\n");var i=l(r);return i=i.replace(/\s+$/,""),i="<"+o+">"+i+"</"+o+">\n"}):(n=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g,e=e.replace(n,function(e,n,t,r){var o=n,i=t,a=r.search(/[*+-]/g)>-1?"ul":"ol",i=i.replace(/\n{2,}/g,"\n\n\n"),u=l(i);return u=o+"<"+a+">\n"+u+"</"+a+">\n"})),e=e.replace(/~0/,"")};l=function(e){return o++,e=e.replace(/\n{2,}$/,"\n"),e+="~0",e=e.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(e,n,t,r,o){var i=o,a=n;return a||i.search(/\n{2,}/)>-1?i=m(R(i)):(i=_(R(i)),i=i.replace(/\n$/,""),i=g(i)),"<li>"+i+"</li>\n"}),e=e.replace(/~0/g,""),o--,e};var q=function(e){return e+="~0",e=e.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(e,n,t){var r=n,o=t;return r=j(R(r)),r=M(r),r=r.replace(/^\n+/g,""),r=r.replace(/\n+$/g,""),r="<pre><code>"+r+"\n</code></pre>",A(r)+o}),e=e.replace(/~0/,"")},C=function(e){return e+="~0",e=e.replace(/(?:^|\n)```(.*)\n([\s\S]*?)\n```/g,function(e,n,t){var r=n,o=t;return o=j(o),o=M(o),o=o.replace(/^\n+/g,""),o=o.replace(/\n+$/g,""),o="<pre><code"+(r?' class="'+r+'"':"")+">"+o+"\n</code></pre>",A(o)}),e=e.replace(/~0/,"")},A=function(e){return e=e.replace(/(^\n+|\n+$)/g,""),"\n\n~K"+(r.push(e)-1)+"K\n\n"},S=function(e){return e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,t,r){var o=r;return o=o.replace(/^([ \t]*)/g,""),o=o.replace(/[ \t]*$/g,""),o=j(o),n+"<code>"+o+"</code>"})},j=function(e){return e=e.replace(/&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=P(e,"*_{}[]\\",!1)},k=function(e){return e=e.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"<strong>$2</strong>"),e=e.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>")},N=function(e){return e=e.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(e,n){var t=n;return t=t.replace(/^[ \t]*>[ \t]?/gm,"~0"),t=t.replace(/~0/g,""),t=t.replace(/^[ \t]+$/gm,""),t=m(t),t=t.replace(/(^|\n)/g,"$1 "),t=t.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,n){var t=n;return t=t.replace(/^ /gm,"~0"),t=t.replace(/~0/g,"")}),A("<blockquote>\n"+t+"\n</blockquote>")})},T=function(e){e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,"");for(var n=e.split(/\n{2,}/g),t=[],o=n.length,i=0;o>i;i++){var a=n[i];a.search(/~K(\d+)K/g)>=0?t.push(a):a.search(/\S/)>=0&&(a=g(a),a=a.replace(/^([ \t]*)/g,"<p>"),a+="</p>",t.push(a))}o=t.length;for(var i=0;o>i;i++)for(;t[i].search(/~K(\d+)K/)>=0;){var u=r[RegExp.$1];u=u.replace(/\$/g,"$$$$"),t[i]=t[i].replace(/~K\d+K/,u)}return t.join("\n\n")},$=function(e){return e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),e=e.replace(/<(?![a-z\/?\$!])/gi,"&lt;")},H=function(e){return e=e.replace(/\\(\\)/g,I),e=e.replace(/\\([`*_{}\[\]()>#+-.!])/g,I)},L=function(e){return e=e.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'<a href="$1">$1</a>'),e=e.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(e,n){return z(O(n))})},z=function(e){var n=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e="mailto:"+e,e=e.replace(/./g,function(e){if("@"==e)e=n[Math.floor(2*Math.random())](e);else if(":"!=e){var t=Math.random();e=t>.9?n[2](e):t>.45?n[1](e):n[0](e)}return e}),e='<a href="'+e+'">'+e+"</a>",e=e.replace(/">.+:/g,'">')},O=function(e){return e=e.replace(/~E(\d+)E/g,function(e,n){var t=parseInt(n);return String.fromCharCode(t)})},R=function(e){return e=e.replace(/^(\t|[ ]{1,4})/gm,"~0"),e=e.replace(/~0/g,"")},M=function(e){return e=e.replace(/\t(?=\t)/g," "),e=e.replace(/\t/g,"~A~B"),e=e.replace(/~B(.+?)~A/g,function(e,n){for(var t=n,r=4-t.length%4,o=0;r>o;o++)t+=" ";return t}),e=e.replace(/~A/g," "),e=e.replace(/~B/g,"")},P=function(e,n,t){var r="(["+n.replace(/([\[\]\\])/g,"\\$1")+"])";t&&(r="\\\\"+r);var o=new RegExp(r,"g");return e=e.replace(o,I)},I=function(e,n){var t=n.charCodeAt(0);return"~E"+t+"E"}},"undefined"!=typeof module&&(module.exports=Showdown),"function"==typeof define&&define.amd&&define("showdown",function(){return Showdown}),function(e){"function"==typeof define&&define.amd?define([],e):this.timeago=e()}(function(){function e(e,n,t,r){var o="function"==typeof n?n(r,t):n,i=e.numbers&&e.numbers[r]||r;return o.replace(/%d/i,i)}function n(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function t(e){this.locale=e;for(var n in o)"undefined"==typeof this.locale[n]&&(this.locale[n]=o[n])}var r,o={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]};return t.prototype=r={locale:o,locales:{en:o},configure:function(e){var n=new t(e||r.locales.en);return n},relative:function(e){return this.inWords((new Date).getTime()-e.getTime())},inWords:function(t){var r=this.locale,o=r.prefixAgo,i=r.suffixAgo;0>t&&(o=r.prefixFromNow,i=r.suffixFromNow);var a=Math.abs(t)/1e3,u=a/60,s=u/60,c=s/24,l=c/365,f=45>a&&e(r,r.seconds,t,Math.round(a))||90>a&&e(r,r.minute,t,1)||45>u&&e(r,r.minutes,t,Math.round(u))||90>u&&e(r,r.hour,t,1)||24>s&&e(r,r.hours,t,Math.round(s))||42>s&&e(r,r.day,t,1)||30>c&&e(r,r.days,t,Math.round(c))||45>c&&e(r,r.month,t,1)||365>c&&e(r,r.months,t,Math.round(c/30))||1.5>l&&e(r,r.year,t,1)||e(r,r.years,t,Math.round(l));return f=[o,f,i].join("string"==typeof r.wordSeparator?r.wordSeparator:""),n(f)},parse:function(e){var t=n(e);return t=t.replace(/\.\d+/,""),t=t.replace(/-/,"/").replace(/-/,"/"),t=t.replace(/T/," ").replace(/Z/," UTC"),t=t.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(t)}},r});// Set up a global, shared app instance
3
+ this.gts=this.gts||{},this.gts.app=this.uinit(),function(){var e=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};this.uinit.areEqual=function t(n,r){if(n===r)return!0;if(e(n)||!e(r))return n.length!==r.length;var i,s;for(i=0,s=n.length;i<s;++i)if(!t(n[i],r[i]))return!1;return!0}}(),this.gts=this.gts||{},this.gts.cache=function(e){function n(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;++n)if(e[n]!==t[n])return!1;return!0}var t=[];return function(){var r=[].slice.call(arguments),i,s,o,u,a;for(i=0,s=t.length;i<s;++i)if(n(t[i].args,r))return t[i].result;return a=e.apply(self,r),t.push({args:r,result:a}),a}},this.gts=this.gts||{},this.gts.jsonRequest=function(e){return reqwest({url:e,type:"json"})},this.gts.dropdown=function(e){return function(n){function s(){r&&(r.parentNode.removeChild(r),r=null),e.cn.rm("open",n),i=!1}function o(t){if(i)return s();document.documentElement.hasOwnProperty("ontouchstart")&&(r=e.el("div",{className:"dropdown-backdrop",events:{click:s}}),t.insertBefore(r,t)),e.cn.add("open",t),i=!0}var r,i=!1;e.on(n,"click",function(e){var t=e.target.tagName==="A"?e.target:e.target.parentNode;if(!dome.cn.has("dropdown-toggle",t))return;o(this),e.preventDefault(),e.stopPropagation()}),e.on(document.body,"click",s),e.on(document.body,"keydown",function(e){if(e.keyCode!==27)return;s(),e.preventDefault(),e.stopPropagation()})}}(dome);var gts=this.gts||{};gts.googleAnalytics=function(e,t){window._gaq=window._gaq||[],window._gaq.push(["_setAccount",e]),t&&window._gaq.push(["_setDomainName",t]),window._gaq.push(["_trackPageview"]);var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=("https:"===document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(n)},this.gts=this.gts||{},this.gts.abbrev=function(e,t,n){return e.length<=t?e:(n=n||"",cull.reduce(function(e,r){return e.join(" ").length+r.length+n.length<=t&&e.push(r),e},[],e.split(" ")).join(" ")+n)},this.gts=this.gts||{},this.gts.url=function(){function e(e){var t=e.split("/");return t.shift(),t.shift(),t.shift(),"/"+t.join("/")}function t(t,n){return cull.reduce(function(e,t){return e.replace(new RegExp(n[t],"g"),"#{"+t+"}")},e(t),cull.keys(n))}function n(e,t){return cull.reduce(function(e,n){return e.replace(new RegExp("#{"+n+"}","g"),t[n])},e,cull.keys(t))}function r(e){var t=/(blame|blob|tree|history|raw|source|readme|commits)\//,n=e.split(t)[2];return n&&n.split(":")[0]||null}return{templatize:t,render:n,currentRef:r}}(),this.gts=this.gts||{},this.gts.refSelector=function(e){function t(e,t){return(e||"#{ref}").replace(/#\{ref\}/g,t)}function n(e,t,n){return cull.select(function(e){return e[0]===t||e[1]===t},n[e]||[])[0]}function r(t,r){var i=n("heads",r,t),s="branch";return i||(i=n("tags",r,t),s="tag"),i||(s="ref"),e.a({href:"#",className:"dropdown-toggle",innerHTML:'<span class="caret"></span> <em>'+s+":</em> "+(i&&i[0]||r)})}function i(n){var r=e.input({type:"text",className:"gts-ref-input"}),i=e.form({className:"gts-ref-input",events:{submit:function(e){e.preventDefault(),window.location=t(n,r.value)}}},[r]);return e.li({className:"gts-dropdown-input",events:{click:function(e){e.stopPropagation()}}},[e.strong(["Enter ref: ",i])])}function s(n,r,i){var s=[e.li({className:"dropdown-label"},[e.strong(n)])];return cull.reduce(function(n,r){var s=t(i,r[1]);return n.push(e.li(e.a({href:s},r[0]))),n},s,r.sort())}function o(t,n){return e.ul({className:"dropdown-menu"},[i(n)].concat(s("Branches",t.heads||[],n)).concat(s("Tags",t.tags||[],n)))}function u(t,n,i){return e.div({className:"dropdown gts-branch-selector pull-right"},[r(t,n),o(t,i)])}function a(e,t,n,r){var i=u(t,n,r);e.parentNode.insertBefore(i,e),e.parentNode.removeChild(e),this.gts.dropdown(i)}return a.build=u,a.getCurrentRef=n,a}(dome.el),this.gts=this.gts||{},this.gts.treeHistory=function(e,t){function n(e,t){return e.getElementsByTagName(t)}function s(t,n){return e.select(function(e){return e.name===t},n)[0]}function o(e){if(!Date.parse)return"";var t=new Date(Date.parse(e));return i[t.getMonth()]+" "+t.getDate()+" "+t.getFullYear()}function u(e){var t,n;for(t=0,n=e.length;t<n;++t)if(dome.cn.has("gts-name",e[t]))return t;return t}function a(e){return(e&&dome.text(e)||"").trim()}var r=function(e,t){var i=n(n(e,"tbody")[0],"td")[2],s=(new Spinner({lines:13,length:1,width:2,radius:6,corners:1,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!0,className:"spinner",zIndex:2e9,top:"auto",left:"auto"})).spin(i);reqwest({url:t,type:"json",success:function(t){s.stop(),r.annotate(e,t)}})},i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dev"];return r.annotateRow=function(e,t){var r=n(t,"td"),i=u(r),f=s(a(r[i]),e);if(!f)return;var l=f.history[0];r[i+1].innerHTML=o(l.date),dome.data.set({"gts-commit-oid":l.oid},r[i+2]),r[i+2].innerHTML="#"+l.oid.slice(0,7);var c=l.summary.trim();r[i+3].innerHTML=gts.abbrev(c,50," [...]")+" ("+l.author.name+")"},r.annotate=function(t,i){e.doall(e.partial(function(e,t){r.annotateRow(e,t)},i),n(n(t,"tbody")[0],"tr"))},r}(cull);var gts=this.gts||{};(function(e,t){gts.commitLinker=function(e,n,r){t.cn.add("gts-commit-linker",e),t.delegate.bycn("gts-commit-oid",e,"click",function(e){r(gts.url.render(n,{oid:dome.data.get("gts-commit-oid",this)}))})}})(cull.partial,dome),this.gts.userRepoViewState=function(e){return reqwest({url:e,type:"json"})};var gts=this.gts||{};(function(e,t){function n(e,n,r){e=" "+e;var i=r?[t.i({className:"icon-"+r}),e]:[e];return t.li(t.a({href:n},i))}gts.profileMenu=function(r,i){if(!i)return;e.setContent([t.a({className:"btn btn-inverse",href:i.dashboardPath},[t.i({className:"icon-user icon-white"}),i.login]),t.a({className:"btn btn-inverse dropdown-toggle",href:"#",data:{toggle:"dropdown"}},t.span({className:"caret"}," ")),t.ul({className:"dropdown-menu"},[n("Edit",i.editPath,"pencil"),n("Messages",i.messagesPath,"envelope"),t.li({className:"divider"}),n("Dashboard",i.dashboardPath),n("Public profile",i.profilePath),n("Log out",i.logoutPath)])],r),gts.dropdown(r)}})(dome,dome.el),this.gts=this.gts||{},this.gts.cloneUrlSelection=function(){function e(e,t){var n=dome.byClass("gts-repo-url",e);cull.doall(cull.partial(dome.cn.rm,"active"),n);if(t){dome.cn.add("active",t);var r=dome.byClass("gts-current-repo-url",e)[0];r.value=t.getAttribute("href").replace("ssh://",""),r.focus()}}function t(t){var n=t.getElementsByTagName("input")[0];n&&dome.on(n,"focus",function(e){this.select()}),dome.delegate.bycn("gts-repo-url",t,"click",function(n){n.preventDefault(),n.stopPropagation(),e(t,n.target)})}return t.select=e,t}(),this.gts=this.gts||{},this.gts.blob=function(){function e(e,t){var n=t[0]-1,r=t[1]-1,i=e.getElementsByTagName("li");cull.doall(function(e,t){var i=n<=t&&t<=r;dome.cn[i?"add":"rm"]("region",e)},e.getElementsByTagName("li"))}function t(e){while(e&&e.tagName!=="LI")e=e.parentNode;var t=e&&e.className.match(/L(\d+)/)[1];if(!t)return;return parseInt(t,10)}function n(t,n,r){var i=n[0];i+=n[1]!==n[0]?"-"+n[1]:"",r("#L"+i),e(t,n)}function r(e,t){return t=typeof t=="number"?t:e,[Math.min(e,t),Math.max(e,t)]}function i(e,i){var s=!1,o,u=[];dome.on(document.body,"keydown",function(e){s=e.which===16}),dome.on(document.body,"keyup",function(e){s=e.which!==16}),dome.on(e,"click",function(u){var a,f=t(u.target);if(!s||!o)o=u.target;o&&s?(a=r(t(o),f),u.preventDefault()):a=[f,f],n(e,a,i)})}function s(e,t){var n=function(){dome.cn.add("focus",this)},r=function(){dome.cn.rm("focus",this)};cull.doall(function(e){dome.on(e,"mouseenter",n),dome.on(e,"mouseleave",r)},e.getElementsByTagName("li")),i(e,t)}function o(e){var t=e.match(/\#l(\d+)(?:-(\d+))?/i);if(!t)return;return r(t[1],t[2]&&Number(t[2]))}return{trackFocus:s,regionFromUrl:o,highlightRegion:e}}(),this.gts.liveMarkdownPreview=function(t){function u(e){r.style.display=e?"block":"none",r.getElementsByTagName("div")[0].innerHTML=e}function a(){o=t.value,o!==s&&(s=o,u(i.makeHtml(o))),setTimeout(a,20)}var n=t.getAttribute("data-gts-preview-target"),r=document.getElementById(n);if(!r||typeof Showdown=="undefined")return;var i=new Showdown.converter,s,o;a()},this.gts=this.gts||{},this.gts.timeago=function(e){function t(t,n){var r=e.parse(n||t.title);if(isNaN(r.getTime()))return t;var i=t.innerHTML.trim()||t.title;return t.innerHTML=e.relative(r),t.title=i,t}var n={};return t.periodic=function(e){return n[e]||(n[e]=[],setInterval(function(){for(var t=0,r=n[e].length,i;t<r;++t)i=n[e][t],gts.timeago(i.element,i.time)},e)),function(r){return n[e].push({element:r,time:r.title}),t(r,r.title)}},t}(timeago),this.gts.collapse=function(){dome.on(document.body,"click",function(e){if(dome.data.get("toggle",e.target)!=="collapse")return;var t=dome.id(dome.data.get("target",e.target).slice(1));if(!t)return;dome.cn[dome.cn.has("in",t)?"rm":"add"]("in",t),e.preventDefault(),e.stopPropagation()})},this.gts=this.gts||{},this.gts.repository=function(e){function t(t,n){return[e.i({className:t})," "+n]}function n(n,r,i){return e.a({href:n},t(r,i))}function r(r,i){return e[i||"li"]({className:"pull-right dropdown"},[e.a({href:"#","data-toggle":"dropdown",className:"dropdown-toggle"},t("icon-cog","Admin")),e.ul({className:"dropdown-menu"},[e.li(n(r.editPath,"icon-pencil","Edit repository")),e.li(n(r.destroyPath,"icon-trash","Delete repository")),e.li({className:"divider"}),e.li(n(r.webHooksPath,"i","Web hooks")),e.li(n(r.ownershipPath,"i","Transfer ownership")),e.li(n(r.committershipsPath,"i","Manage collaborators"))])])}function i(e,t){var n=r(t,e.tagName.toLowerCase());dome.replace(e,n),this.gts.dropdown(n),dome.data.get("gts-active",n.parentNode)==="admin"&&dome.cn.add("active",n)}function s(e,t){t.watching?(e.innerHTML='<i class="icon icon-star"></i> Unwatch',e.href=t.unwatchPath):(e.innerHTML='<i class="icon icon-star-empty"></i> Watch',e.href=t.watchPath)}function o(e,t){gts.request({url:t.unwatchPath,method:"delete",type:"js",headers:{Accept:"application/javascript, text/javascript"},success:function(n){t.watching=!1,s(e,t)},error:function(){e.innerHTML="Failed, try watching again"}})}function u(e,t){gts.request({url:t.watchPath,method:"post",type:"text",headers:{Accept:"application/javascript, text/javascript"},success:function(n){t.watching=!0,t.unwatchPath=n.getResponseHeader("location"),s(e,t)},error:function(){e.innerHTML="Failed, try unwatching again"}})}function a(e,t){gts.loading(e),t.watching?o(e,t):u(e,t)}function f(e,t){var n=dome.el("a",{className:"btn"});dome.replace(e,n),s(n,t),dome.on(n,"click",function(e){e.preventDefault(),e.stopPropagation(),a(n,t)})}function l(e,t){if(!t.clonePath)return;dome.replace(e,dome.el("a",{href:t.clonePath,className:"btn"},"Clone"))}function c(e,t){if(!t.requestMergePath)return;dome.replace(e,dome.el("li",{className:"pull-right"},[dome.el("a",{href:t.requestMergePath},[dome.el("i",{className:"icon icon-random"})," Request merge"])]))}return i.build=r,f.watch=u,f.unwatch=o,f.toggleState=a,f.render=s,{admin:i,watching:f,cloning:l,mergeRequest:c}}(dome.el),this.gts=this.gts||{},this.gts.railsLinks=function(e,t){dome.on(document.body,"click",function(n){var r=dome.data.get("method",n.target);if(!r||r==="get")return!0;n.preventDefault(),n.stopPropagation();var i=n.target.href,s=dome.el("form",{method:"post",action:i,style:{display:"none"}},[dome.el("input",{name:"_method",value:r,type:"hidden"}),dome.el("input",{name:e,value:t,type:"hidden"})]);document.body.appendChild(s),s.submit()})},this.gts=this.gts||{},this.gts.cloneNameSuggestion=function(){function e(e,t){var n=/s$/.test(e)?e:e+"s";return n+"-"+t}return function(n){function f(){if(u.value&&cull.indexOf(u.value,a)<0)return;if(i.checked){u.value=a[0];return}if(s.checked){var t=o.options[o.selectedIndex];u.value=e(t.innerHTML,r)}}var r=dome.data.get("gts-repository-to-clone",n),i=dome.id("repository_owner_type_user"),s=dome.id("repository_owner_type_group"),o=dome.id("repository_owner_id_group_select"),u=dome.id("repository_name"),a=cull.reduce(function(t,n){return t.concat(e(n.innerHTML,r))},[e(dome.data.get("gts-owner",i),r)],o.options);dome.on(i,"click",f),dome.on(s,"click",f),dome.on(o,"change",f),f()}}(),this.gts=this.gts||{},this.gts.loading=function(e,t){dome.cn.add("loading",e),e.innerHTML="",t=t||{};var n=(new Spinner({lines:t.hasOwnProperty("lines")?t.lines:8,length:t.hasOwnProperty("length")?t.length:2,width:t.hasOwnProperty("width")?t.width:2,radius:t.hasOwnProperty("radius")?t.radius:3,color:t.color||"#000",speed:t.hasOwnProperty("speed")?t.speed:1,trail:t.hasOwnProperty("trail")?t.trail:100,shadow:t.hasOwnProperty("shadow")?t.shadow:!1})).spin();n.el.style.top=t.topPos||"10px",e.appendChild(n.el);var r=t.hasOwnProperty("text")?t.text:"Loading...";if(r){var i=document.createElement("span");i.innerHTML=r,e.appendChild(i)}},this.gts=this.gts||{},this.gts.oidRefInterpolator=function(e,t,n){var r=this.gts.refSelector.getCurrentRef("heads",e.innerHTML,t);r&&(e.title=r[1],e.innerHTML=r[0])},this.gts=this.gts||{},this.gts.comments=function(e){function t(t){var n=this.gts.timeago(e.span({title:t.createdAt}));return t.createdAt===t.updatedAt?n:e.span([n,"(edited ",this.gts.timeago(e.span({title:t.updatedAt})),")"])}function n(e){console.log("Edit")}function r(t){if(!t.editPath)return"";var r=e.a({href:t.editPath,events:{click:function(e){e.preventDefault(),e.stopPropagation(),n(r.parentNode.parentNode)}}},"Edit comment");return r}function i(n){var i=n.author;return e.div({className:"gts-comment"},[e.p({innerHTML:n.body}),e.p([e.img({src:i.avatarPath}),e.a({href:i.profilePath},i.name),t(n),r(n)])])}function s(e,t){if(e.length===0)return;t.style.display="block";var n=document.createElement("div");t.appendChild(n),dome.setContent(cull.map(i,e),n)}function o(e){return e<10?"0"+e:e}function u(t,n){n.style.display="block";var r=dome.byClass("gts-comment-author-ph",n)[0];if(!r)return r;var i=new Date;return dome.replace(r,e.p([e.img({src:t.avatarPath}),e.a({href:t.profilePath},t.name)," "+o(i.getHours())+":"+o(i.getMinutes())]))}return{renderComments:s,renderComment:i,personalizeForm:u}}(dome.el),this.gts=this.gts||{},this.gts.slugify=function(){function e(e){return e.toLowerCase().replace(/[^a-z0-9_\-]+/g,"-").replace(/^\-|\-$/g,"")}function t(t,n){return n===""||e(t)===n}return function(r,i){function o(){t(s,i.value)&&(i.value=e(r.value),s=r.value)}var s=r.value;dome.on(r,"keyup",o),dome.on(r,"focus",o),o()}}(),this.gts=this.gts||{},this.gts.selectDetails=function(e){function n(n){t.innerHTML=dome.data.get("description",e.options[e.selectedIndex])}var t=document.getElementById(dome.data.get("target",e));if(!t)return;dome.on(e,"change",n),n()},gts.app.env("url",window.location.href),gts.app.env("redirect",function(e){window.location=e}),window.hasOwnProperty("onpopstate")&&(window.onpopstate=function(e){gts.app.env("url",window.location.href)}),cull.doall(function(e){e.name==="csrf-param"&&gts.app.env("csrf-param",e.content),e.name==="csrf-token"&&gts.app.env("csrf-token",e.content)},document.getElementsByTagName("meta")),gts.request=function(e){e.headers=e.headers||{},e.headers["X-CSRF-Token"]=gts.app.env["csrf-token"],reqwest(e)},function(){var e=document.getElementById("project_title");e&&gts.app.env("project-title-input",e),e=document.getElementById("project_slug"),e&&gts.app.env("project-slug-input",e)}(),gts.app.data("ref-url-template",function(e,t){return gts.url.templatize(e,{ref:t})},{depends:["url","current-ref"],serializeArgs:function(e,t){return[e.split("#")[0],t]}}),gts.app.data("repository-refs",this.gts.jsonRequest,{depends:["repository-refs-url"]}),gts.app.data("current-ref",gts.url.currentRef,{depends:["url"]}),gts.app.data("user-repo-view-state",gts.cache(gts.userRepoViewState),{depends:["user-repository-path"]}),gts.app.data("current-user",cull.prop("user"),{depends:["user-repo-view-state"]}),gts.app.data("current-repository",cull.prop("repository"),{depends:["user-repo-view-state"]}),gts.app.data("repository-watch",cull.prop("watch"),{depends:["current-repository"]}),gts.app.data("repository-admin",cull.prop("admin"),{depends:["current-repository"]}),gts.app.data("blob-region",gts.blob.regionFromUrl,{depends:["url"]}),gts.app.feature("google-analytics",gts.googleAnalytics,{depends:["analytics-account","analytics-domain-name"]}),gts.app.feature("dropdown",gts.dropdown,{elements:["dropdown"]}),gts.app.feature("ref-selector",gts.refSelector,{elements:["gts-ref-selector-ph"],depends:["repository-refs","current-ref","ref-url-template"]}),gts.app.feature("oid-ref-interpolator",gts.oidRefInterpolator,{elements:["gts-oid"],depends:["repository-refs","ref-url-template"]}),gts.app.feature("tree-history",gts.treeHistory,{elements:["gts-tree-explorer"],depends:["tree-history-url"]}),gts.app.feature("commit-linker",gts.commitLinker,{elements:["gts-body"],depends:["commit-url-template","redirect"]}),gts.app.feature("profile-menu",gts.profileMenu,{elements:["login_button"],depends:["current-user"]}),gts.app.feature("clone-url-selection",gts.cloneUrlSelection,{elements:["gts-repo-urls"]}),gts.app.feature("highlight-region",gts.blob.highlightRegion,{elements:["gts-lines"],depends:["blob-region"]}),gts.app.feature("track-blob-focus",gts.blob.trackFocus,{elements:["gts-lines"],depends:["redirect"]}),gts.app.feature("live-markdown-preview",gts.liveMarkdownPreview,{elements:["gts-live-markdown-preview"]}),gts.app.feature("timeago",gts.timeago.periodic(6e4),{elements:["timeago"]}),gts.app.feature("collapse",gts.collapse),gts.app.feature("clone-name-suggestion",gts.cloneNameSuggestion,{elements:["clone-repository-form"]}),gts.app.feature("loading",gts.loading,{elements:["loading"]}),gts.app.feature("rails-links",gts.railsLinks,{depends:["csrf-param","csrf-token"]}),gts.app.feature("repository-admin-menu",gts.repository.admin,{elements:["gts-repository-admin-ph"],depends:["repository-admin"]}),gts.app.feature("repository-watching",gts.repository.watching,{elements:["gts-watch-repository-ph"],depends:["repository-watch"]}),gts.app.feature("repository-cloning",gts.repository.cloning,{elements:["gts-clone-repository-ph"],depends:["current-repository"]}),gts.app.feature("repository-merge-request",gts.repository.mergeRequest,{elements:["gts-request-merge-ph"],depends:["current-repository"]}),gts.app.feature("slugify-project-title",gts.slugify,{depends:["project-title-input","project-slug-input"]}),gts.app.feature("select-details",gts.selectDetails,{elements:["gts-option-details"]}),setTimeout(function(){gts.app.scanEnvAttrs(document.body,"data-gts-env-"),gts.app.load(document.documentElement)},10);
Binary file
@@ -16,7 +16,7 @@ this.gts.cloneNameSuggestion = (function () {
16
16
 
17
17
  var names = cull.reduce(function (memo, option) {
18
18
  return memo.concat(repoName(option.innerHTML, repo));
19
- }, [repoName(dome.data.get("gts-cloning-user", userInput), repo)], groupSelect.options);
19
+ }, [repoName(dome.data.get("gts-owner", userInput), repo)], groupSelect.options);
20
20
 
21
21
  function setSuggestion() {
22
22
  if (nameInput.value && cull.indexOf(nameInput.value, names) < 0) { return; }
@@ -26,6 +26,7 @@ this.gts.repository = (function (el) {
26
26
  el.li(link(data.editPath, "icon-pencil", "Edit repository")),
27
27
  el.li(link(data.destroyPath, "icon-trash", "Delete repository")),
28
28
  el.li({ className: "divider" }),
29
+ el.li(link(data.webHooksPath, "i", "Web hooks")),
29
30
  el.li(link(data.ownershipPath, "i", "Transfer ownership")),
30
31
  el.li(link(data.committershipsPath, "i", "Manage collaborators"))
31
32
  ])
@@ -0,0 +1,20 @@
1
+ /*global cull, dome*/
2
+ this.gts = this.gts || {};
3
+
4
+ /**
5
+ * Allows <select> options to have a data-description attribute that
6
+ * contains details about the options that will be displayed in the
7
+ * element whose id matches that of the select's data-target when
8
+ * selected.
9
+ */
10
+ this.gts.selectDetails = function (select) {
11
+ var target = document.getElementById(dome.data.get("target", select));
12
+ if (!target) { return; }
13
+
14
+ function updateDescription(e) {
15
+ target.innerHTML = dome.data.get("description", select.options[select.selectedIndex]);
16
+ }
17
+
18
+ dome.on(select, "change", updateDescription);
19
+ updateDescription();
20
+ };
@@ -0,0 +1,32 @@
1
+ /*global cull, dome, gts*/
2
+ this.gts = this.gts || {};
3
+
4
+ /**
5
+ * Mirrors the value of one field onto another by converting it to a
6
+ * slug/url-friendly string as the source is updated. If the target
7
+ * has been manually edited, it is no longer automatically updated.
8
+ */
9
+ this.gts.slugify = (function () {
10
+ function toSlug(text) {
11
+ return text.toLowerCase().replace(/[^a-z0-9_\-]+/g, "-").replace(/^\-|\-$/g, "");
12
+ }
13
+
14
+ function safeToOverwrite(source, target) {
15
+ return target === "" || toSlug(source) === target;
16
+ }
17
+
18
+ return function slugify(source, target) {
19
+ var currentSlugSource = source.value;
20
+
21
+ function attemptOverwrite() {
22
+ if (safeToOverwrite(currentSlugSource, target.value)) {
23
+ target.value = toSlug(source.value);
24
+ currentSlugSource = source.value;
25
+ }
26
+ }
27
+
28
+ dome.on(source, "keyup", attemptOverwrite);
29
+ dome.on(source, "focus", attemptOverwrite);
30
+ attemptOverwrite();
31
+ };
32
+ }());
@@ -25,6 +25,13 @@ gts.request = function (options) {
25
25
  reqwest(options);
26
26
  };
27
27
 
28
+ (function () {
29
+ var input = document.getElementById("project_title");
30
+ if (input) { gts.app.env("project-title-input", input); }
31
+ input = document.getElementById("project_slug");
32
+ if (input) { gts.app.env("project-slug-input", input); }
33
+ }());
34
+
28
35
  // Data
29
36
  gts.app.data("ref-url-template", function (url, ref) {
30
37
  return gts.url.templatize(url, { ref: ref });
@@ -146,6 +153,14 @@ gts.app.feature("repository-merge-request", gts.repository.mergeRequest, {
146
153
  depends: ["current-repository"]
147
154
  });
148
155
 
156
+ gts.app.feature("slugify-project-title", gts.slugify, {
157
+ depends: ["project-title-input", "project-slug-input"]
158
+ });
159
+
160
+ gts.app.feature("select-details", gts.selectDetails, {
161
+ elements: ["gts-option-details"]
162
+ });
163
+
149
164
  // Spin off app asynchronously so subsequent scripts have a chance
150
165
  // to register loggers etc before we roll
151
166
  setTimeout(function () {
@@ -11,7 +11,7 @@ buster.testCase("Clone name suggestion", {
11
11
  name: "repository[owner_type]",
12
12
  value: "User",
13
13
  type: "radio",
14
- data: { "gts-cloning-user": "christian" }
14
+ data: { "gts-owner": "christian" }
15
15
  }),
16
16
 
17
17
  dome.el("input", {
@@ -6,7 +6,8 @@ buster.testCase("Repository admin", {
6
6
  editPath: "/edit",
7
7
  destroyPath: "/destroy",
8
8
  ownershipPath: "/ownership",
9
- committershipsPath: "/committerships"
9
+ committershipsPath: "/committerships",
10
+ webHooksPath: "/webhooks"
10
11
  };
11
12
  },
12
13
 
@@ -31,5 +32,6 @@ buster.testCase("Repository admin", {
31
32
  assert.match(menu.innerHTML, "/destroy");
32
33
  assert.match(menu.innerHTML, "/ownership");
33
34
  assert.match(menu.innerHTML, "/committerships");
35
+ assert.match(menu.innerHTML, "/webhooks");
34
36
  }
35
37
  });
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
5
- prerelease:
4
+ version: 0.27.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christian Johansen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2013-07-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: libdolt
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thin
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sinatra
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: tiltout
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: json
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: trollop
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: minitest
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
@@ -126,7 +111,6 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rack-test
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ~>
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ~>
156
137
  - !ruby/object:Gem::Version
@@ -189,6 +170,7 @@ files:
189
170
  - vendor/ui/dist/gitorious3-capillary.min.js
190
171
  - vendor/ui/dist/gitorious3.min.css
191
172
  - vendor/ui/dist/gitorious3.min.js
173
+ - vendor/ui/favicon.ico
192
174
  - vendor/ui/iconic/lock_stroke.svg
193
175
  - vendor/ui/images/f5f5f5-980x1.png
194
176
  - vendor/ui/images/gitorious.png
@@ -215,6 +197,8 @@ files:
215
197
  - vendor/ui/js/src/components/rails-links.js
216
198
  - vendor/ui/js/src/components/ref-selector.js
217
199
  - vendor/ui/js/src/components/repository.js
200
+ - vendor/ui/js/src/components/select-details.js
201
+ - vendor/ui/js/src/components/slugify.js
218
202
  - vendor/ui/js/src/components/timeago.js
219
203
  - vendor/ui/js/src/components/tree-history.js
220
204
  - vendor/ui/js/src/components/url.js
@@ -250,27 +234,25 @@ files:
250
234
  - bin/dolt
251
235
  homepage: http://gitorious.org/gitorious/dolt
252
236
  licenses: []
237
+ metadata: {}
253
238
  post_install_message:
254
239
  rdoc_options: []
255
240
  require_paths:
256
241
  - lib
257
242
  required_ruby_version: !ruby/object:Gem::Requirement
258
- none: false
259
243
  requirements:
260
- - - ! '>='
244
+ - - '>='
261
245
  - !ruby/object:Gem::Version
262
246
  version: '0'
263
247
  required_rubygems_version: !ruby/object:Gem::Requirement
264
- none: false
265
248
  requirements:
266
- - - ! '>='
249
+ - - '>='
267
250
  - !ruby/object:Gem::Version
268
251
  version: '0'
269
252
  requirements: []
270
253
  rubyforge_project: dolt
271
- rubygems_version: 1.8.25
254
+ rubygems_version: 2.0.3
272
255
  signing_key:
273
- specification_version: 3
256
+ specification_version: 4
274
257
  summary: Dolt serves git trees and syntax highlighted blobs
275
258
  test_files: []
276
- has_rdoc: