diff --git a/AssetFile b/AssetFile index b8ca42ee..6acfcebb 100644 --- a/AssetFile +++ b/AssetFile @@ -23,10 +23,20 @@ input assets.scripts do safe_concat assets.vendor_order, 'vendor.js' end - unless assets.production? - match 'spec/**/*.{js,coffee}' do - concat 'spec.js' - end + match 'spec/*.js' do + concat 'spec/specs.js' + end + + match 'spec/support/*.js' do + concat 'spec/support.js' + end + + match 'spec/vendor/*.js' do + concat assets.spec_vendor_order, 'spec/vendor.js' + end + + match 'spec/{vendor,support,specs}.js' do + concat ['spec/vendor.js', 'spec/support.js', 'spec/specs.js'], 'specs.js' end match %r(^(?!vendor|spec).*\.js$) do diff --git a/lib/travis/assets.rb b/lib/travis/assets.rb index 5f8e3358..f5e5b8a9 100644 --- a/lib/travis/assets.rb +++ b/lib/travis/assets.rb @@ -8,6 +8,7 @@ module Travis TYPES = [:styles, :scripts, :images, :static, :vendor] VENDOR_ORDER = %w(jquery.min minispade handlebars ember) + SPEC_VENDOR_ORDER = %w(jasmine jasmine-html jasmine-runner sinon) attr_reader :roots, :env @@ -28,6 +29,10 @@ module Travis VENDOR_ORDER.map { |name| "vendor/#{name}.js" } end + def spec_vendor_order + SPEC_VENDOR_ORDER.map { |name| "spec/vendor/#{name}.js" } + end + def setup_compass Compass.configuration.images_path = images.first styles.each do |path| diff --git a/lib/travis/web/app/files.rb b/lib/travis/web/app/files.rb index 1c153331..8c466a63 100644 --- a/lib/travis/web/app/files.rb +++ b/lib/travis/web/app/files.rb @@ -7,13 +7,21 @@ class Travis::Web::App end def initialize - super([public_dir, index]) + super([public_dir, index, spec]) end def public_dir Rack::File.new('public') end + def spec + proc do |env| + status, headers, body = Rack::File.new(nil).tap { |f| f.path = 'public/spec.html' }.serving(env) + headers.merge!(cache_headers(env['PATH_INFO'])) + [status, headers, body] + end + end + def index proc do |env| status, headers, body = Rack::File.new(nil).tap { |f| f.path = 'public/index.html' }.serving(env) diff --git a/public/scripts/app.min.js b/public/scripts/app.min.js deleted file mode 100644 index 1d81e84c..00000000 --- a/public/scripts/app.min.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! jQuery v1.7.2 jquery.com | jquery.org/license */ -(function(e,t){function n(e){return H.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}function r(e){if(!vn[e]){var t=_.body,n=H("<"+e+">").appendTo(t),r=n.css("display");n.remove();if(r==="none"||r===""){mn||(mn=_.createElement("iframe"),mn.frameBorder=mn.width=mn.height=0),t.appendChild(mn);if(!gn||!mn.createElement)gn=(mn.contentWindow||mn.contentDocument).document,gn.write((H.support.boxModel?"":"")+""),gn.close();n=gn.createElement(e),gn.body.appendChild(n),r=H.css(n,"display"),t.removeChild(mn)}vn[e]=r}return vn[e]}function i(e,t){var n={};return H.each(En.concat.apply([],En.slice(0,t)),function(){n[this]=e}),n}function s(){Sn=t}function o(){return setTimeout(s,0),Sn=H.now()}function u(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function a(){try{return new e.XMLHttpRequest}catch(t){}}function f(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r=e.dataTypes,i={},s,o,u=r.length,a,f=r[0],l,c,h,p,d;for(s=1;s0){if(n!=="border")for(;i=0===n})}function N(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function C(){return!0}function k(){return!1}function L(e,t,n){var r=t+"defer",i=t+"queue",s=t+"mark",o=H._data(e,r);o&&(n==="queue"||!H._data(e,i))&&(n==="mark"||!H._data(e,s))&&setTimeout(function(){!H._data(e,i)&&!H._data(e,s)&&(H.removeData(e,r,!0),o.fire())},0)}function A(e){for(var t in e){if(t==="data"&&H.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function O(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(I,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:H.isNumeric(r)?+r:F.test(r)?H.parseJSON(r):r}catch(s){}H.data(e,n,r)}else r=t}return r}function M(e){var t=B[e]={},n,r;e=e.split(/\s+/);for(n=0,r=e.length;n)[^>]*$|#([\w\-]*)$)/,a=/\S/,f=/^\s+/,l=/\s+$/,c=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,h=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,d=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,m=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,y=/(msie) ([\w.]+)/,b=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,E=/^-ms-/,S=function(e,t){return(t+"").toUpperCase()},x=D.userAgent,T,N,C,k=Object.prototype.toString,L=Object.prototype.hasOwnProperty,A=Array.prototype.push,O=Array.prototype.slice,M=String.prototype.trim,P=Array.prototype.indexOf,H={};return r.fn=r.prototype={constructor:r,init:function(e,n,i){var s,o,a,f;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(e==="body"&&!n&&_.body)return this.context=_,this[0]=_.body,this.selector=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)!=="<"||e.charAt(e.length-1)!==">"||e.length<3?s=u.exec(e):s=[null,e,null];if(s&&(s[1]||!n)){if(s[1])return n=n instanceof r?n[0]:n,f=n?n.ownerDocument||n:_,a=c.exec(e),a?r.isPlainObject(n)?(e=[_.createElement(a[1])],r.fn.attr.call(e,n,!0)):e=[f.createElement(a[1])]:(a=r.buildFragment([s[1]],[f]),e=(a.cacheable?r.clone(a.fragment):a.fragment).childNodes),r.merge(this,e);o=_.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return i.find(e);this.length=1,this[0]=o}return this.context=_,this.selector=e,this}return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e)}return r.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),r.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return O.call(this,0)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=this.constructor();return r.isArray(e)?A.apply(i,e):r.merge(i,e),i.prevObject=this,i.context=this.context,t==="find"?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return r.each(this,e,t)},ready:function(e){return r.bindReady(),N.add(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(O.apply(this,arguments),"slice",O.call(arguments).join(","))},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:A,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var e,n,i,s,o,u,a=arguments[0]||{},f=1,l=arguments.length,c=!1;typeof a=="boolean"&&(c=a,a=arguments[1]||{},f=2),typeof a!="object"&&!r.isFunction(a)&&(a={}),l===f&&(a=this,--f);for(;f0)return;N.fireWith(_,[r]),r.fn.trigger&&r(_).trigger("ready").off("ready")}},bindReady:function(){if(!N){N=r.Callbacks("once memory");if(_.readyState==="complete")return setTimeout(r.ready,1);if(_.addEventListener)_.addEventListener("DOMContentLoaded",C,!1),e.addEventListener("load",r.ready,!1);else if(_.attachEvent){_.attachEvent("onreadystatechange",C),e.attachEvent("onload",r.ready);var t=!1;try{t=e.frameElement==null}catch(i){}_.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return r.type(e)==="function"},isArray:Array.isArray||function(e){return r.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):H[k.call(e)]||"object"},isPlainObject:function(e){if(!e||r.type(e)!=="object"||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!L.call(e,"constructor")&&!L.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var i;for(i in e);return i===t||L.call(e,i)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){if(typeof t!="string"||!t)return null;t=r.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(h.test(t.replace(p,"@").replace(d,"]").replace(v,"")))return(new Function("return "+t))();r.error("Invalid JSON: "+t)},parseXML:function(n){if(typeof n!="string"||!n)return null;var i,s;try{e.DOMParser?(s=new DOMParser,i=s.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(o){i=t}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&a.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(E,"ms-").replace(w,S)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,i){var s,o=0,u=e.length,a=u===t||r.isFunction(e);if(i){if(a){for(s in e)if(n.apply(e[s],i)===!1)break}else for(;o0&&e[0]&&e[f-1]||f===0||r.isArray(e));if(l)for(;a1?j.call(arguments,0):t,f.notifyWith(l,o)}}function n(e){return function(t){r[e]=arguments.length>1?j.call(arguments,0):t,--u||f.resolveWith(f,r)}}var r=j.call(arguments,0),i=0,s=r.length,o=Array(s),u=s,a=s,f=s<=1&&e&&H.isFunction(e.promise)?e:H.Deferred(),l=f.promise();if(s>1){for(;i
a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!n.length||!r)return{};i=_.createElement("select"),s=i.appendChild(_.createElement("option")),o=p.getElementsByTagName("input")[0],t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.55/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:o.value==="on",optSelected:s.selected,getSetAttribute:p.className!=="t",enctype:!!_.createElement("form").enctype,html5Clone:_.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},H.boxModel=t.boxModel=_.compatMode==="CSS1Compat",o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,i.disabled=!0,t.optDisabled=!s.disabled;try{delete p.test}catch(v){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),o=_.createElement("input"),o.value="t",o.setAttribute("type","radio"),t.radioValue=o.value==="t",o.setAttribute("checked","checked"),o.setAttribute("name","t"),p.appendChild(o),u=_.createDocumentFragment(),u.appendChild(p.lastChild),t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=o.checked,u.removeChild(o),u.appendChild(p);if(p.attachEvent)for(c in{submit:1,change:1,focusin:1})l="on"+c,h=l in p,h||(p.setAttribute(l,"return;"),h=typeof p[l]=="function"),t[c+"Bubbles"]=h;return u.removeChild(p),u=i=s=p=o=null,H(function(){var n,r,i,s,o,u,f,l,c,d,v,m,g,y=_.getElementsByTagName("body")[0];!y||(l=1,g="padding:0;margin:0;border:",v="position:absolute;top:0;left:0;width:1px;height:1px;",m=g+"0;visibility:hidden;",c="style='"+v+g+"5px solid #000;",d="
"+""+"
",n=_.createElement("div"),n.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+l+"px",y.insertBefore(n,y.firstChild),p=_.createElement("div"),n.appendChild(p),p.innerHTML="
t
",a=p.getElementsByTagName("td"),h=a[0].offsetHeight===0,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=h&&a[0].offsetHeight===0,e.getComputedStyle&&(p.innerHTML="",f=_.createElement("div"),f.style.width="0",f.style.marginRight="0",p.style.width="2px",p.appendChild(f),t.reliableMarginRight=(parseInt((e.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,t.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",t.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=v+m,p.innerHTML=d,r=p.firstChild,i=r.firstChild,o=r.nextSibling.firstChild.firstChild,u={doesNotAddBorder:i.offsetTop!==5,doesAddBorderForTableAndCells:o.offsetTop===5},i.style.position="fixed",i.style.top="20px",u.fixedPosition=i.offsetTop===20||i.offsetTop===15,i.style.position=i.style.top="",r.style.overflow="hidden",r.style.position="relative",u.subtractsBorderForOverflowNotVisible=i.offsetTop===-5,u.doesNotIncludeMarginInBodyOffset=y.offsetTop!==l,e.getComputedStyle&&(p.style.marginTop="1%",t.pixelMargin=(e.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof n.style.zoom!="undefined"&&(n.style.zoom=1),y.removeChild(n),f=p=n=null,H.extend(t,u))}),t}();var F=/^(?:\{.*\}|\[.*\])$/,I=/([A-Z])/g;H.extend({cache:{},uuid:0,expando:"jQuery"+(H.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?H.cache[e[H.expando]]:e[H.expando],!!e&&!A(e)},data:function(e,n,r,i){if(!!H.acceptData(e)){var s,o,u,a=H.expando,f=typeof n=="string",l=e.nodeType,c=l?H.cache:e,h=l?e[a]:e[a]&&a,p=n==="events";if((!h||!c[h]||!p&&!i&&!c[h].data)&&f&&r===t)return;h||(l?e[a]=h=++H.uuid:h=a),c[h]||(c[h]={},l||(c[h].toJSON=H.noop));if(typeof n=="object"||typeof n=="function")i?c[h]=H.extend(c[h],n):c[h].data=H.extend(c[h].data,n);return s=o=c[h],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[H.camelCase(n)]=r),p&&!o[n]?s.events:(f?(u=o[n],u==null&&(u=o[H.camelCase(n)])):u=o,u)}},removeData:function(e,t,n){if(!!H.acceptData(e)){var r,i,s,o=H.expando,u=e.nodeType,a=u?H.cache:e,f=u?e[o]:o;if(!a[f])return;if(t){r=n?a[f]:a[f].data;if(r){H.isArray(t)||(t in r?t=[t]:(t=H.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){H.removeData(this,e)})}}),H.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",H._data(e,t,(H._data(e,t)||0)+1))},_unmark:function(e,t,n){e!==!0&&(n=t,t=e,e=!1);if(t){n=n||"fx";var r=n+"mark",i=e?0:(H._data(t,r)||1)-1;i?H._data(t,r,i):(H.removeData(t,r,!0),L(t,n,"mark"))}},queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=H._data(e,t),n&&(!r||H.isArray(n)?r=H._data(e,t,H.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=H.queue(e,t),r=n.shift(),i={};r==="inprogress"&&(r=n.shift()),r&&(t==="fx"&&n.unshift("inprogress"),H._data(e,t+".run",i),r.call(e,function(){H.dequeue(e,t)},i)),n.length||(H.removeData(e,t+"queue "+t+".run",!0),L(e,t,"queue"))}}),H.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){H.removeAttr(this,e)})},prop:function(e,t){return H.access(this,H.prop,e,t,arguments.length>1)},removeProp:function(e){return e=H.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(H.isFunction(e))return this.each(function(t){H(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(R);for(n=0,r=this.length;n-1)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!!arguments.length)return i=H.isFunction(e),this.each(function(r){var s=H(this),o;if(this.nodeType===1){i?o=e.call(this,r,s.val()):o=e,o==null?o="":typeof o=="number"?o+="":H.isArray(o)&&(o=H.map(o,function(e){return e==null?"":e+""})),n=H.valHooks[this.type]||H.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,o,"value")===t)this.value=o}});if(s)return n=H.valHooks[s.type]||H.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(U,""):r==null?"":r)}}),H.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,s=e.selectedIndex,o=[],u=e.options,a=e.type==="select-one";if(s<0)return null;n=a?s:0,r=a?s+1:u.length;for(;n=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!!e&&a!==3&&a!==8&&a!==2){if(i&&n in H.attrFn)return H(e)[n](r);if(typeof e.getAttribute=="undefined")return H.prop(e,n,r);u=a!==1||!H.isXMLDoc(e),u&&(n=n.toLowerCase(),o=H.attrHooks[n]||(V.test(n)?K:J));if(r!==t){if(r===null){H.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,""+r),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)}},removeAttr:function(e,t){var n,r,i,s,o,u=0;if(t&&e.nodeType===1){r=t.toLowerCase().split(R),s=r.length;for(;u=0}})});var G=/^(?:textarea|input|select)$/i,Y=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,it=function(e){var t=rt.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},st=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n["class"]||{}).value))},ot=function(e){return H.event.special.hover?e:e.replace(Z,"mouseenter$1 mouseleave$1")};H.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g; -if(!(e.nodeType===3||e.nodeType===8||!n||!r||!(o=H._data(e)))){r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=H.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof H=="undefined"||!!e&&H.event.triggered===e.type?t:H.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=H.trim(ot(n)).split(" ");for(f=0;f=0&&(o=o.slice(0,-1),f=!0),o.indexOf(".")>=0&&(u=o.split("."),o=u.shift(),u.sort());if((!i||H.event.customEvent[o])&&!H.event.global[o])return;n=typeof n=="object"?n[H.expando]?n:new H.Event(o,n):new H.Event(o),n.type=o,n.isTrigger=!0,n.exclusive=f,n.namespace=u.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,p=o.indexOf(":")<0?"on"+o:"";if(!i){a=H.cache;for(l in a)a[l].events&&a[l].events[o]&&H.event.trigger(n,r,a[l].handle.elem,!0);return}n.result=t,n.target||(n.target=i),r=r!=null?H.makeArray(r):[],r.unshift(n),d=H.event.special[o]||{};if(d.trigger&&d.trigger.apply(i,r)===!1)return;m=[[i,d.bindType||o]];if(!s&&!d.noBubble&&!H.isWindow(i)){g=d.delegateType||o,c=nt.test(g+o)?i:i.parentNode,h=null;for(;c;c=c.parentNode)m.push([c,g]),h=c;h&&h===i.ownerDocument&&m.push([h.defaultView||h.parentWindow||e,g])}for(l=0;li&&a.push({elem:this,matches:r.slice(i)});for(f=0;f0?this.on(t,null,e,n):this.trigger(t)},H.attrFn&&(H.attrFn[t]=!0),et.test(t)&&(H.event.fixHooks[t]=H.event.keyHooks),tt.test(t)&&(H.event.fixHooks[t]=H.event.mouseHooks)}),function(){function e(e,t,n,r,s,o){for(var u=0,a=r.length;u0){l=f;break}}f=f[e]}r[u]=l}}}function n(e,t,n,r,s,o){for(var u=0,a=r.length;u+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),s=0,o=Object.prototype.toString,u=!1,a=!0,f=/\\/g,l=/\r\n/g,c=/\W/;[0,0].sort(function(){return a=!1,0});var h=function(e,t,n,i){n=n||[],t=t||_;var s=t;if(t.nodeType!==1&&t.nodeType!==9)return[];if(!e||typeof e!="string")return n;var u,a,f,l,c,p,m,g,b=!0,w=h.isXML(t),E=[],x=e;do{r.exec(""),u=r.exec(x);if(u){x=u[3],E.push(u[1]);if(u[2]){l=u[3];break}}}while(u);if(E.length>1&&v.exec(e))if(E.length===2&&d.relative[E[0]])a=S(E[0]+E[1],t,i);else{a=d.relative[E[0]]?[t]:h(E.shift(),t);while(E.length)e=E.shift(),d.relative[e]&&(e+=E.shift()),a=S(e,a,i)}else{!i&&E.length>1&&t.nodeType===9&&!w&&d.match.ID.test(E[0])&&!d.match.ID.test(E[E.length-1])&&(c=h.find(E.shift(),t,w),t=c.expr?h.filter(c.expr,c.set)[0]:c.set[0]);if(t){c=i?{expr:E.pop(),set:y(i)}:h.find(E.pop(),E.length!==1||E[0]!=="~"&&E[0]!=="+"||!t.parentNode?t:t.parentNode,w),a=c.expr?h.filter(c.expr,c.set):c.set,E.length>0?f=y(a):b=!1;while(E.length)p=E.pop(),m=p,d.relative[p]?m=E.pop():p="",m==null&&(m=t),d.relative[p](f,m,w)}else f=E=[]}f||(f=a),f||h.error(p||e);if(o.call(f)==="[object Array]")if(!b)n.push.apply(n,f);else if(t&&t.nodeType===1)for(g=0;f[g]!=null;g++)f[g]&&(f[g]===!0||f[g].nodeType===1&&h.contains(t,f[g]))&&n.push(a[g]);else for(g=0;f[g]!=null;g++)f[g]&&f[g].nodeType===1&&n.push(a[g]);else y(f,n);return l&&(h(l,s,n,i),h.uniqueSort(n)),n};h.uniqueSort=function(e){if(w){u=a,e.sort(w);if(u)for(var t=1;t0},h.find=function(e,t,n){var r,i,s,o,u,a;if(!e)return[];for(i=0,s=d.order.length;i":function(e,t){var n,r=typeof t=="string",i=0,s=e.length;if(r&&!c.test(t)){t=t.toLowerCase();for(;i=0)?n||r.push(u):n&&(t[o]=!1));return!1},ID:function(e){return e[1].replace(f,"")},TAG:function(e,t){return e[1].replace(f,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){e[2]||h.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&h.error(e[0]);return e[0]=s++,e},ATTR:function(e,t,n,r,i,s){var o=e[1]=e[1].replace(f,"");return!s&&d.attrMap[o]&&(e[1]=d.attrMap[o]),e[4]=(e[4]||e[5]||"").replace(f,""),e[2]==="~="&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,i,s){if(e[1]==="not"){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=h.filter(e[3],t,n,!0^s);return n||i.push.apply(i,o),!1}e[3]=h(e[3],null,null,t)}else if(d.match.POS.test(e[0])||d.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!h(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return e.nodeName.toLowerCase()==="input"&&"text"===n&&(t===n||t===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===e.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&"button"===e.type||t==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return t===0},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return tn[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],s=d.filters[i];if(s)return s(e,n,t,r);if(i==="contains")return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0;if(i==="not"){var o=t[3];for(var u=0,a=o.length;u=0}},ID:function(e,t){return e.nodeType===1&&e.getAttribute("id")===t},TAG:function(e,t){return t==="*"&&e.nodeType===1||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=h.attr?h.attr(e,n):d.attrHandle[n]?d.attrHandle[n](e):e[n]!=null?e[n]:e.getAttribute(n),i=r+"",s=t[2],o=t[4];return r==null?s==="!=":!s&&h.attr?r!=null:s==="="?i===o:s==="*="?i.indexOf(o)>=0:s==="~="?(" "+i+" ").indexOf(o)>=0:o?s==="!="?i!==o:s==="^="?i.indexOf(o)===0:s==="$="?i.substr(i.length-o.length)===o:s==="|="?i===o||i.substr(0,o.length+1)===o+"-":!1:i&&r!==!1},POS:function(e,t,n,r){var i=t[2],s=d.setFilters[i];if(s)return s(e,n,t,r)}}},v=d.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var g in d.match)d.match[g]=new RegExp(d.match[g].source+/(?![^\[]*\])(?![^\(]*\))/.source),d.leftMatch[g]=new RegExp(/(^(?:.|\r|\n)*?)/.source+d.match[g].source.replace(/\\(\d+)/g,m));d.match.globalPOS=v;var y=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(_.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(e,t){var n=0,r=t||[];if(o.call(e)==="[object Array]")Array.prototype.push.apply(r,e);else if(typeof e.length=="number")for(var i=e.length;n",r.insertBefore(e,r.firstChild),_.getElementById(n)&&(d.find.ID=function(e,n,r){if(typeof n.getElementById!="undefined"&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||typeof i.getAttributeNode!="undefined"&&i.getAttributeNode("id").nodeValue===e[1]?[i]:t:[]}},d.filter.ID=function(e,t){var n=typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id");return e.nodeType===1&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=_.createElement("div");e.appendChild(_.createComment("")),e.getElementsByTagName("*").length>0&&(d.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if(e[1]==="*"){var r=[];for(var i=0;n[i];i++)n[i].nodeType===1&&r.push(n[i]);n=r}return n}),e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(d.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),_.querySelectorAll&&function(){var e=h,t=_.createElement("div"),n="__sizzle__";t.innerHTML="

";if(!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){h=function(t,r,i,s){r=r||_;if(!s&&!h.isXML(r)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(o&&(r.nodeType===1||r.nodeType===9)){if(o[1])return y(r.getElementsByTagName(t),i);if(o[2]&&d.find.CLASS&&r.getElementsByClassName)return y(r.getElementsByClassName(o[2]),i)}if(r.nodeType===9){if(t==="body"&&r.body)return y([r.body],i);if(o&&o[3]){var u=r.getElementById(o[3]);if(!u||!u.parentNode)return y([],i);if(u.id===o[3])return y([u],i)}try{return y(r.querySelectorAll(t),i)}catch(a){}}else if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){var f=r,l=r.getAttribute("id"),c=l||n,p=r.parentNode,v=/^\s*[+~]/.test(t);l?c=c.replace(/'/g,"\\$&"):r.setAttribute("id",c),v&&p&&(r=r.parentNode);try{if(!v||p)return y(r.querySelectorAll("[id='"+c+"'] "+t),i)}catch(m){}finally{l||f.removeAttribute("id")}}}return e(t,r,i,s)};for(var r in e)h[r]=e[r];t=null}}(),function(){var e=_.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(_.createElement("div"),"div"),r=!1;try{t.call(_.documentElement,"[test!='']:sizzle")}catch(i){r=!0}h.matchesSelector=function(e,i){i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!h.isXML(e))try{if(r||!d.match.PSEUDO.test(i)&&!/!=/.test(i)){var s=t.call(e,i);if(s||!n||e.document&&e.document.nodeType!==11)return s}}catch(o){}return h(i,null,null,[e]).length>0}}}(),function(){var e=_.createElement("div");e.innerHTML="
";if(!!e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1)return;d.order.splice(1,0,"CLASS"),d.find.CLASS=function(e,t,n){if(typeof t.getElementsByClassName!="undefined"&&!n)return t.getElementsByClassName(e[1])},e=null}}(),_.documentElement.contains?h.contains=function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:_.documentElement.compareDocumentPosition?h.contains=function(e,t){return!!(e.compareDocumentPosition(t)&16)}:h.contains=function(){return!1},h.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?t.nodeName!=="HTML":!1};var S=function(e,t,n){var r,i=[],s="",o=t.nodeType?[t]:t;while(r=d.match.PSEUDO.exec(e))s+=r[0],e=e.replace(d.match.PSEUDO,"");e=d.relative[e]?e+"*":e;for(var u=0,a=o.length;u0)for(o=s;o=0:H.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n=[],r,i,s=this[0];if(H.isArray(e)){var o=1;while(s&&s.ownerDocument&&s!==t){for(r=0;r-1:H.find.matchesSelector(s,e)){n.push(s);break}s=s.parentNode;if(!s||!s.ownerDocument||s===t||s.nodeType===11)break}}return n=n.length>1?H.unique(n):n,this.pushStack(n,"closest",e)},index:function(e){return e?typeof e=="string"?H.inArray(this[0],H(e)):H.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?H(e,t):H.makeArray(e&&e.nodeType?[e]:e),r=H.merge(this.get(),n);return this.pushStack(N(n[0])||N(r[0])?r:H.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),H.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return H.dir(e,"parentNode")},parentsUntil:function(e,t,n){return H.dir(e,"parentNode",n)},next:function(e){return H.nth(e,2,"nextSibling")},prev:function(e){return H.nth(e,2,"previousSibling")},nextAll:function(e){return H.dir(e,"nextSibling")},prevAll:function(e){return H.dir(e,"previousSibling")},nextUntil:function(e,t,n){return H.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return H.dir(e,"previousSibling",n)},siblings:function(e){return H.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return H.sibling(e.firstChild)},contents:function(e){return H.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:H.makeArray(e.childNodes)}},function(e,t){H.fn[e]=function(n,r){var i=H.map(this,t,n);return ut.test(e)||(r=n),r&&typeof r=="string"&&(i=H.filter(r,i)),i=this.length>1&&!pt[e]?H.unique(i):i,(this.length>1||ft.test(r))&&at.test(e)&&(i=i.reverse()),this.pushStack(i,e,ct.call(arguments).join(","))}}),H.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?H.find.matchesSelector(t[0],e)?[t[0]]:[]:H.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!H(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},nth:function(e,t,n,r){t=t||1;var i=0;for(;e;e=e[n])if(e.nodeType===1&&++i===t)break;return e},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var dt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",vt=/ jQuery\d+="(?:\d+|null)"/g,mt=/^\s+/,gt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,yt=/<([\w:]+)/,bt=/]","i"),Tt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/\/(java|ecma)script/i,Ct=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Lt=x(_);kt.optgroup=kt.option,kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,H.support.htmlSerialize||(kt._default=[1,"div
","
"]),H.fn.extend({text:function(e){return H.access(this,function(e){return e===t?H.text(this):this.empty().append((this[0]&&this[0].ownerDocument||_).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(H.isFunction(e))return this.each(function(t){H(this).wrapAll(e.call(this,t))});if(this[0]){var t=H(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return H.isFunction(e)?this.each(function(t){H(this).wrapInner(e.call(this,t))}):this.each(function(){var t=H(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=H.isFunction(e);return this.each(function(n){H(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){H.nodeName(this,"body")||H(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=H.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,H.clean(arguments)),e}},remove:function(e,t){for(var n=0,r;(r=this[n])!=null;n++)if(!e||H.filter(e,[r]).length)!t&&r.nodeType===1&&(H.cleanData -(r.getElementsByTagName("*")),H.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r);return this},empty:function(){for(var e=0,t;(t=this[e])!=null;e++){t.nodeType===1&&H.cleanData(t.getElementsByTagName("*"));while(t.firstChild)t.removeChild(t.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return H.clone(this,e,t)})},html:function(e){return H.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(vt,""):null;if(typeof e=="string"&&!Et.test(e)&&(H.support.leadingWhitespace||!mt.test(e))&&!kt[(yt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(gt,"<$1>");try{for(;r1&&l0?this.clone(!0):this).get();H(i[o])[t](a),r=r.concat(a)}return this.pushStack(r,e,i.selector)}}),H.extend({clone:function(e,t,n){var r,i,s,o=H.support.html5Clone||H.isXMLDoc(e)||!xt.test("<"+e.nodeName+">")?e.cloneNode(!0):m(e);if((!H.support.noCloneEvent||!H.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!H.isXMLDoc(e)){w(e,o),r=b(e),i=b(o);for(s=0;r[s];++s)i[s]&&w(r[s],i[s])}if(t){E(e,o);if(n){r=b(e),i=b(o);for(s=0;r[s];++s)E(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var i,s,o,u=[];t=t||_,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||_);for(var a=0,f;(f=e[a])!=null;a++){typeof f=="number"&&(f+="");if(!f)continue;if(typeof f=="string")if(!wt.test(f))f=t.createTextNode(f);else{f=f.replace(gt,"<$1>");var l=(yt.exec(f)||["",""])[1].toLowerCase(),c=kt[l]||kt._default,h=c[0],p=t.createElement("div"),d=Lt.childNodes,v;t===_?Lt.appendChild(p):x(t).appendChild(p),p.innerHTML=c[1]+f+c[2];while(h--)p=p.lastChild;if(!H.support.tbody){var m=bt.test(f),y=l==="table"&&!m?p.firstChild&&p.firstChild.childNodes:c[1]===""&&!m?p.childNodes:[];for(o=y.length-1;o>=0;--o)H.nodeName(y[o],"tbody")&&!y[o].childNodes.length&&y[o].parentNode.removeChild(y[o])}!H.support.leadingWhitespace&&mt.test(f)&&p.insertBefore(t.createTextNode(mt.exec(f)[0]),p.firstChild),f=p.childNodes,p&&(p.parentNode.removeChild(p),d.length>0&&(v=d[d.length-1],v&&v.parentNode&&v.parentNode.removeChild(v)))}var b;if(!H.support.appendChecked)if(f[0]&&typeof (b=f.length)=="number")for(o=0;o1)},H.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ft(e,"opacity");return n===""?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":H.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!!e&&e.nodeType!==3&&e.nodeType!==8&&!!e.style){var s,o,u=H.camelCase(n),a=e.style,f=H.cssHooks[u];n=H.cssProps[u]||u;if(r===t)return f&&"get"in f&&(s=f.get(e,!1,i))!==t?s:a[n];o=typeof r,o==="string"&&(s=Pt.exec(r))&&(r=+(s[1]+1)*+s[2]+parseFloat(H.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!H.cssNumber[u]&&(r+="px");if(!f||!("set"in f)||(r=f.set(e,r))!==t)try{a[n]=r}catch(l){}}},css:function(e,n,r){var i,s;n=H.camelCase(n),s=H.cssHooks[n],n=H.cssProps[n]||n,n==="cssFloat"&&(n="float");if(s&&"get"in s&&(i=s.get(e,!0,r))!==t)return i;if(Ft)return Ft(e,n)},swap:function(e,t,n){var r={},i,s;for(s in t)r[s]=e.style[s],e.style[s]=t[s];i=n.call(e);for(s in t)e.style[s]=r[s];return i}}),H.curCSS=H.css,_.defaultView&&_.defaultView.getComputedStyle&&(It=function(e,t){var n,r,i,s,o=e.style;return t=t.replace(Mt,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(n=i.getPropertyValue(t),n===""&&!H.contains(e.ownerDocument.documentElement,e)&&(n=H.style(e,t))),!H.support.pixelMargin&&i&&Ht.test(t)&&Dt.test(n)&&(s=o.width,o.width=n,n=i.width,o.width=s),n}),_.documentElement.currentStyle&&(qt=function(e,t){var n,r,i,s=e.currentStyle&&e.currentStyle[t],o=e.style;return s==null&&o&&(i=o[t])&&(s=i),Dt.test(s)&&(n=o.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),o.left=t==="fontSize"?"1em":s,s=o.pixelLeft+"px",o.left=n,r&&(e.runtimeStyle.left=r)),s===""?"auto":s}),Ft=It||qt,H.each(["height","width"],function(e,t){H.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth!==0?v(e,t,r):H.swap(e,Bt,function(){return v(e,t,r)})},set:function(e,t){return _t.test(t)?t+"px":t}}}),H.support.opacity||(H.cssHooks.opacity={get:function(e,t){return Ot.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=H.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&H.trim(s.replace(At,""))===""){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=At.test(s)?s.replace(At,i):s+" "+i}}),H(function(){H.support.reliableMarginRight||(H.cssHooks.marginRight={get:function(e,t){return H.swap(e,{display:"inline-block"},function(){return t?Ft(e,"margin-right"):e.style.marginRight})}})}),H.expr&&H.expr.filters&&(H.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return t===0&&n===0||!H.support.reliableHiddenOffsets&&(e.style&&e.style.display||H.css(e,"display"))==="none"},H.expr.filters.visible=function(e){return!H.expr.filters.hidden(e)}),H.each({margin:"",padding:"",border:"Width"},function(e,t){H.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+jt[r]+t]=i[r]||i[r-2]||i[0];return s}}});var Rt=/%20/g,Ut=/\[\]$/,zt=/\r?\n/g,Wt=/#.*$/,Xt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Vt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,$t=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Jt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Qt=/\?/,Gt=/)<[^<]*)*<\/script>/gi,Yt=/^(?:select|textarea)/i,Zt=/\s+/,en=/([?&])_=[^&]*/,tn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,nn=H.fn.load,rn={},sn={},on,un,an=["*/"]+["*"];try{on=P.href}catch(fn){on=_.createElement("a"),on.href="",on=on.href}un=tn.exec(on.toLowerCase())||[],H.fn.extend({load:function(e,n,r){if(typeof e!="string"&&nn)return nn.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var s=e.slice(i,e.length);e=e.slice(0,i)}var o="GET";n&&(H.isFunction(n)?(r=n,n=t):typeof n=="object"&&(n=H.param(n,H.ajaxSettings.traditional),o="POST"));var u=this;return H.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),u.html(s?H("
").append(n.replace(Gt,"")).find(s):n)),r&&u.each(r,[n,t,e])}}),this},serialize:function(){return H.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?H.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Yt.test(this.nodeName)||Vt.test(this.type))}).map(function(e,t){var n=H(this).val();return n==null?null:H.isArray(n)?H.map(n,function(e,n){return{name:t.name,value:e.replace(zt,"\r\n")}}):{name:t.name,value:n.replace(zt,"\r\n")}}).get()}}),H.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){H.fn[t]=function(e){return this.on(t,e)}}),H.each(["get","post"],function(e,n){H[n]=function(e,r,i,s){return H.isFunction(r)&&(s=s||i,i=r,r=t),H.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),H.extend({getScript:function(e,n){return H.get(e,t,n,"script")},getJSON:function(e,t,n){return H.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?h(e,H.ajaxSettings):(t=e,e=H.ajaxSettings),h(e,t),e},ajaxSettings:{url:on,isLocal:$t.test(un[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":an},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":H.parseJSON,"text xml":H.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:d(rn),ajaxTransport:d(sn),ajax:function(e,n){function r(e,n,r,p){if(E!==2){E=2,b&&clearTimeout(b),y=t,m=p||"",T.readyState=e>0?4:0;var d,v,g,w=n,x=r?l(i,T,r):t,N,C;if(e>=200&&e<300||e===304){if(i.ifModified){if(N=T.getResponseHeader("Last-Modified"))H.lastModified[h]=N;if(C=T.getResponseHeader("Etag"))H.etag[h]=C}if(e===304)w="notmodified",d=!0;else try{v=f(i,x),w="success",d=!0}catch(k){w="parsererror",g=k}}else{g=w;if(!w||e)w="error",e<0&&(e=0)}T.status=e,T.statusText=""+(n||w),d?u.resolveWith(s,[v,w,T]):u.rejectWith(s,[T,w,g]),T.statusCode(c),c=t,S&&o.trigger("ajax"+(d?"Success":"Error"),[T,i,d?v:g]),a.fireWith(s,[T,w]),S&&(o.trigger("ajaxComplete",[T,i]),--H.active||H.event.trigger("ajaxStop"))}}typeof e=="object"&&(n=e,e=t),n=n||{};var i=H.ajaxSetup({},n),s=i.context||i,o=s!==i&&(s.nodeType||s instanceof H)?H(s):H.event,u=H.Deferred(),a=H.Callbacks("once memory"),c=i.statusCode||{},h,d={},v={},m,g,y,b,w,E=0,S,x,T={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=v[n]=v[n]||e,d[e]=t}return this},getAllResponseHeaders:function(){return E===2?m:null},getResponseHeader:function(e){var n;if(E===2){if(!g){g={};while(n=Xt.exec(m))g[n[1].toLowerCase()]=n[2]}n=g[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(i.mimeType=e),this},abort:function(e){return e=e||"abort",y&&y.abort(e),r(0,e),this}};u.promise(T),T.success=T.done,T.error=T.fail,T.complete=a.add,T.statusCode=function(e){if(e){var t;if(E<2)for(t in e)c[t]=[c[t],e[t]];else t=e[T.status],T.then(t,t)}return this},i.url=((e||i.url)+"").replace(Wt,"").replace(Kt,un[1]+"//"),i.dataTypes=H.trim(i.dataType||"*").toLowerCase().split(Zt),i.crossDomain==null&&(w=tn.exec(i.url.toLowerCase()),i.crossDomain=!(!w||w[1]==un[1]&&w[2]==un[2]&&(w[3]||(w[1]==="http:"?80:443))==(un[3]||(un[1]==="http:"?80:443)))),i.data&&i.processData&&typeof i.data!="string"&&(i.data=H.param(i.data,i.traditional)),p(rn,i,n,T);if(E===2)return!1;S=i.global,i.type=i.type.toUpperCase(),i.hasContent=!Jt.test(i.type),S&&H.active++===0&&H.event.trigger("ajaxStart");if(!i.hasContent){i.data&&(i.url+=(Qt.test(i.url)?"&":"?")+i.data,delete i.data),h=i.url;if(i.cache===!1){var N=H.now(),C=i.url.replace(en,"$1_="+N);i.url=C+(C===i.url?(Qt.test(i.url)?"&":"?")+"_="+N:"")}}(i.data&&i.hasContent&&i.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",i.contentType),i.ifModified&&(h=h||i.url,H.lastModified[h]&&T.setRequestHeader("If-Modified-Since",H.lastModified[h]),H.etag[h]&&T.setRequestHeader("If-None-Match",H.etag[h])),T.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+(i.dataTypes[0]!=="*"?", "+an+"; q=0.01":""):i.accepts["*"]);for(x in i.headers)T.setRequestHeader(x,i.headers[x]);if(!i.beforeSend||i.beforeSend.call(s,T,i)!==!1&&E!==2){for(x in{success:1,error:1,complete:1})T[x](i[x]);y=p(sn,i,n,T);if(!y)r(-1,"No Transport");else{T.readyState=1,S&&o.trigger("ajaxSend",[T,i]),i.async&&i.timeout>0&&(b=setTimeout(function(){T.abort("timeout")},i.timeout));try{E=1,y.send(d,r)}catch(k){if(!(E<2))throw k;r(-1,k)}}return T}return T.abort(),!1},param:function(e,n){var r=[],i=function(e,t){t=H.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=H.ajaxSettings.traditional);if(H.isArray(e)||e.jquery&&!H.isPlainObject(e))H.each(e,function(){i(this.name,this.value)});else for(var s in e)c(s,e[s],n,i);return r.join("&").replace(Rt,"+")}}),H.extend({active:0,lastModified:{},etag:{}});var ln=H.now(),cn=/(\=)\?(&|$)|\?\?/i;H.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return H.expando+"_"+ln++}}),H.ajaxPrefilter("json jsonp",function(t,n,r){var i=typeof t.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(cn.test(t.url)||i&&cn.test(t.data))){var s,o=t.jsonpCallback=H.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u=e[o],a=t.url,f=t.data,l="$1"+o+"$2";return t.jsonp!==!1&&(a=a.replace(cn,l),t.url===a&&(i&&(f=f.replace(cn,l)),t.data===f&&(a+=(/\?/.test(a)?"&":"?")+t.jsonp+"="+o))),t.url=a,t.data=f,e[o]=function(e){s=[e]},r.always(function(){e[o]=u,s&&H.isFunction(u)&&e[o](s[0])}),t.converters["script json"]=function(){return s||H.error(o+" was not called"),s[0]},t.dataTypes[0]="json","script"}}),H.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return H.globalEval(e),e}}}),H.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),H.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=_.head||_.getElementsByTagName("head")[0]||_.documentElement;return{send:function(i,s){n=_.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||s(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var hn=e.ActiveXObject?function(){for(var e in dn)dn[e](0,1)}:!1,pn=0,dn;H.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&a()||u()}:a,function(e){H.extend(H.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(H.ajaxSettings.xhr()),H.support.ajax&&H.ajaxTransport(function(n){if(!n.crossDomain||H.support.cors){var r;return{send:function(i,s){var o=n.xhr(),u,a;n.username?o.open(n.type,n.url,n.async,n.username,n.password):o.open(n.type,n.url,n.async);if(n.xhrFields)for(a in n.xhrFields)o[a]=n.xhrFields[a];n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(a in i)o.setRequestHeader(a,i[a])}catch(f){}o.send(n.hasContent&&n.data||null),r=function(e,i){var a,f,l,c,h;try{if(r&&(i||o.readyState===4)){r=t,u&&(o.onreadystatechange=H.noop,hn&&delete dn[u]);if(i)o.readyState!==4&&o.abort();else{a=o.status,l=o.getAllResponseHeaders(),c={},h=o.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=o.responseText}catch(e){}try{f=o.statusText}catch(p){f=""}!a&&n.isLocal&&!n.crossDomain?a=c.text?200:404:a===1223&&(a=204)}}}catch(d){i||s(-1,d)}c&&s(a,f,c,l)},!n.async||o.readyState===4?r():(u=++pn,hn&&(dn||(dn={},H(e).unload(hn)),dn[u]=r),o.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var vn={},mn,gn,yn=/^(?:toggle|show|hide)$/,bn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,wn,En=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Sn;H.fn.extend({show:function(e,t,n){var s,o;if(e||e===0)return this.animate(i("show",3),e,t,n);for(var u=0,a=this.length;u=a.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),a.animatedProperties[this.prop]=!0;for(t in a.animatedProperties)a.animatedProperties[t]!==!0&&(s=!1);if(s){a.overflow!=null&&!H.support.shrinkWrapBlocks&&H.each(["","X","Y"],function(e,t){u.style["overflow"+t]=a.overflow[e]}),a.hide&&H(u).hide();if(a.hide||a.show)for(t in a.animatedProperties)H.style(u,t,a.orig[t]),H.removeData(u,"fxshow"+t,!0),H.removeData(u,"toggle"+t,!0);r=a.complete,r&&(a.complete=!1,r.call(u))}return!1}return a.duration==Infinity?this.now=i:(n=i-this.startTime,this.state=n/a.duration,this.pos=H.easing[a.animatedProperties[this.prop]](this.state,n,0,1,a.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},H.extend(H.fx,{tick:function(){var e,t=H.timers,n=0;for(;n-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),H.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},H.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=Nn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(H.css(e,"marginTop"))||0,n.left-=parseFloat(H.css(e,"marginLeft"))||0,r.top+=parseFloat(H.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(H.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||_.body;while(e&&!Nn.test(e.nodeName)&&H.css(e,"position")==="static")e=e.offsetParent;return e})}}),H.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var i=/Y/.test(r);H.fn[e]=function(s){return H.access(this,function(e,s,o){var u=n(e);if(o===t)return u?r in u?u[r]:H.support.boxModel&&u.document.documentElement[s]||u.document.body[s]:e[s];u?u.scrollTo(i?H(u).scrollLeft():o,i?o:H(u).scrollTop()):e[s]=o},e,s,arguments.length,null)}}),H.each({Height:"height",Width:"width"},function(e,n){var r="client"+e,i="scroll"+e,s="offset"+e;H.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(H.css(e,n,"padding")):this[n]():null},H.fn["outer"+e]=function(e){var t=this[0];return t?t.style?parseFloat(H.css(t,n,e?"margin":"border")):this[n]():null},H.fn[n]=function(e){return H.access(this,function(e,n,o){var u,a,f,l;if(H.isWindow(e))return u=e.document,a=u.documentElement[r],H.support.boxModel&&a||u.body&&u.body[r]||a;if(e.nodeType===9)return u=e.documentElement,u[r]>=u[i]?u[r]:Math.max(e.body[i],u[i],e.body[s],u[s]);if(o===t)return f=H.css(e,n),l=parseFloat(f),H.isNumeric(l)?l:f;H(e).css(n,o)},n,e,arguments.length,null)}}),e.jQuery=e.$=H,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return H})})(window),minispade={root:null,modules:{},loaded:{},globalEval:function(e){e&&(window.execScript||function(e){window.eval.call(window,e)})(e)},require:function(e){var t=minispade.loaded[e],n=minispade.modules[e];if(!t){if(!n){if(minispade.root&&e.substr(0,minispade.root.length)!==minispade.root)return minispade.require(minispade.root+e);throw"The module '"+e+"' could not be found"}minispade.loaded[e]=!0,typeof n=="string"?this.globalEval(n):n()}return t},requireAll:function(e){for(var t in this.modules){if(!this.modules.hasOwnProperty(t))continue;if(e&&!e.test(t))continue;minispade.require(t)}},register:function(e,t){minispade.modules[e]=t}},this.Handlebars={},function(){Handlebars.VERSION="1.0.rc.1",Handlebars.helpers={},Handlebars.partials={},Handlebars.registerHelper=function(e,t,n){n&&(t.not=n),this.helpers[e]=t},Handlebars.registerPartial=function(e,t){this.partials[e]=t},Handlebars.registerHelper("helperMissing",function(e){if(arguments.length===2)return undefined;throw new Error("Could not find property '"+e+"'")});var e=Object.prototype.toString,t="[object Function]";Handlebars.registerHelper("blockHelperMissing",function(n,r){var i=r.inverse||function(){},s=r.fn,o="",u=e.call(n);u===t&&(n=n.call(this));if(n===!0)return s(this);if(n===!1||n==null)return i(this);if(u==="[object Array]"){if(n.length>0)for(var a=0,f=n.length;a0)for(var s=0,o=e.length;s2&&N.push("'"+this.terminals_[S]+"'");var C="";this.lexer.showPosition?C="Parse error on line "+(f+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+N.join(", ")+", got '"+this.terminals_[v]+"'":C="Parse error on line "+(f+1)+": Unexpected "+(v==1?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:this.lexer.match,token:this.terminals_[v]||v,line:this.lexer.yylineno,loc:d,expected:N})}if(c==3){if(v==p)throw new Error(C||"Parsing halted.");l=this.lexer.yyleng,a=this.lexer.yytext,f=this.lexer.yylineno,d=this.lexer.yylloc,v=n()}for(;;){if(h.toString()in u[g])break;if(g==0)throw new Error(C||"Parsing halted.");t(1),g=i[i.length-1]}m=v,v=h,g=i[i.length-1],y=u[g]&&u[g][h],c=3}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+v);switch(y[0]){case 1:i.push(v),s.push(this.lexer.yytext),o.push(this.lexer.yylloc),i.push(y[1]),v=null,m?(v=m,m=null):(l=this.lexer.yyleng,a=this.lexer.yytext,f=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:x=this.productions_[y[1]][1],E.$=s[s.length-x],E._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},w=this.performAction.call(E,a,l,f,this.yy,y[1],s,o);if(typeof w!="undefined")return w;x&&(i=i.slice(0,-1*x*2),s=s.slice(0,-1*x),o=o.slice(0,-1*x)),i.push(this.productions_[y[1]][0]),s.push(E.$),o.push(E._$),T=u[i[i.length-2]][i[i.length-1]],i.push(T);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e;var t=e.match(/\n/);return t&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=(new Array(e.length+1)).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");var i=this._currentRules();for(var s=0;s/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/],e.conditions={mu:{rules:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],inclusive:!1},emu:{rules:[2],inclusive:!1},INITIAL:{rules:[0,1,26],inclusive:!0}},e}();return e.lexer=t,e}();typeof require!="undefined"&&typeof exports!="undefined"&&(exports.parser=handlebars,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(e){if(!e[1])throw new Error("Usage: "+e[0]+" FILE");if(typeof process!="undefined")var t=require("fs").readFileSync(require("path").join(process.cwd(),e[1]),"utf8");else var n=require("file").path(require("file").cwd()),t=n.join(e[1]).read({charset:"utf-8"});return exports.parser.parse(t)},typeof module!="undefined"&&require.main===module&&exports.main(typeof process!="undefined"?process.argv.slice(1):require("system").args)),Handlebars.Parser=handlebars,Handlebars.parse=function(e){return Handlebars.Parser.yy=Handlebars.AST,Handlebars.Parser.parse(e)},Handlebars.print=function(e){return(new Handlebars.PrintVisitor).accept(e)},Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){}},Handlebars.log=function(e,t){Handlebars.logger.log(e,t)},function(){Handlebars.AST={},Handlebars.AST.ProgramNode=function(e,t){this.type="program",this.statements=e,t&&(this.inverse=new Handlebars.AST.ProgramNode(t))},Handlebars.AST.MustacheNode=function(e,t,n){this.type="mustache",this.escaped=!n,this.hash=t;var r=this.id=e[0],i=this.params=e.slice(1),s=this.eligibleHelper=r.isSimple;this.isHelper=s&&(i.length||t)},Handlebars.AST.PartialNode=function(e,t){this.type="partial",this.id=e,this.context=t};var e=function(e,t){if(e.original!==t.original)throw new Handlebars.Exception(e.original+" doesn't match "+t.original)};Handlebars.AST.BlockNode=function(t,n,r,i){e(t.id,i),this.type="block",this.mustache=t,this.program=n,this.inverse=r,this.inverse&&!this.program&&(this.isInverse=!0)},Handlebars.AST.ContentNode=function(e){this.type="content",this.string=e},Handlebars.AST.HashNode=function(e){this.type="hash",this.pairs=e},Handlebars.AST.IdNode=function(e){this.type="ID",this.original=e.join(".");var t=[],n=0;for(var r=0,i=e.length;r":">",'"':""","'":"'","`":"`"},t=/&(?!\w+;)|[<>"'`]/g,n=/[&<>"'`]/,r=function(t){return e[t]||"&"};Handlebars.Utils={escapeExpression:function(e){return e instanceof Handlebars.SafeString?e.toString():e==null||e===!1?"":n.test(e)?e.replace(t,r):e},isEmpty:function(e){return typeof e=="undefined"?!0:e===null?!0:e===!1?!0:Object.prototype.toString.call(e)==="[object Array]"&&e.length===0?!0:!1}}}(),Handlebars.Compiler=function(){},Handlebars.JavaScriptCompiler=function(){},function(e,t){e.prototype={compiler:e,disassemble:function(){var e=this.opcodes,t,n=[],r,i;for(var s=0,o=e.length;sthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),"stack"+this.stackSlot},popStack:function(){var e=this.compileStack.pop();return e instanceof n?e.value:(this.stackSlot--,e)},topStack:function(){var e=this.compileStack[this.compileStack.length-1];return e instanceof n?e.value:e},quotedString:function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'},setupHelper:function(e,t){var n=[];this.setupParams(e,n);var r=this.nameLookup("helpers",t,"helper");return{params:n,name:r,callParams:["depth0"].concat(n).join(", "),helperMissingParams:["depth0",this.quotedString(t)].concat(n).join(", ")}},setupParams:function(e,t){var n=[],r=[],i,s,o;n.push("hash:"+this.popStack()),s=this.popStack(),o=this.popStack();if(o||s)o||(this.context.aliases.self="this",o="self.noop"),s||(this.context.aliases.self="this",s="self.noop"),n.push("inverse:"+s),n.push("fn:"+o);for(var u=0;u\s*\(([^\)]+)\)/gm,"{anonymous}($1)").split("\n"),i.shift()):i=n.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^\(/gm,"{anonymous}(").split("\n"),s="\n "+i.slice(2).join("\n "),e+=s}Ember.Logger.warn("DEPRECATION: "+e)},Ember.deprecateFunc=function(e,t){return function(){return t.apply(this,arguments)}},window.ember_assert=Ember.deprecateFunc("ember_assert is deprecated. Please use Ember.assert instead.",Ember.assert),window.ember_warn=Ember.deprecateFunc("ember_warn is deprecated. Please use Ember.warn instead.",Ember.warn),window.ember_deprecate=Ember.deprecateFunc("ember_deprecate is deprecated. Please use Ember.deprecate instead.",Ember.deprecate),window.ember_deprecateFunc=Ember.deprecateFunc("ember_deprecateFunc is deprecated. Please use Ember.deprecateFunc instead.",Ember.deprecateFunc)}(),function(){"undefined"==typeof Ember&&(Ember={}),"undefined"!=typeof window&&(window.Em=window.Ember=Em=Ember),Ember.isNamespace=!0,Ember.toString=function(){return"Ember"},Ember.VERSION="1.0.pre",Ember.ENV=Ember.ENV||("undefined"==typeof ENV?{}:ENV),Ember.config=Ember.config||{},Ember.EXTEND_PROTOTYPES=Ember.ENV.EXTEND_PROTOTYPES!==!1,Ember.LOG_STACKTRACE_ON_DEPRECATION=Ember.ENV.LOG_STACKTRACE_ON_DEPRECATION!==!1,Ember.SHIM_ES5=Ember.ENV.SHIM_ES5===!1?!1:Ember.EXTEND_PROTOTYPES,Ember.CP_DEFAULT_CACHEABLE=Ember.ENV.CP_DEFAULT_CACHEABLE!==!1,Ember.VIEW_PRESERVES_CONTEXT=Ember.ENV.VIEW_PRESERVES_CONTEXT!==!1,Ember.K=function(){return this},"undefined"==typeof Ember.assert&&(Ember.assert=Ember.K),"undefined"==typeof Ember.warn&&(Ember.warn=Ember.K),"undefined"==typeof Ember.deprecate&&(Ember.deprecate=Ember.K),"undefined"==typeof Ember.deprecateFunc&&(Ember.deprecateFunc=function(e,t){return t}),"undefined"==typeof ember_assert&&(window.ember_assert=Ember.K),"undefined"==typeof ember_warn&&(window.ember_warn=Ember.K),"undefined"==typeof ember_deprecate&&(window.ember_deprecate=Ember.K),"undefined"==typeof ember_deprecateFunc&&(window.ember_deprecateFunc=function(e,t){return t}),Ember.Logger=window.console||{log:Ember.K,warn:Ember.K,error:Ember.K,info:Ember.K,debug:Ember.K},Ember.onerror=null,Ember.handleErrors=function(e,t){if("function"!=typeof Ember.onerror)return e.apply(t||this);try{return e.apply(t||this)}catch(n){Ember.onerror(n)}}}(),function(){var e=function(e){return e&&Function.prototype.toString.call(e).indexOf("[native code]")>-1},t=e(Array.prototype.map)?Array.prototype.map:function(e){if(this===void 0||this===null)throw new TypeError;var t=Object(this),n=t.length>>>0;if(typeof e!="function")throw new TypeError;var r=new Array(n),i=arguments[1];for(var s=0;s>>0;if(typeof e!="function")throw new TypeError;var r=arguments[1];for(var i=0;i-1&&s.splice(o,1)},isEmpty:function(){return this.list.length===0},has:function(t){var n=e(t),r=this.presenceSet;return n in r},forEach:function(e,t){var n=this.list.slice();for(var r=0,i=n.length;r0?o=r.values[t]:o=e[t],o!==undefined||"object"!=typeof e||t in e||"function"!=typeof e.unknownProperty?o:e.unknownProperty(t))},o=function(e,t,n,s){typeof e=="string"&&(n=t,t=e,e=null);if(!e||t.indexOf(".")!==-1)return r(e,t,n,s);var o=e[i],a=o&&o.descs[t],f,l;return a?a.set(e,t,n):(f="object"==typeof e&&!(t in e),f&&"function"==typeof e.setUnknownProperty?e.setUnknownProperty(t,n):o&&o.watching[t]>0?(u?l=o.values[t]:l=e[t],n!==l&&(Ember.propertyWillChange(e,t),u?l!==undefined||t in e?o.values[t]=n:Ember.defineProperty(e,t,null,n):e[t]=n,Ember.propertyDidChange(e,t))):e[t]=n),n},Ember.normalizeTuple=function(e,n){return t(e,n)},Ember.getWithDefault=function(e,t,n){var r=s(e,t);return r===undefined?n:r},Ember.get=s,Ember.getPath=Ember.deprecateFunc("getPath is deprecated since get now supports paths",Ember.get),Ember.set=o,Ember.setPath=Ember.deprecateFunc("setPath is deprecated since set now supports paths",Ember.set),Ember.trySet=function(e,t,n){return o(e,t,n,!0)},Ember.trySetPath=Ember.deprecateFunc("trySetPath has been renamed to trySet",Ember.trySet),Ember.isGlobalPath=function(e){return a.test(e)},Ember.config.overrideAccessors&&(Ember.config.overrideAccessors(),s=Ember.get,o=Ember.set)}(),function(){var e=Ember.GUID_KEY,t=Ember.META_KEY,n=Ember.EMPTY_META,r=Ember.meta,i=Ember.create,s=Ember.platform.defineProperty,o=Ember.ENV.MANDATORY_SETTER,u=Ember.Descriptor=function(){};Ember.defineProperty=function(e,n,i,u,a){var f,l,c,h;return a||(a=r(e)),f=a.descs,l=a.descs[n],c=a.watching[n]>0,l instanceof Ember.Descriptor&&l.teardown(e,n),i instanceof Ember.Descriptor?(h=i,f[n]=i,o&&c?s(e,n,{configurable:!0,enumerable:!0,writable:!0,value:undefined}):e[n]=undefined,i.setup(e,n)):(f[n]=undefined,i==null?(h=u,o&&c?(a.values[n]=u,s(e,n,{configurable:!0,enumerable:!0,set:function(){},get:function(){var e=this[t];return e&&e.values[n]}})):e[n]=u):(h=i,s(e,n,i))),c&&Ember.overrideChains(e,n,a),e.didDefineProperty&&e.didDefineProperty(e,n,h),this}}(),function(){function e(e,t,n,r){u&&!r?c.push(e,t,n):Ember.sendEvent(e,t,[e,n])}function t(){h.clear(),c.flush()}function n(e){return e+i}function r(e){return e+s}var i=":change",s=":before",o=Ember.guidFor,u=0,a=[].slice,f=function(){this.targetSet={}};f.prototype.add=function(e,t){var n=this.targetSet,r=Ember.guidFor(e),i=n[r];return i||(n[r]=i={}),i[t]?!1:i[t]=!0},f.prototype.clear=function(){this.targetSet={}};var l=function(){this.targetSet={},this.queue=[]};l.prototype.push=function(e,t,n){var r=this.targetSet,i=this.queue,s=Ember.guidFor(e),o=r[s],u;o||(r[s]=o={}),u=o[t],u===undefined?o[t]=i.push(Ember.deferEvent(e,t,[e,n]))-1:i[u]=Ember.deferEvent(e,t,[e,n])},l.prototype.flush=function(){var e=this.queue;this.queue=[],this.targetSet={};for(var t=0,n=e.length;t0||t==="length",o=i.proto,u=i.descs[t];if(!s)return;if(o===e)return;u&&u.willChange&&u.willChange(e,t),r(e,t,i),c(e,t,i),Ember.notifyBeforeObservers(e,t)}function d(e,t){var n=m(e,!1),r=n.watching[t]>0||t==="length",s=n.proto,o=n.descs[t];if(s===e)return;o&&o.didChange&&o.didChange(e,t);if(!r&&t!=="length")return;i(e,t,n),h(e,t,n),Ember.notifyObservers(e,t)}var v=Ember.guidFor,m=Ember.meta,g=Ember.get,y=Ember.set,b=Ember.normalizeTuple,w=Ember.GUID_KEY,E=Ember.META_KEY,S=Ember.notifyObservers,x=Ember.ArrayPolyfills.forEach,T=/^([^\.\*]+)/,N=/[\.\*]/,C=Ember.ENV.MANDATORY_SETTER,k=Ember.platform.defineProperty,L={__emberproto__:!0},A,O,M=[],_=function(e,t,n,r){var i;this._parent=e,this._key=t,this._watching=n===undefined,this._value=n,this._separator=r||".",this._paths={},this._watching&&(this._object=e.value(),this._object&&s(this._object,this._key,this)),this._parent&&this._parent._key==="@each"&&this.value()},D=_.prototype;D.value=function(){if(this._value===undefined&&this._watching){var e=this._parent.value();this._value=e&&!a(e)?g(e,this._key):undefined}return this._value},D.destroy=function(){if(this._watching){var e=this._object;e&&o(e,this._key,this),this._watching=!1}},D.copy=function(e){var t=new _(null,null,e,this._separator),n=this._paths,r;for(r in n){if(n[r]<=0)continue;t.add(r)}return t},D.add=function(t){var n,r,i,s,o,u;u=this._paths,u[t]=(u[t]||0)+1,n=this.value(),r=b(n,t);if(r[0]&&r[0]===n)t=r[1],i=e(t),t=t.slice(i.length+1);else{if(!r[0]){M.push([this,t]),r.length=0;return}s=r[0],i=t.slice(0,0-(r[1].length+1)),o=t.slice(i.length,i.length+1),t=r[1]}r.length=0,this.chain(i,t,s,o)},D.remove=function(t){var n,r,i,s,o;o=this._paths,o[t]>0&&o[t]--,n=this.value(),r=b(n,t),r[0]===n?(t=r[1],i=e(t),t=t.slice(i.length+1)):(s=r[0],i=t.slice(0,0-(r[1].length+1)),t=r[1]),r.length=0,this.unchain(i,t)},D.count=0,D.chain=function(t,n,r,i){var s=this._chains,o;s||(s=this._chains={}),o=s[t],o||(o=s[t]=new _(this,t,r,i)),o.count++,n&&n.length>0&&(t=e(n),n=n.slice(t.length+1),o.chain(t,n))},D.unchain=function(t,n){var r=this._chains,i=r[t];n&&n.length>1&&(t=e(n),n=n.slice(t.length+1),i.unchain(t,n)),i.count--,i.count<=0&&(delete r[i._key],i.destroy())},D.willChange=function(){var e=this._chains;if(e)for(var t in e){if(!e.hasOwnProperty(t))continue;e[t].willChange()}this._parent&&this._parent.chainWillChange(this,this._key,1)},D.chainWillChange=function(e,t,n){this._key&&(t=this._key+this._separator+t),this._parent?this._parent.chainWillChange(this,t,n+1):(n>1&&Ember.propertyWillChange(this.value(),t),t="this."+t,this._paths[t]>0&&Ember.propertyWillChange(this.value(),t))},D.chainDidChange=function(e,t,n){this._key&&(t=this._key+this._separator+t),this._parent?this._parent.chainDidChange(this,t,n+1):(n>1&&Ember.propertyDidChange(this.value(),t),t="this."+t,this._paths[t]>0&&Ember.propertyDidChange(this.value(),t))},D.didChange=function(e){if(this._watching){var t=this._parent.value();t!==this._object&&(o(this._object,this._key,this),this._object=t,s(t,this._key,this)),this._value=undefined,this._parent&&this._parent._key==="@each"&&this.value()}var n=this._chains;if(n)for(var r in n){if(!n.hasOwnProperty(r))continue;n[r].didChange(e)}if(e)return;this._parent&&this._parent.chainDidChange(this,this._key,1)},Ember.overrideChains=function(e,t,n){l(e,n,t,"didChange",!0)},Ember.watch=function(e,n){if(n==="length"&&Ember.typeOf(e)==="array")return this;var r=m(e),i=r.watching,s;return i[n]?i[n]=(i[n]||0)+1:(i[n]=1,t(n)?(s=r.descs[n],s&&s.willWatch&&s.willWatch(e,n),"function"==typeof e.willWatchProperty&&e.willWatchProperty(n),C&&n in e&&(r.values[n]=e[n],k(e,n,{configurable:!0,enumerable:!0,set:function(){},get:function(){var e=this[E];return e&&e.values[n]}}))):f(e).add(n)),this},Ember.isWatching=function(e,t){var n=e[E];return(n&&n.watching[t])>0},Ember.watch.flushPending=u,Ember.unwatch=function(e,n){if(n==="length"&&Ember.typeOf(e)==="array")return this;var r=m(e),i=r.watching,s;return i[n]===1?(i[n]=0,t(n)?(s=r.descs[n],s&&s.didUnwatch&&s.didUnwatch(e,n),"function"==typeof e.didUnwatchProperty&&e.didUnwatchProperty(n),C&&n in e&&(k(e,n,{configurable:!0,enumerable:!0,writable:!0,value:r.values[n]}),delete r.values[n])):f(e).remove(n)):i[n]>1&&i[n]--,this},Ember.rewatch=function(e){var t=m(e,!1),n=t.chains;return w in e&&!e.hasOwnProperty(w)&&Ember.generateGuid(e,"ember"),n&&n.value()!==e&&(t.chains=n.copy(e)),this},Ember.finishChains=function(e){var t=m(e,!1),n=t.chains;n&&(n.value()!==e&&(t.chains=n=n.copy(e)),n.didChange(!0))},Ember.propertyWillChange=p,Ember.propertyDidChange=d;var P=[];Ember.destroy=function(e){var t=e[E],n,r,i,s;if(t){e[E]=null,n=t.chains;if(n){P.push(n);while(P.length>0){n=P.pop(),r=n._chains;if(r)for(i in r)r.hasOwnProperty(i)&&P.push(r[i]);n._watching&&(s=n._object,s&&o(s,n._key,n))}}}}}(),function(){function e(e,t,n){var r=t[n];return r?r.__emberproto__!==e&&(r=t[n]=f(r),r.__emberproto__=e):r=t[n]={__emberproto__:e},r}function t(e,t){var n=t.deps;return n?n.__emberproto__!==e&&(n=t.deps=f(n),n.__emberproto__=e):n=t.deps={__emberproto__:e},n}function n(n,r,i,s){var o=n._dependentKeys,u,a,f,l,h;if(!o)return;u=t(r,s);for(a=0,f=o.length;a1&&(t=a.call(arguments,0,-1),e=a.call(arguments,-1)[0]);var n=new i(e);return t&&n.property.apply(n,t),n},Ember.cacheFor=function(e,t){var n=o(e,!1).cache;if(n&&t in n)return n[t]},Ember.computed.not=function(e){return Ember.computed(e,function(t){return!s(this,e)}).cacheable()},Ember.computed.empty=function(e){return Ember.computed(e,function(t){var n=s(this,e);return n===undefined||n===null||n===""||Ember.isArray(n)&&s(n,"length")===0}).cacheable()},Ember.computed.bool=function(e){return Ember.computed(e,function(t){return!!s(this,e)}).cacheable()}}(),function(){function e(e,t,n,r){return v(e,["listeners",t,m(n)],r)}function t(e,t){var n=d(e,!1).listeners;return n?n[t]||!1:!1}function n(e,n,r,i){var s=t(e,n);if(!s)return!1;for(var o in s){if(y[o])continue;var u=s[o];if(u)for(var a in u){if(y[a])continue;var f=u[a];if(f&&r(f,i,e)===!0)return!0}}return!1}function r(e,t,n){var r=e.method,i=e.target;i||(i=n),"string"==typeof r&&(r=i[r]),t?r.apply(i,t):r.apply(i)}function i(t,n,r,i){!i&&"function"==typeof r&&(i=r,r=null);var s=e(t,n,r,!0),o=m(i);s[o]||(s[o]={target:r,method:i}),"function"==typeof t.didAddListener&&t.didAddListener(n,r,i)}function s(t,n,r,i){!i&&"function"==typeof r&&(i=r,r=null);var s=e(t,n,r,!0),o=m(i);s&&s[o]&&(s[o]=null),"function"==typeof t.didRemoveListener&&t.didRemoveListener(n,r,i)}function o(t,n,r,i,s){!i&&"function"==typeof r&&(i=r,r=null);var o=e(t,n,r,!0),u=m(i),a=o&&o[u];o[u]=null;try{return s.call(r)}finally{o[u]=a}}function u(t,n,r,i,s){!i&&"function"==typeof r&&(i=r,r=null);var o=[],u=[],a,f,l,c,h,p;for(h=0,p=n.length;h0&&(n=n.length>r?o.call(n,r):null),Ember.handleErrors(function(){return t.apply(e||this,n||[])},this)}function t(){c=null,l.currentRunLoop&&l.end()}function n(){p=null;var t=+(new Date),r=-1;for(var i in h){if(!h.hasOwnProperty(i))continue;var s=h[i];if(s&&s.expires)if(t>=s.expires)delete h[i],e(s.target,s.method,s.args,2);else if(r<0||s.expires0&&(p=setTimeout(n,r- +(new Date)))}function r(t,n){n[this.tguid]&&delete n[this.tguid][this.mguid],h[t]&&e(this.target,this.method,this.args),delete h[t]}function i(e,t,n,i){var s=Ember.guidFor(t),o=Ember.guidFor(n),u=l.autorun().onceTimers,a=u[s]&&u[s][o],f;return a&&h[a]?h[a].args=i:(f={target:t,method:n,args:i,tguid:s,mguid:o},a=Ember.guidFor(f),h[a]=f,u[s]||(u[s]={}),u[s][o]=a,l.schedule(e,f,r,a,u)),a}function s(){d=null;for(var t in h){if(!h.hasOwnProperty(t))continue;var n=h[t];n.next&&(delete h[t],e(n.target,n.method,n.args,2))}}var o=[].slice,u=Ember.ArrayPolyfills.forEach,a,f=function(e){this._prev=e||null,this.onceTimers={}};f.prototype={end:function(){this.flush()},prev:function(){return this._prev},schedule:function(e,t,n){var r=this._queues,i;r||(r=this._queues={}),i=r[e],i||(i=r[e]=[]);var s=arguments.length>3?o.call(arguments,3):null;return i.push({target:t,method:n,args:s}),this},flush:function(t){function n(t){e(t.target,t.method,t.args)}var r,i,s,o,f;if(!this._queues)return this;Ember.watch.flushPending();if(t)while(this._queues&&(o=this._queues[t])){this._queues[t]=null;if(t==="sync"){f=Ember.LOG_BINDINGS,f&&Ember.Logger.log("Begin: Flush Sync Queue"),Ember.beginPropertyChanges();try{u.call(o,n)}finally{Ember.endPropertyChanges()}f&&Ember.Logger.log("End: Flush Sync Queue")}else u.call(o,n)}else{r=Ember.run.queues,s=r.length,i=0;e:while(i("+this._from+" -> "+this._to+")"+e},connect:function(t){var n=this._from,r=this._to;return Ember.trySet(t,r,e(t,n)),Ember.addObserver(t,n,this,this.fromDidChange),this._oneWay||Ember.addObserver(t,r,this,this.toDidChange),this._readyToSync=!0,this},disconnect:function(e){var t=!this._oneWay;return Ember.removeObserver(e,this._from,this,this.fromDidChange),t&&Ember.removeObserver(e,this._to,this,this.toDidChange),this._readyToSync=!1,this},fromDidChange:function(e){this._scheduleSync(e,"fwd")},toDidChange:function(e){this._scheduleSync(e,"back")},_scheduleSync:function(e,t){var n=this._directionMap,r=n.get(e);r||(Ember.run.schedule("sync",this,this._sync,e),n.set(e,t)),r==="back"&&t==="fwd"&&n.set(e,"fwd")},_sync:function(t){var r=Ember.LOG_BINDINGS;if(t.isDestroyed||!this._readyToSync)return;var i=this._directionMap,s=i.get(t),o=this._from,u=this._to;i.remove(t);if(s==="fwd"){var a=e(t,this._from);r&&Ember.Logger.log(" ",this.toString(),"->",a,t),this._oneWay?Ember.trySet(t,u,a):Ember._suspendObserver(t,u,this,this.toDidChange,function(){Ember.trySet(t,u,a)})}else if(s==="back"){var f=n(t,this._to);r&&Ember.Logger.log(" ",this.toString(),"<-",f,t),Ember._suspendObserver(t,o,this,this.fromDidChange,function(){Ember.trySet(Ember.isGlobalPath(o)?window:t,o,f)})}}},t(o,{from:function(){var e=this,t=new e;return t.from.apply(t,arguments)},to:function(){var e=this,t=new e;return t.to.apply(t,arguments)},oneWay:function(e,t){var n=this,r=new n(null,e);return r.oneWay(t)}}),Ember.Binding=o,Ember.bind=function(e,t,n){return(new Ember.Binding(t,n)).connect(e)},Ember.oneWay=function(e,t,n){return(new Ember.Binding(t,n)).oneWay().connect(e)}}(),function(){function e(e){var t=Ember.meta(e,!0),n=t.mixins;return n?n.__emberproto__!==e&&(n=t.mixins=T(n),n.__emberproto__=e):n=t.mixins={__emberproto__:e},n}function t(e,t){return t&&t.length>0&&(e.mixins=y.call(t,function(e){if(e instanceof p)return e;var t=new p;return t.properties=e,t})),e}function n(e){return"function"==typeof e&&e.isMethod!==!1&&e!==Boolean&&e!==Object&&e!==Number&&e!==Array&&e!==Date&&e!==String}function r(e,t,i,s,o){function u(e){delete i[e],delete s[e]}var a=e.length,f,l,c,h,v,m,g,y;for(f=0;f=0||m==="concatenatedProperties"){var x=s[m]||o[m];v=x?x.concat(v):Ember.makeArray(v)}i[m]=undefined,s[m]=v}}h.hasOwnProperty("toString")&&(o.toString=h.toString)}else l.mixins&&(r(l.mixins,t,i,s,o),l._without&&w.call(l._without,u))}}function i(e){var t=Ember.meta(e),n=t.required;if(!n||n.__emberproto__!==e)n=t.required=n?T(n):{__ember_count__:0},n.__emberproto__=e;return n}function s(e,t,n,r){if(k.test(t)){var i=r.bindings;i?i.__emberproto__!==e&&(i=r.bindings=T(r.bindings),i.__emberproto__=e):i=r.bindings={__emberproto__:e},i[t]=n}}function o(e,t){var n=t.bindings,r,i,s;if(n){for(r in n)i=r!=="__emberproto__"&&n[r],i&&(s=r.slice(0,-7),i instanceof Ember.Binding?(i=i.copy(),i.to(s)):i=new Ember.Binding(s,i),i.connect(e),e[r]=i);t.bindings={__emberproto__:e}}}function u(e,t){return o(e,t||Ember.meta(e)),e}function a(t,n,o){var a={},f={},l=Ember.meta(t),c=l.required,h,p,m,g,y,b,w;r(n,e(t),a,f,t);for(h in f){if(h==="contructor")continue;if(!f.hasOwnProperty(h))continue;m=a[h],p=f[h];if(m===d)h in t||(c=i(t),c.__ember_count__++,c[h]=!0);else{while(m&&m instanceof v){var E=m.methodName;a[E]||f[E]?(p=f[E],m=a[E]):l.descs[E]?(m=l.descs[E],p=undefined):(m=undefined,p=t[E])}if(m===undefined&&p===undefined)continue;g=t[h];if("function"==typeof g)if(y=g.__ember_observesBefore__){b=y.length;for(w=0;w0){var S=[];for(h in c){if(x[h])continue;S.push(h)}}return t}function f(e,t,n){var r=C(e);if(n[r])return!1;n[r]=!0;if(e===t)return!0;var i=e.mixins,s=i?i.length:0;while(--s>=0)if(f(i[s],t,n))return!0;return!1}function l(e,t,n){if(n[C(t)])return;n[C(t)]=!0;if(t.properties){var r=t.properties;for(var i in r)r.hasOwnProperty(i)&&(e[i]=!0)}else t.mixins&&w.call(t.mixins,function(t){l(e,t,n)})}function c(e,t,n){var r=e.length;for(var i in t){if(!t.hasOwnProperty||!t.hasOwnProperty(i))continue;var s=t[i];e[r]=i;if(s&&s.toString===m)s[A]=e.join(".");else if(s&&O(s,"isNamespace")){if(n[C(s)])continue;n[C(s)]=!0,c(e,s,n)}}e.length=r}function h(){var e=Ember.Namespace,t,n;if(e.PROCESSED)return;for(var r in window){if(r==="globalStorage"&&window.StorageList&&window.globalStorage instanceof window.StorageList)continue;if(window.hasOwnProperty&&!window.hasOwnProperty(r))continue;try{t=window[r],n=t&&O(t,"isNamespace")}catch(i){continue}n&&(t[A]=r)}}var p,d,v,m,g,y=Ember.ArrayPolyfills.map,b=Ember.ArrayPolyfills.indexOf,w=Ember.ArrayPolyfills.forEach,E=[].slice,S={},x={__emberproto__:!0,__ember_count__:!0},T=Ember.create,N=Ember.defineProperty,C=Ember.guidFor,k=Ember.IS_BINDING=/^.+Binding$/;Ember.mixin=function(e){var t=E.call(arguments,1);return a(e,t,!1),e},Ember.Mixin=function(){return t(this,arguments)},p=Ember.Mixin,p._apply=a,p.applyPartial=function(e){var t=E.call(arguments,1);return a(e,t,!0)},p.finishPartial=u,p.create=function(){m.processed=!1;var e=this;return t(new e,arguments)};var L=p.prototype;L.reopen=function(){var e,t;this.properties?(e=p.create(),e.properties=this.properties,delete this.properties,this.mixins=[e]):this.mixins||( -this.mixins=[]);var n=arguments.length,r=this.mixins,i;for(i=0;i=0)return s[u];if(Ember.typeOf(n)==="array"){o=n.slice();if(r){u=o.length;while(--u>=0)o[u]=e(o[u],r,i,s)}}else if(Ember.Copyable&&Ember.Copyable.detect(n))o=n.copy(r,i,s);else{o={};for(a in n){if(!n.hasOwnProperty(a))continue;o[a]=r?e(n[a],r,i,s):n[a]}}return r&&(i.push(n),s.push(o)),o}var t=Ember.EnumerableUtils.indexOf,n={},r="Boolean Number String Function Array Date RegExp Object".split(" ");Ember.ArrayPolyfills.forEach.call(r,function(e){n["[object "+e+"]"]=e.toLowerCase()});var i=Object.prototype.toString;Ember.typeOf=function(e){var t;return t=e===null||e===undefined?String(e):n[i.call(e)]||"object",t==="function"?Ember.Object&&Ember.Object.detect(e)&&(t="class"):t==="object"&&(e instanceof Error?t="error":Ember.Object&&e instanceof Ember.Object?t="instance":t="object"),t},Ember.none=function(e){return e===null||e===undefined},Ember.empty=function(e){return e===null||e===undefined||e.length===0&&typeof e!="function"||typeof e=="object"&&Ember.get(e,"length")===0},Ember.compare=function o(e,t){if(e===t)return 0;var n=Ember.typeOf(e),r=Ember.typeOf(t),i=Ember.Comparable;if(i){if(n==="instance"&&i.detect(e.constructor))return e.constructor.compare(e,t);if(r==="instance"&&i.detect(t.constructor))return 1-t.constructor.compare(t,e)}var s=Ember.ORDER_DEFINITION_MAPPING;if(!s){var u=Ember.ORDER_DEFINITION;s=Ember.ORDER_DEFINITION_MAPPING={};var a,f;for(a=0,f=u.length;ac)return 1;switch(n){case"boolean":case"number":if(et)return 1;return 0;case"string":var h=e.localeCompare(t);if(h<0)return-1;if(h>0)return 1;return 0;case"array":var p=e.length,d=t.length,v=Math.min(p,d),m=0,g=0;while(m===0&&gd)return 1;return 0;case"instance":if(Ember.Comparable&&Ember.Comparable.detect(e))return e.compare(e,t);return 0;case"date":var y=e.getTime(),b=t.getTime();if(yb)return 1;return 0;default:return 0}},Ember.copy=function(t,n){return"object"!=typeof t||t===null?t:Ember.Copyable&&Ember.Copyable.detect(t)?t.copy(n):e(t,n,n?[]:null,n?[]:null)},Ember.inspect=function(e){var t,n=[];for(var r in e)if(e.hasOwnProperty(r)){t=e[r];if(t==="toString")continue;Ember.typeOf(t)==="function"&&(t="function() { ... }"),n.push(r+": "+t)}return"{"+n.join(" , ")+"}"},Ember.isEqual=function(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e===t},Ember.ORDER_DEFINITION=Ember.ENV.ORDER_DEFINITION||["undefined","null","boolean","number","string","array","object","instance","function","class","date"],Ember.keys=Object.keys,Ember.keys||(Ember.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t});var s=["description","fileName","lineNumber","message","name","number","stack"];Ember.Error=function(){var e=Error.prototype.constructor.apply(this,arguments);for(var t=0;t1&&(t=s.call(arguments,1)),this.forEach(function(r,i){var s=r&&r[e];"function"==typeof s&&(n[i]=t?s.apply(r,t):s.call(r))},this),n},toArray:function(){var e=[];return this.forEach(function(t,n){e[n]=t}),e},compact:function(){return this.without(null)},without:function(e){if(!this.contains(e))return this;var t=[];return this.forEach(function(n){n!==e&&(t[t.length]=n)}),t},uniq:function(){var e=[];return this.forEach(function(t){o(e,t)<0&&e.push(t)}),e},"[]":Ember.computed(function(e,t){return this}).property().cacheable(),addEnumerableObserver:function(e,t){var n=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",s=r(this,"hasEnumerableObservers");return s||Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.addListener(this,"@enumerable:before",e,n),Ember.addListener(this,"@enumerable:change",e,i),s||Ember.propertyDidChange(this,"hasEnumerableObservers"),this},removeEnumerableObserver:function(e,t){var n=t&&t.willChange||"enumerableWillChange",i=t&&t.didChange||"enumerableDidChange",s=r(this,"hasEnumerableObservers");return s&&Ember.propertyWillChange(this,"hasEnumerableObservers"),Ember.removeListener(this,"@enumerable:before",e,n),Ember.removeListener(this,"@enumerable:change",e,i),s&&Ember.propertyDidChange(this,"hasEnumerableObservers"),this},hasEnumerableObservers:Ember.computed(function(){return Ember.hasListeners(this,"@enumerable:change")||Ember.hasListeners(this,"@enumerable:before")}).property().cacheable(),enumerableContentWillChange:function(e,t){var n,i,s;return"number"==typeof e?n=e:e?n=r(e,"length"):n=e=-1,"number"==typeof t?i=t:t?i=r(t,"length"):i=t=-1,s=i<0||n<0||i-n!==0,e===-1&&(e=null),t===-1&&(t=null),Ember.propertyWillChange(this,"[]"),s&&Ember.propertyWillChange(this,"length"),Ember.sendEvent(this,"@enumerable:before",[this,e,t]),this},enumerableContentDidChange:function(e,t){var n=this.propertyDidChange,i,s,o;return"number"==typeof e?i=e:e?i=r(e,"length"):i=e=-1,"number"==typeof t?s=t:t?s=r(t,"length"):s=t=-1,o=s<0||i<0||s-i!==0,e===-1&&(e=null),t===-1&&(t=null),Ember.sendEvent(this,"@enumerable:change",[this,e,t]),o&&Ember.propertyDidChange(this,"length"),Ember.propertyDidChange(this,"[]"),this}})}(),function(){function e(e){return e===null||e===undefined}var t=Ember.get,n=Ember.set,r=Ember.meta,i=Ember.EnumerableUtils.map,s=Ember.cacheFor;Ember.Array=Ember.Mixin.create(Ember.Enumerable,{isSCArray:!0,length:Ember.required(),objectAt:function(e){return e<0||e>=t(this,"length")?undefined:t(this,e)},objectsAt:function(e){var t=this;return i(e,function(e){return t.objectAt(e)})},nextObject:function(e){return this.objectAt(e)},"[]":Ember.computed(function(e,n){return n!==undefined&&this.replace(0,t(this,"length"),n),this}).property().cacheable(),firstObject:Ember.computed(function(){return this.objectAt(0)}).property().cacheable(),lastObject:Ember.computed(function(){return this.objectAt(t(this,"length")-1)}).property().cacheable(),contains:function(e){return this.indexOf(e)>=0},slice:function(n,r){var i=[],s=t(this,"length");e(n)&&(n=0);if(e(r)||r>s)r=s;while(n=i)n=i-1;n<0&&(n+=i);for(r=n;r>=0;r--)if(this.objectAt(r)===e)return r;return-1},addArrayObserver:function(e,n){var r=n&&n.willChange||"arrayWillChange",i=n&&n.didChange||"arrayDidChange",s=t(this,"hasArrayObservers");return s||Ember.propertyWillChange(this,"hasArrayObservers"),Ember.addListener(this,"@array:before",e,r),Ember.addListener(this,"@array:change",e,i),s||Ember.propertyDidChange(this,"hasArrayObservers"),this},removeArrayObserver:function(e,n){var r=n&&n.willChange||"arrayWillChange",i=n&&n.didChange||"arrayDidChange",s=t(this,"hasArrayObservers");return s&&Ember.propertyWillChange(this,"hasArrayObservers"),Ember.removeListener(this,"@array:before",e,r),Ember.removeListener(this,"@array:change",e,i),s&&Ember.propertyDidChange(this,"hasArrayObservers"),this},hasArrayObservers:Ember.computed(function(){return Ember.hasListeners(this,"@array:change")||Ember.hasListeners(this,"@array:before")}).property().cacheable(),arrayContentWillChange:function(e,n,r){e===undefined?(e=0,n=r=-1):(n===undefined&&(n=-1),r===undefined&&(r=-1)),Ember.isWatching(this,"@each")&&t(this,"@each"),Ember.sendEvent(this,"@array:before",[this,e,n,r]);var i,s;if(e>=0&&n>=0&&t(this,"hasEnumerableObservers")){i=[],s=e+n;for(var o=e;o=0&&r>=0&&t(this,"hasEnumerableObservers")){i=[],o=e+r;for(var u=e;un(this,"length"))throw new Error(e);return this.replace(t,0,[r]),this},removeAt:function(r,i){if("number"==typeof r){if(r<0||r>=n(this,"length"))throw new Error(e);i===undefined&&(i=1),this.replace(r,i,t)}return this},pushObject:function(e){return this.insertAt(n(this,"length"),e),e},pushObjects:function(e){return this.replace(n(this,"length"),0,e),this},popObject:function(){var e=n(this,"length");if(e===0)return null;var t=this.objectAt(e-1);return this.removeAt(e-1,1),t},shiftObject:function(){if(n(this,"length")===0)return null;var e=this.objectAt(0);return this.removeAt(0),e},unshiftObject:function(e){return this.insertAt(0,e),e},unshiftObjects:function(e){return this.replace(0,0,e),this},reverseObjects:function(){var e=n(this,"length");if(e===0)return this;var t=this.toArray().reverse();return this.replace(0,e,t),this},setObjects:function(e){if(e.length===0)return this.clear();var t=n(this,"length");return this.replace(0,t,e),this},removeObject:function(e){var t=n(this,"length")||0;while(--t>=0){var r=this.objectAt(t);r===e&&this.removeAt(t)}return this},addObject:function(e){return this.contains(e)||this.pushObject(e),this}})}(),function(){var e=Ember.get,t=Ember.set,n=Ember.defineProperty;Ember.Observable=Ember.Mixin.create({isObserverable:!0,get:function(t){return e(this,t)},getProperties:function(){var t={},n=arguments;arguments.length===1&&Ember.typeOf(arguments[0])==="array"&&(n=arguments[0]);for(var r=0;r"}}),Ember.config.overridePrototypeMixin&&Ember.config.overridePrototypeMixin(w.PrototypeMixin),w.__super__=null;var E=d.create({ClassMixin:Ember.required(),PrototypeMixin:Ember.required(),isClass:!0,isMethod:!1,extend:function(){var t=e(),n;return t.ClassMixin=d.create(this.ClassMixin),t.PrototypeMixin=d.create(this.PrototypeMixin),t.ClassMixin.ownerConstructor=t,t.PrototypeMixin.ownerConstructor=t,g.apply(t.PrototypeMixin,arguments),t.superclass=this,t.__super__=this.prototype,n=t.prototype=r(this.prototype),n.constructor=t,a(n,"ember"),f(n).proto=n,t.ClassMixin.apply(t),t},create:function(){var e=this;return arguments.length>0&&this._initMixins(arguments),new e},reopen:function(){return this.willReopen(),g.apply(this.PrototypeMixin,arguments),this},reopenClass:function(){return g.apply(this.ClassMixin,arguments),v(this,arguments,!1),this},detect:function(e){if("function"!=typeof e)return!1;while(e){if(e===this)return!0;e=e.superclass}return!1},detectInstance:function(e){return e instanceof this},metaForProperty:function(e){var t=f(this.proto(),!1).descs[e];return t._meta||{}},eachComputedProperty:function(e,t){var n=this.proto(),r=f(n).descs,i={},s;for(var o in r)s=r[o],s instanceof Ember.ComputedProperty&&e.call(t||this,o,s._meta||i)}});Ember.config.overrideClassMixin&&Ember.config.overrideClassMixin(E),w.ClassMixin=E,E.apply(w),Ember.CoreObject=w}(),function(){var e=Ember.get,t=Ember.set,n=Ember.guidFor,r=Ember.none;Ember.Set=Ember.CoreObject.extend(Ember.MutableEnumerable,Ember.Copyable,Ember.Freezable,{length:0,clear:function(){if(this.isFrozen)throw new Error(Ember.FROZEN_ERROR);var r=e(this,"length");if(r===0)return this;var i;this.enumerableContentWillChange(r,0),Ember.propertyWillChange(this,"firstObject"),Ember.propertyWillChange(this,"lastObject");for(var s=0;s=0)if(!t.contains(this[n]))return!1;return!0},add:Ember.alias("addObject"),remove:Ember.alias("removeObject"),pop:function(){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);var t=this.length>0?this[this.length-1]:null;return this.remove(t),t},push:Ember.alias("addObject"),shift:Ember.alias("pop"),unshift:Ember.alias("push"),addEach:Ember.alias("addObjects"),removeEach:Ember.alias("removeObjects"),init:function(e){this._super(),e&&this.addObjects(e)},nextObject:function(e){return this[e]},firstObject:Ember.computed(function(){return this.length>0?this[0]:undefined}).property().cacheable(),lastObject:Ember.computed(function(){return this.length>0?this[this.length-1]:undefined}).property().cacheable(),addObject:function(i){if(e(this,"isFrozen"))throw new Error(Ember.FROZEN_ERROR);if(r(i))return this;var s=n(i),o=this[s],u=e(this,"length"),a;return o>=0&&o=0&&o=0},copy:function(){var r=this.constructor,i=new r,s=e(this,"length");t(i,"length",s);while(--s>=0)i[s]=this[s],i[n(this[s])]=s;return i},toString:function(){var e=this.length,t,n=[];for(t=0;t".fmt(n.join(","))}})}(),function(){Ember.Object=Ember.CoreObject.extend(Ember.Observable)}(),function(){var e=Ember.ArrayPolyfills.indexOf;Ember.Namespace=Ember.Object.extend({isNamespace:!0,init:function(){Ember.Namespace.NAMESPACES.push(this),Ember.Namespace.PROCESSED=!1},toString:function(){return Ember.identifyNamespaces(),this[Ember.GUID_KEY+"_name"]},destroy:function(){var t=Ember.Namespace.NAMESPACES;window[this.toString()]=undefined,t.splice(e.call(t,this),1),this._super()}}),Ember.Namespace.NAMESPACES=[Ember],Ember.Namespace.PROCESSED=!1}(),function(){Ember.Application=Ember.Namespace.extend()}(),function(){var e=Ember.get,t=Ember.set;Ember.ArrayProxy=Ember.Object.extend(Ember.MutableArray,{content:null,arrangedContent:Ember.computed("content",function(){return e(this,"content")}).cacheable(),objectAtContent:function(t){return e(this,"arrangedContent").objectAt(t)},replaceContent:function(t,n,r){e(this,"arrangedContent").replace(t,n,r)},_contentWillChange:Ember.beforeObserver(function(){this._teardownContent()},"content"),_teardownContent:function(){var t=e(this,"content");t&&t.removeArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},contentArrayWillChange:Ember.K,contentArrayDidChange:Ember.K,_contentDidChange:Ember.observer(function(){var t=e(this,"content");this._setupContent()},"content"),_setupContent:function(){var t=e(this,"content");t&&t.addArrayObserver(this,{willChange:"contentArrayWillChange",didChange:"contentArrayDidChange"})},_arrangedContentWillChange:Ember.beforeObserver(function(){var t=e(this,"arrangedContent"),n=t?e(t,"length"):0;this.arrangedContentArrayWillChange(this,0,n,undefined),this.arrangedContentWillChange(this),this._teardownArrangedContent(t)},"arrangedContent"),_arrangedContentDidChange:Ember.observer(function(){var t=e(this,"arrangedContent"),n=t?e(t,"length"):0;this._setupArrangedContent(),this.arrangedContentDidChange(this),this.arrangedContentArrayDidChange(this,0,undefined,n)},"arrangedContent"),_setupArrangedContent:function(){var t=e(this,"arrangedContent");t&&t.addArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},_teardownArrangedContent:function(){var t=e(this,"arrangedContent");t&&t.removeArrayObserver(this,{willChange:"arrangedContentArrayWillChange",didChange:"arrangedContentArrayDidChange"})},arrangedContentWillChange:Ember.K,arrangedContentDidChange:Ember.K,objectAt:function(t){return e(this,"content")&&this.objectAtContent(t)},length:Ember.computed(function(){var t=e(this,"arrangedContent");return t?e(t,"length"):0}).property().cacheable(),replace:function(t,n,r){return e(this,"content")&&this.replaceContent(t,n,r),this},arrangedContentArrayWillChange:function(e,t,n,r){this.arrayContentWillChange(t,n,r)},arrangedContentArrayDidChange:function(e,t,n,r){this.arrayContentDidChange(t,n,r)},init:function(){this._super(),this._setupContent(),this._setupArrangedContent()},willDestroy:function(){this._teardownArrangedContent(),this._teardownContent()}})}(),function(){function e(e,t){var n=t.slice(8);if(n in this)return;f(this,n)}function t(e,t){var n=t.slice(8);if(n in this)return;l(this,n)}var n=Ember.get,r=Ember.set,i=Ember.String.fmt,s=Ember.addBeforeObserver,o=Ember.addObserver,u=Ember.removeBeforeObserver,a=Ember.removeObserver,f=Ember.propertyWillChange,l=Ember.propertyDidChange;Ember.ObjectProxy=Ember.Object.extend({content:null,_contentDidChange:Ember.observer(function(){},"content"),willWatchProperty:function(n){var r="content."+n;s(this,r,null,e),o(this,r,null,t)},didUnwatchProperty:function(n){var r="content."+n;u(this,r,null,e),a(this,r,null,t)},unknownProperty:function(e){var t=n(this,"content");if(t)return n(t,e)},setUnknownProperty:function(e,t){var i=n(this,"content");return r(i,e,t)}})}(),function(){function e(e,t,n,r,s){var o=n._objects,u;o||(o=n._objects={});while(--s>=r){var a=e.objectAt(s);a&&(Ember.addBeforeObserver(a,t,n,"contentKeyWillChange"),Ember.addObserver(a,t,n,"contentKeyDidChange"),u=i(a),o[u]||(o[u]=[]),o[u].push(s))}}function t(e,t,n,r,s){var o=n._objects;o||(o=n._objects={});var u,a;while(--s>=r){var f=e.objectAt(s);f&&(Ember.removeBeforeObserver(f,t,n,"contentKeyWillChange"),Ember.removeObserver(f,t,n,"contentKeyDidChange"),a=i(f),u=o[a],u[u.indexOf(s)]=null)}}var n=Ember.set,r=Ember.get,i=Ember.guidFor,s=Ember.EnumerableUtils.forEach,o=Ember.Object.extend(Ember.Array,{init:function(e,t,n){this._super(),this._keyName=t,this._owner=n,this._content=e},objectAt:function(e){var t=this._content.objectAt(e);return t&&r(t,this._keyName)},length:Ember.computed(function(){var e=this._content;return e?r(e,"length"):0}).property().cacheable()}),u=/^.+:(before|change)$/;Ember.EachProxy=Ember.Object.extend({init:function(e){this._super(),this._content=e,e.addArrayObserver(this),s(Ember.watchedEvents(this),function(e){this.didAddListener(e)},this)},unknownProperty:function(e,t){var n;return n=new o(this._content,e,this),Ember.defineProperty(this,e,null,n),this.beginObservingContentKey(e),n},arrayWillChange:function(e,n,r,i){var s=this._keys,o,u,a;a=r>0?n+r:-1,Ember.beginPropertyChanges(this);for(o in s){if(!s.hasOwnProperty(o))continue;a>0&&t(e,o,this,n,a),Ember.propertyWillChange(this,o)}Ember.propertyWillChange(this._content,"@each"),Ember.endPropertyChanges(this)},arrayDidChange:function(t,n,r,i){var s=this._keys,o,u,a;a=i>0?n+i:-1,Ember.beginPropertyChanges(this);for(o in s){if(!s.hasOwnProperty(o))continue;a>0&&e(t,o,this,n,a),Ember.propertyDidChange(this,o)}Ember.propertyDidChange(this._content,"@each"),Ember.endPropertyChanges(this)},didAddListener:function(e){u.test(e)&&this.beginObservingContentKey(e.slice(0,-7))},didRemoveListener:function(e){u.test(e)&&this.stopObservingContentKey(e.slice(0,-7))},beginObservingContentKey:function(t){var n=this._keys;n||(n=this._keys={});if(!n[t]){n[t]=1;var i=this._content,s=r(i,"length");e(i,t,this,0,s)}else n[t]++},stopObservingContentKey:function(e){var n=this._keys;if(n&&n[e]>0&&--n[e]<=0){var i=this._content,s=r(i,"length");t(i,e,this,0,s)}},contentKeyWillChange:function(e,t){Ember.propertyWillChange(this,t)},contentKeyDidChange:function(e,t){Ember.propertyDidChange(this,t)}})}(),function(){var e=Ember.get,t=Ember.set,n=Ember.Mixin.create(Ember.MutableArray,Ember.Observable,Ember.Copyable,{get:function(e){return e==="length"?this.length:"number"==typeof e?this[e]:this._super(e)},objectAt:function(e){return this[e]},replace:function(t,n,r){if(this.isFrozen)throw Ember.FROZEN_ERROR;var i=r?e(r,"length"):0;this.arrayContentWillChange(t,n,i);if(!r||r.length===0)this.splice(t,n);else{var s=[t,n].concat(r);this.splice.apply(this,s)}return this.arrayContentDidChange(t,n,i),this},unknownProperty:function(e,t){var n;return t!==undefined&&n===undefined&&(n=this[e]=t),n},indexOf:function(e,t){var n,r=this.length;t===undefined?t=0:t=t<0?Math.ceil(t):Math.floor(t),t<0&&(t+=r);for(n=t;n=0;n--)if(this[n]===e)return n;return-1},copy:function(){return this.slice()}}),r=["length"];Ember.EnumerableUtils.forEach(n.keys(),function(e){Array.prototype[e]&&r.push(e)}),r.length>0&&(n=n.without.apply(n,r)),Ember.NativeArray=n,Ember.A=function(e){return e===undefined&&(e=[]),Ember.NativeArray.apply(e)},Ember.NativeArray.activate=function(){n.apply(Array.prototype),Ember.A=function(e){return e||[]}},Ember.EXTEND_PROTOTYPES&&Ember.NativeArray.activate()}(),function(){var e= -Ember.get,t=Ember.set;Ember._PromiseChain=Ember.Object.extend({promises:null,failureCallback:Ember.K,successCallback:Ember.K,abortCallback:Ember.K,promiseSuccessCallback:Ember.K,runNextPromise:function(){if(e(this,"isDestroyed"))return;var t=e(this,"promises").shiftObject();if(t){var n=e(t,"promise")||t,r=this,i=function(){r.promiseSuccessCallback.call(this,t,arguments),r.runNextPromise()},s=e(r,"failureCallback");n.then(i,s)}else this.successCallback()},start:function(){return this.runNextPromise(),this},abort:function(){this.abortCallback(),this.destroy()},init:function(){t(this,"promises",Ember.A(e(this,"promises"))),this._super()}})}(),function(){var e={},t={};Ember.onLoad=function(n,r){var i;e[n]=e[n]||Ember.A(),e[n].pushObject(r),(i=t[n])&&r(i)},Ember.runLoadHooks=function(n,r){var i;t[n]=r,(i=e[n])&&e[n].forEach(function(e){e(r)})}}(),function(){}(),function(){Ember.ControllerMixin=Ember.Mixin.create({target:null,store:null}),Ember.Controller=Ember.Object.extend(Ember.ControllerMixin)}(),function(){var e=Ember.get,t=Ember.set,n=Ember.EnumerableUtils.forEach;Ember.SortableMixin=Ember.Mixin.create(Ember.MutableEnumerable,{sortProperties:null,sortAscending:!0,addObject:function(t){var n=e(this,"content");n.pushObject(t)},removeObject:function(t){var n=e(this,"content");n.removeObject(t)},orderBy:function(t,r){var i=0,s=e(this,"sortProperties"),o=e(this,"sortAscending");return n(s,function(n){i===0&&(i=Ember.compare(e(t,n),e(r,n)),i!==0&&!o&&(i=-1*i))}),i},destroy:function(){var t=e(this,"content"),r=e(this,"sortProperties");return t&&r&&n(t,function(e){n(r,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},isSorted:Ember.computed("sortProperties",function(){return!!e(this,"sortProperties")}),arrangedContent:Ember.computed("content","sortProperties.@each",function(t,r){var i=e(this,"content"),s=e(this,"isSorted"),o=e(this,"sortProperties"),u=this;return i&&s?(i=i.slice(),i.sort(function(e,t){return u.orderBy(e,t)}),n(i,function(e){n(o,function(t){Ember.addObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),Ember.A(i)):i}).cacheable(),_contentWillChange:Ember.beforeObserver(function(){var t=e(this,"content"),r=e(this,"sortProperties");t&&r&&n(t,function(e){n(r,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this),this._super()},"content"),sortAscendingWillChange:Ember.beforeObserver(function(){this._lastSortAscending=e(this,"sortAscending")},"sortAscending"),sortAscendingDidChange:Ember.observer(function(){if(e(this,"sortAscending")!==this._lastSortAscending){var t=e(this,"arrangedContent");t.reverseObjects()}},"sortAscending"),contentArrayWillChange:function(t,r,i,s){var o=e(this,"isSorted");if(o){var u=e(this,"arrangedContent"),a=t.slice(r,r+i),f=e(this,"sortProperties");n(a,function(e){u.removeObject(e),n(f,function(t){Ember.removeObserver(e,t,this,"contentItemSortPropertyDidChange")},this)})}return this._super(t,r,i,s)},contentArrayDidChange:function(t,r,i,s){var o=e(this,"isSorted"),u=e(this,"sortProperties");if(o){var a=t.slice(r,r+s),f=e(this,"arrangedContent");n(a,function(e){this.insertItemSorted(e),n(u,function(t){Ember.addObserver(e,t,this,"contentItemSortPropertyDidChange")},this)},this)}return this._super(t,r,i,s)},insertItemSorted:function(t){var n=e(this,"arrangedContent"),r=e(n,"length"),i=this._binarySearch(t,0,r);n.insertAt(i,t)},contentItemSortPropertyDidChange:function(t){var n=e(this,"arrangedContent"),r=n.indexOf(t),i=this._binarySearch(t,0,e(n,"length"));i!==r&&(n.removeObject(t),this.insertItemSorted(t))},_binarySearch:function(t,n,r){var i,s,o,u;return n===r?n:(u=e(this,"arrangedContent"),i=n+Math.floor((r-n)/2),s=u.objectAt(i),o=this.orderBy(s,t),o<0?this._binarySearch(t,i+1,r):o>0?this._binarySearch(t,n,i):i)}})}(),function(){var e=Ember.get,t=Ember.set;Ember.ArrayController=Ember.ArrayProxy.extend(Ember.ControllerMixin,Ember.SortableMixin)}(),function(){Ember.ObjectController=Ember.ObjectProxy.extend(Ember.ControllerMixin)}(),function(){}(),function(){}(),function(){function e(t,n,r,i){var s=t.name,o=t.incoming,u=t.incomingNames,a=u.length,f;r||(r={}),i||(i=[]);if(r.hasOwnProperty(s))return;i.push(s),r[s]=!0;for(f=0;f"}var f=this.childBuffers;return Ember.ArrayPolyfills.forEach.call(f,function(t){var n=typeof t=="string";e+=n?t:t.string()}),t?n+e+"":e},_escapeAttribute:function(e){var t={"<":"<",">":">",'"':""","'":"'","`":"`"},n=/&(?!\w+;)|[<>"'`]/g,r=/[&<>"'`]/,i=function(e){return t[e]||"&"},s=e.toString();return r.test(s)?s.replace(n,i):s}}}(),function(){var e=Ember.get,t=Ember.set,n=Ember.String.fmt;Ember.EventDispatcher=Ember.Object.extend({rootElement:"body",setup:function(t){var n,r={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",mousemove:"mouseMove",focusin:"focusIn",focusout:"focusOut",mouseenter:"mouseEnter",mouseleave:"mouseLeave",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"};Ember.$.extend(r,t||{});var i=Ember.$(e(this,"rootElement"));i.addClass("ember-application");for(n in r)r.hasOwnProperty(n)&&this.setupHandler(i,n,r[n])},setupHandler:function(e,t,n){var r=this;e.delegate(".ember-view",t+".ember",function(e,t){return Ember.handleErrors(function(){var i=Ember.View.views[this.id],s=!0,o=null;return o=r._findNearestEventManager(i,n),o&&o!==t?s=r._dispatchEvent(o,e,n,i):i?s=r._bubbleEvent(i,e,n):e.stopPropagation(),s},this)}),e.delegate("[data-ember-action]",t+".ember",function(e){return Ember.handleErrors(function(){var t=Ember.$(e.currentTarget).attr("data-ember-action"),r=Ember.Handlebars.ActionHelper.registeredActions[t],i=r.handler;if(r.eventName===n)return i(e)},this)})},_findNearestEventManager:function(t,n){var r=null;while(t){r=e(t,"eventManager");if(r&&r[n])break;t=e(t,"parentView")}return r},_dispatchEvent:function(e,t,n,r){var i=!0,s=e[n];return Ember.typeOf(s)==="function"?(i=s.call(e,t,r),t.stopPropagation()):i=this._bubbleEvent(r,t,n),i},_bubbleEvent:function(e,t,n){return Ember.run(function(){return e.handleEvent(n,t)})},destroy:function(){var t=e(this,"rootElement");return Ember.$(t).undelegate(".ember").removeClass("ember-application"),this._super()}})}(),function(){var e=Ember.run.queues;e.splice(Ember.$.inArray("actions",e)+1,0,"render")}(),function(){var e=Ember.get,t=Ember.set;Ember.ControllerMixin.reopen({target:null,controllers:null,namespace:null,view:null,connectOutlet:function(n,r){var i,s,o,u,a;Ember.typeOf(r)==="string"&&(i=n,n=r,r=arguments[2]),arguments.length===1?Ember.typeOf(n)==="object"&&(a=n,i=a.outletName,n=a.name,s=a.viewClass,u=a.controller,r=a.context):a={},i=i||"view";if(n){var f=e(this,"namespace"),l=e(this,"controllers"),c=n.charAt(0).toUpperCase()+n.substr(1)+"View";s=e(f,c),u=e(l,n+"Controller")}return u&&r&&t(u,"content",r),o=this.createOutletView(i,s),u&&t(o,"controller",u),t(this,i,o),o},connectControllers:function(){var n=e(this,"controllers"),r=Array.prototype.slice.apply(arguments),i;for(var s=0,o=r.length;s=e;r--)n[r]&&n[r].destroy()},_applyClassNameBindings:function(){var t=e(this,"classNameBindings"),i=e(this,"classNames"),s,o,a;if(!t)return;u(t,function(e){var t,u=Ember.View._parsePropertyPath(e),f=function(){o=this._classStringForProperty(e),s=this.$();if(!s){r(this,u.path,f);return}t&&(s.removeClass(t),i.removeObject(t)),o?(s.addClass(o),t=o):t=null};a=this._classStringForProperty(e),a&&(i.push(a),t=a),n(this,u.path,f)},this)},_applyAttributeBindings:function(t){var r=e(this,"attributeBindings"),i,s,o;if(!r)return;u(r,function(r){var o=r.split(":"),u=o[0],a=o[1]||u,f=function(){s=this.$();if(!s)return;i=e(this,u),Ember.View.applyAttributeBindings(s,a,i)};n(this,u,f),i=e(this,u),Ember.View.applyAttributeBindings(t,a,i)},this)},_classStringForProperty:function(t){var n=Ember.View._parsePropertyPath(t),r=n.path,i=e(this,r);return i===undefined&&Ember.isGlobalPath(r)&&(i=e(window,r)),Ember.View._classStringForValue(r,i,n.className,n.falsyClassName)},element:Ember.computed(function(e,t){return t!==undefined?this.invokeForState("setElement",t):this.invokeForState("getElement")}).property("_parentView").cacheable(),$:function(e){return this.invokeForState("$",e)},mutateChildViews:function(e){var t=this._childViews,n=t.length,r;while(--n>=0)r=t[n],e.call(this,r,n);return this},forEachChildView:function(e){var t=this._childViews;if(!t)return this;var n=t.length,r,i;for(i=0;i=0;o--)n[o].removedFromDOM=!0,n[o].destroy();this.isVirtual||delete Ember.View.views[e(this,"elementId")]},createChildView:function(n,r){return Ember.View.detect(n)?(r=r||{},r._parentView=this,r.templateData=r.templateData||e(this,"templateData"),n=n.create(r),n.viewName&&t(e(this,"concreteView"),n.viewName,n)):(e(n,"templateData")||t(n,"templateData",e(this,"templateData")),t(n,"_parentView",this)),n},becameVisible:Ember.K,becameHidden:Ember.K,_isVisibleDidChange:Ember.observer(function(){var t=this.$();if(!t)return;var n=e(this,"isVisible");t.toggle(n);if(this._isAncestorHidden())return;n?this._notifyBecameVisible():this._notifyBecameHidden()},"isVisible"),_notifyBecameVisible:function(){this.trigger("becameVisible"),this.forEachChildView(function(t){var n=e(t,"isVisible");(n||n===null)&&t._notifyBecameVisible()})},_notifyBecameHidden:function(){this.trigger("becameHidden"),this.forEachChildView(function(t){var n=e(t,"isVisible");(n||n===null)&&t._notifyBecameHidden()})},_isAncestorHidden:function(){var t=e(this,"parentView");while(t){if(e(t,"isVisible")===!1)return!0;t=e(t,"parentView")}return!1},clearBuffer:function(){this.invokeRecursively(function(e){this.buffer=null})},transitionTo:function(e,t){this.state=e,t!==!1&&this.forEachChildView(function(t){t.transitionTo(e)})},trigger:function(e){this._super.apply(this,arguments);var t=this[e];if(t){var n=[],r,i;for(r=1,i=arguments.length;r1&&(i=t[1],t.length===3&&(s=t[2]),r=":"+i,s&&(r+=":"+s)),{path:n,classNames:r,className:i===""?undefined:i,falsyClassName:s}},_classStringForValue:function(e,t,n,r){if(n||r)return n&&!!t?n:r&&!t?r:null;if(t===!0){var i=e.split(".");return Ember.String.dasherize(i[i.length-1])}return t!==!1&&t!==undefined&&t!==null?t:null}}),Ember.View.views={},Ember.View.childViewsProperty=a,Ember.View.applyAttributeBindings=function(e,t,n){var r=Ember.typeOf(n),i=e.attr(t);(r==="string"||r==="number"&&!isNaN(n))&&n!==i?e.attr(t,n):n&&r==="boolean"?e.attr(t,t):n||e.removeAttr(t)}}(),function(){var e=Ember.get,t=Ember.set;Ember.View.states={_default:{appendChild:function(){throw"You can't use appendChild outside of the rendering process"},$:function(){return undefined},getElement:function(){return null},handleEvent:function(){return!0},destroyElement:function(e){return t(e,"element",null),e._scheduledInsert&&(Ember.run.cancel(e._scheduledInsert),e._scheduledInsert=null),e},renderToBufferIfNeeded:function(){return!1}}},Ember.View.reopen({states:Ember.View.states})}(),function(){Ember.View.states.preRender={parentState:Ember.View.states._default,insertElement:function(e,t){e.createElement(),e._notifyWillInsertElement(),t.call(e),e.transitionTo("inDOM"),e._notifyDidInsertElement()},renderToBufferIfNeeded:function(e){return e.renderToBuffer()},empty:Ember.K,setElement:function(e,t){return t!==null&&e.transitionTo("hasElement"),t}}}(),function(){var e=Ember.get,t=Ember.set,n=Ember.meta;Ember.View.states.inBuffer={parentState:Ember.View.states._default,$:function(e,t){return e.rerender(),Ember.$()},rerender:function(e){e._notifyWillRerender(),e.clearRenderedChildren(),e.renderToBuffer(e.buffer,"replaceWith")},appendChild:function(e,t,n){var r=e.buffer;return t=this.createChildView(t,n),e._childViews.push(t),t.renderToBuffer(r),e.propertyDidChange("childViews"),t},destroyElement:function(e){return e.clearBuffer(),e._notifyWillDestroyElement(),e.transitionTo("preRender"),e},empty:function(){},renderToBufferIfNeeded:function(e){return e.buffer},insertElement:function(){throw"You can't insert an element that has already been rendered"},setElement:function(e,t){return t===null?e.transitionTo("preRender"):(e.clearBuffer(),e.transitionTo("hasElement")),t}}}(),function(){var e=Ember.get,t=Ember.set,n=Ember.meta;Ember.View.states.hasElement={parentState:Ember.View.states._default,$:function(t,n){var r=e(t,"element");return n?Ember.$(n,r):Ember.$(r)},getElement:function(t){var n=e(t,"parentView");return n&&(n=e(n,"element")),n?t.findElementInParentElement(n):Ember.$("#"+e(t,"elementId"))[0]},setElement:function(e,t){if(t!==null)throw"You cannot set an element to a non-null value when the element is already in the DOM.";return e.transitionTo("preRender"),t},rerender:function(e){return e._notifyWillRerender(),e.clearRenderedChildren(),e.domManager.replace(e),e},destroyElement:function(e){return e._notifyWillDestroyElement(),e.domManager.remove(e),t(e,"element",null),e._scheduledInsert&&(Ember.run.cancel(e._scheduledInsert),e._scheduledInsert=null),e},empty:function(e){var t=e._childViews,n,r;if(t){n=t.length;for(r=0;r=n;u--)o=s[u],f&&(o.removedFromDOM=!0),o.destroy()},arrayDidChange:function(n,r,i,s){var o=e(this,"itemViewClass"),u=e(this,"childViews"),a=[],f,l,c,h,p;"string"==typeof o&&(o=e(o)),h=n?e(n,"length"):0;if(h)for(c=r;c0){if(n>=0)i=this.enterStates[n--];else{if(this.enterStates.length){i=e(this.enterStates[0],"parentState");if(!i)throw"Cannot match all contexts to states"}else i=this.resolveState;this.enterStates.unshift(i),this.exitStates.unshift(i)}e(i,"hasContext")?s=t.pop():s=null,r.unshift(s)}this.contexts=r},addInitialStates:function(){var t=this.finalState,n;for(;;){n=e(t,"initialState")||"start",t=e(t,"states."+n);if(!t)break;this.finalState=t,this.enterStates.push(t),this.contexts.push(undefined)}},removeUnchangedContexts:function(e){while(this.enterStates.length>0){if(this.enterStates[0]!==this.exitStates[0])break;if(this.enterStates.length===this.contexts.length){if(e.getStateMeta(this.enterStates[0],"context")!==this.contexts[0])break;this.contexts.shift()}this.resolveState=this.enterStates.shift(),this.exitStates.shift()}}},Ember.StateManager=Ember.State.extend({init:function(){this._super(),t(this,"stateMeta",Ember.Map.create());var n=e(this,"initialState");!n&&e(this,"states.start")&&(n="start"),n&&this.transitionTo(n)},stateMetaFor:function(t){var n=e(this,"stateMeta"),r=n.get(t);return r||(r={},n.set(t,r)),r},setStateMeta:function(e,n,r){return t(this.stateMetaFor(e),n,r)},getStateMeta:function(t,n){return e(this.stateMetaFor(t),n)},currentState:null,currentPath:Ember.computed("currentState",function(){return e(this,"currentState.path")}).cacheable(),transitionEvent:"setup",errorOnUnhandledEvent:!0,send:function(t){var n,r;return n=[].slice.call(arguments,1),r=n,r.unshift(t,e(this,"currentState")),this.sendRecursively.apply(this,r)},sendRecursively:function(t,r){var i=this.enableLogging,s=r[t],o,u,a;o=[].slice.call(arguments,2);if(typeof s=="function")return i&&Ember.Logger.log(n("STATEMANAGER: Sending event '%@' to state %@.",[t,e(r,"path")])),a=o,a.unshift(this),s.apply(r,a);var f=e(r,"parentState");if(f)return u=o,u.unshift(t,f),this.sendRecursively.apply(this,u);if(e(this,"errorOnUnhandledEvent"))throw new Ember.Error(this.toString()+" could not respond to event "+t+" in state "+e(this,"currentState.path")+".")},getStateByPath:function(t,n){var r=n.split("."),i=t;for(var s=0,o=r.length;s0&&i[0]===s[0])o=i.shift(),s.shift();var u=t.pathsCache[n]={exitStates:s,enterStates:i,resolveState:o};return u},triggerSetupContext:function(t){var n=t.contexts,i=t.enterStates.length-n.length,s=t.enterStates,o=e(this,"transitionEvent");r.call(s,function(e,t){e.trigger(o,this,n[t-i])},this)},getState:function(t){var n=e(this,t),r=e(this,"parentState");if(n)return n;if(r)return r.getState(t)},enterState:function(n){var i=this.enableLogging,s=n.exitStates.slice(0).reverse();r.call(s,function(e){e.trigger("exit",this)},this),r.call(n.enterStates,function(t){i&&Ember.Logger.log("STATEMANAGER: Entering "+e(t,"path")),t.trigger("enter",this)},this),t(this,"currentState",n.finalState)}})}(),function(){}(),function(){var e=Ember.get;Ember._ResolvedState=Ember.Object.extend({manager:null,state:null,match:null,object:Ember.computed(function(t,n){if(arguments.length===2)return this._object=n,n;if(this._object)return this._object;var r=e(this,"state"),i=e(this,"match"),s=e(this,"manager");return r.deserialize(s,i.hash)}).property(),hasPromise:Ember.computed(function(){return Ember.canInvoke(e(this,"object"),"then")}).property("object"),promise:Ember.computed(function(){var t=e(this,"object");return Ember.canInvoke(t,"then")?t:{then:function(e){e(t)}}}).property("object"),transition:function(){var t=e(this,"manager"),n=e(this,"state.path"),r=e(this,"object");t.transitionTo(n,r)}})}(),function(){var e=Ember.get,t=function(e){var t=e.toString(),n=t.split("."),r=n[n.length-1];return Ember.String.underscore(r)+"_id"},n=function(e,t){for(var n in t){if(!t.hasOwnProperty(n))continue;if(e.hasOwnProperty(n))continue;e[n]=t[n]}};Ember.Routable=Ember.Mixin.create({init:function(){var t;this.on("setup",this,this.stashContext);if(t=e(this,"redirectsTo"))this.connectOutlets=function(e){e.transitionTo(t)};var n=e(this,"route");n===""&&(n="/"),this._super()},setup:function(){return this.connectOutlets.apply(this,arguments)},stashContext:function(t,n){this.router=t;var r=this.serialize(t,n);t.setStateMeta(this,"context",n),t.setStateMeta(this,"serialized",r),e(this,"isRoutable")&&!e(t,"isRouting")&&this.updateRoute(t,e(t,"location"))},updateRoute:function(t,n){if(e(this,"isLeafRoute")){var r=this.absoluteRoute(t);n.setURL(r)}},absoluteRoute:function(t,r){var i=e(this,"parentState"),s="",o;e(i,"isRoutable")&&(s=i.absoluteRoute(t,r));var u=e(this,"routeMatcher"),a=t.getStateMeta(this,"serialized");return r=r||{},n(r,a),o=u&&u.generate(r),o&&(s=s+"/"+o),s},isRoutable:Ember.computed(function(){return typeof e(this,"route")=="string"}).cacheable(),isLeafRoute:Ember.computed(function(){return e(this,"isLeaf")?!0:!e(this,"childStates").findProperty("isRoutable")}).cacheable(),routeMatcher:Ember.computed(function(){var t=e(this,"route");if(t)return Ember._RouteMatcher.create({route:t})}).cacheable(),hasContext:Ember.computed(function(){var t=e(this,"routeMatcher");if(t)return t.identifiers.length>0}).cacheable(),modelClass:Ember.computed(function(){var t=e(this,"modelType");return typeof t=="string"?Ember.get(window,t):t}).cacheable(),modelClassFor:function(t){var n,r,i,s,o;if(n=e(this,"modelClass"))return n;if(!t)return;r=e(this,"routeMatcher");if(!r)return;i=r.identifiers;if(i.length!==2)return;s=i[1].match(/^(.*)_id$/);if(!s)return;return o=Ember.String.classify(s[1]),e(t,o)},deserialize:function(n,r){var i,s,o;return(i=this.modelClassFor(e(n,"namespace")))?i.find(r[t(i)]):r},serialize:function(n,r){var i,s,o,u,a;if(Ember.empty(r))return"";if(i=this.modelClassFor(e(n,"namespace")))u=t(i),a=e(r,"id"),r={},r[u]=a;return r},resolvePath:function(t,n){if(e(this,"isLeafRoute"))return Ember.A();var r=e(this,"childStates"),i;r=Ember.A(r.filterProperty("isRoutable")),r=r.sort(function(t,n){var r=e(t,"routeMatcher.identifiers.length"),i=e(n,"routeMatcher.identifiers.length"),s=e(t,"route"),o=e(n,"route");return s.indexOf(o)===0?-1:o.indexOf(s)===0?1:r!==i?r-i:e(n,"route.length")-e(t,"route.length")});var s=r.find(function(t){var r=e(t,"routeMatcher");if(i=r.match(n))return!0}),o=Ember._ResolvedState.create({manager:t,state:s,match:i}),u=s.resolvePath(t,i.remaining);return Ember.A([o]).pushObjects(u)},routePath:function(t,n){function r(){i.forEach(function(e){e.transition()})}if(e(this,"isLeafRoute"))return;var i=this.resolvePath(t,n),s=i.some(function(t){return e(t,"hasPromise")});s?(t.transitionTo("loading"),t.handleStatePromises(i,r)):r()},unroutePath:function(t,n){var r=e(this,"parentState");if(r===t)return;n=n.replace(/^(?=[^\/])/,"/");var i=this.absoluteRoute(t),s=e(this,"route");if(s!=="/"){var o=n.indexOf(i),u=n.charAt(i.length);if(o===0&&(u==="/"||u===""))return}t.enterState({exitStates:[this],enterStates:[],finalState:r}),t.send("unroutePath",n)},parentTemplate:Ember.computed(function(){var t=this,n,r;while(t=e(t,"parentState"))if(r=e(t,"template"))return r;return"application"}).cacheable(),_template:Ember.computed(function(t,n){if(arguments.length>1)return n;if(n=e(this,"template"))return n;var r=this.constructor.toString(),i;if(/^[^\[].*Route$/.test(r))return i=r.match(/([^\.]+\.)*([^\.]+)/)[2],i=i.replace(/Route$/,""),i.charAt(0).toLowerCase()+i.substr(1)}).cacheable(),render:function(t){t=t||{};var n=t.template||e(this,"_template"),r=t.into||e(this,"parentTemplate"),i=e(this.router,r+"Controller"),s=Ember.String.classify(n)+"View",o=e(e(this.router,"namespace"),s);o=(o||Ember.View).extend({templateName:n}),i.set("view",o.create())},connectOutlets:Ember.K,navigateAway:Ember.K})}(),function(){Ember.Route=Ember.State.extend(Ember.Routable)}(),function(){var e=function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^\$|#\s]/g,"\\$&")};Ember._RouteMatcher=Ember.Object.extend({state:null,init:function(){var t=this.route,n=[],r=1,i;t.charAt(0)==="/"&&(t=this.route=t.substr(1)),i=e(t);var s=i.replace(/:([a-z_]+)(?=$|\/)/gi,function(e,t){return n[r++]=t,"([^/]+)"});this.identifiers=n,this.regex=new RegExp("^/?"+s)},match:function(e){var t=e.match(this.regex);if(t){var n=this.identifiers,r={};for(var i=1,s=n.length;i0?r:null}}},generate:function(e){var t=this.identifiers,n=this.route,r;for(var i=1,s=t.length;i"},v=function(){return""};if(i)u=function(e,t){var n=r.createRange(),i=r.getElementById(e.start),s=r.getElementById(e.end);return t?(n.setStartBefore(i),n.setEndAfter(s)):(n.setStartAfter(i),n.setEndBefore(s)),n},a=function(e,t){var n=u(this,t);n.deleteContents();var r=n.createContextualFragment(e);n.insertNode(r)},f=function(){var e=u(this,!0);e.deleteContents()},c=function(e){var t=r.createRange();t.setStart(e),t.collapse(!1);var n=t.createContextualFragment(this.outerHTML());e.appendChild(n)},h=function(e){var t=r.createRange(),n=r.getElementById(this.end);t.setStartAfter(n),t.setEndAfter(n);var i=t.createContextualFragment(e);t.insertNode(i)},p=function(e){var t=r.createRange(),n=r.getElementById(this.start);t.setStartAfter(n),t.setEndAfter(n);var i=t.createContextualFragment(e);t.insertNode(i)};else{var m={select:[1,""],fieldset:[1,"
","
"],table:[1,"
","
"],tbody:[2,"","
"],tr:[3,"","
"],colgroup:[2,"","
"],map:[1,"",""],_default:[0,"",""]},g=function(e,t){var n=m[e.tagName.toLowerCase()]||m._default,i=n[0],o=n[1],u=n[2];s&&(t="­"+t);var a=r.createElement("div");a.innerHTML=o+t+u;for(var f=0;f<=i;f++)a=a.firstChild;if(s){var l=a;while(l.nodeType===1&&!l.nodeName)l=l.firstChild;l.nodeType===3&&l.nodeValue.charAt(0)==="­"&&(l.nodeValue=l.nodeValue.slice(1))}return a},y=function(e){while(e.parentNode.tagName==="")e=e.parentNode;return e},b=function(e,t){e.parentNode!==t.parentNode&&t.parentNode.insertBefore(e,t.parentNode.firstChild)};a=function(e,t){var n=y(r.getElementById(this.start)),i=r.getElementById(this.end),s=i.parentNode,o,u,a;b(n,i),o=n.nextSibling;while(o){u=o.nextSibling,a=o===i;if(a){if(!t)break;i=o.nextSibling}o.parentNode.removeChild(o);if(a)break;o=u}o=g(n.parentNode,e);while(o)u=o.nextSibling,s.insertBefore(o,i),o=u},f=function(){var e=y(r.getElementById(this.start)),t=r.getElementById(this.end);this.html(""),e.parentNode.removeChild(e),t.parentNode.removeChild(t)},c=function(e){var t=g(e,this.outerHTML());while(t)nextSibling=t.nextSibling,e.appendChild(t),t=nextSibling},h=function(e){var t=r.getElementById(this.end),n=t.nextSibling,i=t.parentNode,s,o;o=g(i,e);while(o)s=o.nextSibling,i.insertBefore(o,n),o=s},p=function(e){var t=r.getElementById(this.start),n=t.parentNode,i,s;s=g(n,e);var o=t.nextSibling;while(s)i=s.nextSibling,n.insertBefore(s,o),s=i}}o.prototype.html=function(e){this.checkRemoved();if(e===undefined)return this.innerHTML;a.call(this,e),this.innerHTML=e},o.prototype.replaceWith=function(e){this.checkRemoved(),a.call(this,e,!0)},o.prototype.remove=f,o.prototype.outerHTML=l,o.prototype.appendTo=c,o.prototype.after=h,o.prototype.prepend=p,o.prototype.startTag=d,o.prototype.endTag=v,o.prototype.isRemoved=function(){var e=r.getElementById(this.start),t=r.getElementById(this.end);return!e||!t},o.prototype.checkRemoved=function(){if(this.isRemoved())throw new Error("Cannot perform operations on a Metamorph that is not in the DOM.")},e.Metamorph=o})(this)}(),function(){var e=Ember.create;Ember.Handlebars=e(Handlebars),Ember.Handlebars.helpers=e(Handlebars.helpers),Ember.Handlebars.Compiler=function(){},Handlebars.Compiler&&(Ember.Handlebars.Compiler.prototype=e(Handlebars.Compiler.prototype)),Ember.Handlebars.Compiler.prototype.compiler=Ember.Handlebars.Compiler,Ember.Handlebars.JavaScriptCompiler=function(){},Handlebars.JavaScriptCompiler&&(Ember.Handlebars.JavaScriptCompiler.prototype=e(Handlebars.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+");"},Ember.Handlebars.Compiler.prototype.mustache=function(e){if(e.params.length||e.hash)return Handlebars.Compiler.prototype.mustache.call(this,e);var t=new Handlebars.AST.IdNode(["_triageMustache"]);return e.escaped||(e.hash=e.hash||new Handlebars.AST.HashNode([]),e.hash.pairs.push(["unescaped",new Handlebars.AST.StringNode("true")])),e=new Handlebars.AST.MustacheNode([t].concat([e.id]),e.hash,!e.escaped),Handlebars.Compiler.prototype.mustache.call(this,e)},Ember.Handlebars.precompile=function(e){var t=Handlebars.parse(e),n={knownHelpers:{action:!0,unbound:!0,bindAttr:!0,template:!0,view:!0,_triageMustache:!0},data:!0,stringParams:!0},r=(new Ember.Handlebars.Compiler).compile(t,n);return(new Ember.Handlebars.JavaScriptCompiler).compile(r,n,undefined,!0)},Handlebars.compile&&(Ember.Handlebars.compile=function(e){var t=Handlebars.parse(e),n={data:!0,stringParams:!0},r=(new Ember.Handlebars.Compiler).compile(t,n),i=(new Ember.Handlebars.JavaScriptCompiler).compile(r,n,undefined,!0);return Handlebars.template(i)});var t=Ember.Handlebars.normalizePath=function(e,t,n){var r=n&&n.keywords||{},i,s;return i=t.split(".",1)[0],r.hasOwnProperty(i)&&(e=r[i],s=!0,t===i?t="":t=t.substr(i.length+1)),{root:e,path:t,isKeyword:s}};Ember.Handlebars.getPath=function(e,n,r){var i=r&&r.data,s=t(e,n,i),o;return e=s.root,n=s.path,o=Ember.get(e,n),o===undefined&&e!==window&&Ember.isGlobalPath(n)&&(o=Ember.get(window,n)),o},Ember.Handlebars.registerHelper("helperMissing",function(e,t){var n,r="";throw n="%@ Handlebars error: Could not find property '%@' on object %@.",t.data&&(r=t.data.view),new Ember.Error(Ember.String.fmt(n,[r,e,this]))})}(),function(){Ember.String.htmlSafe=function(e){return new Handlebars.SafeString(e)};var e=Ember.String.htmlSafe;Ember.EXTEND_PROTOTYPES&&(String.prototype.htmlSafe=function(){return e(this)})}(),function(){var e=Ember.set,t=Ember.get,n={remove:function(e){e.morph.remove()},prepend:function(e,t){e.morph.prepend(t)},after:function(e,t){e.morph.after(t)},html:function(e,t){e.morph.html(t)},replace:function(e){var n=e.morph;e.transitionTo("preRender"),e.clearRenderedChildren();var r=e.renderToBuffer();Ember.run.schedule("render",this,function(){if(t(e,"isDestroyed"))return;e.invalidateRecursively("element"),e._notifyWillInsertElement(),n.replaceWith(r.string()),e.transitionTo("inDOM"),e._notifyDidInsertElement()})},empty:function(e){e.morph.html("")}};Ember._Metamorph=Ember.Mixin.create({isVirtual:!0,tagName:"",init:function(){this._super(),this.morph=Metamorph()},beforeRender:function(e){e.push(this.morph.startTag())},afterRender:function(e){e.push(this.morph.endTag())},createElement:function(){var e=this.renderToBuffer();this.outerHTML=e.string(),this.clearBuffer()},domManager:n}),Ember._MetamorphView=Ember.View.extend(Ember._Metamorph)}(),function(){var e=Ember.get,t=Ember.set,n=Ember.Handlebars.getPath;Ember._HandlebarsBoundView=Ember._MetamorphView.extend({shouldDisplayFunc:null,preserveContext:!1,previousContext:null,displayTemplate:null,inverseTemplate:null,path:null,pathRoot:null,normalizedValue:Ember.computed(function(){var t=e(this,"path"),r=e(this,"pathRoot"),i=e(this,"valueNormalizerFunc"),s,o;return t===""?s=r:(o=e(this,"templateData"),s=n(r,t,{data:o})),i?i(s):s}).property("path","pathRoot","valueNormalizerFunc").volatile(),rerenderIfNeeded:function(){!e(this,"isDestroyed")&&e(this,"normalizedValue")!==this._lastNormalizedValue&&this.rerender()},render:function(n){var r=e(this,"isEscaped"),i=e(this,"shouldDisplayFunc"),s=e(this,"preserveContext"),o=e(this,"previousContext"),u=e(this,"inverseTemplate"),a=e(this,"displayTemplate"),f=e(this,"normalizedValue");this._lastNormalizedValue=f;if(i(f)){t(this,"template",a);if(s)t(this,"_context",o);else{if(!a){f===null||f===undefined?f="":f instanceof Handlebars.SafeString||(f=String(f)),r&&(f=Handlebars.Utils.escapeExpression(f)),n.push(f);return}t(this,"_context",f)}}else u?(t(this,"template",u),s?t(this,"_context",o):t(this,"_context",f)):t(this,"template",function(){return""});return this._super(n)}})}(),function(){function e(e,t,n,r,o){var u=t.data,a=t.fn,f=t.inverse,l=u.view,c=this,h,p,d;d=s(c,e,u),h=d.root,p=d.path;if("object"==typeof this){var v=l.createChildView(Ember._HandlebarsBoundView,{preserveContext:n,shouldDisplayFunc:r,valueNormalizerFunc:o,displayTemplate:a,inverseTemplate:f,path:p,pathRoot:h,previousContext:c,isEscaped:!t.hash.unescaped,templateData:t.data});l.appendChild(v);var m=function(){Ember.run.scheduleOnce("render",v,"rerenderIfNeeded")};p!==""&&Ember.addObserver(h,p,m)}else u.buffer.push(i(h,p,t))}var t=Ember.get,n=Ember.set,r=Ember.String.fmt,i=Ember.Handlebars.getPath,s=Ember.Handlebars.normalizePath,o=Ember.ArrayPolyfills.forEach,u=Ember.Handlebars,a=u.helpers;u.registerHelper("_triageMustache",function(e,t){return a[e]?a[e].call(this,t):a.bind.apply(this,arguments)}),u.registerHelper("bind",function(t,n){var r=n.contexts&&n.contexts[0]||this;return e.call(r,t,n,!1,function(e){return!Ember.none(e)})}),u.registerHelper("boundIf",function(n,r){var i=r.contexts&&r.contexts[0]||this,s=function(e){return Ember.typeOf(e)==="array"?t(e,"length")!==0:!!e};return e.call(i,n,r,!0,s,s)}),u.registerHelper("with",function(t,n){if(arguments.length===4){var r,i,o,u;n=arguments[3],r=arguments[2],i=arguments[0];if(Ember.isGlobalPath(i))Ember.bind(n.data.keywords,r,i);else{u=s(this,i,n.data),i=u.path,o=u.root;var f=Ember.$.expando+Ember.guidFor(o);n.data.keywords[f]=o;var l=i?f+"."+i:f;Ember.bind(n.data.keywords,r,l)}return e.call(this,i,n,!0,function(e){return!Ember.none(e)})}return a.bind.call(n.contexts[0],t,n)}),u.registerHelper("if",function(e,t){return a.boundIf.call(t.contexts[0],e,t)}),u.registerHelper("unless",function(e,t){var n=t.fn,r=t.inverse;return t.fn=r,t.inverse=n,a.boundIf.call(t.contexts[0],e,t)}),u.registerHelper("bindAttr",function(e){var t=e.hash,n=e.data.view,r=[],a=this,f=++Ember.$.uuid,l=t["class"];if(l!==null&&l!==undefined){var c=u.bindClasses(this,l,n,f,e);r.push('class="'+Handlebars.Utils.escapeExpression(c.join(" "))+'"'),delete t["class"]}var h=Ember.keys(t);return o.call(h,function(o){var u=t[o],l,c;c=s(a,u,e.data),l=c.root,u=c.path;var h=u==="this"?l:i(l,u,e),p=Ember.typeOf(h),d,v;d=function(){var t=i(l,u,e),r=n.$("[data-bindattr-"+f+"='"+f+"']");if(!r||r.length===0){Ember.removeObserver(l,u,v);return}Ember.View.applyAttributeBindings(r,o,t)},v=function(){Ember.run.scheduleOnce("render",d)},u!=="this"&&Ember.addObserver(l,u,v),p==="string"||p==="number"&&!isNaN(h)?r.push(o+'="'+Handlebars.Utils.escapeExpression(h)+'"'):h&&p==="boolean"&&r.push(o+'="'+o+'"')},this),r.push("data-bindattr-"+f+'="'+f+'"'),new u.SafeString(r.join(" "))}),u.bindClasses=function(e,t,n,r,u){var a=[],f,l,c,h=function(e,t,n){var r,s=t.path;return s==="this"?r=e:s===""?r=!0:r=i(e,s,n),Ember.View._classStringForValue(s,r,t.className,t.falsyClassName)};return o.call(t.split(" "),function(t){var i,o,p,d=Ember.View._parsePropertyPath(t),v=d.path,m=e,g;v!==""&&v!=="this"&&(g=s(e,v,u.data),m=g.root,v=g.path),o=function(){f=h(m,d,u),c=r?n.$("[data-bindattr-"+r+"='"+r+"']"):n.$(),!c||c.length===0?Ember.removeObserver(m,v,p):(i&&c.removeClass(i),f?(c.addClass(f),i=f):i=null)},p=function(){Ember.run.scheduleOnce("render",o)},v!==""&&v!=="this"&&Ember.addObserver(m,v,p),l=h(m,d,u),l&&(a.push(l),i=l)}),a}}(),function(){var e=Ember.get,t=Ember.set,n=/^parentView\./,r=Ember.Handlebars,i=Ember.VIEW_PRESERVES_CONTEXT;r.ViewHelper=Ember.Object.create({propertiesFromHTMLOptions:function(e,t){var n=e.hash,r=e.data,i={},s=n["class"],o=!1;n.id&&(i.elementId=n.id,o=!0),s&&(s=s.split(" "),i.classNames=s,o=!0),n.classBinding&&(i.classNameBindings=n.classBinding.split(" "),o=!0),n.classNameBindings&&(i.classNameBindings===undefined&&(i.classNameBindings=[]),i.classNameBindings=i.classNameBindings.concat(n.classNameBindings.split(" ")),o=!0),n.attributeBindings&&(i.attributeBindings=null,o=!0),o&&(n=Ember.$.extend({},n),delete n.id,delete n["class"],delete n.classBinding);var u;for(var a in n){if(!n.hasOwnProperty(a))continue;Ember.IS_BINDING.test(a)&&typeof n[a]=="string"&&(u=this.contextualizeBindingPath(n[a],r),u&&(n[a]=u))}if(i.classNameBindings)for(var f in i.classNameBindings){var l=i.classNameBindings[f];if(typeof l=="string"){var c=Ember.View._parsePropertyPath(l);u=this.contextualizeBindingPath(c.path,r),u&&(i.classNameBindings[f]=u+c.classNames)}}return i.bindingContext=t,Ember.$.extend(n,i)},contextualizeBindingPath:function(e,t){var n=Ember.Handlebars.normalizePath(null,e,t);return n.isKeyword?"templateData.keywords."+e:Ember.isGlobalPath(e)?null:e==="this"?"bindingContext":"bindingContext."+e},helper:function(e,t,n){var s=n.inverse,o=n.data,u=o.view,a=n.fn,f=n.hash,l;"string"==typeof t?l=r.getPath(e,t,n):l=t;var c=this.propertiesFromHTMLOptions(n,e),h=o.view;c.templateData=n.data,a&&(c.template=a),i&&!l.proto().controller&&!l.proto().controllerBinding&&!c.controller&&!c.controllerBinding&&(c._context=e),h.appendChild(l,c)}}),r.registerHelper("view",function(e,t){return e&&e.data&&e.data.isRenderData&&(t=e,e="Ember.View"),r.ViewHelper.helper(this,e,t)})}(),function(){var e=Ember.get,t=Ember.Handlebars.getPath,n=Ember.String.fmt;Ember.Handlebars.registerHelper("collection",function(n,r){n&&n.data&&n.data.isRenderData&&(r=n,n=undefined);var i=r.fn,s=r.data,o=r.inverse,u;u=n?t(this,n,r):Ember.CollectionView;var a=r.hash,f={},l,c,h=a.itemViewClass,p=u.proto();delete a.itemViewClass,c=h?t(p,h,r):p.itemViewClass;for(var d in a)a.hasOwnProperty(d)&&(l=d.match(/^item(.)(.*)$/),l&&(f[l[1].toLowerCase()+l[2]]=a[d],delete a[d]));var v=a.tagName||p.tagName;i&&(f.template=i,delete r.fn);var m;o&&o!==Handlebars.VM.noop?(m=e(p,"emptyViewClass"),m=m.extend({template:o,tagName:f.tagName})):a.emptyViewClass&&(m=t(this,a.emptyViewClass,r)),a.emptyView=m,a.eachHelper==="each"&&(f._context=Ember.computed(function(){return e(this,"content")}).property("content"),delete a.eachHelper);var g=Ember.Handlebars.ViewHelper.propertiesFromHTMLOptions({data:s,hash:f},this);return a.itemViewClass=c.extend(g),Ember.Handlebars.helpers.view.call(this,u,r)})}(),function(){var e=Ember.Handlebars.getPath;Ember.Handlebars.registerHelper("unbound",function(t,n){var r=n.contexts&&n.contexts[0]||this;return e(r,t,n)})}(),function(){var e=Ember.Handlebars.getPath,t=Ember.Handlebars.normalizePath;Ember.Handlebars.registerHelper("log",function(n,r){var i=r.contexts&&r.contexts[0]||this,s=t(i,n,r.data),o=s.root,u=s.path,a=u==="this"?o:e(o,u,r);Ember.Logger.log(a)}),Ember.Handlebars.registerHelper("debugger",function(){debugger})}(),function( -){var e=Ember.get,t=Ember.set;Ember.Handlebars.EachView=Ember.CollectionView.extend(Ember._Metamorph,{itemViewClass:Ember._MetamorphView,emptyViewClass:Ember._MetamorphView,createChildView:function(n,r){n=this._super(n,r);var i=e(this,"keyword");if(i){var s=e(n,"templateData");s=Ember.copy(s),s.keywords=n.cloneKeywords(),t(n,"templateData",s);var o=e(n,"content");s.keywords[i]=o}return n}}),Ember.Handlebars.registerHelper("each",function(e,t){if(arguments.length===4){var n=arguments[0];t=arguments[3],e=arguments[2],e===""&&(e="this"),t.hash.keyword=n}else t.hash.eachHelper="each";return t.hash.contentBinding=e,Ember.Handlebars.helpers.collection.call(this,"Ember.Handlebars.EachView",t)})}(),function(){Ember.Handlebars.registerHelper("template",function(e,t){var n=Ember.TEMPLATES[e];Ember.TEMPLATES[e](this,{data:t.data})})}(),function(){var e=Ember.Handlebars,t=e.getPath,n=Ember.get,r=Array.prototype.slice,i=e.ActionHelper={registeredActions:{}};i.registerAction=function(e,t){var n=(++Ember.$.uuid).toString();return i.registeredActions[n]={eventName:t.eventName,handler:function(n){var r=n.shiftKey||n.metaKey||n.altKey||n.ctrlKey,i=n.which>1,s=r||i;if(t.link&&s)return;n.preventDefault(),n.view=t.view,t.hasOwnProperty("context")&&(n.context=t.context),t.hasOwnProperty("contexts")&&(n.contexts=t.contexts);var o=t.target;return o.isState&&typeof o.send=="function"?o.send(e,n):o[e].call(o,n)}},t.view.on("willRerender",function(){delete i.registeredActions[n]}),n},e.registerHelper("action",function(s){var o=arguments[arguments.length-1],u=r.call(arguments,1,-1),a=o.hash,f=o.data.view,l,c,h,p={eventName:a.on||"click"};p.view=f=n(f,"concreteView");if(a.target)l=t(this,a.target,o);else if(c=o.data.keywords.controller)l=n(c,"target");p.target=l=l||f,u.length&&(p.contexts=u=Ember.EnumerableUtils.map(u,function(e){return t(this,e,o)},this),p.context=u[0]);var d=[],v;a.href&&l.urlForEvent&&(v=l.urlForEvent.apply(l,[s].concat(u)),d.push('href="'+v+'"'),p.link=!0);var m=i.registerAction(s,p);return d.push('data-ember-action="'+m+'"'),new e.SafeString(d.join(" "))})}(),function(){var e=Ember.get,t=Ember.set;Ember.Handlebars.registerHelper("yield",function(t){var n=t.data.view,r;while(n&&!e(n,"layout"))n=e(n,"parentView");r=e(n,"template"),r&&r(this,t)})}(),function(){Ember.Handlebars.OutletView=Ember.ContainerView.extend(Ember._Metamorph),Ember.Handlebars.registerHelper("outlet",function(e,t){return e&&e.data&&e.data.isRenderData&&(t=e,e="view"),t.hash.currentViewBinding="controller."+e,Ember.Handlebars.helpers.view.call(this,Ember.Handlebars.OutletView,t)})}(),function(){}(),function(){}(),function(){var e=Ember.set,t=Ember.get;Ember.Checkbox=Ember.View.extend({classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","disabled","tabindex"],type:"checkbox",checked:!1,disabled:!1,init:function(){this._super(),this.on("change",this,this._updateElementValue)},_updateElementValue:function(){e(this,"checked",this.$().prop("checked"))}})}(),function(){var e=Ember.get,t=Ember.set;Ember.TextSupport=Ember.Mixin.create({value:"",attributeBindings:["placeholder","disabled","maxlength","tabindex"],placeholder:null,disabled:!1,maxlength:null,insertNewline:Ember.K,cancel:Ember.K,init:function(){this._super(),this.on("focusOut",this,this._elementValueDidChange),this.on("change",this,this._elementValueDidChange),this.on("keyUp",this,this.interpretKeyEvents)},interpretKeyEvents:function(e){var t=Ember.TextSupport.KEY_EVENTS,n=t[e.keyCode];this._elementValueDidChange();if(n)return this[n](e)},_elementValueDidChange:function(){t(this,"value",this.$().val())}}),Ember.TextSupport.KEY_EVENTS={13:"insertNewline",27:"cancel"}}(),function(){var e=Ember.get,t=Ember.set;Ember.TextField=Ember.View.extend(Ember.TextSupport,{classNames:["ember-text-field"],tagName:"input",attributeBindings:["type","value","size"],value:"",type:"text",size:null})}(),function(){var e=Ember.get,t=Ember.set;Ember.Button=Ember.View.extend(Ember.TargetActionSupport,{classNames:["ember-button"],classNameBindings:["isActive"],tagName:"button",propagateEvents:!1,attributeBindings:["type","disabled","href","tabindex"],targetObject:Ember.computed(function(){var t=e(this,"target"),n=e(this,"context"),r=e(this,"templateData");return typeof t!="string"?t:Ember.Handlebars.getPath(n,t,{data:r})}).property("target").cacheable(),type:Ember.computed(function(e,t){var n=this.get("tagName");t!==undefined&&(this._type=t);if(this._type!==undefined)return this._type;if(n==="input"||n==="button")return"button"}).property("tagName").cacheable(),disabled:!1,href:Ember.computed(function(){return this.get("tagName")==="a"?"#":null}).property("tagName").cacheable(),mouseDown:function(){return e(this,"disabled")||(t(this,"isActive",!0),this._mouseDown=!0,this._mouseEntered=!0),e(this,"propagateEvents")},mouseLeave:function(){this._mouseDown&&(t(this,"isActive",!1),this._mouseEntered=!1)},mouseEnter:function(){this._mouseDown&&(t(this,"isActive",!0),this._mouseEntered=!0)},mouseUp:function(n){return e(this,"isActive")&&(this.triggerAction(),t(this,"isActive",!1)),this._mouseDown=!1,this._mouseEntered=!1,e(this,"propagateEvents")},keyDown:function(e){(e.keyCode===13||e.keyCode===32)&&this.mouseDown()},keyUp:function(e){(e.keyCode===13||e.keyCode===32)&&this.mouseUp()},touchStart:function(e){return this.mouseDown(e)},touchEnd:function(e){return this.mouseUp(e)},init:function(){this._super()}})}(),function(){var e=Ember.get,t=Ember.set;Ember.TextArea=Ember.View.extend(Ember.TextSupport,{classNames:["ember-text-area"],tagName:"textarea",attributeBindings:["rows","cols"],rows:null,cols:null,_updateElementValue:Ember.observer(function(){var t=e(this,"value"),n=this.$();n&&t!==n.val()&&n.val(t)},"value"),init:function(){this._super(),this.on("didInsertElement",this,this._updateElementValue)}})}(),function(){Ember.TabContainerView=Ember.View.extend({init:function(){this._super()}})}(),function(){var e=Ember.get;Ember.TabPaneView=Ember.View.extend({tabsContainer:Ember.computed(function(){return this.nearestInstanceOf(Ember.TabContainerView)}).property().volatile(),isVisible:Ember.computed(function(){return e(this,"viewName")===e(this,"tabsContainer.currentView")}).property("tabsContainer.currentView").volatile(),init:function(){this._super()}})}(),function(){var e=Ember.get,t=Ember.setPath;Ember.TabView=Ember.View.extend({tabsContainer:Ember.computed(function(){return this.nearestInstanceOf(Ember.TabContainerView)}).property().volatile(),mouseUp:function(){t(this,"tabsContainer.currentView",e(this,"value"))},init:function(){this._super()}})}(),function(){}(),function(){var e=Ember.set,t=Ember.get,n=Ember.EnumerableUtils.indexOf,r=Ember.EnumerableUtils.indexesOf;Ember.Select=Ember.View.extend({tagName:"select",classNames:["ember-select"],defaultTemplate:Ember.Handlebars.compile('{{#if view.prompt}}{{/if}}{{#each view.content}}{{view Ember.SelectOption contentBinding="this"}}{{/each}}'),attributeBindings:["multiple","tabindex"],multiple:!1,content:null,selection:null,value:Ember.computed(function(e,n){if(arguments.length===2)return n;var r=t(this,"optionValuePath").replace(/^content\.?/,"");return r?t(this,"selection."+r):t(this,"selection")}).property("selection").cacheable(),prompt:null,optionLabelPath:"content",optionValuePath:"content",_change:function(){t(this,"multiple")?this._changeMultiple():this._changeSingle()},selectionDidChange:Ember.observer(function(){var n=t(this,"selection"),r=Ember.isArray(n);if(t(this,"multiple")){if(!r){e(this,"selection",Ember.A([n]));return}this._selectionDidChangeMultiple()}else this._selectionDidChangeSingle()},"selection"),valueDidChange:Ember.observer(function(){var e=t(this,"content"),n=t(this,"value"),r=t(this,"optionValuePath").replace(/^content\.?/,""),i=r?t(this,"selection."+r):t(this,"selection"),s;n!==i&&(s=e.find(function(e){return n===(r?t(e,r):e)}),this.set("selection",s))},"value"),_triggerChange:function(){var e=t(this,"selection"),n=t(this,"value");e&&this.selectionDidChange(),n&&this.valueDidChange(),this._change()},_changeSingle:function(){var n=this.$()[0].selectedIndex,r=t(this,"content"),i=t(this,"prompt");if(!r)return;if(i&&n===0){e(this,"selection",null);return}i&&(n-=1),e(this,"selection",r.objectAt(n))},_changeMultiple:function(){var n=this.$("option:selected"),r=t(this,"prompt"),i=r?1:0,s=t(this,"content");if(!s)return;if(n){var o=n.map(function(){return this.index-i}).toArray();e(this,"selection",s.objectsAt(o))}},_selectionDidChangeSingle:function(){var e=this.get("element");if(!e)return;var r=t(this,"content"),i=t(this,"selection"),s=r?n(r,i):-1,o=t(this,"prompt");o&&(s+=1),e&&(e.selectedIndex=s)},_selectionDidChangeMultiple:function(){var e=t(this,"content"),i=t(this,"selection"),s=e?r(e,i):[-1],o=t(this,"prompt"),u=o?1:0,a=this.$("option"),f;a&&a.each(function(){f=this.index>-1?this.index-u:-1,this.selected=n(s,f)>-1})},init:function(){this._super(),this.on("didInsertElement",this,this._triggerChange),this.on("change",this,this._change)}}),Ember.SelectOption=Ember.View.extend({tagName:"option",attributeBindings:["value","selected"],defaultTemplate:function(e,t){t={data:t.data,hash:{}},Ember.Handlebars.helpers.bind.call(e,"view.label",t)},init:function(){this.labelPathDidChange(),this.valuePathDidChange(),this._super()},selected:Ember.computed(function(){var e=t(this,"content"),r=t(this,"parentView.selection");return t(this,"parentView.multiple")?r&&n(r,e.valueOf())>-1:e==r}).property("content","parentView.selection").volatile(),labelPathDidChange:Ember.observer(function(){var e=t(this,"parentView.optionLabelPath");if(!e)return;Ember.defineProperty(this,"label",Ember.computed(function(){return t(this,e)}).property(e).cacheable())},"parentView.optionLabelPath"),valuePathDidChange:Ember.observer(function(){var e=t(this,"parentView.optionValuePath");if(!e)return;Ember.defineProperty(this,"value",Ember.computed(function(){return t(this,e)}).property(e).cacheable())},"parentView.optionValuePath")})}(),function(){}(),function(){function e(){Ember.Handlebars.bootstrap(Ember.$(document))}Ember.Handlebars.bootstrap=function(e){var t='script[type="text/x-handlebars"], script[type="text/x-raw-handlebars"]';Ember.$(t,e).each(function(){var e=Ember.$(this),t=e.attr("type"),n=e.attr("type")==="text/x-raw-handlebars"?Ember.$.proxy(Handlebars.compile,Handlebars):Ember.$.proxy(Ember.Handlebars.compile,Ember.Handlebars),r=e.attr("data-template-name")||e.attr("id")||"application",i=n(e.html());Ember.TEMPLATES[r]=i,e.remove()})},Ember.onLoad("application",e)}(),function(){}(),function(){}(),ansiparse=function(e){var t=null,n=null,r="",i=[],s=[],o={};for(var u=0;u-1?t.split(".")[1].length:0):e=isNaN(t=Q(t))?2:t;var t=e,r=r===void 0?s.decimalPoint:r,i=i===void 0?s.thousandsSep:i,s=o<0?"-":"",e=String(n(o=Q(+o||0).toFixed(t))),u=e.length>3?e.length%3:0;return s+(u?e.substr(0,u)+i:"")+e.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+i)+(t?r+Q(o-e).toFixed(t).slice(2):"")}function y(e,t){return Array((t||2)+1-String(e).length).join(0)+e}function b(e,t,n,r){var i,n=p(n,1);i=e/n,t||(t=[1,2,2.5,5,10],r&&r.allowDecimals===!1&&(n===1?t=[1,2,5,10]:n<=.1&&(t=[1/n])));for(r=0;r=yt[Tt]&&(f.setMilliseconds(0),f.setSeconds(n>=yt[Nt]?0:l*V(f.getSeconds()/l))),n>=yt[Nt]&&f[Ft](n>=yt[Ct]?0:l*V(f[_t]()/l)),n>=yt[Ct]&&f[It](n>=yt[kt]?0:l*V(f[Dt]()/l)),n>=yt[kt]&&f[qt](n>=yt[At]?1:l*V(f[Ht]()/l)),n>=yt[At]&&(f[Rt](n>=yt[Ot]?0:l*V(f[Bt]()/l)),a=f[jt]()),n>=yt[Ot]&&(a-=a%l,f[Ut](a)),n===yt[Lt]&&f[qt](f[Ht]()-f[Pt]()+p(i,1)),i=1,a=f[jt]();for(var c=f.getTime(),h=f[Bt](),d=f[Ht](),f=u?0:(864e5+f.getTimezoneOffset()*6e4)%864e5;cn&&(n=e[t]);return n}function C(e,t){for(var n in e)e[n]&&e[n]!==t&&e[n].destroy&&e[n].destroy(),delete e[n]}function k(e){pt||(pt=v(wt)),e&&pt.appendChild(e),pt.innerHTML=""}function L(e,t){var n="Highcharts error #"+e+": www.highcharts.com/errors/"+e;if(t)throw n;z.console&&console.log(n)}function A(e){return parseFloat(e.toPrecision(14))}function O(e,t){mt=p(e,t.animation)}function M(){var e=dt.global.useUTC,t=e?"getUTC":"get",n=e?"setUTC":"set";Mt=e?Date.UTC:function(e,t,n,r,i,s){return(new Date(e,t,p(n,1),p(r,0),p(i,0),p(s,0))).getTime()},_t=t+"Minutes",Dt=t+"Hours",Pt=t+"Day",Ht=t+"Date",Bt=t+"Month",jt=t+"FullYear",Ft=n+"Minutes",It=n+"Hours",qt=n+"Date",Rt=n+"Month",Ut=n+"FullYear"}function _(){}function D(e,t,n){this.axis=e,this.pos=t,this.type=n||"",this.isNew=!0,n||this.addLabel()}function P(e,t){return this.axis=e,t&&(this.options=t,this.id=t.id),this}function H(e,t,n,r,i){var s=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t,this.x=r,this.stack=i,this.alignOptions={align:t.align||(s?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(s?"middle":n?"bottom":"top"),y:p(t.y,s?4:n?14:-6),x:p(t.x,s?n?-6:6:0)},this.textAlign=t.textAlign||(s?n?"right":"left":"center")}function B(){this.init.apply(this,arguments)}function j(e,t){var r=t.borderWidth,i=t.style,s=t.shared,o=n(i.padding);this.chart=e,this.options=t,i.padding=0,this.crosshairs=[],this.currentY=this.currentX=0,this.tooltipIsHidden=!0,this.label=e.renderer.label("",0,0,null,null,null,t.useHTML,null,"tooltip").attr({padding:o,fill:t.backgroundColor,"stroke-width":r,r:t.borderRadius,zIndex:8}).css(i).hide().add(),at||this.label.shadow(t.shadow),this.shared=s}function F(e,t){var n=at?"":t.chart.zoomType;this.zoomX=/x/.test(n),this.zoomY=/y/.test(n),this.options=t,this.chart=e,this.init(e,t.tooltip)}function I(e){this.init(e)}function q(e,t){var n,r=e.series;e.series=null,n=Yt(dt,e),n.series=e.series=r;var r=n.chart,s=r.margin,s=i(s)?s:[s,s,s,s];this.optionsMarginTop=p(r.marginTop,s[0]),this.optionsMarginRight=p(r.marginRight,s[1]),this.optionsMarginBottom=p(r.marginBottom,s[2]),this.optionsMarginLeft=p(r.marginLeft,s[3]),this.runChartClick=(s=r.events)&&!!s.click,this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=r.showAxes,this.init(s)}var R,U=document,z=window,W=Math,X=W.round,V=W.floor,$=W.ceil,J=W.max,K=W.min,Q=W.abs,G=W.cos,Y=W.sin,Z=W.PI,et=Z*2/360,tt=navigator.userAgent,nt=/msie/i.test(tt)&&!z.opera,rt=U.documentMode===8,it=/AppleWebKit/.test(tt),st=/Firefox/.test(tt),ot=!!U.createElementNS&&!!U.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,ut=st&&parseInt(tt.split("Firefox/")[1],10)<4,at=!ot&&!nt&&!!U.createElement("canvas").getContext,ft,lt=U.documentElement.ontouchstart!==R,ct={},ht=0,pt,dt,vt,mt,gt,yt,bt=function(){},wt="div",Et="none",St="rgba(192,192,192,"+(ot?1e-6:.002)+")",xt="millisecond",Tt="second",Nt="minute",Ct="hour",kt="day",Lt="week",At="month",Ot="year",Mt,_t,Dt,Pt,Ht,Bt,jt,Ft,It,qt,Rt,Ut,zt={};z.Highcharts={},vt=function(e,t,n){if(!l(t)||isNaN(t))return"Invalid date";var e=p(e,"%Y-%m-%d %H:%M:%S"),r=new Date(t),i,s=r[Dt](),o=r[Pt](),u=r[Ht](),a=r[Bt](),f=r[jt](),c=dt.lang,h=c.weekdays,t={a:h[o].substr(0,3),A:h[o],d:y(u),e:u,b:c.shortMonths[a],B:c.months[a],m:y(a+1),y:f.toString().substr(2,2),Y:f,H:y(s),I:y(s%12||12),l:s%12||12,M:y(r[_t]()),p:s<12?"AM":"PM",P:s<12?"am":"pm",S:y(r.getSeconds()),L:y(X(t%1e3),3)};for(i in t)e=e.replace("%"+i,t[i]);return n?e.substr(0,1).toUpperCase()+e.substr(1):e},S.prototype={wrapColor:function(e){this.color>=e&&(this.color=0)},wrapSymbol:function(e){this.symbol>=e&&(this.symbol=0)}},yt=t(xt,1,Tt,1e3,Nt,6e4,Ct,36e5,kt,864e5,Lt,6048e5,At,2592e6,Ot,31556952e3),gt={init:function(e,t,n){var t=t||"",r=e.shift,i=t.indexOf("C")>-1,s=i?7:3,o,t=t.split(" "),n=[].concat(n),u,a,f=function(e){for(o=e.length;o--;)e[o]==="M"&&e.splice(o+1,0,e[o+1],e[o+2],e[o+1],e[o+2])};i&&(f(t),f(n)),e.isArea&&(u=t.splice(t.length-6,6),a=n.splice(n.length-6,6));if(r<=n.length/s)for(;r--;)n=[].concat(n).splice(0,s).concat(n);e.shift=0;if(t.length)for(e=n.length;t.length{point.key}
',pointFormat:'{series.name}: {point.y}
',shadow:!0,shared:at,snap:lt?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var fn=dt.plotOptions,Wt=fn.line;M();var ln=function(e){var t=[],r;return function(e){(r=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(e))?t=[n(r[1]),n(r[2]),n(r[3]),parseFloat(r[4],10)]:(r=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))&&(t=[n(r[1],16),n(r[2],16),n(r[3],16),1])}(e),{get:function(n){return t&&!isNaN(t[0])?n==="rgb"?"rgb("+t[0]+","+t[1]+","+t[2]+")":n==="a"?t[3]:"rgba("+t.join(",")+")":e},brighten:function(e){if(o(e)&&e!==0){var r;for(r=0;r<3;r++)t[r]+=n(e*255),t[r]<0&&(t[r]=0),t[r]>255&&(t[r]=255)}return this},setOpacity:function(e){return t[3]=e,this}}};_.prototype={init:function(e,t){this.element=t==="span"?v(t):U.createElementNS("http://www.w3.org/2000/svg",t),this.renderer=e,this.attrSetters={}},animate:function(e,t,n){t=p(t,mt,!0),sn(this),t?(t=Yt(t),n&&(t.complete=n),rn(this,e,t)):(this.attr(e),n&&n())},attr:function(e,t){var i,s,o,u,a=this.element,f=a.nodeName,h=this.renderer,p,d=this.attrSetters,v=this.shadows,m,g,y=this;r(e)&&l(t)&&(i=e,e={},e[i]=t);if(r(e))i=e,f==="circle"?i={x:"cx",y:"cy"}[i]||i:i==="strokeWidth"&&(i="stroke-width"),y=c(a,i)||this[i]||0,i!=="d"&&i!=="visibility"&&(y=parseFloat(y));else for(i in e)if(p=!1,s=e[i],o=d[i]&&d[i](s,i),o!==!1){o!==R&&(s=o);if(i==="d")s&&s.join&&(s=s.join(" ")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0");else if(i==="x"&&f==="text"){for(o=0;om&&/[ \-]/.test(t.innerText)&&(d(t,{width:m+"px",display:"block",whiteSpace:"normal"}),h=m),m=e.fontMetrics(t.style.fontSize).b,w=g<0&&-h,E=y<0&&-v,b=g*y<0,w+=y*m*(b?1-a:a),E-=g*m*(c?b?a:1-a:1),f&&(w-=h*a*(g<0?-1:1),c&&(E-=v*a*(y<0?-1:1)),d(t,{textAlign:u})),this.xCorr=w,this.yCorr=E),d(t,{left:s+w+"px",top:o+E+"px"}),this.cTT=S}}else this.alignOnAdd=!0},updateTransform:function(){var e=this.translateX||0,t=this.translateY||0,n=this.inverted,r=this.rotation,i=[];n&&(e+=this.attr("width"),t+=this.attr("height")),(e||t)&&i.push("translate("+e+","+t+")"),n?i.push("rotate(90) scale(-1,1)"):r&&i.push("rotate("+r+" "+(this.x||0)+" "+(this.y||0)+")"),i.length&&c(this.element,"transform",i.join(" "))},toFront:function(){var e=this.element;return e.parentNode.appendChild(e),this},align:function(e,t,n){e?(this.alignOptions=e,this.alignByTranslate=t,n||this.renderer.alignedObjects.push(this)):(e=this.alignOptions,t=this.alignByTranslate);var n=p(n,this.renderer),r=e.align,i=e.verticalAlign,s=(n.x||0)+(e.x||0),o=(n.y||0)+(e.y||0),u={};return/^(right|center)$/.test(r)&&(s+=(n.width-(e.width||0))/{right:1,center:2}[r]),u[t?"translateX":"x"]=X(s),/^(bottom|middle)$/.test(i)&&(o+=(n.height-(e.height||0))/({bottom:1,middle:2}[i]||1)),u[t?"translateY":"y"]=X(o),this[this.placed?"animate":"attr"](u),this.placed=!0,this.alignAttr=u,this},getBBox:function(t){var n,r,i=this.rotation;r=this.element;var s=i*et;if(r.namespaceURI==="http://www.w3.org/2000/svg"||this.renderer.forExport){try{n=r.getBBox?e({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight}}catch(o){}if(!n||n.width<0)n={width:0,height:0};t=n.width,r=n.height,i&&(n.width=Q(r*Y(s))+Q(t*G(s)),n.height=Q(r*G(s))+Q(t*Y(s)))}else n=this.htmlGetBBox(t);return n},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},add:function(e){var t=this.renderer,r=e||t,i=r.element||t.box,s=i.childNodes,o=this.element,u=c(o,"zIndex"),a;this.parentInverted=e&&e.inverted,this.textStr!==void 0&&t.buildText(this),u&&(r.handleZ=!0,u=n(u));if(r.handleZ)for(r=0;ru||!l(u)&&l(t))){i.insertBefore(o,e),a=!0;break}return a||i.appendChild(o),this.added=!0,tn(this,"add"),this},safeRemoveChild:function(e){var t=e.parentNode;t&&t.removeChild(e)},destroy:function(){var e=this,t=e.element||{},n=e.shadows,r=e.box,i,s;t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=null,sn(e),e.clipPath&&(e.clipPath=e.clipPath.destroy());if(e.stops){for(s=0;s/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g),i=t.childNodes,s=/style="([^"]+)"/,o=/href="([^"]+)"/,u=c(t,"x"),a=e.styles,f=a&&n(a.width),l=a&&a.lineHeight,h,a=i.length,v=[];a--;)t.removeChild(i[a]);f&&!e.added&&this.box.appendChild(t),r[r.length-1]===""&&r.pop(),Jt(r,function(r,i){var a,p=0,m,r=r.replace(//g,"|||");a=r.split("|||"),Jt(a,function(r){if(r!==""||a.length===1){var g={},y=U.createElementNS("http://www.w3.org/2000/svg","tspan");s.test(r)&&c(y,"style",r.match(s)[1].replace(/(;| |^)color([ :])/,"$1fill$2")),o.test(r)&&(c(y,"onclick",'location.href="'+r.match(o)[1]+'"'),d(y,{cursor:"pointer"})),r=(r.replace(/<(.|\n)*?>/g,"")||" ").replace(/</g,"<").replace(/>/g,">"),y.appendChild(U.createTextNode(r)),p?g.dx=3:g.x=u;if(!p){if(i){!ot&&e.renderer.forExport&&d(y,{display:"block"}),m=z.getComputedStyle&&n(z.getComputedStyle(h,null).getPropertyValue("line-height"));if(!m||isNaN(m)){var b;(b=l)||(b=h.offsetHeight)||(v[i]=t.getBBox().height,b=X(v[i]-(v[i-1]||0))||18),m=b}c(y,"dy",m)}h=y}c(y,g),t.appendChild(y),p++;if(f)for(var r=r.replace(/-/g,"- ").split(" "),w=[];r.length||w.length;)b=e.getBBox().width,g=b>f,!g||r.length===1?(r=w,w=[],r.length&&(y=U.createElementNS("http://www.w3.org/2000/svg","tspan"),c(y,{dy:l||16,x:u}),t.appendChild(y),b>f&&(f=b))):(y.removeChild(y.firstChild),w.unshift(r.pop())),r.length&&y.appendChild(U.createTextNode(r.join(" ").replace(/- /g,"-")))}})})},button:function(n,r,i,s,o,u,a){var f=this.label(n,r,i),l=0,c,h,p,d,v,n={x1:0,y1:0,x2:0,y2:1},o=Yt(t("stroke-width",1,"stroke","#999","fill",t("linearGradient",n,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",t("color","black")),o);return p=o.style,delete o.style,u=Yt(o,t("stroke","#68A","fill",t("linearGradient",n,"stops",[[0,"#FFF"],[1,"#ACF"]])),u),d=u.style,delete u.style,a=Yt(o,t("stroke","#68A","fill",t("linearGradient",n,"stops",[[0,"#9BD"],[1,"#CDF"]])),a),v=a.style,delete a.style,Zt(f.element,"mouseenter",function(){f.attr(u).css(d)}),Zt(f.element,"mouseleave",function(){c=[o,u,a][l],h=[p,d,v][l],f.attr(c).css(h)}),f.setState=function(e){(l=e)?e===2&&f.attr(a).css(v):f.attr(o).css(p)},f.on("click",function(){s.call(f)}).attr(o).css(e({cursor:"default"},p))},crispLine:function(e,t){return e[1]===e[4]&&(e[1]=e[4]=X(e[1])+t%2/2),e[2]===e[5]&&(e[2]=e[5]=X(e[2])+t%2/2),e},path:function(t){var n={fill:Et};return s(t)?n.d=t:i(t)&&e(n,t),this.createElement("path").attr(n)},circle:function(e,t,n){return e=i(e)?e:{x:e,y:t,r:n},this.createElement("circle").attr(e)},arc:function(e,t,n,r,s,o){return i(e)&&(t=e.y,n=e.r,r=e.innerR,s=e.start,o=e.end,e=e.x),this.symbol("arc",e||0,t||0,n||0,n||0,{innerR:r||0,start:s||0,end:o||0})},rect:function(e,t,n,r,s,o){return s=i(e)?e.r:s,s=this.createElement("rect").attr({rx:s,ry:s,fill:Et}),s.attr(i(e)?e:s.crisp(o,e,t,J(n,0),J(r,0)))},setSize:function(e,t,n){var r=this.alignedObjects,i=r.length;this.width=e,this.height=t;for(this.boxWrapper[p(n,!0)?"animate":"attr"]({width:e,height:t});i--;)r[i].align()},g:function(e){var t=this.createElement("g");return l(e)?t.attr({"class":"highcharts-"+e}):t},image:function(t,n,r,i,s){var o={preserveAspectRatio:Et};return arguments.length>1&&e(o,{x:n,y:r,width:i,height:s}),o=this.createElement("image").attr(o),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t),o},symbol:function(t,n,r,i,s,o){var u,a=this.symbols[t],a=a&&a(X(n),X(r),i,s,o),f=/^url\((.*?)\)$/,l,c;return a?(u=this.path(a),e(u,{symbolName:t,x:n,y:r,width:i,height:s}),o&&e(u,o)):f.test(t)&&(c=function(e,t){e.attr({width:t[0],height:t[1]}),e.alignByTranslate||e.translate(-X(t[0]/2),-X(t[1]/2))},l=t.match(f)[1],t=ct[l],u=this.image(l).attr({x:n,y:r}),t?c(u,t):(u.attr({width:0,height:0}),v("img",{onload:function(){c(u,ct[l]=[this.width,this.height])},src:l}))),u},symbols:{circle:function(e,t,n,r){var i=.166*n;return["M",e+n/2,t,"C",e+n+i,t,e+n+i,t+r,e+n/2,t+r,"C",e-i,t+r,e-i,t,e+n/2,t,"Z"]},square:function(e,t,n,r){return["M",e,t,"L",e+n,t,e+n,t+r,e,t+r,"Z"]},triangle:function(e,t,n,r){return["M",e+n/2,t,"L",e+n,t+r,e,t+r,"Z"]},"triangle-down":function(e,t,n,r){return["M",e,t,"L",e+n,t,e+n/2,t+r,"Z"]},diamond:function(e,t,n,r){return["M",e+n/2,t,"L",e+n,t+r/2,e+n/2,t+r,e,t+r/2,"Z"]},arc:function(e,t,n,r,i){var s=i.start,n=i.r||n||r,o=i.end-1e-6,r=i.innerR,u=i.open,a=G(s),f=Y(s),l=G(o),o=Y(o),i=i.end-s'),t&&(n=t===wt||t==="span"||t==="img"?n.join(""):e.prepVML(n),this.element=v(n)),this.renderer=e,this.attrSetters={}},add:function(e){var t=this.renderer,n=this.element,r=t.box,r=e?e.element||e:r;return e&&e.inverted&&t.invertChild(n,r),rt&&r.gVis==="hidden"&&d(n,{visibility:"hidden"}),r.appendChild(n),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),tn(this,"add"),this},toggleChildren:function(e,t){for(var n=e.childNodes,r=n.length;r--;)d(n[r],{visibility:t}),n[r].nodeName==="DIV"&&this.toggleChildren(n[r],t)},updateTransform:_.prototype.htmlUpdateTransform,attr:function(e,t){var n,i,s,u=this.element||{},a=u.style,f=u.nodeName,h=this.renderer,p=this.symbolName,d,m=this.shadows,g,y=this.attrSetters,b=this;r(e)&&l(t)&&(n=e,e={},e[n]=t);if(r(e))n=e,b=n==="strokeWidth"||n==="stroke-width"?this.strokeweight:this[n];else for(n in e)if(i=e[n],g=!1,s=y[n]&&y[n](i,n),s!==!1&&i!==null){s!==R&&(i=s);if(p&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(n))d||(this.symbolAttr(e),d=!0),g=!0;else if(n==="d"){i=i||[],this.d=i.join(" "),s=i.length;for(g=[];s--;)g[s]=o(i[s])?X(i[s]*10)-5:i[s]==="Z"?"x":i[s];i=g.join(" ")||"x",u.path=i;if(m)for(s=m.length;s--;)m[s].path=m[s].cutOff?this.cutOffPath(i,m[s].cutOff):i;g=!0}else n==="zIndex"||n==="visibility"?(rt&&n==="visibility"&&f==="DIV"&&(u.gVis=i,this.toggleChildren(u,i),i==="visible"&&(i=null)),i&&(a[n]=i),g=!0):n==="width"||n==="height"?(i=J(0,i),this[n]=i,this.updateClipping?(this[n]=i,this.updateClipping()):a[n]=i,g=!0):n==="x"||n==="y"?(this[n]=i,a[{x:"left",y:"top"}[n]]=i):n==="class"?u.className=i:n==="stroke"?(i=h.color(i,u,n),n="strokecolor"):n==="stroke-width"||n==="strokeWidth"?(u.stroked=i?!0:!1,n="strokeweight",this[n]=i,o(i)&&(i+="px")):n==="dashstyle"?((u.getElementsByTagName("stroke")[0]||v(h.prepVML([""]),null,null,u))[n]=i||"solid",this.dashstyle=i,g=!0):n==="fill"?f==="SPAN"?a.color=i:(u.filled=i!==Et?!0:!1,i=h.color(i,u,n),n="fillcolor"):f==="shape"&&n==="rotation"?this[n]=i:n==="translateX"||n==="translateY"||n==="rotation"?(this[n]=i,this.updateTransform(),g=!0):n==="text"&&(this.bBox=null,u.innerHTML=i,g=!0);if(m&&n==="visibility")for(s=m.length;s--;)m[s].style[n]=i;g||(rt?u[n]=i:c(u,n,i))}return b},clip:function(e){var t=this,n=e.members,r=t.element,i=r.parentNode;return n.push(t),t.destroyClip=function(){f(n,t)},i&&i.className==="highcharts-tracker"&&!rt&&d(r,{visibility:"hidden"}),t.css(e.getCSS(t))},css:_.prototype.htmlCss,safeRemoveChild:function(e){e.parentNode&&k(e)},destroy:function(){return this.destroyClip&&this.destroyClip(),_.prototype.destroy.apply(this)},empty:function(){for(var e=this.element.childNodes,t=e.length,n;t--;)n=e[t],n.parentNode.removeChild(n)},on:function(e,t){return this.element["on"+e]=function(){var e=z.event;e.target=e.srcElement,t(e)},this},cutOffPath:function(e,t){var r,e=e.split(/[ ,]/);r=e.length;if(r===9||r===11)e[r-4]=e[r-2]=n(e[r-2])-10*t;return e.join(" ")},shadow:function(e,t,r){var i=[],s=this.element,o=this.renderer,u,a=s.style,f,l=s.path,c,h;l&&typeof l.value!="string"&&(l="x"),h=l;if(e){for(e=1;e<=3;e++)c=7-2*e,r&&(h=this.cutOffPath(l.value,c+.5)),f=[''],u=v(o.prepVML(f),null,{left:n(a.left)+1,top:n(a.top)+1}),r&&(u.cutOff=c+1),f=[''],v(o.prepVML(f),null,null,u),t?t.element.appendChild(u):s.parentNode.insertBefore(u,s),i.push(u);this.shadows=i}return this}},hn=m(_,hn);var pn={Element:hn,isIE8:tt.indexOf("MSIE 8.0")>-1,init:function(e,t,n){var r,i;this.alignedObjects=[],r=this.createElement(wt),i=r.element,i.style.position="relative",e.appendChild(r.element),this.box=i,this.boxWrapper=r,this.setSize(t,n,!1),U.namespaces.hcv||(U.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),U.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,n,r,i){var s=this.createElement();return e(s,{members:[],left:t,top:n,width:r,height:i,getCSS:function(t){var n=t.inverted,r=this.top,i=this.left,s=i+this.width,o=r+this.height,r={clip:"rect("+X(n?i:r)+"px,"+X(n?o:s)+"px,"+X(n?s:o)+"px,"+X(n?r:i)+"px)"};return!n&&rt&&t.element.nodeName!=="IMG"&&e(r,{width:s+"px",height:o+"px"}),r},updateClipping:function(){Jt(s.members,function(e){e.css(s.getCSS(e))})}})},color:function(e,t,n){var r,i=/^rgba/,s,o=Et;e&&e.linearGradient?s="gradient":e&&e.radialGradient&&(s="pattern");if(s){var u,a,f=e.linearGradient||e.radialGradient,l,c,h,p,d,m,g="",e=e.stops,y,b=[];c=e[0],y=e[e.length-1],c[0]>0&&e.unshift([0,c[1]]),y[0]<1&&e.push([1,y[1]]),Jt(e,function(e,t){i.test(e[1])?(r=ln(e[1]),u=r.get("rgb"),a=r.get("a")):(u=e[1],a=1),b.push(e[0]*100+"% "+u),t?(p=a,d=u):(h=a,m=u)}),s==="gradient"?(l=f.x1||f[0]||0,e=f.y1||f[1]||0,c=f.x2||f[2]||0,f=f.y2||f[3]||0,l=90-W.atan((f-e)/(c-l))*180/Z):(o=f.r*2,g='src="http://code.highcharts.com/gfx/radial-gradient.png" size="'+o+","+o+'" origin="0.5,0.5" position="'+f.cx+","+f.cy+'" color2="'+m+'" ',o=d),n==="fill"?(n=[''],v(this.prepVML(n),null,null,t)):o=u}else i.test(e)&&t.tagName!=="IMG"?(r=ln(e),n=["<",n,' opacity="',r.get("a"),'"/>'],v(this.prepVML(n),null,null,t),o=r.get("rgb")):(t=t.getElementsByTagName(n),t.length&&(t[0].opacity=1),o=e);return o},prepVML:function(e){var t=this.isIE8,e=e.join("");return t?(e=e.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),e=e.indexOf('style="')===-1?e.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):e.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):e=e.replace("<","1&&s.css({left:t,top:n,width:r,height:i}),s},rect:function(e,t,n,r,s,o){i(e)&&(t=e.y,n=e.width,r=e.height,o=e.strokeWidth,e=e.x);var u=this.symbol("rect");return u.r=s,u.attr(u.crisp(o,e,t,J(n,0),J(r,0)))},invertChild:function(e,t){var r=t.style;d(e,{flip:"x",left:n(r.width)-1,top:n(r.height)-1,rotation:-90})},symbols:{arc:function(e,t,n,r,i){var s=i.start,o=i.end,u=i.r||n||r,n=G(s),r=Y(s),a=G(o),f=Y(o),l=i.innerR,c=.08/u,h=l&&.1/l||0;return o-s===0?["x"]:(2*Z-o+sf&&(n=!1)):u+l>h&&(u=h-l,r&&u+c0&&t.height>0?(s=Yt({align:n&&h&&"center",x:n?!h&&4:10,verticalAlign:!n&&h&&"middle",y:n?h?16:10:h?6:-4,rotation:n&&!h&&90},s),o||(e.label=o=S.text(s.text,0,0).attr({align:s.textAlign||s.align,rotation:s.rotation,zIndex:w}).css(s.style).add()),t=[g[1],g[4],p(g[6],g[1])],g=[g[2],g[5],p(g[7],g[2])],n=T(t),h=T(g),o.align(s,!1,{x:n,y:h,width:N(t)-n,height:N(g)-h}),o.show()):o&&o.hide(),e},destroy:function(){f(this.axis.plotLinesAndBands,this),C(this,this.axis)}},H.prototype={destroy:function(){C(this,this.axis)},setTotal:function(e){this.cum=this.total=e},render:function(e){var t=this.options.formatter.call(this);this.label?this.label.attr({text:t,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(t,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:"hidden"}).add(e)},setOffset:function(e,t){var n=this.axis,r=n.chart,i=r.inverted,s=this.isNegative,o=n.translate(this.total,0,0,0,1),n=n.translate(0),n=Q(o-n),u=r.xAxis[0].translate(this.x)+e,r=r.plotHeight,i={x:i?s?o:o-n:u,y:i?r-u-t:s?r-o-n:r-o,width:i?n:t,height:i?t:n};this.label&&this.label.align(this.alignOptions,null,i).attr({visibility:"visible"})}},B.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:Xt,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:Xt.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(e,t){var n=t.isX;this.horiz=e.inverted?!n:n,this.xOrY=(this.isXAxis=n)?"x":"y",this.opposite=t.opposite,this.side=this.horiz?this.opposite?0:2:this.opposite?1:3,this.setOptions(t);var r=this.options,i=r.type,s=i==="datetime";this.labelFormatter=r.labels.formatter||this.defaultLabelFormatter,this.staggerLines=this.horiz&&r.labels.staggerLines,this.userOptions=t,this.minPixelPadding=0,this.chart=e,this.reversed=r.reversed,this.categories=r.categories,this.isLog=i==="logarithmic",this.isLinked=l(r.linkedTo),this.isDatetimeAxis=s,this.ticks={},this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.stacks={},this.min=this.max=null;var o,r=this.options.events;e.axes.push(this),e[n?"xAxis":"yAxis"].push(this),this.series=[],e.inverted&&n&&this.reversed===R&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine,this.addPlotLine=this.addPlotBand=this.addPlotBandOrLine;for(o in r)Zt(this,o,r[o]);this.isLog&&(this.val2lin=u,this.lin2val=a)},setOptions:function(e){this.options=Yt(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],e)},defaultLabelFormatter:function(){var e=this.axis,t=this.value,n=e.tickInterval,r=this.dateTimeLabelFormat;return e.categories?t:r?vt(r,t):n%1e6===0?t/1e6+"M":n%1e3===0?t/1e3+"k":t>=1e3?g(t,0):g(t,-1)},getSeriesExtremes:function(){var e=this,t=e.chart,n=e.stacks,r=[],i=[],s;e.dataMin=e.dataMax=null,Jt(e.series,function(o){if(o.visible||!t.options.chart.ignoreHiddenSeries){var u=o.options,a,f,c,h,d,v,m,g,y,b=u.threshold,w,E=[],S=0;e.isLog&&b<=0&&(b=u.threshold=null);if(e.isXAxis){if(u=o.xData,u.length)e.dataMin=K(p(e.dataMin,u[0]),T(u)),e.dataMax=J(p(e.dataMax,u[0]),N(u))}else{var x,C,k,L=o.cropped,A=o.xAxis.getExtremes(),O=!!o.modifyValue;a=u.stacking,e.usePercentage=a==="percent",a&&(d=u.stack,h=o.type+p(d,""),v="-"+h,o.stackKey=h,f=r[h]||[],r[h]=f,c=i[v]||[],i[v]=c),e.usePercentage&&(e.dataMin=0,e.dataMax=99),u=o.processedXData,m=o.processedYData,w=m.length;for(s=0;s=A.min&&(u[s-1]||g)<=A.max))if(g=y.length)for(;g--;)y[g]!==null&&(E[S++]=y[g]);else E[S++]=y;!e.usePercentage&&E.length&&(e.dataMin=K(p(e.dataMin,E[0]),T(E)),e.dataMax=J(p(e.dataMax,E[0]),N(E))),l(b)&&(e.dataMin>=b?(e.dataMin=b,e.ignoreMinPadding=!0):e.dataMaxi+this.width)c=!0}else if(n=i,u=l-this.right,o< -s||o>s+this.height)c=!0;return c?null:r.renderer.crispLine(["M",n,o,"L",u,a],t||0)},getPlotBandPath:function(e,t){var n=this.getPlotLinePath(t),r=this.getPlotLinePath(e);return r&&n?r.push(n[4],n[5],n[1],n[2]):r=null,r},getLinearTickPositions:function(e,t,n){for(var r,t=A(V(t/e)*e),n=A($(n/e)*e),i=[];t<=n;){i.push(t),t=A(t+e);if(t===r)break;r=t}return i},getLogTickPositions:function(e,t,n,r){var i=this.options,s=this.len,o=[];r||(this._minorAutoInterval=null);if(e>=.5)e=X(e),o=this.getLinearTickPositions(e,t,n);else if(e>=.08)for(var s=V(t),f,l,c,h,d,i=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];st&&o.push(h),h>n&&(d=!0),h=c}else if(t=a(t),n=a(n),e=i[r?"minorTickInterval":"tickInterval"],e=p(e==="auto"?null:e,this._minorAutoInterval,(n-t)*(i.tickPixelInterval/(r?5:1))/((r?s/this.tickPositions.length:s)||1)),e=b(e,null,W.pow(10,V(W.log(e)/W.LN10))),o=Gt(this.getLinearTickPositions(e,t,n),u),!r)this._minorAutoInterval=e/5;return r||(this.tickInterval=e),o},getMinorTickPositions:function(){var e=this.tickPositions,t=this.minorTickInterval,n=[],r,i;if(this.isLog){i=e.length;for(r=1;r=this.minRange,s,o,u,a,f;this.isXAxis&&this.minRange===R&&!this.isLog&&(l(e.min)||l(e.max)?this.minRange=null:(Jt(this.series,function(e){a=e.xData;for(o=f=e.xIncrement?1:a.length-1;o>0;o--)if(u=a[o]-a[o-1],s===R||u0||!t.ignoreMaxPadding)&&(t.max+=n*c)),t.tickInterval=t.min===t.max||t.min===void 0||t.max===void 0?1:a&&!d&&v===t.linkedParent.options.tickPixelInterval?t.linkedParent.tickInterval:p(d,m?1:(t.max-t.min)*v/(t.len||1)),o&&!e&&Jt(t.series,function(e){e.processData(t.min!==t.oldMin||t.max!==t.oldMax)}),t.setAxisTranslation(),t.beforeSetTickPositions&&t.beforeSetTickPositions(),t.postProcessTickInterval&&(t.tickInterval=t.postProcessTickInterval(t.tickInterval)),!s&&!i&&(e=W.pow(10,V(W.log(t.tickInterval)/W.LN10)),!l(r.tickInterval))&&(t.tickInterval=b(t.tickInterval,null,e,r)),t.minorTickInterval=r.minorTickInterval==="auto"&&t.tickInterval?t.tickInterval/5:r.minorTickInterval,t.tickPositions=f=r.tickPositions||f&&f.apply(t,[t.min,t.max]),f||(f=s?(t.getNonLinearTimeTicks||E)(w(t.tickInterval,r.units),t.min,t.max,r.startOfWeek,t.ordinalPositions,t.closestPointRange,!0):i?t.getLogTickPositions(t.tickInterval,t.min,t.max):t.getLinearTickPositions(t.tickInterval,t.min,t.max),t.tickPositions=f),a||(i=f[0],s=f[f.length-1],r.startOnTick?t.min=i:t.min>i&&f.shift(),r.endOnTick?t.max=s:t.maxt[r]&&this.options.alignTicks!==!1&&(t[r]=n.length),e.maxTicks=t},adjustTickAmount:function(){var e=this.xOrY,t=this.tickPositions,n=this.chart.maxTicks;if(n&&n[e]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var r=this.tickAmount,i=t.length;this.tickAmount=e=n[e];if(ie||e===null?e=n:t=e.min&&t<=e.max)c[t]||(c[t]=new D(e,t)),y&&c[t].isNew&&c[t].render(n,!0),c[t].isActive=!0,c[t].render(n)}),v&&Jt(o,function(t,n){n%2===0&&t1||Q(t-n.currentY)>1?function(){n.move(e,t)}:null},hide:function(){if(!this.tooltipIsHidden){var e=this.chart.hoverPoints;this.label.hide(),e&&Jt(e,function(e){e.setState()}),this.chart.hoverPoints=null,this.tooltipIsHidden=!0}},hideCrosshairs:function(){Jt(this.crosshairs,function(e){e&&e.hide()})},getAnchor:function(e,t){var n,r=this.chart,i=r.inverted,s=0,o=0,e=h(e);return n=e[0].tooltipPos,n||(Jt(e,function(e){s+=e.plotX,o+=e.plotLow?(e.plotLow+e.plotHigh)/2:e.plotY}),s/=e.length,o/=e.length,n=[i?r.plotWidth-o:s,this.shared&&!i&&e.length>1&&t?t.chartY-r.plotTop:i?r.plotHeight-s:o]),Gt(n,X)},getPosition:function(e,t,n){var r=this.chart,i=r.plotLeft,s=r.plotTop,o=r.plotWidth,u=r.plotHeight,a=p(this.options.distance,12),f=n.plotX,n=n.plotY,r=f+i+(r.inverted?a:-e-a),l=n-t+s+15,c;return r<7&&(r=i+f+a),r+e>i+o&&(r-=r+e-(i+o),l=n-t+s-a,c=!0),l=l&&n<=l+t&&(l=n+s+a)),l+t>s+u&&(l=J(s,s+u-t-a)),{x:r,y:l}},refresh:function(e,t){function n(){var e=this.points||h(this),t=e[0].series,n;return n=[t.tooltipHeaderFormatter(e[0].key)],Jt(e,function(e){t=e.series,n.push(t.tooltipFormatter&&t.tooltipFormatter(e)||e.point.tooltipFormatter(t.tooltipOptions.pointFormat))}),n.push(s.footerFormat||""),n.join("")}var r=this.chart,i=this.label,s=this.options,o,u,a,f={},l,c=[];l=s.formatter||n;var f=r.hoverPoints,d,v=s.crosshairs;a=this.shared,u=this.getAnchor(e,t),o=u[0],u=u[1],a&&(!e.series||!e.series.noSharedTooltip)?(f&&Jt(f,function(e){e.setState()}),r.hoverPoints=e,Jt(e,function(e){e.setState("hover"),c.push(e.getLabelConfig())}),f={x:e[0].category,y:e[0].y},f.points=c,e=e[0]):f=e.getLabelConfig(),l=l.call(f),f=e.series,a=a||!f.isCartesian||f.tooltipOutsidePlot||r.isInsidePlot(o,u),l===!1||!a?this.hide():(this.tooltipIsHidden&&i.show(),i.attr({text:l}),d=s.borderColor||e.color||f.color||"#606060",i.attr({stroke:d}),i=(s.positioner||this.getPosition).call(this,i.width,i.height,{plotX:o,plotY:u}),this.move(X(i.x),X(i.y)),this.tooltipIsHidden=!1);if(v){v=h(v);for(i=v.length;i--;)if(a=e.series[i?"yAxis":"xAxis"],v[i]&&a)(a=a.getPlotLinePath(i?p(e.stackY,e.y):e.x,1),this.crosshairs[i])?this.crosshairs[i].attr({d:a,visibility:"visible"}):(f={"stroke-width":v[i].width||1,stroke:v[i].color||"#C0C0C0",zIndex:v[i].zIndex||2},v[i].dashStyle&&(f.dashstyle=v[i].dashStyle),this.crosshairs[i]=r.renderer.path(a).attr(f).add())}tn(r,"tooltipRefresh",{text:l,x:o+r.plotLeft,y:u+r.plotTop,borderColor:d})},tick:function(){this.tooltipTick&&this.tooltipTick()}},F.prototype={normalizeMouseEvent:function(t){var n,r,i,t=t||z.event;return t.target||(t.target=t.srcElement),t.originalEvent&&(t=t.originalEvent),t.event&&(t=t.event),i=t.touches?t.touches.item(0):t,this.chartPosition=n=Qt(this.chart.container),i.pageX===R?(r=t.x,n=t.y):(r=i.pageX-n.left,n=i.pageY-n.top),e(t,{chartX:X(r),chartY:X(n)})},getMouseCoordinates:function(e){var t={xAxis:[],yAxis:[]},n=this.chart;return Jt(n.axes,function(r){var i=r.isXAxis;t[i?"xAxis":"yAxis"].push({axis:r,value:r.translate((n.inverted?!i:i)?e.chartX-n.plotLeft:n.plotHeight-e.chartY+n.plotTop,!0)})}),t},onmousemove:function(e){var t=this.chart,n=t.series,r,i,s=t.hoverPoint,o=t.hoverSeries,u,a,f=t.chartWidth,l=t.inverted?t.plotHeight+t.plotTop-e.chartY:e.chartX-t.plotLeft;if(t.tooltip&&this.options.tooltip.shared&&(!o||!o.noSharedTooltip)){i=[],u=n.length;for(a=0;af&&i.splice(u,1);i.length&&i[0].plotX!==this.hoverX&&(t.tooltip.refresh(i,e),this.hoverX=i[0].plotX)}o&&o.tracker&&(r=o.tooltipPoints[l])&&r!==s&&r.onMouseOver()},resetTracker:function(e){var t=this.chart,n=t.hoverSeries,r=t.hoverPoint,i=t.hoverPoints||r,t=t.tooltip;(e=e&&t&&i)&&h(i)[0].plotX===R&&(e=!1),e?t.refresh(i):(r&&r.onMouseOut(),n&&n.onMouseOut(),t&&(t.hide(),t.hideCrosshairs()),this.hoverX=null)},setDOMEvents:function(){function t(){if(n.selectionMarker){var e={xAxis:[],yAxis:[]},o=n.selectionMarker.getBBox(),u=o.x-r.plotLeft,a=o.y-r.plotTop,f;s&&(Jt(r.axes,function(t){if(t.options.zoomEnabled!==!1){var n=t.isXAxis,i=r.inverted?!n:n,s=t.translate(i?u:r.plotHeight-a-o.height,!0,0,0,1),i=t.translate(i?u+o.width:r.plotHeight-a,!0,0,0,1);!isNaN(s)&&!isNaN(i)&&(e[n?"xAxis":"yAxis"].push({axis:t,min:K(s,i),max:J(s,i)}),f=!0)}}),f&&tn(r,"selection",e,function(e){r.zoom(e)})),n.selectionMarker=n.selectionMarker.destroy()}r&&(d(i,{cursor:"auto"}),r.cancelClick=s,r.mouseIsDown=s=!1),en(U,lt?"touchend":"mouseup",t)}var n=this,r=n.chart,i=r.container,s,o=n.zoomX&&!r.inverted||n.zoomY&&r.inverted,u=n.zoomY&&!r.inverted||n.zoomX&&r.inverted;n.hideTooltipOnMouseMove=function(e){nn(e),n.chartPosition&&r.hoverSeries&&r.hoverSeries.isCartesian&&!r.isInsidePlot(e.pageX-n.chartPosition.left-r.plotLeft,e.pageY-n.chartPosition.top-r.plotTop)&&n.resetTracker()},n.hideTooltipOnMouseLeave=function(){n.resetTracker(),n.chartPosition=null},i.onmousedown=function(e){e=n.normalizeMouseEvent(e),!lt&&e.preventDefault&&e.preventDefault(),r.mouseIsDown=!0,r.cancelClick=!1,r.mouseDownX=n.mouseDownX=e.chartX,n.mouseDownY=e.chartY,Zt(U,lt?"touchend":"mouseup",t)};var a=function(e){if(!e||!(e.touches&&e.touches.length>1)){e=n.normalizeMouseEvent(e),lt||(e.returnValue=!1);var t=e.chartX,i=e.chartY,a=!r.isInsidePlot(t-r.plotLeft,i-r.plotTop);lt&&e.type==="touchstart"&&(c(e.target,"isTracker")?r.runTrackerClick||e.preventDefault():!r.runChartClick&&!a&&e.preventDefault()),a&&(tr.plotLeft+r.plotWidth&&(t=r.plotLeft+r.plotWidth),ir.plotTop+r.plotHeight&&(i=r.plotTop+r.plotHeight));if(r.mouseIsDown&&e.type!=="touchstart"){if(s=Math.sqrt(Math.pow(n.mouseDownX-t,2)+Math.pow(n.mouseDownY-i,2)),s>10){e=r.isInsidePlot(n.mouseDownX-r.plotLeft,n.mouseDownY-r.plotTop),r.hasCartesianSeries&&(n.zoomX||n.zoomY)&&e&&!n.selectionMarker&&(n.selectionMarker=r.renderer.rect(r.plotLeft,r.plotTop,o?1:r.plotWidth,u?1:r.plotHeight,0).attr({fill:n.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add());if(n.selectionMarker&&o){var f=t-n.mouseDownX;n.selectionMarker.attr({width:Q(f),x:(f>0?0:f)+n.mouseDownX})}n.selectionMarker&&u&&(i-=n.mouseDownY,n.selectionMarker.attr({height:Q(i),y:(i>0?0:i)+n.mouseDownY})),e&&!n.selectionMarker&&n.options.chart.panning&&r.pan(t)}}else a||n.onmousemove(e);return a||!r.hasCartesianSeries}};i.onmousemove=a,Zt(i,"mouseleave",n.hideTooltipOnMouseLeave),Zt(U,"mousemove",n.hideTooltipOnMouseMove),i.ontouchstart=function(e){(n.zoomX||n.zoomY)&&i.onmousedown(e),a(e)},i.ontouchmove=a,i.ontouchend=function(){s&&n.resetTracker()},i.onclick=function(t){var i=r.hoverPoint,s,o,t=n.normalizeMouseEvent(t);t.cancelBubble=!0,r.cancelClick||(i&&(c(t.target,"isTracker")||c(t.target.parentNode,"isTracker"))?(s=i.plotX,o=i.plotY,e(i,{pageX:n.chartPosition.left+r.plotLeft+(r.inverted?r.plotWidth-o:s),pageY:n.chartPosition.top+r.plotTop+(r.inverted?r.plotHeight-s:o)}),tn(i.series,"click",e(t,{point:i})),i.firePointEvent("click",t)):(e(t,n.getMouseCoordinates(t)),r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop)&&tn(r,"click",t)))}},destroy:function(){var e=this.chart,t=e.container;e.trackerGroup&&(e.trackerGroup=e.trackerGroup.destroy()),en(t,"mouseleave",this.hideTooltipOnMouseLeave),en(U,"mousemove",this.hideTooltipOnMouseMove),t.onclick=t.onmousedown=t.onmousemove=t.ontouchstart=t.ontouchend=t.ontouchmove=null,clearInterval(this.tooltipInterval)},init:function(e,t){e.trackerGroup||(e.trackerGroup=e.renderer.g("tracker").attr({zIndex:9}).add()),t.enabled&&(e.tooltip=new j(e,t),this.tooltipInterval=setInterval(function(){e.tooltip.tick()},32)),this.setDOMEvents()}},I.prototype={init:function(e){var t=this,r=t.options=e.options.legend;if(r.enabled){var i=r.itemStyle,s=p(r.padding,8),o=r.itemMarginTop||0;t.baseline=n(i.fontSize)+3+o,t.itemStyle=i,t.itemHiddenStyle=Yt(i,r.itemHiddenStyle),t.itemMarginTop=o,t.padding=s,t.initialItemX=s,t.initialItemY=s-5,t.maxItemWidth=0,t.chart=e,t.itemHeight=0,t.lastLineHeight=0,t.render(),Zt(t.chart,"endResize",function(){t.positionCheckboxes()})}},colorizeItem:function(e,t){var n=this.options,r=e.legendItem,i=e.legendLine,s=e.legendSymbol,o=this.itemHiddenStyle.color,n=t?n.itemStyle.color:o,o=t?e.color:o;r&&r.css({fill:n}),i&&i.attr({stroke:o}),s&&s.attr({stroke:o,fill:o})},positionItem:function(e){var t=this.options,n=t.symbolPadding,t=!t.rtl,r=e._legendItemPos,i=r[0],r=r[1],s=e.checkbox;e.legendGroup&&e.legendGroup.translate(t?i:this.legendWidth-i-2*n-4,r),s&&(s.x=i,s.y=r)},destroyItem:function(e){var t=e.checkbox;Jt(["legendItem","legendLine","legendSymbol","legendGroup"],function(t){e[t]&&e[t].destroy()}),t&&k(e.checkbox)},destroy:function(){var e=this.group,t=this.box;t&&(this.box=t.destroy()),e&&(this.group=e.destroy())},positionCheckboxes:function(){var e=this;Jt(e.allItems,function(t){var n=t.checkbox,r=e.group.alignAttr;n&&d(n,{left:r.translateX+t.legendItemWidth+n.x-20+"px",top:r.translateY+n.y+3+"px"})})},renderItem:function(e){var t,n=this,r=n.chart,i=r.renderer,s=n.options,o=s.layout==="horizontal",u=s.symbolWidth,a=s.symbolPadding,f=n.itemStyle,l=n.itemHiddenStyle,c=n.padding,h=!s.rtl,p=s.width,d=s.itemMarginBottom||0,m=n.itemMarginTop,g=n.initialItemX,y=e.legendItem,b=e.series||e,w=b.options,E=w.showCheckbox;!y&&(e.legendGroup=i.g("legend-item").attr({zIndex:1}).add(n.scrollGroup),b.drawLegendSymbol(n,e),e.legendItem=y=i.text(s.labelFormatter.call(e),h?u+a:-a,n.baseline,s.useHTML).css(Yt(e.visible?f:l)).attr({align:h?"left":"right",zIndex:2}).add(e.legendGroup),e.legendGroup.on("mouseover",function(){e.setState("hover"),y.css(n.options.itemHoverStyle)}).on("mouseout",function(){y.css(e.visible?f:l),e.setState()}).on("click",function(t){var n=function(){e.setVisible()},t={browserEvent:t};e.firePointEvent?e.firePointEvent("legendItemClick",t,n):tn(e,"legendItemClick",t,n)}),n.colorizeItem(e,e.visible),w&&E)&&(e.checkbox=v("input",{type:"checkbox",checked:e.selected,defaultChecked:e.selected},s.itemCheckboxStyle,r.container),Zt(e.checkbox,"click",function(t){tn(e,"checkboxClick",{checked:t.target.checked},function(){e.select()})})),i=y.getBBox(),t=e.legendItemWidth=s.itemWidth||u+a+i.width+c+(E?20:0),s=t,n.itemHeight=u=i.height,o&&n.itemX-g+s>(p||r.chartWidth-2*c-g)&&(n.itemX=g,n.itemY+=m+n.lastLineHeight+d,n.lastLineHeight=0),n.maxItemWidth=J(n.maxItemWidth,s),n.lastItemY=m+n.itemY+d,n.lastLineHeight=J(u,n.lastLineHeight),e._legendItemPos=[n.itemX,n.itemY],o?n.itemX+=s:(n.itemY+=m+u+d,n.lastLineHeight=u),n.offsetWidth=p||J(o?n.itemX-g:s,n.offsetWidth)},render:function(){var t=this,n=t.chart,r=n.renderer,i=t.group,s,o,u,a,f=t.box,l=t.options,c=t.padding,h=l.borderWidth,p=l.backgroundColor;t.itemX=t.initialItemX,t.itemY=t.initialItemY,t.offsetWidth=0,t.lastItemY=0,i||(t.group=i=r.g("legend").attr({zIndex:7}).add(),t.contentGroup=r.g().attr({zIndex:1}).add(i),t.scrollGroup=r.g().add(t.contentGroup),t.clipRect=r.clipRect(0,0,9999,n.chartHeight),t.contentGroup.clip(t.clipRect)),s=[],Jt(n.series,function(e){var t=e.options;t.showInLegend&&(s=s.concat(e.legendItems||(t.legendType==="point"?e.data:e)))}),x(s,function(e,t){return(e.options.legendIndex||0)-(t.options.legendIndex||0)}),l.reversed&&s.reverse(),t.allItems=s,t.display=o=!!s.length,Jt(s,function(e){t.renderItem(e)}),u=l.width||t.offsetWidth,a=t.lastItemY+t.lastLineHeight,a=t.handleOverflow(a);if(h||p)u+=c,a+=c,f?u>0&&a>0&&(f[f.isNew?"attr":"animate"](f.crisp(null,null,null,u,a)),f.isNew=!1):(t.box=f=r.rect(0,0,u,a,l.borderRadius,h||0).attr({stroke:l.borderColor,"stroke-width":h||0,fill:p||Et}).add(i).shadow(l.shadow),f.isNew=!0),f[o?"show":"hide"]();t.legendWidth=u,t.legendHeight=a,Jt(s,function(e){t.positionItem(e)}),o&&i.align(e({width:u,height:a},l),!0,n.spacingBox),n.isResizing||this.positionCheckboxes()},handleOverflow:function(e){var t=this,n=this.chart,r=n.renderer,i=this.options,s=i.y,s=n.spacingBox.height+(i.verticalAlign==="top"?-s:s)-this.padding,o=i.maxHeight,u=this.clipRect,a=i.navigation,f=p(a.animation,!0),l=a.arrowSize||12,c=this.nav;return i.layout==="horizontal"&&(s/=2),o&&(s=K(s,o)),e>s?(this.clipHeight=n=s-20,this.pageCount=$(e/n),this.currentPage=p(this.currentPage,1),this.fullHeight=e,u.attr({height:n}),c||(this.nav=c=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,l,l).on("click",function(){t.scroll(-1,f)}).add(c),this.pager=r.text("",15,10).css(a.style).add(c),this.down=r.symbol("triangle-down",0,0,l,l).on("click",function(){t.scroll(1,f)}).add(c)),t.scroll(0),e=s):c&&(u.attr({height:n.chartHeight}),c.hide(),this.scrollGroup.attr({translateY:1})),e},scroll:function(e,t){var n=this.pageCount,r=this.currentPage+e,i=this.clipHeight,s=this.options.navigation,o=s.activeColor,s=s.inactiveColor,u=this.pager,a=this.padding;r>n&&(r=n),r>0&&(t!==R&&O(t,this.chart),this.nav.attr({translateX:a,translateY:i+7,visibility:"visible"}),this.up.attr({fill:r===1?s:o}).css({cursor:r===1?"default":"pointer"}),u.attr({text:r+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:r===n?s:o}).css({cursor:r===n?"default":"pointer"}),this.scrollGroup.animate({translateY:-K(i*(r-1),this.fullHeight-i+a)+1}),u.attr({text:r+"/"+n}),this.currentPage=r)}},q.prototype={initSeries:function(e){var t=this.options.chart,t=new zt[e.type||t.type||t.defaultSeriesType];return t.init(this,e),t},addSeries:function(e,t,n){var r=this;e&&(O(n,r),t=p(t,!0),tn(r,"addSeries",{options:e},function(){r.initSeries(e),r.isDirtyLegend=!0,t&&r.redraw()}))},isInsidePlot:function(e,t){return e>=0&&e<=this.plotWidth&&t>=0&&t<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&Jt(this.axes,function(e){e.adjustTickAmount()}),this.maxTicks=null},redraw:function(e){var t=this.axes,n=this.series,r=this.tracker,i=this.legend,s=this.isDirtyLegend,o,u=this.isDirtyBox,a=n.length,f=a,l=this.clipRect,c=this.renderer,h=c.isHidden();O(e,this);for(h&&this.cloneRenderTo();f--;)if(e=n[f],e.isDirty&&e.options.stacking){o=!0;break}if(o)for(f=a;f--;)if(e=n[f],e.options.stacking)e.isDirty=!0;Jt(n,function(e){e.isDirty&&e.options.legendType==="point"&&(s=!0)}),s&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),this.hasCartesianSeries&&(this.isResizing||(this.maxTicks=null,Jt(t,function(e){e.setScale()})),this.adjustTickAmounts(),this.getMargins(),Jt(t,function(e){e.isDirtyExtremes&&(e.isDirtyExtremes=!1,tn(e,"afterSetExtremes",e.getExtremes()));if(e.isDirty||u||o)e.redraw(),u=!0})),u&&(this.drawChartBox(),l&&(sn(l),l.animate({width:this.plotSizeX,height:this.plotSizeY+1}))),Jt(n,function(e){e.isDirty&&e.visible&&(!e.isCartesian||e.xAxis)&&e.redraw()}),r&&r.resetTracker&&r.resetTracker(!0),c.draw(),tn(this,"redraw"),h&&this.cloneRenderTo(!0)},showLoading:function(t){var n=this.options,r=this.loadingDiv,i=n.loading;r||(this.loadingDiv=r=v(wt,{className:"highcharts-loading"},e(i.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:Et}),this.container),this.loadingSpan=v("span",null,i.labelStyle,r)),this.loadingSpan.innerHTML=t||n.lang.loading,this.loadingShown||(d(r,{opacity:0,display:""}),rn(r,{opacity:i.style.opacity},{duration:i.showDuration||0}),this.loadingShown=!0)},hideLoading:function(){var e=this.options,t=this.loadingDiv;t&&rn(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){d(t,{display:Et})}}),this.loadingShown=!1},get:function(e){var t=this.axes,n=this.series,r,i;for(r=0;rK(i.dataMin,i.min)&&n19?this.containerHeight:400)},cloneRenderTo:function(e){var t=this.renderToClone,n=this.container;e?t&&(this.renderTo.appendChild(n),k(t),delete this.renderToClone):(n&&this.renderTo.removeChild(n),this.renderToClone=t=this.renderTo.cloneNode(0),d(t,{position:"absolute",top:"-9999px",display:"block"}),U.body.appendChild(t),n&&t.appendChild(n))},getContainer:function(){var t,n=this.options.chart,i,s,o;this.renderTo=t=n.renderTo,o="highcharts-"+ht++,r(t)&&(this.renderTo=t=U.getElementById(t)),t||L(13,!0),t.innerHTML="",t.offsetWidth||this.cloneRenderTo(),this.getChartSize(),i=this.chartWidth,s=this.chartHeight,this.container=t=v(wt,{className:"highcharts-container"+(n.className?" "+n.className:""),id:o},e({position:"relative",overflow:"hidden",width:i+"px",height:s+"px",textAlign:"left",lineHeight:"normal"},n.style),this.renderToClone||t),this.renderer=n.forExport?new cn(t,i,s,!0):new ft(t,i,s),at&&this.renderer.create(this,t,i,s)},getMargins:function(){var e=this.options.chart,t=e.spacingTop,n=e.spacingRight,r=e.spacingBottom,e=e.spacingLeft,i,s=this.legend,o=this.optionsMarginTop,u=this.optionsMarginLeft,a=this.optionsMarginRight,f=this.optionsMarginBottom,c=this.chartTitleOptions,h=this.chartSubtitleOptions,d=this.options.legend,v=p(d.margin,10),m=d.x,g=d.y,y=d.align,b=d.verticalAlign;this.resetMargins(),i=this.axisOffset,(this.title||this.subtitle)&&!l(this.optionsMarginTop)&&(h=J(this.title&&!c.floating&&!c.verticalAlign&&c.y||0,this.subtitle&&!h.floating&&!h.verticalAlign&&h.y||0))&&(this.plotTop=J(this.plotTop,h+p(c.margin,15)+t)),s.display&&!d.floating&&(y==="right"?l(a)||(this.marginRight=J(this.marginRight,s.legendWidth-m+v+n)):y==="left"?l(u)||(this.plotLeft=J(this.plotLeft,s.legendWidth+m+v+e)):b==="top"?l(o)||(this.plotTop=J(this.plotTop,s.legendHeight+g+v+t)):b==="bottom"&&!l(f)&&(this.marginBottom=J(this.marginBottom,s.legendHeight-g+v+r))),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),this.hasCartesianSeries&&Jt(this.axes,function(e){e.getOffset()}),l(u)||(this.plotLeft+=i[3]),l(o)||(this.plotTop+=i[0]),l(f)||(this.marginBottom+=i[2]),l(a)||(this.marginRight+=i[1]),this.setChartSize()},initReflow:function(){function e(e){var s=n.width||Vt(r,"width"),o=n.height||Vt(r,"height"),e=e?e.target:z;if(s&&o&&(e===z||e===U)){if(s!==t.containerWidth||o!==t.containerHeight)clearTimeout(i),i=setTimeout(function(){t.resize(s,o,!1)},100);t.containerWidth=s,t.containerHeight=o}}var t=this,n=t.options.chart,r=t.renderTo,i;Zt(z,"resize",e),Zt(t,"destroy",function(){en(z,"resize",e)})},fireEndResize:function(){var e=this;e&&tn(e,"endResize",null,function(){e.isResizing-=1})},resize:function(e,t,n){var r,i,s=this.title,o=this.subtitle;this.isResizing+=1,O(n,this),this.oldChartHeight=this.chartHeight,this.oldChartWidth=this.chartWidth,l(e)&&(this.chartWidth=r=X(e)),l(t)&&(this.chartHeight=i=X(t)),d(this.container,{width:r+"px",height:i+"px"}),this.renderer.setSize(r,i,n),this.plotWidth=r-this.plotLeft-this.marginRight,this.plotHeight=i-this.plotTop-this.marginBottom,this.maxTicks=null,Jt(this.axes,function(e){e.isDirty=!0,e.setScale()}),Jt(this.series,function(e){e.isDirty=!0}),this.isDirtyBox=this.isDirtyLegend=!0,this.getMargins(),e=this.spacingBox,s&&s.align(null,null,e),o&&o.align(null,null,e),this.redraw(n),this.oldChartHeight=null,tn(this,"resize"),mt===!1?this.fireEndResize():setTimeout(this.fireEndResize,mt&&mt.duration||500)},setChartSize:function(){var e=this.inverted,t=this.chartWidth,n=this.chartHeight,r=this.options.chart,i=r.spacingTop,s=r.spacingRight,o=r.spacingBottom -,r=r.spacingLeft;this.plotLeft=X(this.plotLeft),this.plotTop=X(this.plotTop),this.plotWidth=X(t-this.plotLeft-this.marginRight),this.plotHeight=X(n-this.plotTop-this.marginBottom),this.plotSizeX=e?this.plotHeight:this.plotWidth,this.plotSizeY=e?this.plotWidth:this.plotHeight,this.spacingBox={x:r,y:i,width:t-r-s,height:n-i-o},Jt(this.axes,function(e){e.setAxisSize(),e.setAxisTranslation()})},resetMargins:function(){var e=this.options.chart,t=e.spacingRight,n=e.spacingBottom,r=e.spacingLeft;this.plotTop=p(this.optionsMarginTop,e.spacingTop),this.marginRight=p(this.optionsMarginRight,t),this.marginBottom=p(this.optionsMarginBottom,n),this.plotLeft=p(this.optionsMarginLeft,r),this.axisOffset=[0,0,0,0]},drawChartBox:function(){var e=this.options.chart,t=this.renderer,n=this.chartWidth,r=this.chartHeight,i=this.chartBackground,s=this.plotBackground,o=this.plotBorder,u=this.plotBGImage,a=e.borderWidth||0,f=e.backgroundColor,l=e.plotBackgroundColor,c=e.plotBackgroundImage,h,p={x:this.plotLeft,y:this.plotTop,width:this.plotWidth,height:this.plotHeight};h=a+(e.shadow?8:0);if(a||f)i?i.animate(i.crisp(null,null,null,n-h,r-h)):(i={fill:f||Et},a&&(i.stroke=e.borderColor,i["stroke-width"]=a),this.chartBackground=t.rect(h/2,h/2,n-h,r-h,e.borderRadius,a).attr(i).add().shadow(e.shadow));l&&(s?s.animate(p):this.plotBackground=t.rect(this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight,0).attr({fill:l}).add().shadow(e.plotShadow)),c&&(u?u.animate(p):this.plotBGImage=t.image(c,this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight).add()),e.plotBorderWidth&&(o?o.animate(o.crisp(null,this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight)):this.plotBorder=t.rect(this.plotLeft,this.plotTop,this.plotWidth,this.plotHeight,0,e.plotBorderWidth).attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth,zIndex:4}).add()),this.isDirtyBox=!1},propFromSeries:function(){var e=this,t=e.options.chart,n,r=e.options.series,i,s;Jt(["inverted","angular","polar"],function(o){n=zt[t.type||t.defaultSeriesType],s=e[o]||t[o]||n&&n.prototype[o];for(i=r&&r.length;!s&&i--;)(n=zt[r[i].type])&&n.prototype[o]&&(s=!0);e[o]=s})},render:function(){var t=this,r=t.axes,i=t.renderer,s=t.options,o=s.labels,s=s.credits,u;t.setTitle(),t.legend=new I(t),Jt(r,function(e){e.setScale()}),t.getMargins(),t.maxTicks=null,Jt(r,function(e){e.setTickPositions(!0),e.setMaxTicks()}),t.adjustTickAmounts(),t.getMargins(),t.drawChartBox(),t.hasCartesianSeries&&Jt(r,function(e){e.render()}),t.seriesGroup||(t.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),Jt(t.series,function(e){e.translate(),e.setTooltipPoints(),e.render()}),o.items&&Jt(o.items,function(){var r=e(o.style,this.style),s=n(r.left)+t.plotLeft,u=n(r.top)+t.plotTop+12;delete r.left,delete r.top,i.text(this.html,s,u).attr({zIndex:2}).css(r).add()}),s.enabled&&!t.credits&&(u=s.href,t.credits=i.text(s.text,0,0).on("click",function(){u&&(location.href=u)}).attr({align:s.position.align,zIndex:8}).css(s.style).add().align(s.position)),t.hasRendered=!0},destroy:function(){var e=this,t=e.axes,n=e.series,r=e.container,i,s=r&&r.parentNode;if(e!==null){tn(e,"destroy"),en(e);for(i=t.length;i--;)t[i]=t[i].destroy();for(i=n.length;i--;)n[i]=n[i].destroy();Jt("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var n=e[t];n&&(e[t]=n.destroy())}),r&&(r.innerHTML="",en(r),s&&k(r),r=null);for(i in e)delete e[i];e=e.options=null}},firstRender:function(){var e=this,t=e.options,n=e.callback;!ot&&z==z.top&&U.readyState!=="complete"||at&&!z.canvg?at?vn.push(function(){e.firstRender()},t.global.canvasToolsURL):U.attachEvent("onreadystatechange",function(){U.detachEvent("onreadystatechange",e.firstRender),U.readyState==="complete"&&e.firstRender()}):(e.getContainer(),tn(e,"init"),Highcharts.RangeSelector&&t.rangeSelector.enabled&&(e.rangeSelector=new Highcharts.RangeSelector(e)),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes(),Jt(t.series||[],function(t){e.initSeries(t)}),Highcharts.Scroller&&(t.navigator.enabled||t.scrollbar.enabled)&&(e.scroller=new Highcharts.Scroller(e)),e.tracker=new F(e,t),e.render(),e.renderer.draw(),n&&n.apply(e,[e]),Jt(e.callbacks,function(t){t.apply(e,[e])}),e.cloneRenderTo(!0),tn(e,"load"))},init:function(e){var t=this.options.chart,n;t.reflow!==!1&&Zt(this,"load",this.initReflow);if(e)for(n in e)Zt(this,n,e[n]);this.xAxis=[],this.yAxis=[],this.animation=at?!1:p(t.animation,!0),this.setSize=this.resize,this.pointCount=0,this.counters=new S,this.firstRender()}},q.prototype.callbacks=[];var mn=function(){};mn.prototype={init:function(e,t,n){var r=e.chart.counters;return this.series=e,this.applyOptions(t,n),this.pointAttr={},e.options.colorByPoint&&(t=e.chart.options.colors,this.options||(this.options={}),this.color=this.options.color=this.color||t[r.color++],r.wrapColor(t.length)),e.chart.pointCount++,this},applyOptions:function(t,n){var r=this.series,i=typeof t;this.config=t;if(i==="number"||t===null)this.y=t;else if(typeof t[0]=="number")this.x=t[0],this.y=t[1];else if(i==="object"&&typeof t.length!="number"){if(e(this,t),this.options=t,t.dataLabels)r._hasPointLabels=!0}else typeof t[0]=="string"&&(this.name=t[0],this.y=t[1]);this.x===R&&(this.x=n===R?r.autoIncrement():n)},destroy:function(){var e=this.series.chart,t=e.hoverPoints,n;e.pointCount--,t&&(this.setState(),f(t,this),!t.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut();if(this.graphic||this.dataLabel)en(this),this.destroyElements();this.legendItem&&e.legend.destroyItem(this);for(n in this)this[n]=null},destroyElements:function(){for(var e="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),t,n=6;n--;)t=e[n],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(e,t){var n=this,r=n.series.chart,e=p(e,!n.selected);n.firePointEvent(e?"select":"unselect",{accumulate:t},function(){n.selected=e,n.setState(e&&"select"),t||Jt(r.getSelectedPoints(),function(e){e.selected&&e!==n&&(e.selected=!1,e.setState(""),e.firePointEvent("unselect"))})})},onMouseOver:function(){var e=this.series,t=e.chart,n=t.tooltip,r=t.hoverPoint;r&&r!==this&&r.onMouseOut(),this.firePointEvent("mouseOver"),n&&(!n.shared||e.noSharedTooltip)&&n.refresh(this),this.setState("hover"),t.hoverPoint=this},onMouseOut:function(){this.firePointEvent("mouseOut"),this.setState(),this.series.chart.hoverPoint=null},tooltipFormatter:function(e){var t=this.series,n=t.tooltipOptions,i=e.match(/\{(series|point)\.[a-zA-Z]+\}/g),s=/[{\.}]/,o,u,a,f,l={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};n.valuePrefix=n.valuePrefix||n.yPrefix,n.valueDecimals=n.valueDecimals||n.yDecimals,n.valueSuffix=n.valueSuffix||n.ySuffix;for(f in i)u=i[f],r(u)&&u!==e&&(a=(" "+u).split(s),o={point:this,series:t}[a[1]],a=a[2],o===this&&l.hasOwnProperty(a)?(o=l[a]?a:"value",o=(n[o+"Prefix"]||"")+g(this[a],p(n[o+"Decimals"],-1))+(n[o+"Suffix"]||"")):o=o[a],e=e.replace(u,o));return e},update:function(e,t,n){var r=this,s=r.series,o=r.graphic,u,a=s.data,f=a.length,l=s.chart,t=p(t,!0);r.firePointEvent("update",{options:e},function(){r.applyOptions(e),i(e)&&(s.getAttribs(),o&&o.attr(r.pointAttr[s.state]));for(u=0;ue+1&&t.push(r.slice(e+1,s)),e=s):s===i-1&&t.push(r.slice(e+1,s+1))});this.segments=t},setOptions:function(e){var t=this.chart.options,n=t.plotOptions,r=e.data;return e.data=null,n=Yt(n[this.type],n.series,e),n.data=e.data=r,this.tooltipOptions=Yt(t.tooltip,n.tooltip),n},getColor:function(){var e=this.options,t=this.chart.options.colors,n=this.chart.counters;this.color=e.color||!e.colorByPoint&&t[n.color++]||"gray",n.wrapColor(t.length)},getSymbol:function(){var e=this.options.marker,t=this.chart,n=t.options.symbols,t=t.counters;this.symbol=e.symbol||n[t.symbol++],/^url/.test(this.symbol)&&(e.radius=0),t.wrapSymbol(n.length)},drawLegendSymbol:function(e){var t=this.options,n=t.marker,r=e.options.symbolWidth,i=this.chart.renderer,s=this.legendGroup,e=e.baseline,o;t.lineWidth&&(o={"stroke-width":t.lineWidth},t.dashStyle&&(o.dashstyle=t.dashStyle),this.legendLine=i.path(["M",0,e-4,"L",r,e-4]).attr(o).add(s)),n&&n.enabled&&(t=n.radius,this.legendSymbol=i.symbol(this.symbol,r/2-t,e-4-t,2*t,2*t).attr(this.pointAttr[""]).add(s))},addPoint:function(e,t,n,r){var i=this.data,s=this.graph,o=this.area,u=this.chart,a=this.xData,f=this.yData,l=s&&s.shift||0,c=this.options.data;O(r,u),s&&n&&(s.shift=l+1),o&&(n&&(o.shift=l+1),o.isArea=!0),t=p(t,!0),r={series:this},this.pointClass.prototype.applyOptions.apply(r,[e]),a.push(r.x),f.push(this.valueCount===4?[r.open,r.high,r.low,r.close]:r.y),c.push(e),n&&(i[0]&&i[0].remove?i[0].remove(!1):(i.shift(),a.shift(),f.shift(),c.shift())),this.getAttribs(),this.isDirtyData=this.isDirty=!0,t&&u.redraw()},setData:function(e,t){var n=this.points,r=this.options,i=this.initialColor,u=this.chart,a=null,f=this.xAxis,c=this.pointClass.prototype;this.xIncrement=null,this.pointRange=f&&f.categories&&1||r.pointRange,l(i)&&(u.counters.color=i);var h=[],d=[],v=e?e.length:[],m=this.valueCount;if(v>(r.turboThreshold||1e3)){for(i=0;a===null&&il||this.forceCrop))if(e=a.getExtremes(),a=e.min,l=e.max,t[r-1]l)t=[],n=[];else if(t[0]l){for(e=0;e=a){i=J(0,e-1);break}for(;el){s=e+1;break}t=t.slice(i,s),n=n.slice(i,s),o=!0}for(e=t.length-1;e>0;e--)if(r=t[e]-t[e-1],r>0&&(u===R||r=0&&r<=i;)u[r++]=s}this.tooltipPoints=u}},tooltipHeaderFormatter:function(e){var t=this.tooltipOptions,n=t.xDateFormat,r=this.xAxis,i=r&&r.options.type==="datetime",s;if(i&&!n)for(s in yt)if(yt[s]>=r.closestPointRange){n=t.dateTimeLabelFormats[s];break}return t.headerFormat.replace("{point.key}",i?vt(n,e):e).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var e=this.chart,t=e.hoverSeries;if(lt||!e.mouseIsDown)t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&tn(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this},onMouseOut:function(){var e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;r&&r.onMouseOut(),this&&e.events.mouseOut&&tn(this,"mouseOut"),n&&!e.stickyTracking&&!n.shared&&n.hide(),this.setState(),t.hoverSeries=null},animate:function(e){var t=this.chart,n=this.clipRect,r=this.options.animation;r&&!i(r)&&(r={}),e?n.isAnimating||(n.attr("width",0),n.isAnimating=!0):(n.animate({width:t.plotSizeX},r),this.animate=null)},drawPoints:function(){var t,n=this.points,r=this.chart,i,s,o,u,a,f,l,c;if(this.options.marker.enabled)for(o=n.length;o--;)if(u=n[o],i=u.plotX,s=u.plotY,c=u.graphic,s!==R&&!isNaN(s))if(t=u.pointAttr[u.selected?"select":""],a=t.r,f=p(u.marker&&u.marker.symbol,this.symbol),l=f.indexOf("url")===0,c)c.animate(e({x:i-a,y:s-a},c.symbolName?{width:2*a,height:2*a}:{}));else if(a>0||l)u.graphic=r.renderer.symbol(f,i-a,s-a,2*a,2*a).attr(t).add(this.group)},convertAttribs:function(e,t,n,r){var i=this.pointAttrToOptions,s,o,u={},e=e||{},t=t||{},n=n||{},r=r||{};for(s in i)o=i[s],u[s]=p(e[o],t[s],n[s],r[s]);return u},getAttribs:function(){var e=this,t=fn[e.type].marker?e.options.marker:e.options,n=t.states,r=n.hover,i,s=e.color,o={stroke:s,fill:s},u=e.points||[],a=[],f,c=e.pointAttrToOptions,h;e.options.marker?(r.radius=r.radius||t.radius+2,r.lineWidth=r.lineWidth||t.lineWidth+1):r.color=r.color||ln(r.color||s).brighten(r.brightness).get(),a[""]=e.convertAttribs(t,o),Jt(["hover","select"],function(t){a[t]=e.convertAttribs(n[t],a[""])}),e.pointAttr=a;for(s=u.length;s--;){o=u[s],(t=o.options&&o.options.marker||o.options)&&t.enabled===!1&&(t.radius=0),i=!1;if(o.options)for(h in c)l(t[c[h]])&&(i=!0);i?(f=[],n=t.states||{},i=n.hover=n.hover||{},e.options.marker||(i.color=ln(i.color||o.options.color).brighten(i.brightness||r.brightness).get()),f[""]=e.convertAttribs(t,a[""]),f.hover=e.convertAttribs(n.hover,a.hover,f[""]),f.select=e.convertAttribs(n.select,a.select,f[""])):f=a,o.pointAttr=f}},destroy:function(){var e=this,t=e.chart,n=e.clipRect,r=/AppleWebKit\/533/.test(tt),i,s,o=e.data||[],u,a,l;tn(e,"destroy"),en(e),Jt(["xAxis","yAxis"],function(t){if(l=e[t])f(l.series,e),l.isDirty=!0}),e.legendItem&&e.chart.legend.destroyItem(e);for(s=o.length;s--;)(u=o[s])&&u.destroy&&u.destroy();e.points=null,n&&n!==t.clipRect&&(e.clipRect=n.destroy()),Jt("area,graph,dataLabelsGroup,group,tracker,trackerGroup".split(","),function(t){e[t]&&(i=r&&t==="group"?"hide":"destroy",e[t][i]())}),t.hoverSeries===e&&(t.hoverSeries=null),f(t.series,e);for(a in e)delete e[a]},drawDataLabels:function(){var e=this,t=e.options,n=t.dataLabels;if(n.enabled||e._hasPointLabels){var r,i,s=e.points,o,u,a,f=e.dataLabelsGroup,c=e.chart,h=e.xAxis,h=h?h.left:c.plotLeft,d=e.yAxis,d=d?d.top:c.plotTop,v=c.renderer,m=c.inverted,g=e.type,y=t.stacking,b=g==="column"||g==="bar",w=n.verticalAlign===null,E=n.y===null,S=v.fontMetrics(n.style.fontSize),x=S.h,T=S.b,N,C;b&&(S={top:T,middle:T-x/2,bottom:-x+T},y?(w&&(n=Yt(n,{verticalAlign:"middle"})),E&&(n=Yt(n,{y:S[n.verticalAlign]}))):w?n=Yt(n,{verticalAlign:"top"}):E&&(n=Yt(n,{y:S[n.verticalAlign]}))),f?f.translate(h,d):f=e.dataLabelsGroup=v.g("data-labels").attr({visibility:e.visible?"visible":"hidden",zIndex:6}).translate(h,d).add(),u=n,Jt(s,function(s){N=s.dataLabel,n=u,(o=s.options)&&o.dataLabels&&(n=Yt(n,o.dataLabels));if(C=n.enabled){var h=s.barX&&s.barX+s.barW/2||p(s.plotX,-999),d=p(s.plotY,-999),w=n.y===null?s.y>=t.threshold?-x+T:T:n.y;r=(m?c.plotWidth-d:h)+n.x,i=X((m?c.plotHeight-h:d)+w)}if(N&&e.isCartesian&&(!c.isInsidePlot(r,i)||!C))s.dataLabel=N.destroy();else if(C){var h=n.align,E;a=n.formatter.call(s.getLabelConfig(),n),g==="column"&&(r+={left:-1,right:1}[h]*s.barW/2||0),!y&&m&&s.y<0&&(h="right",r-=10),n.style.color=p(n.color,n.style.color,e.color,"black");if(N)N.attr({text:a}).animate({x:r,y:i});else if(l(a)){h={align:h,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth,r:n.borderRadius||0,rotation:n.rotation,padding:n.padding,zIndex:1};for(E in h)h[E]===R&&delete h[E];N=s.dataLabel=v[n.rotation?"text":"label"](a,r,i,null,null,null,n.useHTML,!0).attr(h).css(n.style).add(f).shadow(n.shadow)}b&&t.stacking&&N&&(E=s.barX,h=s.barY,d=s.barW,s=s.barH,N.align(n,null,{x:m?c.plotWidth-h-s:E,y:m?c.plotHeight-E-d:h,width:m?s:d,height:m?d:s}))}})}},getSegmentPath:function(e){var t=this,n=[];return Jt(e,function(r,i){t.getPointSpline?n.push.apply(n,t.getPointSpline(e,r,i)):(n.push(i?"L":"M"),i&&t.options.step&&n.push(r.plotX,e[i-1].plotY),n.push(r.plotX,r.plotY))}),n},drawGraph:function(){var e=this,t=e.options,n=e.graph,r=[],i=e.group,s=t.lineColor||e.color,o=t.lineWidth,u=t.dashStyle,a,f=e.chart.renderer,l=[];Jt(e.segments,function(t){a=e.getSegmentPath(t),t.length>1?r=r.concat(a):l.push(t[0])}),e.graphPath=r,e.singlePoints=l,n?(sn(n),n.animate({d:r})):o&&(n={stroke:s,"stroke-width":o},u&&(n.dashstyle=u),e.graph=f.path(r).attr(n).add(i).shadow(t.shadow))},invertGroups:function(){function e(){var e={width:t.yAxis.len,height:t.xAxis.len};n.attr(e).invert(),r&&r.attr(e).invert()}var t=this,n=t.group,r=t.trackerGroup,i=t.chart;Zt(i,"resize",e),Zt(t,"destroy",function(){en(i,"resize",e)}),e(),t.invertGroups=e},createGroup:function(){var e=this.chart;(this.group=e.renderer.g("series")).attr({visibility:this.visible?"visible":"hidden",zIndex:this.options.zIndex}).translate(this.xAxis.left,this.yAxis.top).add(e.seriesGroup),this.createGroup=bt},render:function(){var e=this,t=e.chart,n,r=e.options,i=r.clip!==!1,s=r.animation,s=(r=s&&e.animate)?s&&s.duration||500:0,o=e.clipRect,u=t.renderer;!o&&(o=e.clipRect=!t.hasRendered&&t.clipRect?t.clipRect:u.clipRect(0,0,t.plotSizeX,t.plotSizeY+1),!t.clipRect)&&(t.clipRect=o),e.createGroup(),n=e.group,e.drawDataLabels(),r&&e.animate(!0),e.getAttribs(),e.drawGraph&&e.drawGraph(),e.drawPoints(),e.options.enableMouseTracking!==!1&&e.drawTracker(),t.inverted&&e.invertGroups(),i&&!e.hasRendered&&(n.clip(o),e.trackerGroup&&e.trackerGroup.clip(t.clipRect)),r&&e.animate(),setTimeout(function(){o.isAnimating=!1,(n=e.group)&&o!==t.clipRect&&o.renderer&&(i&&n.clip(e.clipRect=t.clipRect),o.destroy())},s),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var e=this.chart,t=this.isDirtyData,n=this.group;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:this.xAxis.left,translateY:this.yAxis.top})),this.translate(),this.setTooltipPoints(!0),this.render(),t&&tn(this,"updatedData")},setState:function(e){var t=this.options,n=this.graph,r=t.states,t=t.lineWidth,e=e||"";this.state!==e&&(this.state=e,r[e]&&r[e].enabled===!1||(e&&(t=r[e].lineWidth||t+1),n&&!n.dashstyle&&n.attr({"stroke-width":t},e?0:500)))},setVisible:function(e,t){var n=this.chart,r=this.legendItem,i=this.group,s=this.tracker,o=this.dataLabelsGroup,u,a=this.points,f=n.options.chart.ignoreHiddenSeries;u=this.visible,u=(this.visible=e=e===R?!u:e)?"show":"hide",i&&i[u]();if(s)s[u]();else if(a)for(i=a.length;i--;)(s=a[i],s.tracker)&&s.tracker[u]();o&&o[u](),r&&n.legend.colorizeItem(this,e),this.isDirty=!0,this.options.stacking&&Jt(n.series,function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),f&&(n.isDirtyBox=!0),t!==!1&&n.redraw(),tn(this,u)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(e){this.selected=e=e===R?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),tn(this,e?"select":"unselect")},drawTrackerGroup:function(){var e=this.trackerGroup,t=this.chart;return this.isCartesian&&(e||(this.trackerGroup=e=t.renderer.g().attr({zIndex:this.options.zIndex||1}).add(t.trackerGroup)),e.translate(this.xAxis.left,this.yAxis.top)),e},drawTracker:function(){var e=this,t=e.options,n=t.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),i=r.length,s=e.chart,o=s.renderer,u=s.options.tooltip.snap,a=e.tracker,f=t.cursor,f=f&&{cursor:f},l=e.singlePoints,c=e.drawTrackerGroup(),h;if(i&&!n)for(h=i+1;h--;)r[h]==="M"&&r.splice(h+1,0,r[h+1]-u,r[h+2],"L"),(h&&r[h]==="M"||h===i)&&r.splice(h,0,"L",r[h-2]+u,r[h-1]);for(h=0;h=0;r--)re&&a>i?(a=J(e,i),l=2*i-a):ao&&l>i?(l=J(o,i),a=2*i-l):lx?u-x:S-(o<=S?x:0)),e(r,{barX:a,barY:f,barW:w,barH:l,pointWidth:b}),r.shapeType="rect",r.shapeArgs=o=n.renderer.Element.prototype.crisp.call(0,s,a,f,w,l),s%2&&(o.y-=1,o.height+=1),r.trackerArgs=Q(l)<3&&Yt(r.shapeArgs,{height:6,y:f-3})})},getSymbol:function(){},drawLegendSymbol:Xt.prototype.drawLegendSymbol,drawGraph:function(){},drawPoints:function(){var e=this,t=e.options,n=e.chart.renderer,r,i;Jt(e.points,function(s){var o=s.plotY;o!==R&&!isNaN(o)&&s.y!==null&&(r=s.graphic,i=s.shapeArgs,r?(sn(r),r.animate(Yt(i))):s.graphic=r=n[s.shapeType](i).attr(s.pointAttr[s.selected?"select":""]).add(e.group).shadow(t.shadow,null,t.stacking&&!t.borderRadius))})},drawTracker:function(){var e=this,t=e.chart,n=t.renderer,r,i,s=+(new Date),o=e.options,u=o.cursor,a=u&&{cursor:u},f=e.drawTrackerGroup(),l,h,p;Jt(e.points,function(u){i=u.tracker,r=u.trackerArgs||u.shapeArgs,h=u.plotY,p=!e.isCartesian||h!==R&&!isNaN(h),delete r.strokeWidth,u.y!==null&&p&&(i?i.attr(r):u.tracker=n[u.shapeType](r).attr({isTracker:s,fill:St,visibility:e.visible?"visible":"hidden"}).on(lt?"touchstart":"mouseover",function(n){l=n.relatedTarget||n.fromElement,t.hoverSeries!==e&&c(l,"isTracker")!==s&&e.onMouseOver(),u.onMouseOver()}).on("mouseout",function(t){!o.stickyTracking&&(l=t.relatedTarget||t.toElement,c(l,"isTracker")!==s)&&e.onMouseOut()}).css(a).add(u.group||f))})},animate:function(e){var t=this,n=t.points,r=t.options;e||(Jt(n,function(e){var n=e.graphic,e=e.shapeArgs,i=t.yAxis,s=r.threshold;n&&(n.attr({height:0,y:l(s)?i.getThreshold(s):i.translate(i.getExtremes().min,0,1,0,1)}),n.animate({height:e.height,y:e.y},r.animation))}),t.animate=null)},remove:function(){var e=this,t=e.chart;t.hasRendered&&Jt(t.series,function(t){t.type===e.type&&(t.isDirty=!0)}),gn.prototype.remove.apply(e,arguments)}}),zt.column=pn,fn.bar=Yt(fn.column,{dataLabels:{align:"left",x:5,y:null,verticalAlign:"middle"}}),yn=m(pn,{type:"bar",inverted:!0}),zt.bar=yn,fn.scatter=Yt(Wt,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),yn=m(gn,{type:"scatter",sorted:!1,translate:function(){var e=this;gn.prototype.translate.apply(e),Jt(e.points,function(t){t.shapeType="circle",t.shapeArgs={x:t.plotX,y:t.plotY,r:e.chart.options.tooltip.snap}})},drawTracker:function(){for(var e=this,t=e.options.cursor,t=t&&{cursor:t},n=e.points,r=n.length,i;r--;)if(i=n[r].graphic)i.element._i=r;e._hasTracking?e._hasTracking=!0:e.group.attr({isTracker:!0}).on(lt?"touchstart":"mouseover",function(t){e.onMouseOver(),t.target._i!==R&&n[t.target._i].onMouseOver()}).on("mouseout",function(){e.options.stickyTracking||e.onMouseOut()}).css(t)}}),zt.scatter=yn,fn.pie=Yt(Wt,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}}}),Wt={type:"pie",isCartesian:!1,pointClass:m(mn,{init:function(){mn.prototype.init.apply(this,arguments);var t=this,n;return e(t,{visible:t.visible!==!1,name:p(t.name,"Slice")}),n=function(){t.slice()},Zt(t,"select",n),Zt(t,"unselect",n),t},setVisible:function(e){var t=this.series.chart,n=this.tracker,r=this.dataLabel,i=this.connector,s=this.shadowGroup,o;o=(this.visible=e=e===R?!this.visible:e)?"show":"hide",this.group[o](),n&&n[o](),r&&r[o](),i&&i[o](),s&&s[o](),this.legendItem&&t.legend.colorizeItem(this,e)},slice:function(e,t,n){var r=this.series.chart,i=this.slicedTranslation;O(n,r),p(t,!0),e=this.sliced=l(e)?e:!this.sliced,e={translateX:e?i[0]:r.plotLeft,translateY:e?i[1]:r.plotTop},this.group.animate(e),this.shadowGroup&&this.shadowGroup.animate(e)}}),pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var e=this;Jt(e.points,function(t){var n=t.graphic,t=t.shapeArgs,r=-Z/2;n&&(n.attr({r:0,start:r,end:r}),n.animate({r:t.r,start:t.start,end:t.end},e.options.animation))}),e.animate=null},setData:function(e,t){gn.prototype.setData.call(this,e,!1),this.processData(),this.generatePoints(),p(t,!0)&&this.chart.redraw()},getCenter:function(){var e=this.options,t=this.chart,r=t.plotWidth,i=t.plotHeight,e=e.center.concat([e.size,e.innerSize||0]),s=K(r,i),o;return Gt(e,function(e,t){return(o=/%$/.test(e))?[r,i,s,s][t]*n(e)/100:e})},translate:function(){this.generatePoints();var e=0,t=-0.25,n=this.options,r=n.slicedOffset,i=r+n.borderWidth,s,o=this.chart,u,a,f,l=this.points,c=2*Z,h,p,d,v=n.dataLabels.distance;this.center=s=this.getCenter(),this.getX=function(e,t){return f=W.asin((e-s[1])/(s[2]/2+v)),s[0]+(t?-1:1)*G(f)*(s[2]/2+v)},Jt(l,function(t){e+=t.y}),Jt(l,function(n){h=e?n.y/e:0,u=X(t*c*1e3)/1e3,t+=h,a=X(t*c*1e3)/1e3,n.shapeType="arc",n.shapeArgs={x:s[0],y:s[1],r:s[2]/2,innerR:s[3]/2,start:u,end:a},f=(a+u)/2,n.slicedTranslation=Gt([G(f)*r+o.plotLeft,Y(f)*r+o.plotTop],X),p=G(f)*s[2]/2,d=Y(f)*s[2]/2,n.tooltipPos=[s[0]+p*.7,s[1]+d*.7],n.labelPos=[s[0]+p+G(f)*v,s[1]+d+Y(f)*v,s[0]+p+G(f)*i,s[1]+d+Y(f)*i,s[0]+p,s[1]+d,v<0?"center":f0,v=[[],[]],m,g,y,b,w=2,E;if(r.enabled){gn.prototype.drawDataLabels.apply(this),Jt(e,function(e){e.dataLabel&&v[e.labelPos[7]0){for(E=h-c-f;E<=h+c+f;E+=e)S.push(E);y=S.length;if(N>y){u=[].concat(T),u.sort(b);for(E=N;E--;)u[E].rank=E;for(E=N;E--;)T[E].rank>=y&&T.splice(E,1);N=T.length}for(E=0;E0){if(g=x.pop(),C=g.i,g=g.y,m>g&&S[C+1]!==null||m>>0;if(n===0)return-1;var r=0;arguments.length>0&&(r=Number(arguments[1]),r!==r?r=0:r!==0&&r!==Infinity&&r!==-Infinity&&(r=(r>0||-1)*Math.floor(Math.abs(r))));if(r>=n)return-1;var i=r>=0?r:Math.max(n-Math.abs(r),0);for(;i0)o=e.shift(),s=s[o];if(!s){if(I18n.fallbacks){var u=this.getFallbacks(i);for(var a=0;a11?1:0,l=e.getSeconds(),c=e.getMinutes(),h=e.getTimezoneOffset(),p=Math.floor(Math.abs(h/60)),d=Math.abs(h)-p*60,v=(h>0?"-":"+")+(p.toString().length<2?"0"+p:p)+(d.toString().length<2?"0"+d:d);a>12?a-=12:a===0&&(a=12);var m=function(e){var t="0"+e.toString();return t.substr(t.length-2)},g=t;return g=g.replace("%a",n.abbr_day_names[r]),g=g.replace("%A",n.day_names[r]),g=g.replace("%b",n.abbr_month_names[o]),g=g.replace("%B",n.month_names[o]),g=g.replace("%d",m(i)),g=g.replace("%e",i),g=g.replace("%-d",i),g=g.replace("%H",m(u)),g=g.replace("%-H",u),g=g.replace("%I",m(a)),g=g.replace("%-I",a),g=g.replace("%m",m(o)),g=g.replace("%-m",o),g=g.replace("%M",m(c)),g=g.replace("%-M",c),g=g.replace("%p",n.meridian[f]),g=g.replace("%S",m(l)),g=g.replace("%-S",l),g=g.replace("%w",r),g=g.replace("%y",m(s)),g=g.replace("%-y",m(s).replace(/^0+/,"")),g=g.replace("%Y",s),g=g.replace("%z",v),g},I18n.toNumber=function(e,t){t=this.prepareOptions(t,this.lookup("number.format"),{precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!1});var n=e<0,r=Math.abs(e).toFixed(t.precision).toString(),i=r.split("."),s,o=[],u;e=i[0],s=i[1];while(e.length>0)o.unshift(e.substr(Math.max(0,e.length-3),3)),e=e.substr(0,e.length-3);u=o.join(t.delimiter),t.precision>0&&(u+=t.separator+i[1]),n&&(u="-"+u);if(t.strip_insignificant_zeros){var a={separator:new RegExp(t.separator.replace(/\./,"\\.")+"$"),zeros:/0+$/};u=u.replace(a.zeros,"").replace(a.separator,"")}return u},I18n.toCurrency=function(e,t){return t=this.prepareOptions(t,this.lookup("number.currency.format"),this.lookup("number.format"),{unit:"$",precision:2,format:"%u%n",delimiter:",",separator:"."}),e=this.toNumber(e,t),e=t.format.replace("%u",t.unit).replace("%n",e),e},I18n.toHumanSize=function(e,t){var n=1024,r=e,i=0,s,o;while(r>=n&&i<4)r/=n,i+=1;return i===0?(s=this.t("number.human.storage_units.units.byte",{count:r}),o=0):(s=this.t("number.human.storage_units.units."+[null,"kb","mb","gb","tb"][i]),o=r-Math.floor(r)===0?0:1),t=this.prepareOptions(t,{precision:o,format:"%n%u",delimiter:""}),e=this.toNumber(r,t),e=t.format.replace("%u",s).replace("%n",e),e},I18n.toPercentage=function(e,t){return t=this.prepareOptions(t,this.lookup("number.percentage.format"),this.lookup("number.format"),{precision:3,separator:".",delimiter:""}),e=this.toNumber(e,t),e+"%"},I18n.pluralizer=function(e){return pluralizer=this.pluralizationRules[e],pluralizer!==undefined?pluralizer:this.pluralizationRules.en},I18n.findAndTranslateValidNode=function(e,t){for(i=0;i "+e),S.emit("state_change",{previous:r,current:e}),S.emit(e,t))}var S=this;n.EventsDispatcher.call(this),this.options=n.Util.extend({encrypted:!1},l),this.netInfo=new n.NetInfo,this.netInfo.bind("online",function(){S._machine.is("waiting")&&(S._machine.transition("connecting"),E("connecting"))}),this.netInfo.bind("offline",function(){S._machine.is("connected")&&(S.socket.onclose=void 0,S.socket.onmessage=void 0,S.socket.onerror=void 0,S.socket.onopen=void 0,S.socket.close(),S.socket=void 0,S._machine.transition("waiting"))}),this._machine=new n.Machine("initialized",r,{initializedPre:function(){S.compulsorySecure=S.options.encrypted,S.key=t,S.socket=null,S.socket_id=null,S.state="initialized"},waitingPre:function(){S.connectionWait>0&&S.emit("connecting_in",S.connectionWait),S.netInfo.isOnLine()&&S.connectionAttempts<=4?E("connecting"):E("unavailable"),S.netInfo.isOnLine()&&(S._waitingTimer=setTimeout(function(){S._machine.transition("connecting")},d()))},waitingExit:function(){clearTimeout(S._waitingTimer)},connectingPre:function(){if(S.netInfo.isOnLine()===!1)S._machine.transition("waiting"),E("unavailable");else{var e;e=n.ws_port;var t="ws://";if(S.connectionSecure||document.location.protocol==="https:")e=n.wss_port,t="wss://";e=t+n.host+":"+e+"/app/"+S.key+"?protocol=5&client=js&version="+n.VERSION+"&flash="+(n.TransportType==="flash"?"true":"false"),n.debug("Connecting",e),S.socket=new n.Transport(e),S.socket.onopen=v,S.socket.onclose=b,S.socket.onerror=w,S._connectingTimer=setTimeout(h,S.openTimeout)}},connectingExit:function(){clearTimeout(S._connectingTimer),S.socket.onopen=void 0},connectingToWaiting:function(){c()},connectingToImpermanentlyClosing:function(){c()},openPre:function(){S.socket.onmessage=m,S.socket.onerror=w,S.socket.onclose=b,S._openTimer=setTimeout(h,S.connectedTimeout)},openExit:function(){clearTimeout(S._openTimer),S.socket.onmessage=void 0},openToWaiting:function(){c()},openToImpermanentlyClosing:function(){c()},connectedPre:function(t){S.socket_id=t,S.socket.onmessage=g,S.socket.onerror=w,S.socket.onclose=b,e(S),S.connectedAt=(new Date).getTime(),p()},connectedPost:function(){E("connected")},connectedExit:function(){S._activityTimer&&clearTimeout(S._activityTimer),E("disconnected")},impermanentlyClosingPost:function(){S.socket&&(S.socket.onclose=b,S.socket.close())},permanentlyClosingPost:function(){S.socket?(S.socket.onclose=function(){e(S),S._machine.transition("permanentlyClosed")},S.socket.close()):(e(S),S._machine.transition("permanentlyClosed"))},failedPre:function(){E("failed"),n.debug("WebSockets are not available in this browser.")},permanentlyClosedPost:function(){E("disconnected")}})}var n=this.Pusher,r={initialized:["waiting","failed"],waiting:["connecting","permanentlyClosed"],connecting:["open","permanentlyClosing","impermanentlyClosing","waiting"],open:["connected","permanentlyClosing","impermanentlyClosing","waiting"],connected:["permanentlyClosing","waiting"],impermanentlyClosing:["waiting","permanentlyClosing"],permanentlyClosing:["permanentlyClosed"],permanentlyClosed:["waiting","failed"],failed:["permanentlyClosed"]},i=2e3,s=2e3,o=2e3,u=5*i,a=5*s,f=5*o;t.prototype.connect=function(){!this._machine.is("failed")&&!n.Transport?this._machine.transition("failed"):this._machine.is("initialized")?(e(this),this._machine.transition("waiting")):this._machine.is("waiting")&&this.netInfo.isOnLine()===!0?this._machine.transition("connecting"):this._machine.is("permanentlyClosed")&&(e(this),this._machine.transition("waiting"))},t.prototype.send=function(e){if(this._machine.is("connected")){var t=this;return setTimeout(function(){t.socket.send(e)},0),!0}return!1},t.prototype.send_event=function(e,t,r){return e={event:e,data:t},r&&(e.channel=r),n.debug("Event sent",e),this.send(JSON.stringify(e))},t.prototype.disconnect=function(){this._machine.is("permanentlyClosed")||(this._machine.is("waiting")||this._machine.is("failed")?this._machine.transition("permanentlyClosed"):this._machine.transition("permanentlyClosing"))},n.Util.extend(t.prototype,n.EventsDispatcher.prototype),this.Pusher.Connection=t}.call(this),function(){Pusher.Channels=function(){this.channels={}},Pusher.Channels.prototype={add:function(e,t){var n=this.find(e);return n||(n=Pusher.Channel.factory(e,t),this.channels[e]=n),n},find:function(e){return this.channels[e]},remove:function(e){delete this.channels[e]},disconnect:function(){for(var e in this.channels)this.channels[e].disconnect()}},Pusher.Channel=function(e,t){var n=this;Pusher.EventsDispatcher.call(this,function(t){Pusher.debug("No callbacks on "+e+" for "+t)}),this.pusher=t,this.name=e,this.subscribed=!1,this.bind("pusher_internal:subscription_succeeded",function(e){n.onSubscriptionSucceeded(e)})},Pusher.Channel.prototype={init:function(){},disconnect:function(){this.subscribed=!1,this.emit("pusher_internal:disconnected")},onSubscriptionSucceeded:function(){this.subscribed=!0,this.emit("pusher:subscription_succeeded")},authorize:function(e,t,n){return n(!1,{})},trigger:function(e,t){return this.pusher.send_event(e,t,this.name)}},Pusher.Util.extend(Pusher.Channel.prototype,Pusher.EventsDispatcher.prototype),Pusher.Channel.PrivateChannel={authorize:function(e,t,n){var r=this;return(new Pusher.Channel.Authorizer(this,Pusher.channel_auth_transport,t)).authorize(e,function(e,t){e||r.emit("pusher_internal:authorized",t),n(e,t)})}},Pusher.Channel.PresenceChannel={init:function(){this.members=new e(this)},onSubscriptionSucceeded:function(){this.subscribed=!0}};var e=function(e){var t=this,n=function(){this._members_map={},this.count=0,this.me=null};n.call(this),e.bind("pusher_internal:authorized",function(n){var r=JSON.parse(n.channel_data);e.bind("pusher_internal:subscription_succeeded",function(n){t._members_map=n.presence.hash,t.count=n.presence.count,t.me=t.get(r.user_id),e.emit("pusher:subscription_succeeded",t)})}),e.bind("pusher_internal:member_added",function(n){t.get(n.user_id)===null&&t.count++,t._members_map[n.user_id]=n.user_info,e.emit("pusher:member_added",t.get(n.user_id))}),e.bind("pusher_internal:member_removed",function(n){var r=t.get(n.user_id);r&&(delete t._members_map[n.user_id],t.count--,e.emit("pusher:member_removed",r))}),e.bind("pusher_internal:disconnected",function(){n.call(t)})};e.prototype={each:function(e){for(var t in this._members_map)e(this.get(t))},get:function(e){return this._members_map.hasOwnProperty(e)?{id:e,info:this._members_map[e]}:null}},Pusher.Channel.factory=function(e,t){var n=new Pusher.Channel(e,t);return e.indexOf("private-")===0?Pusher.Util.extend(n,Pusher.Channel.PrivateChannel):e.indexOf("presence-")===0&&(Pusher.Util.extend(n,Pusher.Channel.PrivateChannel),Pusher.Util.extend(n,Pusher.Channel.PresenceChannel)),n.init(),n}}.call(this),function(){Pusher.Channel.Authorizer=function(e,t,n){this.channel=e,this.type=t,this.authOptions=(n||{}).auth||{}},Pusher.Channel.Authorizer.prototype={composeQuery:function(e){var e="&socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name),t;for(t in this.authOptions.params)e+="&"+encodeURIComponent(t)+"="+encodeURIComponent(this.authOptions.params[t]);return e},authorize:function(e,t){return Pusher.authorizers[this.type].call(this,e,t)}},Pusher.auth_callbacks={},Pusher.authorizers={ajax:function(e,t){var n;n=Pusher.XHR?new Pusher.XHR:window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),n.open("POST",Pusher.channel_auth_endpoint,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var r in this.authOptions.headers)n.setRequestHeader(r,this.authOptions.headers[r]);return n.onreadystatechange=function(){if(n.readyState==4)if(n.status==200){var e,r=!1;try{e=JSON.parse(n.responseText),r=!0}catch(i){t(!0,"JSON returned from webapp was invalid, yet status code was 200. Data was: "+n.responseText)}r&&t(!1,e)}else Pusher.warn("Couldn't get auth info from your webapp",n.status),t(!0,n.status)},n.send(this.composeQuery(e)),n},jsonp:function(e,t){this.authOptions.headers!==void 0&&Pusher.warn("Warn","To send headers with the auth request, you must use AJAX, rather than JSONP.");var n=document.createElement("script");Pusher.auth_callbacks[this.channel.name]=function(e){t(!1,e)},n.src=Pusher.channel_auth_endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+this.channel.name+"']")+this.composeQuery(e);var r=document.getElementsByTagName("head")[0]||document.documentElement;r.insertBefore(n,r.firstChild)}}}.call(this);var _require=function(){function e(e,t){document.addEventListener?e.addEventListener("load",t,!1):e.attachEvent("onreadystatechange",function(){(e.readyState=="loaded"||e.readyState=="complete")&&t()})}function t(t,n){var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("type","text/javascript"),i.setAttribute("async",!0),e(i,function(){n()}),r.appendChild(i)}return function(e,n){for(var r=0,i=0;i0?_require(t,i):i()})(),minispade.register("app",function(){(function(){minispade.require("auth"),minispade.require("controllers"),minispade.require("helpers"),minispade.require("models"),minispade.require("pusher"),minispade.require("routes"),minispade.require("slider"),minispade.require("store"),minispade.require("tailing"),minispade.require("templates"),minispade.require("views"),minispade.require("config/locales"),minispade.require("data/sponsors"),Travis.reopen({App:Em.Application.extend({autoinit:!1,currentUserBinding:"auth.user",authStateBinding:"auth.state",init:function(){return this._super.apply(this,arguments),this.store=Travis.Store.create(),this.store.loadMany(Travis.Sponsor,Travis.SPONSORS),this.set("auth",Travis.Auth.create({app:this,endpoint:Travis.config.api_endpoint})),this.slider=new Travis.Slider,this.pusher=new Travis.Pusher(Travis.config.pusher),this.tailing=new Travis.Tailing},signIn:function(){return this.get("auth").signIn()},signOut:function(){return this.get("auth").signOut(),this.get("router").send("goToRoot")},receive:function(){return this.store.receive.apply(this.store,arguments)},toggleSidebar:function(){var e;return $("body").toggleClass("maximized"),e=$(""),$("#top .profile").append(e),Em.run.later(function(){return e.remove()},10),e=$(""),$("#repository").append(e),Em.run.later(function(){return e.remove()},10)}})})}).call(this)}),minispade.register("auth",function(){(function(){this.Travis.Auth=Ember.Object.extend({iframe:$('