emblem-source 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/dist/emblem.js +306 -311
  3. data/dist/emblem.min.js +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjcyYzQ4YzFjZGZmZjI2NTQxZDJkNmU5OTdkNWIzODkzMGQ2ZjYzYg==
4
+ MjI1ZDM3YTlmODA2ZGVhNzg2NzM3ODBlNDU1NTRhM2RkNjRmNzcyNA==
5
5
  data.tar.gz: !binary |-
6
- MzlmOTBjZTQ3Y2I2N2YzYjE1Y2UxODI4ZWYxNjJkMmJiNWViZjM3Ng==
6
+ OGI0NGQyNDRjOWVlOWU5YTM0MTY4YTI2YmY3OTg1NDM1MGMxYTNiYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODZkOWU2M2U0ZjdhZjFiMDY1Y2RiOTMxYTY2YjE0ODM0YzM1ZWRmYmEyYjU4
10
- NGZjYjQ5MWM1ZDMzZjJlZjRhZTA5MjNlYWUzZWE5MzRiNmM3MzIxODA3ZmRj
11
- MDE0ZGY5OGVlYjMyZWFmNzkzMTllMjA5MTJkODIwMGY1YTkwMTE=
9
+ NmVlNDVkOTQ5MzVkYzJlMTJlY2MyZWNhM2ZjYTViNWIzNDQ2ZGNmY2Q5MzBi
10
+ ZGZiMmMxZmQwOGZjNTVjYjFjNzQ3NDMzYWVjYTMxNDU4MjliMGMzMWJkMjhm
11
+ MTA5NmNkZTk4MWZmZjA0OWU0YTMwNDhkNzQxNjNiNjkzNTBkMzU=
12
12
  data.tar.gz: !binary |-
13
- YjJjOTFhMmQ5YTExMTg2MzYyNzdhMjNkMmEwODgxNTI3MTNiMzdmZjgxMWVl
14
- NmY2ODIyOWZkMmM1ZTg2YmU0NmU4ZmVmMmQxNmVmOTgxNzlhYTI4MDRmZWQy
15
- ZGExOGE2ZDk2MDMyMTUxN2FjOWUwOTJlOWZjMGM0MTJjYTU3Y2Y=
13
+ Y2Q2MjFjOWQxNDA1OTliMjkxNTRhMjBkMzFhNWM4OTYzOGVlYTI4NjRkYzhi
14
+ MjZlMjJjOTJjNTJkMjI3OWMwOTQ2MzZjMjMxOGU4MTdhN2IzZDU2NTBmZjhl
15
+ YjU4MzFkNTI2YmY1MWRmNDMyYTE5YjI0NGRkMTRlZTc4ZjZmMTk=
data/dist/emblem.js CHANGED
@@ -1,197 +1,128 @@
1
- (function(root) {
1
+ ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
+ var Emblem;
2
3
 
3
-
4
- (function(root) {
5
- var StringScanner;
6
- StringScanner = (function() {
7
- function StringScanner(str) {
8
- this.str = str != null ? str : '';
9
- this.str = '' + this.str;
10
- this.pos = 0;
11
- this.lastMatch = {
12
- reset: function() {
13
- this.str = null;
14
- this.captures = [];
15
- return this;
16
- }
17
- }.reset();
18
- this;
4
+ Emblem = require('./emblem');
5
+
6
+ Emblem.throwCompileError = function(line, msg) {
7
+ throw new Error("Emblem syntax error, line " + line + ": " + msg);
8
+ };
9
+
10
+ Emblem.registerPartial = function(handlebarsVariant, partialName, text) {
11
+ if (!text) {
12
+ text = partialName;
13
+ partialName = handlebarsVariant;
14
+ handlebarsVariant = Handlebars;
15
+ }
16
+ return handlebarsVariant.registerPartial(partialName, Emblem.compile(handlebarsVariant, text));
17
+ };
18
+
19
+ Emblem.parse = function(string) {
20
+ var e, line, lines, msg, processed;
21
+ try {
22
+ processed = Emblem.Preprocessor.processSync(string);
23
+ return Emblem.Parser.parse(processed);
24
+ } catch (_error) {
25
+ e = _error;
26
+ if (e instanceof Emblem.Parser.SyntaxError) {
27
+ lines = string.split("\n");
28
+ line = lines[e.line - 1];
29
+ msg = "" + e.message + "\n" + line + "\n";
30
+ msg += new Array(e.column).join("-");
31
+ msg += "^";
32
+ return Emblem.throwCompileError(e.line, msg);
33
+ } else {
34
+ throw e;
19
35
  }
20
- StringScanner.prototype.bol = function() {
21
- return this.pos <= 0 || (this.str[this.pos - 1] === "\n");
22
- };
23
- StringScanner.prototype.captures = function() {
24
- return this.lastMatch.captures;
25
- };
26
- StringScanner.prototype.check = function(pattern) {
27
- var matches;
28
- if (this.str.substr(this.pos).search(pattern) !== 0) {
29
- this.lastMatch.reset();
30
- return null;
31
- }
32
- matches = this.str.substr(this.pos).match(pattern);
33
- this.lastMatch.str = matches[0];
34
- this.lastMatch.captures = matches.slice(1);
35
- return this.lastMatch.str;
36
- };
37
- StringScanner.prototype.checkUntil = function(pattern) {
38
- var matches, patternPos;
39
- patternPos = this.str.substr(this.pos).search(pattern);
40
- if (patternPos < 0) {
41
- this.lastMatch.reset();
42
- return null;
43
- }
44
- matches = this.str.substr(this.pos + patternPos).match(pattern);
45
- this.lastMatch.captures = matches.slice(1);
46
- return this.lastMatch.str = this.str.substr(this.pos, patternPos) + matches[0];
47
- };
48
- StringScanner.prototype.clone = function() {
49
- var clone, prop, value, _ref;
50
- clone = new this.constructor(this.str);
51
- clone.pos = this.pos;
52
- clone.lastMatch = {};
53
- _ref = this.lastMatch;
54
- for (prop in _ref) {
55
- value = _ref[prop];
56
- clone.lastMatch[prop] = value;
57
- }
58
- return clone;
59
- };
60
- StringScanner.prototype.concat = function(str) {
61
- this.str += str;
62
- return this;
63
- };
64
- StringScanner.prototype.eos = function() {
65
- return this.pos === this.str.length;
66
- };
67
- StringScanner.prototype.exists = function(pattern) {
68
- var matches, patternPos;
69
- patternPos = this.str.substr(this.pos).search(pattern);
70
- if (patternPos < 0) {
71
- this.lastMatch.reset();
72
- return null;
73
- }
74
- matches = this.str.substr(this.pos + patternPos).match(pattern);
75
- this.lastMatch.str = matches[0];
76
- this.lastMatch.captures = matches.slice(1);
77
- return patternPos;
78
- };
79
- StringScanner.prototype.getch = function() {
80
- return this.scan(/./);
81
- };
82
- StringScanner.prototype.match = function() {
83
- return this.lastMatch.str;
84
- };
85
- StringScanner.prototype.matches = function(pattern) {
86
- this.check(pattern);
87
- return this.matchSize();
88
- };
89
- StringScanner.prototype.matched = function() {
90
- return this.lastMatch.str != null;
91
- };
92
- StringScanner.prototype.matchSize = function() {
93
- if (this.matched()) {
94
- return this.match().length;
95
- } else {
96
- return null;
97
- }
98
- };
99
- StringScanner.prototype.peek = function(len) {
100
- return this.str.substr(this.pos, len);
101
- };
102
- StringScanner.prototype.pointer = function() {
103
- return this.pos;
104
- };
105
- StringScanner.prototype.setPointer = function(pos) {
106
- pos = +pos;
107
- if (pos < 0) {
108
- pos = 0;
109
- }
110
- if (pos > this.str.length) {
111
- pos = this.str.length;
112
- }
113
- return this.pos = pos;
114
- };
115
- StringScanner.prototype.reset = function() {
116
- this.lastMatch.reset();
117
- this.pos = 0;
118
- return this;
119
- };
120
- StringScanner.prototype.rest = function() {
121
- return this.str.substr(this.pos);
122
- };
123
- StringScanner.prototype.scan = function(pattern) {
124
- var chk;
125
- chk = this.check(pattern);
126
- if (chk != null) {
127
- this.pos += chk.length;
128
- }
129
- return chk;
130
- };
131
- StringScanner.prototype.scanUntil = function(pattern) {
132
- var chk;
133
- chk = this.checkUntil(pattern);
134
- if (chk != null) {
135
- this.pos += chk.length;
136
- }
137
- return chk;
138
- };
139
- StringScanner.prototype.skip = function(pattern) {
140
- this.scan(pattern);
141
- return this.matchSize();
142
- };
143
- StringScanner.prototype.skipUntil = function(pattern) {
144
- this.scanUntil(pattern);
145
- return this.matchSize();
146
- };
147
- StringScanner.prototype.string = function() {
148
- return this.str;
149
- };
150
- StringScanner.prototype.terminate = function() {
151
- this.pos = this.str.length;
152
- this.lastMatch.reset();
153
- return this;
154
- };
155
- StringScanner.prototype.toString = function() {
156
- return "#<StringScanner " + (this.eos() ? 'fin' : "" + this.pos + "/" + this.str.length + " @ " + (this.str.length > 8 ? "" + (this.str.substr(0, 5)) + "..." : this.str)) + ">";
157
- };
158
- return StringScanner;
159
- })();
160
- StringScanner.prototype.beginningOfLine = StringScanner.prototype.bol;
161
- StringScanner.prototype.clear = StringScanner.prototype.terminate;
162
- StringScanner.prototype.dup = StringScanner.prototype.clone;
163
- StringScanner.prototype.endOfString = StringScanner.prototype.eos;
164
- StringScanner.prototype.exist = StringScanner.prototype.exists;
165
- StringScanner.prototype.getChar = StringScanner.prototype.getch;
166
- StringScanner.prototype.position = StringScanner.prototype.pointer;
167
- StringScanner.StringScanner = StringScanner;
168
- this.StringScanner = StringScanner;
169
- })(this);
36
+ }
37
+ };
170
38
 
171
- var StringScanner = this.StringScanner;
39
+ Emblem.precompile = function(handlebarsVariant, string, options) {
40
+ var ast;
41
+ if (options == null) {
42
+ options = {};
43
+ }
44
+ Emblem.handlebarsVariant = handlebarsVariant;
45
+ ast = Emblem.parse(string);
46
+ return handlebarsVariant.precompile(ast, options);
47
+ };
172
48
 
49
+ Emblem.compile = function(handlebarsVariant, string, options) {
50
+ var ast;
51
+ if (options == null) {
52
+ options = {};
53
+ }
54
+ Emblem.handlebarsVariant = handlebarsVariant;
55
+ ast = Emblem.parse(string);
56
+ return handlebarsVariant.compile(ast, options);
57
+ };
173
58
 
174
- // lib/emblem.js
175
- var Emblem;
59
+ },{"./emblem":3}],2:[function(require,module,exports){
60
+ var ENV, Emblem, _base, _base1;
176
61
 
177
- this.Emblem = {};
62
+ Emblem = require('./emblem');
178
63
 
179
- Emblem = this.Emblem;
64
+ if (typeof window !== "undefined" && window !== null) {
65
+ Emblem.compileScriptTags = function() {
66
+ if (typeof Ember === "undefined" || Ember === null) {
67
+ throw new Error("Can't run Emblem.enableEmber before Ember has been defined");
68
+ }
69
+ if (typeof document !== "undefined" && document !== null) {
70
+ return Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]', Ember.$(document)).each(function() {
71
+ var handlebarsVariant, script, templateName;
72
+ script = Ember.$(this);
73
+ handlebarsVariant = script.attr('type') === 'text/x-raw-handlebars' ? Handlebars : Ember.Handlebars;
74
+ templateName = script.attr('data-template-name') || script.attr('id') || 'application';
75
+ Ember.TEMPLATES[templateName] = Emblem.compile(handlebarsVariant, script.html());
76
+ return script.remove();
77
+ });
78
+ }
79
+ };
80
+ window.ENV || (window.ENV = {});
81
+ ENV = window.ENV;
82
+ ENV.EMBER_LOAD_HOOKS || (ENV.EMBER_LOAD_HOOKS = {});
83
+ (_base = ENV.EMBER_LOAD_HOOKS).application || (_base.application = []);
84
+ (_base1 = ENV.EMBER_LOAD_HOOKS)['Ember.Application'] || (_base1['Ember.Application'] = []);
85
+ ENV.EMBER_LOAD_HOOKS.application.push(Emblem.compileScriptTags);
86
+ ENV.EMBER_LOAD_HOOKS['Ember.Application'].push(function(Application) {
87
+ if (Application.initializer) {
88
+ return Application.initializer({
89
+ name: 'emblemDomTemplates',
90
+ before: 'registerComponents',
91
+ initialize: Emblem.compileScriptTags
92
+ });
93
+ } else {
94
+ return Ember.onLoad('application', Emblem.compileScriptTags);
95
+ }
96
+ });
97
+ }
180
98
 
