// ========================================================================== // Project: Ember - JavaScript Application Framework // Copyright: ©2011-2013 Tilde Inc. and contributors // Portions ©2006-2011 Strobe Inc. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license // See https://raw.github.com/emberjs/ember.js/master/LICENSE // ========================================================================== // Version: v1.0.0-rc.6-1-g42f0c68 // Last commit: 42f0c68 (2013-06-23 15:43:35 -0400) !function(){function e(e){var r=e.hash,a=e.hashTypes;for(var n in r)"ID"===a[n]&&(r[n+"Binding"]=r[n],a[n+"Binding"]="STRING",delete r[n],delete a[n])}var r=Object.create||function(e){function r(){}return r.prototype=e,new r},a=this.Handlebars||Ember.imports&&Ember.imports.Handlebars;a||"function"!=typeof require||(a=require("handlebars")),Ember.Handlebars=r(a),Ember.Handlebars.helper=function(r,a){if(Ember.Component.detect(a)){var n=a.proto();n.layoutName||n.templateName||a.reopen({layoutName:"components/"+r})}Ember.View.detect(a)?Ember.Handlebars.registerHelper(r,function(r){return e(r),Ember.Handlebars.helpers.view.call(this,a,r)}):Ember.Handlebars.registerBoundHelper.apply(null,arguments)},Ember.Handlebars.helpers=r(a.helpers),Ember.Handlebars.Compiler=function(){},a.Compiler&&(Ember.Handlebars.Compiler.prototype=r(a.Compiler.prototype)),Ember.Handlebars.Compiler.prototype.compiler=Ember.Handlebars.Compiler,Ember.Handlebars.JavaScriptCompiler=function(){},a.JavaScriptCompiler&&(Ember.Handlebars.JavaScriptCompiler.prototype=r(a.JavaScriptCompiler.prototype),Ember.Handlebars.JavaScriptCompiler.prototype.compiler=Ember.Handlebars.JavaScriptCompiler),Ember.Handlebars.JavaScriptCompiler.prototype.namespace="Ember.Handlebars",Ember.Handlebars.JavaScriptCompiler.prototype.initializeBuffer=function(){return"''"},Ember.Handlebars.JavaScriptCompiler.prototype.appendToBuffer=function(e){return"data.buffer.push("+e+");"};var n="ember"+ +new Date,o=1;Ember.Handlebars.Compiler.prototype.mustache=function(e){if(e.isHelper&&"control"===e.id.string)e.hash=e.hash||new a.AST.HashNode([]),e.hash.pairs.push(["controlID",new a.AST.StringNode(n+o++)]);else if(e.params.length||e.hash);else{var r=new a.AST.IdNode(["_triageMustache"]);e.escaped||(e.hash=e.hash||new a.AST.HashNode([]),e.hash.pairs.push(["unescaped",new a.AST.StringNode("true")])),e=new a.AST.MustacheNode([r].concat([e.id]),e.hash,!e.escaped)}return a.Compiler.prototype.mustache.call(this,e)},Ember.Handlebars.precompile=function(e){var r=a.parse(e),n={knownHelpers:{action:!0,unbound:!0,bindAttr:!0,template:!0,view:!0,_triageMustache:!0},data:!0,stringParams:!0},o=(new Ember.Handlebars.Compiler).compile(r,n);return(new Ember.Handlebars.JavaScriptCompiler).compile(o,n,void 0,!0)},a.compile&&(Ember.Handlebars.compile=function(e){var r=a.parse(e),n={data:!0,stringParams:!0},o=(new Ember.Handlebars.Compiler).compile(r,n),t=(new Ember.Handlebars.JavaScriptCompiler).compile(o,n,void 0,!0);return Ember.Handlebars.template(t)})}(),"undefined"==typeof location||"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname||Ember.Logger.warn("You are running a production build of Ember on localhost and won't receive detailed error messages. If you want full error messages please use the non-minified build provided on the Ember website.");