text: jasmine.HtmlReporterHelpers={};jasmine.HtmlReporterHelpers.createDom=function(a,c,b){for(var d=document.createElement(a),e=2;e<arguments.length;e++){var f=arguments[e];"string"===typeof f?d.appendChild(document.createTextNode(f)):f&&d.appendChild(f)}for(var g in c)"className"==g?d[g]=c[g]:d.setAttribute(g,c[g]);return d};jasmine.HtmlReporterHelpers.getSpecStatus=function(a){a=a.results();var c=a.passed()?"passed":"failed";a.skipped&&(c="skipped");return c};
  jasmine.HtmlReporterHelpers.appendToSummary=function(a,c){var b=this.dom.summary,d=a["undefined"==typeof a.parentSuite?"suite":"parentSuite"];d&&("undefined"==typeof this.views.suites[d.id]&&(this.views.suites[d.id]=new jasmine.HtmlReporter.SuiteView(d,this.dom,this.views)),b=this.views.suites[d.id].element);b.appendChild(c)};jasmine.HtmlReporterHelpers.addHelpers=function(a){for(var c in jasmine.HtmlReporterHelpers)a.prototype[c]=jasmine.HtmlReporterHelpers[c]};
  jasmine.HtmlReporter=function(a){function c(){var a;if(!a){a=[];for(var b=jasmine.HtmlReporter.parameters(d),c=0;c<b.length;c++){var e=b[c].split("=");a[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}a=a.spec}return a}var b=this,d=a||window.document,e,f={};b.logRunningSpecs=!1;b.reportRunnerStarting=function(a){var c=a.specs()||[];0!=c.length&&(a=a.env.versionString(),f.reporter=b.createDom("div",{id:"HTMLReporter",className:"jasmine_reporter"},f.banner=b.createDom("div",{className:"banner"},
  b.createDom("span",{className:"title"},"Jasmine "),b.createDom("span",{className:"version"},a)),f.symbolSummary=b.createDom("ul",{className:"symbolSummary"}),f.alert=b.createDom("div",{className:"alert"},b.createDom("span",{className:"exceptions"},b.createDom("label",{className:"label","for":"no_try_catch"},"No try/catch"),b.createDom("input",{id:"no_try_catch",type:"checkbox"}))),f.results=b.createDom("div",{className:"results"},f.summary=b.createDom("div",{className:"summary"}),f.details=b.createDom("div",
  {id:"details"}))),d.body.appendChild(f.reporter),a=document.getElementById("no_try_catch"),window.location.search.match(/catch=false/)&&(a.setAttribute("checked",!0),jasmine.CATCH_EXCEPTIONS=!1),a.onclick=function(){var a=window.location,b;b=jasmine.HtmlReporter.parameters(window.document);for(var c=!1,d=0;!c&&d<b.length;)b[d].match(/catch=/)&&(b.splice(d,1),c=!0),d++;jasmine.CATCH_EXCEPTIONS&&b.push("catch=false");b=b.join("&");a.search=b},e=new jasmine.HtmlReporter.ReporterView(f),e.addSpecs(c,
  b.specFilter))};b.reportRunnerResults=function(){e&&e.complete()};b.reportSuiteResults=function(a){e.suiteComplete(a)};b.reportSpecStarting=function(a){b.logRunningSpecs&&b.log(">> Jasmine Running "+a.suite.description+" "+a.description+"...")};b.reportSpecResults=function(a){e.specComplete(a)};b.log=function(){var a=jasmine.getGlobal().console;a&&a.log&&(a.log.apply?a.log.apply(a,arguments):a.log(arguments))};b.specFilter=function(a){return!c()?!0:0===a.getFullName().indexOf(c())};return b};
  jasmine.HtmlReporter.parameters=function(a){a=a.location.search.substring(1);var c=[];0<a.length&&(c=a.split("&"));return c};jasmine.HtmlReporter.sectionLink=function(a){var c="?",b=[];a&&b.push("spec="+encodeURIComponent(a));jasmine.CATCH_EXCEPTIONS||b.push("catch=false");0<b.length&&(c+=b.join("&"));return c};jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter);
  jasmine.HtmlReporter.ReporterView=function(a){function c(){-1===a.reporter.className.search(/showDetails/)&&(a.reporter.className+=" showDetails")}function b(a){return"undefined"===typeof a}function d(a){var b=a+" spec";1<a&&(b+="s");return b}this.startedAt=new Date;this.skippedCount=this.failedCount=this.passedCount=this.completeSpecCount=this.runningSpecCount=0;this.createResultsMenu=function(){this.resultsMenu=this.createDom("span",{className:"resultsMenu bar"},this.summaryMenuItem=this.createDom("a",
  {className:"summaryMenuItem",href:"#"},"0 specs")," | ",this.detailsMenuItem=this.createDom("a",{className:"detailsMenuItem",href:"#"},"0 failing"));this.summaryMenuItem.onclick=function(){a.reporter.className=a.reporter.className.replace(/ showDetails/g,"")};this.detailsMenuItem.onclick=function(){c()}};this.addSpecs=function(b,c){this.totalSpecCount=b.length;this.views={specs:{},suites:{}};for(var d=0;d<b.length;d++){var h=b[d];this.views.specs[h.id]=new jasmine.HtmlReporter.SpecView(h,a,this.views);
  c(h)&&this.runningSpecCount++}};this.specComplete=function(c){this.completeSpecCount++;b(this.views.specs[c.id])&&(this.views.specs[c.id]=new jasmine.HtmlReporter.SpecView(c,a));c=this.views.specs[c.id];switch(c.status()){case "passed":this.passedCount++;break;case "failed":this.failedCount++;break;case "skipped":this.skippedCount++}c.refresh();this.refresh()};this.suiteComplete=function(a){a=this.views.suites[a.id];b(a)||a.refresh()};this.refresh=function(){b(this.resultsMenu)&&this.createResultsMenu();
  b(this.runningAlert)&&(this.runningAlert=this.createDom("a",{href:jasmine.HtmlReporter.sectionLink(),className:"runningAlert bar"}),a.alert.appendChild(this.runningAlert));this.runningAlert.innerHTML="Running "+this.completeSpecCount+" of "+d(this.totalSpecCount);b(this.skippedAlert)&&(this.skippedAlert=this.createDom("a",{href:jasmine.HtmlReporter.sectionLink(),className:"skippedAlert bar"}));this.skippedAlert.innerHTML="Skipping "+this.skippedCount+" of "+d(this.totalSpecCount)+" - run all";1===
  this.skippedCount&&!b(a.alert)&&a.alert.appendChild(this.skippedAlert);b(this.passedAlert)&&(this.passedAlert=this.createDom("span",{href:jasmine.HtmlReporter.sectionLink(),className:"passingAlert bar"}));this.passedAlert.innerHTML="Passing "+d(this.passedCount);b(this.failedAlert)&&(this.failedAlert=this.createDom("span",{href:"?",className:"failingAlert bar"}));this.failedAlert.innerHTML="Failing "+d(this.failedCount);1===this.failedCount&&!b(a.alert)&&(a.alert.appendChild(this.failedAlert),a.alert.appendChild(this.resultsMenu));
  this.summaryMenuItem.innerHTML=""+d(this.runningSpecCount);this.detailsMenuItem.innerHTML=""+this.failedCount+" failing"};this.complete=function(){a.alert.removeChild(this.runningAlert);this.skippedAlert.innerHTML="Ran "+this.runningSpecCount+" of "+d(this.totalSpecCount)+" - run all";0===this.failedCount?a.alert.appendChild(this.createDom("span",{className:"passingAlert bar"},"Passing "+d(this.passedCount))):c();a.banner.appendChild(this.createDom("span",{className:"duration"},"finished in "+((new Date).getTime()-
  this.startedAt.getTime())/1E3+"s"))};return this};jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.ReporterView);
  jasmine.HtmlReporter.SpecView=function(a,c,b){this.spec=a;this.dom=c;this.views=b;this.symbol=this.createDom("li",{className:"pending"});this.dom.symbolSummary.appendChild(this.symbol);this.summary=this.createDom("div",{className:"specSummary"},this.createDom("a",{className:"description",href:jasmine.HtmlReporter.sectionLink(this.spec.getFullName()),title:this.spec.getFullName()},this.spec.description));this.detail=this.createDom("div",{className:"specDetail"},this.createDom("a",{className:"description",
  href:"?spec="+encodeURIComponent(this.spec.getFullName()),title:this.spec.getFullName()},this.spec.getFullName()))};jasmine.HtmlReporter.SpecView.prototype.status=function(){return this.getSpecStatus(this.spec)};jasmine.HtmlReporter.SpecView.prototype.refresh=function(){this.symbol.className=this.status();switch(this.status()){case "passed":this.appendSummaryToSuiteDiv();break;case "failed":this.appendSummaryToSuiteDiv(),this.appendFailureDetail()}};
  jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv=function(){this.summary.className+=" "+this.status();this.appendToSummary(this.spec,this.summary)};
  jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail=function(){this.detail.className+=" "+this.status();for(var a=this.spec.results().getItems(),c=this.createDom("div",{className:"messages"}),b=0;b<a.length;b++){var d=a[b];"log"==d.type?c.appendChild(this.createDom("div",{className:"resultMessage log"},d.toString())):"expect"==d.type&&(d.passed&&!d.passed())&&(c.appendChild(this.createDom("div",{className:"resultMessage fail"},d.message)),d.trace.stack&&c.appendChild(this.createDom("div",
  {className:"stackTrace"},d.trace.stack)))}0<c.childNodes.length&&(this.detail.appendChild(c),this.dom.details.appendChild(this.detail))};jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView);
  jasmine.HtmlReporter.SuiteView=function(a,c,b){this.suite=a;this.dom=c;this.views=b;this.element=this.createDom("div",{className:"suite"},this.createDom("a",{className:"description",href:jasmine.HtmlReporter.sectionLink(this.suite.getFullName())},this.suite.description));this.appendToSummary(this.suite,this.element)};jasmine.HtmlReporter.SuiteView.prototype.status=function(){return this.getSpecStatus(this.suite)};
  jasmine.HtmlReporter.SuiteView.prototype.refresh=function(){this.element.className+=" "+this.status()};jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView);jasmine.TrivialReporter=function(a){this.document=a||document;this.suiteDivs={};this.logRunningSpecs=!1};
  jasmine.TrivialReporter.prototype.createDom=function(a,c,b){for(var d=document.createElement(a),e=2;e<arguments.length;e++){var f=arguments[e];"string"===typeof f?d.appendChild(document.createTextNode(f)):f&&d.appendChild(f)}for(var g in c)"className"==g?d[g]=c[g]:d.setAttribute(g,c[g]);return d};
  jasmine.TrivialReporter.prototype.reportRunnerStarting=function(a){var c,b;this.outerDiv=this.createDom("div",{id:"TrivialReporter",className:"jasmine_reporter"},this.createDom("div",{className:"banner"},this.createDom("div",{className:"logo"},this.createDom("span",{className:"title"},"Jasmine"),this.createDom("span",{className:"version"},a.env.versionString())),this.createDom("div",{className:"options"},"Show ",c=this.createDom("input",{id:"__jasmine_TrivialReporter_showPassed__",type:"checkbox"}),
  this.createDom("label",{"for":"__jasmine_TrivialReporter_showPassed__"}," passed "),b=this.createDom("input",{id:"__jasmine_TrivialReporter_showSkipped__",type:"checkbox"}),this.createDom("label",{"for":"__jasmine_TrivialReporter_showSkipped__"}," skipped"))),this.runnerDiv=this.createDom("div",{className:"runner running"},this.createDom("a",{className:"run_spec",href:"?"},"run all"),this.runnerMessageSpan=this.createDom("span",{},"Running..."),this.finishedAtSpan=this.createDom("span",{className:"finished-at"},
  "")));this.document.body.appendChild(this.outerDiv);a=a.suites();for(var d=0;d<a.length;d++){var e=a[d],f=this.createDom("div",{className:"suite"},this.createDom("a",{className:"run_spec",href:"?spec="+encodeURIComponent(e.getFullName())},"run"),this.createDom("a",{className:"description",href:"?spec="+encodeURIComponent(e.getFullName())},e.description));this.suiteDivs[e.id]=f;var g=this.outerDiv;e.parentSuite&&(g=this.suiteDivs[e.parentSuite.id]);g.appendChild(f)}this.startedAt=new Date;var h=this;
  c.onclick=function(){h.outerDiv.className=c.checked?h.outerDiv.className+" show-passed":h.outerDiv.className.replace(/ show-passed/,"")};b.onclick=function(){h.outerDiv.className=b.checked?h.outerDiv.className+" show-skipped":h.outerDiv.className.replace(/ show-skipped/,"")}};
  jasmine.TrivialReporter.prototype.reportRunnerResults=function(a){var c=a.results(),b=0<c.failedCount?"runner failed":"runner passed";this.runnerDiv.setAttribute("class",b);this.runnerDiv.setAttribute("className",b);a=a.specs();for(var d=b=0;d<a.length;d++)this.specFilter(a[d])&&b++;c=""+b+" spec"+(1==b?"":"s")+", "+c.failedCount+" failure"+(1==c.failedCount?"":"s");c+=" in "+((new Date).getTime()-this.startedAt.getTime())/1E3+"s";this.runnerMessageSpan.replaceChild(this.createDom("a",{className:"description",
  href:"?"},c),this.runnerMessageSpan.firstChild);this.finishedAtSpan.appendChild(document.createTextNode("Finished at "+(new Date).toString()))};jasmine.TrivialReporter.prototype.reportSuiteResults=function(a){var c=a.results(),b=c.passed()?"passed":"failed";0===c.totalCount&&(b="skipped");this.suiteDivs[a.id].className+=" "+b};jasmine.TrivialReporter.prototype.reportSpecStarting=function(a){this.logRunningSpecs&&this.log(">> Jasmine Running "+a.suite.description+" "+a.description+"...")};
  jasmine.TrivialReporter.prototype.reportSpecResults=function(a){var c=a.results(),b=c.passed()?"passed":"failed";c.skipped&&(b="skipped");for(var b=this.createDom("div",{className:"spec "+b},this.createDom("a",{className:"run_spec",href:"?spec="+encodeURIComponent(a.getFullName())},"run"),this.createDom("a",{className:"description",href:"?spec="+encodeURIComponent(a.getFullName()),title:a.getFullName()},a.description)),c=c.getItems(),d=this.createDom("div",{className:"messages"}),e=0;e<c.length;e++){var f=
  c[e];"log"==f.type?d.appendChild(this.createDom("div",{className:"resultMessage log"},f.toString())):"expect"==f.type&&(f.passed&&!f.passed())&&(d.appendChild(this.createDom("div",{className:"resultMessage fail"},f.message)),f.trace.stack&&d.appendChild(this.createDom("div",{className:"stackTrace"},f.trace.stack)))}0<d.childNodes.length&&b.appendChild(d);this.suiteDivs[a.suite.id].appendChild(b)};
  jasmine.TrivialReporter.prototype.log=function(){var a=jasmine.getGlobal().console;a&&a.log&&(a.log.apply?a.log.apply(a,arguments):a.log(arguments))};jasmine.TrivialReporter.prototype.getLocation=function(){return this.document.location};jasmine.TrivialReporter.prototype.specFilter=function(a){for(var c={},b=this.getLocation().search.substring(1).split("&"),d=0;d<b.length;d++){var e=b[d].split("=");c[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return!c.spec?!0:0===a.getFullName().indexOf(c.spec)};