181
- Emblem.VERSION = "0.3.1";
99
+ },{"./emblem":3}],3:[function(require,module,exports){
100
+ var global=self;var Emblem;
182
101
 
102
+ this.Emblem = {};
183
103
 
104
+ Emblem = this.Emblem;
184
105
 
106
+ Emblem.VERSION = "0.3.2";
185
107
 
108
+ module.exports = Emblem;
186
109
 
110
+ if (typeof window !== "undefined" && window !== null) {
111
+ window.Emblem = Emblem;
112
+ }
187
113
 
114
+ global.Emblem = Emblem;
188
115
 
116
+ require('./parser');
189
117
 
118
+ require('./compiler');
190
119
 
120
+ require('./preprocessor');
191
121
 
192
- ;
193
- // lib/parser.js
122
+ require('./emberties');
194
123
 
124
+ },{"./compiler":1,"./emberties":2,"./parser":4,"./preprocessor":5}],4:[function(require,module,exports){
125
+ var Emblem = require('./emblem');
195
126
 
196
127
  Emblem.Parser = (function() {
197
128
  /*
@@ -760,10 +691,10 @@ Emblem.Parser = (function() {
760
691
  }
761
692
 
762
693
  function peg$computePosDetails(pos) {
763
- function advance(details, pos) {
694
+ function advance(details, startPos, endPos) {
764
695
  var p, ch;
765
696
 
766
- for (p = 0; p < pos; p++) {
697
+ for (p = startPos; p < endPos; p++) {
767
698
  ch = input.charAt(p);
768
699
  if (ch === "\n") {
769
700
  if (!details.seenCR) { details.line++; }
@@ -785,8 +716,8 @@ Emblem.Parser = (function() {
785
716
  peg$cachedPos = 0;
786
717
  peg$cachedPosDetails = { line: 1, column: 1, seenCR: false };
787
718
  }
719
+ advance(peg$cachedPosDetails, peg$cachedPos, pos);
788
720
  peg$cachedPos = pos;
789
- advance(peg$cachedPosDetails, peg$cachedPos);
790
721
  }
791
722
 
792
723
  return peg$cachedPosDetails;
@@ -881,7 +812,7 @@ Emblem.Parser = (function() {
881
812
  }
882
813
  if (s2 !== null) {
883
814
  peg$reportedPos = s0;
884
- s1 = peg$c3(s1,s2);
815
+ s1 = peg$c3(s1, s2);
885
816
  if (s1 === null) {
886
817
  peg$currPos = s0;
887
818
  s0 = s1;
@@ -1076,7 +1007,7 @@ Emblem.Parser = (function() {
1076
1007
  s7 = peg$parseTERM();
1077
1008
  if (s7 !== null) {
1078
1009
  peg$reportedPos = s0;
1079
- s1 = peg$c15(s3,s5);
1010
+ s1 = peg$c15(s3, s5);
1080
1011
  if (s1 === null) {
1081
1012
  peg$currPos = s0;
1082
1013
  s0 = s1;
@@ -1444,7 +1375,7 @@ Emblem.Parser = (function() {
1444
1375
  }
1445
1376
  if (s3 !== null) {
1446
1377
  peg$reportedPos = s0;
1447
- s1 = peg$c27(s2,s3);
1378
+ s1 = peg$c27(s2, s3);
1448
1379
  if (s1 === null) {
1449
1380
  peg$currPos = s0;
1450
1381
  s0 = s1;
@@ -1596,7 +1527,7 @@ Emblem.Parser = (function() {
1596
1527
  s2 = peg$parsehtmlTerminator();
1597
1528
  if (s2 !== null) {
1598
1529
  peg$reportedPos = s0;
1599
- s1 = peg$c30(s1,s2);
1530
+ s1 = peg$c30(s1, s2);
1600
1531
  if (s1 === null) {
1601
1532
  peg$currPos = s0;
1602
1533
  s0 = s1;
@@ -1631,7 +1562,7 @@ Emblem.Parser = (function() {
1631
1562
  s4 = peg$parsemustacheNestedContent();
1632
1563
  if (s4 !== null) {
1633
1564
  peg$reportedPos = s0;
1634
- s1 = peg$c31(s1,s4);
1565
+ s1 = peg$c31(s1, s4);
1635
1566
  if (s1 === null) {
1636
1567
  peg$currPos = s0;
1637
1568
  s0 = s1;
@@ -1725,7 +1656,7 @@ Emblem.Parser = (function() {
1725
1656
  }
1726
1657
  if (s2 !== null) {
1727
1658
  peg$reportedPos = s0;
1728
- s1 = peg$c3(s1,s2);
1659
+ s1 = peg$c3(s1, s2);
1729
1660
  if (s1 === null) {
1730
1661
  peg$currPos = s0;
1731
1662
  s0 = s1;
@@ -1872,7 +1803,7 @@ Emblem.Parser = (function() {
1872
1803
  s2 = peg$parsemustacheOrBlock();
1873
1804
  if (s2 !== null) {
1874
1805
  peg$reportedPos = s0;
1875
- s1 = peg$c36(s1,s2);
1806
+ s1 = peg$c36(s1, s2);
1876
1807
  if (s1 === null) {
1877
1808
  peg$currPos = s0;
1878
1809
  s0 = s1;
@@ -1923,7 +1854,7 @@ Emblem.Parser = (function() {
1923
1854
  }
1924
1855
  if (s5 !== null) {
1925
1856
  peg$reportedPos = s0;
1926
- s1 = peg$c37(s1,s3,s4,s5);
1857
+ s1 = peg$c37(s1, s3, s4, s5);
1927
1858
  if (s1 === null) {
1928
1859
  peg$currPos = s0;
1929
1860
  s0 = s1;
@@ -2026,7 +1957,7 @@ Emblem.Parser = (function() {
2026
1957
  }
2027
1958
  if (s2 !== null) {
2028
1959
  peg$reportedPos = s0;
2029
- s1 = peg$c41(s1,s2);
1960
+ s1 = peg$c41(s1, s2);
2030
1961
  if (s1 === null) {
2031
1962
  peg$currPos = s0;
2032
1963
  s0 = s1;
@@ -2438,7 +2369,7 @@ Emblem.Parser = (function() {
2438
2369
  s5 = peg$parsepathIdent();
2439
2370
  if (s5 !== null) {
2440
2371
  peg$reportedPos = s3;
2441
- s4 = peg$c57(s4,s5);
2372
+ s4 = peg$c57(s4, s5);
2442
2373
  if (s4 === null) {
2443
2374
  peg$currPos = s3;
2444
2375
  s3 = s4;
@@ -2461,7 +2392,7 @@ Emblem.Parser = (function() {
2461
2392
  s5 = peg$parsepathIdent();
2462
2393
  if (s5 !== null) {
2463
2394
  peg$reportedPos = s3;
2464
- s4 = peg$c57(s4,s5);
2395
+ s4 = peg$c57(s4, s5);
2465
2396
  if (s4 === null) {
2466
2397
  peg$currPos = s3;
2467
2398
  s3 = s4;
@@ -2479,7 +2410,7 @@ Emblem.Parser = (function() {
2479
2410
  }
2480
2411
  if (s2 !== null) {
2481
2412
  peg$reportedPos = s0;
2482
- s1 = peg$c58(s1,s2);
2413
+ s1 = peg$c58(s1, s2);
2483
2414
  if (s1 === null) {
2484
2415
  peg$currPos = s0;
2485
2416
  s0 = s1;
@@ -2944,7 +2875,7 @@ Emblem.Parser = (function() {
2944
2875
  s4 = peg$parseanyDedent();
2945
2876
  if (s4 !== null) {
2946
2877
  peg$reportedPos = s0;
2947
- s1 = peg$c86(s1,s2,s3);
2878
+ s1 = peg$c86(s1, s2, s3);
2948
2879
  if (s1 === null) {
2949
2880
  peg$currPos = s0;
2950
2881
  s0 = s1;
@@ -3085,7 +3016,7 @@ Emblem.Parser = (function() {
3085
3016
  }
3086
3017
  if (s3 !== null) {
3087
3018
  peg$reportedPos = s0;
3088
- s1 = peg$c92(s1,s2,s3);
3019
+ s1 = peg$c92(s1, s2, s3);
3089
3020
  if (s1 === null) {
3090
3021
  peg$currPos = s0;
3091
3022
  s0 = s1;
@@ -3161,7 +3092,7 @@ Emblem.Parser = (function() {
3161
3092
  s3 = peg$parseTERM();
3162
3093
  if (s3 !== null) {
3163
3094
  peg$reportedPos = s0;
3164
- s1 = peg$c93(s1,s2);
3095
+ s1 = peg$c93(s1, s2);
3165
3096
  if (s1 === null) {
3166
3097
  peg$currPos = s0;
3167
3098
  s0 = s1;
@@ -3322,7 +3253,7 @@ Emblem.Parser = (function() {
3322
3253
  }
3323
3254
  if (s2 !== null) {
3324
3255
  peg$reportedPos = s0;
3325
- s1 = peg$c94(s1,s2);
3256
+ s1 = peg$c94(s1, s2);
3326
3257
  if (s1 === null) {
3327
3258
  peg$currPos = s0;
3328
3259
  s0 = s1;
@@ -3392,7 +3323,7 @@ Emblem.Parser = (function() {
3392
3323
  }
3393
3324
  if (s2 !== null) {
3394
3325
  peg$reportedPos = s0;
3395
- s1 = peg$c94(s1,s2);
3326
+ s1 = peg$c94(s1, s2);
3396
3327
  if (s1 === null) {
3397
3328
  peg$currPos = s0;
3398
3329
  s0 = s1;
@@ -4213,7 +4144,7 @@ Emblem.Parser = (function() {
4213
4144
  }
4214
4145
  if (s3 !== null) {
4215
4146
  peg$reportedPos = peg$currPos;
4216
- s4 = peg$c128(s1,s2);
4147
+ s4 = peg$c128(s1, s2);
4217
4148
  if (s4) {
4218
4149
  s4 = peg$c1;
4219
4150
  } else {
@@ -4263,7 +4194,7 @@ Emblem.Parser = (function() {
4263
4194
  }
4264
4195
  if (s3 !== null) {
4265
4196
  peg$reportedPos = s0;
4266
- s1 = peg$c129(s1,s2,s3);
4197
+ s1 = peg$c129(s1, s2, s3);
4267
4198
  if (s1 === null) {
4268
4199
  peg$currPos = s0;
4269
4200
  s0 = s1;
@@ -4564,7 +4495,7 @@ Emblem.Parser = (function() {
4564
4495
  s3 = peg$parseactionValue();
4565
4496
  if (s3 !== null) {
4566
4497
  peg$reportedPos = s0;
4567
- s1 = peg$c137(s1,s3);
4498
+ s1 = peg$c137(s1, s3);
4568
4499
  if (s1 === null) {
4569
4500
  peg$currPos = s0;
4570
4501
  s0 = s1;
@@ -4728,7 +4659,7 @@ Emblem.Parser = (function() {
4728
4659
  }
4729
4660
  if (s4 !== null) {
4730
4661
  peg$reportedPos = peg$currPos;
4731
- s5 = peg$c141(s1,s3);
4662
+ s5 = peg$c141(s1, s3);
4732
4663
  if (s5) {
4733
4664
  s5 = peg$c1;
4734
4665
  } else {
@@ -4736,7 +4667,7 @@ Emblem.Parser = (function() {
4736
4667
  }
4737
4668
  if (s5 !== null) {
4738
4669
  peg$reportedPos = s0;
4739
- s1 = peg$c142(s1,s3);
4670
+ s1 = peg$c142(s1, s3);
4740
4671
  if (s1 === null) {
4741
4672
  peg$currPos = s0;
4742
4673
  s0 = s1;
@@ -4784,7 +4715,7 @@ Emblem.Parser = (function() {
4784
4715
  s3 = peg$parsepathIdNode();
4785
4716
  if (s3 !== null) {
4786
4717
  peg$reportedPos = s0;
4787
- s1 = peg$c143(s1,s3);
4718
+ s1 = peg$c143(s1, s3);
4788
4719
  if (s1 === null) {
4789
4720
  peg$currPos = s0;
4790
4721
  s0 = s1;
@@ -4824,7 +4755,7 @@ Emblem.Parser = (function() {
4824
4755
  s3 = peg$parseattributeTextNodes();
4825
4756
  if (s3 !== null) {
4826
4757
  peg$reportedPos = s0;
4827
- s1 = peg$c144(s1,s3);
4758
+ s1 = peg$c144(s1, s3);
4828
4759
  if (s1 === null) {
4829
4760
  peg$currPos = s0;
4830
4761
  s0 = s1;
@@ -5756,71 +5687,14 @@ Emblem.Parser = (function() {
5756
5687
  };
5757
5688
  })();
5758
5689
 
5690
+ module.exports = Emblem.Parser;
5759
5691
 
5760
- ;
5761
- // lib/compiler.js
5762
- var Emblem;
5763
-
5764
-
5765
-
5766
- Emblem.throwCompileError = function(line, msg) {
5767
- throw new Error("Emblem syntax error, line " + line + ": " + msg);
5768
- };
5769
-
5770
- Emblem.registerPartial = function(handlebarsVariant, partialName, text) {
5771
- if (!text) {
5772
- text = partialName;
5773
- partialName = handlebarsVariant;
5774
- handlebarsVariant = Handlebars;
5775
- }
5776
- return handlebarsVariant.registerPartial(partialName, Emblem.compile(handlebarsVariant, text));
5777
- };
5778
-
5779
- Emblem.parse = function(string) {
5780
- var line, lines, msg, processed;
5781
- try {
5782
- processed = Emblem.Preprocessor.processSync(string);
5783
- return Emblem.Parser.parse(processed);
5784
- } catch (e) {
5785
- if (e instanceof Emblem.Parser.SyntaxError) {
5786
- lines = string.split("\n");
5787
- line = lines[e.line - 1];
5788
- msg = "" + e.message + "\n" + line + "\n";
5789
- msg += new Array(e.column).join("-");
5790
- msg += "^";
5791
- return Emblem.throwCompileError(e.line, msg);
5792
- } else {
5793
- throw e;
5794
- }
5795
- }
5796
- };
5797
-
5798
- Emblem.precompile = function(handlebarsVariant, string, options) {
5799
- var ast;
5800
- if (options == null) {
5801
- options = {};
5802
- }
5803
- Emblem.handlebarsVariant = handlebarsVariant;
5804
- ast = Emblem.parse(string);
5805
- return handlebarsVariant.precompile(ast, options);
5806
- };
5807
-
5808
- Emblem.compile = function(handlebarsVariant, string, options) {
5809
- var ast;
5810
- if (options == null) {
5811
- options = {};
5812
- }
5813
- Emblem.handlebarsVariant = handlebarsVariant;
5814
- ast = Emblem.parse(string);
5815
- return handlebarsVariant.compile(ast, options);
5816
- };
5817
- ;
5818
- // lib/preprocessor.js
5692
+ },{"./emblem":3}],5:[function(require,module,exports){
5819
5693
  var Emblem, Preprocessor, StringScanner;
5820
5694
 
5695
+ StringScanner = require('StringScanner');
5821
5696
 
5822
-
5823
-
5697
+ Emblem = require('./emblem');
5824
5698
 
5825
5699
  Emblem.Preprocessor = Preprocessor = (function() {
5826
5700
  var DEDENT, INDENT, TERM, UNMATCHED_DEDENT, anyWhitespaceAndNewlinesTouchingEOF, any_whitespaceFollowedByNewlines_, processInput, ws;
@@ -6011,53 +5885,174 @@ Emblem.Preprocessor = Preprocessor = (function() {
6011
5885
  return Preprocessor;
6012
5886
 
6013
5887
  })();
6014
- ;
6015
- // lib/emberties.js
6016
- var ENV, Emblem, _base, _base1;
6017
-
6018
-
6019
-
6020
- Emblem.compileScriptTags = function() {
6021
- if (typeof Ember === "undefined" || Ember === null) {
6022
- throw new Error("Can't run Emblem.enableEmber before Ember has been defined");
6023
- }
6024
- if (typeof document !== "undefined" && document !== null) {
6025
- return Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]', Ember.$(document)).each(function() {
6026
- var handlebarsVariant, script, templateName;
6027
- script = Ember.$(this);
6028
- handlebarsVariant = script.attr('type') === 'text/x-raw-handlebars' ? Handlebars : Ember.Handlebars;
6029
- templateName = script.attr('data-template-name') || script.attr('id') || 'application';
6030
- Ember.TEMPLATES[templateName] = Emblem.compile(handlebarsVariant, script.html());
6031
- return script.remove();
6032
- });
6033
- }
6034
- };
6035
-
6036
- this.ENV || (this.ENV = {});
6037
5888
 
6038
- ENV = this.ENV;
6039
-
6040
- ENV.EMBER_LOAD_HOOKS || (ENV.EMBER_LOAD_HOOKS = {});
6041
-
6042
- (_base = ENV.EMBER_LOAD_HOOKS).application || (_base.application = []);
6043
-
6044
- (_base1 = ENV.EMBER_LOAD_HOOKS)['Ember.Application'] || (_base1['Ember.Application'] = []);
6045
-
6046
- ENV.EMBER_LOAD_HOOKS.application.push(Emblem.compileScriptTags);
6047
-
6048
- ENV.EMBER_LOAD_HOOKS['Ember.Application'].push(function(Application) {
6049
- if (Application.initializer) {
6050
- return Application.initializer({
6051
- name: 'emblemDomTemplates',
6052
- before: 'registerComponents',
6053
- initialize: Emblem.compileScriptTags
6054
- });
6055
- } else {
6056
- return Ember.onLoad('application', Emblem.compileScriptTags);
6057
- }
6058
- });
6059
- ;
6060
-
6061
- root.Emblem = Emblem;
5889
+ },{"./emblem":3,"StringScanner":6}],6:[function(require,module,exports){
5890
+ (function() {
5891
+ var StringScanner;
5892
+ StringScanner = (function() {
5893
+ function StringScanner(str) {
5894
+ this.str = str != null ? str : '';
5895
+ this.str = '' + this.str;
5896
+ this.pos = 0;
5897
+ this.lastMatch = {
5898
+ reset: function() {
5899
+ this.str = null;
5900
+ this.captures = [];
5901
+ return this;
5902
+ }
5903
+ }.reset();
5904
+ this;
5905
+ }
5906
+ StringScanner.prototype.bol = function() {
5907
+ return this.pos <= 0 || (this.str[this.pos - 1] === "\n");
5908
+ };
5909
+ StringScanner.prototype.captures = function() {
5910
+ return this.lastMatch.captures;
5911
+ };
5912
+ StringScanner.prototype.check = function(pattern) {
5913
+ var matches;
5914
+ if (this.str.substr(this.pos).search(pattern) !== 0) {
5915
+ this.lastMatch.reset();
5916
+ return null;
5917
+ }
5918
+ matches = this.str.substr(this.pos).match(pattern);
5919
+ this.lastMatch.str = matches[0];
5920
+ this.lastMatch.captures = matches.slice(1);
5921
+ return this.lastMatch.str;
5922
+ };
5923
+ StringScanner.prototype.checkUntil = function(pattern) {
5924
+ var matches, patternPos;
5925
+ patternPos = this.str.substr(this.pos).search(pattern);
5926
+ if (patternPos < 0) {
5927
+ this.lastMatch.reset();
5928
+ return null;
5929
+ }
5930
+ matches = this.str.substr(this.pos + patternPos).match(pattern);
5931
+ this.lastMatch.captures = matches.slice(1);
5932
+ return this.lastMatch.str = this.str.substr(this.pos, patternPos) + matches[0];
5933
+ };
5934
+ StringScanner.prototype.clone = function() {
5935
+ var clone, prop, value, _ref;
5936
+ clone = new this.constructor(this.str);
5937
+ clone.pos = this.pos;
5938
+ clone.lastMatch = {};
5939
+ _ref = this.lastMatch;
5940
+ for (prop in _ref) {
5941
+ value = _ref[prop];
5942
+ clone.lastMatch[prop] = value;
5943
+ }
5944
+ return clone;
5945
+ };
5946
+ StringScanner.prototype.concat = function(str) {
5947
+ this.str += str;
5948
+ return this;
5949
+ };
5950
+ StringScanner.prototype.eos = function() {
5951
+ return this.pos === this.str.length;
5952
+ };
5953
+ StringScanner.prototype.exists = function(pattern) {
5954
+ var matches, patternPos;
5955
+ patternPos = this.str.substr(this.pos).search(pattern);
5956
+ if (patternPos < 0) {
5957
+ this.lastMatch.reset();
5958
+ return null;
5959
+ }
5960
+ matches = this.str.substr(this.pos + patternPos).match(pattern);
5961
+ this.lastMatch.str = matches[0];
5962
+ this.lastMatch.captures = matches.slice(1);
5963
+ return patternPos;
5964
+ };
5965
+ StringScanner.prototype.getch = function() {
5966
+ return this.scan(/./);
5967
+ };
5968
+ StringScanner.prototype.match = function() {
5969
+ return this.lastMatch.str;
5970
+ };
5971
+ StringScanner.prototype.matches = function(pattern) {
5972
+ this.check(pattern);
5973
+ return this.matchSize();
5974
+ };
5975
+ StringScanner.prototype.matched = function() {
5976
+ return this.lastMatch.str != null;
5977
+ };
5978
+ StringScanner.prototype.matchSize = function() {
5979
+ if (this.matched()) {
5980
+ return this.match().length;
5981
+ } else {
5982
+ return null;
5983
+ }
5984
+ };
5985
+ StringScanner.prototype.peek = function(len) {
5986
+ return this.str.substr(this.pos, len);
5987
+ };
5988
+ StringScanner.prototype.pointer = function() {
5989
+ return this.pos;
5990
+ };
5991
+ StringScanner.prototype.setPointer = function(pos) {
5992
+ pos = +pos;
5993
+ if (pos < 0) {
5994
+ pos = 0;
5995
+ }
5996
+ if (pos > this.str.length) {
5997
+ pos = this.str.length;
5998
+ }
5999
+ return this.pos = pos;
6000
+ };
6001
+ StringScanner.prototype.reset = function() {
6002
+ this.lastMatch.reset();
6003
+ this.pos = 0;
6004
+ return this;
6005
+ };
6006
+ StringScanner.prototype.rest = function() {
6007
+ return this.str.substr(this.pos);
6008
+ };
6009
+ StringScanner.prototype.scan = function(pattern) {
6010
+ var chk;
6011
+ chk = this.check(pattern);
6012
+ if (chk != null) {
6013
+ this.pos += chk.length;
6014
+ }
6015
+ return chk;
6016
+ };
6017
+ StringScanner.prototype.scanUntil = function(pattern) {
6018
+ var chk;
6019
+ chk = this.checkUntil(pattern);
6020
+ if (chk != null) {
6021
+ this.pos += chk.length;
6022
+ }
6023
+ return chk;
6024
+ };
6025
+ StringScanner.prototype.skip = function(pattern) {
6026
+ this.scan(pattern);
6027
+ return this.matchSize();
6028
+ };
6029
+ StringScanner.prototype.skipUntil = function(pattern) {
6030
+ this.scanUntil(pattern);
6031
+ return this.matchSize();
6032
+ };
6033
+ StringScanner.prototype.string = function() {
6034
+ return this.str;
6035
+ };
6036
+ StringScanner.prototype.terminate = function() {
6037
+ this.pos = this.str.length;
6038
+ this.lastMatch.reset();
6039
+ return this;
6040
+ };
6041
+ StringScanner.prototype.toString = function() {
6042
+ return "#<StringScanner " + (this.eos() ? 'fin' : "" + this.pos + "/" + this.str.length + " @ " + (this.str.length > 8 ? "" + (this.str.substr(0, 5)) + "..." : this.str)) + ">";
6043
+ };
6044
+ return StringScanner;
6045
+ })();
6046
+ StringScanner.prototype.beginningOfLine = StringScanner.prototype.bol;
6047
+ StringScanner.prototype.clear = StringScanner.prototype.terminate;
6048
+ StringScanner.prototype.dup = StringScanner.prototype.clone;
6049
+ StringScanner.prototype.endOfString = StringScanner.prototype.eos;
6050
+ StringScanner.prototype.exist = StringScanner.prototype.exists;
6051
+ StringScanner.prototype.getChar = StringScanner.prototype.getch;
6052
+ StringScanner.prototype.position = StringScanner.prototype.pointer;
6053
+ StringScanner.StringScanner = StringScanner;
6054
+ module.exports = StringScanner;
6055
+ }).call(this);
6062
6056
 
6063
- }(this));
6057
+ },{}]},{},[3])
6058
+ ;
data/dist/emblem.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(e){(function(e){var t;t=function(){function e(e){this.str=e!=null?e:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset(),this}return e.prototype.bol=function(){return this.pos<=0||this.str[this.pos-1]==="\n"},e.prototype.captures=function(){return this.lastMatch.captures},e.prototype.check=function(e){var t;return this.str.substr(this.pos).search(e)!==0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),this.lastMatch.str)},e.prototype.checkUntil=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.captures=t.slice(1),this.lastMatch.str=this.str.substr(this.pos,n)+t[0])},e.prototype.clone=function(){var e,t,n,r;e=new this.constructor(this.str),e.pos=this.pos,e.lastMatch={},r=this.lastMatch;for(t in r)n=r[t],e.lastMatch[t]=n;return e},e.prototype.concat=function(e){return this.str+=e,this},e.prototype.eos=function(){return this.pos===this.str.length},e.prototype.exists=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),n)},e.prototype.getch=function(){return this.scan(/./)},e.prototype.match=function(){return this.lastMatch.str},e.prototype.matches=function(e){return this.check(e),this.matchSize()},e.prototype.matched=function(){return this.lastMatch.str!=null},e.prototype.matchSize=function(){return this.matched()?this.match().length:null},e.prototype.peek=function(e){return this.str.substr(this.pos,e)},e.prototype.pointer=function(){return this.pos},e.prototype.setPointer=function(e){return e=+e,e<0&&(e=0),e>this.str.length&&(e=this.str.length),this.pos=e},e.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},e.prototype.rest=function(){return this.str.substr(this.pos)},e.prototype.scan=function(e){var t;return t=this.check(e),t!=null&&(this.pos+=t.length),t},e.prototype.scanUntil=function(e){var t;return t=this.checkUntil(e),t!=null&&(this.pos+=t.length),t},e.prototype.skip=function(e){return this.scan(e),this.matchSize()},e.prototype.skipUntil=function(e){return this.scanUntil(e),this.matchSize()},e.prototype.string=function(){return this.str},e.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},e.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},e}(),t.prototype.beginningOfLine=t.prototype.bol,t.prototype.clear=t.prototype.terminate,t.prototype.dup=t.prototype.clone,t.prototype.endOfString=t.prototype.eos,t.prototype.exist=t.prototype.exists,t.prototype.getChar=t.prototype.getch,t.prototype.position=t.prototype.pointer,t.StringScanner=t,this.StringScanner=t})(this);var t=this.StringScanner,n;this.Emblem={},n=this.Emblem,n.VERSION="0.3.1",n.Parser=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i){function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,-1).join(", ")+" or "+e[e.length-1]}return i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}this.expected=e,this.found=t,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=s(e,t)}function r(e){function Ur(){return e.substring(Hr,Pr)}function zr(){return Hr}function Wr(){return Vr(Hr).line}function Xr(){return Vr(Hr).column}function Vr(t){function n(t,n){var r,i;for(r=0;r<n;r++)i=e.charAt(r),i==="\n"?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):i==="\r"||i==="\u2028"||i==="\u2029"?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Br!==t&&(Br>t&&(Br=0,jr={line:1,column:1,seenCR:!1}),Br=t,n(jr,Br)),jr}function $r(e){if(Pr<Fr)return;Pr>Fr&&(Fr=Pr,Ir=[]),Ir.push(e)}function Jr(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function Kr(){var e;return e=Qr(),e}function Qr(){var e,t,n,r,i,s,l,c,h;return e=Pr,t=Yr(),t!==null?(n=Pr,r=Vs(),r!==null?(i=Gr(),i!==null?(s=Gs(),s!==null?(l=Js(),l!==null?(c=Ws(),c!==null?(h=Yr(),h!==null?(Hr=n,r=a(h),r===null?(Pr=n,n=r):n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o),n===null&&(n=u),n!==null?(Hr=e,t=f(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function Gr(){var t,n,r,i;return t=Pr,n=Pr,e.charCodeAt(Pr)===61?(r=l,Pr++):(r=null,qr===0&&$r(c)),r!==null?(i=Gs(),i!==null?(r=[r,i],n=r):(Pr=n,n=o)):(Pr=n,n=o),n===null&&(n=u),n!==null?(e.substr(Pr,4)===h?(r=h,Pr+=4):(r=null,qr===0&&$r(p)),r!==null?(n=[n,r],t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function Yr(){var e,t,n;e=Pr,t=[],n=Zr();while(n!==null)t.push(n),n=Zr();return t!==null&&(Hr=e,t=v(t)),t===null?(Pr=e,e=t):e=t,e}function Zr(){var e,t;return qr++,e=ti(),e===null&&(e=oi(),e===null&&(e=ei())),qr--,e===null&&(t=null,qr===0&&$r(m)),e}function ei(){var e,t;return qr++,e=ni(),e===null&&(e=pi(),e===null&&(e=zi(),e===null&&(e=ii()))),qr--,e===null&&(t=null,qr===0&&$r(g)),e}function ti(){var e,t,n;return e=Pr,t=Gs(),t!==null?(n=Js(),n!==null?(Hr=e,t=y(),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function ni(){var t,n,r,i,s,u,a,f;t=Pr,e.charCodeAt(Pr)===62?(n=b,Pr++):(n=null,qr===0&&$r(w));if(n!==null){r=Gs();if(r!==null){i=ri();if(i!==null){s=Gs();if(s!==null){u=[],a=xi();while(a!==null)u.push(a),a=xi();u!==null?(a=Gs(),a!==null?(f=Js(),f!==null?(Hr=t,n=E(i,u),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)}else Pr=t,t=o}else Pr=t,t=o}else Pr=t,t=o}else Pr=t,t=o;return t}function ri(){var t,n,r,i;t=Pr,n=Pr,r=[],S.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(x));if(i!==null)while(i!==null)r.push(i),S.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(x));else r=o;return r!==null&&(r=e.substring(n,Pr)),n=r,n!==null&&(Hr=t,n=T(n)),n===null?(Pr=t,t=n):t=n,t}function ii(){var e,t;return e=Pr,t=gi(),t===null&&(t=ai()),t!==null&&(Hr=e,t=N(t)),t===null?(Pr=e,e=t):e=t,e}function si(){var e,t,n,r,i,s,u,a;e=Pr,t=eo();if(t!==null){n=Js();if(n!==null){r=[],i=Pr,s=Ws();if(s!==null){u=[],a=si();if(a!==null)while(a!==null)u.push(a),a=si();else u=o;u!==null?(a=Ks(),a!==null?(s=[s,u,a],i=s):(Pr=i,i=o)):(Pr=i,i=o)}else Pr=i,i=o;while(i!==null){r.push(i),i=Pr,s=Ws();if(s!==null){u=[],a=si();if(a!==null)while(a!==null)u.push(a),a=si();else u=o;u!==null?(a=Ks(),a!==null?(s=[s,u,a],i=s):(Pr=i,i=o)):(Pr=i,i=o)}else Pr=i,i=o}r!==null?(Hr=e,t=y(),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o}else Pr=e,e=o;return e}function oi(){var t,n,r;return t=Pr,e.charCodeAt(Pr)===47?(n=C,Pr++):(n=null,qr===0&&$r(k)),n!==null?(r=si(),r!==null?(Hr=t,n=y(),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function ui(){var t,n,r;return t=Pr,e.charCodeAt(Pr)===47?(n=C,Pr++):(n=null,qr===0&&$r(k)),n!==null?(r=eo(),r!==null?(n=[n,r],t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function ai(){var e;return e=fi(),e===null&&(e=di()),e}function fi(){var t,n,r;return t=Pr,n=Pr,qr++,L.test(e.charAt(Pr))?(r=e.charAt(Pr),Pr++):(r=null,qr===0&&$r(A)),qr--,r!==null?(Pr=n,n=u):n=o,n!==null?(r=di(),r!==null?(Hr=t,n=O(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function li(){var t,n,r,i,s,a,f;t=Pr,e.charCodeAt(Pr)===32?(n=M,Pr++):(n=null,qr===0&&$r(_));if(n!==null){r=Wi();if(r!==null){i=Pr,s=Ws();if(s!==null){a=[],f=Ri();if(f!==null)while(f!==null)a.push(f),f=Ri();else a=o;a!==null?(f=Vs(),f!==null?(s=[s,a,f],i=s):(Pr=i,i=o)):(Pr=i,i=o)}else Pr=i,i=o;i===null&&(i=u),i!==null?(Hr=t,n=D(r,i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)}else Pr=t,t=o}else Pr=t,t=o;return t}function ci(){var e,t,n,r,i;e=Pr,t=[],n=ti();while(n!==null)t.push(n),n=ti();return t!==null?(n=Ws(),n!==null?(r=Yr(),r!==null?(i=Vs(),i!==null?(Hr=e,t=P(r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e}function hi(){var e,t,n,r,i;return e=vi(),e===null&&(e=Pr,t=Gs(),t!==null?(n=gi(),n!==null?(Hr=e,t=H(n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e===null&&(e=Pr,t=Gs(),t!==null?(n=ui(),n===null&&(n=u),n!==null?(r=Js(),r!==null?(i=ci(),i===null&&(i=u),i!==null?(Hr=e,t=P(i),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e===null&&(e=li()))),e}function pi(){var e,t,n;return e=Pr,t=gs(),t!==null?(n=hi(),n!==null?(Hr=e,t=B(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function di(){var e,t,n,r,i;return e=Pr,t=yi(),t!==null?(n=Gs(),n!==null?(r=ui(),r===null&&(r=u),r!==null?(i=mi(),i!==null?(Hr=e,t=j(t,i),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e}function Qr(){var e,t,n,r,i,s,l,c,h,p;e=Pr,t=Yr();if(t!==null){n=Pr,r=Vs();if(r!==null){i=Gr();if(i!==null){s=Gs();if(s!==null){l=Js();if(l!==null){c=[],h=ti();while(h!==null)c.push(h),h=ti();c!==null?(h=Ws(),h!==null?(p=Yr(),p!==null?(Hr=n,r=a(p),r===null?(Pr=n,n=r):n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)}else Pr=n,n=o}else Pr=n,n=o}else Pr=n,n=o}else Pr=n,n=o;n===null&&(n=u),n!==null?(Hr=e,t=f(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o;return e}function vi(){var t,n,r,i;return t=Pr,e.substr(Pr,2)===F?(n=F,Pr+=2):(n=null,qr===0&&$r(I)),n!==null?(r=Gs(),r!==null?(i=ei(),i!==null?(Hr=t,n=P(i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function mi(){var e,t,n,r,i,s,a;e=Pr,t=vi(),t===null&&(t=zi()),t!==null&&(Hr=e,t=q(t)),t===null?(Pr=e,e=t):e=t;if(e===null){e=Pr,t=Js();if(t!==null){n=Pr,r=[],i=ti();while(i!==null)r.push(i),i=ti();r!==null?(i=Ws(),i!==null?(s=Qr(),s!==null?(a=Vs(),a!==null?(r=[r,i,s,a],n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o),n===null&&(n=u),n!==null?(Hr=e,t=R(n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o}return e}function gi(){var e,t,n;return e=Pr,t=vs(),t!==null?(n=di(),n!==null?(Hr=e,t=U(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function yi(){var t,n,r,i,s,a;t=Pr,e.charCodeAt(Pr)===62?(n=b,Pr++):(n=null,qr===0&&$r(w)),n===null&&(n=u);if(n!==null){r=Gs();if(r!==null){i=Mi();if(i!==null){s=[],a=xi();while(a!==null)s.push(a),a=xi();s!==null?(a=Ti(),a===null&&(a=u),a!==null?(Hr=t,n=z(n,i,s,a),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)}else Pr=t,t=o}else Pr=t,t=o}else Pr=t,t=o;return t}function bi(){var e,t;return e=Pr,t=Os(),t!==null&&(Hr=e,t=W(t)),t===null?(Pr=e,e=t):e=t,e===null&&(e=Pr,t=Ms(),t!==null&&(Hr=e,t=X(t)),t===null?(Pr=e,e=t):e=t,e===null&&(e=Pr,t=_s(),t!==null&&(Hr=e,t=V(t)),t===null?(Pr=e,e=t):e=t)),e}function wi(){var e;return e=Ei(),e===null&&(e=Si()),e}function Ei(){var e,t,n,r;e=Pr,t=Ms();if(t!==null){n=[],r=_s();while(r!==null)n.push(r),r=_s();n!==null?(Hr=e,t=$(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o;return e}function Si(){var e,t,n;e=Pr,t=[],n=_s();if(n!==null)while(n!==null)t.push(n),n=_s();else t=o;return t!==null&&(Hr=e,t=J(t)),t===null?(Pr=e,e=t):e=t,e}function xi(){var e,t,n;return e=Pr,t=Gs(),t!==null?(n=bi(),n===null&&(n=Li()),n!==null?(Hr=e,t=K(n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function Ti(){var e,t,n;e=Pr,t=[],n=ki();if(n!==null)while(n!==null)t.push(n),n=ki();else t=o;return t!==null&&(Hr=e,t=Q(t)),t===null?(Pr=e,e=t):e=t,e}function Ni(){var t,n,r,i;qr++,e.substr(Pr,2)===Y?(t=Y,Pr+=2):(t=null,qr===0&&$r(Z));if(t===null){e.charCodeAt(Pr)===46?(t=et,Pr++):(t=null,qr===0&&$r(tt));if(t===null){t=Pr,n=Pr,r=[],nt.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(rt));if(i!==null)while(i!==null)r.push(i),nt.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(rt));else r=o;r!==null&&(r=e.substring(n,Pr)),n=r,n!==null?(r=Pr,qr++,e.charCodeAt(Pr)===61?(i=l,Pr++):(i=null,qr===0&&$r(c)),qr--,i===null?r=u:(Pr=r,r=o),r!==null?(Hr=t,n=it(n),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)}}return qr--,t===null&&(n=null,qr===0&&$r(G)),t}function Ci(){var t,n,r;qr++,t=Pr,n=[],r=Hs(),r===null&&(e.charCodeAt(Pr)===58?(r=ot,Pr++):(r=null,qr===0&&$r(ut)));while(r!==null)n.push(r),r=Hs(),r===null&&(e.charCodeAt(Pr)===58?(r=ot,Pr++):(r=null,qr===0&&$r(ut)));return n!==null&&(n=e.substring(t,Pr)),t=n,qr--,t===null&&(n=null,qr===0&&$r(st)),t}function ki(){var t,n,r,i,s,u;return t=Pr,n=Gs(),n!==null?(r=Pr,i=Ci(),i!==null?(e.charCodeAt(Pr)===61?(s=l,Pr++):(s=null,qr===0&&$r(c)),s!==null?(u=Pi(),u!==null?(i=[i,s,u],r=i):(Pr=r,r=o)):(Pr=r,r=o)):(Pr=r,r=o),r===null&&(r=Pr,i=Ci(),i!==null?(e.charCodeAt(Pr)===61?(s=l,Pr++):(s=null,qr===0&&$r(c)),s!==null?(u=Di(),u!==null?(i=[i,s,u],r=i):(Pr=r,r=o)):(Pr=r,r=o)):(Pr=r,r=o),r===null&&(r=Pr,i=Ci(),i!==null?(e.charCodeAt(Pr)===61?(s=l,Pr++):(s=null,qr===0&&$r(c)),s!==null?(u=Mi(),u!==null?(i=[i,s,u],r=i):(Pr=r,r=o)):(Pr=r,r=o)):(Pr=r,r=o),r===null&&(r=Pr,i=Ci(),i!==null?(e.charCodeAt(Pr)===61?(s=l,Pr++):(s=null,qr===0&&$r(c)),s!==null?(u=_i(),u!==null?(i=[i,s,u],r=i):(Pr=r,r=o)):(Pr=r,r=o)):(Pr=r,r=o)))),r!==null?(Hr=t,n=at(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function Li(){var e;return e=Pi(),e===null&&(e=Di(),e===null&&(e=Mi(),e===null&&(e=_i()))),e}function Ai(){var e,t,n,r,i,s;e=Pr,t=Ni();if(t!==null){n=[],r=Pr,i=Oi(),i!==null?(s=Ni(),s!==null?(Hr=r,i=ft(i,s),i===null?(Pr=r,r=i):r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Oi(),i!==null?(s=Ni(),s!==null?(Hr=r,i=ft(i,s),i===null?(Pr=r,r=i):r=i):(Pr=r,r=o)):(Pr=r,r=o);n!==null?(Hr=e,t=lt(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o;return e}function Oi(){var t,n;return qr++,ht.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(pt)),qr--,t===null&&(n=null,qr===0&&$r(ct)),t}function Mi(){var e,t;return e=Pr,t=Ai(),t!==null&&(Hr=e,t=dt(t)),t===null?(Pr=e,e=t):e=t,e}function _i(){var e,t;return e=Pr,t=ji(),t!==null&&(Hr=e,t=vt(t)),t===null?(Pr=e,e=t):e=t,e}function Di(){var e,t;return e=Pr,t=Bi(),t!==null&&(Hr=e,t=mt(t)),t===null?(Pr=e,e=t):e=t,e}function Pi(){var e,t;return e=Pr,t=Hi(),t!==null&&(Hr=e,t=gt(t)),t===null?(Pr=e,e=t):e=t,e}function Hi(){var t,n;return qr++,e.substr(Pr,4)===bt?(t=bt,Pr+=4):(t=null,qr===0&&$r(wt)),t===null&&(e.substr(Pr,5)===Et?(t=Et,Pr+=5):(t=null,qr===0&&$r(St))),qr--,t===null&&(n=null,qr===0&&$r(yt)),t}function Bi(){var t,n,r,i;qr++,t=Pr,n=Pr,r=[],Tt.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(Nt));if(i!==null)while(i!==null)r.push(i),Tt.test(e.charAt(Pr))?(i=e.charAt(Pr),Pr++):(i=null,qr===0&&$r(Nt));else r=o;return r!==null&&(r=e.substring(n,Pr)),n=r,n!==null&&(Hr=t,n=Ct(n)),n===null?(Pr=t,t=n):t=n,qr--,t===null&&(n=null,qr===0&&$r(xt)),t}function ji(){var t,n,r,i,s;return t=Pr,n=Pr,e.charCodeAt(Pr)===34?(r=kt,Pr++):(r=null,qr===0&&$r(Lt)),r!==null?(i=Fi(),i!==null?(e.charCodeAt(Pr)===34?(s=kt,Pr++):(s=null,qr===0&&$r(Lt)),s!==null?(r=[r,i,s],n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o),n===null&&(n=Pr,e.charCodeAt(Pr)===39?(r=At,Pr++):(r=null,qr===0&&$r(Ot)),r!==null?(i=Ii(),i!==null?(e.charCodeAt(Pr)===39?(s=At,Pr++):(s=null,qr===0&&$r(Ot)),s!==null?(r=[r,i,s],n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)),n!==null&&(Hr=t,n=Mt(n)),n===null?(Pr=t,t=n):t=n,t}function Fi(){var t,n,r,i,s;t=Pr,n=[],r=Pr,i=Pr,qr++,s=Js(),qr--,s===null?i=u:(Pr=i,i=o),i!==null?(_t.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Dt)),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Pr,qr++,s=Js(),qr--,s===null?i=u:(Pr=i,i=o),i!==null?(_t.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Dt)),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);return n!==null&&(n=e.substring(t,Pr)),t=n,t}function Ii(){var t,n,r,i,s;t=Pr,n=[],r=Pr,i=Pr,qr++,s=Js(),qr--,s===null?i=u:(Pr=i,i=o),i!==null?(Pt.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Ht)),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Pr,qr++,s=Js(),qr--,s===null?i=u:(Pr=i,i=o),i!==null?(Pt.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Ht)),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);return n!==null&&(n=e.substring(t,Pr)),t=n,t}function qi(){var t;return Bt.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(jt)),t}function Ri(){var e,t,n,r,i;e=Pr,t=Ws();if(t!==null){n=Wi();if(n!==null){r=[],i=Ri();while(i!==null)r.push(i),i=Ri();r!==null?(i=Ks(),i!==null?(Hr=e,t=Ft(t,n,r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)}else Pr=e,e=o}else Pr=e,e=o;return e===null&&(e=Wi()),e}function Ui(){var t,n,r;return t=Pr,It.test(e.charAt(Pr))?(n=e.charAt(Pr),Pr++):(n=null,qr===0&&$r(qt)),n!==null?(e.charCodeAt(Pr)===32?(r=M,Pr++):(r=null,qr===0&&$r(_)),r===null&&(r=u),r!==null?(Hr=t,n=it(n),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t===null&&(t=Pr,n=Pr,qr++,e.charCodeAt(Pr)===60?(r=Rt,Pr++):(r=null,qr===0&&$r(Ut)),qr--,r!==null?(Pr=n,n=u):n=o,n!==null&&(Hr=t,n=zt()),n===null?(Pr=t,t=n):t=n),t}function zi(){var e,t,n,r,i,s,a;e=Pr,t=Ui();if(t!==null){n=Wi();if(n!==null){r=Pr,i=Ws();if(i!==null){s=[],a=Ri();while(a!==null)s.push(a),a=Ri();s!==null?(a=Vs(),a!==null?(i=[i,s,a],r=i):(Pr=r,r=o)):(Pr=r,r=o)}else Pr=r,r=o;r===null&&(r=u),r!==null?(Hr=e,t=Wt(t,n,r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o}else Pr=e,e=o;return e}function Wi(){var e,t,n,r,i,s;e=Pr,t=ns(),t===null&&(t=u);if(t!==null){n=[],r=Pr,i=Ji(),i!==null?(s=ns(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Ji(),i!==null?(s=ns(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);n!==null?(r=Js(),r!==null?(Hr=e,t=Xt(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)}else Pr=e,e=o;return e}function Xi(){var t,n,r,i;return t=Pr,e.charCodeAt(Pr)===34?(n=kt,Pr++):(n=null,qr===0&&$r(Lt)),n!==null?(r=Vi(),r!==null?(e.charCodeAt(Pr)===34?(i=kt,Pr++):(i=null,qr===0&&$r(Lt)),i!==null?(Hr=t,n=K(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t===null&&(t=Pr,e.charCodeAt(Pr)===39?(n=At,Pr++):(n=null,qr===0&&$r(Ot)),n!==null?(r=$i(),r!==null?(e.charCodeAt(Pr)===39?(i=At,Pr++):(i=null,qr===0&&$r(Ot)),i!==null?(Hr=t,n=K(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)),t}function Vi(){var e,t,n,r,i,s;e=Pr,t=Yi(),t===null&&(t=u);if(t!==null){n=[],r=Pr,i=Ji(),i!==null?(s=Yi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Ji(),i!==null?(s=Yi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);n!==null?(Hr=e,t=Vt(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o;return e}function $i(){var e,t,n,r,i,s;e=Pr,t=Zi(),t===null&&(t=u);if(t!==null){n=[],r=Pr,i=Ji(),i!==null?(s=Zi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);while(r!==null)n.push(r),r=Pr,i=Ji(),i!==null?(s=Zi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Pr=r,r=o)):(Pr=r,r=o);n!==null?(Hr=e,t=Vt(t,n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o;return e}function Ji(){var e;return e=Gi(),e===null&&(e=Qi()),e}function Ki(){var t,n,r,i,s;t=Pr,n=Pr,qr++,e.charCodeAt(Pr)===123?(r=$t,Pr++):(r=null,qr===0&&$r(Jt)),qr--,r===null?n=u:(Pr=n,n=o);if(n!==null){r=Pr,i=[],Kt.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Qt));while(s!==null)i.push(s),Kt.test(e.charAt(Pr))?(s=e.charAt(Pr),Pr++):(s=null,qr===0&&$r(Qt));i!==null&&(i=e.substring(r,Pr)),r=i,r!==null?(Hr=t,n=Gt(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)}else Pr=t,t=o;return t}function Qi(){var e,t,n,r,i,s;return e=Pr,t=as(),t!==null?(n=Gs(),n!==null?(r=Ki(),r!==null?(i=Gs(),i!==null?(s=cs(),s!==null?(Hr=e,t=Yt(r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e===null&&(e=Pr,t=ps(),t!==null?(n=Gs(),n!==null?(r=Ki(),r!==null?(i=Gs(),i!==null?(s=ds(),s!==null?(Hr=e,t=Yt(r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)),e}function Gi(){var e,t,n,r,i,s;return e=Pr,t=fs(),t!==null?(n=Gs(),n!==null?(r=Ki(),r!==null?(i=Gs(),i!==null?(s=hs(),s!==null?(Hr=e,t=Zt(r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e}function Yi(){var t,n,r,i;t=Pr,n=Pr,r=[],i=es();if(i!==null)while(i!==null)r.push(i),i=es();else r=o;return r!==null&&(r=e.substring(n,Pr)),n=r,n!==null&&(Hr=t,n=en(n)),n===null?(Pr=t,t=n):t=n,t}function Zi(){var t,n,r,i;t=Pr,n=Pr,r=[],i=ts();if(i!==null)while(i!==null)r.push(i),i=ts();else r=o;return r!==null&&(r=e.substring(n,Pr)),n=r,n!==null&&(Hr=t,n=en(n)),n===null?(Pr=t,t=n):t=n,t}function es(){var t,n,r;return t=Pr,n=Pr,qr++,r=is(),r===null&&(e.charCodeAt(Pr)===34?(r=kt,Pr++):(r=null,qr===0&&$r(Lt))),qr--,r===null?n=u:(Pr=n,n=o),n!==null?(e.length>Pr?(r=e.charAt(Pr),Pr++):(r=null,qr===0&&$r(tn)),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function ts(){var t,n,r;return t=Pr,n=Pr,qr++,r=is(),r===null&&(e.charCodeAt(Pr)===39?(r=At,Pr++):(r=null,qr===0&&$r(Ot))),qr--,r===null?n=u:(Pr=n,n=o),n!==null?(e.length>Pr?(r=e.charAt(Pr),Pr++):(r=null,qr===0&&$r(tn)),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function ns(){var t,n,r,i;t=Pr,n=Pr,r=[],i=rs();if(i!==null)while(i!==null)r.push(i),i=rs();else r=o;return r!==null&&(r=e.substring(n,Pr)),n=r,n!==null&&(Hr=t,n=en(n)),n===null?(Pr=t,t=n):t=n,t}function rs(){var t,n,r;return t=Pr,n=Pr,qr++,r=is(),qr--,r===null?n=u:(Pr=n,n=o),n!==null?(e.length>Pr?(r=e.charAt(Pr),Pr++):(r=null,qr===0&&$r(tn)),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function is(){var e;return e=fs(),e===null&&(e=as(),e===null&&(e=ps(),e===null&&(e=Ks(),e===null&&(e=Js())))),e}function ss(){var e,t,n,r,i,s;return e=Pr,t=us(),t!==null?(n=Gs(),n!==null?(r=Ki(),r!==null?(i=Gs(),i!==null?(s=ls(),s!==null?(Hr=e,t=Yt(r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o)):(Pr=e,e=o),e}function os(){var e;return e=ss(),e===null&&(e=Gi(),e===null&&(e=Qi())),e}function us(){var t,n;return qr++,e.charCodeAt(Pr)===123?(t=$t,Pr++):(t=null,qr===0&&$r(Jt)),qr--,t===null&&(n=null,qr===0&&$r(nn)),t}function as(){var t,n;return qr++,e.substr(Pr,2)===sn?(t=sn,Pr+=2):(t=null,qr===0&&$r(on)),qr--,t===null&&(n=null,qr===0&&$r(rn)),t}function fs(){var t,n;return qr++,e.substr(Pr,3)===an?(t=an,Pr+=3):(t=null,qr===0&&$r(fn)),qr--,t===null&&(n=null,qr===0&&$r(un)),t}function ls(){var t,n;return qr++,e.charCodeAt(Pr)===125?(t=cn,Pr++):(t=null,qr===0&&$r(hn)),qr--,t===null&&(n=null,qr===0&&$r(ln)),t}function cs(){var t,n;return qr++,e.substr(Pr,2)===dn?(t=dn,Pr+=2):(t=null,qr===0&&$r(vn)),qr--,t===null&&(n=null,qr===0&&$r(pn)),t}function hs(){var t,n;return qr++,e.substr(Pr,3)===gn?(t=gn,Pr+=3):(t=null,qr===0&&$r(yn)),qr--,t===null&&(n=null,qr===0&&$r(mn)),t}function ps(){var t,n;return qr++,e.substr(Pr,2)===wn?(t=wn,Pr+=2):(t=null,qr===0&&$r(En)),qr--,t===null&&(n=null,qr===0&&$r(bn)),t}function ds(){var t,n;return qr++,e.charCodeAt(Pr)===125?(t=cn,Pr++):(t=null,qr===0&&$r(hn)),qr--,t===null&&(n=null,qr===0&&$r(Sn)),t}function vs(){var t,n,r;return t=Pr,e.substr(Pr,2)===xn?(n=xn,Pr+=2):(n=null,qr===0&&$r(Tn)),n!==null?(e.charCodeAt(Pr)===32?(r=M,Pr++):(r=null,qr===0&&$r(_)),r===null&&(r=u),r!==null?(Hr=t,n=Nn(),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t===null&&(t=Pr,e.charCodeAt(Pr)===61?(n=l,Pr++):(n=null,qr===0&&$r(c)),n!==null?(e.charCodeAt(Pr)===32?(r=M,Pr++):(r=null,qr===0&&$r(_)),r===null&&(r=u),r!==null?(Hr=t,n=Cn(),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)),t}function ms(){var t,n,r,i,s;return t=Pr,n=Is(),n===null&&(n=u),n!==null?(r=wi(),r===null&&(r=u),r!==null?(e.charCodeAt(Pr)===47?(i=C,Pr++):(i=null,qr===0&&$r(k)),i===null&&(i=u),i!==null?(Hr=Pr,s=kn(n,r),s?s=u:s=o,s!==null?(n=[n,r,i,s],t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function gs(){var e,t,n,r,i;e=Pr,t=ms();if(t!==null){n=[],r=os();while(r!==null)n.push(r),r=os();if(n!==null){r=[],i=ys();while(i!==null)r.push(i),i=ys();r!==null?(Hr=e,t=Ln(t,n,r),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)}else Pr=e,e=o}else Pr=e,e=o;return e}function wi(){var e,t,n,r;e=Pr,t=[],n=Pr,r=Ms(),r!==null&&(Hr=n,r=An(r)),r===null?(Pr=n,n=r):n=r,n===null&&(n=Pr,r=_s(),r!==null&&(Hr=n,r=On(r)),r===null?(Pr=n,n=r):n=r);if(n!==null)while(n!==null)t.push(n),n=Pr,r=Ms(),r!==null&&(Hr=n,r=An(r)),r===null?(Pr=n,n=r):n=r,n===null&&(n=Pr,r=_s(),r!==null&&(Hr=n,r=On(r)),r===null?(Pr=n,n=r):n=r);else t=o;return t!==null&&(Hr=e,t=Mn(t)),t===null?(Pr=e,e=t):e=t,e}function ys(){var t,n,r;t=Pr,n=[],e.charCodeAt(Pr)===32?(r=M,Pr++):(r=null,qr===0&&$r(_));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(Pr)===32?(r=M,Pr++):(r=null,qr===0&&$r(_));else n=o;return n!==null?(r=Ss(),r===null&&(r=Ts(),r===null&&(r=Ns(),r===null&&(r=Cs()))),r!==null?(Hr=t,n=_n(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function bs(){var t;return Dn.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(Pn)),t===null&&(t=Us()),t}function ws(){var e,t;return e=Es(),e===null&&(e=Pr,t=Mi(),t!==null&&(Hr=e,t=Hn(t)),t===null?(Pr=e,e=t):e=t),e}function Es(){var t,n,r,i,s;return t=Pr,n=Pr,e.charCodeAt(Pr)===34?(r=kt,Pr++):(r=null,qr===0&&$r(Lt)),r!==null?(i=yi(),i!==null?(e.charCodeAt(Pr)===34?(s=kt,Pr++):(s=null,qr===0&&$r(Lt)),s!==null?(r=[r,i,s],n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o),n===null&&(n=Pr,e.charCodeAt(Pr)===39?(r=At,Pr++):(r=null,qr===0&&$r(Ot)),r!==null?(i=yi(),i!==null?(e.charCodeAt(Pr)===39?(s=At,Pr++):(s=null,qr===0&&$r(Ot)),s!==null?(r=[r,i,s],n=r):(Pr=n,n=o)):(Pr=n,n=o)):(Pr=n,n=o)),n!==null&&(Hr=t,n=Mt(n)),n===null?(Pr=t,t=n):t=n,t}function Ss(){var t,n,r,i;return t=Pr,n=zs(),n!==null?(e.charCodeAt(Pr)===61?(r=l,Pr++):(r=null,qr===0&&$r(c)),r!==null?(i=ws(),i!==null?(Hr=t,n=Bn(n,i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function xs(){var t,n,r,i,s,u;t=Pr,e.charCodeAt(Pr)===123?(n=$t,Pr++):(n=null,qr===0&&$r(Jt));if(n!==null){r=Gs();if(r!==null){i=Pr,s=[],u=bs(),u===null&&(e.charCodeAt(Pr)===32?(u=M,Pr++):(u=null,qr===0&&$r(_)));if(u!==null)while(u!==null)s.push(u),u=bs(),u===null&&(e.charCodeAt(Pr)===32?(u=M,Pr++):(u=null,qr===0&&$r(_)));else s=o;s!==null&&(s=e.substring(i,Pr)),i=s,i!==null?(s=Gs(),s!==null?(e.charCodeAt(Pr)===125?(u=cn,Pr++):(u=null,qr===0&&$r(hn)),u!==null?(Hr=t,n=jn(i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)}else Pr=t,t=o}else Pr=t,t=o;if(t===null){t=Pr,n=[],r=bs();if(r!==null)while(r!==null)n.push(r),r=bs();else n=o;n!==null&&(n=e.substring(t,Pr)),t=n}return t}function Ts(){var t,n,r,i,s,a;return t=Pr,n=Ci(),n!==null?(e.charCodeAt(Pr)===61?(r=l,Pr++):(r=null,qr===0&&$r(c)),r!==null?(i=xs(),i!==null?(s=Pr,qr++,e.charCodeAt(Pr)===33?(a=Fn,Pr++):(a=null,qr===0&&$r(In)),qr--,a===null?s=u:(Pr=s,s=o),s!==null?(Hr=Pr,a=qn(n,i),a?a=u:a=o,a!==null?(Hr=t,n=Rn(n,i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function Ns(){var t,n,r,i;return t=Pr,n=Ci(),n!==null?(e.charCodeAt(Pr)===61?(r=l,Pr++):(r=null,qr===0&&$r(c)),r!==null?(i=Mi(),i!==null?(Hr=t,n=Un(n,i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function Cs(){var t,n,r,i;return t=Pr,n=Ci(),n!==null?(e.charCodeAt(Pr)===61?(r=l,Pr++):(r=null,qr===0&&$r(c)),r!==null?(i=Xi(),i!==null?(Hr=t,n=zn(n,i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t}function ks(){var t,n,r;t=Pr,n=[],r=As();while(r!==null)n.push(r),r=As();return n!==null&&(n=e.substring(t,Pr)),t=n,t}function Ls(){var e;return e=ji(),e===null&&(e=Li()),e}function As(){var t;return t=qi(),t===null&&(Tt.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(Nt)),t===null&&(e.charCodeAt(Pr)===95?(t=Wn,Pr++):(t=null,qr===0&&$r(Xn)),t===null&&(e.charCodeAt(Pr)===45?(t=Vn,Pr++):(t=null,qr===0&&$r($n))))),t}function Os(){var t,n,r;return t=Pr,e.charCodeAt(Pr)===37?(n=Jn,Pr++):(n=null,qr===0&&$r(Kn)),n!==null?(r=Ds(),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function Ms(){var t,n,r;return t=Pr,e.charCodeAt(Pr)===35?(n=Qn,Pr++):(n=null,qr===0&&$r(Gn)),n!==null?(r=Ds(),r!==null?(Hr=t,n=Yn(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function _s(){var t,n,r;return t=Pr,e.charCodeAt(Pr)===46?(n=et,Pr++):(n=null,qr===0&&$r(tt)),n!==null?(r=Ds(),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function Ds(){var e,t;return qr++,e=Ps(),qr--,e===null&&(t=null,qr===0&&$r(Zn)),e}function Ps(){var t,n,r;t=Pr,n=[],r=Hs();while(r!==null)n.push(r),r=Hs();return n!==null&&(n=e.substring(t,Pr)),t=n,t}function Hs(){var t;return er.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(tr)),t===null&&(t=js()),t}function Bs(){var t;return nr.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(rr)),t===null&&(t=js()),t}function js(){var t;return ir.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(sr)),t}function Fs(){var t,n,r;t=Pr,n=[],r=Rs();if(r!==null)while(r!==null)n.push(r),r=Rs();else n=o;return n!==null&&(n=e.substring(t,Pr)),t=n,t}function Is(){var t,n,r,i;return qr++,t=Pr,e.charCodeAt(Pr)===37?(n=Jn,Pr++):(n=null,qr===0&&$r(Kn)),n!==null?(r=Gs(),r!==null?(i=Fs(),i!==null?(Hr=t,n=it(i),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),t===null&&(t=qs()),qr--,t===null&&(n=null,qr===0&&$r(or)),t}function qs(){var e,t,n;return e=Pr,t=Fs(),t!==null?(Hr=Pr,n=ur(t),n?n=u:n=o,n!==null?(Hr=e,t=ar(t),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function Rs(){var t;return er.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(tr)),t===null&&(t=Us()),t}function Us(){var t,n,r,i;return t=Pr,e.charCodeAt(Pr)===58?(n=ot,Pr++):(n=null,qr===0&&$r(ut)),n!==null?(r=Pr,qr++,e.charCodeAt(Pr)===32?(i=M,Pr++):(i=null,qr===0&&$r(_)),qr--,i===null?r=u:(Pr=r,r=o),r!==null?(Hr=t,n=P(n),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function zs(){var e,t,n;return qr++,e=Pr,t=Fs(),t!==null?(Hr=Pr,n=lr(t),n?n=u:n=o,n!==null?(Hr=e,t=ar(t),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),qr--,e===null&&(t=null,qr===0&&$r(fr)),e}function Ws(){var e,t,n;return e=Pr,t=Xs(),t!==null?(n=Qs(),n!==null?(Hr=e,t=it(n),t===null?(Pr=e,e=t):e=t):(Pr=e,e=o)):(Pr=e,e=o),e}function Xs(){var t,n;return qr++,t=Pr,e.charCodeAt(Pr)===61423?(n=hr,Pr++):(n=null,qr===0&&$r(pr)),n!==null&&(Hr=t,n=dr()),n===null?(Pr=t,t=n):t=n,qr--,t===null&&(n=null,qr===0&&$r(cr)),t}function Vs(){var t,n;return qr++,t=Pr,e.charCodeAt(Pr)===61438?(n=mr,Pr++):(n=null,qr===0&&$r(gr)),n!==null&&(Hr=t,n=dr()),n===null?(Pr=t,t=n):t=n,qr--,t===null&&(n=null,qr===0&&$r(vr)),t}function $s(){var t,n;return qr++,t=Pr,e.charCodeAt(Pr)===61422?(n=br,Pr++):(n=null,qr===0&&$r(wr)),n!==null&&(Hr=t,n=dr()),n===null?(Pr=t,t=n):t=n,qr--,t===null&&(n=null,qr===0&&$r(yr)),t}function Js(){var t,n,r,i;return qr++,t=Pr,e.charCodeAt(Pr)===13?(n=Sr,Pr++):(n=null,qr===0&&$r(xr)),n===null&&(n=u),n!==null?(e.charCodeAt(Pr)===61439?(r=Tr,Pr++):(r=null,qr===0&&$r(Nr)),r!==null?(e.charCodeAt(Pr)===10?(i=Cr,Pr++):(i=null,qr===0&&$r(kr)),i!==null?(Hr=t,n=Nn(),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o)):(Pr=t,t=o),qr--,t===null&&(n=null,qr===0&&$r(Er)),t}function Ks(){var e,t;return qr++,e=Vs(),e===null&&(e=$s()),qr--,e===null&&(t=null,qr===0&&$r(Lr)),e}function Qs(){var t,n,r;qr++,t=Pr,n=[],r=Ys();if(r!==null)while(r!==null)n.push(r),r=Ys();else n=o;return n!==null&&(n=e.substring(t,Pr)),t=n,qr--,t===null&&(n=null,qr===0&&$r(Ar)),t}function Gs(){var e,t;qr++,e=[],t=Ys();while(t!==null)e.push(t),t=Ys();return qr--,e===null&&(t=null,qr===0&&$r(Or)),e}function Ys(){var t,n;return qr++,_r.test(e.charAt(Pr))?(t=e.charAt(Pr),Pr++):(t=null,qr===0&&$r(Dr)),qr--,t===null&&(n=null,qr===0&&$r(Mr)),t}function Zs(){var t,n,r;return t=Pr,n=Pr,qr++,r=Xs(),r===null&&(r=Vs(),r===null&&(r=Js())),qr--,r===null?n=u:(Pr=n,n=o),n!==null?(e.length>Pr?(r=e.charAt(Pr),Pr++):(r=null,qr===0&&$r(tn)),r!==null?(Hr=t,n=P(r),n===null?(Pr=t,t=n):t=n):(Pr=t,t=o)):(Pr=t,t=o),t}function eo(){var t,n,r;t=Pr,n=[],r=Zs();while(r!==null)n.push(r),r=Zs();return n!==null&&(n=e.substring(t,Pr)),t=n,t}function uo(e,t,n){var r=e.hash;if(n){r=r||new ro.HashNode([]);for(var i=0;i<n.length;++i)r.pairs.push(n[i])}var s=[e.id].concat(e.params);return s.unshift(new ro.IdNode([{part:t}])),new ro.MustacheNode(s,r,!e.escaped)}function ao(e,t){var n=[];e&&n.push(e);for(var r=0;r<t.length;++r){var i=t[r];n.push(i[0]),i[1]&&n.push(i[1])}return n}function fo(e){to.log(9,e)}var r=arguments.length>1?arguments[1]:{},i={start:Kr},s=Kr,o=null,u="",a=function(e){return e},f=function(e,t){return new ro.ProgramNode(e,t||[])},l="=",c='"="',h="else",p='"else"',d=[],v=function(e){var t=[],n=[];for(var r=0;r<e.length;++r){var i=e[r];for(var s=0;s<i.length;++s){var o=i[s];if(o.type==="content"){o.string&&n.push(o.string);continue}n.length&&(t.push(new
2
- ro.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new ro.ContentNode(n.join(""))),t},m="BeginStatement",g="ContentStatement",y=function(){return[]},b=">",w='">"',E=function(e,t){return[new ro.PartialNode(e,t[0])]},S=/^[a-zA-Z0-9_$-\/]/,x="[a-zA-Z0-9_$-\\/]",T=function(e){return new ro.PartialNameNode(new ro.StringNode(e))},N=function(e){return[e]},C="/",k='"/"',L=/^[A-Z]/,A="[A-Z]",O=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!no||!n.match(/[A-Z]/)?e:(e.mustache=uo(e.mustache,t),e)}var n=e.id.string.charAt(0);return!no||!n.match(/[A-Z]/)?e:uo(e,t)},M=" ",_='" "',D=function(e,t){if(t){t=t[1];for(var n=0,r=t.length;n<r;++n)e.push(new ro.ContentNode(" ")),e=e.concat(t[n])}return e},P=function(e){return e},H=function(e){return[e]},B=function(e,t){var n=e[0];return t&&(n=n.concat(t)),e[1]&&n.push(e[1]),n},j=function(e,t){return t?new ro.BlockNode(e,t,t.inverse,e.id):e},F=": ",I='": "',q=function(e){return new ro.ProgramNode(e,[])},R=function(e){return e&&e[2]},U=function(e,t){var n=t.mustache||t;return n.escaped=e,t},z=function(e,t,n,r){if(e){var i=new ro.PartialNameNode(new ro.StringNode(t.string));return new ro.PartialNode(i,n[0])}var s=[],o={},u=!1;for(var a=0;a<n.length;++a){var f=n[a],l=f[0];l=="tagName"||l=="elementId"||l=="class"?(u=!0,o[l]=o[l]||[],o[l].push(f[1])):s.push(f)}if(u){r=r||new ro.HashNode([]);for(var c in o){if(!o.hasOwnProperty(c))continue;r.pairs.push([c,new ro.StringNode(o[c].join(" "))])}}s.unshift(t);var h=new ro.MustacheNode(s,r),p=t._emblemSuffixModifier;return p==="!"?uo(h,"unbound"):p==="?"?uo(h,"if"):p==="^"?uo(h,"unless"):h},W=function(e){return["tagName",e]},X=function(e){return["elementId",e]},V=function(e){return["class",e]},$=function(e,t){return[e,t]},J=function(e){return[null,e]},K=function(e){return e},Q=function(e){return new ro.HashNode(e)},G="PathIdent",Y="..",Z='".."',et=".",tt='"."',nt=/^[a-zA-Z0-9_$\-!?\^]/,rt="[a-zA-Z0-9_$\\-!?\\^]",it=function(e){return e},st="Key",ot=":",ut='":"',at=function(e){return[e[0],e[2]]},ft=function(e,t){return{part:t,separator:e}},lt=function(e,t){var n=[{part:e}];for(var r=0;r<t.length;++r)n.push(t[r]);return n},ct="PathSeparator",ht=/^[\/.]/,pt="[\\/.]",dt=function(e){var t=e[e.length-1],n,r;if(n=t.part.match(/[!\?\^]$/))r=n[0],t.part=t.part.slice(0,-1);var i=new ro.IdNode(e);return i._emblemSuffixModifier=r,i},vt=function(e){return new ro.StringNode(e)},mt=function(e){return new ro.IntegerNode(e)},gt=function(e){return new ro.BooleanNode(e)},yt="Boolean",bt="true",wt='"true"',Et="false",St='"false"',xt="Integer",Tt=/^[0-9]/,Nt="[0-9]",Ct=function(e){return parseInt(e)},kt='"',Lt='"\\""',At="'",Ot='"\'"',Mt=function(e){return e[1]},_t=/^[^"}]/,Dt='[^"}]',Pt=/^[^'}]/,Ht="[^'}]",Bt=/^[A-Za-z]/,jt="[A-Za-z]",Ft=function(e,t,n){t.unshift(new ro.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new ro.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},It=/^[|`']/,qt="[|`']",Rt="<",Ut='"<"',zt=function(){return"<"},Wt=function(e,t,n){(t.length||!n)&&t.push("\n");if(n){n=n[1];for(var r=0;r<n.length;++r)t=t.concat(n[r]),t.push("\n")}var i=[],s=e!=="`";for(var r=0;r<t.length;++r){var o=t[r];o=="\n"?s||i.push(new ro.ContentNode("\n")):i.push(o)}return e==="'"&&i.push(new ro.ContentNode(" ")),i},Xt=function(e,t){return ao(e,t)},Vt=function(e,t){return ao(e,t)},$t="{",Jt='"{"',Kt=/^[^}]/,Qt="[^}]",Gt=function(e){return e="="+e,n.parse(e).statements[0]},Yt=function(e){return e.escaped=!0,e},Zt=function(e){return e.escaped=!1,e},en=function(e){return new ro.ContentNode(e)},tn="any character",nn="SingleMustacheOpen",rn="DoubleMustacheOpen",sn="{{",on='"{{"',un="TripleMustacheOpen",an="{{{",fn='"{{{"',ln="SingleMustacheClose",cn="}",hn='"}"',pn="DoubleMustacheClose",dn="}}",vn='"}}"',mn="TripleMustacheClose",gn="}}}",yn='"}}}"',bn="InterpolationOpen",wn="#{",En='"#{"',Sn="InterpolationClose",xn="==",Tn='"=="',Nn=function(){return!1},Cn=function(){return!0},kn=function(e,t){return e||t},Ln=function(e,t,n){var r=e[0]||"div",i=e[1]||[],s=i[0],o=i[1],u=[];u.push(new ro.ContentNode("<"+r)),s&&u.push(new ro.ContentNode(' id="'+s+'"')),o&&o.length&&u.push(new ro.ContentNode(' class="'+o.join(" ")+'"'));for(var a=0;a<t.length;++a)u.push(new ro.ContentNode(" ")),u.push(t[a]);for(var a=0;a<n.length;++a)u=u.concat(n[a]);var f=!!e[2];return io[r]||f?(u.push(new ro.ContentNode(" />")),[u]):(u.push(new ro.ContentNode(">")),[u,new ro.ContentNode("</"+r+">")])},An=function(e){return{shorthand:e,id:!0}},On=function(e){return{shorthand:e}},Mn=function(e){var t,n=[];for(var r=0,i=e.length;r<i;++r){var s=e[r];s.id?t=s.shorthand:n.push(s.shorthand)}return[t,n]},_n=function(e){return[new ro.ContentNode(" ")].concat(e)},Dn=/^[A-Za-z.0-9_\-]/,Pn="[A-Za-z.0-9_\\-]",Hn=function(e){return new ro.MustacheNode([e])},Bn=function(e,t){return[uo(t,"action",[["on",new ro.StringNode(e)]])]},jn=function(e){return e.replace(/ *$/,"")},Fn="!",In='"!"',qn=function(e,t){return no},Rn=function(e,t){var n=new ro.HashNode([[e,new ro.StringNode(t)]]),r=[new ro.IdNode([{part:"bindAttr"}])],i=new ro.MustacheNode(r,n);return[i]},Un=function(e,t){var n=new ro.MustacheNode([t]);return no&&t._emblemSuffixModifier==="!"&&(n=uo(n,"unbound")),[new ro.ContentNode(e+"="+'"'),n,new ro.ContentNode('"')]},zn=function(e,t){var n=[new ro.ContentNode(e+"="+'"')].concat(t);return n.concat([new ro.ContentNode('"')])},Wn="_",Xn='"_"',Vn="-",$n='"-"',Jn="%",Kn='"%"',Qn="#",Gn='"#"',Yn=function(e){return e},Zn="CSSIdentifier",er=/^[_a-zA-Z0-9\-]/,tr="[_a-zA-Z0-9\\-]",nr=/^[_a-zA-Z]/,rr="[_a-zA-Z]",ir=/^[\x80-\xFF]/,sr="[\\x80-\\xFF]",or="KnownHTMLTagName",ur=function(e){return!!so[e]},ar=function(e){return e},fr="a JS event",lr=function(e){return!!oo[e]},cr="INDENT",hr="",pr='"\\uEFEF"',dr=function(){return""},vr="DEDENT",mr="",gr='"\\uEFFE"',yr="Unmatched DEDENT",br="",wr='"\\uEFEE"',Er="LineEnd",Sr="\r",xr='"\\r"',Tr="",Nr='"\\uEFFF"',Cr="\n",kr='"\\n"',Lr="ANYDEDENT",Ar="RequiredWhitespace",Or="OptionalWhitespace",Mr="InlineWhitespace",_r=/^[ \t]/,Dr="[ \\t]",Pr=0,Hr=0,Br=0,jr={line:1,column:1,seenCR:!1},Fr=0,Ir=[],qr=0,Rr;if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=i[r.startRule]}var to=n.handlebarsVariant,no=to.JavaScriptCompiler.prototype.namespace==="Ember.Handlebars",ro=to.AST,io={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},so={figcaption:!0,blockquote:!0,plaintext:!0,textarea:!0,progress:!0,optgroup:!0,noscript:!0,noframes:!0,frameset:!0,fieldset:!0,datalist:!0,colgroup:!0,basefont:!0,summary:!0,section:!0,marquee:!0,listing:!0,isindex:!0,details:!0,command:!0,caption:!0,bgsound:!0,article:!0,address:!0,acronym:!0,strong:!0,strike:!0,spacer:!0,source:!0,select:!0,script:!0,output:!0,option:!0,object:!0,legend:!0,keygen:!0,iframe:!0,hgroup:!0,header:!0,footer:!0,figure:!0,center:!0,canvas:!0,button:!0,applet:!0,video:!0,track:!0,title:!0,thead:!0,tfoot:!0,tbody:!0,table:!0,style:!0,small:!0,param:!0,meter:!0,label:!0,input:!0,frame:!0,embed:!0,blink:!0,audio:!0,aside:!0,time:!0,span:!0,samp:!0,ruby:!0,nobr:!0,meta:!0,menu:!0,mark:!0,main:!0,link:!0,html:!0,head:!0,form:!0,font:!0,data:!0,code:!0,cite:!0,body:!0,base:!0,area:!0,abbr:!0,xmp:!0,wbr:!0,"var":!0,sup:!0,sub:!0,pre:!0,nav:!0,map:!0,kbd:!0,ins:!0,img:!0,div:!0,dir:!0,dfn:!0,del:!0,col:!0,big:!0,bdo:!0,bdi:!0,ul:!0,tt:!0,tr:!0,th:!0,td:!0,rt:!0,rp:!0,ol:!0,li:!0,hr:!0,h6:!0,h5:!0,h4:!0,h3:!0,h2:!0,h1:!0,em:!0,dt:!0,dl:!0,dd:!0,br:!0,u:!0,s:!0,q:!0,p:!0,i:!0,b:!0,a:!0},oo={touchStart:!0,touchMove:!0,touchEnd:!0,touchCancel:!0,keyDown:!0,keyUp:!0,keyPress:!0,mouseDown:!0,mouseUp:!0,contextMenu:!0,click:!0,doubleClick:!0,mouseMove:!0,focusIn:!0,focusOut:!0,mouseEnter:!0,mouseLeave:!0,submit:!0,input:!0,change:!0,dragStart:!0,drag:!0,dragEnter:!0,dragLeave:!0,dragOver:!0,drop:!0,dragEnd:!0};Rr=s();if(Rr!==null&&Pr===e.length)return Rr;throw Jr(Ir),Hr=Math.max(Pr,Fr),new t(Ir,Hr<e.length?e.charAt(Hr):null,Hr,Vr(Hr).line,Vr(Hr).column)}return e(t,Error),{SyntaxError:t,parse:r}}();var n;n.throwCompileError=function(e,t){throw new Error("Emblem syntax error, line "+e+": "+t)},n.registerPartial=function(e,t,r){return r||(r=t,t=e,e=Handlebars),e.registerPartial(t,n.compile(e,r))},n.parse=function(e){var t,r,i,s;try{return s=n.Preprocessor.processSync(e),n.Parser.parse(s)}catch(o){if(o instanceof n.Parser.SyntaxError)return r=e.split("\n"),t=r[o.line-1],i=""+o.message+"\n"+t+"\n",i+=(new Array(o.column)).join("-"),i+="^",n.throwCompileError(o.line,i);throw o}},n.precompile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.precompile(i,r)},n.compile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.compile(i,r)};var n,r,t;n.Preprocessor=r=function(){function l(){this.base=null,this.indents=[],this.context=[],this.context.peek=function(){return this.length?this[this.length-1]:null},this.context.err=function(e){throw new Error("Unexpected "+e)},this.output="",this.context.observe=function(t){var n;n=this.peek();switch(t){case r:this.push(t);break;case e:n!==r&&this.err(t),this.pop();break;case"\r":n!=="/"&&this.err(t),this.pop();break;case"\n":n!=="/"&&this.err(t),this.pop();break;case"/":this.push(t);break;case"end-\\":n!=="\\"&&this.err(t),this.pop();break;default:throw new Error("undefined token observed: "+t)}return this},this.StringScanner?this.ss=new this.StringScanner(""):n.StringScanner?this.ss=new n.StringScanner(""):this.ss=new t("")}var e,r,i,s,o,u,a,f;return f="\\t\\x0B\\f \\xA0\\u1680\\u180E\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF",r="",e="",s="",i="",o=RegExp("["+f+"\\r?\\n]*$"),u=RegExp("(?:["+f+"]*\\r?\\n)+"),l.prototype.p=function(e){return e&&(this.output+=e),e},l.prototype.scan=function(e){return this.p(this.ss.scan(e))},l.prototype.discard=function(e){return this.ss.scan(e)},a=function(t){return function(n){var a,l,c,h;t||(this.ss.concat(n),this.discard(u));while(!this.ss.eos())switch(this.context.peek()){case null:case r:if(this.ss.bol()||this.discard(u)){if(this.discard(RegExp("["+f+"]*\\r?\\n"))){this.p(""+i+"\n");continue}if(this.base!=null){if(this.discard(this.base)==null)throw new Error("inconsistent base indentation")}else a=this.discard(RegExp("["+f+"]*")),this.base=RegExp(""+a);if(this.indents.length===0)this.ss.check(RegExp("["+f+"]+"))&&(this.p(r),this.context.observe(r),this.indents.push(this.scan(RegExp("(["+f+"]+)"))));else{c=this.indents[this.indents.length-1];if(l=this.ss.check(RegExp("("+c+")")))this.discard(l),this.ss.check(RegExp("(["+f+"]+)"))&&(this.p(r),this.context.observe(r),this.indents.push(l+this.scan(RegExp("(["+f+"]+)"))));else{while(this.indents.length){c=this.indents[this.indents.length-1];if(this.discard(RegExp("(?:"+c+")")))break;this.context.observe(e),this.p(e),this.indents.pop()}if(h=this.discard(RegExp("["+f+"]+")))this.output=this.output.slice(0,-1),this.output+=s,this.p(r),this.context.observe(r),this.indents.push(h)}}}this.scan(/[^\r\n]+/),this.discard(/\r?\n/)&&this.p(""+i+"\n")}if(t){this.scan(o);while(this.context.length&&r===this.context.peek())this.context.observe(e),this.p(e);if(this.context.length)throw new Error("Unclosed "+this.context.peek()+" at EOF")}}},l.prototype.processData=a(!1),l.prototype.processEnd=a(!0),l.processSync=function(e){var t;return e+="\n",t=new l,t.processData(e),t.processEnd(),t.output},l}();var i,n,s,o;n.compileScriptTags=function(){if(typeof Ember=="undefined"||Ember===null)throw new Error("Can't run Emblem.enableEmber before Ember has been defined");if(typeof document!="undefined"&&document!==null)return Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]',Ember.$(document)).each(function(){var e,t,r;return t=Ember.$(this),e=t.attr("type")==="text/x-raw-handlebars"?Handlebars:Ember.Handlebars,r=t.attr("data-template-name")||t.attr("id")||"application",Ember.TEMPLATES[r]=n.compile(e,t.html()),t.remove()})},this.ENV||(this.ENV={}),i=this.ENV,i.EMBER_LOAD_HOOKS||(i.EMBER_LOAD_HOOKS={}),(s=i.EMBER_LOAD_HOOKS).application||(s.application=[]),(o=i.EMBER_LOAD_HOOKS)["Ember.Application"]||(o["Ember.Application"]=[]),i.EMBER_LOAD_HOOKS.application.push(n.compileScriptTags),i.EMBER_LOAD_HOOKS["Ember.Application"].push(function(e){return e.initializer?e.initializer({name:"emblemDomTemplates",before:"registerComponents",initialize:n.compileScriptTags}):Ember.onLoad("application",n.compileScriptTags)}),e.Emblem=n})(this);
1
+ !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a){var b;b=a("./emblem"),b.throwCompileError=function(a,b){throw new Error("Emblem syntax error, line "+a+": "+b)},b.registerPartial=function(a,c,d){return d||(d=c,c=a,a=Handlebars),a.registerPartial(c,b.compile(a,d))},b.parse=function(a){var c,d,e,f,g;try{return g=b.Preprocessor.processSync(a),b.Parser.parse(g)}catch(h){if(c=h,c instanceof b.Parser.SyntaxError)return e=a.split("\n"),d=e[c.line-1],f=""+c.message+"\n"+d+"\n",f+=new Array(c.column).join("-"),f+="^",b.throwCompileError(c.line,f);throw c}},b.precompile=function(a,c,d){var e;return null==d&&(d={}),b.handlebarsVariant=a,e=b.parse(c),a.precompile(e,d)},b.compile=function(a,c,d){var e;return null==d&&(d={}),b.handlebarsVariant=a,e=b.parse(c),a.compile(e,d)}},{"./emblem":3}],2:[function(a){var b,c,d,e;c=a("./emblem"),"undefined"!=typeof window&&null!==window&&(c.compileScriptTags=function(){if("undefined"==typeof Ember||null===Ember)throw new Error("Can't run Emblem.enableEmber before Ember has been defined");return"undefined"!=typeof document&&null!==document?Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]',Ember.$(document)).each(function(){var a,b,d;return b=Ember.$(this),a="text/x-raw-handlebars"===b.attr("type")?Handlebars:Ember.Handlebars,d=b.attr("data-template-name")||b.attr("id")||"application",Ember.TEMPLATES[d]=c.compile(a,b.html()),b.remove()}):void 0},window.ENV||(window.ENV={}),b=window.ENV,b.EMBER_LOAD_HOOKS||(b.EMBER_LOAD_HOOKS={}),(d=b.EMBER_LOAD_HOOKS).application||(d.application=[]),(e=b.EMBER_LOAD_HOOKS)["Ember.Application"]||(e["Ember.Application"]=[]),b.EMBER_LOAD_HOOKS.application.push(c.compileScriptTags),b.EMBER_LOAD_HOOKS["Ember.Application"].push(function(a){return a.initializer?a.initializer({name:"emblemDomTemplates",before:"registerComponents",initialize:c.compileScriptTags}):Ember.onLoad("application",c.compileScriptTags)}))},{"./emblem":3}],3:[function(a,b){var c,d=self;this.Emblem={},c=this.Emblem,c.VERSION="0.3.2",b.exports=c,"undefined"!=typeof window&&null!==window&&(window.Emblem=c),d.Emblem=c,a("./parser"),a("./compiler"),a("./preprocessor"),a("./emberties")},{"./compiler":1,"./emberties":2,"./parser":4,"./preprocessor":5}],4:[function(a,b){var c=a("./emblem");c.Parser=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e){function f(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0180-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1080-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e;switch(a.length){case 0:d="end of input";break;case 1:d=a[0];break;default:d=a.slice(0,-1).join(", ")+" or "+a[a.length-1]}return e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}this.expected=a,this.found=b,this.offset=c,this.line=d,this.column=e,this.name="SyntaxError",this.message=f(a,b)}function d(a){function d(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return If!==b&&(If>b&&(If=0,Jf={line:1,column:1,seenCR:!1}),c(Jf,If,b),If=b),Jf}function e(a){Kf>Gf||(Gf>Kf&&(Kf=Gf,Lf=[]),Lf.push(a))}function f(a){var b=0;for(a.sort();b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function g(){var a;return a=h()}function h(){var a,b,c,d,e,f,g,h,k;return a=Gf,b=j(),null!==b?(c=Gf,d=$b(),null!==d?(e=i(),null!==e?(f=dc(),null!==f?(g=ac(),null!==g?(h=Yb(),null!==h?(k=j(),null!==k?(Hf=c,d=pc(k),null===d?(Gf=c,c=d):c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc),null===c&&(c=oc),null!==c?(Hf=a,b=qc(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function i(){var b,c,d,f;return b=Gf,c=Gf,61===a.charCodeAt(Gf)?(d=rc,Gf++):(d=null,0===Mf&&e(sc)),null!==d?(f=dc(),null!==f?(d=[d,f],c=d):(Gf=c,c=nc)):(Gf=c,c=nc),null===c&&(c=oc),null!==c?(a.substr(Gf,4)===tc?(d=tc,Gf+=4):(d=null,0===Mf&&e(uc)),null!==d?(c=[c,d],b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function j(){var a,b,c;for(a=Gf,b=[],c=k();null!==c;)b.push(c),c=k();return null!==b&&(Hf=a,b=vc(b)),null===b?(Gf=a,a=b):a=b,a}function k(){var a,b;return Mf++,a=m(),null===a&&(a=r(),null===a&&(a=l())),Mf--,null===a&&(b=null,0===Mf&&e(wc)),a}function l(){var a,b;return Mf++,a=n(),null===a&&(a=y(),null===a&&(a=_(),null===a&&(a=p()))),Mf--,null===a&&(b=null,0===Mf&&e(xc)),a}function m(){var a,b,c;return a=Gf,b=dc(),null!==b?(c=ac(),null!==c?(Hf=a,b=yc(),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function n(){var b,c,d,f,g,h,i,j;if(b=Gf,62===a.charCodeAt(Gf)?(c=zc,Gf++):(c=null,0===Mf&&e(Ac)),null!==c)if(d=dc(),null!==d)if(f=o(),null!==f)if(g=dc(),null!==g){for(h=[],i=I();null!==i;)h.push(i),i=I();null!==h?(i=dc(),null!==i?(j=ac(),null!==j?(Hf=b,c=Bc(f,h),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)}else Gf=b,b=nc;else Gf=b,b=nc;else Gf=b,b=nc;else Gf=b,b=nc;return b}function o(){var b,c,d,f;if(b=Gf,c=Gf,d=[],Cc.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(Dc)),null!==f)for(;null!==f;)d.push(f),Cc.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(Dc));else d=nc;return null!==d&&(d=a.substring(c,Gf)),c=d,null!==c&&(Hf=b,c=Ec(c)),null===c?(Gf=b,b=c):b=c,b}function p(){var a,b;return a=Gf,b=C(),null===b&&(b=t()),null!==b&&(Hf=a,b=Fc(b)),null===b?(Gf=a,a=b):a=b,a}function q(){var a,b,c,d,e,f,g,h;if(a=Gf,b=gc(),null!==b)if(c=ac(),null!==c){if(d=[],e=Gf,f=Yb(),null!==f){if(g=[],h=q(),null!==h)for(;null!==h;)g.push(h),h=q();else g=nc;null!==g?(h=bc(),null!==h?(f=[f,g,h],e=f):(Gf=e,e=nc)):(Gf=e,e=nc)}else Gf=e,e=nc;for(;null!==e;)if(d.push(e),e=Gf,f=Yb(),null!==f){if(g=[],h=q(),null!==h)for(;null!==h;)g.push(h),h=q();else g=nc;null!==g?(h=bc(),null!==h?(f=[f,g,h],e=f):(Gf=e,e=nc)):(Gf=e,e=nc)}else Gf=e,e=nc;null!==d?(Hf=a,b=yc(),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;else Gf=a,a=nc;return a}function r(){var b,c,d;return b=Gf,47===a.charCodeAt(Gf)?(c=Gc,Gf++):(c=null,0===Mf&&e(Hc)),null!==c?(d=q(),null!==d?(Hf=b,c=yc(),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function s(){var b,c,d;return b=Gf,47===a.charCodeAt(Gf)?(c=Gc,Gf++):(c=null,0===Mf&&e(Hc)),null!==c?(d=gc(),null!==d?(c=[c,d],b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function t(){var a;return a=u(),null===a&&(a=z()),a}function u(){var b,c,d;return b=Gf,c=Gf,Mf++,Ic.test(a.charAt(Gf))?(d=a.charAt(Gf),Gf++):(d=null,0===Mf&&e(Jc)),Mf--,null!==d?(Gf=c,c=oc):c=nc,null!==c?(d=z(),null!==d?(Hf=b,c=Kc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function v(){var b,c,d,f,g,h,i;if(b=Gf,32===a.charCodeAt(Gf)?(c=Lc,Gf++):(c=null,0===Mf&&e(Mc)),null!==c)if(d=ab(),null!==d){if(f=Gf,g=Yb(),null!==g){if(h=[],i=Z(),null!==i)for(;null!==i;)h.push(i),i=Z();else h=nc;null!==h?(i=$b(),null!==i?(g=[g,h,i],f=g):(Gf=f,f=nc)):(Gf=f,f=nc)}else Gf=f,f=nc;null===f&&(f=oc),null!==f?(Hf=b,c=Nc(d,f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)}else Gf=b,b=nc;else Gf=b,b=nc;return b}function w(){var a,b,c,d,e;for(a=Gf,b=[],c=m();null!==c;)b.push(c),c=m();return null!==b?(c=Yb(),null!==c?(d=j(),null!==d?(e=$b(),null!==e?(Hf=a,b=Oc(d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),a}function x(){var a,b,c,d,e;return a=A(),null===a&&(a=Gf,b=dc(),null!==b?(c=C(),null!==c?(Hf=a,b=Pc(c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),null===a&&(a=Gf,b=dc(),null!==b?(c=s(),null===c&&(c=oc),null!==c?(d=ac(),null!==d?(e=w(),null===e&&(e=oc),null!==e?(Hf=a,b=Oc(e),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),null===a&&(a=v()))),a}function y(){var a,b,c;return a=Gf,b=Bb(),null!==b?(c=x(),null!==c?(Hf=a,b=Qc(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function z(){var a,b,c,d,e;return a=Gf,b=D(),null!==b?(c=dc(),null!==c?(d=s(),null===d&&(d=oc),null!==d?(e=B(),null!==e?(Hf=a,b=Rc(b,e),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),a}function h(){var a,b,c,d,e,f,g,h,k,l;if(a=Gf,b=j(),null!==b){if(c=Gf,d=$b(),null!==d)if(e=i(),null!==e)if(f=dc(),null!==f)if(g=ac(),null!==g){for(h=[],k=m();null!==k;)h.push(k),k=m();null!==h?(k=Yb(),null!==k?(l=j(),null!==l?(Hf=c,d=pc(l),null===d?(Gf=c,c=d):c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)}else Gf=c,c=nc;else Gf=c,c=nc;else Gf=c,c=nc;else Gf=c,c=nc;null===c&&(c=oc),null!==c?(Hf=a,b=qc(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function A(){var b,c,d,f;return b=Gf,a.substr(Gf,2)===Sc?(c=Sc,Gf+=2):(c=null,0===Mf&&e(Tc)),null!==c?(d=dc(),null!==d?(f=l(),null!==f?(Hf=b,c=Oc(f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function B(){var a,b,c,d,e,f,g;if(a=Gf,b=A(),null===b&&(b=_()),null!==b&&(Hf=a,b=Uc(b)),null===b?(Gf=a,a=b):a=b,null===a)if(a=Gf,b=ac(),null!==b){for(c=Gf,d=[],e=m();null!==e;)d.push(e),e=m();null!==d?(e=Yb(),null!==e?(f=h(),null!==f?(g=$b(),null!==g?(d=[d,e,f,g],c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc),null===c&&(c=oc),null!==c?(Hf=a,b=Vc(c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function C(){var a,b,c;return a=Gf,b=zb(),null!==b?(c=z(),null!==c?(Hf=a,b=Wc(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function D(){var b,c,d,f,g,h;if(b=Gf,62===a.charCodeAt(Gf)?(c=zc,Gf++):(c=null,0===Mf&&e(Ac)),null===c&&(c=oc),null!==c)if(d=dc(),null!==d)if(f=Q(),null!==f){for(g=[],h=I();null!==h;)g.push(h),h=I();null!==g?(h=J(),null===h&&(h=oc),null!==h?(Hf=b,c=Xc(c,f,g,h),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)}else Gf=b,b=nc;else Gf=b,b=nc;else Gf=b,b=nc;return b}function E(){var a,b;return a=Gf,b=Lb(),null!==b&&(Hf=a,b=Yc(b)),null===b?(Gf=a,a=b):a=b,null===a&&(a=Gf,b=Mb(),null!==b&&(Hf=a,b=Zc(b)),null===b?(Gf=a,a=b):a=b,null===a&&(a=Gf,b=Nb(),null!==b&&(Hf=a,b=$c(b)),null===b?(Gf=a,a=b):a=b)),a}function F(){var a;return a=G(),null===a&&(a=H()),a}function G(){var a,b,c,d;if(a=Gf,b=Mb(),null!==b){for(c=[],d=Nb();null!==d;)c.push(d),d=Nb();null!==c?(Hf=a,b=_c(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function H(){var a,b,c;if(a=Gf,b=[],c=Nb(),null!==c)for(;null!==c;)b.push(c),c=Nb();else b=nc;return null!==b&&(Hf=a,b=ad(b)),null===b?(Gf=a,a=b):a=b,a}function I(){var a,b,c;return a=Gf,b=dc(),null!==b?(c=E(),null===c&&(c=N()),null!==c?(Hf=a,b=bd(c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function J(){var a,b,c;if(a=Gf,b=[],c=M(),null!==c)for(;null!==c;)b.push(c),c=M();else b=nc;return null!==b&&(Hf=a,b=cd(b)),null===b?(Gf=a,a=b):a=b,a}function K(){var b,c,d,f;if(Mf++,a.substr(Gf,2)===ed?(b=ed,Gf+=2):(b=null,0===Mf&&e(fd)),null===b&&(46===a.charCodeAt(Gf)?(b=gd,Gf++):(b=null,0===Mf&&e(hd)),null===b)){if(b=Gf,c=Gf,d=[],id.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(jd)),null!==f)for(;null!==f;)d.push(f),id.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(jd));else d=nc;null!==d&&(d=a.substring(c,Gf)),c=d,null!==c?(d=Gf,Mf++,61===a.charCodeAt(Gf)?(f=rc,Gf++):(f=null,0===Mf&&e(sc)),Mf--,null===f?d=oc:(Gf=d,d=nc),null!==d?(Hf=b,c=kd(c),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)}return Mf--,null===b&&(c=null,0===Mf&&e(dd)),b}function L(){var b,c,d;for(Mf++,b=Gf,c=[],d=Qb(),null===d&&(58===a.charCodeAt(Gf)?(d=md,Gf++):(d=null,0===Mf&&e(nd)));null!==d;)c.push(d),d=Qb(),null===d&&(58===a.charCodeAt(Gf)?(d=md,Gf++):(d=null,0===Mf&&e(nd)));return null!==c&&(c=a.substring(b,Gf)),b=c,Mf--,null===b&&(c=null,0===Mf&&e(ld)),b}function M(){var b,c,d,f,g,h;return b=Gf,c=dc(),null!==c?(d=Gf,f=L(),null!==f?(61===a.charCodeAt(Gf)?(g=rc,Gf++):(g=null,0===Mf&&e(sc)),null!==g?(h=T(),null!==h?(f=[f,g,h],d=f):(Gf=d,d=nc)):(Gf=d,d=nc)):(Gf=d,d=nc),null===d&&(d=Gf,f=L(),null!==f?(61===a.charCodeAt(Gf)?(g=rc,Gf++):(g=null,0===Mf&&e(sc)),null!==g?(h=S(),null!==h?(f=[f,g,h],d=f):(Gf=d,d=nc)):(Gf=d,d=nc)):(Gf=d,d=nc),null===d&&(d=Gf,f=L(),null!==f?(61===a.charCodeAt(Gf)?(g=rc,Gf++):(g=null,0===Mf&&e(sc)),null!==g?(h=Q(),null!==h?(f=[f,g,h],d=f):(Gf=d,d=nc)):(Gf=d,d=nc)):(Gf=d,d=nc),null===d&&(d=Gf,f=L(),null!==f?(61===a.charCodeAt(Gf)?(g=rc,Gf++):(g=null,0===Mf&&e(sc)),null!==g?(h=R(),null!==h?(f=[f,g,h],d=f):(Gf=d,d=nc)):(Gf=d,d=nc)):(Gf=d,d=nc)))),null!==d?(Hf=b,c=od(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function N(){var a;return a=T(),null===a&&(a=S(),null===a&&(a=Q(),null===a&&(a=R()))),a}function O(){var a,b,c,d,e,f;if(a=Gf,b=K(),null!==b){for(c=[],d=Gf,e=P(),null!==e?(f=K(),null!==f?(Hf=d,e=pd(e,f),null===e?(Gf=d,d=e):d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,e=P(),null!==e?(f=K(),null!==f?(Hf=d,e=pd(e,f),null===e?(Gf=d,d=e):d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==c?(Hf=a,b=qd(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function P(){var b,c;return Mf++,sd.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(td)),Mf--,null===b&&(c=null,0===Mf&&e(rd)),b}function Q(){var a,b;return a=Gf,b=O(),null!==b&&(Hf=a,b=ud(b)),null===b?(Gf=a,a=b):a=b,a}function R(){var a,b;return a=Gf,b=W(),null!==b&&(Hf=a,b=vd(b)),null===b?(Gf=a,a=b):a=b,a}function S(){var a,b;return a=Gf,b=V(),null!==b&&(Hf=a,b=wd(b)),null===b?(Gf=a,a=b):a=b,a}function T(){var a,b;return a=Gf,b=U(),null!==b&&(Hf=a,b=xd(b)),null===b?(Gf=a,a=b):a=b,a}function U(){var b,c;return Mf++,a.substr(Gf,4)===zd?(b=zd,Gf+=4):(b=null,0===Mf&&e(Ad)),null===b&&(a.substr(Gf,5)===Bd?(b=Bd,Gf+=5):(b=null,0===Mf&&e(Cd))),Mf--,null===b&&(c=null,0===Mf&&e(yd)),b}function V(){var b,c,d,f;if(Mf++,b=Gf,c=Gf,d=[],Ed.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(Fd)),null!==f)for(;null!==f;)d.push(f),Ed.test(a.charAt(Gf))?(f=a.charAt(Gf),Gf++):(f=null,0===Mf&&e(Fd));else d=nc;return null!==d&&(d=a.substring(c,Gf)),c=d,null!==c&&(Hf=b,c=Gd(c)),null===c?(Gf=b,b=c):b=c,Mf--,null===b&&(c=null,0===Mf&&e(Dd)),b}function W(){var b,c,d,f,g;return b=Gf,c=Gf,34===a.charCodeAt(Gf)?(d=Hd,Gf++):(d=null,0===Mf&&e(Id)),null!==d?(f=X(),null!==f?(34===a.charCodeAt(Gf)?(g=Hd,Gf++):(g=null,0===Mf&&e(Id)),null!==g?(d=[d,f,g],c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc),null===c&&(c=Gf,39===a.charCodeAt(Gf)?(d=Jd,Gf++):(d=null,0===Mf&&e(Kd)),null!==d?(f=Y(),null!==f?(39===a.charCodeAt(Gf)?(g=Jd,Gf++):(g=null,0===Mf&&e(Kd)),null!==g?(d=[d,f,g],c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)),null!==c&&(Hf=b,c=Ld(c)),null===c?(Gf=b,b=c):b=c,b}function X(){var b,c,d,f,g;for(b=Gf,c=[],d=Gf,f=Gf,Mf++,g=ac(),Mf--,null===g?f=oc:(Gf=f,f=nc),null!==f?(Md.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(Nd)),null!==g?(f=[f,g],d=f):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,f=Gf,Mf++,g=ac(),Mf--,null===g?f=oc:(Gf=f,f=nc),null!==f?(Md.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(Nd)),null!==g?(f=[f,g],d=f):(Gf=d,d=nc)):(Gf=d,d=nc);return null!==c&&(c=a.substring(b,Gf)),b=c}function Y(){var b,c,d,f,g;for(b=Gf,c=[],d=Gf,f=Gf,Mf++,g=ac(),Mf--,null===g?f=oc:(Gf=f,f=nc),null!==f?(Od.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(Pd)),null!==g?(f=[f,g],d=f):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,f=Gf,Mf++,g=ac(),Mf--,null===g?f=oc:(Gf=f,f=nc),null!==f?(Od.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(Pd)),null!==g?(f=[f,g],d=f):(Gf=d,d=nc)):(Gf=d,d=nc);return null!==c&&(c=a.substring(b,Gf)),b=c}function Z(){var a,b,c,d,e;if(a=Gf,b=Yb(),null!==b)if(c=ab(),null!==c){for(d=[],e=Z();null!==e;)d.push(e),e=Z();null!==d?(e=bc(),null!==e?(Hf=a,b=Qd(b,c,d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)}else Gf=a,a=nc;else Gf=a,a=nc;return null===a&&(a=ab()),a}function $(){var b,c,d;return b=Gf,Rd.test(a.charAt(Gf))?(c=a.charAt(Gf),Gf++):(c=null,0===Mf&&e(Sd)),null!==c?(32===a.charCodeAt(Gf)?(d=Lc,Gf++):(d=null,0===Mf&&e(Mc)),null===d&&(d=oc),null!==d?(Hf=b,c=kd(c),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),null===b&&(b=Gf,c=Gf,Mf++,60===a.charCodeAt(Gf)?(d=Td,Gf++):(d=null,0===Mf&&e(Ud)),Mf--,null!==d?(Gf=c,c=oc):c=nc,null!==c&&(Hf=b,c=Vd()),null===c?(Gf=b,b=c):b=c),b}function _(){var a,b,c,d,e,f,g;if(a=Gf,b=$(),null!==b)if(c=ab(),null!==c){if(d=Gf,e=Yb(),null!==e){for(f=[],g=Z();null!==g;)f.push(g),g=Z();null!==f?(g=$b(),null!==g?(e=[e,f,g],d=e):(Gf=d,d=nc)):(Gf=d,d=nc)}else Gf=d,d=nc;null===d&&(d=oc),null!==d?(Hf=a,b=Wd(b,c,d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;else Gf=a,a=nc;return a}function ab(){var a,b,c,d,e,f;if(a=Gf,b=mb(),null===b&&(b=oc),null!==b){for(c=[],d=Gf,e=eb(),null!==e?(f=mb(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,e=eb(),null!==e?(f=mb(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==c?(d=ac(),null!==d?(Hf=a,b=Xd(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function bb(){var b,c,d,f;return b=Gf,34===a.charCodeAt(Gf)?(c=Hd,Gf++):(c=null,0===Mf&&e(Id)),null!==c?(d=cb(),null!==d?(34===a.charCodeAt(Gf)?(f=Hd,Gf++):(f=null,0===Mf&&e(Id)),null!==f?(Hf=b,c=bd(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),null===b&&(b=Gf,39===a.charCodeAt(Gf)?(c=Jd,Gf++):(c=null,0===Mf&&e(Kd)),null!==c?(d=db(),null!==d?(39===a.charCodeAt(Gf)?(f=Jd,Gf++):(f=null,0===Mf&&e(Kd)),null!==f?(Hf=b,c=bd(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)),b}function cb(){var a,b,c,d,e,f;if(a=Gf,b=ib(),null===b&&(b=oc),null!==b){for(c=[],d=Gf,e=eb(),null!==e?(f=ib(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,e=eb(),null!==e?(f=ib(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==c?(Hf=a,b=Yd(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function db(){var a,b,c,d,e,f;if(a=Gf,b=jb(),null===b&&(b=oc),null!==b){for(c=[],d=Gf,e=eb(),null!==e?(f=jb(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==d;)c.push(d),d=Gf,e=eb(),null!==e?(f=jb(),null===f&&(f=oc),null!==f?(e=[e,f],d=e):(Gf=d,d=nc)):(Gf=d,d=nc);null!==c?(Hf=a,b=Yd(b,c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc;return a}function eb(){var a;return a=hb(),null===a&&(a=gb()),a}function fb(){var b,c,d,f,g;if(b=Gf,c=Gf,Mf++,123===a.charCodeAt(Gf)?(d=Zd,Gf++):(d=null,0===Mf&&e($d)),Mf--,null===d?c=oc:(Gf=c,c=nc),null!==c){for(d=Gf,f=[],_d.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(ae));null!==g;)f.push(g),_d.test(a.charAt(Gf))?(g=a.charAt(Gf),Gf++):(g=null,0===Mf&&e(ae));null!==f&&(f=a.substring(d,Gf)),d=f,null!==d?(Hf=b,c=be(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)}else Gf=b,b=nc;return b}function gb(){var a,b,c,d,e,f;return a=Gf,b=sb(),null!==b?(c=dc(),null!==c?(d=fb(),null!==d?(e=dc(),null!==e?(f=vb(),null!==f?(Hf=a,b=ce(d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),null===a&&(a=Gf,b=xb(),null!==b?(c=dc(),null!==c?(d=fb(),null!==d?(e=dc(),null!==e?(f=yb(),null!==f?(Hf=a,b=ce(d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)),a}function hb(){var a,b,c,d,e,f;return a=Gf,b=tb(),null!==b?(c=dc(),null!==c?(d=fb(),null!==d?(e=dc(),null!==e?(f=wb(),null!==f?(Hf=a,b=de(d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),a}function ib(){var b,c,d,e;if(b=Gf,c=Gf,d=[],e=kb(),null!==e)for(;null!==e;)d.push(e),e=kb();else d=nc;return null!==d&&(d=a.substring(c,Gf)),c=d,null!==c&&(Hf=b,c=ee(c)),null===c?(Gf=b,b=c):b=c,b}function jb(){var b,c,d,e;if(b=Gf,c=Gf,d=[],e=lb(),null!==e)for(;null!==e;)d.push(e),e=lb();else d=nc;return null!==d&&(d=a.substring(c,Gf)),c=d,null!==c&&(Hf=b,c=ee(c)),null===c?(Gf=b,b=c):b=c,b}function kb(){var b,c,d;return b=Gf,c=Gf,Mf++,d=ob(),null===d&&(34===a.charCodeAt(Gf)?(d=Hd,Gf++):(d=null,0===Mf&&e(Id))),Mf--,null===d?c=oc:(Gf=c,c=nc),null!==c?(a.length>Gf?(d=a.charAt(Gf),Gf++):(d=null,0===Mf&&e(fe)),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function lb(){var b,c,d;return b=Gf,c=Gf,Mf++,d=ob(),null===d&&(39===a.charCodeAt(Gf)?(d=Jd,Gf++):(d=null,0===Mf&&e(Kd))),Mf--,null===d?c=oc:(Gf=c,c=nc),null!==c?(a.length>Gf?(d=a.charAt(Gf),Gf++):(d=null,0===Mf&&e(fe)),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function mb(){var b,c,d,e;if(b=Gf,c=Gf,d=[],e=nb(),null!==e)for(;null!==e;)d.push(e),e=nb();else d=nc;return null!==d&&(d=a.substring(c,Gf)),c=d,null!==c&&(Hf=b,c=ee(c)),null===c?(Gf=b,b=c):b=c,b}function nb(){var b,c,d;return b=Gf,c=Gf,Mf++,d=ob(),Mf--,null===d?c=oc:(Gf=c,c=nc),null!==c?(a.length>Gf?(d=a.charAt(Gf),Gf++):(d=null,0===Mf&&e(fe)),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function ob(){var a;return a=tb(),null===a&&(a=sb(),null===a&&(a=xb(),null===a&&(a=bc(),null===a&&(a=ac())))),a}function pb(){var a,b,c,d,e,f;return a=Gf,b=rb(),null!==b?(c=dc(),null!==c?(d=fb(),null!==d?(e=dc(),null!==e?(f=ub(),null!==f?(Hf=a,b=ce(d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc)):(Gf=a,a=nc),a}function qb(){var a;return a=pb(),null===a&&(a=hb(),null===a&&(a=gb())),a}function rb(){var b,c;return Mf++,123===a.charCodeAt(Gf)?(b=Zd,Gf++):(b=null,0===Mf&&e($d)),Mf--,null===b&&(c=null,0===Mf&&e(ge)),b}function sb(){var b,c;return Mf++,a.substr(Gf,2)===ie?(b=ie,Gf+=2):(b=null,0===Mf&&e(je)),Mf--,null===b&&(c=null,0===Mf&&e(he)),b}function tb(){var b,c;return Mf++,a.substr(Gf,3)===le?(b=le,Gf+=3):(b=null,0===Mf&&e(me)),Mf--,null===b&&(c=null,0===Mf&&e(ke)),b}function ub(){var b,c;return Mf++,125===a.charCodeAt(Gf)?(b=oe,Gf++):(b=null,0===Mf&&e(pe)),Mf--,null===b&&(c=null,0===Mf&&e(ne)),b}function vb(){var b,c;return Mf++,a.substr(Gf,2)===re?(b=re,Gf+=2):(b=null,0===Mf&&e(se)),Mf--,null===b&&(c=null,0===Mf&&e(qe)),b}function wb(){var b,c;return Mf++,a.substr(Gf,3)===ue?(b=ue,Gf+=3):(b=null,0===Mf&&e(ve)),Mf--,null===b&&(c=null,0===Mf&&e(te)),b}function xb(){var b,c;return Mf++,a.substr(Gf,2)===xe?(b=xe,Gf+=2):(b=null,0===Mf&&e(ye)),Mf--,null===b&&(c=null,0===Mf&&e(we)),b}function yb(){var b,c;return Mf++,125===a.charCodeAt(Gf)?(b=oe,Gf++):(b=null,0===Mf&&e(pe)),Mf--,null===b&&(c=null,0===Mf&&e(ze)),b}function zb(){var b,c,d;return b=Gf,a.substr(Gf,2)===Ae?(c=Ae,Gf+=2):(c=null,0===Mf&&e(Be)),null!==c?(32===a.charCodeAt(Gf)?(d=Lc,Gf++):(d=null,0===Mf&&e(Mc)),null===d&&(d=oc),null!==d?(Hf=b,c=Ce(),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),null===b&&(b=Gf,61===a.charCodeAt(Gf)?(c=rc,Gf++):(c=null,0===Mf&&e(sc)),null!==c?(32===a.charCodeAt(Gf)?(d=Lc,Gf++):(d=null,0===Mf&&e(Mc)),null===d&&(d=oc),null!==d?(Hf=b,c=De(),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)),b}function Ab(){var b,c,d,f,g;return b=Gf,c=Tb(),null===c&&(c=oc),null!==c?(d=F(),null===d&&(d=oc),null!==d?(47===a.charCodeAt(Gf)?(f=Gc,Gf++):(f=null,0===Mf&&e(Hc)),null===f&&(f=oc),null!==f?(Hf=Gf,g=Ee(c,d),g=g?oc:nc,null!==g?(c=[c,d,f,g],b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Bb(){var a,b,c,d,e;if(a=Gf,b=Ab(),null!==b){for(c=[],d=qb();null!==d;)c.push(d),d=qb();if(null!==c){for(d=[],e=Cb();null!==e;)d.push(e),e=Cb();null!==d?(Hf=a,b=Fe(b,c,d),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)}else Gf=a,a=nc}else Gf=a,a=nc;return a}function F(){var a,b,c,d;if(a=Gf,b=[],c=Gf,d=Mb(),null!==d&&(Hf=c,d=Ge(d)),null===d?(Gf=c,c=d):c=d,null===c&&(c=Gf,d=Nb(),null!==d&&(Hf=c,d=He(d)),null===d?(Gf=c,c=d):c=d),null!==c)for(;null!==c;)b.push(c),c=Gf,d=Mb(),null!==d&&(Hf=c,d=Ge(d)),null===d?(Gf=c,c=d):c=d,null===c&&(c=Gf,d=Nb(),null!==d&&(Hf=c,d=He(d)),null===d?(Gf=c,c=d):c=d);else b=nc;return null!==b&&(Hf=a,b=Ie(b)),null===b?(Gf=a,a=b):a=b,a}function Cb(){var b,c,d;if(b=Gf,c=[],32===a.charCodeAt(Gf)?(d=Lc,Gf++):(d=null,0===Mf&&e(Mc)),null!==d)for(;null!==d;)c.push(d),32===a.charCodeAt(Gf)?(d=Lc,Gf++):(d=null,0===Mf&&e(Mc));else c=nc;return null!==c?(d=Gb(),null===d&&(d=Ib(),null===d&&(d=Jb(),null===d&&(d=Kb()))),null!==d?(Hf=b,c=Je(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Db(){var b;return Ke.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(Le)),null===b&&(b=Wb()),b}function Eb(){var a,b;return a=Fb(),null===a&&(a=Gf,b=Q(),null!==b&&(Hf=a,b=Me(b)),null===b?(Gf=a,a=b):a=b),a}function Fb(){var b,c,d,f,g;return b=Gf,c=Gf,34===a.charCodeAt(Gf)?(d=Hd,Gf++):(d=null,0===Mf&&e(Id)),null!==d?(f=D(),null!==f?(34===a.charCodeAt(Gf)?(g=Hd,Gf++):(g=null,0===Mf&&e(Id)),null!==g?(d=[d,f,g],c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc),null===c&&(c=Gf,39===a.charCodeAt(Gf)?(d=Jd,Gf++):(d=null,0===Mf&&e(Kd)),null!==d?(f=D(),null!==f?(39===a.charCodeAt(Gf)?(g=Jd,Gf++):(g=null,0===Mf&&e(Kd)),null!==g?(d=[d,f,g],c=d):(Gf=c,c=nc)):(Gf=c,c=nc)):(Gf=c,c=nc)),null!==c&&(Hf=b,c=Ld(c)),null===c?(Gf=b,b=c):b=c,b}function Gb(){var b,c,d,f;return b=Gf,c=Xb(),null!==c?(61===a.charCodeAt(Gf)?(d=rc,Gf++):(d=null,0===Mf&&e(sc)),null!==d?(f=Eb(),null!==f?(Hf=b,c=Ne(c,f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Hb(){var b,c,d,f,g,h;if(b=Gf,123===a.charCodeAt(Gf)?(c=Zd,Gf++):(c=null,0===Mf&&e($d)),null!==c)if(d=dc(),null!==d){if(f=Gf,g=[],h=Db(),null===h&&(32===a.charCodeAt(Gf)?(h=Lc,Gf++):(h=null,0===Mf&&e(Mc))),null!==h)for(;null!==h;)g.push(h),h=Db(),null===h&&(32===a.charCodeAt(Gf)?(h=Lc,Gf++):(h=null,0===Mf&&e(Mc)));else g=nc;null!==g&&(g=a.substring(f,Gf)),f=g,null!==f?(g=dc(),null!==g?(125===a.charCodeAt(Gf)?(h=oe,Gf++):(h=null,0===Mf&&e(pe)),null!==h?(Hf=b,c=Oe(f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)}else Gf=b,b=nc;else Gf=b,b=nc;if(null===b){if(b=Gf,c=[],d=Db(),null!==d)for(;null!==d;)c.push(d),d=Db();else c=nc;null!==c&&(c=a.substring(b,Gf)),b=c}return b}function Ib(){var b,c,d,f,g,h;return b=Gf,c=L(),null!==c?(61===a.charCodeAt(Gf)?(d=rc,Gf++):(d=null,0===Mf&&e(sc)),null!==d?(f=Hb(),null!==f?(g=Gf,Mf++,33===a.charCodeAt(Gf)?(h=Pe,Gf++):(h=null,0===Mf&&e(Qe)),Mf--,null===h?g=oc:(Gf=g,g=nc),null!==g?(Hf=Gf,h=Re(c,f),h=h?oc:nc,null!==h?(Hf=b,c=Se(c,f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Jb(){var b,c,d,f;return b=Gf,c=L(),null!==c?(61===a.charCodeAt(Gf)?(d=rc,Gf++):(d=null,0===Mf&&e(sc)),null!==d?(f=Q(),null!==f?(Hf=b,c=Te(c,f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Kb(){var b,c,d,f;return b=Gf,c=L(),null!==c?(61===a.charCodeAt(Gf)?(d=rc,Gf++):(d=null,0===Mf&&e(sc)),null!==d?(f=bb(),null!==f?(Hf=b,c=Ue(c,f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Lb(){var b,c,d;return b=Gf,37===a.charCodeAt(Gf)?(c=Ve,Gf++):(c=null,0===Mf&&e(We)),null!==c?(d=Ob(),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Mb(){var b,c,d;return b=Gf,35===a.charCodeAt(Gf)?(c=Xe,Gf++):(c=null,0===Mf&&e(Ye)),null!==c?(d=Ob(),null!==d?(Hf=b,c=Ze(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Nb(){var b,c,d;return b=Gf,46===a.charCodeAt(Gf)?(c=gd,Gf++):(c=null,0===Mf&&e(hd)),null!==c?(d=Ob(),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Ob(){var a,b;return Mf++,a=Pb(),Mf--,null===a&&(b=null,0===Mf&&e($e)),a}function Pb(){var b,c,d;for(b=Gf,c=[],d=Qb();null!==d;)c.push(d),d=Qb();return null!==c&&(c=a.substring(b,Gf)),b=c}function Qb(){var b;return _e.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(af)),null===b&&(b=Rb()),b}function Rb(){var b;return bf.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(cf)),b}function Sb(){var b,c,d;if(b=Gf,c=[],d=Vb(),null!==d)for(;null!==d;)c.push(d),d=Vb();else c=nc;return null!==c&&(c=a.substring(b,Gf)),b=c}function Tb(){var b,c,d,f;return Mf++,b=Gf,37===a.charCodeAt(Gf)?(c=Ve,Gf++):(c=null,0===Mf&&e(We)),null!==c?(d=dc(),null!==d?(f=Sb(),null!==f?(Hf=b,c=kd(f),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),null===b&&(b=Ub()),Mf--,null===b&&(c=null,0===Mf&&e(df)),b}function Ub(){var a,b,c;return a=Gf,b=Sb(),null!==b?(Hf=Gf,c=ef(b),c=c?oc:nc,null!==c?(Hf=a,b=ff(b),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function Vb(){var b;return _e.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(af)),null===b&&(b=Wb()),b}function Wb(){var b,c,d,f;return b=Gf,58===a.charCodeAt(Gf)?(c=md,Gf++):(c=null,0===Mf&&e(nd)),null!==c?(d=Gf,Mf++,32===a.charCodeAt(Gf)?(f=Lc,Gf++):(f=null,0===Mf&&e(Mc)),Mf--,null===f?d=oc:(Gf=d,d=nc),null!==d?(Hf=b,c=Oc(c),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function Xb(){var a,b,c;return Mf++,a=Gf,b=Sb(),null!==b?(Hf=Gf,c=hf(b),c=c?oc:nc,null!==c?(Hf=a,b=ff(b),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),Mf--,null===a&&(b=null,0===Mf&&e(gf)),a}function Yb(){var a,b,c;return a=Gf,b=Zb(),null!==b?(c=cc(),null!==c?(Hf=a,b=kd(c),null===b?(Gf=a,a=b):a=b):(Gf=a,a=nc)):(Gf=a,a=nc),a}function Zb(){var b,c;return Mf++,b=Gf,61423===a.charCodeAt(Gf)?(c=kf,Gf++):(c=null,0===Mf&&e(lf)),null!==c&&(Hf=b,c=mf()),null===c?(Gf=b,b=c):b=c,Mf--,null===b&&(c=null,0===Mf&&e(jf)),b}function $b(){var b,c;return Mf++,b=Gf,61438===a.charCodeAt(Gf)?(c=of,Gf++):(c=null,0===Mf&&e(pf)),null!==c&&(Hf=b,c=mf()),null===c?(Gf=b,b=c):b=c,Mf--,null===b&&(c=null,0===Mf&&e(nf)),b}function _b(){var b,c;return Mf++,b=Gf,61422===a.charCodeAt(Gf)?(c=rf,Gf++):(c=null,0===Mf&&e(sf)),null!==c&&(Hf=b,c=mf()),null===c?(Gf=b,b=c):b=c,Mf--,null===b&&(c=null,0===Mf&&e(qf)),b}function ac(){var b,c,d,f;return Mf++,b=Gf,13===a.charCodeAt(Gf)?(c=uf,Gf++):(c=null,0===Mf&&e(vf)),null===c&&(c=oc),null!==c?(61439===a.charCodeAt(Gf)?(d=wf,Gf++):(d=null,0===Mf&&e(xf)),null!==d?(10===a.charCodeAt(Gf)?(f=yf,Gf++):(f=null,0===Mf&&e(zf)),null!==f?(Hf=b,c=Ce(),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc)):(Gf=b,b=nc),Mf--,null===b&&(c=null,0===Mf&&e(tf)),b}function bc(){var a,b;return Mf++,a=$b(),null===a&&(a=_b()),Mf--,null===a&&(b=null,0===Mf&&e(Af)),a}function cc(){var b,c,d;if(Mf++,b=Gf,c=[],d=ec(),null!==d)for(;null!==d;)c.push(d),d=ec();else c=nc;return null!==c&&(c=a.substring(b,Gf)),b=c,Mf--,null===b&&(c=null,0===Mf&&e(Bf)),b}function dc(){var a,b;for(Mf++,a=[],b=ec();null!==b;)a.push(b),b=ec();return Mf--,null===a&&(b=null,0===Mf&&e(Cf)),a}function ec(){var b,c;return Mf++,Ef.test(a.charAt(Gf))?(b=a.charAt(Gf),Gf++):(b=null,0===Mf&&e(Ff)),Mf--,null===b&&(c=null,0===Mf&&e(Df)),b}function fc(){var b,c,d;return b=Gf,c=Gf,Mf++,d=Zb(),null===d&&(d=$b(),null===d&&(d=ac())),Mf--,null===d?c=oc:(Gf=c,c=nc),null!==c?(a.length>Gf?(d=a.charAt(Gf),Gf++):(d=null,0===Mf&&e(fe)),null!==d?(Hf=b,c=Oc(d),null===c?(Gf=b,b=c):b=c):(Gf=b,b=nc)):(Gf=b,b=nc),b}function gc(){var b,c,d;for(b=Gf,c=[],d=fc();null!==d;)c.push(d),d=fc();return null!==c&&(c=a.substring(b,Gf)),b=c}function hc(a,b,c){var d=a.hash;if(c){d=d||new Pf.HashNode([]);for(var e=0;e<c.length;++e)d.pairs.push(c[e])}var f=[a.id].concat(a.params);return f.unshift(new Pf.IdNode([{part:b}])),new Pf.MustacheNode(f,d,!a.escaped)}function ic(a,b){var c=[];a&&c.push(a);for(var d=0;d<b.length;++d){var e=b[d];c.push(e[0]),e[1]&&c.push(e[1])}return c}var jc,kc=arguments.length>1?arguments[1]:{},lc={start:g},mc=g,nc=null,oc="",pc=function(a){return a},qc=function(a,b){return new Pf.ProgramNode(a,b||[])},rc="=",sc='"="',tc="else",uc='"else"',vc=function(a){for(var b=[],c=[],d=0;d<a.length;++d)for(var e=a[d],f=0;f<e.length;++f){var g=e[f];"content"!==g.type?(c.length&&(b.push(new Pf.ContentNode(c.join(""))),c=[]),b.push(g)):g.string&&c.push(g.string)}return c.length&&b.push(new Pf.ContentNode(c.join(""))),b},wc="BeginStatement",xc="ContentStatement",yc=function(){return[]},zc=">",Ac='">"',Bc=function(a,b){return[new Pf.PartialNode(a,b[0])]},Cc=/^[a-zA-Z0-9_$-\/]/,Dc="[a-zA-Z0-9_$-\\/]",Ec=function(a){return new Pf.PartialNameNode(new Pf.StringNode(a))},Fc=function(a){return[a]},Gc="/",Hc='"/"',Ic=/^[A-Z]/,Jc="[A-Z]",Kc=function(a){var b="view";
2
+ if(a.mustache){var c=a.mustache.id.string.charAt(0);return Of&&c.match(/[A-Z]/)?(a.mustache=hc(a.mustache,b),a):a}var c=a.id.string.charAt(0);return Of&&c.match(/[A-Z]/)?hc(a,b):a},Lc=" ",Mc='" "',Nc=function(a,b){if(b){b=b[1];for(var c=0,d=b.length;d>c;++c)a.push(new Pf.ContentNode(" ")),a=a.concat(b[c])}return a},Oc=function(a){return a},Pc=function(a){return[a]},Qc=function(a,b){var c=a[0];return b&&(c=c.concat(b)),a[1]&&c.push(a[1]),c},Rc=function(a,b){return b?new Pf.BlockNode(a,b,b.inverse,a.id):a},Sc=": ",Tc='": "',Uc=function(a){return new Pf.ProgramNode(a,[])},Vc=function(a){return a&&a[2]},Wc=function(a,b){var c=b.mustache||b;return c.escaped=a,b},Xc=function(a,b,c,d){if(a){var e=new Pf.PartialNameNode(new Pf.StringNode(b.string));return new Pf.PartialNode(e,c[0])}for(var f=[],g={},h=!1,i=0;i<c.length;++i){var j=c[i],k=j[0];"tagName"==k||"elementId"==k||"class"==k?(h=!0,g[k]=g[k]||[],g[k].push(j[1])):f.push(j)}if(h){d=d||new Pf.HashNode([]);for(var l in g)g.hasOwnProperty(l)&&d.pairs.push([l,new Pf.StringNode(g[l].join(" "))])}f.unshift(b);var m=new Pf.MustacheNode(f,d),n=b._emblemSuffixModifier;return"!"===n?hc(m,"unbound"):"?"===n?hc(m,"if"):"^"===n?hc(m,"unless"):m},Yc=function(a){return["tagName",a]},Zc=function(a){return["elementId",a]},$c=function(a){return["class",a]},_c=function(a,b){return[a,b]},ad=function(a){return[null,a]},bd=function(a){return a},cd=function(a){return new Pf.HashNode(a)},dd="PathIdent",ed="..",fd='".."',gd=".",hd='"."',id=/^[a-zA-Z0-9_$\-!?\^]/,jd="[a-zA-Z0-9_$\\-!?\\^]",kd=function(a){return a},ld="Key",md=":",nd='":"',od=function(a){return[a[0],a[2]]},pd=function(a,b){return{part:b,separator:a}},qd=function(a,b){for(var c=[{part:a}],d=0;d<b.length;++d)c.push(b[d]);return c},rd="PathSeparator",sd=/^[\/.]/,td="[\\/.]",ud=function(a){var b,c,d=a[a.length-1];(b=d.part.match(/[!\?\^]$/))&&(c=b[0],d.part=d.part.slice(0,-1));var e=new Pf.IdNode(a);return e._emblemSuffixModifier=c,e},vd=function(a){return new Pf.StringNode(a)},wd=function(a){return new Pf.IntegerNode(a)},xd=function(a){return new Pf.BooleanNode(a)},yd="Boolean",zd="true",Ad='"true"',Bd="false",Cd='"false"',Dd="Integer",Ed=/^[0-9]/,Fd="[0-9]",Gd=function(a){return parseInt(a)},Hd='"',Id='"\\""',Jd="'",Kd='"\'"',Ld=function(a){return a[1]},Md=/^[^"}]/,Nd='[^"}]',Od=/^[^'}]/,Pd="[^'}]",Qd=function(a,b,c){b.unshift(new Pf.ContentNode(a));for(var d=0;d<c.length;++d)b.push(new Pf.ContentNode(a)),b=b.concat(c[d]),b.push("\n");return b},Rd=/^[|`']/,Sd="[|`']",Td="<",Ud='"<"',Vd=function(){return"<"},Wd=function(a,b,c){if((b.length||!c)&&b.push("\n"),c){c=c[1];for(var d=0;d<c.length;++d)b=b.concat(c[d]),b.push("\n")}for(var e=[],f="`"!==a,d=0;d<b.length;++d){var g=b[d];"\n"==g?f||e.push(new Pf.ContentNode("\n")):e.push(g)}return"'"===a&&e.push(new Pf.ContentNode(" ")),e},Xd=function(a,b){return ic(a,b)},Yd=function(a,b){return ic(a,b)},Zd="{",$d='"{"',_d=/^[^}]/,ae="[^}]",be=function(a){return a="="+a,c.parse(a).statements[0]},ce=function(a){return a.escaped=!0,a},de=function(a){return a.escaped=!1,a},ee=function(a){return new Pf.ContentNode(a)},fe="any character",ge="SingleMustacheOpen",he="DoubleMustacheOpen",ie="{{",je='"{{"',ke="TripleMustacheOpen",le="{{{",me='"{{{"',ne="SingleMustacheClose",oe="}",pe='"}"',qe="DoubleMustacheClose",re="}}",se='"}}"',te="TripleMustacheClose",ue="}}}",ve='"}}}"',we="InterpolationOpen",xe="#{",ye='"#{"',ze="InterpolationClose",Ae="==",Be='"=="',Ce=function(){return!1},De=function(){return!0},Ee=function(a,b){return a||b},Fe=function(a,b,c){var d=a[0]||"div",e=a[1]||[],f=e[0],g=e[1],h=[];h.push(new Pf.ContentNode("<"+d)),f&&h.push(new Pf.ContentNode(' id="'+f+'"')),g&&g.length&&h.push(new Pf.ContentNode(' class="'+g.join(" ")+'"'));for(var i=0;i<b.length;++i)h.push(new Pf.ContentNode(" ")),h.push(b[i]);for(var i=0;i<c.length;++i)h=h.concat(c[i]);var j=!!a[2];return Qf[d]||j?(h.push(new Pf.ContentNode(" />")),[h]):(h.push(new Pf.ContentNode(">")),[h,new Pf.ContentNode("</"+d+">")])},Ge=function(a){return{shorthand:a,id:!0}},He=function(a){return{shorthand:a}},Ie=function(a){for(var b,c=[],d=0,e=a.length;e>d;++d){var f=a[d];f.id?b=f.shorthand:c.push(f.shorthand)}return[b,c]},Je=function(a){return[new Pf.ContentNode(" ")].concat(a)},Ke=/^[A-Za-z.0-9_\-]/,Le="[A-Za-z.0-9_\\-]",Me=function(a){return new Pf.MustacheNode([a])},Ne=function(a,b){return[hc(b,"action",[["on",new Pf.StringNode(a)]])]},Oe=function(a){return a.replace(/ *$/,"")},Pe="!",Qe='"!"',Re=function(){return Of},Se=function(a,b){var c=new Pf.HashNode([[a,new Pf.StringNode(b)]]),d=[new Pf.IdNode([{part:"bindAttr"}])],e=new Pf.MustacheNode(d,c);return[e]},Te=function(a,b){var c=new Pf.MustacheNode([b]);return Of&&"!"===b._emblemSuffixModifier&&(c=hc(c,"unbound")),[new Pf.ContentNode(a+"="+'"'),c,new Pf.ContentNode('"')]},Ue=function(a,b){var c=[new Pf.ContentNode(a+"="+'"')].concat(b);return c.concat([new Pf.ContentNode('"')])},Ve="%",We='"%"',Xe="#",Ye='"#"',Ze=function(a){return a},$e="CSSIdentifier",_e=/^[_a-zA-Z0-9\-]/,af="[_a-zA-Z0-9\\-]",bf=/^[\x80-\xFF]/,cf="[\\x80-\\xFF]",df="KnownHTMLTagName",ef=function(a){return!!Rf[a]},ff=function(a){return a},gf="a JS event",hf=function(a){return!!Sf[a]},jf="INDENT",kf="\uefef",lf='"\\uEFEF"',mf=function(){return""},nf="DEDENT",of="\ueffe",pf='"\\uEFFE"',qf="Unmatched DEDENT",rf="\uefee",sf='"\\uEFEE"',tf="LineEnd",uf="\r",vf='"\\r"',wf="\uefff",xf='"\\uEFFF"',yf="\n",zf='"\\n"',Af="ANYDEDENT",Bf="RequiredWhitespace",Cf="OptionalWhitespace",Df="InlineWhitespace",Ef=/^[ \t]/,Ff="[ \\t]",Gf=0,Hf=0,If=0,Jf={line:1,column:1,seenCR:!1},Kf=0,Lf=[],Mf=0;if("startRule"in kc){if(!(kc.startRule in lc))throw new Error("Can't start parsing from rule \""+kc.startRule+'".');mc=lc[kc.startRule]}var Nf=c.handlebarsVariant,Of="Ember.Handlebars"===Nf.JavaScriptCompiler.prototype.namespace,Pf=Nf.AST,Qf={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Rf={figcaption:!0,blockquote:!0,plaintext:!0,textarea:!0,progress:!0,optgroup:!0,noscript:!0,noframes:!0,frameset:!0,fieldset:!0,datalist:!0,colgroup:!0,basefont:!0,summary:!0,section:!0,marquee:!0,listing:!0,isindex:!0,details:!0,command:!0,caption:!0,bgsound:!0,article:!0,address:!0,acronym:!0,strong:!0,strike:!0,spacer:!0,source:!0,select:!0,script:!0,output:!0,option:!0,object:!0,legend:!0,keygen:!0,iframe:!0,hgroup:!0,header:!0,footer:!0,figure:!0,center:!0,canvas:!0,button:!0,applet:!0,video:!0,track:!0,title:!0,thead:!0,tfoot:!0,tbody:!0,table:!0,style:!0,small:!0,param:!0,meter:!0,label:!0,input:!0,frame:!0,embed:!0,blink:!0,audio:!0,aside:!0,time:!0,span:!0,samp:!0,ruby:!0,nobr:!0,meta:!0,menu:!0,mark:!0,main:!0,link:!0,html:!0,head:!0,form:!0,font:!0,data:!0,code:!0,cite:!0,body:!0,base:!0,area:!0,abbr:!0,xmp:!0,wbr:!0,"var":!0,sup:!0,sub:!0,pre:!0,nav:!0,map:!0,kbd:!0,ins:!0,img:!0,div:!0,dir:!0,dfn:!0,del:!0,col:!0,big:!0,bdo:!0,bdi:!0,ul:!0,tt:!0,tr:!0,th:!0,td:!0,rt:!0,rp:!0,ol:!0,li:!0,hr:!0,h6:!0,h5:!0,h4:!0,h3:!0,h2:!0,h1:!0,em:!0,dt:!0,dl:!0,dd:!0,br:!0,u:!0,s:!0,q:!0,p:!0,i:!0,b:!0,a:!0},Sf={touchStart:!0,touchMove:!0,touchEnd:!0,touchCancel:!0,keyDown:!0,keyUp:!0,keyPress:!0,mouseDown:!0,mouseUp:!0,contextMenu:!0,click:!0,doubleClick:!0,mouseMove:!0,focusIn:!0,focusOut:!0,mouseEnter:!0,mouseLeave:!0,submit:!0,input:!0,change:!0,dragStart:!0,drag:!0,dragEnter:!0,dragLeave:!0,dragOver:!0,drop:!0,dragEnd:!0};if(jc=mc(),null!==jc&&Gf===a.length)return jc;throw f(Lf),Hf=Math.max(Gf,Kf),new b(Lf,Hf<a.length?a.charAt(Hf):null,Hf,d(Hf).line,d(Hf).column)}return a(b,Error),{SyntaxError:b,parse:d}}(),b.exports=c.Parser},{"./emblem":3}],5:[function(a){var b,c,d;d=a("StringScanner"),b=a("./emblem"),b.Preprocessor=c=function(){function a(){this.base=null,this.indents=[],this.context=[],this.context.peek=function(){return this.length?this[this.length-1]:null},this.context.err=function(a){throw new Error("Unexpected "+a)},this.output="",this.context.observe=function(a){var b;switch(b=this.peek(),a){case e:this.push(a);break;case c:b!==e&&this.err(a),this.pop();break;case"\r":"/"!==b&&this.err(a),this.pop();break;case"\n":"/"!==b&&this.err(a),this.pop();break;case"/":this.push(a);break;case"end-\\":"\\"!==b&&this.err(a),this.pop();break;default:throw new Error("undefined token observed: "+a)}return this},this.ss=this.StringScanner?new this.StringScanner(""):b.StringScanner?new b.StringScanner(""):new d("")}var c,e,f,g,h,i,j,k;return k="\\t\\x0B\\f \\xA0\\u1680\\u180E\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF",e="\uefef",c="\ueffe",g="\uefee",f="\uefff",h=RegExp("["+k+"\\r?\\n]*$"),i=RegExp("(?:["+k+"]*\\r?\\n)+"),a.prototype.p=function(a){return a&&(this.output+=a),a},a.prototype.scan=function(a){return this.p(this.ss.scan(a))},a.prototype.discard=function(a){return this.ss.scan(a)},j=function(a){return function(b){var d,j,l,m;for(a||(this.ss.concat(b),this.discard(i));!this.ss.eos();)switch(this.context.peek()){case null:case e:if(this.ss.bol()||this.discard(i)){if(this.discard(RegExp("["+k+"]*\\r?\\n"))){this.p(""+f+"\n");continue}if(null!=this.base){if(null==this.discard(this.base))throw new Error("inconsistent base indentation")}else d=this.discard(RegExp("["+k+"]*")),this.base=RegExp(""+d);if(0===this.indents.length)this.ss.check(RegExp("["+k+"]+"))&&(this.p(e),this.context.observe(e),this.indents.push(this.scan(RegExp("(["+k+"]+)"))));else if(l=this.indents[this.indents.length-1],j=this.ss.check(RegExp("("+l+")")))this.discard(j),this.ss.check(RegExp("(["+k+"]+)"))&&(this.p(e),this.context.observe(e),this.indents.push(j+this.scan(RegExp("(["+k+"]+)"))));else{for(;this.indents.length&&(l=this.indents[this.indents.length-1],!this.discard(RegExp("(?:"+l+")")));)this.context.observe(c),this.p(c),this.indents.pop();(m=this.discard(RegExp("["+k+"]+")))&&(this.output=this.output.slice(0,-1),this.output+=g,this.p(e),this.context.observe(e),this.indents.push(m))}}this.scan(/[^\r\n]+/),this.discard(/\r?\n/)&&this.p(""+f+"\n")}if(a){for(this.scan(h);this.context.length&&e===this.context.peek();)this.context.observe(c),this.p(c);if(this.context.length)throw new Error("Unclosed "+this.context.peek()+" at EOF")}}},a.prototype.processData=j(!1),a.prototype.processEnd=j(!0),a.processSync=function(b){var c;return b+="\n",c=new a,c.processData(b),c.processEnd(),c.output},a}()},{"./emblem":3,StringScanner:6}],6:[function(a,b){!function(){var a;a=function(){function a(a){this.str=null!=a?a:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset()}return a.prototype.bol=function(){return this.pos<=0||"\n"===this.str[this.pos-1]},a.prototype.captures=function(){return this.lastMatch.captures},a.prototype.check=function(a){var b;return 0!==this.str.substr(this.pos).search(a)?(this.lastMatch.reset(),null):(b=this.str.substr(this.pos).match(a),this.lastMatch.str=b[0],this.lastMatch.captures=b.slice(1),this.lastMatch.str)},a.prototype.checkUntil=function(a){var b,c;return c=this.str.substr(this.pos).search(a),0>c?(this.lastMatch.reset(),null):(b=this.str.substr(this.pos+c).match(a),this.lastMatch.captures=b.slice(1),this.lastMatch.str=this.str.substr(this.pos,c)+b[0])},a.prototype.clone=function(){var a,b,c,d;a=new this.constructor(this.str),a.pos=this.pos,a.lastMatch={},d=this.lastMatch;for(b in d)c=d[b],a.lastMatch[b]=c;return a},a.prototype.concat=function(a){return this.str+=a,this},a.prototype.eos=function(){return this.pos===this.str.length},a.prototype.exists=function(a){var b,c;return c=this.str.substr(this.pos).search(a),0>c?(this.lastMatch.reset(),null):(b=this.str.substr(this.pos+c).match(a),this.lastMatch.str=b[0],this.lastMatch.captures=b.slice(1),c)},a.prototype.getch=function(){return this.scan(/./)},a.prototype.match=function(){return this.lastMatch.str},a.prototype.matches=function(a){return this.check(a),this.matchSize()},a.prototype.matched=function(){return null!=this.lastMatch.str},a.prototype.matchSize=function(){return this.matched()?this.match().length:null},a.prototype.peek=function(a){return this.str.substr(this.pos,a)},a.prototype.pointer=function(){return this.pos},a.prototype.setPointer=function(a){return a=+a,0>a&&(a=0),a>this.str.length&&(a=this.str.length),this.pos=a},a.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},a.prototype.rest=function(){return this.str.substr(this.pos)},a.prototype.scan=function(a){var b;return b=this.check(a),null!=b&&(this.pos+=b.length),b},a.prototype.scanUntil=function(a){var b;return b=this.checkUntil(a),null!=b&&(this.pos+=b.length),b},a.prototype.skip=function(a){return this.scan(a),this.matchSize()},a.prototype.skipUntil=function(a){return this.scanUntil(a),this.matchSize()},a.prototype.string=function(){return this.str},a.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},a.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},a}(),a.prototype.beginningOfLine=a.prototype.bol,a.prototype.clear=a.prototype.terminate,a.prototype.dup=a.prototype.clone,a.prototype.endOfString=a.prototype.eos,a.prototype.exist=a.prototype.exists,a.prototype.getChar=a.prototype.getch,a.prototype.position=a.prototype.pointer,a.StringScanner=a,b.exports=a}.call(this)},{}]},{},[3]);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emblem-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Matchneer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-29 00:00:00.000000000 Z
11
+ date: 2013-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Emblem.js source code wrapper for (pre)compilation gems.
14
14
  email: