!function(){function require(e){var t=require.resolve(e),i=require.modules[t];if(!i)throw new Error('failed to require "'+e+'"');return i.exports||(i.exports={},i.call(i.exports,i,i.exports,require.relative(t))),i.exports}require.modules={},require.resolve=function(e){var t=e,i=e+".js",n=e+"/index.js";return require.modules[i]&&i||require.modules[n]&&n||t},require.register=function(e,t){require.modules[e]=t},require.relative=function(e){return function(t){if("."!=t.charAt(0))return require(t);var i=e.split("/"),n=t.split("/");i.pop();for(var s=0;s/g,">").replace(/"/g,""")}var nodes=require("./nodes"),filters=require("./filters"),doctypes=require("./doctypes"),selfClosing=require("./self-closing"),runtime=require("./runtime"),utils=require("./utils");Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")});var Compiler=module.exports=function(e,t){this.options=t=t||{},this.node=e,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=t.pretty||!1,this.debug=!1!==t.compileDebug,this.indents=0,this.parentIndents=0,t.doctype&&this.setDoctype(t.doctype)};Compiler.prototype={compile:function(){return this.buf=["var interp;"],this.pp&&this.buf.push("var __indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),this.buf.join("\n")},setDoctype:function(e){var t=doctypes[(e||"default").toLowerCase()];t=t||"",this.doctype=t,this.terse="5"==e||"html"==e,this.xml=0==this.doctype.indexOf("1&&!i&&e.nodes[0].isText&&e.nodes[1].isText&&this.prettyIndent(1,!0);for(var s=0;t>s;++s)n&&s>0&&!i&&e.nodes[s].isText&&e.nodes[s-1].isText&&this.prettyIndent(1,!1),this.visit(e.nodes[s]),e.nodes[s+1]&&e.nodes[s].isText&&e.nodes[s+1].isText&&this.buffer("\\n")},visitDoctype:function(e){!e||!e.val&&this.doctype||this.setDoctype(e.val||"default"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(e){var t=e.name.replace(/-/g,"_")+"_mixin",i=e.args||"",n=e.block,s=e.attrs,r=this.pp;if(e.call){if(r&&this.buf.push("__indent.push('"+Array(this.indents+1).join(" ")+"');"),n||s.length){if(this.buf.push(t+".call({"),n){this.buf.push("block: function(){"),this.parentIndents++;var o=this.indents;this.indents=0,this.visit(e.block),this.indents=o,this.parentIndents--,this.buf.push(s.length?"},":"}")}if(s.length){var a=this.attrs(s);this.buf.push(a.inherits?"attributes: merge({"+a.buf+"}, attributes), escaped: merge("+a.escaped+", escaped, true)":"attributes: {"+a.buf+"}, escaped: "+a.escaped)}this.buf.push(i?"}, "+i+");":"});")}else this.buf.push(t+"("+i+");");r&&this.buf.push("__indent.pop();")}else this.buf.push("var "+t+" = function("+i+"){"),this.buf.push("var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};"),this.parentIndents++,this.visit(n),this.parentIndents--,this.buf.push("};")},visitTag:function(e){this.indents++;var t=e.name,i=this.pp;e.buffer&&(t="' + ("+t+") + '"),this.hasCompiledTag||(this.hasCompiledDoctype||"html"!=t||this.visitDoctype(),this.hasCompiledTag=!0),i&&!e.isInline()&&this.prettyIndent(0,!0),!~selfClosing.indexOf(t)&&!e.selfClosing||this.xml?(e.attrs.length?(this.buffer("<"+t),e.attrs.length&&this.visitAttributes(e.attrs),this.buffer(">")):this.buffer("<"+t+">"),e.code&&this.visitCode(e.code),this.escape="pre"==e.name,this.visit(e.block),!i||e.isInline()||"pre"==e.name||e.canInline()||this.prettyIndent(0,!0),this.buffer(""+t+">")):(this.buffer("<"+t),this.visitAttributes(e.attrs),this.buffer(this.terse?">":"/>")),this.indents--},visitFilter:function(e){var t=filters[e.name];if(!t)throw new Error(e.isASTFilter?'unknown ast filter "'+e.name+':"':'unknown filter ":'+e.name+'"');if(e.isASTFilter)this.buf.push(t(e.block,this,e.attrs));else{var i=e.block.nodes.map(function(e){return e.val}).join("\n");e.attrs=e.attrs||{},e.attrs.filename=this.options.filename,this.buffer(utils.text(t(i,e.attrs)))}},visitText:function(e){e=utils.text(e.val.replace(/\\/g,"\\\\")),this.escape&&(e=escape(e)),this.buffer(e)},visitComment:function(e){e.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer(""))},visitBlockComment:function(e){e.buffer&&(0==e.val.trim().indexOf("if")?(this.buffer("")):(this.buffer("")))},visitCode:function(e){if(e.buffer){var t=e.val.trimLeft();this.buf.push("var __val__ = "+t),t='null == __val__ ? "" : __val__',e.escape&&(t="escape("+t+")"),this.buf.push("buf.push("+t+");")}else this.buf.push(e.val);e.block&&(e.buffer||this.buf.push("{"),this.visit(e.block),e.buffer||this.buf.push("}"))},visitEach:function(e){this.buf.push("// iterate "+e.obj+"\n;(function(){\n if ('number' == typeof "+e.obj+".length) {\n for (var "+e.key+" = 0, $$l = "+e.obj+".length; "+e.key+" < $$l; "+e.key+"++) {\n var "+e.val+" = "+e.obj+"["+e.key+"];\n"),this.visit(e.block),this.buf.push(" }\n } else {\n for (var "+e.key+" in "+e.obj+") {\n if ("+e.obj+".hasOwnProperty("+e.key+")){ var "+e.val+" = "+e.obj+"["+e.key+"];\n"),this.visit(e.block),this.buf.push(" }\n"),this.buf.push(" }\n }\n}).call(this);\n")},visitAttributes:function(attrs){var val=this.attrs(attrs);val.inherits?this.buf.push("buf.push(attrs(merge({ "+val.buf+" }, attributes), merge("+val.escaped+", escaped, true)));"):val.constant?(eval("var buf={"+val.buf+"};"),this.buffer(runtime.attrs(buf,JSON.parse(val.escaped)),!0)):this.buf.push("buf.push(attrs({ "+val.buf+" }, "+val.escaped+"));")},attrs:function(e){var t=[],i=[],n={},s=e.every(function(e){return isConstant(e.val)}),r=!1;return this.terse&&t.push("terse: true"),e.forEach(function(e){if("attributes"==e.name)return r=!0;if(n[e.name]=e.escaped,"class"==e.name)i.push("("+e.val+")");else{var s="'"+e.name+"':("+e.val+")";t.push(s)}}),i.length&&(i=i.join(" + ' ' + "),t.push("class: "+i)),{buf:t.join(", ").replace("class:",'"class":'),escaped:JSON.stringify(n),inherits:r,constant:s}}}}),require.register("doctypes.js",function(e){e.exports={5:"","default":"",xml:'',transitional:'',strict:'',frameset:'',1.1:'',basic:'',mobile:''}}),require.register("filters.js",function(e,t,i){e.exports={cdata:function(e){return""},sass:function(e){e=e.replace(/\\n/g,"\n");var t=i("sass").render(e).replace(/\n/g,"\\n");return'"},stylus:function(e,t){var n;e=e.replace(/\\n/g,"\n");var s=i("stylus");return s(e,t).render(function(e,t){if(e)throw e;n=t.replace(/\n/g,"\\n")}),'"},less:function(e){var t;return e=e.replace(/\\n/g,"\n"),i("less").render(e,function(e,i){if(e)throw e;t='"}),t},markdown:function(e){var t;try{t=i("markdown")}catch(n){try{t=i("discount")}catch(n){try{t=i("markdown-js")}catch(n){try{t=i("marked")}catch(n){throw new Error("Cannot find markdown library, install markdown, discount, or marked.")}}}}return e=e.replace(/\\n/g,"\n"),t.parse(e).replace(/\n/g,"\\n").replace(/'/g,"'")},coffeescript:function(e){e=e.replace(/\\n/g,"\n");var t=i("coffee-script").compile(e).replace(/\\/g,"\\\\").replace(/\n/g,"\\n");return'"}}}),require.register("inline-tags.js",function(e){e.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]}),require.register("jade.js",function(e,t,i){function n(e,t){try{var i=new s(e,t.filename,t),n=new(t.compiler||o)(i.parse(),t),r=n.compile();return t.debug&&console.error("\nCompiled Function:\n\n[90m%s[0m",r.replace(/^/gm," ")),"var buf = [];\n"+(t.self?"var self = locals || {};\n"+r:"with (locals || {}) {\n"+r+"\n}\n")+'return buf.join("");'}catch(c){i=i.context(),a.rethrow(c,i.filename,i.lexer.lineno)}}var s=i("./parser"),r=i("./lexer"),o=i("./compiler"),a=i("./runtime");t.version="0.26.1",t.selfClosing=i("./self-closing"),t.doctypes=i("./doctypes"),t.filters=i("./filters"),t.utils=i("./utils"),t.Compiler=o,t.Parser=s,t.Lexer=r,t.nodes=i("./nodes"),t.runtime=a,t.cache={},t.compile=function(e,t){var i,t=t||{},s=t.client,r=t.filename?JSON.stringify(t.filename):"undefined";return i=t.compileDebug!==!1?["var __jade = [{ lineno: 1, filename: "+r+" }];","try {",n(String(e),t),"} catch (err) {"," rethrow(err, __jade[0].filename, __jade[0].lineno);","}"].join("\n"):n(String(e),t),s&&(i="attrs = attrs || jade.attrs; escape = escape || jade.escape; rethrow = rethrow || jade.rethrow; merge = merge || jade.merge;\n"+i),i=new Function("locals, attrs, escape, rethrow, merge",i),s?i:function(e){return i(e,a.attrs,a.escape,a.rethrow,a.merge)}},t.render=function(e,i,n){if("function"==typeof i&&(n=i,i={}),i.cache&&!i.filename)return n(new Error('the "filename" option is required for caching'));try{var s=i.filename,r=i.cache?t.cache[s]||(t.cache[s]=t.compile(e,i)):t.compile(e,i);n(null,r(i))}catch(o){n(o)}},t.renderFile=function(e,i,n){var s=e+":string";"function"==typeof i&&(n=i,i={});try{i.filename=e;var r=i.cache?t.cache[s]||(t.cache[s]=fs.readFileSync(e,"utf8")):fs.readFileSync(e,"utf8");t.render(r,i,n)}catch(o){n(o)}},t.__express=t.renderFile}),require.register("lexer.js",function(e){var t=e.exports=function(e,t){t=t||{},this.input=e.replace(/\r\n|\r/g,"\n"),this.colons=t.colons,this.deferredTokens=[],this.lastIndents=0,this.lineno=1,this.stash=[],this.indentStack=[],this.indentRe=null,this.pipeless=!1};t.prototype={tok:function(e,t){return{type:e,line:this.lineno,val:t}},consume:function(e){this.input=this.input.substr(e)},scan:function(e,t){var i;return(i=e.exec(this.input))?(this.consume(i[0].length),this.tok(t,i[1])):void 0},defer:function(e){this.deferredTokens.push(e)},lookahead:function(e){for(var t=e-this.stash.length;t-->0;)this.stash.push(this.next());return this.stash[--e]},indexOfDelimiters:function(e,t){for(var i=this.input,n=0,s=0,r=0,o=0,a=i.length;a>o;++o)if(e==i.charAt(o))++n;else if(t==i.charAt(o)&&++s==n){r=o;break}return r},stashed:function(){return this.stash.length&&this.stash.shift()},deferred:function(){return this.deferredTokens.length&&this.deferredTokens.shift()},eos:function(){return this.input.length?void 0:this.indentStack.length?(this.indentStack.shift(),this.tok("outdent")):this.tok("eos")},blank:function(){var e;return(e=/^\n *\n/.exec(this.input))?(this.consume(e[0].length-1),this.pipeless?this.tok("text",""):this.next()):void 0},comment:function(){var e;if(e=/^ *\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("comment",e[2]);return t.buffer="-"!=e[1],t}},interpolation:function(){var e;return(e=/^#\{(.*?)\}/.exec(this.input))?(this.consume(e[0].length),this.tok("interpolation",e[1])):void 0},tag:function(){var e;if(e=/^(\w[-:\w]*)(\/?)/.exec(this.input)){this.consume(e[0].length);var t,i=e[1];if(":"==i[i.length-1])for(i=i.slice(0,-1),t=this.tok("tag",i),this.defer(this.tok(":"));" "==this.input[0];)this.input=this.input.substr(1);else t=this.tok("tag",i);return t.selfClosing=!!e[2],t}},filter:function(){return this.scan(/^:(\w+)/,"filter")},doctype:function(){return this.scan(/^(?:!!!|doctype) *([^\n]+)?/,"doctype")},id:function(){return this.scan(/^#([\w-]+)/,"id")},className:function(){return this.scan(/^\.([\w-]+)/,"class")},text:function(){return this.scan(/^(?:\| ?| ?)?([^\n]+)/,"text")},"extends":function(){return this.scan(/^extends? +([^\n]+)/,"extends")},prepend:function(){var e;if(e=/^prepend +([^\n]+)/.exec(this.input)){this.consume(e[0].length);var t="prepend",i=e[1],n=this.tok("block",i);return n.mode=t,n}},append:function(){var e;if(e=/^append +([^\n]+)/.exec(this.input)){this.consume(e[0].length);var t="append",i=e[1],n=this.tok("block",i);return n.mode=t,n}},block:function(){var e;if(e=/^block\b *(?:(prepend|append) +)?([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=e[1]||"replace",i=e[2],n=this.tok("block",i);return n.mode=t,n}},"yield":function(){return this.scan(/^yield */,"yield")},include:function(){return this.scan(/^include +([^\n]+)/,"include")},"case":function(){return this.scan(/^case +([^\n]+)/,"case")},when:function(){return this.scan(/^when +([^:\n]+)/,"when")},"default":function(){return this.scan(/^default */,"default")},assignment:function(){var e;if(e=/^(\w+) += *([^;\n]+)( *;? *)/.exec(this.input)){this.consume(e[0].length);var t=e[1],i=e[2];return this.tok("code","var "+t+" = ("+i+");")}},call:function(){var e;if(e=/^\+([-\w]+)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("call",e[1]);return(e=/^ *\((.*?)\)/.exec(this.input))&&(/^ *[-\w]+ *=/.test(e[1])||(this.consume(e[0].length),t.args=e[1])),t}},mixin:function(){var e;if(e=/^mixin +([-\w]+)(?: *\((.*)\))?/.exec(this.input)){this.consume(e[0].length);var t=this.tok("mixin",e[1]);return t.args=e[2],t}},conditional:function(){var e;if(e=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=e[1],i=e[2];switch(t){case"if":i="if ("+i+")";break;case"unless":i="if (!("+i+"))";break;case"else if":i="else if ("+i+")";break;case"else":i="else"}return this.tok("code",i)}},"while":function(){var e;return(e=/^while +([^\n]+)/.exec(this.input))?(this.consume(e[0].length),this.tok("code","while ("+e[1]+")")):void 0},each:function(){var e;if(e=/^(?:- *)?(?:each|for) +(\w+)(?: *, *(\w+))? * in *([^\n]+)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("each",e[1]);return t.key=e[2]||"$index",t.code=e[3],t}},code:function(){var e;if(e=/^(!?=|-)([^\n]+)/.exec(this.input)){this.consume(e[0].length);var t=e[1];e[1]=e[2];var i=this.tok("code",e[1]);return i.escape="="===t[0],i.buffer="="===t[0]||"="===t[1],i}},attrs:function(){function e(){return l[l.length-1]}function t(e){return e.replace(/#\{([^}]+)\}/g,function(e,t){return s+" + ("+t+") + "+s})}function i(i){var o=i;switch(u&&":"==i&&(i="="),i){case",":case"\n":switch(e()){case"expr":case"array":case"string":case"object":f+=i;break;default:if(l.push("key"),f=f.trim(),p=p.trim(),""==p)return;p=p.replace(/^['"]|['"]$/g,"").replace("!",""),c.escaped[p]=n,c.attrs[p]=""==f?!0:t(f),p=f=""}break;case"=":switch(e()){case"key char":p+=o;break;case"val":case"expr":case"array":case"string":case"object":f+=o;break;default:n="!"!=r,l.push("val")}break;case"(":("val"==e()||"expr"==e())&&l.push("expr"),f+=i;break;case")":("expr"==e()||"val"==e())&&l.pop(),f+=i;break;case"{":"val"==e()&&l.push("object"),f+=i;break;case"}":"object"==e()&&l.pop(),f+=i;break;case"[":"val"==e()&&l.push("array"),f+=i;break;case"]":"array"==e()&&l.pop(),f+=i;break;case'"':case"'":switch(e()){case"key":l.push("key char");break;case"key char":l.pop();break;case"string":i==s&&l.pop(),f+=i;break;default:l.push("string"),f+=i,s=i}break;case"":break;default:switch(e()){case"key":case"key char":p+=i;break;default:f+=i}}r=i}if("("==this.input.charAt(0)){var n,s,r,o=this.indexOfDelimiters("(",")"),a=this.input.substr(1,o-1),c=this.tok("attrs"),h=a.length,u=this.colons,l=["key"],p="",f="";this.consume(o+1),c.attrs={},c.escaped={};for(var d=0;h>d;++d)i(a.charAt(d));return i(","),"/"==this.input.charAt(0)&&(this.consume(1),c.selfClosing=!0),c}},indent:function(){var e,t;if(this.indentRe?e=this.indentRe.exec(this.input):(t=/^\n(\t*) */,e=t.exec(this.input),e&&!e[1].length&&(t=/^\n( *)/,e=t.exec(this.input)),e&&e[1].length&&(this.indentRe=t)),e){var i,n=e[1].length;if(++this.lineno,this.consume(n+1)," "==this.input[0]||" "==this.input[0])throw new Error("Invalid indentation, you can use tabs or spaces but not both");if("\n"==this.input[0])return this.tok("newline");if(this.indentStack.length&&nn;)this.stash.push(this.tok("outdent")),this.indentStack.shift();i=this.stash.pop()}else n&&n!=this.indentStack[0]?(this.indentStack.unshift(n),i=this.tok("indent",n)):i=this.tok("newline");return i}},pipelessText:function(){if(this.pipeless){if("\n"==this.input[0])return;var e=this.input.indexOf("\n");-1==e&&(e=this.input.length);var t=this.input.substr(0,e);return this.consume(t.length),this.tok("text",t)}},colon:function(){return this.scan(/^: */,":")},advance:function(){return this.stashed()||this.next()},next:function(){return this.deferred()||this.blank()||this.eos()||this.pipelessText()||this.yield()||this.doctype()||this.interpolation()||this["case"]()||this.when()||this["default"]()||this["extends"]()||this.append()||this.prepend()||this.block()||this.include()||this.mixin()||this.call()||this.conditional()||this.each()||this["while"]()||this.assignment()||this.tag()||this.filter()||this.code()||this.id()||this.className()||this.attrs()||this.indent()||this.comment()||this.colon()||this.text()}}}),require.register("nodes/attrs.js",function(e,t,i){var n=i("./node"),s=(i("./block"),e.exports=function(){this.attrs=[]});s.prototype=new n,s.prototype.constructor=s,s.prototype.setAttribute=function(e,t,i){return this.attrs.push({name:e,val:t,escaped:i}),this},s.prototype.removeAttribute=function(e){for(var t=0,i=this.attrs.length;i>t;++t)this.attrs[t]&&this.attrs[t].name==e&&delete this.attrs[t]},s.prototype.getAttribute=function(e){for(var t=0,i=this.attrs.length;i>t;++t)if(this.attrs[t]&&this.attrs[t].name==e)return this.attrs[t].val}}),require.register("nodes/block-comment.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e,t,i){this.block=t,this.val=e,this.buffer=i};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/block.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e){this.nodes=[],e&&this.push(e)};s.prototype=new n,s.prototype.constructor=s,s.prototype.isBlock=!0,s.prototype.replace=function(e){e.nodes=this.nodes},s.prototype.push=function(e){return this.nodes.push(e)},s.prototype.isEmpty=function(){return 0==this.nodes.length},s.prototype.unshift=function(e){return this.nodes.unshift(e)},s.prototype.includeBlock=function(){for(var e,t=this,i=0,n=this.nodes.length;n>i;++i){if(e=this.nodes[i],e.yield)return e;e.textOnly||(e.includeBlock?t=e.includeBlock():e.block&&!e.block.isEmpty()&&(t=e.block.includeBlock()))}return t},s.prototype.clone=function(){for(var e=new s,t=0,i=this.nodes.length;i>t;++t)e.push(this.nodes[t].clone());return e}}),require.register("nodes/case.js",function(e,t,i){var n=i("./node"),s=t=e.exports=function(e,t){this.expr=e,this.block=t};s.prototype=new n,s.prototype.constructor=s;var r=t.When=function(e,t){this.expr=e,this.block=t,this.debug=!1};r.prototype=new n,r.prototype.constructor=r}),require.register("nodes/code.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e,t,i){this.val=e,this.buffer=t,this.escape=i,e.match(/^ *else/)&&(this.debug=!1)};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/comment.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e,t){this.val=e,this.buffer=t};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/doctype.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e){this.val=e};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/each.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e,t,i,n){this.obj=e,this.val=t,this.key=i,this.block=n};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/filter.js",function(e,t,i){var n=i("./node"),s=(i("./block"),e.exports=function(e,t,i){this.name=e,this.block=t,this.attrs=i,this.isASTFilter=!t.nodes.every(function(e){return e.isText})});s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/index.js",function(e,t,i){t.Node=i("./node"),t.Tag=i("./tag"),t.Code=i("./code"),t.Each=i("./each"),t.Case=i("./case"),t.Text=i("./text"),t.Block=i("./block"),t.Mixin=i("./mixin"),t.Filter=i("./filter"),t.Comment=i("./comment"),t.Literal=i("./literal"),t.BlockComment=i("./block-comment"),t.Doctype=i("./doctype")}),require.register("nodes/literal.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e){this.str=e.replace(/\\/g,"\\\\").replace(/\n|\r\n/g,"\\n").replace(/'/g,"\\'")};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/mixin.js",function(e,t,i){var n=i("./attrs"),s=e.exports=function(e,t,i,n){this.name=e,this.args=t,this.block=i,this.attrs=[],this.call=n};s.prototype=new n,s.prototype.constructor=s}),require.register("nodes/node.js",function(e){var t=e.exports=function(){};t.prototype.clone=function(){return this}}),require.register("nodes/tag.js",function(e,t,i){var n=i("./attrs"),s=i("./block"),r=i("../inline-tags"),o=e.exports=function(e,t){this.name=e,this.attrs=[],this.block=t||new s};o.prototype=new n,o.prototype.constructor=o,o.prototype.clone=function(){var e=new o(this.name,this.block.clone());return e.line=this.line,e.attrs=this.attrs,e.textOnly=this.textOnly,e},o.prototype.isInline=function(){return~r.indexOf(this.name)},o.prototype.canInline=function(){function e(t){return t.isBlock?t.nodes.every(e):t.isText||t.isInline&&t.isInline()}var t=this.block.nodes;if(!t.length)return!0;if(1==t.length)return e(t[0]);if(this.block.nodes.every(e)){for(var i=1,n=t.length;n>i;++i)if(t[i-1].isText&&t[i].isText)return!1;return!0}return!1}}),require.register("nodes/text.js",function(e,t,i){var n=i("./node"),s=e.exports=function(e){this.val="","string"==typeof e&&(this.val=e)};s.prototype=new n,s.prototype.constructor=s,s.prototype.isText=!0}),require.register("parser.js",function(e,t,i){var n=i("./lexer"),s=i("./nodes"),r=t=e.exports=function(e,t,i){this.input=e,this.lexer=new n(e,i),this.filename=t,this.blocks={},this.mixins={},this.options=i,this.contexts=[this]},o=t.textOnly=["script","style"];r.prototype={context:function(e){return e?void this.contexts.push(e):this.contexts.pop()},advance:function(){return this.lexer.advance()},skip:function(e){for(;e--;)this.advance()},peek:function(){return this.lookahead(1)},line:function(){return this.lexer.lineno},lookahead:function(e){return this.lexer.lookahead(e)},parse:function(){var e,t=new s.Block;for(t.line=this.line();"eos"!=this.peek().type;)"newline"==this.peek().type?this.advance():t.push(this.parseExpr());if(e=this.extending){this.context(e);var i=e.parse();this.context();for(var n in this.mixins)i.unshift(this.mixins[n]);return i}return t},expect:function(e){if(this.peek().type===e)return this.advance();throw new Error('expected "'+e+'", but got "'+this.peek().type+'"')},accept:function(e){return this.peek().type===e?this.advance():void 0},parseExpr:function(){switch(this.peek().type){case"tag":return this.parseTag();case"mixin":return this.parseMixin();case"block":return this.parseBlock();case"case":return this.parseCase();case"when":return this.parseWhen();case"default":return this.parseDefault();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"doctype":return this.parseDoctype();case"filter":return this.parseFilter();case"comment":return this.parseComment();case"text":return this.parseText();case"each":return this.parseEach();case"code":return this.parseCode();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":this.advance();var e=new s.Block;return e.yield=!0,e;case"id":case"class":var t=this.advance();return this.lexer.defer(this.lexer.tok("tag","div")),this.lexer.defer(t),this.parseExpr();default:throw new Error('unexpected token "'+this.peek().type+'"')}},parseText:function(){var e=this.expect("text"),t=new s.Text(e.val);return t.line=this.line(),t},parseBlockExpansion:function(){return":"==this.peek().type?(this.advance(),new s.Block(this.parseExpr())):this.block()},parseCase:function(){var e=this.expect("case").val,t=new s.Case(e);return t.line=this.line(),t.block=this.block(),t},parseWhen:function(){var e=this.expect("when").val;return new s.Case.When(e,this.parseBlockExpansion())},parseDefault:function(){return this.expect("default"),new s.Case.When("default",this.parseBlockExpansion())},parseCode:function(){var e,t=this.expect("code"),i=new s.Code(t.val,t.buffer,t.escape),n=1;for(i.line=this.line();this.lookahead(n)&&"newline"==this.lookahead(n).type;)++n;return e="indent"==this.lookahead(n).type,e&&(this.skip(n-1),i.block=this.block()),i},parseComment:function(){var e,t=this.expect("comment");return e="indent"==this.peek().type?new s.BlockComment(t.val,this.block(),t.buffer):new s.Comment(t.val,t.buffer),e.line=this.line(),e},parseDoctype:function(){var e=this.expect("doctype"),t=new s.Doctype(e.val);return t.line=this.line(),t},parseFilter:function(){var e,t=this.expect("filter"),i=this.accept("attrs");this.lexer.pipeless=!0,e=this.parseTextBlock(),this.lexer.pipeless=!1;var n=new s.Filter(t.val,e,i&&i.attrs);return n.line=this.line(),n},parseASTFilter:function(){var e,t=this.expect("tag"),i=this.accept("attrs");this.expect(":"),e=this.block();var n=new s.Filter(t.val,e,i&&i.attrs);return n.line=this.line(),n},parseEach:function(){var e=this.expect("each"),t=new s.Each(e.code,e.val,e.key);return t.line=this.line(),t.block=this.block(),t},parseExtends:function(){var e=i("path"),t=i("fs"),n=e.dirname,o=(e.basename,e.join);if(!this.filename)throw new Error('the "filename" option is required to extend templates');var e=this.expect("extends").val.trim(),a=n(this.filename),e=o(a,e+".jade"),c=t.readFileSync(e,"utf8"),h=new r(c,e,this.options);return h.blocks=this.blocks,h.contexts=this.contexts,this.extending=h,new s.Literal("")},parseBlock:function(){var e=this.expect("block"),t=e.mode,i=e.val.trim();e="indent"==this.peek().type?this.block():new s.Block(new s.Literal(""));var n=this.blocks[i];if(n)switch(n.mode){case"append":e.nodes=e.nodes.concat(n.nodes),n=e;break;case"prepend":e.nodes=n.nodes.concat(e.nodes),n=e}return e.mode=t,this.blocks[i]=n||e},parseInclude:function(){var e=i("path"),t=i("fs"),n=e.dirname,o=e.basename,a=e.join,e=this.expect("include").val.trim(),c=n(this.filename);if(!this.filename)throw new Error('the "filename" option is required to use includes');if(~o(e).indexOf(".")||(e+=".jade"),".jade"!=e.substr(-5)){var e=a(c,e),h=t.readFileSync(e,"utf8");return new s.Literal(h)}var e=a(c,e),h=t.readFileSync(e,"utf8"),u=new r(h,e,this.options);u.blocks=this.blocks,u.mixins=this.mixins,this.context(u);var l=u.parse();return this.context(),l.filename=e,"indent"==this.peek().type&&l.includeBlock().push(this.block()),l},parseCall:function(){var e=this.expect("call"),t=e.val,i=e.args,n=new s.Mixin(t,i,new s.Block,!0);return this.tag(n),n.block.isEmpty()&&(n.block=null),n},parseMixin:function(){var e,t=this.expect("mixin"),i=t.val,n=t.args;return"indent"==this.peek().type?(e=new s.Mixin(i,n,this.block(),!1),this.mixins[i]=e,e):new s.Mixin(i,n,null,!0)},parseTextBlock:function(){var e=new s.Block;e.line=this.line();var t=this.expect("indent").val;null==this._spaces&&(this._spaces=t);for(var i=Array(t-this._spaces+1).join(" ");"outdent"!=this.peek().type;)switch(this.peek().type){case"newline":this.advance();break;case"indent":this.parseTextBlock().nodes.forEach(function(t){e.push(t)});break;default:var n=new s.Text(i+this.advance().val);n.line=this.line(),e.push(n)}return t==this._spaces&&(this._spaces=null),this.expect("outdent"),e},block:function(){var e=new s.Block;for(e.line=this.line(),this.expect("indent");"outdent"!=this.peek().type;)"newline"==this.peek().type?this.advance():e.push(this.parseExpr());return this.expect("outdent"),e},parseInterpolation:function(){var e=this.advance(),t=new s.Tag(e.val);return t.buffer=!0,this.tag(t)},parseTag:function(){var e=2;if("attrs"==this.lookahead(e).type&&++e,":"==this.lookahead(e).type&&"indent"==this.lookahead(++e).type)return this.parseASTFilter();var t=this.advance(),i=new s.Tag(t.val);return i.selfClosing=t.selfClosing,this.tag(i)},tag:function(e){var t;e.line=this.line();e:for(;;)switch(this.peek().type){case"id":case"class":var i=this.advance();e.setAttribute(i.type,"'"+i.val+"'");continue;case"attrs":var i=this.advance(),n=i.attrs,r=i.escaped,a=Object.keys(n);i.selfClosing&&(e.selfClosing=!0);for(var c=0,h=a.length;h>c;++c){var u=a[c],l=n[u];e.setAttribute(u,l,r[u])}continue;default:break e}switch("."==this.peek().val&&(t=e.textOnly=!0,this.advance()),this.peek().type){case"text":e.block.push(this.parseText());break;case"code":e.code=this.parseCode();break;case":":this.advance(),e.block=new s.Block,e.block.push(this.parseExpr())}for(;"newline"==this.peek().type;)this.advance();if(e.textOnly=e.textOnly||~o.indexOf(e.name),"script"==e.name){var p=e.getAttribute("type");!t&&p&&"text/javascript"!=p.replace(/^['"]|['"]$/g,"")&&(e.textOnly=!1)}if("indent"==this.peek().type)if(e.textOnly)this.lexer.pipeless=!0,e.block=this.parseTextBlock(),this.lexer.pipeless=!1;else{var f=this.block();if(e.block)for(var c=0,h=f.nodes.length;h>c;++c)e.block.push(f.nodes[c]);else e.block=f}return e}}}),require.register("runtime.js",function(e,t,i){function n(e){return null!=e}Array.isArray||(Array.isArray=function(e){return"[object Array]"==Object.prototype.toString.call(e)}),Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t}),t.merge=function(e,t){var i=e["class"],s=t["class"];(i||s)&&(i=i||[],s=s||[],Array.isArray(i)||(i=[i]),Array.isArray(s)||(s=[s]),i=i.filter(n),s=s.filter(n),e["class"]=i.concat(s).join(" "));for(var r in t)"class"!=r&&(e[r]=t[r]);
return e},t.attrs=function(e,i){var n=[],s=e.terse;delete e.terse;var r=Object.keys(e),o=r.length;if(o){n.push("");for(var a=0;o>a;++a){var c=r[a],h=e[c];"boolean"==typeof h||null==h?h&&n.push(s?c:c+'="'+c+'"'):n.push(0==c.indexOf("data")&&"string"!=typeof h?c+"='"+JSON.stringify(h)+"'":"class"==c&&Array.isArray(h)?c+'="'+t.escape(h.join(" "))+'"':i&&i[c]?c+'="'+t.escape(h)+'"':c+'="'+h+'"')}}return n.join(" ")},t.escape=function(e){return String(e).replace(/&(?!(\w+|\#\d+);)/g,"&").replace(//g,">").replace(/"/g,""")},t.rethrow=function(e,t,n){if(!t)throw e;var s=3,r=i("fs").readFileSync(t,"utf8"),o=r.split("\n"),a=Math.max(n-s,0),c=Math.min(o.length,n+s),s=o.slice(a,c).map(function(e,t){var i=t+a+1;return(i==n?" > ":" ")+i+"| "+e}).join("\n");throw e.path=t,e.message=(t||"Jade")+":"+n+"\n"+s+"\n\n"+e.message,e}}),require.register("self-closing.js",function(e){e.exports=["meta","img","link","input","source","area","base","col","br","hr"]}),require.register("utils.js",function(e,t){var i=t.interpolate=function(e){return e.replace(/(\\)?([#!]){(.*?)}/g,function(e,t,i,n){return t?e:"' + "+("!"==i?"":"escape")+"((interp = "+n.replace(/\\'/g,"'")+") == null ? '' : interp) + '"})},n=t.escape=function(e){return e.replace(/'/g,"\\'")};t.text=function(e){return i(n(e))}}),window.jade=require("jade")}();