emblem-source 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/dist/emblem.js +3 -3
  2. data/dist/emblem.min.js +1 -1
  3. metadata +2 -2
@@ -178,7 +178,7 @@ this.Emblem = {};
178
178
 
179
179
  Emblem = this.Emblem;
180
180
 
181
- Emblem.VERSION = "0.0.3";
181
+ Emblem.VERSION = "0.1.9";
182
182
 
183
183
 
184
184
 
@@ -631,8 +631,8 @@ Emblem.Parser = (function() {
631
631
  peg$c125 = function(a) {
632
632
  return [new AST.ContentNode(' ')].concat(a);
633
633
  },
634
- peg$c126 = /^[A-Za-z.:0-9_]/,
635
- peg$c127 = "[A-Za-z.:0-9_]",
634
+ peg$c126 = /^[A-Za-z.:0-9_\-]/,
635
+ peg$c127 = "[A-Za-z.:0-9_\\-]",
636
636
  peg$c128 = function(id) { return new AST.MustacheNode([id]); },
637
637
  peg$c129 = function(event, mustacheNode) {
638
638
  // Unshift the action helper and augment the hash
@@ -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.0.3",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 Dr(){return e.substring(Cr,Nr)}function Pr(){return Cr}function Hr(){return jr(Cr).line}function Br(){return jr(Cr).column}function jr(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 kr!==t&&(kr>t&&(kr=0,Lr={line:1,column:1,seenCR:!1}),kr=t,n(Lr,kr)),Lr}function Fr(e){if(Nr<Ar)return;Nr>Ar&&(Ar=Nr,Or=[]),Or.push(e)}function Ir(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function qr(){var e;return e=Rr(),e}function Rr(){var t,n,r,i,s,h,p,d,v;return t=Nr,n=Ur(),n!==null?(r=Nr,i=Ts(),i!==null?(e.substr(Nr,4)===a?(s=a,Nr+=4):(s=null,Mr===0&&Fr(f)),s!==null?(h=As(),h!==null?(p=Cs(),p!==null?(d=Ss(),d!==null?(v=Ur(),v!==null?(Cr=r,i=l(v),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=u),r!==null?(Cr=t,n=c(n,r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Ur(){var e,t,n;e=Nr,t=[],n=zr();while(n!==null)t.push(n),n=zr();return t!==null&&(Cr=e,t=p(t)),t===null?(Nr=e,e=t):e=t,e}function zr(){var e,t;return Mr++,e=Wr(),e===null&&(e=Qr(),e===null&&(e=Xr(),e===null&&(e=$r(),e===null&&(e=_i(),e===null&&(e=Jr()))))),Mr--,e===null&&(t=null,Mr===0&&Fr(d)),e}function Wr(){var e,t,n;return e=Nr,t=As(),t!==null?(n=Cs(),n!==null?(Cr=e,t=v(),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function Xr(){var t,n,r,i,s,a,f,l;return t=Nr,e.charCodeAt(Nr)===62?(n=m,Nr++):(n=null,Mr===0&&Fr(g)),n!==null?(r=As(),r!==null?(i=Vr(),i!==null?(s=As(),s!==null?(a=gi(),a===null&&(a=u),a!==null?(f=As(),f!==null?(l=Cs(),l!==null?(Cr=t,n=y(i,a),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function Vr(){var t,n,r,i;t=Nr,n=Nr,r=[],b.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(w));if(i!==null)while(i!==null)r.push(i),b.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(w));else r=o;return r!==null&&(r=e.substring(n,Nr)),n=r,n!==null&&(Cr=t,n=E(n)),n===null?(Nr=t,t=n):t=n,t}function $r(){var e;return e=Zr(),e===null&&(e=ei()),e}function Jr(){var e,t;return e=Nr,t=ri(),t===null&&(t=Gr()),t!==null&&(Cr=e,t=S(t)),t===null?(Nr=e,e=t):e=t,e}function Kr(){var e,t,n,r,i,s,u,a;e=Nr,t=_s();if(t!==null){n=Cs();if(n!==null){r=[],i=Nr,s=Ss();if(s!==null){u=[],a=Kr();if(a!==null)while(a!==null)u.push(a),a=Kr();else u=o;u!==null?(a=ks(),a!==null?(s=[s,u,a],i=s):(Nr=i,i=o)):(Nr=i,i=o)}else Nr=i,i=o;while(i!==null){r.push(i),i=Nr,s=Ss();if(s!==null){u=[],a=Kr();if(a!==null)while(a!==null)u.push(a),a=Kr();else u=o;u!==null?(a=ks(),a!==null?(s=[s,u,a],i=s):(Nr=i,i=o)):(Nr=i,i=o)}else Nr=i,i=o}r!==null?(Cr=e,t=v(),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function Qr(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===47?(n=x,Nr++):(n=null,Mr===0&&Fr(T)),n!==null?(r=Kr(),r!==null?(Cr=t,n=v(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Gr(){var e;return e=Yr(),e===null&&(e=ti()),e}function Yr(){var t,n,r;return t=Nr,n=Nr,Mr++,N.test(e.charAt(Nr))?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(C)),Mr--,r!==null?(Nr=n,n=u):n=o,n!==null?(r=ti(),r!==null?(Cr=t,n=k(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Zr(){var e,t,n,r,i,s,a,f,l;e=Nr,t=Qi();if(t!==null){n=As();if(n!==null){r=Cs();if(r!==null){i=Nr,s=[],a=Wr();while(a!==null)s.push(a),a=Wr();s!==null?(a=Ss(),a!==null?(f=Ur(),f!==null?(l=Ts(),l!==null?(s=[s,a,f,l],i=s):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o),i===null&&(i=u),i!==null?(Cr=e,t=L(t,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o}else Nr=e,e=o;return e}function ei(){var t,n,r,i,s,a,f,l;t=Nr,n=Qi();if(n!==null){e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=Nr,Mr++,e.charCodeAt(Nr)===61?(i=M,Nr++):(i=null,Mr===0&&Fr(_)),Mr--,i!==null?(Nr=r,r=u):r=o);if(r!==null){i=Ai();if(i!==null){s=Nr,a=Ss();if(a!==null){f=[],l=Oi();if(l!==null)while(l!==null)f.push(l),l=Oi();else f=o;f!==null?(l=Ts(),l!==null?(a=[a,f,l],s=a):(Nr=s,s=o)):(Nr=s,s=o)}else Nr=s,s=o;s===null&&(s=u),s!==null?(Cr=t,n=D(n,i,s),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}else Nr=t,t=o;return t}function ti(){var e,t,n,r,i,s,a,f,l;e=ni();if(e===null){e=Nr,t=ii();if(t!==null){n=As();if(n!==null){r=Cs();if(r!==null){i=Nr,s=[],a=Wr();while(a!==null)s.push(a),a=Wr();s!==null?(a=Ss(),a!==null?(f=Rr(),f!==null?(l=Ts(),l!==null?(s=[s,a,f,l],i=s):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o),i===null&&(i=u),i!==null?(Cr=e,t=P(t,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o}else Nr=e,e=o}return e}function ni(){var e,t,n,r;return e=Nr,t=ii(),t!==null?(n=As(),n!==null?(r=_i(),r!==null?(Cr=e,t=H(t,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function ri(){var e,t,n;return e=Nr,t=Ki(),t!==null?(n=ti(),n!==null?(Cr=e,t=B(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ii(){var e,t,n,r,i;e=Nr,t=bi();if(t!==null){n=ci(),n===null&&(n=u);if(n!==null){r=[],i=li();while(i!==null)r.push(i),i=li();r!==null?(i=hi(),i===null&&(i=u),i!==null?(Cr=e,t=j(t,n,r,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function si(){var e,t,n;return e=Nr,t=mi(),t!==null?(n=ci(),n!==null?(Cr=e,t=F(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function oi(){var e,t;return e=Nr,t=fs(),t!==null&&(Cr=e,t=I(t)),t===null?(Nr=e,e=t):e=t,e===null&&(e=Nr,t=ls(),t!==null&&(Cr=e,t=q(t)),t===null?(Nr=e,e=t):e=t,e===null&&(e=Nr,t=cs(),t!==null&&(Cr=e,t=R(t)),t===null?(Nr=e,e=t):e=t)),e}function ui(){var e;return e=ai(),e===null&&(e=fi()),e}function ai(){var e,t,n,r;e=Nr,t=ls();if(t!==null){n=[],r=cs();while(r!==null)n.push(r),r=cs();n!==null?(Cr=e,t=U(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function fi(){var e,t,n;e=Nr,t=[],n=cs();if(n!==null)while(n!==null)t.push(n),n=cs();else t=o;return t!==null&&(Cr=e,t=z(t)),t===null?(Nr=e,e=t):e=t,e}function li(){var e,t,n;return e=Nr,t=As(),t!==null?(n=oi(),n===null&&(n=mi()),n!==null?(Cr=e,t=W(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ci(){var t,n;return Mr++,V.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr($)),Mr--,t===null&&(n=null,Mr===0&&Fr(X)),t}function hi(){var e,t,n;e=Nr,t=[],n=vi();if(n!==null)while(n!==null)t.push(n),n=vi();else t=o;return t!==null&&(Cr=e,t=J(t)),t===null?(Nr=e,e=t):e=t,e}function pi(){var t,n,r,i;Mr++,e.substr(Nr,2)===Q?(t=Q,Nr+=2):(t=null,Mr===0&&Fr(G));if(t===null){e.charCodeAt(Nr)===46?(t=Y,Nr++):(t=null,Mr===0&&Fr(Z));if(t===null){t=Nr,n=Nr,r=[],et.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(tt));if(i!==null)while(i!==null)r.push(i),et.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(tt));else r=o;r!==null&&(r=e.substring(n,Nr)),n=r,n!==null?(r=Nr,Mr++,e.charCodeAt(Nr)===61?(i=M,Nr++):(i=null,Mr===0&&Fr(_)),Mr--,i===null?r=u:(Nr=r,r=o),r!==null?(Cr=t,n=nt(n),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)}}return Mr--,t===null&&(n=null,Mr===0&&Fr(K)),t}function di(){var e,t;return Mr++,e=ps(),Mr--,e===null&&(t=null,Mr===0&&Fr(rt)),e}function vi(){var t,n,r,i,s,u;return t=Nr,n=As(),n!==null?(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=bi(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=wi(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=Ei(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=Si(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)))),r!==null?(Cr=t,n=it(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function mi(){var e;return e=bi(),e===null&&(e=wi(),e===null&&(e=Ei(),e===null&&(e=Si()))),e}function gi(){var e,t,n,r,i,s;e=Nr,t=pi();if(t!==null){n=[],r=Nr,i=yi(),i!==null?(s=pi(),s!==null?(Cr=r,i=st(s),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=yi(),i!==null?(s=pi(),s!==null?(Cr=r,i=st(s),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o);n!==null?(Cr=e,t=ot(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function yi(){var t,n;return Mr++,at.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(ft)),Mr--,t===null&&(n=null,Mr===0&&Fr(ut)),t}function bi(){var e,t;return e=Nr,t=gi(),t!==null&&(Cr=e,t=lt(t)),t===null?(Nr=e,e=t):e=t,e}function wi(){var e,t;return e=Nr,t=Ni(),t!==null&&(Cr=e,t=ct(t)),t===null?(Nr=e,e=t):e=t,e}function Ei(){var e,t;return e=Nr,t=Ti(),t!==null&&(Cr=e,t=ht(t)),t===null?(Nr=e,e=t):e=t,e}function Si(){var e,t;return e=Nr,t=xi(),t!==null&&(Cr=e,t=pt(t)),t===null?(Nr=e,e=t):e=t,e}function xi(){var t,n;return Mr++,e.substr(Nr,4)===vt?(t=vt,Nr+=4):(t=null,Mr===0&&Fr(mt)),t===null&&(e.substr(Nr,5)===gt?(t=gt,Nr+=5):(t=null,Mr===0&&Fr(yt))),Mr--,t===null&&(n=null,Mr===0&&Fr(dt)),t}function Ti(){var t,n,r,i;Mr++,t=Nr,n=Nr,r=[],wt.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(Et));if(i!==null)while(i!==null)r.push(i),wt.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(Et));else r=o;return r!==null&&(r=e.substring(n,Nr)),n=r,n!==null&&(Cr=t,n=St(n)),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(bt)),t}function Ni(){var t,n,r,i,s;return t=Nr,n=Nr,e.charCodeAt(Nr)===34?(r=xt,Nr++):(r=null,Mr===0&&Fr(Tt)),r!==null?(i=Ci(),i!==null?(e.charCodeAt(Nr)===34?(s=xt,Nr++):(s=null,Mr===0&&Fr(Tt)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o),n===null&&(n=Nr,e.charCodeAt(Nr)===39?(r=Nt,Nr++):(r=null,Mr===0&&Fr(Ct)),r!==null?(i=ki(),i!==null?(e.charCodeAt(Nr)===39?(s=Nt,Nr++):(s=null,Mr===0&&Fr(Ct)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o)),n!==null&&(Cr=t,n=kt(n)),n===null?(Nr=t,t=n):t=n,t}function Ci(){var t,n,r,i,s;t=Nr,n=[],r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Lt.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(At)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Lt.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(At)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);return n!==null&&(n=e.substring(t,Nr)),t=n,t}function ki(){var t,n,r,i,s;t=Nr,n=[],r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Ot.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(Mt)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Ot.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(Mt)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);return n!==null&&(n=e.substring(t,Nr)),t=n,t}function Li(){var t;return _t.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Dt)),t}function Ai(){var e,t,n;return e=Nr,t=As(),t!==null?(n=ri(),n!==null?(Cr=e,t=Pt(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e===null&&(e=Di()),e}function Oi(){var e,t,n,r,i;e=Nr,t=Ss();if(t!==null){n=Di();if(n!==null){r=[],i=Oi();while(i!==null)r.push(i),i=Oi();r!==null?(i=ks(),i!==null?(Cr=e,t=Ht(t,n,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e===null&&(e=Di()),e}function Mi(){var t,n,r;return t=Nr,Bt.test(e.charAt(Nr))?(n=e.charAt(Nr),Nr++):(n=null,Mr===0&&Fr(jt)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=nt(n),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=Nr,n=Nr,Mr++,e.charCodeAt(Nr)===60?(r=Ft,Nr++):(r=null,Mr===0&&Fr(It)),Mr--,r!==null?(Nr=n,n=u):n=o,n!==null&&(Cr=t,n=qt()),n===null?(Nr=t,t=n):t=n),t}function _i(){var e,t,n,r,i,s,a;e=Nr,t=Mi();if(t!==null){n=Di();if(n!==null){r=Nr,i=Ss();if(i!==null){s=[],a=Oi();while(a!==null)s.push(a),a=Oi();s!==null?(a=Ts(),a!==null?(i=[i,s,a],r=i):(Nr=r,r=o)):(Nr=r,r=o)}else Nr=r,r=o;r===null&&(r=u),r!==null?(Cr=e,t=Rt(t,n,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function Di(){var e,t,n,r,i,s;e=Nr,t=Fi(),t===null&&(t=u);if(t!==null){n=[],r=Nr,i=Pi(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Pi(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);n!==null?(r=Cs(),r!==null?(Cr=e,t=Ut(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o;return e}function Pi(){var e;return e=ji(),e===null&&(e=Bi()),e}function Hi(){var e,t,n,r,i,s;return e=Nr,t=Ri(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Wi(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function Bi(){var e,t,n,r,i,s;return e=Nr,t=Ui(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Xi(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e===null&&(e=Nr,t=$i(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Ji(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)),e}function ji(){var e,t,n,r,i,s;return e=Nr,t=zi(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Vi(),s!==null?(Cr=e,t=Wt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function Fi(){var e,t,n;e=Nr,t=[],n=Ii();if(n!==null)while(n!==null)t.push(n),n=Ii();else t=o;return t!==null&&(Cr=e,t=Xt(t)),t===null?(Nr=e,e=t):e=t,e}function Ii(){var t,n,r;return t=Nr,n=Nr,Mr++,r=zi(),r===null&&(r=Ui(),r===null&&(r=$i(),r===null&&(r=ks(),r===null&&(r=Cs())))),Mr--,r===null?n=u:(Nr=n,n=o),n!==null?(e.length>Nr?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(Vt)),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function qi(){var e;return e=Hi(),e===null&&(e=ji(),e===null&&(e=Bi())),e}function Ri(){var t,n;return Mr++,e.charCodeAt(Nr)===123?(t=Kt,Nr++):(t=null,Mr===0&&Fr(Qt)),Mr--,t===null&&(n=null,Mr===0&&Fr(Jt)),t}function Ui(){var t,n;return Mr++,e.substr(Nr,2)===Yt?(t=Yt,Nr+=2):(t=null,Mr===0&&Fr(Zt)),Mr--,t===null&&(n=null,Mr===0&&Fr(Gt)),t}function zi(){var t,n;return Mr++,e.substr(Nr,3)===tn?(t=tn,Nr+=3):(t=null,Mr===0&&Fr(nn)),Mr--,t===null&&(n=null,Mr===0&&Fr(en)),t}function Wi(){var t,n;return Mr++,e.charCodeAt(Nr)===125?(t=sn,Nr++):(t=null,Mr===0&&Fr(on)),Mr--,t===null&&(n=null,Mr===0&&Fr(rn)),t}function Xi(){var t,n;return Mr++,e.substr(Nr,2)===an?(t=an,Nr+=2):(t=null,Mr===0&&Fr(fn)),Mr--,t===null&&(n=null,Mr===0&&Fr(un)),t}function Vi(){var t,n;return Mr++,e.substr(Nr,3)===cn?(t=cn,Nr+=3):(t=null,Mr===0&&Fr(hn)),Mr--,t===null&&(n=null,Mr===0&&Fr(ln)),t}function $i(){var t,n;return Mr++,e.substr(Nr,2)===dn?(t=dn,Nr+=2):(t=null,Mr===0&&Fr(vn)),Mr--,t===null&&(n=null,Mr===0&&Fr(pn)),t}function Ji(){var t,n;return Mr++,e.charCodeAt(Nr)===125?(t=sn,Nr++):(t=null,Mr===0&&Fr(on)),Mr--,t===null&&(n=null,Mr===0&&Fr(mn)),t}function Ki(){var t,n,r;return t=Nr,e.substr(Nr,2)===gn?(n=gn,Nr+=2):(n=null,Mr===0&&Fr(yn)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=bn(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=Nr,e.charCodeAt(Nr)===61?(n=M,Nr++):(n=null,Mr===0&&Fr(_)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=wn(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)),t}function Qi(){var e,t,n,r,i,s,a;e=Nr,t=Nr,n=ys();if(n!==null){r=ui(),r===null&&(r=u);if(r!==null){i=[],s=qi();while(s!==null)i.push(s),s=qi();if(i!==null){s=[],a=Gi();while(a!==null)s.push(a),a=Gi();s!==null?(Cr=t,n=En(n,r,i,s),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}else Nr=t,t=o;if(t===null){t=Nr,n=ui();if(n!==null){r=[],i=qi();while(i!==null)r.push(i),i=qi();if(r!==null){i=[],s=Gi();while(s!==null)i.push(s),s=Gi();i!==null?(Cr=t,n=Sn(n,r,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}return t!==null&&(Cr=e,t=xn(t)),t===null?(Nr=e,e=t):e=t,e}function ui(){var e;return e=ai(),e===null&&(e=fi()),e}function ai(){var e,t,n,r;e=Nr,t=ls();if(t!==null){n=[],r=cs();while(r!==null)n.push(r),r=cs();n!==null?(Cr=e,t=U(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function fi(){var e,t,n;e=Nr,t=[],n=cs();if(n!==null)while(n!==null)t.push(n),n=cs();else t=o;return t!==null&&(Cr=e,t=z(t)),t===null?(Nr=e,e=t):e=t,e}function Gi(){var t,n,r;t=Nr,n=[],e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O));else n=o;return n!==null?(r=ts(),r===null&&(r=rs(),r===null&&(r=is(),r===null&&(r=ss()))),r!==null?(Cr=t,n=Tn(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Yi(){var t;return Nn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Cn)),t}function Zi(){var e,t;return e=es(),e===null&&(e=Nr,t=bi(),t!==null&&(Cr=e,t=kn(t)),t===null?(Nr=e,e=t):e=t),e}function es(){var t,n,r,i,s;return t=Nr,n=Nr,e.charCodeAt(Nr)===34?(r=xt,Nr++):(r=null,Mr===0&&Fr(Tt)),r!==null?(i=ii(),i!==null?(e.charCodeAt(Nr)===34?(s=xt,Nr++):(s=null,Mr===0&&Fr(Tt)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o),n===null&&(n=Nr,e.charCodeAt(Nr)===39?(r=Nt,Nr++):(r=null,Mr===0&&Fr(Ct)),r!==null?(i=ii(),i!==null?(e.charCodeAt(Nr)===39?(s=Nt,Nr++):(s=null,Mr===0&&Fr(Ct)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o)),n!==null&&(Cr=t,n=kt(n)),n===null?(Nr=t,t=n):t=n,t}function ts(){var t,n,r,i;return t=Nr,n=Es(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=Zi(),i!==null?(Cr=t,n=Ln(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function ns(){var t,n,r,i,s,u;t=Nr,e.charCodeAt(Nr)===123?(n=Kt,Nr++):(n=null,Mr===0&&Fr(Qt));if(n!==null){r=As();if(r!==null){i=Nr,s=[],u=Yi(),u===null&&(e.charCodeAt(Nr)===32?(u=A,Nr++):(u=null,Mr===0&&Fr(O)));if(u!==null)while(u!==null)s.push(u),u=Yi(),u===null&&(e.charCodeAt(Nr)===32?(u=A,Nr++):(u=null,Mr===0&&Fr(O)));else s=o;s!==null&&(s=e.substring(i,Nr)),i=s,i!==null?(s=As(),s!==null?(e.charCodeAt(Nr)===125?(u=sn,Nr++):(u=null,Mr===0&&Fr(on)),u!==null?(Cr=t,n=An(i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o;if(t===null){t=Nr,n=[],r=Yi();if(r!==null)while(r!==null)n.push(r),r=Yi();else n=o;n!==null&&(n=e.substring(t,Nr)),t=n}return t}function rs(){var t,n,r,i,s;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=ns(),i!==null?(Cr=Nr,s=On(n,i),s?s=u:s=o,s!==null?(Cr=t,n=Mn(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function is(){var t,n,r,i;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=bi(),i!==null?(Cr=t,n=_n(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function ss(){var t,n,r,i;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=Ni(),i!==null?(Cr=t,n=Dn(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function os(){var t,n,r;t=Nr,n=[],r=as();while(r!==null)n.push(r),r=as();return n!==null&&(n=e.substring(t,Nr)),t=n,t}function us(){var e;return e=Ni(),e===null&&(e=mi()),e}function as(){var t;return t=Li(),t===null&&(wt.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Et)),t===null&&(e.charCodeAt(Nr)===95?(t=Pn,Nr++):(t=null,Mr===0&&Fr(Hn)),t===null&&(e.charCodeAt(Nr)===45?(t=Bn,Nr++):(t=null,Mr===0&&Fr(jn))))),t}function fs(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===37?(n=Fn,Nr++):(n=null,Mr===0&&Fr(In)),n!==null?(r=hs(),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function ls(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===35?(n=qn,Nr++):(n=null,Mr===0&&Fr(Rn)),n!==null?(r=hs(),r!==null?(Cr=t,n=Un(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function cs(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===46?(n=Y,Nr++):(n=null,Mr===0&&Fr(Z)),n!==null?(r=hs(),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function hs(){var e,t;return Mr++,e=ps(),Mr--,e===null&&(t=null,Mr===0&&Fr(zn)),e}function ps(){var t,n,r,i,s;t=Nr,n=vs();if(n!==null){r=Nr,i=[],s=ds();while(s!==null)i.push(s),s=ds();i!==null&&(i=e.substring(r,Nr)),r=i,r!==null?(Cr=t,n=Wn(n,r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o;return t}function ds(){var t;return Xn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Vn)),t===null&&(t=ms()),t}function vs(){var t;return $n.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Jn)),t===null&&(t=ms()),t}function ms(){var t;return Kn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Qn)),t}function gs(){var t,n,r;t=Nr,n=[],r=ws();if(r!==null)while(r!==null)n.push(r),r=ws();else n=o;return n!==null&&(n=e.substring(t,Nr)),t=n,t}function ys(){var t,n,r;return Mr++,t=Nr,e.charCodeAt(Nr)===37?(n=Fn,Nr++):(n=null,Mr===0&&Fr(In)),n!==null?(r=gs(),r!==null?(Cr=t,n=nt(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=bs()),Mr--,t===null&&(n=null,Mr===0&&Fr(Gn)),t}function bs(){var e,t,n;return e=Nr,t=gs(),t!==null?(Cr=Nr,n=Yn(t),n?n=u:n=o,n!==null?(Cr=e,t=Zn(t),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ws(){var t;return er.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(tr)),t}function Es(){var e,t,n;return Mr++,e=Nr,t=gs(),t!==null?(Cr=Nr,n=rr(t),n?n=u:n=o,n!==null?(Cr=e,t=Zn(t),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),Mr--,e===null&&(t=null,Mr===0&&Fr(nr)),e}function Ss(){var e,t,n;return e=Nr,t=xs(),t!==null?(n=Ls(),n!==null?(Cr=e,t=nt(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function xs(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61423?(n=sr,Nr++):(n=null,Mr===0&&Fr(or)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(ir)),t}function Ts(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61438?(n=fr,Nr++):(n=null,Mr===0&&Fr(lr)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(ar)),t}function Ns(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61422?(n=hr,Nr++):(n=null,Mr===0&&Fr(pr)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(cr)),t}function Cs(){var t,n,r;return Mr++,t=Nr,e.charCodeAt(Nr)===61439?(n=vr,Nr++):(n=null,Mr===0&&Fr(mr)),n!==null?(e.charCodeAt(Nr)===10?(r=gr,Nr++):(r=null,Mr===0&&Fr(yr)),r!==null?(n=[n,r],t=n):(Nr=t,t=o)):(Nr=t,t=o),Mr--,t===null&&(n=null,Mr===0&&Fr(dr)),t}function ks(){var e,t;return Mr++,e=Ts(),e===null&&(e=Ns()),Mr--,e===null&&(t=null,Mr===0&&Fr(br)),e}function Ls(){var t,n,r;Mr++,t=Nr,n=[],r=Os();if(r!==null)while(r!==null)n.push(r),r=Os();else n=o;return n!==null&&(n=e.substring(t,Nr)),t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(wr)),t}function As(){var e,t;Mr++,e=[],t=Os();while(t!==null)e.push(t),t=Os();return Mr--,e===null&&(t=null,Mr===0&&Fr(Er)),e}function Os(){var t,n;return Mr++,xr.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Tr)),Mr--,t===null&&(n=null,Mr===0&&Fr(Sr)),t}function Ms(){var t,n,r;return t=Nr,n=Nr,Mr++,r=xs(),r===null&&(r=Ts(),r===null&&(r=Cs())),Mr--,r===null?n=u:(Nr=n,n=o),n!==null?(e.length>Nr?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(Vt)),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function _s(){var t,n,r;t=Nr,n=[],r=Ms();while(r!==null)n.push(r),r=Ms();return n!==null&&(n=e.substring(t,Nr)),t=n,t}function Is(e,t,n){var r=e.hash;if(n){r=r||new Hs.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 Hs.IdNode([t])),new Hs.MustacheNode(s,r,!e.escaped)}var r=arguments.length>1?arguments[1]:{},i={start:qr},s=qr,o=null,u="",a="else",f='"else"',l=function(e){return e},c=function(e,t){return new Hs.ProgramNode(e,t||[])},h=[],p=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 Hs.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new Hs.ContentNode(n.join(""))),t},d="BeginStatement",v=function(){return[]},m=">",g='">"',y=function(e,t){return new Hs.PartialNode(e,t)},b=/^[a-zA-Z0-9_$-\/]/,w="[a-zA-Z0-9_$-\\/]",E=function(e){return new Hs.PartialNameNode(e)},S=function(e){return[e]},x="/",T='"/"',N=/^[A-Z]/,C="[A-Z]",k=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!Ps||!n.match(/[A-Z]/)?e:(e.mustache=Is(e.mustache,t),e)}var n=e.id.string.charAt(0);return n.match(/[A-Z]/)?Is(e,t):e},L=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},A=" ",O='" "',M="=",_='"="',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new Hs.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new Hs.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new Hs.ProgramNode(t,[]);return new Hs.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){var i=[],s={},o=!1;for(var u=0;u<n.length;++u){var a=n[u],f=a[0];f=="tagName"||f=="elementId"||f=="class"?(o=!0,s[f]=s[f]||[],s[f].push(a[1])):i.push(a)}if(o){r=r||new Hs.HashNode([]);for(var l in s){if(!s.hasOwnProperty(l))continue;r.pairs.push([l,new Hs.StringNode(s[l].join(" "))])}}i.unshift(e);var c=new Hs.MustacheNode(i,r);return t=="!"?Is(c,"unbound"):t=="?"?Is(c,"if"):t=="^"?Is(c,"unless"):c},F=function(e,t){var n=new String(e);return n.trailingModifier=t,n},I=function(e){return["tagName",e]},q=function(e){return["elementId",e]},R=function(e){return["class",e]},U=function(e,t){return[e,t]},z=function(e){return[null,e]},W=function(e){return e},X="TrailingModifier",V=/^[!?*\^]/,$="[!?*\\^]",J=function(e){return new Hs.HashNode(e)},K="PathIdent",Q="..",G='".."',Y=".",Z='"."',et=/^[a-zA-Z0-9_$\-]/,tt="[a-zA-Z0-9_$\\-]",nt=function(e){return e},rt="Key",it=function(e){return[e[0],e[2]]},st=function(e){return e},ot=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},ut="PathSeparator",at=/^[\/.]/,ft="[\\/.]",lt=function(e){return new Hs.IdNode(e)},ct=function(e){return new Hs.StringNode(e)},ht=function(e){return new Hs.IntegerNode(e)},pt=function(e){return new Hs.BooleanNode(e)},dt="Boolean",vt="true",mt='"true"',gt="false",yt='"false"',bt="Integer",wt=/^[0-9]/,Et="[0-9]",St=function(e){return parseInt(e)},xt='"',Tt='"\\""',Nt="'",Ct='"\'"',kt=function(e){return e[1]},Lt=/^[^"}]/,At='[^"}]',Ot=/^[^'}]/,Mt="[^'}]",_t=/^[A-Za-z]/,Dt="[A-Za-z]",Pt=function(e){return[e]},Ht=function(e,t,n){t.unshift(new Hs.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new Hs.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},Bt=/^[|`]/,jt="[|`]",Ft="<",It='"<"',qt=function(){return"<"},Rt=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 Hs.ContentNode("\n")):i.push(o)}return i},Ut=function(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},zt=function(e){return e.escaped=!0,e},Wt=function(e){return e.escaped=!1,e},Xt=function(e){return new Hs.ContentNode(e.join(""))},Vt="any character",$t=function(e){return e},Jt="SingleMustacheOpen",Kt="{",Qt='"{"',Gt="DoubleMustacheOpen",Yt="{{",Zt='"{{"',en="TripleMustacheOpen",tn="{{{",nn='"{{{"',rn="SingleMustacheClose",sn="}",on='"}"',un="DoubleMustacheClose",an="}}",fn='"}}"',ln="TripleMustacheClose",cn="}}}",hn='"}}}"',pn="InterpolationOpen",dn="#{",vn='"#{"',mn="InterpolationClose",gn="==",yn='"=="',bn=function(){return!1},wn=function(){return!0},En=function(e,t,n,r){return[e,t,n,r]},Sn=function(e,t,n){return[null,e,t,n]},xn=function(e){var t=e[0]||"div",n=e[1]||[],r=e[2],i=e[3],s=n[0],o=n[1],u=[];u.push(new Hs.ContentNode("<"+t)),s&&u.push(new Hs.ContentNode(' id="'+s+'"')),o&&o.length&&u.push(new Hs.ContentNode(' class="'+o.join(" ")+'"'));for(var a=0;a<r.length;++a)u.push(new Hs.ContentNode(" ")),u.push(r[a]);for(var a=0;a<i.length;++a)u=u.concat(i[a]);return Bs[t]?(u.push(new Hs.ContentNode(" />")),[u]):(u.push(new Hs.ContentNode(">")),[u,new Hs.ContentNode("</"+t+">")])},Tn=function(e){return[new Hs.ContentNode(" ")].concat(e)},Nn=/^[A-Za-z.:0-9_]/,Cn="[A-Za-z.:0-9_]",kn=function(e){return new Hs.MustacheNode([e])},Ln=function(e,t){return[Is(t,"action",[["on",new Hs.StringNode(e)]])]},An=function(e){return e.replace(/ *$/,"")},On=function(e,t){return Ps},Mn=function(e,t){var n=new Hs.HashNode
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.1.9",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 Dr(){return e.substring(Cr,Nr)}function Pr(){return Cr}function Hr(){return jr(Cr).line}function Br(){return jr(Cr).column}function jr(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 kr!==t&&(kr>t&&(kr=0,Lr={line:1,column:1,seenCR:!1}),kr=t,n(Lr,kr)),Lr}function Fr(e){if(Nr<Ar)return;Nr>Ar&&(Ar=Nr,Or=[]),Or.push(e)}function Ir(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function qr(){var e;return e=Rr(),e}function Rr(){var t,n,r,i,s,h,p,d,v;return t=Nr,n=Ur(),n!==null?(r=Nr,i=Ts(),i!==null?(e.substr(Nr,4)===a?(s=a,Nr+=4):(s=null,Mr===0&&Fr(f)),s!==null?(h=As(),h!==null?(p=Cs(),p!==null?(d=Ss(),d!==null?(v=Ur(),v!==null?(Cr=r,i=l(v),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=u),r!==null?(Cr=t,n=c(n,r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Ur(){var e,t,n;e=Nr,t=[],n=zr();while(n!==null)t.push(n),n=zr();return t!==null&&(Cr=e,t=p(t)),t===null?(Nr=e,e=t):e=t,e}function zr(){var e,t;return Mr++,e=Wr(),e===null&&(e=Qr(),e===null&&(e=Xr(),e===null&&(e=$r(),e===null&&(e=_i(),e===null&&(e=Jr()))))),Mr--,e===null&&(t=null,Mr===0&&Fr(d)),e}function Wr(){var e,t,n;return e=Nr,t=As(),t!==null?(n=Cs(),n!==null?(Cr=e,t=v(),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function Xr(){var t,n,r,i,s,a,f,l;return t=Nr,e.charCodeAt(Nr)===62?(n=m,Nr++):(n=null,Mr===0&&Fr(g)),n!==null?(r=As(),r!==null?(i=Vr(),i!==null?(s=As(),s!==null?(a=gi(),a===null&&(a=u),a!==null?(f=As(),f!==null?(l=Cs(),l!==null?(Cr=t,n=y(i,a),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function Vr(){var t,n,r,i;t=Nr,n=Nr,r=[],b.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(w));if(i!==null)while(i!==null)r.push(i),b.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(w));else r=o;return r!==null&&(r=e.substring(n,Nr)),n=r,n!==null&&(Cr=t,n=E(n)),n===null?(Nr=t,t=n):t=n,t}function $r(){var e;return e=Zr(),e===null&&(e=ei()),e}function Jr(){var e,t;return e=Nr,t=ri(),t===null&&(t=Gr()),t!==null&&(Cr=e,t=S(t)),t===null?(Nr=e,e=t):e=t,e}function Kr(){var e,t,n,r,i,s,u,a;e=Nr,t=_s();if(t!==null){n=Cs();if(n!==null){r=[],i=Nr,s=Ss();if(s!==null){u=[],a=Kr();if(a!==null)while(a!==null)u.push(a),a=Kr();else u=o;u!==null?(a=ks(),a!==null?(s=[s,u,a],i=s):(Nr=i,i=o)):(Nr=i,i=o)}else Nr=i,i=o;while(i!==null){r.push(i),i=Nr,s=Ss();if(s!==null){u=[],a=Kr();if(a!==null)while(a!==null)u.push(a),a=Kr();else u=o;u!==null?(a=ks(),a!==null?(s=[s,u,a],i=s):(Nr=i,i=o)):(Nr=i,i=o)}else Nr=i,i=o}r!==null?(Cr=e,t=v(),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function Qr(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===47?(n=x,Nr++):(n=null,Mr===0&&Fr(T)),n!==null?(r=Kr(),r!==null?(Cr=t,n=v(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Gr(){var e;return e=Yr(),e===null&&(e=ti()),e}function Yr(){var t,n,r;return t=Nr,n=Nr,Mr++,N.test(e.charAt(Nr))?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(C)),Mr--,r!==null?(Nr=n,n=u):n=o,n!==null?(r=ti(),r!==null?(Cr=t,n=k(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Zr(){var e,t,n,r,i,s,a,f,l;e=Nr,t=Qi();if(t!==null){n=As();if(n!==null){r=Cs();if(r!==null){i=Nr,s=[],a=Wr();while(a!==null)s.push(a),a=Wr();s!==null?(a=Ss(),a!==null?(f=Ur(),f!==null?(l=Ts(),l!==null?(s=[s,a,f,l],i=s):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o),i===null&&(i=u),i!==null?(Cr=e,t=L(t,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o}else Nr=e,e=o;return e}function ei(){var t,n,r,i,s,a,f,l;t=Nr,n=Qi();if(n!==null){e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=Nr,Mr++,e.charCodeAt(Nr)===61?(i=M,Nr++):(i=null,Mr===0&&Fr(_)),Mr--,i!==null?(Nr=r,r=u):r=o);if(r!==null){i=Ai();if(i!==null){s=Nr,a=Ss();if(a!==null){f=[],l=Oi();if(l!==null)while(l!==null)f.push(l),l=Oi();else f=o;f!==null?(l=Ts(),l!==null?(a=[a,f,l],s=a):(Nr=s,s=o)):(Nr=s,s=o)}else Nr=s,s=o;s===null&&(s=u),s!==null?(Cr=t,n=D(n,i,s),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}else Nr=t,t=o;return t}function ti(){var e,t,n,r,i,s,a,f,l;e=ni();if(e===null){e=Nr,t=ii();if(t!==null){n=As();if(n!==null){r=Cs();if(r!==null){i=Nr,s=[],a=Wr();while(a!==null)s.push(a),a=Wr();s!==null?(a=Ss(),a!==null?(f=Rr(),f!==null?(l=Ts(),l!==null?(s=[s,a,f,l],i=s):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o)):(Nr=i,i=o),i===null&&(i=u),i!==null?(Cr=e,t=P(t,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o}else Nr=e,e=o}return e}function ni(){var e,t,n,r;return e=Nr,t=ii(),t!==null?(n=As(),n!==null?(r=_i(),r!==null?(Cr=e,t=H(t,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function ri(){var e,t,n;return e=Nr,t=Ki(),t!==null?(n=ti(),n!==null?(Cr=e,t=B(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ii(){var e,t,n,r,i;e=Nr,t=bi();if(t!==null){n=ci(),n===null&&(n=u);if(n!==null){r=[],i=li();while(i!==null)r.push(i),i=li();r!==null?(i=hi(),i===null&&(i=u),i!==null?(Cr=e,t=j(t,n,r,i),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function si(){var e,t,n;return e=Nr,t=mi(),t!==null?(n=ci(),n!==null?(Cr=e,t=F(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function oi(){var e,t;return e=Nr,t=fs(),t!==null&&(Cr=e,t=I(t)),t===null?(Nr=e,e=t):e=t,e===null&&(e=Nr,t=ls(),t!==null&&(Cr=e,t=q(t)),t===null?(Nr=e,e=t):e=t,e===null&&(e=Nr,t=cs(),t!==null&&(Cr=e,t=R(t)),t===null?(Nr=e,e=t):e=t)),e}function ui(){var e;return e=ai(),e===null&&(e=fi()),e}function ai(){var e,t,n,r;e=Nr,t=ls();if(t!==null){n=[],r=cs();while(r!==null)n.push(r),r=cs();n!==null?(Cr=e,t=U(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function fi(){var e,t,n;e=Nr,t=[],n=cs();if(n!==null)while(n!==null)t.push(n),n=cs();else t=o;return t!==null&&(Cr=e,t=z(t)),t===null?(Nr=e,e=t):e=t,e}function li(){var e,t,n;return e=Nr,t=As(),t!==null?(n=oi(),n===null&&(n=mi()),n!==null?(Cr=e,t=W(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ci(){var t,n;return Mr++,V.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr($)),Mr--,t===null&&(n=null,Mr===0&&Fr(X)),t}function hi(){var e,t,n;e=Nr,t=[],n=vi();if(n!==null)while(n!==null)t.push(n),n=vi();else t=o;return t!==null&&(Cr=e,t=J(t)),t===null?(Nr=e,e=t):e=t,e}function pi(){var t,n,r,i;Mr++,e.substr(Nr,2)===Q?(t=Q,Nr+=2):(t=null,Mr===0&&Fr(G));if(t===null){e.charCodeAt(Nr)===46?(t=Y,Nr++):(t=null,Mr===0&&Fr(Z));if(t===null){t=Nr,n=Nr,r=[],et.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(tt));if(i!==null)while(i!==null)r.push(i),et.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(tt));else r=o;r!==null&&(r=e.substring(n,Nr)),n=r,n!==null?(r=Nr,Mr++,e.charCodeAt(Nr)===61?(i=M,Nr++):(i=null,Mr===0&&Fr(_)),Mr--,i===null?r=u:(Nr=r,r=o),r!==null?(Cr=t,n=nt(n),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)}}return Mr--,t===null&&(n=null,Mr===0&&Fr(K)),t}function di(){var e,t;return Mr++,e=ps(),Mr--,e===null&&(t=null,Mr===0&&Fr(rt)),e}function vi(){var t,n,r,i,s,u;return t=Nr,n=As(),n!==null?(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=bi(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=wi(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=Ei(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o),r===null&&(r=Nr,i=di(),i!==null?(e.charCodeAt(Nr)===61?(s=M,Nr++):(s=null,Mr===0&&Fr(_)),s!==null?(u=Si(),u!==null?(i=[i,s,u],r=i):(Nr=r,r=o)):(Nr=r,r=o)):(Nr=r,r=o)))),r!==null?(Cr=t,n=it(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function mi(){var e;return e=bi(),e===null&&(e=wi(),e===null&&(e=Ei(),e===null&&(e=Si()))),e}function gi(){var e,t,n,r,i,s;e=Nr,t=pi();if(t!==null){n=[],r=Nr,i=yi(),i!==null?(s=pi(),s!==null?(Cr=r,i=st(s),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=yi(),i!==null?(s=pi(),s!==null?(Cr=r,i=st(s),i===null?(Nr=r,r=i):r=i):(Nr=r,r=o)):(Nr=r,r=o);n!==null?(Cr=e,t=ot(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function yi(){var t,n;return Mr++,at.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(ft)),Mr--,t===null&&(n=null,Mr===0&&Fr(ut)),t}function bi(){var e,t;return e=Nr,t=gi(),t!==null&&(Cr=e,t=lt(t)),t===null?(Nr=e,e=t):e=t,e}function wi(){var e,t;return e=Nr,t=Ni(),t!==null&&(Cr=e,t=ct(t)),t===null?(Nr=e,e=t):e=t,e}function Ei(){var e,t;return e=Nr,t=Ti(),t!==null&&(Cr=e,t=ht(t)),t===null?(Nr=e,e=t):e=t,e}function Si(){var e,t;return e=Nr,t=xi(),t!==null&&(Cr=e,t=pt(t)),t===null?(Nr=e,e=t):e=t,e}function xi(){var t,n;return Mr++,e.substr(Nr,4)===vt?(t=vt,Nr+=4):(t=null,Mr===0&&Fr(mt)),t===null&&(e.substr(Nr,5)===gt?(t=gt,Nr+=5):(t=null,Mr===0&&Fr(yt))),Mr--,t===null&&(n=null,Mr===0&&Fr(dt)),t}function Ti(){var t,n,r,i;Mr++,t=Nr,n=Nr,r=[],wt.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(Et));if(i!==null)while(i!==null)r.push(i),wt.test(e.charAt(Nr))?(i=e.charAt(Nr),Nr++):(i=null,Mr===0&&Fr(Et));else r=o;return r!==null&&(r=e.substring(n,Nr)),n=r,n!==null&&(Cr=t,n=St(n)),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(bt)),t}function Ni(){var t,n,r,i,s;return t=Nr,n=Nr,e.charCodeAt(Nr)===34?(r=xt,Nr++):(r=null,Mr===0&&Fr(Tt)),r!==null?(i=Ci(),i!==null?(e.charCodeAt(Nr)===34?(s=xt,Nr++):(s=null,Mr===0&&Fr(Tt)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o),n===null&&(n=Nr,e.charCodeAt(Nr)===39?(r=Nt,Nr++):(r=null,Mr===0&&Fr(Ct)),r!==null?(i=ki(),i!==null?(e.charCodeAt(Nr)===39?(s=Nt,Nr++):(s=null,Mr===0&&Fr(Ct)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o)),n!==null&&(Cr=t,n=kt(n)),n===null?(Nr=t,t=n):t=n,t}function Ci(){var t,n,r,i,s;t=Nr,n=[],r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Lt.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(At)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Lt.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(At)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);return n!==null&&(n=e.substring(t,Nr)),t=n,t}function ki(){var t,n,r,i,s;t=Nr,n=[],r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Ot.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(Mt)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Nr,Mr++,s=Cs(),Mr--,s===null?i=u:(Nr=i,i=o),i!==null?(Ot.test(e.charAt(Nr))?(s=e.charAt(Nr),Nr++):(s=null,Mr===0&&Fr(Mt)),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);return n!==null&&(n=e.substring(t,Nr)),t=n,t}function Li(){var t;return _t.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Dt)),t}function Ai(){var e,t,n;return e=Nr,t=As(),t!==null?(n=ri(),n!==null?(Cr=e,t=Pt(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e===null&&(e=Di()),e}function Oi(){var e,t,n,r,i;e=Nr,t=Ss();if(t!==null){n=Di();if(n!==null){r=[],i=Oi();while(i!==null)r.push(i),i=Oi();r!==null?(i=ks(),i!==null?(Cr=e,t=Ht(t,n,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e===null&&(e=Di()),e}function Mi(){var t,n,r;return t=Nr,Bt.test(e.charAt(Nr))?(n=e.charAt(Nr),Nr++):(n=null,Mr===0&&Fr(jt)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=nt(n),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=Nr,n=Nr,Mr++,e.charCodeAt(Nr)===60?(r=Ft,Nr++):(r=null,Mr===0&&Fr(It)),Mr--,r!==null?(Nr=n,n=u):n=o,n!==null&&(Cr=t,n=qt()),n===null?(Nr=t,t=n):t=n),t}function _i(){var e,t,n,r,i,s,a;e=Nr,t=Mi();if(t!==null){n=Di();if(n!==null){r=Nr,i=Ss();if(i!==null){s=[],a=Oi();while(a!==null)s.push(a),a=Oi();s!==null?(a=Ts(),a!==null?(i=[i,s,a],r=i):(Nr=r,r=o)):(Nr=r,r=o)}else Nr=r,r=o;r===null&&(r=u),r!==null?(Cr=e,t=Rt(t,n,r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o}else Nr=e,e=o;return e}function Di(){var e,t,n,r,i,s;e=Nr,t=Fi(),t===null&&(t=u);if(t!==null){n=[],r=Nr,i=Pi(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);while(r!==null)n.push(r),r=Nr,i=Pi(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Nr=r,r=o)):(Nr=r,r=o);n!==null?(r=Cs(),r!==null?(Cr=e,t=Ut(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)}else Nr=e,e=o;return e}function Pi(){var e;return e=ji(),e===null&&(e=Bi()),e}function Hi(){var e,t,n,r,i,s;return e=Nr,t=Ri(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Wi(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function Bi(){var e,t,n,r,i,s;return e=Nr,t=Ui(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Xi(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e===null&&(e=Nr,t=$i(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Ji(),s!==null?(Cr=e,t=zt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)),e}function ji(){var e,t,n,r,i,s;return e=Nr,t=zi(),t!==null?(n=As(),n!==null?(r=ii(),r!==null?(i=As(),i!==null?(s=Vi(),s!==null?(Cr=e,t=Wt(r),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o)):(Nr=e,e=o),e}function Fi(){var e,t,n;e=Nr,t=[],n=Ii();if(n!==null)while(n!==null)t.push(n),n=Ii();else t=o;return t!==null&&(Cr=e,t=Xt(t)),t===null?(Nr=e,e=t):e=t,e}function Ii(){var t,n,r;return t=Nr,n=Nr,Mr++,r=zi(),r===null&&(r=Ui(),r===null&&(r=$i(),r===null&&(r=ks(),r===null&&(r=Cs())))),Mr--,r===null?n=u:(Nr=n,n=o),n!==null?(e.length>Nr?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(Vt)),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function qi(){var e;return e=Hi(),e===null&&(e=ji(),e===null&&(e=Bi())),e}function Ri(){var t,n;return Mr++,e.charCodeAt(Nr)===123?(t=Kt,Nr++):(t=null,Mr===0&&Fr(Qt)),Mr--,t===null&&(n=null,Mr===0&&Fr(Jt)),t}function Ui(){var t,n;return Mr++,e.substr(Nr,2)===Yt?(t=Yt,Nr+=2):(t=null,Mr===0&&Fr(Zt)),Mr--,t===null&&(n=null,Mr===0&&Fr(Gt)),t}function zi(){var t,n;return Mr++,e.substr(Nr,3)===tn?(t=tn,Nr+=3):(t=null,Mr===0&&Fr(nn)),Mr--,t===null&&(n=null,Mr===0&&Fr(en)),t}function Wi(){var t,n;return Mr++,e.charCodeAt(Nr)===125?(t=sn,Nr++):(t=null,Mr===0&&Fr(on)),Mr--,t===null&&(n=null,Mr===0&&Fr(rn)),t}function Xi(){var t,n;return Mr++,e.substr(Nr,2)===an?(t=an,Nr+=2):(t=null,Mr===0&&Fr(fn)),Mr--,t===null&&(n=null,Mr===0&&Fr(un)),t}function Vi(){var t,n;return Mr++,e.substr(Nr,3)===cn?(t=cn,Nr+=3):(t=null,Mr===0&&Fr(hn)),Mr--,t===null&&(n=null,Mr===0&&Fr(ln)),t}function $i(){var t,n;return Mr++,e.substr(Nr,2)===dn?(t=dn,Nr+=2):(t=null,Mr===0&&Fr(vn)),Mr--,t===null&&(n=null,Mr===0&&Fr(pn)),t}function Ji(){var t,n;return Mr++,e.charCodeAt(Nr)===125?(t=sn,Nr++):(t=null,Mr===0&&Fr(on)),Mr--,t===null&&(n=null,Mr===0&&Fr(mn)),t}function Ki(){var t,n,r;return t=Nr,e.substr(Nr,2)===gn?(n=gn,Nr+=2):(n=null,Mr===0&&Fr(yn)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=bn(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=Nr,e.charCodeAt(Nr)===61?(n=M,Nr++):(n=null,Mr===0&&Fr(_)),n!==null?(e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O)),r===null&&(r=u),r!==null?(Cr=t,n=wn(),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)),t}function Qi(){var e,t,n,r,i,s,a;e=Nr,t=Nr,n=ys();if(n!==null){r=ui(),r===null&&(r=u);if(r!==null){i=[],s=qi();while(s!==null)i.push(s),s=qi();if(i!==null){s=[],a=Gi();while(a!==null)s.push(a),a=Gi();s!==null?(Cr=t,n=En(n,r,i,s),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}else Nr=t,t=o;if(t===null){t=Nr,n=ui();if(n!==null){r=[],i=qi();while(i!==null)r.push(i),i=qi();if(r!==null){i=[],s=Gi();while(s!==null)i.push(s),s=Gi();i!==null?(Cr=t,n=Sn(n,r,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o}return t!==null&&(Cr=e,t=xn(t)),t===null?(Nr=e,e=t):e=t,e}function ui(){var e;return e=ai(),e===null&&(e=fi()),e}function ai(){var e,t,n,r;e=Nr,t=ls();if(t!==null){n=[],r=cs();while(r!==null)n.push(r),r=cs();n!==null?(Cr=e,t=U(t,n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)}else Nr=e,e=o;return e}function fi(){var e,t,n;e=Nr,t=[],n=cs();if(n!==null)while(n!==null)t.push(n),n=cs();else t=o;return t!==null&&(Cr=e,t=z(t)),t===null?(Nr=e,e=t):e=t,e}function Gi(){var t,n,r;t=Nr,n=[],e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(Nr)===32?(r=A,Nr++):(r=null,Mr===0&&Fr(O));else n=o;return n!==null?(r=ts(),r===null&&(r=rs(),r===null&&(r=is(),r===null&&(r=ss()))),r!==null?(Cr=t,n=Tn(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function Yi(){var t;return Nn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Cn)),t}function Zi(){var e,t;return e=es(),e===null&&(e=Nr,t=bi(),t!==null&&(Cr=e,t=kn(t)),t===null?(Nr=e,e=t):e=t),e}function es(){var t,n,r,i,s;return t=Nr,n=Nr,e.charCodeAt(Nr)===34?(r=xt,Nr++):(r=null,Mr===0&&Fr(Tt)),r!==null?(i=ii(),i!==null?(e.charCodeAt(Nr)===34?(s=xt,Nr++):(s=null,Mr===0&&Fr(Tt)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o),n===null&&(n=Nr,e.charCodeAt(Nr)===39?(r=Nt,Nr++):(r=null,Mr===0&&Fr(Ct)),r!==null?(i=ii(),i!==null?(e.charCodeAt(Nr)===39?(s=Nt,Nr++):(s=null,Mr===0&&Fr(Ct)),s!==null?(r=[r,i,s],n=r):(Nr=n,n=o)):(Nr=n,n=o)):(Nr=n,n=o)),n!==null&&(Cr=t,n=kt(n)),n===null?(Nr=t,t=n):t=n,t}function ts(){var t,n,r,i;return t=Nr,n=Es(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=Zi(),i!==null?(Cr=t,n=Ln(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function ns(){var t,n,r,i,s,u;t=Nr,e.charCodeAt(Nr)===123?(n=Kt,Nr++):(n=null,Mr===0&&Fr(Qt));if(n!==null){r=As();if(r!==null){i=Nr,s=[],u=Yi(),u===null&&(e.charCodeAt(Nr)===32?(u=A,Nr++):(u=null,Mr===0&&Fr(O)));if(u!==null)while(u!==null)s.push(u),u=Yi(),u===null&&(e.charCodeAt(Nr)===32?(u=A,Nr++):(u=null,Mr===0&&Fr(O)));else s=o;s!==null&&(s=e.substring(i,Nr)),i=s,i!==null?(s=As(),s!==null?(e.charCodeAt(Nr)===125?(u=sn,Nr++):(u=null,Mr===0&&Fr(on)),u!==null?(Cr=t,n=An(i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)}else Nr=t,t=o}else Nr=t,t=o;if(t===null){t=Nr,n=[],r=Yi();if(r!==null)while(r!==null)n.push(r),r=Yi();else n=o;n!==null&&(n=e.substring(t,Nr)),t=n}return t}function rs(){var t,n,r,i,s;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=ns(),i!==null?(Cr=Nr,s=On(n,i),s?s=u:s=o,s!==null?(Cr=t,n=Mn(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function is(){var t,n,r,i;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=bi(),i!==null?(Cr=t,n=_n(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function ss(){var t,n,r,i;return t=Nr,n=di(),n!==null?(e.charCodeAt(Nr)===61?(r=M,Nr++):(r=null,Mr===0&&Fr(_)),r!==null?(i=Ni(),i!==null?(Cr=t,n=Dn(n,i),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o)):(Nr=t,t=o),t}function os(){var t,n,r;t=Nr,n=[],r=as();while(r!==null)n.push(r),r=as();return n!==null&&(n=e.substring(t,Nr)),t=n,t}function us(){var e;return e=Ni(),e===null&&(e=mi()),e}function as(){var t;return t=Li(),t===null&&(wt.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Et)),t===null&&(e.charCodeAt(Nr)===95?(t=Pn,Nr++):(t=null,Mr===0&&Fr(Hn)),t===null&&(e.charCodeAt(Nr)===45?(t=Bn,Nr++):(t=null,Mr===0&&Fr(jn))))),t}function fs(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===37?(n=Fn,Nr++):(n=null,Mr===0&&Fr(In)),n!==null?(r=hs(),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function ls(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===35?(n=qn,Nr++):(n=null,Mr===0&&Fr(Rn)),n!==null?(r=hs(),r!==null?(Cr=t,n=Un(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function cs(){var t,n,r;return t=Nr,e.charCodeAt(Nr)===46?(n=Y,Nr++):(n=null,Mr===0&&Fr(Z)),n!==null?(r=hs(),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function hs(){var e,t;return Mr++,e=ps(),Mr--,e===null&&(t=null,Mr===0&&Fr(zn)),e}function ps(){var t,n,r,i,s;t=Nr,n=vs();if(n!==null){r=Nr,i=[],s=ds();while(s!==null)i.push(s),s=ds();i!==null&&(i=e.substring(r,Nr)),r=i,r!==null?(Cr=t,n=Wn(n,r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)}else Nr=t,t=o;return t}function ds(){var t;return Xn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Vn)),t===null&&(t=ms()),t}function vs(){var t;return $n.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Jn)),t===null&&(t=ms()),t}function ms(){var t;return Kn.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Qn)),t}function gs(){var t,n,r;t=Nr,n=[],r=ws();if(r!==null)while(r!==null)n.push(r),r=ws();else n=o;return n!==null&&(n=e.substring(t,Nr)),t=n,t}function ys(){var t,n,r;return Mr++,t=Nr,e.charCodeAt(Nr)===37?(n=Fn,Nr++):(n=null,Mr===0&&Fr(In)),n!==null?(r=gs(),r!==null?(Cr=t,n=nt(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t===null&&(t=bs()),Mr--,t===null&&(n=null,Mr===0&&Fr(Gn)),t}function bs(){var e,t,n;return e=Nr,t=gs(),t!==null?(Cr=Nr,n=Yn(t),n?n=u:n=o,n!==null?(Cr=e,t=Zn(t),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function ws(){var t;return er.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(tr)),t}function Es(){var e,t,n;return Mr++,e=Nr,t=gs(),t!==null?(Cr=Nr,n=rr(t),n?n=u:n=o,n!==null?(Cr=e,t=Zn(t),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),Mr--,e===null&&(t=null,Mr===0&&Fr(nr)),e}function Ss(){var e,t,n;return e=Nr,t=xs(),t!==null?(n=Ls(),n!==null?(Cr=e,t=nt(n),t===null?(Nr=e,e=t):e=t):(Nr=e,e=o)):(Nr=e,e=o),e}function xs(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61423?(n=sr,Nr++):(n=null,Mr===0&&Fr(or)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(ir)),t}function Ts(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61438?(n=fr,Nr++):(n=null,Mr===0&&Fr(lr)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(ar)),t}function Ns(){var t,n;return Mr++,t=Nr,e.charCodeAt(Nr)===61422?(n=hr,Nr++):(n=null,Mr===0&&Fr(pr)),n!==null&&(Cr=t,n=ur()),n===null?(Nr=t,t=n):t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(cr)),t}function Cs(){var t,n,r;return Mr++,t=Nr,e.charCodeAt(Nr)===61439?(n=vr,Nr++):(n=null,Mr===0&&Fr(mr)),n!==null?(e.charCodeAt(Nr)===10?(r=gr,Nr++):(r=null,Mr===0&&Fr(yr)),r!==null?(n=[n,r],t=n):(Nr=t,t=o)):(Nr=t,t=o),Mr--,t===null&&(n=null,Mr===0&&Fr(dr)),t}function ks(){var e,t;return Mr++,e=Ts(),e===null&&(e=Ns()),Mr--,e===null&&(t=null,Mr===0&&Fr(br)),e}function Ls(){var t,n,r;Mr++,t=Nr,n=[],r=Os();if(r!==null)while(r!==null)n.push(r),r=Os();else n=o;return n!==null&&(n=e.substring(t,Nr)),t=n,Mr--,t===null&&(n=null,Mr===0&&Fr(wr)),t}function As(){var e,t;Mr++,e=[],t=Os();while(t!==null)e.push(t),t=Os();return Mr--,e===null&&(t=null,Mr===0&&Fr(Er)),e}function Os(){var t,n;return Mr++,xr.test(e.charAt(Nr))?(t=e.charAt(Nr),Nr++):(t=null,Mr===0&&Fr(Tr)),Mr--,t===null&&(n=null,Mr===0&&Fr(Sr)),t}function Ms(){var t,n,r;return t=Nr,n=Nr,Mr++,r=xs(),r===null&&(r=Ts(),r===null&&(r=Cs())),Mr--,r===null?n=u:(Nr=n,n=o),n!==null?(e.length>Nr?(r=e.charAt(Nr),Nr++):(r=null,Mr===0&&Fr(Vt)),r!==null?(Cr=t,n=$t(r),n===null?(Nr=t,t=n):t=n):(Nr=t,t=o)):(Nr=t,t=o),t}function _s(){var t,n,r;t=Nr,n=[],r=Ms();while(r!==null)n.push(r),r=Ms();return n!==null&&(n=e.substring(t,Nr)),t=n,t}function Is(e,t,n){var r=e.hash;if(n){r=r||new Hs.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 Hs.IdNode([t])),new Hs.MustacheNode(s,r,!e.escaped)}var r=arguments.length>1?arguments[1]:{},i={start:qr},s=qr,o=null,u="",a="else",f='"else"',l=function(e){return e},c=function(e,t){return new Hs.ProgramNode(e,t||[])},h=[],p=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 Hs.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new Hs.ContentNode(n.join(""))),t},d="BeginStatement",v=function(){return[]},m=">",g='">"',y=function(e,t){return new Hs.PartialNode(e,t)},b=/^[a-zA-Z0-9_$-\/]/,w="[a-zA-Z0-9_$-\\/]",E=function(e){return new Hs.PartialNameNode(e)},S=function(e){return[e]},x="/",T='"/"',N=/^[A-Z]/,C="[A-Z]",k=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!Ps||!n.match(/[A-Z]/)?e:(e.mustache=Is(e.mustache,t),e)}var n=e.id.string.charAt(0);return n.match(/[A-Z]/)?Is(e,t):e},L=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},A=" ",O='" "',M="=",_='"="',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new Hs.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new Hs.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new Hs.ProgramNode(t,[]);return new Hs.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){var i=[],s={},o=!1;for(var u=0;u<n.length;++u){var a=n[u],f=a[0];f=="tagName"||f=="elementId"||f=="class"?(o=!0,s[f]=s[f]||[],s[f].push(a[1])):i.push(a)}if(o){r=r||new Hs.HashNode([]);for(var l in s){if(!s.hasOwnProperty(l))continue;r.pairs.push([l,new Hs.StringNode(s[l].join(" "))])}}i.unshift(e);var c=new Hs.MustacheNode(i,r);return t=="!"?Is(c,"unbound"):t=="?"?Is(c,"if"):t=="^"?Is(c,"unless"):c},F=function(e,t){var n=new String(e);return n.trailingModifier=t,n},I=function(e){return["tagName",e]},q=function(e){return["elementId",e]},R=function(e){return["class",e]},U=function(e,t){return[e,t]},z=function(e){return[null,e]},W=function(e){return e},X="TrailingModifier",V=/^[!?*\^]/,$="[!?*\\^]",J=function(e){return new Hs.HashNode(e)},K="PathIdent",Q="..",G='".."',Y=".",Z='"."',et=/^[a-zA-Z0-9_$\-]/,tt="[a-zA-Z0-9_$\\-]",nt=function(e){return e},rt="Key",it=function(e){return[e[0],e[2]]},st=function(e){return e},ot=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},ut="PathSeparator",at=/^[\/.]/,ft="[\\/.]",lt=function(e){return new Hs.IdNode(e)},ct=function(e){return new Hs.StringNode(e)},ht=function(e){return new Hs.IntegerNode(e)},pt=function(e){return new Hs.BooleanNode(e)},dt="Boolean",vt="true",mt='"true"',gt="false",yt='"false"',bt="Integer",wt=/^[0-9]/,Et="[0-9]",St=function(e){return parseInt(e)},xt='"',Tt='"\\""',Nt="'",Ct='"\'"',kt=function(e){return e[1]},Lt=/^[^"}]/,At='[^"}]',Ot=/^[^'}]/,Mt="[^'}]",_t=/^[A-Za-z]/,Dt="[A-Za-z]",Pt=function(e){return[e]},Ht=function(e,t,n){t.unshift(new Hs.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new Hs.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},Bt=/^[|`]/,jt="[|`]",Ft="<",It='"<"',qt=function(){return"<"},Rt=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 Hs.ContentNode("\n")):i.push(o)}return i},Ut=function(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},zt=function(e){return e.escaped=!0,e},Wt=function(e){return e.escaped=!1,e},Xt=function(e){return new Hs.ContentNode(e.join(""))},Vt="any character",$t=function(e){return e},Jt="SingleMustacheOpen",Kt="{",Qt='"{"',Gt="DoubleMustacheOpen",Yt="{{",Zt='"{{"',en="TripleMustacheOpen",tn="{{{",nn='"{{{"',rn="SingleMustacheClose",sn="}",on='"}"',un="DoubleMustacheClose",an="}}",fn='"}}"',ln="TripleMustacheClose",cn="}}}",hn='"}}}"',pn="InterpolationOpen",dn="#{",vn='"#{"',mn="InterpolationClose",gn="==",yn='"=="',bn=function(){return!1},wn=function(){return!0},En=function(e,t,n,r){return[e,t,n,r]},Sn=function(e,t,n){return[null,e,t,n]},xn=function(e){var t=e[0]||"div",n=e[1]||[],r=e[2],i=e[3],s=n[0],o=n[1],u=[];u.push(new Hs.ContentNode("<"+t)),s&&u.push(new Hs.ContentNode(' id="'+s+'"')),o&&o.length&&u.push(new Hs.ContentNode(' class="'+o.join(" ")+'"'));for(var a=0;a<r.length;++a)u.push(new Hs.ContentNode(" ")),u.push(r[a]);for(var a=0;a<i.length;++a)u=u.concat(i[a]);return Bs[t]?(u.push(new Hs.ContentNode(" />")),[u]):(u.push(new Hs.ContentNode(">")),[u,new Hs.ContentNode("</"+t+">")])},Tn=function(e){return[new Hs.ContentNode(" ")].concat(e)},Nn=/^[A-Za-z.:0-9_\-]/,Cn="[A-Za-z.:0-9_\\-]",kn=function(e){return new Hs.MustacheNode([e])},Ln=function(e,t){return[Is(t,"action",[["on",new Hs.StringNode(e)]])]},An=function(e){return e.replace(/ *$/,"")},On=function(e,t){return Ps},Mn=function(e,t){var n=new Hs.HashNode
2
2
  ([[e,new Hs.StringNode(t)]]),r=[new Hs.IdNode(["bindAttr"])];return[new Hs.MustacheNode(r,n)]},_n=function(e,t){return[new Hs.ContentNode(e+"="+'"'),new Hs.MustacheNode([t]),new Hs.ContentNode('"')]},Dn=function(e,t){var n=e+"="+'"'+t+'"';return[new Hs.ContentNode(n)]},Pn="_",Hn='"_"',Bn="-",jn='"-"',Fn="%",In='"%"',qn="#",Rn='"#"',Un=function(e){return e},zn="CSSIdentifier",Wn=function(e,t){return e+t},Xn=/^[_a-zA-Z0-9\-]/,Vn="[_a-zA-Z0-9\\-]",$n=/^[_a-zA-Z]/,Jn="[_a-zA-Z]",Kn=/^[\x80-\xFF]/,Qn="[\\x80-\\xFF]",Gn="KnownHTMLTagName",Yn=function(e){return!!js[e]},Zn=function(e){return e},er=/^[:_a-zA-Z0-9\-]/,tr="[:_a-zA-Z0-9\\-]",nr="a JS event",rr=function(e){return!!Fs[e]},ir="INDENT",sr="",or='"\\uEFEF"',ur=function(){return""},ar="DEDENT",fr="",lr='"\\uEFFE"',cr="Unmatched DEDENT",hr="",pr='"\\uEFEE"',dr="LineEnd",vr="",mr='"\\uEFFF"',gr="\n",yr='"\\n"',br="ANYDEDENT",wr="RequiredWhitespace",Er="OptionalWhitespace",Sr="InlineWhitespace",xr=/^[ \t]/,Tr="[ \\t]",Nr=0,Cr=0,kr=0,Lr={line:1,column:1,seenCR:!1},Ar=0,Or=[],Mr=0,_r;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 Ds=n.handlebarsVariant,Ps=Ds.JavaScriptCompiler.prototype.namespace==="Ember.Handlebars",Hs=Ds.AST,Bs={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},js={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},Fs={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};_r=s();if(_r!==null&&Nr===e.length)return _r;throw Ir(Or),Cr=Math.max(Nr,Ar),new t(Or,Cr<e.length?e.charAt(Cr):null,Cr,jr(Cr).line,jr(Cr).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.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"\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+"\\n]*$"),u=RegExp("(?:["+f+"]*\\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+"]*\\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(/[^\n\\]+/),this.discard(/\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;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=[]),i.EMBER_LOAD_HOOKS.application.push(function(){return n.compileScriptTags()}),e.Emblem=n})(this);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emblem-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Emblem.js source code wrapper for (pre)compilation gems.
15
15
  email: