var require=function(a,b){var c=require.resolve(a,b||"/"),d=require.modules[c];if(!d)throw new Error("Failed to resolve module "+a+", tried "+c);var e=require.cache[c],f=e?e.exports:d();return f};require.paths=[],require.modules={},require.cache={},require.extensions=[".js",".coffee",".json"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(){return function(a,b){function c(a){if(a=g.normalize(a),require.modules[a])return a;for(var b=0;b=0;d--)if("node_modules"!==b[d]){var e=b.slice(0,d+1).join("/")+"/node_modules";c.push(e)}return c}if(b||(b="/"),require._core[a])return a;var g=require.modules.path();b=g.resolve("/",b);var h=b||"/";if(a.match(/^(?:\.\.?\/|\/)/)){var i=c(g.resolve(h,a))||d(g.resolve(h,a));if(i)return i}var j=e(a,h);if(j)return j;throw new Error("Cannot find module '"+a+"'")}}(),require.alias=function(a,b){var c=require.modules.path(),d=null;try{d=require.resolve(a+"/package.json","/")}catch(e){d=require.resolve(a,"/")}for(var f=c.dirname(d),g=(Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b})(require.modules),h=0;h=0;d--){var e=a[d];"."==e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}var j=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;c.resolve=function(){for(var a="",b=!1,c=arguments.length;c>=-1&&!b;c--){var d=c>=0?arguments[c]:f.cwd();"string"==typeof d&&d&&(a=d+"/"+a,b="/"===d.charAt(0))}return a=i(h(a.split("/"),function(a){return!!a}),!b).join("/"),(b?"/":"")+a||"."},c.normalize=function(a){var b="/"===a.charAt(0),c="/"===a.slice(-1);return a=i(h(a.split("/"),function(a){return!!a}),!b).join("/"),a||b||(a="."),a&&c&&(a+="/"),(b?"/":"")+a},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(h(a,function(a,b){return a&&"string"==typeof a}).join("/"))},c.dirname=function(a){var b=j.exec(a)[1]||"",c=!1;return b?1===b.length||c&&b.length<=3&&":"===b.charAt(1)?b:b.substring(0,b.length-1):"."},c.basename=function(a,b){var c=j.exec(a)[2]||"";return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},c.extname=function(a){return j.exec(a)[3]||""},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;i0)){var b=c.shift();b()}},!0),function(a){c.push(a),window.postMessage("browserify-tick","*")}}return function(a){setTimeout(a,0)}}(),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.binding=function(b){if("evals"===b)return a("vm");throw new Error("No such module. (Possibly not yet loaded)")},function(){var b,c="/";f.cwd=function(){return c},f.chdir=function(d){b||(b=a("path")),c=b.resolve(d,c)}}()}),require.define("/haml-coffee.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,f,g,h,i,j,k,l;i=a("./nodes/node"),j=a("./nodes/text"),g=a("./nodes/haml"),c=a("./nodes/code"),d=a("./nodes/comment"),f=a("./nodes/filter"),e=a("./nodes/directive"),l=a("./util/text").whitespace,k=a("./util/text").indent,b.exports=h=function(){function a(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(this.options=null!=a?a:{},null==(b=this.options).placement&&(b.placement="global"),null==(c=this.options).dependencies&&(c.dependencies={hc:"hamlcoffee"}),null==(h=this.options).escapeHtml&&(h.escapeHtml=!0),null==(i=this.options).escapeAttributes&&(i.escapeAttributes=!0),null==(j=this.options).cleanValue&&(j.cleanValue=!0),null==(k=this.options).uglify&&(k.uglify=!1),null==(l=this.options).basename&&(l.basename=!1),null==(m=this.options).extendScope&&(m.extendScope=!1),null==(n=this.options).format&&(n.format="html5"),null==(o=this.options).hyphenateDataAttrs&&(o.hyphenateDataAttrs=!0),null==(d=this.options).preserveTags&&(d.preserveTags="pre,textarea"),null==(e=this.options).selfCloseTags&&(e.selfCloseTags="meta,img,link,br,hr,input,area,param,col,base"),"global"===this.options.placement)if(null==(f=this.options).name&&(f.name="test"),null==(g=this.options).namespace&&(g.namespace="window.HAML"),s=(this.options.namespace+"."+this.options.name).replace(/(\s|-)+/g,"_").split(/\./),this.options.name=this.options.basename?s.pop().split(/\/|\\/).pop():s.pop(),this.options.namespace=s.shift(),this.intro="",0!==s.length)for(p=0,q=s.length;q>p;p++)r=s[p],this.options.namespace+="."+r,this.intro+=this.options.namespace+" ?= {}\n";else this.intro+=this.options.namespace+" ?= {}\n"}return a.VERSION="1.15.0",a.prototype.indentChanged=function(){return this.currentIndent!==this.previousIndent},a.prototype.isIndent=function(){return this.currentIndent>this.previousIndent},a.prototype.updateTabSize=function(){return 0===this.tabSize?this.tabSize=this.currentIndent-this.previousIndent:void 0},a.prototype.updateBlockLevel=function(){if(!this.node)throw new Error("Indentation error on line "+this.lineNumber);if(this.currentBlockLevel=this.currentIndent/this.tabSize,!this.node.isCommented()){if(this.currentBlockLevel-Math.floor(this.currentBlockLevel)>0)throw new Error("Indentation error on line "+this.lineNumber);if((this.currentIndent-this.previousIndent)/this.tabSize>1)throw new Error("Block level too deep on line "+this.lineNumber)}return this.delta=this.previousBlockLevel-this.currentBlockLevel},a.prototype.updateCodeBlockLevel=function(a){return a instanceof c?this.currentCodeBlockLevel=a.codeBlockLevel+1:this.currentCodeBlockLevel=a.codeBlockLevel},a.prototype.updateParent=function(){return this.isIndent()?this.pushParent():this.popParent()},a.prototype.pushParent=function(){return this.stack.push(this.parentNode),this.parentNode=this.node},a.prototype.popParent=function(){var a,b,c,d;for(d=[],a=b=0,c=this.delta-1;c>=0?c>=b:b>=c;a=c>=0?++b:--b)d.push(this.parentNode=this.stack.pop());return d},a.prototype.getNodeOptions=function(a){return null==a&&(a={}),{parentNode:a.parentNode||this.parentNode,blockLevel:a.blockLevel||this.currentBlockLevel,codeBlockLevel:a.codeBlockLevel||this.currentCodeBlockLevel,escapeHtml:a.escapeHtml||this.options.escapeHtml,escapeAttributes:a.escapeAttributes||this.options.escapeAttributes,cleanValue:a.cleanValue||this.options.cleanValue,format:a.format||this.options.format,hyphenateDataAttrs:a.hyphenateDataAttrs||this.options.hyphenateDataAttrs,preserveTags:a.preserveTags||this.options.preserveTags,selfCloseTags:a.selfCloseTags||this.options.selfCloseTags,uglify:a.uglify||this.options.uglify,placement:a.placement||this.options.placement,namespace:a.namespace||this.options.namespace,name:a.name||this.options.name}},a.prototype.nodeFactory=function(a){var b,h,i;return null==a&&(a=""),h=this.getNodeOptions(),b=a.match(/^:(escaped|preserve|css|javascript|plain|cdata|coffeescript)/)?new f(a,h):a.match(/^(\/|-#)(.*)/)?new d(a,h):a.match(/^(-#|-|=|!=|\&=|~)\s*(.*)/)?new c(a,h):a.match(/^(%|#[^{]|\.|\!)(.*)/)?new g(a,h):a.match(/^\+(.*)/)?new e(a,h):new j(a,h),null!=(i=h.parentNode)&&i.addChild(b),b},a.prototype.parse=function(a){var b,c,d,e,g,h,k,l,m,n,o,p,q,r;for(null==a&&(a=""),this.lineNumber=this.previousIndent=this.tabSize=this.currentBlockLevel=this.previousBlockLevel=0,this.currentCodeBlockLevel=this.previousCodeBlockLevel=0,this.node=null,this.stack=[],this.root=this.parentNode=new i("",this.getNodeOptions()),h=a.replace(/\r/g,"").split("\n");void 0!==(g=h.shift());){if(this.node instanceof f&&!this.exitFilter)if(/^(\s)*$/.test(g))this.node.addChild(new j("",this.getNodeOptions({parentNode:this.node})));else{if(n=g.match(/^(\s*)(.*)/),r=n[1],c=n[2],this.node.blockLevel>=r.length/2){this.exitFilter=!0,h.unshift(g);continue}for(k=this.tabSize>2?function(){o=[];for(var a=l=this.tabSize;1>=l?1>=a:a>=1;1>=l?a++:a--)o.push(a);return o}.apply(this):[2,1],d=0,e=k.length;e>d;d++)if(p=k[d],q=g.match(RegExp("^\\s{"+(this.node.blockLevel*p+p)+"}(.*)"))){this.node.addChild(new j(q[1],this.getNodeOptions({parentNode:this.node})));break}}else{if(this.exitFilter=!1,n=g.match(/^(\s*)(.*)/),r=n[1],c=n[2],this.currentIndent=r.length,/^\s*$/.test(g))continue;for(;/^[%.#].*[{(]/.test(c)&&RegExp("^\\s{"+(this.previousIndent+(this.tabSize||2))+"}").test(h[0])&&!/^(\s*)[-=&!~.%#<\/]/.test(h[0])&&/([-\w]+[\w:-]*\w?)\s*=|('\w+[\w:-]*\w?')\s*=|("\w+[\w:-]*\w?")\s*=|(\w+[\w:-]*\w?):|('[-\w]+[\w:-]*\w?'):|("[-\w]+[\w:-]*\w?"):|:(\w+[\w:-]*\w?)\s*=>|:?'([-\w]+[\w:-]*\w?)'\s*=>|:?"([-\w]+[\w:-]*\w?)"\s*=>/.test(h[0])&&!/;\s*$/.test(h[0]);)b=h.shift(),c=c.replace(/(\s)+\|\s*$/,""),c+=" "+b.match(/^\s*(.*?)(\s+\|\s*)?$/)[1],this.lineNumber++;for(;/^-#/.test(c)&&RegExp("^\\s{"+(this.currentIndent+(this.tabSize||2))+"}").test(h[0])&&h.length>0;)h.shift(),this.lineNumber++;if(c.match(/(\s)+\|\s*$/))for(c=c.replace(/(\s)+\|\s*$/," ");null!=(m=h[0])?m.match(/(\s)+\|$/):void 0;)c+=h.shift().match(/^(\s*)(.*)/)[2].replace(/(\s)+\|\s*$/,""),this.lineNumber++;this.indentChanged()&&(this.updateTabSize(),this.updateBlockLevel(),this.updateParent(),this.updateCodeBlockLevel(this.parentNode)),this.node=this.nodeFactory(c),this.previousBlockLevel=this.currentBlockLevel,this.previousIndent=this.currentIndent}this.lineNumber++}return this.evaluate(this.root)},a.prototype.evaluate=function(a){var b,c,d,e;for(e=a.children,c=0,d=e.length;d>c;c++)b=e[c],this.evaluate(b);return a.evaluate()},a.prototype.render=function(){switch(this.options.placement){case"amd":return this.renderAmd();case"standalone":return this.renderStandalone();default:return this.renderGlobal()}},a.prototype.renderStandalone=function(){var a;return a="return (context) ->\n (->\n"+k(this.precompile(),2)+"\n ).call(context)"},a.prototype.renderAmd=function(){var a,b,c,d,e,f,g,h;/^hamlcoffee/.test(this.options.dependencies.hc)&&(this.options.customHtmlEscape="hc.escape",this.options.customCleanValue="hc.cleanValue",this.options.customPreserve="hc.preserve",this.options.customFindAndPreserve="hc.findAndPreserve",this.options.customSurround="hc.surround",this.options.customSucceed="hc.succeed",this.options.customPrecede="hc.precede",this.options.customReference="hc.reference"),c=[],e=[],f=this.options.dependencies;for(d in f)b=f[d],c.push(b),e.push(d);h=this.options.extendScope?" `with (context || {}) {`\n"+k(this.precompile(),1)+"\n`}`":this.precompile(),g=this.findDependencies(h);for(d in g)b=g[d],c.push(b),e.push(d);return 0!==c.length?(c=function(){var b,d,e;for(e=[],b=0,d=c.length;d>b;b++)a=c[b],e.push("'"+a+"'");return e}(),c="["+c+"], ("+e.join(", ")+")"):c="","define "+c+" ->\n (context) ->\n render = ->\n \n"+k(h,4)+"\n render.call(context)"},a.prototype.renderGlobal=function(){var a;return a=this.intro,this.options.extendScope?(a+=this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=" `with (context || {}) {`\n",a+=""+k(this.precompile(),1),a+="`}`\n",a+=").call(context)"):(a+=this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=""+k(this.precompile(),1),a+=").call(context)"),a},a.prototype.precompile=function(){var a,b;return b="",a=this.createCode(),-1!==a.indexOf("$e")&&(b+=this.options.customHtmlEscape?"$e = "+this.options.customHtmlEscape+"\n":"$e = (text, escape) ->\n \"#{ text }\"\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/'/g, ''')\n .replace(/\\//g, '/')\n .replace(/\"/g, '"')\n"),-1!==a.indexOf("$c")&&(this.options.customCleanValue?b+="$c = "+this.options.customCleanValue+"\n":(b+="$c = (text) ->\n",b+=" switch text\n",b+=" when null, undefined then ''\n",b+=" when true, false then '“' + text\n",b+=" else text\n")),(-1!==a.indexOf("$p")||-1!==a.indexOf("$fp"))&&(b+=this.options.customPreserve?"$p = "+this.options.customPreserve+"\n":"$p = (text) -> text.replace /\\n/g, ' '\n"),-1!==a.indexOf("$fp")&&(b+=this.options.customFindAndPreserve?"$fp = "+this.options.customFindAndPreserve+"\n":"$fp = (text) ->\n text.replace /<("+this.options.preserveTags.split(",").join("|")+')>([^]*?)<\\/\\1>/g, (str, tag, content) ->\n "<#{ tag }>#{ $p content }"\n'),-1!==a.indexOf("surround")&&(b+=this.options.customSurround?"surround = (start, end, fn) => "+this.options.customSurround+".call(@, start, end, fn)\n":"surround = (start, end, fn) => start + fn.call(@)?.replace(/^\\s+|\\s+$/g, '') + end\n"),-1!==a.indexOf("succeed")&&(b+=this.options.customSucceed?"succeed = (start, end, fn) => "+this.options.customSucceed+".call(@, start, end, fn)\n":"succeed = (end, fn) => fn.call(@)?.replace(/s+$/g, '') + end\n"),-1!==a.indexOf("precede")&&(b+=this.options.customPrecede?"precede = (start, end, fn) => "+this.options.customPrecede+".call(@, start, end, fn)\n":"precede = (start, fn) => start + fn.call(@)?.replace(/^s+/g, '')\n"),-1!==a.indexOf("$r")&&(b+=this.options.customReference?"$r = "+this.options.customReference+"\n":"$r = (object, prefix) ->\n name = if prefix then prefix + '_' else ''\n\n if typeof(object.hamlObjectRef) is 'function'\n name += object.hamlObjectRef()\n else\n name += (object.constructor?.name || 'object').replace(/W+/g, '_').replace(/([a-zd])([A-Z])/g, '$1_$2').toLowerCase()\n\n id = if typeof(object.to_key) is 'function'\n object.to_key()\n else if typeof(object.id) is 'function'\n object.id()\n else if object.id\n object.id\n else\n object\n\n result = \"class='#{ name }'\"\n result += \" id='#{ name }_#{ id }'\" if id\n"),b+="$o = []\n",b+=a+"\n",b+='return $o.join("\\n")'+this.convertBooleans(a)+this.removeEmptyIDAndClass(a)+this.cleanupWhitespace(a)+"\n"},a.prototype.createCode=function(){var a,b,c,d,e,f,g,h,i,j;for(b=[],this.lines=[],i=this.root.children,c=0,e=i.length;e>c;c++)a=i[c],this.lines=this.lines.concat(a.render());for(this.lines=this.combineText(this.lines),this.blockLevel=0,j=this.lines,d=0,f=j.length;f>d;d++)if(g=j[d],null!==g)switch(g.type){case"text":b.push(""+l(g.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(g.hw)+g.text+'"');break;case"run":"end"!==g.block?b.push(""+l(g.cw)+g.code):(b.push(""+l(g.cw)+g.code.replace("$buffer",this.getBuffer(this.blockLevel))),this.blockLevel-=1);break;case"insert":h="",g.findAndPreserve&&(h+="$fp "),g.preserve&&(h+="$p "),g.escape&&(h+="$e "),this.options.cleanValue&&(h+="$c "),b.push(""+l(g.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(g.hw)+'" + '+h+g.code),"start"===g.block&&(this.blockLevel+=1,b.push(""+l(g.cw+1)+this.getBuffer(this.blockLevel)+" = []"))}return b.join("\n")},a.prototype.getBuffer=function(a){return a>0?"$o"+a:"$o"},a.prototype.combineText=function(a){var b,c,d;for(b=[];void 0!==(c=a.shift());){if("text"===c.type)for(;a[0]&&"text"===a[0].type&&c.cw===a[0].cw;)d=a.shift(),c.text+="\\n"+l(d.hw)+d.text;b.push(c)}return b},a.prototype.convertBooleans=function(a){return-1!==a.indexOf("$c")?"xhtml"===this.options.format?".replace(/\\s([\\w-]+)='“true'/mg, \" $1='$1'\").replace(/\\s([\\w-]+)='“false'/mg, '')":".replace(/\\s([\\w-]+)='“true'/mg, ' $1').replace(/\\s([\\w-]+)='“false'/mg, '')":""},a.prototype.removeEmptyIDAndClass=function(a){return-1!==a.indexOf("id=")||-1!==a.indexOf("class=")?'.replace(/\\s(?:id|class)=([\'"])(\\1)/mg, "")':""},a.prototype.cleanupWhitespace=function(a){return/\u0091|\u0092/.test(a)?".replace(/[\\s\\n]*\\u0091/mg, '').replace(/\\u0092[\\s\\n]*/mg, '')":""},a.prototype.findDependencies=function(a){var b,c,d,e,f;for(f=/require(?:\s+|\()(['"])(.+?)(\1)\)?/gm,b={};c=f.exec(a);)d=c[2],e=d.split("/").pop(),b[e]=d;return b},a}()}).call(this)}),require.define("/nodes/node.coffee",function(a,b,c,d,e,f,g){(function(){var c,d;d=a("../util/text").escapeHTML,b.exports=c=function(){function a(a,b){this.expression=null!=a?a:"",null==b&&(b={}),this.parentNode=b.parentNode,this.children=[],this.opener=this.closer=null,this.silent=!1,this.preserveTags=b.preserveTags.split(","),this.preserve=!1,this.wsRemoval={around:!1,inside:!1},this.escapeHtml=b.escapeHtml,this.escapeAttributes=b.escapeAttributes,this.cleanValue=b.cleanValue,this.format=b.format,this.hyphenateDataAttrs=b.hyphenateDataAttrs,this.selfCloseTags=b.selfCloseTags.split(","),this.uglify=b.uglify,this.codeBlockLevel=b.codeBlockLevel,this.blockLevel=b.blockLevel,this.placement=b.placement,this.namespace=b.namespace,this.name=b.name}return a.CLEAR_WHITESPACE_LEFT="‘",a.CLEAR_WHITESPACE_RIGHT="’",a.prototype.addChild=function(a){return this.children.push(a),this},a.prototype.getOpener=function(){return this.wsRemoval.around&&this.opener.text&&(this.opener.text=a.CLEAR_WHITESPACE_LEFT+this.opener.text),this.wsRemoval.inside&&this.opener.text&&(this.opener.text+=a.CLEAR_WHITESPACE_RIGHT),this.opener},a.prototype.getCloser=function(){return this.wsRemoval.inside&&this.closer.text&&(this.closer.text=a.CLEAR_WHITESPACE_LEFT+this.closer.text),this.wsRemoval.around&&this.closer.text&&(this.closer.text+=a.CLEAR_WHITESPACE_RIGHT),this.closer},a.prototype.isPreserved=function(){return this.preserve?!0:this.parentNode?this.parentNode.isPreserved():!1},a.prototype.isCommented=function(){return"Comment"===this.constructor.name?!0:this.parentNode?this.parentNode.isCommented():!1},a.prototype.markText=function(a,b){return null==b&&(b=!1),{type:"text",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,text:b?d(a):a}},a.prototype.markRunningCode=function(a){return{type:"run",cw:this.codeBlockLevel,code:a}},a.prototype.markInsertingCode=function(a,b,c,d){return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=!1),{type:"insert",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,escape:b,preserve:c,findAndPreserve:d,code:a}},a.prototype.evaluate=function(){},a.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(l=[],this.silent)return l;if(0===this.children.length)this.opener&&this.closer?(s=this.getOpener(),s.text+=this.getCloser().text,l.push(s)):!this.preserve&&this.isPreserved()?l.push(this.getOpener()):l.push(this.getOpener());else if(this.opener&&this.closer)if(this.preserve){for(this.wsRemoval.inside=!0,l.push(this.getOpener()),m=this.children,b=0,f=m.length;f>b;b++)for(a=m[b],n=a.render(),c=0,g=n.length;g>c;c++)r=n[c],r.hw=this.blockLevel,l.push(r);l.push(this.getCloser())}else{for(l.push(this.getOpener()),o=this.children,d=0,h=o.length;h>d;d++)a=o[d],l=l.concat(a.render());l.push(this.getCloser())}else if(this.opener)for(l.push(this.getOpener()),p=this.children,e=0,i=p.length;i>e;e++)a=p[e],l=l.concat(a.render());else for(q=this.children,k=0,j=q.length;j>k;k++)a=q[k],l.push(this.markText(a.render().text));return l},a}()}).call(this)}),require.define("/util/text.coffee",function(a,b,c,d,e,f,g){(function(){b.exports={whitespace:function(a){var b;for(a=2*a,b=[];b.length/g,">").replace(/\"/g,"""):""},preserve:function(a){return a?(a.replace(/\r/g,""),a.replace(/<(pre|textarea)>(.*?)<\/\1>/g,function(a){return a.replace("\\n"," ")})):void 0},indent:function(a,c){return a.replace(/^(.*)$/gm,b.exports.whitespace(c)+"$1")}}}).call(this)}),require.define("/nodes/text.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;c=a("./node"),e=a("../util/text").escapeQuotes,b.exports=d=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return f(b,a),b.prototype.evaluate=function(){return this.opener=this.markText(e(this.expression))},b}(c)}).call(this)}),require.define("/nodes/haml.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return f(b,a),b.prototype.evaluate=function(){var a,b,c,d,f,g;return g=this.parseExpression(this.expression),g.doctype?this.opener=this.markText(""+e(this.buildDocType(g.doctype))):this.isNotSelfClosing(g.tag)?(f=this.buildHtmlTagPrefix(g),g.assignment?(d=g.assignment.match(/^(=|!=|&=|~)\s*(.*)$/),c=d[1],a=d[2],"~"===c?b="#{$fp "+a+" }":"&="===c||"="===c&&this.escapeHtml?b=this.preserve?this.cleanValue?"#{ $p($e($c("+a+"))) }":"#{ $p($e("+a+")) }":this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":("!="===c||"="===c&&!this.escapeHtml)&&(b=this.preserve?this.cleanValue?"#{ $p($c("+a+")) }":"#{ $p("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ "+a+" }"),this.opener=this.markText(f+">"+b),this.closer=this.markText("")):g.text?(this.opener=this.markText(f+">"+g.text),this.closer=this.markText("")):(this.opener=this.markText(f+">"),this.closer=this.markText(""))):(g.tag=g.tag.replace(/\/$/,""),f=this.buildHtmlTagPrefix(g),g.text?(this.opener=this.markText(f+">"+g.text),this.closer=this.markText("")):this.opener=this.markText(""+f+("xhtml"===this.format?" /":"")+">"+g.text))},b.prototype.parseExpression=function(a){var b,c,d,f,g,h,i,j;if(i=this.parseTag(a),-1!==this.preserveTags.indexOf(i.tag)&&(this.preserve=!0),d=this.interpolateCodeAttribute(null!=(g=i.ids)?g.pop():void 0,!0),c=i.classes,b={},i.attributes){h=i.attributes;for(f in h)j=h[f],"id"===f?d?d+="_"+this.interpolateCodeAttribute(j,!0):d=this.interpolateCodeAttribute(j,!0):"class"===f?(c||(c=[]),c.push(j)):b[f]=j}return{doctype:i.doctype,tag:i.tag,id:d,classes:c,text:e(i.text),attributes:b,assignment:i.assignment,reference:i.reference}},b.prototype.parseTag=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I;try{if(g=null!=(w=a.match(/^(\!{3}.*)/))?w[1]:void 0)return{doctype:g};if(j=a.match(/^((?:[#%\.][a-z0-9_:\-]*[\/]?)+)/i)[0],C=a.substring(j.length),C.match(/^[{([]/)){for(B="",k="",D="",x=["[","{","(","[","{","("],l=0,s=x.length;s>l;l++)if(E=x[l],E===C[0]){for(h=function(){switch(E){case"{":return"}";case"(":return")";case"[":return"]"}}(),u=0,v=o=0,y=C.length;y>=0?y>=o:o>=y;v=y>=0?++o:--o)if(e=C[v],e===E&&(u+=1),e===h){if(1===u)break;u-=1}switch(E){case"{":D+=C.substring(0,v+1),C=C.substring(v+1);break;case"(":k+=C.substring(0,v+1),C=C.substring(v+1);break;case"[":B=C.substring(1,v),C=C.substring(v+1)}}b=C||""}else B="",k="",D="",b=C;for(d={},z=[this.parseAttributes(k),this.parseAttributes(D)],p=0,t=z.length;t>p;p++){c=z[p];for(q in c)H=c[q],d[q]=H}return(I=null!=(A=b.match(/^[<>]{0,2}/))?A[0]:void 0)&&(b=b.substring(I.length))," "===b[0]&&(b=b.substring(1)),b&&!b.match(/^(=|!=|&=|~)/)&&(G=b.replace(/^ /,""),b=void 0),I&&(-1!==I.indexOf(">")&&(this.wsRemoval.around=!0),-1!==I.indexOf("<")&&(this.wsRemoval.inside=!0,this.preserve=!0)),F=j.match(/\%([a-z_\-][a-z0-9_:\-]*[\/]?)/i),n=j.match(/\#([a-z_\-][a-z0-9_\-]*)/gi),f=j.match(/\.([a-z0-9_\-]*)/gi),{tag:F?F[1]:"div",ids:n?function(){var a,b,c;for(c=[],a=0,b=n.length;b>a;a++)m=n[a],c.push("'"+m.substr(1)+"'");return c}():void 0,classes:f?function(){var a,b,c;for(c=[],a=0,b=f.length;b>a;a++)r=f[a],c.push("'"+r.substr(1)+"'");return c}():void 0,attributes:d,assignment:b,reference:B,text:G}}catch(J){throw i=J,new Error("Unable to parse tag from "+a+": "+i)}},b.prototype.parseAttributes=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G;if(c={},void 0===a)return c;for(F=a.substring(0,1),a=a.replace(/(=|:|=>)\s*('([^\\']|\\\\|\\')*'|"([^\\"]|\\\\|\\")*")/g,function(a,b,c){return b+(null!=c?c.replace(/(:|=|=>)/g,"$1"):void 0)}),p=0,D=0,r=[],"("===F?(E=1,e=a.length-1):(E=0,e=a.length),t=g=w=E,x=e;x>=w?x>g:g>x;t=x>=w?++g:--g)d=a[t],"("===d&&(p+=1,1===p&&(D=t)),")"===d&&(1===p?0!==D&&t-D!==1&&r.push({start:D,end:t}):p-=1);for(y=r.reverse(),i=0,n=y.length;n>i;i++)q=y[i],a=a.substring(0,q.start)+a.substring(q.start,q.end).replace(/(:|=|=>)/g,"$1")+a.substring(q.end);switch(F){case"(":m=/\(\s*([-\w]+[\w:-]*\w?)\s*=|\s+([-\w]+[\w:-]*\w?)\s*=|\(\s*('\w+[\w:-]*\w?')\s*=|\s+('\w+[\w:-]*\w?')\s*=|\(\s*("\w+[\w:-]*\w?")\s*=|\s+("\w+[\w:-]*\w?")\s*=/g;break;case"{":m=/[{,]\s*(\w+[\w:-]*\w?)\s*:|[{,]\s*('[-\w]+[\w:-]*\w?')\s*:|[{,]\s*("[-\w]+[\w:-]*\w?")\s*:|[{,]\s*:(\w+[\w:-]*\w?)\s*=>|[{,]\s*:?'([-\w]+[\w:-]*\w?)'\s*=>|[{,]\s*:?"([-\w]+[\w:-]*\w?)"\s*=>/g}for(s=a.split(m).filter(Boolean),h=!1,f=!1;s.length;)if(l=s.splice(0,2),1===l.length)b=l[0].replace(/^[\s({]+|[\s)}]+$/g,""),c[b]="true";else switch(k=null!=(z=l[0])?z.replace(/^\s+|\s+$/g,"").replace(/^:/,""):void 0,(v=k.match(/^("|')(.*)\1$/))&&(k=v[2]),G=null!=(A=l[1])?A.replace(/^\s+|[\s,]+$/g,"").replace(/\u0090/g,""):void 0,"data"!==k||G?k&&G&&h&&(k=this.hyphenateDataAttrs?"data-"+k.replace("_","-"):"data-"+k,/}\s*$/.test(G)&&(h=!1)):(h=!0,f=!0),F){case"(":if(G=G.replace(/^\s+|[\s)]+$/g,""),u=null!=(B=/^(['"])/.exec(G))?B[1]:void 0,t=G.lastIndexOf(u),t>1){for(C=G.substring(t+1).split(" "),j=0,o=C.length;o>j;j++)b=C[j],b&&(c[b]="true");G=G.substring(0,t+1)}c[k]=G;break;case"{":c[k]=G.replace(/^\s+|[\s}]+$/g,"")}return f&&delete c.data,c},b.prototype.buildHtmlTagPrefix=function(a){var b,c,d,e,f,g,h,i,j,k,l;if(k=["<"+a.tag],a.classes){if(d=!1,b=function(){var b,c,e,f;for(e=a.classes,f=[],b=0,c=e.length;c>b;b++)i=e[b],i=this.interpolateCodeAttribute(i,!0),-1!==i.indexOf("#{")&&(d=!0),f.push(i);return f}.call(this),d&&b.length>1){for(c="#{ [",e=0,h=b.length;h>e;e++)g=b[e],c+=this.quoteAndEscapeAttributeValue(g,!0)+",";c=c.substring(0,c.length-1)+"].sort().join(' ').replace(/^\\s+|\\s+$/g, '') }"}else c=b.sort().join(" ");k.push("class='"+c+"'")}if(a.id&&k.push("id='"+a.id+"'"),a.reference&&(a.attributes&&(delete a.attributes["class"],delete a.attributes.id),k.push("#{$r("+a.reference+")}")),a.attributes){j=a.attributes;for(f in j)l=j[f],"true"===l||"false"===l?"true"===l&&("html5"===this.format?k.push(""+f):k.push(f+"="+this.quoteAndEscapeAttributeValue(f))):k.push(f+"="+this.quoteAndEscapeAttributeValue(this.interpolateCodeAttribute(l)))}return k.join(" ")},b.prototype.interpolateCodeAttribute=function(a,b){var c;return null==b&&(b=!1),a?(a.match(/^("|').*\1$/)||(a=this.escapeAttributes?this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ ("+a+") }"),b&&(c=a.match(/^("|')(.*)\1$/))&&(a=c[2]),a):void 0},b.prototype.quoteAndEscapeAttributeValue=function(a,b){var c,d,f,g,h,i,j,k;return null==b&&(b=!1),a?((h=a.match(/^("|')(.*)\1$/))&&(a=h[2]),k=this.splitInterpolations(a),g=!1,d=!1,f=!1,k=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],"#{"===j.slice(0,2)?(-1===j.indexOf("$e")&&-1===j.indexOf("$c")&&(this.escapeAttributes?j=this.cleanValue?"#{ $e($c("+j.slice(2,-1)+")) }":"#{ $e("+j.slice(2,-1)+") }":this.cleanValue&&(j="#{ $c("+j.slice(2,-1)+") }")),f=!0):(g||(g=-1!==j.indexOf("'")),d||(d=-1!==j.indexOf('"'))),c.push(j);return c}.call(this),b?i=f?'"'+k.join("")+'"':"'"+k.join("")+"'":(d||g||(i="'"+k.join("")+"'"),g&&!d&&(i='\\"'+k.join("")+'\\"'),d&&!g&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j));return c}(),i="'"+c.join("")+"'"),g&&d&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j).replace(/'/g,"'"));return c}(),i="'"+c.join("")+"'")),i):void 0},b.prototype.splitInterpolations=function(a){var b,c,d,e,f,g,h,i;for(e=0,h=0,i=[],f=d=0,g=a.length;g>=0?g>d:d>g;f=g>=0?++d:--d)b=a[f],c=a.slice(f,+(f+1)+1||9e9),"{"===b&&(e+=1),"#{"===c&&0===e&&(i.push(a.slice(h,f)),h=f),"}"===b&&(e-=1,0===e&&(i.push(a.slice(h,+f+1||9e9)),h=f+1));return i.push(a.slice(h,a.length)),i.filter(Boolean)},b.prototype.buildDocType=function(a){switch(this.format+" "+a){case"xhtml !!! XML":return"";case"xhtml !!!":return'';case"xhtml !!! 1.1":return'';case"xhtml !!! mobile":return'';case"xhtml !!! basic":return'';case"xhtml !!! frameset":return'';case"xhtml !!! 5":case"html5 !!!":return"";case"html5 !!! XML":case"html4 !!! XML":return"";case"html4 !!!":return'';case"html4 !!! frameset":return'';case"html4 !!! strict":return''}},b.prototype.isNotSelfClosing=function(a){return-1===this.selfCloseTags.indexOf(a)&&!a.match(/\/$/)},b}(d)}).call(this)}),require.define("/nodes/code.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e=function(a,b){function c(){this.constructor=a}for(var d in b)f.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=a("./node"),b.exports=c=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return e(b,a),b.prototype.evaluate=function(){var a,b,c,d;return b=this.expression.match(/(-|!=|\&=|=|~)\s?(.*)?/),d=b[1],a=b[2],"-"!==d?"~"===d?this.escapeHtml?this.opener=this.markInsertingCode(a,!0,!1,!0):this.opener=this.markInsertingCode(a,!1,!1,!0):(c="&="===d||"="===d&&this.escapeHtml, 0!==this.children.length&&a.match(/(->|=>)$/)?(this.opener=this.markInsertingCode(a,c,!1,!1),this.opener.block="start",this.closer=this.markRunningCode(' $buffer.join "\\n"'),this.closer.block="end"):this.opener=this.markInsertingCode(a,c)):(this.opener=this.markRunningCode(a),0!==this.children.length&&this.opener.code.match(/(->|=>)/)?this.closer=this.markRunningCode(" ''"):void 0)},b}(d)}).call(this)}),require.define("/nodes/comment.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return f(b,a),b.prototype.evaluate=function(){var a,b,c,d;switch(d=this.expression.match(/(-#|\/\[|\/)\s?(.*)?/),b=d[0],c=d[1],a=d[2],c){case"-#":return this.silent=!0,this.opener=this.markText("");case"/[":return this.opener=this.markText("");case"/":return a?(this.opener=this.markText("")):(this.opener=this.markText(""))}},b}(d)}).call(this)}),require.define("/nodes/filter.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,f,g=function(a,b){function c(){this.constructor=a}for(var d in b)h.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},h={}.hasOwnProperty;d=a("./node"),f=a("../util/text").whitespace,e=a("../util/text").unescapeQuotes,b.exports=c=function(a){function b(){return b.__super__.constructor.apply(this,arguments)}return g(b,a),b.prototype.evaluate=function(){var a;return this.filter=null!=(a=this.expression.match(/:(escaped|preserve|css|javascript|coffeescript|plain|cdata|coffeescript)(.*)?/))?a[1]:void 0},b.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j;switch(g=[],this.filter){case"escaped":for(i=this.children,b=0,e=i.length;e>b;b++)a=i[b],g.push(this.markText(a.render()[0].text,!0));break;case"preserve":for(h="",j=this.children,d=0,f=j.length;f>d;d++)a=j[d],h+=a.render()[0].text+" ";h=h.replace(/\&\#x000A;$/,""),g.push(this.markText(h));break;case"plain":this.renderFilterContent(0,g);break;case"css":"html5"===this.format?g.push(this.markText(""));break;case"javascript":"html5"===this.format?g.push(this.markText(""));break;case"cdata":g.push(this.markText(""));break;case"coffeescript":this.renderFilterContent(0,g,"run")}return g},b.prototype.renderFilterContent=function(a,b,c){var d,g,h,i,j,k,l,m,n,o,p,q,r;for(null==c&&(c="text"),g=[],i=0,p=this.children,j=0,m=p.length;m>j;j++)d=p[j],g.push(d.render()[0].text);for(r=[],k=0,n=g.length;n>k;k++)if(o=g[k],""===o)r.push(i+=1);else{switch(c){case"text":for(h=l=0,q=i;q>=0?q>l:l>q;h=q>=0?++l:--l)b.push(this.markText(""));b.push(this.markText(""+f(a)+o));break;case"run":b.push(this.markRunningCode(""+e(o)))}r.push(i=0)}return r},b}(d)}).call(this)}),require.define("/nodes/directive.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,g,h,i=function(a,b){function c(){this.constructor=a}for(var d in b)j.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},j={}.hasOwnProperty;h=a("path"),e=a("./node"),f.browser||(g=a("fs"),c=a("coffee-script")),b.exports=d=function(b){function d(){return d.__super__.constructor.apply(this,arguments)}return i(d,b),d.prototype.directives={include:function(b){var d,e,f,h,i,j,k,l,m,n;try{l=b.match(/\s*['"](.*?)['"](?:,\s*(.*))?\s*/),l[0],k=l[1],h=l[2]}catch(o){throw i=o,new Error("Failed to parse the include directive from "+b)}return h||(h="this"),n=function(){switch(this.placement){case"global":return this.namespace+"['"+k+"']("+h+")";case"amd":return"require('"+k+"')("+h+")";case"standalone":if("undefined"!=typeof browser&&null!==browser?browser.process:void 0)throw new Error("Include directive not available in the Browser when placement is standalone.");try{m=g.readFileSync(k).toString()}catch(b){j=b,console.error(" Error opening file: %s",j),console.error(j)}return d=a("../haml-coffee"),f=new d(this.options),f.parse(m),e=c.compile(f.precompile(),{bare:!0}),h=c.compile(h,{bare:!0}).replace(/;\s*$/,""),n="`(function(){"+e+"}).apply("+h+")`";default:throw new Error("Include directive not available when placement is "+this.placement)}}.call(this),this.opener=this.markInsertingCode(n,!1)}},d.prototype.evaluate=function(){var a,b,c,d,e;a=Object.keys(this.directives).join("|");try{d=this.expression.match(RegExp("\\+("+a+")(.*)")),d[0],c=d[1],e=d[2]}catch(f){throw b=f,new Error("Unable to recognize directive from "+this.expression)}return this.directives[c].call(this,e)},d}(e)}).call(this)}),require.define("fs",function(a,b,c,d,e,f,g){}),require.define("/hamlc.coffee",function(a,b,c,d,e,f,g){(function(){var c,d,e,g;g=a("fs"),d=a("./haml-coffee"),c=f.browser?window.CoffeeScript:a("coffee-script"),e={},b.exports={render:function(a,b,e){var f,g;return null==b&&(b={}),null==e&&(e={}),e.placement="standalone",f=new d(e),f.parse(a),g=new Function(c.compile(f.precompile(),{bare:!0})),g.call(b)},compile:function(a,b){var e,f;return null==b&&(b={}),e=new d(b),e.parse(a),f=new Function(c.compile(e.precompile(),{bare:!0})),function(a){return f.call(a)}},template:function(a,b,e,f){var g;return null==f&&(f={}),f.namespace=e,f.name=b,g=new d(f),g.parse(a),c.compile(g.render())},__express:function(a,c,d){var f,h;c&&c.constructor&&c.call&&c.apply&&(d=c,c={});try{return c.cache&&e[a]?d(null,e[a](c)):(c.filename=a,h=g.readFileSync(a,"utf8"),c.cache?(e[a]=b.exports.compile(h,c),d(null,e[a](c))):d(null,b.exports.compile(h,c)(c)))}catch(i){return f=i,d(f)}}}}).call(this)});